@ninebone/table 0.0.324 β†’ 0.0.325

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 ee = Object.defineProperty;
2
- var ie = (x) => {
1
+ var ie = Object.defineProperty;
2
+ var se = (x) => {
3
3
  throw TypeError(x);
4
4
  };
5
- var oe = (x, i, e) => i in x ? ee(x, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : x[i] = e;
6
- var c = (x, i) => ee(x, "name", { value: i, configurable: !0 });
7
- var w = (x, i, e) => oe(x, typeof i != "symbol" ? i + "" : i, e), se = (x, i, e) => i.has(x) || ie("Cannot " + e);
8
- var t = (x, i, e) => (se(x, i, "read from private field"), e ? e.call(x) : i.get(x)), h = (x, i, e) => i.has(x) ? ie("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(x) : i.set(x, e), g = (x, i, e, s) => (se(x, i, "write to private field"), s ? s.call(x, e) : i.set(x, e), e);
9
- var ne = (x, i, e, s) => ({
5
+ var re = (x, i, e) => i in x ? ie(x, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : x[i] = e;
6
+ var c = (x, i) => ie(x, "name", { value: i, configurable: !0 });
7
+ var w = (x, i, e) => re(x, typeof i != "symbol" ? i + "" : i, e), ne = (x, i, e) => i.has(x) || se("Cannot " + e);
8
+ var t = (x, i, e) => (ne(x, i, "read from private field"), e ? e.call(x) : i.get(x)), h = (x, i, e) => i.has(x) ? se("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(x) : i.set(x, e), g = (x, i, e, s) => (ne(x, i, "write to private field"), s ? s.call(x, e) : i.set(x, e), e);
9
+ var oe = (x, i, e, s) => ({
10
10
  set _(o) {
11
11
  g(x, i, o, e);
12
12
  },
@@ -14,17 +14,17 @@ var ne = (x, i, e, s) => ({
14
14
  return t(x, i, s);
15
15
  }
16
16
  });
17
- import { trace as re } from "@ninebone/util";
18
- const Xt = class Xt extends re.constructor {
17
+ import { trace as le } from "@ninebone/util";
18
+ const Ut = class Ut extends le.constructor {
19
19
  constructor() {
20
20
  super(), this.init("nine-table", "green");
21
21
  }
22
22
  };
23
- c(Xt, "Trace");
24
- let It = Xt;
25
- const O = new It();
23
+ c(Ut, "Trace");
24
+ let $t = Ut;
25
+ const O = new $t();
26
26
  var C, M, y, N, B, P, ft, Y, ut;
27
- const Ut = class Ut extends HTMLElement {
27
+ const Ft = class Ft extends HTMLElement {
28
28
  constructor() {
29
29
  super();
30
30
  h(this, C);
@@ -198,11 +198,11 @@ const Ut = class Ut extends HTMLElement {
198
198
  t(this, P) && t(this, P).disconnect();
199
199
  }
200
200
  };
201
- C = new WeakMap(), M = new WeakMap(), y = new WeakMap(), N = new WeakMap(), B = new WeakMap(), P = new WeakMap(), ft = new WeakMap(), Y = new WeakMap(), ut = new WeakMap(), c(Ut, "NineTableHScrollBar");
202
- let $t = Ut;
203
- customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", $t);
201
+ C = new WeakMap(), M = new WeakMap(), y = new WeakMap(), N = new WeakMap(), B = new WeakMap(), P = new WeakMap(), ft = new WeakMap(), Y = new WeakMap(), ut = new WeakMap(), c(Ft, "NineTableHScrollBar");
202
+ let Wt = Ft;
203
+ customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", Wt);
204
204
  var V, I, S, it, st, bt;
205
- const Ft = class Ft extends HTMLElement {
205
+ const Kt = class Kt extends HTMLElement {
206
206
  constructor() {
207
207
  super();
208
208
  h(this, V);
@@ -351,9 +351,9 @@ const Ft = class Ft extends HTMLElement {
351
351
  e();
352
352
  }
353
353
  };
354
- V = new WeakMap(), I = new WeakMap(), S = new WeakMap(), it = new WeakMap(), st = new WeakMap(), bt = new WeakMap(), c(Ft, "NineTableVScrollBar");
355
- let Wt = Ft;
356
- customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", Wt);
354
+ V = new WeakMap(), I = new WeakMap(), S = new WeakMap(), it = new WeakMap(), st = new WeakMap(), bt = new WeakMap(), c(Kt, "NineTableVScrollBar");
355
+ let zt = Kt;
356
+ customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", zt);
357
357
  var gt, K;
358
358
  const H = class H {
359
359
  /**
@@ -424,10 +424,11 @@ gt = new WeakMap(), K = new WeakMap(), c(H, "TableCompiler"), h(H, gt, /* @__PUR
424
424
  });
425
425
  });
426
426
  }, "#resetColIndex"));
427
- let zt = H;
428
- var p, _, R, $, X, j, yt, pt, nt, ot, mt, xt, rt, Z, vt;
429
- const Kt = class Kt {
427
+ let Ot = H;
428
+ var nt, p, _, R, $, X, j, yt, pt, ot, rt, mt, xt, lt, Z, vt;
429
+ const jt = class jt {
430
430
  constructor(i) {
431
+ h(this, nt);
431
432
  h(this, p);
432
433
  h(this, _, /* @__PURE__ */ new Map());
433
434
  h(this, R, null);
@@ -437,7 +438,7 @@ const Kt = class Kt {
437
438
  w(this, "refresh", /* @__PURE__ */ c(() => {
438
439
  var e;
439
440
  const i = t(this, p).querySelector(".ng-container-body");
440
- i && (t(this, nt).call(this), t(this, Z).call(this, i.scrollTop), (e = t(this, p).querySelector("nine-table-vscrollbar")) == null || e.refresh());
441
+ i && (t(this, ot).call(this), t(this, Z).call(this, i.scrollTop), (e = t(this, p).querySelector("nine-table-vscrollbar")) == null || e.refresh());
441
442
  }, "refresh"));
442
443
  w(this, "initialize", /* @__PURE__ */ c(() => {
443
444
  g(this, R, null), t(this, _).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
@@ -452,7 +453,7 @@ const Kt = class Kt {
452
453
  });
453
454
  const i = t(this, p).querySelector(".ng-container-body"), e = t(this, p).querySelector(".ng-container-left"), s = t(this, p).querySelector(".ng-container-right");
454
455
  if (i) {
455
- t(this, pt).call(this, i), t(this, rt).call(this), t(this, nt).call(this), t(this, Z).call(this, i.scrollTop);
456
+ t(this, pt).call(this, i), t(this, lt).call(this), t(this, ot).call(this), t(this, Z).call(this, i.scrollTop);
456
457
  let o = i.scrollTop;
457
458
  const r = /* @__PURE__ */ c((n) => {
458
459
  var l;
@@ -495,9 +496,9 @@ const Kt = class Kt {
495
496
  const u = s.querySelectorAll("tr:not(.nodata)");
496
497
  return u.forEach((b) => {
497
498
  f += b.offsetHeight || b.getBoundingClientRect().height;
498
- }), u.forEach((b) => b.remove()), n.style.display = l, n.style.visibility = a, n.style.position = d, g(this, R, f > 0 ? f : 24), t(this, ot).call(this), t(this, R);
499
+ }), u.forEach((b) => b.remove()), n.style.display = l, n.style.visibility = a, n.style.position = d, g(this, R, f > 0 ? f : 24), t(this, rt).call(this), t(this, R);
499
500
  }, "#measureAndCacheHeight"));
500
- h(this, nt, /* @__PURE__ */ c(() => {
501
+ h(this, ot, /* @__PURE__ */ c(() => {
501
502
  var r, n, l, a;
502
503
  if (!t(this, p).querySelector(".ng-container-body")) return;
503
504
  const e = (typeof ((r = t(this, p).data) == null ? void 0 : r.count) == "function" ? t(this, p).data.count() : null) ?? ((l = (n = t(this, p).dataManager) == null ? void 0 : n.rawRecords) == null ? void 0 : l.length) ?? ((a = t(this, p).data) == null ? void 0 : a.length) ?? 100, s = t(this, R) || 24, o = e * s;
@@ -506,7 +507,7 @@ const Kt = class Kt {
506
507
  u && (u.style.height = `${o}px`);
507
508
  });
508
509
  }, "#updateVirtualScrollHeight"));
509
- h(this, ot, /* @__PURE__ */ c(() => {
510
+ h(this, rt, /* @__PURE__ */ c(() => {
510
511
  if (t(this, X) > 0 && t(this, R) > 0) {
511
512
  const i = Math.ceil(t(this, X) / t(this, R));
512
513
  g(this, j, i + 20);
@@ -538,12 +539,12 @@ const Kt = class Kt {
538
539
  const n = s.querySelector("thead");
539
540
  n && (r += n.offsetHeight || n.getBoundingClientRect().height);
540
541
  const l = Math.max(o - r, 100);
541
- t(this, X) !== l && (g(this, X, l), t(this, ot).call(this), t(this, R) !== null && t(this, rt).call(this));
542
+ t(this, X) !== l && (g(this, X, l), t(this, rt).call(this), t(this, R) !== null && t(this, lt).call(this));
542
543
  }
543
544
  }
544
545
  })), t(this, $).observe(t(this, p)));
545
546
  }, "#initResizeObserver"));
546
- h(this, rt, /* @__PURE__ */ c(() => {
547
+ h(this, lt, /* @__PURE__ */ c(() => {
547
548
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
548
549
  const e = t(this, p).querySelector(i);
549
550
  e && e.querySelector("tbody.bindable-tbody") && t(this, yt).call(this, e, i);
@@ -560,8 +561,8 @@ const Kt = class Kt {
560
561
  const a = l.querySelector("tbody.bindable-tbody");
561
562
  if (!a) return;
562
563
  Array.from(a.querySelectorAll("tr:not(.nodata)")).forEach((f, u) => {
563
- var E, q, D, te;
564
- const b = s + Math.floor(u / o), m = (typeof t(this, p).getData == "function" ? t(this, p).getData(b) : null) ?? (typeof ((E = t(this, p).data) == null ? void 0 : E.get) == "function" ? t(this, p).data.get(b) : null) ?? ((D = (q = t(this, p).dataManager) == null ? void 0 : q.rawRecords) == null ? void 0 : D[b]) ?? ((te = t(this, p).data) == null ? void 0 : te[b]) ?? { _index: b };
564
+ var E, q, D, ee;
565
+ const b = s + Math.floor(u / o), m = (typeof t(this, p).getData == "function" ? t(this, p).getData(b) : null) ?? (typeof ((E = t(this, p).data) == null ? void 0 : E.get) == "function" ? t(this, p).data.get(b) : null) ?? ((D = (q = t(this, p).dataManager) == null ? void 0 : q.rawRecords) == null ? void 0 : D[b]) ?? ((ee = t(this, p).data) == null ? void 0 : ee[b]) ?? { _index: b };
565
566
  f.style.display = "", t(this, vt).call(this, f, m, b);
566
567
  });
567
568
  });
@@ -575,7 +576,7 @@ const Kt = class Kt {
575
576
  w(this, "destroy", /* @__PURE__ */ c(() => {
576
577
  t(this, $) && (t(this, $).disconnect(), g(this, $, null));
577
578
  }, "destroy"));
578
- g(this, p, i), t(this, xt).call(this);
579
+ g(this, nt, i.getRootNode().host), g(this, p, i), t(this, xt).call(this), O.log("111"), O.log(t(this, nt));
579
580
  }
580
581
  getRowHeight() {
581
582
  return t(this, R);
@@ -585,16 +586,16 @@ const Kt = class Kt {
585
586
  return ((e = t(this, _).get(i)) == null ? void 0 : e.length) || 1;
586
587
  }
587
588
  };
588
- p = new WeakMap(), _ = new WeakMap(), R = new WeakMap(), $ = new WeakMap(), X = new WeakMap(), j = new WeakMap(), yt = new WeakMap(), pt = new WeakMap(), nt = new WeakMap(), ot = new WeakMap(), mt = new WeakMap(), xt = new WeakMap(), rt = new WeakMap(), Z = new WeakMap(), vt = new WeakMap(), c(Kt, "RowManager");
589
- let Ot = Kt;
590
- var lt, G, J, wt, St, Et, Rt, kt;
589
+ nt = new WeakMap(), p = new WeakMap(), _ = new WeakMap(), R = new WeakMap(), $ = new WeakMap(), X = new WeakMap(), j = new WeakMap(), yt = new WeakMap(), pt = new WeakMap(), ot = new WeakMap(), rt = new WeakMap(), mt = new WeakMap(), xt = new WeakMap(), lt = new WeakMap(), Z = new WeakMap(), vt = new WeakMap(), c(jt, "RowManager");
590
+ let Dt = jt;
591
+ var wt, G, J, St, Et, Rt, kt, qt;
591
592
  const et = class et extends HTMLElement {
592
593
  constructor() {
593
594
  super();
594
- h(this, lt);
595
+ h(this, wt);
595
596
  h(this, G, null);
596
597
  h(this, J);
597
- h(this, wt, /* @__PURE__ */ c(() => {
598
+ h(this, St, /* @__PURE__ */ c(() => {
598
599
  [
599
600
  { selector: ".ng-container-body", type: null },
600
601
  { selector: ".ng-container-left", type: "left" },
@@ -602,11 +603,11 @@ const et = class et extends HTMLElement {
602
603
  ].forEach(({ selector: s, type: o }) => {
603
604
  const r = this.querySelector(s);
604
605
  if (!r) return;
605
- const n = t(this, Et).call(this, t(this, G), o);
606
+ const n = t(this, Rt).call(this, t(this, G), o);
606
607
  r.innerHTML = "", r.appendChild(n);
607
608
  });
608
609
  }, "#renderSplitContainers"));
609
- h(this, St, /* @__PURE__ */ c(() => {
610
+ h(this, Et, /* @__PURE__ */ c(() => {
610
611
  ["left", "right"].forEach((e) => {
611
612
  const s = this.querySelector(`.ng-container-${e}`), o = s == null ? void 0 : s.querySelector("table");
612
613
  if (!s || !o) return;
@@ -618,7 +619,7 @@ const et = class et extends HTMLElement {
618
619
  });
619
620
  }, "#updateContainerWidths"));
620
621
  w(this, "generate", /* @__PURE__ */ c((e) => {
621
- e && (g(this, G, zt.compile(e)), t(this, G).style.display = "table", t(this, wt).call(this), t(this, St).call(this), requestAnimationFrame(() => {
622
+ e && (g(this, G, Ot.compile(e)), t(this, G).style.display = "table", t(this, St).call(this), t(this, Et).call(this), requestAnimationFrame(() => {
622
623
  var o;
623
624
  const s = (o = this.querySelector("thead")) == null ? void 0 : o.getBoundingClientRect().height;
624
625
  this.querySelectorAll("tbody.fixed-tbody").forEach((r) => {
@@ -632,7 +633,7 @@ const et = class et extends HTMLElement {
632
633
  /**
633
634
  * 🎯 λ§ˆμŠ€ν„° ν…Œμ΄λΈ”μ„ 기반으둜 νŠΉμ • fixed νƒ€μž… μ˜μ—­λ§Œ λ‚¨κΈ°λŠ” λΆ„ν•  헬퍼
634
635
  */
635
- h(this, Et, /* @__PURE__ */ c((e, s) => {
636
+ h(this, Rt, /* @__PURE__ */ c((e, s) => {
636
637
  const o = e.cloneNode(!0), r = o.querySelector("tbody");
637
638
  if (r) {
638
639
  const n = document.createElement("tbody");
@@ -655,10 +656,10 @@ const et = class et extends HTMLElement {
655
656
  const s = this.querySelector(".ng-container-body");
656
657
  s && (s.scrollTop = e);
657
658
  }, "scrollToY"));
658
- h(this, Rt, /* @__PURE__ */ c(() => {
659
- t(this, kt).call(this);
660
- }, "#init"));
661
659
  h(this, kt, /* @__PURE__ */ c(() => {
660
+ t(this, qt).call(this);
661
+ }, "#init"));
662
+ h(this, qt, /* @__PURE__ */ c(() => {
662
663
  const e = et.SCROLLBAR_SIZE;
663
664
  this.innerHTML = `
664
665
  <style>
@@ -805,23 +806,23 @@ const et = class et extends HTMLElement {
805
806
  </div>
806
807
  `;
807
808
  }, "#render"));
808
- g(this, J, new Ot(this)), g(this, lt, this.getRootNode().host), O.log("================"), O.log(t(this, lt));
809
+ g(this, J, new Dt(this)), g(this, wt, this.getRootNode().host);
809
810
  }
810
811
  connectedCallback() {
811
- t(this, Rt).call(this);
812
+ t(this, kt).call(this);
812
813
  }
813
814
  disconnectedCallback() {
814
815
  this.innerHTML = "", O.log("NineTableSheet destroyed.");
815
816
  }
816
817
  };
817
- lt = new WeakMap(), G = new WeakMap(), J = new WeakMap(), wt = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), Rt = new WeakMap(), kt = new WeakMap(), c(et, "NineTableSheet"), w(et, "SCROLLBAR_SIZE", 16);
818
+ wt = new WeakMap(), G = new WeakMap(), J = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), Rt = new WeakMap(), kt = new WeakMap(), qt = new WeakMap(), c(et, "NineTableSheet"), w(et, "SCROLLBAR_SIZE", 16);
818
819
  let dt = et;
819
820
  customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", dt);
820
- var qt, ct;
821
- const jt = class jt extends HTMLElement {
821
+ var Tt, ct;
822
+ const Zt = class Zt extends HTMLElement {
822
823
  constructor() {
823
824
  super();
824
- h(this, qt, /* @__PURE__ */ c(() => {
825
+ h(this, Tt, /* @__PURE__ */ c(() => {
825
826
  var e;
826
827
  (e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
827
828
  var n;
@@ -862,18 +863,18 @@ const jt = class jt extends HTMLElement {
862
863
  }, "#switchSheet"));
863
864
  }
864
865
  connectedCallback() {
865
- t(this, qt).call(this);
866
+ t(this, Tt).call(this);
866
867
  }
867
868
  };
868
- qt = new WeakMap(), ct = new WeakMap(), c(jt, "NineTableSheets");
869
- let Dt = jt;
870
- customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Dt);
871
- var k, Tt, at, At;
872
- const Zt = class Zt {
869
+ Tt = new WeakMap(), ct = new WeakMap(), c(Zt, "NineTableSheets");
870
+ let Nt = Zt;
871
+ customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Nt);
872
+ var k, At, at, Lt;
873
+ const Gt = class Gt {
873
874
  constructor(i) {
874
875
  h(this, k);
875
- h(this, Tt, /* @__PURE__ */ c(() => {
876
- t(this, At).call(this), new ResizeObserver((i) => {
876
+ h(this, At, /* @__PURE__ */ c(() => {
877
+ t(this, Lt).call(this), new ResizeObserver((i) => {
877
878
  for (let e of i)
878
879
  t(this, k).getAttribute("auto-height") === "true" && t(this, at).call(this);
879
880
  }).observe(t(this, k));
@@ -885,7 +886,7 @@ const Zt = class Zt {
885
886
  const e = parseInt(t(this, k).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), o = (a = t(this, k).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : a.getBoundingClientRect().height, r = (d = t(this, k).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : d.getBoundingClientRect().height, n = dt.SCROLLBAR_SIZE, l = e * s + o + r + n;
886
887
  t(this, k).style.height = `${l}px`;
887
888
  }, "#applyAutoHeight"));
888
- h(this, At, /* @__PURE__ */ c(() => {
889
+ h(this, Lt, /* @__PURE__ */ c(() => {
889
890
  const e = Array.from(t(this, k).children).filter((a) => a.tagName === "TABLE"), s = t(this, k).getAttribute("auto-height") === "true", o = e.length, r = e.map((a, d) => {
890
891
  const u = `<nine-table-sheet class="${d === 0 ? "active" : ""}" data-index="${d}"></nine-table-sheet>`, b = d < o - 1 ? `<nine-splitter class="h" data-split-index="${d}"></nine-splitter>` : "";
891
892
  return u + b;
@@ -996,13 +997,13 @@ const Zt = class Zt {
996
997
  });
997
998
  });
998
999
  }, "#render"));
999
- g(this, k, i), t(this, Tt).call(this);
1000
+ g(this, k, i), t(this, At).call(this);
1000
1001
  }
1001
1002
  };
1002
- k = new WeakMap(), Tt = new WeakMap(), at = new WeakMap(), At = new WeakMap(), c(Zt, "LayoutManager");
1003
- let Nt = Zt;
1003
+ k = new WeakMap(), At = new WeakMap(), at = new WeakMap(), Lt = new WeakMap(), c(Gt, "LayoutManager");
1004
+ let Bt = Gt;
1004
1005
  var W, U;
1005
- const Gt = class Gt {
1006
+ const Jt = class Jt {
1006
1007
  constructor(i) {
1007
1008
  h(this, W);
1008
1009
  h(this, U, -1);
@@ -1022,18 +1023,18 @@ const Gt = class Gt {
1022
1023
  });
1023
1024
  }
1024
1025
  };
1025
- W = new WeakMap(), U = new WeakMap(), c(Gt, "ngRow");
1026
- let Bt = Gt;
1027
- var T, v, A, Q, Lt, z, Ht, ht, Ct, _t, tt;
1026
+ W = new WeakMap(), U = new WeakMap(), c(Jt, "ngRow");
1027
+ let Pt = Jt;
1028
+ var T, v, A, Q, Ht, z, Ct, ht, _t, Mt, tt;
1028
1029
  const L = class L {
1029
1030
  constructor(i, e) {
1030
1031
  h(this, T);
1031
1032
  h(this, v);
1032
1033
  h(this, A, []);
1033
1034
  h(this, Q, []);
1034
- h(this, Lt, 0);
1035
+ h(this, Ht, 0);
1035
1036
  h(this, z, []);
1036
- h(this, Ht, /* @__PURE__ */ c(() => {
1037
+ h(this, Ct, /* @__PURE__ */ c(() => {
1037
1038
  g(this, z, []);
1038
1039
  const i = t(this, T).template || [];
1039
1040
  Array.from(i).forEach((e) => {
@@ -1062,7 +1063,7 @@ const L = class L {
1062
1063
  var i;
1063
1064
  t(this, v).rawRecords = [], g(this, A, []), g(this, Q, []), (i = t(this, v).viewRecords) != null && i.reset && t(this, v).viewRecords.reset();
1064
1065
  }, "clear"));
1065
- h(this, Ct, /* @__PURE__ */ c((i) => {
1066
+ h(this, _t, /* @__PURE__ */ c((i) => {
1066
1067
  var o;
1067
1068
  Array.isArray(i) || (i = [i]);
1068
1069
  const e = typeof ((o = t(this, T).fields) == null ? void 0 : o.get) == "function" ? t(this, T).fields.get() : Object.keys(i[0] || {}), s = [];
@@ -1073,14 +1074,14 @@ const L = class L {
1073
1074
  }), s.push(n);
1074
1075
  }), s;
1075
1076
  }, "#json2Array"));
1076
- h(this, _t, /* @__PURE__ */ c((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
1077
+ h(this, Mt, /* @__PURE__ */ c((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
1077
1078
  e.__ng = t(this, ht).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = L.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1078
1079
  }), i), "#defaultInsert"));
1079
1080
  w(this, "add", /* @__PURE__ */ c((i, e = !0) => {
1080
1081
  var r;
1081
1082
  i === void 0 && (i = {});
1082
- const s = t(this, Ct).call(this, i);
1083
- t(this, v).rawRecords = t(this, v).rawRecords.concat(t(this, _t).call(this, s)), this.resetRecords();
1083
+ const s = t(this, _t).call(this, i);
1084
+ t(this, v).rawRecords = t(this, v).rawRecords.concat(t(this, Mt).call(this, s)), this.resetRecords();
1084
1085
  const o = this.count() - 1;
1085
1086
  return e || s.forEach((n, l) => {
1086
1087
  const a = t(this, v).rawRecords[o - l];
@@ -1142,7 +1143,7 @@ const L = class L {
1142
1143
  }
1143
1144
  return t(this, tt).call(this, s[i]);
1144
1145
  }, "get"));
1145
- g(this, T, i), g(this, v, e), t(this, Ht).call(this);
1146
+ g(this, T, i), g(this, v, e), t(this, Ct).call(this);
1146
1147
  }
1147
1148
  get source() {
1148
1149
  return t(this, tt).call(this, t(this, v).rawRecords);
@@ -1151,7 +1152,7 @@ const L = class L {
1151
1152
  this.clear(), this.add(i, !1);
1152
1153
  }
1153
1154
  get nextId() {
1154
- return ++ne(this, Lt)._;
1155
+ return ++oe(this, Ht)._;
1155
1156
  }
1156
1157
  get length() {
1157
1158
  return t(this, A).length;
@@ -1160,7 +1161,7 @@ const L = class L {
1160
1161
  return this.length;
1161
1162
  }
1162
1163
  };
1163
- T = new WeakMap(), v = new WeakMap(), A = new WeakMap(), Q = new WeakMap(), Lt = new WeakMap(), z = new WeakMap(), Ht = new WeakMap(), ht = new WeakMap(), Ct = new WeakMap(), _t = new WeakMap(), tt = new WeakMap(), c(L, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1164
+ T = new WeakMap(), v = new WeakMap(), A = new WeakMap(), Q = new WeakMap(), Ht = new WeakMap(), z = new WeakMap(), Ct = new WeakMap(), ht = new WeakMap(), _t = new WeakMap(), Mt = new WeakMap(), tt = new WeakMap(), c(L, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1164
1165
  w(L, "ROW_STATE", {
1165
1166
  EMPTY: "EMPTY",
1166
1167
  NORMAL: "NORMAL",
@@ -1168,10 +1169,10 @@ w(L, "ROW_STATE", {
1168
1169
  UPDATE: "UPDATE",
1169
1170
  DELETE: "DELETE"
1170
1171
  });
1171
- let Pt = L;
1172
- const Jt = class Jt {
1172
+ let Yt = L;
1173
+ const Qt = class Qt {
1173
1174
  constructor(i) {
1174
- this.owner = i, this.row = new Bt(this), this.data = new Pt(i, this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1175
+ this.owner = i, this.row = new Pt(this), this.data = new Yt(i, this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1175
1176
  var e;
1176
1177
  (e = this.owner.view) != null && e.redraw && this.owner.view.redraw();
1177
1178
  }, this.setDataSource = (e) => {
@@ -1188,19 +1189,19 @@ const Jt = class Jt {
1188
1189
  }, this.setDataSource([]);
1189
1190
  }
1190
1191
  };
1191
- c(Jt, "ngDataManager");
1192
- let Yt = Jt;
1193
- var F, Mt;
1194
- const Qt = class Qt extends HTMLElement {
1192
+ c(Qt, "ngDataManager");
1193
+ let Vt = Qt;
1194
+ var F, It;
1195
+ const te = class te extends HTMLElement {
1195
1196
  constructor() {
1196
1197
  super();
1197
1198
  //#created = false;
1198
1199
  h(this, F);
1199
- h(this, Mt);
1200
- this.attachShadow({ mode: "open" }), g(this, F, new Yt(this));
1200
+ h(this, It);
1201
+ this.attachShadow({ mode: "open" }), g(this, F, new Vt(this));
1201
1202
  }
1202
1203
  connectedCallback() {
1203
- g(this, Mt, new Nt(this)), O.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1204
+ g(this, It, new Bt(this)), O.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1204
1205
  }
1205
1206
  disconnectedCallback() {
1206
1207
  O.log("NineTable disconnected.");
@@ -1218,7 +1219,7 @@ const Qt = class Qt extends HTMLElement {
1218
1219
  return t(this, F);
1219
1220
  }
1220
1221
  };
1221
- F = new WeakMap(), Mt = new WeakMap(), c(Qt, "NineTable");
1222
- let Vt = Qt;
1223
- customElements.get("nine-table") || customElements.define("nine-table", Vt);
1222
+ F = new WeakMap(), It = new WeakMap(), c(te, "NineTable");
1223
+ let Xt = te;
1224
+ customElements.get("nine-table") || customElements.define("nine-table", Xt);
1224
1225
  //# sourceMappingURL=nine-table.js.map