@ninebone/table 0.0.228 β 0.0.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nine-table.js +76 -87
- package/dist/nine-table.js.map +1 -1
- package/dist/nine-table.umd.js +4 -4
- package/dist/nine-table.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-table.js
CHANGED
|
@@ -22,29 +22,29 @@ const qe = class qe extends De.constructor {
|
|
|
22
22
|
};
|
|
23
23
|
a(qe, "Trace");
|
|
24
24
|
let me = qe;
|
|
25
|
-
const
|
|
26
|
-
var
|
|
25
|
+
const G = new me();
|
|
26
|
+
var L, B, p, D, N, P, se, V, ne;
|
|
27
27
|
const ke = class ke extends HTMLElement {
|
|
28
28
|
constructor() {
|
|
29
29
|
super();
|
|
30
|
-
d(this,
|
|
30
|
+
d(this, L);
|
|
31
31
|
d(this, B, !1);
|
|
32
32
|
d(this, p);
|
|
33
33
|
d(this, D);
|
|
34
34
|
d(this, N);
|
|
35
35
|
d(this, P);
|
|
36
36
|
d(this, se, /* @__PURE__ */ a(() => {
|
|
37
|
-
if (!e(this,
|
|
38
|
-
const t = e(this,
|
|
37
|
+
if (!e(this, L)) return;
|
|
38
|
+
const t = e(this, L).querySelector(".ng-container-body");
|
|
39
39
|
t && (y(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,
|
|
44
|
+
if (!e(this, L) || !e(this, p) || e(this, B)) return;
|
|
45
45
|
const t = e(this, p).container, s = t.querySelector("table");
|
|
46
46
|
if (!s) return;
|
|
47
|
-
const n = e(this, p).track, r = e(this, p).thumb, o = e(this,
|
|
47
|
+
const n = e(this, p).track, r = e(this, p).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 {
|
|
@@ -59,7 +59,7 @@ const ke = class ke extends HTMLElement {
|
|
|
59
59
|
let g = 0;
|
|
60
60
|
b > 0 && (g = parseInt(u / b * (l - h), 10)), g < 0 && (g = 0);
|
|
61
61
|
const m = l - h;
|
|
62
|
-
g > m && (g = m), r.style.left = `${g}px`,
|
|
62
|
+
g > m && (g = m), r.style.left = `${g}px`, G.log(g), e(this, p).left.disabled = g === 0, e(this, p).right.disabled = g >= m - 1;
|
|
63
63
|
}, "refresh"));
|
|
64
64
|
d(this, V, /* @__PURE__ */ a((t) => {
|
|
65
65
|
if (!e(this, p)) return !1;
|
|
@@ -113,7 +113,7 @@ const ke = class ke extends HTMLElement {
|
|
|
113
113
|
}, "#init"));
|
|
114
114
|
}
|
|
115
115
|
connectedCallback() {
|
|
116
|
-
if (y(this,
|
|
116
|
+
if (y(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,7 +178,7 @@ 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;
|
|
@@ -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(), B = new WeakMap(), p = new WeakMap(), D = new WeakMap(), N = 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 $, _, E, W, H, M, re, oe, le, J;
|
|
204
204
|
const Le = class Le {
|
|
205
205
|
constructor(i) {
|
|
206
206
|
d(this, $);
|
|
207
|
-
d(this,
|
|
208
|
-
d(this,
|
|
207
|
+
d(this, _, []);
|
|
208
|
+
d(this, E, null);
|
|
209
209
|
d(this, W, null);
|
|
210
|
-
d(this, M, 0);
|
|
211
210
|
d(this, H, 0);
|
|
212
|
-
|
|
211
|
+
d(this, M, 0);
|
|
212
|
+
x(this, "getRowHeight", /* @__PURE__ */ a(() => e(this, E), "getRowHeight"));
|
|
213
213
|
d(this, re, /* @__PURE__ */ a(() => {
|
|
214
214
|
e(this, oe).call(this);
|
|
215
215
|
}, "#init"));
|
|
@@ -229,9 +229,9 @@ const Le = class Le {
|
|
|
229
229
|
const c = s.querySelector(".ng-container-body") || s, f = c.querySelector("thead"), l = c.querySelector("tfoot");
|
|
230
230
|
f && (o += f.offsetHeight || f.getBoundingClientRect().height), l && (o += l.offsetHeight || l.getBoundingClientRect().height);
|
|
231
231
|
const h = Math.max(r - o, 100);
|
|
232
|
-
if (e(this,
|
|
233
|
-
const u = Math.ceil(e(this,
|
|
234
|
-
y(this,
|
|
232
|
+
if (e(this, H) !== h && (y(this, H, h), e(this, E) !== null)) {
|
|
233
|
+
const u = Math.ceil(e(this, H) / e(this, E));
|
|
234
|
+
y(this, M, u + 20), G.log(`[RowManager] Resized. Height: ${e(this, H)}px | Target Rows: ${e(this, M)}`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((b) => {
|
|
235
235
|
const g = s.querySelector(b);
|
|
236
236
|
g && g.querySelector("tbody") && e(this, J).call(this, g);
|
|
237
237
|
});
|
|
@@ -240,32 +240,21 @@ const Le = class Le {
|
|
|
240
240
|
}
|
|
241
241
|
})), e(this, W).observe(e(this, $)));
|
|
242
242
|
}, "#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
243
|
// π― ν
νλ¦Ώ μΆμΆ, λμ΄ μΈ‘μ , μ΄κΈ° λ λλ§μ μμμ λ§κ² λ΄λΆμμ μΌκ΄ μ²λ¦¬
|
|
250
244
|
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);
|
|
245
|
+
const t = e(this, $).querySelector(".ng-container-body"), s = i.querySelector("tbody"), n = Array.from(s.querySelectorAll("tr"));
|
|
246
|
+
y(this, _, n.map((r) => r.cloneNode(!0))), y(this, E, null), e(this, le).call(this, t), e(this, J).call(this, t);
|
|
258
247
|
}, "initialize"));
|
|
259
248
|
d(this, le, /* @__PURE__ */ a((i) => {
|
|
260
|
-
if (e(this,
|
|
261
|
-
return e(this,
|
|
262
|
-
if (e(this,
|
|
249
|
+
if (e(this, E) !== null && e(this, E) > 0)
|
|
250
|
+
return e(this, E);
|
|
251
|
+
if (e(this, _).length === 0)
|
|
263
252
|
throw new Error("[RowManager] Template TRs are empty.");
|
|
264
253
|
const t = i.querySelector("tbody.bindable") || i.querySelector("tbody");
|
|
265
254
|
if (!t) return 24;
|
|
266
255
|
t.querySelectorAll("tr:not(.nodata)").forEach((u) => u.remove());
|
|
267
256
|
const s = t.querySelector("tr.nodata"), n = document.createDocumentFragment();
|
|
268
|
-
e(this,
|
|
257
|
+
e(this, _).forEach((u) => {
|
|
269
258
|
n.appendChild(u.cloneNode(!0));
|
|
270
259
|
}), s ? s.before(n) : t.appendChild(n);
|
|
271
260
|
const r = i.closest("nine-table-sheet"), o = r ? r.style.display : "", c = r ? r.style.visibility : "", f = r ? r.style.position : "";
|
|
@@ -273,13 +262,13 @@ const Le = class Le {
|
|
|
273
262
|
let l = 0;
|
|
274
263
|
if (t.querySelectorAll("tr:not(.nodata)").forEach((u, b) => {
|
|
275
264
|
const g = u.offsetHeight || u.getBoundingClientRect().height;
|
|
276
|
-
|
|
277
|
-
}), r && (r.style.display = o, r.style.visibility = c, r.style.position = f), y(this,
|
|
278
|
-
const u = Math.ceil(e(this,
|
|
279
|
-
y(this,
|
|
265
|
+
l += g;
|
|
266
|
+
}), r && (r.style.display = o, r.style.visibility = c, r.style.position = f), y(this, E, l), e(this, H) > 0) {
|
|
267
|
+
const u = Math.ceil(e(this, H) / e(this, E));
|
|
268
|
+
y(this, M, u + 20);
|
|
280
269
|
} else
|
|
281
|
-
y(this,
|
|
282
|
-
return console.log(`[RowManager] Template Height Cached: ${e(this,
|
|
270
|
+
y(this, M, 40);
|
|
271
|
+
return console.log(`[RowManager] Template Height Cached: ${e(this, E)}px | RowCount: ${e(this, M)}`), e(this, E);
|
|
283
272
|
}, "#measureAndCacheHeight"));
|
|
284
273
|
/**
|
|
285
274
|
* π― μΊμλ ν κ°μ λ°ν (μμ λλ§ μ΅μνμ λ°©μ΄ μ°μ°)
|
|
@@ -298,13 +287,13 @@ const Le = class Le {
|
|
|
298
287
|
* π― μΊμλ ν κ°μλ₯Ό κ³§λ°λ‘ κ°μ Έμμ TR λΌλ μ£Όμ
(μ€λ³΅ κ³μ° μ κ±°)
|
|
299
288
|
*/
|
|
300
289
|
d(this, J, /* @__PURE__ */ a((i) => {
|
|
301
|
-
if (e(this,
|
|
290
|
+
if (e(this, _).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, M);
|
|
306
295
|
for (let o = 0; o < r; o++)
|
|
307
|
-
e(this,
|
|
296
|
+
e(this, _).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.`);
|
|
@@ -315,13 +304,13 @@ const Le = class Le {
|
|
|
315
304
|
y(this, $, i), e(this, re).call(this);
|
|
316
305
|
}
|
|
317
306
|
get templateLength() {
|
|
318
|
-
return e(this,
|
|
307
|
+
return e(this, _).length || 1;
|
|
319
308
|
}
|
|
320
309
|
};
|
|
321
|
-
$ = new WeakMap(),
|
|
310
|
+
$ = new WeakMap(), _ = new WeakMap(), E = new WeakMap(), W = new WeakMap(), H = new WeakMap(), M = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), le = new WeakMap(), J = new WeakMap(), a(Le, "RowManager");
|
|
322
311
|
let ve = Le;
|
|
323
312
|
var I, U, ae, ce;
|
|
324
|
-
const
|
|
313
|
+
const j = class j extends HTMLElement {
|
|
325
314
|
constructor() {
|
|
326
315
|
super();
|
|
327
316
|
d(this, I, null);
|
|
@@ -331,12 +320,12 @@ const G = class G extends HTMLElement {
|
|
|
331
320
|
const s = /* @__PURE__ */ a((l) => {
|
|
332
321
|
const h = /* @__PURE__ */ a((b) => {
|
|
333
322
|
if (b.querySelector("colgroup")) return;
|
|
334
|
-
const g = b.querySelector("tbody tr") || b.querySelector("tr"), m = g ? g.querySelectorAll("th, td").length : 1,
|
|
335
|
-
for (let
|
|
323
|
+
const g = b.querySelector("tbody tr") || b.querySelector("tr"), m = g ? g.querySelectorAll("th, td").length : 1, R = document.createElement("colgroup"), T = Math.max(Math.floor(b.clientWidth / m), 100);
|
|
324
|
+
for (let C = 0; C < m; C++) {
|
|
336
325
|
const Y = document.createElement("col");
|
|
337
|
-
Y.setAttribute("width", T),
|
|
326
|
+
Y.setAttribute("width", T), R.appendChild(Y);
|
|
338
327
|
}
|
|
339
|
-
b.prepend(
|
|
328
|
+
b.prepend(R);
|
|
340
329
|
}, "ensureColgroup"), u = /* @__PURE__ */ a((b) => {
|
|
341
330
|
if (b.querySelector("thead")) return;
|
|
342
331
|
const g = document.createElement("thead"), m = b.querySelector("colgroup");
|
|
@@ -347,14 +336,14 @@ const G = class G extends HTMLElement {
|
|
|
347
336
|
y(this, I, s(n)), e(this, I).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
338
|
const b = l.cloneNode(!0), g = Array.from(b.querySelectorAll("colgroup col")), m = [];
|
|
350
|
-
return g.forEach((
|
|
351
|
-
const
|
|
339
|
+
return g.forEach((R, T) => {
|
|
340
|
+
const C = R.getAttribute("fixed");
|
|
352
341
|
let Y = !1;
|
|
353
|
-
u ? Y =
|
|
354
|
-
}), m.reverse().forEach((
|
|
355
|
-
g[
|
|
356
|
-
const
|
|
357
|
-
|
|
342
|
+
u ? Y = C !== "left" && C !== "right" : Y = C === h, Y || m.push(T);
|
|
343
|
+
}), m.reverse().forEach((R) => {
|
|
344
|
+
g[R] && g[R].remove(), b.querySelectorAll("tr").forEach((T) => {
|
|
345
|
+
const C = T.querySelectorAll("th, td");
|
|
346
|
+
C[R] && C[R].remove();
|
|
358
347
|
});
|
|
359
348
|
}), b;
|
|
360
349
|
}, "filterTableByFixed");
|
|
@@ -413,11 +402,11 @@ const G = class G extends HTMLElement {
|
|
|
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);
|
|
415
404
|
for (let m = 0; m < h; m++) {
|
|
416
|
-
const
|
|
405
|
+
const R = [
|
|
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
|
((g = l[m]) == null ? void 0 : g.getBoundingClientRect().height) || 0
|
|
420
|
-
], T = Math.max(...
|
|
409
|
+
], T = Math.max(...R);
|
|
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
|
}
|
|
423
412
|
});
|
|
@@ -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 {
|
|
@@ -558,11 +547,11 @@ const G = class G extends HTMLElement {
|
|
|
558
547
|
e(this, ae).call(this);
|
|
559
548
|
}
|
|
560
549
|
disconnectedCallback() {
|
|
561
|
-
this.innerHTML = "",
|
|
550
|
+
this.innerHTML = "", G.log("NineTableSheet destroyed.");
|
|
562
551
|
}
|
|
563
552
|
};
|
|
564
|
-
I = new WeakMap(), U = new WeakMap(), ae = new WeakMap(), ce = new WeakMap(), a(
|
|
565
|
-
let ie =
|
|
553
|
+
I = 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
556
|
var he, Q;
|
|
568
557
|
const Ce = class Ce extends HTMLElement {
|
|
@@ -582,8 +571,8 @@ const Ce = class Ce extends HTMLElement {
|
|
|
582
571
|
Array.from(this.querySelectorAll("nine-splitter")).forEach((g) => g.style.setProperty("display", "none"));
|
|
583
572
|
const b = h.filter((g) => g.classList.contains("active"));
|
|
584
573
|
b.length < 2 || b.forEach((g) => {
|
|
585
|
-
const m = parseInt(g.getAttribute("data-index"), 10),
|
|
586
|
-
|
|
574
|
+
const m = parseInt(g.getAttribute("data-index"), 10), R = this.querySelector(`nine-splitter[data-split-index="${m}"]`), T = h[m + 1];
|
|
575
|
+
R && T && T.classList.contains("active") && R.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");
|
|
589
578
|
if (!c[t]) return;
|
|
@@ -615,29 +604,29 @@ const Ce = class Ce extends HTMLElement {
|
|
|
615
604
|
he = new WeakMap(), Q = new WeakMap(), a(Ce, "NineTableSheets");
|
|
616
605
|
let xe = Ce;
|
|
617
606
|
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", xe);
|
|
618
|
-
var
|
|
607
|
+
var S, de, ee, fe;
|
|
619
608
|
const _e = class _e {
|
|
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, ee).call(this);
|
|
615
|
+
}).observe(e(this, S));
|
|
627
616
|
}, "#init"));
|
|
628
617
|
d(this, ee, /* @__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,20 +725,20 @@ 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
731
|
f.generate(t[l]), s && e(this, ee).call(this);
|
|
743
732
|
});
|
|
744
733
|
});
|
|
745
734
|
}, "#render"));
|
|
746
|
-
y(this,
|
|
735
|
+
y(this, S, i), e(this, de).call(this);
|
|
747
736
|
}
|
|
748
737
|
};
|
|
749
|
-
|
|
738
|
+
S = new WeakMap(), de = new WeakMap(), ee = new WeakMap(), fe = new WeakMap(), a(_e, "LayoutManager");
|
|
750
739
|
let Se = _e;
|
|
751
740
|
var z, X;
|
|
752
|
-
const
|
|
741
|
+
const He = class He {
|
|
753
742
|
constructor(i) {
|
|
754
743
|
d(this, z);
|
|
755
744
|
d(this, X, -1);
|
|
@@ -769,8 +758,8 @@ const Me = class Me {
|
|
|
769
758
|
});
|
|
770
759
|
}
|
|
771
760
|
};
|
|
772
|
-
z = new WeakMap(), X = new WeakMap(), a(
|
|
773
|
-
let Re =
|
|
761
|
+
z = new WeakMap(), X = new WeakMap(), a(He, "ngRow");
|
|
762
|
+
let Re = He;
|
|
774
763
|
var A, v, q, K, ue, O, ge, te, be, ye, Z;
|
|
775
764
|
const k = class k {
|
|
776
765
|
constructor(i, t) {
|
|
@@ -916,7 +905,7 @@ x(k, "ROW_STATE", {
|
|
|
916
905
|
DELETE: "DELETE"
|
|
917
906
|
});
|
|
918
907
|
let Ee = k;
|
|
919
|
-
const
|
|
908
|
+
const Me = class Me {
|
|
920
909
|
constructor(i) {
|
|
921
910
|
this.owner = i, this.row = new Re(this), this.data = new Ee(i, this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
|
|
922
911
|
var t;
|
|
@@ -935,8 +924,8 @@ const He = class He {
|
|
|
935
924
|
}, this.setDataSource([]);
|
|
936
925
|
}
|
|
937
926
|
};
|
|
938
|
-
a(
|
|
939
|
-
let Te =
|
|
927
|
+
a(Me, "ngDataManager");
|
|
928
|
+
let Te = Me;
|
|
940
929
|
var F, pe;
|
|
941
930
|
const Ie = class Ie extends HTMLElement {
|
|
942
931
|
constructor() {
|
|
@@ -947,10 +936,10 @@ const Ie = class Ie extends HTMLElement {
|
|
|
947
936
|
this.attachShadow({ mode: "open" }), y(this, F, new Te(this));
|
|
948
937
|
}
|
|
949
938
|
connectedCallback() {
|
|
950
|
-
y(this, pe, new Se(this)),
|
|
939
|
+
y(this, pe, new Se(this)), G.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
|
|
951
940
|
}
|
|
952
941
|
disconnectedCallback() {
|
|
953
|
-
|
|
942
|
+
G.log("NineTable disconnected.");
|
|
954
943
|
}
|
|
955
944
|
// π― μΈλΆμμ grid.data.set(...) ννλ‘ μ κ·Όν μ μλλ‘ λ°μ΄ν° λ§€λμ μ€ν
|
|
956
945
|
get data() {
|