@ninebone/table 0.0.255 β 0.0.257
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 +126 -132
- package/dist/nine-table.js.map +1 -1
- package/dist/nine-table.umd.js +4 -4
- package/dist/nine-table.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-table.js
CHANGED
|
@@ -3,7 +3,7 @@ var Oe = (m) => {
|
|
|
3
3
|
throw TypeError(m);
|
|
4
4
|
};
|
|
5
5
|
var Ne = (m, i, t) => i in m ? ze(m, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[i] = t;
|
|
6
|
-
var
|
|
6
|
+
var c = (m, i) => ze(m, "name", { value: i, configurable: !0 });
|
|
7
7
|
var x = (m, i, t) => Ne(m, typeof i != "symbol" ? i + "" : i, t), Be = (m, i, t) => i.has(m) || Oe("Cannot " + t);
|
|
8
8
|
var e = (m, i, t) => (Be(m, i, "read from private field"), t ? t.call(m) : i.get(m)), u = (m, i, t) => i.has(m) ? Oe("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(m) : i.set(m, t), y = (m, i, t, s) => (Be(m, i, "write to private field"), s ? s.call(m, t) : i.set(m, t), t);
|
|
9
9
|
var De = (m, i, t, s) => ({
|
|
@@ -20,7 +20,7 @@ const qe = class qe extends Pe.constructor {
|
|
|
20
20
|
super(), this.init("nine-table", "green");
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
c(qe, "Trace");
|
|
24
24
|
let me = qe;
|
|
25
25
|
const Y = new me();
|
|
26
26
|
var C, O, p, B, D, N, ie, P, se;
|
|
@@ -33,14 +33,14 @@ const ke = class ke extends HTMLElement {
|
|
|
33
33
|
u(this, B);
|
|
34
34
|
u(this, D);
|
|
35
35
|
u(this, N);
|
|
36
|
-
u(this, ie, /* @__PURE__ */
|
|
36
|
+
u(this, ie, /* @__PURE__ */ c(() => {
|
|
37
37
|
if (!e(this, C)) return;
|
|
38
38
|
const t = e(this, C).querySelector(".ng-container-body");
|
|
39
39
|
t && (y(this, N, new ResizeObserver(() => {
|
|
40
40
|
this.refresh();
|
|
41
41
|
})), e(this, N).observe(t));
|
|
42
42
|
}, "#observeResize"));
|
|
43
|
-
x(this, "refresh", /* @__PURE__ */
|
|
43
|
+
x(this, "refresh", /* @__PURE__ */ c(() => {
|
|
44
44
|
if (!e(this, C) || !e(this, p) || e(this, O)) return;
|
|
45
45
|
const t = e(this, p).container, s = t.querySelector("table");
|
|
46
46
|
if (!s) return;
|
|
@@ -53,15 +53,15 @@ const ke = class ke extends HTMLElement {
|
|
|
53
53
|
}
|
|
54
54
|
const l = n.clientWidth;
|
|
55
55
|
if (l <= 0) return;
|
|
56
|
-
const
|
|
57
|
-
r.style.width = `${
|
|
56
|
+
const h = Math.max(Math.min(l * (a / d), l), 20);
|
|
57
|
+
r.style.width = `${h}px`;
|
|
58
58
|
const f = t.scrollLeft, g = d - a;
|
|
59
59
|
let b = 0;
|
|
60
|
-
g > 0 && (b = parseInt(f / g * (l -
|
|
61
|
-
const S = l -
|
|
60
|
+
g > 0 && (b = parseInt(f / g * (l - h), 10)), b < 0 && (b = 0);
|
|
61
|
+
const S = l - h;
|
|
62
62
|
b > S && (b = S), r.style.left = `${b}px`, Y.log(b), e(this, p).left.disabled = b === 0, e(this, p).right.disabled = b >= S - 1;
|
|
63
63
|
}, "refresh"));
|
|
64
|
-
u(this, P, /* @__PURE__ */
|
|
64
|
+
u(this, P, /* @__PURE__ */ c((t) => {
|
|
65
65
|
if (!e(this, p)) return !1;
|
|
66
66
|
const s = e(this, p).container, n = s.querySelector("table");
|
|
67
67
|
if (!n) return !1;
|
|
@@ -70,12 +70,12 @@ const ke = class ke extends HTMLElement {
|
|
|
70
70
|
a < 0 && (a = 0);
|
|
71
71
|
const d = r.width - o;
|
|
72
72
|
a > d && (a = d), a = parseInt(a, 10), e(this, p).thumb.style.left = `${a}px`, e(this, p).left.disabled = a === 0, e(this, p).right.disabled = a >= d - 1;
|
|
73
|
-
const l = s.clientWidth,
|
|
74
|
-
let f = d > 0 ? -a * (
|
|
75
|
-
return -f >
|
|
73
|
+
const l = s.clientWidth, h = n.scrollWidth;
|
|
74
|
+
let f = d > 0 ? -a * (h - l) / d : 0;
|
|
75
|
+
return -f > h - l && (f = -(h - l)), -f + 5 > h - l && (f = -(h - l)), l >= h && (f = 0), n.style.transform = `translateX(${f}px)`, a > 0 && a < d - 1;
|
|
76
76
|
}, "#thumbMoveTo"));
|
|
77
|
-
u(this, se, /* @__PURE__ */
|
|
78
|
-
const t = /* @__PURE__ */
|
|
77
|
+
u(this, se, /* @__PURE__ */ c(() => {
|
|
78
|
+
const t = /* @__PURE__ */ c((n) => {
|
|
79
79
|
clearInterval(e(this, B)), clearInterval(e(this, D));
|
|
80
80
|
const r = parseInt(e(this, p).thumb.style.left || 0, 10);
|
|
81
81
|
e(this, P).call(this, r + n), y(this, B, setInterval(() => {
|
|
@@ -84,7 +84,7 @@ const ke = class ke extends HTMLElement {
|
|
|
84
84
|
e(this, P).call(this, o + n) || clearInterval(e(this, D));
|
|
85
85
|
}, 50));
|
|
86
86
|
}, 500));
|
|
87
|
-
}, "delayScroll"), s = /* @__PURE__ */
|
|
87
|
+
}, "delayScroll"), s = /* @__PURE__ */ c(() => {
|
|
88
88
|
clearInterval(e(this, B)), clearInterval(e(this, D));
|
|
89
89
|
}, "clearTimer");
|
|
90
90
|
["mouseup", "mouseleave", "touchend"].forEach((n) => {
|
|
@@ -101,11 +101,11 @@ const ke = class ke extends HTMLElement {
|
|
|
101
101
|
}), e(this, p).thumb.addEventListener("mousedown", (n) => {
|
|
102
102
|
if (n.button !== 0) return;
|
|
103
103
|
n.stopPropagation(), n.preventDefault(), y(this, O, !0), this.shiftX = n.clientX - e(this, p).thumb.getBoundingClientRect().left;
|
|
104
|
-
const r = /* @__PURE__ */
|
|
104
|
+
const r = /* @__PURE__ */ c((a) => {
|
|
105
105
|
if (!e(this, O)) return;
|
|
106
106
|
const d = e(this, p).track.getBoundingClientRect();
|
|
107
107
|
e(this, P).call(this, a.clientX - d.left - this.shiftX);
|
|
108
|
-
}, "onMouseMove"), o = /* @__PURE__ */
|
|
108
|
+
}, "onMouseMove"), o = /* @__PURE__ */ c(() => {
|
|
109
109
|
y(this, O, !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);
|
|
@@ -177,7 +177,7 @@ const ke = class ke extends HTMLElement {
|
|
|
177
177
|
<div class='ng-scroll-track'><div class='ng-scroll-thumb'></div></div>
|
|
178
178
|
<button class='ng-scroll-right' disabled><div class='ng-scroll-icon'></div></button>
|
|
179
179
|
`;
|
|
180
|
-
const t = /* @__PURE__ */
|
|
180
|
+
const t = /* @__PURE__ */ c(() => {
|
|
181
181
|
const s = e(this, C).querySelector(".ng-container-body");
|
|
182
182
|
if (!s) {
|
|
183
183
|
setTimeout(t, 10);
|
|
@@ -197,26 +197,26 @@ const ke = class ke extends HTMLElement {
|
|
|
197
197
|
e(this, N) && e(this, N).disconnect();
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
|
-
C = new WeakMap(), O = new WeakMap(), p = new WeakMap(), B = new WeakMap(), D = new WeakMap(), N = new WeakMap(), ie = new WeakMap(), P = new WeakMap(), se = new WeakMap(),
|
|
200
|
+
C = new WeakMap(), O = new WeakMap(), p = new WeakMap(), B = new WeakMap(), D = new WeakMap(), N = new WeakMap(), ie = new WeakMap(), P = new WeakMap(), se = new WeakMap(), c(ke, "NineTableHScrollBar");
|
|
201
201
|
let we = ke;
|
|
202
202
|
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", we);
|
|
203
|
-
var M, _, R, $,
|
|
203
|
+
var M, _, R, $, H, I, ne, re, oe, le;
|
|
204
204
|
const Le = class Le {
|
|
205
205
|
constructor(i) {
|
|
206
206
|
u(this, M);
|
|
207
207
|
u(this, _, []);
|
|
208
208
|
u(this, R, null);
|
|
209
209
|
u(this, $, null);
|
|
210
|
-
u(this, I, 0);
|
|
211
210
|
u(this, H, 0);
|
|
212
|
-
|
|
213
|
-
|
|
211
|
+
u(this, I, 0);
|
|
212
|
+
x(this, "getRowHeight", /* @__PURE__ */ c(() => e(this, R), "getRowHeight"));
|
|
213
|
+
u(this, ne, /* @__PURE__ */ c(() => {
|
|
214
214
|
e(this, re).call(this);
|
|
215
215
|
}, "#init"));
|
|
216
216
|
/**
|
|
217
217
|
* π― λ·°ν¬νΈ ν¬κΈ° λ³ν μμ μ λμ΄ κ³μ° λ° νμν ν κ°μ μ°μ Β·μΊμ±μ μκ²°
|
|
218
218
|
*/
|
|
219
|
-
u(this, re, /* @__PURE__ */
|
|
219
|
+
u(this, re, /* @__PURE__ */ c(() => {
|
|
220
220
|
!e(this, M) || !(e(this, M) instanceof HTMLElement) || (y(this, $, new ResizeObserver((i) => {
|
|
221
221
|
for (const t of i) {
|
|
222
222
|
const s = t.target;
|
|
@@ -228,10 +228,10 @@ const Le = class Le {
|
|
|
228
228
|
let o = 0;
|
|
229
229
|
const a = s.querySelector(".ng-container-body") || s, d = a.querySelector("thead"), l = a.querySelector("tfoot");
|
|
230
230
|
d && (o += d.offsetHeight || d.getBoundingClientRect().height), l && (o += l.offsetHeight || l.getBoundingClientRect().height);
|
|
231
|
-
const
|
|
232
|
-
if (e(this,
|
|
233
|
-
const f = Math.ceil(e(this,
|
|
234
|
-
y(this,
|
|
231
|
+
const h = Math.max(r - o, 100);
|
|
232
|
+
if (e(this, H) !== h && (y(this, H, h), e(this, R) !== null)) {
|
|
233
|
+
const f = Math.ceil(e(this, H) / e(this, R));
|
|
234
|
+
y(this, I, f + 20), Y.log(`[RowManager] Resized. Height: ${e(this, H)}px | Target Rows: ${e(this, I)}`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((g) => {
|
|
235
235
|
const b = s.querySelector(g);
|
|
236
236
|
b && b.querySelector("tbody") && e(this, le).call(this, b);
|
|
237
237
|
});
|
|
@@ -241,12 +241,12 @@ const Le = class Le {
|
|
|
241
241
|
})), e(this, $).observe(e(this, M)));
|
|
242
242
|
}, "#initResizeObserver"));
|
|
243
243
|
// π― ν
νλ¦Ώ μΆμΆ, λμ΄ μΈ‘μ , μ΄κΈ° λ λλ§μ μμμ λ§κ² λ΄λΆμμ μΌκ΄ μ²λ¦¬
|
|
244
|
-
x(this, "initialize", /* @__PURE__ */
|
|
244
|
+
x(this, "initialize", /* @__PURE__ */ c((i) => {
|
|
245
245
|
Y.log(i);
|
|
246
246
|
const t = e(this, M).querySelector(".ng-container-body"), s = i.querySelector("tbody"), n = Array.from(s.querySelectorAll("tr"));
|
|
247
247
|
y(this, _, n.map((r) => r.cloneNode(!0))), y(this, R, null), e(this, oe).call(this, t);
|
|
248
248
|
}, "initialize"));
|
|
249
|
-
u(this, oe, /* @__PURE__ */
|
|
249
|
+
u(this, oe, /* @__PURE__ */ c((i) => {
|
|
250
250
|
if (e(this, R) !== null && e(this, R) > 0)
|
|
251
251
|
return e(this, R);
|
|
252
252
|
if (e(this, _).length === 0)
|
|
@@ -261,15 +261,15 @@ const Le = class Le {
|
|
|
261
261
|
const r = i.closest("nine-table-sheet"), o = r ? r.style.display : "", a = r ? r.style.visibility : "", d = r ? r.style.position : "";
|
|
262
262
|
r && (r.style.display === "none" || window.getComputedStyle(r).display === "none") && (r.style.display = "block", r.style.visibility = "hidden", r.style.position = "absolute");
|
|
263
263
|
let l = 0;
|
|
264
|
-
const
|
|
265
|
-
if (
|
|
264
|
+
const h = t.querySelectorAll("tr:not(.nodata)");
|
|
265
|
+
if (h.forEach((f, g) => {
|
|
266
266
|
l += f.offsetHeight || f.getBoundingClientRect().height;
|
|
267
|
-
}),
|
|
268
|
-
const f = Math.ceil(e(this,
|
|
269
|
-
y(this,
|
|
267
|
+
}), h.forEach((f) => f.remove()), r && (r.style.display = o, r.style.visibility = a, r.style.position = d), y(this, R, l), e(this, H) > 0) {
|
|
268
|
+
const f = Math.ceil(e(this, H) / e(this, R));
|
|
269
|
+
y(this, I, f + 20);
|
|
270
270
|
} else
|
|
271
|
-
y(this,
|
|
272
|
-
return console.log(`[RowManager] Template Height Cached: ${e(this, R)}px | RowCount: ${e(this,
|
|
271
|
+
y(this, I, 40);
|
|
272
|
+
return console.log(`[RowManager] Template Height Cached: ${e(this, R)}px | RowCount: ${e(this, I)}`), e(this, R);
|
|
273
273
|
}, "#measureAndCacheHeight"));
|
|
274
274
|
/**
|
|
275
275
|
* π― μΊμλ ν κ°μ λ°ν (μμ λλ§ μ΅μνμ λ°©μ΄ μ°μ°)
|
|
@@ -287,19 +287,19 @@ const Le = class Le {
|
|
|
287
287
|
/**
|
|
288
288
|
* π― μΊμλ ν κ°μλ₯Ό κ³§λ°λ‘ κ°μ Έμμ TR λΌλ μ£Όμ
(μ€λ³΅ κ³μ° μ κ±°)
|
|
289
289
|
*/
|
|
290
|
-
u(this, le, /* @__PURE__ */
|
|
290
|
+
u(this, le, /* @__PURE__ */ c((i) => {
|
|
291
291
|
if (e(this, _).length === 0) return;
|
|
292
292
|
const t = i.querySelector("tbody.bindable") || i.querySelector("tbody");
|
|
293
293
|
if (!t) return;
|
|
294
294
|
t.querySelectorAll("tr:not(.nodata)").forEach((o) => o.remove());
|
|
295
|
-
const s = t.querySelector("tr.nodata"), n = document.createDocumentFragment(), r = e(this,
|
|
295
|
+
const s = t.querySelector("tr.nodata"), n = document.createDocumentFragment(), r = e(this, I);
|
|
296
296
|
for (let o = 0; o < r; o++)
|
|
297
297
|
e(this, _).forEach((a) => {
|
|
298
298
|
n.appendChild(a.cloneNode(!0));
|
|
299
299
|
});
|
|
300
300
|
s ? s.before(n) : t.appendChild(n), console.log(`[RowManager] Rendered ${r} sets into DOM.`);
|
|
301
301
|
}, "#renderRows"));
|
|
302
|
-
x(this, "destroy", /* @__PURE__ */
|
|
302
|
+
x(this, "destroy", /* @__PURE__ */ c(() => {
|
|
303
303
|
e(this, $) && (e(this, $).disconnect(), y(this, $, null));
|
|
304
304
|
}, "destroy"));
|
|
305
305
|
y(this, M, i), e(this, ne).call(this);
|
|
@@ -308,7 +308,7 @@ const Le = class Le {
|
|
|
308
308
|
return e(this, _).length || 1;
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
|
-
M = new WeakMap(), _ = new WeakMap(), R = new WeakMap(), $ = new WeakMap(),
|
|
311
|
+
M = new WeakMap(), _ = new WeakMap(), R = new WeakMap(), $ = new WeakMap(), H = new WeakMap(), I = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), le = new WeakMap(), c(Le, "RowManager");
|
|
312
312
|
let xe = Le;
|
|
313
313
|
var A, F, G, U, ae, ce;
|
|
314
314
|
const j = class j extends HTMLElement {
|
|
@@ -319,7 +319,7 @@ const j = class j extends HTMLElement {
|
|
|
319
319
|
/**
|
|
320
320
|
* π― 2μ°¨μ μ
격μ μΈλ±μ€λ₯Ό κ³μ°νμ¬ λ³ν©(`rowSpan`/`colSpan`) μ
μ μ λ μ»¬λΌ μμΉλ₯Ό λΆμ¬
|
|
321
321
|
*/
|
|
322
|
-
u(this, G, /* @__PURE__ */
|
|
322
|
+
u(this, G, /* @__PURE__ */ c((t, s) => {
|
|
323
323
|
const n = Array.from(t.querySelectorAll(s + " tr")), r = Array.from(t.querySelectorAll(s + " th," + s + " td")), o = n.length;
|
|
324
324
|
if (o === 0 || r.length === 0) return;
|
|
325
325
|
let a = 0;
|
|
@@ -328,53 +328,47 @@ const j = class j extends HTMLElement {
|
|
|
328
328
|
});
|
|
329
329
|
const d = Array.from(Array(o), () => Array(a).fill(null));
|
|
330
330
|
n.forEach((l) => {
|
|
331
|
-
const
|
|
331
|
+
const h = l.sectionRowIndex;
|
|
332
332
|
let f = 0;
|
|
333
333
|
Array.from(l.querySelectorAll("th,td")).forEach((g) => {
|
|
334
|
-
for (let v = 0; v < d[
|
|
335
|
-
if (d[
|
|
334
|
+
for (let v = 0; v < d[h].length; v++)
|
|
335
|
+
if (d[h][v] === null) {
|
|
336
336
|
f = v;
|
|
337
337
|
break;
|
|
338
338
|
}
|
|
339
339
|
const b = g.rowSpan || 1, S = g.colSpan || 1;
|
|
340
340
|
for (let v = 0; v < b; v++)
|
|
341
341
|
for (let L = 0; L < S; L++)
|
|
342
|
-
|
|
342
|
+
h + v < o && f + L < a && (d[h + v][f + L] = v === 0 && L === 0 ? "1" : "0");
|
|
343
343
|
});
|
|
344
344
|
}), n.forEach((l) => {
|
|
345
|
-
const
|
|
345
|
+
const h = l.sectionRowIndex;
|
|
346
346
|
Array.from(l.querySelectorAll("th,td")).forEach((f) => {
|
|
347
|
-
for (let g = 0; g < d[
|
|
348
|
-
if (d[
|
|
349
|
-
f.dataset.col = g, d[
|
|
347
|
+
for (let g = 0; g < d[h].length; g++)
|
|
348
|
+
if (d[h][g] === "1") {
|
|
349
|
+
f.dataset.col = g, d[h][g] = "0";
|
|
350
350
|
break;
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
});
|
|
354
354
|
}, "#resetColIndex"));
|
|
355
355
|
/**
|
|
356
|
-
* π―
|
|
356
|
+
* π― μμ λ°λλΌ μλ°μ€ν¬λ¦½νΈ(Vanilla JS) κΈ°λ°μ κΉλν #createSplitTable
|
|
357
357
|
*/
|
|
358
|
-
u(this, U, /* @__PURE__ */
|
|
359
|
-
const n = t.cloneNode(!0)
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}), a.reverse().forEach((d) => {
|
|
367
|
-
o[d] && o[d].remove(), n.querySelectorAll("tr").forEach((l) => {
|
|
368
|
-
Array.from(l.querySelectorAll("th, td")).forEach((f) => {
|
|
369
|
-
parseInt(f.dataset.col, 10) === d && f.remove();
|
|
370
|
-
});
|
|
371
|
-
});
|
|
358
|
+
u(this, U, /* @__PURE__ */ c((t, s) => {
|
|
359
|
+
const n = t.cloneNode(!0);
|
|
360
|
+
return s === "left" ? n.querySelectorAll("col, th, td").forEach((r) => {
|
|
361
|
+
r.getAttribute("fixed") !== "left" && r.remove();
|
|
362
|
+
}) : s === "right" ? n.querySelectorAll("col, th, td").forEach((r) => {
|
|
363
|
+
r.getAttribute("fixed") !== "right" && r.remove();
|
|
364
|
+
}) : n.querySelectorAll("[fixed=left], [fixed=right]").forEach((r) => {
|
|
365
|
+
r.remove();
|
|
372
366
|
}), n;
|
|
373
367
|
}, "#createSplitTable"));
|
|
374
|
-
x(this, "generate", /* @__PURE__ */
|
|
368
|
+
x(this, "generate", /* @__PURE__ */ c((t) => {
|
|
375
369
|
if (!t) return;
|
|
376
|
-
const s = /* @__PURE__ */
|
|
377
|
-
const
|
|
370
|
+
const s = /* @__PURE__ */ c((l) => {
|
|
371
|
+
const h = /* @__PURE__ */ c((g) => {
|
|
378
372
|
if (g.querySelector("colgroup")) return;
|
|
379
373
|
const b = g.querySelector("tbody tr") || g.querySelector("tr"), S = b ? b.querySelectorAll("th, td").length : 1, v = document.createElement("colgroup"), L = Math.max(Math.floor(g.clientWidth / S), 100);
|
|
380
374
|
for (let $e = 0; $e < S; $e++) {
|
|
@@ -382,16 +376,16 @@ const j = class j extends HTMLElement {
|
|
|
382
376
|
We.setAttribute("width", L), v.appendChild(We);
|
|
383
377
|
}
|
|
384
378
|
g.prepend(v);
|
|
385
|
-
}, "ensureColgroup"), f = /* @__PURE__ */
|
|
379
|
+
}, "ensureColgroup"), f = /* @__PURE__ */ c((g) => {
|
|
386
380
|
if (g.querySelector("thead")) return;
|
|
387
381
|
const b = document.createElement("thead"), S = g.querySelector("colgroup");
|
|
388
382
|
S ? S.after(b) : g.prepend(b);
|
|
389
383
|
}, "ensureThead");
|
|
390
|
-
return
|
|
384
|
+
return h(l), f(l), l.classList.add("nine-table-element"), l;
|
|
391
385
|
}, "initializeTable"), n = t.cloneNode(!0);
|
|
392
|
-
y(this, A, s(n)), e(this, A).style.display = "table", e(this, G).call(this, e(this, A), "thead"), e(this, G).call(this, e(this, A), "tbody"), Array.from(e(this, A).querySelectorAll("colgroup col")).forEach((l,
|
|
386
|
+
y(this, A, s(n)), e(this, A).style.display = "table", e(this, G).call(this, e(this, A), "thead"), e(this, G).call(this, e(this, A), "tbody"), Array.from(e(this, A).querySelectorAll("colgroup col")).forEach((l, h) => {
|
|
393
387
|
const f = l.getAttribute("fixed");
|
|
394
|
-
f && e(this, A).querySelectorAll(`[data-col="${
|
|
388
|
+
f && e(this, A).querySelectorAll(`[data-col="${h}"]`).forEach((g) => {
|
|
395
389
|
g.setAttribute("fixed", f);
|
|
396
390
|
});
|
|
397
391
|
}), Y.log(e(this, A));
|
|
@@ -402,22 +396,22 @@ const j = class j extends HTMLElement {
|
|
|
402
396
|
}
|
|
403
397
|
if (o) {
|
|
404
398
|
const l = e(this, U).call(this, e(this, A), "left");
|
|
405
|
-
let
|
|
399
|
+
let h = 0;
|
|
406
400
|
l.querySelectorAll("col").forEach((g) => {
|
|
407
401
|
const b = parseInt(g.getAttribute("width"), 10);
|
|
408
|
-
isNaN(b) || (
|
|
402
|
+
isNaN(b) || (h += b);
|
|
409
403
|
}), o.innerHTML = "", o.appendChild(l);
|
|
410
|
-
const f =
|
|
404
|
+
const f = h > 0 ? h : 0;
|
|
411
405
|
o.style.flex = `0 0 ${f}px`, o.style.width = `${f}px`;
|
|
412
406
|
}
|
|
413
407
|
if (d) {
|
|
414
408
|
const l = e(this, U).call(this, e(this, A), "right");
|
|
415
|
-
let
|
|
409
|
+
let h = 0;
|
|
416
410
|
l.querySelectorAll("col").forEach((g) => {
|
|
417
411
|
const b = parseInt(g.getAttribute("width"), 10);
|
|
418
|
-
isNaN(b) || (
|
|
412
|
+
isNaN(b) || (h += b);
|
|
419
413
|
}), d.innerHTML = "", d.appendChild(l);
|
|
420
|
-
const f =
|
|
414
|
+
const f = h > 0 ? h : 0;
|
|
421
415
|
d.style.flex = `0 0 ${f}px`, d.style.width = `${f}px`;
|
|
422
416
|
}
|
|
423
417
|
a && a.addEventListener("scroll", () => {
|
|
@@ -428,24 +422,24 @@ const j = class j extends HTMLElement {
|
|
|
428
422
|
(l = this.querySelector("nine-table-hscrollbar")) == null || l.refresh();
|
|
429
423
|
}, 0);
|
|
430
424
|
}, "generate"));
|
|
431
|
-
x(this, "getRowHeight", /* @__PURE__ */
|
|
432
|
-
x(this, "scrollToX", /* @__PURE__ */
|
|
425
|
+
x(this, "getRowHeight", /* @__PURE__ */ c(() => e(this, F).getRowHeight(), "getRowHeight"));
|
|
426
|
+
x(this, "scrollToX", /* @__PURE__ */ c((t) => {
|
|
433
427
|
const s = this.querySelector(".ng-container-body");
|
|
434
428
|
s && (s.scrollLeft = t);
|
|
435
429
|
}, "scrollToX"));
|
|
436
|
-
x(this, "scrollToY", /* @__PURE__ */
|
|
430
|
+
x(this, "scrollToY", /* @__PURE__ */ c((t) => {
|
|
437
431
|
const s = this.querySelector(".ng-container-body");
|
|
438
432
|
s && (s.scrollTop = t);
|
|
439
433
|
}, "scrollToY"));
|
|
440
|
-
u(this, ae, /* @__PURE__ */
|
|
441
|
-
const t = /* @__PURE__ */
|
|
442
|
-
var
|
|
434
|
+
u(this, ae, /* @__PURE__ */ c(() => {
|
|
435
|
+
const t = /* @__PURE__ */ c(() => {
|
|
436
|
+
var h, f, g;
|
|
443
437
|
const s = this.querySelector(".ng-container-left table"), n = this.querySelector(".ng-container-body table"), r = this.querySelector(".ng-container-right table");
|
|
444
438
|
if (!n) return;
|
|
445
439
|
const o = s ? Array.from(s.querySelectorAll("tr")) : [], a = Array.from(n.querySelectorAll("tr")), d = r ? Array.from(r.querySelectorAll("tr")) : [], l = Math.max(o.length, a.length, d.length);
|
|
446
440
|
for (let b = 0; b < l; b++) {
|
|
447
441
|
const S = [
|
|
448
|
-
((
|
|
442
|
+
((h = o[b]) == null ? void 0 : h.getBoundingClientRect().height) || 0,
|
|
449
443
|
((f = a[b]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
|
|
450
444
|
((g = d[b]) == null ? void 0 : g.getBoundingClientRect().height) || 0
|
|
451
445
|
], v = Math.max(...S);
|
|
@@ -459,7 +453,7 @@ const j = class j extends HTMLElement {
|
|
|
459
453
|
n.attributeName === "class" && this.classList.contains("active") && t();
|
|
460
454
|
}).observe(this, { attributes: !0 });
|
|
461
455
|
}, "#init"));
|
|
462
|
-
u(this, ce, /* @__PURE__ */
|
|
456
|
+
u(this, ce, /* @__PURE__ */ c(() => {
|
|
463
457
|
const t = j.SCROLLBAR_SIZE;
|
|
464
458
|
this.innerHTML = `
|
|
465
459
|
<style>
|
|
@@ -592,14 +586,14 @@ const j = class j extends HTMLElement {
|
|
|
592
586
|
this.innerHTML = "", Y.log("NineTableSheet destroyed.");
|
|
593
587
|
}
|
|
594
588
|
};
|
|
595
|
-
A = new WeakMap(), F = new WeakMap(), G = new WeakMap(), U = new WeakMap(), ae = new WeakMap(), ce = new WeakMap(),
|
|
589
|
+
A = new WeakMap(), F = new WeakMap(), G = new WeakMap(), U = new WeakMap(), ae = new WeakMap(), ce = new WeakMap(), c(j, "NineTableSheet"), x(j, "SCROLLBAR_SIZE", 16);
|
|
596
590
|
let te = j;
|
|
597
591
|
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", te);
|
|
598
592
|
var he, J;
|
|
599
593
|
const Ce = class Ce extends HTMLElement {
|
|
600
594
|
constructor() {
|
|
601
595
|
super();
|
|
602
|
-
u(this, he, /* @__PURE__ */
|
|
596
|
+
u(this, he, /* @__PURE__ */ c(() => {
|
|
603
597
|
var t;
|
|
604
598
|
(t = this.querySelector(".nine-tab-bar")) == null || t.addEventListener("click", (s) => {
|
|
605
599
|
var o;
|
|
@@ -607,35 +601,35 @@ const Ce = class Ce extends HTMLElement {
|
|
|
607
601
|
e(this, J).call(this, r, n);
|
|
608
602
|
}), e(this, J).call(this, 0, !1);
|
|
609
603
|
}, "#init"));
|
|
610
|
-
u(this, J, /* @__PURE__ */
|
|
611
|
-
const n = /* @__PURE__ */
|
|
612
|
-
const
|
|
604
|
+
u(this, J, /* @__PURE__ */ c((t, s = !1) => {
|
|
605
|
+
const n = /* @__PURE__ */ c(() => {
|
|
606
|
+
const h = Array.from(this.querySelectorAll("nine-table-sheet"));
|
|
613
607
|
Array.from(this.querySelectorAll("nine-splitter")).forEach((b) => b.style.setProperty("display", "none"));
|
|
614
|
-
const g =
|
|
608
|
+
const g = h.filter((b) => b.classList.contains("active"));
|
|
615
609
|
g.length < 2 || g.forEach((b) => {
|
|
616
|
-
const S = parseInt(b.getAttribute("data-index"), 10), v = this.querySelector(`nine-splitter[data-split-index="${S}"]`), L =
|
|
610
|
+
const S = parseInt(b.getAttribute("data-index"), 10), v = this.querySelector(`nine-splitter[data-split-index="${S}"]`), L = h[S + 1];
|
|
617
611
|
v && L && L.classList.contains("active") && v.style.setProperty("display", "flex");
|
|
618
612
|
});
|
|
619
613
|
}, "updateSplitters"), r = this.querySelector(".nine-tab-bar"), o = this.querySelector("nine-table-sheets-body"), a = r.querySelectorAll(".nine-tab-item"), d = o.querySelectorAll("nine-table-sheet");
|
|
620
614
|
if (!a[t]) return;
|
|
621
615
|
if (!s)
|
|
622
|
-
a.forEach((
|
|
623
|
-
|
|
624
|
-
}), d.forEach((
|
|
616
|
+
a.forEach((h, f) => {
|
|
617
|
+
h.classList.toggle("active", f === t);
|
|
618
|
+
}), d.forEach((h, f) => {
|
|
625
619
|
const g = f === t;
|
|
626
|
-
|
|
620
|
+
h.classList.toggle("active", g), h.style.flex = g ? "1 1 100%" : "";
|
|
627
621
|
});
|
|
628
622
|
else {
|
|
629
|
-
const
|
|
630
|
-
if (
|
|
623
|
+
const h = a[t], f = r.querySelectorAll(".nine-tab-item.active");
|
|
624
|
+
if (h.classList.contains("active") && f.length <= 1)
|
|
631
625
|
return;
|
|
632
|
-
|
|
626
|
+
h.classList.toggle("active");
|
|
633
627
|
const g = o.querySelector(`nine-table-sheet[data-index="${t}"]`);
|
|
634
628
|
g && (g.classList.toggle("active"), g.classList.contains("active") || (g.style.flex = ""));
|
|
635
629
|
}
|
|
636
630
|
const l = o.querySelectorAll("nine-table-sheet.active");
|
|
637
|
-
l == null || l.forEach((
|
|
638
|
-
|
|
631
|
+
l == null || l.forEach((h) => {
|
|
632
|
+
h.style.flex = l.length > 1 ? "1 1 0%" : "1 1 100%";
|
|
639
633
|
}), n();
|
|
640
634
|
}, "#switchSheet"));
|
|
641
635
|
}
|
|
@@ -643,27 +637,27 @@ const Ce = class Ce extends HTMLElement {
|
|
|
643
637
|
e(this, he).call(this);
|
|
644
638
|
}
|
|
645
639
|
};
|
|
646
|
-
he = new WeakMap(), J = new WeakMap(),
|
|
640
|
+
he = new WeakMap(), J = new WeakMap(), c(Ce, "NineTableSheets");
|
|
647
641
|
let ve = Ce;
|
|
648
642
|
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", ve);
|
|
649
643
|
var E, de, Q, fe;
|
|
650
644
|
const _e = class _e {
|
|
651
645
|
constructor(i) {
|
|
652
646
|
u(this, E);
|
|
653
|
-
u(this, de, /* @__PURE__ */
|
|
647
|
+
u(this, de, /* @__PURE__ */ c(() => {
|
|
654
648
|
e(this, fe).call(this), new ResizeObserver((i) => {
|
|
655
649
|
for (let t of i)
|
|
656
650
|
e(this, E).getAttribute("auto-height") === "true" && e(this, Q).call(this);
|
|
657
651
|
}).observe(e(this, E));
|
|
658
652
|
}, "#init"));
|
|
659
|
-
u(this, Q, /* @__PURE__ */
|
|
653
|
+
u(this, Q, /* @__PURE__ */ c(() => {
|
|
660
654
|
var d, l;
|
|
661
655
|
const i = Array.from(e(this, E).shadowRoot.querySelectorAll("nine-table-sheet.active"));
|
|
662
656
|
if (i.length === 0) return;
|
|
663
|
-
const t = parseInt(e(this, E).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((
|
|
657
|
+
const t = parseInt(e(this, E).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((h) => h.getRowHeight())), n = (d = e(this, E).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : d.getBoundingClientRect().height, r = (l = e(this, E).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = te.SCROLLBAR_SIZE, a = t * s + n + r + o;
|
|
664
658
|
e(this, E).style.height = `${a}px`;
|
|
665
659
|
}, "#applyAutoHeight"));
|
|
666
|
-
u(this, fe, /* @__PURE__ */
|
|
660
|
+
u(this, fe, /* @__PURE__ */ c(() => {
|
|
667
661
|
const t = Array.from(e(this, E).children).filter((d) => d.tagName === "TABLE"), s = e(this, E).getAttribute("auto-height") === "true", n = t.length, r = t.map((d, l) => {
|
|
668
662
|
const f = `<nine-table-sheet class="${l === 0 ? "active" : ""}" data-index="${l}"></nine-table-sheet>`, g = l < n - 1 ? `<nine-splitter class="h" data-split-index="${l}"></nine-splitter>` : "";
|
|
669
663
|
return f + g;
|
|
@@ -777,14 +771,14 @@ const _e = class _e {
|
|
|
777
771
|
y(this, E, i), e(this, de).call(this);
|
|
778
772
|
}
|
|
779
773
|
};
|
|
780
|
-
E = new WeakMap(), de = new WeakMap(), Q = new WeakMap(), fe = new WeakMap(),
|
|
774
|
+
E = new WeakMap(), de = new WeakMap(), Q = new WeakMap(), fe = new WeakMap(), c(_e, "LayoutManager");
|
|
781
775
|
let Se = _e;
|
|
782
776
|
var W, V;
|
|
783
|
-
const
|
|
777
|
+
const He = class He {
|
|
784
778
|
constructor(i) {
|
|
785
779
|
u(this, W);
|
|
786
780
|
u(this, V, -1);
|
|
787
|
-
x(this, "count", /* @__PURE__ */
|
|
781
|
+
x(this, "count", /* @__PURE__ */ c(() => e(this, W).rawRecords.length, "count"));
|
|
788
782
|
y(this, W, i);
|
|
789
783
|
}
|
|
790
784
|
get at() {
|
|
@@ -800,8 +794,8 @@ const Ie = class Ie {
|
|
|
800
794
|
});
|
|
801
795
|
}
|
|
802
796
|
};
|
|
803
|
-
W = new WeakMap(), V = new WeakMap(),
|
|
804
|
-
let Ee =
|
|
797
|
+
W = new WeakMap(), V = new WeakMap(), c(He, "ngRow");
|
|
798
|
+
let Ee = He;
|
|
805
799
|
var T, w, q, K, ue, z, ge, ee, be, ye, Z;
|
|
806
800
|
const k = class k {
|
|
807
801
|
constructor(i, t) {
|
|
@@ -811,7 +805,7 @@ const k = class k {
|
|
|
811
805
|
u(this, K, []);
|
|
812
806
|
u(this, ue, 0);
|
|
813
807
|
u(this, z, []);
|
|
814
|
-
u(this, ge, /* @__PURE__ */
|
|
808
|
+
u(this, ge, /* @__PURE__ */ c(() => {
|
|
815
809
|
y(this, z, []);
|
|
816
810
|
const i = e(this, T).template || [];
|
|
817
811
|
Array.from(i).forEach((t) => {
|
|
@@ -821,10 +815,10 @@ const k = class k {
|
|
|
821
815
|
t.__ng || (t.__ng = e(this, ee).call(this)), t.__ng.height = e(this, z).slice();
|
|
822
816
|
});
|
|
823
817
|
}, "#initialize"));
|
|
824
|
-
x(this, "set", /* @__PURE__ */
|
|
818
|
+
x(this, "set", /* @__PURE__ */ c((i) => {
|
|
825
819
|
this.clear(), this.add(i, !1);
|
|
826
820
|
}, "set"));
|
|
827
|
-
u(this, ee, /* @__PURE__ */
|
|
821
|
+
u(this, ee, /* @__PURE__ */ c(() => ({
|
|
828
822
|
rowState: k.ROW_STATE.EMPTY,
|
|
829
823
|
deleted: !1,
|
|
830
824
|
filtered: !1,
|
|
@@ -833,14 +827,14 @@ const k = class k {
|
|
|
833
827
|
c: {},
|
|
834
828
|
_: [0, 0, 0, 0, k.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, z).slice(), -1, {}, {}]
|
|
835
829
|
}), "#getDefaultMeta"));
|
|
836
|
-
x(this, "reset", /* @__PURE__ */
|
|
830
|
+
x(this, "reset", /* @__PURE__ */ c(() => {
|
|
837
831
|
y(this, q, []), y(this, K, []);
|
|
838
832
|
}, "reset"));
|
|
839
|
-
x(this, "clear", /* @__PURE__ */
|
|
833
|
+
x(this, "clear", /* @__PURE__ */ c(() => {
|
|
840
834
|
var i;
|
|
841
835
|
e(this, w).rawRecords = [], y(this, q, []), y(this, K, []), (i = e(this, w).viewRecords) != null && i.reset && e(this, w).viewRecords.reset();
|
|
842
836
|
}, "clear"));
|
|
843
|
-
u(this, be, /* @__PURE__ */
|
|
837
|
+
u(this, be, /* @__PURE__ */ c((i) => {
|
|
844
838
|
var n;
|
|
845
839
|
Array.isArray(i) || (i = [i]);
|
|
846
840
|
const t = typeof ((n = e(this, T).fields) == null ? void 0 : n.get) == "function" ? e(this, T).fields.get() : Object.keys(i[0] || {}), s = [];
|
|
@@ -851,10 +845,10 @@ const k = class k {
|
|
|
851
845
|
}), s.push(o);
|
|
852
846
|
}), s;
|
|
853
847
|
}, "#json2Array"));
|
|
854
|
-
u(this, ye, /* @__PURE__ */
|
|
848
|
+
u(this, ye, /* @__PURE__ */ c((i) => (Array.isArray(i) || (i = [i]), i.forEach((t) => {
|
|
855
849
|
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;
|
|
856
850
|
}), i), "#defaultInsert"));
|
|
857
|
-
x(this, "add", /* @__PURE__ */
|
|
851
|
+
x(this, "add", /* @__PURE__ */ c((i, t = !0) => {
|
|
858
852
|
var r;
|
|
859
853
|
i === void 0 && (i = {});
|
|
860
854
|
const s = e(this, be).call(this, i);
|
|
@@ -865,7 +859,7 @@ const k = class k {
|
|
|
865
859
|
d && (d.__ng.rowState = k.ROW_STATE.EMPTY);
|
|
866
860
|
}), (r = e(this, w).viewRecords) != null && r.reset && e(this, w).viewRecords.reset(), n;
|
|
867
861
|
}, "add"));
|
|
868
|
-
x(this, "delete", /* @__PURE__ */
|
|
862
|
+
x(this, "delete", /* @__PURE__ */ c((i) => {
|
|
869
863
|
var s;
|
|
870
864
|
let t = [];
|
|
871
865
|
Array.isArray(i) ? t = i : typeof i > "u" ? t = [e(this, w).owner.row.at] : t = [parseInt(i, 10)], t.sort((n, r) => r - n).forEach((n) => {
|
|
@@ -877,7 +871,7 @@ const k = class k {
|
|
|
877
871
|
}
|
|
878
872
|
}), this.resetRecords(), (s = e(this, w).viewRecords) != null && s.reset && e(this, w).viewRecords.reset();
|
|
879
873
|
}, "delete"));
|
|
880
|
-
x(this, "setValue", /* @__PURE__ */
|
|
874
|
+
x(this, "setValue", /* @__PURE__ */ c((i, t, s) => {
|
|
881
875
|
var d;
|
|
882
876
|
i = parseInt(i, 10);
|
|
883
877
|
const r = (typeof ((d = e(this, T).fields) == null ? void 0 : d.get) == "function" ? e(this, T).fields.get() : []).indexOf(t);
|
|
@@ -887,15 +881,15 @@ const k = class k {
|
|
|
887
881
|
const a = o.v[r];
|
|
888
882
|
a !== s && o.__ng.rowState !== k.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(t) || (o.__ng.o[t] = a), o.__ng.rowState = k.ROW_STATE.UPDATE), o.v[r] = s, e(this, w).owner.refreshData && e(this, w).owner.refreshData(i);
|
|
889
883
|
}, "setValue"));
|
|
890
|
-
x(this, "resetRecords", /* @__PURE__ */
|
|
884
|
+
x(this, "resetRecords", /* @__PURE__ */ c(() => {
|
|
891
885
|
y(this, K, e(this, w).rawRecords.filter((i) => !i.__ng.deleted)), y(this, q, e(this, w).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), e(this, w).rawRecords.forEach((i, t) => {
|
|
892
886
|
i.__ng.rowidx = t;
|
|
893
887
|
}), e(this, q).forEach((i, t) => {
|
|
894
888
|
i.__ng.i = t;
|
|
895
889
|
});
|
|
896
890
|
}, "resetRecords"));
|
|
897
|
-
x(this, "getValidData", /* @__PURE__ */
|
|
898
|
-
u(this, Z, /* @__PURE__ */
|
|
891
|
+
x(this, "getValidData", /* @__PURE__ */ c(() => (e(this, q).length === 0 && e(this, w).rawRecords.length > 0 && this.resetRecords(), e(this, q)), "getValidData"));
|
|
892
|
+
u(this, Z, /* @__PURE__ */ c((i) => {
|
|
899
893
|
var s;
|
|
900
894
|
if (!i) return i;
|
|
901
895
|
const t = typeof ((s = e(this, T).fields) == null ? void 0 : s.get) == "function" ? e(this, T).fields.get() : [];
|
|
@@ -906,8 +900,8 @@ const k = class k {
|
|
|
906
900
|
}), r.__ng = n.__ng, r;
|
|
907
901
|
}) : i;
|
|
908
902
|
}, "#conv2"));
|
|
909
|
-
x(this, "count", /* @__PURE__ */
|
|
910
|
-
x(this, "get", /* @__PURE__ */
|
|
903
|
+
x(this, "count", /* @__PURE__ */ c(() => this.getValidData().length, "count"));
|
|
904
|
+
x(this, "get", /* @__PURE__ */ c((i, t) => {
|
|
911
905
|
var r;
|
|
912
906
|
const s = this.getValidData();
|
|
913
907
|
if (!s || s.length <= 0) return;
|
|
@@ -938,7 +932,7 @@ const k = class k {
|
|
|
938
932
|
return this.length;
|
|
939
933
|
}
|
|
940
934
|
};
|
|
941
|
-
T = new WeakMap(), w = new WeakMap(), q = new WeakMap(), K = new WeakMap(), ue = new WeakMap(), z = new WeakMap(), ge = new WeakMap(), ee = new WeakMap(), be = new WeakMap(), ye = new WeakMap(), Z = new WeakMap(),
|
|
935
|
+
T = new WeakMap(), w = new WeakMap(), q = new WeakMap(), K = new WeakMap(), ue = new WeakMap(), z = new WeakMap(), ge = new WeakMap(), ee = new WeakMap(), be = new WeakMap(), ye = new WeakMap(), Z = new WeakMap(), c(k, "ngData"), // π― ν μν μ μ μμλ₯Ό ν΄λμ€ λ΄λΆλ‘ λ΄μ¬ν
|
|
942
936
|
x(k, "ROW_STATE", {
|
|
943
937
|
EMPTY: "EMPTY",
|
|
944
938
|
NORMAL: "NORMAL",
|
|
@@ -947,7 +941,7 @@ x(k, "ROW_STATE", {
|
|
|
947
941
|
DELETE: "DELETE"
|
|
948
942
|
});
|
|
949
943
|
let Re = k;
|
|
950
|
-
const
|
|
944
|
+
const Ie = class Ie {
|
|
951
945
|
constructor(i) {
|
|
952
946
|
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 = () => {
|
|
953
947
|
var t;
|
|
@@ -966,8 +960,8 @@ const He = class He {
|
|
|
966
960
|
}, this.setDataSource([]);
|
|
967
961
|
}
|
|
968
962
|
};
|
|
969
|
-
|
|
970
|
-
let Ae =
|
|
963
|
+
c(Ie, "ngDataManager");
|
|
964
|
+
let Ae = Ie;
|
|
971
965
|
var X, pe;
|
|
972
966
|
const Me = class Me extends HTMLElement {
|
|
973
967
|
constructor() {
|
|
@@ -996,7 +990,7 @@ const Me = class Me extends HTMLElement {
|
|
|
996
990
|
return e(this, X);
|
|
997
991
|
}
|
|
998
992
|
};
|
|
999
|
-
X = new WeakMap(), pe = new WeakMap(),
|
|
993
|
+
X = new WeakMap(), pe = new WeakMap(), c(Me, "NineTable");
|
|
1000
994
|
let Te = Me;
|
|
1001
995
|
customElements.get("nine-table") || customElements.define("nine-table", Te);
|
|
1002
996
|
//# sourceMappingURL=nine-table.js.map
|