@ninebone/table 0.0.473 β†’ 0.0.475

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.
@@ -22,8 +22,8 @@ const He = class He extends Xe.constructor {
22
22
  };
23
23
  h(He, "Trace");
24
24
  let le = He;
25
- const yt = new le();
26
- var D, P, S, K, U, X, It, Z, _t;
25
+ const pt = new le();
26
+ var D, P, S, K, U, X, _t, Z, Nt;
27
27
  const Me = class Me extends HTMLElement {
28
28
  constructor() {
29
29
  super();
@@ -33,7 +33,7 @@ const Me = class Me extends HTMLElement {
33
33
  d(this, K);
34
34
  d(this, U);
35
35
  d(this, X);
36
- d(this, It, /* @__PURE__ */ h(() => {
36
+ d(this, _t, /* @__PURE__ */ h(() => {
37
37
  if (!t(this, D)) return;
38
38
  const e = t(this, D).querySelector(".ng-container-body .ng-part-body");
39
39
  e && (y(this, X, new ResizeObserver(() => {
@@ -73,7 +73,7 @@ const Me = class Me extends HTMLElement {
73
73
  const l = s.clientWidth, u = r.scrollWidth - l;
74
74
  return c > 0 && u > 0 && (s.scrollLeft = a / c * u), a > 0 && a < c - 1;
75
75
  }, "#thumbMoveTo"));
76
- d(this, _t, /* @__PURE__ */ h(() => {
76
+ d(this, Nt, /* @__PURE__ */ h(() => {
77
77
  const e = /* @__PURE__ */ h((r) => {
78
78
  clearInterval(t(this, K)), clearInterval(t(this, U));
79
79
  const n = parseInt(t(this, S).thumb.style.left || 0, 10);
@@ -190,7 +190,7 @@ const Me = class Me extends HTMLElement {
190
190
  right: this.querySelector(".ng-scroll-right")
191
191
  }), s.addEventListener("scroll", () => {
192
192
  t(this, P) || this.refresh();
193
- }), t(this, _t).call(this), t(this, It).call(this), this.refresh();
193
+ }), t(this, Nt).call(this), t(this, _t).call(this), this.refresh();
194
194
  }, "initWhenReady");
195
195
  e();
196
196
  }
@@ -198,10 +198,10 @@ const Me = class Me extends HTMLElement {
198
198
  t(this, X) && t(this, X).disconnect();
199
199
  }
200
200
  };
201
- D = new WeakMap(), P = new WeakMap(), S = new WeakMap(), K = new WeakMap(), U = new WeakMap(), X = new WeakMap(), It = new WeakMap(), Z = new WeakMap(), _t = new WeakMap(), h(Me, "NineTableHScrollBar");
201
+ D = new WeakMap(), P = new WeakMap(), S = new WeakMap(), K = new WeakMap(), U = new WeakMap(), X = new WeakMap(), _t = new WeakMap(), Z = new WeakMap(), Nt = new WeakMap(), h(Me, "NineTableHScrollBar");
202
202
  let ce = Me;
203
203
  customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ce);
204
- var j, nt, G, R, vt, wt, Nt;
204
+ var j, nt, G, R, wt, St, Wt;
205
205
  const $e = class $e extends HTMLElement {
206
206
  constructor() {
207
207
  super();
@@ -209,8 +209,8 @@ const $e = class $e extends HTMLElement {
209
209
  d(this, nt);
210
210
  d(this, G, !1);
211
211
  d(this, R);
212
- d(this, vt, 0);
213
212
  d(this, wt, 0);
213
+ d(this, St, 0);
214
214
  A(this, "refresh", /* @__PURE__ */ h(() => {
215
215
  if (!t(this, j) || !t(this, R)) return;
216
216
  const e = t(this, R).container, s = t(this, R).track, r = t(this, R).thumb, n = e.clientHeight, a = (t(this, j).data.get() || []).length, c = t(this, nt).getRowHeight(), l = a * c;
@@ -229,7 +229,7 @@ const $e = class $e extends HTMLElement {
229
229
  const v = f - u;
230
230
  m < 0 && (m = 0), m > v && (m = v), r.style.top = `${m}px`, t(this, R).top.disabled = b <= 0, t(this, R).bottom.disabled = b >= g - 1;
231
231
  }, "refresh"));
232
- d(this, Nt, /* @__PURE__ */ h(() => {
232
+ d(this, Wt, /* @__PURE__ */ h(() => {
233
233
  const e = t(this, R).container, s = /* @__PURE__ */ h(() => {
234
234
  const n = (t(this, j).data.get() || []).length, o = t(this, nt).getRowHeight();
235
235
  return n * o;
@@ -238,13 +238,13 @@ const $e = class $e extends HTMLElement {
238
238
  t(this, G) || this.refresh();
239
239
  }), t(this, R).thumb.addEventListener("mousedown", (r) => {
240
240
  if (r.button !== 0) return;
241
- r.stopPropagation(), r.preventDefault(), y(this, G, !0), y(this, vt, r.clientY), y(this, wt, e.scrollTop);
241
+ r.stopPropagation(), r.preventDefault(), y(this, G, !0), y(this, wt, r.clientY), y(this, St, e.scrollTop);
242
242
  const n = /* @__PURE__ */ h((a) => {
243
243
  if (!t(this, G)) return;
244
- const c = t(this, R).track.getBoundingClientRect(), l = t(this, R).thumb.clientHeight, u = c.height - l, b = a.clientY - t(this, vt), g = e.clientHeight, m = s(), v = Math.max(m - g, 1);
244
+ const c = t(this, R).track.getBoundingClientRect(), l = t(this, R).thumb.clientHeight, u = c.height - l, b = a.clientY - t(this, wt), g = e.clientHeight, m = s(), v = Math.max(m - g, 1);
245
245
  if (u > 0 && v > 0) {
246
246
  const w = b / u * v;
247
- let x = t(this, wt) + w;
247
+ let x = t(this, St) + w;
248
248
  const M = Math.max(0, m - g);
249
249
  x < 0 && (x = 0), x > M && (x = M), e.scrollTop = x;
250
250
  }
@@ -345,15 +345,15 @@ const $e = class $e 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, Nt).call(this), this.refresh();
348
+ }), t(this, Wt).call(this), this.refresh();
349
349
  }, "initWhenReady");
350
350
  e();
351
351
  }
352
352
  };
353
- j = new WeakMap(), nt = new WeakMap(), G = new WeakMap(), R = new WeakMap(), vt = new WeakMap(), wt = new WeakMap(), Nt = new WeakMap(), h($e, "NineTableVScrollBar");
353
+ j = new WeakMap(), nt = new WeakMap(), G = new WeakMap(), R = new WeakMap(), wt = new WeakMap(), St = new WeakMap(), Wt = new WeakMap(), h($e, "NineTableVScrollBar");
354
354
  let he = $e;
355
355
  customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", he);
356
- var O, E, B, H, F, J, St, ot, Wt, Ot, Bt, zt, Et, At, Dt, Pt, qt, jt, Ae, at, lt, Ft;
356
+ var O, E, B, H, F, J, Et, ot, at, Ot, Bt, zt, At, qt, Dt, Pt, Rt, jt, Ae, lt, ct, Ft;
357
357
  const Ie = class Ie {
358
358
  constructor(i) {
359
359
  d(this, O);
@@ -362,14 +362,14 @@ const Ie = class Ie {
362
362
  d(this, H, null);
363
363
  d(this, F, null);
364
364
  d(this, J, 0);
365
- d(this, St, 40);
365
+ d(this, Et, 40);
366
366
  d(this, ot, !1);
367
- d(this, Wt, !1);
367
+ d(this, at, !1);
368
368
  d(this, Ot, 3);
369
369
  A(this, "refresh", /* @__PURE__ */ h(() => {
370
370
  var e;
371
371
  const i = t(this, E).querySelector(".ng-container-body .ng-part-body");
372
- i && (t(this, Et).call(this), t(this, at).call(this, i.scrollTop), (e = t(this, E).querySelector("nine-table-vscrollbar")) == null || e.refresh());
372
+ i && (t(this, At).call(this), t(this, lt).call(this, i.scrollTop), (e = t(this, E).querySelector("nine-table-vscrollbar")) == null || e.refresh());
373
373
  }, "refresh"));
374
374
  A(this, "initialize", /* @__PURE__ */ h(() => {
375
375
  y(this, H, null), t(this, B).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((r) => {
@@ -384,15 +384,17 @@ const Ie = class Ie {
384
384
  });
385
385
  const i = t(this, E).querySelector(".ng-container-body .ng-part-body"), e = t(this, E).querySelector(".ng-container-left .ng-part-body"), s = t(this, E).querySelector(".ng-container-right .ng-part-body");
386
386
  if (i) {
387
- t(this, zt).call(this, i), t(this, qt).call(this), t(this, Et).call(this), t(this, at).call(this, i.scrollTop);
387
+ t(this, zt).call(this, i), t(this, Rt).call(this), t(this, At).call(this), t(this, lt).call(this, i.scrollTop);
388
388
  let r = !1;
389
389
  const n = /* @__PURE__ */ h((o, a) => {
390
390
  var c;
391
- r || (r = !0, i && i.scrollTop !== o && (i.scrollTop = o), e && e.scrollTop !== o && (e.scrollTop = o), s && s.scrollTop !== o && (s.scrollTop = o), t(this, at).call(this, o), (c = t(this, E).querySelector("nine-table-vscrollbar")) == null || c.refresh(), r = !1);
391
+ r || (r = !0, i && i.scrollTop !== o && (i.scrollTop = o), e && e.scrollTop !== o && (e.scrollTop = o), s && s.scrollTop !== o && (s.scrollTop = o), t(this, lt).call(this, o), (c = t(this, E).querySelector("nine-table-vscrollbar")) == null || c.refresh(), r = !1);
392
392
  }, "syncScroll");
393
393
  [i, e, s].forEach((o) => {
394
394
  o == null || o.addEventListener("scroll", () => {
395
- n(o.scrollTop), y(this, Wt, !1);
395
+ t(this, at) || (y(this, at, !0), requestAnimationFrame(() => {
396
+ n(o.scrollTop), y(this, at, !1);
397
+ }));
396
398
  });
397
399
  });
398
400
  }
@@ -404,7 +406,7 @@ const Ie = class Ie {
404
406
  if (!r) return;
405
407
  r.querySelectorAll("tr:not(.nodata)").forEach((a) => a.remove());
406
408
  const n = r.querySelector("tr.nodata"), o = document.createDocumentFragment();
407
- for (let a = 0; a < t(this, St); a++)
409
+ for (let a = 0; a < t(this, Et); a++)
408
410
  s.forEach((c) => {
409
411
  o.appendChild(c.cloneNode(!0));
410
412
  });
@@ -428,9 +430,9 @@ const Ie = class Ie {
428
430
  const u = s.querySelectorAll("tr:not(.nodata)");
429
431
  return u.forEach((b) => {
430
432
  f += b.offsetHeight || b.getBoundingClientRect().height;
431
- }), u.forEach((b) => b.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, y(this, H, f > 0 ? f : 24), t(this, At).call(this), t(this, H);
433
+ }), u.forEach((b) => b.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, y(this, H, f > 0 ? f : 24), t(this, qt).call(this), t(this, H);
432
434
  }, "#measureAndCacheHeight"));
433
- d(this, Et, /* @__PURE__ */ h(() => {
435
+ d(this, At, /* @__PURE__ */ h(() => {
434
436
  const e = (t(this, O).data.get() || []).length, s = t(this, H) || 24, r = e * s;
435
437
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((n) => {
436
438
  const o = t(this, E).querySelector(n);
@@ -439,10 +441,10 @@ const Ie = class Ie {
439
441
  a && (a.style.height = `${r}px`);
440
442
  });
441
443
  }, "#updateVirtualScrollHeight"));
442
- d(this, At, /* @__PURE__ */ h(() => {
444
+ d(this, qt, /* @__PURE__ */ h(() => {
443
445
  if (t(this, J) > 0 && t(this, H) > 0) {
444
446
  const i = Math.ceil(t(this, J) / t(this, H));
445
- y(this, St, i + t(this, Ot));
447
+ y(this, Et, i + t(this, Ot));
446
448
  }
447
449
  }, "#updateRowCount"));
448
450
  d(this, Dt, /* @__PURE__ */ h(() => {
@@ -483,12 +485,12 @@ const Ie = class Ie {
483
485
  const o = s.querySelector(".ng-part-header"), a = s.querySelector(".ng-part-footer");
484
486
  o && (n += o.offsetHeight), a && (n += a.offsetHeight);
485
487
  const c = Math.max(r - n, 100);
486
- t(this, J) !== c && (y(this, J, c), t(this, At).call(this), t(this, H) !== null && t(this, qt).call(this));
488
+ t(this, J) !== c && (y(this, J, c), t(this, qt).call(this), t(this, H) !== null && t(this, Rt).call(this));
487
489
  }
488
490
  }
489
491
  })), t(this, F).observe(t(this, E)));
490
492
  }, "#initResizeObserver"));
491
- d(this, qt, /* @__PURE__ */ h(() => {
493
+ d(this, Rt, /* @__PURE__ */ h(() => {
492
494
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
493
495
  const e = t(this, E).querySelector(i);
494
496
  e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Bt).call(this, e, i);
@@ -509,7 +511,7 @@ const Ie = class Ie {
509
511
  return;
510
512
  }
511
513
  const g = t(this, O).data.get(b);
512
- f.style.display = "", t(this, lt).call(this, f, g, b);
514
+ f.style.display = "", t(this, ct).call(this, f, g, b);
513
515
  });
514
516
  });
515
517
  }, "#adjustBufferRows"));
@@ -530,13 +532,13 @@ const Ie = class Ie {
530
532
  return;
531
533
  }
532
534
  const w = t(this, O).data.get(v);
533
- g.style.display = "", t(this, lt).call(this, g, w, v);
535
+ g.style.display = "", t(this, ct).call(this, g, w, v);
534
536
  });
535
537
  }), t(this, ot) || (y(this, ot, !0), setTimeout(() => {
536
538
  t(this, jt).call(this, n), y(this, ot, !1);
537
539
  }, 0));
538
540
  }, "#handleScroll_BAK"));
539
- d(this, at, /* @__PURE__ */ h((i) => {
541
+ d(this, lt, /* @__PURE__ */ h((i) => {
540
542
  var u;
541
543
  const e = t(this, H);
542
544
  if (!e || e <= 0) return;
@@ -558,7 +560,7 @@ const Ie = class Ie {
558
560
  return;
559
561
  }
560
562
  const k = t(this, O).data.get(M);
561
- w.style.display = "", t(this, lt).call(this, w, k, M);
563
+ w.style.display = "", t(this, ct).call(this, w, k, M);
562
564
  });
563
565
  });
564
566
  }, "#handleScroll"));
@@ -576,8 +578,8 @@ const Ie = class Ie {
576
578
  cell.dataset.row = dataIndex;
577
579
  });
578
580
  }; */
579
- d(this, lt, /* @__PURE__ */ h((i, e, s) => {
580
- i.dataset.row = s, i.data = e, yt.log(s), Array.from(i.cells).forEach((r, n) => {
581
+ d(this, ct, /* @__PURE__ */ h((i, e, s) => {
582
+ i.dataset.row = s, i.data = e, pt.log(s), Array.from(i.cells).forEach((r, n) => {
581
583
  r.dataset.row = s, r.querySelector(':scope > [is^="cell-"], :scope > [class*="cell-"], :scope > cell-');
582
584
  const o = Array.from(r.children).find((a) => a.tagName.toLowerCase().startsWith("cell-") || typeof a.refresh == "function");
583
585
  o && typeof o.refresh == "function" && o.refresh();
@@ -610,7 +612,7 @@ const Ie = class Ie {
610
612
  return ((e = t(this, B).get(i)) == null ? void 0 : e.length) || 1;
611
613
  }
612
614
  };
613
- O = new WeakMap(), E = new WeakMap(), B = new WeakMap(), H = new WeakMap(), F = new WeakMap(), J = new WeakMap(), St = new WeakMap(), ot = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), zt = new WeakMap(), Et = new WeakMap(), At = new WeakMap(), Dt = new WeakMap(), Pt = new WeakMap(), qt = new WeakMap(), jt = new WeakMap(), Ae = new WeakMap(), at = new WeakMap(), lt = new WeakMap(), Ft = new WeakMap(), h(Ie, "RowManager");
615
+ O = new WeakMap(), E = new WeakMap(), B = new WeakMap(), H = new WeakMap(), F = new WeakMap(), J = new WeakMap(), Et = new WeakMap(), ot = new WeakMap(), at = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), zt = new WeakMap(), At = new WeakMap(), qt = new WeakMap(), Dt = new WeakMap(), Pt = new WeakMap(), Rt = new WeakMap(), jt = new WeakMap(), Ae = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), Ft = new WeakMap(), h(Ie, "RowManager");
614
616
  let de = Ie;
615
617
  const Yt = class Yt {
616
618
  /**
@@ -666,8 +668,8 @@ const Yt = class Yt {
666
668
  }
667
669
  const M = x.rowSpan || 1, k = x.colSpan || 1;
668
670
  for (let z = 0; z < M; z++)
669
- for (let pt = 0; pt < k; pt++)
670
- v + z < u && w + pt < b && (g[v + z][w + pt] = z === 0 && pt === 0 ? "1" : "0");
671
+ for (let mt = 0; mt < k; mt++)
672
+ v + z < u && w + mt < b && (g[v + z][w + mt] = z === 0 && mt === 0 ? "1" : "0");
671
673
  });
672
674
  }), l.forEach((m) => {
673
675
  const v = m.sectionRowIndex;
@@ -691,8 +693,8 @@ const Yt = class Yt {
691
693
  };
692
694
  h(Yt, "TableCompiler");
693
695
  let fe = Yt;
694
- var Vt, Q, tt, Kt, Ut, ct, Xt, Zt;
695
- const mt = class mt extends HTMLElement {
696
+ var Vt, Q, tt, Kt, Ut, ht, Xt, Zt;
697
+ const xt = class xt extends HTMLElement {
696
698
  constructor() {
697
699
  super();
698
700
  d(this, Vt);
@@ -712,15 +714,15 @@ const mt = class mt extends HTMLElement {
712
714
  if (!n) return;
713
715
  n.innerHTML = "";
714
716
  const o = document.createElement("div");
715
- o.className = "ng-part-header", o.appendChild(t(this, ct).call(this, t(this, Q), r, "header"));
717
+ o.className = "ng-part-header", o.appendChild(t(this, ht).call(this, t(this, Q), r, "header"));
716
718
  const a = document.createElement("div");
717
719
  a.className = "ng-part-body";
718
720
  const c = document.createElement("div");
719
- c.className = "ng-scroll-content", c.style.position = "relative", c.style.width = "100%", c.appendChild(t(this, ct).call(this, t(this, Q), r, "body"));
721
+ c.className = "ng-scroll-content", c.style.position = "relative", c.style.width = "100%", c.appendChild(t(this, ht).call(this, t(this, Q), r, "body"));
720
722
  const l = document.createElement("div");
721
723
  l.className = "ng-virtual-spacer", l.style.width = "100%", l.style.pointerEvents = "none", c.appendChild(l), a.appendChild(c);
722
724
  const f = document.createElement("div");
723
- f.className = "ng-part-footer", f.appendChild(t(this, ct).call(this, t(this, Q), r, "footer")), n.appendChild(o), n.appendChild(a), n.appendChild(f);
725
+ f.className = "ng-part-footer", f.appendChild(t(this, ht).call(this, t(this, Q), r, "footer")), n.appendChild(o), n.appendChild(a), n.appendChild(f);
724
726
  });
725
727
  }, "#renderSplitContainers"));
726
728
  d(this, Ut, /* @__PURE__ */ h(() => {
@@ -740,7 +742,7 @@ const mt = class mt extends HTMLElement {
740
742
  (s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
741
743
  }, 0));
742
744
  }, "generate"));
743
- d(this, ct, /* @__PURE__ */ h((e, s, r) => {
745
+ d(this, ht, /* @__PURE__ */ h((e, s, r) => {
744
746
  const n = e.cloneNode(!0), o = n.querySelector("thead"), a = n.querySelector("tbody"), c = n.querySelector("tfoot");
745
747
  if (r === "header") {
746
748
  if (a && a.remove(), c && c.remove(), e.querySelector("tbody")) {
@@ -769,7 +771,7 @@ const mt = class mt extends HTMLElement {
769
771
  t(this, Zt).call(this);
770
772
  }, "#init"));
771
773
  d(this, Zt, /* @__PURE__ */ h(() => {
772
- const e = mt.SCROLLBAR_SIZE;
774
+ const e = xt.SCROLLBAR_SIZE;
773
775
  this.innerHTML = `
774
776
  <style>
775
777
  nine-table-sheet {
@@ -917,13 +919,13 @@ const mt = class mt extends HTMLElement {
917
919
  t(this, Xt).call(this);
918
920
  }
919
921
  disconnectedCallback() {
920
- this.innerHTML = "", yt.log("NineTableSheet destroyed.");
922
+ this.innerHTML = "", pt.log("NineTableSheet destroyed.");
921
923
  }
922
924
  };
923
- Vt = new WeakMap(), Q = new WeakMap(), tt = new WeakMap(), Kt = new WeakMap(), Ut = new WeakMap(), ct = new WeakMap(), Xt = new WeakMap(), Zt = new WeakMap(), h(mt, "NineTableSheet"), A(mt, "SCROLLBAR_SIZE", 16);
924
- let $t = mt;
925
- customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", $t);
926
- var Gt, Rt;
925
+ Vt = new WeakMap(), Q = new WeakMap(), tt = new WeakMap(), Kt = new WeakMap(), Ut = new WeakMap(), ht = new WeakMap(), Xt = new WeakMap(), Zt = new WeakMap(), h(xt, "NineTableSheet"), A(xt, "SCROLLBAR_SIZE", 16);
926
+ let It = xt;
927
+ customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", It);
928
+ var Gt, kt;
927
929
  const _e = class _e extends HTMLElement {
928
930
  constructor() {
929
931
  super();
@@ -932,10 +934,10 @@ const _e = class _e extends HTMLElement {
932
934
  (e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
933
935
  var o;
934
936
  const r = s.ctrlKey || s.metaKey || s.shiftKey, n = parseInt((o = s.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
935
- t(this, Rt).call(this, n, r);
936
- }), t(this, Rt).call(this, 0, !1);
937
+ t(this, kt).call(this, n, r);
938
+ }), t(this, kt).call(this, 0, !1);
937
939
  }, "#init"));
938
- d(this, Rt, /* @__PURE__ */ h((e, s = !1) => {
940
+ d(this, kt, /* @__PURE__ */ h((e, s = !1) => {
939
941
  const r = /* @__PURE__ */ h(() => {
940
942
  const f = Array.from(this.querySelectorAll("nine-table-sheet"));
941
943
  Array.from(this.querySelectorAll("nine-splitter")).forEach((g) => g.style.setProperty("display", "none"));
@@ -971,24 +973,24 @@ const _e = class _e extends HTMLElement {
971
973
  t(this, Gt).call(this);
972
974
  }
973
975
  };
974
- Gt = new WeakMap(), Rt = new WeakMap(), h(_e, "NineTableSheets");
976
+ Gt = new WeakMap(), kt = new WeakMap(), h(_e, "NineTableSheets");
975
977
  let ue = _e;
976
978
  customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", ue);
977
- var I, Jt, kt, Qt;
979
+ var I, Jt, Tt, Qt;
978
980
  const Ne = class Ne {
979
981
  constructor(i) {
980
982
  d(this, I);
981
983
  d(this, Jt, /* @__PURE__ */ h(() => {
982
984
  t(this, Qt).call(this), new ResizeObserver((i) => {
983
985
  for (let e of i)
984
- t(this, I).getAttribute("auto-height") === "true" && t(this, kt).call(this);
986
+ t(this, I).getAttribute("auto-height") === "true" && t(this, Tt).call(this);
985
987
  }).observe(t(this, I));
986
988
  }, "#init"));
987
- d(this, kt, /* @__PURE__ */ h(() => {
989
+ d(this, Tt, /* @__PURE__ */ h(() => {
988
990
  var c, l;
989
991
  const i = Array.from(t(this, I).shadowRoot.querySelectorAll("nine-table-sheet.active"));
990
992
  if (i.length === 0) return;
991
- const e = parseInt(t(this, I).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), r = (c = t(this, I).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, I).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = $t.SCROLLBAR_SIZE, a = e * s + r + n + o;
993
+ const e = parseInt(t(this, I).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), r = (c = t(this, I).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, I).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = It.SCROLLBAR_SIZE, a = e * s + r + n + o;
992
994
  t(this, I).style.height = `${a}px`;
993
995
  }, "#applyAutoHeight"));
994
996
  d(this, Qt, /* @__PURE__ */ h(() => {
@@ -1090,40 +1092,40 @@ const Ne = class Ne {
1090
1092
  const a = t(this, I).shadowRoot.querySelectorAll("nine-table-sheet");
1091
1093
  a == null || a.forEach((c, l) => {
1092
1094
  e[l] && setTimeout(() => {
1093
- c.generate(e[l]), s && t(this, kt).call(this);
1095
+ c.generate(e[l]), s && t(this, Tt).call(this);
1094
1096
  });
1095
1097
  });
1096
1098
  }, "#render"));
1097
1099
  y(this, I, i), t(this, Jt).call(this);
1098
1100
  }
1099
1101
  };
1100
- I = new WeakMap(), Jt = new WeakMap(), kt = new WeakMap(), Qt = new WeakMap(), h(Ne, "LayoutManager");
1102
+ I = new WeakMap(), Jt = new WeakMap(), Tt = new WeakMap(), Qt = new WeakMap(), h(Ne, "LayoutManager");
1101
1103
  let ge = Ne;
1102
- var Tt, ht;
1104
+ var Ct, dt;
1103
1105
  const We = class We {
1104
1106
  constructor(i) {
1105
- d(this, Tt);
1106
- d(this, ht, -1);
1107
- A(this, "count", /* @__PURE__ */ h(() => t(this, Tt).rawRecords.length, "count"));
1108
- y(this, Tt, i);
1107
+ d(this, Ct);
1108
+ d(this, dt, -1);
1109
+ A(this, "count", /* @__PURE__ */ h(() => t(this, Ct).rawRecords.length, "count"));
1110
+ y(this, Ct, i);
1109
1111
  }
1110
1112
  get at() {
1111
- return t(this, ht);
1113
+ return t(this, dt);
1112
1114
  }
1113
1115
  set at(i) {
1114
- y(this, ht, parseInt(i, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, ht)}"]`) && setTimeout(() => {
1116
+ y(this, dt, parseInt(i, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, dt)}"]`) && setTimeout(() => {
1115
1117
  });
1116
1118
  }
1117
1119
  };
1118
- Tt = new WeakMap(), ht = new WeakMap(), h(We, "ngRow");
1120
+ Ct = new WeakMap(), dt = new WeakMap(), h(We, "ngRow");
1119
1121
  let be = We;
1120
- var _, T, N, dt, te, Y, ee, et, Ct, se, ie, ft;
1122
+ var _, T, N, ft, te, Y, ee, et, Lt, se, ie, ut;
1121
1123
  const W = class W {
1122
1124
  constructor(i, e) {
1123
1125
  d(this, _);
1124
1126
  d(this, T);
1125
1127
  d(this, N, []);
1126
- d(this, dt, []);
1128
+ d(this, ft, []);
1127
1129
  d(this, te, 0);
1128
1130
  d(this, Y, []);
1129
1131
  d(this, ee, /* @__PURE__ */ h(() => {
@@ -1133,7 +1135,7 @@ const W = class W {
1133
1135
  var s;
1134
1136
  t(this, Y).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
1135
1137
  }), (t(this, T).rawRecords || []).forEach((e) => {
1136
- e.__ng || (e.__ng = t(this, Ct).call(this)), e.__ng.height = t(this, Y).slice();
1138
+ e.__ng || (e.__ng = t(this, Lt).call(this)), e.__ng.height = t(this, Y).slice();
1137
1139
  });
1138
1140
  }, "#initialize"));
1139
1141
  d(this, et, /* @__PURE__ */ h(() => {
@@ -1145,19 +1147,19 @@ const W = class W {
1145
1147
  var n;
1146
1148
  const s = this.getValidData();
1147
1149
  if (!s || s.length <= 0) return;
1148
- if (i == null) return t(this, ft).call(this, s);
1150
+ if (i == null) return t(this, ut).call(this, s);
1149
1151
  if (i < 0 || i >= s.length) return null;
1150
1152
  const r = typeof ((n = t(this, _).fields) == null ? void 0 : n.get) == "function" ? t(this, _).fields.get() : [];
1151
1153
  if (e != null) {
1152
1154
  const o = r.indexOf(e);
1153
1155
  return o >= 0 ? s[i].v[o] : null;
1154
1156
  }
1155
- return t(this, ft).call(this, s[i]);
1157
+ return t(this, ut).call(this, s[i]);
1156
1158
  }, "get"));
1157
1159
  A(this, "set", /* @__PURE__ */ h((i) => {
1158
1160
  this.clear(), this.add(i, !1), t(this, et).call(this);
1159
1161
  }, "set"));
1160
- d(this, Ct, /* @__PURE__ */ h(() => ({
1162
+ d(this, Lt, /* @__PURE__ */ h(() => ({
1161
1163
  rowState: W.ROW_STATE.EMPTY,
1162
1164
  deleted: !1,
1163
1165
  filtered: !1,
@@ -1167,11 +1169,11 @@ const W = class W {
1167
1169
  _: [0, 0, 0, 0, W.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, Y).slice(), -1, {}, {}]
1168
1170
  }), "#getDefaultMeta"));
1169
1171
  A(this, "reset", /* @__PURE__ */ h(() => {
1170
- y(this, N, []), y(this, dt, []), t(this, et).call(this);
1172
+ y(this, N, []), y(this, ft, []), t(this, et).call(this);
1171
1173
  }, "reset"));
1172
1174
  A(this, "clear", /* @__PURE__ */ h(() => {
1173
1175
  var i;
1174
- t(this, T).rawRecords = [], y(this, N, []), y(this, dt, []), (i = t(this, T).viewRecords) != null && i.reset && t(this, T).viewRecords.reset();
1176
+ t(this, T).rawRecords = [], y(this, N, []), y(this, ft, []), (i = t(this, T).viewRecords) != null && i.reset && t(this, T).viewRecords.reset();
1175
1177
  }, "clear"));
1176
1178
  d(this, se, /* @__PURE__ */ h((i) => {
1177
1179
  var r;
@@ -1185,7 +1187,7 @@ const W = class W {
1185
1187
  }), s;
1186
1188
  }, "#json2Array"));
1187
1189
  d(this, ie, /* @__PURE__ */ h((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
1188
- e.__ng = t(this, Ct).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = W.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1190
+ e.__ng = t(this, Lt).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = W.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1189
1191
  }), i), "#defaultInsert"));
1190
1192
  A(this, "add", /* @__PURE__ */ h((i, e = !0) => {
1191
1193
  i === void 0 && (i = {});
@@ -1219,14 +1221,14 @@ const W = class W {
1219
1221
  a !== s && o.__ng.rowState !== W.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(e) || (o.__ng.o[e] = a), o.__ng.rowState = W.ROW_STATE.UPDATE), o.v[n] = s;
1220
1222
  }, "setValue"));
1221
1223
  A(this, "resetRecords", /* @__PURE__ */ h(() => {
1222
- y(this, dt, t(this, T).rawRecords.filter((i) => !i.__ng.deleted)), y(this, N, t(this, T).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), t(this, T).rawRecords.forEach((i, e) => {
1224
+ y(this, ft, t(this, T).rawRecords.filter((i) => !i.__ng.deleted)), y(this, N, t(this, T).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), t(this, T).rawRecords.forEach((i, e) => {
1223
1225
  i.__ng.rowidx = e;
1224
1226
  }), t(this, N).forEach((i, e) => {
1225
1227
  i.__ng.i = e;
1226
1228
  });
1227
1229
  }, "resetRecords"));
1228
1230
  A(this, "getValidData", /* @__PURE__ */ h(() => (t(this, N).length === 0 && t(this, T).rawRecords.length > 0 && this.resetRecords(), t(this, N)), "getValidData"));
1229
- d(this, ft, /* @__PURE__ */ h((i) => {
1231
+ d(this, ut, /* @__PURE__ */ h((i) => {
1230
1232
  var o;
1231
1233
  if (!i) return i;
1232
1234
  const e = !Array.isArray(i), s = e ? [i] : i, r = typeof ((o = t(this, _).fields) == null ? void 0 : o.get) == "function" ? t(this, _).fields.get() : [], n = s.filter((a) => !a.__ng.deleted).map((a) => {
@@ -1241,7 +1243,7 @@ const W = class W {
1241
1243
  y(this, _, i), y(this, T, e), t(this, ee).call(this);
1242
1244
  }
1243
1245
  get source() {
1244
- return t(this, ft).call(this, t(this, T).rawRecords);
1246
+ return t(this, ut).call(this, t(this, T).rawRecords);
1245
1247
  }
1246
1248
  set source(i) {
1247
1249
  this.clear(), this.add(i, !1);
@@ -1256,7 +1258,7 @@ const W = class W {
1256
1258
  return this.length;
1257
1259
  }
1258
1260
  };
1259
- _ = new WeakMap(), T = new WeakMap(), N = new WeakMap(), dt = new WeakMap(), te = new WeakMap(), Y = new WeakMap(), ee = new WeakMap(), et = new WeakMap(), Ct = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), ft = new WeakMap(), h(W, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1261
+ _ = new WeakMap(), T = new WeakMap(), N = new WeakMap(), ft = new WeakMap(), te = new WeakMap(), Y = new WeakMap(), ee = new WeakMap(), et = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), ut = new WeakMap(), h(W, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1260
1262
  A(W, "ROW_STATE", {
1261
1263
  EMPTY: "EMPTY",
1262
1264
  NORMAL: "NORMAL",
@@ -1288,29 +1290,29 @@ const Oe = class Oe {
1288
1290
  };
1289
1291
  st = new WeakMap(), h(Oe, "ngDataManager");
1290
1292
  let pe = Oe;
1291
- var ut, L, Lt, re;
1293
+ var gt, L, Ht, re;
1292
1294
  const Be = class Be {
1293
1295
  // 🎯 이제 { name: string, type: string } κ°μ²΄λ“€μ˜ λ°°μ—΄λ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.
1294
1296
  constructor(i) {
1295
- d(this, ut);
1297
+ d(this, gt);
1296
1298
  d(this, L, []);
1297
1299
  A(this, "add", /* @__PURE__ */ h((i, e = "string") => {
1298
1300
  i.forEach((s) => {
1299
1301
  t(this, L).some((r) => r.name === s) || t(this, L).push({ name: s, type: e });
1300
- }), t(this, Lt).call(this);
1302
+ }), t(this, Ht).call(this);
1301
1303
  }, "add"));
1302
- d(this, Lt, /* @__PURE__ */ h(() => {
1304
+ d(this, Ht, /* @__PURE__ */ h(() => {
1303
1305
  const i = /* @__PURE__ */ new Map();
1304
1306
  t(this, L).forEach((e) => {
1305
1307
  i.set(e.name, e.type);
1306
1308
  }), y(this, L, Array.from(i, ([e, s]) => ({ name: e, type: s }))), y(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);
1307
1309
  }, "#adjust"));
1308
1310
  d(this, re, /* @__PURE__ */ h(() => {
1309
- y(this, L, []), yt.log(t(this, ut).querySelectorAll("table"));
1310
- const i = Array.from(t(this, ut).querySelectorAll("table"));
1311
+ y(this, L, []), pt.log(t(this, gt).querySelectorAll("table"));
1312
+ const i = Array.from(t(this, gt).querySelectorAll("table"));
1311
1313
  if (!(!i || i.length === 0)) {
1312
1314
  for (const e of i)
1313
- yt.log(e), $("[data-bind]", e).each((s, r) => {
1315
+ pt.log(e), $("[data-bind]", e).each((s, r) => {
1314
1316
  const n = r.dataset.bind, o = r.getAttribute("data-type") || "string";
1315
1317
  n && t(this, L).push({ name: n, type: o });
1316
1318
  }), ["data-expr", "background-color", "color", "tooltip", "visible", "readonly", "enable-button", "enable-check", "class-expr", "icon-color", "icon-src"].forEach((s) => {
@@ -1334,10 +1336,10 @@ const Be = class Be {
1334
1336
  });
1335
1337
  });
1336
1338
  });
1337
- t(this, Lt).call(this);
1339
+ t(this, Ht).call(this);
1338
1340
  }
1339
1341
  }, "#init"));
1340
- y(this, ut, i), t(this, re).call(this);
1342
+ y(this, gt, i), t(this, re).call(this);
1341
1343
  }
1342
1344
  // 🎯 기쑴에 ν•„λ“œ μ΄λ¦„λ§Œ μ“°λ˜ κ³³λ“€κ³Όμ˜ ν˜Έν™˜μ„ μœ„ν•΄ 이름 λ°°μ—΄λ§Œ λ¦¬ν„΄ν•˜λŠ” λ©”μ„œλ“œ μœ μ§€
1343
1345
  get() {
@@ -1359,7 +1361,7 @@ const Be = class Be {
1359
1361
  return t(this, L).some((e) => e.name === i);
1360
1362
  }
1361
1363
  };
1362
- ut = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), re = new WeakMap(), h(Be, "ngFields");
1364
+ gt = new WeakMap(), L = new WeakMap(), Ht = new WeakMap(), re = new WeakMap(), h(Be, "ngFields");
1363
1365
  let me = Be;
1364
1366
  var it, ne, oe;
1365
1367
  const ze = class ze extends HTMLElement {
@@ -1369,7 +1371,7 @@ const ze = class ze extends HTMLElement {
1369
1371
  d(this, it);
1370
1372
  d(this, ne);
1371
1373
  d(this, oe, /* @__PURE__ */ h(() => {
1372
- this.fields = new me(this), y(this, ne, new ge(this)), yt.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1374
+ this.fields = new me(this), y(this, ne, new ge(this)), pt.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1373
1375
  }, "#init"));
1374
1376
  this.attachShadow({ mode: "open" }), y(this, it, new pe(this));
1375
1377
  }
@@ -1377,7 +1379,7 @@ const ze = class ze extends HTMLElement {
1377
1379
  t(this, oe).call(this);
1378
1380
  }
1379
1381
  disconnectedCallback() {
1380
- yt.log("NineTable disconnected.");
1382
+ pt.log("NineTable disconnected.");
1381
1383
  }
1382
1384
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
1383
1385
  get data() {
@@ -1395,7 +1397,7 @@ const ze = class ze extends HTMLElement {
1395
1397
  it = new WeakMap(), ne = new WeakMap(), oe = new WeakMap(), h(ze, "NineTable");
1396
1398
  let xe = ze;
1397
1399
  customElements.get("nine-table") || customElements.define("nine-table", xe);
1398
- const xt = class xt extends HTMLElement {
1400
+ const vt = class vt extends HTMLElement {
1399
1401
  // πŸ‘ˆ μ»€μŠ€ν…€ μŠ€νƒ€μΌμš© μΊμ‹œ μΆ”κ°€
1400
1402
  constructor() {
1401
1403
  super();
@@ -1406,14 +1408,14 @@ const xt = class xt extends HTMLElement {
1406
1408
  connectedCallback() {
1407
1409
  }
1408
1410
  };
1409
- h(xt, "BasicCellElement"), A(xt, "_styleCache", /* @__PURE__ */ new Map()), A(xt, "_customStyleCache", /* @__PURE__ */ new Map());
1410
- let ve = xt;
1411
- var C, Ht, p, qe, Re, ke, Te, Ce;
1411
+ h(vt, "BasicCellElement"), A(vt, "_styleCache", /* @__PURE__ */ new Map()), A(vt, "_customStyleCache", /* @__PURE__ */ new Map());
1412
+ let ve = vt;
1413
+ var C, Mt, p, qe, Re, ke, Te, Ce;
1412
1414
  const De = class De extends ve {
1413
1415
  constructor() {
1414
1416
  super();
1415
1417
  d(this, C);
1416
- d(this, Ht);
1418
+ d(this, Mt);
1417
1419
  d(this, p);
1418
1420
  d(this, qe);
1419
1421
  d(this, Re);
@@ -1482,7 +1484,7 @@ const De = class De extends ve {
1482
1484
  }, "getExprValue"));
1483
1485
  }
1484
1486
  connectedCallback() {
1485
- super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this, Ht, t(this, p).closest("tr"));
1487
+ super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this, Mt, t(this, p).closest("tr"));
1486
1488
  }
1487
1489
  get value() {
1488
1490
  var e = !t(this, C) || !t(this, C).dataManager || !t(this, p) || !t(this, p).dataset || !t(this, p).dataset.row || !t(this, p).dataset.bind ? "" : t(this, p).closest("tr").data[t(this, p).dataset.bind];
@@ -1500,10 +1502,10 @@ const De = class De extends ve {
1500
1502
  return t(this, p).closest("tr").data;
1501
1503
  }
1502
1504
  refresh() {
1503
- return t(this, p).dataset.bind, parseInt(t(this, p).dataset.row), t(this, Ht).data, t(this, p).dataset.row;
1505
+ return t(this, p).dataset.bind, parseInt(t(this, p).dataset.row), t(this, Mt).data, t(this, p).dataset.row;
1504
1506
  }
1505
1507
  };
1506
- C = new WeakMap(), Ht = new WeakMap(), p = new WeakMap(), qe = new WeakMap(), Re = new WeakMap(), ke = new WeakMap(), Te = new WeakMap(), Ce = new WeakMap(), h(De, "CellElement");
1508
+ C = new WeakMap(), Mt = new WeakMap(), p = new WeakMap(), qe = new WeakMap(), Re = new WeakMap(), ke = new WeakMap(), Te = new WeakMap(), Ce = new WeakMap(), h(De, "CellElement");
1507
1509
  let we = De;
1508
1510
  const Pe = class Pe extends we {
1509
1511
  constructor() {
@@ -1518,19 +1520,19 @@ const Pe = class Pe extends we {
1518
1520
  };
1519
1521
  h(Pe, "EditableCellElement");
1520
1522
  let Se = Pe;
1521
- var Mt, rt, gt, bt, ae, V, Le;
1523
+ var $t, rt, bt, yt, ae, V, Le;
1522
1524
  const je = class je extends Se {
1523
1525
  constructor() {
1524
1526
  super();
1525
- d(this, Mt);
1527
+ d(this, $t);
1526
1528
  d(this, rt);
1527
- d(this, gt);
1528
1529
  d(this, bt);
1530
+ d(this, yt);
1529
1531
  d(this, ae);
1530
1532
  d(this, V);
1531
1533
  A(this, "refresh", /* @__PURE__ */ h(() => {
1532
1534
  const e = super.refresh();
1533
- t(this, Mt).value = e;
1535
+ t(this, $t).value = e;
1534
1536
  }, "refresh"));
1535
1537
  /**
1536
1538
  dataRefresh = (v) => {
@@ -1566,7 +1568,7 @@ const je = class je extends Se {
1566
1568
  if (!["Escape", "Enter", "Tab", "Home", "End", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Backspace", "Delete"].includes(e.code)) {
1567
1569
  if (t(this, rt) == "number") {
1568
1570
  let n = [];
1569
- if (t(this, V) && Number(t(this, V)) > 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, V) && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && e.target.selectionStart == e.target.selectionEnd) {
1571
+ if (t(this, V) && Number(t(this, V)) > 0 && n.push("."), t(this, yt) && Number(t(this, yt)) >= 0 && n.push("-"), !(e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && !n.includes(e.key) && e.preventDefault(), t(this, V) && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && e.target.selectionStart == e.target.selectionEnd) {
1570
1572
  var s = e.target.value, r = s.indexOf(".");
1571
1573
  if (r >= 0) {
1572
1574
  var s = s.substr(r + 1, s.length);
@@ -1574,10 +1576,10 @@ const je = class je extends Se {
1574
1576
  }
1575
1577
  }
1576
1578
  }
1577
- t(this, gt) && ninegrid.getByteLength(e.target.value) >= Number(t(this, gt)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
1579
+ t(this, bt) && ninegrid.getByteLength(e.target.value) >= Number(t(this, bt)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
1578
1580
  }
1579
1581
  }, "#onKeyDown"));
1580
- if (this.applyBaseStyle(), y(this, rt, this.getAttribute("type") || "text"), y(this, gt, this.getAttribute("maxbyte")), y(this, bt, this.getAttribute("min")), y(this, ae, this.getAttribute("max")), y(this, V, this.getAttribute("scale")), !["text", "number"].includes(t(this, rt))) throw `invalid type : ${t(this, rt)}`;
1582
+ if (this.applyBaseStyle(), y(this, rt, this.getAttribute("type") || "text"), y(this, bt, this.getAttribute("maxbyte")), y(this, yt, this.getAttribute("min")), y(this, ae, this.getAttribute("max")), y(this, V, this.getAttribute("scale")), !["text", "number"].includes(t(this, rt))) throw `invalid type : ${t(this, rt)}`;
1581
1583
  }
1582
1584
  connectedCallback() {
1583
1585
  for (var e = [], s = 0; s < this.attributes.length; s++)
@@ -1587,10 +1589,10 @@ const je = class je extends Se {
1587
1589
  ${e.join(" ")}
1588
1590
  ondragstart="return false;"
1589
1591
  >
1590
- `, super.connectedCallback(), y(this, Mt, this.querySelector("input"));
1592
+ `, super.connectedCallback(), y(this, $t, this.querySelector("input"));
1591
1593
  }
1592
1594
  };
1593
- Mt = new WeakMap(), rt = new WeakMap(), gt = new WeakMap(), bt = new WeakMap(), ae = new WeakMap(), V = new WeakMap(), Le = new WeakMap(), h(je, "CellInputText");
1595
+ $t = new WeakMap(), rt = new WeakMap(), bt = new WeakMap(), yt = new WeakMap(), ae = new WeakMap(), V = new WeakMap(), Le = new WeakMap(), h(je, "CellInputText");
1594
1596
  let Ee = je;
1595
1597
  customElements.get("cell-input-text");
1596
1598
  customElements.get("cell-input") || customElements.define("cell-input", Ee);