@ninebone/table 0.0.282 β†’ 0.0.284

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ var Xe = (p) => {
4
4
  };
5
5
  var Ke = (p, i, t) => i in p ? Ve(p, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[i] = t;
6
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);
7
+ var x = (p, i, t) => Ke(p, typeof i != "symbol" ? i + "" : i, t), Ye = (p, i, t) => i.has(p) || Xe("Cannot " + t);
8
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
9
  var Ue = (p, i, t, s) => ({
10
10
  set _(n) {
@@ -22,29 +22,29 @@ const Me = class Me extends Ze.constructor {
22
22
  };
23
23
  a(Me, "Trace");
24
24
  let Ee = Me;
25
- const j = new Ee();
26
- var k, $, y, O, W, z, ne, D, re;
25
+ const F = new Ee();
26
+ var k, $, b, W, O, z, se, D, ne;
27
27
  const $e = class $e extends HTMLElement {
28
28
  constructor() {
29
29
  super();
30
30
  c(this, k);
31
31
  c(this, $, !1);
32
- c(this, y);
33
- c(this, O);
32
+ c(this, b);
34
33
  c(this, W);
34
+ c(this, O);
35
35
  c(this, z);
36
- c(this, ne, /* @__PURE__ */ a(() => {
36
+ c(this, se, /* @__PURE__ */ a(() => {
37
37
  if (!e(this, k)) return;
38
38
  const t = e(this, k).querySelector(".ng-container-body");
39
39
  t && (g(this, z, new ResizeObserver(() => {
40
40
  this.refresh();
41
41
  })), e(this, z).observe(t));
42
42
  }, "#observeResize"));
43
- v(this, "refresh", /* @__PURE__ */ a(() => {
44
- if (!e(this, k) || !e(this, y) || e(this, $)) return;
45
- const t = e(this, y).container, s = t.querySelector("table");
43
+ x(this, "refresh", /* @__PURE__ */ a(() => {
44
+ if (!e(this, k) || !e(this, b) || e(this, $)) return;
45
+ const t = e(this, b).container, s = t.querySelector("table");
46
46
  if (!s) return;
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;
47
+ const n = e(this, b).track, r = e(this, b).thumb, o = e(this, k).querySelector(".ng-container-bottom"), l = t.clientWidth, d = s.scrollWidth;
48
48
  if (l !== 0 && d > l)
49
49
  o && (o.style.display = "flex");
50
50
  else {
@@ -55,55 +55,55 @@ const $e = class $e extends HTMLElement {
55
55
  if (h <= 0) return;
56
56
  const f = Math.max(Math.min(h * (l / d), h), 20);
57
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
- const w = h - f;
62
- x > w && (x = w), r.style.left = `${x}px`, j.log(x), e(this, y).left.disabled = x === 0, e(this, y).right.disabled = x >= w - 1;
58
+ const u = t.scrollLeft, y = d - l;
59
+ let w = 0;
60
+ y > 0 && (w = parseInt(u / y * (h - f), 10)), w < 0 && (w = 0);
61
+ const v = h - f;
62
+ w > v && (w = v), r.style.left = `${w}px`, F.log(w), e(this, b).left.disabled = w === 0, e(this, b).right.disabled = w >= v - 1;
63
63
  }, "refresh"));
64
64
  c(this, D, /* @__PURE__ */ a((t) => {
65
- if (!e(this, y)) return !1;
66
- const s = e(this, y).container, n = s.querySelector("table");
65
+ if (!e(this, b)) return !1;
66
+ const s = e(this, b).container, n = s.querySelector("table");
67
67
  if (!n) return !1;
68
- const r = e(this, y).track.getBoundingClientRect(), o = e(this, y).thumb.clientWidth;
68
+ const r = e(this, b).track.getBoundingClientRect(), o = e(this, b).thumb.clientWidth;
69
69
  let l = t;
70
70
  l < 0 && (l = 0);
71
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;
72
+ l > d && (l = d), l = parseInt(l, 10), e(this, b).thumb.style.left = `${l}px`, e(this, b).left.disabled = l === 0, e(this, b).right.disabled = l >= d - 1;
73
73
  const h = s.clientWidth, f = n.scrollWidth;
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;
74
+ let u = d > 0 ? -l * (f - h) / d : 0;
75
+ return -u > f - h && (u = -(f - h)), -u + 5 > f - h && (u = -(f - h)), h >= f && (u = 0), n.style.transform = `translateX(${u}px)`, l > 0 && l < d - 1;
76
76
  }, "#thumbMoveTo"));
77
- c(this, re, /* @__PURE__ */ a(() => {
77
+ c(this, ne, /* @__PURE__ */ a(() => {
78
78
  const t = /* @__PURE__ */ a((n) => {
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));
79
+ clearInterval(e(this, W)), clearInterval(e(this, O));
80
+ const r = parseInt(e(this, b).thumb.style.left || 0, 10);
81
+ e(this, D).call(this, r + n), g(this, W, setInterval(() => {
82
+ clearInterval(e(this, W)), g(this, O, setInterval(() => {
83
+ const o = parseInt(e(this, b).thumb.style.left || 0, 10);
84
+ e(this, D).call(this, o + n) || clearInterval(e(this, O));
85
85
  }, 50));
86
86
  }, 500));
87
87
  }, "delayScroll"), s = /* @__PURE__ */ a(() => {
88
- clearInterval(e(this, O)), clearInterval(e(this, W));
88
+ clearInterval(e(this, W)), clearInterval(e(this, O));
89
89
  }, "clearTimer");
90
90
  ["mouseup", "mouseleave", "touchend"].forEach((n) => {
91
- e(this, y).left.addEventListener(n, s), e(this, y).right.addEventListener(n, s), e(this, y).track.addEventListener(n, s);
92
- }), e(this, y).left.addEventListener("mousedown", (n) => {
91
+ e(this, b).left.addEventListener(n, s), e(this, b).right.addEventListener(n, s), e(this, b).track.addEventListener(n, s);
92
+ }), e(this, b).left.addEventListener("mousedown", (n) => {
93
93
  n.button === 0 && t(-20);
94
- }), e(this, y).right.addEventListener("mousedown", (n) => {
94
+ }), e(this, b).right.addEventListener("mousedown", (n) => {
95
95
  n.button === 0 && t(20);
96
- }), e(this, y).left.addEventListener("touchstart", () => t(-20)), e(this, y).right.addEventListener("touchstart", () => t(20)), e(this, y).track.addEventListener("mousedown", (n) => {
96
+ }), e(this, b).left.addEventListener("touchstart", () => t(-20)), e(this, b).right.addEventListener("touchstart", () => t(20)), e(this, b).track.addEventListener("mousedown", (n) => {
97
97
  if (n.button !== 0) return;
98
98
  n.preventDefault();
99
- const r = e(this, y).track.getBoundingClientRect(), o = e(this, y).thumb.clientWidth;
99
+ const r = e(this, b).track.getBoundingClientRect(), o = e(this, b).thumb.clientWidth;
100
100
  e(this, D).call(this, n.clientX - r.left - o / 2);
101
- }), e(this, y).thumb.addEventListener("mousedown", (n) => {
101
+ }), e(this, b).thumb.addEventListener("mousedown", (n) => {
102
102
  if (n.button !== 0) return;
103
- n.stopPropagation(), n.preventDefault(), g(this, $, !0), this.shiftX = n.clientX - e(this, y).thumb.getBoundingClientRect().left;
103
+ n.stopPropagation(), n.preventDefault(), g(this, $, !0), this.shiftX = n.clientX - e(this, b).thumb.getBoundingClientRect().left;
104
104
  const r = /* @__PURE__ */ a((l) => {
105
105
  if (!e(this, $)) return;
106
- const d = e(this, y).track.getBoundingClientRect();
106
+ const d = e(this, b).track.getBoundingClientRect();
107
107
  e(this, D).call(this, l.clientX - d.left - this.shiftX);
108
108
  }, "onMouseMove"), o = /* @__PURE__ */ a(() => {
109
109
  g(this, $, !1), s(), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", o), this.refresh();
@@ -183,13 +183,13 @@ const $e = class $e extends HTMLElement {
183
183
  setTimeout(t, 10);
184
184
  return;
185
185
  }
186
- g(this, y, {
186
+ g(this, b, {
187
187
  container: s,
188
188
  track: this.querySelector(".ng-scroll-track"),
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, re).call(this), e(this, ne).call(this), this.refresh();
192
+ }), e(this, ne).call(this), e(this, se).call(this), this.refresh();
193
193
  }, "initWhenReady");
194
194
  t();
195
195
  }
@@ -197,10 +197,10 @@ const $e = class $e extends HTMLElement {
197
197
  e(this, z) && e(this, z).disconnect();
198
198
  }
199
199
  };
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");
200
+ k = new WeakMap(), $ = new WeakMap(), b = new WeakMap(), W = new WeakMap(), O = new WeakMap(), z = new WeakMap(), se = new WeakMap(), D = new WeakMap(), ne = new WeakMap(), a($e, "NineTableHScrollBar");
201
201
  let Re = $e;
202
202
  customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", Re);
203
- var oe, G;
203
+ var re, j;
204
204
  const L = class L {
205
205
  /**
206
206
  * 🎯 λ ˆμ΄μ•„μ›ƒ λ‚΄μ˜ μ—¬λŸ¬ rawTables 배열을 μΌκ΄„λ‘œ λ°›μ•„ 단일 λ§ˆμŠ€ν„° ν…œν”Œλ¦ΏμœΌλ‘œ 사전 μ»΄νŒŒμΌν•©λ‹ˆλ‹€.
@@ -215,7 +215,7 @@ const L = class L {
215
215
  var n, r, o;
216
216
  if (!i) return null;
217
217
  const t = i.cloneNode(!0);
218
- return e(n = L, oe).call(n, t), e(r = L, G).call(r, t, "thead"), e(o = L, G).call(o, t, "tbody"), Array.from(t.querySelectorAll("colgroup col")).forEach((l, d) => {
218
+ return e(n = L, re).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
219
  const h = l.getAttribute("fixed");
220
220
  h && t.querySelectorAll(`[data-col="${d}"]`).forEach((f) => {
221
221
  f.setAttribute("fixed", h);
@@ -223,7 +223,7 @@ const L = class L {
223
223
  }), t;
224
224
  }
225
225
  };
226
- oe = new WeakMap(), G = new WeakMap(), a(L, "TableCompiler"), c(L, oe, /* @__PURE__ */ a((i) => {
226
+ re = new WeakMap(), j = new WeakMap(), a(L, "TableCompiler"), c(L, re, /* @__PURE__ */ a((i) => {
227
227
  if (!i.querySelector("colgroup")) {
228
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
229
  for (let o = 0; o < s; o++) {
@@ -237,7 +237,7 @@ oe = new WeakMap(), G = new WeakMap(), a(L, "TableCompiler"), c(L, oe, /* @__PUR
237
237
  s ? s.after(t) : i.prepend(t);
238
238
  }
239
239
  i.classList.add("nine-table-element"), i.style.display = "table";
240
- }, "#ensureTableStructure")), c(L, G, /* @__PURE__ */ a((i, t) => {
240
+ }, "#ensureTableStructure")), c(L, j, /* @__PURE__ */ a((i, t) => {
241
241
  const s = Array.from(i.querySelectorAll(t + " tr")), n = Array.from(i.querySelectorAll(t + " th," + t + " td")), r = s.length;
242
242
  if (r === 0 || n.length === 0) return;
243
243
  let o = 0;
@@ -248,36 +248,36 @@ oe = new WeakMap(), G = new WeakMap(), a(L, "TableCompiler"), c(L, oe, /* @__PUR
248
248
  s.forEach((d) => {
249
249
  const h = d.sectionRowIndex;
250
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;
251
+ Array.from(d.querySelectorAll("th,td")).forEach((u) => {
252
+ for (let v = 0; v < l[h].length; v++)
253
+ if (l[h][v] === null) {
254
+ f = v;
255
255
  break;
256
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");
257
+ const y = u.rowSpan || 1, w = u.colSpan || 1;
258
+ for (let v = 0; v < y; v++)
259
+ for (let C = 0; C < w; C++)
260
+ h + v < r && f + C < o && (l[h + v][f + C] = v === 0 && C === 0 ? "1" : "0");
261
261
  });
262
262
  }), s.forEach((d) => {
263
263
  const h = d.sectionRowIndex;
264
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";
265
+ for (let u = 0; u < l[h].length; u++)
266
+ if (l[h][u] === "1") {
267
+ f.dataset.col = u, l[h][u] = "0";
268
268
  break;
269
269
  }
270
270
  });
271
271
  });
272
272
  }, "#resetColIndex"));
273
273
  let Ae = L;
274
- var R, _, E, I, N, B, le, He, ae, J, ce, Q;
275
- const Oe = class Oe {
274
+ var E, _, R, I, N, B, oe, He, le, G, ae, ce, J;
275
+ const We = class We {
276
276
  constructor(i) {
277
- c(this, R);
277
+ c(this, E);
278
278
  c(this, _, /* @__PURE__ */ new Map());
279
279
  // 각 μ»¨ν…Œμ΄λ„ˆλ³„ λ…λ¦½λœ ν…œν”Œλ¦Ώ TR 관리
280
- c(this, E, null);
280
+ c(this, R, null);
281
281
  c(this, I, null);
282
282
  c(this, N, 0);
283
283
  c(this, B, 40);
@@ -285,9 +285,9 @@ const Oe = class Oe {
285
285
  * 🎯 NineTableSheetμ—μ„œ λ§ˆμŠ€ν„° ν…Œμ΄λΈ”μ„ 전달받아 각 μ˜μ—­λ³„ ν…Œμ΄λΈ” 생성 및 ν…œν”Œλ¦Ώ μΆ”μΆœ 일원화
286
286
  */
287
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) => {
290
- const s = e(this, R).querySelector(t);
288
+ x(this, "initialize", /* @__PURE__ */ a(() => {
289
+ g(this, R, null), e(this, _).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((t) => {
290
+ const s = e(this, E).querySelector(t);
291
291
  if (!s) return;
292
292
  const n = s.querySelector("table");
293
293
  if (!n) return;
@@ -296,10 +296,10 @@ const Oe = class Oe {
296
296
  const l = Array.from(r.querySelectorAll("tr")).map((d) => d.cloneNode(!0));
297
297
  e(this, _).set(t, l);
298
298
  });
299
- const i = e(this, R).querySelector(".ng-container-body");
300
- i && (e(this, ae).call(this, i), e(this, Q).call(this));
299
+ const i = e(this, E).querySelector(".ng-container-body");
300
+ i && (e(this, le).call(this, i), e(this, J).call(this));
301
301
  }, "initialize"));
302
- c(this, le, /* @__PURE__ */ a((i, t) => {
302
+ c(this, oe, /* @__PURE__ */ a((i, t) => {
303
303
  const s = e(this, _).get(t);
304
304
  if (!s || s.length === 0) return;
305
305
  const n = i.querySelector("tbody");
@@ -326,38 +326,52 @@ const Oe = class Oe {
326
326
  /**
327
327
  * 🎯 ν…œν”Œλ¦Ώ TRλ“€μ˜ 총 높이λ₯Ό μΈ‘μ •ν•˜κ³  캐싱
328
328
  */
329
- c(this, ae, /* @__PURE__ */ a((i) => {
330
- if (e(this, E) !== null && e(this, E) > 0)
331
- return e(this, E);
329
+ c(this, le, /* @__PURE__ */ a((i) => {
330
+ if (e(this, R) !== null && e(this, R) > 0)
331
+ return e(this, R);
332
332
  const t = e(this, _).get(".ng-container-body");
333
333
  if (!t || t.length === 0) return 24;
334
334
  const s = i.querySelector("tbody");
335
335
  if (!s) return 24;
336
- s.querySelectorAll("tr:not(.nodata)").forEach((u) => u.remove());
336
+ s.querySelectorAll("tr:not(.nodata)").forEach((y) => y.remove());
337
337
  const n = s.querySelector("tr.nodata"), r = document.createDocumentFragment();
338
- t.forEach((u) => {
339
- r.appendChild(u.cloneNode(!0));
338
+ t.forEach((y) => {
339
+ r.appendChild(y.cloneNode(!0));
340
340
  }), n ? n.before(r) : s.appendChild(r);
341
- const o = e(this, R), l = o.style.display, d = o.style.visibility, h = o.style.position;
341
+ const o = e(this, E), l = o.style.display, d = o.style.visibility, h = o.style.position;
342
342
  (l === "none" || window.getComputedStyle(o).display === "none") && (o.style.display = "block", o.style.visibility = "hidden", o.style.position = "absolute");
343
343
  let f = 0;
344
- const b = s.querySelectorAll("tr:not(.nodata)");
345
- return b.forEach((u) => {
346
- f += u.offsetHeight || u.getBoundingClientRect().height;
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, J).call(this), j.log(`[RowManager] Height Cached: ${e(this, E)}px | RowCount: ${e(this, B)}`), e(this, E);
344
+ const u = s.querySelectorAll("tr:not(.nodata)");
345
+ return u.forEach((y) => {
346
+ f += y.offsetHeight || y.getBoundingClientRect().height;
347
+ }), u.forEach((y) => y.remove()), o.style.display = l, o.style.visibility = d, o.style.position = h, g(this, R, f > 0 ? f : 24), e(this, G).call(this), F.log(`[RowManager] Height Cached: ${e(this, R)}px | RowCount: ${e(this, B)}`), e(this, R);
348
348
  }, "#measureAndCacheHeight"));
349
- c(this, J, /* @__PURE__ */ a(() => {
350
- if (e(this, N) > 0 && e(this, E) > 0) {
351
- const i = Math.ceil(e(this, N) / e(this, E));
349
+ c(this, G, /* @__PURE__ */ a(() => {
350
+ if (e(this, N) > 0 && e(this, R) > 0) {
351
+ const i = Math.ceil(e(this, N) / e(this, R));
352
352
  g(this, B, i + 20);
353
353
  } else
354
354
  g(this, B, 40);
355
355
  }, "#updateRowCount"));
356
+ c(this, ae, /* @__PURE__ */ a(() => {
357
+ var d, h, f;
358
+ const i = e(this, E).querySelector(".ng-container-left table"), t = e(this, E).querySelector(".ng-container-body table"), s = e(this, E).querySelector(".ng-container-right table");
359
+ if (!t) return;
360
+ const n = i ? Array.from(i.querySelectorAll("tr")) : [], r = Array.from(t.querySelectorAll("tr")), o = s ? Array.from(s.querySelectorAll("tr")) : [], l = Math.max(n.length, r.length, o.length);
361
+ for (let u = 0; u < l; u++) {
362
+ const y = [
363
+ ((d = n[u]) == null ? void 0 : d.getBoundingClientRect().height) || 0,
364
+ ((h = r[u]) == null ? void 0 : h.getBoundingClientRect().height) || 0,
365
+ ((f = o[u]) == null ? void 0 : f.getBoundingClientRect().height) || 0
366
+ ], w = Math.max(...y);
367
+ w > 0 && (n[u] && (n[u].style.height = `${w}px`), r[u] && (r[u].style.height = `${w}px`), o[u] && (o[u].style.height = `${w}px`));
368
+ }
369
+ }, "#syncRowHeights"));
356
370
  /**
357
371
  * 🎯 ResizeObserver μ„€μ •: μ‹œνŠΈ 크기 λ³€κ²½ μ‹œ ν–‰ 개수 μž¬μ‚°μ • 및 μž¬λ Œλ”λ§
358
372
  */
359
373
  c(this, ce, /* @__PURE__ */ a(() => {
360
- !e(this, R) || !(e(this, R) instanceof HTMLElement) || (g(this, I, new ResizeObserver((i) => {
374
+ !e(this, E) || !(e(this, E) instanceof HTMLElement) || (g(this, I, new ResizeObserver((i) => {
361
375
  for (const t of i) {
362
376
  const s = t.target;
363
377
  if (!s.classList.contains("active")) continue;
@@ -367,37 +381,37 @@ const Oe = class Oe {
367
381
  const o = s.querySelector("thead");
368
382
  o && (r += o.offsetHeight || o.getBoundingClientRect().height);
369
383
  const l = Math.max(n - r, 100);
370
- e(this, N) !== l && (g(this, N, l), e(this, J).call(this), e(this, E) !== null && e(this, Q).call(this));
384
+ e(this, N) !== l && (g(this, N, l), e(this, G).call(this), e(this, R) !== null && e(this, J).call(this));
371
385
  }
372
386
  }
373
- })), e(this, I).observe(e(this, R)));
387
+ })), e(this, I).observe(e(this, E)));
374
388
  }, "#initResizeObserver"));
375
389
  /**
376
390
  * 🎯 λ°”λ”” 및 쒌우 κ³ μ • μ»¨ν…Œμ΄λ„ˆ 전체에 각각에 λ§žλŠ” ν…œν”Œλ¦Ώ ν–‰ λΌˆλŒ€ μ£Όμž…
377
391
  */
378
- c(this, Q, /* @__PURE__ */ a(() => {
392
+ c(this, J, /* @__PURE__ */ a(() => {
379
393
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
380
- const t = e(this, R).querySelector(i);
381
- t && t.querySelector("tbody") && e(this, le).call(this, t, i);
382
- }), typeof e(this, R).syncRowHeights == "function" && e(this, R).syncRowHeights();
394
+ const t = e(this, E).querySelector(i);
395
+ t && t.querySelector("tbody") && e(this, oe).call(this, t, i);
396
+ }), e(this, ae).call(this);
383
397
  }, "#renderAllContainers"));
384
- v(this, "destroy", /* @__PURE__ */ a(() => {
398
+ x(this, "destroy", /* @__PURE__ */ a(() => {
385
399
  e(this, I) && (e(this, I).disconnect(), g(this, I, null));
386
400
  }, "destroy"));
387
- g(this, R, i), e(this, ce).call(this);
401
+ g(this, E, i), e(this, ce).call(this);
388
402
  }
389
403
  getRowHeight() {
390
- return e(this, E);
404
+ return e(this, R);
391
405
  }
392
406
  templateLength(i = ".ng-container-body") {
393
407
  var t;
394
408
  return ((t = e(this, _).get(i)) == null ? void 0 : t.length) || 1;
395
409
  }
396
410
  };
397
- R = 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(), J = new WeakMap(), ce = new WeakMap(), Q = new WeakMap(), a(Oe, "RowManager");
398
- let qe = Oe;
399
- var X, Y, he, de, fe, U, ue, ge;
400
- const F = class F extends HTMLElement {
411
+ E = new WeakMap(), _ = new WeakMap(), R = new WeakMap(), I = new WeakMap(), N = new WeakMap(), B = new WeakMap(), oe = new WeakMap(), He = new WeakMap(), le = new WeakMap(), G = new WeakMap(), ae = new WeakMap(), ce = new WeakMap(), J = new WeakMap(), a(We, "RowManager");
412
+ let qe = We;
413
+ var X, Y, he, de, fe, ue, ge;
414
+ const Z = class Z extends HTMLElement {
401
415
  constructor() {
402
416
  super();
403
417
  c(this, X, null);
@@ -425,7 +439,7 @@ const F = class F extends HTMLElement {
425
439
  }), s.style.flex = `0 0 ${r}px`, s.style.width = `${r}px`;
426
440
  });
427
441
  }, "#updateContainerWidths"));
428
- v(this, "generate", /* @__PURE__ */ a((t) => {
442
+ x(this, "generate", /* @__PURE__ */ a((t) => {
429
443
  if (!t) return;
430
444
  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);
431
445
  const s = this.querySelector(".ng-container-body");
@@ -434,7 +448,7 @@ const F = class F extends HTMLElement {
434
448
  (n = this.querySelector("nine-table-hscrollbar")) == null || n.refresh();
435
449
  }), setTimeout(() => {
436
450
  var n;
437
- e(this, U).call(this), (n = this.querySelector("nine-table-hscrollbar")) == null || n.refresh();
451
+ (n = this.querySelector("nine-table-hscrollbar")) == null || n.refresh();
438
452
  }, 0);
439
453
  }, "generate"));
440
454
  /**
@@ -450,40 +464,20 @@ const F = class F extends HTMLElement {
450
464
  r.remove();
451
465
  }), n;
452
466
  }, "#createSplitTable"));
453
- v(this, "getRowHeight", /* @__PURE__ */ a(() => e(this, Y).getRowHeight(), "getRowHeight"));
454
- v(this, "scrollToX", /* @__PURE__ */ a((t) => {
467
+ x(this, "getRowHeight", /* @__PURE__ */ a(() => e(this, Y).getRowHeight(), "getRowHeight"));
468
+ x(this, "scrollToX", /* @__PURE__ */ a((t) => {
455
469
  const s = this.querySelector(".ng-container-body");
456
470
  s && (s.scrollLeft = t);
457
471
  }, "scrollToX"));
458
- v(this, "scrollToY", /* @__PURE__ */ a((t) => {
472
+ x(this, "scrollToY", /* @__PURE__ */ a((t) => {
459
473
  const s = this.querySelector(".ng-container-body");
460
474
  s && (s.scrollTop = t);
461
475
  }, "scrollToY"));
462
- v(this, "syncRowHeights", /* @__PURE__ */ a(() => {
463
- e(this, U).call(this);
464
- }, "syncRowHeights"));
465
- c(this, U, /* @__PURE__ */ a(() => {
466
- var h, f, b;
467
- const t = this.querySelector(".ng-container-left table"), s = this.querySelector(".ng-container-body table"), n = this.querySelector(".ng-container-right table");
468
- if (!s) return;
469
- 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);
470
- for (let u = 0; u < d; u++) {
471
- const x = [
472
- ((h = r[u]) == null ? void 0 : h.getBoundingClientRect().height) || 0,
473
- ((f = o[u]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
474
- ((b = l[u]) == null ? void 0 : b.getBoundingClientRect().height) || 0
475
- ], w = Math.max(...x);
476
- 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`));
477
- }
478
- }, "#syncRowHeights"));
479
476
  c(this, ue, /* @__PURE__ */ a(() => {
480
- e(this, ge).call(this), new MutationObserver((t) => {
481
- for (const s of t)
482
- s.attributeName === "class" && this.classList.contains("active") && e(this, U).call(this);
483
- }).observe(this, { attributes: !0 });
477
+ e(this, ge).call(this);
484
478
  }, "#init"));
485
479
  c(this, ge, /* @__PURE__ */ a(() => {
486
- const t = F.SCROLLBAR_SIZE;
480
+ const t = Z.SCROLLBAR_SIZE;
487
481
  this.innerHTML = `
488
482
  <style>
489
483
  nine-table-sheet {
@@ -612,14 +606,14 @@ const F = class F extends HTMLElement {
612
606
  e(this, ue).call(this);
613
607
  }
614
608
  disconnectedCallback() {
615
- this.innerHTML = "", j.log("NineTableSheet destroyed.");
609
+ this.innerHTML = "", F.log("NineTableSheet destroyed.");
616
610
  }
617
611
  };
618
- X = new WeakMap(), Y = new WeakMap(), he = new WeakMap(), de = new WeakMap(), fe = new WeakMap(), U = new WeakMap(), ue = new WeakMap(), ge = new WeakMap(), a(F, "NineTableSheet"), v(F, "SCROLLBAR_SIZE", 16);
619
- let se = F;
620
- customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", se);
621
- var be, ee;
622
- const We = class We extends HTMLElement {
612
+ X = new WeakMap(), Y = new WeakMap(), he = new WeakMap(), de = new WeakMap(), fe = new WeakMap(), ue = new WeakMap(), ge = new WeakMap(), a(Z, "NineTableSheet"), x(Z, "SCROLLBAR_SIZE", 16);
613
+ let ie = Z;
614
+ customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", ie);
615
+ var be, Q;
616
+ const Oe = class Oe extends HTMLElement {
623
617
  constructor() {
624
618
  super();
625
619
  c(this, be, /* @__PURE__ */ a(() => {
@@ -627,34 +621,34 @@ const We = class We extends HTMLElement {
627
621
  (t = this.querySelector(".nine-tab-bar")) == null || t.addEventListener("click", (s) => {
628
622
  var o;
629
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);
630
- e(this, ee).call(this, r, n);
631
- }), e(this, ee).call(this, 0, !1);
624
+ e(this, Q).call(this, r, n);
625
+ }), e(this, Q).call(this, 0, !1);
632
626
  }, "#init"));
633
- c(this, ee, /* @__PURE__ */ a((t, s = !1) => {
627
+ c(this, Q, /* @__PURE__ */ a((t, s = !1) => {
634
628
  const n = /* @__PURE__ */ a(() => {
635
629
  const f = Array.from(this.querySelectorAll("nine-table-sheet"));
636
- Array.from(this.querySelectorAll("nine-splitter")).forEach((x) => x.style.setProperty("display", "none"));
637
- const u = f.filter((x) => x.classList.contains("active"));
638
- u.length < 2 || u.forEach((x) => {
639
- const w = parseInt(x.getAttribute("data-index"), 10), C = this.querySelector(`nine-splitter[data-split-index="${w}"]`), Pe = f[w + 1];
630
+ Array.from(this.querySelectorAll("nine-splitter")).forEach((w) => w.style.setProperty("display", "none"));
631
+ const y = f.filter((w) => w.classList.contains("active"));
632
+ y.length < 2 || y.forEach((w) => {
633
+ const v = parseInt(w.getAttribute("data-index"), 10), C = this.querySelector(`nine-splitter[data-split-index="${v}"]`), Pe = f[v + 1];
640
634
  C && Pe && Pe.classList.contains("active") && C.style.setProperty("display", "flex");
641
635
  });
642
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");
643
637
  if (!l[t]) return;
644
638
  if (!s)
645
- l.forEach((f, b) => {
646
- f.classList.toggle("active", b === t);
647
- }), d.forEach((f, b) => {
648
- const u = b === t;
649
- f.classList.toggle("active", u), f.style.flex = u ? "1 1 100%" : "";
639
+ l.forEach((f, u) => {
640
+ f.classList.toggle("active", u === t);
641
+ }), d.forEach((f, u) => {
642
+ const y = u === t;
643
+ f.classList.toggle("active", y), f.style.flex = y ? "1 1 100%" : "";
650
644
  });
651
645
  else {
652
- const f = l[t], b = r.querySelectorAll(".nine-tab-item.active");
653
- if (f.classList.contains("active") && b.length <= 1)
646
+ const f = l[t], u = r.querySelectorAll(".nine-tab-item.active");
647
+ if (f.classList.contains("active") && u.length <= 1)
654
648
  return;
655
649
  f.classList.toggle("active");
656
- const u = o.querySelector(`nine-table-sheet[data-index="${t}"]`);
657
- u && (u.classList.toggle("active"), u.classList.contains("active") || (u.style.flex = ""));
650
+ const y = o.querySelector(`nine-table-sheet[data-index="${t}"]`);
651
+ y && (y.classList.toggle("active"), y.classList.contains("active") || (y.style.flex = ""));
658
652
  }
659
653
  const h = o.querySelectorAll("nine-table-sheet.active");
660
654
  h == null || h.forEach((f) => {
@@ -666,30 +660,30 @@ const We = class We extends HTMLElement {
666
660
  e(this, be).call(this);
667
661
  }
668
662
  };
669
- be = new WeakMap(), ee = new WeakMap(), a(We, "NineTableSheets");
670
- let Te = We;
663
+ be = new WeakMap(), Q = new WeakMap(), a(Oe, "NineTableSheets");
664
+ let Te = Oe;
671
665
  customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Te);
672
- var S, ye, te, pe;
666
+ var S, ye, ee, pe;
673
667
  const ze = class ze {
674
668
  constructor(i) {
675
669
  c(this, S);
676
670
  c(this, ye, /* @__PURE__ */ a(() => {
677
671
  e(this, pe).call(this), new ResizeObserver((i) => {
678
672
  for (let t of i)
679
- e(this, S).getAttribute("auto-height") === "true" && e(this, te).call(this);
673
+ e(this, S).getAttribute("auto-height") === "true" && e(this, ee).call(this);
680
674
  }).observe(e(this, S));
681
675
  }, "#init"));
682
- c(this, te, /* @__PURE__ */ a(() => {
676
+ c(this, ee, /* @__PURE__ */ a(() => {
683
677
  var d, h;
684
678
  const i = Array.from(e(this, S).shadowRoot.querySelectorAll("nine-table-sheet.active"));
685
679
  if (i.length === 0) return;
686
- 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;
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 = ie.SCROLLBAR_SIZE, l = t * s + n + r + o;
687
681
  e(this, S).style.height = `${l}px`;
688
682
  }, "#applyAutoHeight"));
689
683
  c(this, pe, /* @__PURE__ */ a(() => {
690
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) => {
691
- 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>` : "";
692
- return b + u;
685
+ const u = `<nine-table-sheet class="${h === 0 ? "active" : ""}" data-index="${h}"></nine-table-sheet>`, y = h < n - 1 ? `<nine-splitter class="h" data-split-index="${h}"></nine-splitter>` : "";
686
+ return u + y;
693
687
  }).join(""), o = t.map((d, h) => `<div class="nine-tab-item ${h === 0 ? "active" : ""}" data-index="${h}">Sheet ${h + 1}</div>`).join("");
694
688
  e(this, S).shadowRoot.innerHTML = `
695
689
  <style>
@@ -793,21 +787,21 @@ const ze = class ze {
793
787
  const l = e(this, S).shadowRoot.querySelectorAll("nine-table-sheet");
794
788
  l == null || l.forEach((d, h) => {
795
789
  t[h] && setTimeout(() => {
796
- d.generate(t[h]), s && e(this, te).call(this);
790
+ d.generate(t[h]), s && e(this, ee).call(this);
797
791
  });
798
792
  });
799
793
  }, "#render"));
800
794
  g(this, S, i), e(this, ye).call(this);
801
795
  }
802
796
  };
803
- S = new WeakMap(), ye = new WeakMap(), te = new WeakMap(), pe = new WeakMap(), a(ze, "LayoutManager");
797
+ S = new WeakMap(), ye = new WeakMap(), ee = new WeakMap(), pe = new WeakMap(), a(ze, "LayoutManager");
804
798
  let ke = ze;
805
799
  var H, P;
806
800
  const De = class De {
807
801
  constructor(i) {
808
802
  c(this, H);
809
803
  c(this, P, -1);
810
- v(this, "count", /* @__PURE__ */ a(() => e(this, H).rawRecords.length, "count"));
804
+ x(this, "count", /* @__PURE__ */ a(() => e(this, H).rawRecords.length, "count"));
811
805
  g(this, H, i);
812
806
  }
813
807
  get at() {
@@ -825,13 +819,13 @@ const De = class De {
825
819
  };
826
820
  H = new WeakMap(), P = new WeakMap(), a(De, "ngRow");
827
821
  let Le = De;
828
- var A, m, q, K, me, M, we, ie, ve, xe, Z;
822
+ var A, m, q, U, me, M, we, te, xe, ve, K;
829
823
  const T = class T {
830
824
  constructor(i, t) {
831
825
  c(this, A);
832
826
  c(this, m);
833
827
  c(this, q, []);
834
- c(this, K, []);
828
+ c(this, U, []);
835
829
  c(this, me, 0);
836
830
  c(this, M, []);
837
831
  c(this, we, /* @__PURE__ */ a(() => {
@@ -841,13 +835,13 @@ const T = class T {
841
835
  var s;
842
836
  e(this, M).push(((s = t.getBoundingClientRect) == null ? void 0 : s.call(t).height) || 24);
843
837
  }), (e(this, m).rawRecords || []).forEach((t) => {
844
- t.__ng || (t.__ng = e(this, ie).call(this)), t.__ng.height = e(this, M).slice();
838
+ t.__ng || (t.__ng = e(this, te).call(this)), t.__ng.height = e(this, M).slice();
845
839
  });
846
840
  }, "#initialize"));
847
- v(this, "set", /* @__PURE__ */ a((i) => {
841
+ x(this, "set", /* @__PURE__ */ a((i) => {
848
842
  this.clear(), this.add(i, !1);
849
843
  }, "set"));
850
- c(this, ie, /* @__PURE__ */ a(() => ({
844
+ c(this, te, /* @__PURE__ */ a(() => ({
851
845
  rowState: T.ROW_STATE.EMPTY,
852
846
  deleted: !1,
853
847
  filtered: !1,
@@ -856,14 +850,14 @@ const T = class T {
856
850
  c: {},
857
851
  _: [0, 0, 0, 0, T.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, M).slice(), -1, {}, {}]
858
852
  }), "#getDefaultMeta"));
859
- v(this, "reset", /* @__PURE__ */ a(() => {
860
- g(this, q, []), g(this, K, []);
853
+ x(this, "reset", /* @__PURE__ */ a(() => {
854
+ g(this, q, []), g(this, U, []);
861
855
  }, "reset"));
862
- v(this, "clear", /* @__PURE__ */ a(() => {
856
+ x(this, "clear", /* @__PURE__ */ a(() => {
863
857
  var i;
864
- e(this, m).rawRecords = [], g(this, q, []), g(this, K, []), (i = e(this, m).viewRecords) != null && i.reset && e(this, m).viewRecords.reset();
858
+ e(this, m).rawRecords = [], g(this, q, []), g(this, U, []), (i = e(this, m).viewRecords) != null && i.reset && e(this, m).viewRecords.reset();
865
859
  }, "clear"));
866
- c(this, ve, /* @__PURE__ */ a((i) => {
860
+ c(this, xe, /* @__PURE__ */ a((i) => {
867
861
  var n;
868
862
  Array.isArray(i) || (i = [i]);
869
863
  const t = typeof ((n = e(this, A).fields) == null ? void 0 : n.get) == "function" ? e(this, A).fields.get() : Object.keys(i[0] || {}), s = [];
@@ -874,21 +868,21 @@ const T = class T {
874
868
  }), s.push(o);
875
869
  }), s;
876
870
  }, "#json2Array"));
877
- c(this, xe, /* @__PURE__ */ a((i) => (Array.isArray(i) || (i = [i]), i.forEach((t) => {
878
- t.__ng = e(this, ie).call(this), t.__ng.rowid = this.nextId, t.__ng.rowState = T.ROW_STATE.INSERT, t.__ng._[0] = t.__ng.rowid;
871
+ c(this, ve, /* @__PURE__ */ a((i) => (Array.isArray(i) || (i = [i]), i.forEach((t) => {
872
+ t.__ng = e(this, te).call(this), t.__ng.rowid = this.nextId, t.__ng.rowState = T.ROW_STATE.INSERT, t.__ng._[0] = t.__ng.rowid;
879
873
  }), i), "#defaultInsert"));
880
- v(this, "add", /* @__PURE__ */ a((i, t = !0) => {
874
+ x(this, "add", /* @__PURE__ */ a((i, t = !0) => {
881
875
  var r;
882
876
  i === void 0 && (i = {});
883
- const s = e(this, ve).call(this, i);
884
- e(this, m).rawRecords = e(this, m).rawRecords.concat(e(this, xe).call(this, s)), this.resetRecords();
877
+ const s = e(this, xe).call(this, i);
878
+ e(this, m).rawRecords = e(this, m).rawRecords.concat(e(this, ve).call(this, s)), this.resetRecords();
885
879
  const n = this.count() - 1;
886
880
  return t || s.forEach((o, l) => {
887
881
  const d = e(this, m).rawRecords[n - l];
888
882
  d && (d.__ng.rowState = T.ROW_STATE.EMPTY);
889
883
  }), (r = e(this, m).viewRecords) != null && r.reset && e(this, m).viewRecords.reset(), n;
890
884
  }, "add"));
891
- v(this, "delete", /* @__PURE__ */ a((i) => {
885
+ x(this, "delete", /* @__PURE__ */ a((i) => {
892
886
  var s;
893
887
  let t = [];
894
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) => {
@@ -900,7 +894,7 @@ const T = class T {
900
894
  }
901
895
  }), this.resetRecords(), (s = e(this, m).viewRecords) != null && s.reset && e(this, m).viewRecords.reset();
902
896
  }, "delete"));
903
- v(this, "setValue", /* @__PURE__ */ a((i, t, s) => {
897
+ x(this, "setValue", /* @__PURE__ */ a((i, t, s) => {
904
898
  var d;
905
899
  i = parseInt(i, 10);
906
900
  const r = (typeof ((d = e(this, A).fields) == null ? void 0 : d.get) == "function" ? e(this, A).fields.get() : []).indexOf(t);
@@ -910,15 +904,15 @@ const T = class T {
910
904
  const l = o.v[r];
911
905
  l !== s && o.__ng.rowState !== T.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(t) || (o.__ng.o[t] = l), o.__ng.rowState = T.ROW_STATE.UPDATE), o.v[r] = s, e(this, m).owner.refreshData && e(this, m).owner.refreshData(i);
912
906
  }, "setValue"));
913
- v(this, "resetRecords", /* @__PURE__ */ a(() => {
914
- g(this, K, e(this, m).rawRecords.filter((i) => !i.__ng.deleted)), g(this, q, e(this, m).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), e(this, m).rawRecords.forEach((i, t) => {
907
+ x(this, "resetRecords", /* @__PURE__ */ a(() => {
908
+ g(this, U, e(this, m).rawRecords.filter((i) => !i.__ng.deleted)), g(this, q, e(this, m).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), e(this, m).rawRecords.forEach((i, t) => {
915
909
  i.__ng.rowidx = t;
916
910
  }), e(this, q).forEach((i, t) => {
917
911
  i.__ng.i = t;
918
912
  });
919
913
  }, "resetRecords"));
920
- v(this, "getValidData", /* @__PURE__ */ a(() => (e(this, q).length === 0 && e(this, m).rawRecords.length > 0 && this.resetRecords(), e(this, q)), "getValidData"));
921
- c(this, Z, /* @__PURE__ */ a((i) => {
914
+ x(this, "getValidData", /* @__PURE__ */ a(() => (e(this, q).length === 0 && e(this, m).rawRecords.length > 0 && this.resetRecords(), e(this, q)), "getValidData"));
915
+ c(this, K, /* @__PURE__ */ a((i) => {
922
916
  var s;
923
917
  if (!i) return i;
924
918
  const t = typeof ((s = e(this, A).fields) == null ? void 0 : s.get) == "function" ? e(this, A).fields.get() : [];
@@ -929,24 +923,24 @@ const T = class T {
929
923
  }), r.__ng = n.__ng, r;
930
924
  }) : i;
931
925
  }, "#conv2"));
932
- v(this, "count", /* @__PURE__ */ a(() => this.getValidData().length, "count"));
933
- v(this, "get", /* @__PURE__ */ a((i, t) => {
926
+ x(this, "count", /* @__PURE__ */ a(() => this.getValidData().length, "count"));
927
+ x(this, "get", /* @__PURE__ */ a((i, t) => {
934
928
  var r;
935
929
  const s = this.getValidData();
936
930
  if (!s || s.length <= 0) return;
937
- if (i == null) return e(this, Z).call(this, s);
931
+ if (i == null) return e(this, K).call(this, s);
938
932
  if (i < 0 || i >= s.length) return null;
939
933
  const n = typeof ((r = e(this, A).fields) == null ? void 0 : r.get) == "function" ? e(this, A).fields.get() : [];
940
934
  if (t != null) {
941
935
  const o = n.indexOf(t);
942
936
  return o >= 0 ? s[i].v[o] : null;
943
937
  }
944
- return e(this, Z).call(this, s[i]);
938
+ return e(this, K).call(this, s[i]);
945
939
  }, "get"));
946
940
  g(this, A, i), g(this, m, t), e(this, we).call(this);
947
941
  }
948
942
  get source() {
949
- return e(this, Z).call(this, e(this, m).rawRecords);
943
+ return e(this, K).call(this, e(this, m).rawRecords);
950
944
  }
951
945
  set source(i) {
952
946
  this.clear(), this.add(i, !1);
@@ -961,8 +955,8 @@ const T = class T {
961
955
  return this.length;
962
956
  }
963
957
  };
964
- A = new WeakMap(), m = new WeakMap(), q = new WeakMap(), K = new WeakMap(), me = new WeakMap(), M = new WeakMap(), we = new WeakMap(), ie = new WeakMap(), ve = new WeakMap(), xe = new WeakMap(), Z = new WeakMap(), a(T, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
965
- v(T, "ROW_STATE", {
958
+ A = new WeakMap(), m = new WeakMap(), q = new WeakMap(), U = new WeakMap(), me = new WeakMap(), M = new WeakMap(), we = new WeakMap(), te = new WeakMap(), xe = new WeakMap(), ve = new WeakMap(), K = new WeakMap(), a(T, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
959
+ x(T, "ROW_STATE", {
966
960
  EMPTY: "EMPTY",
967
961
  NORMAL: "NORMAL",
968
962
  INSERT: "INSERT",
@@ -1001,10 +995,10 @@ const Be = class Be extends HTMLElement {
1001
995
  this.attachShadow({ mode: "open" }), g(this, V, new _e(this));
1002
996
  }
1003
997
  connectedCallback() {
1004
- g(this, Se, new ke(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 } }));
1005
999
  }
1006
1000
  disconnectedCallback() {
1007
- j.log("NineTable disconnected.");
1001
+ F.log("NineTable disconnected.");
1008
1002
  }
1009
1003
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
1010
1004
  get data() {