@ninebone/table 0.0.466 β†’ 0.0.468

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.
@@ -23,7 +23,7 @@ const Ce = class Ce extends Ue.constructor {
23
23
  c(Ce, "Trace");
24
24
  let ae = Ce;
25
25
  const bt = new ae();
26
- var B, P, w, U, X, K, Mt, Z, It;
26
+ var B, P, w, U, X, K, It, Z, _t;
27
27
  const Le = class Le extends HTMLElement {
28
28
  constructor() {
29
29
  super();
@@ -33,7 +33,7 @@ const Le = class Le extends HTMLElement {
33
33
  d(this, U);
34
34
  d(this, X);
35
35
  d(this, K);
36
- d(this, Mt, /* @__PURE__ */ c(() => {
36
+ d(this, It, /* @__PURE__ */ c(() => {
37
37
  if (!t(this, B)) return;
38
38
  const e = t(this, B).querySelector(".ng-container-body .ng-part-body");
39
39
  e && (b(this, K, new ResizeObserver(() => {
@@ -73,7 +73,7 @@ const Le = class Le extends HTMLElement {
73
73
  const l = s.clientWidth, u = r.scrollWidth - l;
74
74
  return h > 0 && u > 0 && (s.scrollLeft = a / h * u), a > 0 && a < h - 1;
75
75
  }, "#thumbMoveTo"));
76
- d(this, It, /* @__PURE__ */ c(() => {
76
+ d(this, _t, /* @__PURE__ */ c(() => {
77
77
  const e = /* @__PURE__ */ c((r) => {
78
78
  clearInterval(t(this, U)), clearInterval(t(this, X));
79
79
  const n = parseInt(t(this, w).thumb.style.left || 0, 10);
@@ -190,7 +190,7 @@ const Le = class Le extends HTMLElement {
190
190
  right: this.querySelector(".ng-scroll-right")
191
191
  }), s.addEventListener("scroll", () => {
192
192
  t(this, P) || this.refresh();
193
- }), t(this, It).call(this), t(this, Mt).call(this), this.refresh();
193
+ }), t(this, _t).call(this), t(this, It).call(this), this.refresh();
194
194
  }, "initWhenReady");
195
195
  e();
196
196
  }
@@ -198,10 +198,10 @@ const Le = class Le extends HTMLElement {
198
198
  t(this, K) && t(this, K).disconnect();
199
199
  }
200
200
  };
201
- B = new WeakMap(), P = new WeakMap(), w = new WeakMap(), U = new WeakMap(), X = new WeakMap(), K = new WeakMap(), Mt = new WeakMap(), Z = new WeakMap(), It = new WeakMap(), c(Le, "NineTableHScrollBar");
201
+ B = new WeakMap(), P = new WeakMap(), w = new WeakMap(), U = new WeakMap(), X = new WeakMap(), K = new WeakMap(), It = new WeakMap(), Z = new WeakMap(), _t = new WeakMap(), c(Le, "NineTableHScrollBar");
202
202
  let le = Le;
203
203
  customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", le);
204
- var j, nt, G, q, xt, vt, _t;
204
+ var j, nt, G, q, xt, vt, Nt;
205
205
  const He = class He extends HTMLElement {
206
206
  constructor() {
207
207
  super();
@@ -229,7 +229,7 @@ const He = class He extends HTMLElement {
229
229
  const v = f - u;
230
230
  m < 0 && (m = 0), m > v && (m = v), r.style.top = `${m}px`, t(this, q).top.disabled = p <= 0, t(this, q).bottom.disabled = p >= g - 1;
231
231
  }, "refresh"));
232
- d(this, _t, /* @__PURE__ */ c(() => {
232
+ d(this, Nt, /* @__PURE__ */ c(() => {
233
233
  const e = t(this, q).container, s = /* @__PURE__ */ c(() => {
234
234
  const n = (t(this, j).data.get() || []).length, o = t(this, nt).getRowHeight();
235
235
  return n * o;
@@ -345,15 +345,15 @@ const He = class He extends HTMLElement {
345
345
  thumb: this.querySelector(".ng-scroll-thumb"),
346
346
  top: this.querySelector(".ng-scroll-top"),
347
347
  bottom: this.querySelector(".ng-scroll-bottom")
348
- }), t(this, _t).call(this), this.refresh();
348
+ }), t(this, Nt).call(this), this.refresh();
349
349
  }, "initWhenReady");
350
350
  e();
351
351
  }
352
352
  };
353
- j = new WeakMap(), nt = new WeakMap(), G = new WeakMap(), q = new WeakMap(), xt = new WeakMap(), vt = new WeakMap(), _t = new WeakMap(), c(He, "NineTableVScrollBar");
353
+ j = new WeakMap(), nt = new WeakMap(), G = new WeakMap(), q = new WeakMap(), xt = new WeakMap(), vt = new WeakMap(), Nt = new WeakMap(), c(He, "NineTableVScrollBar");
354
354
  let ce = He;
355
355
  customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", ce);
356
- var D, A, z, H, F, J, wt, ot, Nt, Wt, Ot, St, Et, Bt, zt, At, Dt, at, Rt, Pt;
356
+ var D, A, z, H, F, J, wt, ot, Wt, Ot, Bt, St, Et, zt, Dt, At, Pt, at, Rt, jt;
357
357
  const $e = class $e {
358
358
  constructor(i) {
359
359
  d(this, D);
@@ -364,7 +364,7 @@ const $e = class $e {
364
364
  d(this, J, 0);
365
365
  d(this, wt, 40);
366
366
  d(this, ot, !1);
367
- d(this, Nt, 3);
367
+ d(this, Wt, 3);
368
368
  S(this, "refresh", /* @__PURE__ */ c(() => {
369
369
  var e;
370
370
  const i = t(this, A).querySelector(".ng-container-body .ng-part-body");
@@ -383,7 +383,7 @@ const $e = class $e {
383
383
  });
384
384
  const i = t(this, A).querySelector(".ng-container-body .ng-part-body"), e = t(this, A).querySelector(".ng-container-left .ng-part-body"), s = t(this, A).querySelector(".ng-container-right .ng-part-body");
385
385
  if (i) {
386
- t(this, Ot).call(this, i), t(this, At).call(this), t(this, St).call(this), t(this, at).call(this, i.scrollTop);
386
+ t(this, Bt).call(this, i), t(this, At).call(this), t(this, St).call(this), t(this, at).call(this, i.scrollTop);
387
387
  let r = !1;
388
388
  const n = /* @__PURE__ */ c((o, a) => {
389
389
  var h;
@@ -396,7 +396,7 @@ const $e = class $e {
396
396
  });
397
397
  }
398
398
  }, "initialize"));
399
- d(this, Wt, /* @__PURE__ */ c((i, e) => {
399
+ d(this, Ot, /* @__PURE__ */ c((i, e) => {
400
400
  const s = t(this, z).get(e);
401
401
  if (!s || s.length === 0) return;
402
402
  const r = i.querySelector(".ng-part-body tbody.bindable-tbody");
@@ -409,7 +409,7 @@ const $e = class $e {
409
409
  });
410
410
  n ? n.before(o) : r.appendChild(o);
411
411
  }, "#renderRows"));
412
- d(this, Ot, /* @__PURE__ */ c((i) => {
412
+ d(this, Bt, /* @__PURE__ */ c((i) => {
413
413
  if (t(this, H) !== null && t(this, H) > 0)
414
414
  return t(this, H);
415
415
  const e = t(this, z).get(".ng-container-body");
@@ -441,10 +441,10 @@ const $e = class $e {
441
441
  d(this, Et, /* @__PURE__ */ c(() => {
442
442
  if (t(this, J) > 0 && t(this, H) > 0) {
443
443
  const i = Math.ceil(t(this, J) / t(this, H));
444
- b(this, wt, i + t(this, Nt));
444
+ b(this, wt, i + t(this, Wt));
445
445
  }
446
446
  }, "#updateRowCount"));
447
- d(this, Bt, /* @__PURE__ */ c(() => {
447
+ d(this, zt, /* @__PURE__ */ c(() => {
448
448
  var a, h, l, f, u, p;
449
449
  const i = t(this, A).querySelector(".ng-container-left .ng-part-body table"), e = t(this, A).querySelector(".ng-container-body .ng-part-body table"), s = t(this, A).querySelector(".ng-container-right .ng-part-body table");
450
450
  if (e) {
@@ -471,7 +471,7 @@ const $e = class $e {
471
471
  }
472
472
  }
473
473
  }, "#syncRowHeights"));
474
- d(this, zt, /* @__PURE__ */ c(() => {
474
+ d(this, Dt, /* @__PURE__ */ c(() => {
475
475
  !t(this, A) || !(t(this, A) instanceof HTMLElement) || (b(this, F, new ResizeObserver((i) => {
476
476
  for (const e of i) {
477
477
  const s = e.target;
@@ -490,10 +490,10 @@ const $e = class $e {
490
490
  d(this, At, /* @__PURE__ */ c(() => {
491
491
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
492
492
  const e = t(this, A).querySelector(i);
493
- e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Wt).call(this, e, i);
494
- }), t(this, Pt).call(this), t(this, Bt).call(this);
493
+ e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Ot).call(this, e, i);
494
+ }), t(this, jt).call(this), t(this, zt).call(this);
495
495
  }, "#renderAllContainers"));
496
- d(this, Dt, /* @__PURE__ */ c((i) => {
496
+ d(this, Pt, /* @__PURE__ */ c((i) => {
497
497
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((e) => {
498
498
  var l;
499
499
  const s = t(this, A).querySelector(e);
@@ -532,7 +532,7 @@ const $e = class $e {
532
532
  g.style.display = "", t(this, Rt).call(this, g, E, v);
533
533
  });
534
534
  }), t(this, ot) || (b(this, ot, !0), setTimeout(() => {
535
- t(this, Dt).call(this, n), b(this, ot, !1);
535
+ t(this, Pt).call(this, n), b(this, ot, !1);
536
536
  }, 0));
537
537
  }, "#handleScroll"));
538
538
  /**
@@ -550,13 +550,13 @@ const $e = class $e {
550
550
  });
551
551
  }; */
552
552
  d(this, Rt, /* @__PURE__ */ c((i, e, s) => {
553
- i.dataset.row = s, i.data = e, Array.from(i.cells).forEach((r, n) => {
553
+ i.dataset.row = s, i.data = e, bt.log(s), Array.from(i.cells).forEach((r, n) => {
554
554
  r.dataset.row = s, r.querySelector(':scope > [is^="cell-"], :scope > [class*="cell-"], :scope > cell-');
555
555
  const o = Array.from(r.children).find((a) => a.tagName.toLowerCase().startsWith("cell-") || typeof a.refresh == "function");
556
556
  o && typeof o.refresh == "function" && o.refresh();
557
557
  });
558
558
  }, "#bindRowData"));
559
- d(this, Pt, /* @__PURE__ */ c(() => {
559
+ d(this, jt, /* @__PURE__ */ c(() => {
560
560
  var h, l, f;
561
561
  const i = t(this, A).querySelector(".ng-container-left .ng-part-header table"), e = t(this, A).querySelector(".ng-container-body .ng-part-header table"), s = t(this, A).querySelector(".ng-container-right .ng-part-header table");
562
562
  if (!e) return;
@@ -573,7 +573,7 @@ const $e = class $e {
573
573
  S(this, "destroy", /* @__PURE__ */ c(() => {
574
574
  t(this, F) && (t(this, F).disconnect(), b(this, F, null));
575
575
  }, "destroy"));
576
- b(this, D, i.getRootNode().host), b(this, A, i), t(this, zt).call(this);
576
+ b(this, D, i.getRootNode().host), b(this, A, i), t(this, Dt).call(this);
577
577
  }
578
578
  getRowHeight() {
579
579
  return t(this, H);
@@ -583,14 +583,14 @@ const $e = class $e {
583
583
  return ((e = t(this, z).get(i)) == null ? void 0 : e.length) || 1;
584
584
  }
585
585
  };
586
- D = new WeakMap(), A = new WeakMap(), z = new WeakMap(), H = new WeakMap(), F = new WeakMap(), J = new WeakMap(), wt = new WeakMap(), ot = new WeakMap(), Nt = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), Bt = new WeakMap(), zt = new WeakMap(), At = new WeakMap(), Dt = new WeakMap(), at = new WeakMap(), Rt = new WeakMap(), Pt = new WeakMap(), c($e, "RowManager");
586
+ D = new WeakMap(), A = new WeakMap(), z = new WeakMap(), H = new WeakMap(), F = new WeakMap(), J = new WeakMap(), wt = new WeakMap(), ot = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), zt = new WeakMap(), Dt = new WeakMap(), At = new WeakMap(), Pt = new WeakMap(), at = new WeakMap(), Rt = new WeakMap(), jt = new WeakMap(), c($e, "RowManager");
587
587
  let he = $e;
588
- const jt = class jt {
588
+ const Ft = class Ft {
589
589
  /**
590
590
  * 🎯 λ ˆμ΄μ•„μ›ƒ λ‚΄μ˜ μ—¬λŸ¬ rawTables 배열을 μΌκ΄„λ‘œ λ°›μ•„ 단일 λ§ˆμŠ€ν„° ν…œν”Œλ¦ΏμœΌλ‘œ 사전 μ»΄νŒŒμΌν•©λ‹ˆλ‹€.
591
591
  */
592
592
  static compileAll(i) {
593
- return Array.isArray(i) ? i.map((e) => jt.compile(e)) : [];
593
+ return Array.isArray(i) ? i.map((e) => Ft.compile(e)) : [];
594
594
  }
595
595
  /**
596
596
  * 🎯 단일 원본 ν…Œμ΄λΈ”μ„ λ°›μ•„ κΈ°λ³Έ ꡬ쑰 보정 및 2차원 격자 인덱슀 사전 λΆ€μ—¬ μ™„λ£Œλœ λ§ˆμŠ€ν„° ν…Œμ΄λΈ” λ°˜ν™˜
@@ -662,20 +662,20 @@ const jt = class jt {
662
662
  }
663
663
  // 🎯 [μΆ”κ°€] td/th에 μ„ μ–Έλœ cell-type 속성을 읽어 μ»€μŠ€ν…€ νƒœκ·Έλ‘œ μžλ™ 감싸기
664
664
  };
665
- c(jt, "TableCompiler");
666
- let de = jt;
667
- var Ft, Q, tt, Vt, Yt, lt, Ut, Xt;
665
+ c(Ft, "TableCompiler");
666
+ let de = Ft;
667
+ var Vt, Q, tt, Yt, Ut, lt, Xt, Kt;
668
668
  const yt = class yt extends HTMLElement {
669
669
  constructor() {
670
670
  super();
671
- d(this, Ft);
671
+ d(this, Vt);
672
672
  d(this, Q, null);
673
673
  d(this, tt);
674
674
  S(this, "invalidate", /* @__PURE__ */ c(() => {
675
675
  var e, s;
676
676
  t(this, tt).refresh(), (e = this.querySelector("nine-table-hscrollbar")) == null || e.refresh(), (s = this.querySelector("nine-table-vscrollbar")) == null || s.refresh();
677
677
  }, "invalidate"));
678
- d(this, Vt, /* @__PURE__ */ c(() => {
678
+ d(this, Yt, /* @__PURE__ */ c(() => {
679
679
  [
680
680
  { selector: ".ng-container-body", type: null },
681
681
  { selector: ".ng-container-left", type: "left" },
@@ -696,7 +696,7 @@ const yt = class yt extends HTMLElement {
696
696
  f.className = "ng-part-footer", f.appendChild(t(this, lt).call(this, t(this, Q), r, "footer")), n.appendChild(o), n.appendChild(a), n.appendChild(f);
697
697
  });
698
698
  }, "#renderSplitContainers"));
699
- d(this, Yt, /* @__PURE__ */ c(() => {
699
+ d(this, Ut, /* @__PURE__ */ c(() => {
700
700
  ["left", "right", "body"].forEach((e) => {
701
701
  const s = this.querySelector(`.ng-container-${e}`), r = s == null ? void 0 : s.querySelectorAll("table");
702
702
  if (!s || !r || r.length === 0) return;
@@ -708,7 +708,7 @@ const yt = class yt extends HTMLElement {
708
708
  });
709
709
  }, "#updateContainerWidths"));
710
710
  S(this, "generate", /* @__PURE__ */ c((e) => {
711
- e && (b(this, Q, de.compile(e)), t(this, Vt).call(this), t(this, Yt).call(this), t(this, tt).initialize(), setTimeout(() => {
711
+ e && (b(this, Q, de.compile(e)), t(this, Yt).call(this), t(this, Ut).call(this), t(this, tt).initialize(), setTimeout(() => {
712
712
  var s;
713
713
  (s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
714
714
  }, 0));
@@ -738,10 +738,10 @@ const yt = class yt extends HTMLElement {
738
738
  const s = this.querySelector(".ng-container-body .ng-part-body");
739
739
  s && (s.scrollTop = e);
740
740
  }, "scrollToY"));
741
- d(this, Ut, /* @__PURE__ */ c(() => {
742
- t(this, Xt).call(this);
743
- }, "#init"));
744
741
  d(this, Xt, /* @__PURE__ */ c(() => {
742
+ t(this, Kt).call(this);
743
+ }, "#init"));
744
+ d(this, Kt, /* @__PURE__ */ c(() => {
745
745
  const e = yt.SCROLLBAR_SIZE;
746
746
  this.innerHTML = `
747
747
  <style>
@@ -884,23 +884,23 @@ const yt = class yt extends HTMLElement {
884
884
  </div>
885
885
  `;
886
886
  }, "#render"));
887
- b(this, tt, new he(this)), b(this, Ft, this.getRootNode().host);
887
+ b(this, tt, new he(this)), b(this, Vt, this.getRootNode().host);
888
888
  }
889
889
  connectedCallback() {
890
- t(this, Ut).call(this);
890
+ t(this, Xt).call(this);
891
891
  }
892
892
  disconnectedCallback() {
893
893
  this.innerHTML = "", bt.log("NineTableSheet destroyed.");
894
894
  }
895
895
  };
896
- Ft = new WeakMap(), Q = new WeakMap(), tt = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), lt = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), c(yt, "NineTableSheet"), S(yt, "SCROLLBAR_SIZE", 16);
897
- let $t = yt;
898
- customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", $t);
899
- var Kt, qt;
896
+ Vt = new WeakMap(), Q = new WeakMap(), tt = new WeakMap(), Yt = new WeakMap(), Ut = new WeakMap(), lt = new WeakMap(), Xt = new WeakMap(), Kt = new WeakMap(), c(yt, "NineTableSheet"), S(yt, "SCROLLBAR_SIZE", 16);
897
+ let Mt = yt;
898
+ customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", Mt);
899
+ var Zt, qt;
900
900
  const Me = class Me extends HTMLElement {
901
901
  constructor() {
902
902
  super();
903
- d(this, Kt, /* @__PURE__ */ c(() => {
903
+ d(this, Zt, /* @__PURE__ */ c(() => {
904
904
  var e;
905
905
  (e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
906
906
  var o;
@@ -941,18 +941,18 @@ const Me = class Me extends HTMLElement {
941
941
  }, "#switchSheet"));
942
942
  }
943
943
  connectedCallback() {
944
- t(this, Kt).call(this);
944
+ t(this, Zt).call(this);
945
945
  }
946
946
  };
947
- Kt = new WeakMap(), qt = new WeakMap(), c(Me, "NineTableSheets");
947
+ Zt = new WeakMap(), qt = new WeakMap(), c(Me, "NineTableSheets");
948
948
  let fe = Me;
949
949
  customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", fe);
950
- var M, Zt, kt, Gt;
950
+ var M, Gt, kt, Jt;
951
951
  const Ie = class Ie {
952
952
  constructor(i) {
953
953
  d(this, M);
954
- d(this, Zt, /* @__PURE__ */ c(() => {
955
- t(this, Gt).call(this), new ResizeObserver((i) => {
954
+ d(this, Gt, /* @__PURE__ */ c(() => {
955
+ t(this, Jt).call(this), new ResizeObserver((i) => {
956
956
  for (let e of i)
957
957
  t(this, M).getAttribute("auto-height") === "true" && t(this, kt).call(this);
958
958
  }).observe(t(this, M));
@@ -961,10 +961,10 @@ const Ie = class Ie {
961
961
  var h, l;
962
962
  const i = Array.from(t(this, M).shadowRoot.querySelectorAll("nine-table-sheet.active"));
963
963
  if (i.length === 0) return;
964
- const e = parseInt(t(this, M).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), r = (h = t(this, M).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : h.getBoundingClientRect().height, n = (l = t(this, M).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = $t.SCROLLBAR_SIZE, a = e * s + r + n + o;
964
+ const e = parseInt(t(this, M).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), r = (h = t(this, M).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : h.getBoundingClientRect().height, n = (l = t(this, M).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = Mt.SCROLLBAR_SIZE, a = e * s + r + n + o;
965
965
  t(this, M).style.height = `${a}px`;
966
966
  }, "#applyAutoHeight"));
967
- d(this, Gt, /* @__PURE__ */ c(() => {
967
+ d(this, Jt, /* @__PURE__ */ c(() => {
968
968
  const e = Array.from(t(this, M).children).filter((h) => h.tagName === "TABLE"), s = t(this, M).getAttribute("auto-height") === "true", r = e.length, n = e.map((h, l) => {
969
969
  const u = `<nine-table-sheet class="${l === 0 ? "active" : ""}" data-index="${l}"></nine-table-sheet>`, p = l < r - 1 ? `<nine-splitter class="h" data-split-index="${l}"></nine-splitter>` : "";
970
970
  return u + p;
@@ -1067,10 +1067,10 @@ const Ie = class Ie {
1067
1067
  });
1068
1068
  });
1069
1069
  }, "#render"));
1070
- b(this, M, i), t(this, Zt).call(this);
1070
+ b(this, M, i), t(this, Gt).call(this);
1071
1071
  }
1072
1072
  };
1073
- M = new WeakMap(), Zt = new WeakMap(), kt = new WeakMap(), Gt = new WeakMap(), c(Ie, "LayoutManager");
1073
+ M = new WeakMap(), Gt = new WeakMap(), kt = new WeakMap(), Jt = new WeakMap(), c(Ie, "LayoutManager");
1074
1074
  let ue = Ie;
1075
1075
  var Tt, ct;
1076
1076
  const _e = class _e {
@@ -1090,16 +1090,16 @@ const _e = class _e {
1090
1090
  };
1091
1091
  Tt = new WeakMap(), ct = new WeakMap(), c(_e, "ngRow");
1092
1092
  let ge = _e;
1093
- var I, k, _, ht, Jt, V, Qt, et, Ct, te, ee, dt;
1093
+ var I, k, _, ht, Qt, V, te, et, Ct, ee, se, dt;
1094
1094
  const N = class N {
1095
1095
  constructor(i, e) {
1096
1096
  d(this, I);
1097
1097
  d(this, k);
1098
1098
  d(this, _, []);
1099
1099
  d(this, ht, []);
1100
- d(this, Jt, 0);
1100
+ d(this, Qt, 0);
1101
1101
  d(this, V, []);
1102
- d(this, Qt, /* @__PURE__ */ c(() => {
1102
+ d(this, te, /* @__PURE__ */ c(() => {
1103
1103
  b(this, V, []);
1104
1104
  const i = t(this, I).template || [];
1105
1105
  Array.from(i).forEach((e) => {
@@ -1146,7 +1146,7 @@ const N = class N {
1146
1146
  var i;
1147
1147
  t(this, k).rawRecords = [], b(this, _, []), b(this, ht, []), (i = t(this, k).viewRecords) != null && i.reset && t(this, k).viewRecords.reset();
1148
1148
  }, "clear"));
1149
- d(this, te, /* @__PURE__ */ c((i) => {
1149
+ d(this, ee, /* @__PURE__ */ c((i) => {
1150
1150
  var r;
1151
1151
  Array.isArray(i) || (i = [i]);
1152
1152
  const e = typeof ((r = t(this, I).fields) == null ? void 0 : r.get) == "function" ? t(this, I).fields.get() : Object.keys(i[0] || {}), s = [];
@@ -1157,13 +1157,13 @@ const N = class N {
1157
1157
  }), s.push(o);
1158
1158
  }), s;
1159
1159
  }, "#json2Array"));
1160
- d(this, ee, /* @__PURE__ */ c((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
1160
+ d(this, se, /* @__PURE__ */ c((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
1161
1161
  e.__ng = t(this, Ct).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = N.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1162
1162
  }), i), "#defaultInsert"));
1163
1163
  S(this, "add", /* @__PURE__ */ c((i, e = !0) => {
1164
1164
  i === void 0 && (i = {});
1165
- const s = t(this, te).call(this, i);
1166
- t(this, k).rawRecords = t(this, k).rawRecords.concat(t(this, ee).call(this, s)), this.resetRecords();
1165
+ const s = t(this, ee).call(this, i);
1166
+ t(this, k).rawRecords = t(this, k).rawRecords.concat(t(this, se).call(this, s)), this.resetRecords();
1167
1167
  const r = this.count() - 1;
1168
1168
  return e || s.forEach((n, o) => {
1169
1169
  const a = t(this, k).rawRecords[r - o];
@@ -1211,7 +1211,7 @@ const N = class N {
1211
1211
  return e ? n[0] : n;
1212
1212
  }, "#conv"));
1213
1213
  S(this, "count", /* @__PURE__ */ c(() => this.getValidData().length, "count"));
1214
- b(this, I, i), b(this, k, e), t(this, Qt).call(this);
1214
+ b(this, I, i), b(this, k, e), t(this, te).call(this);
1215
1215
  }
1216
1216
  get source() {
1217
1217
  return t(this, dt).call(this, t(this, k).rawRecords);
@@ -1220,7 +1220,7 @@ const N = class N {
1220
1220
  this.clear(), this.add(i, !1);
1221
1221
  }
1222
1222
  get nextId() {
1223
- return ++Ve(this, Jt)._;
1223
+ return ++Ve(this, Qt)._;
1224
1224
  }
1225
1225
  get length() {
1226
1226
  return t(this, _).length;
@@ -1229,7 +1229,7 @@ const N = class N {
1229
1229
  return this.length;
1230
1230
  }
1231
1231
  };
1232
- I = new WeakMap(), k = new WeakMap(), _ = new WeakMap(), ht = new WeakMap(), Jt = new WeakMap(), V = new WeakMap(), Qt = new WeakMap(), et = new WeakMap(), Ct = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), dt = new WeakMap(), c(N, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1232
+ I = new WeakMap(), k = new WeakMap(), _ = new WeakMap(), ht = new WeakMap(), Qt = new WeakMap(), V = new WeakMap(), te = new WeakMap(), et = new WeakMap(), Ct = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), dt = new WeakMap(), c(N, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1233
1233
  S(N, "ROW_STATE", {
1234
1234
  EMPTY: "EMPTY",
1235
1235
  NORMAL: "NORMAL",
@@ -1261,7 +1261,7 @@ const Ne = class Ne {
1261
1261
  };
1262
1262
  st = new WeakMap(), c(Ne, "ngDataManager");
1263
1263
  let pe = Ne;
1264
- var ft, L, Lt, se;
1264
+ var ft, L, Lt, ie;
1265
1265
  const We = class We {
1266
1266
  // 🎯 이제 { name: string, type: string } κ°μ²΄λ“€μ˜ λ°°μ—΄λ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.
1267
1267
  constructor(i) {
@@ -1278,7 +1278,7 @@ const We = class We {
1278
1278
  i.set(e.name, e.type);
1279
1279
  }), b(this, L, Array.from(i, ([e, s]) => ({ name: e, type: s }))), b(this, L, t(this, L).filter((e) => e.name !== "" && e.name !== "__ng")), t(this, L).sort((e, s) => e.name.length < s.name.length ? 1 : -1);
1280
1280
  }, "#adjust"));
1281
- d(this, se, /* @__PURE__ */ c(() => {
1281
+ d(this, ie, /* @__PURE__ */ c(() => {
1282
1282
  b(this, L, []), bt.log(t(this, ft).querySelectorAll("table"));
1283
1283
  const i = Array.from(t(this, ft).querySelectorAll("table"));
1284
1284
  if (!(!i || i.length === 0)) {
@@ -1310,7 +1310,7 @@ const We = class We {
1310
1310
  t(this, Lt).call(this);
1311
1311
  }
1312
1312
  }, "#init"));
1313
- b(this, ft, i), t(this, se).call(this);
1313
+ b(this, ft, i), t(this, ie).call(this);
1314
1314
  }
1315
1315
  // 🎯 기쑴에 ν•„λ“œ μ΄λ¦„λ§Œ μ“°λ˜ κ³³λ“€κ³Όμ˜ ν˜Έν™˜μ„ μœ„ν•΄ 이름 λ°°μ—΄λ§Œ λ¦¬ν„΄ν•˜λŠ” λ©”μ„œλ“œ μœ μ§€
1316
1316
  get() {
@@ -1332,22 +1332,22 @@ const We = class We {
1332
1332
  return t(this, L).some((e) => e.name === i);
1333
1333
  }
1334
1334
  };
1335
- ft = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), c(We, "ngFields");
1335
+ ft = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), ie = new WeakMap(), c(We, "ngFields");
1336
1336
  let ye = We;
1337
- var it, ie, re;
1337
+ var it, re, ne;
1338
1338
  const Oe = class Oe extends HTMLElement {
1339
1339
  constructor() {
1340
1340
  super();
1341
1341
  //#created = false;
1342
1342
  d(this, it);
1343
- d(this, ie);
1344
- d(this, re, /* @__PURE__ */ c(() => {
1345
- this.fields = new ye(this), b(this, ie, new ue(this)), bt.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1343
+ d(this, re);
1344
+ d(this, ne, /* @__PURE__ */ c(() => {
1345
+ this.fields = new ye(this), b(this, re, new ue(this)), bt.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1346
1346
  }, "#init"));
1347
1347
  this.attachShadow({ mode: "open" }), b(this, it, new pe(this));
1348
1348
  }
1349
1349
  connectedCallback() {
1350
- t(this, re).call(this);
1350
+ t(this, ne).call(this);
1351
1351
  }
1352
1352
  disconnectedCallback() {
1353
1353
  bt.log("NineTable disconnected.");
@@ -1365,7 +1365,7 @@ const Oe = class Oe extends HTMLElement {
1365
1365
  return t(this, it);
1366
1366
  }
1367
1367
  };
1368
- it = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), c(Oe, "NineTable");
1368
+ it = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), c(Oe, "NineTable");
1369
1369
  let me = Oe;
1370
1370
  customElements.get("nine-table") || customElements.define("nine-table", me);
1371
1371
  const mt = class mt extends HTMLElement {
@@ -1474,9 +1474,7 @@ const Be = class Be extends xe {
1474
1474
  }
1475
1475
  refresh() {
1476
1476
  const e = t(this, y).dataset.bind;
1477
- parseInt(t(this, y).dataset.row);
1478
- const s = t(this, Ht).data;
1479
- return bt.log(s, e, s[e]), s[e];
1477
+ return parseInt(t(this, y).dataset.row), t(this, Ht).data[e];
1480
1478
  }
1481
1479
  };
1482
1480
  T = new WeakMap(), Ht = new WeakMap(), y = new WeakMap(), Ee = new WeakMap(), Ae = new WeakMap(), Re = new WeakMap(), qe = new WeakMap(), ke = new WeakMap(), c(Be, "CellElement");
@@ -1494,11 +1492,11 @@ const ze = class ze extends ve {
1494
1492
  };
1495
1493
  c(ze, "EditableCellElement");
1496
1494
  let we = ze;
1497
- var ne, rt, ut, gt, oe, Y, Te;
1495
+ var $t, rt, ut, gt, oe, Y, Te;
1498
1496
  const De = class De extends we {
1499
1497
  constructor() {
1500
1498
  super();
1501
- d(this, ne);
1499
+ d(this, $t);
1502
1500
  d(this, rt);
1503
1501
  d(this, ut);
1504
1502
  d(this, gt);
@@ -1506,7 +1504,7 @@ const De = class De extends we {
1506
1504
  d(this, Y);
1507
1505
  S(this, "refresh", /* @__PURE__ */ c(() => {
1508
1506
  const e = super.refresh();
1509
- t(this, ne).value = e;
1507
+ t(this, $t).value = e;
1510
1508
  }, "refresh"));
1511
1509
  /**
1512
1510
  dataRefresh = (v) => {
@@ -1563,10 +1561,10 @@ const De = class De extends we {
1563
1561
  ${e.join(" ")}
1564
1562
  ondragstart="return false;"
1565
1563
  >
1566
- `, super.connectedCallback();
1564
+ `, super.connectedCallback(), b(this, $t, this.querySelector("input"));
1567
1565
  }
1568
1566
  };
1569
- ne = new WeakMap(), rt = new WeakMap(), ut = new WeakMap(), gt = new WeakMap(), oe = new WeakMap(), Y = new WeakMap(), Te = new WeakMap(), c(De, "CellInputText");
1567
+ $t = new WeakMap(), rt = new WeakMap(), ut = new WeakMap(), gt = new WeakMap(), oe = new WeakMap(), Y = new WeakMap(), Te = new WeakMap(), c(De, "CellInputText");
1570
1568
  let Se = De;
1571
1569
  customElements.get("cell-input-text");
1572
1570
  customElements.get("cell-input") || customElements.define("cell-input", Se);