@ninebone/table 0.0.590 β†’ 0.0.592

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 Fe = Object.defineProperty;
2
2
  var Ve = (R) => {
3
3
  throw TypeError(R);
4
4
  };
5
- var Xe = (R, r, e) => r in R ? Fe(R, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : R[r] = e;
6
- var h = (R, r) => Fe(R, "name", { value: r, configurable: !0 });
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), p = (R, r, e, s) => (Ye(R, r, "write to private field"), s ? s.call(R, e) : r.set(R, e), e);
9
- var Ue = (R, r, e, s) => ({
10
- set _(i) {
11
- p(R, r, i, e);
5
+ var Xe = (R, i, e) => i in R ? Fe(R, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : R[i] = e;
6
+ var h = (R, i) => Fe(R, "name", { value: i, configurable: !0 });
7
+ var E = (R, i, e) => Xe(R, typeof i != "symbol" ? i + "" : i, e), Ye = (R, i, e) => i.has(R) || Ve("Cannot " + e);
8
+ var t = (R, i, e) => (Ye(R, i, "read from private field"), e ? e.call(R) : i.get(R)), d = (R, i, e) => i.has(R) ? Ve("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(R) : i.set(R, e), p = (R, i, e, s) => (Ye(R, i, "write to private field"), s ? s.call(R, e) : i.set(R, e), e);
9
+ var Ue = (R, i, e, s) => ({
10
+ set _(r) {
11
+ p(R, i, r, e);
12
12
  },
13
13
  get _() {
14
- return t(R, r, s);
14
+ return t(R, i, s);
15
15
  }
16
16
  });
17
17
  import { trace as Ke } from "@ninebone/util";
@@ -23,35 +23,35 @@ const He = class He extends Ke.constructor {
23
23
  h(He, "Trace");
24
24
  let oe = He;
25
25
  const W = new oe();
26
- var P, j, w, X, K, Z, It, G, _t;
26
+ var z, j, w, X, K, Z, It, G, _t;
27
27
  const Me = class Me extends HTMLElement {
28
28
  constructor() {
29
29
  super();
30
- d(this, P);
30
+ d(this, z);
31
31
  d(this, j, !1);
32
32
  d(this, w);
33
33
  d(this, X);
34
34
  d(this, K);
35
35
  d(this, Z);
36
36
  d(this, It, /* @__PURE__ */ h(() => {
37
- if (!t(this, P)) return;
38
- const e = t(this, P).querySelector(".ng-container-body .ng-part-body");
37
+ if (!t(this, z)) return;
38
+ const e = t(this, z).querySelector(".ng-container-body .ng-part-body");
39
39
  e && (p(this, Z, new ResizeObserver(() => {
40
40
  this.refresh();
41
41
  })), t(this, Z).observe(e));
42
42
  }, "#observeResize"));
43
- A(this, "refresh", /* @__PURE__ */ h(() => {
44
- if (!t(this, P) || !t(this, w) || t(this, j)) return;
43
+ E(this, "refresh", /* @__PURE__ */ h(() => {
44
+ if (!t(this, z) || !t(this, w) || t(this, j)) return;
45
45
  const e = t(this, w).container, s = e.querySelector("table");
46
46
  if (!s) return;
47
- const i = t(this, w).track, n = t(this, w).thumb, o = t(this, P).querySelector(".ng-container-bottom"), a = e.clientWidth, c = s.scrollWidth;
47
+ const r = t(this, w).track, n = t(this, w).thumb, o = t(this, z).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 {
51
51
  o && (o.style.display = "none");
52
52
  return;
53
53
  }
54
- const l = i.clientWidth;
54
+ const l = r.clientWidth;
55
55
  if (l <= 0) return;
56
56
  const f = Math.max(Math.min(l * (a / c), l), 20);
57
57
  n.style.width = `${f}px`;
@@ -63,43 +63,43 @@ const Me = class Me extends HTMLElement {
63
63
  }, "refresh"));
64
64
  d(this, G, /* @__PURE__ */ h((e) => {
65
65
  if (!t(this, w)) return !1;
66
- const s = t(this, w).container, i = s.querySelector("table");
67
- if (!i) return !1;
66
+ const s = t(this, w).container, r = s.querySelector("table");
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 = s.clientWidth, u = i.scrollWidth - l;
73
+ const l = s.clientWidth, u = r.scrollWidth - l;
74
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
- const e = /* @__PURE__ */ h((i) => {
77
+ const e = /* @__PURE__ */ h((r) => {
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), p(this, X, setInterval(() => {
80
+ t(this, G).call(this, n + r), p(this, X, setInterval(() => {
81
81
  clearInterval(t(this, X)), p(this, K, setInterval(() => {
82
82
  const o = parseInt(t(this, w).thumb.style.left || 0, 10);
83
- t(this, G).call(this, o + i) || clearInterval(t(this, K));
83
+ t(this, G).call(this, o + r) || clearInterval(t(this, K));
84
84
  }, 50));
85
85
  }, 500));
86
86
  }, "delayScroll"), s = /* @__PURE__ */ h(() => {
87
87
  clearInterval(t(this, X)), clearInterval(t(this, K));
88
88
  }, "clearTimer");
89
- ["mouseup", "mouseleave", "touchend"].forEach((i) => {
90
- t(this, w).left.addEventListener(i, s), t(this, w).right.addEventListener(i, s), t(this, w).track.addEventListener(i, s);
91
- }), t(this, w).left.addEventListener("mousedown", (i) => {
92
- i.button === 0 && e(-20);
93
- }), t(this, w).right.addEventListener("mousedown", (i) => {
94
- i.button === 0 && e(20);
95
- }), t(this, w).left.addEventListener("touchstart", () => e(-20)), t(this, w).right.addEventListener("touchstart", () => e(20)), t(this, w).track.addEventListener("mousedown", (i) => {
96
- if (i.button !== 0) return;
97
- i.preventDefault();
89
+ ["mouseup", "mouseleave", "touchend"].forEach((r) => {
90
+ t(this, w).left.addEventListener(r, s), t(this, w).right.addEventListener(r, s), t(this, w).track.addEventListener(r, s);
91
+ }), t(this, w).left.addEventListener("mousedown", (r) => {
92
+ r.button === 0 && e(-20);
93
+ }), t(this, w).right.addEventListener("mousedown", (r) => {
94
+ r.button === 0 && e(20);
95
+ }), t(this, w).left.addEventListener("touchstart", () => e(-20)), t(this, w).right.addEventListener("touchstart", () => e(20)), t(this, w).track.addEventListener("mousedown", (r) => {
96
+ if (r.button !== 0) return;
97
+ r.preventDefault();
98
98
  const n = t(this, w).track.getBoundingClientRect(), o = t(this, w).thumb.clientWidth;
99
- t(this, G).call(this, i.clientX - n.left - o / 2);
100
- }), t(this, w).thumb.addEventListener("mousedown", (i) => {
101
- if (i.button !== 0) return;
102
- i.stopPropagation(), i.preventDefault(), p(this, j, !0), this.shiftX = i.clientX - t(this, w).thumb.getBoundingClientRect().left;
99
+ t(this, G).call(this, r.clientX - n.left - o / 2);
100
+ }), t(this, w).thumb.addEventListener("mousedown", (r) => {
101
+ if (r.button !== 0) return;
102
+ r.stopPropagation(), r.preventDefault(), p(this, j, !0), this.shiftX = r.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();
@@ -112,7 +112,7 @@ const Me = class Me extends HTMLElement {
112
112
  }, "#init"));
113
113
  }
114
114
  connectedCallback() {
115
- if (p(this, P, this.closest("nine-table-sheet") || this.getRootNode().host), !t(this, P)) 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 {
@@ -177,7 +177,7 @@ const Me = class Me 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 s = t(this, P).querySelector(".ng-container-body .ng-part-body");
180
+ const s = t(this, z).querySelector(".ng-container-body .ng-part-body");
181
181
  if (!s) {
182
182
  setTimeout(e, 10);
183
183
  return;
@@ -198,10 +198,10 @@ const Me = class Me extends HTMLElement {
198
198
  t(this, Z) && t(this, Z).disconnect();
199
199
  }
200
200
  };
201
- P = new WeakMap(), j = new WeakMap(), w = new WeakMap(), X = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), It = new WeakMap(), G = new WeakMap(), _t = new WeakMap(), h(Me, "NineTableHScrollBar");
201
+ z = new WeakMap(), j = new WeakMap(), w = new WeakMap(), X = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), It = new WeakMap(), G = new WeakMap(), _t = new WeakMap(), h(Me, "NineTableHScrollBar");
202
202
  let ae = Me;
203
203
  customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ae);
204
- var F, at, J, q, xt, vt, Nt;
204
+ var F, at, J, q, vt, xt, Nt;
205
205
  const $e = class $e extends HTMLElement {
206
206
  constructor() {
207
207
  super();
@@ -209,25 +209,25 @@ const $e = class $e extends HTMLElement {
209
209
  d(this, at);
210
210
  d(this, J, !1);
211
211
  d(this, q);
212
- d(this, xt, 0);
213
212
  d(this, vt, 0);
214
- A(this, "refresh", /* @__PURE__ */ h(() => {
213
+ d(this, xt, 0);
214
+ E(this, "refresh", /* @__PURE__ */ h(() => {
215
215
  if (!t(this, F) || !t(this, q)) return;
216
- const e = t(this, q).container, s = t(this, q).track, i = t(this, q).thumb, n = e.clientHeight, a = (t(this, F).data.get() || []).length, c = t(this, at).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, at).getRowHeight(), l = a * c;
217
217
  if (l <= n) {
218
- i.style.display = "none", t(this, q).top.disabled = !0, t(this, q).bottom.disabled = !0;
218
+ r.style.display = "none", t(this, q).top.disabled = !0, t(this, q).bottom.disabled = !0;
219
219
  return;
220
220
  } else
221
- i.style.display = "block";
221
+ r.style.display = "block";
222
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
- i.style.height = `${u}px`;
225
+ r.style.height = `${u}px`;
226
226
  const g = e.scrollTop, b = Math.max(l - n, 1);
227
227
  let m = 0;
228
228
  b > 0 && (m = g / b * (f - u));
229
- const v = f - u;
230
- m < 0 && (m = 0), m > v && (m = v), i.style.top = `${m}px`, t(this, q).top.disabled = g <= 0, t(this, q).bottom.disabled = g >= b - 1;
229
+ const x = f - u;
230
+ m < 0 && (m = 0), m > x && (m = x), r.style.top = `${m}px`, t(this, q).top.disabled = g <= 0, t(this, q).bottom.disabled = g >= b - 1;
231
231
  }, "refresh"));
232
232
  d(this, Nt, /* @__PURE__ */ h(() => {
233
233
  W.log("nine-table-vscrollbar.#init");
@@ -237,26 +237,26 @@ const $e = class $e extends HTMLElement {
237
237
  }, "getContentHeight");
238
238
  e.addEventListener("scroll", () => {
239
239
  t(this, J) || this.refresh();
240
- }), t(this, q).thumb.addEventListener("mousedown", (i) => {
241
- if (i.button !== 0) return;
242
- i.stopPropagation(), i.preventDefault(), p(this, J, !0), p(this, xt, i.clientY), p(this, vt, e.scrollTop);
240
+ }), t(this, q).thumb.addEventListener("mousedown", (r) => {
241
+ if (r.button !== 0) return;
242
+ r.stopPropagation(), r.preventDefault(), p(this, J, !0), p(this, vt, r.clientY), p(this, xt, e.scrollTop);
243
243
  const n = /* @__PURE__ */ h((a) => {
244
244
  if (!t(this, J)) return;
245
- const c = t(this, q).track.getBoundingClientRect(), l = t(this, q).thumb.clientHeight, u = c.height - l, g = a.clientY - t(this, xt), b = e.clientHeight, m = s(), v = Math.max(m - b, 1);
246
- if (u > 0 && v > 0) {
247
- const E = g / u * v;
248
- let x = t(this, vt) + E;
245
+ const c = t(this, q).track.getBoundingClientRect(), l = t(this, q).thumb.clientHeight, u = c.height - l, g = a.clientY - t(this, vt), b = e.clientHeight, m = s(), x = Math.max(m - b, 1);
246
+ if (u > 0 && x > 0) {
247
+ const A = g / u * x;
248
+ let v = t(this, xt) + A;
249
249
  const M = Math.max(0, m - b);
250
- x < 0 && (x = 0), x > M && (x = M), e.scrollTop = x;
250
+ v < 0 && (v = 0), v > M && (v = M), e.scrollTop = v;
251
251
  }
252
252
  this.refresh();
253
253
  }, "onMouseMove"), o = /* @__PURE__ */ h(() => {
254
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
- }), t(this, q).track.addEventListener("mousedown", (i) => {
258
- if (i.button !== 0 || i.target === t(this, q).thumb) return;
259
- const n = t(this, q).track.getBoundingClientRect(), o = t(this, q).thumb.clientHeight, a = i.clientY - n.top - o / 2, l = n.height - o, f = e.clientHeight, u = s(), g = Math.max(u - f, 1);
257
+ }), t(this, q).track.addEventListener("mousedown", (r) => {
258
+ if (r.button !== 0 || r.target === t(this, q).thumb) return;
259
+ 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(), g = Math.max(u - f, 1);
260
260
  if (l > 0 && g > 0) {
261
261
  const b = Math.max(0, Math.min(1, a / l));
262
262
  e.scrollTop = b * g;
@@ -351,35 +351,35 @@ const $e = class $e extends HTMLElement {
351
351
  e();
352
352
  }
353
353
  };
354
- F = new WeakMap(), at = new WeakMap(), J = new WeakMap(), q = new WeakMap(), xt = new WeakMap(), vt = new WeakMap(), Nt = new WeakMap(), h($e, "NineTableVScrollBar");
354
+ F = new WeakMap(), at = new WeakMap(), J = new WeakMap(), q = new WeakMap(), vt = new WeakMap(), xt = new WeakMap(), Nt = new WeakMap(), h($e, "NineTableVScrollBar");
355
355
  let le = $e;
356
356
  customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", le);
357
- var D, S, Q, z, I, V, tt, wt, Se, Ee, Wt, Ot, Bt, St, Et, Pt, zt, At, Ae, lt, Rt, Dt;
357
+ var P, S, Q, D, I, V, tt, wt, Se, Ae, Wt, Ot, Bt, St, At, zt, Dt, Et, Ee, lt, Rt, Pt;
358
358
  const Ie = class Ie {
359
- constructor(r) {
360
- d(this, D);
359
+ constructor(i) {
360
+ d(this, P);
361
361
  d(this, S);
362
362
  d(this, Q);
363
- d(this, z, /* @__PURE__ */ new Map());
363
+ d(this, D, /* @__PURE__ */ new Map());
364
364
  d(this, I, null);
365
365
  d(this, V, null);
366
366
  d(this, tt, 0);
367
367
  d(this, wt, 40);
368
368
  d(this, Se, !1);
369
- d(this, Ee, !1);
369
+ d(this, Ae, !1);
370
370
  //#ticking = false; // 🎯 고속 슀크둀 μŠ€λ‘œν‹€λ§μš© ν”Œλž˜κ·Έ
371
371
  d(this, Wt, 3);
372
- A(this, "refresh", /* @__PURE__ */ h(() => {
372
+ E(this, "refresh", /* @__PURE__ */ h(() => {
373
373
  var e;
374
374
  W.log("rowManager.refresh");
375
- const r = t(this, S).querySelector(".ng-container-body .ng-part-body");
376
- r && (t(this, St).call(this), t(this, lt).call(this, r.scrollTop), (e = t(this, S).querySelector("nine-table-vscrollbar")) == null || e.refresh());
375
+ const i = t(this, S).querySelector(".ng-container-body .ng-part-body");
376
+ i && (t(this, St).call(this), t(this, lt).call(this, i.scrollTop), (e = t(this, S).querySelector("nine-table-vscrollbar")) == null || e.refresh());
377
377
  }, "refresh"));
378
- A(this, "initialize", /* @__PURE__ */ h(() => {
378
+ E(this, "initialize", /* @__PURE__ */ h(() => {
379
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
- }), p(this, I, null), t(this, z).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
382
+ }), p(this, I, null), t(this, D).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");
@@ -387,151 +387,151 @@ const Ie = class Ie {
387
387
  const l = c.querySelector("tbody.bindable-tbody");
388
388
  if (!l) return;
389
389
  const u = Array.from(l.querySelectorAll("tr")).map((g) => g.cloneNode(!0));
390
- t(this, z).set(o, u);
390
+ t(this, D).set(o, u);
391
391
  });
392
- const r = 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"), i = t(this, S).querySelector(".ng-container-body .ng-part-header"), n = t(this, S).querySelector(".ng-container-body .ng-part-footer");
393
- if (r) {
394
- t(this, Bt).call(this, r), t(this, At).call(this), t(this, St).call(this), t(this, lt).call(this, r.scrollTop);
392
+ 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");
393
+ if (i) {
394
+ t(this, Bt).call(this, i), t(this, Et).call(this), t(this, St).call(this), t(this, lt).call(this, i.scrollTop);
395
395
  let o = !1;
396
396
  const a = /* @__PURE__ */ h((c) => {
397
397
  if (o) return;
398
398
  o = !0;
399
399
  const l = c.scrollTop, f = c.scrollLeft;
400
- r && r.scrollTop !== l && (r.scrollTop = l), e && e.scrollTop !== l && (e.scrollTop = l), s && s.scrollTop !== l && (s.scrollTop = l), i && i.scrollLeft !== f && (i.scrollLeft = f), n && n.scrollLeft !== f && (n.scrollLeft = f), t(this, lt).call(this, l), o = !1;
400
+ i && i.scrollTop !== l && (i.scrollTop = l), e && e.scrollTop !== l && (e.scrollTop = l), s && s.scrollTop !== l && (s.scrollTop = l), r && r.scrollLeft !== f && (r.scrollLeft = f), n && n.scrollLeft !== f && (n.scrollLeft = f), t(this, lt).call(this, l), o = !1;
401
401
  }, "handleContainerScroll");
402
- [r, e, s].forEach((c) => {
402
+ [i, e, s].forEach((c) => {
403
403
  c && c.addEventListener("scroll", () => {
404
404
  a(c);
405
405
  }, { passive: !0 });
406
406
  });
407
407
  }
408
408
  }, "initialize"));
409
- d(this, Ot, /* @__PURE__ */ h((r, e) => {
409
+ d(this, Ot, /* @__PURE__ */ h((i, e) => {
410
410
  W.log("rowManager.#renderRows");
411
- const s = t(this, z).get(e);
411
+ const s = t(this, D).get(e);
412
412
  if (!s || s.length === 0) return;
413
- const i = r.querySelector(".ng-part-body tbody.bindable-tbody");
414
- if (!i) return;
415
- i.querySelectorAll("tr:not(.nodata)").forEach((a) => a.remove());
416
- const n = i.querySelector("tr.nodata"), o = document.createDocumentFragment();
413
+ const r = i.querySelector(".ng-part-body tbody.bindable-tbody");
414
+ if (!r) return;
415
+ r.querySelectorAll("tr:not(.nodata)").forEach((a) => a.remove());
416
+ const n = r.querySelector("tr.nodata"), o = document.createDocumentFragment();
417
417
  for (let a = 0; a < t(this, wt); a++)
418
418
  s.forEach((c) => {
419
419
  o.appendChild(c.cloneNode(!0));
420
420
  });
421
- n ? n.before(o) : i.appendChild(o), e === ".ng-container-body" && (t(this, Q).firstTr = i.querySelector("tr:not(.nodata)"));
421
+ n ? n.before(o) : r.appendChild(o), e === ".ng-container-body" && (t(this, Q).firstTr = r.querySelector("tr:not(.nodata)"));
422
422
  }, "#renderRows"));
423
- d(this, Bt, /* @__PURE__ */ h((r) => {
423
+ d(this, Bt, /* @__PURE__ */ h((i) => {
424
424
  if (W.log("rowManager.#measureAndCacheHeight"), t(this, I) !== null && t(this, I) > 0)
425
425
  return t(this, I);
426
426
  W.log("#measureAndCacheHeight");
427
- const e = t(this, z).get(".ng-container-body");
427
+ const e = t(this, D).get(".ng-container-body");
428
428
  if (!e || e.length === 0) return 24;
429
- const s = r.querySelector("tbody.bindable-tbody");
429
+ const s = i.querySelector("tbody.bindable-tbody");
430
430
  if (!s) return 24;
431
431
  s.querySelectorAll("tr:not(.nodata)").forEach((g) => g.remove());
432
- const i = s.querySelector("tr.nodata"), n = document.createDocumentFragment();
432
+ const r = s.querySelector("tr.nodata"), n = document.createDocumentFragment();
433
433
  e.forEach((g) => {
434
434
  n.appendChild(g.cloneNode(!0));
435
- }), i ? i.before(n) : s.appendChild(n);
435
+ }), r ? r.before(n) : s.appendChild(n);
436
436
  const o = t(this, S), a = o.style.display, c = o.style.visibility, l = o.style.position;
437
437
  (a === "none" || window.getComputedStyle(o).display === "none") && (o.style.display = "block", o.style.visibility = "hidden", o.style.position = "absolute");
438
438
  let f = 0;
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, p(this, I, f > 0 ? f : 24), t(this, Et).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, At).call(this), t(this, I);
443
443
  }, "#measureAndCacheHeight"));
444
444
  d(this, St, /* @__PURE__ */ h(() => {
445
445
  W.log("rowManager.#updateVirtualScrollHeight");
446
- const e = (t(this, D).data.get() || []).length, s = t(this, I), i = e * s;
446
+ const e = (t(this, P).data.get() || []).length, s = t(this, I), r = e * s;
447
447
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((n) => {
448
448
  const o = t(this, S).querySelector(n);
449
449
  if (!o) return;
450
450
  const a = o.querySelector(".ng-part-body .ng-virtual-spacer");
451
- a && (a.style.height = `${i}px`);
451
+ a && (a.style.height = `${r}px`);
452
452
  });
453
453
  }, "#updateVirtualScrollHeight"));
454
- d(this, Et, /* @__PURE__ */ h(() => {
454
+ d(this, At, /* @__PURE__ */ h(() => {
455
455
  if (t(this, tt) > 0 && t(this, I) > 0) {
456
- const r = Math.ceil(t(this, tt) / t(this, I));
457
- p(this, wt, r + t(this, Wt));
456
+ const i = Math.ceil(t(this, tt) / t(this, I));
457
+ p(this, wt, i + t(this, Wt));
458
458
  }
459
459
  }, "#updateRowCount"));
460
- d(this, Pt, /* @__PURE__ */ h(() => {
460
+ d(this, zt, /* @__PURE__ */ h(() => {
461
461
  var a, c, l, f, u, g;
462
- const r = 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");
462
+ 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");
463
463
  if (e) {
464
- const b = r ? Array.from(r.querySelectorAll("tbody tr")) : [], m = Array.from(e.querySelectorAll("tbody tr")), v = s ? Array.from(s.querySelectorAll("tbody tr")) : [], E = Math.max(b.length, m.length, v.length);
465
- for (let x = 0; x < E; x++) {
464
+ const b = i ? Array.from(i.querySelectorAll("tbody tr")) : [], m = Array.from(e.querySelectorAll("tbody tr")), x = s ? Array.from(s.querySelectorAll("tbody tr")) : [], A = Math.max(b.length, m.length, x.length);
465
+ for (let v = 0; v < A; v++) {
466
466
  const M = [
467
- ((a = b[x]) == null ? void 0 : a.getBoundingClientRect().height) || 0,
468
- ((c = m[x]) == null ? void 0 : c.getBoundingClientRect().height) || 0,
469
- ((l = v[x]) == null ? void 0 : l.getBoundingClientRect().height) || 0
467
+ ((a = b[v]) == null ? void 0 : a.getBoundingClientRect().height) || 0,
468
+ ((c = m[v]) == null ? void 0 : c.getBoundingClientRect().height) || 0,
469
+ ((l = x[v]) == null ? void 0 : l.getBoundingClientRect().height) || 0
470
470
  ], T = Math.max(...M);
471
- T > 0 && (b[x] && (b[x].style.height = `${T}px`), m[x] && (m[x].style.height = `${T}px`), v[x] && (v[x].style.height = `${T}px`));
471
+ T > 0 && (b[v] && (b[v].style.height = `${T}px`), m[v] && (m[v].style.height = `${T}px`), x[v] && (x[v].style.height = `${T}px`));
472
472
  }
473
473
  }
474
- const i = 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");
474
+ 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");
475
475
  if (n) {
476
- const b = i ? Array.from(i.querySelectorAll("tfoot tr")) : [], m = Array.from(n.querySelectorAll("tfoot tr")), v = o ? Array.from(o.querySelectorAll("tfoot tr")) : [], E = Math.max(b.length, m.length, v.length);
477
- for (let x = 0; x < E; x++) {
476
+ const b = r ? Array.from(r.querySelectorAll("tfoot tr")) : [], m = Array.from(n.querySelectorAll("tfoot tr")), x = o ? Array.from(o.querySelectorAll("tfoot tr")) : [], A = Math.max(b.length, m.length, x.length);
477
+ for (let v = 0; v < A; v++) {
478
478
  const M = [
479
- ((f = b[x]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
480
- ((u = m[x]) == null ? void 0 : u.getBoundingClientRect().height) || 0,
481
- ((g = v[x]) == null ? void 0 : g.getBoundingClientRect().height) || 0
479
+ ((f = b[v]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
480
+ ((u = m[v]) == null ? void 0 : u.getBoundingClientRect().height) || 0,
481
+ ((g = x[v]) == null ? void 0 : g.getBoundingClientRect().height) || 0
482
482
  ], T = Math.max(...M);
483
- T > 0 && (b[x] && (b[x].style.height = `${T}px`), m[x] && (m[x].style.height = `${T}px`), v[x] && (v[x].style.height = `${T}px`));
483
+ T > 0 && (b[v] && (b[v].style.height = `${T}px`), m[v] && (m[v].style.height = `${T}px`), x[v] && (x[v].style.height = `${T}px`));
484
484
  }
485
485
  }
486
486
  }, "#syncRowHeights"));
487
- d(this, zt, /* @__PURE__ */ h(() => {
488
- !t(this, S) || !(t(this, S) instanceof HTMLElement) || (p(this, V, new ResizeObserver((r) => {
489
- for (const e of r) {
487
+ d(this, Dt, /* @__PURE__ */ h(() => {
488
+ !t(this, S) || !(t(this, S) instanceof HTMLElement) || (p(this, V, new ResizeObserver((i) => {
489
+ for (const e of i) {
490
490
  const s = e.target;
491
491
  if (!s.classList.contains("active")) continue;
492
- const i = e.contentRect.height;
493
- if (i > 0) {
492
+ const r = e.contentRect.height;
493
+ if (r > 0) {
494
494
  let n = 0;
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
- const c = Math.max(i - n, 100);
498
- t(this, tt) !== c && (p(this, tt, c), t(this, Et).call(this), t(this, I) !== null && (t(this, At).call(this), this.refresh()));
497
+ const c = Math.max(r - n, 100);
498
+ t(this, tt) !== c && (p(this, tt, c), t(this, At).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)));
502
502
  }, "#initResizeObserver"));
503
- d(this, At, /* @__PURE__ */ h(() => {
504
- W.log("rowManager.#renderAllContainers"), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((r) => {
505
- const e = t(this, S).querySelector(r);
506
- e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Ot).call(this, e, r);
507
- }), t(this, Dt).call(this), t(this, Pt).call(this);
503
+ d(this, Et, /* @__PURE__ */ h(() => {
504
+ W.log("rowManager.#renderAllContainers"), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
505
+ const e = t(this, S).querySelector(i);
506
+ e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Ot).call(this, e, i);
507
+ }), t(this, Pt).call(this), t(this, zt).call(this);
508
508
  }, "#renderAllContainers"));
509
- d(this, Ae, /* @__PURE__ */ h((r) => {
509
+ d(this, Ee, /* @__PURE__ */ h((i) => {
510
510
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((e) => {
511
511
  var l;
512
512
  const s = t(this, S).querySelector(e);
513
513
  if (!s) return;
514
- const i = s.querySelector(".ng-part-body tbody.bindable-tbody");
515
- if (!i) return;
516
- const n = Array.from(i.querySelectorAll("tr:not(.nodata)")), o = ((l = t(this, z).get(e)) == null ? void 0 : l.length) || 1, c = (t(this, D).data.get() || []).length;
514
+ const r = s.querySelector(".ng-part-body tbody.bindable-tbody");
515
+ if (!r) return;
516
+ const n = Array.from(r.querySelectorAll("tr:not(.nodata)")), o = ((l = t(this, D).get(e)) == null ? void 0 : l.length) || 1, c = (t(this, P).data.get() || []).length;
517
517
  n.forEach((f, u) => {
518
- const g = r + Math.floor(u / o);
518
+ const g = i + Math.floor(u / o);
519
519
  if (g >= c) {
520
520
  f.style.display = "none";
521
521
  return;
522
522
  }
523
- const b = t(this, D).data.get(g);
523
+ const b = t(this, P).data.get(g);
524
524
  f.style.display = "", t(this, Rt).call(this, f, b, g);
525
525
  });
526
526
  });
527
527
  }, "#adjustBufferRows"));
528
- d(this, lt, /* @__PURE__ */ h((r) => {
528
+ d(this, lt, /* @__PURE__ */ h((i) => {
529
529
  var f, u;
530
530
  const e = t(this, I);
531
531
  if (!e || e <= 0) return;
532
- const s = t(this, D).data.length;
532
+ const s = t(this, P).data.length;
533
533
  if (s === 0) return;
534
- const i = ((f = t(this, z).get(".ng-container-body")) == null ? void 0 : f.length) || 1, n = Math.max(0, s - 1), o = Math.min(n, Math.max(0, Math.floor(r / e))), a = Math.floor(o * e), c = t(this, Q).firstTr, l = c && c.dataset.row !== void 0 ? parseInt(c.dataset.row, 10) : -1;
534
+ const r = ((f = t(this, D).get(".ng-container-body")) == null ? void 0 : f.length) || 1, n = Math.max(0, s - 1), o = Math.min(n, Math.max(0, Math.floor(i / e))), a = Math.floor(o * e), c = t(this, Q).firstTr, l = c && c.dataset.row !== void 0 ? parseInt(c.dataset.row, 10) : -1;
535
535
  (u = t(this, Q)) == null || u.scrollTables.forEach((g) => {
536
536
  g.style.transform = `translate3d(0, ${a}px, 0)`;
537
537
  }), l !== o && [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((g) => {
@@ -539,14 +539,14 @@ const Ie = class Ie {
539
539
  if (!b) return;
540
540
  const m = b.querySelector(".ng-part-body tbody.bindable-tbody");
541
541
  if (!m) return;
542
- Array.from(m.querySelectorAll("tr:not(.nodata)")).forEach((E, x) => {
543
- const M = o + Math.floor(x / i);
542
+ Array.from(m.querySelectorAll("tr:not(.nodata)")).forEach((A, v) => {
543
+ const M = o + Math.floor(v / r);
544
544
  if (M >= s) {
545
- E.style.display = "none";
545
+ A.style.display = "none";
546
546
  return;
547
547
  }
548
- const T = t(this, D).data.get(M);
549
- E.style.display = "", t(this, Rt).call(this, E, T, M);
548
+ const T = t(this, P).data.get(M);
549
+ A.style.display = "", t(this, Rt).call(this, A, T, M);
550
550
  });
551
551
  });
552
552
  }, "#handleScroll"));
@@ -564,63 +564,63 @@ const Ie = class Ie {
564
564
  cell.dataset.row = dataIndex;
565
565
  });
566
566
  }; */
567
- d(this, Rt, /* @__PURE__ */ h((r, e, s) => {
568
- r.dataset.row = s, r.data = e, Array.from(r.cells).forEach((i, n) => {
569
- i.dataset.row = s;
570
- const o = Array.from(i.children).find((a) => a.tagName.toLowerCase().startsWith("cell-") || typeof a.refresh == "function");
567
+ d(this, Rt, /* @__PURE__ */ h((i, e, s) => {
568
+ i.dataset.row = s, i.data = e, Array.from(i.cells).forEach((r, n) => {
569
+ r.dataset.row = s;
570
+ const o = Array.from(r.children).find((a) => a.tagName.toLowerCase().startsWith("cell-") || typeof a.refresh == "function");
571
571
  o && typeof o.refresh == "function" && o.refresh();
572
572
  });
573
573
  }, "#bindRowData"));
574
- d(this, Dt, /* @__PURE__ */ h(() => {
574
+ d(this, Pt, /* @__PURE__ */ h(() => {
575
575
  var c, l, f;
576
576
  W.log("rowManager.#syncHeaderHeights");
577
- const r = 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");
577
+ 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");
578
578
  if (!e) return;
579
- const i = r ? Array.from(r.querySelectorAll("tr")) : [], n = Array.from(e.querySelectorAll("tr")), o = s ? Array.from(s.querySelectorAll("tr")) : [], a = Math.max(i.length, n.length, o.length);
579
+ 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);
580
580
  for (let u = 0; u < a; u++) {
581
581
  const g = [
582
- ((c = i[u]) == null ? void 0 : c.getBoundingClientRect().height) || 0,
582
+ ((c = r[u]) == null ? void 0 : c.getBoundingClientRect().height) || 0,
583
583
  ((l = n[u]) == null ? void 0 : l.getBoundingClientRect().height) || 0,
584
584
  ((f = o[u]) == null ? void 0 : f.getBoundingClientRect().height) || 0
585
585
  ], b = Math.max(...g);
586
- b > 0 && (i[u] && (i[u].style.height = `${b}px`), n[u] && (n[u].style.height = `${b}px`), o[u] && (o[u].style.height = `${b}px`));
586
+ b > 0 && (r[u] && (r[u].style.height = `${b}px`), n[u] && (n[u].style.height = `${b}px`), o[u] && (o[u].style.height = `${b}px`));
587
587
  }
588
588
  }, "#syncHeaderHeights"));
589
- A(this, "destroy", /* @__PURE__ */ h(() => {
589
+ E(this, "destroy", /* @__PURE__ */ h(() => {
590
590
  t(this, V) && (t(this, V).disconnect(), p(this, V, null));
591
591
  }, "destroy"));
592
- p(this, D, r.getRootNode().host), p(this, S, r), t(this, zt).call(this);
592
+ p(this, P, i.getRootNode().host), p(this, S, i), t(this, Dt).call(this);
593
593
  }
594
594
  getRowHeight() {
595
595
  return t(this, I);
596
596
  }
597
- templateLength(r = ".ng-container-body") {
597
+ templateLength(i = ".ng-container-body") {
598
598
  var e;
599
- return ((e = t(this, z).get(r)) == null ? void 0 : e.length) || 1;
599
+ return ((e = t(this, D).get(i)) == null ? void 0 : e.length) || 1;
600
600
  }
601
601
  };
602
- D = new WeakMap(), S = new WeakMap(), Q = new WeakMap(), z = new WeakMap(), I = new WeakMap(), V = new WeakMap(), tt = new WeakMap(), wt = new WeakMap(), Se = new WeakMap(), Ee = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), Pt = new WeakMap(), zt = new WeakMap(), At = new WeakMap(), Ae = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Dt = new WeakMap(), h(Ie, "RowManager");
602
+ P = new WeakMap(), S = new WeakMap(), Q = new WeakMap(), D = new WeakMap(), I = new WeakMap(), V = new WeakMap(), tt = new WeakMap(), wt = new WeakMap(), Se = new WeakMap(), Ae = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), St = new WeakMap(), At = new WeakMap(), zt = new WeakMap(), Dt = new WeakMap(), Et = new WeakMap(), Ee = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Pt = new WeakMap(), h(Ie, "RowManager");
603
603
  let ce = Ie;
604
604
  const jt = class jt {
605
605
  /**
606
606
  * 🎯 λ ˆμ΄μ•„μ›ƒ λ‚΄μ˜ μ—¬λŸ¬ rawTables 배열을 μΌκ΄„λ‘œ λ°›μ•„ 단일 λ§ˆμŠ€ν„° ν…œν”Œλ¦ΏμœΌλ‘œ 사전 μ»΄νŒŒμΌν•©λ‹ˆλ‹€.
607
607
  */
608
- static compileAll(r) {
609
- return Array.isArray(r) ? r.map((e) => jt.compile(e)) : [];
608
+ static compileAll(i) {
609
+ return Array.isArray(i) ? i.map((e) => jt.compile(e)) : [];
610
610
  }
611
611
  /**
612
612
  * 🎯 단일 원본 ν…Œμ΄λΈ”μ„ λ°›μ•„ κΈ°λ³Έ ꡬ쑰 보정 및 2차원 격자 인덱슀 사전 λΆ€μ—¬ μ™„λ£Œλœ λ§ˆμŠ€ν„° ν…Œμ΄λΈ” λ°˜ν™˜
613
613
  */
614
- static compile(r) {
615
- if (!r) return null;
614
+ static compile(i) {
615
+ if (!i) return null;
616
616
  const e = /* @__PURE__ */ h((a) => {
617
617
  a.querySelectorAll("tbody td, tbody th, tfoot td, tfoot th").forEach((l) => {
618
618
  const f = l.getAttribute("cell-type") || "renderer";
619
619
  if (l.children.length > 0 && l.firstElementChild.tagName.includes("-")) return;
620
620
  let u = `cell-${f}`;
621
- const g = l.getAttribute("data-bind"), b = l.getAttribute("data-expr"), m = l.getAttribute("maxbyte"), v = l.getAttribute("type");
622
- let E = [];
623
- g && E.push(`data-bind="${g}"`), b && E.push(`data-expr="${b}"`), m && E.push(`maxbyte="${m}"`), v && E.push(`type="${v}"`), l.innerHTML = `<${u} ${E.join(" ")}></${u}>`;
621
+ const g = l.getAttribute("data-bind"), b = l.getAttribute("data-expr"), m = l.getAttribute("maxbyte"), x = l.getAttribute("type");
622
+ let A = [];
623
+ g && A.push(`data-bind="${g}"`), b && A.push(`data-expr="${b}"`), m && A.push(`maxbyte="${m}"`), x && A.push(`type="${x}"`), l.innerHTML = `<${u} ${A.join(" ")}></${u}>`;
624
624
  });
625
625
  }, "processCellTypes"), s = /* @__PURE__ */ h((a) => {
626
626
  if (!a.querySelector("colgroup")) {
@@ -636,7 +636,7 @@ const jt = class jt {
636
636
  l ? l.after(c) : a.prepend(c);
637
637
  }
638
638
  a.classList.add("nine-table-element"), a.style.display = "table";
639
- }, "ensureTableStructure"), i = /* @__PURE__ */ h((a, c) => {
639
+ }, "ensureTableStructure"), r = /* @__PURE__ */ h((a, c) => {
640
640
  const l = Array.from(a.querySelectorAll(c + " tr")), f = Array.from(a.querySelectorAll(c + " th," + c + " td")), u = l.length;
641
641
  if (u === 0 || f.length === 0) return;
642
642
  let g = 0;
@@ -645,31 +645,31 @@ const jt = class jt {
645
645
  });
646
646
  const b = Array.from(Array(u), () => Array(g).fill(null));
647
647
  l.forEach((m) => {
648
- const v = m.sectionRowIndex;
649
- let E = 0;
650
- Array.from(m.querySelectorAll("th,td")).forEach((x) => {
651
- for (let B = 0; B < b[v].length; B++)
652
- if (b[v][B] === null) {
653
- E = B;
648
+ const x = m.sectionRowIndex;
649
+ let A = 0;
650
+ Array.from(m.querySelectorAll("th,td")).forEach((v) => {
651
+ for (let B = 0; B < b[x].length; B++)
652
+ if (b[x][B] === null) {
653
+ A = B;
654
654
  break;
655
655
  }
656
- const M = x.rowSpan || 1, T = x.colSpan || 1;
656
+ const M = v.rowSpan || 1, T = v.colSpan || 1;
657
657
  for (let B = 0; B < M; B++)
658
658
  for (let pt = 0; pt < T; pt++)
659
- v + B < u && E + pt < g && (b[v + B][E + pt] = B === 0 && pt === 0 ? "1" : "0");
659
+ x + B < u && A + pt < g && (b[x + B][A + pt] = B === 0 && pt === 0 ? "1" : "0");
660
660
  });
661
661
  }), l.forEach((m) => {
662
- const v = m.sectionRowIndex;
663
- Array.from(m.querySelectorAll("th,td")).forEach((E) => {
664
- for (let x = 0; x < b[v].length; x++)
665
- if (b[v][x] === "1") {
666
- E.dataset.col = x, b[v][x] = "0";
662
+ const x = m.sectionRowIndex;
663
+ Array.from(m.querySelectorAll("th,td")).forEach((A) => {
664
+ for (let v = 0; v < b[x].length; v++)
665
+ if (b[x][v] === "1") {
666
+ A.dataset.col = v, b[x][v] = "0";
667
667
  break;
668
668
  }
669
669
  });
670
670
  });
671
- }, "resetColIndex"), n = r.cloneNode(!0);
672
- return s(n), e(n), i(n, "thead"), i(n, "tbody"), i(n, "tfoot"), Array.from(n.querySelectorAll("colgroup col")).forEach((a, c) => {
671
+ }, "resetColIndex"), n = i.cloneNode(!0);
672
+ return s(n), e(n), r(n, "thead"), r(n, "tbody"), r(n, "tfoot"), Array.from(n.querySelectorAll("colgroup col")).forEach((a, c) => {
673
673
  const l = a.getAttribute("fixed");
674
674
  l && n.querySelectorAll(`thead [data-col="${c}"], tbody [data-col="${c}"], tfoot [data-col="${c}"]`).forEach((f) => {
675
675
  f.setAttribute("fixed", l);
@@ -687,7 +687,7 @@ const yt = class yt extends HTMLElement {
687
687
  d(this, Ft);
688
688
  d(this, et, null);
689
689
  d(this, st);
690
- A(this, "invalidate", /* @__PURE__ */ h(() => {
690
+ E(this, "invalidate", /* @__PURE__ */ h(() => {
691
691
  t(this, st).refresh();
692
692
  }, "invalidate"));
693
693
  d(this, Vt, /* @__PURE__ */ h(() => {
@@ -695,45 +695,37 @@ const yt = class yt extends HTMLElement {
695
695
  { selector: ".ng-container-body", type: null },
696
696
  { selector: ".ng-container-left", type: "left" },
697
697
  { selector: ".ng-container-right", type: "right" }
698
- ].forEach(({ selector: s, type: i }) => {
698
+ ].forEach(({ selector: s, type: r }) => {
699
+ var o, a, c;
699
700
  const n = this.querySelector(s);
700
- if (!n) return;
701
- n.querySelector(".ng-part-header").appendChild(t(this, ct).call(this, t(this, et), i, "header"));
702
- const a = document.createElement("div");
703
- a.className = "ng-part-body";
704
- const c = document.createElement("div");
705
- c.className = "ng-scroll-content", c.style.position = "relative", c.style.width = "100%", c.appendChild(t(this, ct).call(this, t(this, et), i, "body"));
706
- const l = document.createElement("div");
707
- l.className = "ng-virtual-spacer", l.style.width = "100%", l.style.pointerEvents = "none", c.appendChild(l), a.appendChild(c);
708
- const f = document.createElement("div");
709
- f.className = "ng-part-footer", f.appendChild(t(this, ct).call(this, t(this, et), i, "footer")), n.appendChild(a), n.appendChild(f);
701
+ (o = n == null ? void 0 : n.querySelector(".ng-part-header")) == null || o.appendChild(t(this, ct).call(this, t(this, et), r, "header")), (a = n == null ? void 0 : n.querySelector(".ng-scroll-content")) == null || a.insertBefore(t(this, ct).call(this, t(this, et), r, "body")), (c = n == null ? void 0 : n.querySelector(".ng-part-footer")) == null || c.appendChild(t(this, ct).call(this, t(this, et), r, "footer"));
710
702
  });
711
703
  }, "#renderSplitContainers"));
712
704
  d(this, Yt, /* @__PURE__ */ h(() => {
713
705
  ["left", "right", "body"].forEach((e) => {
714
- const s = this.querySelector(`.ng-container-${e}`), i = s == null ? void 0 : s.querySelectorAll("table");
715
- if (!s || !i || i.length === 0) return;
706
+ const s = this.querySelector(`.ng-container-${e}`), r = s == null ? void 0 : s.querySelectorAll("table");
707
+ if (!s || !r || r.length === 0) return;
716
708
  let n = 0;
717
- i[0].querySelectorAll("col").forEach((o) => {
709
+ r[0].querySelectorAll("col").forEach((o) => {
718
710
  const a = parseInt(o.getAttribute("width"), 10);
719
711
  isNaN(n) || (n += a);
720
712
  }), e === "body" ? s.style.flex = "1" : (s.style.flex = `0 0 ${n}px`, s.style.width = `${n}px`);
721
713
  });
722
714
  }, "#updateContainerWidths"));
723
- A(this, "generate", /* @__PURE__ */ h((e) => {
715
+ E(this, "generate", /* @__PURE__ */ h((e) => {
724
716
  e && (p(this, et, he.compile(e)), t(this, Vt).call(this), t(this, Yt).call(this), t(this, st).initialize(), setTimeout(() => {
725
717
  var s;
726
718
  (s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
727
719
  }, 0));
728
720
  }, "generate"));
729
- d(this, ct, /* @__PURE__ */ h((e, s, i) => {
721
+ d(this, ct, /* @__PURE__ */ h((e, s, r) => {
730
722
  const n = e.cloneNode(!0), o = n.querySelector("thead"), a = n.querySelector("tbody"), c = n.querySelector("tfoot");
731
- if (i === "header") {
723
+ if (r === "header") {
732
724
  if (a && a.remove(), c && c.remove(), e.querySelector("tbody")) {
733
725
  const f = document.createElement("tbody");
734
726
  f.className = "fixed-tbody", n.appendChild(f);
735
727
  }
736
- } else i === "body" ? (o && o.remove(), c && c.remove(), a && (a.className = "bindable-tbody")) : i === "footer" && (o && o.remove(), a && a.remove());
728
+ } else r === "body" ? (o && o.remove(), c && c.remove(), a && (a.className = "bindable-tbody")) : r === "footer" && (o && o.remove(), a && a.remove());
737
729
  return s === "left" ? n.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach((l) => {
738
730
  l.getAttribute("fixed") !== "left" && l.remove();
739
731
  }) : s === "right" ? n.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach((l) => {
@@ -742,12 +734,12 @@ const yt = class yt extends HTMLElement {
742
734
  l.remove();
743
735
  }), n;
744
736
  }, "#createSplitTable"));
745
- A(this, "getRowHeight", /* @__PURE__ */ h(() => t(this, st).getRowHeight(), "getRowHeight"));
746
- A(this, "scrollToX", /* @__PURE__ */ h((e) => {
737
+ E(this, "getRowHeight", /* @__PURE__ */ h(() => t(this, st).getRowHeight(), "getRowHeight"));
738
+ E(this, "scrollToX", /* @__PURE__ */ h((e) => {
747
739
  const s = this.querySelector(".ng-container-body .ng-part-body");
748
740
  s && (s.scrollLeft = e);
749
741
  }, "scrollToX"));
750
- A(this, "scrollToY", /* @__PURE__ */ h((e) => {
742
+ E(this, "scrollToY", /* @__PURE__ */ h((e) => {
751
743
  const s = this.querySelector(".ng-container-body .ng-part-body");
752
744
  s && (s.scrollTop = e);
753
745
  }, "scrollToY"));
@@ -890,20 +882,45 @@ const yt = class yt extends HTMLElement {
890
882
  nine-splitter {
891
883
  display: none;
892
884
  }
885
+
886
+ .ng-scroll-content {
887
+ position: relative;
888
+ width: 100%;
889
+ }
890
+
891
+ .ng-virtual-spacer {
892
+ width: 100%;
893
+ pointer-events: none;
894
+ }
893
895
  </style>
894
896
 
895
897
  <div class='ng-container-top'>
896
898
  <div class='ng-container-left'>
897
- <div class="ng-part-header">
899
+ <div class="ng-part-header"></div>
900
+ <div class="ng-part-body">
901
+ <div class="ng-scroll-content">
902
+ <div class="ng-virtual-spacer"></div>
903
+ </div>
898
904
  </div>
905
+ <div class="ng-part-footer"></div>
899
906
  </div>
900
907
  <div class='ng-container-body'>
901
- <div class="ng-part-header">
908
+ <div class="ng-part-header"></div>
909
+ <div class="ng-part-body">
910
+ <div class="ng-scroll-content">
911
+ <div class="ng-virtual-spacer"></div>
912
+ </div>
902
913
  </div>
914
+ <div class="ng-part-footer"></div>
903
915
  </div>
904
916
  <div class='ng-container-right'>
905
- <div class="ng-part-header">
917
+ <div class="ng-part-header"></div>
918
+ <div class="ng-part-body">
919
+ <div class="ng-scroll-content">
920
+ <div class="ng-virtual-spacer"></div>
921
+ </div>
906
922
  </div>
923
+ <div class="ng-part-footer"></div>
907
924
  </div>
908
925
  <nine-table-vscrollbar></nine-table-vscrollbar>
909
926
  </div>
@@ -922,7 +939,7 @@ const yt = class yt extends HTMLElement {
922
939
  this.innerHTML = "", W.log("NineTableSheet destroyed.");
923
940
  }
924
941
  };
925
- Ft = new WeakMap(), et = new WeakMap(), st = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), ct = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), h(yt, "NineTableSheet"), A(yt, "SCROLLBAR_SIZE", 16);
942
+ Ft = new WeakMap(), et = new WeakMap(), st = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), ct = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), h(yt, "NineTableSheet"), E(yt, "SCROLLBAR_SIZE", 16);
926
943
  let $t = yt;
927
944
  customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", $t);
928
945
  var Kt, qt;
@@ -933,18 +950,18 @@ const _e = class _e extends HTMLElement {
933
950
  var e;
934
951
  (e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
935
952
  var o;
936
- const i = s.ctrlKey || s.metaKey || s.shiftKey, n = parseInt((o = s.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
937
- t(this, qt).call(this, n, i);
953
+ const r = s.ctrlKey || s.metaKey || s.shiftKey, n = parseInt((o = s.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
954
+ t(this, qt).call(this, n, r);
938
955
  }), t(this, qt).call(this, 0, !1);
939
956
  }, "#init"));
940
957
  d(this, qt, /* @__PURE__ */ h((e, s = !1) => {
941
- const i = /* @__PURE__ */ h(() => {
958
+ const r = /* @__PURE__ */ h(() => {
942
959
  const f = Array.from(this.querySelectorAll("nine-table-sheet"));
943
960
  Array.from(this.querySelectorAll("nine-splitter")).forEach((b) => b.style.setProperty("display", "none"));
944
961
  const g = f.filter((b) => b.classList.contains("active"));
945
962
  g.length < 2 || g.forEach((b) => {
946
- const m = parseInt(b.getAttribute("data-index"), 10), v = this.querySelector(`nine-splitter[data-split-index="${m}"]`), E = f[m + 1];
947
- v && E && E.classList.contains("active") && v.style.setProperty("display", "flex");
963
+ const m = parseInt(b.getAttribute("data-index"), 10), x = this.querySelector(`nine-splitter[data-split-index="${m}"]`), A = f[m + 1];
964
+ x && A && A.classList.contains("active") && x.style.setProperty("display", "flex");
948
965
  });
949
966
  }, "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");
950
967
  if (!a[e]) return;
@@ -966,7 +983,7 @@ const _e = class _e extends HTMLElement {
966
983
  const l = o.querySelectorAll("nine-table-sheet.active");
967
984
  l == null || l.forEach((f) => {
968
985
  f.style.flex = l.length > 1 ? "1 1 0%" : "1 1 100%";
969
- }), i();
986
+ }), r();
970
987
  }, "#switchSheet"));
971
988
  }
972
989
  connectedCallback() {
@@ -978,24 +995,24 @@ let de = _e;
978
995
  customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", de);
979
996
  var H, Zt, Tt, Gt;
980
997
  const Ne = class Ne {
981
- constructor(r) {
998
+ constructor(i) {
982
999
  d(this, H);
983
1000
  d(this, Zt, /* @__PURE__ */ h(() => {
984
- t(this, Gt).call(this), new ResizeObserver((r) => {
985
- for (let e of r)
1001
+ t(this, Gt).call(this), new ResizeObserver((i) => {
1002
+ for (let e of i)
986
1003
  t(this, H).getAttribute("auto-height") === "true" && t(this, Tt).call(this);
987
1004
  }).observe(t(this, H));
988
1005
  }, "#init"));
989
1006
  d(this, Tt, /* @__PURE__ */ h(() => {
990
1007
  var c, l;
991
- const r = Array.from(t(this, H).shadowRoot.querySelectorAll("nine-table-sheet.active"));
992
- if (r.length === 0) return;
993
- const e = parseInt(t(this, H).getAttribute("max-display-row"), 10) || 10, s = Math.max(...r.map((f) => f.getRowHeight())), i = (c = t(this, H).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, H).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = $t.SCROLLBAR_SIZE, a = e * s + i + n + o;
1008
+ const i = Array.from(t(this, H).shadowRoot.querySelectorAll("nine-table-sheet.active"));
1009
+ if (i.length === 0) return;
1010
+ const e = parseInt(t(this, H).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), r = (c = t(this, H).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, H).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = $t.SCROLLBAR_SIZE, a = e * s + r + n + o;
994
1011
  t(this, H).style.height = `${a}px`;
995
1012
  }, "#applyAutoHeight"));
996
1013
  d(this, Gt, /* @__PURE__ */ h(() => {
997
- const e = Array.from(t(this, H).children).filter((c) => c.tagName === "TABLE"), s = t(this, H).getAttribute("auto-height") === "true", i = e.length, n = e.map((c, l) => {
998
- const u = `<nine-table-sheet class="${l === 0 ? "active" : ""}" data-index="${l}"></nine-table-sheet>`, g = l < i - 1 ? `<nine-splitter class="h" data-split-index="${l}"></nine-splitter>` : "";
1014
+ const e = Array.from(t(this, H).children).filter((c) => c.tagName === "TABLE"), s = t(this, H).getAttribute("auto-height") === "true", r = e.length, n = e.map((c, l) => {
1015
+ const u = `<nine-table-sheet class="${l === 0 ? "active" : ""}" data-index="${l}"></nine-table-sheet>`, g = l < r - 1 ? `<nine-splitter class="h" data-split-index="${l}"></nine-splitter>` : "";
999
1016
  return u + g;
1000
1017
  }).join(""), o = e.map((c, l) => `<div class="nine-tab-item ${l === 0 ? "active" : ""}" data-index="${l}">Sheet ${l + 1}</div>`).join("");
1001
1018
  t(this, H).shadowRoot.innerHTML = `
@@ -1113,32 +1130,32 @@ const Ne = class Ne {
1113
1130
  });
1114
1131
  });
1115
1132
  }, "#render"));
1116
- p(this, H, r), t(this, Zt).call(this);
1133
+ p(this, H, i), t(this, Zt).call(this);
1117
1134
  }
1118
1135
  };
1119
1136
  H = new WeakMap(), Zt = new WeakMap(), Tt = new WeakMap(), Gt = new WeakMap(), h(Ne, "LayoutManager");
1120
1137
  let fe = Ne;
1121
1138
  var kt, ht;
1122
1139
  const We = class We {
1123
- constructor(r) {
1140
+ constructor(i) {
1124
1141
  d(this, kt);
1125
1142
  d(this, ht, -1);
1126
- A(this, "count", /* @__PURE__ */ h(() => t(this, kt).rawRecords.length, "count"));
1127
- p(this, kt, r);
1143
+ E(this, "count", /* @__PURE__ */ h(() => t(this, kt).rawRecords.length, "count"));
1144
+ p(this, kt, i);
1128
1145
  }
1129
1146
  get at() {
1130
1147
  return t(this, ht);
1131
1148
  }
1132
- set at(r) {
1133
- p(this, ht, parseInt(r, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, ht)}"]`) && setTimeout(() => {
1149
+ set at(i) {
1150
+ p(this, ht, parseInt(i, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, ht)}"]`) && setTimeout(() => {
1134
1151
  });
1135
1152
  }
1136
1153
  };
1137
1154
  kt = new WeakMap(), ht = new WeakMap(), h(We, "ngRow");
1138
1155
  let ue = We;
1139
- var _, k, N, dt, Jt, Y, Qt, rt, Ct, te, ee, ft;
1156
+ var _, k, N, dt, Jt, Y, Qt, it, Ct, te, ee, ft;
1140
1157
  const O = class O {
1141
- constructor(r, e) {
1158
+ constructor(i, e) {
1142
1159
  d(this, _);
1143
1160
  d(this, k);
1144
1161
  d(this, N, []);
@@ -1147,34 +1164,34 @@ const O = class O {
1147
1164
  d(this, Y, []);
1148
1165
  d(this, Qt, /* @__PURE__ */ h(() => {
1149
1166
  p(this, Y, []);
1150
- const r = t(this, _).template || [];
1151
- Array.from(r).forEach((e) => {
1167
+ const i = t(this, _).template || [];
1168
+ Array.from(i).forEach((e) => {
1152
1169
  var s;
1153
1170
  t(this, Y).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
1154
1171
  }), (t(this, k).rawRecords || []).forEach((e) => {
1155
1172
  e.__ng || (e.__ng = t(this, Ct).call(this)), e.__ng.height = t(this, Y).slice();
1156
1173
  });
1157
1174
  }, "#initialize"));
1158
- d(this, rt, /* @__PURE__ */ h(() => {
1159
- t(this, _).shadowRoot.querySelectorAll("nine-table-sheet").forEach((r) => {
1160
- r.invalidate();
1175
+ d(this, it, /* @__PURE__ */ h(() => {
1176
+ t(this, _).shadowRoot.querySelectorAll("nine-table-sheet").forEach((i) => {
1177
+ i.invalidate();
1161
1178
  });
1162
1179
  }, "#invalidate"));
1163
- A(this, "get", /* @__PURE__ */ h((r, e) => {
1180
+ E(this, "get", /* @__PURE__ */ h((i, e) => {
1164
1181
  var n;
1165
1182
  const s = this.getValidData();
1166
1183
  if (!s || s.length <= 0) return;
1167
- if (r == null) return t(this, ft).call(this, s);
1168
- if (r < 0 || r >= s.length) return null;
1169
- const i = typeof ((n = t(this, _).fields) == null ? void 0 : n.get) == "function" ? t(this, _).fields.get() : [];
1184
+ if (i == null) return t(this, ft).call(this, s);
1185
+ if (i < 0 || i >= s.length) return null;
1186
+ const r = typeof ((n = t(this, _).fields) == null ? void 0 : n.get) == "function" ? t(this, _).fields.get() : [];
1170
1187
  if (e != null) {
1171
- const o = i.indexOf(e);
1172
- return o >= 0 ? s[r].v[o] : null;
1188
+ const o = r.indexOf(e);
1189
+ return o >= 0 ? s[i].v[o] : null;
1173
1190
  }
1174
- return t(this, ft).call(this, s[r]);
1191
+ return t(this, ft).call(this, s[i]);
1175
1192
  }, "get"));
1176
- A(this, "set", /* @__PURE__ */ h((r) => {
1177
- this.clear(), this.add(r, !1), t(this, rt).call(this);
1193
+ E(this, "set", /* @__PURE__ */ h((i) => {
1194
+ this.clear(), this.add(i, !1), t(this, it).call(this);
1178
1195
  }, "set"));
1179
1196
  d(this, Ct, /* @__PURE__ */ h(() => ({
1180
1197
  rowState: O.ROW_STATE.EMPTY,
@@ -1185,85 +1202,85 @@ const O = class O {
1185
1202
  c: {},
1186
1203
  _: [0, 0, 0, 0, O.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, Y).slice(), -1, {}, {}]
1187
1204
  }), "#getDefaultMeta"));
1188
- A(this, "reset", /* @__PURE__ */ h(() => {
1189
- p(this, N, []), p(this, dt, []), t(this, rt).call(this);
1205
+ E(this, "reset", /* @__PURE__ */ h(() => {
1206
+ p(this, N, []), p(this, dt, []), t(this, it).call(this);
1190
1207
  }, "reset"));
1191
- A(this, "clear", /* @__PURE__ */ h(() => {
1192
- var r;
1193
- t(this, k).rawRecords = [], p(this, N, []), p(this, dt, []), (r = t(this, k).viewRecords) != null && r.reset && t(this, k).viewRecords.reset();
1194
- }, "clear"));
1195
- d(this, te, /* @__PURE__ */ h((r) => {
1208
+ E(this, "clear", /* @__PURE__ */ h(() => {
1196
1209
  var i;
1197
- Array.isArray(r) || (r = [r]);
1198
- const e = typeof ((i = t(this, _).fields) == null ? void 0 : i.get) == "function" ? t(this, _).fields.get() : Object.keys(r[0] || {}), s = [];
1199
- return r.forEach((n) => {
1210
+ t(this, k).rawRecords = [], p(this, N, []), p(this, dt, []), (i = t(this, k).viewRecords) != null && i.reset && t(this, k).viewRecords.reset();
1211
+ }, "clear"));
1212
+ d(this, te, /* @__PURE__ */ h((i) => {
1213
+ var r;
1214
+ Array.isArray(i) || (i = [i]);
1215
+ const e = typeof ((r = t(this, _).fields) == null ? void 0 : r.get) == "function" ? t(this, _).fields.get() : Object.keys(i[0] || {}), s = [];
1216
+ return i.forEach((n) => {
1200
1217
  const o = { v: [] };
1201
1218
  e.forEach((a) => {
1202
1219
  o.v.push(n[a] !== void 0 && n[a] !== null ? n[a] : "");
1203
1220
  }), s.push(o);
1204
1221
  }), s;
1205
1222
  }, "#json2Array"));
1206
- d(this, ee, /* @__PURE__ */ h((r) => (Array.isArray(r) || (r = [r]), r.forEach((e) => {
1223
+ d(this, ee, /* @__PURE__ */ h((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
1207
1224
  e.__ng = t(this, Ct).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = O.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1208
- }), r), "#defaultInsert"));
1209
- A(this, "add", /* @__PURE__ */ h((r, e = !0) => {
1210
- r === void 0 && (r = {});
1211
- const s = t(this, te).call(this, r);
1225
+ }), i), "#defaultInsert"));
1226
+ E(this, "add", /* @__PURE__ */ h((i, e = !0) => {
1227
+ i === void 0 && (i = {});
1228
+ const s = t(this, te).call(this, i);
1212
1229
  t(this, k).rawRecords = t(this, k).rawRecords.concat(t(this, ee).call(this, s)), this.resetRecords();
1213
- const i = this.count() - 1;
1230
+ const r = this.count() - 1;
1214
1231
  return e || s.forEach((n, o) => {
1215
- const a = t(this, k).rawRecords[i - o];
1232
+ const a = t(this, k).rawRecords[r - o];
1216
1233
  a && (a.__ng.rowState = O.ROW_STATE.EMPTY);
1217
- }), t(this, rt).call(this), i;
1234
+ }), t(this, it).call(this), r;
1218
1235
  }, "add"));
1219
- A(this, "delete", /* @__PURE__ */ h((r) => {
1236
+ E(this, "delete", /* @__PURE__ */ h((i) => {
1220
1237
  let e = [];
1221
- Array.isArray(r) ? e = r : typeof r > "u" ? e = [t(this, k).host.row.at] : e = [parseInt(r, 10)], e.sort((s, i) => i - s).forEach((s) => {
1238
+ Array.isArray(i) ? e = i : typeof i > "u" ? e = [t(this, k).host.row.at] : e = [parseInt(i, 10)], e.sort((s, r) => r - s).forEach((s) => {
1222
1239
  if (t(this, N)[s]) {
1223
- const i = t(this, N)[s].__ng.rowid;
1224
- t(this, N)[s].__ng.rowState === O.ROW_STATE.INSERT ? t(this, k).rawRecords = t(this, k).rawRecords.filter((n) => n.__ng.rowid !== i) : t(this, k).rawRecords.forEach((n) => {
1225
- n.__ng.rowid === i && (n.__ng.deleted = !0, n.__ng.rowState = O.ROW_STATE.DELETE);
1240
+ const r = t(this, N)[s].__ng.rowid;
1241
+ t(this, N)[s].__ng.rowState === O.ROW_STATE.INSERT ? t(this, k).rawRecords = t(this, k).rawRecords.filter((n) => n.__ng.rowid !== r) : t(this, k).rawRecords.forEach((n) => {
1242
+ n.__ng.rowid === r && (n.__ng.deleted = !0, n.__ng.rowState = O.ROW_STATE.DELETE);
1226
1243
  });
1227
1244
  }
1228
- }), this.resetRecords(), t(this, rt).call(this);
1245
+ }), this.resetRecords(), t(this, it).call(this);
1229
1246
  }, "delete"));
1230
- A(this, "setValue", /* @__PURE__ */ h((r, e, s) => {
1247
+ E(this, "setValue", /* @__PURE__ */ h((i, e, s) => {
1231
1248
  var c;
1232
- r = parseInt(r, 10);
1249
+ i = parseInt(i, 10);
1233
1250
  const n = (typeof ((c = t(this, _).fields) == null ? void 0 : c.get) == "function" ? t(this, _).fields.get() : []).indexOf(e);
1234
1251
  if (n < 0) return;
1235
- const o = this.getValidData()[r];
1252
+ const o = this.getValidData()[i];
1236
1253
  if (!o) return;
1237
1254
  const a = o.v[n];
1238
1255
  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;
1239
1256
  }, "setValue"));
1240
- A(this, "resetRecords", /* @__PURE__ */ h(() => {
1241
- p(this, dt, 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) => {
1242
- r.__ng.rowidx = e;
1243
- }), t(this, N).forEach((r, e) => {
1244
- r.__ng.i = e;
1257
+ E(this, "resetRecords", /* @__PURE__ */ h(() => {
1258
+ p(this, dt, t(this, k).rawRecords.filter((i) => !i.__ng.deleted)), p(this, N, t(this, k).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), t(this, k).rawRecords.forEach((i, e) => {
1259
+ i.__ng.rowidx = e;
1260
+ }), t(this, N).forEach((i, e) => {
1261
+ i.__ng.i = e;
1245
1262
  });
1246
1263
  }, "resetRecords"));
1247
- A(this, "getValidData", /* @__PURE__ */ h(() => (t(this, N).length === 0 && t(this, k).rawRecords.length > 0 && this.resetRecords(), t(this, N)), "getValidData"));
1248
- d(this, ft, /* @__PURE__ */ h((r) => {
1264
+ E(this, "getValidData", /* @__PURE__ */ h(() => (t(this, N).length === 0 && t(this, k).rawRecords.length > 0 && this.resetRecords(), t(this, N)), "getValidData"));
1265
+ d(this, ft, /* @__PURE__ */ h((i) => {
1249
1266
  var o;
1250
- if (!r) return r;
1251
- const e = !Array.isArray(r), s = e ? [r] : r, i = typeof ((o = t(this, _).fields) == null ? void 0 : o.get) == "function" ? t(this, _).fields.get() : [], n = s.filter((a) => !a.__ng.deleted).map((a) => {
1267
+ if (!i) return i;
1268
+ 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) => {
1252
1269
  const c = {};
1253
- return i.forEach((l, f) => {
1270
+ return r.forEach((l, f) => {
1254
1271
  c[l] = a.v ? a.v[f] : a[l];
1255
1272
  }), c.__ng = a.__ng, c;
1256
1273
  });
1257
1274
  return e ? n[0] : n;
1258
1275
  }, "#conv"));
1259
- A(this, "count", /* @__PURE__ */ h(() => this.getValidData().length, "count"));
1260
- p(this, _, r), p(this, k, e), t(this, Qt).call(this);
1276
+ E(this, "count", /* @__PURE__ */ h(() => this.getValidData().length, "count"));
1277
+ p(this, _, i), p(this, k, e), t(this, Qt).call(this);
1261
1278
  }
1262
1279
  get source() {
1263
1280
  return t(this, ft).call(this, t(this, k).rawRecords);
1264
1281
  }
1265
- set source(r) {
1266
- this.clear(), this.add(r, !1);
1282
+ set source(i) {
1283
+ this.clear(), this.add(i, !1);
1267
1284
  }
1268
1285
  get nextId() {
1269
1286
  return ++Ue(this, Jt)._;
@@ -1278,8 +1295,8 @@ const O = class O {
1278
1295
  return this.length;
1279
1296
  }
1280
1297
  };
1281
- _ = new WeakMap(), k = new WeakMap(), N = new WeakMap(), dt = new WeakMap(), Jt = new WeakMap(), Y = new WeakMap(), Qt = new WeakMap(), rt = new WeakMap(), Ct = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), ft = new WeakMap(), h(O, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1282
- A(O, "ROW_STATE", {
1298
+ _ = new WeakMap(), k = new WeakMap(), N = new WeakMap(), dt = new WeakMap(), Jt = new WeakMap(), Y = new WeakMap(), Qt = new WeakMap(), it = new WeakMap(), Ct = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), ft = new WeakMap(), h(O, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1299
+ E(O, "ROW_STATE", {
1283
1300
  EMPTY: "EMPTY",
1284
1301
  NORMAL: "NORMAL",
1285
1302
  INSERT: "INSERT",
@@ -1287,56 +1304,56 @@ A(O, "ROW_STATE", {
1287
1304
  DELETE: "DELETE"
1288
1305
  });
1289
1306
  let ge = O;
1290
- var it;
1307
+ var rt;
1291
1308
  const Oe = class Oe {
1292
- constructor(r) {
1293
- d(this, it);
1294
- p(this, it, r), 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 = () => {
1309
+ constructor(i) {
1310
+ d(this, rt);
1311
+ p(this, rt, i), 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 = () => {
1295
1312
  var e;
1296
- (e = t(this, it).view) != null && e.redraw && t(this, it).view.redraw();
1313
+ (e = t(this, rt).view) != null && e.redraw && t(this, rt).view.redraw();
1297
1314
  }, this.setDataSource = (e) => {
1298
1315
  this.data && this.data.reset(), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.data.set(e || []);
1299
1316
  }, this.getRowState = (e) => {
1300
- var i, n;
1317
+ var r, n;
1301
1318
  const s = parseInt(e, 10);
1302
1319
  if (!(s >= this.data.count()))
1303
- return (n = (i = this.data.getValidData()[s]) == null ? void 0 : i.__ng) == null ? void 0 : n.rowState;
1320
+ return (n = (r = this.data.getValidData()[s]) == null ? void 0 : r.__ng) == null ? void 0 : n.rowState;
1304
1321
  }, this.getRowPosition = () => this.row.at, this.setRowPosition = (e) => {
1305
1322
  this.row.at = e;
1306
- }, 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, i) => {
1307
- e = parseInt(e, 10), this.data.setValue(e, s, i);
1323
+ }, 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) => {
1324
+ e = parseInt(e, 10), this.data.setValue(e, s, r);
1308
1325
  }, this.setDataSource([]);
1309
1326
  }
1310
1327
  };
1311
- it = new WeakMap(), h(Oe, "ngDataManager");
1328
+ rt = new WeakMap(), h(Oe, "ngDataManager");
1312
1329
  let be = Oe;
1313
1330
  var ut, L, Lt, se;
1314
1331
  const Be = class Be {
1315
1332
  // 🎯 이제 { name: string, type: string } κ°μ²΄λ“€μ˜ λ°°μ—΄λ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.
1316
- constructor(r) {
1333
+ constructor(i) {
1317
1334
  d(this, ut);
1318
1335
  d(this, L, []);
1319
- A(this, "add", /* @__PURE__ */ h((r, e = "string") => {
1320
- r.forEach((s) => {
1321
- t(this, L).some((i) => i.name === s) || t(this, L).push({ name: s, type: e });
1336
+ E(this, "add", /* @__PURE__ */ h((i, e = "string") => {
1337
+ i.forEach((s) => {
1338
+ t(this, L).some((r) => r.name === s) || t(this, L).push({ name: s, type: e });
1322
1339
  }), t(this, Lt).call(this);
1323
1340
  }, "add"));
1324
1341
  d(this, Lt, /* @__PURE__ */ h(() => {
1325
- const r = /* @__PURE__ */ new Map();
1342
+ const i = /* @__PURE__ */ new Map();
1326
1343
  t(this, L).forEach((e) => {
1327
- r.set(e.name, e.type);
1328
- }), 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);
1344
+ i.set(e.name, e.type);
1345
+ }), p(this, L, Array.from(i, ([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);
1329
1346
  }, "#adjust"));
1330
1347
  d(this, se, /* @__PURE__ */ h(() => {
1331
1348
  p(this, L, []), W.log(t(this, ut).querySelectorAll("table"));
1332
- const r = Array.from(t(this, ut).querySelectorAll("table"));
1333
- if (!(!r || r.length === 0)) {
1334
- for (const e of r)
1335
- W.log(e), $("[data-bind]", e).each((s, i) => {
1336
- const n = i.dataset.bind, o = i.getAttribute("data-type") || "string";
1349
+ const i = Array.from(t(this, ut).querySelectorAll("table"));
1350
+ if (!(!i || i.length === 0)) {
1351
+ for (const e of i)
1352
+ W.log(e), $("[data-bind]", e).each((s, r) => {
1353
+ const n = r.dataset.bind, o = r.getAttribute("data-type") || "string";
1337
1354
  n && t(this, L).push({ name: n, type: o });
1338
1355
  }), ["data-expr", "background-color", "color", "tooltip", "visible", "readonly", "enable-button", "enable-check", "class-expr", "icon-color", "icon-src"].forEach((s) => {
1339
- $(`[${s}]`, e).each((i, n) => {
1356
+ $(`[${s}]`, e).each((r, n) => {
1340
1357
  var o = n.getAttribute(s);
1341
1358
  if (o.indexOf("data.") < 0) {
1342
1359
  const a = o.search(/[(]/g);
@@ -1359,44 +1376,44 @@ const Be = class Be {
1359
1376
  t(this, Lt).call(this);
1360
1377
  }
1361
1378
  }, "#init"));
1362
- p(this, ut, r), t(this, se).call(this);
1379
+ p(this, ut, i), t(this, se).call(this);
1363
1380
  }
1364
1381
  // 🎯 기쑴에 ν•„λ“œ μ΄λ¦„λ§Œ μ“°λ˜ κ³³λ“€κ³Όμ˜ ν˜Έν™˜μ„ μœ„ν•΄ 이름 λ°°μ—΄λ§Œ λ¦¬ν„΄ν•˜λŠ” λ©”μ„œλ“œ μœ μ§€
1365
1382
  get() {
1366
- return t(this, L).map((r) => r.name);
1383
+ return t(this, L).map((i) => i.name);
1367
1384
  }
1368
1385
  // 🎯 λ‚΄λΆ€ 객체 ν†΅μ§Έλ‘œ μ–»κΈ°
1369
1386
  getFields() {
1370
1387
  return t(this, L);
1371
1388
  }
1372
1389
  // 🎯 νŠΉμ • ν•„λ“œμ˜ 데이터 νƒ€μž… 쑰회
1373
- getType(r) {
1374
- const e = t(this, L).find((s) => s.name === r);
1390
+ getType(i) {
1391
+ const e = t(this, L).find((s) => s.name === i);
1375
1392
  return e ? e.type : "string";
1376
1393
  }
1377
- indexOf(r) {
1378
- return t(this, L).findIndex((e) => e.name === r);
1394
+ indexOf(i) {
1395
+ return t(this, L).findIndex((e) => e.name === i);
1379
1396
  }
1380
- includes(r) {
1381
- return t(this, L).some((e) => e.name === r);
1397
+ includes(i) {
1398
+ return t(this, L).some((e) => e.name === i);
1382
1399
  }
1383
1400
  };
1384
1401
  ut = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), h(Be, "ngFields");
1385
1402
  let pe = Be;
1386
- var nt, re, ie;
1387
- const Pe = class Pe extends HTMLElement {
1403
+ var nt, ie, re;
1404
+ const ze = class ze extends HTMLElement {
1388
1405
  constructor() {
1389
1406
  super();
1390
1407
  //#created = false;
1391
1408
  d(this, nt);
1392
- d(this, re);
1393
- d(this, ie, /* @__PURE__ */ h(() => {
1394
- 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 } }));
1409
+ d(this, ie);
1410
+ d(this, re, /* @__PURE__ */ h(() => {
1411
+ this.fields = new pe(this), p(this, ie, new fe(this)), W.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1395
1412
  }, "#init"));
1396
1413
  this.attachShadow({ mode: "open" }), p(this, nt, new be(this));
1397
1414
  }
1398
1415
  connectedCallback() {
1399
- t(this, ie).call(this);
1416
+ t(this, re).call(this);
1400
1417
  }
1401
1418
  disconnectedCallback() {
1402
1419
  W.log("NineTable disconnected.");
@@ -1414,8 +1431,8 @@ const Pe = class Pe extends HTMLElement {
1414
1431
  return t(this, nt);
1415
1432
  }
1416
1433
  };
1417
- nt = new WeakMap(), re = new WeakMap(), ie = new WeakMap(), h(Pe, "NineTable");
1418
- let ye = Pe;
1434
+ nt = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), h(ze, "NineTable");
1435
+ let ye = ze;
1419
1436
  customElements.get("nine-table") || customElements.define("nine-table", ye);
1420
1437
  const mt = class mt extends HTMLElement {
1421
1438
  // πŸ‘ˆ μ»€μŠ€ν…€ μŠ€νƒ€μΌμš© μΊμ‹œ μΆ”κ°€
@@ -1428,10 +1445,10 @@ const mt = class mt extends HTMLElement {
1428
1445
  connectedCallback() {
1429
1446
  }
1430
1447
  };
1431
- h(mt, "BasicCellElement"), A(mt, "_styleCache", /* @__PURE__ */ new Map()), A(mt, "_customStyleCache", /* @__PURE__ */ new Map());
1448
+ h(mt, "BasicCellElement"), E(mt, "_styleCache", /* @__PURE__ */ new Map()), E(mt, "_customStyleCache", /* @__PURE__ */ new Map());
1432
1449
  let me = mt;
1433
1450
  var C, Ht, y, Re, qe, Te, ke, Ce;
1434
- const ze = class ze extends me {
1451
+ const De = class De extends me {
1435
1452
  constructor() {
1436
1453
  super();
1437
1454
  d(this, C);
@@ -1441,16 +1458,16 @@ const ze = class ze extends me {
1441
1458
  d(this, qe);
1442
1459
  d(this, Te);
1443
1460
  d(this, ke);
1444
- A(this, "getDisplayText", /* @__PURE__ */ h((e) => {
1461
+ E(this, "getDisplayText", /* @__PURE__ */ h((e) => {
1445
1462
  if (t(this, y))
1446
1463
  if (t(this, y).closest("tbody")) {
1447
- const s = t(this, y).closest("tr").data, i = parseInt(t(this, y).dataset.row);
1464
+ const s = t(this, y).closest("tr").data, r = parseInt(t(this, y).dataset.row);
1448
1465
  if (!s) return "";
1449
1466
  if (ninegrid.isNull(t(this, y).dataset.expr)) {
1450
1467
  if (!ninegrid.isNull(t(this, y).dataset.bind))
1451
1468
  return s[t(this, y).dataset.bind] || ninegrid.nvl(e, "");
1452
1469
  } else try {
1453
- return this.getExprValue(t(this, y).dataset.expr, s, i, t(this, y));
1470
+ return this.getExprValue(t(this, y).dataset.expr, s, r, t(this, y));
1454
1471
  } catch {
1455
1472
  console.error(t(this, y).dataset.expr, s, t(this, y).dataset.row);
1456
1473
  }
@@ -1465,14 +1482,14 @@ const ze = class ze extends me {
1465
1482
  if (!(!t(this, C) || !t(this, C).template || !t(this, y).closest("tbody.bindable"))) {
1466
1483
  var e = ninegrid.j.querySelectorAll(t(this, y)).attr("suppress");
1467
1484
  if (e && (e = parseInt(e)), e && !isNaN(e)) {
1468
- var s = t(this, y).closest("tr"), i = [];
1469
- $("th,td", s).each((x, M) => {
1485
+ var s = t(this, y).closest("tr"), r = [];
1486
+ $("th,td", s).each((v, M) => {
1470
1487
  var T = ninegrid.j.querySelectorAll(M).attr("suppress");
1471
- T && M.dataset.row && (T = parseInt(T), !isNaN(T) && T <= e && i.push(T));
1472
- }), i.sort();
1488
+ T && M.dataset.row && (T = parseInt(T), !isNaN(T) && T <= e && r.push(T));
1489
+ }), r.sort();
1473
1490
  var n = !1;
1474
1491
  if (parseInt(s.sectionRowIndex / t(this, C).template.length) > 0)
1475
- for (var o of i) {
1492
+ for (var o of r) {
1476
1493
  if (o > e) break;
1477
1494
  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);
1478
1495
  t(this, y).dataset.matrixRow;
@@ -1485,17 +1502,17 @@ const ze = class ze extends me {
1485
1502
  else
1486
1503
  n = !0;
1487
1504
  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"));
1488
- 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}"]`);
1489
- $(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");
1505
+ var m = parseInt(t(this, y).dataset.matrixRow), x = m - 1, A = t(this, C).body.querySelector(`tbody.bindable [data-col="${t(this, y).dataset.col}"][data-matrix-row="${x}"]`);
1506
+ $(A).hasClass("suppress") && !ninegrid.j.querySelectorAll(t(this, y)).hasClass("suppress") ? ninegrid.j.querySelectorAll(A).removeClass("last-none-suppress").addClass("last-suppress") : !$(A).hasClass("suppress") && ninegrid.j.querySelectorAll(t(this, y)).hasClass("suppress") ? ninegrid.j.querySelectorAll(A).removeClass("last-suppress").addClass("last-none-suppress") : ninegrid.j.querySelectorAll(A).removeClass("last-none-suppress").removeClass("last-suppress");
1490
1507
  }
1491
1508
  }
1492
1509
  }, "#resetSuppress"));
1493
- A(this, "getExprValue", /* @__PURE__ */ h((e, s, i, n) => {
1510
+ E(this, "getExprValue", /* @__PURE__ */ h((e, s, r, n) => {
1494
1511
  if (typeof e < "u")
1495
1512
  try {
1496
- i = parseInt(i);
1513
+ r = parseInt(r);
1497
1514
  const o = e.replace("()", "");
1498
- 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);
1515
+ return t(this, C)[o] ? t(this, C)[o].call(this, s, r, t(this, y)) : t(this, C).exprFunction(e).call(this, s, r, t(this, C).data);
1499
1516
  } catch {
1500
1517
  return ["NG-COMBO"].includes(this.tagName) ? "" : e;
1501
1518
  }
@@ -1512,8 +1529,8 @@ const ze = class ze extends me {
1512
1529
  }
1513
1530
  set value(e) {
1514
1531
  var s = parseInt(t(this, y).dataset.row);
1515
- const i = this.getAttribute("update-row-state") != "false";
1516
- 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);
1532
+ const r = this.getAttribute("update-row-state") != "false";
1533
+ s < 0 ? t(this, C).data.setValueNF(parseInt(t(this, y).dataset.index), t(this, y).dataset.bind, e, r) : t(this, C).data.setValue(s, t(this, y).dataset.bind, e, r);
1517
1534
  }
1518
1535
  get row() {
1519
1536
  return parseInt(t(this, y).dataset.row);
@@ -1526,9 +1543,9 @@ const ze = class ze extends me {
1526
1543
  return parseInt(t(this, y).dataset.row), t(this, Ht).data[e];
1527
1544
  }
1528
1545
  };
1529
- 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(ze, "CellElement");
1530
- let xe = ze;
1531
- const De = class De extends xe {
1546
+ 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(De, "CellElement");
1547
+ let ve = De;
1548
+ const Pe = class Pe extends ve {
1532
1549
  constructor() {
1533
1550
  super();
1534
1551
  }
@@ -1539,10 +1556,10 @@ const De = class De extends xe {
1539
1556
  return super.refresh();
1540
1557
  }
1541
1558
  };
1542
- h(De, "EditableCellElement");
1543
- let ve = De;
1559
+ h(Pe, "EditableCellElement");
1560
+ let xe = Pe;
1544
1561
  var Mt, ot, gt, bt, ne, U, Le;
1545
- const je = class je extends ve {
1562
+ const je = class je extends xe {
1546
1563
  constructor() {
1547
1564
  super();
1548
1565
  d(this, Mt);
@@ -1551,7 +1568,7 @@ const je = class je extends ve {
1551
1568
  d(this, bt);
1552
1569
  d(this, ne);
1553
1570
  d(this, U);
1554
- A(this, "refresh", /* @__PURE__ */ h(() => {
1571
+ E(this, "refresh", /* @__PURE__ */ h(() => {
1555
1572
  const e = super.refresh();
1556
1573
  t(this, Mt).value = e;
1557
1574
  }, "refresh"));
@@ -1590,9 +1607,9 @@ const je = class je extends ve {
1590
1607
  if (t(this, ot) == "number") {
1591
1608
  let n = [];
1592
1609
  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) {
1593
- var s = e.target.value, i = s.indexOf(".");
1594
- if (i >= 0) {
1595
- var s = s.substr(i + 1, s.length);
1610
+ var s = e.target.value, r = s.indexOf(".");
1611
+ if (r >= 0) {
1612
+ var s = s.substr(r + 1, s.length);
1596
1613
  s.length >= Number(t(this, U)) && e.preventDefault();
1597
1614
  }
1598
1615
  }