@ninebone/table 0.0.151 β†’ 0.0.153

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,16 +2,16 @@ var Me = Object.defineProperty;
2
2
  var $e = (w) => {
3
3
  throw TypeError(w);
4
4
  };
5
- var ze = (w, i, t) => i in w ? Me(w, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : w[i] = t;
6
- var a = (w, i) => Me(w, "name", { value: i, configurable: !0 });
7
- var v = (w, i, t) => ze(w, typeof i != "symbol" ? i + "" : i, t), Ie = (w, i, t) => i.has(w) || $e("Cannot " + t);
8
- var e = (w, i, t) => (Ie(w, i, "read from private field"), t ? t.call(w) : i.get(w)), u = (w, i, t) => i.has(w) ? $e("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(w) : i.set(w, t), p = (w, i, t, s) => (Ie(w, i, "write to private field"), s ? s.call(w, t) : i.set(w, t), t);
9
- var He = (w, i, t, s) => ({
5
+ var ze = (w, s, t) => s in w ? Me(w, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : w[s] = t;
6
+ var a = (w, s) => Me(w, "name", { value: s, configurable: !0 });
7
+ var v = (w, s, t) => ze(w, typeof s != "symbol" ? s + "" : s, t), Ie = (w, s, t) => s.has(w) || $e("Cannot " + t);
8
+ var e = (w, s, t) => (Ie(w, s, "read from private field"), t ? t.call(w) : s.get(w)), u = (w, s, t) => s.has(w) ? $e("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(w) : s.set(w, t), p = (w, s, t, i) => (Ie(w, s, "write to private field"), i ? i.call(w, t) : s.set(w, t), t);
9
+ var He = (w, s, t, i) => ({
10
10
  set _(n) {
11
- p(w, i, n, t);
11
+ p(w, s, n, t);
12
12
  },
13
13
  get _() {
14
- return e(w, i, s);
14
+ return e(w, s, i);
15
15
  }
16
16
  });
17
17
  import { trace as We } from "@ninebone/util";
@@ -22,7 +22,7 @@ const Re = class Re extends We.constructor {
22
22
  };
23
23
  a(Re, "Trace");
24
24
  let be = Re;
25
- const j = new be();
25
+ const J = new be();
26
26
  var _, O, y, B, D, N, ee, P, te;
27
27
  const Te = class Te extends HTMLElement {
28
28
  constructor() {
@@ -42,9 +42,9 @@ const Te = class Te extends HTMLElement {
42
42
  }, "#observeResize"));
43
43
  v(this, "refresh", /* @__PURE__ */ a(() => {
44
44
  if (!e(this, _) || !e(this, y) || e(this, O)) return;
45
- const t = e(this, y).container, s = t.querySelector("table");
46
- if (!s) return;
47
- const n = e(this, y).track, o = e(this, y).thumb, r = e(this, _).querySelector(".ng-container-bottom"), l = t.clientWidth, g = s.scrollWidth;
45
+ const t = e(this, y).container, i = t.querySelector("table");
46
+ if (!i) return;
47
+ const n = e(this, y).track, o = e(this, y).thumb, r = e(this, _).querySelector(".ng-container-bottom"), l = t.clientWidth, g = i.scrollWidth;
48
48
  if (l !== 0 && g > l)
49
49
  r && (r.style.display = "flex");
50
50
  else {
@@ -56,12 +56,12 @@ const Te = class Te extends HTMLElement {
56
56
  const h = Math.max(Math.min(c * (l / g), c), 20);
57
57
  o.style.width = `${h}px`;
58
58
  let d = 0;
59
- const b = s.style.transform;
59
+ const b = i.style.transform;
60
60
  if (b && b.includes("translateX")) {
61
61
  const x = b.match(/translateX\(([-\d.]+)px\)/);
62
62
  x && x[1] && (d = parseFloat(x[1]));
63
63
  } else
64
- d = parseInt(s.style.left || 0, 10);
64
+ d = parseInt(i.style.left || 0, 10);
65
65
  let f = parseInt(Math.abs(d) * c / g, 10);
66
66
  f < 0 && (f = 0);
67
67
  const S = c - h;
@@ -69,14 +69,14 @@ const Te = class Te extends HTMLElement {
69
69
  }, "refresh"));
70
70
  u(this, P, /* @__PURE__ */ a((t) => {
71
71
  if (!e(this, y)) return !1;
72
- const s = e(this, y).container, n = s.querySelector("table");
72
+ const i = e(this, y).container, n = i.querySelector("table");
73
73
  if (!n) return !1;
74
74
  const o = e(this, y).track.getBoundingClientRect(), r = e(this, y).thumb.clientWidth;
75
75
  let l = t;
76
76
  l < 0 && (l = 0);
77
77
  const g = o.width - r;
78
78
  l > g && (l = g), l = parseInt(l, 10), e(this, y).thumb.style.left = `${l}px`, e(this, y).left.disabled = l === 0, e(this, y).right.disabled = l >= g - 1;
79
- const c = s.clientWidth, h = n.scrollWidth;
79
+ const c = i.clientWidth, h = n.scrollWidth;
80
80
  let d = g > 0 ? -l * (h - c) / g : 0;
81
81
  return -d > h - c && (d = -(h - c)), -d + 5 > h - c && (d = -(h - c)), c >= h && (d = 0), n.style.transform = `translateX(${d}px)`, l > 0 && l < g - 1;
82
82
  }, "#thumbMoveTo"));
@@ -90,11 +90,11 @@ const Te = class Te extends HTMLElement {
90
90
  e(this, P).call(this, r + n) || clearInterval(e(this, D));
91
91
  }, 50));
92
92
  }, 500));
93
- }, "delayScroll"), s = /* @__PURE__ */ a(() => {
93
+ }, "delayScroll"), i = /* @__PURE__ */ a(() => {
94
94
  clearInterval(e(this, B)), clearInterval(e(this, D));
95
95
  }, "clearTimer");
96
96
  ["mouseup", "mouseleave", "touchend"].forEach((n) => {
97
- e(this, y).left.addEventListener(n, s), e(this, y).right.addEventListener(n, s), e(this, y).track.addEventListener(n, s);
97
+ e(this, y).left.addEventListener(n, i), e(this, y).right.addEventListener(n, i), e(this, y).track.addEventListener(n, i);
98
98
  }), e(this, y).left.addEventListener("mousedown", (n) => {
99
99
  n.button === 0 && t(-20);
100
100
  }), e(this, y).right.addEventListener("mousedown", (n) => {
@@ -112,7 +112,7 @@ const Te = class Te extends HTMLElement {
112
112
  const g = e(this, y).track.getBoundingClientRect();
113
113
  e(this, P).call(this, l.clientX - g.left - this.shiftX);
114
114
  }, "onMouseMove"), r = /* @__PURE__ */ a(() => {
115
- p(this, O, !1), s(), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", r), this.refresh();
115
+ p(this, O, !1), i(), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", r), this.refresh();
116
116
  }, "onMouseUp");
117
117
  document.addEventListener("mousemove", o), document.addEventListener("mouseup", r);
118
118
  });
@@ -184,13 +184,13 @@ const Te = class Te extends HTMLElement {
184
184
  <button class='ng-scroll-right' disabled><div class='ng-scroll-icon'></div></button>
185
185
  `;
186
186
  const t = /* @__PURE__ */ a(() => {
187
- const s = e(this, _).querySelector(".ng-container-body");
188
- if (!s) {
187
+ const i = e(this, _).querySelector(".ng-container-body");
188
+ if (!i) {
189
189
  setTimeout(t, 10);
190
190
  return;
191
191
  }
192
192
  p(this, y, {
193
- container: s,
193
+ container: i,
194
194
  track: this.querySelector(".ng-scroll-track"),
195
195
  thumb: this.querySelector(".ng-scroll-thumb"),
196
196
  left: this.querySelector(".ng-scroll-left"),
@@ -206,38 +206,38 @@ const Te = class Te extends HTMLElement {
206
206
  _ = new WeakMap(), O = new WeakMap(), y = new WeakMap(), B = new WeakMap(), D = new WeakMap(), N = new WeakMap(), ee = new WeakMap(), P = new WeakMap(), te = new WeakMap(), a(Te, "NineTableHScrollBar");
207
207
  let ge = Te;
208
208
  customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ge);
209
- var X, M, q, I, $, H, ie, se;
209
+ var X, M, q, I, $, H, se, ie;
210
210
  const qe = class qe {
211
- constructor(i) {
211
+ constructor(s) {
212
212
  u(this, X);
213
213
  u(this, M, []);
214
214
  u(this, q, null);
215
215
  u(this, I, null);
216
216
  u(this, $, 0);
217
217
  u(this, H, 0);
218
- u(this, ie, /* @__PURE__ */ a(() => {
219
- e(this, se).call(this);
218
+ u(this, se, /* @__PURE__ */ a(() => {
219
+ e(this, ie).call(this);
220
220
  }, "#init"));
221
221
  /**
222
222
  * 🎯 뷰포트 크기 λ³€ν™” μ‹œμ μ— 높이 계산 및 ν•„μš”ν•œ ν–‰ 개수 산정·캐싱을 μ™„κ²°
223
223
  */
224
- u(this, se, /* @__PURE__ */ a(() => {
225
- !e(this, X) || !(e(this, X) instanceof HTMLElement) || (p(this, I, new ResizeObserver((i) => {
226
- for (const t of i) {
227
- const s = t.target;
228
- if (!s.classList.contains("active"))
224
+ u(this, ie, /* @__PURE__ */ a(() => {
225
+ !e(this, X) || !(e(this, X) instanceof HTMLElement) || (p(this, I, new ResizeObserver((s) => {
226
+ for (const t of s) {
227
+ const i = t.target;
228
+ if (!i.classList.contains("active"))
229
229
  continue;
230
230
  const n = t.contentRect.height || (t.borderBoxSize && t.borderBoxSize[0] ? t.borderBoxSize[0].blockSize : 0);
231
231
  if (n > 0) {
232
- const o = s.clientHeight || s.getBoundingClientRect().height || n;
232
+ const o = i.clientHeight || i.getBoundingClientRect().height || n;
233
233
  let r = 0;
234
- const l = s.querySelector(".ng-container-body") || s, g = l.querySelector("thead"), c = l.querySelector("tfoot");
234
+ const l = i.querySelector(".ng-container-body") || i, g = l.querySelector("thead"), c = l.querySelector("tfoot");
235
235
  g && (r += g.offsetHeight || g.getBoundingClientRect().height), c && (r += c.offsetHeight || c.getBoundingClientRect().height);
236
236
  const h = Math.max(o - r, 100);
237
237
  if (e(this, $) !== h && (p(this, $, h), e(this, q) !== null)) {
238
238
  const d = Math.ceil(e(this, $) / e(this, q));
239
- p(this, H, d + 20), j.log(`[RowManager] Resized. Height: ${e(this, $)}px | Target Rows: ${e(this, H)}`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((b) => {
240
- const f = s.querySelector(b);
239
+ p(this, H, d + 20), J.log(`[RowManager] Resized. Height: ${e(this, $)}px | Target Rows: ${e(this, H)}`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((b) => {
240
+ const f = i.querySelector(b);
241
241
  f && f.querySelector("tbody") && this.renderRows(f);
242
242
  });
243
243
  }
@@ -245,24 +245,24 @@ const qe = class qe {
245
245
  }
246
246
  })), e(this, I).observe(e(this, X)));
247
247
  }, "#initResizeObserver"));
248
- v(this, "initTemplate", /* @__PURE__ */ a((i) => {
249
- const t = i.querySelector("tbody.bindable") || i.querySelector("tbody");
248
+ v(this, "initTemplate", /* @__PURE__ */ a((s) => {
249
+ const t = s.querySelector("tbody.bindable") || s.querySelector("tbody");
250
250
  if (!t) return;
251
- const s = Array.from(t.querySelectorAll("tr")).filter((n) => !n.classList.contains("nodata"));
252
- p(this, M, s.map((n) => n.cloneNode(!0))), p(this, q, null), console.log(`[RowManager] Template initialized with ${e(this, M).length} row(s).`);
251
+ const i = Array.from(t.querySelectorAll("tr")).filter((n) => !n.classList.contains("nodata"));
252
+ p(this, M, i.map((n) => n.cloneNode(!0))), p(this, q, null), console.log(`[RowManager] Template initialized with ${e(this, M).length} row(s).`);
253
253
  }, "initTemplate"));
254
- v(this, "measureAndCacheHeight", /* @__PURE__ */ a((i) => {
254
+ v(this, "measureAndCacheHeight", /* @__PURE__ */ a((s) => {
255
255
  if (e(this, q) !== null)
256
256
  return e(this, q);
257
257
  if (e(this, M).length === 0)
258
258
  throw new Error("[RowManager] Template TRs are empty.");
259
- const t = i.querySelector("tbody.bindable") || i.querySelector("tbody");
259
+ const t = s.querySelector("tbody.bindable") || s.querySelector("tbody");
260
260
  if (!t) return 24;
261
261
  t.querySelectorAll("tr:not(.nodata)").forEach((l) => l.remove());
262
- const s = t.querySelector("tr.nodata"), n = document.createDocumentFragment();
262
+ const i = t.querySelector("tr.nodata"), n = document.createDocumentFragment();
263
263
  e(this, M).forEach((l) => {
264
264
  n.appendChild(l.cloneNode(!0));
265
- }), s ? s.before(n) : t.appendChild(n);
265
+ }), i ? i.before(n) : t.appendChild(n);
266
266
  let o = 0;
267
267
  if (t.querySelectorAll("tr:not(.nodata)").forEach((l, g) => {
268
268
  const c = l.offsetHeight;
@@ -291,38 +291,38 @@ const qe = class qe {
291
291
  /**
292
292
  * 🎯 μΊμ‹œλœ ν–‰ 개수λ₯Ό κ³§λ°”λ‘œ κ°€μ Έμ™€μ„œ TR λΌˆλŒ€ μ£Όμž… (쀑볡 계산 제거)
293
293
  */
294
- v(this, "renderRows", /* @__PURE__ */ a((i) => {
294
+ v(this, "renderRows", /* @__PURE__ */ a((s) => {
295
295
  if (e(this, M).length === 0) return;
296
- const t = i.querySelector("tbody.bindable") || i.querySelector("tbody");
296
+ const t = s.querySelector("tbody.bindable") || s.querySelector("tbody");
297
297
  if (!t) return;
298
298
  t.querySelectorAll("tr:not(.nodata)").forEach((r) => r.remove());
299
- const s = t.querySelector("tr.nodata"), n = document.createDocumentFragment(), o = e(this, H);
299
+ const i = t.querySelector("tr.nodata"), n = document.createDocumentFragment(), o = e(this, H);
300
300
  for (let r = 0; r < o; r++)
301
301
  e(this, M).forEach((l) => {
302
302
  n.appendChild(l.cloneNode(!0));
303
303
  });
304
- s ? s.before(n) : t.appendChild(n), console.log(`[RowManager] Rendered ${o} sets into DOM.`);
304
+ i ? i.before(n) : t.appendChild(n), console.log(`[RowManager] Rendered ${o} sets into DOM.`);
305
305
  }, "renderRows"));
306
306
  v(this, "destroy", /* @__PURE__ */ a(() => {
307
307
  e(this, I) && (e(this, I).disconnect(), p(this, I, null));
308
308
  }, "destroy"));
309
- p(this, X, i), e(this, ie).call(this);
309
+ p(this, X, s), e(this, se).call(this);
310
310
  }
311
311
  get templateLength() {
312
312
  return e(this, M).length || 1;
313
313
  }
314
314
  };
315
- X = new WeakMap(), M = new WeakMap(), q = new WeakMap(), I = new WeakMap(), $ = new WeakMap(), H = new WeakMap(), ie = new WeakMap(), se = new WeakMap(), a(qe, "RowManager");
315
+ X = new WeakMap(), M = new WeakMap(), q = new WeakMap(), I = new WeakMap(), $ = new WeakMap(), H = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), a(qe, "RowManager");
316
316
  let pe = qe;
317
- var A, F, ne;
317
+ var L, F, ne;
318
318
  const Z = class Z extends HTMLElement {
319
319
  constructor() {
320
320
  super();
321
- u(this, A, null);
321
+ u(this, L, null);
322
322
  u(this, F);
323
323
  v(this, "init", /* @__PURE__ */ a((t) => {
324
324
  if (!t) return;
325
- const s = /* @__PURE__ */ a((c) => {
325
+ const i = /* @__PURE__ */ a((c) => {
326
326
  const h = /* @__PURE__ */ a((b) => {
327
327
  if (b.querySelector("colgroup")) return;
328
328
  const f = b.querySelector("tbody tr") || b.querySelector("tr"), S = f ? f.querySelectorAll("th, td").length : 1, x = document.createElement("colgroup"), C = Math.max(Math.floor((b.clientWidth || 600) / S), 100);
@@ -338,7 +338,7 @@ const Z = class Z extends HTMLElement {
338
338
  }, "ensureThead");
339
339
  return h(c), d(c), c.classList.add("nine-table-element"), c;
340
340
  }, "initializeTable"), n = t.cloneNode(!0);
341
- p(this, A, s(n)), e(this, A).style.display = "table", e(this, F).initTemplate(e(this, A));
341
+ p(this, L, i(n)), e(this, L).style.display = "table", e(this, F).initTemplate(e(this, L));
342
342
  const o = this.querySelector(".ng-container-left"), r = this.querySelector(".ng-container-body"), l = this.querySelector(".ng-container-right"), g = /* @__PURE__ */ a((c, h, d = !1) => {
343
343
  const b = c.cloneNode(!0), f = Array.from(b.querySelectorAll("colgroup col")), S = [];
344
344
  return f.forEach((x, C) => {
@@ -352,11 +352,11 @@ const Z = class Z extends HTMLElement {
352
352
  }), b;
353
353
  }, "filterTableByFixed");
354
354
  if (r) {
355
- const c = g(e(this, A), null, !0);
355
+ const c = g(e(this, L), null, !0);
356
356
  r.innerHTML = "", r.appendChild(c), e(this, F).measureAndCacheHeight(r);
357
357
  }
358
358
  if (o) {
359
- const c = g(e(this, A), "left", !1);
359
+ const c = g(e(this, L), "left", !1);
360
360
  let h = 0;
361
361
  c.querySelectorAll("col").forEach((b) => {
362
362
  const f = parseInt(b.getAttribute("width"), 10);
@@ -366,7 +366,7 @@ const Z = class Z extends HTMLElement {
366
366
  o.style.flex = `0 0 ${d}px`, o.style.width = `${d}px`;
367
367
  }
368
368
  if (l) {
369
- const c = g(e(this, A), "right", !1);
369
+ const c = g(e(this, L), "right", !1);
370
370
  let h = 0;
371
371
  c.querySelectorAll("col").forEach((b) => {
372
372
  const f = parseInt(b.getAttribute("width"), 10);
@@ -385,16 +385,16 @@ const Z = class Z extends HTMLElement {
385
385
  setTimeout(() => {
386
386
  const c = this.querySelector("nine-table-hscrollbar");
387
387
  c && typeof c.refresh == "function" && c.refresh();
388
- }, 0), j.log(`NineTableSheet 3-split initialized with rows: ${this.getRowCount()}`);
388
+ }, 0), J.log(`NineTableSheet 3-split initialized with rows: ${this.getRowCount()}`);
389
389
  }, "init"));
390
- v(this, "getRowCount", /* @__PURE__ */ a(() => e(this, A) ? e(this, A).querySelectorAll("tbody tr").length : 0, "getRowCount"));
390
+ v(this, "getRowCount", /* @__PURE__ */ a(() => e(this, L) ? e(this, L).querySelectorAll("tbody tr").length : 0, "getRowCount"));
391
391
  v(this, "scrollToX", /* @__PURE__ */ a((t) => {
392
- const s = this.querySelector(".ng-container-body");
393
- s && (s.scrollLeft = t);
392
+ const i = this.querySelector(".ng-container-body");
393
+ i && (i.scrollLeft = t);
394
394
  }, "scrollToX"));
395
395
  v(this, "scrollToY", /* @__PURE__ */ a((t) => {
396
- const s = this.querySelector(".ng-container-body");
397
- s && (s.scrollTop = t);
396
+ const i = this.querySelector(".ng-container-body");
397
+ i && (i.scrollTop = t);
398
398
  }, "scrollToY"));
399
399
  u(this, ne, /* @__PURE__ */ a(() => {
400
400
  const t = Z.SCROLLBAR_SIZE;
@@ -519,10 +519,10 @@ const Z = class Z extends HTMLElement {
519
519
  e(this, ne).call(this);
520
520
  }
521
521
  disconnectedCallback() {
522
- this.innerHTML = "", j.log("NineTableSheet destroyed.");
522
+ this.innerHTML = "", J.log("NineTableSheet destroyed.");
523
523
  }
524
524
  };
525
- A = new WeakMap(), F = new WeakMap(), ne = new WeakMap(), a(Z, "NineTableSheet"), v(Z, "SCROLLBAR_SIZE", 16);
525
+ L = new WeakMap(), F = new WeakMap(), ne = new WeakMap(), a(Z, "NineTableSheet"), v(Z, "SCROLLBAR_SIZE", 16);
526
526
  let ye = Z;
527
527
  customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", ye);
528
528
  var re;
@@ -531,14 +531,14 @@ const ke = class ke extends HTMLElement {
531
531
  super();
532
532
  u(this, re, /* @__PURE__ */ a(() => {
533
533
  const t = this.querySelector(".nine-tab-bar");
534
- t && (t.addEventListener("click", (s) => {
535
- const n = s.target.closest(".nine-tab-item");
534
+ t && (t.addEventListener("click", (i) => {
535
+ const n = i.target.closest(".nine-tab-item");
536
536
  if (!n) return;
537
- const o = s.ctrlKey || s.metaKey || s.shiftKey, r = parseInt(n.dataset.index, 10);
537
+ const o = i.ctrlKey || i.metaKey || i.shiftKey, r = parseInt(n.dataset.index, 10);
538
538
  this.switchSheet(r, o);
539
539
  }), this.switchSheet(0, !1));
540
540
  }, "#init"));
541
- v(this, "switchSheet", /* @__PURE__ */ a((t, s = !1) => {
541
+ v(this, "switchSheet", /* @__PURE__ */ a((t, i = !1) => {
542
542
  const n = /* @__PURE__ */ a(() => {
543
543
  const d = this.querySelector("nine-table-sheets-body");
544
544
  d.querySelectorAll("nine-splitter").forEach((f) => {
@@ -547,7 +547,7 @@ const ke = class ke extends HTMLElement {
547
547
  });
548
548
  }, "updateSplitters"), o = this.querySelector(".nine-tab-bar"), r = this.querySelector("nine-table-sheets-body"), l = o.querySelectorAll(".nine-tab-item"), g = r.querySelectorAll("nine-table-sheet");
549
549
  if (!l[t]) return;
550
- if (!s)
550
+ if (!i)
551
551
  l.forEach((d, b) => {
552
552
  d.classList.toggle("active", b === t);
553
553
  const f = r.querySelector(`nine-table-sheet[data-index="${b}"]`);
@@ -588,33 +588,45 @@ const ke = class ke extends HTMLElement {
588
588
  re = new WeakMap(), a(ke, "NineTableSheets");
589
589
  let we = ke;
590
590
  customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", we);
591
- var L, G, oe, J, le;
592
- const Ce = class Ce {
593
- constructor(i) {
594
- u(this, L);
595
- u(this, G, null);
591
+ var k, j, oe, G, le;
592
+ const Ae = class Ae {
593
+ constructor(s) {
594
+ u(this, k);
595
+ u(this, j, null);
596
596
  u(this, oe, /* @__PURE__ */ a(() => {
597
- const i = e(this, L).host;
598
- i && (p(this, G, new ResizeObserver((t) => {
599
- for (let s of t)
600
- i.getAttribute("auto-height") === "true" && e(this, J).call(this, i);
601
- })), e(this, G).observe(i));
597
+ const s = e(this, k).host;
598
+ s && (p(this, j, new ResizeObserver((t) => {
599
+ for (let i of t)
600
+ s.getAttribute("auto-height") === "true" && e(this, G).call(this, s);
601
+ })), e(this, j).observe(s));
602
602
  }, "#observeResize"));
603
- u(this, J, /* @__PURE__ */ a((i) => {
603
+ u(this, G, /* @__PURE__ */ a((s) => {
604
604
  var C, R;
605
- const t = (C = i.shadowRoot) == null ? void 0 : C.querySelector("nine-table-sheet.active");
605
+ const t = (C = s.shadowRoot) == null ? void 0 : C.querySelector("nine-table-sheet.active");
606
606
  if (!t) return;
607
- const s = ((R = t.getRowCount) == null ? void 0 : R.call(t)) || 0, n = parseInt(i.getAttribute("max-display-row"), 10) || 10, o = Math.min(s, n), r = t.querySelector("tbody tr") || t.querySelector("tr"), l = r ? r.getBoundingClientRect().height : 32, g = e(this, L).querySelector("nine-table-header"), c = e(this, L).querySelector("nine-table-sheets-footer"), h = g ? g.getBoundingClientRect().height : 40, d = c ? c.getBoundingClientRect().height : 32, f = h + d + 16, S = o * l + f;
608
- i.style.height = `${S}px`, i.style.maxHeight = `${n * l + f}px`;
609
- const x = e(this, L).querySelector("nine-table-sheets-body");
610
- x && (x.style.overflowY = s > n ? "auto" : "hidden");
607
+ const i = ((R = t.getRowCount) == null ? void 0 : R.call(t)) || 0, n = parseInt(s.getAttribute("max-display-row"), 10) || 10, o = Math.min(i, n), r = t.querySelector("tbody tr") || t.querySelector("tr"), l = r ? r.getBoundingClientRect().height : 32, g = e(this, k).querySelector("nine-table-header"), c = e(this, k).querySelector("nine-table-sheets-footer"), h = g ? g.getBoundingClientRect().height : 40, d = c ? c.getBoundingClientRect().height : 32, f = h + d + 16, S = o * l + f;
608
+ s.style.height = `${S}px`, s.style.maxHeight = `${n * l + f}px`;
609
+ const x = e(this, k).querySelector("nine-table-sheets-body");
610
+ x && (x.style.overflowY = i > n ? "auto" : "hidden");
611
611
  }, "#applyAutoHeight"));
612
+ /**
613
+ * 🎯 ν™œμ„± μ‹œνŠΈ μƒνƒœμ— 따라 μŠ€ν”Œλ¦¬ν„°(.h)λ₯Ό 직접 탐색해 λ³΄μ—¬μ£Όκ±°λ‚˜ μˆ¨κΈ°λŠ” 직관적 λ©”μ„œλ“œ
614
+ */
615
+ v(this, "updateSplitters", /* @__PURE__ */ a(() => {
616
+ const s = e(this, k).querySelector("nine-table-sheets-body");
617
+ if (!s) return;
618
+ const t = Array.from(s.querySelectorAll("nine-table-sheet"));
619
+ Array.from(s.querySelectorAll("nine-splitter.h")).forEach((n, o) => {
620
+ const r = t[o], l = t[o + 1];
621
+ r && l && r.classList.contains("active") && l.classList.contains("active") ? n.style.display = "block" : n.style.display = "none";
622
+ });
623
+ }, "updateSplitters"));
612
624
  u(this, le, /* @__PURE__ */ a(() => {
613
- const i = e(this, L).host, s = Array.from(i.children).filter((c) => c.tagName === "TABLE"), n = i.getAttribute("auto-height") === "true", o = s.length, r = s.map((c, h) => {
614
- const b = `<nine-table-sheet class="${h === 0 ? "active" : ""}" data-index="${h}"></nine-table-sheet>`, f = o > 1 && h < o - 1 ? `<nine-splitter class="h" data-split-index="${h}"></nine-splitter>` : "";
625
+ const s = e(this, k).host, i = Array.from(s.children).filter((c) => c.tagName === "TABLE"), n = s.getAttribute("auto-height") === "true", o = i.length, r = i.map((c, h) => {
626
+ const b = `<nine-table-sheet class="${h === 0 ? "active" : ""}" data-index="${h}"></nine-table-sheet>`, f = h < o - 1 ? `<nine-splitter class="h" data-split-index="${h}"></nine-splitter>` : "";
615
627
  return b + f;
616
- }).join(""), l = s.map((c, h) => `<div class="nine-tab-item ${h === 0 ? "active" : ""}" data-index="${h}">Sheet ${h + 1}</div>`).join("");
617
- e(this, L).innerHTML = `
628
+ }).join(""), l = i.map((c, h) => `<div class="nine-tab-item ${h === 0 ? "active" : ""}" data-index="${h}">Sheet ${h + 1}</div>`).join("");
629
+ e(this, k).innerHTML = `
618
630
  <style>
619
631
  :host {
620
632
  display: flex;
@@ -657,7 +669,7 @@ const Ce = class Ce {
657
669
  display: block !important;
658
670
  }
659
671
 
660
- /* 🎯 1단계: 기본적으둜 μŠ€ν”Œλ¦¬ν„°λŠ” 무쑰건 μˆ¨κΉ€ */
672
+ /* 🎯 μŠ€ν”Œλ¦¬ν„° κΈ°λ³Έ μŠ€νƒ€μΌ (JS둜 직접 display μ‘°μž‘) */
661
673
  nine-table-sheets-body nine-splitter.h {
662
674
  width: 4px;
663
675
  background: #e5e7eb;
@@ -666,11 +678,6 @@ const Ce = class Ce {
666
678
  display: none;
667
679
  }
668
680
 
669
- /* 🎯 2단계: μ–‘μ˜†μ˜ μ‹œνŠΈκ°€ λ‘˜ λ‹€ .active 클래슀λ₯Ό κ°€μ§ˆ λ•Œλ§Œ κ·Έ μ‚¬μ΄μ˜ μŠ€ν”Œλ¦¬ν„°κ°€ νŒμ—… λ…ΈμΆœ */
670
- nine-table-sheet.active + nine-splitter.h + nine-table-sheet.active {
671
- display: block;
672
- }
673
-
674
681
  nine-table-sheets-footer {
675
682
  display: flex;
676
683
  height: 32px;
@@ -728,62 +735,62 @@ const Ce = class Ce {
728
735
  </nine-table-body>
729
736
  <nine-table-footer></nine-table-footer>
730
737
  `;
731
- const g = e(this, L).querySelectorAll("nine-table-sheet");
738
+ const g = e(this, k).querySelectorAll("nine-table-sheet");
732
739
  g == null || g.forEach((c, h) => {
733
- s[h] && setTimeout(() => {
734
- c.init(s[h]), n && e(this, J).call(this, i);
740
+ i[h] && setTimeout(() => {
741
+ c.init(i[h]), n && e(this, G).call(this, s), this.updateSplitters();
735
742
  });
736
743
  });
737
744
  }, "#render"));
738
- p(this, L, i), e(this, le).call(this), e(this, oe).call(this);
745
+ p(this, k, s), e(this, le).call(this), e(this, oe).call(this);
739
746
  }
740
747
  };
741
- L = new WeakMap(), G = new WeakMap(), oe = new WeakMap(), J = new WeakMap(), le = new WeakMap(), a(Ce, "LayoutManager");
742
- let me = Ce;
748
+ k = new WeakMap(), j = new WeakMap(), oe = new WeakMap(), G = new WeakMap(), le = new WeakMap(), a(Ae, "LayoutManager");
749
+ let me = Ae;
743
750
  var z, V;
744
- const Ae = class Ae {
745
- constructor(i) {
751
+ const Ce = class Ce {
752
+ constructor(s) {
746
753
  u(this, z);
747
754
  u(this, V, -1);
748
755
  v(this, "count", /* @__PURE__ */ a(() => e(this, z).rawRecords.length, "count"));
749
- p(this, z, i);
756
+ p(this, z, s);
750
757
  }
751
758
  get at() {
752
759
  return e(this, V);
753
760
  }
754
- set at(i) {
755
- var s, n;
756
- p(this, V, parseInt(i, 10));
757
- const t = ((n = (s = e(this, z).owner).querySelector) == null ? void 0 : n.call(s, ".ng-container-body")) || e(this, z).owner.body;
761
+ set at(s) {
762
+ var i, n;
763
+ p(this, V, parseInt(s, 10));
764
+ const t = ((n = (i = e(this, z).owner).querySelector) == null ? void 0 : n.call(i, ".ng-container-body")) || e(this, z).owner.body;
758
765
  t && !t.querySelector(`tbody.bindable tr[data-row="${e(this, V)}"]`) && setTimeout(() => {
759
766
  var o, r;
760
767
  (r = (o = e(this, z).owner).scrollTo_V1) == null || r.call(o, e(this, V));
761
768
  });
762
769
  }
763
770
  };
764
- z = new WeakMap(), V = new WeakMap(), a(Ae, "ngRow");
765
- let ve = Ae;
766
- var E, m, k, U, ae, W, ce, Q, he, de, K;
771
+ z = new WeakMap(), V = new WeakMap(), a(Ce, "ngRow");
772
+ let ve = Ce;
773
+ var E, m, A, U, ae, W, ce, Q, he, de, K;
767
774
  const T = class T {
768
- constructor(i, t) {
775
+ constructor(s, t) {
769
776
  u(this, E);
770
777
  u(this, m);
771
- u(this, k, []);
778
+ u(this, A, []);
772
779
  u(this, U, []);
773
780
  u(this, ae, 0);
774
781
  u(this, W, []);
775
782
  u(this, ce, /* @__PURE__ */ a(() => {
776
783
  p(this, W, []);
777
- const i = e(this, E).template || [];
778
- Array.from(i).forEach((t) => {
779
- var s;
780
- e(this, W).push(((s = t.getBoundingClientRect) == null ? void 0 : s.call(t).height) || 24);
784
+ const s = e(this, E).template || [];
785
+ Array.from(s).forEach((t) => {
786
+ var i;
787
+ e(this, W).push(((i = t.getBoundingClientRect) == null ? void 0 : i.call(t).height) || 24);
781
788
  }), (e(this, m).rawRecords || []).forEach((t) => {
782
789
  t.__ng || (t.__ng = e(this, Q).call(this)), t.__ng.height = e(this, W).slice();
783
790
  });
784
791
  }, "#initialize"));
785
- v(this, "set", /* @__PURE__ */ a((i) => {
786
- this.clear(), this.add(i, !1);
792
+ v(this, "set", /* @__PURE__ */ a((s) => {
793
+ this.clear(), this.add(s, !1);
787
794
  }, "set"));
788
795
  u(this, Q, /* @__PURE__ */ a(() => ({
789
796
  rowState: T.ROW_STATE.EMPTY,
@@ -795,105 +802,105 @@ const T = class T {
795
802
  _: [0, 0, 0, 0, T.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, W).slice(), -1, {}, {}]
796
803
  }), "#getDefaultMeta"));
797
804
  v(this, "reset", /* @__PURE__ */ a(() => {
798
- p(this, k, []), p(this, U, []);
805
+ p(this, A, []), p(this, U, []);
799
806
  }, "reset"));
800
807
  v(this, "clear", /* @__PURE__ */ a(() => {
801
- var i;
802
- e(this, m).rawRecords = [], p(this, k, []), p(this, U, []), (i = e(this, m).viewRecords) != null && i.reset && e(this, m).viewRecords.reset();
808
+ var s;
809
+ e(this, m).rawRecords = [], p(this, A, []), p(this, U, []), (s = e(this, m).viewRecords) != null && s.reset && e(this, m).viewRecords.reset();
803
810
  }, "clear"));
804
- u(this, he, /* @__PURE__ */ a((i) => {
811
+ u(this, he, /* @__PURE__ */ a((s) => {
805
812
  var n;
806
- Array.isArray(i) || (i = [i]);
807
- const t = typeof ((n = e(this, E).fields) == null ? void 0 : n.get) == "function" ? e(this, E).fields.get() : Object.keys(i[0] || {}), s = [];
808
- return i.forEach((o) => {
813
+ Array.isArray(s) || (s = [s]);
814
+ const t = typeof ((n = e(this, E).fields) == null ? void 0 : n.get) == "function" ? e(this, E).fields.get() : Object.keys(s[0] || {}), i = [];
815
+ return s.forEach((o) => {
809
816
  const r = { v: [] };
810
817
  t.forEach((l) => {
811
818
  r.v.push(o[l] !== void 0 && o[l] !== null ? o[l] : "");
812
- }), s.push(r);
813
- }), s;
819
+ }), i.push(r);
820
+ }), i;
814
821
  }, "#json2Array"));
815
- u(this, de, /* @__PURE__ */ a((i) => (Array.isArray(i) || (i = [i]), i.forEach((t) => {
822
+ u(this, de, /* @__PURE__ */ a((s) => (Array.isArray(s) || (s = [s]), s.forEach((t) => {
816
823
  t.__ng = e(this, Q).call(this), t.__ng.rowid = this.nextId, t.__ng.rowState = T.ROW_STATE.INSERT, t.__ng._[0] = t.__ng.rowid;
817
- }), i), "#defaultInsert"));
818
- v(this, "add", /* @__PURE__ */ a((i, t = !0) => {
824
+ }), s), "#defaultInsert"));
825
+ v(this, "add", /* @__PURE__ */ a((s, t = !0) => {
819
826
  var o;
820
- i === void 0 && (i = {});
821
- const s = e(this, he).call(this, i);
822
- e(this, m).rawRecords = e(this, m).rawRecords.concat(e(this, de).call(this, s)), this.resetRecords();
827
+ s === void 0 && (s = {});
828
+ const i = e(this, he).call(this, s);
829
+ e(this, m).rawRecords = e(this, m).rawRecords.concat(e(this, de).call(this, i)), this.resetRecords();
823
830
  const n = this.count() - 1;
824
- return t || s.forEach((r, l) => {
831
+ return t || i.forEach((r, l) => {
825
832
  const g = e(this, m).rawRecords[n - l];
826
833
  g && (g.__ng.rowState = T.ROW_STATE.EMPTY);
827
834
  }), (o = e(this, m).viewRecords) != null && o.reset && e(this, m).viewRecords.reset(), n;
828
835
  }, "add"));
829
- v(this, "delete", /* @__PURE__ */ a((i) => {
830
- var s;
836
+ v(this, "delete", /* @__PURE__ */ a((s) => {
837
+ var i;
831
838
  let t = [];
832
- Array.isArray(i) ? t = i : typeof i > "u" ? t = [e(this, m).owner.row.at] : t = [parseInt(i, 10)], t.sort((n, o) => o - n).forEach((n) => {
833
- if (e(this, k)[n]) {
834
- const o = e(this, k)[n].__ng.rowid;
835
- e(this, k)[n].__ng.rowState === T.ROW_STATE.INSERT ? e(this, m).rawRecords = e(this, m).rawRecords.filter((r) => r.__ng.rowid !== o) : e(this, m).rawRecords.forEach((r) => {
839
+ Array.isArray(s) ? t = s : typeof s > "u" ? t = [e(this, m).owner.row.at] : t = [parseInt(s, 10)], t.sort((n, o) => o - n).forEach((n) => {
840
+ if (e(this, A)[n]) {
841
+ const o = e(this, A)[n].__ng.rowid;
842
+ e(this, A)[n].__ng.rowState === T.ROW_STATE.INSERT ? e(this, m).rawRecords = e(this, m).rawRecords.filter((r) => r.__ng.rowid !== o) : e(this, m).rawRecords.forEach((r) => {
836
843
  r.__ng.rowid === o && (r.__ng.deleted = !0, r.__ng.rowState = T.ROW_STATE.DELETE);
837
844
  });
838
845
  }
839
- }), this.resetRecords(), (s = e(this, m).viewRecords) != null && s.reset && e(this, m).viewRecords.reset();
846
+ }), this.resetRecords(), (i = e(this, m).viewRecords) != null && i.reset && e(this, m).viewRecords.reset();
840
847
  }, "delete"));
841
- v(this, "setValue", /* @__PURE__ */ a((i, t, s) => {
848
+ v(this, "setValue", /* @__PURE__ */ a((s, t, i) => {
842
849
  var g;
843
- i = parseInt(i, 10);
850
+ s = parseInt(s, 10);
844
851
  const o = (typeof ((g = e(this, E).fields) == null ? void 0 : g.get) == "function" ? e(this, E).fields.get() : []).indexOf(t);
845
852
  if (o < 0) return;
846
- const r = this.getValidData()[i];
853
+ const r = this.getValidData()[s];
847
854
  if (!r) return;
848
855
  const l = r.v[o];
849
- l !== s && r.__ng.rowState !== T.ROW_STATE.INSERT && (r.__ng.o.hasOwnProperty(t) || (r.__ng.o[t] = l), r.__ng.rowState = T.ROW_STATE.UPDATE), r.v[o] = s, e(this, m).owner.refreshData && e(this, m).owner.refreshData(i);
856
+ l !== i && r.__ng.rowState !== T.ROW_STATE.INSERT && (r.__ng.o.hasOwnProperty(t) || (r.__ng.o[t] = l), r.__ng.rowState = T.ROW_STATE.UPDATE), r.v[o] = i, e(this, m).owner.refreshData && e(this, m).owner.refreshData(s);
850
857
  }, "setValue"));
851
858
  v(this, "resetRecords", /* @__PURE__ */ a(() => {
852
- p(this, U, e(this, m).rawRecords.filter((i) => !i.__ng.deleted)), p(this, k, e(this, m).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), e(this, m).rawRecords.forEach((i, t) => {
853
- i.__ng.rowidx = t;
854
- }), e(this, k).forEach((i, t) => {
855
- i.__ng.i = t;
859
+ p(this, U, e(this, m).rawRecords.filter((s) => !s.__ng.deleted)), p(this, A, e(this, m).rawRecords.filter((s) => !s.__ng.deleted && !s.__ng.filtered)), e(this, m).rawRecords.forEach((s, t) => {
860
+ s.__ng.rowidx = t;
861
+ }), e(this, A).forEach((s, t) => {
862
+ s.__ng.i = t;
856
863
  });
857
864
  }, "resetRecords"));
858
- v(this, "getValidData", /* @__PURE__ */ a(() => (e(this, k).length === 0 && e(this, m).rawRecords.length > 0 && this.resetRecords(), e(this, k)), "getValidData"));
859
- u(this, K, /* @__PURE__ */ a((i) => {
860
- var s;
861
- if (!i) return i;
862
- const t = typeof ((s = e(this, E).fields) == null ? void 0 : s.get) == "function" ? e(this, E).fields.get() : [];
863
- return Array.isArray(i) ? i.filter((n) => !n.__ng.deleted).map((n) => {
865
+ v(this, "getValidData", /* @__PURE__ */ a(() => (e(this, A).length === 0 && e(this, m).rawRecords.length > 0 && this.resetRecords(), e(this, A)), "getValidData"));
866
+ u(this, K, /* @__PURE__ */ a((s) => {
867
+ var i;
868
+ if (!s) return s;
869
+ const t = typeof ((i = e(this, E).fields) == null ? void 0 : i.get) == "function" ? e(this, E).fields.get() : [];
870
+ return Array.isArray(s) ? s.filter((n) => !n.__ng.deleted).map((n) => {
864
871
  const o = {};
865
872
  return t.forEach((r, l) => {
866
873
  o[r] = n.v ? n.v[l] : n[r];
867
874
  }), o.__ng = n.__ng, o;
868
- }) : i;
875
+ }) : s;
869
876
  }, "#conv2"));
870
877
  v(this, "count", /* @__PURE__ */ a(() => this.getValidData().length, "count"));
871
- v(this, "get", /* @__PURE__ */ a((i, t) => {
878
+ v(this, "get", /* @__PURE__ */ a((s, t) => {
872
879
  var o;
873
- const s = this.getValidData();
874
- if (!s || s.length <= 0) return;
875
- if (i == null) return e(this, K).call(this, s);
876
- if (i < 0 || i >= s.length) return null;
880
+ const i = this.getValidData();
881
+ if (!i || i.length <= 0) return;
882
+ if (s == null) return e(this, K).call(this, i);
883
+ if (s < 0 || s >= i.length) return null;
877
884
  const n = typeof ((o = e(this, E).fields) == null ? void 0 : o.get) == "function" ? e(this, E).fields.get() : [];
878
885
  if (t != null) {
879
886
  const r = n.indexOf(t);
880
- return r >= 0 ? s[i].v[r] : null;
887
+ return r >= 0 ? i[s].v[r] : null;
881
888
  }
882
- return e(this, K).call(this, s[i]);
889
+ return e(this, K).call(this, i[s]);
883
890
  }, "get"));
884
- p(this, E, i), p(this, m, t), e(this, ce).call(this);
891
+ p(this, E, s), p(this, m, t), e(this, ce).call(this);
885
892
  }
886
893
  get source() {
887
894
  return e(this, K).call(this, e(this, m).rawRecords);
888
895
  }
889
- set source(i) {
890
- this.clear(), this.add(i, !1);
896
+ set source(s) {
897
+ this.clear(), this.add(s, !1);
891
898
  }
892
899
  get nextId() {
893
900
  return ++He(this, ae)._;
894
901
  }
895
902
  };
896
- E = new WeakMap(), m = new WeakMap(), k = new WeakMap(), U = new WeakMap(), ae = new WeakMap(), W = new WeakMap(), ce = new WeakMap(), Q = new WeakMap(), he = new WeakMap(), de = new WeakMap(), K = new WeakMap(), a(T, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
903
+ E = new WeakMap(), m = new WeakMap(), A = new WeakMap(), U = new WeakMap(), ae = new WeakMap(), W = new WeakMap(), ce = new WeakMap(), Q = new WeakMap(), he = new WeakMap(), de = new WeakMap(), K = new WeakMap(), a(T, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
897
904
  v(T, "ROW_STATE", {
898
905
  EMPTY: "EMPTY",
899
906
  NORMAL: "NORMAL",
@@ -903,21 +910,21 @@ v(T, "ROW_STATE", {
903
910
  });
904
911
  let xe = T;
905
912
  const Le = class Le {
906
- constructor(i) {
907
- this.owner = i, this.row = new ve(this), this.data = new xe(i, this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
913
+ constructor(s) {
914
+ this.owner = s, this.row = new ve(this), this.data = new xe(s, this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
908
915
  var t;
909
916
  (t = this.owner.view) != null && t.redraw && this.owner.view.redraw();
910
917
  }, this.setDataSource = (t) => {
911
918
  this.data && this.data.reset(), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.data.set(t || []);
912
919
  }, this.getRowState = (t) => {
913
920
  var n, o;
914
- const s = parseInt(t, 10);
915
- if (!(s >= this.data.count()))
916
- return (o = (n = this.data.getValidData()[s]) == null ? void 0 : n.__ng) == null ? void 0 : o.rowState;
921
+ const i = parseInt(t, 10);
922
+ if (!(i >= this.data.count()))
923
+ return (o = (n = this.data.getValidData()[i]) == null ? void 0 : n.__ng) == null ? void 0 : o.rowState;
917
924
  }, this.getRowPosition = () => this.row.at, this.setRowPosition = (t) => {
918
925
  this.row.at = t;
919
- }, this.scrollTo_V1 = (t) => (t < 0 && (t = 0), t >= this.rawRecords.length && (t = this.rawRecords.length - 1), this.viewRecords.rawIndex = t, this.viewRecords.reset && this.viewRecords.reset(), !(t <= 0 || t >= this.rawRecords.length - 1)), this.getColumn = (t, s) => this.data.get(t, s), this.setColumn = (t, s, n) => {
920
- t = parseInt(t, 10), this.data.setValue(t, s, n);
926
+ }, this.scrollTo_V1 = (t) => (t < 0 && (t = 0), t >= this.rawRecords.length && (t = this.rawRecords.length - 1), this.viewRecords.rawIndex = t, this.viewRecords.reset && this.viewRecords.reset(), !(t <= 0 || t >= this.rawRecords.length - 1)), this.getColumn = (t, i) => this.data.get(t, i), this.setColumn = (t, i, n) => {
927
+ t = parseInt(t, 10), this.data.setValue(t, i, n);
921
928
  }, this.setDataSource([]);
922
929
  }
923
930
  };
@@ -933,10 +940,10 @@ const _e = class _e extends HTMLElement {
933
940
  this.attachShadow({ mode: "open" }), p(this, Y, new Se(this));
934
941
  }
935
942
  connectedCallback() {
936
- p(this, fe, new me(this.shadowRoot)), j.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
943
+ p(this, fe, new me(this.shadowRoot)), J.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
937
944
  }
938
945
  disconnectedCallback() {
939
- j.log("NineTable disconnected.");
946
+ J.log("NineTable disconnected.");
940
947
  }
941
948
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
942
949
  get data() {