@ninebone/table 0.0.277 β 0.0.279
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 +406 -398
- package/dist/nine-table.js.map +1 -1
- package/dist/nine-table.umd.js +7 -7
- 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 Ve = Object.defineProperty;
|
|
2
|
+
var Xe = (p) => {
|
|
3
3
|
throw TypeError(p);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var a = (p, i) =>
|
|
7
|
-
var
|
|
8
|
-
var e = (p, i, t) => (
|
|
9
|
-
var
|
|
5
|
+
var Ke = (p, i, t) => i in p ? Ve(p, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[i] = t;
|
|
6
|
+
var a = (p, i) => Ve(p, "name", { value: i, configurable: !0 });
|
|
7
|
+
var v = (p, i, t) => Ke(p, typeof i != "symbol" ? i + "" : i, t), Ye = (p, i, t) => i.has(p) || Xe("Cannot " + t);
|
|
8
|
+
var e = (p, i, t) => (Ye(p, i, "read from private field"), t ? t.call(p) : i.get(p)), c = (p, i, t) => i.has(p) ? Xe("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(p) : i.set(p, t), g = (p, i, t, s) => (Ye(p, i, "write to private field"), s ? s.call(p, t) : i.set(p, t), t);
|
|
9
|
+
var Ue = (p, i, t, s) => ({
|
|
10
10
|
set _(n) {
|
|
11
11
|
g(p, i, n, t);
|
|
12
12
|
},
|
|
@@ -14,78 +14,78 @@ var Ve = (p, i, t, s) => ({
|
|
|
14
14
|
return e(p, i, s);
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
import { trace as
|
|
18
|
-
const
|
|
17
|
+
import { trace as Ze } from "@ninebone/util";
|
|
18
|
+
const Me = class Me extends Ze.constructor {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(), this.init("nine-table", "green");
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
a(
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
var k,
|
|
27
|
-
const
|
|
23
|
+
a(Me, "Trace");
|
|
24
|
+
let Ee = Me;
|
|
25
|
+
const F = new Ee();
|
|
26
|
+
var k, $, y, O, W, z, ne, D, re;
|
|
27
|
+
const $e = class $e extends HTMLElement {
|
|
28
28
|
constructor() {
|
|
29
29
|
super();
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
c(this, k);
|
|
31
|
+
c(this, $, !1);
|
|
32
|
+
c(this, y);
|
|
33
|
+
c(this, O);
|
|
34
|
+
c(this, W);
|
|
35
|
+
c(this, z);
|
|
36
|
+
c(this, ne, /* @__PURE__ */ a(() => {
|
|
37
37
|
if (!e(this, k)) return;
|
|
38
38
|
const t = e(this, k).querySelector(".ng-container-body");
|
|
39
|
-
t && (g(this,
|
|
39
|
+
t && (g(this, z, new ResizeObserver(() => {
|
|
40
40
|
this.refresh();
|
|
41
|
-
})), e(this,
|
|
41
|
+
})), e(this, z).observe(t));
|
|
42
42
|
}, "#observeResize"));
|
|
43
|
-
|
|
44
|
-
if (!e(this, k) || !e(this, y) || e(this,
|
|
43
|
+
v(this, "refresh", /* @__PURE__ */ a(() => {
|
|
44
|
+
if (!e(this, k) || !e(this, y) || e(this, $)) return;
|
|
45
45
|
const t = e(this, y).container, s = t.querySelector("table");
|
|
46
46
|
if (!s) return;
|
|
47
|
-
const n = e(this, y).track,
|
|
48
|
-
if (l !== 0 &&
|
|
49
|
-
|
|
47
|
+
const n = e(this, y).track, r = e(this, y).thumb, o = e(this, k).querySelector(".ng-container-bottom"), l = t.clientWidth, d = s.scrollWidth;
|
|
48
|
+
if (l !== 0 && d > l)
|
|
49
|
+
o && (o.style.display = "flex");
|
|
50
50
|
else {
|
|
51
|
-
|
|
51
|
+
o && (o.style.display = "none");
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
54
|
const h = n.clientWidth;
|
|
55
55
|
if (h <= 0) return;
|
|
56
|
-
const f = Math.max(Math.min(h * (l /
|
|
57
|
-
|
|
58
|
-
const b = t.scrollLeft, u =
|
|
59
|
-
let
|
|
60
|
-
u > 0 && (
|
|
56
|
+
const f = Math.max(Math.min(h * (l / d), h), 20);
|
|
57
|
+
r.style.width = `${f}px`;
|
|
58
|
+
const b = t.scrollLeft, u = d - l;
|
|
59
|
+
let x = 0;
|
|
60
|
+
u > 0 && (x = parseInt(b / u * (h - f), 10)), x < 0 && (x = 0);
|
|
61
61
|
const w = h - f;
|
|
62
|
-
|
|
62
|
+
x > w && (x = w), r.style.left = `${x}px`, F.log(x), e(this, y).left.disabled = x === 0, e(this, y).right.disabled = x >= w - 1;
|
|
63
63
|
}, "refresh"));
|
|
64
|
-
|
|
64
|
+
c(this, D, /* @__PURE__ */ a((t) => {
|
|
65
65
|
if (!e(this, y)) return !1;
|
|
66
66
|
const s = e(this, y).container, n = s.querySelector("table");
|
|
67
67
|
if (!n) return !1;
|
|
68
|
-
const
|
|
68
|
+
const r = e(this, y).track.getBoundingClientRect(), o = e(this, y).thumb.clientWidth;
|
|
69
69
|
let l = t;
|
|
70
70
|
l < 0 && (l = 0);
|
|
71
|
-
const
|
|
72
|
-
l >
|
|
71
|
+
const d = r.width - o;
|
|
72
|
+
l > d && (l = d), l = parseInt(l, 10), e(this, y).thumb.style.left = `${l}px`, e(this, y).left.disabled = l === 0, e(this, y).right.disabled = l >= d - 1;
|
|
73
73
|
const h = s.clientWidth, f = n.scrollWidth;
|
|
74
|
-
let b =
|
|
75
|
-
return -b > f - h && (b = -(f - h)), -b + 5 > f - h && (b = -(f - h)), h >= f && (b = 0), n.style.transform = `translateX(${b}px)`, l > 0 && l <
|
|
74
|
+
let b = d > 0 ? -l * (f - h) / d : 0;
|
|
75
|
+
return -b > f - h && (b = -(f - h)), -b + 5 > f - h && (b = -(f - h)), h >= f && (b = 0), n.style.transform = `translateX(${b}px)`, l > 0 && l < d - 1;
|
|
76
76
|
}, "#thumbMoveTo"));
|
|
77
|
-
|
|
77
|
+
c(this, re, /* @__PURE__ */ a(() => {
|
|
78
78
|
const t = /* @__PURE__ */ a((n) => {
|
|
79
|
-
clearInterval(e(this, O)), clearInterval(e(this,
|
|
80
|
-
const
|
|
81
|
-
e(this,
|
|
82
|
-
clearInterval(e(this, O)), g(this,
|
|
83
|
-
const
|
|
84
|
-
e(this,
|
|
79
|
+
clearInterval(e(this, O)), clearInterval(e(this, W));
|
|
80
|
+
const r = parseInt(e(this, y).thumb.style.left || 0, 10);
|
|
81
|
+
e(this, D).call(this, r + n), g(this, O, setInterval(() => {
|
|
82
|
+
clearInterval(e(this, O)), g(this, W, setInterval(() => {
|
|
83
|
+
const o = parseInt(e(this, y).thumb.style.left || 0, 10);
|
|
84
|
+
e(this, D).call(this, o + n) || clearInterval(e(this, W));
|
|
85
85
|
}, 50));
|
|
86
86
|
}, 500));
|
|
87
87
|
}, "delayScroll"), s = /* @__PURE__ */ a(() => {
|
|
88
|
-
clearInterval(e(this, O)), clearInterval(e(this,
|
|
88
|
+
clearInterval(e(this, O)), clearInterval(e(this, W));
|
|
89
89
|
}, "clearTimer");
|
|
90
90
|
["mouseup", "mouseleave", "touchend"].forEach((n) => {
|
|
91
91
|
e(this, y).left.addEventListener(n, s), e(this, y).right.addEventListener(n, s), e(this, y).track.addEventListener(n, s);
|
|
@@ -96,19 +96,19 @@ const Ie = class Ie extends HTMLElement {
|
|
|
96
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
|
|
100
|
-
e(this,
|
|
99
|
+
const r = e(this, y).track.getBoundingClientRect(), o = e(this, y).thumb.clientWidth;
|
|
100
|
+
e(this, D).call(this, n.clientX - r.left - o / 2);
|
|
101
101
|
}), e(this, y).thumb.addEventListener("mousedown", (n) => {
|
|
102
102
|
if (n.button !== 0) return;
|
|
103
|
-
n.stopPropagation(), n.preventDefault(), g(this,
|
|
104
|
-
const
|
|
105
|
-
if (!e(this,
|
|
106
|
-
const
|
|
107
|
-
e(this,
|
|
108
|
-
}, "onMouseMove"),
|
|
109
|
-
g(this,
|
|
103
|
+
n.stopPropagation(), n.preventDefault(), g(this, $, !0), this.shiftX = n.clientX - e(this, y).thumb.getBoundingClientRect().left;
|
|
104
|
+
const r = /* @__PURE__ */ a((l) => {
|
|
105
|
+
if (!e(this, $)) return;
|
|
106
|
+
const d = e(this, y).track.getBoundingClientRect();
|
|
107
|
+
e(this, D).call(this, l.clientX - d.left - this.shiftX);
|
|
108
|
+
}, "onMouseMove"), o = /* @__PURE__ */ a(() => {
|
|
109
|
+
g(this, $, !1), s(), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", o), this.refresh();
|
|
110
110
|
}, "onMouseUp");
|
|
111
|
-
document.addEventListener("mousemove",
|
|
111
|
+
document.addEventListener("mousemove", r), document.addEventListener("mouseup", o);
|
|
112
112
|
});
|
|
113
113
|
}, "#init"));
|
|
114
114
|
}
|
|
@@ -189,286 +189,294 @@ const Ie = class Ie extends HTMLElement {
|
|
|
189
189
|
thumb: this.querySelector(".ng-scroll-thumb"),
|
|
190
190
|
left: this.querySelector(".ng-scroll-left"),
|
|
191
191
|
right: this.querySelector(".ng-scroll-right")
|
|
192
|
-
}), e(this,
|
|
192
|
+
}), e(this, re).call(this), e(this, ne).call(this), this.refresh();
|
|
193
193
|
}, "initWhenReady");
|
|
194
194
|
t();
|
|
195
195
|
}
|
|
196
196
|
disconnectedCallback() {
|
|
197
|
-
e(this,
|
|
197
|
+
e(this, z) && e(this, z).disconnect();
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
|
-
k = new WeakMap(),
|
|
201
|
-
let
|
|
202
|
-
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar",
|
|
203
|
-
var
|
|
204
|
-
const
|
|
200
|
+
k = new WeakMap(), $ = new WeakMap(), y = new WeakMap(), O = new WeakMap(), W = new WeakMap(), z = new WeakMap(), ne = new WeakMap(), D = new WeakMap(), re = new WeakMap(), a($e, "NineTableHScrollBar");
|
|
201
|
+
let Re = $e;
|
|
202
|
+
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", Re);
|
|
203
|
+
var oe, j;
|
|
204
|
+
const L = class L {
|
|
205
|
+
/**
|
|
206
|
+
* π― λ μ΄μμ λ΄μ μ¬λ¬ rawTables λ°°μ΄μ μΌκ΄λ‘ λ°μ λ¨μΌ λ§μ€ν° ν
νλ¦ΏμΌλ‘ μ¬μ μ»΄νμΌν©λλ€.
|
|
207
|
+
*/
|
|
208
|
+
static compileAll(i) {
|
|
209
|
+
return Array.isArray(i) ? i.map((t) => L.compile(t)) : [];
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* π― λ¨μΌ μλ³Έ ν
μ΄λΈμ λ°μ κΈ°λ³Έ ꡬ쑰 보μ λ° 2μ°¨μ 격μ μΈλ±μ€ μ¬μ λΆμ¬ μλ£λ λ§μ€ν° ν
μ΄λΈ λ°ν
|
|
213
|
+
*/
|
|
214
|
+
static compile(i) {
|
|
215
|
+
var n, r, o;
|
|
216
|
+
if (!i) return null;
|
|
217
|
+
const t = i.cloneNode(!0);
|
|
218
|
+
return e(n = L, oe).call(n, t), e(r = L, j).call(r, t, "thead"), e(o = L, j).call(o, t, "tbody"), Array.from(t.querySelectorAll("colgroup col")).forEach((l, d) => {
|
|
219
|
+
const h = l.getAttribute("fixed");
|
|
220
|
+
h && t.querySelectorAll(`[data-col="${d}"]`).forEach((f) => {
|
|
221
|
+
f.setAttribute("fixed", h);
|
|
222
|
+
});
|
|
223
|
+
}), t;
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
oe = new WeakMap(), j = new WeakMap(), a(L, "TableCompiler"), c(L, oe, /* @__PURE__ */ a((i) => {
|
|
227
|
+
if (!i.querySelector("colgroup")) {
|
|
228
|
+
const t = i.querySelector("tbody tr") || i.querySelector("tr"), s = t ? t.querySelectorAll("th, td").length : 1, n = document.createElement("colgroup"), r = Math.max(Math.floor(i.clientWidth / s), 100);
|
|
229
|
+
for (let o = 0; o < s; o++) {
|
|
230
|
+
const l = document.createElement("col");
|
|
231
|
+
l.setAttribute("width", r), n.appendChild(l);
|
|
232
|
+
}
|
|
233
|
+
i.prepend(n);
|
|
234
|
+
}
|
|
235
|
+
if (!i.querySelector("thead")) {
|
|
236
|
+
const t = document.createElement("thead"), s = i.querySelector("colgroup");
|
|
237
|
+
s ? s.after(t) : i.prepend(t);
|
|
238
|
+
}
|
|
239
|
+
i.classList.add("nine-table-element"), i.style.display = "table";
|
|
240
|
+
}, "#ensureTableStructure")), c(L, j, /* @__PURE__ */ a((i, t) => {
|
|
241
|
+
const s = Array.from(i.querySelectorAll(t + " tr")), n = Array.from(i.querySelectorAll(t + " th," + t + " td")), r = s.length;
|
|
242
|
+
if (r === 0 || n.length === 0) return;
|
|
243
|
+
let o = 0;
|
|
244
|
+
n.forEach((d) => {
|
|
245
|
+
o += d.colSpan || 1;
|
|
246
|
+
});
|
|
247
|
+
const l = Array.from(Array(r), () => Array(o).fill(null));
|
|
248
|
+
s.forEach((d) => {
|
|
249
|
+
const h = d.sectionRowIndex;
|
|
250
|
+
let f = 0;
|
|
251
|
+
Array.from(d.querySelectorAll("th,td")).forEach((b) => {
|
|
252
|
+
for (let w = 0; w < l[h].length; w++)
|
|
253
|
+
if (l[h][w] === null) {
|
|
254
|
+
f = w;
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
const u = b.rowSpan || 1, x = b.colSpan || 1;
|
|
258
|
+
for (let w = 0; w < u; w++)
|
|
259
|
+
for (let C = 0; C < x; C++)
|
|
260
|
+
h + w < r && f + C < o && (l[h + w][f + C] = w === 0 && C === 0 ? "1" : "0");
|
|
261
|
+
});
|
|
262
|
+
}), s.forEach((d) => {
|
|
263
|
+
const h = d.sectionRowIndex;
|
|
264
|
+
Array.from(d.querySelectorAll("th,td")).forEach((f) => {
|
|
265
|
+
for (let b = 0; b < l[h].length; b++)
|
|
266
|
+
if (l[h][b] === "1") {
|
|
267
|
+
f.dataset.col = b, l[h][b] = "0";
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
});
|
|
272
|
+
}, "#resetColIndex"));
|
|
273
|
+
let Ae = L;
|
|
274
|
+
var T, _, E, I, N, B, le, He, ae, G, ce, J;
|
|
275
|
+
const Oe = class Oe {
|
|
205
276
|
constructor(i) {
|
|
206
|
-
|
|
207
|
-
|
|
277
|
+
c(this, T);
|
|
278
|
+
c(this, _, /* @__PURE__ */ new Map());
|
|
208
279
|
// κ° μ»¨ν
μ΄λλ³ λ
립λ ν
νλ¦Ώ TR κ΄λ¦¬
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
280
|
+
c(this, E, null);
|
|
281
|
+
c(this, I, null);
|
|
282
|
+
c(this, N, 0);
|
|
283
|
+
c(this, B, 40);
|
|
213
284
|
/**
|
|
214
|
-
* π― κ°
|
|
285
|
+
* π― NineTableSheetμμ λ§μ€ν° ν
μ΄λΈμ μ λ¬λ°μ κ° μμλ³ ν
μ΄λΈ μμ± λ° ν
νλ¦Ώ μΆμΆ μΌμν
|
|
215
286
|
*/
|
|
216
|
-
|
|
217
|
-
|
|
287
|
+
// [RowManager.js μμ λ΄μ© λ°μ·]
|
|
288
|
+
v(this, "initialize", /* @__PURE__ */ a(() => {
|
|
289
|
+
g(this, E, null), e(this, _).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((t) => {
|
|
218
290
|
const s = e(this, T).querySelector(t);
|
|
219
291
|
if (!s) return;
|
|
220
292
|
const n = s.querySelector("table");
|
|
221
293
|
if (!n) return;
|
|
222
|
-
const
|
|
223
|
-
if (!
|
|
224
|
-
const l = Array.from(
|
|
225
|
-
e(this,
|
|
294
|
+
const r = n.querySelector("tbody");
|
|
295
|
+
if (!r) return;
|
|
296
|
+
const l = Array.from(r.querySelectorAll("tr")).map((d) => d.cloneNode(!0));
|
|
297
|
+
e(this, _).set(t, l);
|
|
226
298
|
});
|
|
227
299
|
const i = e(this, T).querySelector(".ng-container-body");
|
|
228
|
-
i && (e(this,
|
|
300
|
+
i && (e(this, ae).call(this, i), e(this, J).call(this));
|
|
229
301
|
}, "initialize"));
|
|
302
|
+
c(this, le, /* @__PURE__ */ a((i, t) => {
|
|
303
|
+
const s = e(this, _).get(t);
|
|
304
|
+
if (!s || s.length === 0) return;
|
|
305
|
+
const n = i.querySelector("tbody");
|
|
306
|
+
if (!n) return;
|
|
307
|
+
n.querySelectorAll("tr:not(.nodata)").forEach((l) => l.remove());
|
|
308
|
+
const r = n.querySelector("tr.nodata"), o = document.createDocumentFragment();
|
|
309
|
+
for (let l = 0; l < e(this, B); l++)
|
|
310
|
+
s.forEach((d) => {
|
|
311
|
+
o.appendChild(d.cloneNode(!0));
|
|
312
|
+
});
|
|
313
|
+
r ? r.before(o) : n.appendChild(o);
|
|
314
|
+
}, "#renderRows"));
|
|
315
|
+
/**
|
|
316
|
+
* π― λ§μ€ν° ν
μ΄λΈμ κΈ°λ°μΌλ‘ νΉμ fixed νμ
μμλ§ λ¨κΈ°κ±°λ μ κ±°νλ λΆν ν¬νΌ
|
|
317
|
+
*/
|
|
318
|
+
c(this, He, /* @__PURE__ */ a((i, t) => {
|
|
319
|
+
const s = i.cloneNode(!0);
|
|
320
|
+
return t === "left" ? s.querySelectorAll("col, th, td").forEach((n) => {
|
|
321
|
+
n.getAttribute("fixed") !== "left" && n.remove();
|
|
322
|
+
}) : t === "right" ? s.querySelectorAll("col, th, td").forEach((n) => {
|
|
323
|
+
n.getAttribute("fixed") !== "right" && n.remove();
|
|
324
|
+
}) : s.querySelectorAll("[fixed='left'], [fixed='right']").forEach((n) => n.remove()), s;
|
|
325
|
+
}, "#createSplitTable"));
|
|
230
326
|
/**
|
|
231
327
|
* π― ν
νλ¦Ώ TRλ€μ μ΄ λμ΄λ₯Ό μΈ‘μ νκ³ μΊμ±
|
|
232
328
|
*/
|
|
233
|
-
|
|
329
|
+
c(this, ae, /* @__PURE__ */ a((i) => {
|
|
234
330
|
if (e(this, E) !== null && e(this, E) > 0)
|
|
235
331
|
return e(this, E);
|
|
236
|
-
const t = e(this,
|
|
332
|
+
const t = e(this, _).get(".ng-container-body");
|
|
237
333
|
if (!t || t.length === 0) return 24;
|
|
238
334
|
const s = i.querySelector("tbody");
|
|
239
335
|
if (!s) return 24;
|
|
240
336
|
s.querySelectorAll("tr:not(.nodata)").forEach((u) => u.remove());
|
|
241
|
-
const n = s.querySelector("tr.nodata"),
|
|
337
|
+
const n = s.querySelector("tr.nodata"), r = document.createDocumentFragment();
|
|
242
338
|
t.forEach((u) => {
|
|
243
|
-
|
|
244
|
-
}), n ? n.before(
|
|
245
|
-
const
|
|
246
|
-
(l === "none" || window.getComputedStyle(
|
|
339
|
+
r.appendChild(u.cloneNode(!0));
|
|
340
|
+
}), n ? n.before(r) : s.appendChild(r);
|
|
341
|
+
const o = e(this, T), l = o.style.display, d = o.style.visibility, h = o.style.position;
|
|
342
|
+
(l === "none" || window.getComputedStyle(o).display === "none") && (o.style.display = "block", o.style.visibility = "hidden", o.style.position = "absolute");
|
|
247
343
|
let f = 0;
|
|
248
344
|
const b = s.querySelectorAll("tr:not(.nodata)");
|
|
249
345
|
return b.forEach((u) => {
|
|
250
346
|
f += u.offsetHeight || u.getBoundingClientRect().height;
|
|
251
|
-
}), b.forEach((u) => u.remove()),
|
|
347
|
+
}), b.forEach((u) => u.remove()), o.style.display = l, o.style.visibility = d, o.style.position = h, g(this, E, f > 0 ? f : 24), e(this, G).call(this), F.log(`[RowManager] Height Cached: ${e(this, E)}px | RowCount: ${e(this, B)}`), e(this, E);
|
|
252
348
|
}, "#measureAndCacheHeight"));
|
|
253
|
-
|
|
254
|
-
if (e(this,
|
|
255
|
-
const i = Math.ceil(e(this,
|
|
256
|
-
g(this,
|
|
349
|
+
c(this, G, /* @__PURE__ */ a(() => {
|
|
350
|
+
if (e(this, N) > 0 && e(this, E) > 0) {
|
|
351
|
+
const i = Math.ceil(e(this, N) / e(this, E));
|
|
352
|
+
g(this, B, i + 20);
|
|
257
353
|
} else
|
|
258
|
-
g(this,
|
|
354
|
+
g(this, B, 40);
|
|
259
355
|
}, "#updateRowCount"));
|
|
260
356
|
/**
|
|
261
357
|
* π― ResizeObserver μ€μ : μνΈ ν¬κΈ° λ³κ²½ μ ν κ°μ μ¬μ°μ λ° μ¬λ λλ§
|
|
262
358
|
*/
|
|
263
|
-
|
|
264
|
-
!e(this, T) || !(e(this, T) instanceof HTMLElement) || (g(this,
|
|
359
|
+
c(this, ce, /* @__PURE__ */ a(() => {
|
|
360
|
+
!e(this, T) || !(e(this, T) instanceof HTMLElement) || (g(this, I, new ResizeObserver((i) => {
|
|
265
361
|
for (const t of i) {
|
|
266
362
|
const s = t.target;
|
|
267
363
|
if (!s.classList.contains("active")) continue;
|
|
268
364
|
const n = t.contentRect.height;
|
|
269
365
|
if (n > 0) {
|
|
270
|
-
let
|
|
271
|
-
const
|
|
272
|
-
|
|
273
|
-
const l = Math.max(n -
|
|
274
|
-
e(this,
|
|
366
|
+
let r = 0;
|
|
367
|
+
const o = s.querySelector("thead");
|
|
368
|
+
o && (r += o.offsetHeight || o.getBoundingClientRect().height);
|
|
369
|
+
const l = Math.max(n - r, 100);
|
|
370
|
+
e(this, N) !== l && (g(this, N, l), e(this, G).call(this), e(this, E) !== null && e(this, J).call(this));
|
|
275
371
|
}
|
|
276
372
|
}
|
|
277
|
-
})), e(this,
|
|
373
|
+
})), e(this, I).observe(e(this, T)));
|
|
278
374
|
}, "#initResizeObserver"));
|
|
279
375
|
/**
|
|
280
376
|
* π― λ°λ λ° μ’μ° κ³ μ 컨ν
μ΄λ μ 체μ κ°κ°μ λ§λ ν
νλ¦Ώ ν λΌλ μ£Όμ
|
|
281
377
|
*/
|
|
282
|
-
|
|
378
|
+
c(this, J, /* @__PURE__ */ a(() => {
|
|
283
379
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
|
|
284
380
|
const t = e(this, T).querySelector(i);
|
|
285
|
-
t && t.querySelector("tbody") && e(this,
|
|
381
|
+
t && t.querySelector("tbody") && e(this, le).call(this, t, i);
|
|
286
382
|
});
|
|
287
383
|
}, "#renderAllContainers"));
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
if (!s || s.length === 0) return;
|
|
291
|
-
const n = i.querySelector("tbody");
|
|
292
|
-
if (!n) return;
|
|
293
|
-
n.querySelectorAll("tr:not(.nodata)").forEach((l) => l.remove());
|
|
294
|
-
const o = n.querySelector("tr.nodata"), r = document.createDocumentFragment();
|
|
295
|
-
for (let l = 0; l < e(this, P); l++)
|
|
296
|
-
s.forEach((c) => {
|
|
297
|
-
r.appendChild(c.cloneNode(!0));
|
|
298
|
-
});
|
|
299
|
-
o ? o.before(r) : n.appendChild(r);
|
|
300
|
-
}, "#renderRows"));
|
|
301
|
-
x(this, "destroy", /* @__PURE__ */ a(() => {
|
|
302
|
-
e(this, H) && (e(this, H).disconnect(), g(this, H, null));
|
|
384
|
+
v(this, "destroy", /* @__PURE__ */ a(() => {
|
|
385
|
+
e(this, I) && (e(this, I).disconnect(), g(this, I, null));
|
|
303
386
|
}, "destroy"));
|
|
304
|
-
g(this, T, i), e(this,
|
|
387
|
+
g(this, T, i), e(this, ce).call(this);
|
|
305
388
|
}
|
|
306
389
|
getRowHeight() {
|
|
307
390
|
return e(this, E);
|
|
308
391
|
}
|
|
309
392
|
templateLength(i = ".ng-container-body") {
|
|
310
393
|
var t;
|
|
311
|
-
return ((t = e(this,
|
|
394
|
+
return ((t = e(this, _).get(i)) == null ? void 0 : t.length) || 1;
|
|
312
395
|
}
|
|
313
396
|
};
|
|
314
|
-
T = new WeakMap(),
|
|
315
|
-
let
|
|
316
|
-
var he, Q;
|
|
317
|
-
const L = class L {
|
|
318
|
-
/**
|
|
319
|
-
* π― λ μ΄μμ λ΄μ μ¬λ¬ rawTables λ°°μ΄μ μΌκ΄λ‘ λ°μ λ¨μΌ λ§μ€ν° ν
νλ¦ΏμΌλ‘ μ¬μ μ»΄νμΌν©λλ€.
|
|
320
|
-
*/
|
|
321
|
-
static compileAll(i) {
|
|
322
|
-
return Array.isArray(i) ? i.map((t) => L.compile(t)) : [];
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* π― λ¨μΌ μλ³Έ ν
μ΄λΈμ λ°μ κΈ°λ³Έ ꡬ쑰 보μ λ° 2μ°¨μ 격μ μΈλ±μ€ μ¬μ λΆμ¬ μλ£λ λ§μ€ν° ν
μ΄λΈ λ°ν
|
|
326
|
-
*/
|
|
327
|
-
static compile(i) {
|
|
328
|
-
var n, o, r;
|
|
329
|
-
if (!i) return null;
|
|
330
|
-
const t = i.cloneNode(!0);
|
|
331
|
-
return e(n = L, he).call(n, t), e(o = L, Q).call(o, t, "thead"), e(r = L, Q).call(r, t, "tbody"), Array.from(t.querySelectorAll("colgroup col")).forEach((l, c) => {
|
|
332
|
-
const h = l.getAttribute("fixed");
|
|
333
|
-
h && t.querySelectorAll(`[data-col="${c}"]`).forEach((f) => {
|
|
334
|
-
f.setAttribute("fixed", h);
|
|
335
|
-
});
|
|
336
|
-
}), t;
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
he = new WeakMap(), Q = new WeakMap(), a(L, "TableCompiler"), d(L, he, /* @__PURE__ */ a((i) => {
|
|
340
|
-
if (!i.querySelector("colgroup")) {
|
|
341
|
-
const t = i.querySelector("tbody tr") || i.querySelector("tr"), s = t ? t.querySelectorAll("th, td").length : 1, n = document.createElement("colgroup"), o = Math.max(Math.floor(i.clientWidth / s), 100);
|
|
342
|
-
for (let r = 0; r < s; r++) {
|
|
343
|
-
const l = document.createElement("col");
|
|
344
|
-
l.setAttribute("width", o), n.appendChild(l);
|
|
345
|
-
}
|
|
346
|
-
i.prepend(n);
|
|
347
|
-
}
|
|
348
|
-
if (!i.querySelector("thead")) {
|
|
349
|
-
const t = document.createElement("thead"), s = i.querySelector("colgroup");
|
|
350
|
-
s ? s.after(t) : i.prepend(t);
|
|
351
|
-
}
|
|
352
|
-
i.classList.add("nine-table-element"), i.style.display = "table";
|
|
353
|
-
}, "#ensureTableStructure")), d(L, Q, /* @__PURE__ */ a((i, t) => {
|
|
354
|
-
const s = Array.from(i.querySelectorAll(t + " tr")), n = Array.from(i.querySelectorAll(t + " th," + t + " td")), o = s.length;
|
|
355
|
-
if (o === 0 || n.length === 0) return;
|
|
356
|
-
let r = 0;
|
|
357
|
-
n.forEach((c) => {
|
|
358
|
-
r += c.colSpan || 1;
|
|
359
|
-
});
|
|
360
|
-
const l = Array.from(Array(o), () => Array(r).fill(null));
|
|
361
|
-
s.forEach((c) => {
|
|
362
|
-
const h = c.sectionRowIndex;
|
|
363
|
-
let f = 0;
|
|
364
|
-
Array.from(c.querySelectorAll("th,td")).forEach((b) => {
|
|
365
|
-
for (let w = 0; w < l[h].length; w++)
|
|
366
|
-
if (l[h][w] === null) {
|
|
367
|
-
f = w;
|
|
368
|
-
break;
|
|
369
|
-
}
|
|
370
|
-
const u = b.rowSpan || 1, v = b.colSpan || 1;
|
|
371
|
-
for (let w = 0; w < u; w++)
|
|
372
|
-
for (let _ = 0; _ < v; _++)
|
|
373
|
-
h + w < o && f + _ < r && (l[h + w][f + _] = w === 0 && _ === 0 ? "1" : "0");
|
|
374
|
-
});
|
|
375
|
-
}), s.forEach((c) => {
|
|
376
|
-
const h = c.sectionRowIndex;
|
|
377
|
-
Array.from(c.querySelectorAll("th,td")).forEach((f) => {
|
|
378
|
-
for (let b = 0; b < l[h].length; b++)
|
|
379
|
-
if (l[h][b] === "1") {
|
|
380
|
-
f.dataset.col = b, l[h][b] = "0";
|
|
381
|
-
break;
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
|
-
});
|
|
385
|
-
}, "#resetColIndex"));
|
|
386
|
-
let Re = L;
|
|
387
|
-
var C, Y, U, ee, de, fe;
|
|
397
|
+
T = new WeakMap(), _ = new WeakMap(), E = new WeakMap(), I = new WeakMap(), N = new WeakMap(), B = new WeakMap(), le = new WeakMap(), He = new WeakMap(), ae = new WeakMap(), G = new WeakMap(), ce = new WeakMap(), J = new WeakMap(), a(Oe, "RowManager");
|
|
398
|
+
let qe = Oe;
|
|
399
|
+
var X, Y, he, de, fe, Q, ue, ge;
|
|
388
400
|
const Z = class Z extends HTMLElement {
|
|
389
401
|
constructor() {
|
|
390
402
|
super();
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
}),
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}
|
|
421
|
-
n && n.addEventListener("scroll", () => {
|
|
422
|
-
var r;
|
|
423
|
-
(r = this.querySelector("nine-table-hscrollbar")) == null || r.refresh();
|
|
403
|
+
c(this, X, null);
|
|
404
|
+
c(this, Y);
|
|
405
|
+
c(this, he, /* @__PURE__ */ a(() => {
|
|
406
|
+
[
|
|
407
|
+
{ selector: ".ng-container-body", type: null },
|
|
408
|
+
{ selector: ".ng-container-left", type: "left" },
|
|
409
|
+
{ selector: ".ng-container-right", type: "right" }
|
|
410
|
+
].forEach(({ selector: s, type: n }) => {
|
|
411
|
+
const r = this.querySelector(s);
|
|
412
|
+
if (!r) return;
|
|
413
|
+
const o = e(this, fe).call(this, e(this, X), n);
|
|
414
|
+
r.innerHTML = "", r.appendChild(o);
|
|
415
|
+
});
|
|
416
|
+
}, "#renderSplitContainers"));
|
|
417
|
+
c(this, de, /* @__PURE__ */ a(() => {
|
|
418
|
+
["left", "right"].forEach((t) => {
|
|
419
|
+
const s = this.querySelector(`.ng-container-${t}`), n = s == null ? void 0 : s.querySelector("table");
|
|
420
|
+
if (!s || !n) return;
|
|
421
|
+
let r = 0;
|
|
422
|
+
n.querySelectorAll("col").forEach((o) => {
|
|
423
|
+
const l = parseInt(o.getAttribute("width"), 10);
|
|
424
|
+
isNaN(r) || (r += l);
|
|
425
|
+
}), s.style.flex = `0 0 ${r}px`, s.style.width = `${r}px`;
|
|
426
|
+
});
|
|
427
|
+
}, "#updateContainerWidths"));
|
|
428
|
+
v(this, "generate", /* @__PURE__ */ a((t) => {
|
|
429
|
+
t && (g(this, X, Ae.compile(t)), e(this, X).style.display = "table", e(this, he).call(this), e(this, Y).initialize(), e(this, de).call(this), bodyContainer && bodyContainer.addEventListener("scroll", () => {
|
|
430
|
+
var s;
|
|
431
|
+
(s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
|
|
424
432
|
}), setTimeout(() => {
|
|
425
|
-
var
|
|
426
|
-
e(this,
|
|
427
|
-
}, 0);
|
|
433
|
+
var s;
|
|
434
|
+
e(this, Q).call(this), (s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
|
|
435
|
+
}, 0));
|
|
428
436
|
}, "generate"));
|
|
429
437
|
/**
|
|
430
438
|
* π― λ§μ€ν° ν
μ΄λΈμ κΈ°λ°μΌλ‘ νΉμ fixed νμ
μμλ§ λ¨κΈ°λ λΆν ν¬νΌ
|
|
431
439
|
*/
|
|
432
|
-
|
|
440
|
+
c(this, fe, /* @__PURE__ */ a((t, s) => {
|
|
433
441
|
const n = t.cloneNode(!0);
|
|
434
|
-
return s === "left" ? n.querySelectorAll("col, th, td").forEach((
|
|
435
|
-
|
|
436
|
-
}) : s === "right" ? n.querySelectorAll("col, th, td").forEach((
|
|
437
|
-
|
|
438
|
-
}) : n.querySelectorAll("[fixed=left], [fixed=right]").forEach((
|
|
439
|
-
|
|
442
|
+
return s === "left" ? n.querySelectorAll("col, th, td").forEach((r) => {
|
|
443
|
+
r.getAttribute("fixed") !== "left" && r.remove();
|
|
444
|
+
}) : s === "right" ? n.querySelectorAll("col, th, td").forEach((r) => {
|
|
445
|
+
r.getAttribute("fixed") !== "right" && r.remove();
|
|
446
|
+
}) : n.querySelectorAll("[fixed=left], [fixed=right]").forEach((r) => {
|
|
447
|
+
r.remove();
|
|
440
448
|
}), n;
|
|
441
449
|
}, "#createSplitTable"));
|
|
442
|
-
|
|
443
|
-
|
|
450
|
+
v(this, "getRowHeight", /* @__PURE__ */ a(() => e(this, Y).getRowHeight(), "getRowHeight"));
|
|
451
|
+
v(this, "scrollToX", /* @__PURE__ */ a((t) => {
|
|
444
452
|
const s = this.querySelector(".ng-container-body");
|
|
445
453
|
s && (s.scrollLeft = t);
|
|
446
454
|
}, "scrollToX"));
|
|
447
|
-
|
|
455
|
+
v(this, "scrollToY", /* @__PURE__ */ a((t) => {
|
|
448
456
|
const s = this.querySelector(".ng-container-body");
|
|
449
457
|
s && (s.scrollTop = t);
|
|
450
458
|
}, "scrollToY"));
|
|
451
|
-
|
|
459
|
+
c(this, Q, /* @__PURE__ */ a(() => {
|
|
452
460
|
var h, f, b;
|
|
453
461
|
const t = this.querySelector(".ng-container-left table"), s = this.querySelector(".ng-container-body table"), n = this.querySelector(".ng-container-right table");
|
|
454
462
|
if (!s) return;
|
|
455
|
-
const
|
|
456
|
-
for (let u = 0; u <
|
|
457
|
-
const
|
|
458
|
-
((h =
|
|
459
|
-
((f =
|
|
463
|
+
const r = t ? Array.from(t.querySelectorAll("tr")) : [], o = Array.from(s.querySelectorAll("tr")), l = n ? Array.from(n.querySelectorAll("tr")) : [], d = Math.max(r.length, o.length, l.length);
|
|
464
|
+
for (let u = 0; u < d; u++) {
|
|
465
|
+
const x = [
|
|
466
|
+
((h = r[u]) == null ? void 0 : h.getBoundingClientRect().height) || 0,
|
|
467
|
+
((f = o[u]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
|
|
460
468
|
((b = l[u]) == null ? void 0 : b.getBoundingClientRect().height) || 0
|
|
461
|
-
], w = Math.max(...
|
|
462
|
-
w > 0 && (
|
|
469
|
+
], w = Math.max(...x);
|
|
470
|
+
w > 0 && (r[u] && (r[u].style.height = `${w}px`), o[u] && (o[u].style.height = `${w}px`), l[u] && (l[u].style.height = `${w}px`));
|
|
463
471
|
}
|
|
464
472
|
}, "#syncRowHeights"));
|
|
465
|
-
|
|
466
|
-
e(this,
|
|
473
|
+
c(this, ue, /* @__PURE__ */ a(() => {
|
|
474
|
+
e(this, ge).call(this), new MutationObserver((t) => {
|
|
467
475
|
for (const s of t)
|
|
468
|
-
s.attributeName === "class" && this.classList.contains("active") && e(this,
|
|
476
|
+
s.attributeName === "class" && this.classList.contains("active") && e(this, Q).call(this);
|
|
469
477
|
}).observe(this, { attributes: !0 });
|
|
470
478
|
}, "#init"));
|
|
471
|
-
|
|
479
|
+
c(this, ge, /* @__PURE__ */ a(() => {
|
|
472
480
|
const t = Z.SCROLLBAR_SIZE;
|
|
473
481
|
this.innerHTML = `
|
|
474
482
|
<style>
|
|
@@ -592,91 +600,91 @@ const Z = class Z extends HTMLElement {
|
|
|
592
600
|
</div>
|
|
593
601
|
`;
|
|
594
602
|
}, "#render"));
|
|
595
|
-
g(this, Y, new
|
|
603
|
+
g(this, Y, new qe(this));
|
|
596
604
|
}
|
|
597
605
|
connectedCallback() {
|
|
598
|
-
e(this,
|
|
606
|
+
e(this, ue).call(this);
|
|
599
607
|
}
|
|
600
608
|
disconnectedCallback() {
|
|
601
|
-
this.innerHTML = "",
|
|
609
|
+
this.innerHTML = "", F.log("NineTableSheet destroyed.");
|
|
602
610
|
}
|
|
603
611
|
};
|
|
604
|
-
|
|
605
|
-
let
|
|
606
|
-
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet",
|
|
607
|
-
var
|
|
608
|
-
const
|
|
612
|
+
X = new WeakMap(), Y = new WeakMap(), he = new WeakMap(), de = new WeakMap(), fe = new WeakMap(), Q = new WeakMap(), ue = new WeakMap(), ge = new WeakMap(), a(Z, "NineTableSheet"), v(Z, "SCROLLBAR_SIZE", 16);
|
|
613
|
+
let se = Z;
|
|
614
|
+
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", se);
|
|
615
|
+
var be, ee;
|
|
616
|
+
const We = class We extends HTMLElement {
|
|
609
617
|
constructor() {
|
|
610
618
|
super();
|
|
611
|
-
|
|
619
|
+
c(this, be, /* @__PURE__ */ a(() => {
|
|
612
620
|
var t;
|
|
613
621
|
(t = this.querySelector(".nine-tab-bar")) == null || t.addEventListener("click", (s) => {
|
|
614
|
-
var
|
|
615
|
-
const n = s.ctrlKey || s.metaKey || s.shiftKey,
|
|
616
|
-
e(this,
|
|
617
|
-
}), e(this,
|
|
622
|
+
var o;
|
|
623
|
+
const n = s.ctrlKey || s.metaKey || s.shiftKey, r = parseInt((o = s.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
|
|
624
|
+
e(this, ee).call(this, r, n);
|
|
625
|
+
}), e(this, ee).call(this, 0, !1);
|
|
618
626
|
}, "#init"));
|
|
619
|
-
|
|
627
|
+
c(this, ee, /* @__PURE__ */ a((t, s = !1) => {
|
|
620
628
|
const n = /* @__PURE__ */ a(() => {
|
|
621
629
|
const f = Array.from(this.querySelectorAll("nine-table-sheet"));
|
|
622
|
-
Array.from(this.querySelectorAll("nine-splitter")).forEach((
|
|
623
|
-
const u = f.filter((
|
|
624
|
-
u.length < 2 || u.forEach((
|
|
625
|
-
const w = parseInt(
|
|
626
|
-
|
|
630
|
+
Array.from(this.querySelectorAll("nine-splitter")).forEach((x) => x.style.setProperty("display", "none"));
|
|
631
|
+
const u = f.filter((x) => x.classList.contains("active"));
|
|
632
|
+
u.length < 2 || u.forEach((x) => {
|
|
633
|
+
const w = parseInt(x.getAttribute("data-index"), 10), C = this.querySelector(`nine-splitter[data-split-index="${w}"]`), Pe = f[w + 1];
|
|
634
|
+
C && Pe && Pe.classList.contains("active") && C.style.setProperty("display", "flex");
|
|
627
635
|
});
|
|
628
|
-
}, "updateSplitters"),
|
|
636
|
+
}, "updateSplitters"), r = this.querySelector(".nine-tab-bar"), o = this.querySelector("nine-table-sheets-body"), l = r.querySelectorAll(".nine-tab-item"), d = o.querySelectorAll("nine-table-sheet");
|
|
629
637
|
if (!l[t]) return;
|
|
630
638
|
if (!s)
|
|
631
639
|
l.forEach((f, b) => {
|
|
632
640
|
f.classList.toggle("active", b === t);
|
|
633
|
-
}),
|
|
641
|
+
}), d.forEach((f, b) => {
|
|
634
642
|
const u = b === t;
|
|
635
643
|
f.classList.toggle("active", u), f.style.flex = u ? "1 1 100%" : "";
|
|
636
644
|
});
|
|
637
645
|
else {
|
|
638
|
-
const f = l[t], b =
|
|
646
|
+
const f = l[t], b = r.querySelectorAll(".nine-tab-item.active");
|
|
639
647
|
if (f.classList.contains("active") && b.length <= 1)
|
|
640
648
|
return;
|
|
641
649
|
f.classList.toggle("active");
|
|
642
|
-
const u =
|
|
650
|
+
const u = o.querySelector(`nine-table-sheet[data-index="${t}"]`);
|
|
643
651
|
u && (u.classList.toggle("active"), u.classList.contains("active") || (u.style.flex = ""));
|
|
644
652
|
}
|
|
645
|
-
const h =
|
|
653
|
+
const h = o.querySelectorAll("nine-table-sheet.active");
|
|
646
654
|
h == null || h.forEach((f) => {
|
|
647
655
|
f.style.flex = h.length > 1 ? "1 1 0%" : "1 1 100%";
|
|
648
656
|
}), n();
|
|
649
657
|
}, "#switchSheet"));
|
|
650
658
|
}
|
|
651
659
|
connectedCallback() {
|
|
652
|
-
e(this,
|
|
660
|
+
e(this, be).call(this);
|
|
653
661
|
}
|
|
654
662
|
};
|
|
655
|
-
|
|
656
|
-
let
|
|
657
|
-
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets",
|
|
658
|
-
var S,
|
|
659
|
-
const
|
|
663
|
+
be = new WeakMap(), ee = new WeakMap(), a(We, "NineTableSheets");
|
|
664
|
+
let Te = We;
|
|
665
|
+
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Te);
|
|
666
|
+
var S, ye, te, pe;
|
|
667
|
+
const ze = class ze {
|
|
660
668
|
constructor(i) {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
e(this,
|
|
669
|
+
c(this, S);
|
|
670
|
+
c(this, ye, /* @__PURE__ */ a(() => {
|
|
671
|
+
e(this, pe).call(this), new ResizeObserver((i) => {
|
|
664
672
|
for (let t of i)
|
|
665
|
-
e(this, S).getAttribute("auto-height") === "true" && e(this,
|
|
673
|
+
e(this, S).getAttribute("auto-height") === "true" && e(this, te).call(this);
|
|
666
674
|
}).observe(e(this, S));
|
|
667
675
|
}, "#init"));
|
|
668
|
-
|
|
669
|
-
var
|
|
676
|
+
c(this, te, /* @__PURE__ */ a(() => {
|
|
677
|
+
var d, h;
|
|
670
678
|
const i = Array.from(e(this, S).shadowRoot.querySelectorAll("nine-table-sheet.active"));
|
|
671
679
|
if (i.length === 0) return;
|
|
672
|
-
const t = parseInt(e(this, S).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), n = (
|
|
680
|
+
const t = parseInt(e(this, S).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), n = (d = e(this, S).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : d.getBoundingClientRect().height, r = (h = e(this, S).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : h.getBoundingClientRect().height, o = se.SCROLLBAR_SIZE, l = t * s + n + r + o;
|
|
673
681
|
e(this, S).style.height = `${l}px`;
|
|
674
682
|
}, "#applyAutoHeight"));
|
|
675
|
-
|
|
676
|
-
const t = Array.from(e(this, S).children).filter((
|
|
683
|
+
c(this, pe, /* @__PURE__ */ a(() => {
|
|
684
|
+
const t = Array.from(e(this, S).children).filter((d) => d.tagName === "TABLE"), s = e(this, S).getAttribute("auto-height") === "true", n = t.length, r = t.map((d, h) => {
|
|
677
685
|
const b = `<nine-table-sheet class="${h === 0 ? "active" : ""}" data-index="${h}"></nine-table-sheet>`, u = h < n - 1 ? `<nine-splitter class="h" data-split-index="${h}"></nine-splitter>` : "";
|
|
678
686
|
return b + u;
|
|
679
|
-
}).join(""),
|
|
687
|
+
}).join(""), o = t.map((d, h) => `<div class="nine-tab-item ${h === 0 ? "active" : ""}" data-index="${h}">Sheet ${h + 1}</div>`).join("");
|
|
680
688
|
e(this, S).shadowRoot.innerHTML = `
|
|
681
689
|
<style>
|
|
682
690
|
:host {
|
|
@@ -766,9 +774,9 @@ const $e = class $e {
|
|
|
766
774
|
<nine-table-body>
|
|
767
775
|
<nine-table-summary></nine-table-summary>
|
|
768
776
|
<nine-table-sheets>
|
|
769
|
-
<nine-table-sheets-body>${
|
|
777
|
+
<nine-table-sheets-body>${r}</nine-table-sheets-body>
|
|
770
778
|
<nine-table-sheets-footer>
|
|
771
|
-
<div class="nine-tab-bar">${
|
|
779
|
+
<div class="nine-tab-bar">${o}</div>
|
|
772
780
|
<div class="sheets-counter">Total : <span id="row-count">0</span></div>
|
|
773
781
|
</nine-table-sheets-footer>
|
|
774
782
|
</nine-table-sheets>
|
|
@@ -777,159 +785,159 @@ const $e = class $e {
|
|
|
777
785
|
<nine-table-footer></nine-table-footer>
|
|
778
786
|
`;
|
|
779
787
|
const l = e(this, S).shadowRoot.querySelectorAll("nine-table-sheet");
|
|
780
|
-
l == null || l.forEach((
|
|
788
|
+
l == null || l.forEach((d, h) => {
|
|
781
789
|
t[h] && setTimeout(() => {
|
|
782
|
-
|
|
790
|
+
d.generate(t[h]), s && e(this, te).call(this);
|
|
783
791
|
});
|
|
784
792
|
});
|
|
785
793
|
}, "#render"));
|
|
786
|
-
g(this, S, i), e(this,
|
|
794
|
+
g(this, S, i), e(this, ye).call(this);
|
|
787
795
|
}
|
|
788
796
|
};
|
|
789
|
-
S = new WeakMap(),
|
|
790
|
-
let
|
|
791
|
-
var
|
|
792
|
-
const
|
|
797
|
+
S = new WeakMap(), ye = new WeakMap(), te = new WeakMap(), pe = new WeakMap(), a(ze, "LayoutManager");
|
|
798
|
+
let ke = ze;
|
|
799
|
+
var H, P;
|
|
800
|
+
const De = class De {
|
|
793
801
|
constructor(i) {
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
g(this,
|
|
802
|
+
c(this, H);
|
|
803
|
+
c(this, P, -1);
|
|
804
|
+
v(this, "count", /* @__PURE__ */ a(() => e(this, H).rawRecords.length, "count"));
|
|
805
|
+
g(this, H, i);
|
|
798
806
|
}
|
|
799
807
|
get at() {
|
|
800
|
-
return e(this,
|
|
808
|
+
return e(this, P);
|
|
801
809
|
}
|
|
802
810
|
set at(i) {
|
|
803
811
|
var s, n;
|
|
804
|
-
g(this,
|
|
805
|
-
const t = ((n = (s = e(this,
|
|
806
|
-
t && !t.querySelector(`tbody.bindable tr[data-row="${e(this,
|
|
807
|
-
var
|
|
808
|
-
(
|
|
812
|
+
g(this, P, parseInt(i, 10));
|
|
813
|
+
const t = ((n = (s = e(this, H).owner).querySelector) == null ? void 0 : n.call(s, ".ng-container-body")) || e(this, H).owner.body;
|
|
814
|
+
t && !t.querySelector(`tbody.bindable tr[data-row="${e(this, P)}"]`) && setTimeout(() => {
|
|
815
|
+
var r, o;
|
|
816
|
+
(o = (r = e(this, H).owner).scrollTo_V1) == null || o.call(r, e(this, P));
|
|
809
817
|
});
|
|
810
818
|
}
|
|
811
819
|
};
|
|
812
|
-
|
|
813
|
-
let
|
|
814
|
-
var R, m, A,
|
|
820
|
+
H = new WeakMap(), P = new WeakMap(), a(De, "ngRow");
|
|
821
|
+
let Le = De;
|
|
822
|
+
var R, m, A, U, me, M, we, ie, ve, xe, K;
|
|
815
823
|
const q = class q {
|
|
816
824
|
constructor(i, t) {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
g(this,
|
|
825
|
+
c(this, R);
|
|
826
|
+
c(this, m);
|
|
827
|
+
c(this, A, []);
|
|
828
|
+
c(this, U, []);
|
|
829
|
+
c(this, me, 0);
|
|
830
|
+
c(this, M, []);
|
|
831
|
+
c(this, we, /* @__PURE__ */ a(() => {
|
|
832
|
+
g(this, M, []);
|
|
825
833
|
const i = e(this, R).template || [];
|
|
826
834
|
Array.from(i).forEach((t) => {
|
|
827
835
|
var s;
|
|
828
|
-
e(this,
|
|
836
|
+
e(this, M).push(((s = t.getBoundingClientRect) == null ? void 0 : s.call(t).height) || 24);
|
|
829
837
|
}), (e(this, m).rawRecords || []).forEach((t) => {
|
|
830
|
-
t.__ng || (t.__ng = e(this,
|
|
838
|
+
t.__ng || (t.__ng = e(this, ie).call(this)), t.__ng.height = e(this, M).slice();
|
|
831
839
|
});
|
|
832
840
|
}, "#initialize"));
|
|
833
|
-
|
|
841
|
+
v(this, "set", /* @__PURE__ */ a((i) => {
|
|
834
842
|
this.clear(), this.add(i, !1);
|
|
835
843
|
}, "set"));
|
|
836
|
-
|
|
844
|
+
c(this, ie, /* @__PURE__ */ a(() => ({
|
|
837
845
|
rowState: q.ROW_STATE.EMPTY,
|
|
838
846
|
deleted: !1,
|
|
839
847
|
filtered: !1,
|
|
840
|
-
height: e(this,
|
|
848
|
+
height: e(this, M).slice(),
|
|
841
849
|
o: {},
|
|
842
850
|
c: {},
|
|
843
|
-
_: [0, 0, 0, 0, q.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this,
|
|
851
|
+
_: [0, 0, 0, 0, q.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, M).slice(), -1, {}, {}]
|
|
844
852
|
}), "#getDefaultMeta"));
|
|
845
|
-
|
|
846
|
-
g(this, A, []), g(this,
|
|
853
|
+
v(this, "reset", /* @__PURE__ */ a(() => {
|
|
854
|
+
g(this, A, []), g(this, U, []);
|
|
847
855
|
}, "reset"));
|
|
848
|
-
|
|
856
|
+
v(this, "clear", /* @__PURE__ */ a(() => {
|
|
849
857
|
var i;
|
|
850
|
-
e(this, m).rawRecords = [], g(this, A, []), g(this,
|
|
858
|
+
e(this, m).rawRecords = [], g(this, A, []), g(this, U, []), (i = e(this, m).viewRecords) != null && i.reset && e(this, m).viewRecords.reset();
|
|
851
859
|
}, "clear"));
|
|
852
|
-
|
|
860
|
+
c(this, ve, /* @__PURE__ */ a((i) => {
|
|
853
861
|
var n;
|
|
854
862
|
Array.isArray(i) || (i = [i]);
|
|
855
863
|
const t = typeof ((n = e(this, R).fields) == null ? void 0 : n.get) == "function" ? e(this, R).fields.get() : Object.keys(i[0] || {}), s = [];
|
|
856
|
-
return i.forEach((
|
|
857
|
-
const
|
|
864
|
+
return i.forEach((r) => {
|
|
865
|
+
const o = { v: [] };
|
|
858
866
|
t.forEach((l) => {
|
|
859
|
-
|
|
860
|
-
}), s.push(
|
|
867
|
+
o.v.push(r[l] !== void 0 && r[l] !== null ? r[l] : "");
|
|
868
|
+
}), s.push(o);
|
|
861
869
|
}), s;
|
|
862
870
|
}, "#json2Array"));
|
|
863
|
-
|
|
864
|
-
t.__ng = e(this,
|
|
871
|
+
c(this, xe, /* @__PURE__ */ a((i) => (Array.isArray(i) || (i = [i]), i.forEach((t) => {
|
|
872
|
+
t.__ng = e(this, ie).call(this), t.__ng.rowid = this.nextId, t.__ng.rowState = q.ROW_STATE.INSERT, t.__ng._[0] = t.__ng.rowid;
|
|
865
873
|
}), i), "#defaultInsert"));
|
|
866
|
-
|
|
867
|
-
var
|
|
874
|
+
v(this, "add", /* @__PURE__ */ a((i, t = !0) => {
|
|
875
|
+
var r;
|
|
868
876
|
i === void 0 && (i = {});
|
|
869
|
-
const s = e(this,
|
|
870
|
-
e(this, m).rawRecords = e(this, m).rawRecords.concat(e(this,
|
|
877
|
+
const s = e(this, ve).call(this, i);
|
|
878
|
+
e(this, m).rawRecords = e(this, m).rawRecords.concat(e(this, xe).call(this, s)), this.resetRecords();
|
|
871
879
|
const n = this.count() - 1;
|
|
872
|
-
return t || s.forEach((
|
|
873
|
-
const
|
|
874
|
-
|
|
875
|
-
}), (
|
|
880
|
+
return t || s.forEach((o, l) => {
|
|
881
|
+
const d = e(this, m).rawRecords[n - l];
|
|
882
|
+
d && (d.__ng.rowState = q.ROW_STATE.EMPTY);
|
|
883
|
+
}), (r = e(this, m).viewRecords) != null && r.reset && e(this, m).viewRecords.reset(), n;
|
|
876
884
|
}, "add"));
|
|
877
|
-
|
|
885
|
+
v(this, "delete", /* @__PURE__ */ a((i) => {
|
|
878
886
|
var s;
|
|
879
887
|
let t = [];
|
|
880
|
-
Array.isArray(i) ? t = i : typeof i > "u" ? t = [e(this, m).owner.row.at] : t = [parseInt(i, 10)], t.sort((n,
|
|
888
|
+
Array.isArray(i) ? t = i : typeof i > "u" ? t = [e(this, m).owner.row.at] : t = [parseInt(i, 10)], t.sort((n, r) => r - n).forEach((n) => {
|
|
881
889
|
if (e(this, A)[n]) {
|
|
882
|
-
const
|
|
883
|
-
e(this, A)[n].__ng.rowState === q.ROW_STATE.INSERT ? e(this, m).rawRecords = e(this, m).rawRecords.filter((
|
|
884
|
-
|
|
890
|
+
const r = e(this, A)[n].__ng.rowid;
|
|
891
|
+
e(this, A)[n].__ng.rowState === q.ROW_STATE.INSERT ? e(this, m).rawRecords = e(this, m).rawRecords.filter((o) => o.__ng.rowid !== r) : e(this, m).rawRecords.forEach((o) => {
|
|
892
|
+
o.__ng.rowid === r && (o.__ng.deleted = !0, o.__ng.rowState = q.ROW_STATE.DELETE);
|
|
885
893
|
});
|
|
886
894
|
}
|
|
887
895
|
}), this.resetRecords(), (s = e(this, m).viewRecords) != null && s.reset && e(this, m).viewRecords.reset();
|
|
888
896
|
}, "delete"));
|
|
889
|
-
|
|
890
|
-
var
|
|
897
|
+
v(this, "setValue", /* @__PURE__ */ a((i, t, s) => {
|
|
898
|
+
var d;
|
|
891
899
|
i = parseInt(i, 10);
|
|
892
|
-
const
|
|
893
|
-
if (
|
|
894
|
-
const
|
|
895
|
-
if (!
|
|
896
|
-
const l =
|
|
897
|
-
l !== s &&
|
|
900
|
+
const r = (typeof ((d = e(this, R).fields) == null ? void 0 : d.get) == "function" ? e(this, R).fields.get() : []).indexOf(t);
|
|
901
|
+
if (r < 0) return;
|
|
902
|
+
const o = this.getValidData()[i];
|
|
903
|
+
if (!o) return;
|
|
904
|
+
const l = o.v[r];
|
|
905
|
+
l !== s && o.__ng.rowState !== q.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(t) || (o.__ng.o[t] = l), o.__ng.rowState = q.ROW_STATE.UPDATE), o.v[r] = s, e(this, m).owner.refreshData && e(this, m).owner.refreshData(i);
|
|
898
906
|
}, "setValue"));
|
|
899
|
-
|
|
900
|
-
g(this,
|
|
907
|
+
v(this, "resetRecords", /* @__PURE__ */ a(() => {
|
|
908
|
+
g(this, U, e(this, m).rawRecords.filter((i) => !i.__ng.deleted)), g(this, A, e(this, m).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), e(this, m).rawRecords.forEach((i, t) => {
|
|
901
909
|
i.__ng.rowidx = t;
|
|
902
910
|
}), e(this, A).forEach((i, t) => {
|
|
903
911
|
i.__ng.i = t;
|
|
904
912
|
});
|
|
905
913
|
}, "resetRecords"));
|
|
906
|
-
|
|
907
|
-
|
|
914
|
+
v(this, "getValidData", /* @__PURE__ */ a(() => (e(this, A).length === 0 && e(this, m).rawRecords.length > 0 && this.resetRecords(), e(this, A)), "getValidData"));
|
|
915
|
+
c(this, K, /* @__PURE__ */ a((i) => {
|
|
908
916
|
var s;
|
|
909
917
|
if (!i) return i;
|
|
910
918
|
const t = typeof ((s = e(this, R).fields) == null ? void 0 : s.get) == "function" ? e(this, R).fields.get() : [];
|
|
911
919
|
return Array.isArray(i) ? i.filter((n) => !n.__ng.deleted).map((n) => {
|
|
912
|
-
const
|
|
913
|
-
return t.forEach((
|
|
914
|
-
o
|
|
915
|
-
}),
|
|
920
|
+
const r = {};
|
|
921
|
+
return t.forEach((o, l) => {
|
|
922
|
+
r[o] = n.v ? n.v[l] : n[o];
|
|
923
|
+
}), r.__ng = n.__ng, r;
|
|
916
924
|
}) : i;
|
|
917
925
|
}, "#conv2"));
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
var
|
|
926
|
+
v(this, "count", /* @__PURE__ */ a(() => this.getValidData().length, "count"));
|
|
927
|
+
v(this, "get", /* @__PURE__ */ a((i, t) => {
|
|
928
|
+
var r;
|
|
921
929
|
const s = this.getValidData();
|
|
922
930
|
if (!s || s.length <= 0) return;
|
|
923
931
|
if (i == null) return e(this, K).call(this, s);
|
|
924
932
|
if (i < 0 || i >= s.length) return null;
|
|
925
|
-
const n = typeof ((
|
|
933
|
+
const n = typeof ((r = e(this, R).fields) == null ? void 0 : r.get) == "function" ? e(this, R).fields.get() : [];
|
|
926
934
|
if (t != null) {
|
|
927
|
-
const
|
|
928
|
-
return
|
|
935
|
+
const o = n.indexOf(t);
|
|
936
|
+
return o >= 0 ? s[i].v[o] : null;
|
|
929
937
|
}
|
|
930
938
|
return e(this, K).call(this, s[i]);
|
|
931
939
|
}, "get"));
|
|
932
|
-
g(this, R, i), g(this, m, t), e(this,
|
|
940
|
+
g(this, R, i), g(this, m, t), e(this, we).call(this);
|
|
933
941
|
}
|
|
934
942
|
get source() {
|
|
935
943
|
return e(this, K).call(this, e(this, m).rawRecords);
|
|
@@ -938,7 +946,7 @@ const q = class q {
|
|
|
938
946
|
this.clear(), this.add(i, !1);
|
|
939
947
|
}
|
|
940
948
|
get nextId() {
|
|
941
|
-
return ++
|
|
949
|
+
return ++Ue(this, me)._;
|
|
942
950
|
}
|
|
943
951
|
get length() {
|
|
944
952
|
return e(this, A).length;
|
|
@@ -947,27 +955,27 @@ const q = class q {
|
|
|
947
955
|
return this.length;
|
|
948
956
|
}
|
|
949
957
|
};
|
|
950
|
-
R = new WeakMap(), m = new WeakMap(), A = new WeakMap(),
|
|
951
|
-
|
|
958
|
+
R = new WeakMap(), m = new WeakMap(), A = new WeakMap(), U = new WeakMap(), me = new WeakMap(), M = new WeakMap(), we = new WeakMap(), ie = new WeakMap(), ve = new WeakMap(), xe = new WeakMap(), K = new WeakMap(), a(q, "ngData"), // π― ν μν μ μ μμλ₯Ό ν΄λμ€ λ΄λΆλ‘ λ΄μ¬ν
|
|
959
|
+
v(q, "ROW_STATE", {
|
|
952
960
|
EMPTY: "EMPTY",
|
|
953
961
|
NORMAL: "NORMAL",
|
|
954
962
|
INSERT: "INSERT",
|
|
955
963
|
UPDATE: "UPDATE",
|
|
956
964
|
DELETE: "DELETE"
|
|
957
965
|
});
|
|
958
|
-
let
|
|
959
|
-
const
|
|
966
|
+
let Ce = q;
|
|
967
|
+
const Ne = class Ne {
|
|
960
968
|
constructor(i) {
|
|
961
|
-
this.owner = i, this.row = new
|
|
969
|
+
this.owner = i, this.row = new Le(this), this.data = new Ce(i, this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
|
|
962
970
|
var t;
|
|
963
971
|
(t = this.owner.view) != null && t.redraw && this.owner.view.redraw();
|
|
964
972
|
}, this.setDataSource = (t) => {
|
|
965
973
|
this.data && this.data.reset(), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.data.set(t || []);
|
|
966
974
|
}, this.getRowState = (t) => {
|
|
967
|
-
var n,
|
|
975
|
+
var n, r;
|
|
968
976
|
const s = parseInt(t, 10);
|
|
969
977
|
if (!(s >= this.data.count()))
|
|
970
|
-
return (
|
|
978
|
+
return (r = (n = this.data.getValidData()[s]) == null ? void 0 : n.__ng) == null ? void 0 : r.rowState;
|
|
971
979
|
}, this.getRowPosition = () => this.row.at, this.setRowPosition = (t) => {
|
|
972
980
|
this.row.at = t;
|
|
973
981
|
}, this.scrollTo_V1 = (t) => (t < 0 && (t = 0), t >= this.rawRecords.length && (t = this.rawRecords.length - 1), this.viewRecords.rawIndex = t, this.viewRecords.reset && this.viewRecords.reset(), !(t <= 0 || t >= this.rawRecords.length - 1)), this.getColumn = (t, s) => this.data.get(t, s), this.setColumn = (t, s, n) => {
|
|
@@ -975,37 +983,37 @@ const Oe = class Oe {
|
|
|
975
983
|
}, this.setDataSource([]);
|
|
976
984
|
}
|
|
977
985
|
};
|
|
978
|
-
a(
|
|
979
|
-
let
|
|
980
|
-
var
|
|
981
|
-
const
|
|
986
|
+
a(Ne, "ngDataManager");
|
|
987
|
+
let _e = Ne;
|
|
988
|
+
var V, Se;
|
|
989
|
+
const Be = class Be extends HTMLElement {
|
|
982
990
|
constructor() {
|
|
983
991
|
super();
|
|
984
992
|
//#created = false;
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
this.attachShadow({ mode: "open" }), g(this,
|
|
993
|
+
c(this, V);
|
|
994
|
+
c(this, Se);
|
|
995
|
+
this.attachShadow({ mode: "open" }), g(this, V, new _e(this));
|
|
988
996
|
}
|
|
989
997
|
connectedCallback() {
|
|
990
|
-
g(this,
|
|
998
|
+
g(this, Se, new ke(this)), F.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
|
|
991
999
|
}
|
|
992
1000
|
disconnectedCallback() {
|
|
993
|
-
|
|
1001
|
+
F.log("NineTable disconnected.");
|
|
994
1002
|
}
|
|
995
1003
|
// π― μΈλΆμμ grid.data.set(...) ννλ‘ μ κ·Όν μ μλλ‘ λ°μ΄ν° λ§€λμ μ€ν
|
|
996
1004
|
get data() {
|
|
997
|
-
return e(this,
|
|
1005
|
+
return e(this, V).data;
|
|
998
1006
|
}
|
|
999
1007
|
// π― ν(row) κ΄λ ¨ μ μ΄ μ κ·Όμ μ€ν
|
|
1000
1008
|
get row() {
|
|
1001
|
-
return e(this,
|
|
1009
|
+
return e(this, V).row;
|
|
1002
1010
|
}
|
|
1003
1011
|
// π― μ 체 λ°μ΄ν° λ§€λμ μ κ·Ό νμν κ²½μ°
|
|
1004
1012
|
get dataManager() {
|
|
1005
|
-
return e(this,
|
|
1013
|
+
return e(this, V);
|
|
1006
1014
|
}
|
|
1007
1015
|
};
|
|
1008
|
-
|
|
1009
|
-
let
|
|
1010
|
-
customElements.get("nine-table") || customElements.define("nine-table",
|
|
1016
|
+
V = new WeakMap(), Se = new WeakMap(), a(Be, "NineTable");
|
|
1017
|
+
let Ie = Be;
|
|
1018
|
+
customElements.get("nine-table") || customElements.define("nine-table", Ie);
|
|
1011
1019
|
//# sourceMappingURL=nine-table.js.map
|