@ninebone/table 0.0.764 β†’ 0.0.766

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,8 +4,8 @@ var us = (T) => {
4
4
  };
5
5
  var ys = (T, s, e) => s in T ? fs(T, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : T[s] = e;
6
6
  var h = (T, s) => fs(T, "name", { value: s, configurable: !0 });
7
- var q = (T, s, e) => ys(T, typeof s != "symbol" ? s + "" : s, e), we = (T, s, e) => s.has(T) || us("Cannot " + e);
8
- var t = (T, s, e) => (we(T, s, "read from private field"), e ? e.call(T) : s.get(T)), d = (T, s, e) => s.has(T) ? us("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(T) : s.set(T, e), p = (T, s, e, n) => (we(T, s, "write to private field"), n ? n.call(T, e) : s.set(T, e), e), Q = (T, s, e) => (we(T, s, "access private method"), e);
7
+ var q = (T, s, e) => ys(T, typeof s != "symbol" ? s + "" : s, e), xe = (T, s, e) => s.has(T) || us("Cannot " + e);
8
+ var t = (T, s, e) => (xe(T, s, "read from private field"), e ? e.call(T) : s.get(T)), d = (T, s, e) => s.has(T) ? us("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(T) : s.set(T, e), p = (T, s, e, n) => (xe(T, s, "write to private field"), n ? n.call(T, e) : s.set(T, e), e), Q = (T, s, e) => (xe(T, s, "access private method"), e);
9
9
  var gs = (T, s, e, n) => ({
10
10
  set _(r) {
11
11
  p(T, s, r, e);
@@ -21,9 +21,9 @@ const Xe = class Xe extends ms.constructor {
21
21
  }
22
22
  };
23
23
  h(Xe, "Trace");
24
- let ve = Xe;
25
- const S = new ve();
26
- var B, K, E, tt, et, st, Vt, nt, Ut;
24
+ let we = Xe;
25
+ const S = new we();
26
+ var B, K, E, tt, et, st, Yt, nt, Vt;
27
27
  const Ke = class Ke extends HTMLElement {
28
28
  constructor() {
29
29
  super();
@@ -33,7 +33,7 @@ const Ke = class Ke extends HTMLElement {
33
33
  d(this, tt);
34
34
  d(this, et);
35
35
  d(this, st);
36
- d(this, Vt, /* @__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 Ke = class Ke 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, Ut, /* @__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, E).thumb.style.left || 0, 10);
@@ -190,7 +190,7 @@ const Ke = class Ke 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, Ut).call(this), t(this, Vt).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 Ke = class Ke extends HTMLElement {
198
198
  t(this, st) && t(this, st).disconnect();
199
199
  }
200
200
  };
201
- B = new WeakMap(), K = new WeakMap(), E = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), st = new WeakMap(), Vt = new WeakMap(), nt = new WeakMap(), Ut = new WeakMap(), h(Ke, "NineTableHScrollBar");
202
- let Se = Ke;
203
- customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", Se);
204
- var rt, ot, bt, k, Tt, Ct, Xt;
201
+ B = new WeakMap(), K = new WeakMap(), E = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), st = new WeakMap(), Yt = new WeakMap(), nt = new WeakMap(), Vt = new WeakMap(), h(Ke, "NineTableHScrollBar");
202
+ let ve = Ke;
203
+ customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ve);
204
+ var rt, ot, bt, k, Tt, Ct, Ut;
205
205
  const Ge = class Ge extends HTMLElement {
206
206
  constructor() {
207
207
  super();
@@ -230,7 +230,7 @@ const Ge = class Ge 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, k).top.disabled = u <= 0, t(this, k).bottom.disabled = u >= b - 1;
232
232
  }, "refresh"));
233
- d(this, Xt, /* @__PURE__ */ h(() => {
233
+ d(this, Ut, /* @__PURE__ */ h(() => {
234
234
  S.log("nine-table-vscrollbar.#init");
235
235
  const e = t(this, k).container, n = /* @__PURE__ */ h(() => {
236
236
  const o = (t(this, rt).data.get() || []).length, i = t(this, ot).getRowHeight();
@@ -345,15 +345,15 @@ const Ge = class Ge 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, Xt).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(), k = new WeakMap(), Tt = new WeakMap(), Ct = new WeakMap(), Xt = new WeakMap(), h(Ge, "NineTableVScrollBar");
354
- let Re = Ge;
355
- customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", Re);
356
- var j, R, it, P, D, G, at, kt, We, ze, Kt, Gt, Lt, It, Ht, Zt, Jt, $t, Be, pt, Mt, Qt;
353
+ rt = new WeakMap(), ot = new WeakMap(), bt = new WeakMap(), k = new WeakMap(), Tt = new WeakMap(), Ct = new WeakMap(), Ut = new WeakMap(), h(Ge, "NineTableVScrollBar");
354
+ let Se = Ge;
355
+ customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", Se);
356
+ var j, R, it, P, D, G, at, kt, Oe, We, Xt, Kt, Lt, It, Ht, Gt, Zt, $t, ze, pt, Mt, Jt;
357
357
  const Ze = class Ze {
358
358
  constructor(s) {
359
359
  d(this, j);
@@ -364,10 +364,10 @@ const Ze = class Ze {
364
364
  d(this, G, null);
365
365
  d(this, at, 0);
366
366
  d(this, kt, 40);
367
+ d(this, Oe, !1);
367
368
  d(this, We, !1);
368
- d(this, ze, !1);
369
369
  //#ticking = false; // 🎯 고속 슀크둀 μŠ€λ‘œν‹€λ§μš© ν”Œλž˜κ·Έ
370
- d(this, Kt, 3);
370
+ d(this, Xt, 3);
371
371
  q(this, "refresh", /* @__PURE__ */ h(() => {
372
372
  var e;
373
373
  S.log("rowManager.refresh");
@@ -406,7 +406,7 @@ const Ze = class Ze {
406
406
  });
407
407
  }
408
408
  }, "initialize"));
409
- d(this, Gt, /* @__PURE__ */ h((s, e) => {
409
+ d(this, Kt, /* @__PURE__ */ h((s, e) => {
410
410
  S.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 Ze = class Ze {
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, Kt));
463
+ p(this, kt, s + t(this, Xt));
464
464
  }
465
465
  }, "#updateRowCount"));
466
- d(this, Zt, /* @__PURE__ */ h(() => {
466
+ d(this, Gt, /* @__PURE__ */ h(() => {
467
467
  var a, c, l, f, u, b;
468
468
  const s = t(this, R).querySelector(".ng-container-left .ng-part-body table"), e = t(this, R).querySelector(".ng-container-body .ng-part-body table"), n = t(this, R).querySelector(".ng-container-right .ng-part-body table");
469
469
  if (e) {
@@ -490,7 +490,7 @@ const Ze = class Ze {
490
490
  }
491
491
  }
492
492
  }, "#syncRowHeights"));
493
- d(this, Jt, /* @__PURE__ */ h(() => {
493
+ d(this, Zt, /* @__PURE__ */ h(() => {
494
494
  !t(this, R) || !(t(this, R) instanceof HTMLElement) || (p(this, G, new ResizeObserver((s) => {
495
495
  for (const e of s) {
496
496
  const n = e.target;
@@ -509,10 +509,10 @@ const Ze = class Ze {
509
509
  d(this, $t, /* @__PURE__ */ h(() => {
510
510
  S.log("rowManager.#renderAllContainers"), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((s) => {
511
511
  const e = t(this, R).querySelector(s);
512
- e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Gt).call(this, e, s);
513
- }), t(this, Qt).call(this), t(this, Zt).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
- d(this, Be, /* @__PURE__ */ h((s) => {
515
+ d(this, ze, /* @__PURE__ */ h((s) => {
516
516
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((e) => {
517
517
  var l;
518
518
  const n = t(this, R).querySelector(e);
@@ -582,7 +582,7 @@ const Ze = class Ze {
582
582
  i && typeof i.refresh == "function" && i.refresh();
583
583
  });
584
584
  }, "#bindRowData"));
585
- d(this, Qt, /* @__PURE__ */ h(() => {
585
+ d(this, Jt, /* @__PURE__ */ h(() => {
586
586
  var c, l, f;
587
587
  S.log("rowManager.#syncHeaderHeights");
588
588
  const s = t(this, R).querySelector(".ng-container-left .ng-part-header table"), e = t(this, R).querySelector(".ng-container-body .ng-part-header table"), n = t(this, R).querySelector(".ng-container-right .ng-part-header table");
@@ -600,7 +600,7 @@ const Ze = class Ze {
600
600
  q(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, R, s), t(this, Jt).call(this);
603
+ p(this, j, s.getRootNode().host), p(this, R, s), t(this, Zt).call(this);
604
604
  }
605
605
  getRowHeight() {
606
606
  return t(this, D);
@@ -610,14 +610,14 @@ const Ze = class Ze {
610
610
  return ((e = t(this, P).get(s)) == null ? void 0 : e.length) || 1;
611
611
  }
612
612
  };
613
- j = new WeakMap(), R = new WeakMap(), it = new WeakMap(), P = new WeakMap(), D = new WeakMap(), G = new WeakMap(), at = new WeakMap(), kt = new WeakMap(), We = new WeakMap(), ze = new WeakMap(), Kt = new WeakMap(), Gt = new WeakMap(), Lt = new WeakMap(), It = new WeakMap(), Ht = new WeakMap(), Zt = new WeakMap(), Jt = new WeakMap(), $t = new WeakMap(), Be = new WeakMap(), pt = new WeakMap(), Mt = new WeakMap(), Qt = new WeakMap(), h(Ze, "RowManager");
614
- let Ae = Ze;
615
- const te = class te {
613
+ j = new WeakMap(), R = new WeakMap(), it = new WeakMap(), P = new WeakMap(), D = new WeakMap(), G = new WeakMap(), at = new WeakMap(), kt = new WeakMap(), Oe = new WeakMap(), We = new WeakMap(), Xt = new WeakMap(), Kt = new WeakMap(), Lt = new WeakMap(), It = new WeakMap(), Ht = new WeakMap(), Gt = new WeakMap(), Zt = new WeakMap(), $t = new WeakMap(), ze = new WeakMap(), pt = new WeakMap(), Mt = new WeakMap(), Jt = new WeakMap(), h(Ze, "RowManager");
614
+ let Re = Ze;
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) => te.compile(e)) : [];
620
+ return Array.isArray(s) ? s.map((e) => Qt.compile(e)) : [];
621
621
  }
622
622
  /**
623
623
  * 🎯 단일 원본 ν…Œμ΄λΈ”μ„ λ°›μ•„ κΈ°λ³Έ ꡬ쑰 보정 및 2차원 격자 인덱슀 사전 λΆ€μ—¬ μ™„λ£Œλœ λ§ˆμŠ€ν„° ν…Œμ΄λΈ” λ°˜ν™˜
@@ -691,8 +691,8 @@ const te = class te {
691
691
  }
692
692
  // 🎯 [μΆ”κ°€] td/th에 μ„ μ–Έλœ cell-type 속성을 읽어 μ»€μŠ€ν…€ νƒœκ·Έλ‘œ μžλ™ 감싸기
693
693
  };
694
- h(te, "TableCompiler");
695
- let Ee = te;
694
+ h(Qt, "TableCompiler");
695
+ let Ae = Qt;
696
696
  var _, Y, U, At, bs;
697
697
  const Je = class Je {
698
698
  constructor(s) {
@@ -707,9 +707,7 @@ const Je = class Je {
707
707
  );
708
708
  if (o.forEach((a) => {
709
709
  a.querySelectorAll(".selected, .selected-top, .selected-bottom, .selected-left, .selected-right").forEach((c) => {
710
- setTimeout(() => {
711
- c.classList.remove("selected", "selected-top", "selected-bottom", "selected-left", "selected-right");
712
- });
710
+ c.classList.remove("selected", "selected-top", "selected-bottom", "selected-left", "selected-right");
713
711
  });
714
712
  }), s < 0 || e < 0) {
715
713
  S.log("⚠️ [CellSelection.render] Range is invalid (< 0), skipping render.");
@@ -723,9 +721,7 @@ const Je = class Je {
723
721
  const u = parseInt(f.dataset.col, 10);
724
722
  if (isNaN(u)) return;
725
723
  const b = parseInt(f.rowSpan || 1, 10), g = parseInt(f.colSpan || 1, 10), y = l + b - 1, w = u + g - 1;
726
- y >= s && l <= n && w >= e && u <= r && (i++, f.classList.add("selected"), S.log(f, s, e, n, r), setTimeout(() => {
727
- l <= s && f.classList.add("selected-top"), y >= n && f.classList.add("selected-bottom"), u <= e && f.classList.add("selected-left"), w >= r && f.classList.add("selected-right");
728
- }));
724
+ y >= s && l <= n && w >= e && u <= r && (i++, f.classList.add("selected"), S.log(f, s, e, n, r), l <= s && f.classList.add("selected-top"), y >= n && f.classList.add("selected-bottom"), u <= e && f.classList.add("selected-left"), w >= r && f.classList.add("selected-right"));
729
725
  });
730
726
  });
731
727
  }), S.log(`✨ [CellSelection.render] Total rendered cells marked: ${i}`);
@@ -810,18 +806,18 @@ _ = new WeakMap(), Y = new WeakMap(), U = new WeakSet(), At = /* @__PURE__ */ h(
810
806
  document.addEventListener("mousemove", l), document.addEventListener("mouseup", f);
811
807
  });
812
808
  }, "#initEvents"), h(Je, "CellSelection");
813
- let qe = Je;
814
- var V, lt, ee, se, _t, ne, ps;
809
+ let Ee = Je;
810
+ var V, lt, te, ee, Be, se, ps;
815
811
  const Qe = class Qe {
816
812
  // 🎯 ν‚€λ³΄λ“œ λ„€λΉ„κ²Œμ΄μ…˜ 쀑 슀크둀 튐 λ°©μ§€ ν”Œλž˜κ·Έ
817
813
  constructor(s) {
818
- d(this, ne);
814
+ d(this, se);
819
815
  d(this, V);
820
816
  d(this, lt, null);
817
+ d(this, te, -1);
821
818
  d(this, ee, -1);
822
- d(this, se, -1);
823
- d(this, _t, !1);
824
- p(this, V, s), Q(this, ne, ps).call(this), S.log("🎯 [CellNavigation] Initialized");
819
+ d(this, Be, !1);
820
+ p(this, V, s), Q(this, se, ps).call(this), S.log("🎯 [CellNavigation] Initialized");
825
821
  }
826
822
  get currentCell() {
827
823
  return t(this, lt);
@@ -831,13 +827,11 @@ const Qe = class Qe {
831
827
  p(this, lt, s), s.focus({ preventScroll: !0 });
832
828
  const e = parseInt(s.dataset.row, 10), n = parseInt(s.dataset.col, 10);
833
829
  if (!isNaN(e) && !isNaN(n)) {
834
- p(this, ee, e), p(this, se, n);
830
+ p(this, te, e), p(this, ee, n);
835
831
  const r = s.closest("tr"), o = r == null ? void 0 : r.closest("tbody");
836
832
  if (o) {
837
833
  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);
838
- p(this, _t, !0), S.log("====================", f, n, f, n), t(this, V).selection.setRange(f, n, f, n), setTimeout(() => {
839
- p(this, _t, !1);
840
- }, 0);
834
+ S.log("====================", f, n, f, n), t(this, V).selection.setRange(f, n, f, n);
841
835
  }
842
836
  }
843
837
  }
@@ -873,7 +867,7 @@ const Qe = class Qe {
873
867
  }
874
868
  }
875
869
  };
876
- V = new WeakMap(), lt = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), _t = new WeakMap(), ne = new WeakSet(), ps = /* @__PURE__ */ h(function() {
870
+ V = new WeakMap(), lt = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), Be = new WeakMap(), se = new WeakSet(), ps = /* @__PURE__ */ h(function() {
877
871
  t(this, V).addEventListener("mousedown", (s) => {
878
872
  const e = s.target.closest("td, th");
879
873
  !e || e.dataset.row === void 0 || e.dataset.col === void 0 || (this.currentCell = e);
@@ -881,29 +875,29 @@ V = new WeakMap(), lt = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), _
881
875
  ["Tab", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(s.code) && this.moveCell(s);
882
876
  });
883
877
  }, "#initEvents"), h(Qe, "CellNavigation");
884
- let Te = Qe;
885
- var re, ct, ht, Nt, Dt, oe, ie, yt, ae, le;
878
+ let qe = Qe;
879
+ var ne, ct, ht, _t, Nt, re, oe, yt, ie, ae;
886
880
  const Et = class Et extends HTMLElement {
887
881
  constructor() {
888
882
  super();
889
- d(this, re);
883
+ d(this, ne);
890
884
  d(this, ct, null);
891
885
  d(this, ht);
886
+ d(this, _t);
892
887
  d(this, Nt);
893
- d(this, Dt);
894
888
  q(this, "invalidate", /* @__PURE__ */ h(() => {
895
889
  S.log("sheet.invalidate()"), t(this, ht).refresh();
896
890
  }, "invalidate"));
897
891
  q(this, "generate", /* @__PURE__ */ h((e) => {
898
892
  if (S.log("sheet.generate()"), !e) return;
899
- p(this, ct, Ee.compile(e)), t(this, oe).call(this), t(this, ie).call(this);
893
+ p(this, ct, Ae.compile(e)), t(this, re).call(this), t(this, oe).call(this);
900
894
  const n = this.querySelector(".ng-container-body .ng-part-header"), r = this.querySelector(".ng-container-body .ng-part-footer"), o = this.querySelector(".ng-nodata-overlay");
901
895
  n && o && (o.style.top = `${n.offsetHeight}px`), r && o && (o.style.bottom = `${r.offsetHeight}px`), t(this, ht).initialize(), setTimeout(() => {
902
896
  var i;
903
897
  (i = this.querySelector("nine-table-hscrollbar")) == null || i.refresh();
904
898
  }, 0);
905
899
  }, "generate"));
906
- d(this, oe, /* @__PURE__ */ h(() => {
900
+ d(this, re, /* @__PURE__ */ h(() => {
907
901
  [
908
902
  { selector: ".ng-container-body", type: null },
909
903
  { selector: ".ng-container-left", type: "left" },
@@ -913,7 +907,7 @@ const Et = class Et extends HTMLElement {
913
907
  (o = this.querySelector(`${n} .ng-part-header`)) == null || o.appendChild(t(this, yt).call(this, t(this, ct), r, "header")), (i = this.querySelector(`${n} .ng-virtual-spacer`)) == null || i.before(t(this, yt).call(this, t(this, ct), r, "body")), (a = this.querySelector(`${n} .ng-part-footer`)) == null || a.appendChild(t(this, yt).call(this, t(this, ct), r, "footer"));
914
908
  });
915
909
  }, "#renderSplitContainers"));
916
- d(this, ie, /* @__PURE__ */ h(() => {
910
+ d(this, oe, /* @__PURE__ */ h(() => {
917
911
  ["left", "right", "body"].forEach((e) => {
918
912
  const n = this.querySelector(`.ng-container-${e}`), r = n == null ? void 0 : n.querySelectorAll("table");
919
913
  if (!n || !r || r.length === 0) return;
@@ -953,10 +947,10 @@ const Et = class Et extends HTMLElement {
953
947
  const n = this.querySelector(".ng-container-body .ng-part-body");
954
948
  n && (n.scrollTop = e);
955
949
  }, "scrollToY"));
956
- d(this, ae, /* @__PURE__ */ h(() => {
957
- t(this, le).call(this), p(this, Nt, new qe(this)), p(this, Dt, new Te(this));
950
+ d(this, ie, /* @__PURE__ */ h(() => {
951
+ t(this, ae).call(this), p(this, _t, new Ee(this)), p(this, Nt, new qe(this));
958
952
  }, "#init"));
959
- d(this, le, /* @__PURE__ */ h(() => {
953
+ d(this, ae, /* @__PURE__ */ h(() => {
960
954
  const e = Et.SCROLLBAR_SIZE;
961
955
  this.innerHTML = `
962
956
  <style>
@@ -1158,37 +1152,37 @@ const Et = class Et extends HTMLElement {
1158
1152
  </div>
1159
1153
  `;
1160
1154
  }, "#render"));
1161
- p(this, ht, new Ae(this)), p(this, re, this.getRootNode().host);
1155
+ p(this, ht, new Re(this)), p(this, ne, this.getRootNode().host);
1162
1156
  }
1163
1157
  connectedCallback() {
1164
- t(this, ae).call(this);
1158
+ t(this, ie).call(this);
1165
1159
  }
1166
1160
  get selection() {
1167
- return t(this, Nt);
1161
+ return t(this, _t);
1168
1162
  }
1169
1163
  get navigation() {
1170
- return t(this, Dt);
1164
+ return t(this, Nt);
1171
1165
  }
1172
1166
  disconnectedCallback() {
1173
1167
  this.innerHTML = "", S.log("NineTableSheet destroyed.");
1174
1168
  }
1175
1169
  };
1176
- re = new WeakMap(), ct = new WeakMap(), ht = new WeakMap(), Nt = new WeakMap(), Dt = new WeakMap(), oe = new WeakMap(), ie = new WeakMap(), yt = new WeakMap(), ae = new WeakMap(), le = new WeakMap(), h(Et, "NineTableSheet"), q(Et, "SCROLLBAR_SIZE", 16);
1177
- let Yt = Et;
1178
- customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", Yt);
1179
- var ce, Ot;
1170
+ 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"), q(Et, "SCROLLBAR_SIZE", 16);
1171
+ let jt = Et;
1172
+ customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", jt);
1173
+ var le, Dt;
1180
1174
  const ts = class ts extends HTMLElement {
1181
1175
  constructor() {
1182
1176
  super();
1183
- d(this, ce, /* @__PURE__ */ h(() => {
1177
+ d(this, le, /* @__PURE__ */ h(() => {
1184
1178
  var e;
1185
1179
  (e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (n) => {
1186
1180
  var i;
1187
1181
  const r = n.ctrlKey || n.metaKey || n.shiftKey, o = parseInt((i = n.target.closest(".nine-tab-item")) == null ? void 0 : i.dataset.index, 10);
1188
- t(this, Ot).call(this, o, r);
1189
- }), t(this, Ot).call(this, 0, !1);
1182
+ t(this, Dt).call(this, o, r);
1183
+ }), t(this, Dt).call(this, 0, !1);
1190
1184
  }, "#init"));
1191
- d(this, Ot, /* @__PURE__ */ h((e, n = !1) => {
1185
+ d(this, Dt, /* @__PURE__ */ h((e, n = !1) => {
1192
1186
  const r = /* @__PURE__ */ h(() => {
1193
1187
  const f = Array.from(this.querySelectorAll("nine-table-sheet"));
1194
1188
  Array.from(this.querySelectorAll("nine-splitter")).forEach((g) => g.style.setProperty("display", "none"));
@@ -1221,30 +1215,30 @@ const ts = class ts extends HTMLElement {
1221
1215
  }, "#switchSheet"));
1222
1216
  }
1223
1217
  connectedCallback() {
1224
- t(this, ce).call(this);
1218
+ t(this, le).call(this);
1225
1219
  }
1226
1220
  };
1227
- ce = new WeakMap(), Ot = new WeakMap(), h(ts, "NineTableSheets");
1228
- let Ce = ts;
1229
- customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Ce);
1230
- var N, he, Wt, de;
1221
+ le = new WeakMap(), Dt = new WeakMap(), h(ts, "NineTableSheets");
1222
+ let Te = ts;
1223
+ customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Te);
1224
+ var N, ce, Ot, he;
1231
1225
  const es = class es {
1232
1226
  constructor(s) {
1233
1227
  d(this, N);
1234
- d(this, he, /* @__PURE__ */ h(() => {
1235
- t(this, de).call(this), new ResizeObserver((s) => {
1228
+ d(this, ce, /* @__PURE__ */ h(() => {
1229
+ t(this, he).call(this), new ResizeObserver((s) => {
1236
1230
  for (let e of s)
1237
- t(this, N).getAttribute("auto-height") === "true" && t(this, Wt).call(this);
1231
+ t(this, N).getAttribute("auto-height") === "true" && t(this, Ot).call(this);
1238
1232
  }).observe(t(this, N));
1239
1233
  }, "#init"));
1240
- d(this, Wt, /* @__PURE__ */ h(() => {
1234
+ d(this, Ot, /* @__PURE__ */ h(() => {
1241
1235
  var c, l;
1242
1236
  const s = Array.from(t(this, N).shadowRoot.querySelectorAll("nine-table-sheet.active"));
1243
1237
  if (s.length === 0) return;
1244
- 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 = Yt.SCROLLBAR_SIZE, a = e * n + r + o + i;
1238
+ 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;
1245
1239
  t(this, N).style.height = `${a}px`;
1246
1240
  }, "#applyAutoHeight"));
1247
- d(this, de, /* @__PURE__ */ h(() => {
1241
+ d(this, he, /* @__PURE__ */ h(() => {
1248
1242
  const e = Array.from(t(this, N).children).filter((c) => c.tagName === "TABLE"), n = t(this, N).getAttribute("auto-height") === "true", r = e.length, o = e.map((c, l) => {
1249
1243
  const u = `<nine-table-sheet class="${l === 0 ? "active" : ""}" data-index="${l}"></nine-table-sheet>`, b = l < r - 1 ? `<nine-splitter class="h" data-split-index="${l}"></nine-splitter>` : "";
1250
1244
  return u + b;
@@ -1373,22 +1367,22 @@ const es = class es {
1373
1367
  const a = t(this, N).shadowRoot.querySelectorAll("nine-table-sheet");
1374
1368
  a == null || a.forEach((c, l) => {
1375
1369
  e[l] && setTimeout(() => {
1376
- c.generate(e[l]), n && t(this, Wt).call(this);
1370
+ c.generate(e[l]), n && t(this, Ot).call(this);
1377
1371
  });
1378
1372
  });
1379
1373
  }, "#render"));
1380
- p(this, N, s), t(this, he).call(this);
1374
+ p(this, N, s), t(this, ce).call(this);
1381
1375
  }
1382
1376
  };
1383
- N = new WeakMap(), he = new WeakMap(), Wt = new WeakMap(), de = new WeakMap(), h(es, "LayoutManager");
1384
- let ke = es;
1385
- var zt, mt;
1377
+ N = new WeakMap(), ce = new WeakMap(), Ot = new WeakMap(), he = new WeakMap(), h(es, "LayoutManager");
1378
+ let Ce = es;
1379
+ var Wt, mt;
1386
1380
  const ss = class ss {
1387
1381
  constructor(s) {
1388
- d(this, zt);
1382
+ d(this, Wt);
1389
1383
  d(this, mt, -1);
1390
- q(this, "count", /* @__PURE__ */ h(() => t(this, zt).rawRecords.length, "count"));
1391
- p(this, zt, s);
1384
+ q(this, "count", /* @__PURE__ */ h(() => t(this, Wt).rawRecords.length, "count"));
1385
+ p(this, Wt, s);
1392
1386
  }
1393
1387
  get at() {
1394
1388
  return t(this, mt);
@@ -1398,25 +1392,25 @@ const ss = class ss {
1398
1392
  });
1399
1393
  }
1400
1394
  };
1401
- zt = new WeakMap(), mt = new WeakMap(), h(ss, "ngRow");
1402
- let Le = ss;
1403
- var O, L, W, xt, fe, Z, ue, dt, Bt, ge, be, wt;
1395
+ Wt = new WeakMap(), mt = new WeakMap(), h(ss, "ngRow");
1396
+ let ke = ss;
1397
+ var O, L, W, xt, de, Z, fe, dt, zt, ue, ge, wt;
1404
1398
  const z = class z {
1405
1399
  constructor(s, e) {
1406
1400
  d(this, O);
1407
1401
  d(this, L);
1408
1402
  d(this, W, []);
1409
1403
  d(this, xt, []);
1410
- d(this, fe, 0);
1404
+ d(this, de, 0);
1411
1405
  d(this, Z, []);
1412
- d(this, ue, /* @__PURE__ */ h(() => {
1406
+ d(this, fe, /* @__PURE__ */ h(() => {
1413
1407
  p(this, Z, []);
1414
1408
  const s = t(this, O).template || [];
1415
1409
  Array.from(s).forEach((e) => {
1416
1410
  var n;
1417
1411
  t(this, Z).push(((n = e.getBoundingClientRect) == null ? void 0 : n.call(e).height) || 24);
1418
1412
  }), (t(this, L).rawRecords || []).forEach((e) => {
1419
- e.__ng || (e.__ng = t(this, Bt).call(this)), e.__ng.height = t(this, Z).slice();
1413
+ e.__ng || (e.__ng = t(this, zt).call(this)), e.__ng.height = t(this, Z).slice();
1420
1414
  });
1421
1415
  }, "#initialize"));
1422
1416
  d(this, dt, /* @__PURE__ */ h(() => {
@@ -1441,7 +1435,7 @@ const z = class z {
1441
1435
  q(this, "set", /* @__PURE__ */ h((s) => {
1442
1436
  this.clear(), this.add(s, !1), t(this, dt).call(this);
1443
1437
  }, "set"));
1444
- d(this, Bt, /* @__PURE__ */ h(() => ({
1438
+ d(this, zt, /* @__PURE__ */ h(() => ({
1445
1439
  rowState: z.ROW_STATE.EMPTY,
1446
1440
  deleted: !1,
1447
1441
  filtered: !1,
@@ -1457,7 +1451,7 @@ const z = class z {
1457
1451
  var s;
1458
1452
  t(this, L).rawRecords = [], p(this, W, []), p(this, xt, []), (s = t(this, L).viewRecords) != null && s.reset && t(this, L).viewRecords.reset();
1459
1453
  }, "clear"));
1460
- d(this, ge, /* @__PURE__ */ h((s) => {
1454
+ d(this, ue, /* @__PURE__ */ h((s) => {
1461
1455
  var r;
1462
1456
  Array.isArray(s) || (s = [s]);
1463
1457
  const e = typeof ((r = t(this, O).fields) == null ? void 0 : r.get) == "function" ? t(this, O).fields.get() : Object.keys(s[0] || {}), n = [];
@@ -1468,13 +1462,13 @@ const z = class z {
1468
1462
  }), n.push(i);
1469
1463
  }), n;
1470
1464
  }, "#json2Array"));
1471
- d(this, be, /* @__PURE__ */ h((s) => (Array.isArray(s) || (s = [s]), s.forEach((e) => {
1472
- e.__ng = t(this, Bt).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = z.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1465
+ d(this, ge, /* @__PURE__ */ h((s) => (Array.isArray(s) || (s = [s]), s.forEach((e) => {
1466
+ e.__ng = t(this, zt).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = z.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1473
1467
  }), s), "#defaultInsert"));
1474
1468
  q(this, "add", /* @__PURE__ */ h((s, e = !0) => {
1475
1469
  s === void 0 && (s = {});
1476
- const n = t(this, ge).call(this, s);
1477
- t(this, L).rawRecords = t(this, L).rawRecords.concat(t(this, be).call(this, n)), this.resetRecords();
1470
+ const n = t(this, ue).call(this, s);
1471
+ t(this, L).rawRecords = t(this, L).rawRecords.concat(t(this, ge).call(this, n)), this.resetRecords();
1478
1472
  const r = this.count() - 1;
1479
1473
  return e || n.forEach((o, i) => {
1480
1474
  const a = t(this, L).rawRecords[r - i];
@@ -1522,7 +1516,7 @@ const z = class z {
1522
1516
  return e ? o[0] : o;
1523
1517
  }, "#conv"));
1524
1518
  q(this, "count", /* @__PURE__ */ h(() => this.getValidData().length, "count"));
1525
- p(this, O, s), p(this, L, e), t(this, ue).call(this);
1519
+ p(this, O, s), p(this, L, e), t(this, fe).call(this);
1526
1520
  }
1527
1521
  get source() {
1528
1522
  return t(this, wt).call(this, t(this, L).rawRecords);
@@ -1531,7 +1525,7 @@ const z = class z {
1531
1525
  this.clear(), this.add(s, !1);
1532
1526
  }
1533
1527
  get nextId() {
1534
- return ++gs(this, fe)._;
1528
+ return ++gs(this, de)._;
1535
1529
  }
1536
1530
  get count() {
1537
1531
  return t(this, W).length;
@@ -1543,7 +1537,7 @@ const z = class z {
1543
1537
  return this.length;
1544
1538
  }
1545
1539
  };
1546
- O = new WeakMap(), L = new WeakMap(), W = new WeakMap(), xt = new WeakMap(), fe = new WeakMap(), Z = new WeakMap(), ue = new WeakMap(), dt = new WeakMap(), Bt = new WeakMap(), ge = new WeakMap(), be = new WeakMap(), wt = new WeakMap(), h(z, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1540
+ O = new WeakMap(), L = new WeakMap(), W = 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(z, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1547
1541
  q(z, "ROW_STATE", {
1548
1542
  EMPTY: "EMPTY",
1549
1543
  NORMAL: "NORMAL",
@@ -1551,12 +1545,12 @@ q(z, "ROW_STATE", {
1551
1545
  UPDATE: "UPDATE",
1552
1546
  DELETE: "DELETE"
1553
1547
  });
1554
- let Ie = z;
1548
+ let Le = z;
1555
1549
  var ft;
1556
1550
  const ns = class ns {
1557
1551
  constructor(s) {
1558
1552
  d(this, ft);
1559
- p(this, ft, s), this.row = new Le(this), this.data = new Ie(t(this, ft), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1553
+ p(this, ft, s), this.row = new ke(this), this.data = new Le(t(this, ft), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1560
1554
  var e;
1561
1555
  (e = t(this, ft).view) != null && e.redraw && t(this, ft).view.redraw();
1562
1556
  }, this.setDataSource = (e) => {
@@ -1574,8 +1568,8 @@ const ns = class ns {
1574
1568
  }
1575
1569
  };
1576
1570
  ft = new WeakMap(), h(ns, "ngDataManager");
1577
- let He = ns;
1578
- var vt, M, Pt, pe;
1571
+ let Ie = ns;
1572
+ var vt, M, Bt, be;
1579
1573
  const rs = class rs {
1580
1574
  // 🎯 이제 { name: string, type: string } κ°μ²΄λ“€μ˜ λ°°μ—΄λ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.
1581
1575
  constructor(s) {
@@ -1584,15 +1578,15 @@ const rs = class rs {
1584
1578
  q(this, "add", /* @__PURE__ */ h((s, e = "string") => {
1585
1579
  s.forEach((n) => {
1586
1580
  t(this, M).some((r) => r.name === n) || t(this, M).push({ name: n, type: e });
1587
- }), t(this, Pt).call(this);
1581
+ }), t(this, Bt).call(this);
1588
1582
  }, "add"));
1589
- d(this, Pt, /* @__PURE__ */ h(() => {
1583
+ d(this, Bt, /* @__PURE__ */ h(() => {
1590
1584
  const s = /* @__PURE__ */ new Map();
1591
1585
  t(this, M).forEach((e) => {
1592
1586
  s.set(e.name, e.type);
1593
1587
  }), p(this, M, Array.from(s, ([e, n]) => ({ name: e, type: n }))), p(this, M, t(this, M).filter((e) => e.name !== "" && e.name !== "__ng")), t(this, M).sort((e, n) => e.name.length < n.name.length ? 1 : -1);
1594
1588
  }, "#adjust"));
1595
- d(this, pe, /* @__PURE__ */ h(() => {
1589
+ d(this, be, /* @__PURE__ */ h(() => {
1596
1590
  p(this, M, []), S.log(t(this, vt).querySelectorAll("table"));
1597
1591
  const s = Array.from(t(this, vt).querySelectorAll("table"));
1598
1592
  if (!(!s || s.length === 0)) {
@@ -1621,10 +1615,10 @@ const rs = class rs {
1621
1615
  });
1622
1616
  });
1623
1617
  });
1624
- t(this, Pt).call(this);
1618
+ t(this, Bt).call(this);
1625
1619
  }
1626
1620
  }, "#init"));
1627
- p(this, vt, s), t(this, pe).call(this);
1621
+ p(this, vt, s), t(this, be).call(this);
1628
1622
  }
1629
1623
  // 🎯 기쑴에 ν•„λ“œ μ΄λ¦„λ§Œ μ“°λ˜ κ³³λ“€κ³Όμ˜ ν˜Έν™˜μ„ μœ„ν•΄ 이름 λ°°μ—΄λ§Œ λ¦¬ν„΄ν•˜λŠ” λ©”μ„œλ“œ μœ μ§€
1630
1624
  get() {
@@ -1646,22 +1640,22 @@ const rs = class rs {
1646
1640
  return t(this, M).some((e) => e.name === s);
1647
1641
  }
1648
1642
  };
1649
- vt = new WeakMap(), M = new WeakMap(), Pt = new WeakMap(), pe = new WeakMap(), h(rs, "ngFields");
1650
- let $e = rs;
1651
- var ut, ye, me;
1643
+ vt = new WeakMap(), M = new WeakMap(), Bt = new WeakMap(), be = new WeakMap(), h(rs, "ngFields");
1644
+ let He = rs;
1645
+ var ut, pe, ye;
1652
1646
  const os = class os extends HTMLElement {
1653
1647
  constructor() {
1654
1648
  super();
1655
1649
  //#created = false;
1656
1650
  d(this, ut);
1657
- d(this, ye);
1658
- d(this, me, /* @__PURE__ */ h(() => {
1659
- this.fields = new $e(this), p(this, ye, new ke(this)), S.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1651
+ d(this, pe);
1652
+ d(this, ye, /* @__PURE__ */ h(() => {
1653
+ this.fields = new He(this), p(this, pe, new Ce(this)), S.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1660
1654
  }, "#init"));
1661
- this.attachShadow({ mode: "open" }), p(this, ut, new He(this));
1655
+ this.attachShadow({ mode: "open" }), p(this, ut, new Ie(this));
1662
1656
  }
1663
1657
  connectedCallback() {
1664
- t(this, me).call(this);
1658
+ t(this, ye).call(this);
1665
1659
  }
1666
1660
  disconnectedCallback() {
1667
1661
  S.log("NineTable disconnected.");
@@ -1679,9 +1673,9 @@ const os = class os extends HTMLElement {
1679
1673
  return t(this, ut);
1680
1674
  }
1681
1675
  };
1682
- ut = new WeakMap(), ye = new WeakMap(), me = new WeakMap(), h(os, "NineTable");
1683
- let Me = os;
1684
- customElements.get("nine-table") || customElements.define("nine-table", Me);
1676
+ ut = new WeakMap(), pe = new WeakMap(), ye = new WeakMap(), h(os, "NineTable");
1677
+ let $e = os;
1678
+ customElements.get("nine-table") || customElements.define("nine-table", $e);
1685
1679
  const qt = class qt extends HTMLElement {
1686
1680
  // πŸ‘ˆ μ»€μŠ€ν…€ μŠ€νƒ€μΌμš© μΊμ‹œ μΆ”κ°€
1687
1681
  constructor() {
@@ -1694,13 +1688,13 @@ const qt = class qt extends HTMLElement {
1694
1688
  }
1695
1689
  };
1696
1690
  h(qt, "BasicCellElement"), q(qt, "_styleCache", /* @__PURE__ */ new Map()), q(qt, "_customStyleCache", /* @__PURE__ */ new Map());
1697
- let _e = qt;
1698
- var I, Ft, x, Pe, Fe, je, Ye, Ve;
1699
- const is = class is extends _e {
1691
+ let Me = qt;
1692
+ var I, Pt, x, Pe, Fe, je, Ye, Ve;
1693
+ const is = class is extends Me {
1700
1694
  constructor() {
1701
1695
  super();
1702
1696
  d(this, I);
1703
- d(this, Ft);
1697
+ d(this, Pt);
1704
1698
  d(this, x);
1705
1699
  d(this, Pe);
1706
1700
  d(this, Fe);
@@ -1769,7 +1763,7 @@ const is = class is extends _e {
1769
1763
  }, "getExprValue"));
1770
1764
  }
1771
1765
  connectedCallback() {
1772
- super.connectedCallback(), p(this, I, this.getRootNode().host), p(this, x, this.closest("th,td")), p(this, Ft, t(this, x).closest("tr"));
1766
+ super.connectedCallback(), p(this, I, this.getRootNode().host), p(this, x, this.closest("th,td")), p(this, Pt, t(this, x).closest("tr"));
1773
1767
  }
1774
1768
  get value() {
1775
1769
  var e = !t(this, I) || !t(this, I).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];
@@ -1788,12 +1782,12 @@ const is = class is extends _e {
1788
1782
  }
1789
1783
  refresh() {
1790
1784
  const e = t(this, x).dataset.bind;
1791
- return parseInt(t(this, x).dataset.row), t(this, Ft).data[e];
1785
+ return parseInt(t(this, x).dataset.row), t(this, Pt).data[e];
1792
1786
  }
1793
1787
  };
1794
- I = new WeakMap(), Ft = new WeakMap(), x = new WeakMap(), Pe = new WeakMap(), Fe = new WeakMap(), je = new WeakMap(), Ye = new WeakMap(), Ve = new WeakMap(), h(is, "CellElement");
1795
- let Ne = is;
1796
- const as = class as extends Ne {
1788
+ I = new WeakMap(), Pt = new WeakMap(), x = new WeakMap(), Pe = new WeakMap(), Fe = new WeakMap(), je = new WeakMap(), Ye = new WeakMap(), Ve = new WeakMap(), h(is, "CellElement");
1789
+ let _e = is;
1790
+ const as = class as extends _e {
1797
1791
  constructor() {
1798
1792
  super();
1799
1793
  }
@@ -1805,20 +1799,20 @@ const as = class as extends Ne {
1805
1799
  }
1806
1800
  };
1807
1801
  h(as, "EditableCellElement");
1808
- let De = as;
1809
- var jt, gt, St, Rt, xe, J, Ue;
1810
- const ls = class ls extends De {
1802
+ let Ne = as;
1803
+ var Ft, gt, St, Rt, me, J, Ue;
1804
+ const ls = class ls extends Ne {
1811
1805
  constructor() {
1812
1806
  super();
1813
- d(this, jt);
1807
+ d(this, Ft);
1814
1808
  d(this, gt);
1815
1809
  d(this, St);
1816
1810
  d(this, Rt);
1817
- d(this, xe);
1811
+ d(this, me);
1818
1812
  d(this, J);
1819
1813
  q(this, "refresh", /* @__PURE__ */ h(() => {
1820
1814
  const e = super.refresh();
1821
- t(this, jt).value = e;
1815
+ t(this, Ft).value = e;
1822
1816
  }, "refresh"));
1823
1817
  /**
1824
1818
  dataRefresh = (v) => {
@@ -1865,7 +1859,7 @@ const ls = class ls extends De {
1865
1859
  t(this, St) && ninegrid.getByteLength(e.target.value) >= Number(t(this, St)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
1866
1860
  }
1867
1861
  }, "#onKeyDown"));
1868
- if (this.applyBaseStyle(), p(this, gt, this.getAttribute("type") || "text"), p(this, St, this.getAttribute("maxbyte")), p(this, Rt, this.getAttribute("min")), p(this, xe, this.getAttribute("max")), p(this, J, this.getAttribute("scale")), !["text", "number"].includes(t(this, gt))) throw `invalid type : ${t(this, gt)}`;
1862
+ if (this.applyBaseStyle(), p(this, gt, this.getAttribute("type") || "text"), p(this, St, this.getAttribute("maxbyte")), p(this, Rt, this.getAttribute("min")), p(this, me, this.getAttribute("max")), p(this, J, this.getAttribute("scale")), !["text", "number"].includes(t(this, gt))) throw `invalid type : ${t(this, gt)}`;
1869
1863
  }
1870
1864
  connectedCallback() {
1871
1865
  for (var e = [], n = 0; n < this.attributes.length; n++)
@@ -1875,11 +1869,11 @@ const ls = class ls extends De {
1875
1869
  ${e.join(" ")}
1876
1870
  ondragstart="return false;"
1877
1871
  >
1878
- `, super.connectedCallback(), p(this, jt, this.querySelector("input"));
1872
+ `, super.connectedCallback(), p(this, Ft, this.querySelector("input"));
1879
1873
  }
1880
1874
  };
1881
- jt = new WeakMap(), gt = new WeakMap(), St = new WeakMap(), Rt = new WeakMap(), xe = new WeakMap(), J = new WeakMap(), Ue = new WeakMap(), h(ls, "CellInputText");
1882
- let Oe = ls;
1875
+ Ft = new WeakMap(), gt = new WeakMap(), St = new WeakMap(), Rt = new WeakMap(), me = new WeakMap(), J = new WeakMap(), Ue = new WeakMap(), h(ls, "CellInputText");
1876
+ let De = ls;
1883
1877
  customElements.get("cell-input-text");
1884
- customElements.get("cell-input") || customElements.define("cell-input", Oe);
1878
+ customElements.get("cell-input") || customElements.define("cell-input", De);
1885
1879
  //# sourceMappingURL=nine-table.js.map