@ninebone/table 0.0.283 β†’ 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.
@@ -1,12 +1,12 @@
1
- var Pe = Object.defineProperty;
2
- var Ve = (p) => {
1
+ var Ve = Object.defineProperty;
2
+ var Xe = (p) => {
3
3
  throw TypeError(p);
4
4
  };
5
- var Ue = (p, i, t) => i in p ? Pe(p, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[i] = t;
6
- var a = (p, i) => Pe(p, "name", { value: i, configurable: !0 });
7
- var v = (p, i, t) => Ue(p, typeof i != "symbol" ? i + "" : i, t), Xe = (p, i, t) => i.has(p) || Ve("Cannot " + t);
8
- var e = (p, i, t) => (Xe(p, i, "read from private field"), t ? t.call(p) : i.get(p)), c = (p, i, t) => i.has(p) ? Ve("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(p) : i.set(p, t), g = (p, i, t, s) => (Xe(p, i, "write to private field"), s ? s.call(p, t) : i.set(p, t), t);
9
- var Ye = (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 x = (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,24 +14,24 @@ var Ye = (p, i, t, s) => ({
14
14
  return e(p, i, s);
15
15
  }
16
16
  });
17
- import { trace as Ke } from "@ninebone/util";
18
- const He = class He extends Ke.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(He, "Trace");
24
- let Se = He;
25
- const F = new Se();
26
- var k, $, y, O, W, z, se, D, ne;
27
- const Me = class Me extends HTMLElement {
23
+ a(Me, "Trace");
24
+ let Ee = Me;
25
+ const F = new Ee();
26
+ var k, $, b, W, O, z, se, D, ne;
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
36
  c(this, se, /* @__PURE__ */ a(() => {
37
37
  if (!e(this, k)) return;
@@ -40,11 +40,11 @@ const Me = class Me extends HTMLElement {
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 Me = class Me 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`, F.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
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,7 +183,7 @@ const Me = class Me 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"),
@@ -197,9 +197,9 @@ const Me = class Me 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(), se = new WeakMap(), D = new WeakMap(), ne = new WeakMap(), a(Me, "NineTableHScrollBar");
201
- let Ee = Me;
202
- customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", Ee);
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
+ let Re = $e;
202
+ customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", Re);
203
203
  var re, j;
204
204
  const L = class L {
205
205
  /**
@@ -248,36 +248,36 @@ re = new WeakMap(), j = new WeakMap(), a(L, "TableCompiler"), c(L, re, /* @__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
- let Re = L;
274
- var R, _, E, I, N, B, oe, Ie, le, G, ae, J;
275
- const $e = class $e {
273
+ let Ae = L;
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 $e = class $e {
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,7 +296,7 @@ const $e = class $e {
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");
299
+ const i = e(this, E).querySelector(".ng-container-body");
300
300
  i && (e(this, le).call(this, i), e(this, J).call(this));
301
301
  }, "initialize"));
302
302
  c(this, oe, /* @__PURE__ */ a((i, t) => {
@@ -315,7 +315,7 @@ const $e = class $e {
315
315
  /**
316
316
  * 🎯 λ§ˆμŠ€ν„° ν…Œμ΄λΈ”μ„ 기반으둜 νŠΉμ • fixed νƒ€μž… μ˜μ—­λ§Œ λ‚¨κΈ°κ±°λ‚˜ μ œκ±°ν•˜λŠ” λΆ„ν•  헬퍼
317
317
  */
318
- c(this, Ie, /* @__PURE__ */ a((i, t) => {
318
+ c(this, He, /* @__PURE__ */ a((i, t) => {
319
319
  const s = i.cloneNode(!0);
320
320
  return t === "left" ? s.querySelectorAll("col, th, td").forEach((n) => {
321
321
  n.getAttribute("fixed") !== "left" && n.remove();
@@ -327,37 +327,51 @@ const $e = class $e {
327
327
  * 🎯 ν…œν”Œλ¦Ώ TRλ“€μ˜ 총 높이λ₯Ό μΈ‘μ •ν•˜κ³  캐싱
328
328
  */
329
329
  c(this, le, /* @__PURE__ */ a((i) => {
330
- if (e(this, E) !== null && e(this, E) > 0)
331
- return e(this, E);
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, G).call(this), F.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
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));
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
- c(this, ae, /* @__PURE__ */ a(() => {
360
- !e(this, R) || !(e(this, R) instanceof HTMLElement) || (g(this, I, new ResizeObserver((i) => {
373
+ c(this, ce, /* @__PURE__ */ a(() => {
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,42 +381,42 @@ const $e = class $e {
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, G).call(this), e(this, E) !== null && e(this, J).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
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);
394
+ const t = e(this, E).querySelector(i);
381
395
  t && t.querySelector("tbody") && e(this, oe).call(this, t, i);
382
- }), typeof e(this, R).syncRowHeights == "function" && e(this, R).syncRowHeights();
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, ae).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(), oe = new WeakMap(), Ie = new WeakMap(), le = new WeakMap(), G = new WeakMap(), ae = new WeakMap(), J = new WeakMap(), a($e, "RowManager");
398
- let Ae = $e;
399
- var X, Y, ce, he, de, fe, ue;
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;
400
414
  const Z = class Z extends HTMLElement {
401
415
  constructor() {
402
416
  super();
403
417
  c(this, X, null);
404
418
  c(this, Y);
405
- c(this, ce, /* @__PURE__ */ a(() => {
419
+ c(this, he, /* @__PURE__ */ a(() => {
406
420
  [
407
421
  { selector: ".ng-container-body", type: null },
408
422
  { selector: ".ng-container-left", type: "left" },
@@ -410,11 +424,11 @@ const Z = class Z extends HTMLElement {
410
424
  ].forEach(({ selector: s, type: n }) => {
411
425
  const r = this.querySelector(s);
412
426
  if (!r) return;
413
- const o = e(this, de).call(this, e(this, X), n);
427
+ const o = e(this, fe).call(this, e(this, X), n);
414
428
  r.innerHTML = "", r.appendChild(o);
415
429
  });
416
430
  }, "#renderSplitContainers"));
417
- c(this, he, /* @__PURE__ */ a(() => {
431
+ c(this, de, /* @__PURE__ */ a(() => {
418
432
  ["left", "right"].forEach((t) => {
419
433
  const s = this.querySelector(`.ng-container-${t}`), n = s == null ? void 0 : s.querySelector("table");
420
434
  if (!s || !n) return;
@@ -425,9 +439,9 @@ const Z = class Z 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
- g(this, X, Re.compile(t)), e(this, X).style.display = "table", e(this, ce).call(this), e(this, Y).initialize(), e(this, he).call(this);
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");
432
446
  s && s.addEventListener("scroll", () => {
433
447
  var n;
@@ -440,7 +454,7 @@ const Z = class Z extends HTMLElement {
440
454
  /**
441
455
  * 🎯 λ§ˆμŠ€ν„° ν…Œμ΄λΈ”μ„ 기반으둜 νŠΉμ • fixed νƒ€μž… μ˜μ—­λ§Œ λ‚¨κΈ°λŠ” λΆ„ν•  헬퍼
442
456
  */
443
- c(this, de, /* @__PURE__ */ a((t, s) => {
457
+ c(this, fe, /* @__PURE__ */ a((t, s) => {
444
458
  const n = t.cloneNode(!0);
445
459
  return s === "left" ? n.querySelectorAll("col, th, td").forEach((r) => {
446
460
  r.getAttribute("fixed") !== "left" && r.remove();
@@ -450,36 +464,19 @@ const Z = class Z 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
- var h, f, b;
464
- const t = this.querySelector(".ng-container-left table"), s = this.querySelector(".ng-container-body table"), n = this.querySelector(".ng-container-right table");
465
- if (!s) return;
466
- 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);
467
- for (let u = 0; u < d; u++) {
468
- const x = [
469
- ((h = r[u]) == null ? void 0 : h.getBoundingClientRect().height) || 0,
470
- ((f = o[u]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
471
- ((b = l[u]) == null ? void 0 : b.getBoundingClientRect().height) || 0
472
- ], w = Math.max(...x);
473
- 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`));
474
- }
475
- }, "syncRowHeights"));
476
- c(this, fe, /* @__PURE__ */ a(() => {
477
- e(this, ue).call(this), new MutationObserver((t) => {
478
- for (const s of t)
479
- s.attributeName === "class" && this.classList.contains("active");
480
- }).observe(this, { attributes: !0 });
481
- }, "#init"));
482
476
  c(this, ue, /* @__PURE__ */ a(() => {
477
+ e(this, ge).call(this);
478
+ }, "#init"));
479
+ c(this, ge, /* @__PURE__ */ a(() => {
483
480
  const t = Z.SCROLLBAR_SIZE;
484
481
  this.innerHTML = `
485
482
  <style>
@@ -603,23 +600,23 @@ const Z = class Z extends HTMLElement {
603
600
  </div>
604
601
  `;
605
602
  }, "#render"));
606
- g(this, Y, new Ae(this));
603
+ g(this, Y, new qe(this));
607
604
  }
608
605
  connectedCallback() {
609
- e(this, fe).call(this);
606
+ e(this, ue).call(this);
610
607
  }
611
608
  disconnectedCallback() {
612
609
  this.innerHTML = "", F.log("NineTableSheet destroyed.");
613
610
  }
614
611
  };
615
- X = new WeakMap(), Y = new WeakMap(), ce = new WeakMap(), he = new WeakMap(), de = new WeakMap(), fe = new WeakMap(), ue = new WeakMap(), a(Z, "NineTableSheet"), v(Z, "SCROLLBAR_SIZE", 16);
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);
616
613
  let ie = Z;
617
614
  customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", ie);
618
- var ge, Q;
615
+ var be, Q;
619
616
  const Oe = class Oe extends HTMLElement {
620
617
  constructor() {
621
618
  super();
622
- c(this, ge, /* @__PURE__ */ a(() => {
619
+ c(this, be, /* @__PURE__ */ a(() => {
623
620
  var t;
624
621
  (t = this.querySelector(".nine-tab-bar")) == null || t.addEventListener("click", (s) => {
625
622
  var o;
@@ -630,28 +627,28 @@ const Oe = class Oe extends HTMLElement {
630
627
  c(this, Q, /* @__PURE__ */ a((t, s = !1) => {
631
628
  const n = /* @__PURE__ */ a(() => {
632
629
  const f = Array.from(this.querySelectorAll("nine-table-sheet"));
633
- Array.from(this.querySelectorAll("nine-splitter")).forEach((x) => x.style.setProperty("display", "none"));
634
- const u = f.filter((x) => x.classList.contains("active"));
635
- u.length < 2 || u.forEach((x) => {
636
- const w = parseInt(x.getAttribute("data-index"), 10), C = this.querySelector(`nine-splitter[data-split-index="${w}"]`), Be = f[w + 1];
637
- C && Be && Be.classList.contains("active") && C.style.setProperty("display", "flex");
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];
634
+ C && Pe && Pe.classList.contains("active") && C.style.setProperty("display", "flex");
638
635
  });
639
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");
640
637
  if (!l[t]) return;
641
638
  if (!s)
642
- l.forEach((f, b) => {
643
- f.classList.toggle("active", b === t);
644
- }), d.forEach((f, b) => {
645
- const u = b === t;
646
- 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%" : "";
647
644
  });
648
645
  else {
649
- const f = l[t], b = r.querySelectorAll(".nine-tab-item.active");
650
- 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)
651
648
  return;
652
649
  f.classList.toggle("active");
653
- const u = o.querySelector(`nine-table-sheet[data-index="${t}"]`);
654
- 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 = ""));
655
652
  }
656
653
  const h = o.querySelectorAll("nine-table-sheet.active");
657
654
  h == null || h.forEach((f) => {
@@ -660,18 +657,18 @@ const Oe = class Oe extends HTMLElement {
660
657
  }, "#switchSheet"));
661
658
  }
662
659
  connectedCallback() {
663
- e(this, ge).call(this);
660
+ e(this, be).call(this);
664
661
  }
665
662
  };
666
- ge = new WeakMap(), Q = new WeakMap(), a(Oe, "NineTableSheets");
667
- let qe = Oe;
668
- customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", qe);
669
- var S, be, ee, ye;
670
- const We = class We {
663
+ be = new WeakMap(), Q = new WeakMap(), a(Oe, "NineTableSheets");
664
+ let Te = Oe;
665
+ customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Te);
666
+ var S, ye, ee, pe;
667
+ const ze = class ze {
671
668
  constructor(i) {
672
669
  c(this, S);
673
- c(this, be, /* @__PURE__ */ a(() => {
674
- e(this, ye).call(this), new ResizeObserver((i) => {
670
+ c(this, ye, /* @__PURE__ */ a(() => {
671
+ e(this, pe).call(this), new ResizeObserver((i) => {
675
672
  for (let t of i)
676
673
  e(this, S).getAttribute("auto-height") === "true" && e(this, ee).call(this);
677
674
  }).observe(e(this, S));
@@ -683,10 +680,10 @@ const We = class We {
683
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;
684
681
  e(this, S).style.height = `${l}px`;
685
682
  }, "#applyAutoHeight"));
686
- c(this, ye, /* @__PURE__ */ a(() => {
683
+ c(this, pe, /* @__PURE__ */ a(() => {
687
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) => {
688
- 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>` : "";
689
- 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;
690
687
  }).join(""), o = t.map((d, h) => `<div class="nine-tab-item ${h === 0 ? "active" : ""}" data-index="${h}">Sheet ${h + 1}</div>`).join("");
691
688
  e(this, S).shadowRoot.innerHTML = `
692
689
  <style>
@@ -794,17 +791,17 @@ const We = class We {
794
791
  });
795
792
  });
796
793
  }, "#render"));
797
- g(this, S, i), e(this, be).call(this);
794
+ g(this, S, i), e(this, ye).call(this);
798
795
  }
799
796
  };
800
- S = new WeakMap(), be = new WeakMap(), ee = new WeakMap(), ye = new WeakMap(), a(We, "LayoutManager");
801
- let Te = We;
797
+ S = new WeakMap(), ye = new WeakMap(), ee = new WeakMap(), pe = new WeakMap(), a(ze, "LayoutManager");
798
+ let ke = ze;
802
799
  var H, P;
803
- const ze = class ze {
800
+ const De = class De {
804
801
  constructor(i) {
805
802
  c(this, H);
806
803
  c(this, P, -1);
807
- v(this, "count", /* @__PURE__ */ a(() => e(this, H).rawRecords.length, "count"));
804
+ x(this, "count", /* @__PURE__ */ a(() => e(this, H).rawRecords.length, "count"));
808
805
  g(this, H, i);
809
806
  }
810
807
  get at() {
@@ -820,18 +817,18 @@ const ze = class ze {
820
817
  });
821
818
  }
822
819
  };
823
- H = new WeakMap(), P = new WeakMap(), a(ze, "ngRow");
824
- let ke = ze;
825
- var A, m, q, U, pe, M, me, te, we, ve, K;
820
+ H = new WeakMap(), P = new WeakMap(), a(De, "ngRow");
821
+ let Le = De;
822
+ var A, m, q, U, me, M, we, te, xe, ve, K;
826
823
  const T = class T {
827
824
  constructor(i, t) {
828
825
  c(this, A);
829
826
  c(this, m);
830
827
  c(this, q, []);
831
828
  c(this, U, []);
832
- c(this, pe, 0);
829
+ c(this, me, 0);
833
830
  c(this, M, []);
834
- c(this, me, /* @__PURE__ */ a(() => {
831
+ c(this, we, /* @__PURE__ */ a(() => {
835
832
  g(this, M, []);
836
833
  const i = e(this, A).template || [];
837
834
  Array.from(i).forEach((t) => {
@@ -841,7 +838,7 @@ const T = class T {
841
838
  t.__ng || (t.__ng = e(this, te).call(this)), t.__ng.height = e(this, M).slice();
842
839
  });
843
840
  }, "#initialize"));
844
- v(this, "set", /* @__PURE__ */ a((i) => {
841
+ x(this, "set", /* @__PURE__ */ a((i) => {
845
842
  this.clear(), this.add(i, !1);
846
843
  }, "set"));
847
844
  c(this, te, /* @__PURE__ */ a(() => ({
@@ -853,14 +850,14 @@ const T = class T {
853
850
  c: {},
854
851
  _: [0, 0, 0, 0, T.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, M).slice(), -1, {}, {}]
855
852
  }), "#getDefaultMeta"));
856
- v(this, "reset", /* @__PURE__ */ a(() => {
853
+ x(this, "reset", /* @__PURE__ */ a(() => {
857
854
  g(this, q, []), g(this, U, []);
858
855
  }, "reset"));
859
- v(this, "clear", /* @__PURE__ */ a(() => {
856
+ x(this, "clear", /* @__PURE__ */ a(() => {
860
857
  var i;
861
858
  e(this, m).rawRecords = [], g(this, q, []), g(this, U, []), (i = e(this, m).viewRecords) != null && i.reset && e(this, m).viewRecords.reset();
862
859
  }, "clear"));
863
- c(this, we, /* @__PURE__ */ a((i) => {
860
+ c(this, xe, /* @__PURE__ */ a((i) => {
864
861
  var n;
865
862
  Array.isArray(i) || (i = [i]);
866
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,10 +871,10 @@ const T = class T {
874
871
  c(this, ve, /* @__PURE__ */ a((i) => (Array.isArray(i) || (i = [i]), i.forEach((t) => {
875
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;
876
873
  }), i), "#defaultInsert"));
877
- v(this, "add", /* @__PURE__ */ a((i, t = !0) => {
874
+ x(this, "add", /* @__PURE__ */ a((i, t = !0) => {
878
875
  var r;
879
876
  i === void 0 && (i = {});
880
- const s = e(this, we).call(this, i);
877
+ const s = e(this, xe).call(this, i);
881
878
  e(this, m).rawRecords = e(this, m).rawRecords.concat(e(this, ve).call(this, s)), this.resetRecords();
882
879
  const n = this.count() - 1;
883
880
  return t || s.forEach((o, l) => {
@@ -885,7 +882,7 @@ const T = class T {
885
882
  d && (d.__ng.rowState = T.ROW_STATE.EMPTY);
886
883
  }), (r = e(this, m).viewRecords) != null && r.reset && e(this, m).viewRecords.reset(), n;
887
884
  }, "add"));
888
- v(this, "delete", /* @__PURE__ */ a((i) => {
885
+ x(this, "delete", /* @__PURE__ */ a((i) => {
889
886
  var s;
890
887
  let t = [];
891
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) => {
@@ -897,7 +894,7 @@ const T = class T {
897
894
  }
898
895
  }), this.resetRecords(), (s = e(this, m).viewRecords) != null && s.reset && e(this, m).viewRecords.reset();
899
896
  }, "delete"));
900
- v(this, "setValue", /* @__PURE__ */ a((i, t, s) => {
897
+ x(this, "setValue", /* @__PURE__ */ a((i, t, s) => {
901
898
  var d;
902
899
  i = parseInt(i, 10);
903
900
  const r = (typeof ((d = e(this, A).fields) == null ? void 0 : d.get) == "function" ? e(this, A).fields.get() : []).indexOf(t);
@@ -907,14 +904,14 @@ const T = class T {
907
904
  const l = o.v[r];
908
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);
909
906
  }, "setValue"));
910
- v(this, "resetRecords", /* @__PURE__ */ a(() => {
907
+ x(this, "resetRecords", /* @__PURE__ */ a(() => {
911
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) => {
912
909
  i.__ng.rowidx = t;
913
910
  }), e(this, q).forEach((i, t) => {
914
911
  i.__ng.i = t;
915
912
  });
916
913
  }, "resetRecords"));
917
- v(this, "getValidData", /* @__PURE__ */ a(() => (e(this, q).length === 0 && e(this, m).rawRecords.length > 0 && this.resetRecords(), e(this, q)), "getValidData"));
914
+ x(this, "getValidData", /* @__PURE__ */ a(() => (e(this, q).length === 0 && e(this, m).rawRecords.length > 0 && this.resetRecords(), e(this, q)), "getValidData"));
918
915
  c(this, K, /* @__PURE__ */ a((i) => {
919
916
  var s;
920
917
  if (!i) return i;
@@ -926,8 +923,8 @@ const T = class T {
926
923
  }), r.__ng = n.__ng, r;
927
924
  }) : i;
928
925
  }, "#conv2"));
929
- v(this, "count", /* @__PURE__ */ a(() => this.getValidData().length, "count"));
930
- 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) => {
931
928
  var r;
932
929
  const s = this.getValidData();
933
930
  if (!s || s.length <= 0) return;
@@ -940,7 +937,7 @@ const T = class T {
940
937
  }
941
938
  return e(this, K).call(this, s[i]);
942
939
  }, "get"));
943
- g(this, A, i), g(this, m, t), e(this, me).call(this);
940
+ g(this, A, i), g(this, m, t), e(this, we).call(this);
944
941
  }
945
942
  get source() {
946
943
  return e(this, K).call(this, e(this, m).rawRecords);
@@ -949,7 +946,7 @@ const T = class T {
949
946
  this.clear(), this.add(i, !1);
950
947
  }
951
948
  get nextId() {
952
- return ++Ye(this, pe)._;
949
+ return ++Ue(this, me)._;
953
950
  }
954
951
  get length() {
955
952
  return e(this, q).length;
@@ -958,18 +955,18 @@ const T = class T {
958
955
  return this.length;
959
956
  }
960
957
  };
961
- A = new WeakMap(), m = new WeakMap(), q = new WeakMap(), U = new WeakMap(), pe = new WeakMap(), M = new WeakMap(), me = new WeakMap(), te = new WeakMap(), we = new WeakMap(), ve = new WeakMap(), K = new WeakMap(), a(T, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
962
- 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", {
963
960
  EMPTY: "EMPTY",
964
961
  NORMAL: "NORMAL",
965
962
  INSERT: "INSERT",
966
963
  UPDATE: "UPDATE",
967
964
  DELETE: "DELETE"
968
965
  });
969
- let Le = T;
970
- const De = class De {
966
+ let Ce = T;
967
+ const Ne = class Ne {
971
968
  constructor(i) {
972
- this.owner = i, this.row = new ke(this), this.data = new Le(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 = () => {
973
970
  var t;
974
971
  (t = this.owner.view) != null && t.redraw && this.owner.view.redraw();
975
972
  }, this.setDataSource = (t) => {
@@ -986,19 +983,19 @@ const De = class De {
986
983
  }, this.setDataSource([]);
987
984
  }
988
985
  };
989
- a(De, "ngDataManager");
990
- let Ce = De;
991
- var V, xe;
992
- const Ne = class Ne extends HTMLElement {
986
+ a(Ne, "ngDataManager");
987
+ let _e = Ne;
988
+ var V, Se;
989
+ const Be = class Be extends HTMLElement {
993
990
  constructor() {
994
991
  super();
995
992
  //#created = false;
996
993
  c(this, V);
997
- c(this, xe);
998
- this.attachShadow({ mode: "open" }), g(this, V, new Ce(this));
994
+ c(this, Se);
995
+ this.attachShadow({ mode: "open" }), g(this, V, new _e(this));
999
996
  }
1000
997
  connectedCallback() {
1001
- g(this, xe, new Te(this)), F.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 } }));
1002
999
  }
1003
1000
  disconnectedCallback() {
1004
1001
  F.log("NineTable disconnected.");
@@ -1016,7 +1013,7 @@ const Ne = class Ne extends HTMLElement {
1016
1013
  return e(this, V);
1017
1014
  }
1018
1015
  };
1019
- V = new WeakMap(), xe = new WeakMap(), a(Ne, "NineTable");
1020
- let _e = Ne;
1021
- customElements.get("nine-table") || customElements.define("nine-table", _e);
1016
+ V = new WeakMap(), Se = new WeakMap(), a(Be, "NineTable");
1017
+ let Ie = Be;
1018
+ customElements.get("nine-table") || customElements.define("nine-table", Ie);
1022
1019
  //# sourceMappingURL=nine-table.js.map