@ninebone/table 0.0.497 β†’ 0.0.499

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.
@@ -2,16 +2,16 @@ var je = Object.defineProperty;
2
2
  var Fe = (R) => {
3
3
  throw TypeError(R);
4
4
  };
5
- var Ue = (R, s, e) => s in R ? je(R, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : R[s] = e;
6
- var h = (R, s) => je(R, "name", { value: s, configurable: !0 });
7
- var A = (R, s, e) => Ue(R, typeof s != "symbol" ? s + "" : s, e), Ve = (R, s, e) => s.has(R) || Fe("Cannot " + e);
8
- var t = (R, s, e) => (Ve(R, s, "read from private field"), e ? e.call(R) : s.get(R)), d = (R, s, e) => s.has(R) ? Fe("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(R) : s.set(R, e), y = (R, s, e, i) => (Ve(R, s, "write to private field"), i ? i.call(R, e) : s.set(R, e), e);
9
- var Ye = (R, s, e, i) => ({
5
+ var Ue = (R, i, e) => i in R ? je(R, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : R[i] = e;
6
+ var h = (R, i) => je(R, "name", { value: i, configurable: !0 });
7
+ var A = (R, i, e) => Ue(R, typeof i != "symbol" ? i + "" : i, e), Ve = (R, i, e) => i.has(R) || Fe("Cannot " + e);
8
+ var t = (R, i, e) => (Ve(R, i, "read from private field"), e ? e.call(R) : i.get(R)), d = (R, i, e) => i.has(R) ? Fe("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(R) : i.set(R, e), y = (R, i, e, s) => (Ve(R, i, "write to private field"), s ? s.call(R, e) : i.set(R, e), e);
9
+ var Ye = (R, i, e, s) => ({
10
10
  set _(r) {
11
- y(R, s, r, e);
11
+ y(R, i, r, e);
12
12
  },
13
13
  get _() {
14
- return t(R, s, i);
14
+ return t(R, i, s);
15
15
  }
16
16
  });
17
17
  import { trace as Xe } from "@ninebone/util";
@@ -42,9 +42,9 @@ const He = class He extends HTMLElement {
42
42
  }, "#observeResize"));
43
43
  A(this, "refresh", /* @__PURE__ */ h(() => {
44
44
  if (!t(this, B) || !t(this, w) || t(this, j)) return;
45
- const e = t(this, w).container, i = e.querySelector("table");
46
- if (!i) return;
47
- const r = t(this, w).track, n = t(this, w).thumb, o = t(this, B).querySelector(".ng-container-bottom"), a = e.clientWidth, c = i.scrollWidth;
45
+ const e = t(this, w).container, s = e.querySelector("table");
46
+ if (!s) return;
47
+ const r = t(this, w).track, n = t(this, w).thumb, o = t(this, B).querySelector(".ng-container-bottom"), a = e.clientWidth, c = s.scrollWidth;
48
48
  if (a !== 0 && c > a)
49
49
  o && (o.style.display = "flex");
50
50
  else {
@@ -63,15 +63,15 @@ const He = class He extends HTMLElement {
63
63
  }, "refresh"));
64
64
  d(this, G, /* @__PURE__ */ h((e) => {
65
65
  if (!t(this, w)) return !1;
66
- const i = t(this, w).container, r = i.querySelector("table");
66
+ const s = t(this, w).container, r = s.querySelector("table");
67
67
  if (!r) return !1;
68
68
  const n = t(this, w).track.getBoundingClientRect(), o = t(this, w).thumb.clientWidth;
69
69
  let a = e;
70
70
  a < 0 && (a = 0);
71
71
  const c = n.width - o;
72
72
  a > c && (a = c), a = parseInt(a, 10), t(this, w).thumb.style.left = `${a}px`, t(this, w).left.disabled = a === 0, t(this, w).right.disabled = a >= c - 1;
73
- const l = i.clientWidth, u = r.scrollWidth - l;
74
- return c > 0 && u > 0 && (i.scrollLeft = a / c * u), a > 0 && a < c - 1;
73
+ const l = s.clientWidth, u = r.scrollWidth - l;
74
+ return c > 0 && u > 0 && (s.scrollLeft = a / c * u), a > 0 && a < c - 1;
75
75
  }, "#thumbMoveTo"));
76
76
  d(this, _t, /* @__PURE__ */ h(() => {
77
77
  const e = /* @__PURE__ */ h((r) => {
@@ -83,11 +83,11 @@ const He = class He extends HTMLElement {
83
83
  t(this, G).call(this, o + r) || clearInterval(t(this, K));
84
84
  }, 50));
85
85
  }, 500));
86
- }, "delayScroll"), i = /* @__PURE__ */ h(() => {
86
+ }, "delayScroll"), s = /* @__PURE__ */ h(() => {
87
87
  clearInterval(t(this, X)), clearInterval(t(this, K));
88
88
  }, "clearTimer");
89
89
  ["mouseup", "mouseleave", "touchend"].forEach((r) => {
90
- t(this, w).left.addEventListener(r, i), t(this, w).right.addEventListener(r, i), t(this, w).track.addEventListener(r, i);
90
+ t(this, w).left.addEventListener(r, s), t(this, w).right.addEventListener(r, s), t(this, w).track.addEventListener(r, s);
91
91
  }), t(this, w).left.addEventListener("mousedown", (r) => {
92
92
  r.button === 0 && e(-20);
93
93
  }), t(this, w).right.addEventListener("mousedown", (r) => {
@@ -105,7 +105,7 @@ const He = class He extends HTMLElement {
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), i(), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", o), this.refresh();
108
+ y(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
  });
@@ -177,18 +177,18 @@ const He = class He extends HTMLElement {
177
177
  <button class='ng-scroll-right' disabled><div class='ng-scroll-icon'></div></button>
178
178
  `;
179
179
  const e = /* @__PURE__ */ h(() => {
180
- const i = t(this, B).querySelector(".ng-container-body .ng-part-body");
181
- if (!i) {
180
+ const s = t(this, B).querySelector(".ng-container-body .ng-part-body");
181
+ if (!s) {
182
182
  setTimeout(e, 10);
183
183
  return;
184
184
  }
185
185
  y(this, w, {
186
- container: i,
186
+ container: s,
187
187
  track: this.querySelector(".ng-scroll-track"),
188
188
  thumb: this.querySelector(".ng-scroll-thumb"),
189
189
  left: this.querySelector(".ng-scroll-left"),
190
190
  right: this.querySelector(".ng-scroll-right")
191
- }), i.addEventListener("scroll", () => {
191
+ }), s.addEventListener("scroll", () => {
192
192
  t(this, j) || this.refresh();
193
193
  }), t(this, _t).call(this), t(this, It).call(this), this.refresh();
194
194
  }, "initWhenReady");
@@ -213,13 +213,13 @@ const Me = class Me extends HTMLElement {
213
213
  d(this, vt, 0);
214
214
  A(this, "refresh", /* @__PURE__ */ h(() => {
215
215
  if (!t(this, F) || !t(this, q)) return;
216
- const e = t(this, q).container, i = t(this, q).track, r = t(this, q).thumb, n = e.clientHeight, a = (t(this, F).data.get() || []).length, c = t(this, ot).getRowHeight(), l = a * c;
216
+ const e = t(this, q).container, s = t(this, q).track, r = t(this, q).thumb, n = e.clientHeight, a = (t(this, F).data.get() || []).length, c = t(this, ot).getRowHeight(), l = a * c;
217
217
  if (l <= n) {
218
218
  r.style.display = "none", t(this, q).top.disabled = !0, t(this, q).bottom.disabled = !0;
219
219
  return;
220
220
  } else
221
221
  r.style.display = "block";
222
- const f = i.clientHeight;
222
+ const f = s.clientHeight;
223
223
  if (f <= 0) return;
224
224
  const u = Math.max(Math.min(f * (n / l), f), 20);
225
225
  r.style.height = `${u}px`;
@@ -230,7 +230,7 @@ const Me = class Me extends HTMLElement {
230
230
  m < 0 && (m = 0), m > v && (m = v), r.style.top = `${m}px`, t(this, q).top.disabled = b <= 0, t(this, q).bottom.disabled = b >= g - 1;
231
231
  }, "refresh"));
232
232
  d(this, Nt, /* @__PURE__ */ h(() => {
233
- const e = t(this, q).container, i = /* @__PURE__ */ h(() => {
233
+ const e = t(this, q).container, s = /* @__PURE__ */ h(() => {
234
234
  const n = (t(this, F).data.get() || []).length, o = t(this, ot).getRowHeight();
235
235
  return n * o;
236
236
  }, "getContentHeight");
@@ -241,10 +241,10 @@ const Me = class Me extends HTMLElement {
241
241
  r.stopPropagation(), r.preventDefault(), y(this, J, !0), y(this, xt, r.clientY), y(this, vt, e.scrollTop);
242
242
  const n = /* @__PURE__ */ h((a) => {
243
243
  if (!t(this, J)) return;
244
- const c = t(this, q).track.getBoundingClientRect(), l = t(this, q).thumb.clientHeight, u = c.height - l, b = a.clientY - t(this, xt), g = e.clientHeight, m = i(), v = Math.max(m - g, 1);
244
+ const c = t(this, q).track.getBoundingClientRect(), l = t(this, q).thumb.clientHeight, u = c.height - l, b = a.clientY - t(this, xt), g = e.clientHeight, m = s(), v = Math.max(m - g, 1);
245
245
  if (u > 0 && v > 0) {
246
- const S = b / u * v;
247
- let x = t(this, vt) + S;
246
+ const E = b / u * v;
247
+ let x = t(this, vt) + E;
248
248
  const H = Math.max(0, m - g);
249
249
  x < 0 && (x = 0), x > H && (x = H), e.scrollTop = x;
250
250
  }
@@ -255,7 +255,7 @@ const Me = class Me extends HTMLElement {
255
255
  document.addEventListener("mousemove", n), document.addEventListener("mouseup", o);
256
256
  }), t(this, q).track.addEventListener("mousedown", (r) => {
257
257
  if (r.button !== 0 || r.target === t(this, q).thumb) return;
258
- const n = t(this, q).track.getBoundingClientRect(), o = t(this, q).thumb.clientHeight, a = r.clientY - n.top - o / 2, l = n.height - o, f = e.clientHeight, u = i(), b = Math.max(u - f, 1);
258
+ const n = t(this, q).track.getBoundingClientRect(), o = t(this, q).thumb.clientHeight, a = r.clientY - n.top - o / 2, l = n.height - o, f = e.clientHeight, u = s(), b = Math.max(u - f, 1);
259
259
  if (l > 0 && b > 0) {
260
260
  const g = Math.max(0, Math.min(1, a / l));
261
261
  e.scrollTop = g * b;
@@ -334,13 +334,13 @@ const Me = class Me extends HTMLElement {
334
334
  <button class='ng-scroll-bottom' disabled><div class='ng-scroll-icon'></div></button>
335
335
  `;
336
336
  const e = /* @__PURE__ */ h(() => {
337
- const i = t(this, F).shadowRoot.querySelector(".ng-container-body .ng-part-body");
338
- if (!i) {
337
+ const s = t(this, F).shadowRoot.querySelector(".ng-container-body .ng-part-body");
338
+ if (!s) {
339
339
  setTimeout(e, 10);
340
340
  return;
341
341
  }
342
342
  y(this, q, {
343
- container: i,
343
+ container: s,
344
344
  track: this.querySelector(".ng-scroll-track"),
345
345
  thumb: this.querySelector(".ng-scroll-thumb"),
346
346
  top: this.querySelector(".ng-scroll-top"),
@@ -353,11 +353,11 @@ const Me = class Me extends HTMLElement {
353
353
  F = new WeakMap(), ot = new WeakMap(), J = new WeakMap(), q = new WeakMap(), xt = new WeakMap(), vt = new WeakMap(), Nt = new WeakMap(), h(Me, "NineTableVScrollBar");
354
354
  let le = Me;
355
355
  customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", le);
356
- var D, E, z, M, V, Q, wt, Se, at, Wt, Ot, Bt, St, Et, zt, Dt, At, Ee, lt, Rt, Pt;
356
+ var D, S, z, M, V, Q, wt, Se, at, Wt, Ot, Bt, St, Et, zt, Dt, At, Ee, lt, Rt, Pt;
357
357
  const $e = class $e {
358
- constructor(s) {
358
+ constructor(i) {
359
359
  d(this, D);
360
- d(this, E);
360
+ d(this, S);
361
361
  d(this, z, /* @__PURE__ */ new Map());
362
362
  d(this, M, null);
363
363
  d(this, V, null);
@@ -368,12 +368,12 @@ const $e = class $e {
368
368
  d(this, Wt, 3);
369
369
  A(this, "refresh", /* @__PURE__ */ h(() => {
370
370
  P.log("rowManager.refresh");
371
- const s = t(this, E).querySelector(".ng-container-body .ng-part-body");
372
- s && (t(this, St).call(this), t(this, lt).call(this, s.scrollTop));
371
+ const i = t(this, S).querySelector(".ng-container-body .ng-part-body");
372
+ i && (t(this, St).call(this), t(this, lt).call(this, i.scrollTop));
373
373
  }, "refresh"));
374
374
  A(this, "initialize", /* @__PURE__ */ h(() => {
375
375
  y(this, M, null), t(this, z).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
376
- const a = t(this, E).querySelector(o);
376
+ const a = t(this, S).querySelector(o);
377
377
  if (!a) return;
378
378
  const c = a.querySelector(".ng-part-body table");
379
379
  if (!c) return;
@@ -382,15 +382,15 @@ const $e = class $e {
382
382
  const u = Array.from(l.querySelectorAll("tr")).map((b) => b.cloneNode(!0));
383
383
  t(this, z).set(o, u);
384
384
  });
385
- const s = t(this, E).querySelector(".ng-container-body .ng-part-body"), e = t(this, E).querySelector(".ng-container-left .ng-part-body"), i = t(this, E).querySelector(".ng-container-right .ng-part-body"), r = t(this, E).querySelector(".ng-container-body .ng-part-header"), n = t(this, E).querySelector(".ng-container-body .ng-part-footer");
386
- if (s) {
387
- t(this, Bt).call(this, s), t(this, At).call(this), t(this, St).call(this), t(this, lt).call(this, s.scrollTop);
385
+ const i = t(this, S).querySelector(".ng-container-body .ng-part-body"), e = t(this, S).querySelector(".ng-container-left .ng-part-body"), s = t(this, S).querySelector(".ng-container-right .ng-part-body"), r = t(this, S).querySelector(".ng-container-body .ng-part-header"), n = t(this, S).querySelector(".ng-container-body .ng-part-footer");
386
+ if (i) {
387
+ t(this, Bt).call(this, i), t(this, At).call(this), t(this, St).call(this), t(this, lt).call(this, i.scrollTop);
388
388
  let o = !1;
389
389
  const a = /* @__PURE__ */ h((c, l, f) => {
390
390
  var u;
391
- o || (o = !0, s && s.scrollTop !== c && (s.scrollTop = c), e && e.scrollTop !== c && (e.scrollTop = c), i && i.scrollTop !== c && (i.scrollTop = c), r && r.scrollLeft !== l && (r.scrollLeft = l), n && n.scrollLeft !== l && (n.scrollLeft = l), t(this, lt).call(this, c), (u = t(this, E).querySelector("nine-table-vscrollbar")) == null || u.refresh(), o = !1);
391
+ o || (o = !0, i && i.scrollTop !== c && (i.scrollTop = c), e && e.scrollTop !== c && (e.scrollTop = c), s && s.scrollTop !== c && (s.scrollTop = c), r && r.scrollLeft !== l && (r.scrollLeft = l), n && n.scrollLeft !== l && (n.scrollLeft = l), t(this, lt).call(this, c), (u = t(this, S).querySelector("nine-table-vscrollbar")) == null || u.refresh(), o = !1);
392
392
  }, "syncScroll");
393
- [s, e, i].forEach((c) => {
393
+ [i, e, s].forEach((c) => {
394
394
  c && c.addEventListener("scroll", () => {
395
395
  t(this, at) || (y(this, at, !0), requestAnimationFrame(() => {
396
396
  a(c.scrollTop, c.scrollLeft), y(this, at, !1);
@@ -399,44 +399,44 @@ const $e = class $e {
399
399
  });
400
400
  }
401
401
  }, "initialize"));
402
- d(this, Ot, /* @__PURE__ */ h((s, e) => {
403
- const i = t(this, z).get(e);
404
- if (!i || i.length === 0) return;
405
- const r = s.querySelector(".ng-part-body tbody.bindable-tbody");
402
+ d(this, Ot, /* @__PURE__ */ h((i, e) => {
403
+ const s = t(this, z).get(e);
404
+ if (!s || s.length === 0) return;
405
+ const r = i.querySelector(".ng-part-body tbody.bindable-tbody");
406
406
  if (!r) return;
407
407
  r.querySelectorAll("tr:not(.nodata)").forEach((a) => a.remove());
408
408
  const n = r.querySelector("tr.nodata"), o = document.createDocumentFragment();
409
409
  for (let a = 0; a < t(this, wt); a++)
410
- i.forEach((c) => {
410
+ s.forEach((c) => {
411
411
  o.appendChild(c.cloneNode(!0));
412
412
  });
413
413
  n ? n.before(o) : r.appendChild(o);
414
414
  }, "#renderRows"));
415
- d(this, Bt, /* @__PURE__ */ h((s) => {
415
+ d(this, Bt, /* @__PURE__ */ h((i) => {
416
416
  if (t(this, M) !== null && t(this, M) > 0)
417
417
  return t(this, M);
418
418
  P.log("#measureAndCacheHeight");
419
419
  const e = t(this, z).get(".ng-container-body");
420
420
  if (!e || e.length === 0) return 24;
421
- const i = s.querySelector("tbody.bindable-tbody");
422
- if (!i) return 24;
423
- i.querySelectorAll("tr:not(.nodata)").forEach((b) => b.remove());
424
- const r = i.querySelector("tr.nodata"), n = document.createDocumentFragment();
421
+ const s = i.querySelector("tbody.bindable-tbody");
422
+ if (!s) return 24;
423
+ s.querySelectorAll("tr:not(.nodata)").forEach((b) => b.remove());
424
+ const r = s.querySelector("tr.nodata"), n = document.createDocumentFragment();
425
425
  e.forEach((b) => {
426
426
  n.appendChild(b.cloneNode(!0));
427
- }), r ? r.before(n) : i.appendChild(n);
428
- const o = t(this, E), a = o.style.display, c = o.style.visibility, l = o.style.position;
427
+ }), r ? r.before(n) : s.appendChild(n);
428
+ const o = t(this, S), a = o.style.display, c = o.style.visibility, l = o.style.position;
429
429
  (a === "none" || window.getComputedStyle(o).display === "none") && (o.style.display = "block", o.style.visibility = "hidden", o.style.position = "absolute");
430
430
  let f = 0;
431
- const u = i.querySelectorAll("tr:not(.nodata)");
431
+ const u = s.querySelectorAll("tr:not(.nodata)");
432
432
  return u.forEach((b) => {
433
433
  f += b.offsetHeight || b.getBoundingClientRect().height;
434
434
  }), u.forEach((b) => b.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, y(this, M, f > 0 ? f : 24), t(this, Et).call(this), t(this, M);
435
435
  }, "#measureAndCacheHeight"));
436
436
  d(this, St, /* @__PURE__ */ h(() => {
437
- const e = (t(this, D).data.get() || []).length, i = t(this, M), r = e * i;
437
+ const e = (t(this, D).data.get() || []).length, s = t(this, M), r = e * s;
438
438
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((n) => {
439
- const o = t(this, E).querySelector(n);
439
+ const o = t(this, S).querySelector(n);
440
440
  if (!o) return;
441
441
  const a = o.querySelector(".ng-part-body .ng-virtual-spacer");
442
442
  a && (a.style.height = `${r}px`);
@@ -444,16 +444,16 @@ const $e = class $e {
444
444
  }, "#updateVirtualScrollHeight"));
445
445
  d(this, Et, /* @__PURE__ */ h(() => {
446
446
  if (t(this, Q) > 0 && t(this, M) > 0) {
447
- const s = Math.ceil(t(this, Q) / t(this, M));
448
- y(this, wt, s + t(this, Wt));
447
+ const i = Math.ceil(t(this, Q) / t(this, M));
448
+ y(this, wt, i + t(this, Wt));
449
449
  }
450
450
  }, "#updateRowCount"));
451
451
  d(this, zt, /* @__PURE__ */ h(() => {
452
452
  var a, c, l, f, u, b;
453
- const s = t(this, E).querySelector(".ng-container-left .ng-part-body table"), e = t(this, E).querySelector(".ng-container-body .ng-part-body table"), i = t(this, E).querySelector(".ng-container-right .ng-part-body table");
453
+ const i = t(this, S).querySelector(".ng-container-left .ng-part-body table"), e = t(this, S).querySelector(".ng-container-body .ng-part-body table"), s = t(this, S).querySelector(".ng-container-right .ng-part-body table");
454
454
  if (e) {
455
- const g = s ? Array.from(s.querySelectorAll("tbody tr")) : [], m = Array.from(e.querySelectorAll("tbody tr")), v = i ? Array.from(i.querySelectorAll("tbody tr")) : [], S = Math.max(g.length, m.length, v.length);
456
- for (let x = 0; x < S; x++) {
455
+ const g = i ? Array.from(i.querySelectorAll("tbody tr")) : [], m = Array.from(e.querySelectorAll("tbody tr")), v = s ? Array.from(s.querySelectorAll("tbody tr")) : [], E = Math.max(g.length, m.length, v.length);
456
+ for (let x = 0; x < E; x++) {
457
457
  const H = [
458
458
  ((a = g[x]) == null ? void 0 : a.getBoundingClientRect().height) || 0,
459
459
  ((c = m[x]) == null ? void 0 : c.getBoundingClientRect().height) || 0,
@@ -462,10 +462,10 @@ const $e = class $e {
462
462
  k > 0 && (g[x] && (g[x].style.height = `${k}px`), m[x] && (m[x].style.height = `${k}px`), v[x] && (v[x].style.height = `${k}px`));
463
463
  }
464
464
  }
465
- const r = t(this, E).querySelector(".ng-container-left .ng-part-footer table"), n = t(this, E).querySelector(".ng-container-body .ng-part-footer table"), o = t(this, E).querySelector(".ng-container-right .ng-part-footer table");
465
+ const r = t(this, S).querySelector(".ng-container-left .ng-part-footer table"), n = t(this, S).querySelector(".ng-container-body .ng-part-footer table"), o = t(this, S).querySelector(".ng-container-right .ng-part-footer table");
466
466
  if (n) {
467
- const g = r ? Array.from(r.querySelectorAll("tfoot tr")) : [], m = Array.from(n.querySelectorAll("tfoot tr")), v = o ? Array.from(o.querySelectorAll("tfoot tr")) : [], S = Math.max(g.length, m.length, v.length);
468
- for (let x = 0; x < S; x++) {
467
+ const g = r ? Array.from(r.querySelectorAll("tfoot tr")) : [], m = Array.from(n.querySelectorAll("tfoot tr")), v = o ? Array.from(o.querySelectorAll("tfoot tr")) : [], E = Math.max(g.length, m.length, v.length);
468
+ for (let x = 0; x < E; x++) {
469
469
  const H = [
470
470
  ((f = g[x]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
471
471
  ((u = m[x]) == null ? void 0 : u.getBoundingClientRect().height) || 0,
@@ -476,37 +476,37 @@ const $e = class $e {
476
476
  }
477
477
  }, "#syncRowHeights"));
478
478
  d(this, Dt, /* @__PURE__ */ h(() => {
479
- !t(this, E) || !(t(this, E) instanceof HTMLElement) || (y(this, V, new ResizeObserver((s) => {
480
- for (const e of s) {
481
- const i = e.target;
482
- if (!i.classList.contains("active")) continue;
479
+ !t(this, S) || !(t(this, S) instanceof HTMLElement) || (y(this, V, new ResizeObserver((i) => {
480
+ for (const e of i) {
481
+ const s = e.target;
482
+ if (!s.classList.contains("active")) continue;
483
483
  const r = e.contentRect.height;
484
484
  if (r > 0) {
485
485
  let n = 0;
486
- const o = i.querySelector(".ng-part-header"), a = i.querySelector(".ng-part-footer");
486
+ const o = s.querySelector(".ng-part-header"), a = s.querySelector(".ng-part-footer");
487
487
  o && (n += o.offsetHeight), a && (n += a.offsetHeight);
488
488
  const c = Math.max(r - n, 100);
489
489
  t(this, Q) !== c && (y(this, Q, c), t(this, Et).call(this), t(this, M) !== null && t(this, At).call(this));
490
490
  }
491
491
  }
492
- })), t(this, V).observe(t(this, E)));
492
+ })), t(this, V).observe(t(this, S)));
493
493
  }, "#initResizeObserver"));
494
494
  d(this, At, /* @__PURE__ */ h(() => {
495
- [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((s) => {
496
- const e = t(this, E).querySelector(s);
497
- e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Ot).call(this, e, s);
495
+ [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
496
+ const e = t(this, S).querySelector(i);
497
+ e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Ot).call(this, e, i);
498
498
  }), t(this, Pt).call(this), t(this, zt).call(this);
499
499
  }, "#renderAllContainers"));
500
- d(this, Ee, /* @__PURE__ */ h((s) => {
500
+ d(this, Ee, /* @__PURE__ */ h((i) => {
501
501
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((e) => {
502
502
  var l;
503
- const i = t(this, E).querySelector(e);
504
- if (!i) return;
505
- const r = i.querySelector(".ng-part-body tbody.bindable-tbody");
503
+ const s = t(this, S).querySelector(e);
504
+ if (!s) return;
505
+ const r = s.querySelector(".ng-part-body tbody.bindable-tbody");
506
506
  if (!r) return;
507
507
  const n = Array.from(r.querySelectorAll("tr:not(.nodata)")), o = ((l = t(this, z).get(e)) == null ? void 0 : l.length) || 1, c = (t(this, D).data.get() || []).length;
508
508
  n.forEach((f, u) => {
509
- const b = s + Math.floor(u / o);
509
+ const b = i + Math.floor(u / o);
510
510
  if (b >= c) {
511
511
  f.style.display = "none";
512
512
  return;
@@ -516,29 +516,29 @@ const $e = class $e {
516
516
  });
517
517
  });
518
518
  }, "#adjustBufferRows"));
519
- d(this, lt, /* @__PURE__ */ h((s) => {
519
+ d(this, lt, /* @__PURE__ */ h((i) => {
520
520
  var u;
521
521
  const e = t(this, M);
522
522
  if (!e || e <= 0) return;
523
- const r = (t(this, D).data.get() || []).length, n = Math.max(0, Math.floor(s / e)), o = n * e, a = ((u = t(this, z).get(".ng-container-body")) == null ? void 0 : u.length) || 1, c = t(this, E).querySelector(".ng-container-body"), l = c == null ? void 0 : c.querySelector(".ng-part-body tbody.bindable-tbody tr:not(.nodata)"), f = l && l.dataset.row !== void 0 ? parseInt(l.dataset.row, 10) : -1;
523
+ const r = (t(this, D).data.get() || []).length, n = Math.max(0, Math.floor(i / e)), o = n * e, a = ((u = t(this, z).get(".ng-container-body")) == null ? void 0 : u.length) || 1, c = t(this, S).querySelector(".ng-container-body"), l = c == null ? void 0 : c.querySelector(".ng-part-body tbody.bindable-tbody tr:not(.nodata)"), f = l && l.dataset.row !== void 0 ? parseInt(l.dataset.row, 10) : -1;
524
524
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((b) => {
525
- const g = t(this, E).querySelector(b);
525
+ const g = t(this, S).querySelector(b);
526
526
  if (!g) return;
527
527
  const m = g.querySelector(".ng-part-body tbody.bindable-tbody");
528
528
  m && (m.style.transform = `translateY(${o}px)`);
529
529
  }), P.log("#handleScroll", f, n), f !== n && [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((b) => {
530
- const g = t(this, E).querySelector(b);
530
+ const g = t(this, S).querySelector(b);
531
531
  if (!g) return;
532
532
  const m = g.querySelector(".ng-part-body tbody.bindable-tbody");
533
533
  if (!m) return;
534
- Array.from(m.querySelectorAll("tr:not(.nodata)")).forEach((S, x) => {
534
+ Array.from(m.querySelectorAll("tr:not(.nodata)")).forEach((E, x) => {
535
535
  const H = n + Math.floor(x / a);
536
536
  if (H >= r) {
537
- S.style.display = "none";
537
+ E.style.display = "none";
538
538
  return;
539
539
  }
540
540
  const k = t(this, D).data.get(H);
541
- S.data = k, S.style.display = "", t(this, Rt).call(this, S, k, H);
541
+ E.style.display = "", t(this, Rt).call(this, E, k, H);
542
542
  });
543
543
  });
544
544
  }, "#handleScroll"));
@@ -556,18 +556,18 @@ const $e = class $e {
556
556
  cell.dataset.row = dataIndex;
557
557
  });
558
558
  }; */
559
- d(this, Rt, /* @__PURE__ */ h((s, e, i) => {
560
- s.dataset.row = i, s.data = e, Array.from(s.cells).forEach((r, n) => {
561
- r.dataset.row = i;
559
+ d(this, Rt, /* @__PURE__ */ h((i, e, s) => {
560
+ i.dataset.row = s, i.data = e, Array.from(i.cells).forEach((r, n) => {
561
+ r.dataset.row = s;
562
562
  const o = Array.from(r.children).find((a) => a.tagName.toLowerCase().startsWith("cell-") || typeof a.refresh == "function");
563
563
  o && typeof o.refresh == "function" && o.refresh();
564
564
  });
565
565
  }, "#bindRowData"));
566
566
  d(this, Pt, /* @__PURE__ */ h(() => {
567
567
  var c, l, f;
568
- const s = t(this, E).querySelector(".ng-container-left .ng-part-header table"), e = t(this, E).querySelector(".ng-container-body .ng-part-header table"), i = t(this, E).querySelector(".ng-container-right .ng-part-header table");
568
+ const i = t(this, S).querySelector(".ng-container-left .ng-part-header table"), e = t(this, S).querySelector(".ng-container-body .ng-part-header table"), s = t(this, S).querySelector(".ng-container-right .ng-part-header table");
569
569
  if (!e) return;
570
- const r = s ? Array.from(s.querySelectorAll("tr")) : [], n = Array.from(e.querySelectorAll("tr")), o = i ? Array.from(i.querySelectorAll("tr")) : [], a = Math.max(r.length, n.length, o.length);
570
+ const r = i ? Array.from(i.querySelectorAll("tr")) : [], n = Array.from(e.querySelectorAll("tr")), o = s ? Array.from(s.querySelectorAll("tr")) : [], a = Math.max(r.length, n.length, o.length);
571
571
  for (let u = 0; u < a; u++) {
572
572
  const b = [
573
573
  ((c = r[u]) == null ? void 0 : c.getBoundingClientRect().height) || 0,
@@ -580,40 +580,40 @@ const $e = class $e {
580
580
  A(this, "destroy", /* @__PURE__ */ h(() => {
581
581
  t(this, V) && (t(this, V).disconnect(), y(this, V, null));
582
582
  }, "destroy"));
583
- y(this, D, s.getRootNode().host), y(this, E, s), t(this, Dt).call(this);
583
+ y(this, D, i.getRootNode().host), y(this, S, i), t(this, Dt).call(this);
584
584
  }
585
585
  getRowHeight() {
586
586
  return t(this, M);
587
587
  }
588
- templateLength(s = ".ng-container-body") {
588
+ templateLength(i = ".ng-container-body") {
589
589
  var e;
590
- return ((e = t(this, z).get(s)) == null ? void 0 : e.length) || 1;
590
+ return ((e = t(this, z).get(i)) == null ? void 0 : e.length) || 1;
591
591
  }
592
592
  };
593
- D = new WeakMap(), E = new WeakMap(), z = new WeakMap(), M = new WeakMap(), V = new WeakMap(), Q = new WeakMap(), wt = new WeakMap(), Se = new WeakMap(), at = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), zt = new WeakMap(), Dt = new WeakMap(), At = new WeakMap(), Ee = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Pt = new WeakMap(), h($e, "RowManager");
593
+ D = new WeakMap(), S = new WeakMap(), z = new WeakMap(), M = new WeakMap(), V = new WeakMap(), Q = new WeakMap(), wt = new WeakMap(), Se = new WeakMap(), at = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), zt = new WeakMap(), Dt = new WeakMap(), At = new WeakMap(), Ee = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Pt = new WeakMap(), h($e, "RowManager");
594
594
  let ce = $e;
595
595
  const jt = class jt {
596
596
  /**
597
597
  * 🎯 λ ˆμ΄μ•„μ›ƒ λ‚΄μ˜ μ—¬λŸ¬ rawTables 배열을 μΌκ΄„λ‘œ λ°›μ•„ 단일 λ§ˆμŠ€ν„° ν…œν”Œλ¦ΏμœΌλ‘œ 사전 μ»΄νŒŒμΌν•©λ‹ˆλ‹€.
598
598
  */
599
- static compileAll(s) {
600
- return Array.isArray(s) ? s.map((e) => jt.compile(e)) : [];
599
+ static compileAll(i) {
600
+ return Array.isArray(i) ? i.map((e) => jt.compile(e)) : [];
601
601
  }
602
602
  /**
603
603
  * 🎯 단일 원본 ν…Œμ΄λΈ”μ„ λ°›μ•„ κΈ°λ³Έ ꡬ쑰 보정 및 2차원 격자 인덱슀 사전 λΆ€μ—¬ μ™„λ£Œλœ λ§ˆμŠ€ν„° ν…Œμ΄λΈ” λ°˜ν™˜
604
604
  */
605
- static compile(s) {
606
- if (!s) return null;
605
+ static compile(i) {
606
+ if (!i) return null;
607
607
  const e = /* @__PURE__ */ h((a) => {
608
608
  a.querySelectorAll("tbody td, tbody th, tfoot td, tfoot th").forEach((l) => {
609
609
  const f = l.getAttribute("cell-type") || "renderer";
610
610
  if (l.children.length > 0 && l.firstElementChild.tagName.includes("-")) return;
611
611
  let u = `cell-${f}`;
612
612
  const b = l.getAttribute("data-bind"), g = l.getAttribute("data-expr"), m = l.getAttribute("maxbyte"), v = l.getAttribute("type");
613
- let S = [];
614
- b && S.push(`data-bind="${b}"`), g && S.push(`data-expr="${g}"`), m && S.push(`maxbyte="${m}"`), v && S.push(`type="${v}"`), l.innerHTML = `<${u} ${S.join(" ")}></${u}>`;
613
+ let E = [];
614
+ b && E.push(`data-bind="${b}"`), g && E.push(`data-expr="${g}"`), m && E.push(`maxbyte="${m}"`), v && E.push(`type="${v}"`), l.innerHTML = `<${u} ${E.join(" ")}></${u}>`;
615
615
  });
616
- }, "processCellTypes"), i = /* @__PURE__ */ h((a) => {
616
+ }, "processCellTypes"), s = /* @__PURE__ */ h((a) => {
617
617
  if (!a.querySelector("colgroup")) {
618
618
  const c = a.querySelector("tbody tr") || a.querySelector("tr"), l = c ? c.querySelectorAll("th, td").length : 1, f = document.createElement("colgroup"), u = Math.max(Math.floor(a.clientWidth / l), 100);
619
619
  for (let b = 0; b < l; b++) {
@@ -637,30 +637,30 @@ const jt = class jt {
637
637
  const g = Array.from(Array(u), () => Array(b).fill(null));
638
638
  l.forEach((m) => {
639
639
  const v = m.sectionRowIndex;
640
- let S = 0;
640
+ let E = 0;
641
641
  Array.from(m.querySelectorAll("th,td")).forEach((x) => {
642
642
  for (let O = 0; O < g[v].length; O++)
643
643
  if (g[v][O] === null) {
644
- S = O;
644
+ E = O;
645
645
  break;
646
646
  }
647
647
  const H = x.rowSpan || 1, k = x.colSpan || 1;
648
648
  for (let O = 0; O < H; O++)
649
649
  for (let yt = 0; yt < k; yt++)
650
- v + O < u && S + yt < b && (g[v + O][S + yt] = O === 0 && yt === 0 ? "1" : "0");
650
+ v + O < u && E + yt < b && (g[v + O][E + yt] = O === 0 && yt === 0 ? "1" : "0");
651
651
  });
652
652
  }), l.forEach((m) => {
653
653
  const v = m.sectionRowIndex;
654
- Array.from(m.querySelectorAll("th,td")).forEach((S) => {
654
+ Array.from(m.querySelectorAll("th,td")).forEach((E) => {
655
655
  for (let x = 0; x < g[v].length; x++)
656
656
  if (g[v][x] === "1") {
657
- S.dataset.col = x, g[v][x] = "0";
657
+ E.dataset.col = x, g[v][x] = "0";
658
658
  break;
659
659
  }
660
660
  });
661
661
  });
662
- }, "resetColIndex"), n = s.cloneNode(!0);
663
- return i(n), e(n), r(n, "thead"), r(n, "tbody"), r(n, "tfoot"), Array.from(n.querySelectorAll("colgroup col")).forEach((a, c) => {
662
+ }, "resetColIndex"), n = i.cloneNode(!0);
663
+ return s(n), e(n), r(n, "thead"), r(n, "tbody"), r(n, "tfoot"), Array.from(n.querySelectorAll("colgroup col")).forEach((a, c) => {
664
664
  const l = a.getAttribute("fixed");
665
665
  l && n.querySelectorAll(`thead [data-col="${c}"], tbody [data-col="${c}"], tfoot [data-col="${c}"]`).forEach((f) => {
666
666
  f.setAttribute("fixed", l);
@@ -686,8 +686,8 @@ const pt = class pt extends HTMLElement {
686
686
  { selector: ".ng-container-body", type: null },
687
687
  { selector: ".ng-container-left", type: "left" },
688
688
  { selector: ".ng-container-right", type: "right" }
689
- ].forEach(({ selector: i, type: r }) => {
690
- const n = this.querySelector(i);
689
+ ].forEach(({ selector: s, type: r }) => {
690
+ const n = this.querySelector(s);
691
691
  if (!n) return;
692
692
  n.innerHTML = "";
693
693
  const o = document.createElement("div");
@@ -704,22 +704,22 @@ const pt = class pt extends HTMLElement {
704
704
  }, "#renderSplitContainers"));
705
705
  d(this, Yt, /* @__PURE__ */ h(() => {
706
706
  ["left", "right", "body"].forEach((e) => {
707
- const i = this.querySelector(`.ng-container-${e}`), r = i == null ? void 0 : i.querySelectorAll("table");
708
- if (!i || !r || r.length === 0) return;
707
+ const s = this.querySelector(`.ng-container-${e}`), r = s == null ? void 0 : s.querySelectorAll("table");
708
+ if (!s || !r || r.length === 0) return;
709
709
  let n = 0;
710
710
  r[0].querySelectorAll("col").forEach((o) => {
711
711
  const a = parseInt(o.getAttribute("width"), 10);
712
712
  isNaN(n) || (n += a);
713
- }), e === "body" ? i.style.flex = "1" : (i.style.flex = `0 0 ${n}px`, i.style.width = `${n}px`);
713
+ }), e === "body" ? s.style.flex = "1" : (s.style.flex = `0 0 ${n}px`, s.style.width = `${n}px`);
714
714
  });
715
715
  }, "#updateContainerWidths"));
716
716
  A(this, "generate", /* @__PURE__ */ h((e) => {
717
717
  e && (y(this, tt, he.compile(e)), t(this, Vt).call(this), t(this, Yt).call(this), t(this, et).initialize(), setTimeout(() => {
718
- var i;
719
- (i = this.querySelector("nine-table-hscrollbar")) == null || i.refresh();
718
+ var s;
719
+ (s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
720
720
  }, 0));
721
721
  }, "generate"));
722
- d(this, ct, /* @__PURE__ */ h((e, i, r) => {
722
+ d(this, ct, /* @__PURE__ */ h((e, s, r) => {
723
723
  const n = e.cloneNode(!0), o = n.querySelector("thead"), a = n.querySelector("tbody"), c = n.querySelector("tfoot");
724
724
  if (r === "header") {
725
725
  if (a && a.remove(), c && c.remove(), e.querySelector("tbody")) {
@@ -727,9 +727,9 @@ const pt = class pt extends HTMLElement {
727
727
  f.className = "fixed-tbody", n.appendChild(f);
728
728
  }
729
729
  } else r === "body" ? (o && o.remove(), c && c.remove(), a && (a.className = "bindable-tbody")) : r === "footer" && (o && o.remove(), a && a.remove());
730
- return i === "left" ? n.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach((l) => {
730
+ return s === "left" ? n.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach((l) => {
731
731
  l.getAttribute("fixed") !== "left" && l.remove();
732
- }) : i === "right" ? n.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach((l) => {
732
+ }) : s === "right" ? n.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach((l) => {
733
733
  l.getAttribute("fixed") !== "right" && l.remove();
734
734
  }) : n.querySelectorAll("[fixed=left], [fixed=right]").forEach((l) => {
735
735
  l.remove();
@@ -737,12 +737,12 @@ const pt = class pt extends HTMLElement {
737
737
  }, "#createSplitTable"));
738
738
  A(this, "getRowHeight", /* @__PURE__ */ h(() => t(this, et).getRowHeight(), "getRowHeight"));
739
739
  A(this, "scrollToX", /* @__PURE__ */ h((e) => {
740
- const i = this.querySelector(".ng-container-body .ng-part-body");
741
- i && (i.scrollLeft = e);
740
+ const s = this.querySelector(".ng-container-body .ng-part-body");
741
+ s && (s.scrollLeft = e);
742
742
  }, "scrollToX"));
743
743
  A(this, "scrollToY", /* @__PURE__ */ h((e) => {
744
- const i = this.querySelector(".ng-container-body .ng-part-body");
745
- i && (i.scrollTop = e);
744
+ const s = this.querySelector(".ng-container-body .ng-part-body");
745
+ s && (s.scrollTop = e);
746
746
  }, "scrollToY"));
747
747
  d(this, Ut, /* @__PURE__ */ h(() => {
748
748
  t(this, Xt).call(this);
@@ -908,24 +908,24 @@ const Ie = class Ie extends HTMLElement {
908
908
  super();
909
909
  d(this, Kt, /* @__PURE__ */ h(() => {
910
910
  var e;
911
- (e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (i) => {
911
+ (e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
912
912
  var o;
913
- const r = i.ctrlKey || i.metaKey || i.shiftKey, n = parseInt((o = i.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
913
+ const r = s.ctrlKey || s.metaKey || s.shiftKey, n = parseInt((o = s.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
914
914
  t(this, qt).call(this, n, r);
915
915
  }), t(this, qt).call(this, 0, !1);
916
916
  }, "#init"));
917
- d(this, qt, /* @__PURE__ */ h((e, i = !1) => {
917
+ d(this, qt, /* @__PURE__ */ h((e, s = !1) => {
918
918
  const r = /* @__PURE__ */ h(() => {
919
919
  const f = Array.from(this.querySelectorAll("nine-table-sheet"));
920
920
  Array.from(this.querySelectorAll("nine-splitter")).forEach((g) => g.style.setProperty("display", "none"));
921
921
  const b = f.filter((g) => g.classList.contains("active"));
922
922
  b.length < 2 || b.forEach((g) => {
923
- const m = parseInt(g.getAttribute("data-index"), 10), v = this.querySelector(`nine-splitter[data-split-index="${m}"]`), S = f[m + 1];
924
- v && S && S.classList.contains("active") && v.style.setProperty("display", "flex");
923
+ const m = parseInt(g.getAttribute("data-index"), 10), v = this.querySelector(`nine-splitter[data-split-index="${m}"]`), E = f[m + 1];
924
+ v && E && E.classList.contains("active") && v.style.setProperty("display", "flex");
925
925
  });
926
926
  }, "updateSplitters"), n = this.querySelector(".nine-tab-bar"), o = this.querySelector("nine-table-sheets-body"), a = n.querySelectorAll(".nine-tab-item"), c = o.querySelectorAll("nine-table-sheet");
927
927
  if (!a[e]) return;
928
- if (!i)
928
+ if (!s)
929
929
  a.forEach((f, u) => {
930
930
  f.classList.toggle("active", u === e);
931
931
  }), c.forEach((f, u) => {
@@ -955,23 +955,23 @@ let de = Ie;
955
955
  customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", de);
956
956
  var I, Zt, kt, Gt;
957
957
  const _e = class _e {
958
- constructor(s) {
958
+ constructor(i) {
959
959
  d(this, I);
960
960
  d(this, Zt, /* @__PURE__ */ h(() => {
961
- t(this, Gt).call(this), new ResizeObserver((s) => {
962
- for (let e of s)
961
+ t(this, Gt).call(this), new ResizeObserver((i) => {
962
+ for (let e of i)
963
963
  t(this, I).getAttribute("auto-height") === "true" && t(this, kt).call(this);
964
964
  }).observe(t(this, I));
965
965
  }, "#init"));
966
966
  d(this, kt, /* @__PURE__ */ h(() => {
967
967
  var c, l;
968
- const s = Array.from(t(this, I).shadowRoot.querySelectorAll("nine-table-sheet.active"));
969
- if (s.length === 0) return;
970
- const e = parseInt(t(this, I).getAttribute("max-display-row"), 10) || 10, i = Math.max(...s.map((f) => f.getRowHeight())), r = (c = t(this, I).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, I).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = $t.SCROLLBAR_SIZE, a = e * i + r + n + o;
968
+ const i = Array.from(t(this, I).shadowRoot.querySelectorAll("nine-table-sheet.active"));
969
+ if (i.length === 0) return;
970
+ const e = parseInt(t(this, I).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), r = (c = t(this, I).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, I).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = $t.SCROLLBAR_SIZE, a = e * s + r + n + o;
971
971
  t(this, I).style.height = `${a}px`;
972
972
  }, "#applyAutoHeight"));
973
973
  d(this, Gt, /* @__PURE__ */ h(() => {
974
- const e = Array.from(t(this, I).children).filter((c) => c.tagName === "TABLE"), i = t(this, I).getAttribute("auto-height") === "true", r = e.length, n = e.map((c, l) => {
974
+ const e = Array.from(t(this, I).children).filter((c) => c.tagName === "TABLE"), s = t(this, I).getAttribute("auto-height") === "true", r = e.length, n = e.map((c, l) => {
975
975
  const u = `<nine-table-sheet class="${l === 0 ? "active" : ""}" data-index="${l}"></nine-table-sheet>`, b = l < r - 1 ? `<nine-splitter class="h" data-split-index="${l}"></nine-splitter>` : "";
976
976
  return u + b;
977
977
  }).join(""), o = e.map((c, l) => `<div class="nine-tab-item ${l === 0 ? "active" : ""}" data-index="${l}">Sheet ${l + 1}</div>`).join("");
@@ -982,7 +982,7 @@ const _e = class _e {
982
982
  flex-direction: column;
983
983
  position: relative;
984
984
  overflow: hidden;
985
- height: ${i ? "auto" : "100%"};
985
+ height: ${s ? "auto" : "100%"};
986
986
  background: #fff;
987
987
  }
988
988
 
@@ -1069,28 +1069,28 @@ const _e = class _e {
1069
1069
  const a = t(this, I).shadowRoot.querySelectorAll("nine-table-sheet");
1070
1070
  a == null || a.forEach((c, l) => {
1071
1071
  e[l] && setTimeout(() => {
1072
- c.generate(e[l]), i && t(this, kt).call(this);
1072
+ c.generate(e[l]), s && t(this, kt).call(this);
1073
1073
  });
1074
1074
  });
1075
1075
  }, "#render"));
1076
- y(this, I, s), t(this, Zt).call(this);
1076
+ y(this, I, i), t(this, Zt).call(this);
1077
1077
  }
1078
1078
  };
1079
1079
  I = new WeakMap(), Zt = new WeakMap(), kt = new WeakMap(), Gt = new WeakMap(), h(_e, "LayoutManager");
1080
1080
  let fe = _e;
1081
1081
  var Tt, ht;
1082
1082
  const Ne = class Ne {
1083
- constructor(s) {
1083
+ constructor(i) {
1084
1084
  d(this, Tt);
1085
1085
  d(this, ht, -1);
1086
1086
  A(this, "count", /* @__PURE__ */ h(() => t(this, Tt).rawRecords.length, "count"));
1087
- y(this, Tt, s);
1087
+ y(this, Tt, i);
1088
1088
  }
1089
1089
  get at() {
1090
1090
  return t(this, ht);
1091
1091
  }
1092
- set at(s) {
1093
- y(this, ht, parseInt(s, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, ht)}"]`) && setTimeout(() => {
1092
+ set at(i) {
1093
+ y(this, ht, parseInt(i, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, ht)}"]`) && setTimeout(() => {
1094
1094
  });
1095
1095
  }
1096
1096
  };
@@ -1098,7 +1098,7 @@ Tt = new WeakMap(), ht = new WeakMap(), h(Ne, "ngRow");
1098
1098
  let ue = Ne;
1099
1099
  var _, T, N, dt, Jt, Y, Qt, st, Ct, te, ee, ft;
1100
1100
  const W = class W {
1101
- constructor(s, e) {
1101
+ constructor(i, e) {
1102
1102
  d(this, _);
1103
1103
  d(this, T);
1104
1104
  d(this, N, []);
@@ -1107,34 +1107,34 @@ const W = class W {
1107
1107
  d(this, Y, []);
1108
1108
  d(this, Qt, /* @__PURE__ */ h(() => {
1109
1109
  y(this, Y, []);
1110
- const s = t(this, _).template || [];
1111
- Array.from(s).forEach((e) => {
1112
- var i;
1113
- t(this, Y).push(((i = e.getBoundingClientRect) == null ? void 0 : i.call(e).height) || 24);
1110
+ const i = t(this, _).template || [];
1111
+ Array.from(i).forEach((e) => {
1112
+ var s;
1113
+ t(this, Y).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
1114
1114
  }), (t(this, T).rawRecords || []).forEach((e) => {
1115
1115
  e.__ng || (e.__ng = t(this, Ct).call(this)), e.__ng.height = t(this, Y).slice();
1116
1116
  });
1117
1117
  }, "#initialize"));
1118
1118
  d(this, st, /* @__PURE__ */ h(() => {
1119
- t(this, _).shadowRoot.querySelectorAll("nine-table-sheet").forEach((s) => {
1120
- s.invalidate();
1119
+ t(this, _).shadowRoot.querySelectorAll("nine-table-sheet").forEach((i) => {
1120
+ i.invalidate();
1121
1121
  });
1122
1122
  }, "#invalidate"));
1123
- A(this, "get", /* @__PURE__ */ h((s, e) => {
1123
+ A(this, "get", /* @__PURE__ */ h((i, e) => {
1124
1124
  var n;
1125
- const i = this.getValidData();
1126
- if (!i || i.length <= 0) return;
1127
- if (s == null) return t(this, ft).call(this, i);
1128
- if (s < 0 || s >= i.length) return null;
1125
+ const s = this.getValidData();
1126
+ if (!s || s.length <= 0) return;
1127
+ if (i == null) return t(this, ft).call(this, s);
1128
+ if (i < 0 || i >= s.length) return null;
1129
1129
  const r = typeof ((n = t(this, _).fields) == null ? void 0 : n.get) == "function" ? t(this, _).fields.get() : [];
1130
1130
  if (e != null) {
1131
1131
  const o = r.indexOf(e);
1132
- return o >= 0 ? i[s].v[o] : null;
1132
+ return o >= 0 ? s[i].v[o] : null;
1133
1133
  }
1134
- return t(this, ft).call(this, i[s]);
1134
+ return t(this, ft).call(this, s[i]);
1135
1135
  }, "get"));
1136
- A(this, "set", /* @__PURE__ */ h((s) => {
1137
- this.clear(), this.add(s, !1), t(this, st).call(this);
1136
+ A(this, "set", /* @__PURE__ */ h((i) => {
1137
+ this.clear(), this.add(i, !1), t(this, st).call(this);
1138
1138
  }, "set"));
1139
1139
  d(this, Ct, /* @__PURE__ */ h(() => ({
1140
1140
  rowState: W.ROW_STATE.EMPTY,
@@ -1149,66 +1149,66 @@ const W = class W {
1149
1149
  y(this, N, []), y(this, dt, []), t(this, st).call(this);
1150
1150
  }, "reset"));
1151
1151
  A(this, "clear", /* @__PURE__ */ h(() => {
1152
- var s;
1153
- t(this, T).rawRecords = [], y(this, N, []), y(this, dt, []), (s = t(this, T).viewRecords) != null && s.reset && t(this, T).viewRecords.reset();
1152
+ var i;
1153
+ t(this, T).rawRecords = [], y(this, N, []), y(this, dt, []), (i = t(this, T).viewRecords) != null && i.reset && t(this, T).viewRecords.reset();
1154
1154
  }, "clear"));
1155
- d(this, te, /* @__PURE__ */ h((s) => {
1155
+ d(this, te, /* @__PURE__ */ h((i) => {
1156
1156
  var r;
1157
- Array.isArray(s) || (s = [s]);
1158
- const e = typeof ((r = t(this, _).fields) == null ? void 0 : r.get) == "function" ? t(this, _).fields.get() : Object.keys(s[0] || {}), i = [];
1159
- return s.forEach((n) => {
1157
+ Array.isArray(i) || (i = [i]);
1158
+ const e = typeof ((r = t(this, _).fields) == null ? void 0 : r.get) == "function" ? t(this, _).fields.get() : Object.keys(i[0] || {}), s = [];
1159
+ return i.forEach((n) => {
1160
1160
  const o = { v: [] };
1161
1161
  e.forEach((a) => {
1162
1162
  o.v.push(n[a] !== void 0 && n[a] !== null ? n[a] : "");
1163
- }), i.push(o);
1164
- }), i;
1163
+ }), s.push(o);
1164
+ }), s;
1165
1165
  }, "#json2Array"));
1166
- d(this, ee, /* @__PURE__ */ h((s) => (Array.isArray(s) || (s = [s]), s.forEach((e) => {
1166
+ d(this, ee, /* @__PURE__ */ h((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
1167
1167
  e.__ng = t(this, Ct).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = W.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1168
- }), s), "#defaultInsert"));
1169
- A(this, "add", /* @__PURE__ */ h((s, e = !0) => {
1170
- s === void 0 && (s = {});
1171
- const i = t(this, te).call(this, s);
1172
- t(this, T).rawRecords = t(this, T).rawRecords.concat(t(this, ee).call(this, i)), this.resetRecords();
1168
+ }), i), "#defaultInsert"));
1169
+ A(this, "add", /* @__PURE__ */ h((i, e = !0) => {
1170
+ i === void 0 && (i = {});
1171
+ const s = t(this, te).call(this, i);
1172
+ t(this, T).rawRecords = t(this, T).rawRecords.concat(t(this, ee).call(this, s)), this.resetRecords();
1173
1173
  const r = this.count() - 1;
1174
- return e || i.forEach((n, o) => {
1174
+ return e || s.forEach((n, o) => {
1175
1175
  const a = t(this, T).rawRecords[r - o];
1176
1176
  a && (a.__ng.rowState = W.ROW_STATE.EMPTY);
1177
1177
  }), t(this, st).call(this), r;
1178
1178
  }, "add"));
1179
- A(this, "delete", /* @__PURE__ */ h((s) => {
1179
+ A(this, "delete", /* @__PURE__ */ h((i) => {
1180
1180
  let e = [];
1181
- Array.isArray(s) ? e = s : typeof s > "u" ? e = [t(this, T).host.row.at] : e = [parseInt(s, 10)], e.sort((i, r) => r - i).forEach((i) => {
1182
- if (t(this, N)[i]) {
1183
- const r = t(this, N)[i].__ng.rowid;
1184
- t(this, N)[i].__ng.rowState === W.ROW_STATE.INSERT ? t(this, T).rawRecords = t(this, T).rawRecords.filter((n) => n.__ng.rowid !== r) : t(this, T).rawRecords.forEach((n) => {
1181
+ Array.isArray(i) ? e = i : typeof i > "u" ? e = [t(this, T).host.row.at] : e = [parseInt(i, 10)], e.sort((s, r) => r - s).forEach((s) => {
1182
+ if (t(this, N)[s]) {
1183
+ const r = t(this, N)[s].__ng.rowid;
1184
+ t(this, N)[s].__ng.rowState === W.ROW_STATE.INSERT ? t(this, T).rawRecords = t(this, T).rawRecords.filter((n) => n.__ng.rowid !== r) : t(this, T).rawRecords.forEach((n) => {
1185
1185
  n.__ng.rowid === r && (n.__ng.deleted = !0, n.__ng.rowState = W.ROW_STATE.DELETE);
1186
1186
  });
1187
1187
  }
1188
1188
  }), this.resetRecords(), t(this, st).call(this);
1189
1189
  }, "delete"));
1190
- A(this, "setValue", /* @__PURE__ */ h((s, e, i) => {
1190
+ A(this, "setValue", /* @__PURE__ */ h((i, e, s) => {
1191
1191
  var c;
1192
- s = parseInt(s, 10);
1192
+ i = parseInt(i, 10);
1193
1193
  const n = (typeof ((c = t(this, _).fields) == null ? void 0 : c.get) == "function" ? t(this, _).fields.get() : []).indexOf(e);
1194
1194
  if (n < 0) return;
1195
- const o = this.getValidData()[s];
1195
+ const o = this.getValidData()[i];
1196
1196
  if (!o) return;
1197
1197
  const a = o.v[n];
1198
- a !== i && o.__ng.rowState !== W.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(e) || (o.__ng.o[e] = a), o.__ng.rowState = W.ROW_STATE.UPDATE), o.v[n] = i;
1198
+ a !== s && o.__ng.rowState !== W.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(e) || (o.__ng.o[e] = a), o.__ng.rowState = W.ROW_STATE.UPDATE), o.v[n] = s;
1199
1199
  }, "setValue"));
1200
1200
  A(this, "resetRecords", /* @__PURE__ */ h(() => {
1201
- y(this, dt, t(this, T).rawRecords.filter((s) => !s.__ng.deleted)), y(this, N, t(this, T).rawRecords.filter((s) => !s.__ng.deleted && !s.__ng.filtered)), t(this, T).rawRecords.forEach((s, e) => {
1202
- s.__ng.rowidx = e;
1203
- }), t(this, N).forEach((s, e) => {
1204
- s.__ng.i = e;
1201
+ y(this, dt, t(this, T).rawRecords.filter((i) => !i.__ng.deleted)), y(this, N, t(this, T).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), t(this, T).rawRecords.forEach((i, e) => {
1202
+ i.__ng.rowidx = e;
1203
+ }), t(this, N).forEach((i, e) => {
1204
+ i.__ng.i = e;
1205
1205
  });
1206
1206
  }, "resetRecords"));
1207
1207
  A(this, "getValidData", /* @__PURE__ */ h(() => (t(this, N).length === 0 && t(this, T).rawRecords.length > 0 && this.resetRecords(), t(this, N)), "getValidData"));
1208
- d(this, ft, /* @__PURE__ */ h((s) => {
1208
+ d(this, ft, /* @__PURE__ */ h((i) => {
1209
1209
  var o;
1210
- if (!s) return s;
1211
- const e = !Array.isArray(s), i = e ? [s] : s, r = typeof ((o = t(this, _).fields) == null ? void 0 : o.get) == "function" ? t(this, _).fields.get() : [], n = i.filter((a) => !a.__ng.deleted).map((a) => {
1210
+ if (!i) return i;
1211
+ const e = !Array.isArray(i), s = e ? [i] : i, r = typeof ((o = t(this, _).fields) == null ? void 0 : o.get) == "function" ? t(this, _).fields.get() : [], n = s.filter((a) => !a.__ng.deleted).map((a) => {
1212
1212
  const c = {};
1213
1213
  return r.forEach((l, f) => {
1214
1214
  c[l] = a.v ? a.v[f] : a[l];
@@ -1217,13 +1217,13 @@ const W = class W {
1217
1217
  return e ? n[0] : n;
1218
1218
  }, "#conv"));
1219
1219
  A(this, "count", /* @__PURE__ */ h(() => this.getValidData().length, "count"));
1220
- y(this, _, s), y(this, T, e), t(this, Qt).call(this);
1220
+ y(this, _, i), y(this, T, e), t(this, Qt).call(this);
1221
1221
  }
1222
1222
  get source() {
1223
1223
  return t(this, ft).call(this, t(this, T).rawRecords);
1224
1224
  }
1225
- set source(s) {
1226
- this.clear(), this.add(s, !1);
1225
+ set source(i) {
1226
+ this.clear(), this.add(i, !1);
1227
1227
  }
1228
1228
  get nextId() {
1229
1229
  return ++Ye(this, Jt)._;
@@ -1246,22 +1246,22 @@ A(W, "ROW_STATE", {
1246
1246
  let ge = W;
1247
1247
  var it;
1248
1248
  const We = class We {
1249
- constructor(s) {
1249
+ constructor(i) {
1250
1250
  d(this, it);
1251
- y(this, it, s), this.row = new ue(this), this.data = new ge(t(this, it), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1251
+ y(this, it, i), this.row = new ue(this), this.data = new ge(t(this, it), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1252
1252
  var e;
1253
1253
  (e = t(this, it).view) != null && e.redraw && t(this, it).view.redraw();
1254
1254
  }, this.setDataSource = (e) => {
1255
1255
  this.data && this.data.reset(), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.data.set(e || []);
1256
1256
  }, this.getRowState = (e) => {
1257
1257
  var r, n;
1258
- const i = parseInt(e, 10);
1259
- if (!(i >= this.data.count()))
1260
- return (n = (r = this.data.getValidData()[i]) == null ? void 0 : r.__ng) == null ? void 0 : n.rowState;
1258
+ const s = parseInt(e, 10);
1259
+ if (!(s >= this.data.count()))
1260
+ return (n = (r = this.data.getValidData()[s]) == null ? void 0 : r.__ng) == null ? void 0 : n.rowState;
1261
1261
  }, this.getRowPosition = () => this.row.at, this.setRowPosition = (e) => {
1262
1262
  this.row.at = e;
1263
- }, this.scrollTo_V1 = (e) => (e < 0 && (e = 0), e >= this.rawRecords.length && (e = this.rawRecords.length - 1), this.viewRecords.rawIndex = e, this.viewRecords.reset && this.viewRecords.reset(), !(e <= 0 || e >= this.rawRecords.length - 1)), this.getColumn = (e, i) => this.data.get(e, i), this.setColumn = (e, i, r) => {
1264
- e = parseInt(e, 10), this.data.setValue(e, i, r);
1263
+ }, this.scrollTo_V1 = (e) => (e < 0 && (e = 0), e >= this.rawRecords.length && (e = this.rawRecords.length - 1), this.viewRecords.rawIndex = e, this.viewRecords.reset && this.viewRecords.reset(), !(e <= 0 || e >= this.rawRecords.length - 1)), this.getColumn = (e, s) => this.data.get(e, s), this.setColumn = (e, s, r) => {
1264
+ e = parseInt(e, 10), this.data.setValue(e, s, r);
1265
1265
  }, this.setDataSource([]);
1266
1266
  }
1267
1267
  };
@@ -1270,31 +1270,31 @@ let be = We;
1270
1270
  var ut, L, Lt, se;
1271
1271
  const Oe = class Oe {
1272
1272
  // 🎯 이제 { name: string, type: string } κ°μ²΄λ“€μ˜ λ°°μ—΄λ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.
1273
- constructor(s) {
1273
+ constructor(i) {
1274
1274
  d(this, ut);
1275
1275
  d(this, L, []);
1276
- A(this, "add", /* @__PURE__ */ h((s, e = "string") => {
1277
- s.forEach((i) => {
1278
- t(this, L).some((r) => r.name === i) || t(this, L).push({ name: i, type: e });
1276
+ A(this, "add", /* @__PURE__ */ h((i, e = "string") => {
1277
+ i.forEach((s) => {
1278
+ t(this, L).some((r) => r.name === s) || t(this, L).push({ name: s, type: e });
1279
1279
  }), t(this, Lt).call(this);
1280
1280
  }, "add"));
1281
1281
  d(this, Lt, /* @__PURE__ */ h(() => {
1282
- const s = /* @__PURE__ */ new Map();
1282
+ const i = /* @__PURE__ */ new Map();
1283
1283
  t(this, L).forEach((e) => {
1284
- s.set(e.name, e.type);
1285
- }), y(this, L, Array.from(s, ([e, i]) => ({ name: e, type: i }))), y(this, L, t(this, L).filter((e) => e.name !== "" && e.name !== "__ng")), t(this, L).sort((e, i) => e.name.length < i.name.length ? 1 : -1);
1284
+ i.set(e.name, e.type);
1285
+ }), y(this, L, Array.from(i, ([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);
1286
1286
  }, "#adjust"));
1287
1287
  d(this, se, /* @__PURE__ */ h(() => {
1288
1288
  y(this, L, []), P.log(t(this, ut).querySelectorAll("table"));
1289
- const s = Array.from(t(this, ut).querySelectorAll("table"));
1290
- if (!(!s || s.length === 0)) {
1291
- for (const e of s)
1292
- P.log(e), $("[data-bind]", e).each((i, r) => {
1289
+ const i = Array.from(t(this, ut).querySelectorAll("table"));
1290
+ if (!(!i || i.length === 0)) {
1291
+ for (const e of i)
1292
+ P.log(e), $("[data-bind]", e).each((s, r) => {
1293
1293
  const n = r.dataset.bind, o = r.getAttribute("data-type") || "string";
1294
1294
  n && t(this, L).push({ name: n, type: o });
1295
- }), ["data-expr", "background-color", "color", "tooltip", "visible", "readonly", "enable-button", "enable-check", "class-expr", "icon-color", "icon-src"].forEach((i) => {
1296
- $(`[${i}]`, e).each((r, n) => {
1297
- var o = n.getAttribute(i);
1295
+ }), ["data-expr", "background-color", "color", "tooltip", "visible", "readonly", "enable-button", "enable-check", "class-expr", "icon-color", "icon-src"].forEach((s) => {
1296
+ $(`[${s}]`, e).each((r, n) => {
1297
+ var o = n.getAttribute(s);
1298
1298
  if (o.indexOf("data.") < 0) {
1299
1299
  const a = o.search(/[(]/g);
1300
1300
  if (a > 0)
@@ -1316,26 +1316,26 @@ const Oe = class Oe {
1316
1316
  t(this, Lt).call(this);
1317
1317
  }
1318
1318
  }, "#init"));
1319
- y(this, ut, s), t(this, se).call(this);
1319
+ y(this, ut, i), t(this, se).call(this);
1320
1320
  }
1321
1321
  // 🎯 기쑴에 ν•„λ“œ μ΄λ¦„λ§Œ μ“°λ˜ κ³³λ“€κ³Όμ˜ ν˜Έν™˜μ„ μœ„ν•΄ 이름 λ°°μ—΄λ§Œ λ¦¬ν„΄ν•˜λŠ” λ©”μ„œλ“œ μœ μ§€
1322
1322
  get() {
1323
- return t(this, L).map((s) => s.name);
1323
+ return t(this, L).map((i) => i.name);
1324
1324
  }
1325
1325
  // 🎯 λ‚΄λΆ€ 객체 ν†΅μ§Έλ‘œ μ–»κΈ°
1326
1326
  getFields() {
1327
1327
  return t(this, L);
1328
1328
  }
1329
1329
  // 🎯 νŠΉμ • ν•„λ“œμ˜ 데이터 νƒ€μž… 쑰회
1330
- getType(s) {
1331
- const e = t(this, L).find((i) => i.name === s);
1330
+ getType(i) {
1331
+ const e = t(this, L).find((s) => s.name === i);
1332
1332
  return e ? e.type : "string";
1333
1333
  }
1334
- indexOf(s) {
1335
- return t(this, L).findIndex((e) => e.name === s);
1334
+ indexOf(i) {
1335
+ return t(this, L).findIndex((e) => e.name === i);
1336
1336
  }
1337
- includes(s) {
1338
- return t(this, L).some((e) => e.name === s);
1337
+ includes(i) {
1338
+ return t(this, L).some((e) => e.name === i);
1339
1339
  }
1340
1340
  };
1341
1341
  ut = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), h(Oe, "ngFields");
@@ -1401,15 +1401,15 @@ const ze = class ze extends me {
1401
1401
  A(this, "getDisplayText", /* @__PURE__ */ h((e) => {
1402
1402
  if (t(this, p))
1403
1403
  if (t(this, p).closest("tbody")) {
1404
- const i = t(this, p).closest("tr").data, r = parseInt(t(this, p).dataset.row);
1405
- if (!i) return "";
1404
+ const s = t(this, p).closest("tr").data, r = parseInt(t(this, p).dataset.row);
1405
+ if (!s) return "";
1406
1406
  if (ninegrid.isNull(t(this, p).dataset.expr)) {
1407
1407
  if (!ninegrid.isNull(t(this, p).dataset.bind))
1408
- return i[t(this, p).dataset.bind] || ninegrid.nvl(e, "");
1408
+ return s[t(this, p).dataset.bind] || ninegrid.nvl(e, "");
1409
1409
  } else try {
1410
- return this.getExprValue(t(this, p).dataset.expr, i, r, t(this, p));
1410
+ return this.getExprValue(t(this, p).dataset.expr, s, r, t(this, p));
1411
1411
  } catch {
1412
- console.error(t(this, p).dataset.expr, i, t(this, p).dataset.row);
1412
+ console.error(t(this, p).dataset.expr, s, t(this, p).dataset.row);
1413
1413
  }
1414
1414
  return ninegrid.nvl(e, "");
1415
1415
  } else
@@ -1422,13 +1422,13 @@ const ze = class ze extends me {
1422
1422
  if (!(!t(this, C) || !t(this, C).template || !t(this, p).closest("tbody.bindable"))) {
1423
1423
  var e = ninegrid.j.querySelectorAll(t(this, p)).attr("suppress");
1424
1424
  if (e && (e = parseInt(e)), e && !isNaN(e)) {
1425
- var i = t(this, p).closest("tr"), r = [];
1426
- $("th,td", i).each((x, H) => {
1425
+ var s = t(this, p).closest("tr"), r = [];
1426
+ $("th,td", s).each((x, H) => {
1427
1427
  var k = ninegrid.j.querySelectorAll(H).attr("suppress");
1428
1428
  k && H.dataset.row && (k = parseInt(k), !isNaN(k) && k <= e && r.push(k));
1429
1429
  }), r.sort();
1430
1430
  var n = !1;
1431
- if (parseInt(i.sectionRowIndex / t(this, C).template.length) > 0)
1431
+ if (parseInt(s.sectionRowIndex / t(this, C).template.length) > 0)
1432
1432
  for (var o of r) {
1433
1433
  if (o > e) break;
1434
1434
  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);
@@ -1442,17 +1442,17 @@ const ze = class ze extends me {
1442
1442
  else
1443
1443
  n = !0;
1444
1444
  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"));
1445
- var m = parseInt(t(this, p).dataset.matrixRow), v = m - 1, S = t(this, C).body.querySelector(`tbody.bindable [data-col="${t(this, p).dataset.col}"][data-matrix-row="${v}"]`);
1446
- $(S).hasClass("suppress") && !ninegrid.j.querySelectorAll(t(this, p)).hasClass("suppress") ? ninegrid.j.querySelectorAll(S).removeClass("last-none-suppress").addClass("last-suppress") : !$(S).hasClass("suppress") && ninegrid.j.querySelectorAll(t(this, p)).hasClass("suppress") ? ninegrid.j.querySelectorAll(S).removeClass("last-suppress").addClass("last-none-suppress") : ninegrid.j.querySelectorAll(S).removeClass("last-none-suppress").removeClass("last-suppress");
1445
+ 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}"]`);
1446
+ $(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");
1447
1447
  }
1448
1448
  }
1449
1449
  }, "#resetSuppress"));
1450
- A(this, "getExprValue", /* @__PURE__ */ h((e, i, r, n) => {
1450
+ A(this, "getExprValue", /* @__PURE__ */ h((e, s, r, n) => {
1451
1451
  if (typeof e < "u")
1452
1452
  try {
1453
1453
  r = parseInt(r);
1454
1454
  const o = e.replace("()", "");
1455
- return t(this, C)[o] ? t(this, C)[o].call(this, i, r, t(this, p)) : t(this, C).exprFunction(e).call(this, i, r, t(this, C).data);
1455
+ return t(this, C)[o] ? t(this, C)[o].call(this, s, r, t(this, p)) : t(this, C).exprFunction(e).call(this, s, r, t(this, C).data);
1456
1456
  } catch {
1457
1457
  return ["NG-COMBO"].includes(this.tagName) ? "" : e;
1458
1458
  }
@@ -1468,9 +1468,9 @@ const ze = class ze extends me {
1468
1468
  return e ?? "";
1469
1469
  }
1470
1470
  set value(e) {
1471
- var i = parseInt(t(this, p).dataset.row);
1471
+ var s = parseInt(t(this, p).dataset.row);
1472
1472
  const r = this.getAttribute("update-row-state") != "false";
1473
- i < 0 ? t(this, C).data.setValueNF(parseInt(t(this, p).dataset.index), t(this, p).dataset.bind, e, r) : t(this, C).data.setValue(i, t(this, p).dataset.bind, e, r);
1473
+ s < 0 ? t(this, C).data.setValueNF(parseInt(t(this, p).dataset.index), t(this, p).dataset.bind, e, r) : t(this, C).data.setValue(s, t(this, p).dataset.bind, e, r);
1474
1474
  }
1475
1475
  get row() {
1476
1476
  return parseInt(t(this, p).dataset.row);
@@ -1479,7 +1479,8 @@ const ze = class ze extends me {
1479
1479
  return t(this, p).closest("tr").data;
1480
1480
  }
1481
1481
  refresh() {
1482
- return t(this, p).dataset.bind, parseInt(t(this, p).dataset.row), t(this, Ht).data, t(this, p).dataset.row;
1482
+ const e = t(this, p).dataset.bind;
1483
+ return parseInt(t(this, p).dataset.row), t(this, Ht).data[e];
1483
1484
  }
1484
1485
  };
1485
1486
  C = new WeakMap(), Ht = new WeakMap(), p = new WeakMap(), Ae = new WeakMap(), Re = new WeakMap(), qe = new WeakMap(), ke = new WeakMap(), Te = new WeakMap(), h(ze, "CellElement");
@@ -1546,10 +1547,10 @@ const Pe = class Pe extends ve {
1546
1547
  if (t(this, nt) == "number") {
1547
1548
  let n = [];
1548
1549
  if (t(this, U) && Number(t(this, U)) > 0 && n.push("."), t(this, bt) && Number(t(this, bt)) >= 0 && n.push("-"), !(e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && !n.includes(e.key) && e.preventDefault(), t(this, U) && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && e.target.selectionStart == e.target.selectionEnd) {
1549
- var i = e.target.value, r = i.indexOf(".");
1550
+ var s = e.target.value, r = s.indexOf(".");
1550
1551
  if (r >= 0) {
1551
- var i = i.substr(r + 1, i.length);
1552
- i.length >= Number(t(this, U)) && e.preventDefault();
1552
+ var s = s.substr(r + 1, s.length);
1553
+ s.length >= Number(t(this, U)) && e.preventDefault();
1553
1554
  }
1554
1555
  }
1555
1556
  }
@@ -1559,8 +1560,8 @@ const Pe = class Pe extends ve {
1559
1560
  if (this.applyBaseStyle(), y(this, nt, this.getAttribute("type") || "text"), y(this, gt, this.getAttribute("maxbyte")), y(this, bt, 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)}`;
1560
1561
  }
1561
1562
  connectedCallback() {
1562
- for (var e = [], i = 0; i < this.attributes.length; i++)
1563
- ["type", "maxlength", "maxbyte", "min", "max", "step", "scale", "text-align"].includes(this.attributes[i].name) && e.push(`${this.attributes[i].name}="${this.attributes[i].value}"`);
1563
+ for (var e = [], s = 0; s < this.attributes.length; s++)
1564
+ ["type", "maxlength", "maxbyte", "min", "max", "step", "scale", "text-align"].includes(this.attributes[s].name) && e.push(`${this.attributes[s].name}="${this.attributes[s].value}"`);
1564
1565
  this.innerHTML = `
1565
1566
  <input type="text"
1566
1567
  ${e.join(" ")}