@ninebone/table 0.0.277 β†’ 0.0.279

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.
@@ -1,12 +1,12 @@
1
- var Ne = Object.defineProperty;
2
- var Be = (p) => {
1
+ var Ve = Object.defineProperty;
2
+ var Xe = (p) => {
3
3
  throw TypeError(p);
4
4
  };
5
- var Xe = (p, i, t) => i in p ? Ne(p, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[i] = t;
6
- var a = (p, i) => Ne(p, "name", { value: i, configurable: !0 });
7
- var x = (p, i, t) => Xe(p, typeof i != "symbol" ? i + "" : i, t), Pe = (p, i, t) => i.has(p) || Be("Cannot " + t);
8
- var e = (p, i, t) => (Pe(p, i, "read from private field"), t ? t.call(p) : i.get(p)), d = (p, i, t) => i.has(p) ? Be("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(p) : i.set(p, t), g = (p, i, t, s) => (Pe(p, i, "write to private field"), s ? s.call(p, t) : i.set(p, t), t);
9
- var Ve = (p, i, t, s) => ({
5
+ var Ke = (p, i, t) => i in p ? Ve(p, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[i] = t;
6
+ var a = (p, i) => Ve(p, "name", { value: i, configurable: !0 });
7
+ var v = (p, i, t) => Ke(p, typeof i != "symbol" ? i + "" : i, t), Ye = (p, i, t) => i.has(p) || Xe("Cannot " + t);
8
+ var e = (p, i, t) => (Ye(p, i, "read from private field"), t ? t.call(p) : i.get(p)), c = (p, i, t) => i.has(p) ? Xe("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(p) : i.set(p, t), g = (p, i, t, s) => (Ye(p, i, "write to private field"), s ? s.call(p, t) : i.set(p, t), t);
9
+ var Ue = (p, i, t, s) => ({
10
10
  set _(n) {
11
11
  g(p, i, n, t);
12
12
  },
@@ -14,78 +14,78 @@ var Ve = (p, i, t, s) => ({
14
14
  return e(p, i, s);
15
15
  }
16
16
  });
17
- import { trace as Ye } from "@ninebone/util";
18
- const _e = class _e extends Ye.constructor {
17
+ import { trace as Ze } from "@ninebone/util";
18
+ const Me = class Me extends Ze.constructor {
19
19
  constructor() {
20
20
  super(), this.init("nine-table", "green");
21
21
  }
22
22
  };
23
- a(_e, "Trace");
24
- let ve = _e;
25
- const j = new ve();
26
- var k, W, y, O, z, D, re, N, oe;
27
- const Ie = class Ie extends HTMLElement {
23
+ a(Me, "Trace");
24
+ let Ee = Me;
25
+ const F = new Ee();
26
+ var k, $, y, O, W, z, ne, D, re;
27
+ const $e = class $e extends HTMLElement {
28
28
  constructor() {
29
29
  super();
30
- d(this, k);
31
- d(this, W, !1);
32
- d(this, y);
33
- d(this, O);
34
- d(this, z);
35
- d(this, D);
36
- d(this, re, /* @__PURE__ */ a(() => {
30
+ c(this, k);
31
+ c(this, $, !1);
32
+ c(this, y);
33
+ c(this, O);
34
+ c(this, W);
35
+ c(this, z);
36
+ c(this, ne, /* @__PURE__ */ a(() => {
37
37
  if (!e(this, k)) return;
38
38
  const t = e(this, k).querySelector(".ng-container-body");
39
- t && (g(this, D, new ResizeObserver(() => {
39
+ t && (g(this, z, new ResizeObserver(() => {
40
40
  this.refresh();
41
- })), e(this, D).observe(t));
41
+ })), e(this, z).observe(t));
42
42
  }, "#observeResize"));
43
- x(this, "refresh", /* @__PURE__ */ a(() => {
44
- if (!e(this, k) || !e(this, y) || e(this, W)) return;
43
+ v(this, "refresh", /* @__PURE__ */ a(() => {
44
+ if (!e(this, k) || !e(this, y) || e(this, $)) return;
45
45
  const t = e(this, y).container, s = t.querySelector("table");
46
46
  if (!s) return;
47
- const n = e(this, y).track, o = e(this, y).thumb, r = e(this, k).querySelector(".ng-container-bottom"), l = t.clientWidth, c = s.scrollWidth;
48
- if (l !== 0 && c > l)
49
- r && (r.style.display = "flex");
47
+ const n = e(this, y).track, r = e(this, y).thumb, o = e(this, k).querySelector(".ng-container-bottom"), l = t.clientWidth, d = s.scrollWidth;
48
+ if (l !== 0 && d > l)
49
+ o && (o.style.display = "flex");
50
50
  else {
51
- r && (r.style.display = "none");
51
+ o && (o.style.display = "none");
52
52
  return;
53
53
  }
54
54
  const h = n.clientWidth;
55
55
  if (h <= 0) return;
56
- const f = Math.max(Math.min(h * (l / c), h), 20);
57
- o.style.width = `${f}px`;
58
- const b = t.scrollLeft, u = c - l;
59
- let v = 0;
60
- u > 0 && (v = parseInt(b / u * (h - f), 10)), v < 0 && (v = 0);
56
+ const f = Math.max(Math.min(h * (l / d), h), 20);
57
+ r.style.width = `${f}px`;
58
+ const b = t.scrollLeft, u = d - l;
59
+ let x = 0;
60
+ u > 0 && (x = parseInt(b / u * (h - f), 10)), x < 0 && (x = 0);
61
61
  const w = h - f;
62
- v > w && (v = w), o.style.left = `${v}px`, j.log(v), e(this, y).left.disabled = v === 0, e(this, y).right.disabled = v >= w - 1;
62
+ x > w && (x = w), r.style.left = `${x}px`, F.log(x), e(this, y).left.disabled = x === 0, e(this, y).right.disabled = x >= w - 1;
63
63
  }, "refresh"));
64
- d(this, N, /* @__PURE__ */ a((t) => {
64
+ c(this, D, /* @__PURE__ */ a((t) => {
65
65
  if (!e(this, y)) return !1;
66
66
  const s = e(this, y).container, n = s.querySelector("table");
67
67
  if (!n) return !1;
68
- const o = e(this, y).track.getBoundingClientRect(), r = e(this, y).thumb.clientWidth;
68
+ const r = e(this, y).track.getBoundingClientRect(), o = e(this, y).thumb.clientWidth;
69
69
  let l = t;
70
70
  l < 0 && (l = 0);
71
- const c = o.width - r;
72
- l > c && (l = c), 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 >= c - 1;
71
+ const d = r.width - o;
72
+ l > d && (l = d), 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 >= d - 1;
73
73
  const h = s.clientWidth, f = n.scrollWidth;
74
- let b = c > 0 ? -l * (f - h) / c : 0;
75
- return -b > f - h && (b = -(f - h)), -b + 5 > f - h && (b = -(f - h)), h >= f && (b = 0), n.style.transform = `translateX(${b}px)`, l > 0 && l < c - 1;
74
+ let b = d > 0 ? -l * (f - h) / d : 0;
75
+ return -b > f - h && (b = -(f - h)), -b + 5 > f - h && (b = -(f - h)), h >= f && (b = 0), n.style.transform = `translateX(${b}px)`, l > 0 && l < d - 1;
76
76
  }, "#thumbMoveTo"));
77
- d(this, oe, /* @__PURE__ */ a(() => {
77
+ c(this, re, /* @__PURE__ */ a(() => {
78
78
  const t = /* @__PURE__ */ a((n) => {
79
- clearInterval(e(this, O)), clearInterval(e(this, z));
80
- const o = parseInt(e(this, y).thumb.style.left || 0, 10);
81
- e(this, N).call(this, o + n), g(this, O, setInterval(() => {
82
- clearInterval(e(this, O)), g(this, z, setInterval(() => {
83
- const r = parseInt(e(this, y).thumb.style.left || 0, 10);
84
- e(this, N).call(this, r + n) || clearInterval(e(this, z));
79
+ clearInterval(e(this, O)), clearInterval(e(this, W));
80
+ const r = parseInt(e(this, y).thumb.style.left || 0, 10);
81
+ e(this, D).call(this, r + n), g(this, O, setInterval(() => {
82
+ clearInterval(e(this, O)), g(this, W, setInterval(() => {
83
+ const o = parseInt(e(this, y).thumb.style.left || 0, 10);
84
+ e(this, D).call(this, o + n) || clearInterval(e(this, W));
85
85
  }, 50));
86
86
  }, 500));
87
87
  }, "delayScroll"), s = /* @__PURE__ */ a(() => {
88
- clearInterval(e(this, O)), clearInterval(e(this, z));
88
+ clearInterval(e(this, O)), clearInterval(e(this, W));
89
89
  }, "clearTimer");
90
90
  ["mouseup", "mouseleave", "touchend"].forEach((n) => {
91
91
  e(this, y).left.addEventListener(n, s), e(this, y).right.addEventListener(n, s), e(this, y).track.addEventListener(n, s);
@@ -96,19 +96,19 @@ const Ie = class Ie extends HTMLElement {
96
96
  }), e(this, y).left.addEventListener("touchstart", () => t(-20)), e(this, y).right.addEventListener("touchstart", () => t(20)), e(this, y).track.addEventListener("mousedown", (n) => {
97
97
  if (n.button !== 0) return;
98
98
  n.preventDefault();
99
- const o = e(this, y).track.getBoundingClientRect(), r = e(this, y).thumb.clientWidth;
100
- e(this, N).call(this, n.clientX - o.left - r / 2);
99
+ const r = e(this, y).track.getBoundingClientRect(), o = e(this, y).thumb.clientWidth;
100
+ e(this, D).call(this, n.clientX - r.left - o / 2);
101
101
  }), e(this, y).thumb.addEventListener("mousedown", (n) => {
102
102
  if (n.button !== 0) return;
103
- n.stopPropagation(), n.preventDefault(), g(this, W, !0), this.shiftX = n.clientX - e(this, y).thumb.getBoundingClientRect().left;
104
- const o = /* @__PURE__ */ a((l) => {
105
- if (!e(this, W)) return;
106
- const c = e(this, y).track.getBoundingClientRect();
107
- e(this, N).call(this, l.clientX - c.left - this.shiftX);
108
- }, "onMouseMove"), r = /* @__PURE__ */ a(() => {
109
- g(this, W, !1), s(), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", r), this.refresh();
103
+ n.stopPropagation(), n.preventDefault(), g(this, $, !0), this.shiftX = n.clientX - e(this, y).thumb.getBoundingClientRect().left;
104
+ const r = /* @__PURE__ */ a((l) => {
105
+ if (!e(this, $)) return;
106
+ const d = e(this, y).track.getBoundingClientRect();
107
+ e(this, D).call(this, l.clientX - d.left - this.shiftX);
108
+ }, "onMouseMove"), o = /* @__PURE__ */ a(() => {
109
+ g(this, $, !1), s(), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", o), this.refresh();
110
110
  }, "onMouseUp");
111
- document.addEventListener("mousemove", o), document.addEventListener("mouseup", r);
111
+ document.addEventListener("mousemove", r), document.addEventListener("mouseup", o);
112
112
  });
113
113
  }, "#init"));
114
114
  }
@@ -189,286 +189,294 @@ const Ie = class Ie extends HTMLElement {
189
189
  thumb: this.querySelector(".ng-scroll-thumb"),
190
190
  left: this.querySelector(".ng-scroll-left"),
191
191
  right: this.querySelector(".ng-scroll-right")
192
- }), e(this, oe).call(this), e(this, re).call(this), this.refresh();
192
+ }), e(this, re).call(this), e(this, ne).call(this), this.refresh();
193
193
  }, "initWhenReady");
194
194
  t();
195
195
  }
196
196
  disconnectedCallback() {
197
- e(this, D) && e(this, D).disconnect();
197
+ e(this, z) && e(this, z).disconnect();
198
198
  }
199
199
  };
200
- k = new WeakMap(), W = new WeakMap(), y = new WeakMap(), O = new WeakMap(), z = new WeakMap(), D = new WeakMap(), re = new WeakMap(), N = new WeakMap(), oe = new WeakMap(), a(Ie, "NineTableHScrollBar");
201
- let Se = Ie;
202
- customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", Se);
203
- var T, I, E, H, B, P, le, G, ae, J, ce;
204
- const He = class He {
200
+ k = new WeakMap(), $ = new WeakMap(), y = new WeakMap(), O = new WeakMap(), W = new WeakMap(), z = new WeakMap(), ne = new WeakMap(), D = new WeakMap(), re = new WeakMap(), a($e, "NineTableHScrollBar");
201
+ let Re = $e;
202
+ customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", Re);
203
+ var oe, j;
204
+ const L = class L {
205
+ /**
206
+ * 🎯 λ ˆμ΄μ•„μ›ƒ λ‚΄μ˜ μ—¬λŸ¬ rawTables 배열을 μΌκ΄„λ‘œ λ°›μ•„ 단일 λ§ˆμŠ€ν„° ν…œν”Œλ¦ΏμœΌλ‘œ 사전 μ»΄νŒŒμΌν•©λ‹ˆλ‹€.
207
+ */
208
+ static compileAll(i) {
209
+ return Array.isArray(i) ? i.map((t) => L.compile(t)) : [];
210
+ }
211
+ /**
212
+ * 🎯 단일 원본 ν…Œμ΄λΈ”μ„ λ°›μ•„ κΈ°λ³Έ ꡬ쑰 보정 및 2차원 격자 인덱슀 사전 λΆ€μ—¬ μ™„λ£Œλœ λ§ˆμŠ€ν„° ν…Œμ΄λΈ” λ°˜ν™˜
213
+ */
214
+ static compile(i) {
215
+ var n, r, o;
216
+ if (!i) return null;
217
+ const t = i.cloneNode(!0);
218
+ return e(n = L, oe).call(n, t), e(r = L, j).call(r, t, "thead"), e(o = L, j).call(o, t, "tbody"), Array.from(t.querySelectorAll("colgroup col")).forEach((l, d) => {
219
+ const h = l.getAttribute("fixed");
220
+ h && t.querySelectorAll(`[data-col="${d}"]`).forEach((f) => {
221
+ f.setAttribute("fixed", h);
222
+ });
223
+ }), t;
224
+ }
225
+ };
226
+ oe = new WeakMap(), j = new WeakMap(), a(L, "TableCompiler"), c(L, oe, /* @__PURE__ */ a((i) => {
227
+ if (!i.querySelector("colgroup")) {
228
+ const t = i.querySelector("tbody tr") || i.querySelector("tr"), s = t ? t.querySelectorAll("th, td").length : 1, n = document.createElement("colgroup"), r = Math.max(Math.floor(i.clientWidth / s), 100);
229
+ for (let o = 0; o < s; o++) {
230
+ const l = document.createElement("col");
231
+ l.setAttribute("width", r), n.appendChild(l);
232
+ }
233
+ i.prepend(n);
234
+ }
235
+ if (!i.querySelector("thead")) {
236
+ const t = document.createElement("thead"), s = i.querySelector("colgroup");
237
+ s ? s.after(t) : i.prepend(t);
238
+ }
239
+ i.classList.add("nine-table-element"), i.style.display = "table";
240
+ }, "#ensureTableStructure")), c(L, j, /* @__PURE__ */ a((i, t) => {
241
+ const s = Array.from(i.querySelectorAll(t + " tr")), n = Array.from(i.querySelectorAll(t + " th," + t + " td")), r = s.length;
242
+ if (r === 0 || n.length === 0) return;
243
+ let o = 0;
244
+ n.forEach((d) => {
245
+ o += d.colSpan || 1;
246
+ });
247
+ const l = Array.from(Array(r), () => Array(o).fill(null));
248
+ s.forEach((d) => {
249
+ const h = d.sectionRowIndex;
250
+ let f = 0;
251
+ Array.from(d.querySelectorAll("th,td")).forEach((b) => {
252
+ for (let w = 0; w < l[h].length; w++)
253
+ if (l[h][w] === null) {
254
+ f = w;
255
+ break;
256
+ }
257
+ const u = b.rowSpan || 1, x = b.colSpan || 1;
258
+ for (let w = 0; w < u; w++)
259
+ for (let C = 0; C < x; C++)
260
+ h + w < r && f + C < o && (l[h + w][f + C] = w === 0 && C === 0 ? "1" : "0");
261
+ });
262
+ }), s.forEach((d) => {
263
+ const h = d.sectionRowIndex;
264
+ Array.from(d.querySelectorAll("th,td")).forEach((f) => {
265
+ for (let b = 0; b < l[h].length; b++)
266
+ if (l[h][b] === "1") {
267
+ f.dataset.col = b, l[h][b] = "0";
268
+ break;
269
+ }
270
+ });
271
+ });
272
+ }, "#resetColIndex"));
273
+ let Ae = L;
274
+ var T, _, E, I, N, B, le, He, ae, G, ce, J;
275
+ const Oe = class Oe {
205
276
  constructor(i) {
206
- d(this, T);
207
- d(this, I, /* @__PURE__ */ new Map());
277
+ c(this, T);
278
+ c(this, _, /* @__PURE__ */ new Map());
208
279
  // 각 μ»¨ν…Œμ΄λ„ˆλ³„ λ…λ¦½λœ ν…œν”Œλ¦Ώ TR 관리
209
- d(this, E, null);
210
- d(this, H, null);
211
- d(this, B, 0);
212
- d(this, P, 40);
280
+ c(this, E, null);
281
+ c(this, I, null);
282
+ c(this, N, 0);
283
+ c(this, B, 40);
213
284
  /**
214
- * 🎯 각 μ»¨ν…Œμ΄λ„ˆλ³„λ‘œ λΆ„ν• λœ ν…Œμ΄λΈ”μ„ λ°›μ•„ 독립적인 ν…œν”Œλ¦Ώ TR을 κ΅¬μΆ•ν•˜κ³  λ Œλ”λ§
285
+ * 🎯 NineTableSheetμ—μ„œ λ§ˆμŠ€ν„° ν…Œμ΄λΈ”μ„ 전달받아 각 μ˜μ—­λ³„ ν…Œμ΄λΈ” 생성 및 ν…œν”Œλ¦Ώ μΆ”μΆœ 일원화
215
286
  */
216
- x(this, "initialize", /* @__PURE__ */ a(() => {
217
- g(this, E, null), e(this, I).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((t) => {
287
+ // [RowManager.js μˆ˜μ • λ‚΄μš© 발췌]
288
+ v(this, "initialize", /* @__PURE__ */ a(() => {
289
+ g(this, E, null), e(this, _).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((t) => {
218
290
  const s = e(this, T).querySelector(t);
219
291
  if (!s) return;
220
292
  const n = s.querySelector("table");
221
293
  if (!n) return;
222
- const o = n.querySelector("tbody");
223
- if (!o) return;
224
- const l = Array.from(o.querySelectorAll("tr")).map((c) => c.cloneNode(!0));
225
- e(this, I).set(t, l);
294
+ const r = n.querySelector("tbody");
295
+ if (!r) return;
296
+ const l = Array.from(r.querySelectorAll("tr")).map((d) => d.cloneNode(!0));
297
+ e(this, _).set(t, l);
226
298
  });
227
299
  const i = e(this, T).querySelector(".ng-container-body");
228
- i && (e(this, le).call(this, i), e(this, J).call(this));
300
+ i && (e(this, ae).call(this, i), e(this, J).call(this));
229
301
  }, "initialize"));
302
+ c(this, le, /* @__PURE__ */ a((i, t) => {
303
+ const s = e(this, _).get(t);
304
+ if (!s || s.length === 0) return;
305
+ const n = i.querySelector("tbody");
306
+ if (!n) return;
307
+ n.querySelectorAll("tr:not(.nodata)").forEach((l) => l.remove());
308
+ const r = n.querySelector("tr.nodata"), o = document.createDocumentFragment();
309
+ for (let l = 0; l < e(this, B); l++)
310
+ s.forEach((d) => {
311
+ o.appendChild(d.cloneNode(!0));
312
+ });
313
+ r ? r.before(o) : n.appendChild(o);
314
+ }, "#renderRows"));
315
+ /**
316
+ * 🎯 λ§ˆμŠ€ν„° ν…Œμ΄λΈ”μ„ 기반으둜 νŠΉμ • fixed νƒ€μž… μ˜μ—­λ§Œ λ‚¨κΈ°κ±°λ‚˜ μ œκ±°ν•˜λŠ” λΆ„ν•  헬퍼
317
+ */
318
+ c(this, He, /* @__PURE__ */ a((i, t) => {
319
+ const s = i.cloneNode(!0);
320
+ return t === "left" ? s.querySelectorAll("col, th, td").forEach((n) => {
321
+ n.getAttribute("fixed") !== "left" && n.remove();
322
+ }) : t === "right" ? s.querySelectorAll("col, th, td").forEach((n) => {
323
+ n.getAttribute("fixed") !== "right" && n.remove();
324
+ }) : s.querySelectorAll("[fixed='left'], [fixed='right']").forEach((n) => n.remove()), s;
325
+ }, "#createSplitTable"));
230
326
  /**
231
327
  * 🎯 ν…œν”Œλ¦Ώ TRλ“€μ˜ 총 높이λ₯Ό μΈ‘μ •ν•˜κ³  캐싱
232
328
  */
233
- d(this, le, /* @__PURE__ */ a((i) => {
329
+ c(this, ae, /* @__PURE__ */ a((i) => {
234
330
  if (e(this, E) !== null && e(this, E) > 0)
235
331
  return e(this, E);
236
- const t = e(this, I).get(".ng-container-body");
332
+ const t = e(this, _).get(".ng-container-body");
237
333
  if (!t || t.length === 0) return 24;
238
334
  const s = i.querySelector("tbody");
239
335
  if (!s) return 24;
240
336
  s.querySelectorAll("tr:not(.nodata)").forEach((u) => u.remove());
241
- const n = s.querySelector("tr.nodata"), o = document.createDocumentFragment();
337
+ const n = s.querySelector("tr.nodata"), r = document.createDocumentFragment();
242
338
  t.forEach((u) => {
243
- o.appendChild(u.cloneNode(!0));
244
- }), n ? n.before(o) : s.appendChild(o);
245
- const r = e(this, T), l = r.style.display, c = r.style.visibility, h = r.style.position;
246
- (l === "none" || window.getComputedStyle(r).display === "none") && (r.style.display = "block", r.style.visibility = "hidden", r.style.position = "absolute");
339
+ r.appendChild(u.cloneNode(!0));
340
+ }), n ? n.before(r) : s.appendChild(r);
341
+ const o = e(this, T), l = o.style.display, d = o.style.visibility, h = o.style.position;
342
+ (l === "none" || window.getComputedStyle(o).display === "none") && (o.style.display = "block", o.style.visibility = "hidden", o.style.position = "absolute");
247
343
  let f = 0;
248
344
  const b = s.querySelectorAll("tr:not(.nodata)");
249
345
  return b.forEach((u) => {
250
346
  f += u.offsetHeight || u.getBoundingClientRect().height;
251
- }), b.forEach((u) => u.remove()), r.style.display = l, r.style.visibility = c, r.style.position = h, g(this, E, f > 0 ? f : 24), e(this, G).call(this), j.log(`[RowManager] Height Cached: ${e(this, E)}px | RowCount: ${e(this, P)}`), e(this, E);
347
+ }), b.forEach((u) => u.remove()), o.style.display = l, o.style.visibility = d, o.style.position = h, g(this, E, f > 0 ? f : 24), e(this, G).call(this), F.log(`[RowManager] Height Cached: ${e(this, E)}px | RowCount: ${e(this, B)}`), e(this, E);
252
348
  }, "#measureAndCacheHeight"));
253
- d(this, G, /* @__PURE__ */ a(() => {
254
- if (e(this, B) > 0 && e(this, E) > 0) {
255
- const i = Math.ceil(e(this, B) / e(this, E));
256
- g(this, P, i + 20);
349
+ c(this, G, /* @__PURE__ */ a(() => {
350
+ if (e(this, N) > 0 && e(this, E) > 0) {
351
+ const i = Math.ceil(e(this, N) / e(this, E));
352
+ g(this, B, i + 20);
257
353
  } else
258
- g(this, P, 40);
354
+ g(this, B, 40);
259
355
  }, "#updateRowCount"));
260
356
  /**
261
357
  * 🎯 ResizeObserver μ„€μ •: μ‹œνŠΈ 크기 λ³€κ²½ μ‹œ ν–‰ 개수 μž¬μ‚°μ • 및 μž¬λ Œλ”λ§
262
358
  */
263
- d(this, ae, /* @__PURE__ */ a(() => {
264
- !e(this, T) || !(e(this, T) instanceof HTMLElement) || (g(this, H, new ResizeObserver((i) => {
359
+ c(this, ce, /* @__PURE__ */ a(() => {
360
+ !e(this, T) || !(e(this, T) instanceof HTMLElement) || (g(this, I, new ResizeObserver((i) => {
265
361
  for (const t of i) {
266
362
  const s = t.target;
267
363
  if (!s.classList.contains("active")) continue;
268
364
  const n = t.contentRect.height;
269
365
  if (n > 0) {
270
- let o = 0;
271
- const r = s.querySelector("thead");
272
- r && (o += r.offsetHeight || r.getBoundingClientRect().height);
273
- const l = Math.max(n - o, 100);
274
- e(this, B) !== l && (g(this, B, l), e(this, G).call(this), e(this, E) !== null && e(this, J).call(this));
366
+ let r = 0;
367
+ const o = s.querySelector("thead");
368
+ o && (r += o.offsetHeight || o.getBoundingClientRect().height);
369
+ const l = Math.max(n - r, 100);
370
+ e(this, N) !== l && (g(this, N, l), e(this, G).call(this), e(this, E) !== null && e(this, J).call(this));
275
371
  }
276
372
  }
277
- })), e(this, H).observe(e(this, T)));
373
+ })), e(this, I).observe(e(this, T)));
278
374
  }, "#initResizeObserver"));
279
375
  /**
280
376
  * 🎯 λ°”λ”” 및 쒌우 κ³ μ • μ»¨ν…Œμ΄λ„ˆ 전체에 각각에 λ§žλŠ” ν…œν”Œλ¦Ώ ν–‰ λΌˆλŒ€ μ£Όμž…
281
377
  */
282
- d(this, J, /* @__PURE__ */ a(() => {
378
+ c(this, J, /* @__PURE__ */ a(() => {
283
379
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
284
380
  const t = e(this, T).querySelector(i);
285
- t && t.querySelector("tbody") && e(this, ce).call(this, t, i);
381
+ t && t.querySelector("tbody") && e(this, le).call(this, t, i);
286
382
  });
287
383
  }, "#renderAllContainers"));
288
- d(this, ce, /* @__PURE__ */ a((i, t) => {
289
- const s = e(this, I).get(t);
290
- if (!s || s.length === 0) return;
291
- const n = i.querySelector("tbody");
292
- if (!n) return;
293
- n.querySelectorAll("tr:not(.nodata)").forEach((l) => l.remove());
294
- const o = n.querySelector("tr.nodata"), r = document.createDocumentFragment();
295
- for (let l = 0; l < e(this, P); l++)
296
- s.forEach((c) => {
297
- r.appendChild(c.cloneNode(!0));
298
- });
299
- o ? o.before(r) : n.appendChild(r);
300
- }, "#renderRows"));
301
- x(this, "destroy", /* @__PURE__ */ a(() => {
302
- e(this, H) && (e(this, H).disconnect(), g(this, H, null));
384
+ v(this, "destroy", /* @__PURE__ */ a(() => {
385
+ e(this, I) && (e(this, I).disconnect(), g(this, I, null));
303
386
  }, "destroy"));
304
- g(this, T, i), e(this, ae).call(this);
387
+ g(this, T, i), e(this, ce).call(this);
305
388
  }
306
389
  getRowHeight() {
307
390
  return e(this, E);
308
391
  }
309
392
  templateLength(i = ".ng-container-body") {
310
393
  var t;
311
- return ((t = e(this, I).get(i)) == null ? void 0 : t.length) || 1;
394
+ return ((t = e(this, _).get(i)) == null ? void 0 : t.length) || 1;
312
395
  }
313
396
  };
314
- T = new WeakMap(), I = new WeakMap(), E = new WeakMap(), H = new WeakMap(), B = new WeakMap(), P = new WeakMap(), le = new WeakMap(), G = new WeakMap(), ae = new WeakMap(), J = new WeakMap(), ce = new WeakMap(), a(He, "RowManager");
315
- let Ee = He;
316
- var he, Q;
317
- const L = class L {
318
- /**
319
- * 🎯 λ ˆμ΄μ•„μ›ƒ λ‚΄μ˜ μ—¬λŸ¬ rawTables 배열을 μΌκ΄„λ‘œ λ°›μ•„ 단일 λ§ˆμŠ€ν„° ν…œν”Œλ¦ΏμœΌλ‘œ 사전 μ»΄νŒŒμΌν•©λ‹ˆλ‹€.
320
- */
321
- static compileAll(i) {
322
- return Array.isArray(i) ? i.map((t) => L.compile(t)) : [];
323
- }
324
- /**
325
- * 🎯 단일 원본 ν…Œμ΄λΈ”μ„ λ°›μ•„ κΈ°λ³Έ ꡬ쑰 보정 및 2차원 격자 인덱슀 사전 λΆ€μ—¬ μ™„λ£Œλœ λ§ˆμŠ€ν„° ν…Œμ΄λΈ” λ°˜ν™˜
326
- */
327
- static compile(i) {
328
- var n, o, r;
329
- if (!i) return null;
330
- const t = i.cloneNode(!0);
331
- return e(n = L, he).call(n, t), e(o = L, Q).call(o, t, "thead"), e(r = L, Q).call(r, t, "tbody"), Array.from(t.querySelectorAll("colgroup col")).forEach((l, c) => {
332
- const h = l.getAttribute("fixed");
333
- h && t.querySelectorAll(`[data-col="${c}"]`).forEach((f) => {
334
- f.setAttribute("fixed", h);
335
- });
336
- }), t;
337
- }
338
- };
339
- he = new WeakMap(), Q = new WeakMap(), a(L, "TableCompiler"), d(L, he, /* @__PURE__ */ a((i) => {
340
- if (!i.querySelector("colgroup")) {
341
- const t = i.querySelector("tbody tr") || i.querySelector("tr"), s = t ? t.querySelectorAll("th, td").length : 1, n = document.createElement("colgroup"), o = Math.max(Math.floor(i.clientWidth / s), 100);
342
- for (let r = 0; r < s; r++) {
343
- const l = document.createElement("col");
344
- l.setAttribute("width", o), n.appendChild(l);
345
- }
346
- i.prepend(n);
347
- }
348
- if (!i.querySelector("thead")) {
349
- const t = document.createElement("thead"), s = i.querySelector("colgroup");
350
- s ? s.after(t) : i.prepend(t);
351
- }
352
- i.classList.add("nine-table-element"), i.style.display = "table";
353
- }, "#ensureTableStructure")), d(L, Q, /* @__PURE__ */ a((i, t) => {
354
- const s = Array.from(i.querySelectorAll(t + " tr")), n = Array.from(i.querySelectorAll(t + " th," + t + " td")), o = s.length;
355
- if (o === 0 || n.length === 0) return;
356
- let r = 0;
357
- n.forEach((c) => {
358
- r += c.colSpan || 1;
359
- });
360
- const l = Array.from(Array(o), () => Array(r).fill(null));
361
- s.forEach((c) => {
362
- const h = c.sectionRowIndex;
363
- let f = 0;
364
- Array.from(c.querySelectorAll("th,td")).forEach((b) => {
365
- for (let w = 0; w < l[h].length; w++)
366
- if (l[h][w] === null) {
367
- f = w;
368
- break;
369
- }
370
- const u = b.rowSpan || 1, v = b.colSpan || 1;
371
- for (let w = 0; w < u; w++)
372
- for (let _ = 0; _ < v; _++)
373
- h + w < o && f + _ < r && (l[h + w][f + _] = w === 0 && _ === 0 ? "1" : "0");
374
- });
375
- }), s.forEach((c) => {
376
- const h = c.sectionRowIndex;
377
- Array.from(c.querySelectorAll("th,td")).forEach((f) => {
378
- for (let b = 0; b < l[h].length; b++)
379
- if (l[h][b] === "1") {
380
- f.dataset.col = b, l[h][b] = "0";
381
- break;
382
- }
383
- });
384
- });
385
- }, "#resetColIndex"));
386
- let Re = L;
387
- var C, Y, U, ee, de, fe;
397
+ T = new WeakMap(), _ = new WeakMap(), E = new WeakMap(), I = new WeakMap(), N = new WeakMap(), B = new WeakMap(), le = new WeakMap(), He = new WeakMap(), ae = new WeakMap(), G = new WeakMap(), ce = new WeakMap(), J = new WeakMap(), a(Oe, "RowManager");
398
+ let qe = Oe;
399
+ var X, Y, he, de, fe, Q, ue, ge;
388
400
  const Z = class Z extends HTMLElement {
389
401
  constructor() {
390
402
  super();
391
- d(this, C, null);
392
- d(this, Y);
393
- x(this, "generate", /* @__PURE__ */ a((t) => {
394
- if (!t) return;
395
- g(this, C, Re.compile(t)), e(this, C).style.display = "table";
396
- const s = this.querySelector(".ng-container-left"), n = this.querySelector(".ng-container-body"), o = this.querySelector(".ng-container-right");
397
- if (n) {
398
- const r = e(this, U).call(this, e(this, C), null);
399
- n.innerHTML = "", n.appendChild(r), e(this, Y).initialize(e(this, C));
400
- }
401
- if (s) {
402
- const r = e(this, U).call(this, e(this, C), "left");
403
- let l = 0;
404
- r.querySelectorAll("col").forEach((h) => {
405
- const f = parseInt(h.getAttribute("width"), 10);
406
- isNaN(f) || (l += f);
407
- }), s.innerHTML = "", s.appendChild(r);
408
- const c = l > 0 ? l : 0;
409
- s.style.flex = `0 0 ${c}px`, s.style.width = `${c}px`;
410
- }
411
- if (o) {
412
- const r = e(this, U).call(this, e(this, C), "right");
413
- let l = 0;
414
- r.querySelectorAll("col").forEach((h) => {
415
- const f = parseInt(h.getAttribute("width"), 10);
416
- isNaN(f) || (l += f);
417
- }), o.innerHTML = "", o.appendChild(r);
418
- const c = l > 0 ? l : 0;
419
- o.style.flex = `0 0 ${c}px`, o.style.width = `${c}px`;
420
- }
421
- n && n.addEventListener("scroll", () => {
422
- var r;
423
- (r = this.querySelector("nine-table-hscrollbar")) == null || r.refresh();
403
+ c(this, X, null);
404
+ c(this, Y);
405
+ c(this, he, /* @__PURE__ */ a(() => {
406
+ [
407
+ { selector: ".ng-container-body", type: null },
408
+ { selector: ".ng-container-left", type: "left" },
409
+ { selector: ".ng-container-right", type: "right" }
410
+ ].forEach(({ selector: s, type: n }) => {
411
+ const r = this.querySelector(s);
412
+ if (!r) return;
413
+ const o = e(this, fe).call(this, e(this, X), n);
414
+ r.innerHTML = "", r.appendChild(o);
415
+ });
416
+ }, "#renderSplitContainers"));
417
+ c(this, de, /* @__PURE__ */ a(() => {
418
+ ["left", "right"].forEach((t) => {
419
+ const s = this.querySelector(`.ng-container-${t}`), n = s == null ? void 0 : s.querySelector("table");
420
+ if (!s || !n) return;
421
+ let r = 0;
422
+ n.querySelectorAll("col").forEach((o) => {
423
+ const l = parseInt(o.getAttribute("width"), 10);
424
+ isNaN(r) || (r += l);
425
+ }), s.style.flex = `0 0 ${r}px`, s.style.width = `${r}px`;
426
+ });
427
+ }, "#updateContainerWidths"));
428
+ v(this, "generate", /* @__PURE__ */ a((t) => {
429
+ t && (g(this, X, Ae.compile(t)), e(this, X).style.display = "table", e(this, he).call(this), e(this, Y).initialize(), e(this, de).call(this), bodyContainer && bodyContainer.addEventListener("scroll", () => {
430
+ var s;
431
+ (s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
424
432
  }), setTimeout(() => {
425
- var r;
426
- e(this, ee).call(this), (r = this.querySelector("nine-table-hscrollbar")) == null || r.refresh();
427
- }, 0);
433
+ var s;
434
+ e(this, Q).call(this), (s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
435
+ }, 0));
428
436
  }, "generate"));
429
437
  /**
430
438
  * 🎯 λ§ˆμŠ€ν„° ν…Œμ΄λΈ”μ„ 기반으둜 νŠΉμ • fixed νƒ€μž… μ˜μ—­λ§Œ λ‚¨κΈ°λŠ” λΆ„ν•  헬퍼
431
439
  */
432
- d(this, U, /* @__PURE__ */ a((t, s) => {
440
+ c(this, fe, /* @__PURE__ */ a((t, s) => {
433
441
  const n = t.cloneNode(!0);
434
- return s === "left" ? n.querySelectorAll("col, th, td").forEach((o) => {
435
- o.getAttribute("fixed") !== "left" && o.remove();
436
- }) : s === "right" ? n.querySelectorAll("col, th, td").forEach((o) => {
437
- o.getAttribute("fixed") !== "right" && o.remove();
438
- }) : n.querySelectorAll("[fixed=left], [fixed=right]").forEach((o) => {
439
- o.remove();
442
+ return s === "left" ? n.querySelectorAll("col, th, td").forEach((r) => {
443
+ r.getAttribute("fixed") !== "left" && r.remove();
444
+ }) : s === "right" ? n.querySelectorAll("col, th, td").forEach((r) => {
445
+ r.getAttribute("fixed") !== "right" && r.remove();
446
+ }) : n.querySelectorAll("[fixed=left], [fixed=right]").forEach((r) => {
447
+ r.remove();
440
448
  }), n;
441
449
  }, "#createSplitTable"));
442
- x(this, "getRowHeight", /* @__PURE__ */ a(() => e(this, Y).getRowHeight(), "getRowHeight"));
443
- x(this, "scrollToX", /* @__PURE__ */ a((t) => {
450
+ v(this, "getRowHeight", /* @__PURE__ */ a(() => e(this, Y).getRowHeight(), "getRowHeight"));
451
+ v(this, "scrollToX", /* @__PURE__ */ a((t) => {
444
452
  const s = this.querySelector(".ng-container-body");
445
453
  s && (s.scrollLeft = t);
446
454
  }, "scrollToX"));
447
- x(this, "scrollToY", /* @__PURE__ */ a((t) => {
455
+ v(this, "scrollToY", /* @__PURE__ */ a((t) => {
448
456
  const s = this.querySelector(".ng-container-body");
449
457
  s && (s.scrollTop = t);
450
458
  }, "scrollToY"));
451
- d(this, ee, /* @__PURE__ */ a(() => {
459
+ c(this, Q, /* @__PURE__ */ a(() => {
452
460
  var h, f, b;
453
461
  const t = this.querySelector(".ng-container-left table"), s = this.querySelector(".ng-container-body table"), n = this.querySelector(".ng-container-right table");
454
462
  if (!s) return;
455
- const o = t ? Array.from(t.querySelectorAll("tr")) : [], r = Array.from(s.querySelectorAll("tr")), l = n ? Array.from(n.querySelectorAll("tr")) : [], c = Math.max(o.length, r.length, l.length);
456
- for (let u = 0; u < c; u++) {
457
- const v = [
458
- ((h = o[u]) == null ? void 0 : h.getBoundingClientRect().height) || 0,
459
- ((f = r[u]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
463
+ const r = t ? Array.from(t.querySelectorAll("tr")) : [], o = Array.from(s.querySelectorAll("tr")), l = n ? Array.from(n.querySelectorAll("tr")) : [], d = Math.max(r.length, o.length, l.length);
464
+ for (let u = 0; u < d; u++) {
465
+ const x = [
466
+ ((h = r[u]) == null ? void 0 : h.getBoundingClientRect().height) || 0,
467
+ ((f = o[u]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
460
468
  ((b = l[u]) == null ? void 0 : b.getBoundingClientRect().height) || 0
461
- ], w = Math.max(...v);
462
- w > 0 && (o[u] && (o[u].style.height = `${w}px`), r[u] && (r[u].style.height = `${w}px`), l[u] && (l[u].style.height = `${w}px`));
469
+ ], w = Math.max(...x);
470
+ w > 0 && (r[u] && (r[u].style.height = `${w}px`), o[u] && (o[u].style.height = `${w}px`), l[u] && (l[u].style.height = `${w}px`));
463
471
  }
464
472
  }, "#syncRowHeights"));
465
- d(this, de, /* @__PURE__ */ a(() => {
466
- e(this, fe).call(this), new MutationObserver((t) => {
473
+ c(this, ue, /* @__PURE__ */ a(() => {
474
+ e(this, ge).call(this), new MutationObserver((t) => {
467
475
  for (const s of t)
468
- s.attributeName === "class" && this.classList.contains("active") && e(this, ee).call(this);
476
+ s.attributeName === "class" && this.classList.contains("active") && e(this, Q).call(this);
469
477
  }).observe(this, { attributes: !0 });
470
478
  }, "#init"));
471
- d(this, fe, /* @__PURE__ */ a(() => {
479
+ c(this, ge, /* @__PURE__ */ a(() => {
472
480
  const t = Z.SCROLLBAR_SIZE;
473
481
  this.innerHTML = `
474
482
  <style>
@@ -592,91 +600,91 @@ const Z = class Z extends HTMLElement {
592
600
  </div>
593
601
  `;
594
602
  }, "#render"));
595
- g(this, Y, new Ee(this));
603
+ g(this, Y, new qe(this));
596
604
  }
597
605
  connectedCallback() {
598
- e(this, de).call(this);
606
+ e(this, ue).call(this);
599
607
  }
600
608
  disconnectedCallback() {
601
- this.innerHTML = "", j.log("NineTableSheet destroyed.");
609
+ this.innerHTML = "", F.log("NineTableSheet destroyed.");
602
610
  }
603
611
  };
604
- C = new WeakMap(), Y = new WeakMap(), U = new WeakMap(), ee = new WeakMap(), de = new WeakMap(), fe = new WeakMap(), a(Z, "NineTableSheet"), x(Z, "SCROLLBAR_SIZE", 16);
605
- let ne = Z;
606
- customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", ne);
607
- var ue, te;
608
- const Me = class Me extends HTMLElement {
612
+ X = new WeakMap(), Y = new WeakMap(), he = new WeakMap(), de = new WeakMap(), fe = new WeakMap(), Q = new WeakMap(), ue = new WeakMap(), ge = new WeakMap(), a(Z, "NineTableSheet"), v(Z, "SCROLLBAR_SIZE", 16);
613
+ let se = Z;
614
+ customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", se);
615
+ var be, ee;
616
+ const We = class We extends HTMLElement {
609
617
  constructor() {
610
618
  super();
611
- d(this, ue, /* @__PURE__ */ a(() => {
619
+ c(this, be, /* @__PURE__ */ a(() => {
612
620
  var t;
613
621
  (t = this.querySelector(".nine-tab-bar")) == null || t.addEventListener("click", (s) => {
614
- var r;
615
- const n = s.ctrlKey || s.metaKey || s.shiftKey, o = parseInt((r = s.target.closest(".nine-tab-item")) == null ? void 0 : r.dataset.index, 10);
616
- e(this, te).call(this, o, n);
617
- }), e(this, te).call(this, 0, !1);
622
+ var o;
623
+ const n = s.ctrlKey || s.metaKey || s.shiftKey, r = parseInt((o = s.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
624
+ e(this, ee).call(this, r, n);
625
+ }), e(this, ee).call(this, 0, !1);
618
626
  }, "#init"));
619
- d(this, te, /* @__PURE__ */ a((t, s = !1) => {
627
+ c(this, ee, /* @__PURE__ */ a((t, s = !1) => {
620
628
  const n = /* @__PURE__ */ a(() => {
621
629
  const f = Array.from(this.querySelectorAll("nine-table-sheet"));
622
- Array.from(this.querySelectorAll("nine-splitter")).forEach((v) => v.style.setProperty("display", "none"));
623
- const u = f.filter((v) => v.classList.contains("active"));
624
- u.length < 2 || u.forEach((v) => {
625
- const w = parseInt(v.getAttribute("data-index"), 10), _ = this.querySelector(`nine-splitter[data-split-index="${w}"]`), De = f[w + 1];
626
- _ && De && De.classList.contains("active") && _.style.setProperty("display", "flex");
630
+ Array.from(this.querySelectorAll("nine-splitter")).forEach((x) => x.style.setProperty("display", "none"));
631
+ const u = f.filter((x) => x.classList.contains("active"));
632
+ u.length < 2 || u.forEach((x) => {
633
+ const w = parseInt(x.getAttribute("data-index"), 10), C = this.querySelector(`nine-splitter[data-split-index="${w}"]`), Pe = f[w + 1];
634
+ C && Pe && Pe.classList.contains("active") && C.style.setProperty("display", "flex");
627
635
  });
628
- }, "updateSplitters"), o = this.querySelector(".nine-tab-bar"), r = this.querySelector("nine-table-sheets-body"), l = o.querySelectorAll(".nine-tab-item"), c = r.querySelectorAll("nine-table-sheet");
636
+ }, "updateSplitters"), r = this.querySelector(".nine-tab-bar"), o = this.querySelector("nine-table-sheets-body"), l = r.querySelectorAll(".nine-tab-item"), d = o.querySelectorAll("nine-table-sheet");
629
637
  if (!l[t]) return;
630
638
  if (!s)
631
639
  l.forEach((f, b) => {
632
640
  f.classList.toggle("active", b === t);
633
- }), c.forEach((f, b) => {
641
+ }), d.forEach((f, b) => {
634
642
  const u = b === t;
635
643
  f.classList.toggle("active", u), f.style.flex = u ? "1 1 100%" : "";
636
644
  });
637
645
  else {
638
- const f = l[t], b = o.querySelectorAll(".nine-tab-item.active");
646
+ const f = l[t], b = r.querySelectorAll(".nine-tab-item.active");
639
647
  if (f.classList.contains("active") && b.length <= 1)
640
648
  return;
641
649
  f.classList.toggle("active");
642
- const u = r.querySelector(`nine-table-sheet[data-index="${t}"]`);
650
+ const u = o.querySelector(`nine-table-sheet[data-index="${t}"]`);
643
651
  u && (u.classList.toggle("active"), u.classList.contains("active") || (u.style.flex = ""));
644
652
  }
645
- const h = r.querySelectorAll("nine-table-sheet.active");
653
+ const h = o.querySelectorAll("nine-table-sheet.active");
646
654
  h == null || h.forEach((f) => {
647
655
  f.style.flex = h.length > 1 ? "1 1 0%" : "1 1 100%";
648
656
  }), n();
649
657
  }, "#switchSheet"));
650
658
  }
651
659
  connectedCallback() {
652
- e(this, ue).call(this);
660
+ e(this, be).call(this);
653
661
  }
654
662
  };
655
- ue = new WeakMap(), te = new WeakMap(), a(Me, "NineTableSheets");
656
- let Ae = Me;
657
- customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Ae);
658
- var S, ge, ie, be;
659
- const $e = class $e {
663
+ be = new WeakMap(), ee = new WeakMap(), a(We, "NineTableSheets");
664
+ let Te = We;
665
+ customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Te);
666
+ var S, ye, te, pe;
667
+ const ze = class ze {
660
668
  constructor(i) {
661
- d(this, S);
662
- d(this, ge, /* @__PURE__ */ a(() => {
663
- e(this, be).call(this), new ResizeObserver((i) => {
669
+ c(this, S);
670
+ c(this, ye, /* @__PURE__ */ a(() => {
671
+ e(this, pe).call(this), new ResizeObserver((i) => {
664
672
  for (let t of i)
665
- e(this, S).getAttribute("auto-height") === "true" && e(this, ie).call(this);
673
+ e(this, S).getAttribute("auto-height") === "true" && e(this, te).call(this);
666
674
  }).observe(e(this, S));
667
675
  }, "#init"));
668
- d(this, ie, /* @__PURE__ */ a(() => {
669
- var c, h;
676
+ c(this, te, /* @__PURE__ */ a(() => {
677
+ var d, h;
670
678
  const i = Array.from(e(this, S).shadowRoot.querySelectorAll("nine-table-sheet.active"));
671
679
  if (i.length === 0) return;
672
- const t = parseInt(e(this, S).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), n = (c = e(this, S).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, o = (h = e(this, S).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : h.getBoundingClientRect().height, r = ne.SCROLLBAR_SIZE, l = t * s + n + o + r;
680
+ const t = parseInt(e(this, S).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), n = (d = e(this, S).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : d.getBoundingClientRect().height, r = (h = e(this, S).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : h.getBoundingClientRect().height, o = se.SCROLLBAR_SIZE, l = t * s + n + r + o;
673
681
  e(this, S).style.height = `${l}px`;
674
682
  }, "#applyAutoHeight"));
675
- d(this, be, /* @__PURE__ */ a(() => {
676
- const t = Array.from(e(this, S).children).filter((c) => c.tagName === "TABLE"), s = e(this, S).getAttribute("auto-height") === "true", n = t.length, o = t.map((c, h) => {
683
+ c(this, pe, /* @__PURE__ */ a(() => {
684
+ const t = Array.from(e(this, S).children).filter((d) => d.tagName === "TABLE"), s = e(this, S).getAttribute("auto-height") === "true", n = t.length, r = t.map((d, h) => {
677
685
  const b = `<nine-table-sheet class="${h === 0 ? "active" : ""}" data-index="${h}"></nine-table-sheet>`, u = h < n - 1 ? `<nine-splitter class="h" data-split-index="${h}"></nine-splitter>` : "";
678
686
  return b + u;
679
- }).join(""), r = t.map((c, h) => `<div class="nine-tab-item ${h === 0 ? "active" : ""}" data-index="${h}">Sheet ${h + 1}</div>`).join("");
687
+ }).join(""), o = t.map((d, h) => `<div class="nine-tab-item ${h === 0 ? "active" : ""}" data-index="${h}">Sheet ${h + 1}</div>`).join("");
680
688
  e(this, S).shadowRoot.innerHTML = `
681
689
  <style>
682
690
  :host {
@@ -766,9 +774,9 @@ const $e = class $e {
766
774
  <nine-table-body>
767
775
  <nine-table-summary></nine-table-summary>
768
776
  <nine-table-sheets>
769
- <nine-table-sheets-body>${o}</nine-table-sheets-body>
777
+ <nine-table-sheets-body>${r}</nine-table-sheets-body>
770
778
  <nine-table-sheets-footer>
771
- <div class="nine-tab-bar">${r}</div>
779
+ <div class="nine-tab-bar">${o}</div>
772
780
  <div class="sheets-counter">Total : <span id="row-count">0</span></div>
773
781
  </nine-table-sheets-footer>
774
782
  </nine-table-sheets>
@@ -777,159 +785,159 @@ const $e = class $e {
777
785
  <nine-table-footer></nine-table-footer>
778
786
  `;
779
787
  const l = e(this, S).shadowRoot.querySelectorAll("nine-table-sheet");
780
- l == null || l.forEach((c, h) => {
788
+ l == null || l.forEach((d, h) => {
781
789
  t[h] && setTimeout(() => {
782
- c.generate(t[h]), s && e(this, ie).call(this);
790
+ d.generate(t[h]), s && e(this, te).call(this);
783
791
  });
784
792
  });
785
793
  }, "#render"));
786
- g(this, S, i), e(this, ge).call(this);
794
+ g(this, S, i), e(this, ye).call(this);
787
795
  }
788
796
  };
789
- S = new WeakMap(), ge = new WeakMap(), ie = new WeakMap(), be = new WeakMap(), a($e, "LayoutManager");
790
- let qe = $e;
791
- var M, V;
792
- const We = class We {
797
+ S = new WeakMap(), ye = new WeakMap(), te = new WeakMap(), pe = new WeakMap(), a(ze, "LayoutManager");
798
+ let ke = ze;
799
+ var H, P;
800
+ const De = class De {
793
801
  constructor(i) {
794
- d(this, M);
795
- d(this, V, -1);
796
- x(this, "count", /* @__PURE__ */ a(() => e(this, M).rawRecords.length, "count"));
797
- g(this, M, i);
802
+ c(this, H);
803
+ c(this, P, -1);
804
+ v(this, "count", /* @__PURE__ */ a(() => e(this, H).rawRecords.length, "count"));
805
+ g(this, H, i);
798
806
  }
799
807
  get at() {
800
- return e(this, V);
808
+ return e(this, P);
801
809
  }
802
810
  set at(i) {
803
811
  var s, n;
804
- g(this, V, parseInt(i, 10));
805
- const t = ((n = (s = e(this, M).owner).querySelector) == null ? void 0 : n.call(s, ".ng-container-body")) || e(this, M).owner.body;
806
- t && !t.querySelector(`tbody.bindable tr[data-row="${e(this, V)}"]`) && setTimeout(() => {
807
- var o, r;
808
- (r = (o = e(this, M).owner).scrollTo_V1) == null || r.call(o, e(this, V));
812
+ g(this, P, parseInt(i, 10));
813
+ const t = ((n = (s = e(this, H).owner).querySelector) == null ? void 0 : n.call(s, ".ng-container-body")) || e(this, H).owner.body;
814
+ t && !t.querySelector(`tbody.bindable tr[data-row="${e(this, P)}"]`) && setTimeout(() => {
815
+ var r, o;
816
+ (o = (r = e(this, H).owner).scrollTo_V1) == null || o.call(r, e(this, P));
809
817
  });
810
818
  }
811
819
  };
812
- M = new WeakMap(), V = new WeakMap(), a(We, "ngRow");
813
- let Te = We;
814
- var R, m, A, F, ye, $, pe, se, me, we, K;
820
+ H = new WeakMap(), P = new WeakMap(), a(De, "ngRow");
821
+ let Le = De;
822
+ var R, m, A, U, me, M, we, ie, ve, xe, K;
815
823
  const q = class q {
816
824
  constructor(i, t) {
817
- d(this, R);
818
- d(this, m);
819
- d(this, A, []);
820
- d(this, F, []);
821
- d(this, ye, 0);
822
- d(this, $, []);
823
- d(this, pe, /* @__PURE__ */ a(() => {
824
- g(this, $, []);
825
+ c(this, R);
826
+ c(this, m);
827
+ c(this, A, []);
828
+ c(this, U, []);
829
+ c(this, me, 0);
830
+ c(this, M, []);
831
+ c(this, we, /* @__PURE__ */ a(() => {
832
+ g(this, M, []);
825
833
  const i = e(this, R).template || [];
826
834
  Array.from(i).forEach((t) => {
827
835
  var s;
828
- e(this, $).push(((s = t.getBoundingClientRect) == null ? void 0 : s.call(t).height) || 24);
836
+ e(this, M).push(((s = t.getBoundingClientRect) == null ? void 0 : s.call(t).height) || 24);
829
837
  }), (e(this, m).rawRecords || []).forEach((t) => {
830
- t.__ng || (t.__ng = e(this, se).call(this)), t.__ng.height = e(this, $).slice();
838
+ t.__ng || (t.__ng = e(this, ie).call(this)), t.__ng.height = e(this, M).slice();
831
839
  });
832
840
  }, "#initialize"));
833
- x(this, "set", /* @__PURE__ */ a((i) => {
841
+ v(this, "set", /* @__PURE__ */ a((i) => {
834
842
  this.clear(), this.add(i, !1);
835
843
  }, "set"));
836
- d(this, se, /* @__PURE__ */ a(() => ({
844
+ c(this, ie, /* @__PURE__ */ a(() => ({
837
845
  rowState: q.ROW_STATE.EMPTY,
838
846
  deleted: !1,
839
847
  filtered: !1,
840
- height: e(this, $).slice(),
848
+ height: e(this, M).slice(),
841
849
  o: {},
842
850
  c: {},
843
- _: [0, 0, 0, 0, q.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, $).slice(), -1, {}, {}]
851
+ _: [0, 0, 0, 0, q.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, M).slice(), -1, {}, {}]
844
852
  }), "#getDefaultMeta"));
845
- x(this, "reset", /* @__PURE__ */ a(() => {
846
- g(this, A, []), g(this, F, []);
853
+ v(this, "reset", /* @__PURE__ */ a(() => {
854
+ g(this, A, []), g(this, U, []);
847
855
  }, "reset"));
848
- x(this, "clear", /* @__PURE__ */ a(() => {
856
+ v(this, "clear", /* @__PURE__ */ a(() => {
849
857
  var i;
850
- e(this, m).rawRecords = [], g(this, A, []), g(this, F, []), (i = e(this, m).viewRecords) != null && i.reset && e(this, m).viewRecords.reset();
858
+ e(this, m).rawRecords = [], g(this, A, []), g(this, U, []), (i = e(this, m).viewRecords) != null && i.reset && e(this, m).viewRecords.reset();
851
859
  }, "clear"));
852
- d(this, me, /* @__PURE__ */ a((i) => {
860
+ c(this, ve, /* @__PURE__ */ a((i) => {
853
861
  var n;
854
862
  Array.isArray(i) || (i = [i]);
855
863
  const t = typeof ((n = e(this, R).fields) == null ? void 0 : n.get) == "function" ? e(this, R).fields.get() : Object.keys(i[0] || {}), s = [];
856
- return i.forEach((o) => {
857
- const r = { v: [] };
864
+ return i.forEach((r) => {
865
+ const o = { v: [] };
858
866
  t.forEach((l) => {
859
- r.v.push(o[l] !== void 0 && o[l] !== null ? o[l] : "");
860
- }), s.push(r);
867
+ o.v.push(r[l] !== void 0 && r[l] !== null ? r[l] : "");
868
+ }), s.push(o);
861
869
  }), s;
862
870
  }, "#json2Array"));
863
- d(this, we, /* @__PURE__ */ a((i) => (Array.isArray(i) || (i = [i]), i.forEach((t) => {
864
- t.__ng = e(this, se).call(this), t.__ng.rowid = this.nextId, t.__ng.rowState = q.ROW_STATE.INSERT, t.__ng._[0] = t.__ng.rowid;
871
+ c(this, xe, /* @__PURE__ */ a((i) => (Array.isArray(i) || (i = [i]), i.forEach((t) => {
872
+ t.__ng = e(this, ie).call(this), t.__ng.rowid = this.nextId, t.__ng.rowState = q.ROW_STATE.INSERT, t.__ng._[0] = t.__ng.rowid;
865
873
  }), i), "#defaultInsert"));
866
- x(this, "add", /* @__PURE__ */ a((i, t = !0) => {
867
- var o;
874
+ v(this, "add", /* @__PURE__ */ a((i, t = !0) => {
875
+ var r;
868
876
  i === void 0 && (i = {});
869
- const s = e(this, me).call(this, i);
870
- e(this, m).rawRecords = e(this, m).rawRecords.concat(e(this, we).call(this, s)), this.resetRecords();
877
+ const s = e(this, ve).call(this, i);
878
+ e(this, m).rawRecords = e(this, m).rawRecords.concat(e(this, xe).call(this, s)), this.resetRecords();
871
879
  const n = this.count() - 1;
872
- return t || s.forEach((r, l) => {
873
- const c = e(this, m).rawRecords[n - l];
874
- c && (c.__ng.rowState = q.ROW_STATE.EMPTY);
875
- }), (o = e(this, m).viewRecords) != null && o.reset && e(this, m).viewRecords.reset(), n;
880
+ return t || s.forEach((o, l) => {
881
+ const d = e(this, m).rawRecords[n - l];
882
+ d && (d.__ng.rowState = q.ROW_STATE.EMPTY);
883
+ }), (r = e(this, m).viewRecords) != null && r.reset && e(this, m).viewRecords.reset(), n;
876
884
  }, "add"));
877
- x(this, "delete", /* @__PURE__ */ a((i) => {
885
+ v(this, "delete", /* @__PURE__ */ a((i) => {
878
886
  var s;
879
887
  let t = [];
880
- 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) => {
888
+ Array.isArray(i) ? t = i : typeof i > "u" ? t = [e(this, m).owner.row.at] : t = [parseInt(i, 10)], t.sort((n, r) => r - n).forEach((n) => {
881
889
  if (e(this, A)[n]) {
882
- const o = e(this, A)[n].__ng.rowid;
883
- e(this, A)[n].__ng.rowState === q.ROW_STATE.INSERT ? e(this, m).rawRecords = e(this, m).rawRecords.filter((r) => r.__ng.rowid !== o) : e(this, m).rawRecords.forEach((r) => {
884
- r.__ng.rowid === o && (r.__ng.deleted = !0, r.__ng.rowState = q.ROW_STATE.DELETE);
890
+ const r = e(this, A)[n].__ng.rowid;
891
+ e(this, A)[n].__ng.rowState === q.ROW_STATE.INSERT ? e(this, m).rawRecords = e(this, m).rawRecords.filter((o) => o.__ng.rowid !== r) : e(this, m).rawRecords.forEach((o) => {
892
+ o.__ng.rowid === r && (o.__ng.deleted = !0, o.__ng.rowState = q.ROW_STATE.DELETE);
885
893
  });
886
894
  }
887
895
  }), this.resetRecords(), (s = e(this, m).viewRecords) != null && s.reset && e(this, m).viewRecords.reset();
888
896
  }, "delete"));
889
- x(this, "setValue", /* @__PURE__ */ a((i, t, s) => {
890
- var c;
897
+ v(this, "setValue", /* @__PURE__ */ a((i, t, s) => {
898
+ var d;
891
899
  i = parseInt(i, 10);
892
- const o = (typeof ((c = e(this, R).fields) == null ? void 0 : c.get) == "function" ? e(this, R).fields.get() : []).indexOf(t);
893
- if (o < 0) return;
894
- const r = this.getValidData()[i];
895
- if (!r) return;
896
- const l = r.v[o];
897
- l !== s && r.__ng.rowState !== q.ROW_STATE.INSERT && (r.__ng.o.hasOwnProperty(t) || (r.__ng.o[t] = l), r.__ng.rowState = q.ROW_STATE.UPDATE), r.v[o] = s, e(this, m).owner.refreshData && e(this, m).owner.refreshData(i);
900
+ const r = (typeof ((d = e(this, R).fields) == null ? void 0 : d.get) == "function" ? e(this, R).fields.get() : []).indexOf(t);
901
+ if (r < 0) return;
902
+ const o = this.getValidData()[i];
903
+ if (!o) return;
904
+ const l = o.v[r];
905
+ l !== s && o.__ng.rowState !== q.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(t) || (o.__ng.o[t] = l), o.__ng.rowState = q.ROW_STATE.UPDATE), o.v[r] = s, e(this, m).owner.refreshData && e(this, m).owner.refreshData(i);
898
906
  }, "setValue"));
899
- x(this, "resetRecords", /* @__PURE__ */ a(() => {
900
- g(this, F, e(this, m).rawRecords.filter((i) => !i.__ng.deleted)), g(this, A, e(this, m).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), e(this, m).rawRecords.forEach((i, t) => {
907
+ v(this, "resetRecords", /* @__PURE__ */ a(() => {
908
+ g(this, U, e(this, m).rawRecords.filter((i) => !i.__ng.deleted)), g(this, A, e(this, m).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), e(this, m).rawRecords.forEach((i, t) => {
901
909
  i.__ng.rowidx = t;
902
910
  }), e(this, A).forEach((i, t) => {
903
911
  i.__ng.i = t;
904
912
  });
905
913
  }, "resetRecords"));
906
- x(this, "getValidData", /* @__PURE__ */ a(() => (e(this, A).length === 0 && e(this, m).rawRecords.length > 0 && this.resetRecords(), e(this, A)), "getValidData"));
907
- d(this, K, /* @__PURE__ */ a((i) => {
914
+ v(this, "getValidData", /* @__PURE__ */ a(() => (e(this, A).length === 0 && e(this, m).rawRecords.length > 0 && this.resetRecords(), e(this, A)), "getValidData"));
915
+ c(this, K, /* @__PURE__ */ a((i) => {
908
916
  var s;
909
917
  if (!i) return i;
910
918
  const t = typeof ((s = e(this, R).fields) == null ? void 0 : s.get) == "function" ? e(this, R).fields.get() : [];
911
919
  return Array.isArray(i) ? i.filter((n) => !n.__ng.deleted).map((n) => {
912
- const o = {};
913
- return t.forEach((r, l) => {
914
- o[r] = n.v ? n.v[l] : n[r];
915
- }), o.__ng = n.__ng, o;
920
+ const r = {};
921
+ return t.forEach((o, l) => {
922
+ r[o] = n.v ? n.v[l] : n[o];
923
+ }), r.__ng = n.__ng, r;
916
924
  }) : i;
917
925
  }, "#conv2"));
918
- x(this, "count", /* @__PURE__ */ a(() => this.getValidData().length, "count"));
919
- x(this, "get", /* @__PURE__ */ a((i, t) => {
920
- var o;
926
+ v(this, "count", /* @__PURE__ */ a(() => this.getValidData().length, "count"));
927
+ v(this, "get", /* @__PURE__ */ a((i, t) => {
928
+ var r;
921
929
  const s = this.getValidData();
922
930
  if (!s || s.length <= 0) return;
923
931
  if (i == null) return e(this, K).call(this, s);
924
932
  if (i < 0 || i >= s.length) return null;
925
- const n = typeof ((o = e(this, R).fields) == null ? void 0 : o.get) == "function" ? e(this, R).fields.get() : [];
933
+ const n = typeof ((r = e(this, R).fields) == null ? void 0 : r.get) == "function" ? e(this, R).fields.get() : [];
926
934
  if (t != null) {
927
- const r = n.indexOf(t);
928
- return r >= 0 ? s[i].v[r] : null;
935
+ const o = n.indexOf(t);
936
+ return o >= 0 ? s[i].v[o] : null;
929
937
  }
930
938
  return e(this, K).call(this, s[i]);
931
939
  }, "get"));
932
- g(this, R, i), g(this, m, t), e(this, pe).call(this);
940
+ g(this, R, i), g(this, m, t), e(this, we).call(this);
933
941
  }
934
942
  get source() {
935
943
  return e(this, K).call(this, e(this, m).rawRecords);
@@ -938,7 +946,7 @@ const q = class q {
938
946
  this.clear(), this.add(i, !1);
939
947
  }
940
948
  get nextId() {
941
- return ++Ve(this, ye)._;
949
+ return ++Ue(this, me)._;
942
950
  }
943
951
  get length() {
944
952
  return e(this, A).length;
@@ -947,27 +955,27 @@ const q = class q {
947
955
  return this.length;
948
956
  }
949
957
  };
950
- R = new WeakMap(), m = new WeakMap(), A = new WeakMap(), F = new WeakMap(), ye = new WeakMap(), $ = new WeakMap(), pe = new WeakMap(), se = new WeakMap(), me = new WeakMap(), we = new WeakMap(), K = new WeakMap(), a(q, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
951
- x(q, "ROW_STATE", {
958
+ R = new WeakMap(), m = new WeakMap(), A = new WeakMap(), U = new WeakMap(), me = new WeakMap(), M = new WeakMap(), we = new WeakMap(), ie = new WeakMap(), ve = new WeakMap(), xe = new WeakMap(), K = new WeakMap(), a(q, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
959
+ v(q, "ROW_STATE", {
952
960
  EMPTY: "EMPTY",
953
961
  NORMAL: "NORMAL",
954
962
  INSERT: "INSERT",
955
963
  UPDATE: "UPDATE",
956
964
  DELETE: "DELETE"
957
965
  });
958
- let ke = q;
959
- const Oe = class Oe {
966
+ let Ce = q;
967
+ const Ne = class Ne {
960
968
  constructor(i) {
961
- this.owner = i, this.row = new Te(this), this.data = new ke(i, this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
969
+ this.owner = i, this.row = new Le(this), this.data = new Ce(i, this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
962
970
  var t;
963
971
  (t = this.owner.view) != null && t.redraw && this.owner.view.redraw();
964
972
  }, this.setDataSource = (t) => {
965
973
  this.data && this.data.reset(), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.data.set(t || []);
966
974
  }, this.getRowState = (t) => {
967
- var n, o;
975
+ var n, r;
968
976
  const s = parseInt(t, 10);
969
977
  if (!(s >= this.data.count()))
970
- return (o = (n = this.data.getValidData()[s]) == null ? void 0 : n.__ng) == null ? void 0 : o.rowState;
978
+ return (r = (n = this.data.getValidData()[s]) == null ? void 0 : n.__ng) == null ? void 0 : r.rowState;
971
979
  }, this.getRowPosition = () => this.row.at, this.setRowPosition = (t) => {
972
980
  this.row.at = t;
973
981
  }, 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) => {
@@ -975,37 +983,37 @@ const Oe = class Oe {
975
983
  }, this.setDataSource([]);
976
984
  }
977
985
  };
978
- a(Oe, "ngDataManager");
979
- let Le = Oe;
980
- var X, xe;
981
- const ze = class ze extends HTMLElement {
986
+ a(Ne, "ngDataManager");
987
+ let _e = Ne;
988
+ var V, Se;
989
+ const Be = class Be extends HTMLElement {
982
990
  constructor() {
983
991
  super();
984
992
  //#created = false;
985
- d(this, X);
986
- d(this, xe);
987
- this.attachShadow({ mode: "open" }), g(this, X, new Le(this));
993
+ c(this, V);
994
+ c(this, Se);
995
+ this.attachShadow({ mode: "open" }), g(this, V, new _e(this));
988
996
  }
989
997
  connectedCallback() {
990
- g(this, xe, new qe(this)), j.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
998
+ g(this, Se, new ke(this)), F.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
991
999
  }
992
1000
  disconnectedCallback() {
993
- j.log("NineTable disconnected.");
1001
+ F.log("NineTable disconnected.");
994
1002
  }
995
1003
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
996
1004
  get data() {
997
- return e(this, X).data;
1005
+ return e(this, V).data;
998
1006
  }
999
1007
  // 🎯 ν–‰(row) κ΄€λ ¨ μ œμ–΄ μ ‘κ·Όμž μ˜€ν”ˆ
1000
1008
  get row() {
1001
- return e(this, X).row;
1009
+ return e(this, V).row;
1002
1010
  }
1003
1011
  // 🎯 전체 데이터 λ§€λ‹ˆμ € μ ‘κ·Ό ν•„μš”ν•  경우
1004
1012
  get dataManager() {
1005
- return e(this, X);
1013
+ return e(this, V);
1006
1014
  }
1007
1015
  };
1008
- X = new WeakMap(), xe = new WeakMap(), a(ze, "NineTable");
1009
- let Ce = ze;
1010
- customElements.get("nine-table") || customElements.define("nine-table", Ce);
1016
+ V = new WeakMap(), Se = new WeakMap(), a(Be, "NineTable");
1017
+ let Ie = Be;
1018
+ customElements.get("nine-table") || customElements.define("nine-table", Ie);
1011
1019
  //# sourceMappingURL=nine-table.js.map