@ninebone/table 0.0.728 β†’ 0.0.730

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 Ue = class Ue extends ys.constructor {
23
23
  h(Ue, "Trace");
24
24
  let we = Ue;
25
25
  const R = new we();
26
- var B, K, A, tt, et, st, jt, nt, Yt;
26
+ var B, K, A, tt, et, st, Yt, nt, Vt;
27
27
  const Xe = class Xe extends HTMLElement {
28
28
  constructor() {
29
29
  super();
@@ -33,7 +33,7 @@ const Xe = class Xe extends HTMLElement {
33
33
  d(this, tt);
34
34
  d(this, et);
35
35
  d(this, st);
36
- d(this, jt, /* @__PURE__ */ h(() => {
36
+ d(this, Yt, /* @__PURE__ */ h(() => {
37
37
  if (!t(this, B)) return;
38
38
  const e = t(this, B).querySelector(".ng-container-body .ng-part-body");
39
39
  e && (p(this, st, new ResizeObserver(() => {
@@ -73,7 +73,7 @@ const Xe = class Xe extends HTMLElement {
73
73
  const l = n.clientWidth, u = r.scrollWidth - l;
74
74
  return c > 0 && u > 0 && (n.scrollLeft = a / c * u), a > 0 && a < c - 1;
75
75
  }, "#thumbMoveTo"));
76
- d(this, Yt, /* @__PURE__ */ h(() => {
76
+ d(this, Vt, /* @__PURE__ */ h(() => {
77
77
  const e = /* @__PURE__ */ h((r) => {
78
78
  clearInterval(t(this, tt)), clearInterval(t(this, et));
79
79
  const o = parseInt(t(this, A).thumb.style.left || 0, 10);
@@ -190,7 +190,7 @@ const Xe = class Xe extends HTMLElement {
190
190
  right: this.querySelector(".ng-scroll-right")
191
191
  }), n.addEventListener("scroll", () => {
192
192
  t(this, K) || this.refresh();
193
- }), t(this, Yt).call(this), t(this, jt).call(this), this.refresh();
193
+ }), t(this, Vt).call(this), t(this, Yt).call(this), this.refresh();
194
194
  }, "initWhenReady");
195
195
  e();
196
196
  }
@@ -198,10 +198,10 @@ const Xe = class Xe extends HTMLElement {
198
198
  t(this, st) && t(this, st).disconnect();
199
199
  }
200
200
  };
201
- B = new WeakMap(), K = new WeakMap(), A = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), st = new WeakMap(), jt = new WeakMap(), nt = new WeakMap(), Yt = new WeakMap(), h(Xe, "NineTableHScrollBar");
201
+ B = new WeakMap(), K = new WeakMap(), A = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), st = new WeakMap(), Yt = new WeakMap(), nt = new WeakMap(), Vt = new WeakMap(), h(Xe, "NineTableHScrollBar");
202
202
  let ve = Xe;
203
203
  customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ve);
204
- var rt, ot, bt, C, Tt, Ct, Vt;
204
+ var rt, ot, bt, C, Tt, Ct, Ut;
205
205
  const Ke = class Ke extends HTMLElement {
206
206
  constructor() {
207
207
  super();
@@ -230,7 +230,7 @@ const Ke = class Ke extends HTMLElement {
230
230
  const y = l - f;
231
231
  g < 0 && (g = 0), g > y && (g = y), r.style.top = `${g}px`, t(this, C).top.disabled = u <= 0, t(this, C).bottom.disabled = u >= b - 1;
232
232
  }, "refresh"));
233
- d(this, Vt, /* @__PURE__ */ h(() => {
233
+ d(this, Ut, /* @__PURE__ */ h(() => {
234
234
  R.log("nine-table-vscrollbar.#init");
235
235
  const e = t(this, C).container, n = /* @__PURE__ */ h(() => {
236
236
  const o = (t(this, rt).data.get() || []).length, i = t(this, ot).getRowHeight();
@@ -345,15 +345,15 @@ const Ke = class Ke 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, Vt).call(this), this.refresh();
348
+ }), t(this, Ut).call(this), this.refresh();
349
349
  }, "initWhenReady");
350
350
  e();
351
351
  }
352
352
  };
353
- rt = new WeakMap(), ot = new WeakMap(), bt = new WeakMap(), C = new WeakMap(), Tt = new WeakMap(), Ct = new WeakMap(), Vt = new WeakMap(), h(Ke, "NineTableVScrollBar");
353
+ rt = new WeakMap(), ot = new WeakMap(), bt = new WeakMap(), C = new WeakMap(), Tt = new WeakMap(), Ct = new WeakMap(), Ut = new WeakMap(), h(Ke, "NineTableVScrollBar");
354
354
  let Se = Ke;
355
355
  customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", Se);
356
- var j, S, it, P, D, G, at, kt, Oe, ze, Ut, Xt, Lt, It, Ht, Kt, Gt, Mt, We, pt, $t, Zt;
356
+ var j, S, it, P, D, G, at, kt, Oe, ze, Xt, Kt, Lt, It, Ht, Gt, Zt, Mt, We, pt, $t, Jt;
357
357
  const Ge = class Ge {
358
358
  constructor(s) {
359
359
  d(this, j);
@@ -367,7 +367,7 @@ const Ge = class Ge {
367
367
  d(this, Oe, !1);
368
368
  d(this, ze, !1);
369
369
  //#ticking = false; // 🎯 고속 슀크둀 μŠ€λ‘œν‹€λ§μš© ν”Œλž˜κ·Έ
370
- d(this, Ut, 3);
370
+ d(this, Xt, 3);
371
371
  E(this, "refresh", /* @__PURE__ */ h(() => {
372
372
  var e;
373
373
  R.log("rowManager.refresh");
@@ -406,7 +406,7 @@ const Ge = class Ge {
406
406
  });
407
407
  }
408
408
  }, "initialize"));
409
- d(this, Xt, /* @__PURE__ */ h((s, e) => {
409
+ d(this, Kt, /* @__PURE__ */ h((s, e) => {
410
410
  R.log("rowManager.#renderRows");
411
411
  const n = t(this, P).get(e);
412
412
  if (!n || n.length === 0) return;
@@ -460,10 +460,10 @@ const Ge = class Ge {
460
460
  d(this, Ht, /* @__PURE__ */ h(() => {
461
461
  if (t(this, at) > 0 && t(this, D) > 0) {
462
462
  const s = Math.ceil(t(this, at) / t(this, D));
463
- p(this, kt, s + t(this, Ut));
463
+ p(this, kt, s + t(this, Xt));
464
464
  }
465
465
  }, "#updateRowCount"));
466
- d(this, Kt, /* @__PURE__ */ h(() => {
466
+ d(this, Gt, /* @__PURE__ */ h(() => {
467
467
  var a, c, l, f, u, b;
468
468
  const s = t(this, S).querySelector(".ng-container-left .ng-part-body table"), e = t(this, S).querySelector(".ng-container-body .ng-part-body table"), n = t(this, S).querySelector(".ng-container-right .ng-part-body table");
469
469
  if (e) {
@@ -490,7 +490,7 @@ const Ge = class Ge {
490
490
  }
491
491
  }
492
492
  }, "#syncRowHeights"));
493
- d(this, Gt, /* @__PURE__ */ h(() => {
493
+ d(this, Zt, /* @__PURE__ */ h(() => {
494
494
  !t(this, S) || !(t(this, S) instanceof HTMLElement) || (p(this, G, new ResizeObserver((s) => {
495
495
  for (const e of s) {
496
496
  const n = e.target;
@@ -509,8 +509,8 @@ const Ge = class Ge {
509
509
  d(this, Mt, /* @__PURE__ */ h(() => {
510
510
  R.log("rowManager.#renderAllContainers"), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((s) => {
511
511
  const e = t(this, S).querySelector(s);
512
- e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Xt).call(this, e, s);
513
- }), t(this, Zt).call(this), t(this, Kt).call(this);
512
+ e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Kt).call(this, e, s);
513
+ }), t(this, Jt).call(this), t(this, Gt).call(this);
514
514
  }, "#renderAllContainers"));
515
515
  d(this, We, /* @__PURE__ */ h((s) => {
516
516
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((e) => {
@@ -582,7 +582,7 @@ const Ge = class Ge {
582
582
  i && typeof i.refresh == "function" && i.refresh();
583
583
  });
584
584
  }, "#bindRowData"));
585
- d(this, Zt, /* @__PURE__ */ h(() => {
585
+ d(this, Jt, /* @__PURE__ */ h(() => {
586
586
  var c, l, f;
587
587
  R.log("rowManager.#syncHeaderHeights");
588
588
  const s = t(this, S).querySelector(".ng-container-left .ng-part-header table"), e = t(this, S).querySelector(".ng-container-body .ng-part-header table"), n = t(this, S).querySelector(".ng-container-right .ng-part-header table");
@@ -600,7 +600,7 @@ const Ge = class Ge {
600
600
  E(this, "destroy", /* @__PURE__ */ h(() => {
601
601
  t(this, G) && (t(this, G).disconnect(), p(this, G, null));
602
602
  }, "destroy"));
603
- p(this, j, s.getRootNode().host), p(this, S, s), t(this, Gt).call(this);
603
+ p(this, j, s.getRootNode().host), p(this, S, s), t(this, Zt).call(this);
604
604
  }
605
605
  getRowHeight() {
606
606
  return t(this, D);
@@ -610,14 +610,14 @@ const Ge = class Ge {
610
610
  return ((e = t(this, P).get(s)) == null ? void 0 : e.length) || 1;
611
611
  }
612
612
  };
613
- j = new WeakMap(), S = new WeakMap(), it = new WeakMap(), P = new WeakMap(), D = new WeakMap(), G = new WeakMap(), at = new WeakMap(), kt = new WeakMap(), Oe = new WeakMap(), ze = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), Lt = new WeakMap(), It = new WeakMap(), Ht = new WeakMap(), Kt = new WeakMap(), Gt = new WeakMap(), Mt = new WeakMap(), We = new WeakMap(), pt = new WeakMap(), $t = new WeakMap(), Zt = new WeakMap(), h(Ge, "RowManager");
613
+ j = new WeakMap(), S = new WeakMap(), it = new WeakMap(), P = new WeakMap(), D = new WeakMap(), G = new WeakMap(), at = new WeakMap(), kt = new WeakMap(), Oe = new WeakMap(), ze = new WeakMap(), Xt = new WeakMap(), Kt = new WeakMap(), Lt = new WeakMap(), It = new WeakMap(), Ht = new WeakMap(), Gt = new WeakMap(), Zt = new WeakMap(), Mt = new WeakMap(), We = new WeakMap(), pt = new WeakMap(), $t = new WeakMap(), Jt = new WeakMap(), h(Ge, "RowManager");
614
614
  let Re = Ge;
615
- const Jt = class Jt {
615
+ const Qt = class Qt {
616
616
  /**
617
617
  * 🎯 λ ˆμ΄μ•„μ›ƒ λ‚΄μ˜ μ—¬λŸ¬ rawTables 배열을 μΌκ΄„λ‘œ λ°›μ•„ 단일 λ§ˆμŠ€ν„° ν…œν”Œλ¦ΏμœΌλ‘œ 사전 μ»΄νŒŒμΌν•©λ‹ˆλ‹€.
618
618
  */
619
619
  static compileAll(s) {
620
- return Array.isArray(s) ? s.map((e) => Jt.compile(e)) : [];
620
+ return Array.isArray(s) ? s.map((e) => Qt.compile(e)) : [];
621
621
  }
622
622
  /**
623
623
  * 🎯 단일 원본 ν…Œμ΄λΈ”μ„ λ°›μ•„ κΈ°λ³Έ ꡬ쑰 보정 및 2차원 격자 인덱슀 사전 λΆ€μ—¬ μ™„λ£Œλœ λ§ˆμŠ€ν„° ν…Œμ΄λΈ” λ°˜ν™˜
@@ -689,8 +689,8 @@ const Jt = class Jt {
689
689
  }
690
690
  // 🎯 [μΆ”κ°€] td/th에 μ„ μ–Έλœ cell-type 속성을 읽어 μ»€μŠ€ν…€ νƒœκ·Έλ‘œ μžλ™ 감싸기
691
691
  };
692
- h(Jt, "TableCompiler");
693
- let Ae = Jt;
692
+ h(Qt, "TableCompiler");
693
+ let Ae = Qt;
694
694
  var _, Y, U, At, gs;
695
695
  const Ze = class Ze {
696
696
  constructor(s) {
@@ -805,25 +805,25 @@ _ = new WeakMap(), Y = new WeakMap(), U = new WeakSet(), At = /* @__PURE__ */ h(
805
805
  });
806
806
  }, "#initEvents"), h(Ze, "CellSelection");
807
807
  let Ee = Ze;
808
- var V, lt, Qt, te, ee, bs;
808
+ var V, lt, te, ee, se, bs;
809
809
  const Je = class Je {
810
810
  constructor(s) {
811
- d(this, ee);
811
+ d(this, se);
812
812
  d(this, V);
813
813
  d(this, lt, null);
814
- d(this, Qt, -1);
815
814
  d(this, te, -1);
816
- p(this, V, s), Q(this, ee, bs).call(this), R.log("🎯 [CellNavigation] Initialized");
815
+ d(this, ee, -1);
816
+ p(this, V, s), Q(this, se, bs).call(this), R.log("🎯 [CellNavigation] Initialized");
817
817
  }
818
818
  get currentCell() {
819
819
  return t(this, lt);
820
820
  }
821
821
  set currentCell(s) {
822
822
  if (!s) return;
823
- p(this, lt, s), s.focus();
823
+ p(this, lt, s), s.focus({ preventScroll: !0 });
824
824
  const e = parseInt(s.dataset.row, 10), n = parseInt(s.dataset.col, 10);
825
825
  if (!isNaN(e) && !isNaN(n)) {
826
- p(this, Qt, e), p(this, te, n);
826
+ p(this, te, e), p(this, ee, n);
827
827
  const r = s.closest("tr"), o = r == null ? void 0 : r.closest("tbody");
828
828
  if (o) {
829
829
  const a = Array.from(o.querySelectorAll("tr:not(.nodata)")).filter((u) => parseInt(u.dataset.row, 10) === e), c = a.length > 0 ? a.length : 1, l = a.indexOf(r), f = e * c + (l >= 0 ? l : 0);
@@ -863,7 +863,7 @@ const Je = class Je {
863
863
  }
864
864
  }
865
865
  };
866
- V = new WeakMap(), lt = new WeakMap(), Qt = new WeakMap(), te = new WeakMap(), ee = new WeakSet(), bs = /* @__PURE__ */ h(function() {
866
+ V = new WeakMap(), lt = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), se = new WeakSet(), bs = /* @__PURE__ */ h(function() {
867
867
  t(this, V).addEventListener("mousedown", (s) => {
868
868
  const e = s.target.closest("td, th");
869
869
  !e || e.dataset.row === void 0 || e.dataset.col === void 0 || e.closest("tr").classList.contains("nodata") || (this.currentCell = e);
@@ -872,15 +872,15 @@ V = new WeakMap(), lt = new WeakMap(), Qt = new WeakMap(), te = new WeakMap(), e
872
872
  });
873
873
  }, "#initEvents"), h(Je, "CellNavigation");
874
874
  let qe = Je;
875
- var se, ct, ht, _t, ne, re, oe, yt, ie, ae;
875
+ var ne, ct, ht, _t, Nt, re, oe, yt, ie, ae;
876
876
  const Et = class Et extends HTMLElement {
877
877
  constructor() {
878
878
  super();
879
- d(this, se);
879
+ d(this, ne);
880
880
  d(this, ct, null);
881
881
  d(this, ht);
882
882
  d(this, _t);
883
- d(this, ne);
883
+ d(this, Nt);
884
884
  E(this, "invalidate", /* @__PURE__ */ h(() => {
885
885
  R.log("sheet.invalidate()"), t(this, ht).refresh();
886
886
  }, "invalidate"));
@@ -940,7 +940,7 @@ const Et = class Et extends HTMLElement {
940
940
  n && (n.scrollTop = e);
941
941
  }, "scrollToY"));
942
942
  d(this, ie, /* @__PURE__ */ h(() => {
943
- t(this, ae).call(this), p(this, _t, new Ee(this)), p(this, ne, new qe(this));
943
+ t(this, ae).call(this), p(this, _t, new Ee(this)), p(this, Nt, new qe(this));
944
944
  }, "#init"));
945
945
  d(this, ae, /* @__PURE__ */ h(() => {
946
946
  const e = Et.SCROLLBAR_SIZE;
@@ -1144,7 +1144,7 @@ const Et = class Et extends HTMLElement {
1144
1144
  </div>
1145
1145
  `;
1146
1146
  }, "#render"));
1147
- p(this, ht, new Re(this)), p(this, se, this.getRootNode().host);
1147
+ p(this, ht, new Re(this)), p(this, ne, this.getRootNode().host);
1148
1148
  }
1149
1149
  connectedCallback() {
1150
1150
  t(this, ie).call(this);
@@ -1152,14 +1152,17 @@ const Et = class Et extends HTMLElement {
1152
1152
  get selection() {
1153
1153
  return t(this, _t);
1154
1154
  }
1155
+ get navigation() {
1156
+ return t(this, Nt);
1157
+ }
1155
1158
  disconnectedCallback() {
1156
1159
  this.innerHTML = "", R.log("NineTableSheet destroyed.");
1157
1160
  }
1158
1161
  };
1159
- se = new WeakMap(), ct = new WeakMap(), ht = new WeakMap(), _t = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), yt = new WeakMap(), ie = new WeakMap(), ae = new WeakMap(), h(Et, "NineTableSheet"), E(Et, "SCROLLBAR_SIZE", 16);
1160
- let Ft = Et;
1161
- customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", Ft);
1162
- var le, Nt;
1162
+ ne = new WeakMap(), ct = new WeakMap(), ht = new WeakMap(), _t = new WeakMap(), Nt = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), yt = new WeakMap(), ie = new WeakMap(), ae = new WeakMap(), h(Et, "NineTableSheet"), E(Et, "SCROLLBAR_SIZE", 16);
1163
+ let jt = Et;
1164
+ customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", jt);
1165
+ var le, Dt;
1163
1166
  const Qe = class Qe extends HTMLElement {
1164
1167
  constructor() {
1165
1168
  super();
@@ -1168,10 +1171,10 @@ const Qe = class Qe extends HTMLElement {
1168
1171
  (e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (n) => {
1169
1172
  var i;
1170
1173
  const r = n.ctrlKey || n.metaKey || n.shiftKey, o = parseInt((i = n.target.closest(".nine-tab-item")) == null ? void 0 : i.dataset.index, 10);
1171
- t(this, Nt).call(this, o, r);
1172
- }), t(this, Nt).call(this, 0, !1);
1174
+ t(this, Dt).call(this, o, r);
1175
+ }), t(this, Dt).call(this, 0, !1);
1173
1176
  }, "#init"));
1174
- d(this, Nt, /* @__PURE__ */ h((e, n = !1) => {
1177
+ d(this, Dt, /* @__PURE__ */ h((e, n = !1) => {
1175
1178
  const r = /* @__PURE__ */ h(() => {
1176
1179
  const f = Array.from(this.querySelectorAll("nine-table-sheet"));
1177
1180
  Array.from(this.querySelectorAll("nine-splitter")).forEach((g) => g.style.setProperty("display", "none"));
@@ -1207,24 +1210,24 @@ const Qe = class Qe extends HTMLElement {
1207
1210
  t(this, le).call(this);
1208
1211
  }
1209
1212
  };
1210
- le = new WeakMap(), Nt = new WeakMap(), h(Qe, "NineTableSheets");
1213
+ le = new WeakMap(), Dt = new WeakMap(), h(Qe, "NineTableSheets");
1211
1214
  let Te = Qe;
1212
1215
  customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Te);
1213
- var N, ce, Dt, he;
1216
+ var N, ce, Ot, he;
1214
1217
  const ts = class ts {
1215
1218
  constructor(s) {
1216
1219
  d(this, N);
1217
1220
  d(this, ce, /* @__PURE__ */ h(() => {
1218
1221
  t(this, he).call(this), new ResizeObserver((s) => {
1219
1222
  for (let e of s)
1220
- t(this, N).getAttribute("auto-height") === "true" && t(this, Dt).call(this);
1223
+ t(this, N).getAttribute("auto-height") === "true" && t(this, Ot).call(this);
1221
1224
  }).observe(t(this, N));
1222
1225
  }, "#init"));
1223
- d(this, Dt, /* @__PURE__ */ h(() => {
1226
+ d(this, Ot, /* @__PURE__ */ h(() => {
1224
1227
  var c, l;
1225
1228
  const s = Array.from(t(this, N).shadowRoot.querySelectorAll("nine-table-sheet.active"));
1226
1229
  if (s.length === 0) return;
1227
- const e = parseInt(t(this, N).getAttribute("max-display-row"), 10) || 10, n = Math.max(...s.map((f) => f.getRowHeight())), r = (c = t(this, N).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, o = (l = t(this, N).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, i = Ft.SCROLLBAR_SIZE, a = e * n + r + o + i;
1230
+ const e = parseInt(t(this, N).getAttribute("max-display-row"), 10) || 10, n = Math.max(...s.map((f) => f.getRowHeight())), r = (c = t(this, N).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, o = (l = t(this, N).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, i = jt.SCROLLBAR_SIZE, a = e * n + r + o + i;
1228
1231
  t(this, N).style.height = `${a}px`;
1229
1232
  }, "#applyAutoHeight"));
1230
1233
  d(this, he, /* @__PURE__ */ h(() => {
@@ -1356,22 +1359,22 @@ const ts = class ts {
1356
1359
  const a = t(this, N).shadowRoot.querySelectorAll("nine-table-sheet");
1357
1360
  a == null || a.forEach((c, l) => {
1358
1361
  e[l] && setTimeout(() => {
1359
- c.generate(e[l]), n && t(this, Dt).call(this);
1362
+ c.generate(e[l]), n && t(this, Ot).call(this);
1360
1363
  });
1361
1364
  });
1362
1365
  }, "#render"));
1363
1366
  p(this, N, s), t(this, ce).call(this);
1364
1367
  }
1365
1368
  };
1366
- N = new WeakMap(), ce = new WeakMap(), Dt = new WeakMap(), he = new WeakMap(), h(ts, "LayoutManager");
1369
+ N = new WeakMap(), ce = new WeakMap(), Ot = new WeakMap(), he = new WeakMap(), h(ts, "LayoutManager");
1367
1370
  let Ce = ts;
1368
- var Ot, mt;
1371
+ var zt, mt;
1369
1372
  const es = class es {
1370
1373
  constructor(s) {
1371
- d(this, Ot);
1374
+ d(this, zt);
1372
1375
  d(this, mt, -1);
1373
- E(this, "count", /* @__PURE__ */ h(() => t(this, Ot).rawRecords.length, "count"));
1374
- p(this, Ot, s);
1376
+ E(this, "count", /* @__PURE__ */ h(() => t(this, zt).rawRecords.length, "count"));
1377
+ p(this, zt, s);
1375
1378
  }
1376
1379
  get at() {
1377
1380
  return t(this, mt);
@@ -1381,9 +1384,9 @@ const es = class es {
1381
1384
  });
1382
1385
  }
1383
1386
  };
1384
- Ot = new WeakMap(), mt = new WeakMap(), h(es, "ngRow");
1387
+ zt = new WeakMap(), mt = new WeakMap(), h(es, "ngRow");
1385
1388
  let ke = es;
1386
- var O, k, z, xt, de, Z, fe, dt, zt, ue, ge, wt;
1389
+ var O, k, z, xt, de, Z, fe, dt, Wt, ue, ge, wt;
1387
1390
  const W = class W {
1388
1391
  constructor(s, e) {
1389
1392
  d(this, O);
@@ -1399,7 +1402,7 @@ const W = class W {
1399
1402
  var n;
1400
1403
  t(this, Z).push(((n = e.getBoundingClientRect) == null ? void 0 : n.call(e).height) || 24);
1401
1404
  }), (t(this, k).rawRecords || []).forEach((e) => {
1402
- e.__ng || (e.__ng = t(this, zt).call(this)), e.__ng.height = t(this, Z).slice();
1405
+ e.__ng || (e.__ng = t(this, Wt).call(this)), e.__ng.height = t(this, Z).slice();
1403
1406
  });
1404
1407
  }, "#initialize"));
1405
1408
  d(this, dt, /* @__PURE__ */ h(() => {
@@ -1424,7 +1427,7 @@ const W = class W {
1424
1427
  E(this, "set", /* @__PURE__ */ h((s) => {
1425
1428
  this.clear(), this.add(s, !1), t(this, dt).call(this);
1426
1429
  }, "set"));
1427
- d(this, zt, /* @__PURE__ */ h(() => ({
1430
+ d(this, Wt, /* @__PURE__ */ h(() => ({
1428
1431
  rowState: W.ROW_STATE.EMPTY,
1429
1432
  deleted: !1,
1430
1433
  filtered: !1,
@@ -1452,7 +1455,7 @@ const W = class W {
1452
1455
  }), n;
1453
1456
  }, "#json2Array"));
1454
1457
  d(this, ge, /* @__PURE__ */ h((s) => (Array.isArray(s) || (s = [s]), s.forEach((e) => {
1455
- e.__ng = t(this, zt).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = W.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1458
+ e.__ng = t(this, Wt).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = W.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1456
1459
  }), s), "#defaultInsert"));
1457
1460
  E(this, "add", /* @__PURE__ */ h((s, e = !0) => {
1458
1461
  s === void 0 && (s = {});
@@ -1526,7 +1529,7 @@ const W = class W {
1526
1529
  return this.length;
1527
1530
  }
1528
1531
  };
1529
- O = new WeakMap(), k = new WeakMap(), z = new WeakMap(), xt = new WeakMap(), de = new WeakMap(), Z = new WeakMap(), fe = new WeakMap(), dt = new WeakMap(), zt = new WeakMap(), ue = new WeakMap(), ge = new WeakMap(), wt = new WeakMap(), h(W, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1532
+ O = new WeakMap(), k = new WeakMap(), z = new WeakMap(), xt = new WeakMap(), de = new WeakMap(), Z = new WeakMap(), fe = new WeakMap(), dt = new WeakMap(), Wt = new WeakMap(), ue = new WeakMap(), ge = new WeakMap(), wt = new WeakMap(), h(W, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1530
1533
  E(W, "ROW_STATE", {
1531
1534
  EMPTY: "EMPTY",
1532
1535
  NORMAL: "NORMAL",
@@ -1558,7 +1561,7 @@ const ss = class ss {
1558
1561
  };
1559
1562
  ft = new WeakMap(), h(ss, "ngDataManager");
1560
1563
  let Ie = ss;
1561
- var vt, M, Wt, be;
1564
+ var vt, M, Bt, be;
1562
1565
  const ns = class ns {
1563
1566
  // 🎯 이제 { name: string, type: string } κ°μ²΄λ“€μ˜ λ°°μ—΄λ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.
1564
1567
  constructor(s) {
@@ -1567,9 +1570,9 @@ const ns = class ns {
1567
1570
  E(this, "add", /* @__PURE__ */ h((s, e = "string") => {
1568
1571
  s.forEach((n) => {
1569
1572
  t(this, M).some((r) => r.name === n) || t(this, M).push({ name: n, type: e });
1570
- }), t(this, Wt).call(this);
1573
+ }), t(this, Bt).call(this);
1571
1574
  }, "add"));
1572
- d(this, Wt, /* @__PURE__ */ h(() => {
1575
+ d(this, Bt, /* @__PURE__ */ h(() => {
1573
1576
  const s = /* @__PURE__ */ new Map();
1574
1577
  t(this, M).forEach((e) => {
1575
1578
  s.set(e.name, e.type);
@@ -1604,7 +1607,7 @@ const ns = class ns {
1604
1607
  });
1605
1608
  });
1606
1609
  });
1607
- t(this, Wt).call(this);
1610
+ t(this, Bt).call(this);
1608
1611
  }
1609
1612
  }, "#init"));
1610
1613
  p(this, vt, s), t(this, be).call(this);
@@ -1629,7 +1632,7 @@ const ns = class ns {
1629
1632
  return t(this, M).some((e) => e.name === s);
1630
1633
  }
1631
1634
  };
1632
- vt = new WeakMap(), M = new WeakMap(), Wt = new WeakMap(), be = new WeakMap(), h(ns, "ngFields");
1635
+ vt = new WeakMap(), M = new WeakMap(), Bt = new WeakMap(), be = new WeakMap(), h(ns, "ngFields");
1633
1636
  let He = ns;
1634
1637
  var ut, pe, ye;
1635
1638
  const rs = class rs extends HTMLElement {
@@ -1678,12 +1681,12 @@ const qt = class qt extends HTMLElement {
1678
1681
  };
1679
1682
  h(qt, "BasicCellElement"), E(qt, "_styleCache", /* @__PURE__ */ new Map()), E(qt, "_customStyleCache", /* @__PURE__ */ new Map());
1680
1683
  let $e = qt;
1681
- var L, Bt, x, Be, Pe, Fe, je, Ye;
1684
+ var L, Pt, x, Be, Pe, Fe, je, Ye;
1682
1685
  const os = class os extends $e {
1683
1686
  constructor() {
1684
1687
  super();
1685
1688
  d(this, L);
1686
- d(this, Bt);
1689
+ d(this, Pt);
1687
1690
  d(this, x);
1688
1691
  d(this, Be);
1689
1692
  d(this, Pe);
@@ -1752,7 +1755,7 @@ const os = class os extends $e {
1752
1755
  }, "getExprValue"));
1753
1756
  }
1754
1757
  connectedCallback() {
1755
- super.connectedCallback(), p(this, L, this.getRootNode().host), p(this, x, this.closest("th,td")), p(this, Bt, t(this, x).closest("tr"));
1758
+ super.connectedCallback(), p(this, L, this.getRootNode().host), p(this, x, this.closest("th,td")), p(this, Pt, t(this, x).closest("tr"));
1756
1759
  }
1757
1760
  get value() {
1758
1761
  var e = !t(this, L) || !t(this, L).dataManager || !t(this, x) || !t(this, x).dataset || !t(this, x).dataset.row || !t(this, x).dataset.bind ? "" : t(this, x).closest("tr").data[t(this, x).dataset.bind];
@@ -1771,10 +1774,10 @@ const os = class os extends $e {
1771
1774
  }
1772
1775
  refresh() {
1773
1776
  const e = t(this, x).dataset.bind;
1774
- return parseInt(t(this, x).dataset.row), t(this, Bt).data[e];
1777
+ return parseInt(t(this, x).dataset.row), t(this, Pt).data[e];
1775
1778
  }
1776
1779
  };
1777
- L = new WeakMap(), Bt = new WeakMap(), x = new WeakMap(), Be = new WeakMap(), Pe = new WeakMap(), Fe = new WeakMap(), je = new WeakMap(), Ye = new WeakMap(), h(os, "CellElement");
1780
+ L = new WeakMap(), Pt = new WeakMap(), x = new WeakMap(), Be = new WeakMap(), Pe = new WeakMap(), Fe = new WeakMap(), je = new WeakMap(), Ye = new WeakMap(), h(os, "CellElement");
1778
1781
  let _e = os;
1779
1782
  const is = class is extends _e {
1780
1783
  constructor() {
@@ -1789,11 +1792,11 @@ const is = class is extends _e {
1789
1792
  };
1790
1793
  h(is, "EditableCellElement");
1791
1794
  let Ne = is;
1792
- var Pt, gt, St, Rt, me, J, Ve;
1795
+ var Ft, gt, St, Rt, me, J, Ve;
1793
1796
  const as = class as extends Ne {
1794
1797
  constructor() {
1795
1798
  super();
1796
- d(this, Pt);
1799
+ d(this, Ft);
1797
1800
  d(this, gt);
1798
1801
  d(this, St);
1799
1802
  d(this, Rt);
@@ -1801,7 +1804,7 @@ const as = class as extends Ne {
1801
1804
  d(this, J);
1802
1805
  E(this, "refresh", /* @__PURE__ */ h(() => {
1803
1806
  const e = super.refresh();
1804
- t(this, Pt).value = e;
1807
+ t(this, Ft).value = e;
1805
1808
  }, "refresh"));
1806
1809
  /**
1807
1810
  dataRefresh = (v) => {
@@ -1858,10 +1861,10 @@ const as = class as extends Ne {
1858
1861
  ${e.join(" ")}
1859
1862
  ondragstart="return false;"
1860
1863
  >
1861
- `, super.connectedCallback(), p(this, Pt, this.querySelector("input"));
1864
+ `, super.connectedCallback(), p(this, Ft, this.querySelector("input"));
1862
1865
  }
1863
1866
  };
1864
- Pt = new WeakMap(), gt = new WeakMap(), St = new WeakMap(), Rt = new WeakMap(), me = new WeakMap(), J = new WeakMap(), Ve = new WeakMap(), h(as, "CellInputText");
1867
+ Ft = new WeakMap(), gt = new WeakMap(), St = new WeakMap(), Rt = new WeakMap(), me = new WeakMap(), J = new WeakMap(), Ve = new WeakMap(), h(as, "CellInputText");
1865
1868
  let De = as;
1866
1869
  customElements.get("cell-input-text");
1867
1870
  customElements.get("cell-input") || customElements.define("cell-input", De);