@ninebone/table 0.0.588 β†’ 0.0.590

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 P, S, Q, D, I, V, tt, vt, Se, Ee, Wt, Ot, Bt, wt, St, zt, Dt, Et, Ae, at, At, Pt;
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
- d(this, P);
360
+ d(this, D);
361
361
  d(this, S);
362
362
  d(this, Q);
363
- d(this, D, /* @__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, D).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, D).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, D).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, D).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,11 +439,11 @@ 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
- const e = (t(this, P).data.get() || []).length, s = t(this, I), i = e * s;
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) => {
448
448
  const o = t(this, S).querySelector(n);
449
449
  if (!o) return;
@@ -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, Dt, /* @__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, Pt).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,25 +513,25 @@ 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, D).get(e)) == null ? void 0 : l.length) || 1, c = (t(this, P).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) {
520
520
  f.style.display = "none";
521
521
  return;
522
522
  }
523
- const b = t(this, P).data.get(g);
524
- f.style.display = "", t(this, At).call(this, f, b, g);
523
+ const b = t(this, D).data.get(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
- const s = t(this, P).data.length;
532
+ const s = t(this, D).data.length;
533
533
  if (s === 0) return;
534
- const i = ((f = t(this, D).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) => {
@@ -545,8 +545,8 @@ const Ie = class Ie {
545
545
  E.style.display = "none";
546
546
  return;
547
547
  }
548
- const T = t(this, P).data.get(M);
549
- E.style.display = "", t(this, At).call(this, E, T, M);
548
+ const T = t(this, D).data.get(M);
549
+ E.style.display = "", t(this, Rt).call(this, E, T, M);
550
550
  });
551
551
  });
552
552
  }, "#handleScroll"));
@@ -564,14 +564,14 @@ 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");
571
571
  o && typeof o.refresh == "function" && o.refresh();
572
572
  });
573
573
  }, "#bindRowData"));
574
- d(this, Pt, /* @__PURE__ */ h(() => {
574
+ d(this, Dt, /* @__PURE__ */ h(() => {
575
575
  var c, l, f;
576
576
  W.log("rowManager.#syncHeaderHeights");
577
577
  const r = t(this, S).querySelector(".ng-container-left .ng-part-header table"), e = t(this, S).querySelector(".ng-container-body .ng-part-header table"), s = t(this, S).querySelector(".ng-container-right .ng-part-header table");
@@ -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, P, r.getRootNode().host), p(this, S, r), t(this, Dt).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, D).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
- P = new WeakMap(), S = new WeakMap(), Q = new WeakMap(), D = 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(), Dt = new WeakMap(), Et = new WeakMap(), Ae = new WeakMap(), at = new WeakMap(), At = new WeakMap(), Pt = 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,15 +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
- n.querySelector(".ng-part-header");
702
- const o = document.createElement("div");
703
- o.className = "ng-part-body";
701
+ n.querySelector(".ng-part-header").appendChild(t(this, ct).call(this, t(this, et), i, "header"));
704
702
  const a = document.createElement("div");
705
- a.className = "ng-scroll-content", a.style.position = "relative", a.style.width = "100%", a.appendChild(t(this, Rt).call(this, t(this, lt), i, "body"));
703
+ a.className = "ng-part-body";
706
704
  const c = document.createElement("div");
707
- c.className = "ng-virtual-spacer", c.style.width = "100%", c.style.pointerEvents = "none", a.appendChild(c), o.appendChild(a);
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"));
708
706
  const l = document.createElement("div");
709
- l.className = "ng-part-footer", l.appendChild(t(this, Rt).call(this, t(this, lt), i, "footer")), n.appendChild(o), n.appendChild(l);
707
+ l.className = "ng-virtual-spacer", l.style.width = "100%", l.style.pointerEvents = "none", c.appendChild(l), a.appendChild(c);
708
+ const f = document.createElement("div");
709
+ f.className = "ng-part-footer", f.appendChild(t(this, ct).call(this, t(this, et), i, "footer")), n.appendChild(a), n.appendChild(f);
710
710
  });
711
711
  }, "#renderSplitContainers"));
712
712
  d(this, Yt, /* @__PURE__ */ h(() => {
@@ -721,12 +721,12 @@ const pt = class pt extends HTMLElement {
721
721
  });
722
722
  }, "#updateContainerWidths"));
723
723
  A(this, "generate", /* @__PURE__ */ h((e) => {
724
- 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(() => {
725
725
  var s;
726
726
  (s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
727
727
  }, 0));
728
728
  }, "generate"));
729
- d(this, Rt, /* @__PURE__ */ h((e, s, i) => {
729
+ d(this, ct, /* @__PURE__ */ h((e, s, i) => {
730
730
  const n = e.cloneNode(!0), o = n.querySelector("thead"), a = n.querySelector("tbody"), c = n.querySelector("tfoot");
731
731
  if (i === "header") {
732
732
  if (a && a.remove(), c && c.remove(), e.querySelector("tbody")) {
@@ -742,7 +742,7 @@ const pt = class pt extends HTMLElement {
742
742
  l.remove();
743
743
  }), n;
744
744
  }, "#createSplitTable"));
745
- A(this, "getRowHeight", /* @__PURE__ */ h(() => t(this, et).getRowHeight(), "getRowHeight"));
745
+ A(this, "getRowHeight", /* @__PURE__ */ h(() => t(this, st).getRowHeight(), "getRowHeight"));
746
746
  A(this, "scrollToX", /* @__PURE__ */ h((e) => {
747
747
  const s = this.querySelector(".ng-container-body .ng-part-body");
748
748
  s && (s.scrollLeft = e);
@@ -755,7 +755,7 @@ const pt = class pt extends HTMLElement {
755
755
  t(this, Xt).call(this);
756
756
  }, "#init"));
757
757
  d(this, Xt, /* @__PURE__ */ h(() => {
758
- const e = pt.SCROLLBAR_SIZE;
758
+ const e = yt.SCROLLBAR_SIZE;
759
759
  this.innerHTML = `
760
760
  <style>
761
761
  nine-table-sheet {
@@ -913,7 +913,7 @@ const pt = class pt extends HTMLElement {
913
913
  </div>
914
914
  `;
915
915
  }, "#render"));
916
- 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);
917
917
  }
918
918
  connectedCallback() {
919
919
  t(this, Ut).call(this);
@@ -922,8 +922,8 @@ const pt = class pt extends HTMLElement {
922
922
  this.innerHTML = "", W.log("NineTableSheet destroyed.");
923
923
  }
924
924
  };
925
- 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);
926
- 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;
927
927
  customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", $t);
928
928
  var Kt, qt;
929
929
  const _e = class _e extends HTMLElement {
@@ -1118,31 +1118,31 @@ const Ne = class Ne {
1118
1118
  };
1119
1119
  H = new WeakMap(), Zt = new WeakMap(), Tt = new WeakMap(), Gt = new WeakMap(), h(Ne, "LayoutManager");
1120
1120
  let fe = Ne;
1121
- var kt, ct;
1121
+ var kt, ht;
1122
1122
  const We = class We {
1123
1123
  constructor(r) {
1124
1124
  d(this, kt);
1125
- d(this, ct, -1);
1125
+ d(this, ht, -1);
1126
1126
  A(this, "count", /* @__PURE__ */ h(() => t(this, kt).rawRecords.length, "count"));
1127
1127
  p(this, kt, r);
1128
1128
  }
1129
1129
  get at() {
1130
- return t(this, ct);
1130
+ return t(this, ht);
1131
1131
  }
1132
1132
  set at(r) {
1133
- 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(() => {
1134
1134
  });
1135
1135
  }
1136
1136
  };
1137
- kt = new WeakMap(), ct = new WeakMap(), h(We, "ngRow");
1137
+ kt = new WeakMap(), ht = new WeakMap(), h(We, "ngRow");
1138
1138
  let ue = We;
1139
- 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;
1140
1140
  const O = class O {
1141
1141
  constructor(r, e) {
1142
1142
  d(this, _);
1143
1143
  d(this, k);
1144
1144
  d(this, N, []);
1145
- d(this, ht, []);
1145
+ d(this, dt, []);
1146
1146
  d(this, Jt, 0);
1147
1147
  d(this, Y, []);
1148
1148
  d(this, Qt, /* @__PURE__ */ h(() => {
@@ -1155,7 +1155,7 @@ const O = class O {
1155
1155
  e.__ng || (e.__ng = t(this, Ct).call(this)), e.__ng.height = t(this, Y).slice();
1156
1156
  });
1157
1157
  }, "#initialize"));
1158
- d(this, st, /* @__PURE__ */ h(() => {
1158
+ d(this, rt, /* @__PURE__ */ h(() => {
1159
1159
  t(this, _).shadowRoot.querySelectorAll("nine-table-sheet").forEach((r) => {
1160
1160
  r.invalidate();
1161
1161
  });
@@ -1164,17 +1164,17 @@ const O = class O {
1164
1164
  var n;
1165
1165
  const s = this.getValidData();
1166
1166
  if (!s || s.length <= 0) return;
1167
- if (r == null) return t(this, dt).call(this, s);
1167
+ if (r == null) return t(this, ft).call(this, s);
1168
1168
  if (r < 0 || r >= s.length) return null;
1169
1169
  const i = typeof ((n = t(this, _).fields) == null ? void 0 : n.get) == "function" ? t(this, _).fields.get() : [];
1170
1170
  if (e != null) {
1171
1171
  const o = i.indexOf(e);
1172
1172
  return o >= 0 ? s[r].v[o] : null;
1173
1173
  }
1174
- return t(this, dt).call(this, s[r]);
1174
+ return t(this, ft).call(this, s[r]);
1175
1175
  }, "get"));
1176
1176
  A(this, "set", /* @__PURE__ */ h((r) => {
1177
- this.clear(), this.add(r, !1), t(this, st).call(this);
1177
+ this.clear(), this.add(r, !1), t(this, rt).call(this);
1178
1178
  }, "set"));
1179
1179
  d(this, Ct, /* @__PURE__ */ h(() => ({
1180
1180
  rowState: O.ROW_STATE.EMPTY,
@@ -1186,11 +1186,11 @@ const O = class O {
1186
1186
  _: [0, 0, 0, 0, O.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, Y).slice(), -1, {}, {}]
1187
1187
  }), "#getDefaultMeta"));
1188
1188
  A(this, "reset", /* @__PURE__ */ h(() => {
1189
- p(this, N, []), p(this, ht, []), t(this, st).call(this);
1189
+ p(this, N, []), p(this, dt, []), t(this, rt).call(this);
1190
1190
  }, "reset"));
1191
1191
  A(this, "clear", /* @__PURE__ */ h(() => {
1192
1192
  var r;
1193
- 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();
1194
1194
  }, "clear"));
1195
1195
  d(this, te, /* @__PURE__ */ h((r) => {
1196
1196
  var i;
@@ -1214,7 +1214,7 @@ const O = class O {
1214
1214
  return e || s.forEach((n, o) => {
1215
1215
  const a = t(this, k).rawRecords[i - o];
1216
1216
  a && (a.__ng.rowState = O.ROW_STATE.EMPTY);
1217
- }), t(this, st).call(this), i;
1217
+ }), t(this, rt).call(this), i;
1218
1218
  }, "add"));
1219
1219
  A(this, "delete", /* @__PURE__ */ h((r) => {
1220
1220
  let e = [];
@@ -1225,7 +1225,7 @@ const O = class O {
1225
1225
  n.__ng.rowid === i && (n.__ng.deleted = !0, n.__ng.rowState = O.ROW_STATE.DELETE);
1226
1226
  });
1227
1227
  }
1228
- }), this.resetRecords(), t(this, st).call(this);
1228
+ }), this.resetRecords(), t(this, rt).call(this);
1229
1229
  }, "delete"));
1230
1230
  A(this, "setValue", /* @__PURE__ */ h((r, e, s) => {
1231
1231
  var c;
@@ -1238,14 +1238,14 @@ const O = class O {
1238
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;
1239
1239
  }, "setValue"));
1240
1240
  A(this, "resetRecords", /* @__PURE__ */ h(() => {
1241
- 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) => {
1242
1242
  r.__ng.rowidx = e;
1243
1243
  }), t(this, N).forEach((r, e) => {
1244
1244
  r.__ng.i = e;
1245
1245
  });
1246
1246
  }, "resetRecords"));
1247
1247
  A(this, "getValidData", /* @__PURE__ */ h(() => (t(this, N).length === 0 && t(this, k).rawRecords.length > 0 && this.resetRecords(), t(this, N)), "getValidData"));
1248
- d(this, dt, /* @__PURE__ */ h((r) => {
1248
+ d(this, ft, /* @__PURE__ */ h((r) => {
1249
1249
  var o;
1250
1250
  if (!r) return r;
1251
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) => {
@@ -1260,7 +1260,7 @@ const O = class O {
1260
1260
  p(this, _, r), p(this, k, e), t(this, Qt).call(this);
1261
1261
  }
1262
1262
  get source() {
1263
- return t(this, dt).call(this, t(this, k).rawRecords);
1263
+ return t(this, ft).call(this, t(this, k).rawRecords);
1264
1264
  }
1265
1265
  set source(r) {
1266
1266
  this.clear(), this.add(r, !1);
@@ -1278,7 +1278,7 @@ const O = class O {
1278
1278
  return this.length;
1279
1279
  }
1280
1280
  };
1281
- _ = 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"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1282
1282
  A(O, "ROW_STATE", {
1283
1283
  EMPTY: "EMPTY",
1284
1284
  NORMAL: "NORMAL",
@@ -1287,13 +1287,13 @@ A(O, "ROW_STATE", {
1287
1287
  DELETE: "DELETE"
1288
1288
  });
1289
1289
  let ge = O;
1290
- var rt;
1290
+ var it;
1291
1291
  const Oe = class Oe {
1292
1292
  constructor(r) {
1293
- d(this, rt);
1294
- 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 = () => {
1295
1295
  var e;
1296
- (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();
1297
1297
  }, this.setDataSource = (e) => {
1298
1298
  this.data && this.data.reset(), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.data.set(e || []);
1299
1299
  }, this.getRowState = (e) => {
@@ -1308,13 +1308,13 @@ const Oe = class Oe {
1308
1308
  }, this.setDataSource([]);
1309
1309
  }
1310
1310
  };
1311
- rt = new WeakMap(), h(Oe, "ngDataManager");
1311
+ it = new WeakMap(), h(Oe, "ngDataManager");
1312
1312
  let be = Oe;
1313
- var ft, L, Lt, se;
1313
+ var ut, L, Lt, se;
1314
1314
  const Be = class Be {
1315
1315
  // 🎯 이제 { name: string, type: string } κ°μ²΄λ“€μ˜ λ°°μ—΄λ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.
1316
1316
  constructor(r) {
1317
- d(this, ft);
1317
+ d(this, ut);
1318
1318
  d(this, L, []);
1319
1319
  A(this, "add", /* @__PURE__ */ h((r, e = "string") => {
1320
1320
  r.forEach((s) => {
@@ -1328,8 +1328,8 @@ const Be = class Be {
1328
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);
1329
1329
  }, "#adjust"));
1330
1330
  d(this, se, /* @__PURE__ */ h(() => {
1331
- p(this, L, []), W.log(t(this, ft).querySelectorAll("table"));
1332
- 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"));
1333
1333
  if (!(!r || r.length === 0)) {
1334
1334
  for (const e of r)
1335
1335
  W.log(e), $("[data-bind]", e).each((s, i) => {
@@ -1359,7 +1359,7 @@ const Be = class Be {
1359
1359
  t(this, Lt).call(this);
1360
1360
  }
1361
1361
  }, "#init"));
1362
- p(this, ft, r), t(this, se).call(this);
1362
+ p(this, ut, r), t(this, se).call(this);
1363
1363
  }
1364
1364
  // 🎯 기쑴에 ν•„λ“œ μ΄λ¦„λ§Œ μ“°λ˜ κ³³λ“€κ³Όμ˜ ν˜Έν™˜μ„ μœ„ν•΄ 이름 λ°°μ—΄λ§Œ λ¦¬ν„΄ν•˜λŠ” λ©”μ„œλ“œ μœ μ§€
1365
1365
  get() {
@@ -1381,19 +1381,19 @@ const Be = class Be {
1381
1381
  return t(this, L).some((e) => e.name === r);
1382
1382
  }
1383
1383
  };
1384
- 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");
1385
1385
  let pe = Be;
1386
- var it, re, ie;
1387
- const ze = class ze extends HTMLElement {
1386
+ var nt, re, ie;
1387
+ const Pe = class Pe extends HTMLElement {
1388
1388
  constructor() {
1389
1389
  super();
1390
1390
  //#created = false;
1391
- d(this, it);
1391
+ d(this, nt);
1392
1392
  d(this, re);
1393
1393
  d(this, ie, /* @__PURE__ */ h(() => {
1394
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 } }));
1395
1395
  }, "#init"));
1396
- this.attachShadow({ mode: "open" }), p(this, it, new be(this));
1396
+ this.attachShadow({ mode: "open" }), p(this, nt, new be(this));
1397
1397
  }
1398
1398
  connectedCallback() {
1399
1399
  t(this, ie).call(this);
@@ -1403,21 +1403,21 @@ const ze = class ze extends HTMLElement {
1403
1403
  }
1404
1404
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
1405
1405
  get data() {
1406
- return t(this, it).data;
1406
+ return t(this, nt).data;
1407
1407
  }
1408
1408
  // 🎯 ν–‰(row) κ΄€λ ¨ μ œμ–΄ μ ‘κ·Όμž μ˜€ν”ˆ
1409
1409
  get row() {
1410
- return t(this, it).row;
1410
+ return t(this, nt).row;
1411
1411
  }
1412
1412
  // 🎯 전체 데이터 λ§€λ‹ˆμ € μ ‘κ·Ό ν•„μš”ν•  경우
1413
1413
  get dataManager() {
1414
- return t(this, it);
1414
+ return t(this, nt);
1415
1415
  }
1416
1416
  };
1417
- it = new WeakMap(), re = new WeakMap(), ie = new WeakMap(), h(ze, "NineTable");
1418
- let ye = ze;
1417
+ nt = new WeakMap(), re = new WeakMap(), ie = new WeakMap(), h(Pe, "NineTable");
1418
+ let ye = Pe;
1419
1419
  customElements.get("nine-table") || customElements.define("nine-table", ye);
1420
- const yt = class yt extends HTMLElement {
1420
+ const mt = class mt extends HTMLElement {
1421
1421
  // πŸ‘ˆ μ»€μŠ€ν…€ μŠ€νƒ€μΌμš© μΊμ‹œ μΆ”κ°€
1422
1422
  constructor() {
1423
1423
  super();
@@ -1428,10 +1428,10 @@ const yt = class yt extends HTMLElement {
1428
1428
  connectedCallback() {
1429
1429
  }
1430
1430
  };
1431
- h(yt, "BasicCellElement"), A(yt, "_styleCache", /* @__PURE__ */ new Map()), A(yt, "_customStyleCache", /* @__PURE__ */ new Map());
1432
- let me = yt;
1431
+ h(mt, "BasicCellElement"), A(mt, "_styleCache", /* @__PURE__ */ new Map()), A(mt, "_customStyleCache", /* @__PURE__ */ new Map());
1432
+ let me = mt;
1433
1433
  var C, Ht, y, Re, qe, Te, ke, Ce;
1434
- const De = class De extends me {
1434
+ const ze = class ze extends me {
1435
1435
  constructor() {
1436
1436
  super();
1437
1437
  d(this, C);
@@ -1526,9 +1526,9 @@ const De = class De extends me {
1526
1526
  return parseInt(t(this, y).dataset.row), t(this, Ht).data[e];
1527
1527
  }
1528
1528
  };
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(De, "CellElement");
1530
- let xe = De;
1531
- const Pe = class Pe extends xe {
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;
1531
+ const De = class De extends xe {
1532
1532
  constructor() {
1533
1533
  super();
1534
1534
  }
@@ -1539,16 +1539,16 @@ const Pe = class Pe extends xe {
1539
1539
  return super.refresh();
1540
1540
  }
1541
1541
  };
1542
- h(Pe, "EditableCellElement");
1543
- let ve = Pe;
1544
- var Mt, nt, ut, gt, ne, U, Le;
1542
+ h(De, "EditableCellElement");
1543
+ let ve = De;
1544
+ var Mt, ot, gt, bt, ne, U, Le;
1545
1545
  const je = class je extends ve {
1546
1546
  constructor() {
1547
1547
  super();
1548
1548
  d(this, Mt);
1549
- d(this, nt);
1550
- d(this, ut);
1549
+ d(this, ot);
1551
1550
  d(this, gt);
1551
+ d(this, bt);
1552
1552
  d(this, ne);
1553
1553
  d(this, U);
1554
1554
  A(this, "refresh", /* @__PURE__ */ h(() => {
@@ -1587,9 +1587,9 @@ const je = class je extends ve {
1587
1587
  */
1588
1588
  d(this, Le, /* @__PURE__ */ h((e) => {
1589
1589
  if (!["Escape", "Enter", "Tab", "Home", "End", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Backspace", "Delete"].includes(e.code)) {
1590
- if (t(this, nt) == "number") {
1590
+ if (t(this, ot) == "number") {
1591
1591
  let n = [];
1592
- 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) {
1593
1593
  var s = e.target.value, i = s.indexOf(".");
1594
1594
  if (i >= 0) {
1595
1595
  var s = s.substr(i + 1, s.length);
@@ -1597,10 +1597,10 @@ const je = class je extends ve {
1597
1597
  }
1598
1598
  }
1599
1599
  }
1600
- 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();
1601
1601
  }
1602
1602
  }, "#onKeyDown"));
1603
- 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)}`;
1604
1604
  }
1605
1605
  connectedCallback() {
1606
1606
  for (var e = [], s = 0; s < this.attributes.length; s++)
@@ -1613,7 +1613,7 @@ const je = class je extends ve {
1613
1613
  `, super.connectedCallback(), p(this, Mt, this.querySelector("input"));
1614
1614
  }
1615
1615
  };
1616
- 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");
1617
1617
  let we = je;
1618
1618
  customElements.get("cell-input-text");
1619
1619
  customElements.get("cell-input") || customElements.define("cell-input", we);