@ninebone/table 0.0.250 β†’ 0.0.252

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.
@@ -4,7 +4,7 @@ var Oe = (m) => {
4
4
  };
5
5
  var Ne = (m, i, t) => i in m ? ze(m, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[i] = t;
6
6
  var h = (m, i) => ze(m, "name", { value: i, configurable: !0 });
7
- var x = (m, i, t) => Ne(m, typeof i != "symbol" ? i + "" : i, t), Be = (m, i, t) => i.has(m) || Oe("Cannot " + t);
7
+ var v = (m, i, t) => Ne(m, typeof i != "symbol" ? i + "" : i, t), Be = (m, i, t) => i.has(m) || Oe("Cannot " + t);
8
8
  var e = (m, i, t) => (Be(m, i, "read from private field"), t ? t.call(m) : i.get(m)), u = (m, i, t) => i.has(m) ? Oe("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(m) : i.set(m, t), y = (m, i, t, s) => (Be(m, i, "write to private field"), s ? s.call(m, t) : i.set(m, t), t);
9
9
  var De = (m, i, t, s) => ({
10
10
  set _(n) {
@@ -22,7 +22,7 @@ const qe = class qe extends Pe.constructor {
22
22
  };
23
23
  h(qe, "Trace");
24
24
  let me = qe;
25
- const O = new me();
25
+ const _ = new me();
26
26
  var C, B, p, D, N, P, ie, V, se;
27
27
  const ke = class ke extends HTMLElement {
28
28
  constructor() {
@@ -40,7 +40,7 @@ const ke = class ke extends HTMLElement {
40
40
  this.refresh();
41
41
  })), e(this, P).observe(t));
42
42
  }, "#observeResize"));
43
- x(this, "refresh", /* @__PURE__ */ h(() => {
43
+ v(this, "refresh", /* @__PURE__ */ h(() => {
44
44
  if (!e(this, C) || !e(this, p) || e(this, B)) return;
45
45
  const t = e(this, p).container, s = t.querySelector("table");
46
46
  if (!s) return;
@@ -59,7 +59,7 @@ const ke = class ke extends HTMLElement {
59
59
  let b = 0;
60
60
  g > 0 && (b = parseInt(f / g * (l - c), 10)), b < 0 && (b = 0);
61
61
  const S = l - c;
62
- b > S && (b = S), r.style.left = `${b}px`, O.log(b), e(this, p).left.disabled = b === 0, e(this, p).right.disabled = b >= S - 1;
62
+ b > S && (b = S), r.style.left = `${b}px`, _.log(b), e(this, p).left.disabled = b === 0, e(this, p).right.disabled = b >= S - 1;
63
63
  }, "refresh"));
64
64
  u(this, V, /* @__PURE__ */ h((t) => {
65
65
  if (!e(this, p)) return !1;
@@ -200,16 +200,16 @@ const ke = class ke extends HTMLElement {
200
200
  C = new WeakMap(), B = new WeakMap(), p = new WeakMap(), D = new WeakMap(), N = new WeakMap(), P = new WeakMap(), ie = new WeakMap(), V = new WeakMap(), se = new WeakMap(), h(ke, "NineTableHScrollBar");
201
201
  let we = ke;
202
202
  customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", we);
203
- var M, _, R, $, I, H, ne, re, oe, le;
203
+ var $, I, R, W, H, M, ne, re, oe, le;
204
204
  const Le = class Le {
205
205
  constructor(i) {
206
- u(this, M);
207
- u(this, _, []);
206
+ u(this, $);
207
+ u(this, I, []);
208
208
  u(this, R, null);
209
- u(this, $, null);
210
- u(this, I, 0);
209
+ u(this, W, null);
211
210
  u(this, H, 0);
212
- x(this, "getRowHeight", /* @__PURE__ */ h(() => e(this, R), "getRowHeight"));
211
+ u(this, M, 0);
212
+ v(this, "getRowHeight", /* @__PURE__ */ h(() => e(this, R), "getRowHeight"));
213
213
  u(this, ne, /* @__PURE__ */ h(() => {
214
214
  e(this, re).call(this);
215
215
  }, "#init"));
@@ -217,7 +217,7 @@ const Le = class Le {
217
217
  * 🎯 뷰포트 크기 λ³€ν™” μ‹œμ μ— 높이 계산 및 ν•„μš”ν•œ ν–‰ 개수 산정·캐싱을 μ™„κ²°
218
218
  */
219
219
  u(this, re, /* @__PURE__ */ h(() => {
220
- !e(this, M) || !(e(this, M) instanceof HTMLElement) || (y(this, $, new ResizeObserver((i) => {
220
+ !e(this, $) || !(e(this, $) instanceof HTMLElement) || (y(this, W, new ResizeObserver((i) => {
221
221
  for (const t of i) {
222
222
  const s = t.target;
223
223
  if (!s.classList.contains("active"))
@@ -229,33 +229,33 @@ const Le = class Le {
229
229
  const a = s.querySelector(".ng-container-body") || s, d = a.querySelector("thead"), l = a.querySelector("tfoot");
230
230
  d && (o += d.offsetHeight || d.getBoundingClientRect().height), l && (o += l.offsetHeight || l.getBoundingClientRect().height);
231
231
  const c = Math.max(r - o, 100);
232
- if (e(this, I) !== c && (y(this, I, c), e(this, R) !== null)) {
233
- const f = Math.ceil(e(this, I) / e(this, R));
234
- y(this, H, f + 20), O.log(`[RowManager] Resized. Height: ${e(this, I)}px | Target Rows: ${e(this, H)}`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((g) => {
232
+ if (e(this, H) !== c && (y(this, H, c), e(this, R) !== null)) {
233
+ const f = Math.ceil(e(this, H) / e(this, R));
234
+ y(this, M, f + 20), _.log(`[RowManager] Resized. Height: ${e(this, H)}px | Target Rows: ${e(this, M)}`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((g) => {
235
235
  const b = s.querySelector(g);
236
236
  b && b.querySelector("tbody") && e(this, le).call(this, b);
237
237
  });
238
238
  }
239
239
  }
240
240
  }
241
- })), e(this, $).observe(e(this, M)));
241
+ })), e(this, W).observe(e(this, $)));
242
242
  }, "#initResizeObserver"));
243
243
  // 🎯 ν…œν”Œλ¦Ώ μΆ”μΆœ, 높이 μΈ‘μ •, 초기 λ Œλ”λ§μ„ μˆœμ„œμ— 맞게 λ‚΄λΆ€μ—μ„œ 일괄 처리
244
- x(this, "initialize", /* @__PURE__ */ h((i) => {
245
- O.log(i);
246
- const t = e(this, M).querySelector(".ng-container-body"), s = i.querySelector("tbody"), n = Array.from(s.querySelectorAll("tr"));
247
- y(this, _, n.map((r) => r.cloneNode(!0))), y(this, R, null), e(this, oe).call(this, t);
244
+ v(this, "initialize", /* @__PURE__ */ h((i) => {
245
+ _.log(i);
246
+ const t = e(this, $).querySelector(".ng-container-body"), s = i.querySelector("tbody"), n = Array.from(s.querySelectorAll("tr"));
247
+ y(this, I, n.map((r) => r.cloneNode(!0))), y(this, R, null), e(this, oe).call(this, t);
248
248
  }, "initialize"));
249
249
  u(this, oe, /* @__PURE__ */ h((i) => {
250
250
  if (e(this, R) !== null && e(this, R) > 0)
251
251
  return e(this, R);
252
- if (e(this, _).length === 0)
252
+ if (e(this, I).length === 0)
253
253
  throw new Error("[RowManager] Template TRs are empty.");
254
254
  const t = i.querySelector("tbody.bindable") || i.querySelector("tbody");
255
255
  if (!t) return 24;
256
256
  t.querySelectorAll("tr:not(.nodata)").forEach((f) => f.remove());
257
257
  const s = t.querySelector("tr.nodata"), n = document.createDocumentFragment();
258
- e(this, _).forEach((f) => {
258
+ e(this, I).forEach((f) => {
259
259
  n.appendChild(f.cloneNode(!0));
260
260
  }), s ? s.before(n) : t.appendChild(n);
261
261
  const r = i.closest("nine-table-sheet"), o = r ? r.style.display : "", a = r ? r.style.visibility : "", d = r ? r.style.position : "";
@@ -264,12 +264,12 @@ const Le = class Le {
264
264
  const c = t.querySelectorAll("tr:not(.nodata)");
265
265
  if (c.forEach((f, g) => {
266
266
  l += f.offsetHeight || f.getBoundingClientRect().height;
267
- }), c.forEach((f) => f.remove()), r && (r.style.display = o, r.style.visibility = a, r.style.position = d), y(this, R, l), e(this, I) > 0) {
268
- const f = Math.ceil(e(this, I) / e(this, R));
269
- y(this, H, f + 20);
267
+ }), c.forEach((f) => f.remove()), r && (r.style.display = o, r.style.visibility = a, r.style.position = d), y(this, R, l), e(this, H) > 0) {
268
+ const f = Math.ceil(e(this, H) / e(this, R));
269
+ y(this, M, f + 20);
270
270
  } else
271
- y(this, H, 40);
272
- return console.log(`[RowManager] Template Height Cached: ${e(this, R)}px | RowCount: ${e(this, H)}`), e(this, R);
271
+ y(this, M, 40);
272
+ return console.log(`[RowManager] Template Height Cached: ${e(this, R)}px | RowCount: ${e(this, M)}`), e(this, R);
273
273
  }, "#measureAndCacheHeight"));
274
274
  /**
275
275
  * 🎯 μΊμ‹œλœ ν–‰ 개수 λ°˜ν™˜ (없을 λ•Œλ§Œ μ΅œμ†Œν•œμ˜ λ°©μ–΄ μ—°μ‚°)
@@ -288,34 +288,34 @@ const Le = class Le {
288
288
  * 🎯 μΊμ‹œλœ ν–‰ 개수λ₯Ό κ³§λ°”λ‘œ κ°€μ Έμ™€μ„œ TR λΌˆλŒ€ μ£Όμž… (쀑볡 계산 제거)
289
289
  */
290
290
  u(this, le, /* @__PURE__ */ h((i) => {
291
- if (e(this, _).length === 0) return;
291
+ if (e(this, I).length === 0) return;
292
292
  const t = i.querySelector("tbody.bindable") || i.querySelector("tbody");
293
293
  if (!t) return;
294
294
  t.querySelectorAll("tr:not(.nodata)").forEach((o) => o.remove());
295
- const s = t.querySelector("tr.nodata"), n = document.createDocumentFragment(), r = e(this, H);
295
+ const s = t.querySelector("tr.nodata"), n = document.createDocumentFragment(), r = e(this, M);
296
296
  for (let o = 0; o < r; o++)
297
- e(this, _).forEach((a) => {
297
+ e(this, I).forEach((a) => {
298
298
  n.appendChild(a.cloneNode(!0));
299
299
  });
300
300
  s ? s.before(n) : t.appendChild(n), console.log(`[RowManager] Rendered ${r} sets into DOM.`);
301
301
  }, "#renderRows"));
302
- x(this, "destroy", /* @__PURE__ */ h(() => {
303
- e(this, $) && (e(this, $).disconnect(), y(this, $, null));
302
+ v(this, "destroy", /* @__PURE__ */ h(() => {
303
+ e(this, W) && (e(this, W).disconnect(), y(this, W, null));
304
304
  }, "destroy"));
305
- y(this, M, i), e(this, ne).call(this);
305
+ y(this, $, i), e(this, ne).call(this);
306
306
  }
307
307
  get templateLength() {
308
- return e(this, _).length || 1;
308
+ return e(this, I).length || 1;
309
309
  }
310
310
  };
311
- M = new WeakMap(), _ = new WeakMap(), R = new WeakMap(), $ = new WeakMap(), I = new WeakMap(), H = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), le = new WeakMap(), h(Le, "RowManager");
311
+ $ = new WeakMap(), I = new WeakMap(), R = new WeakMap(), W = new WeakMap(), H = new WeakMap(), M = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), le = new WeakMap(), h(Le, "RowManager");
312
312
  let xe = Le;
313
- var A, F, G, U, ae, ce;
313
+ var A, U, G, F, ae, ce;
314
314
  const j = class j extends HTMLElement {
315
315
  constructor() {
316
316
  super();
317
317
  u(this, A, null);
318
- u(this, F);
318
+ u(this, U);
319
319
  /**
320
320
  * 🎯 2차원 μ…€ 격자 인덱슀λ₯Ό κ³„μ‚°ν•˜μ—¬ 병합(`rowSpan`/`colSpan`) μ…€μ˜ μ ˆλŒ€ 컬럼 μœ„μΉ˜λ₯Ό λΆ€μ—¬
321
321
  */
@@ -331,15 +331,15 @@ const j = class j extends HTMLElement {
331
331
  const c = l.sectionRowIndex;
332
332
  let f = 0;
333
333
  Array.from(l.querySelectorAll("th,td")).forEach((g) => {
334
- for (let v = 0; v < d[c].length; v++)
335
- if (d[c][v] === null) {
336
- f = v;
334
+ for (let x = 0; x < d[c].length; x++)
335
+ if (d[c][x] === null) {
336
+ f = x;
337
337
  break;
338
338
  }
339
339
  const b = g.rowSpan || 1, S = g.colSpan || 1;
340
- for (let v = 0; v < b; v++)
340
+ for (let x = 0; x < b; x++)
341
341
  for (let L = 0; L < S; L++)
342
- c + v < o && f + L < a && (d[c + v][f + L] = v === 0 && L === 0 ? "1" : "0");
342
+ c + x < o && f + L < a && (d[c + x][f + L] = x === 0 && L === 0 ? "1" : "0");
343
343
  });
344
344
  }), n.forEach((l) => {
345
345
  const c = l.sectionRowIndex;
@@ -355,7 +355,7 @@ const j = class j extends HTMLElement {
355
355
  /**
356
356
  * 🎯 원본 ν…Œμ΄λΈ”μ„ λΆ„μ„ν•˜μ—¬ κ³ μ • 컬럼 μ˜μ—­λ³„(left, body, right)둜 μ™„λ²½ν•˜κ²Œ μͺΌκ°œμ§„ ν…Œμ΄λΈ” 생성
357
357
  */
358
- u(this, U, /* @__PURE__ */ h((t, s) => {
358
+ u(this, F, /* @__PURE__ */ h((t, s) => {
359
359
  const n = t.cloneNode(!0), r = n.querySelector("colgroup");
360
360
  if (!r) return n;
361
361
  const o = Array.from(r.querySelectorAll("col")), a = [];
@@ -371,17 +371,17 @@ const j = class j extends HTMLElement {
371
371
  });
372
372
  }), n;
373
373
  }, "#createSplitTable"));
374
- x(this, "generate", /* @__PURE__ */ h((t) => {
374
+ v(this, "generate", /* @__PURE__ */ h((t) => {
375
375
  if (!t) return;
376
376
  const s = /* @__PURE__ */ h((l) => {
377
377
  const c = /* @__PURE__ */ h((g) => {
378
378
  if (g.querySelector("colgroup")) return;
379
- const b = g.querySelector("tbody tr") || g.querySelector("tr"), S = b ? b.querySelectorAll("th, td").length : 1, v = document.createElement("colgroup"), L = Math.max(Math.floor(g.clientWidth / S), 100);
379
+ const b = g.querySelector("tbody tr") || g.querySelector("tr"), S = b ? b.querySelectorAll("th, td").length : 1, x = document.createElement("colgroup"), L = Math.max(Math.floor(g.clientWidth / S), 100);
380
380
  for (let $e = 0; $e < S; $e++) {
381
381
  const We = document.createElement("col");
382
- We.setAttribute("width", L), v.appendChild(We);
382
+ We.setAttribute("width", L), x.appendChild(We);
383
383
  }
384
- g.prepend(v);
384
+ g.prepend(x);
385
385
  }, "ensureColgroup"), f = /* @__PURE__ */ h((g) => {
386
386
  if (g.querySelector("thead")) return;
387
387
  const b = document.createElement("thead"), S = g.querySelector("colgroup");
@@ -394,14 +394,14 @@ const j = class j extends HTMLElement {
394
394
  f && e(this, A).querySelectorAll(`[data-col="${c}"]`).forEach((g) => {
395
395
  g.setAttribute("fixed", f);
396
396
  });
397
- }), O.log(e(this, A));
397
+ }), _.log(e(this, A));
398
398
  const o = this.querySelector(".ng-container-left"), a = this.querySelector(".ng-container-body"), d = this.querySelector(".ng-container-right");
399
399
  if (a) {
400
- const l = e(this, U).call(this, e(this, A), null);
401
- a.innerHTML = "", a.appendChild(l), e(this, F).initialize(e(this, A));
400
+ const l = e(this, F).call(this, e(this, A), null);
401
+ a.innerHTML = "", a.appendChild(l), e(this, U).initialize(e(this, A));
402
402
  }
403
403
  if (o) {
404
- const l = e(this, U).call(this, e(this, A), "left");
404
+ const l = e(this, F).call(this, e(this, A), "left");
405
405
  let c = 0;
406
406
  l.querySelectorAll("col").forEach((g) => {
407
407
  const b = parseInt(g.getAttribute("width"), 10);
@@ -411,7 +411,7 @@ const j = class j extends HTMLElement {
411
411
  o.style.flex = `0 0 ${f}px`, o.style.width = `${f}px`;
412
412
  }
413
413
  if (d) {
414
- const l = e(this, U).call(this, e(this, A), "right");
414
+ const l = e(this, F).call(this, e(this, A), "right");
415
415
  let c = 0;
416
416
  l.querySelectorAll("col").forEach((g) => {
417
417
  const b = parseInt(g.getAttribute("width"), 10);
@@ -428,32 +428,31 @@ const j = class j extends HTMLElement {
428
428
  (l = this.querySelector("nine-table-hscrollbar")) == null || l.refresh();
429
429
  }, 0);
430
430
  }, "generate"));
431
- x(this, "getRowHeight", /* @__PURE__ */ h(() => e(this, F).getRowHeight(), "getRowHeight"));
432
- x(this, "scrollToX", /* @__PURE__ */ h((t) => {
431
+ v(this, "getRowHeight", /* @__PURE__ */ h(() => e(this, U).getRowHeight(), "getRowHeight"));
432
+ v(this, "scrollToX", /* @__PURE__ */ h((t) => {
433
433
  const s = this.querySelector(".ng-container-body");
434
434
  s && (s.scrollLeft = t);
435
435
  }, "scrollToX"));
436
- x(this, "scrollToY", /* @__PURE__ */ h((t) => {
436
+ v(this, "scrollToY", /* @__PURE__ */ h((t) => {
437
437
  const s = this.querySelector(".ng-container-body");
438
438
  s && (s.scrollTop = t);
439
439
  }, "scrollToY"));
440
440
  u(this, ae, /* @__PURE__ */ h(() => {
441
441
  const t = /* @__PURE__ */ h(() => {
442
- requestAnimationFrame(() => {
443
- var c, f, g;
444
- O.log(":::::::::::::::");
445
- const s = this.querySelector(".ng-container-left table"), n = this.querySelector(".ng-container-body table"), r = this.querySelector(".ng-container-right table");
446
- if (!n) return;
447
- const o = s ? Array.from(s.querySelectorAll("tr")) : [], a = Array.from(n.querySelectorAll("tr")), d = r ? Array.from(r.querySelectorAll("tr")) : [], l = Math.max(o.length, a.length, d.length);
448
- for (let b = 0; b < l; b++) {
449
- const S = [
450
- ((c = o[b]) == null ? void 0 : c.getBoundingClientRect().height) || 0,
451
- ((f = a[b]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
452
- ((g = d[b]) == null ? void 0 : g.getBoundingClientRect().height) || 0
453
- ], v = Math.max(...S);
454
- v > 0 && (o[b] && (o[b].style.height = `${v}px`), a[b] && (a[b].style.height = `${v}px`), d[b] && (d[b].style.height = `${v}px`));
455
- }
456
- });
442
+ var c, f, g;
443
+ _.log(":::::::::::::::");
444
+ const s = this.querySelector(".ng-container-left table"), n = this.querySelector(".ng-container-body table"), r = this.querySelector(".ng-container-right table");
445
+ if (!n) return;
446
+ _.log("22222");
447
+ const o = s ? Array.from(s.querySelectorAll("tr")) : [], a = Array.from(n.querySelectorAll("tr")), d = r ? Array.from(r.querySelectorAll("tr")) : [], l = Math.max(o.length, a.length, d.length);
448
+ for (let b = 0; b < l; b++) {
449
+ const S = [
450
+ ((c = o[b]) == null ? void 0 : c.getBoundingClientRect().height) || 0,
451
+ ((f = a[b]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
452
+ ((g = d[b]) == null ? void 0 : g.getBoundingClientRect().height) || 0
453
+ ], x = Math.max(...S);
454
+ _.log(x), x > 0 && (o[b] && (o[b].style.height = `${x}px`), a[b] && (a[b].style.height = `${x}px`), d[b] && (d[b].style.height = `${x}px`));
455
+ }
457
456
  }, "syncRowHeights");
458
457
  e(this, ce).call(this), t(), new MutationObserver((s) => {
459
458
  for (const n of s)
@@ -584,16 +583,16 @@ const j = class j extends HTMLElement {
584
583
  </div>
585
584
  `;
586
585
  }, "#render"));
587
- y(this, F, new xe(this));
586
+ y(this, U, new xe(this));
588
587
  }
589
588
  connectedCallback() {
590
589
  e(this, ae).call(this);
591
590
  }
592
591
  disconnectedCallback() {
593
- this.innerHTML = "", O.log("NineTableSheet destroyed.");
592
+ this.innerHTML = "", _.log("NineTableSheet destroyed.");
594
593
  }
595
594
  };
596
- A = new WeakMap(), F = new WeakMap(), G = new WeakMap(), U = new WeakMap(), ae = new WeakMap(), ce = new WeakMap(), h(j, "NineTableSheet"), x(j, "SCROLLBAR_SIZE", 16);
595
+ A = new WeakMap(), U = new WeakMap(), G = new WeakMap(), F = new WeakMap(), ae = new WeakMap(), ce = new WeakMap(), h(j, "NineTableSheet"), v(j, "SCROLLBAR_SIZE", 16);
597
596
  let te = j;
598
597
  customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", te);
599
598
  var he, J;
@@ -614,8 +613,8 @@ const Ce = class Ce extends HTMLElement {
614
613
  Array.from(this.querySelectorAll("nine-splitter")).forEach((b) => b.style.setProperty("display", "none"));
615
614
  const g = c.filter((b) => b.classList.contains("active"));
616
615
  g.length < 2 || g.forEach((b) => {
617
- const S = parseInt(b.getAttribute("data-index"), 10), v = this.querySelector(`nine-splitter[data-split-index="${S}"]`), L = c[S + 1];
618
- v && L && L.classList.contains("active") && v.style.setProperty("display", "flex");
616
+ const S = parseInt(b.getAttribute("data-index"), 10), x = this.querySelector(`nine-splitter[data-split-index="${S}"]`), L = c[S + 1];
617
+ x && L && L.classList.contains("active") && x.style.setProperty("display", "flex");
619
618
  });
620
619
  }, "updateSplitters"), r = this.querySelector(".nine-tab-bar"), o = this.querySelector("nine-table-sheets-body"), a = r.querySelectorAll(".nine-tab-item"), d = o.querySelectorAll("nine-table-sheet");
621
620
  if (!a[t]) return;
@@ -780,13 +779,13 @@ const _e = class _e {
780
779
  };
781
780
  E = new WeakMap(), de = new WeakMap(), Q = new WeakMap(), fe = new WeakMap(), h(_e, "LayoutManager");
782
781
  let Se = _e;
783
- var W, X;
782
+ var z, X;
784
783
  const Ie = class Ie {
785
784
  constructor(i) {
786
- u(this, W);
785
+ u(this, z);
787
786
  u(this, X, -1);
788
- x(this, "count", /* @__PURE__ */ h(() => e(this, W).rawRecords.length, "count"));
789
- y(this, W, i);
787
+ v(this, "count", /* @__PURE__ */ h(() => e(this, z).rawRecords.length, "count"));
788
+ y(this, z, i);
790
789
  }
791
790
  get at() {
792
791
  return e(this, X);
@@ -794,16 +793,16 @@ const Ie = class Ie {
794
793
  set at(i) {
795
794
  var s, n;
796
795
  y(this, X, parseInt(i, 10));
797
- const t = ((n = (s = e(this, W).owner).querySelector) == null ? void 0 : n.call(s, ".ng-container-body")) || e(this, W).owner.body;
796
+ const t = ((n = (s = e(this, z).owner).querySelector) == null ? void 0 : n.call(s, ".ng-container-body")) || e(this, z).owner.body;
798
797
  t && !t.querySelector(`tbody.bindable tr[data-row="${e(this, X)}"]`) && setTimeout(() => {
799
798
  var r, o;
800
- (o = (r = e(this, W).owner).scrollTo_V1) == null || o.call(r, e(this, X));
799
+ (o = (r = e(this, z).owner).scrollTo_V1) == null || o.call(r, e(this, X));
801
800
  });
802
801
  }
803
802
  };
804
- W = new WeakMap(), X = new WeakMap(), h(Ie, "ngRow");
803
+ z = new WeakMap(), X = new WeakMap(), h(Ie, "ngRow");
805
804
  let Ee = Ie;
806
- var T, w, q, K, ue, z, ge, ee, be, ye, Z;
805
+ var T, w, q, K, ue, O, ge, ee, be, ye, Z;
807
806
  const k = class k {
808
807
  constructor(i, t) {
809
808
  u(this, T);
@@ -811,33 +810,33 @@ const k = class k {
811
810
  u(this, q, []);
812
811
  u(this, K, []);
813
812
  u(this, ue, 0);
814
- u(this, z, []);
813
+ u(this, O, []);
815
814
  u(this, ge, /* @__PURE__ */ h(() => {
816
- y(this, z, []);
815
+ y(this, O, []);
817
816
  const i = e(this, T).template || [];
818
817
  Array.from(i).forEach((t) => {
819
818
  var s;
820
- e(this, z).push(((s = t.getBoundingClientRect) == null ? void 0 : s.call(t).height) || 24);
819
+ e(this, O).push(((s = t.getBoundingClientRect) == null ? void 0 : s.call(t).height) || 24);
821
820
  }), (e(this, w).rawRecords || []).forEach((t) => {
822
- t.__ng || (t.__ng = e(this, ee).call(this)), t.__ng.height = e(this, z).slice();
821
+ t.__ng || (t.__ng = e(this, ee).call(this)), t.__ng.height = e(this, O).slice();
823
822
  });
824
823
  }, "#initialize"));
825
- x(this, "set", /* @__PURE__ */ h((i) => {
824
+ v(this, "set", /* @__PURE__ */ h((i) => {
826
825
  this.clear(), this.add(i, !1);
827
826
  }, "set"));
828
827
  u(this, ee, /* @__PURE__ */ h(() => ({
829
828
  rowState: k.ROW_STATE.EMPTY,
830
829
  deleted: !1,
831
830
  filtered: !1,
832
- height: e(this, z).slice(),
831
+ height: e(this, O).slice(),
833
832
  o: {},
834
833
  c: {},
835
- _: [0, 0, 0, 0, k.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, z).slice(), -1, {}, {}]
834
+ _: [0, 0, 0, 0, k.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, O).slice(), -1, {}, {}]
836
835
  }), "#getDefaultMeta"));
837
- x(this, "reset", /* @__PURE__ */ h(() => {
836
+ v(this, "reset", /* @__PURE__ */ h(() => {
838
837
  y(this, q, []), y(this, K, []);
839
838
  }, "reset"));
840
- x(this, "clear", /* @__PURE__ */ h(() => {
839
+ v(this, "clear", /* @__PURE__ */ h(() => {
841
840
  var i;
842
841
  e(this, w).rawRecords = [], y(this, q, []), y(this, K, []), (i = e(this, w).viewRecords) != null && i.reset && e(this, w).viewRecords.reset();
843
842
  }, "clear"));
@@ -855,7 +854,7 @@ const k = class k {
855
854
  u(this, ye, /* @__PURE__ */ h((i) => (Array.isArray(i) || (i = [i]), i.forEach((t) => {
856
855
  t.__ng = e(this, ee).call(this), t.__ng.rowid = this.nextId, t.__ng.rowState = k.ROW_STATE.INSERT, t.__ng._[0] = t.__ng.rowid;
857
856
  }), i), "#defaultInsert"));
858
- x(this, "add", /* @__PURE__ */ h((i, t = !0) => {
857
+ v(this, "add", /* @__PURE__ */ h((i, t = !0) => {
859
858
  var r;
860
859
  i === void 0 && (i = {});
861
860
  const s = e(this, be).call(this, i);
@@ -866,7 +865,7 @@ const k = class k {
866
865
  d && (d.__ng.rowState = k.ROW_STATE.EMPTY);
867
866
  }), (r = e(this, w).viewRecords) != null && r.reset && e(this, w).viewRecords.reset(), n;
868
867
  }, "add"));
869
- x(this, "delete", /* @__PURE__ */ h((i) => {
868
+ v(this, "delete", /* @__PURE__ */ h((i) => {
870
869
  var s;
871
870
  let t = [];
872
871
  Array.isArray(i) ? t = i : typeof i > "u" ? t = [e(this, w).owner.row.at] : t = [parseInt(i, 10)], t.sort((n, r) => r - n).forEach((n) => {
@@ -878,7 +877,7 @@ const k = class k {
878
877
  }
879
878
  }), this.resetRecords(), (s = e(this, w).viewRecords) != null && s.reset && e(this, w).viewRecords.reset();
880
879
  }, "delete"));
881
- x(this, "setValue", /* @__PURE__ */ h((i, t, s) => {
880
+ v(this, "setValue", /* @__PURE__ */ h((i, t, s) => {
882
881
  var d;
883
882
  i = parseInt(i, 10);
884
883
  const r = (typeof ((d = e(this, T).fields) == null ? void 0 : d.get) == "function" ? e(this, T).fields.get() : []).indexOf(t);
@@ -888,14 +887,14 @@ const k = class k {
888
887
  const a = o.v[r];
889
888
  a !== s && o.__ng.rowState !== k.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(t) || (o.__ng.o[t] = a), o.__ng.rowState = k.ROW_STATE.UPDATE), o.v[r] = s, e(this, w).owner.refreshData && e(this, w).owner.refreshData(i);
890
889
  }, "setValue"));
891
- x(this, "resetRecords", /* @__PURE__ */ h(() => {
890
+ v(this, "resetRecords", /* @__PURE__ */ h(() => {
892
891
  y(this, K, e(this, w).rawRecords.filter((i) => !i.__ng.deleted)), y(this, q, e(this, w).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), e(this, w).rawRecords.forEach((i, t) => {
893
892
  i.__ng.rowidx = t;
894
893
  }), e(this, q).forEach((i, t) => {
895
894
  i.__ng.i = t;
896
895
  });
897
896
  }, "resetRecords"));
898
- x(this, "getValidData", /* @__PURE__ */ h(() => (e(this, q).length === 0 && e(this, w).rawRecords.length > 0 && this.resetRecords(), e(this, q)), "getValidData"));
897
+ v(this, "getValidData", /* @__PURE__ */ h(() => (e(this, q).length === 0 && e(this, w).rawRecords.length > 0 && this.resetRecords(), e(this, q)), "getValidData"));
899
898
  u(this, Z, /* @__PURE__ */ h((i) => {
900
899
  var s;
901
900
  if (!i) return i;
@@ -907,8 +906,8 @@ const k = class k {
907
906
  }), r.__ng = n.__ng, r;
908
907
  }) : i;
909
908
  }, "#conv2"));
910
- x(this, "count", /* @__PURE__ */ h(() => this.getValidData().length, "count"));
911
- x(this, "get", /* @__PURE__ */ h((i, t) => {
909
+ v(this, "count", /* @__PURE__ */ h(() => this.getValidData().length, "count"));
910
+ v(this, "get", /* @__PURE__ */ h((i, t) => {
912
911
  var r;
913
912
  const s = this.getValidData();
914
913
  if (!s || s.length <= 0) return;
@@ -939,8 +938,8 @@ const k = class k {
939
938
  return this.length;
940
939
  }
941
940
  };
942
- T = new WeakMap(), w = new WeakMap(), q = new WeakMap(), K = new WeakMap(), ue = new WeakMap(), z = new WeakMap(), ge = new WeakMap(), ee = new WeakMap(), be = new WeakMap(), ye = new WeakMap(), Z = new WeakMap(), h(k, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
943
- x(k, "ROW_STATE", {
941
+ T = new WeakMap(), w = new WeakMap(), q = new WeakMap(), K = new WeakMap(), ue = new WeakMap(), O = new WeakMap(), ge = new WeakMap(), ee = new WeakMap(), be = new WeakMap(), ye = new WeakMap(), Z = new WeakMap(), h(k, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
942
+ v(k, "ROW_STATE", {
944
943
  EMPTY: "EMPTY",
945
944
  NORMAL: "NORMAL",
946
945
  INSERT: "INSERT",
@@ -979,10 +978,10 @@ const Me = class Me extends HTMLElement {
979
978
  this.attachShadow({ mode: "open" }), y(this, Y, new Ae(this));
980
979
  }
981
980
  connectedCallback() {
982
- y(this, pe, new Se(this)), O.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
981
+ y(this, pe, new Se(this)), _.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
983
982
  }
984
983
  disconnectedCallback() {
985
- O.log("NineTable disconnected.");
984
+ _.log("NineTable disconnected.");
986
985
  }
987
986
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
988
987
  get data() {