@ninebone/table 0.0.107 β†’ 0.0.108

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,97 +1,97 @@
1
1
  var qe = Object.defineProperty;
2
- var ke = (m) => {
3
- throw TypeError(m);
2
+ var ke = (w) => {
3
+ throw TypeError(w);
4
4
  };
5
- var _e = (m, s, t) => s in m ? qe(m, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[s] = t;
6
- var l = (m, s) => qe(m, "name", { value: s, configurable: !0 });
7
- var v = (m, s, t) => _e(m, typeof s != "symbol" ? s + "" : s, t), Le = (m, s, t) => s.has(m) || ke("Cannot " + t);
8
- var e = (m, s, t) => (Le(m, s, "read from private field"), t ? t.call(m) : s.get(m)), f = (m, s, t) => s.has(m) ? ke("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(m) : s.set(m, t), y = (m, s, t, i) => (Le(m, s, "write to private field"), i ? i.call(m, t) : s.set(m, t), t);
9
- var Ae = (m, s, t, i) => ({
5
+ var _e = (w, s, t) => s in w ? qe(w, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : w[s] = t;
6
+ var l = (w, s) => qe(w, "name", { value: s, configurable: !0 });
7
+ var v = (w, s, t) => _e(w, typeof s != "symbol" ? s + "" : s, t), Le = (w, s, t) => s.has(w) || ke("Cannot " + t);
8
+ var e = (w, s, t) => (Le(w, s, "read from private field"), t ? t.call(w) : s.get(w)), f = (w, s, t) => s.has(w) ? ke("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(w) : s.set(w, t), y = (w, s, t, i) => (Le(w, s, "write to private field"), i ? i.call(w, t) : s.set(w, t), t);
9
+ var Ae = (w, s, t, i) => ({
10
10
  set _(n) {
11
- y(m, s, n, t);
11
+ y(w, s, n, t);
12
12
  },
13
13
  get _() {
14
- return e(m, s, i);
14
+ return e(w, s, i);
15
15
  }
16
16
  });
17
17
  import { trace as Ce } from "@ninebone/util";
18
- const me = class me extends Ce.constructor {
18
+ const we = class we extends Ce.constructor {
19
19
  constructor() {
20
20
  super(), this.init("nine-table", "green");
21
21
  }
22
22
  };
23
- l(me, "Trace");
24
- let ae = me;
23
+ l(we, "Trace");
24
+ let ae = we;
25
25
  const K = new ae();
26
- var _, M, p, W, H, O, Z, z, j;
27
- const we = class we extends HTMLElement {
26
+ var _, H, p, W, O, z, Z, B, j;
27
+ const me = class me extends HTMLElement {
28
28
  constructor() {
29
29
  super();
30
30
  f(this, _);
31
- f(this, M, !1);
31
+ f(this, H, !1);
32
32
  f(this, p);
33
33
  f(this, W);
34
- f(this, H);
35
34
  f(this, O);
35
+ f(this, z);
36
36
  f(this, Z, /* @__PURE__ */ l(() => {
37
37
  if (!e(this, _)) return;
38
38
  const t = e(this, _).querySelector(".ng-container-body");
39
- t && (y(this, O, new ResizeObserver(() => {
39
+ t && (y(this, z, new ResizeObserver(() => {
40
40
  this.refresh();
41
- })), e(this, O).observe(t));
41
+ })), e(this, z).observe(t));
42
42
  }, "#observeResize"));
43
43
  v(this, "refresh", /* @__PURE__ */ l(() => {
44
- if (!e(this, _) || !e(this, p) || e(this, M)) return;
44
+ if (!e(this, _) || !e(this, p) || e(this, H)) return;
45
45
  const t = e(this, p).container, i = t.querySelector("table");
46
46
  if (!i) return;
47
- const n = e(this, p).track, o = e(this, p).thumb, r = e(this, _).querySelector(".ng-container-bottom"), c = t.clientWidth, b = i.scrollWidth;
48
- if (c !== 0 && b > c)
47
+ const n = e(this, p).track, o = e(this, p).thumb, r = e(this, _).querySelector(".ng-container-bottom"), a = t.clientWidth, u = i.scrollWidth;
48
+ if (a !== 0 && u > a)
49
49
  r && (r.style.display = "flex");
50
50
  else {
51
51
  r && (r.style.display = "none");
52
52
  return;
53
53
  }
54
- const a = n.clientWidth;
55
- if (a <= 0) return;
56
- const g = Math.max(Math.min(a * (c / b), a), 20);
54
+ const c = n.clientWidth;
55
+ if (c <= 0) return;
56
+ const g = Math.max(Math.min(c * (a / u), c), 20);
57
57
  o.style.width = `${g}px`;
58
58
  let h = 0;
59
- const u = i.style.transform;
60
- if (u && u.includes("translateX")) {
61
- const x = u.match(/translateX\(([-\d.]+)px\)/);
59
+ const b = i.style.transform;
60
+ if (b && b.includes("translateX")) {
61
+ const x = b.match(/translateX\(([-\d.]+)px\)/);
62
62
  x && x[1] && (h = parseFloat(x[1]));
63
63
  } else
64
64
  h = parseInt(i.style.left || 0, 10);
65
- let d = parseInt(Math.abs(h) * a / b, 10);
65
+ let d = parseInt(Math.abs(h) * c / u, 10);
66
66
  d < 0 && (d = 0);
67
- const S = a - g;
68
- d > S && (d = S), o.style.left = `${d}px`, e(this, p).left.disabled = d === 0, e(this, p).right.disabled = d >= S - 1;
67
+ const R = c - g;
68
+ d > R && (d = R), o.style.left = `${d}px`, e(this, p).left.disabled = d === 0, e(this, p).right.disabled = d >= R - 1;
69
69
  }, "refresh"));
70
- f(this, z, /* @__PURE__ */ l((t) => {
70
+ f(this, B, /* @__PURE__ */ l((t) => {
71
71
  if (!e(this, p)) return !1;
72
72
  const i = e(this, p).container, n = i.querySelector("table");
73
73
  if (!n) return !1;
74
74
  const o = e(this, p).track.getBoundingClientRect(), r = e(this, p).thumb.clientWidth;
75
- let c = t;
76
- c < 0 && (c = 0);
77
- const b = o.width - r;
78
- c > b && (c = b), c = parseInt(c, 10), e(this, p).thumb.style.left = `${c}px`, e(this, p).left.disabled = c === 0, e(this, p).right.disabled = c >= b - 1;
79
- const a = i.clientWidth, g = n.scrollWidth;
80
- let h = b > 0 ? -c * (g - a) / b : 0;
81
- return -h > g - a && (h = -(g - a)), -h + 5 > g - a && (h = -(g - a)), a >= g && (h = 0), n.style.transform = `translateX(${h}px)`, c > 0 && c < b - 1;
75
+ let a = t;
76
+ a < 0 && (a = 0);
77
+ const u = o.width - r;
78
+ a > u && (a = u), a = parseInt(a, 10), e(this, p).thumb.style.left = `${a}px`, e(this, p).left.disabled = a === 0, e(this, p).right.disabled = a >= u - 1;
79
+ const c = i.clientWidth, g = n.scrollWidth;
80
+ let h = u > 0 ? -a * (g - c) / u : 0;
81
+ return -h > g - c && (h = -(g - c)), -h + 5 > g - c && (h = -(g - c)), c >= g && (h = 0), n.style.transform = `translateX(${h}px)`, a > 0 && a < u - 1;
82
82
  }, "#thumbMoveTo"));
83
83
  f(this, j, /* @__PURE__ */ l(() => {
84
84
  const t = /* @__PURE__ */ l((n) => {
85
- clearInterval(e(this, W)), clearInterval(e(this, H));
85
+ clearInterval(e(this, W)), clearInterval(e(this, O));
86
86
  const o = parseInt(e(this, p).thumb.style.left || 0, 10);
87
- e(this, z).call(this, o + n), y(this, W, setInterval(() => {
88
- clearInterval(e(this, W)), y(this, H, setInterval(() => {
87
+ e(this, B).call(this, o + n), y(this, W, setInterval(() => {
88
+ clearInterval(e(this, W)), y(this, O, setInterval(() => {
89
89
  const r = parseInt(e(this, p).thumb.style.left || 0, 10);
90
- e(this, z).call(this, r + n) || clearInterval(e(this, H));
90
+ e(this, B).call(this, r + n) || clearInterval(e(this, O));
91
91
  }, 50));
92
92
  }, 500));
93
93
  }, "delayScroll"), i = /* @__PURE__ */ l(() => {
94
- clearInterval(e(this, W)), clearInterval(e(this, H));
94
+ clearInterval(e(this, W)), clearInterval(e(this, O));
95
95
  }, "clearTimer");
96
96
  ["mouseup", "mouseleave", "touchend"].forEach((n) => {
97
97
  e(this, p).left.addEventListener(n, i), e(this, p).right.addEventListener(n, i), e(this, p).track.addEventListener(n, i);
@@ -103,16 +103,16 @@ const we = class we extends HTMLElement {
103
103
  if (n.button !== 0) return;
104
104
  n.preventDefault();
105
105
  const o = e(this, p).track.getBoundingClientRect(), r = e(this, p).thumb.clientWidth;
106
- e(this, z).call(this, n.clientX - o.left - r / 2);
106
+ e(this, B).call(this, n.clientX - o.left - r / 2);
107
107
  }), e(this, p).thumb.addEventListener("mousedown", (n) => {
108
108
  if (n.button !== 0) return;
109
- n.stopPropagation(), n.preventDefault(), y(this, M, !0), this.shiftX = n.clientX - e(this, p).thumb.getBoundingClientRect().left;
110
- const o = /* @__PURE__ */ l((c) => {
111
- if (!e(this, M)) return;
112
- const b = e(this, p).track.getBoundingClientRect();
113
- e(this, z).call(this, c.clientX - b.left - this.shiftX);
109
+ n.stopPropagation(), n.preventDefault(), y(this, H, !0), this.shiftX = n.clientX - e(this, p).thumb.getBoundingClientRect().left;
110
+ const o = /* @__PURE__ */ l((a) => {
111
+ if (!e(this, H)) return;
112
+ const u = e(this, p).track.getBoundingClientRect();
113
+ e(this, B).call(this, a.clientX - u.left - this.shiftX);
114
114
  }, "onMouseMove"), r = /* @__PURE__ */ l(() => {
115
- y(this, M, !1), i(), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", r), this.refresh();
115
+ y(this, H, !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
  });
@@ -200,120 +200,137 @@ const we = class we extends HTMLElement {
200
200
  t();
201
201
  }
202
202
  disconnectedCallback() {
203
- e(this, O) && e(this, O).disconnect();
203
+ e(this, z) && e(this, z).disconnect();
204
204
  }
205
205
  };
206
- _ = new WeakMap(), M = new WeakMap(), p = new WeakMap(), W = new WeakMap(), H = new WeakMap(), O = new WeakMap(), Z = new WeakMap(), z = new WeakMap(), j = new WeakMap(), l(we, "NineTableHScrollBar");
207
- let ce = we;
206
+ _ = new WeakMap(), H = new WeakMap(), p = new WeakMap(), W = new WeakMap(), O = new WeakMap(), z = new WeakMap(), Z = new WeakMap(), B = new WeakMap(), j = new WeakMap(), l(me, "NineTableHScrollBar");
207
+ let ce = me;
208
208
  customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ce);
209
- var G, N;
209
+ var G, C;
210
210
  const ve = class ve {
211
211
  constructor(s) {
212
212
  f(this, G);
213
- f(this, N, []);
214
- /**
215
- * 초기 ν…œν”Œλ¦Ώ TR ꡬ쑰λ₯Ό μΆ”μΆœν•©λ‹ˆλ‹€ (닀쀑 tr 지원)
216
- */
213
+ f(this, C, []);
217
214
  v(this, "initTemplate", /* @__PURE__ */ l((s) => {
218
215
  const t = s.querySelector("tbody.bindable") || s.querySelector("tbody");
219
216
  if (!t) return;
220
217
  const i = Array.from(t.querySelectorAll("tr")).filter((n) => !n.classList.contains("nodata"));
221
- y(this, N, i.map((n) => n.cloneNode(!0)));
218
+ y(this, C, i.map((n) => n.cloneNode(!0))), console.log(`[RowManager] Template initialized with ${e(this, C).length} row(s).`);
222
219
  }, "initTemplate"));
223
220
  /**
224
- * 버퍼와 뷰포트 크기에 맞좰 ν•„μš”ν•œ 총 TR λΌˆλŒ€λ₯Ό μƒμ„±ν•˜μ—¬ μ»¨ν…Œμ΄λ„ˆμ— μ±„μ›λ‹ˆλ‹€.
221
+ * 🎯 ν…œν”Œλ¦Ώ 1μ„ΈνŠΈμ˜ 총 높이λ₯Ό κ³„μ‚°ν•©λ‹ˆλ‹€. (둜그 μΆ”κ°€)
222
+ */
223
+ v(this, "getTemplateHeight", /* @__PURE__ */ l(() => {
224
+ if (e(this, C).length === 0)
225
+ return console.log("[RowManager] Template is empty, fallback height: 24px"), 24;
226
+ let s = 0;
227
+ return e(this, C).forEach((t, i) => {
228
+ const n = t.offsetHeight || 24;
229
+ s += n, console.log(`[RowManager] Template TR[${i}] height: ${n}px`);
230
+ }), console.log(`[RowManager] Total Template Set Height: ${s}px`), s;
231
+ }, "getTemplateHeight"));
232
+ /**
233
+ * 🎯 μ»¨ν…Œμ΄λ„ˆ 높이와 ν…œν”Œλ¦Ώ 높이λ₯Ό λ°”νƒ•μœΌλ‘œ ν•„μš”ν•œ TR μ…‹νŠΈ(ν–‰) 개수λ₯Ό 동적 μ‚°μ •ν•©λ‹ˆλ‹€. (둜그 μΆ”κ°€)
225
234
  */
226
- v(this, "renderRows", /* @__PURE__ */ l((s, t) => {
227
- if (e(this, N).length === 0) return;
235
+ v(this, "calculateRequiredRowCount", /* @__PURE__ */ l((s) => {
236
+ const t = s.clientHeight || s.getBoundingClientRect().height || 400, i = this.getTemplateHeight(), n = Math.ceil(t / i), o = 20, r = n + o;
237
+ return console.log(`[RowManager] Container Height: ${t}px | Visible Rows: ${n} | Buffer: ${o} | Final Target Rows: ${r}`), r;
238
+ }, "calculateRequiredRowCount"));
239
+ v(this, "renderRows", /* @__PURE__ */ l((s, t = null) => {
240
+ if (e(this, C).length === 0) {
241
+ console.warn("[RowManager] Cannot render rows because template is empty.");
242
+ return;
243
+ }
228
244
  const i = s.querySelector("tbody.bindable") || s.querySelector("tbody");
229
245
  if (!i) return;
230
- i.querySelectorAll("tr:not(.nodata)").forEach((r) => r.remove());
231
- const n = i.querySelector("tr.nodata"), o = document.createDocumentFragment();
232
- for (let r = 0; r < t; r++)
233
- e(this, N).forEach((c) => {
234
- o.appendChild(c.cloneNode(!0));
246
+ i.querySelectorAll("tr:not(.nodata)").forEach((a) => a.remove());
247
+ const n = i.querySelector("tr.nodata"), o = document.createDocumentFragment(), r = t !== null ? t : this.calculateRequiredRowCount(s);
248
+ console.log(`[RowManager] Rendering ${r} row sets into container...`);
249
+ for (let a = 0; a < r; a++)
250
+ e(this, C).forEach((u) => {
251
+ o.appendChild(u.cloneNode(!0));
235
252
  });
236
- n ? n.before(o) : i.appendChild(o);
253
+ n ? n.before(o) : i.appendChild(o), console.log(`[RowManager] Successfully rendered. Total DOM tr count in tbody: ${i.querySelectorAll("tr:not(.nodata)").length}`);
237
254
  }, "renderRows"));
238
255
  y(this, G, s);
239
256
  }
240
257
  get templateLength() {
241
- return e(this, N).length || 1;
258
+ return e(this, C).length || 1;
242
259
  }
243
260
  };
244
- G = new WeakMap(), N = new WeakMap(), l(ve, "RowManager");
261
+ G = new WeakMap(), C = new WeakMap(), l(ve, "RowManager");
245
262
  let he = ve;
246
- var L, C, J;
247
- const V = class V extends HTMLElement {
263
+ var L, I, J;
264
+ const X = class X extends HTMLElement {
248
265
  constructor() {
249
266
  super();
250
267
  f(this, L, null);
251
- f(this, C);
268
+ f(this, I);
252
269
  v(this, "init", /* @__PURE__ */ l((t) => {
253
270
  if (!t) return;
254
- const i = /* @__PURE__ */ l((a) => {
255
- const g = /* @__PURE__ */ l((u) => {
256
- if (u.querySelector("colgroup")) return;
257
- const d = u.querySelector("tbody tr") || u.querySelector("tr"), S = d ? d.querySelectorAll("th, td").length : 1, x = document.createElement("colgroup"), k = Math.max(Math.floor((u.clientWidth || 600) / S), 100);
258
- for (let R = 0; R < S; R++) {
271
+ const i = /* @__PURE__ */ l((c) => {
272
+ const g = /* @__PURE__ */ l((b) => {
273
+ if (b.querySelector("colgroup")) return;
274
+ const d = b.querySelector("tbody tr") || b.querySelector("tr"), R = d ? d.querySelectorAll("th, td").length : 1, x = document.createElement("colgroup"), k = Math.max(Math.floor((b.clientWidth || 600) / R), 100);
275
+ for (let E = 0; E < R; E++) {
259
276
  const le = document.createElement("col");
260
277
  le.setAttribute("width", k), x.appendChild(le);
261
278
  }
262
- u.prepend(x);
263
- }, "ensureColgroup"), h = /* @__PURE__ */ l((u) => {
264
- if (u.querySelector("thead")) return;
265
- const d = document.createElement("thead"), S = u.querySelector("colgroup");
266
- S ? S.after(d) : u.prepend(d);
279
+ b.prepend(x);
280
+ }, "ensureColgroup"), h = /* @__PURE__ */ l((b) => {
281
+ if (b.querySelector("thead")) return;
282
+ const d = document.createElement("thead"), R = b.querySelector("colgroup");
283
+ R ? R.after(d) : b.prepend(d);
267
284
  }, "ensureThead");
268
- return g(a), h(a), a.classList.add("nine-table-element"), a;
285
+ return g(c), h(c), c.classList.add("nine-table-element"), c;
269
286
  }, "initializeTable"), n = t.cloneNode(!0);
270
- y(this, L, i(n)), e(this, L).style.display = "table", e(this, C).initTemplate(e(this, L));
271
- const o = this.querySelector(".ng-container-left"), r = this.querySelector(".ng-container-body"), c = this.querySelector(".ng-container-right"), b = /* @__PURE__ */ l((a, g, h = !1) => {
272
- const u = a.cloneNode(!0), d = Array.from(u.querySelectorAll("colgroup col")), S = [];
287
+ y(this, L, i(n)), e(this, L).style.display = "table", e(this, I).initTemplate(e(this, L));
288
+ const o = this.querySelector(".ng-container-left"), r = this.querySelector(".ng-container-body"), a = this.querySelector(".ng-container-right"), u = /* @__PURE__ */ l((c, g, h = !1) => {
289
+ const b = c.cloneNode(!0), d = Array.from(b.querySelectorAll("colgroup col")), R = [];
273
290
  return d.forEach((x, k) => {
274
- const R = x.getAttribute("fixed");
275
- (h ? !R || R === "" : R === g) || S.push(k);
276
- }), S.reverse().forEach((x) => {
277
- d[x] && d[x].remove(), u.querySelectorAll("tr").forEach((k) => {
278
- const R = k.querySelectorAll("th, td");
279
- R[x] && R[x].remove();
291
+ const E = x.getAttribute("fixed");
292
+ (h ? !E || E === "" : E === g) || R.push(k);
293
+ }), R.reverse().forEach((x) => {
294
+ d[x] && d[x].remove(), b.querySelectorAll("tr").forEach((k) => {
295
+ const E = k.querySelectorAll("th, td");
296
+ E[x] && E[x].remove();
280
297
  });
281
- }), u;
298
+ }), b;
282
299
  }, "filterTableByFixed");
283
300
  if (r) {
284
- const a = b(e(this, L), null, !0);
285
- r.innerHTML = "", r.appendChild(a), e(this, C).renderRows(r, 45);
301
+ const c = u(e(this, L), null, !0);
302
+ r.innerHTML = "", r.appendChild(c), e(this, I).renderRows(r);
286
303
  }
287
304
  if (o) {
288
- const a = b(e(this, L), "left", !1);
305
+ const c = u(e(this, L), "left", !1);
289
306
  let g = 0;
290
- a.querySelectorAll("col").forEach((u) => {
291
- const d = parseInt(u.getAttribute("width"), 10);
307
+ c.querySelectorAll("col").forEach((b) => {
308
+ const d = parseInt(b.getAttribute("width"), 10);
292
309
  isNaN(d) || (g += d);
293
- }), o.innerHTML = "", o.appendChild(a), e(this, C).renderRows(o, 45);
310
+ }), o.innerHTML = "", o.appendChild(c), e(this, I).renderRows(o);
294
311
  const h = g > 0 ? g : 0;
295
312
  o.style.flex = `0 0 ${h}px`, o.style.width = `${h}px`;
296
313
  }
297
- if (c) {
298
- const a = b(e(this, L), "right", !1);
314
+ if (a) {
315
+ const c = u(e(this, L), "right", !1);
299
316
  let g = 0;
300
- a.querySelectorAll("col").forEach((u) => {
301
- const d = parseInt(u.getAttribute("width"), 10);
317
+ c.querySelectorAll("col").forEach((b) => {
318
+ const d = parseInt(b.getAttribute("width"), 10);
302
319
  isNaN(d) || (g += d);
303
- }), c.innerHTML = "", c.appendChild(a), e(this, C).renderRows(c, 45);
320
+ }), a.innerHTML = "", a.appendChild(c), e(this, I).renderRows(a);
304
321
  const h = g > 0 ? g : 0;
305
- c.style.flex = `0 0 ${h}px`, c.style.width = `${h}px`;
322
+ a.style.flex = `0 0 ${h}px`, a.style.width = `${h}px`;
306
323
  }
307
324
  if (r) {
308
- const a = this.getRowCount();
309
- r.style.overflowY = a > 10 ? "auto" : "hidden", r.addEventListener("scroll", () => {
325
+ const c = this.getRowCount();
326
+ r.style.overflowY = c > 10 ? "auto" : "hidden", r.addEventListener("scroll", () => {
310
327
  const g = this.querySelector("nine-table-hscrollbar");
311
328
  g && typeof g.refresh == "function" && g.refresh();
312
329
  });
313
330
  }
314
331
  setTimeout(() => {
315
- const a = this.querySelector("nine-table-hscrollbar");
316
- a && typeof a.refresh == "function" && a.refresh();
332
+ const c = this.querySelector("nine-table-hscrollbar");
333
+ c && typeof c.refresh == "function" && c.refresh();
317
334
  }, 0), K.log(`NineTableSheet 3-split initialized with rows: ${this.getRowCount()}`);
318
335
  }, "init"));
319
336
  v(this, "getRowCount", /* @__PURE__ */ l(() => e(this, L) ? e(this, L).querySelectorAll("tbody tr").length : 0, "getRowCount"));
@@ -326,7 +343,7 @@ const V = class V extends HTMLElement {
326
343
  i && (i.scrollTop = t);
327
344
  }, "scrollToY"));
328
345
  f(this, J, /* @__PURE__ */ l(() => {
329
- const t = V.SCROLLBAR_SIZE;
346
+ const t = X.SCROLLBAR_SIZE;
330
347
  this.innerHTML = `
331
348
  <style>
332
349
  nine-table-sheet {
@@ -442,7 +459,7 @@ const V = class V extends HTMLElement {
442
459
  </div>
443
460
  `;
444
461
  }, "#render"));
445
- y(this, C, new he(this));
462
+ y(this, I, new he(this));
446
463
  }
447
464
  connectedCallback() {
448
465
  e(this, J).call(this);
@@ -451,8 +468,8 @@ const V = class V extends HTMLElement {
451
468
  this.innerHTML = "", K.log("NineTableSheet destroyed.");
452
469
  }
453
470
  };
454
- L = new WeakMap(), C = new WeakMap(), J = new WeakMap(), l(V, "NineTableSheet"), v(V, "SCROLLBAR_SIZE", 16);
455
- let de = V;
471
+ L = new WeakMap(), I = new WeakMap(), J = new WeakMap(), l(X, "NineTableSheet"), v(X, "SCROLLBAR_SIZE", 16);
472
+ let de = X;
456
473
  customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", de);
457
474
  var Q;
458
475
  const xe = class xe extends HTMLElement {
@@ -471,35 +488,35 @@ const xe = class xe extends HTMLElement {
471
488
  const n = /* @__PURE__ */ l(() => {
472
489
  const h = this.querySelector("nine-table-sheets-body");
473
490
  h.querySelectorAll("nine-splitter").forEach((d) => {
474
- const S = parseInt(d.dataset.splitIndex, 10), x = h.querySelector(`nine-table-sheet[data-index="${S - 1}"]`), k = h.querySelector(`nine-table-sheet[data-index="${S}"]`);
491
+ const R = parseInt(d.dataset.splitIndex, 10), x = h.querySelector(`nine-table-sheet[data-index="${R - 1}"]`), k = h.querySelector(`nine-table-sheet[data-index="${R}"]`);
475
492
  x && k && x.classList.contains("active") && k.classList.contains("active") ? d.classList.add("active") : d.classList.remove("active");
476
493
  });
477
- }, "updateSplitters"), o = this.querySelector(".nine-tab-bar"), r = this.querySelector("nine-table-sheets-body"), c = o.querySelectorAll(".nine-tab-item"), b = r.querySelectorAll("nine-table-sheet");
478
- if (!c[t]) return;
494
+ }, "updateSplitters"), o = this.querySelector(".nine-tab-bar"), r = this.querySelector("nine-table-sheets-body"), a = o.querySelectorAll(".nine-tab-item"), u = r.querySelectorAll("nine-table-sheet");
495
+ if (!a[t]) return;
479
496
  if (!i)
480
- c.forEach((h, u) => {
481
- h.classList.toggle("active", u === t);
482
- const d = r.querySelector(`nine-table-sheet[data-index="${u}"]`);
497
+ a.forEach((h, b) => {
498
+ h.classList.toggle("active", b === t);
499
+ const d = r.querySelector(`nine-table-sheet[data-index="${b}"]`);
483
500
  d && (d.style.flex = "");
484
- }), b.forEach((h, u) => {
485
- h.classList.toggle("active", u === t);
501
+ }), u.forEach((h, b) => {
502
+ h.classList.toggle("active", b === t);
486
503
  });
487
504
  else {
488
- const h = c[t], u = o.querySelectorAll(".nine-tab-item.active");
489
- if (h.classList.contains("active") && u.length <= 1)
505
+ const h = a[t], b = o.querySelectorAll(".nine-tab-item.active");
506
+ if (h.classList.contains("active") && b.length <= 1)
490
507
  return;
491
508
  h.classList.toggle("active");
492
509
  const d = r.querySelector(`nine-table-sheet[data-index="${t}"]`);
493
510
  d && (d.classList.toggle("active"), d.classList.contains("active") || (d.style.flex = ""));
494
511
  }
495
- const a = Array.from(r.querySelectorAll("nine-table-sheet.active"));
496
- if (a.length > 1) {
497
- const h = 1 / a.length;
498
- a.forEach((u) => {
499
- (!u.style.flex || u.style.flex === "1 1 100%") && (u.style.flex = `${h} ${h} 0px`);
512
+ const c = Array.from(r.querySelectorAll("nine-table-sheet.active"));
513
+ if (c.length > 1) {
514
+ const h = 1 / c.length;
515
+ c.forEach((b) => {
516
+ (!b.style.flex || b.style.flex === "1 1 100%") && (b.style.flex = `${h} ${h} 0px`);
500
517
  });
501
518
  } else
502
- a.forEach((h) => {
519
+ c.forEach((h) => {
503
520
  h.style.flex = "1 1 100%";
504
521
  });
505
522
  n();
@@ -517,29 +534,29 @@ const xe = class xe extends HTMLElement {
517
534
  Q = new WeakMap(), l(xe, "NineTableSheets");
518
535
  let fe = xe;
519
536
  customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", fe);
520
- var A, Y, ee, F, te;
521
- const Se = class Se {
537
+ var A, F, ee, Y, te;
538
+ const Re = class Re {
522
539
  constructor(s) {
523
540
  f(this, A);
524
- f(this, Y, null);
541
+ f(this, F, null);
525
542
  f(this, ee, /* @__PURE__ */ l(() => {
526
543
  const s = e(this, A).host;
527
- s && (y(this, Y, new ResizeObserver((t) => {
544
+ s && (y(this, F, new ResizeObserver((t) => {
528
545
  for (let i of t)
529
- s.getAttribute("auto-height") === "true" && e(this, F).call(this, s);
530
- })), e(this, Y).observe(s));
546
+ s.getAttribute("auto-height") === "true" && e(this, Y).call(this, s);
547
+ })), e(this, F).observe(s));
531
548
  }, "#observeResize"));
532
- f(this, F, /* @__PURE__ */ l((s) => {
533
- var k, R;
549
+ f(this, Y, /* @__PURE__ */ l((s) => {
550
+ var k, E;
534
551
  const t = (k = s.shadowRoot) == null ? void 0 : k.querySelector("nine-table-sheet.active");
535
552
  if (!t) return;
536
- 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"), c = r ? r.getBoundingClientRect().height : 32, b = e(this, A).querySelector("nine-table-header"), a = e(this, A).querySelector("nine-table-sheets-footer"), g = b ? b.getBoundingClientRect().height : 40, h = a ? a.getBoundingClientRect().height : 32, d = g + h + 16, S = o * c + d;
537
- s.style.height = `${S}px`, s.style.maxHeight = `${n * c + d}px`;
553
+ const i = ((E = t.getRowCount) == null ? void 0 : E.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"), a = r ? r.getBoundingClientRect().height : 32, u = e(this, A).querySelector("nine-table-header"), c = e(this, A).querySelector("nine-table-sheets-footer"), g = u ? u.getBoundingClientRect().height : 40, h = c ? c.getBoundingClientRect().height : 32, d = g + h + 16, R = o * a + d;
554
+ s.style.height = `${R}px`, s.style.maxHeight = `${n * a + d}px`;
538
555
  const x = e(this, A).querySelector("nine-table-sheets-body");
539
556
  x && (x.style.overflowY = i > n ? "auto" : "hidden");
540
557
  }, "#applyAutoHeight"));
541
558
  f(this, te, /* @__PURE__ */ l(() => {
542
- const s = e(this, A).host, i = Array.from(s.children).filter((b) => b.tagName === "TABLE"), n = s.getAttribute("auto-height") === "true", o = i.map((b, a) => `<nine-table-sheet class="${a === 0 ? "active" : ""}" data-index="${a}"></nine-table-sheet>`).join(""), r = i.map((b, a) => `<div class="nine-tab-item ${a === 0 ? "active" : ""}" data-index="${a}">Sheet ${a + 1}</div>`).join("");
559
+ const s = e(this, A).host, i = Array.from(s.children).filter((u) => u.tagName === "TABLE"), n = s.getAttribute("auto-height") === "true", o = i.map((u, c) => `<nine-table-sheet class="${c === 0 ? "active" : ""}" data-index="${c}"></nine-table-sheet>`).join(""), r = i.map((u, c) => `<div class="nine-tab-item ${c === 0 ? "active" : ""}" data-index="${c}">Sheet ${c + 1}</div>`).join("");
543
560
  e(this, A).innerHTML = `
544
561
  <style>
545
562
  :host {
@@ -638,25 +655,25 @@ const Se = class Se {
638
655
  </nine-table-body>
639
656
  <nine-table-footer></nine-table-footer>
640
657
  `;
641
- const c = e(this, A).querySelectorAll("nine-table-sheet");
642
- c == null || c.forEach((b, a) => {
643
- i[a] && setTimeout(() => {
644
- b.init(i[a]), n && e(this, F).call(this, s);
658
+ const a = e(this, A).querySelectorAll("nine-table-sheet");
659
+ a == null || a.forEach((u, c) => {
660
+ i[c] && setTimeout(() => {
661
+ u.init(i[c]), n && e(this, Y).call(this, s);
645
662
  });
646
663
  });
647
664
  }, "#render"));
648
665
  y(this, A, s), e(this, te).call(this), e(this, ee).call(this);
649
666
  }
650
667
  };
651
- A = new WeakMap(), Y = new WeakMap(), ee = new WeakMap(), F = new WeakMap(), te = new WeakMap(), l(Se, "LayoutManager");
652
- let ue = Se;
653
- var I, D;
654
- const Ee = class Ee {
668
+ A = new WeakMap(), F = new WeakMap(), ee = new WeakMap(), Y = new WeakMap(), te = new WeakMap(), l(Re, "LayoutManager");
669
+ let ue = Re;
670
+ var $, D;
671
+ const Se = class Se {
655
672
  constructor(s) {
656
- f(this, I);
673
+ f(this, $);
657
674
  f(this, D, -1);
658
- v(this, "count", /* @__PURE__ */ l(() => e(this, I).rawRecords.length, "count"));
659
- y(this, I, s);
675
+ v(this, "count", /* @__PURE__ */ l(() => e(this, $).rawRecords.length, "count"));
676
+ y(this, $, s);
660
677
  }
661
678
  get at() {
662
679
  return e(this, D);
@@ -664,32 +681,32 @@ const Ee = class Ee {
664
681
  set at(s) {
665
682
  var i, n;
666
683
  y(this, D, parseInt(s, 10));
667
- const t = ((n = (i = e(this, I).owner).querySelector) == null ? void 0 : n.call(i, ".ng-container-body")) || e(this, I).owner.body;
684
+ const t = ((n = (i = e(this, $).owner).querySelector) == null ? void 0 : n.call(i, ".ng-container-body")) || e(this, $).owner.body;
668
685
  t && !t.querySelector(`tbody.bindable tr[data-row="${e(this, D)}"]`) && setTimeout(() => {
669
686
  var o, r;
670
- (r = (o = e(this, I).owner).scrollTo_V1) == null || r.call(o, e(this, D));
687
+ (r = (o = e(this, $).owner).scrollTo_V1) == null || r.call(o, e(this, D));
671
688
  });
672
689
  }
673
690
  };
674
- I = new WeakMap(), D = new WeakMap(), l(Ee, "ngRow");
675
- let be = Ee;
676
- var E, w, q, P, se, $, ie, U, ne, re, X;
691
+ $ = new WeakMap(), D = new WeakMap(), l(Se, "ngRow");
692
+ let be = Se;
693
+ var S, m, q, P, se, M, ie, U, ne, re, V;
677
694
  const T = class T {
678
695
  constructor(s, t) {
679
- f(this, E);
680
- f(this, w);
696
+ f(this, S);
697
+ f(this, m);
681
698
  f(this, q, []);
682
699
  f(this, P, []);
683
700
  f(this, se, 0);
684
- f(this, $, []);
701
+ f(this, M, []);
685
702
  f(this, ie, /* @__PURE__ */ l(() => {
686
- y(this, $, []);
687
- const s = e(this, E).template || [];
703
+ y(this, M, []);
704
+ const s = e(this, S).template || [];
688
705
  Array.from(s).forEach((t) => {
689
706
  var i;
690
- e(this, $).push(((i = t.getBoundingClientRect) == null ? void 0 : i.call(t).height) || 24);
691
- }), (e(this, w).rawRecords || []).forEach((t) => {
692
- t.__ng || (t.__ng = e(this, U).call(this)), t.__ng.height = e(this, $).slice();
707
+ e(this, M).push(((i = t.getBoundingClientRect) == null ? void 0 : i.call(t).height) || 24);
708
+ }), (e(this, m).rawRecords || []).forEach((t) => {
709
+ t.__ng || (t.__ng = e(this, U).call(this)), t.__ng.height = e(this, M).slice();
693
710
  });
694
711
  }, "#initialize"));
695
712
  v(this, "set", /* @__PURE__ */ l((s) => {
@@ -699,26 +716,26 @@ const T = class T {
699
716
  rowState: T.ROW_STATE.EMPTY,
700
717
  deleted: !1,
701
718
  filtered: !1,
702
- height: e(this, $).slice(),
719
+ height: e(this, M).slice(),
703
720
  o: {},
704
721
  c: {},
705
- _: [0, 0, 0, 0, T.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, $).slice(), -1, {}, {}]
722
+ _: [0, 0, 0, 0, T.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, M).slice(), -1, {}, {}]
706
723
  }), "#getDefaultMeta"));
707
724
  v(this, "reset", /* @__PURE__ */ l(() => {
708
725
  y(this, q, []), y(this, P, []);
709
726
  }, "reset"));
710
727
  v(this, "clear", /* @__PURE__ */ l(() => {
711
728
  var s;
712
- e(this, w).rawRecords = [], y(this, q, []), y(this, P, []), (s = e(this, w).viewRecords) != null && s.reset && e(this, w).viewRecords.reset();
729
+ e(this, m).rawRecords = [], y(this, q, []), y(this, P, []), (s = e(this, m).viewRecords) != null && s.reset && e(this, m).viewRecords.reset();
713
730
  }, "clear"));
714
731
  f(this, ne, /* @__PURE__ */ l((s) => {
715
732
  var n;
716
733
  Array.isArray(s) || (s = [s]);
717
- const t = typeof ((n = e(this, E).fields) == null ? void 0 : n.get) == "function" ? e(this, E).fields.get() : Object.keys(s[0] || {}), i = [];
734
+ const t = typeof ((n = e(this, S).fields) == null ? void 0 : n.get) == "function" ? e(this, S).fields.get() : Object.keys(s[0] || {}), i = [];
718
735
  return s.forEach((o) => {
719
736
  const r = { v: [] };
720
- t.forEach((c) => {
721
- r.v.push(o[c] !== void 0 && o[c] !== null ? o[c] : "");
737
+ t.forEach((a) => {
738
+ r.v.push(o[a] !== void 0 && o[a] !== null ? o[a] : "");
722
739
  }), i.push(r);
723
740
  }), i;
724
741
  }, "#json2Array"));
@@ -729,51 +746,51 @@ const T = class T {
729
746
  var o;
730
747
  s === void 0 && (s = {});
731
748
  const i = e(this, ne).call(this, s);
732
- e(this, w).rawRecords = e(this, w).rawRecords.concat(e(this, re).call(this, i)), this.resetRecords();
749
+ e(this, m).rawRecords = e(this, m).rawRecords.concat(e(this, re).call(this, i)), this.resetRecords();
733
750
  const n = this.count() - 1;
734
- return t || i.forEach((r, c) => {
735
- const b = e(this, w).rawRecords[n - c];
736
- b && (b.__ng.rowState = T.ROW_STATE.EMPTY);
737
- }), (o = e(this, w).viewRecords) != null && o.reset && e(this, w).viewRecords.reset(), n;
751
+ return t || i.forEach((r, a) => {
752
+ const u = e(this, m).rawRecords[n - a];
753
+ u && (u.__ng.rowState = T.ROW_STATE.EMPTY);
754
+ }), (o = e(this, m).viewRecords) != null && o.reset && e(this, m).viewRecords.reset(), n;
738
755
  }, "add"));
739
756
  v(this, "delete", /* @__PURE__ */ l((s) => {
740
757
  var i;
741
758
  let t = [];
742
- Array.isArray(s) ? t = s : typeof s > "u" ? t = [e(this, w).owner.row.at] : t = [parseInt(s, 10)], t.sort((n, o) => o - n).forEach((n) => {
759
+ 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) => {
743
760
  if (e(this, q)[n]) {
744
761
  const o = e(this, q)[n].__ng.rowid;
745
- e(this, q)[n].__ng.rowState === T.ROW_STATE.INSERT ? e(this, w).rawRecords = e(this, w).rawRecords.filter((r) => r.__ng.rowid !== o) : e(this, w).rawRecords.forEach((r) => {
762
+ e(this, q)[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) => {
746
763
  r.__ng.rowid === o && (r.__ng.deleted = !0, r.__ng.rowState = T.ROW_STATE.DELETE);
747
764
  });
748
765
  }
749
- }), this.resetRecords(), (i = e(this, w).viewRecords) != null && i.reset && e(this, w).viewRecords.reset();
766
+ }), this.resetRecords(), (i = e(this, m).viewRecords) != null && i.reset && e(this, m).viewRecords.reset();
750
767
  }, "delete"));
751
768
  v(this, "setValue", /* @__PURE__ */ l((s, t, i) => {
752
- var b;
769
+ var u;
753
770
  s = parseInt(s, 10);
754
- const o = (typeof ((b = e(this, E).fields) == null ? void 0 : b.get) == "function" ? e(this, E).fields.get() : []).indexOf(t);
771
+ const o = (typeof ((u = e(this, S).fields) == null ? void 0 : u.get) == "function" ? e(this, S).fields.get() : []).indexOf(t);
755
772
  if (o < 0) return;
756
773
  const r = this.getValidData()[s];
757
774
  if (!r) return;
758
- const c = r.v[o];
759
- c !== i && r.__ng.rowState !== T.ROW_STATE.INSERT && (r.__ng.o.hasOwnProperty(t) || (r.__ng.o[t] = c), r.__ng.rowState = T.ROW_STATE.UPDATE), r.v[o] = i, e(this, w).owner.refreshData && e(this, w).owner.refreshData(s);
775
+ const a = r.v[o];
776
+ a !== i && r.__ng.rowState !== T.ROW_STATE.INSERT && (r.__ng.o.hasOwnProperty(t) || (r.__ng.o[t] = a), r.__ng.rowState = T.ROW_STATE.UPDATE), r.v[o] = i, e(this, m).owner.refreshData && e(this, m).owner.refreshData(s);
760
777
  }, "setValue"));
761
778
  v(this, "resetRecords", /* @__PURE__ */ l(() => {
762
- y(this, P, e(this, w).rawRecords.filter((s) => !s.__ng.deleted)), y(this, q, e(this, w).rawRecords.filter((s) => !s.__ng.deleted && !s.__ng.filtered)), e(this, w).rawRecords.forEach((s, t) => {
779
+ y(this, P, e(this, m).rawRecords.filter((s) => !s.__ng.deleted)), y(this, q, e(this, m).rawRecords.filter((s) => !s.__ng.deleted && !s.__ng.filtered)), e(this, m).rawRecords.forEach((s, t) => {
763
780
  s.__ng.rowidx = t;
764
781
  }), e(this, q).forEach((s, t) => {
765
782
  s.__ng.i = t;
766
783
  });
767
784
  }, "resetRecords"));
768
- v(this, "getValidData", /* @__PURE__ */ l(() => (e(this, q).length === 0 && e(this, w).rawRecords.length > 0 && this.resetRecords(), e(this, q)), "getValidData"));
769
- f(this, X, /* @__PURE__ */ l((s) => {
785
+ v(this, "getValidData", /* @__PURE__ */ l(() => (e(this, q).length === 0 && e(this, m).rawRecords.length > 0 && this.resetRecords(), e(this, q)), "getValidData"));
786
+ f(this, V, /* @__PURE__ */ l((s) => {
770
787
  var i;
771
788
  if (!s) return s;
772
- const t = typeof ((i = e(this, E).fields) == null ? void 0 : i.get) == "function" ? e(this, E).fields.get() : [];
789
+ const t = typeof ((i = e(this, S).fields) == null ? void 0 : i.get) == "function" ? e(this, S).fields.get() : [];
773
790
  return Array.isArray(s) ? s.filter((n) => !n.__ng.deleted).map((n) => {
774
791
  const o = {};
775
- return t.forEach((r, c) => {
776
- o[r] = n.v ? n.v[c] : n[r];
792
+ return t.forEach((r, a) => {
793
+ o[r] = n.v ? n.v[a] : n[r];
777
794
  }), o.__ng = n.__ng, o;
778
795
  }) : s;
779
796
  }, "#conv2"));
@@ -782,19 +799,19 @@ const T = class T {
782
799
  var o;
783
800
  const i = this.getValidData();
784
801
  if (!i || i.length <= 0) return;
785
- if (s == null) return e(this, X).call(this, i);
802
+ if (s == null) return e(this, V).call(this, i);
786
803
  if (s < 0 || s >= i.length) return null;
787
- const n = typeof ((o = e(this, E).fields) == null ? void 0 : o.get) == "function" ? e(this, E).fields.get() : [];
804
+ const n = typeof ((o = e(this, S).fields) == null ? void 0 : o.get) == "function" ? e(this, S).fields.get() : [];
788
805
  if (t != null) {
789
806
  const r = n.indexOf(t);
790
807
  return r >= 0 ? i[s].v[r] : null;
791
808
  }
792
- return e(this, X).call(this, i[s]);
809
+ return e(this, V).call(this, i[s]);
793
810
  }, "get"));
794
- y(this, E, s), y(this, w, t), e(this, ie).call(this);
811
+ y(this, S, s), y(this, m, t), e(this, ie).call(this);
795
812
  }
796
813
  get source() {
797
- return e(this, X).call(this, e(this, w).rawRecords);
814
+ return e(this, V).call(this, e(this, m).rawRecords);
798
815
  }
799
816
  set source(s) {
800
817
  this.clear(), this.add(s, !1);
@@ -803,7 +820,7 @@ const T = class T {
803
820
  return ++Ae(this, se)._;
804
821
  }
805
822
  };
806
- E = new WeakMap(), w = new WeakMap(), q = new WeakMap(), P = new WeakMap(), se = new WeakMap(), $ = new WeakMap(), ie = new WeakMap(), U = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), X = new WeakMap(), l(T, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
823
+ S = new WeakMap(), m = new WeakMap(), q = new WeakMap(), P = new WeakMap(), se = new WeakMap(), M = new WeakMap(), ie = new WeakMap(), U = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), V = new WeakMap(), l(T, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
807
824
  v(T, "ROW_STATE", {
808
825
  EMPTY: "EMPTY",
809
826
  NORMAL: "NORMAL",
@@ -812,7 +829,7 @@ v(T, "ROW_STATE", {
812
829
  DELETE: "DELETE"
813
830
  });
814
831
  let ge = T;
815
- const Re = class Re {
832
+ const Ee = class Ee {
816
833
  constructor(s) {
817
834
  this.owner = s, this.row = new be(this), this.data = new ge(s, this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
818
835
  var t;
@@ -831,16 +848,16 @@ const Re = class Re {
831
848
  }, this.setDataSource([]);
832
849
  }
833
850
  };
834
- l(Re, "ngDataManager");
835
- let pe = Re;
836
- var B, oe;
851
+ l(Ee, "ngDataManager");
852
+ let pe = Ee;
853
+ var N, oe;
837
854
  const Te = class Te extends HTMLElement {
838
855
  constructor() {
839
856
  super();
840
857
  //#created = false;
841
- f(this, B);
858
+ f(this, N);
842
859
  f(this, oe);
843
- this.attachShadow({ mode: "open" }), y(this, B, new pe(this));
860
+ this.attachShadow({ mode: "open" }), y(this, N, new pe(this));
844
861
  }
845
862
  connectedCallback() {
846
863
  y(this, oe, new ue(this.shadowRoot)), K.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
@@ -850,18 +867,18 @@ const Te = class Te extends HTMLElement {
850
867
  }
851
868
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
852
869
  get data() {
853
- return e(this, B).data;
870
+ return e(this, N).data;
854
871
  }
855
872
  // 🎯 ν–‰(row) κ΄€λ ¨ μ œμ–΄ μ ‘κ·Όμž μ˜€ν”ˆ
856
873
  get row() {
857
- return e(this, B).row;
874
+ return e(this, N).row;
858
875
  }
859
876
  // 🎯 전체 데이터 λ§€λ‹ˆμ € μ ‘κ·Ό ν•„μš”ν•  경우
860
877
  get dataManager() {
861
- return e(this, B);
878
+ return e(this, N);
862
879
  }
863
880
  };
864
- B = new WeakMap(), oe = new WeakMap(), l(Te, "NineTable");
881
+ N = new WeakMap(), oe = new WeakMap(), l(Te, "NineTable");
865
882
  let ye = Te;
866
883
  customElements.get("nine-table") || customElements.define("nine-table", ye);
867
884
  //# sourceMappingURL=nine-table.js.map