@ninebone/table 0.0.585 β†’ 0.0.586

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.
@@ -201,19 +201,19 @@ const Me = class Me extends HTMLElement {
201
201
  z = new WeakMap(), j = new WeakMap(), w = new WeakMap(), X = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), It = new WeakMap(), G = new WeakMap(), _t = new WeakMap(), h(Me, "NineTableHScrollBar");
202
202
  let ae = Me;
203
203
  customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ae);
204
- var F, at, J, q, xt, vt, Nt;
204
+ var F, ot, J, q, mt, xt, Nt;
205
205
  const $e = class $e extends HTMLElement {
206
206
  constructor() {
207
207
  super();
208
208
  d(this, F);
209
- d(this, at);
209
+ d(this, ot);
210
210
  d(this, J, !1);
211
211
  d(this, q);
212
+ d(this, mt, 0);
212
213
  d(this, xt, 0);
213
- d(this, vt, 0);
214
214
  A(this, "refresh", /* @__PURE__ */ h(() => {
215
215
  if (!t(this, F) || !t(this, q)) return;
216
- const e = t(this, q).container, s = t(this, q).track, i = t(this, q).thumb, n = e.clientHeight, a = (t(this, F).data.get() || []).length, c = t(this, at).getRowHeight(), l = a * c;
216
+ const e = t(this, q).container, s = t(this, q).track, i = t(this, q).thumb, n = e.clientHeight, a = (t(this, F).data.get() || []).length, c = t(this, ot).getRowHeight(), l = a * c;
217
217
  if (l <= n) {
218
218
  i.style.display = "none", t(this, q).top.disabled = !0, t(this, q).bottom.disabled = !0;
219
219
  return;
@@ -232,20 +232,20 @@ const $e = class $e extends HTMLElement {
232
232
  d(this, Nt, /* @__PURE__ */ h(() => {
233
233
  W.log("nine-table-vscrollbar.#init");
234
234
  const e = t(this, q).container, s = /* @__PURE__ */ h(() => {
235
- const n = (t(this, F).data.get() || []).length, o = t(this, at).getRowHeight();
235
+ const n = (t(this, F).data.get() || []).length, o = t(this, ot).getRowHeight();
236
236
  return n * o;
237
237
  }, "getContentHeight");
238
238
  e.addEventListener("scroll", () => {
239
239
  t(this, J) || this.refresh();
240
240
  }), t(this, q).thumb.addEventListener("mousedown", (i) => {
241
241
  if (i.button !== 0) return;
242
- i.stopPropagation(), i.preventDefault(), p(this, J, !0), p(this, xt, i.clientY), p(this, vt, e.scrollTop);
242
+ i.stopPropagation(), i.preventDefault(), p(this, J, !0), p(this, mt, i.clientY), p(this, xt, e.scrollTop);
243
243
  const n = /* @__PURE__ */ h((a) => {
244
244
  if (!t(this, J)) return;
245
- const c = t(this, q).track.getBoundingClientRect(), l = t(this, q).thumb.clientHeight, u = c.height - l, g = a.clientY - t(this, xt), b = e.clientHeight, m = s(), v = Math.max(m - b, 1);
245
+ const c = t(this, q).track.getBoundingClientRect(), l = t(this, q).thumb.clientHeight, u = c.height - l, g = a.clientY - t(this, mt), b = e.clientHeight, m = s(), v = Math.max(m - b, 1);
246
246
  if (u > 0 && v > 0) {
247
247
  const E = g / u * v;
248
- let x = t(this, vt) + E;
248
+ let x = t(this, xt) + E;
249
249
  const M = Math.max(0, m - b);
250
250
  x < 0 && (x = 0), x > M && (x = M), e.scrollTop = x;
251
251
  }
@@ -270,7 +270,7 @@ const $e = class $e extends HTMLElement {
270
270
  }, "#init"));
271
271
  }
272
272
  connectedCallback() {
273
- p(this, F, this.getRootNode().host), p(this, at, this.closest("nine-table-sheet")), this.innerHTML = `
273
+ p(this, F, this.getRootNode().host), p(this, ot, this.closest("nine-table-sheet")), this.innerHTML = `
274
274
  <style>
275
275
  nine-table-vscrollbar {
276
276
  display: flex;
@@ -351,10 +351,10 @@ const $e = class $e extends HTMLElement {
351
351
  e();
352
352
  }
353
353
  };
354
- F = new WeakMap(), at = new WeakMap(), J = new WeakMap(), q = new WeakMap(), xt = new WeakMap(), vt = new WeakMap(), Nt = new WeakMap(), h($e, "NineTableVScrollBar");
354
+ F = new WeakMap(), ot = new WeakMap(), J = new WeakMap(), q = new WeakMap(), mt = new WeakMap(), xt = new WeakMap(), Nt = new WeakMap(), h($e, "NineTableVScrollBar");
355
355
  let le = $e;
356
356
  customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", le);
357
- var D, S, Q, P, I, V, tt, wt, Se, Ee, Wt, Ot, Bt, St, Et, zt, Pt, At, Ae, lt, Rt, Dt;
357
+ var D, S, Q, P, I, V, tt, vt, Se, Ee, Wt, Ot, Bt, wt, St, zt, Pt, Et, Ae, at, At, Dt;
358
358
  const Ie = class Ie {
359
359
  constructor(r) {
360
360
  d(this, D);
@@ -364,7 +364,7 @@ const Ie = class Ie {
364
364
  d(this, I, null);
365
365
  d(this, V, null);
366
366
  d(this, tt, 0);
367
- d(this, wt, 40);
367
+ d(this, vt, 40);
368
368
  d(this, Se, !1);
369
369
  d(this, Ee, !1);
370
370
  //#ticking = false; // 🎯 고속 슀크둀 μŠ€λ‘œν‹€λ§μš© ν”Œλž˜κ·Έ
@@ -373,7 +373,7 @@ const Ie = class Ie {
373
373
  var e;
374
374
  W.log("rowManager.refresh");
375
375
  const r = t(this, S).querySelector(".ng-container-body .ng-part-body");
376
- r && (t(this, St).call(this), t(this, lt).call(this, r.scrollTop), (e = t(this, S).querySelector("nine-table-vscrollbar")) == null || e.refresh());
376
+ r && (t(this, wt).call(this), t(this, at).call(this, r.scrollTop), (e = t(this, S).querySelector("nine-table-vscrollbar")) == null || e.refresh());
377
377
  }, "refresh"));
378
378
  A(this, "initialize", /* @__PURE__ */ h(() => {
379
379
  W.log("rowManager.initialize"), p(this, Q, {
@@ -391,13 +391,13 @@ const Ie = class Ie {
391
391
  });
392
392
  const r = t(this, S).querySelector(".ng-container-body .ng-part-body"), e = t(this, S).querySelector(".ng-container-left .ng-part-body"), s = t(this, S).querySelector(".ng-container-right .ng-part-body"), i = t(this, S).querySelector(".ng-container-body .ng-part-header"), n = t(this, S).querySelector(".ng-container-body .ng-part-footer");
393
393
  if (r) {
394
- t(this, Bt).call(this, r), t(this, At).call(this), t(this, St).call(this), t(this, lt).call(this, r.scrollTop);
394
+ t(this, Bt).call(this, r), t(this, Et).call(this), t(this, wt).call(this), t(this, at).call(this, r.scrollTop);
395
395
  let o = !1;
396
396
  const a = /* @__PURE__ */ h((c) => {
397
397
  if (o) return;
398
398
  o = !0;
399
399
  const l = c.scrollTop, f = c.scrollLeft;
400
- r && r.scrollTop !== l && (r.scrollTop = l), e && e.scrollTop !== l && (e.scrollTop = l), s && s.scrollTop !== l && (s.scrollTop = l), i && i.scrollLeft !== f && (i.scrollLeft = f), n && n.scrollLeft !== f && (n.scrollLeft = f), t(this, lt).call(this, l), o = !1;
400
+ r && r.scrollTop !== l && (r.scrollTop = l), e && e.scrollTop !== l && (e.scrollTop = l), s && s.scrollTop !== l && (s.scrollTop = l), i && i.scrollLeft !== f && (i.scrollLeft = f), n && n.scrollLeft !== f && (n.scrollLeft = f), t(this, at).call(this, l), o = !1;
401
401
  }, "handleContainerScroll");
402
402
  [r, e, s].forEach((c) => {
403
403
  c && c.addEventListener("scroll", () => {
@@ -414,7 +414,7 @@ const Ie = class Ie {
414
414
  if (!i) return;
415
415
  i.querySelectorAll("tr:not(.nodata)").forEach((a) => a.remove());
416
416
  const n = i.querySelector("tr.nodata"), o = document.createDocumentFragment();
417
- for (let a = 0; a < t(this, wt); a++)
417
+ for (let a = 0; a < t(this, vt); a++)
418
418
  s.forEach((c) => {
419
419
  o.appendChild(c.cloneNode(!0));
420
420
  });
@@ -439,9 +439,9 @@ const Ie = class Ie {
439
439
  const u = s.querySelectorAll("tr:not(.nodata)");
440
440
  return u.forEach((g) => {
441
441
  f += g.offsetHeight || g.getBoundingClientRect().height;
442
- }), u.forEach((g) => g.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, p(this, I, f > 0 ? f : 24), t(this, Et).call(this), t(this, I);
442
+ }), u.forEach((g) => g.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, p(this, I, f > 0 ? f : 24), t(this, St).call(this), t(this, I);
443
443
  }, "#measureAndCacheHeight"));
444
- d(this, St, /* @__PURE__ */ h(() => {
444
+ d(this, wt, /* @__PURE__ */ h(() => {
445
445
  W.log("rowManager.#updateVirtualScrollHeight");
446
446
  const e = (t(this, D).data.get() || []).length, s = t(this, I), i = e * s;
447
447
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((n) => {
@@ -451,10 +451,10 @@ const Ie = class Ie {
451
451
  a && (a.style.height = `${i}px`);
452
452
  });
453
453
  }, "#updateVirtualScrollHeight"));
454
- d(this, Et, /* @__PURE__ */ h(() => {
454
+ d(this, St, /* @__PURE__ */ h(() => {
455
455
  if (t(this, tt) > 0 && t(this, I) > 0) {
456
456
  const r = Math.ceil(t(this, tt) / t(this, I));
457
- p(this, wt, r + t(this, Wt));
457
+ p(this, vt, r + t(this, Wt));
458
458
  }
459
459
  }, "#updateRowCount"));
460
460
  d(this, zt, /* @__PURE__ */ h(() => {
@@ -495,12 +495,12 @@ const Ie = class Ie {
495
495
  const o = s.querySelector(".ng-part-header"), a = s.querySelector(".ng-part-footer");
496
496
  o && (n += o.offsetHeight), a && (n += a.offsetHeight);
497
497
  const c = Math.max(i - n, 100);
498
- t(this, tt) !== c && (p(this, tt, c), t(this, Et).call(this), t(this, I) !== null && (t(this, At).call(this), this.refresh()));
498
+ t(this, tt) !== c && (p(this, tt, c), t(this, St).call(this), t(this, I) !== null && (t(this, Et).call(this), this.refresh()));
499
499
  }
500
500
  }
501
501
  })), t(this, V).observe(t(this, S)));
502
502
  }, "#initResizeObserver"));
503
- d(this, At, /* @__PURE__ */ h(() => {
503
+ d(this, Et, /* @__PURE__ */ h(() => {
504
504
  W.log("rowManager.#renderAllContainers"), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((r) => {
505
505
  const e = t(this, S).querySelector(r);
506
506
  e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Ot).call(this, e, r);
@@ -521,11 +521,11 @@ const Ie = class Ie {
521
521
  return;
522
522
  }
523
523
  const b = t(this, D).data.get(g);
524
- f.style.display = "", t(this, Rt).call(this, f, b, g);
524
+ f.style.display = "", t(this, At).call(this, f, b, g);
525
525
  });
526
526
  });
527
527
  }, "#adjustBufferRows"));
528
- d(this, lt, /* @__PURE__ */ h((r) => {
528
+ d(this, at, /* @__PURE__ */ h((r) => {
529
529
  var f, u;
530
530
  const e = t(this, I);
531
531
  if (!e || e <= 0) return;
@@ -546,7 +546,7 @@ const Ie = class Ie {
546
546
  return;
547
547
  }
548
548
  const T = t(this, D).data.get(M);
549
- E.style.display = "", t(this, Rt).call(this, E, T, M);
549
+ E.style.display = "", t(this, At).call(this, E, T, M);
550
550
  });
551
551
  });
552
552
  }, "#handleScroll"));
@@ -564,7 +564,7 @@ const Ie = class Ie {
564
564
  cell.dataset.row = dataIndex;
565
565
  });
566
566
  }; */
567
- d(this, Rt, /* @__PURE__ */ h((r, e, s) => {
567
+ d(this, At, /* @__PURE__ */ h((r, e, s) => {
568
568
  r.dataset.row = s, r.data = e, Array.from(r.cells).forEach((i, n) => {
569
569
  i.dataset.row = s;
570
570
  const o = Array.from(i.children).find((a) => a.tagName.toLowerCase().startsWith("cell-") || typeof a.refresh == "function");
@@ -599,7 +599,7 @@ const Ie = class Ie {
599
599
  return ((e = t(this, P).get(r)) == null ? void 0 : e.length) || 1;
600
600
  }
601
601
  };
602
- D = new WeakMap(), S = new WeakMap(), Q = new WeakMap(), P = new WeakMap(), I = new WeakMap(), V = new WeakMap(), tt = new WeakMap(), wt = new WeakMap(), Se = new WeakMap(), Ee = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), zt = new WeakMap(), Pt = new WeakMap(), At = new WeakMap(), Ae = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Dt = new WeakMap(), h(Ie, "RowManager");
602
+ D = new WeakMap(), S = new WeakMap(), Q = new WeakMap(), P = new WeakMap(), I = new WeakMap(), V = new WeakMap(), tt = new WeakMap(), vt = new WeakMap(), Se = new WeakMap(), Ee = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), wt = new WeakMap(), St = new WeakMap(), zt = new WeakMap(), Pt = new WeakMap(), Et = new WeakMap(), Ae = new WeakMap(), at = new WeakMap(), At = new WeakMap(), Dt = new WeakMap(), h(Ie, "RowManager");
603
603
  let ce = Ie;
604
604
  const jt = class jt {
605
605
  /**
@@ -655,8 +655,8 @@ const jt = class jt {
655
655
  }
656
656
  const M = x.rowSpan || 1, T = x.colSpan || 1;
657
657
  for (let B = 0; B < M; B++)
658
- for (let pt = 0; pt < T; pt++)
659
- v + B < u && E + pt < g && (b[v + B][E + pt] = B === 0 && pt === 0 ? "1" : "0");
658
+ for (let bt = 0; bt < T; bt++)
659
+ v + B < u && E + bt < g && (b[v + B][E + bt] = B === 0 && bt === 0 ? "1" : "0");
660
660
  });
661
661
  }), l.forEach((m) => {
662
662
  const v = m.sectionRowIndex;
@@ -680,15 +680,15 @@ const jt = class jt {
680
680
  };
681
681
  h(jt, "TableCompiler");
682
682
  let he = jt;
683
- var Ft, et, st, Vt, Yt, ct, Ut, Xt;
684
- const yt = class yt extends HTMLElement {
683
+ var Ft, lt, et, Vt, Yt, Rt, Ut, Xt;
684
+ const pt = class pt extends HTMLElement {
685
685
  constructor() {
686
686
  super();
687
687
  d(this, Ft);
688
- d(this, et, null);
689
- d(this, st);
688
+ d(this, lt, null);
689
+ d(this, et);
690
690
  A(this, "invalidate", /* @__PURE__ */ h(() => {
691
- t(this, st).refresh();
691
+ t(this, et).refresh();
692
692
  }, "invalidate"));
693
693
  d(this, Vt, /* @__PURE__ */ h(() => {
694
694
  [
@@ -698,17 +698,14 @@ const yt = class yt extends HTMLElement {
698
698
  ].forEach(({ selector: s, type: i }) => {
699
699
  const n = this.querySelector(s);
700
700
  if (!n) return;
701
- n.innerHTML = "";
702
- const o = document.createElement("div");
703
- o.className = "ng-part-header", o.appendChild(t(this, ct).call(this, t(this, et), i, "header"));
704
- const a = document.createElement("div");
701
+ const o = n.querySelector(".ng-part-header"), a = document.createElement("div");
705
702
  a.className = "ng-part-body";
706
703
  const c = document.createElement("div");
707
- c.className = "ng-scroll-content", c.style.position = "relative", c.style.width = "100%", c.appendChild(t(this, ct).call(this, t(this, et), i, "body"));
704
+ c.className = "ng-scroll-content", c.style.position = "relative", c.style.width = "100%", c.appendChild(t(this, Rt).call(this, t(this, lt), i, "body"));
708
705
  const l = document.createElement("div");
709
706
  l.className = "ng-virtual-spacer", l.style.width = "100%", l.style.pointerEvents = "none", c.appendChild(l), a.appendChild(c);
710
707
  const f = document.createElement("div");
711
- f.className = "ng-part-footer", f.appendChild(t(this, ct).call(this, t(this, et), i, "footer")), n.appendChild(o), n.appendChild(a), n.appendChild(f);
708
+ f.className = "ng-part-footer", f.appendChild(t(this, Rt).call(this, t(this, lt), i, "footer")), n.appendChild(o), n.appendChild(a), n.appendChild(f);
712
709
  });
713
710
  }, "#renderSplitContainers"));
714
711
  d(this, Yt, /* @__PURE__ */ h(() => {
@@ -723,12 +720,12 @@ const yt = class yt extends HTMLElement {
723
720
  });
724
721
  }, "#updateContainerWidths"));
725
722
  A(this, "generate", /* @__PURE__ */ h((e) => {
726
- e && (p(this, et, he.compile(e)), t(this, Vt).call(this), t(this, Yt).call(this), t(this, st).initialize(), setTimeout(() => {
723
+ e && (p(this, lt, he.compile(e)), t(this, Vt).call(this), t(this, Yt).call(this), t(this, et).initialize(), setTimeout(() => {
727
724
  var s;
728
725
  (s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
729
726
  }, 0));
730
727
  }, "generate"));
731
- d(this, ct, /* @__PURE__ */ h((e, s, i) => {
728
+ d(this, Rt, /* @__PURE__ */ h((e, s, i) => {
732
729
  const n = e.cloneNode(!0), o = n.querySelector("thead"), a = n.querySelector("tbody"), c = n.querySelector("tfoot");
733
730
  if (i === "header") {
734
731
  if (a && a.remove(), c && c.remove(), e.querySelector("tbody")) {
@@ -744,7 +741,7 @@ const yt = class yt extends HTMLElement {
744
741
  l.remove();
745
742
  }), n;
746
743
  }, "#createSplitTable"));
747
- A(this, "getRowHeight", /* @__PURE__ */ h(() => t(this, st).getRowHeight(), "getRowHeight"));
744
+ A(this, "getRowHeight", /* @__PURE__ */ h(() => t(this, et).getRowHeight(), "getRowHeight"));
748
745
  A(this, "scrollToX", /* @__PURE__ */ h((e) => {
749
746
  const s = this.querySelector(".ng-container-body .ng-part-body");
750
747
  s && (s.scrollLeft = e);
@@ -757,7 +754,7 @@ const yt = class yt extends HTMLElement {
757
754
  t(this, Xt).call(this);
758
755
  }, "#init"));
759
756
  d(this, Xt, /* @__PURE__ */ h(() => {
760
- const e = yt.SCROLLBAR_SIZE;
757
+ const e = pt.SCROLLBAR_SIZE;
761
758
  this.innerHTML = `
762
759
  <style>
763
760
  nine-table-sheet {
@@ -895,9 +892,18 @@ const yt = class yt extends HTMLElement {
895
892
  </style>
896
893
 
897
894
  <div class='ng-container-top'>
898
- <div class='ng-container-left'></div>
899
- <div class='ng-container-body'></div>
900
- <div class='ng-container-right'></div>
895
+ <div class='ng-container-left'>
896
+ <div class="ng-part-header">
897
+ </div>
898
+ </div>
899
+ <div class='ng-container-body'>
900
+ <div class="ng-part-header">
901
+ </div>
902
+ </div>
903
+ <div class='ng-container-right'>
904
+ <div class="ng-part-header">
905
+ </div>
906
+ </div>
901
907
  <nine-table-vscrollbar></nine-table-vscrollbar>
902
908
  </div>
903
909
  <div class='ng-container-bottom'>
@@ -906,7 +912,7 @@ const yt = class yt extends HTMLElement {
906
912
  </div>
907
913
  `;
908
914
  }, "#render"));
909
- p(this, st, new ce(this)), p(this, Ft, this.getRootNode().host);
915
+ p(this, et, new ce(this)), p(this, Ft, this.getRootNode().host);
910
916
  }
911
917
  connectedCallback() {
912
918
  t(this, Ut).call(this);
@@ -915,8 +921,8 @@ const yt = class yt extends HTMLElement {
915
921
  this.innerHTML = "", W.log("NineTableSheet destroyed.");
916
922
  }
917
923
  };
918
- Ft = new WeakMap(), et = new WeakMap(), st = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), ct = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), h(yt, "NineTableSheet"), A(yt, "SCROLLBAR_SIZE", 16);
919
- let $t = yt;
924
+ Ft = new WeakMap(), lt = new WeakMap(), et = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), Rt = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), h(pt, "NineTableSheet"), A(pt, "SCROLLBAR_SIZE", 16);
925
+ let $t = pt;
920
926
  customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", $t);
921
927
  var Kt, qt;
922
928
  const _e = class _e extends HTMLElement {
@@ -1111,31 +1117,31 @@ const Ne = class Ne {
1111
1117
  };
1112
1118
  H = new WeakMap(), Zt = new WeakMap(), Tt = new WeakMap(), Gt = new WeakMap(), h(Ne, "LayoutManager");
1113
1119
  let fe = Ne;
1114
- var kt, ht;
1120
+ var kt, ct;
1115
1121
  const We = class We {
1116
1122
  constructor(r) {
1117
1123
  d(this, kt);
1118
- d(this, ht, -1);
1124
+ d(this, ct, -1);
1119
1125
  A(this, "count", /* @__PURE__ */ h(() => t(this, kt).rawRecords.length, "count"));
1120
1126
  p(this, kt, r);
1121
1127
  }
1122
1128
  get at() {
1123
- return t(this, ht);
1129
+ return t(this, ct);
1124
1130
  }
1125
1131
  set at(r) {
1126
- p(this, ht, parseInt(r, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, ht)}"]`) && setTimeout(() => {
1132
+ p(this, ct, parseInt(r, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, ct)}"]`) && setTimeout(() => {
1127
1133
  });
1128
1134
  }
1129
1135
  };
1130
- kt = new WeakMap(), ht = new WeakMap(), h(We, "ngRow");
1136
+ kt = new WeakMap(), ct = new WeakMap(), h(We, "ngRow");
1131
1137
  let ue = We;
1132
- var _, k, N, dt, Jt, Y, Qt, rt, Ct, te, ee, ft;
1138
+ var _, k, N, ht, Jt, Y, Qt, st, Ct, te, ee, dt;
1133
1139
  const O = class O {
1134
1140
  constructor(r, e) {
1135
1141
  d(this, _);
1136
1142
  d(this, k);
1137
1143
  d(this, N, []);
1138
- d(this, dt, []);
1144
+ d(this, ht, []);
1139
1145
  d(this, Jt, 0);
1140
1146
  d(this, Y, []);
1141
1147
  d(this, Qt, /* @__PURE__ */ h(() => {
@@ -1148,7 +1154,7 @@ const O = class O {
1148
1154
  e.__ng || (e.__ng = t(this, Ct).call(this)), e.__ng.height = t(this, Y).slice();
1149
1155
  });
1150
1156
  }, "#initialize"));
1151
- d(this, rt, /* @__PURE__ */ h(() => {
1157
+ d(this, st, /* @__PURE__ */ h(() => {
1152
1158
  t(this, _).shadowRoot.querySelectorAll("nine-table-sheet").forEach((r) => {
1153
1159
  r.invalidate();
1154
1160
  });
@@ -1157,17 +1163,17 @@ const O = class O {
1157
1163
  var n;
1158
1164
  const s = this.getValidData();
1159
1165
  if (!s || s.length <= 0) return;
1160
- if (r == null) return t(this, ft).call(this, s);
1166
+ if (r == null) return t(this, dt).call(this, s);
1161
1167
  if (r < 0 || r >= s.length) return null;
1162
1168
  const i = typeof ((n = t(this, _).fields) == null ? void 0 : n.get) == "function" ? t(this, _).fields.get() : [];
1163
1169
  if (e != null) {
1164
1170
  const o = i.indexOf(e);
1165
1171
  return o >= 0 ? s[r].v[o] : null;
1166
1172
  }
1167
- return t(this, ft).call(this, s[r]);
1173
+ return t(this, dt).call(this, s[r]);
1168
1174
  }, "get"));
1169
1175
  A(this, "set", /* @__PURE__ */ h((r) => {
1170
- this.clear(), this.add(r, !1), t(this, rt).call(this);
1176
+ this.clear(), this.add(r, !1), t(this, st).call(this);
1171
1177
  }, "set"));
1172
1178
  d(this, Ct, /* @__PURE__ */ h(() => ({
1173
1179
  rowState: O.ROW_STATE.EMPTY,
@@ -1179,11 +1185,11 @@ const O = class O {
1179
1185
  _: [0, 0, 0, 0, O.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, Y).slice(), -1, {}, {}]
1180
1186
  }), "#getDefaultMeta"));
1181
1187
  A(this, "reset", /* @__PURE__ */ h(() => {
1182
- p(this, N, []), p(this, dt, []), t(this, rt).call(this);
1188
+ p(this, N, []), p(this, ht, []), t(this, st).call(this);
1183
1189
  }, "reset"));
1184
1190
  A(this, "clear", /* @__PURE__ */ h(() => {
1185
1191
  var r;
1186
- t(this, k).rawRecords = [], p(this, N, []), p(this, dt, []), (r = t(this, k).viewRecords) != null && r.reset && t(this, k).viewRecords.reset();
1192
+ t(this, k).rawRecords = [], p(this, N, []), p(this, ht, []), (r = t(this, k).viewRecords) != null && r.reset && t(this, k).viewRecords.reset();
1187
1193
  }, "clear"));
1188
1194
  d(this, te, /* @__PURE__ */ h((r) => {
1189
1195
  var i;
@@ -1207,7 +1213,7 @@ const O = class O {
1207
1213
  return e || s.forEach((n, o) => {
1208
1214
  const a = t(this, k).rawRecords[i - o];
1209
1215
  a && (a.__ng.rowState = O.ROW_STATE.EMPTY);
1210
- }), t(this, rt).call(this), i;
1216
+ }), t(this, st).call(this), i;
1211
1217
  }, "add"));
1212
1218
  A(this, "delete", /* @__PURE__ */ h((r) => {
1213
1219
  let e = [];
@@ -1218,7 +1224,7 @@ const O = class O {
1218
1224
  n.__ng.rowid === i && (n.__ng.deleted = !0, n.__ng.rowState = O.ROW_STATE.DELETE);
1219
1225
  });
1220
1226
  }
1221
- }), this.resetRecords(), t(this, rt).call(this);
1227
+ }), this.resetRecords(), t(this, st).call(this);
1222
1228
  }, "delete"));
1223
1229
  A(this, "setValue", /* @__PURE__ */ h((r, e, s) => {
1224
1230
  var c;
@@ -1231,14 +1237,14 @@ const O = class O {
1231
1237
  a !== s && o.__ng.rowState !== O.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(e) || (o.__ng.o[e] = a), o.__ng.rowState = O.ROW_STATE.UPDATE), o.v[n] = s;
1232
1238
  }, "setValue"));
1233
1239
  A(this, "resetRecords", /* @__PURE__ */ h(() => {
1234
- p(this, dt, t(this, k).rawRecords.filter((r) => !r.__ng.deleted)), p(this, N, t(this, k).rawRecords.filter((r) => !r.__ng.deleted && !r.__ng.filtered)), t(this, k).rawRecords.forEach((r, e) => {
1240
+ p(this, ht, t(this, k).rawRecords.filter((r) => !r.__ng.deleted)), p(this, N, t(this, k).rawRecords.filter((r) => !r.__ng.deleted && !r.__ng.filtered)), t(this, k).rawRecords.forEach((r, e) => {
1235
1241
  r.__ng.rowidx = e;
1236
1242
  }), t(this, N).forEach((r, e) => {
1237
1243
  r.__ng.i = e;
1238
1244
  });
1239
1245
  }, "resetRecords"));
1240
1246
  A(this, "getValidData", /* @__PURE__ */ h(() => (t(this, N).length === 0 && t(this, k).rawRecords.length > 0 && this.resetRecords(), t(this, N)), "getValidData"));
1241
- d(this, ft, /* @__PURE__ */ h((r) => {
1247
+ d(this, dt, /* @__PURE__ */ h((r) => {
1242
1248
  var o;
1243
1249
  if (!r) return r;
1244
1250
  const e = !Array.isArray(r), s = e ? [r] : r, i = typeof ((o = t(this, _).fields) == null ? void 0 : o.get) == "function" ? t(this, _).fields.get() : [], n = s.filter((a) => !a.__ng.deleted).map((a) => {
@@ -1253,7 +1259,7 @@ const O = class O {
1253
1259
  p(this, _, r), p(this, k, e), t(this, Qt).call(this);
1254
1260
  }
1255
1261
  get source() {
1256
- return t(this, ft).call(this, t(this, k).rawRecords);
1262
+ return t(this, dt).call(this, t(this, k).rawRecords);
1257
1263
  }
1258
1264
  set source(r) {
1259
1265
  this.clear(), this.add(r, !1);
@@ -1271,7 +1277,7 @@ const O = class O {
1271
1277
  return this.length;
1272
1278
  }
1273
1279
  };
1274
- _ = new WeakMap(), k = new WeakMap(), N = new WeakMap(), dt = new WeakMap(), Jt = new WeakMap(), Y = new WeakMap(), Qt = new WeakMap(), rt = new WeakMap(), Ct = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), ft = new WeakMap(), h(O, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1280
+ _ = new WeakMap(), k = new WeakMap(), N = new WeakMap(), ht = new WeakMap(), Jt = new WeakMap(), Y = new WeakMap(), Qt = new WeakMap(), st = new WeakMap(), Ct = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), dt = new WeakMap(), h(O, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1275
1281
  A(O, "ROW_STATE", {
1276
1282
  EMPTY: "EMPTY",
1277
1283
  NORMAL: "NORMAL",
@@ -1280,13 +1286,13 @@ A(O, "ROW_STATE", {
1280
1286
  DELETE: "DELETE"
1281
1287
  });
1282
1288
  let ge = O;
1283
- var it;
1289
+ var rt;
1284
1290
  const Oe = class Oe {
1285
1291
  constructor(r) {
1286
- d(this, it);
1287
- p(this, it, r), this.row = new ue(this), this.data = new ge(t(this, it), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1292
+ d(this, rt);
1293
+ p(this, rt, r), this.row = new ue(this), this.data = new ge(t(this, rt), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1288
1294
  var e;
1289
- (e = t(this, it).view) != null && e.redraw && t(this, it).view.redraw();
1295
+ (e = t(this, rt).view) != null && e.redraw && t(this, rt).view.redraw();
1290
1296
  }, this.setDataSource = (e) => {
1291
1297
  this.data && this.data.reset(), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.data.set(e || []);
1292
1298
  }, this.getRowState = (e) => {
@@ -1301,13 +1307,13 @@ const Oe = class Oe {
1301
1307
  }, this.setDataSource([]);
1302
1308
  }
1303
1309
  };
1304
- it = new WeakMap(), h(Oe, "ngDataManager");
1310
+ rt = new WeakMap(), h(Oe, "ngDataManager");
1305
1311
  let be = Oe;
1306
- var ut, L, Lt, se;
1312
+ var ft, L, Lt, se;
1307
1313
  const Be = class Be {
1308
1314
  // 🎯 이제 { name: string, type: string } κ°μ²΄λ“€μ˜ λ°°μ—΄λ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.
1309
1315
  constructor(r) {
1310
- d(this, ut);
1316
+ d(this, ft);
1311
1317
  d(this, L, []);
1312
1318
  A(this, "add", /* @__PURE__ */ h((r, e = "string") => {
1313
1319
  r.forEach((s) => {
@@ -1321,8 +1327,8 @@ const Be = class Be {
1321
1327
  }), p(this, L, Array.from(r, ([e, s]) => ({ name: e, type: s }))), p(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);
1322
1328
  }, "#adjust"));
1323
1329
  d(this, se, /* @__PURE__ */ h(() => {
1324
- p(this, L, []), W.log(t(this, ut).querySelectorAll("table"));
1325
- const r = Array.from(t(this, ut).querySelectorAll("table"));
1330
+ p(this, L, []), W.log(t(this, ft).querySelectorAll("table"));
1331
+ const r = Array.from(t(this, ft).querySelectorAll("table"));
1326
1332
  if (!(!r || r.length === 0)) {
1327
1333
  for (const e of r)
1328
1334
  W.log(e), $("[data-bind]", e).each((s, i) => {
@@ -1352,7 +1358,7 @@ const Be = class Be {
1352
1358
  t(this, Lt).call(this);
1353
1359
  }
1354
1360
  }, "#init"));
1355
- p(this, ut, r), t(this, se).call(this);
1361
+ p(this, ft, r), t(this, se).call(this);
1356
1362
  }
1357
1363
  // 🎯 기쑴에 ν•„λ“œ μ΄λ¦„λ§Œ μ“°λ˜ κ³³λ“€κ³Όμ˜ ν˜Έν™˜μ„ μœ„ν•΄ 이름 λ°°μ—΄λ§Œ λ¦¬ν„΄ν•˜λŠ” λ©”μ„œλ“œ μœ μ§€
1358
1364
  get() {
@@ -1374,19 +1380,19 @@ const Be = class Be {
1374
1380
  return t(this, L).some((e) => e.name === r);
1375
1381
  }
1376
1382
  };
1377
- ut = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), h(Be, "ngFields");
1383
+ ft = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), h(Be, "ngFields");
1378
1384
  let pe = Be;
1379
- var nt, re, ie;
1385
+ var it, re, ie;
1380
1386
  const ze = class ze extends HTMLElement {
1381
1387
  constructor() {
1382
1388
  super();
1383
1389
  //#created = false;
1384
- d(this, nt);
1390
+ d(this, it);
1385
1391
  d(this, re);
1386
1392
  d(this, ie, /* @__PURE__ */ h(() => {
1387
1393
  this.fields = new pe(this), p(this, re, new fe(this)), W.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1388
1394
  }, "#init"));
1389
- this.attachShadow({ mode: "open" }), p(this, nt, new be(this));
1395
+ this.attachShadow({ mode: "open" }), p(this, it, new be(this));
1390
1396
  }
1391
1397
  connectedCallback() {
1392
1398
  t(this, ie).call(this);
@@ -1396,21 +1402,21 @@ const ze = class ze extends HTMLElement {
1396
1402
  }
1397
1403
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
1398
1404
  get data() {
1399
- return t(this, nt).data;
1405
+ return t(this, it).data;
1400
1406
  }
1401
1407
  // 🎯 ν–‰(row) κ΄€λ ¨ μ œμ–΄ μ ‘κ·Όμž μ˜€ν”ˆ
1402
1408
  get row() {
1403
- return t(this, nt).row;
1409
+ return t(this, it).row;
1404
1410
  }
1405
1411
  // 🎯 전체 데이터 λ§€λ‹ˆμ € μ ‘κ·Ό ν•„μš”ν•  경우
1406
1412
  get dataManager() {
1407
- return t(this, nt);
1413
+ return t(this, it);
1408
1414
  }
1409
1415
  };
1410
- nt = new WeakMap(), re = new WeakMap(), ie = new WeakMap(), h(ze, "NineTable");
1416
+ it = new WeakMap(), re = new WeakMap(), ie = new WeakMap(), h(ze, "NineTable");
1411
1417
  let ye = ze;
1412
1418
  customElements.get("nine-table") || customElements.define("nine-table", ye);
1413
- const mt = class mt extends HTMLElement {
1419
+ const yt = class yt extends HTMLElement {
1414
1420
  // πŸ‘ˆ μ»€μŠ€ν…€ μŠ€νƒ€μΌμš© μΊμ‹œ μΆ”κ°€
1415
1421
  constructor() {
1416
1422
  super();
@@ -1421,8 +1427,8 @@ const mt = class mt extends HTMLElement {
1421
1427
  connectedCallback() {
1422
1428
  }
1423
1429
  };
1424
- h(mt, "BasicCellElement"), A(mt, "_styleCache", /* @__PURE__ */ new Map()), A(mt, "_customStyleCache", /* @__PURE__ */ new Map());
1425
- let me = mt;
1430
+ h(yt, "BasicCellElement"), A(yt, "_styleCache", /* @__PURE__ */ new Map()), A(yt, "_customStyleCache", /* @__PURE__ */ new Map());
1431
+ let me = yt;
1426
1432
  var C, Ht, y, Re, qe, Te, ke, Ce;
1427
1433
  const Pe = class Pe extends me {
1428
1434
  constructor() {
@@ -1534,14 +1540,14 @@ const De = class De extends xe {
1534
1540
  };
1535
1541
  h(De, "EditableCellElement");
1536
1542
  let ve = De;
1537
- var Mt, ot, gt, bt, ne, U, Le;
1543
+ var Mt, nt, ut, gt, ne, U, Le;
1538
1544
  const je = class je extends ve {
1539
1545
  constructor() {
1540
1546
  super();
1541
1547
  d(this, Mt);
1542
- d(this, ot);
1548
+ d(this, nt);
1549
+ d(this, ut);
1543
1550
  d(this, gt);
1544
- d(this, bt);
1545
1551
  d(this, ne);
1546
1552
  d(this, U);
1547
1553
  A(this, "refresh", /* @__PURE__ */ h(() => {
@@ -1580,9 +1586,9 @@ const je = class je extends ve {
1580
1586
  */
1581
1587
  d(this, Le, /* @__PURE__ */ h((e) => {
1582
1588
  if (!["Escape", "Enter", "Tab", "Home", "End", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Backspace", "Delete"].includes(e.code)) {
1583
- if (t(this, ot) == "number") {
1589
+ if (t(this, nt) == "number") {
1584
1590
  let n = [];
1585
- if (t(this, U) && Number(t(this, U)) > 0 && n.push("."), t(this, bt) && Number(t(this, bt)) >= 0 && n.push("-"), !(e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && !n.includes(e.key) && e.preventDefault(), t(this, U) && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && e.target.selectionStart == e.target.selectionEnd) {
1591
+ if (t(this, U) && Number(t(this, U)) > 0 && n.push("."), t(this, gt) && Number(t(this, gt)) >= 0 && n.push("-"), !(e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && !n.includes(e.key) && e.preventDefault(), t(this, U) && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && e.target.selectionStart == e.target.selectionEnd) {
1586
1592
  var s = e.target.value, i = s.indexOf(".");
1587
1593
  if (i >= 0) {
1588
1594
  var s = s.substr(i + 1, s.length);
@@ -1590,10 +1596,10 @@ const je = class je extends ve {
1590
1596
  }
1591
1597
  }
1592
1598
  }
1593
- t(this, gt) && ninegrid.getByteLength(e.target.value) >= Number(t(this, gt)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
1599
+ t(this, ut) && ninegrid.getByteLength(e.target.value) >= Number(t(this, ut)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
1594
1600
  }
1595
1601
  }, "#onKeyDown"));
1596
- if (this.applyBaseStyle(), p(this, ot, this.getAttribute("type") || "text"), p(this, gt, this.getAttribute("maxbyte")), p(this, bt, this.getAttribute("min")), p(this, ne, this.getAttribute("max")), p(this, U, this.getAttribute("scale")), !["text", "number"].includes(t(this, ot))) throw `invalid type : ${t(this, ot)}`;
1602
+ if (this.applyBaseStyle(), p(this, nt, this.getAttribute("type") || "text"), p(this, ut, this.getAttribute("maxbyte")), p(this, gt, this.getAttribute("min")), p(this, ne, this.getAttribute("max")), p(this, U, this.getAttribute("scale")), !["text", "number"].includes(t(this, nt))) throw `invalid type : ${t(this, nt)}`;
1597
1603
  }
1598
1604
  connectedCallback() {
1599
1605
  for (var e = [], s = 0; s < this.attributes.length; s++)
@@ -1606,7 +1612,7 @@ const je = class je extends ve {
1606
1612
  `, super.connectedCallback(), p(this, Mt, this.querySelector("input"));
1607
1613
  }
1608
1614
  };
1609
- Mt = new WeakMap(), ot = new WeakMap(), gt = new WeakMap(), bt = new WeakMap(), ne = new WeakMap(), U = new WeakMap(), Le = new WeakMap(), h(je, "CellInputText");
1615
+ Mt = new WeakMap(), nt = new WeakMap(), ut = new WeakMap(), gt = new WeakMap(), ne = new WeakMap(), U = new WeakMap(), Le = new WeakMap(), h(je, "CellInputText");
1610
1616
  let we = je;
1611
1617
  customElements.get("cell-input-text");
1612
1618
  customElements.get("cell-input") || customElements.define("cell-input", we);