@ninebone/table 0.0.633 β†’ 0.0.635

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.
@@ -4,7 +4,7 @@ var Ve = (q) => {
4
4
  };
5
5
  var Xe = (q, i, e) => i in q ? Fe(q, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : q[i] = e;
6
6
  var c = (q, i) => Fe(q, "name", { value: i, configurable: !0 });
7
- var A = (q, i, e) => Xe(q, typeof i != "symbol" ? i + "" : i, e), Ye = (q, i, e) => i.has(q) || Ve("Cannot " + e);
7
+ var E = (q, i, e) => Xe(q, typeof i != "symbol" ? i + "" : i, e), Ye = (q, i, e) => i.has(q) || Ve("Cannot " + e);
8
8
  var t = (q, i, e) => (Ye(q, i, "read from private field"), e ? e.call(q) : i.get(q)), d = (q, i, e) => i.has(q) ? Ve("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(q) : i.set(q, e), y = (q, i, e, s) => (Ye(q, i, "write to private field"), s ? s.call(q, e) : i.set(q, e), e);
9
9
  var Ue = (q, i, e, s) => ({
10
10
  set _(r) {
@@ -40,7 +40,7 @@ const Me = class Me extends HTMLElement {
40
40
  this.refresh();
41
41
  })), t(this, Z).observe(e));
42
42
  }, "#observeResize"));
43
- A(this, "refresh", /* @__PURE__ */ c(() => {
43
+ E(this, "refresh", /* @__PURE__ */ c(() => {
44
44
  if (!t(this, B) || !t(this, w) || t(this, j)) return;
45
45
  const e = t(this, w).container, s = e.querySelector("table");
46
46
  if (!s) return;
@@ -211,7 +211,7 @@ const $e = class $e extends HTMLElement {
211
211
  d(this, T);
212
212
  d(this, vt, 0);
213
213
  d(this, xt, 0);
214
- A(this, "refresh", /* @__PURE__ */ c(() => {
214
+ E(this, "refresh", /* @__PURE__ */ c(() => {
215
215
  if (!t(this, F) || !t(this, T)) return;
216
216
  const e = t(this, T).container, s = t(this, T).track, r = t(this, T).thumb, n = e.clientHeight, a = (t(this, F).data.get() || []).length, h = t(this, at).getRowHeight(), l = a * h;
217
217
  if (l <= n || a === 0) {
@@ -244,10 +244,10 @@ const $e = class $e extends HTMLElement {
244
244
  if (!t(this, J)) return;
245
245
  const h = t(this, T).track.getBoundingClientRect(), l = t(this, T).thumb.clientHeight, u = h.height - l, b = a.clientY - t(this, vt), g = e.clientHeight, m = s(), x = Math.max(m - g, 1);
246
246
  if (u > 0 && x > 0) {
247
- const E = b / u * x;
248
- let v = t(this, xt) + E;
249
- const I = Math.max(0, m - g);
250
- v < 0 && (v = 0), v > I && (v = I), e.scrollTop = v;
247
+ const A = b / u * x;
248
+ let v = t(this, xt) + A;
249
+ const W = Math.max(0, m - g);
250
+ v < 0 && (v = 0), v > W && (v = W), e.scrollTop = v;
251
251
  }
252
252
  this.refresh();
253
253
  }, "onMouseMove"), o = /* @__PURE__ */ c(() => {
@@ -354,14 +354,14 @@ const $e = class $e extends HTMLElement {
354
354
  F = new WeakMap(), at = new WeakMap(), J = new WeakMap(), T = new WeakMap(), vt = new WeakMap(), xt = new WeakMap(), Nt = new WeakMap(), c($e, "NineTableVScrollBar");
355
355
  let le = $e;
356
356
  customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", le);
357
- var P, S, Q, D, _, V, tt, wt, Se, Ee, Wt, Ot, zt, St, Et, Bt, Dt, At, Ae, lt, qt, Pt;
357
+ var P, S, Q, D, I, V, tt, wt, Se, Ee, Wt, Ot, zt, St, Et, Bt, Dt, At, Ae, lt, qt, Pt;
358
358
  const Ie = class Ie {
359
359
  constructor(i) {
360
360
  d(this, P);
361
361
  d(this, S);
362
362
  d(this, Q);
363
363
  d(this, D, /* @__PURE__ */ new Map());
364
- d(this, _, null);
364
+ d(this, I, null);
365
365
  d(this, V, null);
366
366
  d(this, tt, 0);
367
367
  d(this, wt, 40);
@@ -369,17 +369,17 @@ const Ie = class Ie {
369
369
  d(this, Ee, !1);
370
370
  //#ticking = false; // 🎯 고속 슀크둀 μŠ€λ‘œν‹€λ§μš© ν”Œλž˜κ·Έ
371
371
  d(this, Wt, 3);
372
- A(this, "refresh", /* @__PURE__ */ c(() => {
372
+ E(this, "refresh", /* @__PURE__ */ c(() => {
373
373
  var e;
374
374
  H.log("rowManager.refresh");
375
375
  const i = t(this, S).querySelector(".ng-container-body .ng-part-body");
376
376
  i && (t(this, St).call(this), t(this, lt).call(this, i.scrollTop), (e = t(this, S).querySelector("nine-table-vscrollbar")) == null || e.refresh());
377
377
  }, "refresh"));
378
- A(this, "initialize", /* @__PURE__ */ c(() => {
378
+ E(this, "initialize", /* @__PURE__ */ c(() => {
379
379
  H.log("rowManager.initialize"), y(this, Q, {
380
380
  scrollTables: t(this, S).querySelectorAll(".ng-part-body table"),
381
381
  firstTr: t(this, S).querySelector(".ng-container-body .ng-part-body tbody.bindable-tbody tr:not(.nodata)")
382
- }), y(this, _, null), t(this, D).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
382
+ }), y(this, I, null), t(this, D).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
383
383
  const a = t(this, S).querySelector(o);
384
384
  if (!a) return;
385
385
  const h = a.querySelector(".ng-part-body table");
@@ -421,8 +421,8 @@ const Ie = class Ie {
421
421
  n ? n.before(o) : r.appendChild(o), e === ".ng-container-body" && (t(this, Q).firstTr = r.querySelector("tr:not(.nodata)"));
422
422
  }, "#renderRows"));
423
423
  d(this, zt, /* @__PURE__ */ c((i) => {
424
- if (H.log("rowManager.#measureAndCacheHeight"), t(this, _) !== null && t(this, _) > 0)
425
- return t(this, _);
424
+ if (H.log("rowManager.#measureAndCacheHeight"), t(this, I) !== null && t(this, I) > 0)
425
+ return t(this, I);
426
426
  H.log("#measureAndCacheHeight");
427
427
  const e = t(this, D).get(".ng-container-body");
428
428
  if (!e || e.length === 0) throw new Error("invalid dom");
@@ -445,11 +445,11 @@ const Ie = class Ie {
445
445
  }
446
446
  f += g;
447
447
  }), u.forEach((b) => b.remove()), o.style.display = a, o.style.visibility = h, o.style.position = l, f <= 0) throw new Error("invalid dom");
448
- return y(this, _, f), t(this, Et).call(this), t(this, _);
448
+ return y(this, I, f), t(this, Et).call(this), t(this, I);
449
449
  }, "#measureAndCacheHeight"));
450
450
  d(this, St, /* @__PURE__ */ c(() => {
451
451
  H.log("rowManager.#updateVirtualScrollHeight");
452
- const e = (t(this, P).data.get() || []).length, s = t(this, _), r = e * s;
452
+ const e = (t(this, P).data.get() || []).length, s = t(this, I), r = e * s;
453
453
  H.log("πŸ” [VirtualHeight]", { totalCount: e, rowHeight: s, totalVirtualHeight: r }), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((n) => {
454
454
  const o = t(this, S).querySelector(n);
455
455
  if (!o) return;
@@ -458,8 +458,8 @@ const Ie = class Ie {
458
458
  });
459
459
  }, "#updateVirtualScrollHeight"));
460
460
  d(this, Et, /* @__PURE__ */ c(() => {
461
- if (t(this, tt) > 0 && t(this, _) > 0) {
462
- const i = Math.ceil(t(this, tt) / t(this, _));
461
+ if (t(this, tt) > 0 && t(this, I) > 0) {
462
+ const i = Math.ceil(t(this, tt) / t(this, I));
463
463
  y(this, wt, i + t(this, Wt));
464
464
  }
465
465
  }, "#updateRowCount"));
@@ -467,25 +467,25 @@ const Ie = class Ie {
467
467
  var a, h, l, f, u, b;
468
468
  const i = t(this, S).querySelector(".ng-container-left .ng-part-body table"), e = t(this, S).querySelector(".ng-container-body .ng-part-body table"), s = t(this, S).querySelector(".ng-container-right .ng-part-body table");
469
469
  if (e) {
470
- const g = i ? Array.from(i.querySelectorAll("tbody tr")) : [], m = Array.from(e.querySelectorAll("tbody tr")), x = s ? Array.from(s.querySelectorAll("tbody tr")) : [], E = Math.max(g.length, m.length, x.length);
471
- for (let v = 0; v < E; v++) {
472
- const I = [
470
+ const g = i ? Array.from(i.querySelectorAll("tbody tr")) : [], m = Array.from(e.querySelectorAll("tbody tr")), x = s ? Array.from(s.querySelectorAll("tbody tr")) : [], A = Math.max(g.length, m.length, x.length);
471
+ for (let v = 0; v < A; v++) {
472
+ const W = [
473
473
  ((a = g[v]) == null ? void 0 : a.getBoundingClientRect().height) || 0,
474
474
  ((h = m[v]) == null ? void 0 : h.getBoundingClientRect().height) || 0,
475
475
  ((l = x[v]) == null ? void 0 : l.getBoundingClientRect().height) || 0
476
- ], R = Math.max(...I);
476
+ ], R = Math.max(...W);
477
477
  R > 0 && (g[v] && (g[v].style.height = `${R}px`), m[v] && (m[v].style.height = `${R}px`), x[v] && (x[v].style.height = `${R}px`));
478
478
  }
479
479
  }
480
480
  const r = t(this, S).querySelector(".ng-container-left .ng-part-footer table"), n = t(this, S).querySelector(".ng-container-body .ng-part-footer table"), o = t(this, S).querySelector(".ng-container-right .ng-part-footer table");
481
481
  if (n) {
482
- const g = r ? Array.from(r.querySelectorAll("tfoot tr")) : [], m = Array.from(n.querySelectorAll("tfoot tr")), x = o ? Array.from(o.querySelectorAll("tfoot tr")) : [], E = Math.max(g.length, m.length, x.length);
483
- for (let v = 0; v < E; v++) {
484
- const I = [
482
+ const g = r ? Array.from(r.querySelectorAll("tfoot tr")) : [], m = Array.from(n.querySelectorAll("tfoot tr")), x = o ? Array.from(o.querySelectorAll("tfoot tr")) : [], A = Math.max(g.length, m.length, x.length);
483
+ for (let v = 0; v < A; v++) {
484
+ const W = [
485
485
  ((f = g[v]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
486
486
  ((u = m[v]) == null ? void 0 : u.getBoundingClientRect().height) || 0,
487
487
  ((b = x[v]) == null ? void 0 : b.getBoundingClientRect().height) || 0
488
- ], R = Math.max(...I);
488
+ ], R = Math.max(...W);
489
489
  R > 0 && (g[v] && (g[v].style.height = `${R}px`), m[v] && (m[v].style.height = `${R}px`), x[v] && (x[v].style.height = `${R}px`));
490
490
  }
491
491
  }
@@ -501,7 +501,7 @@ const Ie = class Ie {
501
501
  const o = s.querySelector(".ng-part-header"), a = s.querySelector(".ng-part-footer");
502
502
  o && (n += o.offsetHeight), a && (n += a.offsetHeight);
503
503
  const h = Math.max(r - n, 100);
504
- t(this, tt) !== h && (y(this, tt, h), t(this, Et).call(this), t(this, _) !== null && (t(this, At).call(this), this.refresh()));
504
+ t(this, tt) !== h && (y(this, tt, h), t(this, Et).call(this), t(this, I) !== null && (t(this, At).call(this), this.refresh()));
505
505
  }
506
506
  }
507
507
  })), t(this, V).observe(t(this, S)));
@@ -532,29 +532,30 @@ const Ie = class Ie {
532
532
  });
533
533
  }, "#adjustBufferRows"));
534
534
  d(this, lt, /* @__PURE__ */ c((i) => {
535
- var f, u;
536
- const e = t(this, _);
535
+ var u, b;
536
+ const e = t(this, I);
537
537
  if (!e || e <= 0) return;
538
538
  const s = t(this, P).data.length;
539
539
  if (s === 0) return;
540
- const r = ((f = t(this, D).get(".ng-container-body")) == null ? void 0 : f.length) || 1, n = Math.max(0, s - 1), o = Math.min(n, Math.max(0, Math.floor(i / e))), a = Math.floor(o * e);
541
- H.log(`πŸ“œ [Scroll Inspect] scrollTop: ${i}, rowHeight: ${e}, startIndex: ${o}, offsetY: ${a}`);
542
- const h = t(this, Q).firstTr, l = h && h.dataset.row !== void 0 ? parseInt(h.dataset.row, 10) : -1;
543
- (u = t(this, Q)) == null || u.scrollTables.forEach((b) => {
544
- b.style.transform = `translate3d(0, ${a}px, 0)`;
545
- }), l !== o && [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((b) => {
546
- const g = t(this, S).querySelector(b);
547
- if (!g) return;
548
- const m = g.querySelector(".ng-part-body tbody.bindable-tbody");
540
+ const r = ((u = t(this, D).get(".ng-container-body")) == null ? void 0 : u.length) || 1, n = Math.max(0, s * e - clientHeight), o = Math.max(0, s - 1);
541
+ let a = Math.min(o, Math.max(0, Math.floor(i / e))), h = Math.floor(a * e);
542
+ i >= n - e && n > 0 && (h = Math.floor(n / e) * e, a = o), H.log(`πŸ“œ [Scroll Inspect] scrollTop: ${i}, rowHeight: ${e}, startIndex: ${a}, offsetY: ${h}`);
543
+ const l = t(this, Q).firstTr, f = l && l.dataset.row !== void 0 ? parseInt(l.dataset.row, 10) : -1;
544
+ (b = t(this, Q)) == null || b.scrollTables.forEach((g) => {
545
+ g.style.transform = `translate3d(0, ${h}px, 0)`;
546
+ }), f !== a && [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((g) => {
547
+ const m = t(this, S).querySelector(g);
549
548
  if (!m) return;
550
- Array.from(m.querySelectorAll("tr:not(.nodata)")).forEach((E, v) => {
551
- const I = o + Math.floor(v / r);
552
- if (I >= s) {
553
- E.style.display = "none";
549
+ const x = m.querySelector(".ng-part-body tbody.bindable-tbody");
550
+ if (!x) return;
551
+ Array.from(x.querySelectorAll("tr:not(.nodata)")).forEach((v, W) => {
552
+ const R = a + Math.floor(W / r);
553
+ if (R >= s) {
554
+ v.style.display = "none";
554
555
  return;
555
556
  }
556
- const R = t(this, P).data.get(I);
557
- E.style.display = "", t(this, qt).call(this, E, R, I);
557
+ const O = t(this, P).data.get(R);
558
+ v.style.display = "", t(this, qt).call(this, v, O, R);
558
559
  });
559
560
  });
560
561
  }, "#handleScroll"));
@@ -594,20 +595,20 @@ const Ie = class Ie {
594
595
  g > 0 && (r[u] && (r[u].style.height = `${g}px`), n[u] && (n[u].style.height = `${g}px`), o[u] && (o[u].style.height = `${g}px`));
595
596
  }
596
597
  }, "#syncHeaderHeights"));
597
- A(this, "destroy", /* @__PURE__ */ c(() => {
598
+ E(this, "destroy", /* @__PURE__ */ c(() => {
598
599
  t(this, V) && (t(this, V).disconnect(), y(this, V, null));
599
600
  }, "destroy"));
600
601
  y(this, P, i.getRootNode().host), y(this, S, i), t(this, Dt).call(this);
601
602
  }
602
603
  getRowHeight() {
603
- return t(this, _);
604
+ return t(this, I);
604
605
  }
605
606
  templateLength(i = ".ng-container-body") {
606
607
  var e;
607
608
  return ((e = t(this, D).get(i)) == null ? void 0 : e.length) || 1;
608
609
  }
609
610
  };
610
- P = new WeakMap(), S = new WeakMap(), Q = new WeakMap(), D = new WeakMap(), _ = new WeakMap(), V = new WeakMap(), tt = new WeakMap(), wt = new WeakMap(), Se = new WeakMap(), Ee = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), zt = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), Bt = new WeakMap(), Dt = new WeakMap(), At = new WeakMap(), Ae = new WeakMap(), lt = new WeakMap(), qt = new WeakMap(), Pt = new WeakMap(), c(Ie, "RowManager");
611
+ P = new WeakMap(), S = new WeakMap(), Q = new WeakMap(), D = new WeakMap(), I = new WeakMap(), V = new WeakMap(), tt = new WeakMap(), wt = new WeakMap(), Se = new WeakMap(), Ee = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), zt = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), Bt = new WeakMap(), Dt = new WeakMap(), At = new WeakMap(), Ae = new WeakMap(), lt = new WeakMap(), qt = new WeakMap(), Pt = new WeakMap(), c(Ie, "RowManager");
611
612
  let ce = Ie;
612
613
  const jt = class jt {
613
614
  /**
@@ -627,8 +628,8 @@ const jt = class jt {
627
628
  if (l.children.length > 0 && l.firstElementChild.tagName.includes("-")) return;
628
629
  let u = `cell-${f}`;
629
630
  const b = l.getAttribute("data-bind"), g = l.getAttribute("data-expr"), m = l.getAttribute("maxbyte"), x = l.getAttribute("type");
630
- let E = [];
631
- b && E.push(`data-bind="${b}"`), g && E.push(`data-expr="${g}"`), m && E.push(`maxbyte="${m}"`), x && E.push(`type="${x}"`), l.innerHTML = `<${u} ${E.join(" ")}></${u}>`;
631
+ let A = [];
632
+ b && A.push(`data-bind="${b}"`), g && A.push(`data-expr="${g}"`), m && A.push(`maxbyte="${m}"`), x && A.push(`type="${x}"`), l.innerHTML = `<${u} ${A.join(" ")}></${u}>`;
632
633
  });
633
634
  }, "processCellTypes"), s = /* @__PURE__ */ c((a) => {
634
635
  if (!a.querySelector("colgroup")) {
@@ -654,24 +655,24 @@ const jt = class jt {
654
655
  const g = Array.from(Array(u), () => Array(b).fill(null));
655
656
  l.forEach((m) => {
656
657
  const x = m.sectionRowIndex;
657
- let E = 0;
658
+ let A = 0;
658
659
  Array.from(m.querySelectorAll("th,td")).forEach((v) => {
659
- for (let z = 0; z < g[x].length; z++)
660
- if (g[x][z] === null) {
661
- E = z;
660
+ for (let O = 0; O < g[x].length; O++)
661
+ if (g[x][O] === null) {
662
+ A = O;
662
663
  break;
663
664
  }
664
- const I = v.rowSpan || 1, R = v.colSpan || 1;
665
- for (let z = 0; z < I; z++)
665
+ const W = v.rowSpan || 1, R = v.colSpan || 1;
666
+ for (let O = 0; O < W; O++)
666
667
  for (let yt = 0; yt < R; yt++)
667
- x + z < u && E + yt < b && (g[x + z][E + yt] = z === 0 && yt === 0 ? "1" : "0");
668
+ x + O < u && A + yt < b && (g[x + O][A + yt] = O === 0 && yt === 0 ? "1" : "0");
668
669
  });
669
670
  }), l.forEach((m) => {
670
671
  const x = m.sectionRowIndex;
671
- Array.from(m.querySelectorAll("th,td")).forEach((E) => {
672
+ Array.from(m.querySelectorAll("th,td")).forEach((A) => {
672
673
  for (let v = 0; v < g[x].length; v++)
673
674
  if (g[x][v] === "1") {
674
- E.dataset.col = v, g[x][v] = "0";
675
+ A.dataset.col = v, g[x][v] = "0";
675
676
  break;
676
677
  }
677
678
  });
@@ -695,7 +696,7 @@ const pt = class pt extends HTMLElement {
695
696
  d(this, Ft);
696
697
  d(this, et, null);
697
698
  d(this, st);
698
- A(this, "invalidate", /* @__PURE__ */ c(() => {
699
+ E(this, "invalidate", /* @__PURE__ */ c(() => {
699
700
  t(this, st).refresh();
700
701
  }, "invalidate"));
701
702
  d(this, Vt, /* @__PURE__ */ c(() => {
@@ -719,7 +720,7 @@ const pt = class pt extends HTMLElement {
719
720
  }), e === "body" ? s.style.flex = "1" : (s.style.flex = `0 0 ${n}px`, s.style.width = `${n}px`);
720
721
  });
721
722
  }, "#updateContainerWidths"));
722
- A(this, "generate", /* @__PURE__ */ c((e) => {
723
+ E(this, "generate", /* @__PURE__ */ c((e) => {
723
724
  if (!e) return;
724
725
  y(this, et, he.compile(e)), t(this, Vt).call(this), t(this, Yt).call(this);
725
726
  const s = this.querySelector(".ng-container-body .ng-part-header"), r = this.querySelector(".ng-container-body .ng-part-footer"), n = this.querySelector(".ng-nodata-overlay");
@@ -744,12 +745,12 @@ const pt = class pt extends HTMLElement {
744
745
  l.remove();
745
746
  }), n;
746
747
  }, "#createSplitTable"));
747
- A(this, "getRowHeight", /* @__PURE__ */ c(() => t(this, st).getRowHeight(), "getRowHeight"));
748
- A(this, "scrollToX", /* @__PURE__ */ c((e) => {
748
+ E(this, "getRowHeight", /* @__PURE__ */ c(() => t(this, st).getRowHeight(), "getRowHeight"));
749
+ E(this, "scrollToX", /* @__PURE__ */ c((e) => {
749
750
  const s = this.querySelector(".ng-container-body .ng-part-body");
750
751
  s && (s.scrollLeft = e);
751
752
  }, "scrollToX"));
752
- A(this, "scrollToY", /* @__PURE__ */ c((e) => {
753
+ E(this, "scrollToY", /* @__PURE__ */ c((e) => {
753
754
  const s = this.querySelector(".ng-container-body .ng-part-body");
754
755
  s && (s.scrollTop = e);
755
756
  }, "scrollToY"));
@@ -954,7 +955,7 @@ const pt = class pt extends HTMLElement {
954
955
  this.innerHTML = "", H.log("NineTableSheet destroyed.");
955
956
  }
956
957
  };
957
- Ft = new WeakMap(), et = new WeakMap(), st = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), ct = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), c(pt, "NineTableSheet"), A(pt, "SCROLLBAR_SIZE", 16);
958
+ Ft = new WeakMap(), et = new WeakMap(), st = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), ct = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), c(pt, "NineTableSheet"), E(pt, "SCROLLBAR_SIZE", 16);
958
959
  let $t = pt;
959
960
  customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", $t);
960
961
  var Kt, Rt;
@@ -975,8 +976,8 @@ const _e = class _e extends HTMLElement {
975
976
  Array.from(this.querySelectorAll("nine-splitter")).forEach((g) => g.style.setProperty("display", "none"));
976
977
  const b = f.filter((g) => g.classList.contains("active"));
977
978
  b.length < 2 || b.forEach((g) => {
978
- const m = parseInt(g.getAttribute("data-index"), 10), x = this.querySelector(`nine-splitter[data-split-index="${m}"]`), E = f[m + 1];
979
- x && E && E.classList.contains("active") && x.style.setProperty("display", "flex");
979
+ const m = parseInt(g.getAttribute("data-index"), 10), x = this.querySelector(`nine-splitter[data-split-index="${m}"]`), A = f[m + 1];
980
+ x && A && A.classList.contains("active") && x.style.setProperty("display", "flex");
980
981
  });
981
982
  }, "updateSplitters"), n = this.querySelector(".nine-tab-bar"), o = this.querySelector("nine-table-sheets-body"), a = n.querySelectorAll(".nine-tab-item"), h = o.querySelectorAll("nine-table-sheet");
982
983
  if (!a[e]) return;
@@ -1168,7 +1169,7 @@ const We = class We {
1168
1169
  constructor(i) {
1169
1170
  d(this, kt);
1170
1171
  d(this, ht, -1);
1171
- A(this, "count", /* @__PURE__ */ c(() => t(this, kt).rawRecords.length, "count"));
1172
+ E(this, "count", /* @__PURE__ */ c(() => t(this, kt).rawRecords.length, "count"));
1172
1173
  y(this, kt, i);
1173
1174
  }
1174
1175
  get at() {
@@ -1181,18 +1182,18 @@ const We = class We {
1181
1182
  };
1182
1183
  kt = new WeakMap(), ht = new WeakMap(), c(We, "ngRow");
1183
1184
  let ue = We;
1184
- var N, k, W, dt, Jt, Y, Qt, it, Ct, te, ee, ft;
1185
- const O = class O {
1185
+ var _, k, N, dt, Jt, Y, Qt, it, Ct, te, ee, ft;
1186
+ const z = class z {
1186
1187
  constructor(i, e) {
1187
- d(this, N);
1188
+ d(this, _);
1188
1189
  d(this, k);
1189
- d(this, W, []);
1190
+ d(this, N, []);
1190
1191
  d(this, dt, []);
1191
1192
  d(this, Jt, 0);
1192
1193
  d(this, Y, []);
1193
1194
  d(this, Qt, /* @__PURE__ */ c(() => {
1194
1195
  y(this, Y, []);
1195
- const i = t(this, N).template || [];
1196
+ const i = t(this, _).template || [];
1196
1197
  Array.from(i).forEach((e) => {
1197
1198
  var s;
1198
1199
  t(this, Y).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
@@ -1201,47 +1202,47 @@ const O = class O {
1201
1202
  });
1202
1203
  }, "#initialize"));
1203
1204
  d(this, it, /* @__PURE__ */ c(() => {
1204
- const i = t(this, N).shadowRoot.querySelector("nine-table-sheets");
1205
- i == null || i.classList.toggle("nodata", this.length === 0), t(this, N).shadowRoot.querySelectorAll("nine-table-sheet").forEach((e) => {
1205
+ const i = t(this, _).shadowRoot.querySelector("nine-table-sheets");
1206
+ i == null || i.classList.toggle("nodata", this.length === 0), t(this, _).shadowRoot.querySelectorAll("nine-table-sheet").forEach((e) => {
1206
1207
  e.invalidate();
1207
1208
  });
1208
1209
  }, "#invalidate"));
1209
- A(this, "get", /* @__PURE__ */ c((i, e) => {
1210
+ E(this, "get", /* @__PURE__ */ c((i, e) => {
1210
1211
  var n;
1211
1212
  const s = this.getValidData();
1212
1213
  if (!s || s.length <= 0) return;
1213
1214
  if (i == null) return t(this, ft).call(this, s);
1214
1215
  if (i < 0 || i >= s.length) return null;
1215
- const r = typeof ((n = t(this, N).fields) == null ? void 0 : n.get) == "function" ? t(this, N).fields.get() : [];
1216
+ const r = typeof ((n = t(this, _).fields) == null ? void 0 : n.get) == "function" ? t(this, _).fields.get() : [];
1216
1217
  if (e != null) {
1217
1218
  const o = r.indexOf(e);
1218
1219
  return o >= 0 ? s[i].v[o] : null;
1219
1220
  }
1220
1221
  return t(this, ft).call(this, s[i]);
1221
1222
  }, "get"));
1222
- A(this, "set", /* @__PURE__ */ c((i) => {
1223
+ E(this, "set", /* @__PURE__ */ c((i) => {
1223
1224
  this.clear(), this.add(i, !1), t(this, it).call(this);
1224
1225
  }, "set"));
1225
1226
  d(this, Ct, /* @__PURE__ */ c(() => ({
1226
- rowState: O.ROW_STATE.EMPTY,
1227
+ rowState: z.ROW_STATE.EMPTY,
1227
1228
  deleted: !1,
1228
1229
  filtered: !1,
1229
1230
  height: t(this, Y).slice(),
1230
1231
  o: {},
1231
1232
  c: {},
1232
- _: [0, 0, 0, 0, O.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, Y).slice(), -1, {}, {}]
1233
+ _: [0, 0, 0, 0, z.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, Y).slice(), -1, {}, {}]
1233
1234
  }), "#getDefaultMeta"));
1234
- A(this, "reset", /* @__PURE__ */ c(() => {
1235
- y(this, W, []), y(this, dt, []), t(this, it).call(this);
1235
+ E(this, "reset", /* @__PURE__ */ c(() => {
1236
+ y(this, N, []), y(this, dt, []), t(this, it).call(this);
1236
1237
  }, "reset"));
1237
- A(this, "clear", /* @__PURE__ */ c(() => {
1238
+ E(this, "clear", /* @__PURE__ */ c(() => {
1238
1239
  var i;
1239
- t(this, k).rawRecords = [], y(this, W, []), y(this, dt, []), (i = t(this, k).viewRecords) != null && i.reset && t(this, k).viewRecords.reset();
1240
+ t(this, k).rawRecords = [], y(this, N, []), y(this, dt, []), (i = t(this, k).viewRecords) != null && i.reset && t(this, k).viewRecords.reset();
1240
1241
  }, "clear"));
1241
1242
  d(this, te, /* @__PURE__ */ c((i) => {
1242
1243
  var r;
1243
1244
  Array.isArray(i) || (i = [i]);
1244
- const e = typeof ((r = t(this, N).fields) == null ? void 0 : r.get) == "function" ? t(this, N).fields.get() : Object.keys(i[0] || {}), s = [];
1245
+ const e = typeof ((r = t(this, _).fields) == null ? void 0 : r.get) == "function" ? t(this, _).fields.get() : Object.keys(i[0] || {}), s = [];
1245
1246
  return i.forEach((n) => {
1246
1247
  const o = { v: [] };
1247
1248
  e.forEach((a) => {
@@ -1250,51 +1251,51 @@ const O = class O {
1250
1251
  }), s;
1251
1252
  }, "#json2Array"));
1252
1253
  d(this, ee, /* @__PURE__ */ c((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
1253
- e.__ng = t(this, Ct).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = O.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1254
+ e.__ng = t(this, Ct).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = z.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1254
1255
  }), i), "#defaultInsert"));
1255
- A(this, "add", /* @__PURE__ */ c((i, e = !0) => {
1256
+ E(this, "add", /* @__PURE__ */ c((i, e = !0) => {
1256
1257
  i === void 0 && (i = {});
1257
1258
  const s = t(this, te).call(this, i);
1258
1259
  t(this, k).rawRecords = t(this, k).rawRecords.concat(t(this, ee).call(this, s)), this.resetRecords();
1259
1260
  const r = this.count() - 1;
1260
1261
  return e || s.forEach((n, o) => {
1261
1262
  const a = t(this, k).rawRecords[r - o];
1262
- a && (a.__ng.rowState = O.ROW_STATE.EMPTY);
1263
+ a && (a.__ng.rowState = z.ROW_STATE.EMPTY);
1263
1264
  }), t(this, it).call(this), r;
1264
1265
  }, "add"));
1265
- A(this, "delete", /* @__PURE__ */ c((i) => {
1266
+ E(this, "delete", /* @__PURE__ */ c((i) => {
1266
1267
  let e = [];
1267
1268
  Array.isArray(i) ? e = i : typeof i > "u" ? e = [t(this, k).host.row.at] : e = [parseInt(i, 10)], e.sort((s, r) => r - s).forEach((s) => {
1268
- if (t(this, W)[s]) {
1269
- const r = t(this, W)[s].__ng.rowid;
1270
- t(this, W)[s].__ng.rowState === O.ROW_STATE.INSERT ? t(this, k).rawRecords = t(this, k).rawRecords.filter((n) => n.__ng.rowid !== r) : t(this, k).rawRecords.forEach((n) => {
1271
- n.__ng.rowid === r && (n.__ng.deleted = !0, n.__ng.rowState = O.ROW_STATE.DELETE);
1269
+ if (t(this, N)[s]) {
1270
+ const r = t(this, N)[s].__ng.rowid;
1271
+ t(this, N)[s].__ng.rowState === z.ROW_STATE.INSERT ? t(this, k).rawRecords = t(this, k).rawRecords.filter((n) => n.__ng.rowid !== r) : t(this, k).rawRecords.forEach((n) => {
1272
+ n.__ng.rowid === r && (n.__ng.deleted = !0, n.__ng.rowState = z.ROW_STATE.DELETE);
1272
1273
  });
1273
1274
  }
1274
1275
  }), this.resetRecords(), t(this, it).call(this);
1275
1276
  }, "delete"));
1276
- A(this, "setValue", /* @__PURE__ */ c((i, e, s) => {
1277
+ E(this, "setValue", /* @__PURE__ */ c((i, e, s) => {
1277
1278
  var h;
1278
1279
  i = parseInt(i, 10);
1279
- const n = (typeof ((h = t(this, N).fields) == null ? void 0 : h.get) == "function" ? t(this, N).fields.get() : []).indexOf(e);
1280
+ const n = (typeof ((h = t(this, _).fields) == null ? void 0 : h.get) == "function" ? t(this, _).fields.get() : []).indexOf(e);
1280
1281
  if (n < 0) return;
1281
1282
  const o = this.getValidData()[i];
1282
1283
  if (!o) return;
1283
1284
  const a = o.v[n];
1284
- a !== s && o.__ng.rowState !== O.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(e) || (o.__ng.o[e] = a), o.__ng.rowState = O.ROW_STATE.UPDATE), o.v[n] = s;
1285
+ a !== s && o.__ng.rowState !== z.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(e) || (o.__ng.o[e] = a), o.__ng.rowState = z.ROW_STATE.UPDATE), o.v[n] = s;
1285
1286
  }, "setValue"));
1286
- A(this, "resetRecords", /* @__PURE__ */ c(() => {
1287
- y(this, dt, t(this, k).rawRecords.filter((i) => !i.__ng.deleted)), y(this, W, t(this, k).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), t(this, k).rawRecords.forEach((i, e) => {
1287
+ E(this, "resetRecords", /* @__PURE__ */ c(() => {
1288
+ y(this, dt, t(this, k).rawRecords.filter((i) => !i.__ng.deleted)), y(this, N, t(this, k).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), t(this, k).rawRecords.forEach((i, e) => {
1288
1289
  i.__ng.rowidx = e;
1289
- }), t(this, W).forEach((i, e) => {
1290
+ }), t(this, N).forEach((i, e) => {
1290
1291
  i.__ng.i = e;
1291
1292
  });
1292
1293
  }, "resetRecords"));
1293
- A(this, "getValidData", /* @__PURE__ */ c(() => (t(this, W).length === 0 && t(this, k).rawRecords.length > 0 && this.resetRecords(), t(this, W)), "getValidData"));
1294
+ E(this, "getValidData", /* @__PURE__ */ c(() => (t(this, N).length === 0 && t(this, k).rawRecords.length > 0 && this.resetRecords(), t(this, N)), "getValidData"));
1294
1295
  d(this, ft, /* @__PURE__ */ c((i) => {
1295
1296
  var o;
1296
1297
  if (!i) return i;
1297
- const e = !Array.isArray(i), s = e ? [i] : i, r = typeof ((o = t(this, N).fields) == null ? void 0 : o.get) == "function" ? t(this, N).fields.get() : [], n = s.filter((a) => !a.__ng.deleted).map((a) => {
1298
+ const e = !Array.isArray(i), s = e ? [i] : i, r = typeof ((o = t(this, _).fields) == null ? void 0 : o.get) == "function" ? t(this, _).fields.get() : [], n = s.filter((a) => !a.__ng.deleted).map((a) => {
1298
1299
  const h = {};
1299
1300
  return r.forEach((l, f) => {
1300
1301
  h[l] = a.v ? a.v[f] : a[l];
@@ -1302,8 +1303,8 @@ const O = class O {
1302
1303
  });
1303
1304
  return e ? n[0] : n;
1304
1305
  }, "#conv"));
1305
- A(this, "count", /* @__PURE__ */ c(() => this.getValidData().length, "count"));
1306
- y(this, N, i), y(this, k, e), t(this, Qt).call(this);
1306
+ E(this, "count", /* @__PURE__ */ c(() => this.getValidData().length, "count"));
1307
+ y(this, _, i), y(this, k, e), t(this, Qt).call(this);
1307
1308
  }
1308
1309
  get source() {
1309
1310
  return t(this, ft).call(this, t(this, k).rawRecords);
@@ -1315,24 +1316,24 @@ const O = class O {
1315
1316
  return ++Ue(this, Jt)._;
1316
1317
  }
1317
1318
  get count() {
1318
- return t(this, W).length;
1319
+ return t(this, N).length;
1319
1320
  }
1320
1321
  get length() {
1321
- return t(this, W).length;
1322
+ return t(this, N).length;
1322
1323
  }
1323
1324
  getRowCount() {
1324
1325
  return this.length;
1325
1326
  }
1326
1327
  };
1327
- N = new WeakMap(), k = new WeakMap(), W = new WeakMap(), dt = new WeakMap(), Jt = new WeakMap(), Y = new WeakMap(), Qt = new WeakMap(), it = new WeakMap(), Ct = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), ft = new WeakMap(), c(O, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1328
- A(O, "ROW_STATE", {
1328
+ _ = new WeakMap(), k = new WeakMap(), N = new WeakMap(), dt = new WeakMap(), Jt = new WeakMap(), Y = new WeakMap(), Qt = new WeakMap(), it = new WeakMap(), Ct = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), ft = new WeakMap(), c(z, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1329
+ E(z, "ROW_STATE", {
1329
1330
  EMPTY: "EMPTY",
1330
1331
  NORMAL: "NORMAL",
1331
1332
  INSERT: "INSERT",
1332
1333
  UPDATE: "UPDATE",
1333
1334
  DELETE: "DELETE"
1334
1335
  });
1335
- let ge = O;
1336
+ let ge = z;
1336
1337
  var rt;
1337
1338
  const Oe = class Oe {
1338
1339
  constructor(i) {
@@ -1362,7 +1363,7 @@ const ze = class ze {
1362
1363
  constructor(i) {
1363
1364
  d(this, ut);
1364
1365
  d(this, L, []);
1365
- A(this, "add", /* @__PURE__ */ c((i, e = "string") => {
1366
+ E(this, "add", /* @__PURE__ */ c((i, e = "string") => {
1366
1367
  i.forEach((s) => {
1367
1368
  t(this, L).some((r) => r.name === s) || t(this, L).push({ name: s, type: e });
1368
1369
  }), t(this, Lt).call(this);
@@ -1474,7 +1475,7 @@ const mt = class mt extends HTMLElement {
1474
1475
  connectedCallback() {
1475
1476
  }
1476
1477
  };
1477
- c(mt, "BasicCellElement"), A(mt, "_styleCache", /* @__PURE__ */ new Map()), A(mt, "_customStyleCache", /* @__PURE__ */ new Map());
1478
+ c(mt, "BasicCellElement"), E(mt, "_styleCache", /* @__PURE__ */ new Map()), E(mt, "_customStyleCache", /* @__PURE__ */ new Map());
1478
1479
  let me = mt;
1479
1480
  var C, Ht, p, qe, Re, Te, ke, Ce;
1480
1481
  const De = class De extends me {
@@ -1487,7 +1488,7 @@ const De = class De extends me {
1487
1488
  d(this, Re);
1488
1489
  d(this, Te);
1489
1490
  d(this, ke);
1490
- A(this, "getDisplayText", /* @__PURE__ */ c((e) => {
1491
+ E(this, "getDisplayText", /* @__PURE__ */ c((e) => {
1491
1492
  if (t(this, p))
1492
1493
  if (t(this, p).closest("tbody")) {
1493
1494
  const s = t(this, p).closest("tr").data, r = parseInt(t(this, p).dataset.row);
@@ -1512,9 +1513,9 @@ const De = class De extends me {
1512
1513
  var e = ninegrid.j.querySelectorAll(t(this, p)).attr("suppress");
1513
1514
  if (e && (e = parseInt(e)), e && !isNaN(e)) {
1514
1515
  var s = t(this, p).closest("tr"), r = [];
1515
- $("th,td", s).each((v, I) => {
1516
- var R = ninegrid.j.querySelectorAll(I).attr("suppress");
1517
- R && I.dataset.row && (R = parseInt(R), !isNaN(R) && R <= e && r.push(R));
1516
+ $("th,td", s).each((v, W) => {
1517
+ var R = ninegrid.j.querySelectorAll(W).attr("suppress");
1518
+ R && W.dataset.row && (R = parseInt(R), !isNaN(R) && R <= e && r.push(R));
1518
1519
  }), r.sort();
1519
1520
  var n = !1;
1520
1521
  if (parseInt(s.sectionRowIndex / t(this, C).template.length) > 0)
@@ -1531,12 +1532,12 @@ const De = class De extends me {
1531
1532
  else
1532
1533
  n = !0;
1533
1534
  n ? ninegrid.j.querySelectorAll(t(this, p)).removeClass("suppress") : ninegrid.j.querySelectorAll(t(this, p)).addClass("suppress"), ninegrid.j.querySelectorAll(t(this, p)).hasClass("hidden") || (n ? ninegrid.j.querySelectorAll(t(this, p)).removeClass("hidden") : ninegrid.j.querySelectorAll(t(this, p)).addClass("hidden"));
1534
- var m = parseInt(t(this, p).dataset.matrixRow), x = m - 1, E = t(this, C).body.querySelector(`tbody.bindable [data-col="${t(this, p).dataset.col}"][data-matrix-row="${x}"]`);
1535
- $(E).hasClass("suppress") && !ninegrid.j.querySelectorAll(t(this, p)).hasClass("suppress") ? ninegrid.j.querySelectorAll(E).removeClass("last-none-suppress").addClass("last-suppress") : !$(E).hasClass("suppress") && ninegrid.j.querySelectorAll(t(this, p)).hasClass("suppress") ? ninegrid.j.querySelectorAll(E).removeClass("last-suppress").addClass("last-none-suppress") : ninegrid.j.querySelectorAll(E).removeClass("last-none-suppress").removeClass("last-suppress");
1535
+ var m = parseInt(t(this, p).dataset.matrixRow), x = m - 1, A = t(this, C).body.querySelector(`tbody.bindable [data-col="${t(this, p).dataset.col}"][data-matrix-row="${x}"]`);
1536
+ $(A).hasClass("suppress") && !ninegrid.j.querySelectorAll(t(this, p)).hasClass("suppress") ? ninegrid.j.querySelectorAll(A).removeClass("last-none-suppress").addClass("last-suppress") : !$(A).hasClass("suppress") && ninegrid.j.querySelectorAll(t(this, p)).hasClass("suppress") ? ninegrid.j.querySelectorAll(A).removeClass("last-suppress").addClass("last-none-suppress") : ninegrid.j.querySelectorAll(A).removeClass("last-none-suppress").removeClass("last-suppress");
1536
1537
  }
1537
1538
  }
1538
1539
  }, "#resetSuppress"));
1539
- A(this, "getExprValue", /* @__PURE__ */ c((e, s, r, n) => {
1540
+ E(this, "getExprValue", /* @__PURE__ */ c((e, s, r, n) => {
1540
1541
  if (typeof e < "u")
1541
1542
  try {
1542
1543
  r = parseInt(r);
@@ -1597,7 +1598,7 @@ const je = class je extends xe {
1597
1598
  d(this, bt);
1598
1599
  d(this, ne);
1599
1600
  d(this, U);
1600
- A(this, "refresh", /* @__PURE__ */ c(() => {
1601
+ E(this, "refresh", /* @__PURE__ */ c(() => {
1601
1602
  const e = super.refresh();
1602
1603
  t(this, Mt).value = e;
1603
1604
  }, "refresh"));