@ninebone/table 0.0.587 β†’ 0.0.589

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,28 +23,28 @@ const He = class He extends Ke.constructor {
23
23
  h(He, "Trace");
24
24
  let oe = He;
25
25
  const W = new oe();
26
- var z, j, w, X, K, Z, It, G, _t;
26
+ var P, j, w, X, K, Z, It, G, _t;
27
27
  const Me = class Me extends HTMLElement {
28
28
  constructor() {
29
29
  super();
30
- d(this, z);
30
+ d(this, P);
31
31
  d(this, j, !1);
32
32
  d(this, w);
33
33
  d(this, X);
34
34
  d(this, K);
35
35
  d(this, Z);
36
36
  d(this, It, /* @__PURE__ */ h(() => {
37
- if (!t(this, z)) return;
38
- const e = t(this, z).querySelector(".ng-container-body .ng-part-body");
37
+ if (!t(this, P)) return;
38
+ const e = t(this, P).querySelector(".ng-container-body .ng-part-body");
39
39
  e && (p(this, Z, new ResizeObserver(() => {
40
40
  this.refresh();
41
41
  })), t(this, Z).observe(e));
42
42
  }, "#observeResize"));
43
43
  A(this, "refresh", /* @__PURE__ */ h(() => {
44
- if (!t(this, z) || !t(this, w) || t(this, j)) return;
44
+ if (!t(this, P) || !t(this, w) || t(this, j)) return;
45
45
  const e = t(this, w).container, s = e.querySelector("table");
46
46
  if (!s) return;
47
- const i = t(this, w).track, n = t(this, w).thumb, o = t(this, z).querySelector(".ng-container-bottom"), a = e.clientWidth, c = s.scrollWidth;
47
+ const i = t(this, w).track, n = t(this, w).thumb, o = t(this, P).querySelector(".ng-container-bottom"), a = e.clientWidth, c = s.scrollWidth;
48
48
  if (a !== 0 && c > a)
49
49
  o && (o.style.display = "flex");
50
50
  else {
@@ -112,7 +112,7 @@ const Me = class Me extends HTMLElement {
112
112
  }, "#init"));
113
113
  }
114
114
  connectedCallback() {
115
- if (p(this, z, this.closest("nine-table-sheet") || this.getRootNode().host), !t(this, z)) return;
115
+ if (p(this, P, this.closest("nine-table-sheet") || this.getRootNode().host), !t(this, P)) return;
116
116
  this.innerHTML = `
117
117
  <style>
118
118
  nine-table-hscrollbar {
@@ -177,7 +177,7 @@ const Me = class Me extends HTMLElement {
177
177
  <button class='ng-scroll-right' disabled><div class='ng-scroll-icon'></div></button>
178
178
  `;
179
179
  const e = /* @__PURE__ */ h(() => {
180
- const s = t(this, z).querySelector(".ng-container-body .ng-part-body");
180
+ const s = t(this, P).querySelector(".ng-container-body .ng-part-body");
181
181
  if (!s) {
182
182
  setTimeout(e, 10);
183
183
  return;
@@ -198,22 +198,22 @@ const Me = class Me extends HTMLElement {
198
198
  t(this, Z) && t(this, Z).disconnect();
199
199
  }
200
200
  };
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");
201
+ P = 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, ot, J, q, mt, xt, Nt;
204
+ var F, at, J, q, xt, vt, Nt;
205
205
  const $e = class $e extends HTMLElement {
206
206
  constructor() {
207
207
  super();
208
208
  d(this, F);
209
- d(this, ot);
209
+ d(this, at);
210
210
  d(this, J, !1);
211
211
  d(this, q);
212
- d(this, mt, 0);
213
212
  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, ot).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, at).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, ot).getRowHeight();
235
+ const n = (t(this, F).data.get() || []).length, o = t(this, at).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, mt, i.clientY), p(this, xt, e.scrollTop);
242
+ i.stopPropagation(), i.preventDefault(), p(this, J, !0), p(this, xt, i.clientY), p(this, vt, 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, mt), 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, xt), 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, xt) + E;
248
+ let x = t(this, vt) + 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, ot, this.closest("nine-table-sheet")), this.innerHTML = `
273
+ p(this, F, this.getRootNode().host), p(this, at, this.closest("nine-table-sheet")), this.innerHTML = `
274
274
  <style>
275
275
  nine-table-vscrollbar {
276
276
  display: flex;
@@ -351,20 +351,20 @@ const $e = class $e extends HTMLElement {
351
351
  e();
352
352
  }
353
353
  };
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");
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");
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, vt, Se, Ee, Wt, Ot, Bt, wt, St, zt, Pt, Et, Ae, at, At, Dt;
357
+ var D, S, Q, z, I, V, tt, wt, Se, Ee, Wt, Ot, Bt, St, Et, Pt, zt, At, Ae, lt, Rt, Dt;
358
358
  const Ie = class Ie {
359
359
  constructor(r) {
360
360
  d(this, D);
361
361
  d(this, S);
362
362
  d(this, Q);
363
- d(this, P, /* @__PURE__ */ new Map());
363
+ d(this, z, /* @__PURE__ */ new Map());
364
364
  d(this, I, null);
365
365
  d(this, V, null);
366
366
  d(this, tt, 0);
367
- d(this, vt, 40);
367
+ d(this, wt, 40);
368
368
  d(this, Se, !1);
369
369
  d(this, Ee, !1);
370
370
  //#ticking = false; // 🎯 고속 슀크둀 μŠ€λ‘œν‹€λ§μš© ν”Œλž˜κ·Έ
@@ -373,13 +373,13 @@ 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, wt).call(this), t(this, at).call(this, r.scrollTop), (e = t(this, S).querySelector("nine-table-vscrollbar")) == null || e.refresh());
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());
377
377
  }, "refresh"));
378
378
  A(this, "initialize", /* @__PURE__ */ h(() => {
379
379
  W.log("rowManager.initialize"), p(this, Q, {
380
380
  scrollTables: t(this, S).querySelectorAll(".ng-part-body table"),
381
381
  firstTr: t(this, S).querySelector(".ng-container-body .ng-part-body tbody.bindable-tbody tr:not(.nodata)")
382
- }), p(this, I, null), t(this, P).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
382
+ }), p(this, I, null), t(this, z).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
383
383
  const a = t(this, S).querySelector(o);
384
384
  if (!a) return;
385
385
  const c = a.querySelector(".ng-part-body table");
@@ -387,17 +387,17 @@ const Ie = class Ie {
387
387
  const l = c.querySelector("tbody.bindable-tbody");
388
388
  if (!l) return;
389
389
  const u = Array.from(l.querySelectorAll("tr")).map((g) => g.cloneNode(!0));
390
- t(this, P).set(o, u);
390
+ t(this, z).set(o, u);
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, Et).call(this), t(this, wt).call(this), t(this, at).call(this, r.scrollTop);
394
+ t(this, Bt).call(this, r), t(this, At).call(this), t(this, St).call(this), t(this, lt).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, at).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, lt).call(this, l), o = !1;
401
401
  }, "handleContainerScroll");
402
402
  [r, e, s].forEach((c) => {
403
403
  c && c.addEventListener("scroll", () => {
@@ -408,13 +408,13 @@ const Ie = class Ie {
408
408
  }, "initialize"));
409
409
  d(this, Ot, /* @__PURE__ */ h((r, e) => {
410
410
  W.log("rowManager.#renderRows");
411
- const s = t(this, P).get(e);
411
+ const s = t(this, z).get(e);
412
412
  if (!s || s.length === 0) return;
413
413
  const i = r.querySelector(".ng-part-body tbody.bindable-tbody");
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, vt); a++)
417
+ for (let a = 0; a < t(this, wt); a++)
418
418
  s.forEach((c) => {
419
419
  o.appendChild(c.cloneNode(!0));
420
420
  });
@@ -424,7 +424,7 @@ const Ie = class Ie {
424
424
  if (W.log("rowManager.#measureAndCacheHeight"), t(this, I) !== null && t(this, I) > 0)
425
425
  return t(this, I);
426
426
  W.log("#measureAndCacheHeight");
427
- const e = t(this, P).get(".ng-container-body");
427
+ const e = t(this, z).get(".ng-container-body");
428
428
  if (!e || e.length === 0) return 24;
429
429
  const s = r.querySelector("tbody.bindable-tbody");
430
430
  if (!s) return 24;
@@ -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, St).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, Et).call(this), t(this, I);
443
443
  }, "#measureAndCacheHeight"));
444
- d(this, wt, /* @__PURE__ */ h(() => {
444
+ d(this, St, /* @__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,13 +451,13 @@ const Ie = class Ie {
451
451
  a && (a.style.height = `${i}px`);
452
452
  });
453
453
  }, "#updateVirtualScrollHeight"));
454
- d(this, St, /* @__PURE__ */ h(() => {
454
+ d(this, Et, /* @__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, vt, r + t(this, Wt));
457
+ p(this, wt, r + t(this, Wt));
458
458
  }
459
459
  }, "#updateRowCount"));
460
- d(this, zt, /* @__PURE__ */ h(() => {
460
+ d(this, Pt, /* @__PURE__ */ h(() => {
461
461
  var a, c, l, f, u, g;
462
462
  const r = t(this, S).querySelector(".ng-container-left .ng-part-body table"), e = t(this, S).querySelector(".ng-container-body .ng-part-body table"), s = t(this, S).querySelector(".ng-container-right .ng-part-body table");
463
463
  if (e) {
@@ -484,7 +484,7 @@ const Ie = class Ie {
484
484
  }
485
485
  }
486
486
  }, "#syncRowHeights"));
487
- d(this, Pt, /* @__PURE__ */ h(() => {
487
+ d(this, zt, /* @__PURE__ */ h(() => {
488
488
  !t(this, S) || !(t(this, S) instanceof HTMLElement) || (p(this, V, new ResizeObserver((r) => {
489
489
  for (const e of r) {
490
490
  const s = e.target;
@@ -495,16 +495,16 @@ 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, St).call(this), t(this, I) !== null && (t(this, Et).call(this), this.refresh()));
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()));
499
499
  }
500
500
  }
501
501
  })), t(this, V).observe(t(this, S)));
502
502
  }, "#initResizeObserver"));
503
- d(this, Et, /* @__PURE__ */ h(() => {
503
+ d(this, At, /* @__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);
507
- }), t(this, Dt).call(this), t(this, zt).call(this);
507
+ }), t(this, Dt).call(this), t(this, Pt).call(this);
508
508
  }, "#renderAllContainers"));
509
509
  d(this, Ae, /* @__PURE__ */ h((r) => {
510
510
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((e) => {
@@ -513,7 +513,7 @@ const Ie = class Ie {
513
513
  if (!s) return;
514
514
  const i = s.querySelector(".ng-part-body tbody.bindable-tbody");
515
515
  if (!i) return;
516
- const n = Array.from(i.querySelectorAll("tr:not(.nodata)")), o = ((l = t(this, P).get(e)) == null ? void 0 : l.length) || 1, c = (t(this, D).data.get() || []).length;
516
+ const n = Array.from(i.querySelectorAll("tr:not(.nodata)")), o = ((l = t(this, z).get(e)) == null ? void 0 : l.length) || 1, c = (t(this, D).data.get() || []).length;
517
517
  n.forEach((f, u) => {
518
518
  const g = r + Math.floor(u / o);
519
519
  if (g >= c) {
@@ -521,17 +521,17 @@ 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, At).call(this, f, b, g);
524
+ f.style.display = "", t(this, Rt).call(this, f, b, g);
525
525
  });
526
526
  });
527
527
  }, "#adjustBufferRows"));
528
- d(this, at, /* @__PURE__ */ h((r) => {
528
+ d(this, lt, /* @__PURE__ */ h((r) => {
529
529
  var f, u;
530
530
  const e = t(this, I);
531
531
  if (!e || e <= 0) return;
532
532
  const s = t(this, D).data.length;
533
533
  if (s === 0) return;
534
- const i = ((f = t(this, P).get(".ng-container-body")) == null ? void 0 : f.length) || 1, n = Math.max(0, s - 1), o = Math.min(n, Math.max(0, Math.floor(r / e))), a = Math.floor(o * e), c = t(this, Q).firstTr, l = c && c.dataset.row !== void 0 ? parseInt(c.dataset.row, 10) : -1;
534
+ const i = ((f = t(this, z).get(".ng-container-body")) == null ? void 0 : f.length) || 1, n = Math.max(0, s - 1), o = Math.min(n, Math.max(0, Math.floor(r / e))), a = Math.floor(o * e), c = t(this, Q).firstTr, l = c && c.dataset.row !== void 0 ? parseInt(c.dataset.row, 10) : -1;
535
535
  (u = t(this, Q)) == null || u.scrollTables.forEach((g) => {
536
536
  g.style.transform = `translate3d(0, ${a}px, 0)`;
537
537
  }), l !== o && [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((g) => {
@@ -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, At).call(this, E, T, M);
549
+ E.style.display = "", t(this, Rt).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, At, /* @__PURE__ */ h((r, e, s) => {
567
+ d(this, Rt, /* @__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");
@@ -589,17 +589,17 @@ const Ie = class Ie {
589
589
  A(this, "destroy", /* @__PURE__ */ h(() => {
590
590
  t(this, V) && (t(this, V).disconnect(), p(this, V, null));
591
591
  }, "destroy"));
592
- p(this, D, r.getRootNode().host), p(this, S, r), t(this, Pt).call(this);
592
+ p(this, D, r.getRootNode().host), p(this, S, r), t(this, zt).call(this);
593
593
  }
594
594
  getRowHeight() {
595
595
  return t(this, I);
596
596
  }
597
597
  templateLength(r = ".ng-container-body") {
598
598
  var e;
599
- return ((e = t(this, P).get(r)) == null ? void 0 : e.length) || 1;
599
+ return ((e = t(this, z).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(), 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");
602
+ D = new WeakMap(), S = new WeakMap(), Q = new WeakMap(), z = 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(), Pt = new WeakMap(), zt = new WeakMap(), At = new WeakMap(), Ae = new WeakMap(), lt = new WeakMap(), Rt = 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 bt = 0; bt < T; bt++)
659
- v + B < u && E + bt < g && (b[v + B][E + bt] = B === 0 && bt === 0 ? "1" : "0");
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");
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, lt, et, Vt, Yt, Rt, Ut, Xt;
684
- const pt = class pt extends HTMLElement {
683
+ var Ft, et, st, Vt, Yt, ct, Ut, Xt;
684
+ const yt = class yt extends HTMLElement {
685
685
  constructor() {
686
686
  super();
687
687
  d(this, Ft);
688
- d(this, lt, null);
689
- d(this, et);
688
+ d(this, et, null);
689
+ d(this, st);
690
690
  A(this, "invalidate", /* @__PURE__ */ h(() => {
691
- t(this, et).refresh();
691
+ t(this, st).refresh();
692
692
  }, "invalidate"));
693
693
  d(this, Vt, /* @__PURE__ */ h(() => {
694
694
  [
@@ -698,14 +698,15 @@ const pt = class pt extends HTMLElement {
698
698
  ].forEach(({ selector: s, type: i }) => {
699
699
  const n = this.querySelector(s);
700
700
  if (!n) return;
701
- const o = n.querySelector(".ng-part-header"), a = document.createElement("div");
701
+ n.querySelector(".ng-part-header").appendChild(t(this, ct).call(this, t(this, et), i, "header"));
702
+ const a = document.createElement("div");
702
703
  a.className = "ng-part-body";
703
704
  const c = document.createElement("div");
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"));
705
+ 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"));
705
706
  const l = document.createElement("div");
706
707
  l.className = "ng-virtual-spacer", l.style.width = "100%", l.style.pointerEvents = "none", c.appendChild(l), a.appendChild(c);
707
708
  const f = document.createElement("div");
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);
709
+ f.className = "ng-part-footer", f.appendChild(t(this, ct).call(this, t(this, et), i, "footer")), n.appendChild(a), n.appendChild(f);
709
710
  });
710
711
  }, "#renderSplitContainers"));
711
712
  d(this, Yt, /* @__PURE__ */ h(() => {
@@ -720,12 +721,12 @@ const pt = class pt extends HTMLElement {
720
721
  });
721
722
  }, "#updateContainerWidths"));
722
723
  A(this, "generate", /* @__PURE__ */ h((e) => {
723
- e && (p(this, lt, he.compile(e)), t(this, Vt).call(this), t(this, Yt).call(this), t(this, et).initialize(), setTimeout(() => {
724
+ e && (p(this, et, he.compile(e)), t(this, Vt).call(this), t(this, Yt).call(this), t(this, st).initialize(), setTimeout(() => {
724
725
  var s;
725
726
  (s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
726
727
  }, 0));
727
728
  }, "generate"));
728
- d(this, Rt, /* @__PURE__ */ h((e, s, i) => {
729
+ d(this, ct, /* @__PURE__ */ h((e, s, i) => {
729
730
  const n = e.cloneNode(!0), o = n.querySelector("thead"), a = n.querySelector("tbody"), c = n.querySelector("tfoot");
730
731
  if (i === "header") {
731
732
  if (a && a.remove(), c && c.remove(), e.querySelector("tbody")) {
@@ -741,7 +742,7 @@ const pt = class pt extends HTMLElement {
741
742
  l.remove();
742
743
  }), n;
743
744
  }, "#createSplitTable"));
744
- A(this, "getRowHeight", /* @__PURE__ */ h(() => t(this, et).getRowHeight(), "getRowHeight"));
745
+ A(this, "getRowHeight", /* @__PURE__ */ h(() => t(this, st).getRowHeight(), "getRowHeight"));
745
746
  A(this, "scrollToX", /* @__PURE__ */ h((e) => {
746
747
  const s = this.querySelector(".ng-container-body .ng-part-body");
747
748
  s && (s.scrollLeft = e);
@@ -754,7 +755,7 @@ const pt = class pt extends HTMLElement {
754
755
  t(this, Xt).call(this);
755
756
  }, "#init"));
756
757
  d(this, Xt, /* @__PURE__ */ h(() => {
757
- const e = pt.SCROLLBAR_SIZE;
758
+ const e = yt.SCROLLBAR_SIZE;
758
759
  this.innerHTML = `
759
760
  <style>
760
761
  nine-table-sheet {
@@ -912,7 +913,7 @@ const pt = class pt extends HTMLElement {
912
913
  </div>
913
914
  `;
914
915
  }, "#render"));
915
- p(this, et, new ce(this)), p(this, Ft, this.getRootNode().host);
916
+ p(this, st, new ce(this)), p(this, Ft, this.getRootNode().host);
916
917
  }
917
918
  connectedCallback() {
918
919
  t(this, Ut).call(this);
@@ -921,8 +922,8 @@ const pt = class pt extends HTMLElement {
921
922
  this.innerHTML = "", W.log("NineTableSheet destroyed.");
922
923
  }
923
924
  };
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;
925
+ 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);
926
+ let $t = yt;
926
927
  customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", $t);
927
928
  var Kt, qt;
928
929
  const _e = class _e extends HTMLElement {
@@ -1117,31 +1118,31 @@ const Ne = class Ne {
1117
1118
  };
1118
1119
  H = new WeakMap(), Zt = new WeakMap(), Tt = new WeakMap(), Gt = new WeakMap(), h(Ne, "LayoutManager");
1119
1120
  let fe = Ne;
1120
- var kt, ct;
1121
+ var kt, ht;
1121
1122
  const We = class We {
1122
1123
  constructor(r) {
1123
1124
  d(this, kt);
1124
- d(this, ct, -1);
1125
+ d(this, ht, -1);
1125
1126
  A(this, "count", /* @__PURE__ */ h(() => t(this, kt).rawRecords.length, "count"));
1126
1127
  p(this, kt, r);
1127
1128
  }
1128
1129
  get at() {
1129
- return t(this, ct);
1130
+ return t(this, ht);
1130
1131
  }
1131
1132
  set at(r) {
1132
- p(this, ct, parseInt(r, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, ct)}"]`) && setTimeout(() => {
1133
+ p(this, ht, parseInt(r, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, ht)}"]`) && setTimeout(() => {
1133
1134
  });
1134
1135
  }
1135
1136
  };
1136
- kt = new WeakMap(), ct = new WeakMap(), h(We, "ngRow");
1137
+ kt = new WeakMap(), ht = new WeakMap(), h(We, "ngRow");
1137
1138
  let ue = We;
1138
- var _, k, N, ht, Jt, Y, Qt, st, Ct, te, ee, dt;
1139
+ var _, k, N, dt, Jt, Y, Qt, rt, Ct, te, ee, ft;
1139
1140
  const O = class O {
1140
1141
  constructor(r, e) {
1141
1142
  d(this, _);
1142
1143
  d(this, k);
1143
1144
  d(this, N, []);
1144
- d(this, ht, []);
1145
+ d(this, dt, []);
1145
1146
  d(this, Jt, 0);
1146
1147
  d(this, Y, []);
1147
1148
  d(this, Qt, /* @__PURE__ */ h(() => {
@@ -1154,7 +1155,7 @@ const O = class O {
1154
1155
  e.__ng || (e.__ng = t(this, Ct).call(this)), e.__ng.height = t(this, Y).slice();
1155
1156
  });
1156
1157
  }, "#initialize"));
1157
- d(this, st, /* @__PURE__ */ h(() => {
1158
+ d(this, rt, /* @__PURE__ */ h(() => {
1158
1159
  t(this, _).shadowRoot.querySelectorAll("nine-table-sheet").forEach((r) => {
1159
1160
  r.invalidate();
1160
1161
  });
@@ -1163,17 +1164,17 @@ const O = class O {
1163
1164
  var n;
1164
1165
  const s = this.getValidData();
1165
1166
  if (!s || s.length <= 0) return;
1166
- if (r == null) return t(this, dt).call(this, s);
1167
+ if (r == null) return t(this, ft).call(this, s);
1167
1168
  if (r < 0 || r >= s.length) return null;
1168
1169
  const i = typeof ((n = t(this, _).fields) == null ? void 0 : n.get) == "function" ? t(this, _).fields.get() : [];
1169
1170
  if (e != null) {
1170
1171
  const o = i.indexOf(e);
1171
1172
  return o >= 0 ? s[r].v[o] : null;
1172
1173
  }
1173
- return t(this, dt).call(this, s[r]);
1174
+ return t(this, ft).call(this, s[r]);
1174
1175
  }, "get"));
1175
1176
  A(this, "set", /* @__PURE__ */ h((r) => {
1176
- this.clear(), this.add(r, !1), t(this, st).call(this);
1177
+ this.clear(), this.add(r, !1), t(this, rt).call(this);
1177
1178
  }, "set"));
1178
1179
  d(this, Ct, /* @__PURE__ */ h(() => ({
1179
1180
  rowState: O.ROW_STATE.EMPTY,
@@ -1185,11 +1186,11 @@ const O = class O {
1185
1186
  _: [0, 0, 0, 0, O.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, Y).slice(), -1, {}, {}]
1186
1187
  }), "#getDefaultMeta"));
1187
1188
  A(this, "reset", /* @__PURE__ */ h(() => {
1188
- p(this, N, []), p(this, ht, []), t(this, st).call(this);
1189
+ p(this, N, []), p(this, dt, []), t(this, rt).call(this);
1189
1190
  }, "reset"));
1190
1191
  A(this, "clear", /* @__PURE__ */ h(() => {
1191
1192
  var r;
1192
- t(this, k).rawRecords = [], p(this, N, []), p(this, ht, []), (r = t(this, k).viewRecords) != null && r.reset && t(this, k).viewRecords.reset();
1193
+ t(this, k).rawRecords = [], p(this, N, []), p(this, dt, []), (r = t(this, k).viewRecords) != null && r.reset && t(this, k).viewRecords.reset();
1193
1194
  }, "clear"));
1194
1195
  d(this, te, /* @__PURE__ */ h((r) => {
1195
1196
  var i;
@@ -1213,7 +1214,7 @@ const O = class O {
1213
1214
  return e || s.forEach((n, o) => {
1214
1215
  const a = t(this, k).rawRecords[i - o];
1215
1216
  a && (a.__ng.rowState = O.ROW_STATE.EMPTY);
1216
- }), t(this, st).call(this), i;
1217
+ }), t(this, rt).call(this), i;
1217
1218
  }, "add"));
1218
1219
  A(this, "delete", /* @__PURE__ */ h((r) => {
1219
1220
  let e = [];
@@ -1224,7 +1225,7 @@ const O = class O {
1224
1225
  n.__ng.rowid === i && (n.__ng.deleted = !0, n.__ng.rowState = O.ROW_STATE.DELETE);
1225
1226
  });
1226
1227
  }
1227
- }), this.resetRecords(), t(this, st).call(this);
1228
+ }), this.resetRecords(), t(this, rt).call(this);
1228
1229
  }, "delete"));
1229
1230
  A(this, "setValue", /* @__PURE__ */ h((r, e, s) => {
1230
1231
  var c;
@@ -1237,14 +1238,14 @@ const O = class O {
1237
1238
  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;
1238
1239
  }, "setValue"));
1239
1240
  A(this, "resetRecords", /* @__PURE__ */ h(() => {
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) => {
1241
+ 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) => {
1241
1242
  r.__ng.rowidx = e;
1242
1243
  }), t(this, N).forEach((r, e) => {
1243
1244
  r.__ng.i = e;
1244
1245
  });
1245
1246
  }, "resetRecords"));
1246
1247
  A(this, "getValidData", /* @__PURE__ */ h(() => (t(this, N).length === 0 && t(this, k).rawRecords.length > 0 && this.resetRecords(), t(this, N)), "getValidData"));
1247
- d(this, dt, /* @__PURE__ */ h((r) => {
1248
+ d(this, ft, /* @__PURE__ */ h((r) => {
1248
1249
  var o;
1249
1250
  if (!r) return r;
1250
1251
  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) => {
@@ -1259,7 +1260,7 @@ const O = class O {
1259
1260
  p(this, _, r), p(this, k, e), t(this, Qt).call(this);
1260
1261
  }
1261
1262
  get source() {
1262
- return t(this, dt).call(this, t(this, k).rawRecords);
1263
+ return t(this, ft).call(this, t(this, k).rawRecords);
1263
1264
  }
1264
1265
  set source(r) {
1265
1266
  this.clear(), this.add(r, !1);
@@ -1277,7 +1278,7 @@ const O = class O {
1277
1278
  return this.length;
1278
1279
  }
1279
1280
  };
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"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1281
+ _ = 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"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1281
1282
  A(O, "ROW_STATE", {
1282
1283
  EMPTY: "EMPTY",
1283
1284
  NORMAL: "NORMAL",
@@ -1286,13 +1287,13 @@ A(O, "ROW_STATE", {
1286
1287
  DELETE: "DELETE"
1287
1288
  });
1288
1289
  let ge = O;
1289
- var rt;
1290
+ var it;
1290
1291
  const Oe = class Oe {
1291
1292
  constructor(r) {
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 = () => {
1293
+ d(this, it);
1294
+ 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 = () => {
1294
1295
  var e;
1295
- (e = t(this, rt).view) != null && e.redraw && t(this, rt).view.redraw();
1296
+ (e = t(this, it).view) != null && e.redraw && t(this, it).view.redraw();
1296
1297
  }, this.setDataSource = (e) => {
1297
1298
  this.data && this.data.reset(), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.data.set(e || []);
1298
1299
  }, this.getRowState = (e) => {
@@ -1307,13 +1308,13 @@ const Oe = class Oe {
1307
1308
  }, this.setDataSource([]);
1308
1309
  }
1309
1310
  };
1310
- rt = new WeakMap(), h(Oe, "ngDataManager");
1311
+ it = new WeakMap(), h(Oe, "ngDataManager");
1311
1312
  let be = Oe;
1312
- var ft, L, Lt, se;
1313
+ var ut, L, Lt, se;
1313
1314
  const Be = class Be {
1314
1315
  // 🎯 이제 { name: string, type: string } κ°μ²΄λ“€μ˜ λ°°μ—΄λ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.
1315
1316
  constructor(r) {
1316
- d(this, ft);
1317
+ d(this, ut);
1317
1318
  d(this, L, []);
1318
1319
  A(this, "add", /* @__PURE__ */ h((r, e = "string") => {
1319
1320
  r.forEach((s) => {
@@ -1327,8 +1328,8 @@ const Be = class Be {
1327
1328
  }), 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);
1328
1329
  }, "#adjust"));
1329
1330
  d(this, se, /* @__PURE__ */ h(() => {
1330
- p(this, L, []), W.log(t(this, ft).querySelectorAll("table"));
1331
- const r = Array.from(t(this, ft).querySelectorAll("table"));
1331
+ p(this, L, []), W.log(t(this, ut).querySelectorAll("table"));
1332
+ const r = Array.from(t(this, ut).querySelectorAll("table"));
1332
1333
  if (!(!r || r.length === 0)) {
1333
1334
  for (const e of r)
1334
1335
  W.log(e), $("[data-bind]", e).each((s, i) => {
@@ -1358,7 +1359,7 @@ const Be = class Be {
1358
1359
  t(this, Lt).call(this);
1359
1360
  }
1360
1361
  }, "#init"));
1361
- p(this, ft, r), t(this, se).call(this);
1362
+ p(this, ut, r), t(this, se).call(this);
1362
1363
  }
1363
1364
  // 🎯 기쑴에 ν•„λ“œ μ΄λ¦„λ§Œ μ“°λ˜ κ³³λ“€κ³Όμ˜ ν˜Έν™˜μ„ μœ„ν•΄ 이름 λ°°μ—΄λ§Œ λ¦¬ν„΄ν•˜λŠ” λ©”μ„œλ“œ μœ μ§€
1364
1365
  get() {
@@ -1380,19 +1381,19 @@ const Be = class Be {
1380
1381
  return t(this, L).some((e) => e.name === r);
1381
1382
  }
1382
1383
  };
1383
- ft = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), h(Be, "ngFields");
1384
+ ut = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), h(Be, "ngFields");
1384
1385
  let pe = Be;
1385
- var it, re, ie;
1386
- const ze = class ze extends HTMLElement {
1386
+ var nt, re, ie;
1387
+ const Pe = class Pe extends HTMLElement {
1387
1388
  constructor() {
1388
1389
  super();
1389
1390
  //#created = false;
1390
- d(this, it);
1391
+ d(this, nt);
1391
1392
  d(this, re);
1392
1393
  d(this, ie, /* @__PURE__ */ h(() => {
1393
1394
  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 } }));
1394
1395
  }, "#init"));
1395
- this.attachShadow({ mode: "open" }), p(this, it, new be(this));
1396
+ this.attachShadow({ mode: "open" }), p(this, nt, new be(this));
1396
1397
  }
1397
1398
  connectedCallback() {
1398
1399
  t(this, ie).call(this);
@@ -1402,21 +1403,21 @@ const ze = class ze extends HTMLElement {
1402
1403
  }
1403
1404
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
1404
1405
  get data() {
1405
- return t(this, it).data;
1406
+ return t(this, nt).data;
1406
1407
  }
1407
1408
  // 🎯 ν–‰(row) κ΄€λ ¨ μ œμ–΄ μ ‘κ·Όμž μ˜€ν”ˆ
1408
1409
  get row() {
1409
- return t(this, it).row;
1410
+ return t(this, nt).row;
1410
1411
  }
1411
1412
  // 🎯 전체 데이터 λ§€λ‹ˆμ € μ ‘κ·Ό ν•„μš”ν•  경우
1412
1413
  get dataManager() {
1413
- return t(this, it);
1414
+ return t(this, nt);
1414
1415
  }
1415
1416
  };
1416
- it = new WeakMap(), re = new WeakMap(), ie = new WeakMap(), h(ze, "NineTable");
1417
- let ye = ze;
1417
+ nt = new WeakMap(), re = new WeakMap(), ie = new WeakMap(), h(Pe, "NineTable");
1418
+ let ye = Pe;
1418
1419
  customElements.get("nine-table") || customElements.define("nine-table", ye);
1419
- const yt = class yt extends HTMLElement {
1420
+ const mt = class mt extends HTMLElement {
1420
1421
  // πŸ‘ˆ μ»€μŠ€ν…€ μŠ€νƒ€μΌμš© μΊμ‹œ μΆ”κ°€
1421
1422
  constructor() {
1422
1423
  super();
@@ -1427,10 +1428,10 @@ const yt = class yt extends HTMLElement {
1427
1428
  connectedCallback() {
1428
1429
  }
1429
1430
  };
1430
- h(yt, "BasicCellElement"), A(yt, "_styleCache", /* @__PURE__ */ new Map()), A(yt, "_customStyleCache", /* @__PURE__ */ new Map());
1431
- let me = yt;
1431
+ h(mt, "BasicCellElement"), A(mt, "_styleCache", /* @__PURE__ */ new Map()), A(mt, "_customStyleCache", /* @__PURE__ */ new Map());
1432
+ let me = mt;
1432
1433
  var C, Ht, y, Re, qe, Te, ke, Ce;
1433
- const Pe = class Pe extends me {
1434
+ const ze = class ze extends me {
1434
1435
  constructor() {
1435
1436
  super();
1436
1437
  d(this, C);
@@ -1525,8 +1526,8 @@ const Pe = class Pe extends me {
1525
1526
  return parseInt(t(this, y).dataset.row), t(this, Ht).data[e];
1526
1527
  }
1527
1528
  };
1528
- C = new WeakMap(), Ht = new WeakMap(), y = new WeakMap(), Re = new WeakMap(), qe = new WeakMap(), Te = new WeakMap(), ke = new WeakMap(), Ce = new WeakMap(), h(Pe, "CellElement");
1529
- let xe = Pe;
1529
+ C = new WeakMap(), Ht = new WeakMap(), y = new WeakMap(), Re = new WeakMap(), qe = new WeakMap(), Te = new WeakMap(), ke = new WeakMap(), Ce = new WeakMap(), h(ze, "CellElement");
1530
+ let xe = ze;
1530
1531
  const De = class De extends xe {
1531
1532
  constructor() {
1532
1533
  super();
@@ -1540,14 +1541,14 @@ const De = class De extends xe {
1540
1541
  };
1541
1542
  h(De, "EditableCellElement");
1542
1543
  let ve = De;
1543
- var Mt, nt, ut, gt, ne, U, Le;
1544
+ var Mt, ot, gt, bt, ne, U, Le;
1544
1545
  const je = class je extends ve {
1545
1546
  constructor() {
1546
1547
  super();
1547
1548
  d(this, Mt);
1548
- d(this, nt);
1549
- d(this, ut);
1549
+ d(this, ot);
1550
1550
  d(this, gt);
1551
+ d(this, bt);
1551
1552
  d(this, ne);
1552
1553
  d(this, U);
1553
1554
  A(this, "refresh", /* @__PURE__ */ h(() => {
@@ -1586,9 +1587,9 @@ const je = class je extends ve {
1586
1587
  */
1587
1588
  d(this, Le, /* @__PURE__ */ h((e) => {
1588
1589
  if (!["Escape", "Enter", "Tab", "Home", "End", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Backspace", "Delete"].includes(e.code)) {
1589
- if (t(this, nt) == "number") {
1590
+ if (t(this, ot) == "number") {
1590
1591
  let n = [];
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) {
1592
+ 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) {
1592
1593
  var s = e.target.value, i = s.indexOf(".");
1593
1594
  if (i >= 0) {
1594
1595
  var s = s.substr(i + 1, s.length);
@@ -1596,10 +1597,10 @@ const je = class je extends ve {
1596
1597
  }
1597
1598
  }
1598
1599
  }
1599
- t(this, ut) && ninegrid.getByteLength(e.target.value) >= Number(t(this, ut)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
1600
+ t(this, gt) && ninegrid.getByteLength(e.target.value) >= Number(t(this, gt)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
1600
1601
  }
1601
1602
  }, "#onKeyDown"));
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)}`;
1603
+ 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)}`;
1603
1604
  }
1604
1605
  connectedCallback() {
1605
1606
  for (var e = [], s = 0; s < this.attributes.length; s++)
@@ -1612,7 +1613,7 @@ const je = class je extends ve {
1612
1613
  `, super.connectedCallback(), p(this, Mt, this.querySelector("input"));
1613
1614
  }
1614
1615
  };
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");
1616
+ Mt = new WeakMap(), ot = new WeakMap(), gt = new WeakMap(), bt = new WeakMap(), ne = new WeakMap(), U = new WeakMap(), Le = new WeakMap(), h(je, "CellInputText");
1616
1617
  let we = je;
1617
1618
  customElements.get("cell-input-text");
1618
1619
  customElements.get("cell-input") || customElements.define("cell-input", we);