@ninebone/table 0.0.179 β†’ 0.0.180

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.
@@ -1,17 +1,17 @@
1
1
  var Me = Object.defineProperty;
2
- var Ie = (m) => {
3
- throw TypeError(m);
2
+ var Ie = (w) => {
3
+ throw TypeError(w);
4
4
  };
5
- var ze = (m, i, t) => i in m ? Me(m, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[i] = t;
6
- var l = (m, i) => Me(m, "name", { value: i, configurable: !0 });
7
- var v = (m, i, t) => ze(m, typeof i != "symbol" ? i + "" : i, t), He = (m, i, t) => i.has(m) || Ie("Cannot " + t);
8
- var e = (m, i, t) => (He(m, i, "read from private field"), t ? t.call(m) : i.get(m)), u = (m, i, t) => i.has(m) ? Ie("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(m) : i.set(m, t), p = (m, i, t, s) => (He(m, i, "write to private field"), s ? s.call(m, t) : i.set(m, t), t);
9
- var $e = (m, i, t, s) => ({
5
+ var ze = (w, i, t) => i in w ? Me(w, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : w[i] = t;
6
+ var l = (w, i) => Me(w, "name", { value: i, configurable: !0 });
7
+ var v = (w, i, t) => ze(w, typeof i != "symbol" ? i + "" : i, t), He = (w, i, t) => i.has(w) || Ie("Cannot " + t);
8
+ var e = (w, i, t) => (He(w, i, "read from private field"), t ? t.call(w) : i.get(w)), u = (w, i, t) => i.has(w) ? Ie("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(w) : i.set(w, t), p = (w, i, t, s) => (He(w, i, "write to private field"), s ? s.call(w, t) : i.set(w, t), t);
9
+ var $e = (w, i, t, s) => ({
10
10
  set _(n) {
11
- p(m, i, n, t);
11
+ p(w, i, n, t);
12
12
  },
13
13
  get _() {
14
- return e(m, i, s);
14
+ return e(w, i, s);
15
15
  }
16
16
  });
17
17
  import { trace as We } from "@ninebone/util";
@@ -22,7 +22,7 @@ const Re = class Re extends We.constructor {
22
22
  };
23
23
  l(Re, "Trace");
24
24
  let be = Re;
25
- const G = new be();
25
+ const F = new be();
26
26
  var _, O, y, B, D, N, te, P, ie;
27
27
  const Te = class Te extends HTMLElement {
28
28
  constructor() {
@@ -236,7 +236,7 @@ const qe = class qe {
236
236
  const d = Math.max(r - o, 100);
237
237
  if (e(this, I) !== d && (p(this, I, d), e(this, E) !== null)) {
238
238
  const c = Math.ceil(e(this, I) / e(this, E));
239
- p(this, H, c + 20), G.log(`[RowManager] Resized. Height: ${e(this, I)}px | Target Rows: ${e(this, H)}`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((g) => {
239
+ p(this, H, c + 20), F.log(`[RowManager] Resized. Height: ${e(this, I)}px | Target Rows: ${e(this, H)}`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((g) => {
240
240
  const f = s.querySelector(g);
241
241
  f && f.querySelector("tbody") && this.renderRows(f);
242
242
  });
@@ -315,21 +315,21 @@ const qe = class qe {
315
315
  };
316
316
  V = new WeakMap(), M = new WeakMap(), E = new WeakMap(), $ = new WeakMap(), I = new WeakMap(), H = new WeakMap(), se = new WeakMap(), ne = new WeakMap(), l(qe, "RowManager");
317
317
  let pe = qe;
318
- var L, U, re;
319
- const j = class j extends HTMLElement {
318
+ var L, K, re;
319
+ const G = class G extends HTMLElement {
320
320
  constructor() {
321
321
  super();
322
322
  u(this, L, null);
323
- u(this, U);
323
+ u(this, K);
324
324
  v(this, "init", /* @__PURE__ */ l((t) => {
325
325
  if (!t) return;
326
326
  const s = /* @__PURE__ */ l((a) => {
327
327
  const d = /* @__PURE__ */ l((g) => {
328
328
  if (g.querySelector("colgroup")) return;
329
- const f = g.querySelector("tbody tr") || g.querySelector("tr"), S = f ? f.querySelectorAll("th, td").length : 1, x = document.createElement("colgroup"), C = Math.max(Math.floor((g.clientWidth || 600) / S), 100);
329
+ const f = g.querySelector("tbody tr") || g.querySelector("tr"), S = f ? f.querySelectorAll("th, td").length : 1, x = document.createElement("colgroup"), A = Math.max(Math.floor((g.clientWidth || 600) / S), 100);
330
330
  for (let T = 0; T < S; T++) {
331
- const F = document.createElement("col");
332
- F.setAttribute("width", C), x.appendChild(F);
331
+ const U = document.createElement("col");
332
+ U.setAttribute("width", A), x.appendChild(U);
333
333
  }
334
334
  g.prepend(x);
335
335
  }, "ensureColgroup"), c = /* @__PURE__ */ l((g) => {
@@ -339,22 +339,22 @@ const j = class j extends HTMLElement {
339
339
  }, "ensureThead");
340
340
  return d(a), c(a), a.classList.add("nine-table-element"), a;
341
341
  }, "initializeTable"), n = t.cloneNode(!0);
342
- p(this, L, s(n)), e(this, L).style.display = "table", e(this, U).initTemplate(e(this, L));
342
+ p(this, L, s(n)), e(this, L).style.display = "table", e(this, K).initTemplate(e(this, L));
343
343
  const r = this.querySelector(".ng-container-left"), o = this.querySelector(".ng-container-body"), h = this.querySelector(".ng-container-right"), b = /* @__PURE__ */ l((a, d, c = !1) => {
344
344
  const g = a.cloneNode(!0), f = Array.from(g.querySelectorAll("colgroup col")), S = [];
345
- return f.forEach((x, C) => {
345
+ return f.forEach((x, A) => {
346
346
  const T = x.getAttribute("fixed");
347
- (c ? T !== "left" && T !== "right" : T === d) || S.push(C);
347
+ (c ? T !== "left" && T !== "right" : T === d) || S.push(A);
348
348
  }), S.reverse().forEach((x) => {
349
- f[x] && f[x].remove(), g.querySelectorAll("tr").forEach((C) => {
350
- const T = C.querySelectorAll("th, td");
349
+ f[x] && f[x].remove(), g.querySelectorAll("tr").forEach((A) => {
350
+ const T = A.querySelectorAll("th, td");
351
351
  T[x] && T[x].remove();
352
352
  });
353
353
  }), g;
354
354
  }, "filterTableByFixed");
355
355
  if (o) {
356
356
  const a = b(e(this, L), null, !0);
357
- o.innerHTML = "", o.appendChild(a), e(this, U).measureAndCacheHeight(o);
357
+ o.innerHTML = "", o.appendChild(a), e(this, K).measureAndCacheHeight(o);
358
358
  }
359
359
  if (r) {
360
360
  const a = b(e(this, L), "left", !1);
@@ -386,7 +386,7 @@ const j = class j extends HTMLElement {
386
386
  setTimeout(() => {
387
387
  const a = this.querySelector("nine-table-hscrollbar");
388
388
  a && typeof a.refresh == "function" && a.refresh();
389
- }, 0), G.log(`NineTableSheet 3-split initialized with rows: ${this.getRowCount()}`);
389
+ }, 0), F.log(`NineTableSheet 3-split initialized with rows: ${this.getRowCount()}`);
390
390
  }, "init"));
391
391
  v(this, "getRowCount", /* @__PURE__ */ l(() => e(this, L) ? e(this, L).querySelectorAll("tbody tr").length : 0, "getRowCount"));
392
392
  v(this, "scrollToX", /* @__PURE__ */ l((t) => {
@@ -398,7 +398,7 @@ const j = class j extends HTMLElement {
398
398
  s && (s.scrollTop = t);
399
399
  }, "scrollToY"));
400
400
  u(this, re, /* @__PURE__ */ l(() => {
401
- const t = j.SCROLLBAR_SIZE;
401
+ const t = G.SCROLLBAR_SIZE;
402
402
  this.innerHTML = `
403
403
  <style>
404
404
  nine-table-sheet {
@@ -514,20 +514,20 @@ const j = class j extends HTMLElement {
514
514
  </div>
515
515
  `;
516
516
  }, "#render"));
517
- p(this, U, new pe(this));
517
+ p(this, K, new pe(this));
518
518
  }
519
519
  connectedCallback() {
520
520
  e(this, re).call(this);
521
521
  }
522
522
  disconnectedCallback() {
523
- this.innerHTML = "", G.log("NineTableSheet destroyed.");
523
+ this.innerHTML = "", F.log("NineTableSheet destroyed.");
524
524
  }
525
525
  };
526
- L = new WeakMap(), U = new WeakMap(), re = new WeakMap(), l(j, "NineTableSheet"), v(j, "SCROLLBAR_SIZE", 16);
527
- let ye = j;
526
+ L = new WeakMap(), K = new WeakMap(), re = new WeakMap(), l(G, "NineTableSheet"), v(G, "SCROLLBAR_SIZE", 16);
527
+ let ye = G;
528
528
  customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", ye);
529
529
  var oe;
530
- const ke = class ke extends HTMLElement {
530
+ const Ce = class Ce extends HTMLElement {
531
531
  constructor() {
532
532
  super();
533
533
  u(this, oe, /* @__PURE__ */ l(() => {
@@ -542,11 +542,11 @@ const ke = class ke extends HTMLElement {
542
542
  v(this, "switchSheet", /* @__PURE__ */ l((t, s = !1) => {
543
543
  const n = /* @__PURE__ */ l((c) => {
544
544
  const g = Array.from(c.querySelectorAll("nine-table-sheet"));
545
- Array.from(c.querySelectorAll("nine-splitter")).forEach((x) => x.style.setProperty("display", "none", "important"));
545
+ Array.from(c.querySelectorAll("nine-splitter")).forEach((x) => x.style.setProperty("display", "none"));
546
546
  const S = g.filter((x) => x.classList.contains("active"));
547
547
  S.length < 2 || S.forEach((x) => {
548
- const C = parseInt(x.getAttribute("data-index"), 10), T = c.querySelector(`nine-splitter[data-split-index="${C}"]`), F = g[C + 1];
549
- T && F && F.classList.contains("active") && T.style.setProperty("display", "block", "important");
548
+ const A = parseInt(x.getAttribute("data-index"), 10), T = c.querySelector(`nine-splitter[data-split-index="${A}"]`), U = g[A + 1];
549
+ T && U && U.classList.contains("active") && T.style.setProperty("display", "block");
550
550
  });
551
551
  }, "updateSplitters"), r = this.querySelector(".nine-tab-bar"), o = this.querySelector("nine-table-sheets-body"), h = r.querySelectorAll(".nine-tab-item"), b = o.querySelectorAll("nine-table-sheet");
552
552
  if (!h[t]) return;
@@ -583,36 +583,38 @@ const ke = class ke extends HTMLElement {
583
583
  e(this, oe).call(this);
584
584
  }
585
585
  };
586
- oe = new WeakMap(), l(ke, "NineTableSheets");
587
- let me = ke;
588
- customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", me);
589
- var k, J, le, Q, ae;
590
- const Ae = class Ae {
586
+ oe = new WeakMap(), l(Ce, "NineTableSheets");
587
+ let we = Ce;
588
+ customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", we);
589
+ var C, J, le, Q, ae;
590
+ const ke = class ke {
591
591
  constructor(i) {
592
- u(this, k);
592
+ u(this, C);
593
593
  u(this, J, null);
594
594
  u(this, le, /* @__PURE__ */ l(() => {
595
- const i = e(this, k).host;
595
+ const i = e(this, C).host;
596
596
  i && (p(this, J, new ResizeObserver((t) => {
597
597
  for (let s of t)
598
598
  i.getAttribute("auto-height") === "true" && e(this, Q).call(this, i);
599
599
  })), e(this, J).observe(i));
600
600
  }, "#observeResize"));
601
601
  u(this, Q, /* @__PURE__ */ l((i) => {
602
- var C;
603
- const t = e(this, k).querySelector("nine-table-sheet.active");
602
+ var A;
603
+ const t = e(this, C).querySelector("nine-table-sheet.active");
604
604
  if (!t) return;
605
- const s = ((C = t.getRowCount) == null ? void 0 : C.call(t)) || 0, n = parseInt(i.getAttribute("max-display-row"), 10) || 10, r = Math.min(s, n), o = t.querySelector("tbody tr") || t.querySelector("tr"), h = o ? o.getBoundingClientRect().height : 32, b = e(this, k).querySelector("nine-table-header"), a = e(this, k).querySelector("nine-table-sheets-footer"), d = b ? b.getBoundingClientRect().height : 40, c = a ? a.getBoundingClientRect().height : 32, f = d + c + 16, S = r * h + f;
605
+ const s = ((A = t.getRowCount) == null ? void 0 : A.call(t)) || 0, n = parseInt(i.getAttribute("max-display-row"), 10) || 10, r = Math.min(s, n), o = t.querySelector("tbody tr") || t.querySelector("tr"), h = o ? o.getBoundingClientRect().height : 32, b = e(this, C).querySelector("nine-table-header"), a = e(this, C).querySelector("nine-table-sheets-footer"), d = b ? b.getBoundingClientRect().height : 40, c = a ? a.getBoundingClientRect().height : 32, g = 16;
606
+ F.log(b, a), F.log(b.getBoundingClientRect().height, a.getBoundingClientRect().height);
607
+ const f = d + c + g, S = r * h + f;
606
608
  i.style.height = `${S}px`, i.style.maxHeight = `${n * h + f}px`;
607
- const x = e(this, k).querySelector("nine-table-sheets-body");
609
+ const x = e(this, C).querySelector("nine-table-sheets-body");
608
610
  x && (x.style.overflowY = s > n ? "auto" : "hidden");
609
611
  }, "#applyAutoHeight"));
610
612
  u(this, ae, /* @__PURE__ */ l(() => {
611
- const i = e(this, k).host, s = Array.from(i.children).filter((a) => a.tagName === "TABLE"), n = i.getAttribute("auto-height") === "true", r = s.length, o = s.map((a, d) => {
613
+ const i = e(this, C).host, s = Array.from(i.children).filter((a) => a.tagName === "TABLE"), n = i.getAttribute("auto-height") === "true", r = s.length, o = s.map((a, d) => {
612
614
  const g = `<nine-table-sheet class="${d === 0 ? "active" : ""}" data-index="${d}"></nine-table-sheet>`, f = d < r - 1 ? `<nine-splitter class="h" data-split-index="${d}"></nine-splitter>` : "";
613
615
  return g + f;
614
616
  }).join(""), h = s.map((a, d) => `<div class="nine-tab-item ${d === 0 ? "active" : ""}" data-index="${d}">Sheet ${d + 1}</div>`).join("");
615
- e(this, k).innerHTML = `
617
+ e(this, C).innerHTML = `
616
618
  <style>
617
619
  :host {
618
620
  display: flex;
@@ -645,13 +647,13 @@ const Ae = class Ae {
645
647
  flex-direction: row;
646
648
  }
647
649
  nine-table-sheet {
648
- display: none !important;
650
+ display: none;
649
651
  height: 100%;
650
652
  overflow: auto;
651
653
  flex: 1 1 ${r > 1 ? `${100 / r}%` : "100%"};
652
654
  }
653
655
  nine-table-sheet.active {
654
- display: block !important;
656
+ display: block;
655
657
  }
656
658
 
657
659
  nine-table-sheets-body nine-splitter.h {
@@ -719,20 +721,20 @@ const Ae = class Ae {
719
721
  </nine-table-body>
720
722
  <nine-table-footer></nine-table-footer>
721
723
  `;
722
- const b = e(this, k).querySelectorAll("nine-table-sheet");
724
+ const b = e(this, C).querySelectorAll("nine-table-sheet");
723
725
  b == null || b.forEach((a, d) => {
724
726
  s[d] && setTimeout(() => {
725
727
  a.init(s[d]), n && e(this, Q).call(this, i);
726
728
  });
727
729
  });
728
730
  }, "#render"));
729
- p(this, k, i), e(this, ae).call(this), e(this, le).call(this);
731
+ p(this, C, i), e(this, ae).call(this), e(this, le).call(this);
730
732
  }
731
733
  };
732
- k = new WeakMap(), J = new WeakMap(), le = new WeakMap(), Q = new WeakMap(), ae = new WeakMap(), l(Ae, "LayoutManager");
733
- let we = Ae;
734
+ C = new WeakMap(), J = new WeakMap(), le = new WeakMap(), Q = new WeakMap(), ae = new WeakMap(), l(ke, "LayoutManager");
735
+ let me = ke;
734
736
  var z, X;
735
- const Ce = class Ce {
737
+ const Ae = class Ae {
736
738
  constructor(i) {
737
739
  u(this, z);
738
740
  u(this, X, -1);
@@ -752,15 +754,15 @@ const Ce = class Ce {
752
754
  });
753
755
  }
754
756
  };
755
- z = new WeakMap(), X = new WeakMap(), l(Ce, "ngRow");
756
- let ve = Ce;
757
- var R, w, A, K, ce, W, he, ee, de, fe, Z;
757
+ z = new WeakMap(), X = new WeakMap(), l(Ae, "ngRow");
758
+ let ve = Ae;
759
+ var R, m, k, Z, ce, W, he, ee, de, fe, j;
758
760
  const q = class q {
759
761
  constructor(i, t) {
760
762
  u(this, R);
761
- u(this, w);
762
- u(this, A, []);
763
- u(this, K, []);
763
+ u(this, m);
764
+ u(this, k, []);
765
+ u(this, Z, []);
764
766
  u(this, ce, 0);
765
767
  u(this, W, []);
766
768
  u(this, he, /* @__PURE__ */ l(() => {
@@ -769,7 +771,7 @@ const q = class q {
769
771
  Array.from(i).forEach((t) => {
770
772
  var s;
771
773
  e(this, W).push(((s = t.getBoundingClientRect) == null ? void 0 : s.call(t).height) || 24);
772
- }), (e(this, w).rawRecords || []).forEach((t) => {
774
+ }), (e(this, m).rawRecords || []).forEach((t) => {
773
775
  t.__ng || (t.__ng = e(this, ee).call(this)), t.__ng.height = e(this, W).slice();
774
776
  });
775
777
  }, "#initialize"));
@@ -786,11 +788,11 @@ const q = class q {
786
788
  _: [0, 0, 0, 0, q.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, W).slice(), -1, {}, {}]
787
789
  }), "#getDefaultMeta"));
788
790
  v(this, "reset", /* @__PURE__ */ l(() => {
789
- p(this, A, []), p(this, K, []);
791
+ p(this, k, []), p(this, Z, []);
790
792
  }, "reset"));
791
793
  v(this, "clear", /* @__PURE__ */ l(() => {
792
794
  var i;
793
- e(this, w).rawRecords = [], p(this, A, []), p(this, K, []), (i = e(this, w).viewRecords) != null && i.reset && e(this, w).viewRecords.reset();
795
+ e(this, m).rawRecords = [], p(this, k, []), p(this, Z, []), (i = e(this, m).viewRecords) != null && i.reset && e(this, m).viewRecords.reset();
794
796
  }, "clear"));
795
797
  u(this, de, /* @__PURE__ */ l((i) => {
796
798
  var n;
@@ -810,24 +812,24 @@ const q = class q {
810
812
  var r;
811
813
  i === void 0 && (i = {});
812
814
  const s = e(this, de).call(this, i);
813
- e(this, w).rawRecords = e(this, w).rawRecords.concat(e(this, fe).call(this, s)), this.resetRecords();
815
+ e(this, m).rawRecords = e(this, m).rawRecords.concat(e(this, fe).call(this, s)), this.resetRecords();
814
816
  const n = this.count() - 1;
815
817
  return t || s.forEach((o, h) => {
816
- const b = e(this, w).rawRecords[n - h];
818
+ const b = e(this, m).rawRecords[n - h];
817
819
  b && (b.__ng.rowState = q.ROW_STATE.EMPTY);
818
- }), (r = e(this, w).viewRecords) != null && r.reset && e(this, w).viewRecords.reset(), n;
820
+ }), (r = e(this, m).viewRecords) != null && r.reset && e(this, m).viewRecords.reset(), n;
819
821
  }, "add"));
820
822
  v(this, "delete", /* @__PURE__ */ l((i) => {
821
823
  var s;
822
824
  let t = [];
823
- 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) => {
824
- if (e(this, A)[n]) {
825
- const r = e(this, A)[n].__ng.rowid;
826
- e(this, A)[n].__ng.rowState === q.ROW_STATE.INSERT ? e(this, w).rawRecords = e(this, w).rawRecords.filter((o) => o.__ng.rowid !== r) : e(this, w).rawRecords.forEach((o) => {
825
+ Array.isArray(i) ? t = i : typeof i > "u" ? t = [e(this, m).owner.row.at] : t = [parseInt(i, 10)], t.sort((n, r) => r - n).forEach((n) => {
826
+ if (e(this, k)[n]) {
827
+ const r = e(this, k)[n].__ng.rowid;
828
+ e(this, k)[n].__ng.rowState === q.ROW_STATE.INSERT ? e(this, m).rawRecords = e(this, m).rawRecords.filter((o) => o.__ng.rowid !== r) : e(this, m).rawRecords.forEach((o) => {
827
829
  o.__ng.rowid === r && (o.__ng.deleted = !0, o.__ng.rowState = q.ROW_STATE.DELETE);
828
830
  });
829
831
  }
830
- }), this.resetRecords(), (s = e(this, w).viewRecords) != null && s.reset && e(this, w).viewRecords.reset();
832
+ }), this.resetRecords(), (s = e(this, m).viewRecords) != null && s.reset && e(this, m).viewRecords.reset();
831
833
  }, "delete"));
832
834
  v(this, "setValue", /* @__PURE__ */ l((i, t, s) => {
833
835
  var b;
@@ -837,17 +839,17 @@ const q = class q {
837
839
  const o = this.getValidData()[i];
838
840
  if (!o) return;
839
841
  const h = o.v[r];
840
- h !== s && o.__ng.rowState !== q.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(t) || (o.__ng.o[t] = h), o.__ng.rowState = q.ROW_STATE.UPDATE), o.v[r] = s, e(this, w).owner.refreshData && e(this, w).owner.refreshData(i);
842
+ h !== s && o.__ng.rowState !== q.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(t) || (o.__ng.o[t] = h), o.__ng.rowState = q.ROW_STATE.UPDATE), o.v[r] = s, e(this, m).owner.refreshData && e(this, m).owner.refreshData(i);
841
843
  }, "setValue"));
842
844
  v(this, "resetRecords", /* @__PURE__ */ l(() => {
843
- p(this, K, e(this, w).rawRecords.filter((i) => !i.__ng.deleted)), p(this, A, e(this, w).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), e(this, w).rawRecords.forEach((i, t) => {
845
+ p(this, Z, e(this, m).rawRecords.filter((i) => !i.__ng.deleted)), p(this, k, e(this, m).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), e(this, m).rawRecords.forEach((i, t) => {
844
846
  i.__ng.rowidx = t;
845
- }), e(this, A).forEach((i, t) => {
847
+ }), e(this, k).forEach((i, t) => {
846
848
  i.__ng.i = t;
847
849
  });
848
850
  }, "resetRecords"));
849
- v(this, "getValidData", /* @__PURE__ */ l(() => (e(this, A).length === 0 && e(this, w).rawRecords.length > 0 && this.resetRecords(), e(this, A)), "getValidData"));
850
- u(this, Z, /* @__PURE__ */ l((i) => {
851
+ v(this, "getValidData", /* @__PURE__ */ l(() => (e(this, k).length === 0 && e(this, m).rawRecords.length > 0 && this.resetRecords(), e(this, k)), "getValidData"));
852
+ u(this, j, /* @__PURE__ */ l((i) => {
851
853
  var s;
852
854
  if (!i) return i;
853
855
  const t = typeof ((s = e(this, R).fields) == null ? void 0 : s.get) == "function" ? e(this, R).fields.get() : [];
@@ -863,19 +865,19 @@ const q = class q {
863
865
  var r;
864
866
  const s = this.getValidData();
865
867
  if (!s || s.length <= 0) return;
866
- if (i == null) return e(this, Z).call(this, s);
868
+ if (i == null) return e(this, j).call(this, s);
867
869
  if (i < 0 || i >= s.length) return null;
868
870
  const n = typeof ((r = e(this, R).fields) == null ? void 0 : r.get) == "function" ? e(this, R).fields.get() : [];
869
871
  if (t != null) {
870
872
  const o = n.indexOf(t);
871
873
  return o >= 0 ? s[i].v[o] : null;
872
874
  }
873
- return e(this, Z).call(this, s[i]);
875
+ return e(this, j).call(this, s[i]);
874
876
  }, "get"));
875
- p(this, R, i), p(this, w, t), e(this, he).call(this);
877
+ p(this, R, i), p(this, m, t), e(this, he).call(this);
876
878
  }
877
879
  get source() {
878
- return e(this, Z).call(this, e(this, w).rawRecords);
880
+ return e(this, j).call(this, e(this, m).rawRecords);
879
881
  }
880
882
  set source(i) {
881
883
  this.clear(), this.add(i, !1);
@@ -884,7 +886,7 @@ const q = class q {
884
886
  return ++$e(this, ce)._;
885
887
  }
886
888
  };
887
- R = new WeakMap(), w = new WeakMap(), A = new WeakMap(), K = new WeakMap(), ce = new WeakMap(), W = new WeakMap(), he = new WeakMap(), ee = new WeakMap(), de = new WeakMap(), fe = new WeakMap(), Z = new WeakMap(), l(q, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
889
+ R = new WeakMap(), m = new WeakMap(), k = new WeakMap(), Z = new WeakMap(), ce = new WeakMap(), W = new WeakMap(), he = new WeakMap(), ee = new WeakMap(), de = new WeakMap(), fe = new WeakMap(), j = new WeakMap(), l(q, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
888
890
  v(q, "ROW_STATE", {
889
891
  EMPTY: "EMPTY",
890
892
  NORMAL: "NORMAL",
@@ -924,10 +926,10 @@ const _e = class _e extends HTMLElement {
924
926
  this.attachShadow({ mode: "open" }), p(this, Y, new Se(this));
925
927
  }
926
928
  connectedCallback() {
927
- p(this, ue, new we(this.shadowRoot)), G.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
929
+ p(this, ue, new me(this.shadowRoot)), F.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
928
930
  }
929
931
  disconnectedCallback() {
930
- G.log("NineTable disconnected.");
932
+ F.log("NineTable disconnected.");
931
933
  }
932
934
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
933
935
  get data() {