@ninebone/table 0.0.569 → 0.0.571

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.
@@ -5,10 +5,10 @@ var Ve = (R) => {
5
5
  var Xe = (R, r, e) => r in R ? Fe(R, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : R[r] = e;
6
6
  var h = (R, r) => Fe(R, "name", { value: r, configurable: !0 });
7
7
  var A = (R, r, e) => Xe(R, typeof r != "symbol" ? r + "" : r, e), Ye = (R, r, e) => r.has(R) || Ve("Cannot " + e);
8
- var t = (R, r, e) => (Ye(R, r, "read from private field"), e ? e.call(R) : r.get(R)), d = (R, r, e) => r.has(R) ? Ve("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(R) : r.set(R, e), y = (R, r, e, s) => (Ye(R, r, "write to private field"), s ? s.call(R, e) : r.set(R, e), e);
8
+ var t = (R, r, e) => (Ye(R, r, "read from private field"), e ? e.call(R) : r.get(R)), d = (R, r, e) => r.has(R) ? Ve("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(R) : r.set(R, e), p = (R, r, e, s) => (Ye(R, r, "write to private field"), s ? s.call(R, e) : r.set(R, e), e);
9
9
  var Ue = (R, r, e, s) => ({
10
10
  set _(i) {
11
- y(R, r, i, e);
11
+ p(R, r, i, e);
12
12
  },
13
13
  get _() {
14
14
  return t(R, r, s);
@@ -36,7 +36,7 @@ const Me = class Me extends HTMLElement {
36
36
  d(this, It, /* @__PURE__ */ h(() => {
37
37
  if (!t(this, z)) return;
38
38
  const e = t(this, z).querySelector(".ng-container-body .ng-part-body");
39
- e && (y(this, Z, new ResizeObserver(() => {
39
+ e && (p(this, Z, new ResizeObserver(() => {
40
40
  this.refresh();
41
41
  })), t(this, Z).observe(e));
42
42
  }, "#observeResize"));
@@ -77,8 +77,8 @@ const Me = class Me extends HTMLElement {
77
77
  const e = /* @__PURE__ */ h((i) => {
78
78
  clearInterval(t(this, X)), clearInterval(t(this, K));
79
79
  const n = parseInt(t(this, w).thumb.style.left || 0, 10);
80
- t(this, G).call(this, n + i), y(this, X, setInterval(() => {
81
- clearInterval(t(this, X)), y(this, K, setInterval(() => {
80
+ t(this, G).call(this, n + i), p(this, X, setInterval(() => {
81
+ clearInterval(t(this, X)), p(this, K, setInterval(() => {
82
82
  const o = parseInt(t(this, w).thumb.style.left || 0, 10);
83
83
  t(this, G).call(this, o + i) || clearInterval(t(this, K));
84
84
  }, 50));
@@ -99,20 +99,20 @@ const Me = class Me extends HTMLElement {
99
99
  t(this, G).call(this, i.clientX - n.left - o / 2);
100
100
  }), t(this, w).thumb.addEventListener("mousedown", (i) => {
101
101
  if (i.button !== 0) return;
102
- i.stopPropagation(), i.preventDefault(), y(this, j, !0), this.shiftX = i.clientX - t(this, w).thumb.getBoundingClientRect().left;
102
+ i.stopPropagation(), i.preventDefault(), p(this, j, !0), this.shiftX = i.clientX - t(this, w).thumb.getBoundingClientRect().left;
103
103
  const n = /* @__PURE__ */ h((a) => {
104
104
  if (!t(this, j)) return;
105
105
  const c = t(this, w).track.getBoundingClientRect();
106
106
  t(this, G).call(this, a.clientX - c.left - this.shiftX);
107
107
  }, "onMouseMove"), o = /* @__PURE__ */ h(() => {
108
- y(this, j, !1), s(), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", o), this.refresh();
108
+ p(this, j, !1), s(), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", o), this.refresh();
109
109
  }, "onMouseUp");
110
110
  document.addEventListener("mousemove", n), document.addEventListener("mouseup", o);
111
111
  });
112
112
  }, "#init"));
113
113
  }
114
114
  connectedCallback() {
115
- if (y(this, z, this.closest("nine-table-sheet") || this.getRootNode().host), !t(this, z)) return;
115
+ if (p(this, z, this.closest("nine-table-sheet") || this.getRootNode().host), !t(this, z)) return;
116
116
  this.innerHTML = `
117
117
  <style>
118
118
  nine-table-hscrollbar {
@@ -182,7 +182,7 @@ const Me = class Me extends HTMLElement {
182
182
  setTimeout(e, 10);
183
183
  return;
184
184
  }
185
- y(this, w, {
185
+ p(this, w, {
186
186
  container: s,
187
187
  track: this.querySelector(".ng-scroll-track"),
188
188
  thumb: this.querySelector(".ng-scroll-thumb"),
@@ -239,7 +239,7 @@ const $e = class $e extends HTMLElement {
239
239
  t(this, J) || this.refresh();
240
240
  }), t(this, q).thumb.addEventListener("mousedown", (i) => {
241
241
  if (i.button !== 0) return;
242
- i.stopPropagation(), i.preventDefault(), y(this, J, !0), y(this, mt, i.clientY), y(this, xt, e.scrollTop);
242
+ i.stopPropagation(), i.preventDefault(), p(this, J, !0), p(this, mt, i.clientY), p(this, xt, e.scrollTop);
243
243
  const n = /* @__PURE__ */ h((a) => {
244
244
  if (!t(this, J)) return;
245
245
  const c = t(this, q).track.getBoundingClientRect(), l = t(this, q).thumb.clientHeight, u = c.height - l, g = a.clientY - t(this, mt), b = e.clientHeight, m = s(), v = Math.max(m - b, 1);
@@ -251,7 +251,7 @@ const $e = class $e extends HTMLElement {
251
251
  }
252
252
  this.refresh();
253
253
  }, "onMouseMove"), o = /* @__PURE__ */ h(() => {
254
- y(this, J, !1), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", o), this.refresh();
254
+ p(this, J, !1), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", o), this.refresh();
255
255
  }, "onMouseUp");
256
256
  document.addEventListener("mousemove", n), document.addEventListener("mouseup", o);
257
257
  }), t(this, q).track.addEventListener("mousedown", (i) => {
@@ -270,7 +270,7 @@ const $e = class $e extends HTMLElement {
270
270
  }, "#init"));
271
271
  }
272
272
  connectedCallback() {
273
- y(this, F, this.getRootNode().host), y(this, ot, this.closest("nine-table-sheet")), this.innerHTML = `
273
+ p(this, F, this.getRootNode().host), p(this, ot, this.closest("nine-table-sheet")), this.innerHTML = `
274
274
  <style>
275
275
  nine-table-vscrollbar {
276
276
  display: flex;
@@ -340,7 +340,7 @@ const $e = class $e extends HTMLElement {
340
340
  setTimeout(e, 10);
341
341
  return;
342
342
  }
343
- y(this, q, {
343
+ p(this, q, {
344
344
  container: s,
345
345
  track: this.querySelector(".ng-scroll-track"),
346
346
  thumb: this.querySelector(".ng-scroll-thumb"),
@@ -376,10 +376,10 @@ const Ie = class Ie {
376
376
  r && (t(this, wt).call(this), t(this, at).call(this, r.scrollTop), (e = t(this, S).querySelector("nine-table-vscrollbar")) == null || e.refresh());
377
377
  }, "refresh"));
378
378
  A(this, "initialize", /* @__PURE__ */ h(() => {
379
- W.log("rowManager.initialize"), y(this, Q, {
379
+ W.log("rowManager.initialize"), p(this, Q, {
380
380
  scrollTables: t(this, S).querySelectorAll(".ng-part-body table"),
381
381
  firstTr: t(this, S).querySelector(".ng-container-body .ng-part-body tbody.bindable-tbody tr:not(.nodata)")
382
- }), y(this, I, null), t(this, P).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
382
+ }), p(this, I, null), t(this, P).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
383
383
  const a = t(this, S).querySelector(o);
384
384
  if (!a) return;
385
385
  const c = a.querySelector(".ng-part-body table");
@@ -439,7 +439,7 @@ const Ie = class Ie {
439
439
  const u = s.querySelectorAll("tr:not(.nodata)");
440
440
  return u.forEach((g) => {
441
441
  f += g.offsetHeight || g.getBoundingClientRect().height;
442
- }), u.forEach((g) => g.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, y(this, I, f > 0 ? f : 24), t(this, St).call(this), t(this, I);
442
+ }), u.forEach((g) => g.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, p(this, I, f > 0 ? f : 24), t(this, St).call(this), t(this, I);
443
443
  }, "#measureAndCacheHeight"));
444
444
  d(this, wt, /* @__PURE__ */ h(() => {
445
445
  W.log("rowManager.#updateVirtualScrollHeight");
@@ -454,7 +454,7 @@ const Ie = class Ie {
454
454
  d(this, St, /* @__PURE__ */ h(() => {
455
455
  if (t(this, tt) > 0 && t(this, I) > 0) {
456
456
  const r = Math.ceil(t(this, tt) / t(this, I));
457
- y(this, vt, r + t(this, Wt));
457
+ p(this, vt, r + t(this, Wt));
458
458
  }
459
459
  }, "#updateRowCount"));
460
460
  d(this, zt, /* @__PURE__ */ h(() => {
@@ -485,7 +485,7 @@ const Ie = class Ie {
485
485
  }
486
486
  }, "#syncRowHeights"));
487
487
  d(this, Pt, /* @__PURE__ */ h(() => {
488
- !t(this, S) || !(t(this, S) instanceof HTMLElement) || (y(this, V, new ResizeObserver((r) => {
488
+ !t(this, S) || !(t(this, S) instanceof HTMLElement) || (p(this, V, new ResizeObserver((r) => {
489
489
  for (const e of r) {
490
490
  const s = e.target;
491
491
  if (!s.classList.contains("active")) continue;
@@ -495,7 +495,7 @@ const Ie = class Ie {
495
495
  const o = s.querySelector(".ng-part-header"), a = s.querySelector(".ng-part-footer");
496
496
  o && (n += o.offsetHeight), a && (n += a.offsetHeight);
497
497
  const c = Math.max(i - n, 100);
498
- t(this, tt) !== c && (y(this, tt, c), t(this, St).call(this), t(this, I) !== null && (t(this, Et).call(this), this.refresh()));
498
+ t(this, tt) !== c && (p(this, tt, c), t(this, St).call(this), t(this, I) !== null && (t(this, Et).call(this), this.refresh()));
499
499
  }
500
500
  }
501
501
  })), t(this, V).observe(t(this, S)));
@@ -587,9 +587,9 @@ const Ie = class Ie {
587
587
  }
588
588
  }, "#syncHeaderHeights"));
589
589
  A(this, "destroy", /* @__PURE__ */ h(() => {
590
- t(this, V) && (t(this, V).disconnect(), y(this, V, null));
590
+ t(this, V) && (t(this, V).disconnect(), p(this, V, null));
591
591
  }, "destroy"));
592
- y(this, D, r.getRootNode().host), y(this, S, r), t(this, Pt).call(this);
592
+ p(this, D, r.getRootNode().host), p(this, S, r), t(this, Pt).call(this);
593
593
  }
594
594
  getRowHeight() {
595
595
  return t(this, I);
@@ -681,7 +681,7 @@ const jt = class jt {
681
681
  h(jt, "TableCompiler");
682
682
  let he = jt;
683
683
  var Ft, lt, et, Vt, Yt, Rt, Ut, Xt;
684
- const yt = class yt extends HTMLElement {
684
+ const pt = class pt extends HTMLElement {
685
685
  constructor() {
686
686
  super();
687
687
  d(this, Ft);
@@ -721,7 +721,7 @@ const yt = class yt extends HTMLElement {
721
721
  });
722
722
  }, "#updateContainerWidths"));
723
723
  A(this, "generate", /* @__PURE__ */ h((e) => {
724
- e && (y(this, lt, he.compile(e)), t(this, Vt).call(this), t(this, Yt).call(this), t(this, et).initialize(), setTimeout(() => {
724
+ e && (p(this, lt, he.compile(e)), t(this, Vt).call(this), t(this, Yt).call(this), t(this, et).initialize(), setTimeout(() => {
725
725
  var s;
726
726
  (s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
727
727
  }, 0));
@@ -755,7 +755,7 @@ const yt = class yt extends HTMLElement {
755
755
  t(this, Xt).call(this);
756
756
  }, "#init"));
757
757
  d(this, Xt, /* @__PURE__ */ h(() => {
758
- const e = yt.SCROLLBAR_SIZE;
758
+ const e = pt.SCROLLBAR_SIZE;
759
759
  this.innerHTML = `
760
760
  <style>
761
761
  nine-table-sheet {
@@ -893,11 +893,14 @@ const yt = class yt extends HTMLElement {
893
893
  </style>
894
894
 
895
895
  <div class='ng-container-top'>
896
- <div class='ng-container-left'></div>
896
+ <div class='ng-container-left'>
897
+ <div class="ng-part-header"</div>
897
898
  <div class='ng-container-body'>
898
-
899
+ <div class="ng-part-header"</div>
900
+ </div>
901
+ <div class='ng-container-right'>
902
+ <div class="ng-part-header"</div>
899
903
  </div>
900
- <div class='ng-container-right'></div>
901
904
  <nine-table-vscrollbar></nine-table-vscrollbar>
902
905
  </div
903
906
  <div class='ng-container-bottom'>
@@ -906,7 +909,7 @@ const yt = class yt extends HTMLElement {
906
909
  </div>
907
910
  `;
908
911
  }, "#render"));
909
- y(this, et, new ce(this)), y(this, Ft, this.getRootNode().host);
912
+ p(this, et, new ce(this)), p(this, Ft, this.getRootNode().host);
910
913
  }
911
914
  connectedCallback() {
912
915
  t(this, Ut).call(this);
@@ -915,8 +918,8 @@ const yt = class yt extends HTMLElement {
915
918
  this.innerHTML = "", W.log("NineTableSheet destroyed.");
916
919
  }
917
920
  };
918
- Ft = new WeakMap(), lt = new WeakMap(), et = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), Rt = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), h(yt, "NineTableSheet"), A(yt, "SCROLLBAR_SIZE", 16);
919
- let $t = yt;
921
+ Ft = new WeakMap(), lt = new WeakMap(), et = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), Rt = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), h(pt, "NineTableSheet"), A(pt, "SCROLLBAR_SIZE", 16);
922
+ let $t = pt;
920
923
  customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", $t);
921
924
  var Kt, qt;
922
925
  const _e = class _e extends HTMLElement {
@@ -1106,7 +1109,7 @@ const Ne = class Ne {
1106
1109
  });
1107
1110
  });
1108
1111
  }, "#render"));
1109
- y(this, H, r), t(this, Zt).call(this);
1112
+ p(this, H, r), t(this, Zt).call(this);
1110
1113
  }
1111
1114
  };
1112
1115
  H = new WeakMap(), Zt = new WeakMap(), Tt = new WeakMap(), Gt = new WeakMap(), h(Ne, "LayoutManager");
@@ -1117,13 +1120,13 @@ const We = class We {
1117
1120
  d(this, kt);
1118
1121
  d(this, ct, -1);
1119
1122
  A(this, "count", /* @__PURE__ */ h(() => t(this, kt).rawRecords.length, "count"));
1120
- y(this, kt, r);
1123
+ p(this, kt, r);
1121
1124
  }
1122
1125
  get at() {
1123
1126
  return t(this, ct);
1124
1127
  }
1125
1128
  set at(r) {
1126
- y(this, ct, parseInt(r, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, ct)}"]`) && setTimeout(() => {
1129
+ p(this, ct, parseInt(r, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, ct)}"]`) && setTimeout(() => {
1127
1130
  });
1128
1131
  }
1129
1132
  };
@@ -1139,7 +1142,7 @@ const O = class O {
1139
1142
  d(this, Jt, 0);
1140
1143
  d(this, Y, []);
1141
1144
  d(this, Qt, /* @__PURE__ */ h(() => {
1142
- y(this, Y, []);
1145
+ p(this, Y, []);
1143
1146
  const r = t(this, _).template || [];
1144
1147
  Array.from(r).forEach((e) => {
1145
1148
  var s;
@@ -1180,11 +1183,11 @@ const O = class O {
1180
1183
  _: [0, 0, 0, 0, O.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, Y).slice(), -1, {}, {}]
1181
1184
  }), "#getDefaultMeta"));
1182
1185
  A(this, "reset", /* @__PURE__ */ h(() => {
1183
- y(this, N, []), y(this, ht, []), t(this, st).call(this);
1186
+ p(this, N, []), p(this, ht, []), t(this, st).call(this);
1184
1187
  }, "reset"));
1185
1188
  A(this, "clear", /* @__PURE__ */ h(() => {
1186
1189
  var r;
1187
- t(this, k).rawRecords = [], y(this, N, []), y(this, ht, []), (r = t(this, k).viewRecords) != null && r.reset && t(this, k).viewRecords.reset();
1190
+ t(this, k).rawRecords = [], p(this, N, []), p(this, ht, []), (r = t(this, k).viewRecords) != null && r.reset && t(this, k).viewRecords.reset();
1188
1191
  }, "clear"));
1189
1192
  d(this, te, /* @__PURE__ */ h((r) => {
1190
1193
  var i;
@@ -1232,7 +1235,7 @@ const O = class O {
1232
1235
  a !== s && o.__ng.rowState !== O.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(e) || (o.__ng.o[e] = a), o.__ng.rowState = O.ROW_STATE.UPDATE), o.v[n] = s;
1233
1236
  }, "setValue"));
1234
1237
  A(this, "resetRecords", /* @__PURE__ */ h(() => {
1235
- y(this, ht, t(this, k).rawRecords.filter((r) => !r.__ng.deleted)), y(this, N, t(this, k).rawRecords.filter((r) => !r.__ng.deleted && !r.__ng.filtered)), t(this, k).rawRecords.forEach((r, e) => {
1238
+ p(this, ht, t(this, k).rawRecords.filter((r) => !r.__ng.deleted)), p(this, N, t(this, k).rawRecords.filter((r) => !r.__ng.deleted && !r.__ng.filtered)), t(this, k).rawRecords.forEach((r, e) => {
1236
1239
  r.__ng.rowidx = e;
1237
1240
  }), t(this, N).forEach((r, e) => {
1238
1241
  r.__ng.i = e;
@@ -1251,7 +1254,7 @@ const O = class O {
1251
1254
  return e ? n[0] : n;
1252
1255
  }, "#conv"));
1253
1256
  A(this, "count", /* @__PURE__ */ h(() => this.getValidData().length, "count"));
1254
- y(this, _, r), y(this, k, e), t(this, Qt).call(this);
1257
+ p(this, _, r), p(this, k, e), t(this, Qt).call(this);
1255
1258
  }
1256
1259
  get source() {
1257
1260
  return t(this, dt).call(this, t(this, k).rawRecords);
@@ -1285,7 +1288,7 @@ var rt;
1285
1288
  const Oe = class Oe {
1286
1289
  constructor(r) {
1287
1290
  d(this, rt);
1288
- y(this, rt, r), this.row = new ue(this), this.data = new ge(t(this, rt), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1291
+ p(this, rt, r), this.row = new ue(this), this.data = new ge(t(this, rt), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1289
1292
  var e;
1290
1293
  (e = t(this, rt).view) != null && e.redraw && t(this, rt).view.redraw();
1291
1294
  }, this.setDataSource = (e) => {
@@ -1319,10 +1322,10 @@ const Be = class Be {
1319
1322
  const r = /* @__PURE__ */ new Map();
1320
1323
  t(this, L).forEach((e) => {
1321
1324
  r.set(e.name, e.type);
1322
- }), y(this, L, Array.from(r, ([e, s]) => ({ name: e, type: s }))), y(this, L, t(this, L).filter((e) => e.name !== "" && e.name !== "__ng")), t(this, L).sort((e, s) => e.name.length < s.name.length ? 1 : -1);
1325
+ }), p(this, L, Array.from(r, ([e, s]) => ({ name: e, type: s }))), p(this, L, t(this, L).filter((e) => e.name !== "" && e.name !== "__ng")), t(this, L).sort((e, s) => e.name.length < s.name.length ? 1 : -1);
1323
1326
  }, "#adjust"));
1324
1327
  d(this, se, /* @__PURE__ */ h(() => {
1325
- y(this, L, []), W.log(t(this, ft).querySelectorAll("table"));
1328
+ p(this, L, []), W.log(t(this, ft).querySelectorAll("table"));
1326
1329
  const r = Array.from(t(this, ft).querySelectorAll("table"));
1327
1330
  if (!(!r || r.length === 0)) {
1328
1331
  for (const e of r)
@@ -1353,7 +1356,7 @@ const Be = class Be {
1353
1356
  t(this, Lt).call(this);
1354
1357
  }
1355
1358
  }, "#init"));
1356
- y(this, ft, r), t(this, se).call(this);
1359
+ p(this, ft, r), t(this, se).call(this);
1357
1360
  }
1358
1361
  // 🎯 기존에 필드 이름만 쓰던 곳들과의 호환을 위해 이름 배열만 리턴하는 메서드 유지
1359
1362
  get() {
@@ -1376,7 +1379,7 @@ const Be = class Be {
1376
1379
  }
1377
1380
  };
1378
1381
  ft = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), h(Be, "ngFields");
1379
- let ye = Be;
1382
+ let pe = Be;
1380
1383
  var it, re, ie;
1381
1384
  const ze = class ze extends HTMLElement {
1382
1385
  constructor() {
@@ -1385,9 +1388,9 @@ const ze = class ze extends HTMLElement {
1385
1388
  d(this, it);
1386
1389
  d(this, re);
1387
1390
  d(this, ie, /* @__PURE__ */ h(() => {
1388
- this.fields = new ye(this), y(this, re, new fe(this)), W.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1391
+ this.fields = new pe(this), p(this, re, new fe(this)), W.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1389
1392
  }, "#init"));
1390
- this.attachShadow({ mode: "open" }), y(this, it, new be(this));
1393
+ this.attachShadow({ mode: "open" }), p(this, it, new be(this));
1391
1394
  }
1392
1395
  connectedCallback() {
1393
1396
  t(this, ie).call(this);
@@ -1409,9 +1412,9 @@ const ze = class ze extends HTMLElement {
1409
1412
  }
1410
1413
  };
1411
1414
  it = new WeakMap(), re = new WeakMap(), ie = new WeakMap(), h(ze, "NineTable");
1412
- let pe = ze;
1413
- customElements.get("nine-table") || customElements.define("nine-table", pe);
1414
- const pt = class pt extends HTMLElement {
1415
+ let ye = ze;
1416
+ customElements.get("nine-table") || customElements.define("nine-table", ye);
1417
+ const yt = class yt extends HTMLElement {
1415
1418
  // 👈 커스텀 스타일용 캐시 추가
1416
1419
  constructor() {
1417
1420
  super();
@@ -1422,44 +1425,44 @@ const pt = class pt extends HTMLElement {
1422
1425
  connectedCallback() {
1423
1426
  }
1424
1427
  };
1425
- h(pt, "BasicCellElement"), A(pt, "_styleCache", /* @__PURE__ */ new Map()), A(pt, "_customStyleCache", /* @__PURE__ */ new Map());
1426
- let me = pt;
1427
- var C, Ht, p, Re, qe, Te, ke, Ce;
1428
+ h(yt, "BasicCellElement"), A(yt, "_styleCache", /* @__PURE__ */ new Map()), A(yt, "_customStyleCache", /* @__PURE__ */ new Map());
1429
+ let me = yt;
1430
+ var C, Ht, y, Re, qe, Te, ke, Ce;
1428
1431
  const Pe = class Pe extends me {
1429
1432
  constructor() {
1430
1433
  super();
1431
1434
  d(this, C);
1432
1435
  d(this, Ht);
1433
- d(this, p);
1436
+ d(this, y);
1434
1437
  d(this, Re);
1435
1438
  d(this, qe);
1436
1439
  d(this, Te);
1437
1440
  d(this, ke);
1438
1441
  A(this, "getDisplayText", /* @__PURE__ */ h((e) => {
1439
- if (t(this, p))
1440
- if (t(this, p).closest("tbody")) {
1441
- const s = t(this, p).closest("tr").data, i = parseInt(t(this, p).dataset.row);
1442
+ if (t(this, y))
1443
+ if (t(this, y).closest("tbody")) {
1444
+ const s = t(this, y).closest("tr").data, i = parseInt(t(this, y).dataset.row);
1442
1445
  if (!s) return "";
1443
- if (ninegrid.isNull(t(this, p).dataset.expr)) {
1444
- if (!ninegrid.isNull(t(this, p).dataset.bind))
1445
- return s[t(this, p).dataset.bind] || ninegrid.nvl(e, "");
1446
+ if (ninegrid.isNull(t(this, y).dataset.expr)) {
1447
+ if (!ninegrid.isNull(t(this, y).dataset.bind))
1448
+ return s[t(this, y).dataset.bind] || ninegrid.nvl(e, "");
1446
1449
  } else try {
1447
- return this.getExprValue(t(this, p).dataset.expr, s, i, t(this, p));
1450
+ return this.getExprValue(t(this, y).dataset.expr, s, i, t(this, y));
1448
1451
  } catch {
1449
- console.error(t(this, p).dataset.expr, s, t(this, p).dataset.row);
1452
+ console.error(t(this, y).dataset.expr, s, t(this, y).dataset.row);
1450
1453
  }
1451
1454
  return ninegrid.nvl(e, "");
1452
1455
  } else
1453
1456
  try {
1454
- return t(this, C).exprFunction(t(this, p).dataset.expr).call(this, null, -1, t(this, C).data);
1457
+ return t(this, C).exprFunction(t(this, y).dataset.expr).call(this, null, -1, t(this, C).data);
1455
1458
  } catch {
1456
1459
  }
1457
1460
  }, "getDisplayText"));
1458
1461
  d(this, Ce, /* @__PURE__ */ h(() => {
1459
- if (!(!t(this, C) || !t(this, C).template || !t(this, p).closest("tbody.bindable"))) {
1460
- var e = ninegrid.j.querySelectorAll(t(this, p)).attr("suppress");
1462
+ if (!(!t(this, C) || !t(this, C).template || !t(this, y).closest("tbody.bindable"))) {
1463
+ var e = ninegrid.j.querySelectorAll(t(this, y)).attr("suppress");
1461
1464
  if (e && (e = parseInt(e)), e && !isNaN(e)) {
1462
- var s = t(this, p).closest("tr"), i = [];
1465
+ var s = t(this, y).closest("tr"), i = [];
1463
1466
  $("th,td", s).each((x, M) => {
1464
1467
  var T = ninegrid.j.querySelectorAll(M).attr("suppress");
1465
1468
  T && M.dataset.row && (T = parseInt(T), !isNaN(T) && T <= e && i.push(T));
@@ -1468,9 +1471,9 @@ const Pe = class Pe extends me {
1468
1471
  if (parseInt(s.sectionRowIndex / t(this, C).template.length) > 0)
1469
1472
  for (var o of i) {
1470
1473
  if (o > e) break;
1471
- var a = parseInt(t(this, p).dataset.row), c = a - 1, l = t(this, p).closest("tr").data, f = t(this, C).data.get(c);
1472
- t(this, p).dataset.matrixRow;
1473
- var u = t(this, C).body.querySelector(`tbody.bindable [suppress="${o}"][data-matrix-row="${t(this, p).dataset.matrixRow}"]`), g = u.dataset.expr ? this.getExprValue(u.dataset.expr, l, a) : l[u.dataset.bind], b = u.dataset.expr ? this.getExprValue(u.dataset.expr, f, c) : f[u.dataset.bind];
1474
+ var a = parseInt(t(this, y).dataset.row), c = a - 1, l = t(this, y).closest("tr").data, f = t(this, C).data.get(c);
1475
+ t(this, y).dataset.matrixRow;
1476
+ var u = t(this, C).body.querySelector(`tbody.bindable [suppress="${o}"][data-matrix-row="${t(this, y).dataset.matrixRow}"]`), g = u.dataset.expr ? this.getExprValue(u.dataset.expr, l, a) : l[u.dataset.bind], b = u.dataset.expr ? this.getExprValue(u.dataset.expr, f, c) : f[u.dataset.bind];
1474
1477
  if (g != b) {
1475
1478
  n = !0;
1476
1479
  break;
@@ -1478,9 +1481,9 @@ const Pe = class Pe extends me {
1478
1481
  }
1479
1482
  else
1480
1483
  n = !0;
1481
- n ? ninegrid.j.querySelectorAll(t(this, p)).removeClass("suppress") : ninegrid.j.querySelectorAll(t(this, p)).addClass("suppress"), ninegrid.j.querySelectorAll(t(this, p)).hasClass("hidden") || (n ? ninegrid.j.querySelectorAll(t(this, p)).removeClass("hidden") : ninegrid.j.querySelectorAll(t(this, p)).addClass("hidden"));
1482
- var m = parseInt(t(this, p).dataset.matrixRow), v = m - 1, E = t(this, C).body.querySelector(`tbody.bindable [data-col="${t(this, p).dataset.col}"][data-matrix-row="${v}"]`);
1483
- $(E).hasClass("suppress") && !ninegrid.j.querySelectorAll(t(this, p)).hasClass("suppress") ? ninegrid.j.querySelectorAll(E).removeClass("last-none-suppress").addClass("last-suppress") : !$(E).hasClass("suppress") && ninegrid.j.querySelectorAll(t(this, p)).hasClass("suppress") ? ninegrid.j.querySelectorAll(E).removeClass("last-suppress").addClass("last-none-suppress") : ninegrid.j.querySelectorAll(E).removeClass("last-none-suppress").removeClass("last-suppress");
1484
+ n ? ninegrid.j.querySelectorAll(t(this, y)).removeClass("suppress") : ninegrid.j.querySelectorAll(t(this, y)).addClass("suppress"), ninegrid.j.querySelectorAll(t(this, y)).hasClass("hidden") || (n ? ninegrid.j.querySelectorAll(t(this, y)).removeClass("hidden") : ninegrid.j.querySelectorAll(t(this, y)).addClass("hidden"));
1485
+ var m = parseInt(t(this, y).dataset.matrixRow), v = m - 1, E = t(this, C).body.querySelector(`tbody.bindable [data-col="${t(this, y).dataset.col}"][data-matrix-row="${v}"]`);
1486
+ $(E).hasClass("suppress") && !ninegrid.j.querySelectorAll(t(this, y)).hasClass("suppress") ? ninegrid.j.querySelectorAll(E).removeClass("last-none-suppress").addClass("last-suppress") : !$(E).hasClass("suppress") && ninegrid.j.querySelectorAll(t(this, y)).hasClass("suppress") ? ninegrid.j.querySelectorAll(E).removeClass("last-suppress").addClass("last-none-suppress") : ninegrid.j.querySelectorAll(E).removeClass("last-none-suppress").removeClass("last-suppress");
1484
1487
  }
1485
1488
  }
1486
1489
  }, "#resetSuppress"));
@@ -1489,7 +1492,7 @@ const Pe = class Pe extends me {
1489
1492
  try {
1490
1493
  i = parseInt(i);
1491
1494
  const o = e.replace("()", "");
1492
- return t(this, C)[o] ? t(this, C)[o].call(this, s, i, t(this, p)) : t(this, C).exprFunction(e).call(this, s, i, t(this, C).data);
1495
+ return t(this, C)[o] ? t(this, C)[o].call(this, s, i, t(this, y)) : t(this, C).exprFunction(e).call(this, s, i, t(this, C).data);
1493
1496
  } catch {
1494
1497
  return ["NG-COMBO"].includes(this.tagName) ? "" : e;
1495
1498
  }
@@ -1498,29 +1501,29 @@ const Pe = class Pe extends me {
1498
1501
  }, "getExprValue"));
1499
1502
  }
1500
1503
  connectedCallback() {
1501
- super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this, Ht, t(this, p).closest("tr"));
1504
+ super.connectedCallback(), p(this, C, this.getRootNode().host), p(this, y, this.closest("th,td")), p(this, Ht, t(this, y).closest("tr"));
1502
1505
  }
1503
1506
  get value() {
1504
- var e = !t(this, C) || !t(this, C).dataManager || !t(this, p) || !t(this, p).dataset || !t(this, p).dataset.row || !t(this, p).dataset.bind ? "" : t(this, p).closest("tr").data[t(this, p).dataset.bind];
1507
+ var e = !t(this, C) || !t(this, C).dataManager || !t(this, y) || !t(this, y).dataset || !t(this, y).dataset.row || !t(this, y).dataset.bind ? "" : t(this, y).closest("tr").data[t(this, y).dataset.bind];
1505
1508
  return e ?? "";
1506
1509
  }
1507
1510
  set value(e) {
1508
- var s = parseInt(t(this, p).dataset.row);
1511
+ var s = parseInt(t(this, y).dataset.row);
1509
1512
  const i = this.getAttribute("update-row-state") != "false";
1510
- s < 0 ? t(this, C).data.setValueNF(parseInt(t(this, p).dataset.index), t(this, p).dataset.bind, e, i) : t(this, C).data.setValue(s, t(this, p).dataset.bind, e, i);
1513
+ s < 0 ? t(this, C).data.setValueNF(parseInt(t(this, y).dataset.index), t(this, y).dataset.bind, e, i) : t(this, C).data.setValue(s, t(this, y).dataset.bind, e, i);
1511
1514
  }
1512
1515
  get row() {
1513
- return parseInt(t(this, p).dataset.row);
1516
+ return parseInt(t(this, y).dataset.row);
1514
1517
  }
1515
1518
  get data() {
1516
- return t(this, p).closest("tr").data;
1519
+ return t(this, y).closest("tr").data;
1517
1520
  }
1518
1521
  refresh() {
1519
- const e = t(this, p).dataset.bind;
1520
- return parseInt(t(this, p).dataset.row), t(this, Ht).data[e];
1522
+ const e = t(this, y).dataset.bind;
1523
+ return parseInt(t(this, y).dataset.row), t(this, Ht).data[e];
1521
1524
  }
1522
1525
  };
1523
- C = new WeakMap(), Ht = new WeakMap(), p = new WeakMap(), Re = new WeakMap(), qe = new WeakMap(), Te = new WeakMap(), ke = new WeakMap(), Ce = new WeakMap(), h(Pe, "CellElement");
1526
+ C = new WeakMap(), Ht = new WeakMap(), y = new WeakMap(), Re = new WeakMap(), qe = new WeakMap(), Te = new WeakMap(), ke = new WeakMap(), Ce = new WeakMap(), h(Pe, "CellElement");
1524
1527
  let xe = Pe;
1525
1528
  const De = class De extends xe {
1526
1529
  constructor() {
@@ -1594,7 +1597,7 @@ const je = class je extends ve {
1594
1597
  t(this, ut) && ninegrid.getByteLength(e.target.value) >= Number(t(this, ut)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
1595
1598
  }
1596
1599
  }, "#onKeyDown"));
1597
- if (this.applyBaseStyle(), y(this, nt, this.getAttribute("type") || "text"), y(this, ut, this.getAttribute("maxbyte")), y(this, gt, this.getAttribute("min")), y(this, ne, this.getAttribute("max")), y(this, U, this.getAttribute("scale")), !["text", "number"].includes(t(this, nt))) throw `invalid type : ${t(this, nt)}`;
1600
+ if (this.applyBaseStyle(), p(this, nt, this.getAttribute("type") || "text"), p(this, ut, this.getAttribute("maxbyte")), p(this, gt, this.getAttribute("min")), p(this, ne, this.getAttribute("max")), p(this, U, this.getAttribute("scale")), !["text", "number"].includes(t(this, nt))) throw `invalid type : ${t(this, nt)}`;
1598
1601
  }
1599
1602
  connectedCallback() {
1600
1603
  for (var e = [], s = 0; s < this.attributes.length; s++)
@@ -1604,7 +1607,7 @@ const je = class je extends ve {
1604
1607
  ${e.join(" ")}
1605
1608
  ondragstart="return false;"
1606
1609
  >
1607
- `, super.connectedCallback(), y(this, Mt, this.querySelector("input"));
1610
+ `, super.connectedCallback(), p(this, Mt, this.querySelector("input"));
1608
1611
  }
1609
1612
  };
1610
1613
  Mt = new WeakMap(), nt = new WeakMap(), ut = new WeakMap(), gt = new WeakMap(), ne = new WeakMap(), U = new WeakMap(), Le = new WeakMap(), h(je, "CellInputText");