@ninebone/table 0.0.218 β†’ 0.0.219

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,9 +1,9 @@
1
- var He = Object.defineProperty;
1
+ var Me = Object.defineProperty;
2
2
  var Ie = (w) => {
3
3
  throw TypeError(w);
4
4
  };
5
- var Oe = (w, i, t) => i in w ? He(w, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : w[i] = t;
6
- var a = (w, i) => He(w, "name", { value: i, configurable: !0 });
5
+ var Oe = (w, i, t) => i in w ? Me(w, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : w[i] = t;
6
+ var a = (w, i) => Me(w, "name", { value: i, configurable: !0 });
7
7
  var x = (w, i, t) => Oe(w, typeof i != "symbol" ? i + "" : i, t), $e = (w, i, t) => i.has(w) || Ie("Cannot " + t);
8
8
  var e = (w, i, t) => ($e(w, i, "read from private field"), t ? t.call(w) : i.get(w)), f = (w, i, t) => i.has(w) ? Ie("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(w) : i.set(w, t), p = (w, i, t, s) => ($e(w, i, "write to private field"), s ? s.call(w, t) : i.set(w, t), t);
9
9
  var We = (w, i, t, s) => ({
@@ -22,8 +22,8 @@ const Te = class Te extends ze.constructor {
22
22
  };
23
23
  a(Te, "Trace");
24
24
  let pe = Te;
25
- const j = new pe();
26
- var k, z, y, B, D, N, te, P, ie;
25
+ const G = new pe();
26
+ var k, z, y, B, D, N, ie, P, se;
27
27
  const Ae = class Ae extends HTMLElement {
28
28
  constructor() {
29
29
  super();
@@ -33,7 +33,7 @@ const Ae = class Ae extends HTMLElement {
33
33
  f(this, B);
34
34
  f(this, D);
35
35
  f(this, N);
36
- f(this, te, /* @__PURE__ */ a(() => {
36
+ f(this, ie, /* @__PURE__ */ a(() => {
37
37
  if (!e(this, k)) return;
38
38
  const t = e(this, k).querySelector(".ng-container-body");
39
39
  t && (p(this, N, new ResizeObserver(() => {
@@ -59,7 +59,7 @@ const Ae = class Ae extends HTMLElement {
59
59
  let g = 0;
60
60
  b > 0 && (g = parseInt(u / b * (l - h), 10)), g < 0 && (g = 0);
61
61
  const m = l - h;
62
- g > m && (g = m), r.style.left = `${g}px`, j.log(g), e(this, y).left.disabled = g === 0, e(this, y).right.disabled = g >= m - 1;
62
+ g > m && (g = m), r.style.left = `${g}px`, G.log(g), e(this, y).left.disabled = g === 0, e(this, y).right.disabled = g >= m - 1;
63
63
  }, "refresh"));
64
64
  f(this, P, /* @__PURE__ */ a((t) => {
65
65
  if (!e(this, y)) return !1;
@@ -74,7 +74,7 @@ const Ae = class Ae extends HTMLElement {
74
74
  let u = d > 0 ? -c * (h - l) / d : 0;
75
75
  return -u > h - l && (u = -(h - l)), -u + 5 > h - l && (u = -(h - l)), l >= h && (u = 0), n.style.transform = `translateX(${u}px)`, c > 0 && c < d - 1;
76
76
  }, "#thumbMoveTo"));
77
- f(this, ie, /* @__PURE__ */ a(() => {
77
+ f(this, se, /* @__PURE__ */ a(() => {
78
78
  const t = /* @__PURE__ */ a((n) => {
79
79
  clearInterval(e(this, B)), clearInterval(e(this, D));
80
80
  const r = parseInt(e(this, y).thumb.style.left || 0, 10);
@@ -189,7 +189,7 @@ const Ae = class Ae extends HTMLElement {
189
189
  thumb: this.querySelector(".ng-scroll-thumb"),
190
190
  left: this.querySelector(".ng-scroll-left"),
191
191
  right: this.querySelector(".ng-scroll-right")
192
- }), e(this, ie).call(this), e(this, te).call(this), this.refresh();
192
+ }), e(this, se).call(this), e(this, ie).call(this), this.refresh();
193
193
  }, "initWhenReady");
194
194
  t();
195
195
  }
@@ -197,26 +197,26 @@ const Ae = class Ae extends HTMLElement {
197
197
  e(this, N) && e(this, N).disconnect();
198
198
  }
199
199
  };
200
- k = new WeakMap(), z = new WeakMap(), y = new WeakMap(), B = new WeakMap(), D = new WeakMap(), N = new WeakMap(), te = new WeakMap(), P = new WeakMap(), ie = new WeakMap(), a(Ae, "NineTableHScrollBar");
200
+ k = new WeakMap(), z = new WeakMap(), y = new WeakMap(), B = new WeakMap(), D = new WeakMap(), N = new WeakMap(), ie = new WeakMap(), P = new WeakMap(), se = new WeakMap(), a(Ae, "NineTableHScrollBar");
201
201
  let ye = Ae;
202
202
  customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ye);
203
- var V, C, E, $, M, H, se, ne;
203
+ var V, C, E, $, H, M, ne, re;
204
204
  const qe = class qe {
205
205
  constructor(i) {
206
206
  f(this, V);
207
207
  f(this, C, []);
208
208
  f(this, E, null);
209
209
  f(this, $, null);
210
- f(this, M, 0);
211
210
  f(this, H, 0);
211
+ f(this, M, 0);
212
212
  x(this, "getRowHeight", /* @__PURE__ */ a(() => e(this, E), "getRowHeight"));
213
- f(this, se, /* @__PURE__ */ a(() => {
214
- e(this, ne).call(this);
213
+ f(this, ne, /* @__PURE__ */ a(() => {
214
+ e(this, re).call(this);
215
215
  }, "#init"));
216
216
  /**
217
217
  * 🎯 뷰포트 크기 λ³€ν™” μ‹œμ μ— 높이 계산 및 ν•„μš”ν•œ ν–‰ 개수 산정·캐싱을 μ™„κ²°
218
218
  */
219
- f(this, ne, /* @__PURE__ */ a(() => {
219
+ f(this, re, /* @__PURE__ */ a(() => {
220
220
  !e(this, V) || !(e(this, V) instanceof HTMLElement) || (p(this, $, new ResizeObserver((i) => {
221
221
  for (const t of i) {
222
222
  const s = t.target;
@@ -229,9 +229,9 @@ const qe = class qe {
229
229
  const c = s.querySelector(".ng-container-body") || s, d = c.querySelector("thead"), l = c.querySelector("tfoot");
230
230
  d && (o += d.offsetHeight || d.getBoundingClientRect().height), l && (o += l.offsetHeight || l.getBoundingClientRect().height);
231
231
  const h = Math.max(r - o, 100);
232
- if (e(this, M) !== h && (p(this, M, h), e(this, E) !== null)) {
233
- const u = Math.ceil(e(this, M) / e(this, E));
234
- p(this, H, u + 20), j.log(`[RowManager] Resized. Height: ${e(this, M)}px | Target Rows: ${e(this, H)}`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((b) => {
232
+ if (e(this, H) !== h && (p(this, H, h), e(this, E) !== null)) {
233
+ const u = Math.ceil(e(this, H) / e(this, E));
234
+ p(this, M, u + 20), G.log(`[RowManager] Resized. Height: ${e(this, H)}px | Target Rows: ${e(this, M)}`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((b) => {
235
235
  const g = s.querySelector(b);
236
236
  g && g.querySelector("tbody") && this.renderRows(g);
237
237
  });
@@ -264,12 +264,12 @@ const qe = class qe {
264
264
  if (t.querySelectorAll("tr:not(.nodata)").forEach((u, b) => {
265
265
  const g = u.offsetHeight || u.getBoundingClientRect().height;
266
266
  g === 0 ? l += 40 : l += g;
267
- }), r && (r.style.display = o, r.style.visibility = c, r.style.position = d), p(this, E, l), e(this, M) > 0) {
268
- const u = Math.ceil(e(this, M) / e(this, E));
269
- p(this, H, u + 20);
267
+ }), r && (r.style.display = o, r.style.visibility = c, r.style.position = d), p(this, E, l), e(this, H) > 0) {
268
+ const u = Math.ceil(e(this, H) / e(this, E));
269
+ p(this, M, u + 20);
270
270
  } else
271
- p(this, H, 40);
272
- return console.log(`[RowManager] Template Height Cached: ${e(this, E)}px | RowCount: ${e(this, H)}`), e(this, E);
271
+ p(this, M, 40);
272
+ return console.log(`[RowManager] Template Height Cached: ${e(this, E)}px | RowCount: ${e(this, M)}`), e(this, E);
273
273
  }, "measureAndCacheHeight"));
274
274
  /**
275
275
  * 🎯 μΊμ‹œλœ ν–‰ 개수 λ°˜ν™˜ (없을 λ•Œλ§Œ μ΅œμ†Œν•œμ˜ λ°©μ–΄ μ—°μ‚°)
@@ -292,7 +292,7 @@ const qe = class qe {
292
292
  const t = i.querySelector("tbody.bindable") || i.querySelector("tbody");
293
293
  if (!t) return;
294
294
  t.querySelectorAll("tr:not(.nodata)").forEach((o) => o.remove());
295
- const s = t.querySelector("tr.nodata"), n = document.createDocumentFragment(), r = e(this, H);
295
+ const s = t.querySelector("tr.nodata"), n = document.createDocumentFragment(), r = e(this, M);
296
296
  for (let o = 0; o < r; o++)
297
297
  e(this, C).forEach((c) => {
298
298
  n.appendChild(c.cloneNode(!0));
@@ -302,16 +302,16 @@ const qe = class qe {
302
302
  x(this, "destroy", /* @__PURE__ */ a(() => {
303
303
  e(this, $) && (e(this, $).disconnect(), p(this, $, null));
304
304
  }, "destroy"));
305
- p(this, V, i), e(this, se).call(this);
305
+ p(this, V, i), e(this, ne).call(this);
306
306
  }
307
307
  get templateLength() {
308
308
  return e(this, C).length || 1;
309
309
  }
310
310
  };
311
- V = new WeakMap(), C = new WeakMap(), E = new WeakMap(), $ = new WeakMap(), M = new WeakMap(), H = new WeakMap(), se = new WeakMap(), ne = new WeakMap(), a(qe, "RowManager");
311
+ V = new WeakMap(), C = new WeakMap(), E = new WeakMap(), $ = new WeakMap(), H = new WeakMap(), M = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), a(qe, "RowManager");
312
312
  let me = qe;
313
- var I, X, re, oe;
314
- const Z = class Z extends HTMLElement {
313
+ var I, X, oe, le;
314
+ const j = class j extends HTMLElement {
315
315
  constructor() {
316
316
  super();
317
317
  f(this, I, null);
@@ -323,8 +323,8 @@ const Z = class Z extends HTMLElement {
323
323
  if (b.querySelector("colgroup")) return;
324
324
  const g = b.querySelector("tbody tr") || b.querySelector("tr"), m = g ? g.querySelectorAll("th, td").length : 1, S = document.createElement("colgroup"), T = Math.max(Math.floor((b.clientWidth || 600) / m), 100);
325
325
  for (let _ = 0; _ < m; _++) {
326
- const be = document.createElement("col");
327
- be.setAttribute("width", T), S.appendChild(be);
326
+ const U = document.createElement("col");
327
+ U.setAttribute("width", T), S.appendChild(U);
328
328
  }
329
329
  b.prepend(S);
330
330
  }, "ensureColgroup"), u = /* @__PURE__ */ a((b) => {
@@ -339,7 +339,8 @@ const Z = class Z extends HTMLElement {
339
339
  const b = l.cloneNode(!0), g = Array.from(b.querySelectorAll("colgroup col")), m = [];
340
340
  return g.forEach((S, T) => {
341
341
  const _ = S.getAttribute("fixed");
342
- (u ? _ !== "left" && _ !== "right" : _ === h) || m.push(T);
342
+ let U = !1;
343
+ u ? U = _ !== "left" && _ !== "right" : U = _ === h, U || m.push(T);
343
344
  }), m.reverse().forEach((S) => {
344
345
  g[S] && g[S].remove(), b.querySelectorAll("tr").forEach((T) => {
345
346
  const _ = T.querySelectorAll("th, td");
@@ -393,8 +394,8 @@ const Z = class Z extends HTMLElement {
393
394
  const s = this.querySelector(".ng-container-body");
394
395
  s && (s.scrollTop = t);
395
396
  }, "scrollToY"));
396
- f(this, re, /* @__PURE__ */ a(() => {
397
- e(this, oe).call(this), new MutationObserver((t) => {
397
+ f(this, oe, /* @__PURE__ */ a(() => {
398
+ e(this, le).call(this), new MutationObserver((t) => {
398
399
  const s = /* @__PURE__ */ a(() => {
399
400
  requestAnimationFrame(() => {
400
401
  var u, b, g;
@@ -415,8 +416,8 @@ const Z = class Z extends HTMLElement {
415
416
  n.attributeName === "class" && this.classList.contains("active") && s();
416
417
  }).observe(this, { attributes: !0 });
417
418
  }, "#init"));
418
- f(this, oe, /* @__PURE__ */ a(() => {
419
- const t = Z.SCROLLBAR_SIZE;
419
+ f(this, le, /* @__PURE__ */ a(() => {
420
+ const t = j.SCROLLBAR_SIZE;
420
421
  this.innerHTML = `
421
422
  <style>
422
423
  nine-table-sheet {
@@ -535,28 +536,28 @@ const Z = class Z extends HTMLElement {
535
536
  p(this, X, new me(this));
536
537
  }
537
538
  connectedCallback() {
538
- e(this, re).call(this);
539
+ e(this, oe).call(this);
539
540
  }
540
541
  disconnectedCallback() {
541
- this.innerHTML = "", j.log("NineTableSheet destroyed.");
542
+ this.innerHTML = "", G.log("NineTableSheet destroyed.");
542
543
  }
543
544
  };
544
- I = new WeakMap(), X = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), a(Z, "NineTableSheet"), x(Z, "SCROLLBAR_SIZE", 16);
545
- let ee = Z;
546
- customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", ee);
547
- var le, G;
545
+ I = new WeakMap(), X = new WeakMap(), oe = new WeakMap(), le = new WeakMap(), a(j, "NineTableSheet"), x(j, "SCROLLBAR_SIZE", 16);
546
+ let te = j;
547
+ customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", te);
548
+ var ae, J;
548
549
  const Le = class Le extends HTMLElement {
549
550
  constructor() {
550
551
  super();
551
- f(this, le, /* @__PURE__ */ a(() => {
552
+ f(this, ae, /* @__PURE__ */ a(() => {
552
553
  var t;
553
554
  (t = this.querySelector(".nine-tab-bar")) == null || t.addEventListener("click", (s) => {
554
555
  var o;
555
556
  const n = s.ctrlKey || s.metaKey || s.shiftKey, r = parseInt((o = s.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
556
- e(this, G).call(this, r, n);
557
- }), e(this, G).call(this, 0, !1);
557
+ e(this, J).call(this, r, n);
558
+ }), e(this, J).call(this, 0, !1);
558
559
  }, "#init"));
559
- f(this, G, /* @__PURE__ */ a((t, s = !1) => {
560
+ f(this, J, /* @__PURE__ */ a((t, s = !1) => {
560
561
  const n = /* @__PURE__ */ a(() => {
561
562
  const h = Array.from(this.querySelectorAll("nine-table-sheet"));
562
563
  Array.from(this.querySelectorAll("nine-splitter")).forEach((g) => g.style.setProperty("display", "none"));
@@ -589,30 +590,30 @@ const Le = class Le extends HTMLElement {
589
590
  }, "#switchSheet"));
590
591
  }
591
592
  connectedCallback() {
592
- e(this, le).call(this);
593
+ e(this, ae).call(this);
593
594
  }
594
595
  };
595
- le = new WeakMap(), G = new WeakMap(), a(Le, "NineTableSheets");
596
+ ae = new WeakMap(), J = new WeakMap(), a(Le, "NineTableSheets");
596
597
  let we = Le;
597
598
  customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", we);
598
- var R, ae, J, ce;
599
+ var R, ce, Q, he;
599
600
  const ke = class ke {
600
601
  constructor(i) {
601
602
  f(this, R);
602
- f(this, ae, /* @__PURE__ */ a(() => {
603
- e(this, ce).call(this), new ResizeObserver((i) => {
603
+ f(this, ce, /* @__PURE__ */ a(() => {
604
+ e(this, he).call(this), new ResizeObserver((i) => {
604
605
  for (let t of i)
605
- e(this, R).getAttribute("auto-height") === "true" && e(this, J).call(this);
606
+ e(this, R).getAttribute("auto-height") === "true" && e(this, Q).call(this);
606
607
  }).observe(e(this, R));
607
608
  }, "#init"));
608
- f(this, J, /* @__PURE__ */ a(() => {
609
+ f(this, Q, /* @__PURE__ */ a(() => {
609
610
  var d, l;
610
611
  const i = Array.from(e(this, R).shadowRoot.querySelectorAll("nine-table-sheet.active"));
611
612
  if (i.length === 0) return;
612
- const t = parseInt(e(this, R).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((h) => h.getRowHeight())), n = (d = e(this, R).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : d.getBoundingClientRect().height, r = (l = e(this, R).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = ee.SCROLLBAR_SIZE, c = t * s + n + r + o;
613
+ const t = parseInt(e(this, R).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((h) => h.getRowHeight())), n = (d = e(this, R).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : d.getBoundingClientRect().height, r = (l = e(this, R).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = te.SCROLLBAR_SIZE, c = t * s + n + r + o;
613
614
  e(this, R).style.height = `${c}px`;
614
615
  }, "#applyAutoHeight"));
615
- f(this, ce, /* @__PURE__ */ a(() => {
616
+ f(this, he, /* @__PURE__ */ a(() => {
616
617
  const t = Array.from(e(this, R).children).filter((d) => d.tagName === "TABLE"), s = e(this, R).getAttribute("auto-height") === "true", n = t.length, r = t.map((d, l) => {
617
618
  const u = `<nine-table-sheet class="${l === 0 ? "active" : ""}" data-index="${l}"></nine-table-sheet>`, b = l < n - 1 ? `<nine-splitter class="h" data-split-index="${l}"></nine-splitter>` : "";
618
619
  return u + b;
@@ -719,14 +720,14 @@ const ke = class ke {
719
720
  const c = e(this, R).shadowRoot.querySelectorAll("nine-table-sheet");
720
721
  c == null || c.forEach((d, l) => {
721
722
  t[l] && setTimeout(() => {
722
- d.generate(t[l]), s && e(this, J).call(this);
723
+ d.generate(t[l]), s && e(this, Q).call(this);
723
724
  });
724
725
  });
725
726
  }, "#render"));
726
- p(this, R, i), e(this, ae).call(this);
727
+ p(this, R, i), e(this, ce).call(this);
727
728
  }
728
729
  };
729
- R = new WeakMap(), ae = new WeakMap(), J = new WeakMap(), ce = new WeakMap(), a(ke, "LayoutManager");
730
+ R = new WeakMap(), ce = new WeakMap(), Q = new WeakMap(), he = new WeakMap(), a(ke, "LayoutManager");
730
731
  let ve = ke;
731
732
  var W, F;
732
733
  const Ce = class Ce {
@@ -751,29 +752,29 @@ const Ce = class Ce {
751
752
  };
752
753
  W = new WeakMap(), F = new WeakMap(), a(Ce, "ngRow");
753
754
  let xe = Ce;
754
- var A, v, q, U, he, O, de, Q, fe, ue, K;
755
+ var A, v, q, K, de, O, fe, ee, ue, ge, Z;
755
756
  const L = class L {
756
757
  constructor(i, t) {
757
758
  f(this, A);
758
759
  f(this, v);
759
760
  f(this, q, []);
760
- f(this, U, []);
761
- f(this, he, 0);
761
+ f(this, K, []);
762
+ f(this, de, 0);
762
763
  f(this, O, []);
763
- f(this, de, /* @__PURE__ */ a(() => {
764
+ f(this, fe, /* @__PURE__ */ a(() => {
764
765
  p(this, O, []);
765
766
  const i = e(this, A).template || [];
766
767
  Array.from(i).forEach((t) => {
767
768
  var s;
768
769
  e(this, O).push(((s = t.getBoundingClientRect) == null ? void 0 : s.call(t).height) || 24);
769
770
  }), (e(this, v).rawRecords || []).forEach((t) => {
770
- t.__ng || (t.__ng = e(this, Q).call(this)), t.__ng.height = e(this, O).slice();
771
+ t.__ng || (t.__ng = e(this, ee).call(this)), t.__ng.height = e(this, O).slice();
771
772
  });
772
773
  }, "#initialize"));
773
774
  x(this, "set", /* @__PURE__ */ a((i) => {
774
775
  this.clear(), this.add(i, !1);
775
776
  }, "set"));
776
- f(this, Q, /* @__PURE__ */ a(() => ({
777
+ f(this, ee, /* @__PURE__ */ a(() => ({
777
778
  rowState: L.ROW_STATE.EMPTY,
778
779
  deleted: !1,
779
780
  filtered: !1,
@@ -783,13 +784,13 @@ const L = class L {
783
784
  _: [0, 0, 0, 0, L.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, O).slice(), -1, {}, {}]
784
785
  }), "#getDefaultMeta"));
785
786
  x(this, "reset", /* @__PURE__ */ a(() => {
786
- p(this, q, []), p(this, U, []);
787
+ p(this, q, []), p(this, K, []);
787
788
  }, "reset"));
788
789
  x(this, "clear", /* @__PURE__ */ a(() => {
789
790
  var i;
790
- e(this, v).rawRecords = [], p(this, q, []), p(this, U, []), (i = e(this, v).viewRecords) != null && i.reset && e(this, v).viewRecords.reset();
791
+ e(this, v).rawRecords = [], p(this, q, []), p(this, K, []), (i = e(this, v).viewRecords) != null && i.reset && e(this, v).viewRecords.reset();
791
792
  }, "clear"));
792
- f(this, fe, /* @__PURE__ */ a((i) => {
793
+ f(this, ue, /* @__PURE__ */ a((i) => {
793
794
  var n;
794
795
  Array.isArray(i) || (i = [i]);
795
796
  const t = typeof ((n = e(this, A).fields) == null ? void 0 : n.get) == "function" ? e(this, A).fields.get() : Object.keys(i[0] || {}), s = [];
@@ -800,14 +801,14 @@ const L = class L {
800
801
  }), s.push(o);
801
802
  }), s;
802
803
  }, "#json2Array"));
803
- f(this, ue, /* @__PURE__ */ a((i) => (Array.isArray(i) || (i = [i]), i.forEach((t) => {
804
- t.__ng = e(this, Q).call(this), t.__ng.rowid = this.nextId, t.__ng.rowState = L.ROW_STATE.INSERT, t.__ng._[0] = t.__ng.rowid;
804
+ f(this, ge, /* @__PURE__ */ a((i) => (Array.isArray(i) || (i = [i]), i.forEach((t) => {
805
+ t.__ng = e(this, ee).call(this), t.__ng.rowid = this.nextId, t.__ng.rowState = L.ROW_STATE.INSERT, t.__ng._[0] = t.__ng.rowid;
805
806
  }), i), "#defaultInsert"));
806
807
  x(this, "add", /* @__PURE__ */ a((i, t = !0) => {
807
808
  var r;
808
809
  i === void 0 && (i = {});
809
- const s = e(this, fe).call(this, i);
810
- e(this, v).rawRecords = e(this, v).rawRecords.concat(e(this, ue).call(this, s)), this.resetRecords();
810
+ const s = e(this, ue).call(this, i);
811
+ e(this, v).rawRecords = e(this, v).rawRecords.concat(e(this, ge).call(this, s)), this.resetRecords();
811
812
  const n = this.count() - 1;
812
813
  return t || s.forEach((o, c) => {
813
814
  const d = e(this, v).rawRecords[n - c];
@@ -837,14 +838,14 @@ const L = class L {
837
838
  c !== s && o.__ng.rowState !== L.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(t) || (o.__ng.o[t] = c), o.__ng.rowState = L.ROW_STATE.UPDATE), o.v[r] = s, e(this, v).owner.refreshData && e(this, v).owner.refreshData(i);
838
839
  }, "setValue"));
839
840
  x(this, "resetRecords", /* @__PURE__ */ a(() => {
840
- p(this, U, e(this, v).rawRecords.filter((i) => !i.__ng.deleted)), p(this, q, e(this, v).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), e(this, v).rawRecords.forEach((i, t) => {
841
+ p(this, K, e(this, v).rawRecords.filter((i) => !i.__ng.deleted)), p(this, q, e(this, v).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), e(this, v).rawRecords.forEach((i, t) => {
841
842
  i.__ng.rowidx = t;
842
843
  }), e(this, q).forEach((i, t) => {
843
844
  i.__ng.i = t;
844
845
  });
845
846
  }, "resetRecords"));
846
847
  x(this, "getValidData", /* @__PURE__ */ a(() => (e(this, q).length === 0 && e(this, v).rawRecords.length > 0 && this.resetRecords(), e(this, q)), "getValidData"));
847
- f(this, K, /* @__PURE__ */ a((i) => {
848
+ f(this, Z, /* @__PURE__ */ a((i) => {
848
849
  var s;
849
850
  if (!i) return i;
850
851
  const t = typeof ((s = e(this, A).fields) == null ? void 0 : s.get) == "function" ? e(this, A).fields.get() : [];
@@ -860,25 +861,25 @@ const L = class L {
860
861
  var r;
861
862
  const s = this.getValidData();
862
863
  if (!s || s.length <= 0) return;
863
- if (i == null) return e(this, K).call(this, s);
864
+ if (i == null) return e(this, Z).call(this, s);
864
865
  if (i < 0 || i >= s.length) return null;
865
866
  const n = typeof ((r = e(this, A).fields) == null ? void 0 : r.get) == "function" ? e(this, A).fields.get() : [];
866
867
  if (t != null) {
867
868
  const o = n.indexOf(t);
868
869
  return o >= 0 ? s[i].v[o] : null;
869
870
  }
870
- return e(this, K).call(this, s[i]);
871
+ return e(this, Z).call(this, s[i]);
871
872
  }, "get"));
872
- p(this, A, i), p(this, v, t), e(this, de).call(this);
873
+ p(this, A, i), p(this, v, t), e(this, fe).call(this);
873
874
  }
874
875
  get source() {
875
- return e(this, K).call(this, e(this, v).rawRecords);
876
+ return e(this, Z).call(this, e(this, v).rawRecords);
876
877
  }
877
878
  set source(i) {
878
879
  this.clear(), this.add(i, !1);
879
880
  }
880
881
  get nextId() {
881
- return ++We(this, he)._;
882
+ return ++We(this, de)._;
882
883
  }
883
884
  get length() {
884
885
  return e(this, q).length;
@@ -887,7 +888,7 @@ const L = class L {
887
888
  return this.length;
888
889
  }
889
890
  };
890
- A = new WeakMap(), v = new WeakMap(), q = new WeakMap(), U = new WeakMap(), he = new WeakMap(), O = new WeakMap(), de = new WeakMap(), Q = new WeakMap(), fe = new WeakMap(), ue = new WeakMap(), K = new WeakMap(), a(L, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
891
+ A = new WeakMap(), v = new WeakMap(), q = new WeakMap(), K = new WeakMap(), de = new WeakMap(), O = new WeakMap(), fe = new WeakMap(), ee = new WeakMap(), ue = new WeakMap(), ge = new WeakMap(), Z = new WeakMap(), a(L, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
891
892
  x(L, "ROW_STATE", {
892
893
  EMPTY: "EMPTY",
893
894
  NORMAL: "NORMAL",
@@ -917,20 +918,20 @@ const _e = class _e {
917
918
  };
918
919
  a(_e, "ngDataManager");
919
920
  let Se = _e;
920
- var Y, ge;
921
- const Me = class Me extends HTMLElement {
921
+ var Y, be;
922
+ const He = class He extends HTMLElement {
922
923
  constructor() {
923
924
  super();
924
925
  //#created = false;
925
926
  f(this, Y);
926
- f(this, ge);
927
+ f(this, be);
927
928
  this.attachShadow({ mode: "open" }), p(this, Y, new Se(this));
928
929
  }
929
930
  connectedCallback() {
930
- p(this, ge, new ve(this)), j.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
931
+ p(this, be, new ve(this)), G.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
931
932
  }
932
933
  disconnectedCallback() {
933
- j.log("NineTable disconnected.");
934
+ G.log("NineTable disconnected.");
934
935
  }
935
936
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
936
937
  get data() {
@@ -945,7 +946,7 @@ const Me = class Me extends HTMLElement {
945
946
  return e(this, Y);
946
947
  }
947
948
  };
948
- Y = new WeakMap(), ge = new WeakMap(), a(Me, "NineTable");
949
- let Ee = Me;
949
+ Y = new WeakMap(), be = new WeakMap(), a(He, "NineTable");
950
+ let Ee = He;
950
951
  customElements.get("nine-table") || customElements.define("nine-table", Ee);
951
952
  //# sourceMappingURL=nine-table.js.map