@ninebone/table 0.0.750 β†’ 0.0.752

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.
@@ -2,10 +2,10 @@ var fs = Object.defineProperty;
2
2
  var us = (q) => {
3
3
  throw TypeError(q);
4
4
  };
5
- var ys = (q, s, e) => s in q ? fs(q, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : q[s] = e;
5
+ var ps = (q, s, e) => s in q ? fs(q, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : q[s] = e;
6
6
  var h = (q, s) => fs(q, "name", { value: s, configurable: !0 });
7
- var E = (q, s, e) => ys(q, typeof s != "symbol" ? s + "" : s, e), ve = (q, s, e) => s.has(q) || us("Cannot " + e);
8
- var t = (q, s, e) => (ve(q, s, "read from private field"), e ? e.call(q) : s.get(q)), d = (q, s, e) => s.has(q) ? us("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(q) : s.set(q, e), p = (q, s, e, n) => (ve(q, s, "write to private field"), n ? n.call(q, e) : s.set(q, e), e), Q = (q, s, e) => (ve(q, s, "access private method"), e);
7
+ var E = (q, s, e) => ps(q, typeof s != "symbol" ? s + "" : s, e), xe = (q, s, e) => s.has(q) || us("Cannot " + e);
8
+ var t = (q, s, e) => (xe(q, s, "read from private field"), e ? e.call(q) : s.get(q)), d = (q, s, e) => s.has(q) ? us("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(q) : s.set(q, e), p = (q, s, e, n) => (xe(q, s, "write to private field"), n ? n.call(q, e) : s.set(q, e), e), gt = (q, s, e) => (xe(q, s, "access private method"), e);
9
9
  var gs = (q, s, e, n) => ({
10
10
  set _(r) {
11
11
  p(q, s, r, e);
@@ -14,31 +14,31 @@ var gs = (q, s, e, n) => ({
14
14
  return t(q, s, n);
15
15
  }
16
16
  });
17
- import { trace as ms } from "@ninebone/util";
18
- const Xe = class Xe extends ms.constructor {
17
+ import { trace as ys } from "@ninebone/util";
18
+ const Xe = class Xe extends ys.constructor {
19
19
  constructor() {
20
20
  super(), this.init("nine-table", "green");
21
21
  }
22
22
  };
23
23
  h(Xe, "Trace");
24
- let we = Xe;
25
- const S = new we();
26
- var B, K, A, tt, et, st, Vt, nt, Ut;
24
+ let ve = Xe;
25
+ const w = new ve();
26
+ var B, K, A, Q, tt, et, Vt, st, Ut;
27
27
  const Ke = class Ke extends HTMLElement {
28
28
  constructor() {
29
29
  super();
30
30
  d(this, B);
31
31
  d(this, K, !1);
32
32
  d(this, A);
33
+ d(this, Q);
33
34
  d(this, tt);
34
35
  d(this, et);
35
- d(this, st);
36
36
  d(this, Vt, /* @__PURE__ */ h(() => {
37
37
  if (!t(this, B)) return;
38
38
  const e = t(this, B).querySelector(".ng-container-body .ng-part-body");
39
- e && (p(this, st, new ResizeObserver(() => {
39
+ e && (p(this, et, new ResizeObserver(() => {
40
40
  this.refresh();
41
- })), t(this, st).observe(e));
41
+ })), t(this, et).observe(e));
42
42
  }, "#observeResize"));
43
43
  E(this, "refresh", /* @__PURE__ */ h(() => {
44
44
  if (!t(this, B) || !t(this, A) || t(this, K)) return;
@@ -61,7 +61,7 @@ const Ke = class Ke extends HTMLElement {
61
61
  const y = l - f;
62
62
  g > y && (g = y), o.style.left = `${g}px`, t(this, A).left.disabled = g === 0, t(this, A).right.disabled = g >= y - 1;
63
63
  }, "refresh"));
64
- d(this, nt, /* @__PURE__ */ h((e) => {
64
+ d(this, st, /* @__PURE__ */ h((e) => {
65
65
  if (!t(this, A)) return !1;
66
66
  const n = t(this, A).container, r = n.querySelector("table");
67
67
  if (!r) return !1;
@@ -75,16 +75,16 @@ const Ke = class Ke extends HTMLElement {
75
75
  }, "#thumbMoveTo"));
76
76
  d(this, Ut, /* @__PURE__ */ h(() => {
77
77
  const e = /* @__PURE__ */ h((r) => {
78
- clearInterval(t(this, tt)), clearInterval(t(this, et));
78
+ clearInterval(t(this, Q)), clearInterval(t(this, tt));
79
79
  const o = parseInt(t(this, A).thumb.style.left || 0, 10);
80
- t(this, nt).call(this, o + r), p(this, tt, setInterval(() => {
81
- clearInterval(t(this, tt)), p(this, et, setInterval(() => {
80
+ t(this, st).call(this, o + r), p(this, Q, setInterval(() => {
81
+ clearInterval(t(this, Q)), p(this, tt, setInterval(() => {
82
82
  const i = parseInt(t(this, A).thumb.style.left || 0, 10);
83
- t(this, nt).call(this, i + r) || clearInterval(t(this, et));
83
+ t(this, st).call(this, i + r) || clearInterval(t(this, tt));
84
84
  }, 50));
85
85
  }, 500));
86
86
  }, "delayScroll"), n = /* @__PURE__ */ h(() => {
87
- clearInterval(t(this, tt)), clearInterval(t(this, et));
87
+ clearInterval(t(this, Q)), clearInterval(t(this, tt));
88
88
  }, "clearTimer");
89
89
  ["mouseup", "mouseleave", "touchend"].forEach((r) => {
90
90
  t(this, A).left.addEventListener(r, n), t(this, A).right.addEventListener(r, n), t(this, A).track.addEventListener(r, n);
@@ -96,14 +96,14 @@ const Ke = class Ke extends HTMLElement {
96
96
  if (r.button !== 0) return;
97
97
  r.preventDefault();
98
98
  const o = t(this, A).track.getBoundingClientRect(), i = t(this, A).thumb.clientWidth;
99
- t(this, nt).call(this, r.clientX - o.left - i / 2);
99
+ t(this, st).call(this, r.clientX - o.left - i / 2);
100
100
  }), t(this, A).thumb.addEventListener("mousedown", (r) => {
101
101
  if (r.button !== 0) return;
102
102
  r.stopPropagation(), r.preventDefault(), p(this, K, !0), this.shiftX = r.clientX - t(this, A).thumb.getBoundingClientRect().left;
103
103
  const o = /* @__PURE__ */ h((a) => {
104
104
  if (!t(this, K)) return;
105
105
  const c = t(this, A).track.getBoundingClientRect();
106
- t(this, nt).call(this, a.clientX - c.left - this.shiftX);
106
+ t(this, st).call(this, a.clientX - c.left - this.shiftX);
107
107
  }, "onMouseMove"), i = /* @__PURE__ */ h(() => {
108
108
  p(this, K, !1), n(), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", i), this.refresh();
109
109
  }, "onMouseUp");
@@ -195,25 +195,25 @@ const Ke = class Ke extends HTMLElement {
195
195
  e();
196
196
  }
197
197
  disconnectedCallback() {
198
- t(this, st) && t(this, st).disconnect();
198
+ t(this, et) && t(this, et).disconnect();
199
199
  }
200
200
  };
201
- B = new WeakMap(), K = new WeakMap(), A = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), st = new WeakMap(), Vt = new WeakMap(), nt = new WeakMap(), Ut = new WeakMap(), h(Ke, "NineTableHScrollBar");
202
- let Se = Ke;
203
- customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", Se);
204
- var rt, ot, bt, C, Tt, Ct, Xt;
201
+ B = new WeakMap(), K = new WeakMap(), A = new WeakMap(), Q = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), Vt = new WeakMap(), st = new WeakMap(), Ut = new WeakMap(), h(Ke, "NineTableHScrollBar");
202
+ let we = Ke;
203
+ customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", we);
204
+ var nt, rt, bt, C, Tt, Ct, Xt;
205
205
  const Ge = class Ge extends HTMLElement {
206
206
  constructor() {
207
207
  super();
208
+ d(this, nt);
208
209
  d(this, rt);
209
- d(this, ot);
210
210
  d(this, bt, !1);
211
211
  d(this, C);
212
212
  d(this, Tt, 0);
213
213
  d(this, Ct, 0);
214
214
  E(this, "refresh", /* @__PURE__ */ h(() => {
215
- if (S.log("vscrollbar.refresh"), !t(this, rt) || !t(this, C)) return;
216
- const e = t(this, C).container, n = t(this, C).track, r = t(this, C).thumb, o = e.clientHeight, i = t(this, rt).data.length, a = t(this, ot).getRowHeight(), c = i * a;
215
+ if (w.log("vscrollbar.refresh"), !t(this, nt) || !t(this, C)) return;
216
+ const e = t(this, C).container, n = t(this, C).track, r = t(this, C).thumb, o = e.clientHeight, i = t(this, nt).data.length, a = t(this, rt).getRowHeight(), c = i * a;
217
217
  if (c <= o || i === 0) {
218
218
  this.style.display = "none";
219
219
  return;
@@ -224,16 +224,16 @@ const Ge = class Ge extends HTMLElement {
224
224
  const f = Math.max(Math.min(l * (o / c), l), 20);
225
225
  r.style.height = `${f}px`;
226
226
  const u = e.scrollTop, b = Math.max(c - o, 1);
227
- S.log(e, u, b);
227
+ w.log(e, u, b);
228
228
  let g = 0;
229
229
  b > 0 && (g = u / b * (l - f));
230
230
  const y = l - f;
231
231
  g < 0 && (g = 0), g > y && (g = y), r.style.top = `${g}px`, t(this, C).top.disabled = u <= 0, t(this, C).bottom.disabled = u >= b - 1;
232
232
  }, "refresh"));
233
233
  d(this, Xt, /* @__PURE__ */ h(() => {
234
- S.log("nine-table-vscrollbar.#init");
234
+ w.log("nine-table-vscrollbar.#init");
235
235
  const e = t(this, C).container, n = /* @__PURE__ */ h(() => {
236
- const o = (t(this, rt).data.get() || []).length, i = t(this, ot).getRowHeight();
236
+ const o = (t(this, nt).data.get() || []).length, i = t(this, rt).getRowHeight();
237
237
  return o * i;
238
238
  }, "getContentHeight");
239
239
  t(this, C).thumb.addEventListener("mousedown", (r) => {
@@ -243,8 +243,8 @@ const Ge = class Ge extends HTMLElement {
243
243
  if (!t(this, bt)) return;
244
244
  const c = t(this, C).track.getBoundingClientRect(), l = t(this, C).thumb.clientHeight, u = c.height - l, b = a.clientY - t(this, Tt), g = e.clientHeight, y = n(), v = Math.max(y - g, 1);
245
245
  if (u > 0 && v > 0) {
246
- const w = b / u * v;
247
- let m = t(this, Ct) + w;
246
+ const S = b / u * v;
247
+ let m = t(this, Ct) + S;
248
248
  const I = Math.max(0, y - g);
249
249
  m < 0 && (m = 0), m > I && (m = I), e.scrollTop = m;
250
250
  }
@@ -269,7 +269,7 @@ const Ge = class Ge extends HTMLElement {
269
269
  }, "#init"));
270
270
  }
271
271
  connectedCallback() {
272
- p(this, rt, this.getRootNode().host), p(this, ot, this.closest("nine-table-sheet")), this.innerHTML = `
272
+ p(this, nt, this.getRootNode().host), p(this, rt, this.closest("nine-table-sheet")), this.innerHTML = `
273
273
  <style>
274
274
  nine-table-vscrollbar {
275
275
  display: flex;
@@ -334,7 +334,7 @@ const Ge = class Ge extends HTMLElement {
334
334
  <button class='ng-scroll-bottom' disabled><div class='ng-scroll-icon'></div></button>
335
335
  `;
336
336
  const e = /* @__PURE__ */ h(() => {
337
- const n = t(this, ot).querySelector(".ng-container-body .ng-part-body");
337
+ const n = t(this, rt).querySelector(".ng-container-body .ng-part-body");
338
338
  if (!n) {
339
339
  setTimeout(e, 10);
340
340
  return;
@@ -350,32 +350,32 @@ const Ge = class Ge extends HTMLElement {
350
350
  e();
351
351
  }
352
352
  };
353
- rt = new WeakMap(), ot = new WeakMap(), bt = new WeakMap(), C = new WeakMap(), Tt = new WeakMap(), Ct = new WeakMap(), Xt = new WeakMap(), h(Ge, "NineTableVScrollBar");
354
- let Re = Ge;
355
- customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", Re);
356
- var j, R, it, P, D, G, at, kt, ze, We, Kt, Gt, Lt, It, Ht, Zt, Jt, Mt, Be, pt, $t, Qt;
353
+ nt = new WeakMap(), rt = new WeakMap(), bt = new WeakMap(), C = new WeakMap(), Tt = new WeakMap(), Ct = new WeakMap(), Xt = new WeakMap(), h(Ge, "NineTableVScrollBar");
354
+ let Se = Ge;
355
+ customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", Se);
356
+ var j, R, ot, P, D, G, it, kt, Oe, ze, Kt, Gt, Lt, It, Ht, Zt, Jt, Mt, We, pt, $t, Qt;
357
357
  const Ze = class Ze {
358
358
  constructor(s) {
359
359
  d(this, j);
360
360
  d(this, R);
361
- d(this, it);
361
+ d(this, ot);
362
362
  d(this, P, /* @__PURE__ */ new Map());
363
363
  d(this, D, null);
364
364
  d(this, G, null);
365
- d(this, at, 0);
365
+ d(this, it, 0);
366
366
  d(this, kt, 40);
367
+ d(this, Oe, !1);
367
368
  d(this, ze, !1);
368
- d(this, We, !1);
369
369
  //#ticking = false; // 🎯 고속 슀크둀 μŠ€λ‘œν‹€λ§μš© ν”Œλž˜κ·Έ
370
370
  d(this, Kt, 3);
371
371
  E(this, "refresh", /* @__PURE__ */ h(() => {
372
372
  var e;
373
- S.log("rowManager.refresh");
373
+ w.log("rowManager.refresh");
374
374
  const s = t(this, R).querySelector(".ng-container-body .ng-part-body");
375
375
  s && (t(this, Lt).call(this), t(this, It).call(this), t(this, pt).call(this, s.scrollTop), (e = t(this, R).querySelector("nine-table-vscrollbar")) == null || e.refresh());
376
376
  }, "refresh"));
377
377
  E(this, "initialize", /* @__PURE__ */ h(() => {
378
- S.log("rowManager.initialize"), p(this, it, {
378
+ w.log("rowManager.initialize"), p(this, ot, {
379
379
  scrollTables: t(this, R).querySelectorAll(".ng-part-body table"),
380
380
  firstTr: t(this, R).querySelector(".ng-container-body .ng-part-body tbody.bindable-tbody tr:not(.nodata)")
381
381
  }), p(this, D, null), t(this, P).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
@@ -401,13 +401,13 @@ const Ze = class Ze {
401
401
  }, "handleContainerScroll");
402
402
  [s, e, n].forEach((c) => {
403
403
  c == null || c.addEventListener("scroll", (l) => {
404
- S.log(l), S.log("rowManager.scroll event"), a(c);
404
+ w.log(l), w.log("rowManager.scroll event"), a(c);
405
405
  });
406
406
  });
407
407
  }
408
408
  }, "initialize"));
409
409
  d(this, Gt, /* @__PURE__ */ h((s, e) => {
410
- S.log("rowManager.#renderRows");
410
+ w.log("rowManager.#renderRows");
411
411
  const n = t(this, P).get(e);
412
412
  if (!n || n.length === 0) return;
413
413
  const r = s.querySelector(".ng-part-body tbody.bindable-tbody");
@@ -418,17 +418,17 @@ const Ze = class Ze {
418
418
  n.forEach((c) => {
419
419
  i.appendChild(c.cloneNode(!0));
420
420
  });
421
- o ? o.before(i) : r.appendChild(i), e === ".ng-container-body" && (t(this, it).firstTr = r.querySelector("tr:not(.nodata)"));
421
+ o ? o.before(i) : r.appendChild(i), e === ".ng-container-body" && (t(this, ot).firstTr = r.querySelector("tr:not(.nodata)"));
422
422
  }, "#renderRows"));
423
423
  d(this, Lt, /* @__PURE__ */ h(() => {
424
424
  if (t(this, D) !== null && t(this, D) > 0)
425
425
  return t(this, D);
426
426
  const s = t(this, R).querySelector(".ng-container-body .ng-part-body");
427
- S.log("rowManager.#measureAndCacheHeight");
427
+ w.log("rowManager.#measureAndCacheHeight");
428
428
  const e = t(this, P).get(".ng-container-body");
429
429
  if (!e || e.length === 0) throw new Error("invalid dom");
430
430
  const n = s.querySelector("tbody.bindable-tbody");
431
- if (S.log(n), !n) throw new Error("invalid dom");
431
+ if (w.log(n), !n) throw new Error("invalid dom");
432
432
  n.querySelectorAll("tr:not(.nodata)").forEach((b) => b.remove());
433
433
  const r = n.querySelector("tr.nodata"), o = document.createDocumentFragment();
434
434
  e.forEach((b) => {
@@ -448,9 +448,9 @@ const Ze = class Ze {
448
448
  }), u.forEach((b) => b.remove()), i.style.display = a, i.style.visibility = c, i.style.position = l, f <= 0 ? -1 : (p(this, D, f), t(this, Ht).call(this), t(this, D));
449
449
  }, "#measureAndCacheHeight"));
450
450
  d(this, It, /* @__PURE__ */ h(() => {
451
- S.log("rowManager.#updateVirtualScrollHeight");
451
+ w.log("rowManager.#updateVirtualScrollHeight");
452
452
  const e = (t(this, j).data.get() || []).length, n = t(this, D), r = e * n;
453
- S.log("πŸ” [VirtualHeight]", { totalCount: e, rowHeight: n, totalVirtualHeight: r }), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
453
+ w.log("πŸ” [VirtualHeight]", { totalCount: e, rowHeight: n, totalVirtualHeight: r }), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
454
454
  const i = t(this, R).querySelector(o);
455
455
  if (!i) return;
456
456
  const a = i.querySelector(".ng-part-body .ng-virtual-spacer");
@@ -458,8 +458,8 @@ const Ze = class Ze {
458
458
  });
459
459
  }, "#updateVirtualScrollHeight"));
460
460
  d(this, Ht, /* @__PURE__ */ h(() => {
461
- if (t(this, at) > 0 && t(this, D) > 0) {
462
- const s = Math.ceil(t(this, at) / t(this, D));
461
+ if (t(this, it) > 0 && t(this, D) > 0) {
462
+ const s = Math.ceil(t(this, it) / t(this, D));
463
463
  p(this, kt, s + t(this, Kt));
464
464
  }
465
465
  }, "#updateRowCount"));
@@ -467,8 +467,8 @@ const Ze = class Ze {
467
467
  var a, c, l, f, u, b;
468
468
  const s = t(this, R).querySelector(".ng-container-left .ng-part-body table"), e = t(this, R).querySelector(".ng-container-body .ng-part-body table"), n = t(this, R).querySelector(".ng-container-right .ng-part-body table");
469
469
  if (e) {
470
- const g = s ? Array.from(s.querySelectorAll("tbody tr")) : [], y = Array.from(e.querySelectorAll("tbody tr")), v = n ? Array.from(n.querySelectorAll("tbody tr")) : [], w = Math.max(g.length, y.length, v.length);
471
- for (let m = 0; m < w; m++) {
470
+ const g = s ? Array.from(s.querySelectorAll("tbody tr")) : [], y = Array.from(e.querySelectorAll("tbody tr")), v = n ? Array.from(n.querySelectorAll("tbody tr")) : [], S = Math.max(g.length, y.length, v.length);
471
+ for (let m = 0; m < S; m++) {
472
472
  const I = [
473
473
  ((a = g[m]) == null ? void 0 : a.getBoundingClientRect().height) || 0,
474
474
  ((c = y[m]) == null ? void 0 : c.getBoundingClientRect().height) || 0,
@@ -479,8 +479,8 @@ const Ze = class Ze {
479
479
  }
480
480
  const r = t(this, R).querySelector(".ng-container-left .ng-part-footer table"), o = t(this, R).querySelector(".ng-container-body .ng-part-footer table"), i = t(this, R).querySelector(".ng-container-right .ng-part-footer table");
481
481
  if (o) {
482
- const g = r ? Array.from(r.querySelectorAll("tfoot tr")) : [], y = Array.from(o.querySelectorAll("tfoot tr")), v = i ? Array.from(i.querySelectorAll("tfoot tr")) : [], w = Math.max(g.length, y.length, v.length);
483
- for (let m = 0; m < w; m++) {
482
+ const g = r ? Array.from(r.querySelectorAll("tfoot tr")) : [], y = Array.from(o.querySelectorAll("tfoot tr")), v = i ? Array.from(i.querySelectorAll("tfoot tr")) : [], S = Math.max(g.length, y.length, v.length);
483
+ for (let m = 0; m < S; m++) {
484
484
  const I = [
485
485
  ((f = g[m]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
486
486
  ((u = y[m]) == null ? void 0 : u.getBoundingClientRect().height) || 0,
@@ -501,18 +501,18 @@ const Ze = class Ze {
501
501
  const i = n.querySelector(".ng-part-header"), a = n.querySelector(".ng-part-footer");
502
502
  i && (o += i.offsetHeight), a && (o += a.offsetHeight);
503
503
  const c = Math.max(r - o, 100);
504
- t(this, at) !== c && (p(this, at, c), t(this, Ht).call(this), t(this, D) !== null && (t(this, Mt).call(this), this.refresh()));
504
+ t(this, it) !== c && (p(this, it, c), t(this, Ht).call(this), t(this, D) !== null && (t(this, Mt).call(this), this.refresh()));
505
505
  }
506
506
  }
507
507
  })), t(this, G).observe(t(this, R)));
508
508
  }, "#initResizeObserver"));
509
509
  d(this, Mt, /* @__PURE__ */ h(() => {
510
- S.log("rowManager.#renderAllContainers"), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((s) => {
510
+ w.log("rowManager.#renderAllContainers"), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((s) => {
511
511
  const e = t(this, R).querySelector(s);
512
512
  e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Gt).call(this, e, s);
513
513
  }), t(this, Qt).call(this), t(this, Zt).call(this);
514
514
  }, "#renderAllContainers"));
515
- d(this, Be, /* @__PURE__ */ h((s) => {
515
+ d(this, We, /* @__PURE__ */ h((s) => {
516
516
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((e) => {
517
517
  var l;
518
518
  const n = t(this, R).querySelector(e);
@@ -538,14 +538,14 @@ const Ze = class Ze {
538
538
  const n = t(this, j).data.length;
539
539
  if (n === 0) return;
540
540
  const r = ((u = t(this, P).get(".ng-container-body")) == null ? void 0 : u.length) || 1, o = t(this, R).querySelector(".ng-container-body .ng-part-body");
541
- S.log("bodyContainer.clientHeight", o.clientHeight);
541
+ w.log("bodyContainer.clientHeight", o.clientHeight);
542
542
  const i = Math.max(0, n - Math.floor(o.clientHeight / e)), a = Math.min(i, Math.max(0, Math.floor(s / e)));
543
543
  let c = Math.floor(a * e);
544
- S.log(`πŸ“œ [Scroll Calc] maxStartIndex: ${i}, startIndex: ${a}, offsetY: ${c}`), a === i && S.log(`πŸ“œ [Scroll Inspect] scrollTop: ${s}, rowHeight: ${e}, maxStartIndex: ${i}, startIndex: ${a}, offsetY: ${c}`);
545
- const l = t(this, it).firstTr, f = l && l.dataset.row !== void 0 ? parseInt(l.dataset.row, 10) : -1;
546
- (b = t(this, it)) == null || b.scrollTables.forEach((g) => {
544
+ w.log(`πŸ“œ [Scroll Calc] maxStartIndex: ${i}, startIndex: ${a}, offsetY: ${c}`), a === i && w.log(`πŸ“œ [Scroll Inspect] scrollTop: ${s}, rowHeight: ${e}, maxStartIndex: ${i}, startIndex: ${a}, offsetY: ${c}`);
545
+ const l = t(this, ot).firstTr, f = l && l.dataset.row !== void 0 ? parseInt(l.dataset.row, 10) : -1;
546
+ (b = t(this, ot)) == null || b.scrollTables.forEach((g) => {
547
547
  g.style.transform = `translate3d(0, ${c}px, 0)`;
548
- }), f !== a && (S.log(`πŸ”„ [Row Bind Trigger] currentStartIndex(${f}) !== startIndex(${a})`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((g) => {
548
+ }), f !== a && (w.log(`πŸ”„ [Row Bind Trigger] currentStartIndex(${f}) !== startIndex(${a})`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((g) => {
549
549
  const y = t(this, R).querySelector(g);
550
550
  if (!y) return;
551
551
  const v = y.querySelector(".ng-part-body tbody.bindable-tbody");
@@ -584,7 +584,7 @@ const Ze = class Ze {
584
584
  }, "#bindRowData"));
585
585
  d(this, Qt, /* @__PURE__ */ h(() => {
586
586
  var c, l, f;
587
- S.log("rowManager.#syncHeaderHeights");
587
+ w.log("rowManager.#syncHeaderHeights");
588
588
  const s = t(this, R).querySelector(".ng-container-left .ng-part-header table"), e = t(this, R).querySelector(".ng-container-body .ng-part-header table"), n = t(this, R).querySelector(".ng-container-right .ng-part-header table");
589
589
  if (!e) return;
590
590
  const r = s ? Array.from(s.querySelectorAll("tr")) : [], o = Array.from(e.querySelectorAll("tr")), i = n ? Array.from(n.querySelectorAll("tr")) : [], a = Math.max(r.length, o.length, i.length);
@@ -610,8 +610,8 @@ const Ze = class Ze {
610
610
  return ((e = t(this, P).get(s)) == null ? void 0 : e.length) || 1;
611
611
  }
612
612
  };
613
- j = new WeakMap(), R = new WeakMap(), it = new WeakMap(), P = new WeakMap(), D = new WeakMap(), G = new WeakMap(), at = new WeakMap(), kt = new WeakMap(), ze = new WeakMap(), We = new WeakMap(), Kt = new WeakMap(), Gt = new WeakMap(), Lt = new WeakMap(), It = new WeakMap(), Ht = new WeakMap(), Zt = new WeakMap(), Jt = new WeakMap(), Mt = new WeakMap(), Be = new WeakMap(), pt = new WeakMap(), $t = new WeakMap(), Qt = new WeakMap(), h(Ze, "RowManager");
614
- let Ae = Ze;
613
+ j = new WeakMap(), R = new WeakMap(), ot = new WeakMap(), P = new WeakMap(), D = new WeakMap(), G = new WeakMap(), it = new WeakMap(), kt = new WeakMap(), Oe = new WeakMap(), ze = new WeakMap(), Kt = new WeakMap(), Gt = new WeakMap(), Lt = new WeakMap(), It = new WeakMap(), Ht = new WeakMap(), Zt = new WeakMap(), Jt = new WeakMap(), Mt = new WeakMap(), We = new WeakMap(), pt = new WeakMap(), $t = new WeakMap(), Qt = new WeakMap(), h(Ze, "RowManager");
614
+ let Re = Ze;
615
615
  const te = class te {
616
616
  /**
617
617
  * 🎯 λ ˆμ΄μ•„μ›ƒ λ‚΄μ˜ μ—¬λŸ¬ rawTables 배열을 μΌκ΄„λ‘œ λ°›μ•„ 단일 λ§ˆμŠ€ν„° ν…œν”Œλ¦ΏμœΌλ‘œ 사전 μ»΄νŒŒμΌν•©λ‹ˆλ‹€.
@@ -630,8 +630,8 @@ const te = class te {
630
630
  if (l.children.length > 0 && l.firstElementChild.tagName.includes("-")) return;
631
631
  let u = `cell-${f}`;
632
632
  const b = l.getAttribute("data-bind"), g = l.getAttribute("data-expr"), y = l.getAttribute("maxbyte"), v = l.getAttribute("type");
633
- let w = [];
634
- b && w.push(`data-bind="${b}"`), g && w.push(`data-expr="${g}"`), y && w.push(`maxbyte="${y}"`), v && w.push(`type="${v}"`), l.innerHTML = `<${u} ${w.join(" ")}></${u}>`;
633
+ let S = [];
634
+ b && S.push(`data-bind="${b}"`), g && S.push(`data-expr="${g}"`), y && S.push(`maxbyte="${y}"`), v && S.push(`type="${v}"`), l.innerHTML = `<${u} ${S.join(" ")}></${u}>`;
635
635
  }), a.querySelectorAll("tbody td, tfoot td").forEach((l) => {
636
636
  l.setAttribute("tabindex", "0");
637
637
  });
@@ -659,24 +659,24 @@ const te = class te {
659
659
  const g = Array.from(Array(u), () => Array(b).fill(null));
660
660
  l.forEach((y) => {
661
661
  const v = y.sectionRowIndex;
662
- let w = 0;
662
+ let S = 0;
663
663
  Array.from(y.querySelectorAll("th,td")).forEach((m) => {
664
664
  for (let H = 0; H < g[v].length; H++)
665
665
  if (g[v][H] === null) {
666
- w = H;
666
+ S = H;
667
667
  break;
668
668
  }
669
669
  const I = m.rowSpan || 1, T = m.colSpan || 1;
670
670
  for (let H = 0; H < I; H++)
671
671
  for (let F = 0; F < T; F++)
672
- v + H < u && w + F < b && (g[v + H][w + F] = H === 0 && F === 0 ? "1" : "0");
672
+ v + H < u && S + F < b && (g[v + H][S + F] = H === 0 && F === 0 ? "1" : "0");
673
673
  });
674
674
  }), l.forEach((y) => {
675
675
  const v = y.sectionRowIndex;
676
- Array.from(y.querySelectorAll("th,td")).forEach((w) => {
676
+ Array.from(y.querySelectorAll("th,td")).forEach((S) => {
677
677
  for (let m = 0; m < g[v].length; m++)
678
678
  if (g[v][m] === "1") {
679
- w.dataset.col = m, g[v][m] = "0";
679
+ S.dataset.col = m, g[v][m] = "0";
680
680
  break;
681
681
  }
682
682
  });
@@ -692,7 +692,7 @@ const te = class te {
692
692
  // 🎯 [μΆ”κ°€] td/th에 μ„ μ–Έλœ cell-type 속성을 읽어 μ»€μŠ€ν…€ νƒœκ·Έλ‘œ μžλ™ 감싸기
693
693
  };
694
694
  h(te, "TableCompiler");
695
- let Ee = te;
695
+ let Ae = te;
696
696
  var _, Y, U, At, bs;
697
697
  const Je = class Je {
698
698
  constructor(s) {
@@ -701,7 +701,7 @@ const Je = class Je {
701
701
  d(this, Y, { startRow: -1, startCol: -1, endRow: -1, endCol: -1 });
702
702
  E(this, "render", /* @__PURE__ */ h(() => {
703
703
  const { startRow: s, startCol: e, endRow: n, endCol: r } = t(this, Y);
704
- S.log("🎨 [CellSelection.render] Rendering range ->", t(this, Y));
704
+ w.log("🎨 [CellSelection.render] Rendering range ->", t(this, Y));
705
705
  const o = t(this, _).querySelectorAll(
706
706
  ".ng-container-left .ng-part-body, .ng-container-body .ng-part-body, .ng-container-right .ng-part-body"
707
707
  );
@@ -710,33 +710,32 @@ const Je = class Je {
710
710
  c.classList.remove("selected", "selected-top", "selected-bottom", "selected-left", "selected-right");
711
711
  });
712
712
  }), s < 0 || e < 0) {
713
- S.log("⚠️ [CellSelection.render] Range is invalid (< 0), skipping render.");
713
+ w.log("⚠️ [CellSelection.render] Range is invalid (< 0), skipping render.");
714
714
  return;
715
715
  }
716
716
  let i = 0;
717
717
  o.forEach((a) => {
718
718
  a.querySelectorAll("tbody tr").forEach((c) => {
719
- if (c.classList.contains("nodata")) return;
720
- const { matrixRow: l } = Q(this, U, At).call(this, c);
719
+ const { matrixRow: l } = gt(this, U, At).call(this, c);
721
720
  l < 0 || c.querySelectorAll("td, th").forEach((f) => {
722
721
  const u = parseInt(f.dataset.col, 10);
723
722
  if (isNaN(u)) return;
724
723
  const b = parseInt(f.rowSpan || 1, 10), g = parseInt(f.colSpan || 1, 10), y = l + b - 1, v = u + g - 1;
725
- y >= s && l <= n && v >= e && u <= r && (i++, f.classList.add("selected"), l <= s && f.classList.add("selected-top"), y >= n && f.classList.add("selected-bottom"), u <= e && f.classList.add("selected-left"), v >= r && f.classList.add("selected-right"));
724
+ y >= s && l <= n && v >= e && u <= r && (i++, f.classList.add("selected"), w.log(f, s, e, n, r), l <= s && f.classList.add("selected-top"), y >= n && f.classList.add("selected-bottom"), u <= e && f.classList.add("selected-left"), v >= r && f.classList.add("selected-right"));
726
725
  });
727
726
  });
728
- }), S.log(`✨ [CellSelection.render] Total rendered cells marked: ${i}`);
727
+ }), w.log(`✨ [CellSelection.render] Total rendered cells marked: ${i}`);
729
728
  }, "render"));
730
- p(this, _, s), Q(this, U, bs).call(this), t(this, _).querySelectorAll(
729
+ p(this, _, s), gt(this, U, bs).call(this), t(this, _).querySelectorAll(
731
730
  ".ng-container-left .ng-part-body, .ng-container-body .ng-part-body, .ng-container-right .ng-part-body"
732
731
  ).forEach((n) => {
733
732
  n.addEventListener("scroll", () => {
734
733
  t(this, Y).startRow >= 0 && t(this, Y).startCol >= 0 && this.render();
735
734
  });
736
- }), S.log("🎯 [CellSelection] Initialized");
735
+ }), w.log("🎯 [CellSelection] Initialized");
737
736
  }
738
737
  setRange(s, e, n, r) {
739
- S.log(`πŸ” [CellSelection.setRange] Input -> startRow: ${s}, startCol: ${e}, endRow: ${n}, endCol: ${r}`);
738
+ w.log(`πŸ” [CellSelection.setRange] Input -> startRow: ${s}, startCol: ${e}, endRow: ${n}, endCol: ${r}`);
740
739
  let o = Math.min(s, n), i = Math.max(s, n), a = Math.min(e, r), c = Math.max(e, r);
741
740
  const l = t(this, _).querySelectorAll(
742
741
  ".ng-container-left .ng-part-body, .ng-container-body .ng-part-body, .ng-container-right .ng-part-body"
@@ -746,19 +745,19 @@ const Je = class Je {
746
745
  f = !1, u++, l.forEach((b) => {
747
746
  b.querySelectorAll("tbody tr").forEach((g) => {
748
747
  if (g.classList.contains("nodata")) return;
749
- const { matrixRow: y } = Q(this, U, At).call(this, g);
748
+ const { matrixRow: y } = gt(this, U, At).call(this, g);
750
749
  y < 0 || g.querySelectorAll("td, th").forEach((v) => {
751
- const w = parseInt(v.dataset.col, 10);
752
- if (isNaN(w)) return;
753
- const m = parseInt(v.rowSpan || 1, 10), I = parseInt(v.colSpan || 1, 10), T = y + m - 1, H = w + I - 1;
754
- if (T >= o && y <= i && H >= a && w <= c) {
755
- const X = Math.min(o, y), cs = Math.max(i, T), hs = Math.min(a, w), ds = Math.max(c, H);
750
+ const S = parseInt(v.dataset.col, 10);
751
+ if (isNaN(S)) return;
752
+ const m = parseInt(v.rowSpan || 1, 10), I = parseInt(v.colSpan || 1, 10), T = y + m - 1, H = S + I - 1;
753
+ if (T >= o && y <= i && H >= a && S <= c) {
754
+ const X = Math.min(o, y), cs = Math.max(i, T), hs = Math.min(a, S), ds = Math.max(c, H);
756
755
  (X !== o || cs !== i || hs !== a || ds !== c) && (o = X, i = cs, a = hs, c = ds, f = !0);
757
756
  }
758
757
  });
759
758
  });
760
759
  });
761
- p(this, Y, { startRow: o, startCol: a, endRow: i, endCol: c }), S.log("πŸ“¦ [CellSelection.setRange] Final Range ->", t(this, Y)), this.render();
760
+ p(this, Y, { startRow: o, startCol: a, endRow: i, endCol: c }), w.log("πŸ“¦ [CellSelection.setRange] Final Range ->", t(this, Y)), this.render();
762
761
  }
763
762
  };
764
763
  _ = new WeakMap(), Y = new WeakMap(), U = new WeakSet(), At = /* @__PURE__ */ h(function(s) {
@@ -770,7 +769,7 @@ _ = new WeakMap(), Y = new WeakMap(), U = new WeakSet(), At = /* @__PURE__ */ h(
770
769
  }, "#getMatrixRow"), bs = /* @__PURE__ */ h(function() {
771
770
  const s = t(this, _).querySelector(".ng-container-top");
772
771
  if (!s) {
773
- S.log("❌ [CellSelection] .ng-container-top not found!");
772
+ w.log("❌ [CellSelection] .ng-container-top not found!");
774
773
  return;
775
774
  }
776
775
  s.addEventListener("mousedown", (e) => {
@@ -778,53 +777,53 @@ _ = new WeakMap(), Y = new WeakMap(), U = new WeakSet(), At = /* @__PURE__ */ h(
778
777
  const n = e.target.closest("td, th");
779
778
  if (!n || n.dataset.row === void 0 || n.dataset.col === void 0 || n.closest("tr").classList.contains("nodata")) return;
780
779
  t(this, _).style.userSelect = "none", t(this, _).style.webkitUserSelect = "none";
781
- const r = n.closest("tr"), { matrixRow: o } = Q(this, U, At).call(this, r), i = parseInt(n.dataset.col, 10);
780
+ const r = n.closest("tr"), { matrixRow: o } = gt(this, U, At).call(this, r), i = parseInt(n.dataset.col, 10);
782
781
  if (o < 0) {
783
782
  t(this, _).style.userSelect = "", t(this, _).style.webkitUserSelect = "";
784
783
  return;
785
784
  }
786
- S.log(`πŸ–±οΈ [MouseDown Success] startRow: ${o}, startCol: ${i}`), this.setRange(o, i, o, i);
785
+ w.log(`πŸ–±οΈ [MouseDown Success] startRow: ${o}, startCol: ${i}`), this.setRange(o, i, o, i);
787
786
  const a = /* @__PURE__ */ h((l) => {
788
787
  const f = document.elementFromPoint(l.clientX, l.clientY);
789
788
  let u = f == null ? void 0 : f.closest("td, th");
790
789
  if (!u || !t(this, _).contains(u)) {
791
790
  const v = t(this, _).querySelectorAll(".ng-part-body tbody tr:not(.nodata) td, .ng-part-body tbody tr:not(.nodata) th");
792
- for (const w of v) {
793
- const m = w.getBoundingClientRect();
791
+ for (const S of v) {
792
+ const m = S.getBoundingClientRect();
794
793
  if (l.clientX >= m.left && l.clientX <= m.right && l.clientY >= m.top && l.clientY <= m.bottom) {
795
- u = w;
794
+ u = S;
796
795
  break;
797
796
  }
798
797
  }
799
798
  }
800
799
  if (!u || u.dataset.row === void 0 || u.dataset.col === void 0 || u.closest("tr").classList.contains("nodata")) return;
801
- const b = u.closest("tr"), { matrixRow: g } = Q(this, U, At).call(this, b), y = parseInt(u.dataset.col, 10);
800
+ const b = u.closest("tr"), { matrixRow: g } = gt(this, U, At).call(this, b), y = parseInt(u.dataset.col, 10);
802
801
  g < 0 || this.setRange(o, i, g, y);
803
802
  }, "onMouseMove"), c = /* @__PURE__ */ h(() => {
804
- S.log("πŸ–±οΈ [MouseUp] Drag ended."), t(this, _).style.userSelect = "", t(this, _).style.webkitUserSelect = "", document.removeEventListener("mousemove", a), document.removeEventListener("mouseup", c);
803
+ w.log("πŸ–±οΈ [MouseUp] Drag ended."), t(this, _).style.userSelect = "", t(this, _).style.webkitUserSelect = "", document.removeEventListener("mousemove", a), document.removeEventListener("mouseup", c);
805
804
  }, "onMouseUp");
806
805
  document.addEventListener("mousemove", a), document.addEventListener("mouseup", c);
807
806
  });
808
807
  }, "#initEvents"), h(Je, "CellSelection");
809
- let qe = Je;
810
- var V, lt, ee, se, _t, ne, ps;
808
+ let Ee = Je;
809
+ var V, at, ee, se, _t, Be, ms;
811
810
  const Qe = class Qe {
812
811
  // 🎯 ν‚€λ³΄λ“œ λ„€λΉ„κ²Œμ΄μ…˜ 쀑 슀크둀 튐 λ°©μ§€ ν”Œλž˜κ·Έ
813
812
  constructor(s) {
814
- d(this, ne);
813
+ d(this, Be);
815
814
  d(this, V);
816
- d(this, lt, null);
815
+ d(this, at, null);
817
816
  d(this, ee, -1);
818
817
  d(this, se, -1);
819
818
  d(this, _t, !1);
820
- p(this, V, s), Q(this, ne, ps).call(this), S.log("🎯 [CellNavigation] Initialized");
819
+ p(this, V, s), w.log("🎯 [CellNavigation] Initialized");
821
820
  }
822
821
  get currentCell() {
823
- return t(this, lt);
822
+ return t(this, at);
824
823
  }
825
824
  set currentCell(s) {
826
825
  if (!s) return;
827
- p(this, lt, s), s.focus({ preventScroll: !0 });
826
+ p(this, at, s), s.focus({ preventScroll: !0 });
828
827
  const e = parseInt(s.dataset.row, 10), n = parseInt(s.dataset.col, 10);
829
828
  if (!isNaN(e) && !isNaN(n)) {
830
829
  p(this, ee, e), p(this, se, n);
@@ -839,8 +838,8 @@ const Qe = class Qe {
839
838
  }
840
839
  moveCell(s) {
841
840
  var I, T, H, F;
842
- if (!t(this, lt)) return;
843
- const e = t(this, lt), n = e.closest("tr"), r = parseInt(e.dataset.row, 10), o = parseInt(e.dataset.col, 10), i = n == null ? void 0 : n.closest("tbody"), c = Array.from(i.querySelectorAll("tr:not(.nodata)")).filter((X) => parseInt(X.dataset.row, 10) === r), l = c.length > 0 ? c.length : 1, f = c.indexOf(n);
841
+ if (!t(this, at)) return;
842
+ const e = t(this, at), n = e.closest("tr"), r = parseInt(e.dataset.row, 10), o = parseInt(e.dataset.col, 10), i = n == null ? void 0 : n.closest("tbody"), c = Array.from(i.querySelectorAll("tr:not(.nodata)")).filter((X) => parseInt(X.dataset.row, 10) === r), l = c.length > 0 ? c.length : 1, f = c.indexOf(n);
844
843
  let u = r, b = f, g = o;
845
844
  switch (s.code) {
846
845
  case "Tab":
@@ -869,48 +868,48 @@ const Qe = class Qe {
869
868
  }
870
869
  }
871
870
  };
872
- V = new WeakMap(), lt = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), _t = new WeakMap(), ne = new WeakSet(), ps = /* @__PURE__ */ h(function() {
871
+ V = new WeakMap(), at = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), _t = new WeakMap(), Be = new WeakSet(), ms = /* @__PURE__ */ h(function() {
873
872
  t(this, V).addEventListener("mousedown", (s) => {
874
- S.log(s);
873
+ w.log(s);
875
874
  const e = s.target.closest("td, th");
876
875
  !e || e.dataset.row === void 0 || e.dataset.col === void 0 || e.closest("tr").classList.contains("nodata") || (this.currentCell = e);
877
876
  }), t(this, V).addEventListener("keydown", (s) => {
878
- S.log(s), ["Tab", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(s.code) && this.moveCell(s);
877
+ w.log(s), ["Tab", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(s.code) && this.moveCell(s);
879
878
  });
880
879
  }, "#initEvents"), h(Qe, "CellNavigation");
881
- let Te = Qe;
882
- var re, ct, ht, Nt, Dt, oe, ie, yt, ae, le;
880
+ let qe = Qe;
881
+ var ne, lt, ct, Nt, Dt, re, oe, yt, ie, ae;
883
882
  const Et = class Et extends HTMLElement {
884
883
  constructor() {
885
884
  super();
886
- d(this, re);
887
- d(this, ct, null);
888
- d(this, ht);
885
+ d(this, ne);
886
+ d(this, lt, null);
887
+ d(this, ct);
889
888
  d(this, Nt);
890
889
  d(this, Dt);
891
890
  E(this, "invalidate", /* @__PURE__ */ h(() => {
892
- S.log("sheet.invalidate()"), t(this, ht).refresh();
891
+ w.log("sheet.invalidate()"), t(this, ct).refresh();
893
892
  }, "invalidate"));
894
893
  E(this, "generate", /* @__PURE__ */ h((e) => {
895
- if (S.log("sheet.generate()"), !e) return;
896
- p(this, ct, Ee.compile(e)), t(this, oe).call(this), t(this, ie).call(this);
894
+ if (w.log("sheet.generate()"), !e) return;
895
+ p(this, lt, Ae.compile(e)), t(this, re).call(this), t(this, oe).call(this);
897
896
  const n = this.querySelector(".ng-container-body .ng-part-header"), r = this.querySelector(".ng-container-body .ng-part-footer"), o = this.querySelector(".ng-nodata-overlay");
898
- n && o && (o.style.top = `${n.offsetHeight}px`), r && o && (o.style.bottom = `${r.offsetHeight}px`), t(this, ht).initialize(), setTimeout(() => {
897
+ n && o && (o.style.top = `${n.offsetHeight}px`), r && o && (o.style.bottom = `${r.offsetHeight}px`), t(this, ct).initialize(), setTimeout(() => {
899
898
  var i;
900
899
  (i = this.querySelector("nine-table-hscrollbar")) == null || i.refresh();
901
900
  }, 0);
902
901
  }, "generate"));
903
- d(this, oe, /* @__PURE__ */ h(() => {
902
+ d(this, re, /* @__PURE__ */ h(() => {
904
903
  [
905
904
  { selector: ".ng-container-body", type: null },
906
905
  { selector: ".ng-container-left", type: "left" },
907
906
  { selector: ".ng-container-right", type: "right" }
908
907
  ].forEach(({ selector: n, type: r }) => {
909
908
  var o, i, a;
910
- (o = this.querySelector(`${n} .ng-part-header`)) == null || o.appendChild(t(this, yt).call(this, t(this, ct), r, "header")), (i = this.querySelector(`${n} .ng-virtual-spacer`)) == null || i.before(t(this, yt).call(this, t(this, ct), r, "body")), (a = this.querySelector(`${n} .ng-part-footer`)) == null || a.appendChild(t(this, yt).call(this, t(this, ct), r, "footer"));
909
+ (o = this.querySelector(`${n} .ng-part-header`)) == null || o.appendChild(t(this, yt).call(this, t(this, lt), r, "header")), (i = this.querySelector(`${n} .ng-virtual-spacer`)) == null || i.before(t(this, yt).call(this, t(this, lt), r, "body")), (a = this.querySelector(`${n} .ng-part-footer`)) == null || a.appendChild(t(this, yt).call(this, t(this, lt), r, "footer"));
911
910
  });
912
911
  }, "#renderSplitContainers"));
913
- d(this, ie, /* @__PURE__ */ h(() => {
912
+ d(this, oe, /* @__PURE__ */ h(() => {
914
913
  ["left", "right", "body"].forEach((e) => {
915
914
  const n = this.querySelector(`.ng-container-${e}`), r = n == null ? void 0 : n.querySelectorAll("table");
916
915
  if (!n || !r || r.length === 0) return;
@@ -937,7 +936,7 @@ const Et = class Et extends HTMLElement {
937
936
  l.remove();
938
937
  }), o;
939
938
  }, "#createSplitTable"));
940
- E(this, "getRowHeight", /* @__PURE__ */ h(() => t(this, ht).getRowHeight(), "getRowHeight"));
939
+ E(this, "getRowHeight", /* @__PURE__ */ h(() => t(this, ct).getRowHeight(), "getRowHeight"));
941
940
  E(this, "scrollToX", /* @__PURE__ */ h((e) => {
942
941
  const n = this.querySelector(".ng-container-body .ng-part-body");
943
942
  n && (n.scrollLeft = e);
@@ -946,10 +945,10 @@ const Et = class Et extends HTMLElement {
946
945
  const n = this.querySelector(".ng-container-body .ng-part-body");
947
946
  n && (n.scrollTop = e);
948
947
  }, "scrollToY"));
949
- d(this, ae, /* @__PURE__ */ h(() => {
950
- t(this, le).call(this), p(this, Nt, new qe(this)), p(this, Dt, new Te(this));
948
+ d(this, ie, /* @__PURE__ */ h(() => {
949
+ t(this, ae).call(this), p(this, Nt, new Ee(this)), p(this, Dt, new qe(this));
951
950
  }, "#init"));
952
- d(this, le, /* @__PURE__ */ h(() => {
951
+ d(this, ae, /* @__PURE__ */ h(() => {
953
952
  const e = Et.SCROLLBAR_SIZE;
954
953
  this.innerHTML = `
955
954
  <style>
@@ -1151,10 +1150,10 @@ const Et = class Et extends HTMLElement {
1151
1150
  </div>
1152
1151
  `;
1153
1152
  }, "#render"));
1154
- p(this, ht, new Ae(this)), p(this, re, this.getRootNode().host);
1153
+ p(this, ct, new Re(this)), p(this, ne, this.getRootNode().host);
1155
1154
  }
1156
1155
  connectedCallback() {
1157
- t(this, ae).call(this);
1156
+ t(this, ie).call(this);
1158
1157
  }
1159
1158
  get selection() {
1160
1159
  return t(this, Nt);
@@ -1163,17 +1162,17 @@ const Et = class Et extends HTMLElement {
1163
1162
  return t(this, Dt);
1164
1163
  }
1165
1164
  disconnectedCallback() {
1166
- this.innerHTML = "", S.log("NineTableSheet destroyed.");
1165
+ this.innerHTML = "", w.log("NineTableSheet destroyed.");
1167
1166
  }
1168
1167
  };
1169
- re = new WeakMap(), ct = new WeakMap(), ht = new WeakMap(), Nt = new WeakMap(), Dt = new WeakMap(), oe = new WeakMap(), ie = new WeakMap(), yt = new WeakMap(), ae = new WeakMap(), le = new WeakMap(), h(Et, "NineTableSheet"), E(Et, "SCROLLBAR_SIZE", 16);
1168
+ ne = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), Nt = new WeakMap(), Dt = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), yt = new WeakMap(), ie = new WeakMap(), ae = new WeakMap(), h(Et, "NineTableSheet"), E(Et, "SCROLLBAR_SIZE", 16);
1170
1169
  let Yt = Et;
1171
1170
  customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", Yt);
1172
- var ce, Ot;
1171
+ var le, Ot;
1173
1172
  const ts = class ts extends HTMLElement {
1174
1173
  constructor() {
1175
1174
  super();
1176
- d(this, ce, /* @__PURE__ */ h(() => {
1175
+ d(this, le, /* @__PURE__ */ h(() => {
1177
1176
  var e;
1178
1177
  (e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (n) => {
1179
1178
  var i;
@@ -1187,8 +1186,8 @@ const ts = class ts extends HTMLElement {
1187
1186
  Array.from(this.querySelectorAll("nine-splitter")).forEach((g) => g.style.setProperty("display", "none"));
1188
1187
  const b = f.filter((g) => g.classList.contains("active"));
1189
1188
  b.length < 2 || b.forEach((g) => {
1190
- const y = parseInt(g.getAttribute("data-index"), 10), v = this.querySelector(`nine-splitter[data-split-index="${y}"]`), w = f[y + 1];
1191
- v && w && w.classList.contains("active") && v.style.setProperty("display", "flex");
1189
+ const y = parseInt(g.getAttribute("data-index"), 10), v = this.querySelector(`nine-splitter[data-split-index="${y}"]`), S = f[y + 1];
1190
+ v && S && S.classList.contains("active") && v.style.setProperty("display", "flex");
1192
1191
  });
1193
1192
  }, "updateSplitters"), o = this.querySelector(".nine-tab-bar"), i = this.querySelector("nine-table-sheets-body"), a = o.querySelectorAll(".nine-tab-item"), c = i.querySelectorAll("nine-table-sheet");
1194
1193
  if (!a[e]) return;
@@ -1214,18 +1213,18 @@ const ts = class ts extends HTMLElement {
1214
1213
  }, "#switchSheet"));
1215
1214
  }
1216
1215
  connectedCallback() {
1217
- t(this, ce).call(this);
1216
+ t(this, le).call(this);
1218
1217
  }
1219
1218
  };
1220
- ce = new WeakMap(), Ot = new WeakMap(), h(ts, "NineTableSheets");
1221
- let Ce = ts;
1222
- customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Ce);
1223
- var N, he, zt, de;
1219
+ le = new WeakMap(), Ot = new WeakMap(), h(ts, "NineTableSheets");
1220
+ let Te = ts;
1221
+ customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Te);
1222
+ var N, ce, zt, he;
1224
1223
  const es = class es {
1225
1224
  constructor(s) {
1226
1225
  d(this, N);
1227
- d(this, he, /* @__PURE__ */ h(() => {
1228
- t(this, de).call(this), new ResizeObserver((s) => {
1226
+ d(this, ce, /* @__PURE__ */ h(() => {
1227
+ t(this, he).call(this), new ResizeObserver((s) => {
1229
1228
  for (let e of s)
1230
1229
  t(this, N).getAttribute("auto-height") === "true" && t(this, zt).call(this);
1231
1230
  }).observe(t(this, N));
@@ -1237,7 +1236,7 @@ const es = class es {
1237
1236
  const e = parseInt(t(this, N).getAttribute("max-display-row"), 10) || 10, n = Math.max(...s.map((f) => f.getRowHeight())), r = (c = t(this, N).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, o = (l = t(this, N).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, i = Yt.SCROLLBAR_SIZE, a = e * n + r + o + i;
1238
1237
  t(this, N).style.height = `${a}px`;
1239
1238
  }, "#applyAutoHeight"));
1240
- d(this, de, /* @__PURE__ */ h(() => {
1239
+ d(this, he, /* @__PURE__ */ h(() => {
1241
1240
  const e = Array.from(t(this, N).children).filter((c) => c.tagName === "TABLE"), n = t(this, N).getAttribute("auto-height") === "true", r = e.length, o = e.map((c, l) => {
1242
1241
  const u = `<nine-table-sheet class="${l === 0 ? "active" : ""}" data-index="${l}"></nine-table-sheet>`, b = l < r - 1 ? `<nine-splitter class="h" data-split-index="${l}"></nine-splitter>` : "";
1243
1242
  return u + b;
@@ -1370,11 +1369,11 @@ const es = class es {
1370
1369
  });
1371
1370
  });
1372
1371
  }, "#render"));
1373
- p(this, N, s), t(this, he).call(this);
1372
+ p(this, N, s), t(this, ce).call(this);
1374
1373
  }
1375
1374
  };
1376
- N = new WeakMap(), he = new WeakMap(), zt = new WeakMap(), de = new WeakMap(), h(es, "LayoutManager");
1377
- let ke = es;
1375
+ N = new WeakMap(), ce = new WeakMap(), zt = new WeakMap(), he = new WeakMap(), h(es, "LayoutManager");
1376
+ let Ce = es;
1378
1377
  var Wt, mt;
1379
1378
  const ss = class ss {
1380
1379
  constructor(s) {
@@ -1392,17 +1391,17 @@ const ss = class ss {
1392
1391
  }
1393
1392
  };
1394
1393
  Wt = new WeakMap(), mt = new WeakMap(), h(ss, "ngRow");
1395
- let Le = ss;
1396
- var O, k, z, xt, fe, Z, ue, dt, Bt, ge, be, vt;
1394
+ let ke = ss;
1395
+ var O, k, z, xt, de, Z, fe, ht, Bt, ue, ge, vt;
1397
1396
  const W = class W {
1398
1397
  constructor(s, e) {
1399
1398
  d(this, O);
1400
1399
  d(this, k);
1401
1400
  d(this, z, []);
1402
1401
  d(this, xt, []);
1403
- d(this, fe, 0);
1402
+ d(this, de, 0);
1404
1403
  d(this, Z, []);
1405
- d(this, ue, /* @__PURE__ */ h(() => {
1404
+ d(this, fe, /* @__PURE__ */ h(() => {
1406
1405
  p(this, Z, []);
1407
1406
  const s = t(this, O).template || [];
1408
1407
  Array.from(s).forEach((e) => {
@@ -1412,7 +1411,7 @@ const W = class W {
1412
1411
  e.__ng || (e.__ng = t(this, Bt).call(this)), e.__ng.height = t(this, Z).slice();
1413
1412
  });
1414
1413
  }, "#initialize"));
1415
- d(this, dt, /* @__PURE__ */ h(() => {
1414
+ d(this, ht, /* @__PURE__ */ h(() => {
1416
1415
  const s = t(this, O).shadowRoot.querySelector("nine-table-sheets");
1417
1416
  s == null || s.classList.toggle("nodata", this.length === 0), t(this, O).shadowRoot.querySelectorAll("nine-table-sheet").forEach((e) => {
1418
1417
  e.invalidate();
@@ -1432,7 +1431,7 @@ const W = class W {
1432
1431
  return t(this, vt).call(this, n[s]);
1433
1432
  }, "get"));
1434
1433
  E(this, "set", /* @__PURE__ */ h((s) => {
1435
- this.clear(), this.add(s, !1), t(this, dt).call(this);
1434
+ this.clear(), this.add(s, !1), t(this, ht).call(this);
1436
1435
  }, "set"));
1437
1436
  d(this, Bt, /* @__PURE__ */ h(() => ({
1438
1437
  rowState: W.ROW_STATE.EMPTY,
@@ -1444,13 +1443,13 @@ const W = class W {
1444
1443
  _: [0, 0, 0, 0, W.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, Z).slice(), -1, {}, {}]
1445
1444
  }), "#getDefaultMeta"));
1446
1445
  E(this, "reset", /* @__PURE__ */ h(() => {
1447
- p(this, z, []), p(this, xt, []), t(this, dt).call(this);
1446
+ p(this, z, []), p(this, xt, []), t(this, ht).call(this);
1448
1447
  }, "reset"));
1449
1448
  E(this, "clear", /* @__PURE__ */ h(() => {
1450
1449
  var s;
1451
1450
  t(this, k).rawRecords = [], p(this, z, []), p(this, xt, []), (s = t(this, k).viewRecords) != null && s.reset && t(this, k).viewRecords.reset();
1452
1451
  }, "clear"));
1453
- d(this, ge, /* @__PURE__ */ h((s) => {
1452
+ d(this, ue, /* @__PURE__ */ h((s) => {
1454
1453
  var r;
1455
1454
  Array.isArray(s) || (s = [s]);
1456
1455
  const e = typeof ((r = t(this, O).fields) == null ? void 0 : r.get) == "function" ? t(this, O).fields.get() : Object.keys(s[0] || {}), n = [];
@@ -1461,18 +1460,18 @@ const W = class W {
1461
1460
  }), n.push(i);
1462
1461
  }), n;
1463
1462
  }, "#json2Array"));
1464
- d(this, be, /* @__PURE__ */ h((s) => (Array.isArray(s) || (s = [s]), s.forEach((e) => {
1463
+ d(this, ge, /* @__PURE__ */ h((s) => (Array.isArray(s) || (s = [s]), s.forEach((e) => {
1465
1464
  e.__ng = t(this, Bt).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = W.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1466
1465
  }), s), "#defaultInsert"));
1467
1466
  E(this, "add", /* @__PURE__ */ h((s, e = !0) => {
1468
1467
  s === void 0 && (s = {});
1469
- const n = t(this, ge).call(this, s);
1470
- t(this, k).rawRecords = t(this, k).rawRecords.concat(t(this, be).call(this, n)), this.resetRecords();
1468
+ const n = t(this, ue).call(this, s);
1469
+ t(this, k).rawRecords = t(this, k).rawRecords.concat(t(this, ge).call(this, n)), this.resetRecords();
1471
1470
  const r = this.count() - 1;
1472
1471
  return e || n.forEach((o, i) => {
1473
1472
  const a = t(this, k).rawRecords[r - i];
1474
1473
  a && (a.__ng.rowState = W.ROW_STATE.EMPTY);
1475
- }), t(this, dt).call(this), r;
1474
+ }), t(this, ht).call(this), r;
1476
1475
  }, "add"));
1477
1476
  E(this, "delete", /* @__PURE__ */ h((s) => {
1478
1477
  let e = [];
@@ -1483,7 +1482,7 @@ const W = class W {
1483
1482
  o.__ng.rowid === r && (o.__ng.deleted = !0, o.__ng.rowState = W.ROW_STATE.DELETE);
1484
1483
  });
1485
1484
  }
1486
- }), this.resetRecords(), t(this, dt).call(this);
1485
+ }), this.resetRecords(), t(this, ht).call(this);
1487
1486
  }, "delete"));
1488
1487
  E(this, "setValue", /* @__PURE__ */ h((s, e, n) => {
1489
1488
  var c;
@@ -1515,7 +1514,7 @@ const W = class W {
1515
1514
  return e ? o[0] : o;
1516
1515
  }, "#conv"));
1517
1516
  E(this, "count", /* @__PURE__ */ h(() => this.getValidData().length, "count"));
1518
- p(this, O, s), p(this, k, e), t(this, ue).call(this);
1517
+ p(this, O, s), p(this, k, e), t(this, fe).call(this);
1519
1518
  }
1520
1519
  get source() {
1521
1520
  return t(this, vt).call(this, t(this, k).rawRecords);
@@ -1524,7 +1523,7 @@ const W = class W {
1524
1523
  this.clear(), this.add(s, !1);
1525
1524
  }
1526
1525
  get nextId() {
1527
- return ++gs(this, fe)._;
1526
+ return ++gs(this, de)._;
1528
1527
  }
1529
1528
  get count() {
1530
1529
  return t(this, z).length;
@@ -1536,7 +1535,7 @@ const W = class W {
1536
1535
  return this.length;
1537
1536
  }
1538
1537
  };
1539
- O = new WeakMap(), k = new WeakMap(), z = new WeakMap(), xt = new WeakMap(), fe = new WeakMap(), Z = new WeakMap(), ue = new WeakMap(), dt = new WeakMap(), Bt = new WeakMap(), ge = new WeakMap(), be = new WeakMap(), vt = new WeakMap(), h(W, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1538
+ O = new WeakMap(), k = new WeakMap(), z = new WeakMap(), xt = new WeakMap(), de = new WeakMap(), Z = new WeakMap(), fe = new WeakMap(), ht = new WeakMap(), Bt = new WeakMap(), ue = new WeakMap(), ge = new WeakMap(), vt = new WeakMap(), h(W, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1540
1539
  E(W, "ROW_STATE", {
1541
1540
  EMPTY: "EMPTY",
1542
1541
  NORMAL: "NORMAL",
@@ -1544,14 +1543,14 @@ E(W, "ROW_STATE", {
1544
1543
  UPDATE: "UPDATE",
1545
1544
  DELETE: "DELETE"
1546
1545
  });
1547
- let Ie = W;
1548
- var ft;
1546
+ let Le = W;
1547
+ var dt;
1549
1548
  const ns = class ns {
1550
1549
  constructor(s) {
1551
- d(this, ft);
1552
- p(this, ft, s), this.row = new Le(this), this.data = new Ie(t(this, ft), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1550
+ d(this, dt);
1551
+ p(this, dt, s), this.row = new ke(this), this.data = new Le(t(this, dt), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1553
1552
  var e;
1554
- (e = t(this, ft).view) != null && e.redraw && t(this, ft).view.redraw();
1553
+ (e = t(this, dt).view) != null && e.redraw && t(this, dt).view.redraw();
1555
1554
  }, this.setDataSource = (e) => {
1556
1555
  this.data && this.data.reset(), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.data.set(e || []);
1557
1556
  }, this.getRowState = (e) => {
@@ -1566,9 +1565,9 @@ const ns = class ns {
1566
1565
  }, this.setDataSource([]);
1567
1566
  }
1568
1567
  };
1569
- ft = new WeakMap(), h(ns, "ngDataManager");
1570
- let He = ns;
1571
- var wt, M, Pt, pe;
1568
+ dt = new WeakMap(), h(ns, "ngDataManager");
1569
+ let Ie = ns;
1570
+ var wt, M, Pt, be;
1572
1571
  const rs = class rs {
1573
1572
  // 🎯 이제 { name: string, type: string } κ°μ²΄λ“€μ˜ λ°°μ—΄λ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.
1574
1573
  constructor(s) {
@@ -1585,12 +1584,12 @@ const rs = class rs {
1585
1584
  s.set(e.name, e.type);
1586
1585
  }), p(this, M, Array.from(s, ([e, n]) => ({ name: e, type: n }))), p(this, M, t(this, M).filter((e) => e.name !== "" && e.name !== "__ng")), t(this, M).sort((e, n) => e.name.length < n.name.length ? 1 : -1);
1587
1586
  }, "#adjust"));
1588
- d(this, pe, /* @__PURE__ */ h(() => {
1589
- p(this, M, []), S.log(t(this, wt).querySelectorAll("table"));
1587
+ d(this, be, /* @__PURE__ */ h(() => {
1588
+ p(this, M, []), w.log(t(this, wt).querySelectorAll("table"));
1590
1589
  const s = Array.from(t(this, wt).querySelectorAll("table"));
1591
1590
  if (!(!s || s.length === 0)) {
1592
1591
  for (const e of s)
1593
- S.log(e), $("[data-bind]", e).each((n, r) => {
1592
+ w.log(e), $("[data-bind]", e).each((n, r) => {
1594
1593
  const o = r.dataset.bind, i = r.getAttribute("data-type") || "string";
1595
1594
  o && t(this, M).push({ name: o, type: i });
1596
1595
  }), ["data-expr", "background-color", "color", "tooltip", "visible", "readonly", "enable-button", "enable-check", "class-expr", "icon-color", "icon-src"].forEach((n) => {
@@ -1617,7 +1616,7 @@ const rs = class rs {
1617
1616
  t(this, Pt).call(this);
1618
1617
  }
1619
1618
  }, "#init"));
1620
- p(this, wt, s), t(this, pe).call(this);
1619
+ p(this, wt, s), t(this, be).call(this);
1621
1620
  }
1622
1621
  // 🎯 기쑴에 ν•„λ“œ μ΄λ¦„λ§Œ μ“°λ˜ κ³³λ“€κ³Όμ˜ ν˜Έν™˜μ„ μœ„ν•΄ 이름 λ°°μ—΄λ§Œ λ¦¬ν„΄ν•˜λŠ” λ©”μ„œλ“œ μœ μ§€
1623
1622
  get() {
@@ -1639,42 +1638,42 @@ const rs = class rs {
1639
1638
  return t(this, M).some((e) => e.name === s);
1640
1639
  }
1641
1640
  };
1642
- wt = new WeakMap(), M = new WeakMap(), Pt = new WeakMap(), pe = new WeakMap(), h(rs, "ngFields");
1643
- let Me = rs;
1644
- var ut, ye, me;
1641
+ wt = new WeakMap(), M = new WeakMap(), Pt = new WeakMap(), be = new WeakMap(), h(rs, "ngFields");
1642
+ let He = rs;
1643
+ var ft, pe, ye;
1645
1644
  const os = class os extends HTMLElement {
1646
1645
  constructor() {
1647
1646
  super();
1648
1647
  //#created = false;
1649
- d(this, ut);
1650
- d(this, ye);
1651
- d(this, me, /* @__PURE__ */ h(() => {
1652
- this.fields = new Me(this), p(this, ye, new ke(this)), S.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1648
+ d(this, ft);
1649
+ d(this, pe);
1650
+ d(this, ye, /* @__PURE__ */ h(() => {
1651
+ this.fields = new He(this), p(this, pe, new Ce(this)), w.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1653
1652
  }, "#init"));
1654
- this.attachShadow({ mode: "open" }), p(this, ut, new He(this));
1653
+ this.attachShadow({ mode: "open" }), p(this, ft, new Ie(this));
1655
1654
  }
1656
1655
  connectedCallback() {
1657
- t(this, me).call(this);
1656
+ t(this, ye).call(this);
1658
1657
  }
1659
1658
  disconnectedCallback() {
1660
- S.log("NineTable disconnected.");
1659
+ w.log("NineTable disconnected.");
1661
1660
  }
1662
1661
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
1663
1662
  get data() {
1664
- return t(this, ut).data;
1663
+ return t(this, ft).data;
1665
1664
  }
1666
1665
  // 🎯 ν–‰(row) κ΄€λ ¨ μ œμ–΄ μ ‘κ·Όμž μ˜€ν”ˆ
1667
1666
  get row() {
1668
- return t(this, ut).row;
1667
+ return t(this, ft).row;
1669
1668
  }
1670
1669
  // 🎯 전체 데이터 λ§€λ‹ˆμ € μ ‘κ·Ό ν•„μš”ν•  경우
1671
1670
  get dataManager() {
1672
- return t(this, ut);
1671
+ return t(this, ft);
1673
1672
  }
1674
1673
  };
1675
- ut = new WeakMap(), ye = new WeakMap(), me = new WeakMap(), h(os, "NineTable");
1676
- let $e = os;
1677
- customElements.get("nine-table") || customElements.define("nine-table", $e);
1674
+ ft = new WeakMap(), pe = new WeakMap(), ye = new WeakMap(), h(os, "NineTable");
1675
+ let Me = os;
1676
+ customElements.get("nine-table") || customElements.define("nine-table", Me);
1678
1677
  const qt = class qt extends HTMLElement {
1679
1678
  // πŸ‘ˆ μ»€μŠ€ν…€ μŠ€νƒ€μΌμš© μΊμ‹œ μΆ”κ°€
1680
1679
  constructor() {
@@ -1687,9 +1686,9 @@ const qt = class qt extends HTMLElement {
1687
1686
  }
1688
1687
  };
1689
1688
  h(qt, "BasicCellElement"), E(qt, "_styleCache", /* @__PURE__ */ new Map()), E(qt, "_customStyleCache", /* @__PURE__ */ new Map());
1690
- let _e = qt;
1689
+ let $e = qt;
1691
1690
  var L, Ft, x, Pe, Fe, je, Ye, Ve;
1692
- const is = class is extends _e {
1691
+ const is = class is extends $e {
1693
1692
  constructor() {
1694
1693
  super();
1695
1694
  d(this, L);
@@ -1743,8 +1742,8 @@ const is = class is extends _e {
1743
1742
  else
1744
1743
  o = !0;
1745
1744
  o ? ninegrid.j.querySelectorAll(t(this, x)).removeClass("suppress") : ninegrid.j.querySelectorAll(t(this, x)).addClass("suppress"), ninegrid.j.querySelectorAll(t(this, x)).hasClass("hidden") || (o ? ninegrid.j.querySelectorAll(t(this, x)).removeClass("hidden") : ninegrid.j.querySelectorAll(t(this, x)).addClass("hidden"));
1746
- var y = parseInt(t(this, x).dataset.matrixRow), v = y - 1, w = t(this, L).body.querySelector(`tbody.bindable [data-col="${t(this, x).dataset.col}"][data-matrix-row="${v}"]`);
1747
- $(w).hasClass("suppress") && !ninegrid.j.querySelectorAll(t(this, x)).hasClass("suppress") ? ninegrid.j.querySelectorAll(w).removeClass("last-none-suppress").addClass("last-suppress") : !$(w).hasClass("suppress") && ninegrid.j.querySelectorAll(t(this, x)).hasClass("suppress") ? ninegrid.j.querySelectorAll(w).removeClass("last-suppress").addClass("last-none-suppress") : ninegrid.j.querySelectorAll(w).removeClass("last-none-suppress").removeClass("last-suppress");
1745
+ var y = parseInt(t(this, x).dataset.matrixRow), v = y - 1, S = t(this, L).body.querySelector(`tbody.bindable [data-col="${t(this, x).dataset.col}"][data-matrix-row="${v}"]`);
1746
+ $(S).hasClass("suppress") && !ninegrid.j.querySelectorAll(t(this, x)).hasClass("suppress") ? ninegrid.j.querySelectorAll(S).removeClass("last-none-suppress").addClass("last-suppress") : !$(S).hasClass("suppress") && ninegrid.j.querySelectorAll(t(this, x)).hasClass("suppress") ? ninegrid.j.querySelectorAll(S).removeClass("last-suppress").addClass("last-none-suppress") : ninegrid.j.querySelectorAll(S).removeClass("last-none-suppress").removeClass("last-suppress");
1748
1747
  }
1749
1748
  }
1750
1749
  }, "#resetSuppress"));
@@ -1785,8 +1784,8 @@ const is = class is extends _e {
1785
1784
  }
1786
1785
  };
1787
1786
  L = new WeakMap(), Ft = new WeakMap(), x = new WeakMap(), Pe = new WeakMap(), Fe = new WeakMap(), je = new WeakMap(), Ye = new WeakMap(), Ve = new WeakMap(), h(is, "CellElement");
1788
- let Ne = is;
1789
- const as = class as extends Ne {
1787
+ let _e = is;
1788
+ const as = class as extends _e {
1790
1789
  constructor() {
1791
1790
  super();
1792
1791
  }
@@ -1798,16 +1797,16 @@ const as = class as extends Ne {
1798
1797
  }
1799
1798
  };
1800
1799
  h(as, "EditableCellElement");
1801
- let De = as;
1802
- var jt, gt, St, Rt, xe, J, Ue;
1803
- const ls = class ls extends De {
1800
+ let Ne = as;
1801
+ var jt, ut, St, Rt, me, J, Ue;
1802
+ const ls = class ls extends Ne {
1804
1803
  constructor() {
1805
1804
  super();
1806
1805
  d(this, jt);
1807
- d(this, gt);
1806
+ d(this, ut);
1808
1807
  d(this, St);
1809
1808
  d(this, Rt);
1810
- d(this, xe);
1809
+ d(this, me);
1811
1810
  d(this, J);
1812
1811
  E(this, "refresh", /* @__PURE__ */ h(() => {
1813
1812
  const e = super.refresh();
@@ -1845,7 +1844,7 @@ const ls = class ls extends De {
1845
1844
  */
1846
1845
  d(this, Ue, /* @__PURE__ */ h((e) => {
1847
1846
  if (!["Escape", "Enter", "Tab", "Home", "End", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Backspace", "Delete"].includes(e.code)) {
1848
- if (t(this, gt) == "number") {
1847
+ if (t(this, ut) == "number") {
1849
1848
  let o = [];
1850
1849
  if (t(this, J) && Number(t(this, J)) > 0 && o.push("."), t(this, Rt) && Number(t(this, Rt)) >= 0 && o.push("-"), !(e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && !o.includes(e.key) && e.preventDefault(), t(this, J) && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && e.target.selectionStart == e.target.selectionEnd) {
1851
1850
  var n = e.target.value, r = n.indexOf(".");
@@ -1858,7 +1857,7 @@ const ls = class ls extends De {
1858
1857
  t(this, St) && ninegrid.getByteLength(e.target.value) >= Number(t(this, St)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
1859
1858
  }
1860
1859
  }, "#onKeyDown"));
1861
- if (this.applyBaseStyle(), p(this, gt, this.getAttribute("type") || "text"), p(this, St, this.getAttribute("maxbyte")), p(this, Rt, this.getAttribute("min")), p(this, xe, this.getAttribute("max")), p(this, J, this.getAttribute("scale")), !["text", "number"].includes(t(this, gt))) throw `invalid type : ${t(this, gt)}`;
1860
+ if (this.applyBaseStyle(), p(this, ut, this.getAttribute("type") || "text"), p(this, St, this.getAttribute("maxbyte")), p(this, Rt, this.getAttribute("min")), p(this, me, this.getAttribute("max")), p(this, J, this.getAttribute("scale")), !["text", "number"].includes(t(this, ut))) throw `invalid type : ${t(this, ut)}`;
1862
1861
  }
1863
1862
  connectedCallback() {
1864
1863
  for (var e = [], n = 0; n < this.attributes.length; n++)
@@ -1871,8 +1870,8 @@ const ls = class ls extends De {
1871
1870
  `, super.connectedCallback(), p(this, jt, this.querySelector("input"));
1872
1871
  }
1873
1872
  };
1874
- jt = new WeakMap(), gt = new WeakMap(), St = new WeakMap(), Rt = new WeakMap(), xe = new WeakMap(), J = new WeakMap(), Ue = new WeakMap(), h(ls, "CellInputText");
1875
- let Oe = ls;
1873
+ jt = new WeakMap(), ut = new WeakMap(), St = new WeakMap(), Rt = new WeakMap(), me = new WeakMap(), J = new WeakMap(), Ue = new WeakMap(), h(ls, "CellInputText");
1874
+ let De = ls;
1876
1875
  customElements.get("cell-input-text");
1877
- customElements.get("cell-input") || customElements.define("cell-input", Oe);
1876
+ customElements.get("cell-input") || customElements.define("cell-input", De);
1878
1877
  //# sourceMappingURL=nine-table.js.map