@ninebone/table 0.0.430 β†’ 0.0.432

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 re = class re extends Se.constructor {
23
23
  a(re, "Trace");
24
24
  let jt = re;
25
25
  const H = new jt();
26
- var _, O, p, D, P, Y, St, V, Et;
26
+ var _, z, m, Y, V, X, St, U, Et;
27
27
  const le = class le extends HTMLElement {
28
28
  constructor() {
29
29
  super();
30
30
  c(this, _);
31
- c(this, O, !1);
32
- c(this, p);
33
- c(this, D);
34
- c(this, P);
31
+ c(this, z, !1);
32
+ c(this, m);
35
33
  c(this, Y);
34
+ c(this, V);
35
+ c(this, X);
36
36
  c(this, St, /* @__PURE__ */ a(() => {
37
37
  if (!t(this, _)) return;
38
38
  const e = t(this, _).querySelector(".ng-container-body");
39
- e && (b(this, Y, new ResizeObserver(() => {
39
+ e && (b(this, X, new ResizeObserver(() => {
40
40
  this.refresh();
41
- })), t(this, Y).observe(e));
41
+ })), t(this, X).observe(e));
42
42
  }, "#observeResize"));
43
43
  v(this, "refresh", /* @__PURE__ */ a(() => {
44
- if (!t(this, _) || !t(this, p) || t(this, O)) return;
45
- const e = t(this, p).container, s = e.querySelector("table");
44
+ if (!t(this, _) || !t(this, m) || t(this, z)) return;
45
+ const e = t(this, m).container, s = e.querySelector("table");
46
46
  if (!s) return;
47
- const o = t(this, p).track, r = t(this, p).thumb, n = t(this, _).querySelector(".ng-container-bottom"), l = e.clientWidth, d = s.scrollWidth;
47
+ const o = t(this, m).track, r = t(this, m).thumb, n = t(this, _).querySelector(".ng-container-bottom"), l = e.clientWidth, d = s.scrollWidth;
48
48
  if (l !== 0 && d > l)
49
49
  n && (n.style.display = "flex");
50
50
  else {
@@ -58,54 +58,54 @@ const le = class le extends HTMLElement {
58
58
  const u = e.scrollLeft, g = d - l;
59
59
  let y = 0;
60
60
  g > 0 && (y = parseInt(u / g * (h - f), 10)), y < 0 && (y = 0);
61
- const m = h - f;
62
- y > m && (y = m), r.style.left = `${y}px`, H.log(y), t(this, p).left.disabled = y === 0, t(this, p).right.disabled = y >= m - 1;
61
+ const p = h - f;
62
+ y > p && (y = p), r.style.left = `${y}px`, H.log(y), t(this, m).left.disabled = y === 0, t(this, m).right.disabled = y >= p - 1;
63
63
  }, "refresh"));
64
- c(this, V, /* @__PURE__ */ a((e) => {
65
- if (!t(this, p)) return !1;
66
- const s = t(this, p).container, o = s.querySelector("table");
64
+ c(this, U, /* @__PURE__ */ a((e) => {
65
+ if (!t(this, m)) return !1;
66
+ const s = t(this, m).container, o = s.querySelector("table");
67
67
  if (!o) return !1;
68
- const r = t(this, p).track.getBoundingClientRect(), n = t(this, p).thumb.clientWidth;
68
+ const r = t(this, m).track.getBoundingClientRect(), n = t(this, m).thumb.clientWidth;
69
69
  let l = e;
70
70
  l < 0 && (l = 0);
71
71
  const d = r.width - n;
72
- l > d && (l = d), l = parseInt(l, 10), t(this, p).thumb.style.left = `${l}px`, t(this, p).left.disabled = l === 0, t(this, p).right.disabled = l >= d - 1;
72
+ l > d && (l = d), l = parseInt(l, 10), t(this, m).thumb.style.left = `${l}px`, t(this, m).left.disabled = l === 0, t(this, m).right.disabled = l >= d - 1;
73
73
  const h = s.clientWidth, u = o.scrollWidth - h;
74
74
  return d > 0 && u > 0 && (s.scrollLeft = l / d * u), l > 0 && l < d - 1;
75
75
  }, "#thumbMoveTo"));
76
76
  c(this, Et, /* @__PURE__ */ a(() => {
77
77
  const e = /* @__PURE__ */ a((o) => {
78
- clearInterval(t(this, D)), clearInterval(t(this, P));
79
- const r = parseInt(t(this, p).thumb.style.left || 0, 10);
80
- t(this, V).call(this, r + o), b(this, D, setInterval(() => {
81
- clearInterval(t(this, D)), b(this, P, setInterval(() => {
82
- const n = parseInt(t(this, p).thumb.style.left || 0, 10);
83
- t(this, V).call(this, n + o) || clearInterval(t(this, P));
78
+ clearInterval(t(this, Y)), clearInterval(t(this, V));
79
+ const r = parseInt(t(this, m).thumb.style.left || 0, 10);
80
+ t(this, U).call(this, r + o), b(this, Y, setInterval(() => {
81
+ clearInterval(t(this, Y)), b(this, V, setInterval(() => {
82
+ const n = parseInt(t(this, m).thumb.style.left || 0, 10);
83
+ t(this, U).call(this, n + o) || clearInterval(t(this, V));
84
84
  }, 50));
85
85
  }, 500));
86
86
  }, "delayScroll"), s = /* @__PURE__ */ a(() => {
87
- clearInterval(t(this, D)), clearInterval(t(this, P));
87
+ clearInterval(t(this, Y)), clearInterval(t(this, V));
88
88
  }, "clearTimer");
89
89
  ["mouseup", "mouseleave", "touchend"].forEach((o) => {
90
- t(this, p).left.addEventListener(o, s), t(this, p).right.addEventListener(o, s), t(this, p).track.addEventListener(o, s);
91
- }), t(this, p).left.addEventListener("mousedown", (o) => {
90
+ t(this, m).left.addEventListener(o, s), t(this, m).right.addEventListener(o, s), t(this, m).track.addEventListener(o, s);
91
+ }), t(this, m).left.addEventListener("mousedown", (o) => {
92
92
  o.button === 0 && e(-20);
93
- }), t(this, p).right.addEventListener("mousedown", (o) => {
93
+ }), t(this, m).right.addEventListener("mousedown", (o) => {
94
94
  o.button === 0 && e(20);
95
- }), t(this, p).left.addEventListener("touchstart", () => e(-20)), t(this, p).right.addEventListener("touchstart", () => e(20)), t(this, p).track.addEventListener("mousedown", (o) => {
95
+ }), t(this, m).left.addEventListener("touchstart", () => e(-20)), t(this, m).right.addEventListener("touchstart", () => e(20)), t(this, m).track.addEventListener("mousedown", (o) => {
96
96
  if (o.button !== 0) return;
97
97
  o.preventDefault();
98
- const r = t(this, p).track.getBoundingClientRect(), n = t(this, p).thumb.clientWidth;
99
- t(this, V).call(this, o.clientX - r.left - n / 2);
100
- }), t(this, p).thumb.addEventListener("mousedown", (o) => {
98
+ const r = t(this, m).track.getBoundingClientRect(), n = t(this, m).thumb.clientWidth;
99
+ t(this, U).call(this, o.clientX - r.left - n / 2);
100
+ }), t(this, m).thumb.addEventListener("mousedown", (o) => {
101
101
  if (o.button !== 0) return;
102
- o.stopPropagation(), o.preventDefault(), b(this, O, !0), this.shiftX = o.clientX - t(this, p).thumb.getBoundingClientRect().left;
102
+ o.stopPropagation(), o.preventDefault(), b(this, z, !0), this.shiftX = o.clientX - t(this, m).thumb.getBoundingClientRect().left;
103
103
  const r = /* @__PURE__ */ a((l) => {
104
- if (!t(this, O)) return;
105
- const d = t(this, p).track.getBoundingClientRect();
106
- t(this, V).call(this, l.clientX - d.left - this.shiftX);
104
+ if (!t(this, z)) return;
105
+ const d = t(this, m).track.getBoundingClientRect();
106
+ t(this, U).call(this, l.clientX - d.left - this.shiftX);
107
107
  }, "onMouseMove"), n = /* @__PURE__ */ a(() => {
108
- b(this, O, !1), s(), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", n), this.refresh();
108
+ b(this, z, !1), s(), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", n), this.refresh();
109
109
  }, "onMouseUp");
110
110
  document.addEventListener("mousemove", r), document.addEventListener("mouseup", n);
111
111
  });
@@ -182,32 +182,32 @@ const le = class le extends HTMLElement {
182
182
  setTimeout(e, 10);
183
183
  return;
184
184
  }
185
- b(this, p, {
185
+ b(this, m, {
186
186
  container: s,
187
187
  track: this.querySelector(".ng-scroll-track"),
188
188
  thumb: this.querySelector(".ng-scroll-thumb"),
189
189
  left: this.querySelector(".ng-scroll-left"),
190
190
  right: this.querySelector(".ng-scroll-right")
191
191
  }), s.addEventListener("scroll", () => {
192
- t(this, O) || this.refresh();
192
+ t(this, z) || this.refresh();
193
193
  }), t(this, Et).call(this), t(this, St).call(this), this.refresh();
194
194
  }, "initWhenReady");
195
195
  e();
196
196
  }
197
197
  disconnectedCallback() {
198
- t(this, Y) && t(this, Y).disconnect();
198
+ t(this, X) && t(this, X).disconnect();
199
199
  }
200
200
  };
201
- _ = new WeakMap(), O = new WeakMap(), p = new WeakMap(), D = new WeakMap(), P = new WeakMap(), Y = new WeakMap(), St = new WeakMap(), V = new WeakMap(), Et = new WeakMap(), a(le, "NineTableHScrollBar");
201
+ _ = new WeakMap(), z = new WeakMap(), m = new WeakMap(), Y = new WeakMap(), V = new WeakMap(), X = new WeakMap(), St = new WeakMap(), U = new WeakMap(), Et = new WeakMap(), a(le, "NineTableHScrollBar");
202
202
  let Kt = le;
203
203
  customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", Kt);
204
- var X, J, z, S, ct, ht, Rt;
204
+ var F, Q, N, S, ct, ht, Rt;
205
205
  const ae = class ae extends HTMLElement {
206
206
  constructor() {
207
207
  super();
208
- c(this, X);
209
- c(this, J);
210
- c(this, z, !1);
208
+ c(this, F);
209
+ c(this, Q);
210
+ c(this, N, !1);
211
211
  c(this, S);
212
212
  c(this, ct, 0);
213
213
  c(this, ht, 0);
@@ -215,8 +215,8 @@ const ae = class ae extends HTMLElement {
215
215
  * 🎯 μŠ€ν¬λ‘€λ°” μœ„μΉ˜ 및 썸브 크기 κ°±μ‹ 
216
216
  */
217
217
  v(this, "refresh", /* @__PURE__ */ a(() => {
218
- H.log("refresh", t(this, z)), H.log("refresh2");
219
- const e = t(this, S).container, s = t(this, S).track, o = t(this, S).thumb, r = e.clientHeight, l = (t(this, X).data.get() || []).length, d = t(this, J).getRowHeight(), h = l * d;
218
+ H.log("refresh", t(this, N)), H.log("refresh2");
219
+ const e = t(this, S).container, s = t(this, S).track, o = t(this, S).thumb, r = e.clientHeight, l = (t(this, F).data.get() || []).length, d = t(this, Q).getRowHeight(), h = l * d;
220
220
  if (h <= r) {
221
221
  o.style.display = "none", t(this, S).top.disabled = !0, t(this, S).bottom.disabled = !0;
222
222
  return;
@@ -227,33 +227,33 @@ const ae = class ae extends HTMLElement {
227
227
  const u = Math.max(Math.min(f * (r / h), f), 20);
228
228
  o.style.height = `${u}px`;
229
229
  const g = e.scrollTop, y = Math.max(h - r, 1);
230
- let m = 0;
231
- y > 0 && (m = g / y * (f - u));
230
+ let p = 0;
231
+ y > 0 && (p = g / y * (f - u));
232
232
  const R = f - u;
233
- m < 0 && (m = 0), m > R && (m = R), o.style.top = `${m}px`, H.log("currentScrollTop", g), H.log("maxScrollTop", y), H.log("trackHeight", f), H.log("thumbHeight", u), t(this, S).top.disabled = g <= 0, t(this, S).bottom.disabled = g >= y - 1;
233
+ p < 0 && (p = 0), p > R && (p = R), o.style.top = `${p}px`, H.log("currentScrollTop", g), H.log("maxScrollTop", y), H.log("trackHeight", f), H.log("thumbHeight", u), t(this, S).top.disabled = g <= 0, t(this, S).bottom.disabled = g >= y - 1;
234
234
  }, "refresh"));
235
235
  c(this, Rt, /* @__PURE__ */ a(() => {
236
236
  const e = t(this, S).container, s = /* @__PURE__ */ a(() => {
237
- const r = (t(this, X).data.get() || []).length, n = t(this, J).getRowHeight();
237
+ const r = (t(this, F).data.get() || []).length, n = t(this, Q).getRowHeight();
238
238
  return r * n;
239
239
  }, "getContentHeight");
240
240
  e.addEventListener("scroll", () => {
241
- t(this, z) || this.refresh();
241
+ t(this, N) || this.refresh();
242
242
  }), t(this, S).thumb.addEventListener("mousedown", (o) => {
243
243
  if (o.button !== 0) return;
244
- o.stopPropagation(), o.preventDefault(), b(this, z, !0), b(this, ct, o.clientY), b(this, ht, e.scrollTop);
244
+ o.stopPropagation(), o.preventDefault(), b(this, N, !0), b(this, ct, o.clientY), b(this, ht, e.scrollTop);
245
245
  const r = /* @__PURE__ */ a((l) => {
246
- if (!t(this, z)) return;
247
- const d = t(this, S).track.getBoundingClientRect(), h = t(this, S).thumb.clientHeight, u = d.height - h, g = l.clientY - t(this, ct), y = e.clientHeight, m = s(), R = Math.max(m - y, 1);
246
+ if (!t(this, N)) return;
247
+ const d = t(this, S).track.getBoundingClientRect(), h = t(this, S).thumb.clientHeight, u = d.height - h, g = l.clientY - t(this, ct), y = e.clientHeight, p = s(), R = Math.max(p - y, 1);
248
248
  if (u > 0 && R > 0) {
249
- const G = g / u * R;
250
- let lt = t(this, ht) + G;
251
- const ye = Math.max(0, m - y);
252
- lt < 0 && (lt = 0), lt > ye && (lt = ye), e.scrollTop = lt;
249
+ const O = g / u * R;
250
+ let P = t(this, ht) + O;
251
+ const ye = Math.max(0, p - y);
252
+ P < 0 && (P = 0), P > ye && (P = ye), e.scrollTop = P;
253
253
  }
254
254
  this.refresh();
255
255
  }, "onMouseMove"), n = /* @__PURE__ */ a(() => {
256
- b(this, z, !1), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", n), this.refresh();
256
+ b(this, N, !1), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", n), this.refresh();
257
257
  }, "onMouseUp");
258
258
  document.addEventListener("mousemove", r), document.addEventListener("mouseup", n);
259
259
  }), t(this, S).track.addEventListener("mousedown", (o) => {
@@ -272,7 +272,7 @@ const ae = class ae extends HTMLElement {
272
272
  }, "#init"));
273
273
  }
274
274
  connectedCallback() {
275
- b(this, X, this.getRootNode().host), b(this, J, this.closest("nine-table-sheet")), this.innerHTML = `
275
+ b(this, F, this.getRootNode().host), b(this, Q, this.closest("nine-table-sheet")), this.innerHTML = `
276
276
  <style>
277
277
  nine-table-vscrollbar {
278
278
  display: flex;
@@ -338,7 +338,7 @@ const ae = class ae extends HTMLElement {
338
338
  <button class='ng-scroll-bottom' disabled><div class='ng-scroll-icon'></div></button>
339
339
  `;
340
340
  const e = /* @__PURE__ */ a(() => {
341
- const s = t(this, X).shadowRoot.querySelector(".ng-container-body");
341
+ const s = t(this, F).shadowRoot.querySelector(".ng-container-body");
342
342
  if (!s) {
343
343
  setTimeout(e, 10);
344
344
  return;
@@ -354,10 +354,10 @@ const ae = class ae extends HTMLElement {
354
354
  e();
355
355
  }
356
356
  };
357
- X = new WeakMap(), J = new WeakMap(), z = new WeakMap(), S = new WeakMap(), ct = new WeakMap(), ht = new WeakMap(), Rt = new WeakMap(), a(ae, "NineTableVScrollBar");
357
+ F = new WeakMap(), Q = new WeakMap(), N = new WeakMap(), S = new WeakMap(), ct = new WeakMap(), ht = new WeakMap(), Rt = new WeakMap(), a(ae, "NineTableVScrollBar");
358
358
  let Zt = ae;
359
359
  customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", Zt);
360
- var At, Q;
360
+ var At, tt;
361
361
  const M = class M {
362
362
  /**
363
363
  * 🎯 λ ˆμ΄μ•„μ›ƒ λ‚΄μ˜ μ—¬λŸ¬ rawTables 배열을 μΌκ΄„λ‘œ λ°›μ•„ 단일 λ§ˆμŠ€ν„° ν…œν”Œλ¦ΏμœΌλ‘œ 사전 μ»΄νŒŒμΌν•©λ‹ˆλ‹€.
@@ -372,7 +372,7 @@ const M = class M {
372
372
  var o, r, n, l;
373
373
  if (!i) return null;
374
374
  const e = i.cloneNode(!0);
375
- return t(o = M, At).call(o, e), t(r = M, Q).call(r, e, "thead"), t(n = M, Q).call(n, e, "tbody"), t(l = M, Q).call(l, e, "tfoot"), Array.from(e.querySelectorAll("colgroup col")).forEach((d, h) => {
375
+ return t(o = M, At).call(o, e), t(r = M, tt).call(r, e, "thead"), t(n = M, tt).call(n, e, "tbody"), t(l = M, tt).call(l, e, "tfoot"), Array.from(e.querySelectorAll("colgroup col")).forEach((d, h) => {
376
376
  const f = d.getAttribute("fixed");
377
377
  f && e.querySelectorAll(`thead [data-col="${h}"], tbody [data-col="${h}"], tfoot [data-col="${h}"]`).forEach((u) => {
378
378
  u.setAttribute("fixed", f);
@@ -380,7 +380,7 @@ const M = class M {
380
380
  }), e;
381
381
  }
382
382
  };
383
- At = new WeakMap(), Q = new WeakMap(), a(M, "TableCompiler"), c(M, At, /* @__PURE__ */ a((i) => {
383
+ At = new WeakMap(), tt = new WeakMap(), a(M, "TableCompiler"), c(M, At, /* @__PURE__ */ a((i) => {
384
384
  if (!i.querySelector("colgroup")) {
385
385
  const e = i.querySelector("tbody tr") || i.querySelector("tr"), s = e ? e.querySelectorAll("th, td").length : 1, o = document.createElement("colgroup"), r = Math.max(Math.floor(i.clientWidth / s), 100);
386
386
  for (let n = 0; n < s; n++) {
@@ -394,7 +394,7 @@ At = new WeakMap(), Q = new WeakMap(), a(M, "TableCompiler"), c(M, At, /* @__PUR
394
394
  s ? s.after(e) : i.prepend(e);
395
395
  }
396
396
  i.classList.add("nine-table-element"), i.style.display = "table";
397
- }, "#ensureTableStructure")), c(M, Q, /* @__PURE__ */ a((i, e) => {
397
+ }, "#ensureTableStructure")), c(M, tt, /* @__PURE__ */ a((i, e) => {
398
398
  const s = Array.from(i.querySelectorAll(e + " tr")), o = Array.from(i.querySelectorAll(e + " th," + e + " td")), r = s.length;
399
399
  if (r === 0 || o.length === 0) return;
400
400
  let n = 0;
@@ -406,15 +406,15 @@ At = new WeakMap(), Q = new WeakMap(), a(M, "TableCompiler"), c(M, At, /* @__PUR
406
406
  const h = d.sectionRowIndex;
407
407
  let f = 0;
408
408
  Array.from(d.querySelectorAll("th,td")).forEach((u) => {
409
- for (let m = 0; m < l[h].length; m++)
410
- if (l[h][m] === null) {
411
- f = m;
409
+ for (let p = 0; p < l[h].length; p++)
410
+ if (l[h][p] === null) {
411
+ f = p;
412
412
  break;
413
413
  }
414
414
  const g = u.rowSpan || 1, y = u.colSpan || 1;
415
- for (let m = 0; m < g; m++)
415
+ for (let p = 0; p < g; p++)
416
416
  for (let R = 0; R < y; R++)
417
- h + m < r && f + R < n && (l[h + m][f + R] = m === 0 && R === 0 ? "1" : "0");
417
+ h + p < r && f + R < n && (l[h + p][f + R] = p === 0 && R === 0 ? "1" : "0");
418
418
  });
419
419
  }), s.forEach((d) => {
420
420
  const h = d.sectionRowIndex;
@@ -428,25 +428,25 @@ At = new WeakMap(), Q = new WeakMap(), a(M, "TableCompiler"), c(M, At, /* @__PUR
428
428
  });
429
429
  }, "#resetColIndex"));
430
430
  let Gt = M;
431
- var I, w, W, T, N, U, dt, tt, Tt, qt, kt, ft, ut, Lt, Ct, bt, Ht, et, gt;
431
+ var I, w, W, q, B, j, dt, et, qt, Tt, kt, ft, ut, Lt, Ct, bt, Ht, it, gt;
432
432
  const ce = class ce {
433
433
  constructor(i) {
434
434
  c(this, I);
435
435
  c(this, w);
436
436
  c(this, W, /* @__PURE__ */ new Map());
437
- c(this, T, null);
438
- c(this, N, null);
439
- c(this, U, 0);
437
+ c(this, q, null);
438
+ c(this, B, null);
439
+ c(this, j, 0);
440
440
  c(this, dt, 40);
441
- c(this, tt, !1);
442
- c(this, Tt, 3);
441
+ c(this, et, !1);
442
+ c(this, qt, 3);
443
443
  v(this, "refresh", /* @__PURE__ */ a(() => {
444
444
  var e;
445
445
  const i = t(this, w).querySelector(".ng-container-body");
446
- i && (t(this, ft).call(this), t(this, et).call(this, i.scrollTop), (e = t(this, w).querySelector("nine-table-vscrollbar")) == null || e.refresh());
446
+ i && (t(this, ft).call(this), t(this, it).call(this, i.scrollTop), (e = t(this, w).querySelector("nine-table-vscrollbar")) == null || e.refresh());
447
447
  }, "refresh"));
448
448
  v(this, "initialize", /* @__PURE__ */ a(() => {
449
- b(this, T, null), t(this, W).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
449
+ b(this, q, null), t(this, W).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
450
450
  const r = t(this, w).querySelector(o);
451
451
  if (!r) return;
452
452
  const n = r.querySelector("table");
@@ -458,11 +458,11 @@ const ce = class ce {
458
458
  });
459
459
  const i = t(this, w).querySelector(".ng-container-body"), e = t(this, w).querySelector(".ng-container-left"), s = t(this, w).querySelector(".ng-container-right");
460
460
  if (i) {
461
- t(this, kt).call(this, i), t(this, bt).call(this), t(this, ft).call(this), t(this, et).call(this, i.scrollTop);
461
+ t(this, kt).call(this, i), t(this, bt).call(this), t(this, ft).call(this), t(this, it).call(this, i.scrollTop);
462
462
  let o = i.scrollTop;
463
463
  const r = /* @__PURE__ */ a((n) => {
464
464
  var l;
465
- e && e.scrollTop !== n && (e.scrollTop = n), s && s.scrollTop !== n && (s.scrollTop = n), t(this, et).call(this, n), (l = t(this, w).querySelector("nine-table-vscrollbar")) == null || l.refresh();
465
+ e && e.scrollTop !== n && (e.scrollTop = n), s && s.scrollTop !== n && (s.scrollTop = n), t(this, it).call(this, n), (l = t(this, w).querySelector("nine-table-vscrollbar")) == null || l.refresh();
466
466
  }, "syncScroll");
467
467
  i.addEventListener("scroll", () => {
468
468
  const n = i.scrollTop;
@@ -470,7 +470,7 @@ const ce = class ce {
470
470
  });
471
471
  }
472
472
  }, "initialize"));
473
- c(this, qt, /* @__PURE__ */ a((i, e) => {
473
+ c(this, Tt, /* @__PURE__ */ a((i, e) => {
474
474
  const s = t(this, W).get(e);
475
475
  if (!s || s.length === 0) return;
476
476
  const o = i.querySelector("tbody.bindable-tbody");
@@ -484,8 +484,8 @@ const ce = class ce {
484
484
  r ? r.before(n) : o.appendChild(n);
485
485
  }, "#renderRows"));
486
486
  c(this, kt, /* @__PURE__ */ a((i) => {
487
- if (t(this, T) !== null && t(this, T) > 0)
488
- return t(this, T);
487
+ if (t(this, q) !== null && t(this, q) > 0)
488
+ return t(this, q);
489
489
  const e = t(this, W).get(".ng-container-body");
490
490
  if (!e || e.length === 0) return 24;
491
491
  const s = i.querySelector("tbody.bindable-tbody") || i.querySelector("tbody.bindable-tbody:last-of-type");
@@ -501,12 +501,12 @@ const ce = class ce {
501
501
  const u = s.querySelectorAll("tr:not(.nodata)");
502
502
  return u.forEach((g) => {
503
503
  f += g.offsetHeight || g.getBoundingClientRect().height;
504
- }), u.forEach((g) => g.remove()), n.style.display = l, n.style.visibility = d, n.style.position = h, b(this, T, f > 0 ? f : 24), t(this, ut).call(this), t(this, T);
504
+ }), u.forEach((g) => g.remove()), n.style.display = l, n.style.visibility = d, n.style.position = h, b(this, q, f > 0 ? f : 24), t(this, ut).call(this), t(this, q);
505
505
  }, "#measureAndCacheHeight"));
506
506
  // 🎯 ν…Œμ΄λΈ” 높이λ₯Ό 직접 ν‚€μš°λŠ” λŒ€μ‹ , 투λͺ… μŠ€νŽ˜μ΄μ„œ 높이와 translateY둜 슀크둀/μœ„μΉ˜ 정립
507
507
  c(this, ft, /* @__PURE__ */ a(() => {
508
508
  if (!t(this, w).querySelector(".ng-container-body")) return;
509
- const s = (t(this, I).data.get() || []).length, o = t(this, T) || 24, r = s * o;
509
+ const s = (t(this, I).data.get() || []).length, o = t(this, q) || 24, r = s * o;
510
510
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((n) => {
511
511
  const l = t(this, w).querySelector(n);
512
512
  if (!l) return;
@@ -517,9 +517,9 @@ const ce = class ce {
517
517
  });
518
518
  }, "#updateVirtualScrollHeight"));
519
519
  c(this, ut, /* @__PURE__ */ a(() => {
520
- if ((t(this, I).data.get() || []).length, t(this, U) > 0 && t(this, T) > 0) {
521
- const e = Math.ceil(t(this, U) / t(this, T));
522
- b(this, dt, e + t(this, Tt));
520
+ if ((t(this, I).data.get() || []).length, t(this, j) > 0 && t(this, q) > 0) {
521
+ const e = Math.ceil(t(this, j) / t(this, q));
522
+ b(this, dt, e + t(this, qt));
523
523
  }
524
524
  }, "#updateRowCount"));
525
525
  c(this, Lt, /* @__PURE__ */ a(() => {
@@ -537,7 +537,7 @@ const ce = class ce {
537
537
  }
538
538
  }, "#syncRowHeights"));
539
539
  c(this, Ct, /* @__PURE__ */ a(() => {
540
- !t(this, w) || !(t(this, w) instanceof HTMLElement) || (b(this, N, new ResizeObserver((i) => {
540
+ !t(this, w) || !(t(this, w) instanceof HTMLElement) || (b(this, B, new ResizeObserver((i) => {
541
541
  for (const e of i) {
542
542
  const s = e.target;
543
543
  if (!s.classList.contains("active")) continue;
@@ -547,15 +547,15 @@ const ce = class ce {
547
547
  const n = s.querySelector("thead");
548
548
  n && (r += n.offsetHeight || n.getBoundingClientRect().height);
549
549
  const l = Math.max(o - r, 100);
550
- t(this, U) !== l && (b(this, U, l), t(this, ut).call(this), t(this, T) !== null && t(this, bt).call(this));
550
+ t(this, j) !== l && (b(this, j, l), t(this, ut).call(this), t(this, q) !== null && t(this, bt).call(this));
551
551
  }
552
552
  }
553
- })), t(this, N).observe(t(this, w)));
553
+ })), t(this, B).observe(t(this, w)));
554
554
  }, "#initResizeObserver"));
555
555
  c(this, bt, /* @__PURE__ */ a(() => {
556
556
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
557
557
  const e = t(this, w).querySelector(i);
558
- e && e.querySelector("tbody.bindable-tbody") && t(this, qt).call(this, e, i);
558
+ e && e.querySelector("tbody.bindable-tbody") && t(this, Tt).call(this, e, i);
559
559
  }), t(this, Lt).call(this);
560
560
  }, "#renderAllContainers"));
561
561
  c(this, Ht, /* @__PURE__ */ a((i) => {
@@ -577,27 +577,32 @@ const ce = class ce {
577
577
  });
578
578
  });
579
579
  }, "#adjustBufferRows"));
580
- c(this, et, /* @__PURE__ */ a((i) => {
580
+ c(this, it, /* @__PURE__ */ a((i) => {
581
581
  var d;
582
- const e = t(this, T);
582
+ const e = t(this, q);
583
583
  if (!e || e <= 0) return;
584
584
  const o = (t(this, I).data.get() || []).length, r = Math.max(0, Math.floor(i / e)), n = r * e, l = ((d = t(this, W).get(".ng-container-body")) == null ? void 0 : d.length) || 1;
585
585
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((h) => {
586
586
  const f = t(this, w).querySelector(h);
587
587
  if (!f) return;
588
- const u = f.querySelector("tbody.bindable-tbody");
589
- if (!u) return;
590
- u.style.transform = `translateY(${n}px)`, Array.from(u.querySelectorAll("tr:not(.nodata)")).forEach((y, m) => {
591
- const R = r + Math.floor(m / l);
592
- if (R >= o) {
593
- y.style.display = "none";
588
+ const u = f.querySelector("table");
589
+ if (u) {
590
+ const p = u.querySelector("thead"), R = u.querySelector("tbody.fixed-tbody");
591
+ p && (p.style.transform = `translateY(${i}px)`), R && (R.style.transform = `translateY(${i}px)`);
592
+ }
593
+ const g = f.querySelector("tbody.bindable-tbody");
594
+ if (!g) return;
595
+ g.style.transform = `translateY(${n}px)`, Array.from(g.querySelectorAll("tr:not(.nodata)")).forEach((p, R) => {
596
+ const O = r + Math.floor(R / l);
597
+ if (O >= o) {
598
+ p.style.display = "none";
594
599
  return;
595
600
  }
596
- const G = t(this, I).data.get(R);
597
- y.style.display = "", t(this, gt).call(this, y, G, R);
601
+ const P = t(this, I).data.get(O);
602
+ p.style.display = "", t(this, gt).call(this, p, P, O);
598
603
  });
599
- }), t(this, tt) || (b(this, tt, !0), setTimeout(() => {
600
- t(this, Ht).call(this, r), b(this, tt, !1);
604
+ }), t(this, et) || (b(this, et, !0), setTimeout(() => {
605
+ t(this, Ht).call(this, r), b(this, et, !1);
601
606
  }, 0));
602
607
  }, "#handleScroll"));
603
608
  c(this, gt, /* @__PURE__ */ a((i, e, s) => {
@@ -607,30 +612,30 @@ const ce = class ce {
607
612
  });
608
613
  }, "#bindRowData"));
609
614
  v(this, "destroy", /* @__PURE__ */ a(() => {
610
- t(this, N) && (t(this, N).disconnect(), b(this, N, null));
615
+ t(this, B) && (t(this, B).disconnect(), b(this, B, null));
611
616
  }, "destroy"));
612
617
  b(this, I, i.getRootNode().host), b(this, w, i), t(this, Ct).call(this);
613
618
  }
614
619
  getRowHeight() {
615
- return t(this, T);
620
+ return t(this, q);
616
621
  }
617
622
  templateLength(i = ".ng-container-body") {
618
623
  var e;
619
624
  return ((e = t(this, W).get(i)) == null ? void 0 : e.length) || 1;
620
625
  }
621
626
  };
622
- I = new WeakMap(), w = new WeakMap(), W = new WeakMap(), T = new WeakMap(), N = new WeakMap(), U = new WeakMap(), dt = new WeakMap(), tt = new WeakMap(), Tt = new WeakMap(), qt = new WeakMap(), kt = new WeakMap(), ft = new WeakMap(), ut = new WeakMap(), Lt = new WeakMap(), Ct = new WeakMap(), bt = new WeakMap(), Ht = new WeakMap(), et = new WeakMap(), gt = new WeakMap(), a(ce, "RowManager");
627
+ I = new WeakMap(), w = new WeakMap(), W = new WeakMap(), q = new WeakMap(), B = new WeakMap(), j = new WeakMap(), dt = new WeakMap(), et = new WeakMap(), qt = new WeakMap(), Tt = new WeakMap(), kt = new WeakMap(), ft = new WeakMap(), ut = new WeakMap(), Lt = new WeakMap(), Ct = new WeakMap(), bt = new WeakMap(), Ht = new WeakMap(), it = new WeakMap(), gt = new WeakMap(), a(ce, "RowManager");
623
628
  let Jt = ce;
624
- var Mt, it, F, _t, It, $t, Wt, Ot;
629
+ var Mt, st, K, _t, $t, It, Wt, Ot;
625
630
  const at = class at extends HTMLElement {
626
631
  constructor() {
627
632
  super();
628
633
  c(this, Mt);
629
- c(this, it, null);
630
- c(this, F);
634
+ c(this, st, null);
635
+ c(this, K);
631
636
  v(this, "invalidate", /* @__PURE__ */ a(() => {
632
637
  var e, s;
633
- t(this, F).refresh(), (e = this.querySelector("nine-table-hscrollbar")) == null || e.refresh(), (s = this.querySelector("nine-table-vscrollbar")) == null || s.refresh();
638
+ t(this, K).refresh(), (e = this.querySelector("nine-table-hscrollbar")) == null || e.refresh(), (s = this.querySelector("nine-table-vscrollbar")) == null || s.refresh();
634
639
  }, "invalidate"));
635
640
  c(this, _t, /* @__PURE__ */ a(() => {
636
641
  [
@@ -640,7 +645,7 @@ const at = class at extends HTMLElement {
640
645
  ].forEach(({ selector: s, type: o }) => {
641
646
  const r = this.querySelector(s);
642
647
  if (!r) return;
643
- const n = t(this, $t).call(this, t(this, it), o);
648
+ const n = t(this, It).call(this, t(this, st), o);
644
649
  r.innerHTML = "";
645
650
  const l = document.createElement("div");
646
651
  l.className = "ng-scroll-content", l.style.position = "relative", l.style.width = "100%", l.appendChild(n);
@@ -648,7 +653,7 @@ const at = class at extends HTMLElement {
648
653
  d.className = "ng-virtual-spacer", d.style.width = "100%", d.style.pointerEvents = "none", l.appendChild(d), r.appendChild(l);
649
654
  });
650
655
  }, "#renderSplitContainers"));
651
- c(this, It, /* @__PURE__ */ a(() => {
656
+ c(this, $t, /* @__PURE__ */ a(() => {
652
657
  ["left", "right"].forEach((e) => {
653
658
  const s = this.querySelector(`.ng-container-${e}`), o = s == null ? void 0 : s.querySelector("table");
654
659
  if (!s || !o) return;
@@ -660,18 +665,18 @@ const at = class at extends HTMLElement {
660
665
  });
661
666
  }, "#updateContainerWidths"));
662
667
  v(this, "generate", /* @__PURE__ */ a((e) => {
663
- e && (b(this, it, Gt.compile(e)), t(this, it).style.display = "table", t(this, _t).call(this), t(this, It).call(this), requestAnimationFrame(() => {
668
+ e && (b(this, st, Gt.compile(e)), t(this, st).style.display = "table", t(this, _t).call(this), t(this, $t).call(this), requestAnimationFrame(() => {
664
669
  var o;
665
670
  const s = (o = this.querySelector("thead")) == null ? void 0 : o.getBoundingClientRect().height;
666
671
  this.querySelectorAll("tbody.fixed-tbody").forEach((r) => {
667
672
  r.style.top = `${s}px`;
668
673
  });
669
- }), t(this, F).initialize(), setTimeout(() => {
674
+ }), t(this, K).initialize(), setTimeout(() => {
670
675
  var s;
671
676
  (s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
672
677
  }, 0));
673
678
  }, "generate"));
674
- c(this, $t, /* @__PURE__ */ a((e, s) => {
679
+ c(this, It, /* @__PURE__ */ a((e, s) => {
675
680
  const o = e.cloneNode(!0), r = o.querySelector("tbody");
676
681
  if (r) {
677
682
  const n = document.createElement("tbody");
@@ -685,7 +690,7 @@ const at = class at extends HTMLElement {
685
690
  n.remove();
686
691
  }), o;
687
692
  }, "#createSplitTable"));
688
- v(this, "getRowHeight", /* @__PURE__ */ a(() => t(this, F).getRowHeight(), "getRowHeight"));
693
+ v(this, "getRowHeight", /* @__PURE__ */ a(() => t(this, K).getRowHeight(), "getRowHeight"));
689
694
  v(this, "scrollToX", /* @__PURE__ */ a((e) => {
690
695
  const s = this.querySelector(".ng-container-body");
691
696
  s && (s.scrollLeft = e);
@@ -843,7 +848,7 @@ const at = class at extends HTMLElement {
843
848
  </div>
844
849
  `;
845
850
  }, "#render"));
846
- b(this, F, new Jt(this)), b(this, Mt, this.getRootNode().host);
851
+ b(this, K, new Jt(this)), b(this, Mt, this.getRootNode().host);
847
852
  }
848
853
  connectedCallback() {
849
854
  t(this, Wt).call(this);
@@ -852,7 +857,7 @@ const at = class at extends HTMLElement {
852
857
  this.innerHTML = "", H.log("NineTableSheet destroyed.");
853
858
  }
854
859
  };
855
- Mt = new WeakMap(), it = new WeakMap(), F = new WeakMap(), _t = new WeakMap(), It = new WeakMap(), $t = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), a(at, "NineTableSheet"), v(at, "SCROLLBAR_SIZE", 16);
860
+ Mt = new WeakMap(), st = new WeakMap(), K = new WeakMap(), _t = new WeakMap(), $t = new WeakMap(), It = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), a(at, "NineTableSheet"), v(at, "SCROLLBAR_SIZE", 16);
856
861
  let wt = at;
857
862
  customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", wt);
858
863
  var zt, yt;
@@ -873,8 +878,8 @@ const he = class he extends HTMLElement {
873
878
  Array.from(this.querySelectorAll("nine-splitter")).forEach((y) => y.style.setProperty("display", "none"));
874
879
  const g = f.filter((y) => y.classList.contains("active"));
875
880
  g.length < 2 || g.forEach((y) => {
876
- const m = parseInt(y.getAttribute("data-index"), 10), R = this.querySelector(`nine-splitter[data-split-index="${m}"]`), G = f[m + 1];
877
- R && G && G.classList.contains("active") && R.style.setProperty("display", "flex");
881
+ const p = parseInt(y.getAttribute("data-index"), 10), R = this.querySelector(`nine-splitter[data-split-index="${p}"]`), O = f[p + 1];
882
+ R && O && O.classList.contains("active") && R.style.setProperty("display", "flex");
878
883
  });
879
884
  }, "updateSplitters"), r = this.querySelector(".nine-tab-bar"), n = this.querySelector("nine-table-sheets-body"), l = r.querySelectorAll(".nine-tab-item"), d = n.querySelectorAll("nine-table-sheet");
880
885
  if (!l[e]) return;
@@ -906,29 +911,29 @@ const he = class he extends HTMLElement {
906
911
  zt = new WeakMap(), yt = new WeakMap(), a(he, "NineTableSheets");
907
912
  let Qt = he;
908
913
  customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Qt);
909
- var q, Nt, pt, Bt;
914
+ var T, Nt, pt, Bt;
910
915
  const de = class de {
911
916
  constructor(i) {
912
- c(this, q);
917
+ c(this, T);
913
918
  c(this, Nt, /* @__PURE__ */ a(() => {
914
919
  t(this, Bt).call(this), new ResizeObserver((i) => {
915
920
  for (let e of i)
916
- t(this, q).getAttribute("auto-height") === "true" && t(this, pt).call(this);
917
- }).observe(t(this, q));
921
+ t(this, T).getAttribute("auto-height") === "true" && t(this, pt).call(this);
922
+ }).observe(t(this, T));
918
923
  }, "#init"));
919
924
  c(this, pt, /* @__PURE__ */ a(() => {
920
925
  var d, h;
921
- const i = Array.from(t(this, q).shadowRoot.querySelectorAll("nine-table-sheet.active"));
926
+ const i = Array.from(t(this, T).shadowRoot.querySelectorAll("nine-table-sheet.active"));
922
927
  if (i.length === 0) return;
923
- const e = parseInt(t(this, q).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), o = (d = t(this, q).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : d.getBoundingClientRect().height, r = (h = t(this, q).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : h.getBoundingClientRect().height, n = wt.SCROLLBAR_SIZE, l = e * s + o + r + n;
924
- t(this, q).style.height = `${l}px`;
928
+ const e = parseInt(t(this, T).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), o = (d = t(this, T).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : d.getBoundingClientRect().height, r = (h = t(this, T).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : h.getBoundingClientRect().height, n = wt.SCROLLBAR_SIZE, l = e * s + o + r + n;
929
+ t(this, T).style.height = `${l}px`;
925
930
  }, "#applyAutoHeight"));
926
931
  c(this, Bt, /* @__PURE__ */ a(() => {
927
- const e = Array.from(t(this, q).children).filter((d) => d.tagName === "TABLE"), s = t(this, q).getAttribute("auto-height") === "true", o = e.length, r = e.map((d, h) => {
932
+ const e = Array.from(t(this, T).children).filter((d) => d.tagName === "TABLE"), s = t(this, T).getAttribute("auto-height") === "true", o = e.length, r = e.map((d, h) => {
928
933
  const u = `<nine-table-sheet class="${h === 0 ? "active" : ""}" data-index="${h}"></nine-table-sheet>`, g = h < o - 1 ? `<nine-splitter class="h" data-split-index="${h}"></nine-splitter>` : "";
929
934
  return u + g;
930
935
  }).join(""), n = e.map((d, h) => `<div class="nine-tab-item ${h === 0 ? "active" : ""}" data-index="${h}">Sheet ${h + 1}</div>`).join("");
931
- t(this, q).shadowRoot.innerHTML = `
936
+ t(this, T).shadowRoot.innerHTML = `
932
937
  <style>
933
938
  :host {
934
939
  display: flex;
@@ -1019,56 +1024,56 @@ const de = class de {
1019
1024
  </nine-table-body>
1020
1025
  <nine-table-footer></nine-table-footer>
1021
1026
  `;
1022
- const l = t(this, q).shadowRoot.querySelectorAll("nine-table-sheet");
1027
+ const l = t(this, T).shadowRoot.querySelectorAll("nine-table-sheet");
1023
1028
  l == null || l.forEach((d, h) => {
1024
1029
  e[h] && setTimeout(() => {
1025
1030
  d.generate(e[h]), s && t(this, pt).call(this);
1026
1031
  });
1027
1032
  });
1028
1033
  }, "#render"));
1029
- b(this, q, i), t(this, Nt).call(this);
1034
+ b(this, T, i), t(this, Nt).call(this);
1030
1035
  }
1031
1036
  };
1032
- q = new WeakMap(), Nt = new WeakMap(), pt = new WeakMap(), Bt = new WeakMap(), a(de, "LayoutManager");
1037
+ T = new WeakMap(), Nt = new WeakMap(), pt = new WeakMap(), Bt = new WeakMap(), a(de, "LayoutManager");
1033
1038
  let te = de;
1034
- var mt, st;
1039
+ var mt, nt;
1035
1040
  const fe = class fe {
1036
1041
  constructor(i) {
1037
1042
  c(this, mt);
1038
- c(this, st, -1);
1043
+ c(this, nt, -1);
1039
1044
  v(this, "count", /* @__PURE__ */ a(() => t(this, mt).rawRecords.length, "count"));
1040
1045
  b(this, mt, i);
1041
1046
  }
1042
1047
  get at() {
1043
- return t(this, st);
1048
+ return t(this, nt);
1044
1049
  }
1045
1050
  set at(i) {
1046
- b(this, st, parseInt(i, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, st)}"]`) && setTimeout(() => {
1051
+ b(this, nt, parseInt(i, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, nt)}"]`) && setTimeout(() => {
1047
1052
  });
1048
1053
  }
1049
1054
  };
1050
- mt = new WeakMap(), st = new WeakMap(), a(fe, "ngRow");
1055
+ mt = new WeakMap(), nt = new WeakMap(), a(fe, "ngRow");
1051
1056
  let ee = fe;
1052
- var k, E, L, nt, Dt, B, Pt, j, xt, Yt, Vt, ot;
1057
+ var k, E, L, ot, Dt, D, Pt, Z, xt, Yt, Vt, rt;
1053
1058
  const C = class C {
1054
1059
  constructor(i, e) {
1055
1060
  c(this, k);
1056
1061
  c(this, E);
1057
1062
  c(this, L, []);
1058
- c(this, nt, []);
1063
+ c(this, ot, []);
1059
1064
  c(this, Dt, 0);
1060
- c(this, B, []);
1065
+ c(this, D, []);
1061
1066
  c(this, Pt, /* @__PURE__ */ a(() => {
1062
- b(this, B, []);
1067
+ b(this, D, []);
1063
1068
  const i = t(this, k).template || [];
1064
1069
  Array.from(i).forEach((e) => {
1065
1070
  var s;
1066
- t(this, B).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
1071
+ t(this, D).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
1067
1072
  }), (t(this, E).rawRecords || []).forEach((e) => {
1068
- e.__ng || (e.__ng = t(this, xt).call(this)), e.__ng.height = t(this, B).slice();
1073
+ e.__ng || (e.__ng = t(this, xt).call(this)), e.__ng.height = t(this, D).slice();
1069
1074
  });
1070
1075
  }, "#initialize"));
1071
- c(this, j, /* @__PURE__ */ a(() => {
1076
+ c(this, Z, /* @__PURE__ */ a(() => {
1072
1077
  t(this, k).shadowRoot.querySelectorAll("nine-table-sheet").forEach((i) => {
1073
1078
  i.invalidate();
1074
1079
  });
@@ -1077,33 +1082,33 @@ const C = class C {
1077
1082
  var r;
1078
1083
  const s = this.getValidData();
1079
1084
  if (!s || s.length <= 0) return;
1080
- if (i == null) return t(this, ot).call(this, s);
1085
+ if (i == null) return t(this, rt).call(this, s);
1081
1086
  if (i < 0 || i >= s.length) return null;
1082
1087
  const o = typeof ((r = t(this, k).fields) == null ? void 0 : r.get) == "function" ? t(this, k).fields.get() : [];
1083
1088
  if (e != null) {
1084
1089
  const n = o.indexOf(e);
1085
1090
  return n >= 0 ? s[i].v[n] : null;
1086
1091
  }
1087
- return t(this, ot).call(this, s[i]);
1092
+ return t(this, rt).call(this, s[i]);
1088
1093
  }, "get"));
1089
1094
  v(this, "set", /* @__PURE__ */ a((i) => {
1090
- this.clear(), this.add(i, !1), t(this, j).call(this);
1095
+ this.clear(), this.add(i, !1), t(this, Z).call(this);
1091
1096
  }, "set"));
1092
1097
  c(this, xt, /* @__PURE__ */ a(() => ({
1093
1098
  rowState: C.ROW_STATE.EMPTY,
1094
1099
  deleted: !1,
1095
1100
  filtered: !1,
1096
- height: t(this, B).slice(),
1101
+ height: t(this, D).slice(),
1097
1102
  o: {},
1098
1103
  c: {},
1099
- _: [0, 0, 0, 0, C.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, B).slice(), -1, {}, {}]
1104
+ _: [0, 0, 0, 0, C.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, D).slice(), -1, {}, {}]
1100
1105
  }), "#getDefaultMeta"));
1101
1106
  v(this, "reset", /* @__PURE__ */ a(() => {
1102
- b(this, L, []), b(this, nt, []), t(this, j).call(this);
1107
+ b(this, L, []), b(this, ot, []), t(this, Z).call(this);
1103
1108
  }, "reset"));
1104
1109
  v(this, "clear", /* @__PURE__ */ a(() => {
1105
1110
  var i;
1106
- t(this, E).rawRecords = [], b(this, L, []), b(this, nt, []), (i = t(this, E).viewRecords) != null && i.reset && t(this, E).viewRecords.reset();
1111
+ t(this, E).rawRecords = [], b(this, L, []), b(this, ot, []), (i = t(this, E).viewRecords) != null && i.reset && t(this, E).viewRecords.reset();
1107
1112
  }, "clear"));
1108
1113
  c(this, Yt, /* @__PURE__ */ a((i) => {
1109
1114
  var o;
@@ -1127,7 +1132,7 @@ const C = class C {
1127
1132
  return e || s.forEach((r, n) => {
1128
1133
  const l = t(this, E).rawRecords[o - n];
1129
1134
  l && (l.__ng.rowState = C.ROW_STATE.EMPTY);
1130
- }), t(this, j).call(this), o;
1135
+ }), t(this, Z).call(this), o;
1131
1136
  }, "add"));
1132
1137
  v(this, "delete", /* @__PURE__ */ a((i) => {
1133
1138
  let e = [];
@@ -1138,7 +1143,7 @@ const C = class C {
1138
1143
  r.__ng.rowid === o && (r.__ng.deleted = !0, r.__ng.rowState = C.ROW_STATE.DELETE);
1139
1144
  });
1140
1145
  }
1141
- }), this.resetRecords(), t(this, j).call(this);
1146
+ }), this.resetRecords(), t(this, Z).call(this);
1142
1147
  }, "delete"));
1143
1148
  v(this, "setValue", /* @__PURE__ */ a((i, e, s) => {
1144
1149
  var d;
@@ -1151,14 +1156,14 @@ const C = class C {
1151
1156
  l !== s && n.__ng.rowState !== C.ROW_STATE.INSERT && (n.__ng.o.hasOwnProperty(e) || (n.__ng.o[e] = l), n.__ng.rowState = C.ROW_STATE.UPDATE), n.v[r] = s;
1152
1157
  }, "setValue"));
1153
1158
  v(this, "resetRecords", /* @__PURE__ */ a(() => {
1154
- b(this, nt, t(this, E).rawRecords.filter((i) => !i.__ng.deleted)), b(this, L, t(this, E).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), t(this, E).rawRecords.forEach((i, e) => {
1159
+ b(this, ot, t(this, E).rawRecords.filter((i) => !i.__ng.deleted)), b(this, L, t(this, E).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), t(this, E).rawRecords.forEach((i, e) => {
1155
1160
  i.__ng.rowidx = e;
1156
1161
  }), t(this, L).forEach((i, e) => {
1157
1162
  i.__ng.i = e;
1158
1163
  });
1159
1164
  }, "resetRecords"));
1160
1165
  v(this, "getValidData", /* @__PURE__ */ a(() => (t(this, L).length === 0 && t(this, E).rawRecords.length > 0 && this.resetRecords(), t(this, L)), "getValidData"));
1161
- c(this, ot, /* @__PURE__ */ a((i) => {
1166
+ c(this, rt, /* @__PURE__ */ a((i) => {
1162
1167
  var n;
1163
1168
  if (!i) return i;
1164
1169
  const e = !Array.isArray(i), s = e ? [i] : i, o = typeof ((n = t(this, k).fields) == null ? void 0 : n.get) == "function" ? t(this, k).fields.get() : [], r = s.filter((l) => !l.__ng.deleted).map((l) => {
@@ -1173,7 +1178,7 @@ const C = class C {
1173
1178
  b(this, k, i), b(this, E, e), t(this, Pt).call(this);
1174
1179
  }
1175
1180
  get source() {
1176
- return t(this, ot).call(this, t(this, E).rawRecords);
1181
+ return t(this, rt).call(this, t(this, E).rawRecords);
1177
1182
  }
1178
1183
  set source(i) {
1179
1184
  this.clear(), this.add(i, !1);
@@ -1188,7 +1193,7 @@ const C = class C {
1188
1193
  return this.length;
1189
1194
  }
1190
1195
  };
1191
- k = new WeakMap(), E = new WeakMap(), L = new WeakMap(), nt = new WeakMap(), Dt = new WeakMap(), B = new WeakMap(), Pt = new WeakMap(), j = new WeakMap(), xt = new WeakMap(), Yt = new WeakMap(), Vt = new WeakMap(), ot = new WeakMap(), a(C, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1196
+ k = new WeakMap(), E = new WeakMap(), L = new WeakMap(), ot = new WeakMap(), Dt = new WeakMap(), D = new WeakMap(), Pt = new WeakMap(), Z = new WeakMap(), xt = new WeakMap(), Yt = new WeakMap(), Vt = new WeakMap(), rt = new WeakMap(), a(C, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1192
1197
  v(C, "ROW_STATE", {
1193
1198
  EMPTY: "EMPTY",
1194
1199
  NORMAL: "NORMAL",
@@ -1197,13 +1202,13 @@ v(C, "ROW_STATE", {
1197
1202
  DELETE: "DELETE"
1198
1203
  });
1199
1204
  let ie = C;
1200
- var K;
1205
+ var G;
1201
1206
  const ue = class ue {
1202
1207
  constructor(i) {
1203
- c(this, K);
1204
- b(this, K, i), this.row = new ee(this), this.data = new ie(t(this, K), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1208
+ c(this, G);
1209
+ b(this, G, i), this.row = new ee(this), this.data = new ie(t(this, G), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1205
1210
  var e;
1206
- (e = t(this, K).view) != null && e.redraw && t(this, K).view.redraw();
1211
+ (e = t(this, G).view) != null && e.redraw && t(this, G).view.redraw();
1207
1212
  }, this.setDataSource = (e) => {
1208
1213
  this.data && this.data.reset(), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.data.set(e || []);
1209
1214
  }, this.getRowState = (e) => {
@@ -1218,13 +1223,13 @@ const ue = class ue {
1218
1223
  }, this.setDataSource([]);
1219
1224
  }
1220
1225
  };
1221
- K = new WeakMap(), a(ue, "ngDataManager");
1226
+ G = new WeakMap(), a(ue, "ngDataManager");
1222
1227
  let se = ue;
1223
- var rt, A, vt, Xt;
1228
+ var lt, A, vt, Xt;
1224
1229
  const be = class be {
1225
1230
  // 🎯 이제 { name: string, type: string } κ°μ²΄λ“€μ˜ λ°°μ—΄λ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.
1226
1231
  constructor(i) {
1227
- c(this, rt);
1232
+ c(this, lt);
1228
1233
  c(this, A, []);
1229
1234
  v(this, "add", /* @__PURE__ */ a((i, e = "string") => {
1230
1235
  i.forEach((s) => {
@@ -1238,8 +1243,8 @@ const be = class be {
1238
1243
  }), b(this, A, Array.from(i, ([e, s]) => ({ name: e, type: s }))), b(this, A, t(this, A).filter((e) => e.name !== "" && e.name !== "__ng")), t(this, A).sort((e, s) => e.name.length < s.name.length ? 1 : -1);
1239
1244
  }, "#adjust"));
1240
1245
  c(this, Xt, /* @__PURE__ */ a(() => {
1241
- b(this, A, []), H.log(t(this, rt).querySelectorAll("table"));
1242
- const i = Array.from(t(this, rt).querySelectorAll("table"));
1246
+ b(this, A, []), H.log(t(this, lt).querySelectorAll("table"));
1247
+ const i = Array.from(t(this, lt).querySelectorAll("table"));
1243
1248
  if (!(!i || i.length === 0)) {
1244
1249
  for (const e of i)
1245
1250
  H.log(e), $("[data-bind]", e).each((s, o) => {
@@ -1269,7 +1274,7 @@ const be = class be {
1269
1274
  t(this, vt).call(this);
1270
1275
  }
1271
1276
  }, "#init"));
1272
- b(this, rt, i), t(this, Xt).call(this);
1277
+ b(this, lt, i), t(this, Xt).call(this);
1273
1278
  }
1274
1279
  // 🎯 기쑴에 ν•„λ“œ μ΄λ¦„λ§Œ μ“°λ˜ κ³³λ“€κ³Όμ˜ ν˜Έν™˜μ„ μœ„ν•΄ 이름 λ°°μ—΄λ§Œ λ¦¬ν„΄ν•˜λŠ” λ©”μ„œλ“œ μœ μ§€
1275
1280
  get() {
@@ -1291,19 +1296,19 @@ const be = class be {
1291
1296
  return t(this, A).some((e) => e.name === i);
1292
1297
  }
1293
1298
  };
1294
- rt = new WeakMap(), A = new WeakMap(), vt = new WeakMap(), Xt = new WeakMap(), a(be, "ngFields");
1299
+ lt = new WeakMap(), A = new WeakMap(), vt = new WeakMap(), Xt = new WeakMap(), a(be, "ngFields");
1295
1300
  let ne = be;
1296
- var Z, Ut, Ft;
1301
+ var J, Ut, Ft;
1297
1302
  const ge = class ge extends HTMLElement {
1298
1303
  constructor() {
1299
1304
  super();
1300
1305
  //#created = false;
1301
- c(this, Z);
1306
+ c(this, J);
1302
1307
  c(this, Ut);
1303
1308
  c(this, Ft, /* @__PURE__ */ a(() => {
1304
1309
  this.fields = new ne(this), b(this, Ut, new te(this)), H.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1305
1310
  }, "#init"));
1306
- this.attachShadow({ mode: "open" }), b(this, Z, new se(this));
1311
+ this.attachShadow({ mode: "open" }), b(this, J, new se(this));
1307
1312
  }
1308
1313
  connectedCallback() {
1309
1314
  t(this, Ft).call(this);
@@ -1313,18 +1318,18 @@ const ge = class ge extends HTMLElement {
1313
1318
  }
1314
1319
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
1315
1320
  get data() {
1316
- return t(this, Z).data;
1321
+ return t(this, J).data;
1317
1322
  }
1318
1323
  // 🎯 ν–‰(row) κ΄€λ ¨ μ œμ–΄ μ ‘κ·Όμž μ˜€ν”ˆ
1319
1324
  get row() {
1320
- return t(this, Z).row;
1325
+ return t(this, J).row;
1321
1326
  }
1322
1327
  // 🎯 전체 데이터 λ§€λ‹ˆμ € μ ‘κ·Ό ν•„μš”ν•  경우
1323
1328
  get dataManager() {
1324
- return t(this, Z);
1329
+ return t(this, J);
1325
1330
  }
1326
1331
  };
1327
- Z = new WeakMap(), Ut = new WeakMap(), Ft = new WeakMap(), a(ge, "NineTable");
1332
+ J = new WeakMap(), Ut = new WeakMap(), Ft = new WeakMap(), a(ge, "NineTable");
1328
1333
  let oe = ge;
1329
1334
  customElements.get("nine-table") || customElements.define("nine-table", oe);
1330
1335
  //# sourceMappingURL=nine-table.js.map