@ninebone/table 0.0.696 β†’ 0.0.698

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,9 +2,9 @@ var es = Object.defineProperty;
2
2
  var ss = (R) => {
3
3
  throw TypeError(R);
4
4
  };
5
- var is = (R, n, e) => n in R ? es(R, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : R[n] = e;
5
+ var os = (R, n, e) => n in R ? es(R, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : R[n] = e;
6
6
  var h = (R, n) => es(R, "name", { value: n, configurable: !0 });
7
- var E = (R, n, e) => is(R, typeof n != "symbol" ? n + "" : n, e), he = (R, n, e) => n.has(R) || ss("Cannot " + e);
7
+ var E = (R, n, e) => os(R, typeof n != "symbol" ? n + "" : n, e), he = (R, n, e) => n.has(R) || ss("Cannot " + e);
8
8
  var t = (R, n, e) => (he(R, n, "read from private field"), e ? e.call(R) : n.get(R)), d = (R, n, e) => n.has(R) ? ss("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(R) : n.set(R, e), p = (R, n, e, s) => (he(R, n, "write to private field"), s ? s.call(R, e) : n.set(R, e), e), de = (R, n, e) => (he(R, n, "access private method"), e);
9
9
  var ns = (R, n, e, s) => ({
10
10
  set _(r) {
@@ -15,72 +15,72 @@ var ns = (R, n, e, s) => ({
15
15
  }
16
16
  });
17
17
  import { trace as as } from "@ninebone/util";
18
- const Oe = class Oe extends as.constructor {
18
+ const We = class We extends as.constructor {
19
19
  constructor() {
20
20
  super(), this.init("nine-table", "green");
21
21
  }
22
22
  };
23
- h(Oe, "Trace");
24
- let fe = Oe;
23
+ h(We, "Trace");
24
+ let fe = We;
25
25
  const T = new fe();
26
- var z, V, S, K, Z, G, Bt, J, zt;
27
- const Be = class Be extends HTMLElement {
26
+ var B, j, S, K, Z, G, Ot, J, Bt;
27
+ const Oe = class Oe extends HTMLElement {
28
28
  constructor() {
29
29
  super();
30
- d(this, z);
31
- d(this, V, !1);
30
+ d(this, B);
31
+ d(this, j, !1);
32
32
  d(this, S);
33
33
  d(this, K);
34
34
  d(this, Z);
35
35
  d(this, G);
36
- d(this, Bt, /* @__PURE__ */ h(() => {
37
- if (!t(this, z)) return;
38
- const e = t(this, z).querySelector(".ng-container-body .ng-part-body");
36
+ d(this, Ot, /* @__PURE__ */ h(() => {
37
+ if (!t(this, B)) return;
38
+ const e = t(this, B).querySelector(".ng-container-body .ng-part-body");
39
39
  e && (p(this, G, new ResizeObserver(() => {
40
40
  this.refresh();
41
41
  })), t(this, G).observe(e));
42
42
  }, "#observeResize"));
43
43
  E(this, "refresh", /* @__PURE__ */ h(() => {
44
- if (!t(this, z) || !t(this, S) || t(this, V)) return;
44
+ if (!t(this, B) || !t(this, S) || t(this, j)) return;
45
45
  const e = t(this, S).container, s = e.querySelector("table");
46
46
  if (!s) return;
47
- const r = t(this, S).track, o = t(this, S).thumb, i = t(this, z).querySelector(".ng-container-bottom"), a = e.clientWidth, c = s.scrollWidth;
47
+ const r = t(this, S).track, i = t(this, S).thumb, o = t(this, B).querySelector(".ng-container-bottom"), a = e.clientWidth, c = s.scrollWidth;
48
48
  if (a !== 0 && c > a)
49
- i && (i.style.display = "flex");
49
+ o && (o.style.display = "flex");
50
50
  else {
51
- i && (i.style.display = "none");
51
+ o && (o.style.display = "none");
52
52
  return;
53
53
  }
54
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
- o.style.width = `${f}px`;
57
+ i.style.width = `${f}px`;
58
58
  const g = e.scrollLeft, b = c - a;
59
59
  let u = 0;
60
60
  b > 0 && (u = parseInt(g / b * (l - f), 10)), u < 0 && (u = 0);
61
61
  const y = l - f;
62
- u > y && (u = y), o.style.left = `${u}px`, t(this, S).left.disabled = u === 0, t(this, S).right.disabled = u >= y - 1;
62
+ u > y && (u = y), i.style.left = `${u}px`, t(this, S).left.disabled = u === 0, t(this, S).right.disabled = u >= y - 1;
63
63
  }, "refresh"));
64
64
  d(this, J, /* @__PURE__ */ h((e) => {
65
65
  if (!t(this, S)) return !1;
66
66
  const s = t(this, S).container, r = s.querySelector("table");
67
67
  if (!r) return !1;
68
- const o = t(this, S).track.getBoundingClientRect(), i = t(this, S).thumb.clientWidth;
68
+ const i = t(this, S).track.getBoundingClientRect(), o = t(this, S).thumb.clientWidth;
69
69
  let a = e;
70
70
  a < 0 && (a = 0);
71
- const c = o.width - i;
71
+ const c = i.width - o;
72
72
  a > c && (a = c), a = parseInt(a, 10), t(this, S).thumb.style.left = `${a}px`, t(this, S).left.disabled = a === 0, t(this, S).right.disabled = a >= c - 1;
73
73
  const l = s.clientWidth, g = r.scrollWidth - l;
74
74
  return c > 0 && g > 0 && (s.scrollLeft = a / c * g), a > 0 && a < c - 1;
75
75
  }, "#thumbMoveTo"));
76
- d(this, zt, /* @__PURE__ */ h(() => {
76
+ d(this, Bt, /* @__PURE__ */ h(() => {
77
77
  const e = /* @__PURE__ */ h((r) => {
78
78
  clearInterval(t(this, K)), clearInterval(t(this, Z));
79
- const o = parseInt(t(this, S).thumb.style.left || 0, 10);
80
- t(this, J).call(this, o + r), p(this, K, setInterval(() => {
79
+ const i = parseInt(t(this, S).thumb.style.left || 0, 10);
80
+ t(this, J).call(this, i + r), p(this, K, setInterval(() => {
81
81
  clearInterval(t(this, K)), p(this, Z, setInterval(() => {
82
- const i = parseInt(t(this, S).thumb.style.left || 0, 10);
83
- t(this, J).call(this, i + r) || clearInterval(t(this, Z));
82
+ const o = parseInt(t(this, S).thumb.style.left || 0, 10);
83
+ t(this, J).call(this, o + r) || clearInterval(t(this, Z));
84
84
  }, 50));
85
85
  }, 500));
86
86
  }, "delayScroll"), s = /* @__PURE__ */ h(() => {
@@ -95,24 +95,24 @@ const Be = class Be extends HTMLElement {
95
95
  }), t(this, S).left.addEventListener("touchstart", () => e(-20)), t(this, S).right.addEventListener("touchstart", () => e(20)), t(this, S).track.addEventListener("mousedown", (r) => {
96
96
  if (r.button !== 0) return;
97
97
  r.preventDefault();
98
- const o = t(this, S).track.getBoundingClientRect(), i = t(this, S).thumb.clientWidth;
99
- t(this, J).call(this, r.clientX - o.left - i / 2);
98
+ const i = t(this, S).track.getBoundingClientRect(), o = t(this, S).thumb.clientWidth;
99
+ t(this, J).call(this, r.clientX - i.left - o / 2);
100
100
  }), t(this, S).thumb.addEventListener("mousedown", (r) => {
101
101
  if (r.button !== 0) return;
102
- r.stopPropagation(), r.preventDefault(), p(this, V, !0), this.shiftX = r.clientX - t(this, S).thumb.getBoundingClientRect().left;
103
- const o = /* @__PURE__ */ h((a) => {
104
- if (!t(this, V)) return;
102
+ r.stopPropagation(), r.preventDefault(), p(this, j, !0), this.shiftX = r.clientX - t(this, S).thumb.getBoundingClientRect().left;
103
+ const i = /* @__PURE__ */ h((a) => {
104
+ if (!t(this, j)) return;
105
105
  const c = t(this, S).track.getBoundingClientRect();
106
106
  t(this, J).call(this, a.clientX - c.left - this.shiftX);
107
- }, "onMouseMove"), i = /* @__PURE__ */ h(() => {
108
- p(this, V, !1), s(), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", i), this.refresh();
107
+ }, "onMouseMove"), o = /* @__PURE__ */ h(() => {
108
+ p(this, j, !1), s(), document.removeEventListener("mousemove", i), document.removeEventListener("mouseup", o), this.refresh();
109
109
  }, "onMouseUp");
110
- document.addEventListener("mousemove", o), document.addEventListener("mouseup", i);
110
+ document.addEventListener("mousemove", i), document.addEventListener("mouseup", o);
111
111
  });
112
112
  }, "#init"));
113
113
  }
114
114
  connectedCallback() {
115
- if (p(this, z, this.closest("nine-table-sheet") || this.getRootNode().host), !t(this, z)) return;
115
+ if (p(this, B, this.closest("nine-table-sheet") || this.getRootNode().host), !t(this, B)) return;
116
116
  this.innerHTML = `
117
117
  <style>
118
118
  nine-table-hscrollbar {
@@ -177,7 +177,7 @@ const Be = class Be 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, z).querySelector(".ng-container-body .ng-part-body");
180
+ const s = t(this, B).querySelector(".ng-container-body .ng-part-body");
181
181
  if (!s) {
182
182
  setTimeout(e, 10);
183
183
  return;
@@ -189,8 +189,8 @@ const Be = class Be extends HTMLElement {
189
189
  left: this.querySelector(".ng-scroll-left"),
190
190
  right: this.querySelector(".ng-scroll-right")
191
191
  }), s.addEventListener("scroll", () => {
192
- t(this, V) || this.refresh();
193
- }), t(this, zt).call(this), t(this, Bt).call(this), this.refresh();
192
+ t(this, j) || this.refresh();
193
+ }), t(this, Bt).call(this), t(this, Ot).call(this), this.refresh();
194
194
  }, "initWhenReady");
195
195
  e();
196
196
  }
@@ -198,11 +198,11 @@ const Be = class Be extends HTMLElement {
198
198
  t(this, G) && t(this, G).disconnect();
199
199
  }
200
200
  };
201
- z = new WeakMap(), V = new WeakMap(), S = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), G = new WeakMap(), Bt = new WeakMap(), J = new WeakMap(), zt = new WeakMap(), h(Be, "NineTableHScrollBar");
202
- let ue = Be;
201
+ B = new WeakMap(), j = new WeakMap(), S = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), G = new WeakMap(), Ot = new WeakMap(), J = new WeakMap(), Bt = new WeakMap(), h(Oe, "NineTableHScrollBar");
202
+ let ue = Oe;
203
203
  customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ue);
204
204
  var Q, tt, ct, k, wt, St, Pt;
205
- const ze = class ze extends HTMLElement {
205
+ const Be = class Be extends HTMLElement {
206
206
  constructor() {
207
207
  super();
208
208
  d(this, Q);
@@ -213,17 +213,17 @@ const ze = class ze extends HTMLElement {
213
213
  d(this, St, 0);
214
214
  E(this, "refresh", /* @__PURE__ */ h(() => {
215
215
  if (T.log("vscrollbar.refresh"), !t(this, Q) || !t(this, k)) return;
216
- const e = t(this, k).container, s = t(this, k).track, r = t(this, k).thumb, o = e.clientHeight, i = t(this, Q).data.length, a = t(this, tt).getRowHeight(), c = i * a;
217
- if (c <= o || i === 0) {
216
+ const e = t(this, k).container, s = t(this, k).track, r = t(this, k).thumb, i = e.clientHeight, o = t(this, Q).data.length, a = t(this, tt).getRowHeight(), c = o * a;
217
+ if (c <= i || o === 0) {
218
218
  this.style.display = "none";
219
219
  return;
220
220
  } else
221
221
  this.style.display = "flex";
222
222
  const l = s.clientHeight;
223
223
  if (l <= 0) return;
224
- const f = Math.max(Math.min(l * (o / c), l), 20);
224
+ const f = Math.max(Math.min(l * (i / c), l), 20);
225
225
  r.style.height = `${f}px`;
226
- const g = e.scrollTop, b = Math.max(c - o, 1);
226
+ const g = e.scrollTop, b = Math.max(c - i, 1);
227
227
  T.log(e, g, b);
228
228
  let u = 0;
229
229
  b > 0 && (u = g / b * (l - f));
@@ -233,29 +233,29 @@ const ze = class ze extends HTMLElement {
233
233
  d(this, Pt, /* @__PURE__ */ h(() => {
234
234
  T.log("nine-table-vscrollbar.#init");
235
235
  const e = t(this, k).container, s = /* @__PURE__ */ h(() => {
236
- const o = (t(this, Q).data.get() || []).length, i = t(this, tt).getRowHeight();
237
- return o * i;
236
+ const i = (t(this, Q).data.get() || []).length, o = t(this, tt).getRowHeight();
237
+ return i * o;
238
238
  }, "getContentHeight");
239
239
  t(this, k).thumb.addEventListener("mousedown", (r) => {
240
240
  if (r.button !== 0) return;
241
241
  r.stopPropagation(), r.preventDefault(), p(this, ct, !0), p(this, wt, r.clientY), p(this, St, e.scrollTop);
242
- const o = /* @__PURE__ */ h((a) => {
242
+ const i = /* @__PURE__ */ h((a) => {
243
243
  if (!t(this, ct)) return;
244
- const c = t(this, k).track.getBoundingClientRect(), l = t(this, k).thumb.clientHeight, g = c.height - l, b = a.clientY - t(this, wt), u = e.clientHeight, y = s(), x = Math.max(y - u, 1);
245
- if (g > 0 && x > 0) {
246
- const A = b / g * x;
247
- let v = t(this, St) + A;
244
+ const c = t(this, k).track.getBoundingClientRect(), l = t(this, k).thumb.clientHeight, g = c.height - l, b = a.clientY - t(this, wt), u = e.clientHeight, y = s(), v = Math.max(y - u, 1);
245
+ if (g > 0 && v > 0) {
246
+ const A = b / g * v;
247
+ let x = t(this, St) + A;
248
248
  const M = Math.max(0, y - u);
249
- v < 0 && (v = 0), v > M && (v = M), e.scrollTop = v;
249
+ x < 0 && (x = 0), x > M && (x = M), e.scrollTop = x;
250
250
  }
251
251
  this.refresh();
252
- }, "onMouseMove"), i = /* @__PURE__ */ h(() => {
253
- p(this, ct, !1), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", i), this.refresh();
252
+ }, "onMouseMove"), o = /* @__PURE__ */ h(() => {
253
+ p(this, ct, !1), document.removeEventListener("mousemove", i), document.removeEventListener("mouseup", o), this.refresh();
254
254
  }, "onMouseUp");
255
- document.addEventListener("mousemove", o), document.addEventListener("mouseup", i);
255
+ document.addEventListener("mousemove", i), document.addEventListener("mouseup", o);
256
256
  }), t(this, k).track.addEventListener("mousedown", (r) => {
257
257
  if (r.button !== 0 || r.target === t(this, k).thumb) return;
258
- const o = t(this, k).track.getBoundingClientRect(), i = t(this, k).thumb.clientHeight, a = r.clientY - o.top - i / 2, l = o.height - i, f = e.clientHeight, g = s(), b = Math.max(g - f, 1);
258
+ const i = t(this, k).track.getBoundingClientRect(), o = t(this, k).thumb.clientHeight, a = r.clientY - i.top - o / 2, l = i.height - o, f = e.clientHeight, g = s(), b = Math.max(g - f, 1);
259
259
  if (l > 0 && b > 0) {
260
260
  const u = Math.max(0, Math.min(1, a / l));
261
261
  e.scrollTop = u * b;
@@ -350,10 +350,10 @@ const ze = class ze extends HTMLElement {
350
350
  e();
351
351
  }
352
352
  };
353
- Q = new WeakMap(), tt = new WeakMap(), ct = new WeakMap(), k = new WeakMap(), wt = new WeakMap(), St = new WeakMap(), Pt = new WeakMap(), h(ze, "NineTableVScrollBar");
354
- let ge = ze;
353
+ Q = new WeakMap(), tt = new WeakMap(), ct = new WeakMap(), k = new WeakMap(), wt = new WeakMap(), St = new WeakMap(), Pt = new WeakMap(), h(Be, "NineTableVScrollBar");
354
+ let ge = Be;
355
355
  customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", ge);
356
- var D, w, et, P, _, Y, st, Et, Ce, Le, Dt, Ft, At, Rt, qt, jt, Vt, Tt, He, ht, kt, Yt;
356
+ var D, w, et, P, _, V, st, Et, Ce, Le, Dt, Ft, At, Rt, qt, jt, Vt, Tt, He, ht, kt, Yt;
357
357
  const Pe = class Pe {
358
358
  constructor(n) {
359
359
  d(this, D);
@@ -361,7 +361,7 @@ const Pe = class Pe {
361
361
  d(this, et);
362
362
  d(this, P, /* @__PURE__ */ new Map());
363
363
  d(this, _, null);
364
- d(this, Y, null);
364
+ d(this, V, null);
365
365
  d(this, st, 0);
366
366
  d(this, Et, 40);
367
367
  d(this, Ce, !1);
@@ -378,26 +378,26 @@ const Pe = class Pe {
378
378
  T.log("rowManager.initialize"), p(this, et, {
379
379
  scrollTables: t(this, w).querySelectorAll(".ng-part-body table"),
380
380
  firstTr: t(this, w).querySelector(".ng-container-body .ng-part-body tbody.bindable-tbody tr:not(.nodata)")
381
- }), p(this, _, null), t(this, P).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
382
- const a = t(this, w).querySelector(i);
381
+ }), p(this, _, null), t(this, P).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
382
+ const a = t(this, w).querySelector(o);
383
383
  if (!a) return;
384
384
  const c = a.querySelector(".ng-part-body table");
385
385
  if (!c) return;
386
386
  const l = c.querySelector("tbody.bindable-tbody");
387
387
  if (!l) return;
388
388
  const g = Array.from(l.querySelectorAll("tr")).map((b) => b.cloneNode(!0));
389
- t(this, P).set(i, g);
389
+ t(this, P).set(o, g);
390
390
  });
391
- const n = t(this, w).querySelector(".ng-container-body .ng-part-body"), e = t(this, w).querySelector(".ng-container-left .ng-part-body"), s = t(this, w).querySelector(".ng-container-right .ng-part-body"), r = t(this, w).querySelector(".ng-container-body .ng-part-header"), o = t(this, w).querySelector(".ng-container-body .ng-part-footer");
391
+ const n = t(this, w).querySelector(".ng-container-body .ng-part-body"), e = t(this, w).querySelector(".ng-container-left .ng-part-body"), s = t(this, w).querySelector(".ng-container-right .ng-part-body"), r = t(this, w).querySelector(".ng-container-body .ng-part-header"), i = t(this, w).querySelector(".ng-container-body .ng-part-footer");
392
392
  if (n) {
393
393
  t(this, At).call(this), t(this, Tt).call(this), t(this, Rt).call(this), t(this, ht).call(this, n.scrollTop);
394
- let i = !1;
394
+ let o = !1;
395
395
  const a = /* @__PURE__ */ h((c) => {
396
396
  var g;
397
- if (i) return;
398
- i = !0;
397
+ if (o) return;
398
+ o = !0;
399
399
  const l = c.scrollTop, f = c.scrollLeft;
400
- n && n.scrollTop !== l && (n.scrollTop = l), e && e.scrollTop !== l && (e.scrollTop = l), s && s.scrollTop !== l && (s.scrollTop = l), r && r.scrollLeft !== f && (r.scrollLeft = f), o && o.scrollLeft !== f && (o.scrollLeft = f), t(this, ht).call(this, l), (g = t(this, w).querySelector("nine-table-vscrollbar")) == null || g.refresh(), i = !1;
400
+ n && n.scrollTop !== l && (n.scrollTop = l), e && e.scrollTop !== l && (e.scrollTop = l), s && s.scrollTop !== l && (s.scrollTop = l), r && r.scrollLeft !== f && (r.scrollLeft = f), i && i.scrollLeft !== f && (i.scrollLeft = f), t(this, ht).call(this, l), (g = t(this, w).querySelector("nine-table-vscrollbar")) == null || g.refresh(), o = !1;
401
401
  }, "handleContainerScroll");
402
402
  [n, e, s].forEach((c) => {
403
403
  c == null || c.addEventListener("scroll", () => {
@@ -413,12 +413,12 @@ const Pe = class Pe {
413
413
  const r = n.querySelector(".ng-part-body tbody.bindable-tbody");
414
414
  if (!r) return;
415
415
  r.querySelectorAll("tr:not(.nodata)").forEach((a) => a.remove());
416
- const o = r.querySelector("tr.nodata"), i = document.createDocumentFragment();
416
+ const i = r.querySelector("tr.nodata"), o = document.createDocumentFragment();
417
417
  for (let a = 0; a < t(this, Et); a++)
418
418
  s.forEach((c) => {
419
- i.appendChild(c.cloneNode(!0));
419
+ o.appendChild(c.cloneNode(!0));
420
420
  });
421
- o ? o.before(i) : r.appendChild(i), e === ".ng-container-body" && (t(this, et).firstTr = r.querySelector("tr:not(.nodata)"));
421
+ i ? i.before(o) : r.appendChild(o), e === ".ng-container-body" && (t(this, et).firstTr = r.querySelector("tr:not(.nodata)"));
422
422
  }, "#renderRows"));
423
423
  d(this, At, /* @__PURE__ */ h(() => {
424
424
  if (t(this, _) !== null && t(this, _) > 0)
@@ -430,12 +430,12 @@ const Pe = class Pe {
430
430
  const s = n.querySelector("tbody.bindable-tbody");
431
431
  if (T.log(s), !s) throw new Error("invalid dom");
432
432
  s.querySelectorAll("tr:not(.nodata)").forEach((b) => b.remove());
433
- const r = s.querySelector("tr.nodata"), o = document.createDocumentFragment();
433
+ const r = s.querySelector("tr.nodata"), i = document.createDocumentFragment();
434
434
  e.forEach((b) => {
435
- o.appendChild(b.cloneNode(!0));
436
- }), r ? r.before(o) : s.appendChild(o);
437
- const i = t(this, w), a = i.style.display, c = i.style.visibility, l = i.style.position;
438
- (a === "none" || window.getComputedStyle(i).display === "none") && (i.style.display = "block", i.style.visibility = "hidden", i.style.position = "absolute");
435
+ i.appendChild(b.cloneNode(!0));
436
+ }), r ? r.before(i) : s.appendChild(i);
437
+ const o = t(this, w), a = o.style.display, c = o.style.visibility, l = o.style.position;
438
+ (a === "none" || window.getComputedStyle(o).display === "none") && (o.style.display = "block", o.style.visibility = "hidden", o.style.position = "absolute");
439
439
  let f = 0;
440
440
  const g = s.querySelectorAll("tr");
441
441
  return g.forEach((b) => {
@@ -445,15 +445,15 @@ const Pe = class Pe {
445
445
  u = parseFloat(y.height) || parseFloat(y.minHeight) || 0;
446
446
  }
447
447
  f += u;
448
- }), g.forEach((b) => b.remove()), i.style.display = a, i.style.visibility = c, i.style.position = l, f <= 0 ? -1 : (p(this, _, f), t(this, qt).call(this), t(this, _));
448
+ }), g.forEach((b) => b.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, f <= 0 ? -1 : (p(this, _, f), t(this, qt).call(this), t(this, _));
449
449
  }, "#measureAndCacheHeight"));
450
450
  d(this, Rt, /* @__PURE__ */ h(() => {
451
451
  T.log("rowManager.#updateVirtualScrollHeight");
452
452
  const e = (t(this, D).data.get() || []).length, s = t(this, _), r = e * s;
453
- T.log("πŸ” [VirtualHeight]", { totalCount: e, rowHeight: s, totalVirtualHeight: r }), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
454
- const i = t(this, w).querySelector(o);
455
- if (!i) return;
456
- const a = i.querySelector(".ng-part-body .ng-virtual-spacer");
453
+ T.log("πŸ” [VirtualHeight]", { totalCount: e, rowHeight: s, totalVirtualHeight: r }), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
454
+ const o = t(this, w).querySelector(i);
455
+ if (!o) return;
456
+ const a = o.querySelector(".ng-part-body .ng-virtual-spacer");
457
457
  a && (a.style.height = `${r}px`);
458
458
  });
459
459
  }, "#updateVirtualScrollHeight"));
@@ -467,44 +467,44 @@ const Pe = class Pe {
467
467
  var a, c, l, f, g, b;
468
468
  const n = t(this, w).querySelector(".ng-container-left .ng-part-body table"), e = t(this, w).querySelector(".ng-container-body .ng-part-body table"), s = t(this, w).querySelector(".ng-container-right .ng-part-body table");
469
469
  if (e) {
470
- const u = n ? Array.from(n.querySelectorAll("tbody tr")) : [], y = Array.from(e.querySelectorAll("tbody tr")), x = s ? Array.from(s.querySelectorAll("tbody tr")) : [], A = Math.max(u.length, y.length, x.length);
471
- for (let v = 0; v < A; v++) {
470
+ const u = n ? Array.from(n.querySelectorAll("tbody tr")) : [], y = Array.from(e.querySelectorAll("tbody tr")), v = s ? Array.from(s.querySelectorAll("tbody tr")) : [], A = Math.max(u.length, y.length, v.length);
471
+ for (let x = 0; x < A; x++) {
472
472
  const M = [
473
- ((a = u[v]) == null ? void 0 : a.getBoundingClientRect().height) || 0,
474
- ((c = y[v]) == null ? void 0 : c.getBoundingClientRect().height) || 0,
475
- ((l = x[v]) == null ? void 0 : l.getBoundingClientRect().height) || 0
473
+ ((a = u[x]) == null ? void 0 : a.getBoundingClientRect().height) || 0,
474
+ ((c = y[x]) == null ? void 0 : c.getBoundingClientRect().height) || 0,
475
+ ((l = v[x]) == null ? void 0 : l.getBoundingClientRect().height) || 0
476
476
  ], q = Math.max(...M);
477
- q > 0 && (u[v] && (u[v].style.height = `${q}px`), y[v] && (y[v].style.height = `${q}px`), x[v] && (x[v].style.height = `${q}px`));
477
+ q > 0 && (u[x] && (u[x].style.height = `${q}px`), y[x] && (y[x].style.height = `${q}px`), v[x] && (v[x].style.height = `${q}px`));
478
478
  }
479
479
  }
480
- const r = t(this, w).querySelector(".ng-container-left .ng-part-footer table"), o = t(this, w).querySelector(".ng-container-body .ng-part-footer table"), i = t(this, w).querySelector(".ng-container-right .ng-part-footer table");
481
- if (o) {
482
- const u = r ? Array.from(r.querySelectorAll("tfoot tr")) : [], y = Array.from(o.querySelectorAll("tfoot tr")), x = i ? Array.from(i.querySelectorAll("tfoot tr")) : [], A = Math.max(u.length, y.length, x.length);
483
- for (let v = 0; v < A; v++) {
480
+ const r = t(this, w).querySelector(".ng-container-left .ng-part-footer table"), i = t(this, w).querySelector(".ng-container-body .ng-part-footer table"), o = t(this, w).querySelector(".ng-container-right .ng-part-footer table");
481
+ if (i) {
482
+ const u = r ? Array.from(r.querySelectorAll("tfoot tr")) : [], y = Array.from(i.querySelectorAll("tfoot tr")), v = o ? Array.from(o.querySelectorAll("tfoot tr")) : [], A = Math.max(u.length, y.length, v.length);
483
+ for (let x = 0; x < A; x++) {
484
484
  const M = [
485
- ((f = u[v]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
486
- ((g = y[v]) == null ? void 0 : g.getBoundingClientRect().height) || 0,
487
- ((b = x[v]) == null ? void 0 : b.getBoundingClientRect().height) || 0
485
+ ((f = u[x]) == null ? void 0 : f.getBoundingClientRect().height) || 0,
486
+ ((g = y[x]) == null ? void 0 : g.getBoundingClientRect().height) || 0,
487
+ ((b = v[x]) == null ? void 0 : b.getBoundingClientRect().height) || 0
488
488
  ], q = Math.max(...M);
489
- q > 0 && (u[v] && (u[v].style.height = `${q}px`), y[v] && (y[v].style.height = `${q}px`), x[v] && (x[v].style.height = `${q}px`));
489
+ q > 0 && (u[x] && (u[x].style.height = `${q}px`), y[x] && (y[x].style.height = `${q}px`), v[x] && (v[x].style.height = `${q}px`));
490
490
  }
491
491
  }
492
492
  }, "#syncRowHeights"));
493
493
  d(this, Vt, /* @__PURE__ */ h(() => {
494
- !t(this, w) || !(t(this, w) instanceof HTMLElement) || (p(this, Y, new ResizeObserver((n) => {
494
+ !t(this, w) || !(t(this, w) instanceof HTMLElement) || (p(this, V, new ResizeObserver((n) => {
495
495
  for (const e of n) {
496
496
  const s = e.target;
497
497
  if (!s.classList.contains("active")) continue;
498
498
  const r = e.contentRect.height;
499
499
  if (r > 0) {
500
- let o = 0;
501
- const i = s.querySelector(".ng-part-header"), a = s.querySelector(".ng-part-footer");
502
- i && (o += i.offsetHeight), a && (o += a.offsetHeight);
503
- const c = Math.max(r - o, 100);
500
+ let i = 0;
501
+ const o = s.querySelector(".ng-part-header"), a = s.querySelector(".ng-part-footer");
502
+ o && (i += o.offsetHeight), a && (i += a.offsetHeight);
503
+ const c = Math.max(r - i, 100);
504
504
  t(this, st) !== c && (p(this, st, c), t(this, qt).call(this), t(this, _) !== null && (t(this, Tt).call(this), this.refresh()));
505
505
  }
506
506
  }
507
- })), t(this, Y).observe(t(this, w)));
507
+ })), t(this, V).observe(t(this, w)));
508
508
  }, "#initResizeObserver"));
509
509
  d(this, Tt, /* @__PURE__ */ h(() => {
510
510
  T.log("rowManager.#renderAllContainers"), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((n) => {
@@ -519,9 +519,9 @@ const Pe = class Pe {
519
519
  if (!s) return;
520
520
  const r = s.querySelector(".ng-part-body tbody.bindable-tbody");
521
521
  if (!r) return;
522
- const o = Array.from(r.querySelectorAll("tr:not(.nodata)")), i = ((l = t(this, P).get(e)) == null ? void 0 : l.length) || 1, c = (t(this, D).data.get() || []).length;
523
- o.forEach((f, g) => {
524
- const b = n + Math.floor(g / i);
522
+ const i = Array.from(r.querySelectorAll("tr:not(.nodata)")), o = ((l = t(this, P).get(e)) == null ? void 0 : l.length) || 1, c = (t(this, D).data.get() || []).length;
523
+ i.forEach((f, g) => {
524
+ const b = n + Math.floor(g / o);
525
525
  if (b >= c) {
526
526
  f.style.visibility = "hidden";
527
527
  return;
@@ -537,27 +537,27 @@ const Pe = class Pe {
537
537
  if (!e || e <= 0) return;
538
538
  const s = t(this, D).data.length;
539
539
  if (s === 0) return;
540
- const r = ((g = t(this, P).get(".ng-container-body")) == null ? void 0 : g.length) || 1, o = t(this, w).querySelector(".ng-container-body .ng-part-body");
541
- T.log("bodyContainer.clientHeight", o.clientHeight);
542
- const i = Math.max(0, s - Math.floor(o.clientHeight / e)), a = Math.min(i, Math.max(0, Math.floor(n / e)));
540
+ const r = ((g = t(this, P).get(".ng-container-body")) == null ? void 0 : g.length) || 1, i = t(this, w).querySelector(".ng-container-body .ng-part-body");
541
+ T.log("bodyContainer.clientHeight", i.clientHeight);
542
+ const o = Math.max(0, s - Math.floor(i.clientHeight / e)), a = Math.min(o, Math.max(0, Math.floor(n / e)));
543
543
  let c = Math.floor(a * e);
544
- T.log(`πŸ“œ [Scroll Calc] maxStartIndex: ${i}, startIndex: ${a}, offsetY: ${c}`), a === i && T.log(`πŸ“œ [Scroll Inspect] scrollTop: ${n}, rowHeight: ${e}, maxStartIndex: ${i}, startIndex: ${a}, offsetY: ${c}`);
544
+ T.log(`πŸ“œ [Scroll Calc] maxStartIndex: ${o}, startIndex: ${a}, offsetY: ${c}`), a === o && T.log(`πŸ“œ [Scroll Inspect] scrollTop: ${n}, rowHeight: ${e}, maxStartIndex: ${o}, startIndex: ${a}, offsetY: ${c}`);
545
545
  const l = t(this, et).firstTr, f = l && l.dataset.row !== void 0 ? parseInt(l.dataset.row, 10) : -1;
546
546
  (b = t(this, et)) == null || b.scrollTables.forEach((u) => {
547
547
  u.style.transform = `translate3d(0, ${c}px, 0)`;
548
548
  }), f !== a && (T.log(`πŸ”„ [Row Bind Trigger] currentStartIndex(${f}) !== startIndex(${a})`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((u) => {
549
549
  const y = t(this, w).querySelector(u);
550
550
  if (!y) return;
551
- const x = y.querySelector(".ng-part-body tbody.bindable-tbody");
552
- if (!x) return;
553
- Array.from(x.querySelectorAll("tr:not(.nodata)")).forEach((v, M) => {
551
+ const v = y.querySelector(".ng-part-body tbody.bindable-tbody");
552
+ if (!v) return;
553
+ Array.from(v.querySelectorAll("tr:not(.nodata)")).forEach((x, M) => {
554
554
  const q = a + Math.floor(M / r);
555
555
  if (q >= s) {
556
- v.style.display = "none";
556
+ x.style.display = "none";
557
557
  return;
558
558
  }
559
- const O = t(this, D).data.get(q);
560
- v.style.display = "", t(this, kt).call(this, v, O, q);
559
+ const W = t(this, D).data.get(q);
560
+ x.style.display = "", t(this, kt).call(this, x, W, q);
561
561
  });
562
562
  }));
563
563
  }, "#handleScroll"));
@@ -576,10 +576,10 @@ const Pe = class Pe {
576
576
  });
577
577
  }; */
578
578
  d(this, kt, /* @__PURE__ */ h((n, e, s) => {
579
- n.dataset.row = s, n.data = e, Array.from(n.cells).forEach((r, o) => {
579
+ n.dataset.row = s, n.data = e, Array.from(n.cells).forEach((r, i) => {
580
580
  r.dataset.row = s;
581
- const i = Array.from(r.children).find((a) => a.tagName.toLowerCase().startsWith("cell-") || typeof a.refresh == "function");
582
- i && typeof i.refresh == "function" && i.refresh();
581
+ const o = Array.from(r.children).find((a) => a.tagName.toLowerCase().startsWith("cell-") || typeof a.refresh == "function");
582
+ o && typeof o.refresh == "function" && o.refresh();
583
583
  });
584
584
  }, "#bindRowData"));
585
585
  d(this, Yt, /* @__PURE__ */ h(() => {
@@ -587,18 +587,18 @@ const Pe = class Pe {
587
587
  T.log("rowManager.#syncHeaderHeights");
588
588
  const n = t(this, w).querySelector(".ng-container-left .ng-part-header table"), e = t(this, w).querySelector(".ng-container-body .ng-part-header table"), s = t(this, w).querySelector(".ng-container-right .ng-part-header table");
589
589
  if (!e) return;
590
- const r = n ? Array.from(n.querySelectorAll("tr")) : [], o = Array.from(e.querySelectorAll("tr")), i = s ? Array.from(s.querySelectorAll("tr")) : [], a = Math.max(r.length, o.length, i.length);
590
+ const r = n ? Array.from(n.querySelectorAll("tr")) : [], i = Array.from(e.querySelectorAll("tr")), o = s ? Array.from(s.querySelectorAll("tr")) : [], a = Math.max(r.length, i.length, o.length);
591
591
  for (let g = 0; g < a; g++) {
592
592
  const b = [
593
593
  ((c = r[g]) == null ? void 0 : c.getBoundingClientRect().height) || 0,
594
- ((l = o[g]) == null ? void 0 : l.getBoundingClientRect().height) || 0,
595
- ((f = i[g]) == null ? void 0 : f.getBoundingClientRect().height) || 0
594
+ ((l = i[g]) == null ? void 0 : l.getBoundingClientRect().height) || 0,
595
+ ((f = o[g]) == null ? void 0 : f.getBoundingClientRect().height) || 0
596
596
  ], u = Math.max(...b);
597
- u > 0 && (r[g] && (r[g].style.height = `${u}px`), o[g] && (o[g].style.height = `${u}px`), i[g] && (i[g].style.height = `${u}px`));
597
+ u > 0 && (r[g] && (r[g].style.height = `${u}px`), i[g] && (i[g].style.height = `${u}px`), o[g] && (o[g].style.height = `${u}px`));
598
598
  }
599
599
  }, "#syncHeaderHeights"));
600
600
  E(this, "destroy", /* @__PURE__ */ h(() => {
601
- t(this, Y) && (t(this, Y).disconnect(), p(this, Y, null));
601
+ t(this, V) && (t(this, V).disconnect(), p(this, V, null));
602
602
  }, "destroy"));
603
603
  p(this, D, n.getRootNode().host), p(this, w, n), t(this, Vt).call(this);
604
604
  }
@@ -610,7 +610,7 @@ const Pe = class Pe {
610
610
  return ((e = t(this, P).get(n)) == null ? void 0 : e.length) || 1;
611
611
  }
612
612
  };
613
- D = new WeakMap(), w = new WeakMap(), et = new WeakMap(), P = new WeakMap(), _ = new WeakMap(), Y = new WeakMap(), st = new WeakMap(), Et = new WeakMap(), Ce = new WeakMap(), Le = new WeakMap(), Dt = new WeakMap(), Ft = new WeakMap(), At = new WeakMap(), Rt = new WeakMap(), qt = new WeakMap(), jt = new WeakMap(), Vt = new WeakMap(), Tt = new WeakMap(), He = new WeakMap(), ht = new WeakMap(), kt = new WeakMap(), Yt = new WeakMap(), h(Pe, "RowManager");
613
+ D = new WeakMap(), w = new WeakMap(), et = new WeakMap(), P = new WeakMap(), _ = new WeakMap(), V = new WeakMap(), st = new WeakMap(), Et = new WeakMap(), Ce = new WeakMap(), Le = new WeakMap(), Dt = new WeakMap(), Ft = new WeakMap(), At = new WeakMap(), Rt = new WeakMap(), qt = new WeakMap(), jt = new WeakMap(), Vt = new WeakMap(), Tt = new WeakMap(), He = new WeakMap(), ht = new WeakMap(), kt = new WeakMap(), Yt = new WeakMap(), h(Pe, "RowManager");
614
614
  let be = Pe;
615
615
  const Ut = class Ut {
616
616
  /**
@@ -629,9 +629,9 @@ const Ut = class Ut {
629
629
  const f = l.getAttribute("cell-type") || "renderer";
630
630
  if (l.children.length > 0 && l.firstElementChild.tagName.includes("-")) return;
631
631
  let g = `cell-${f}`;
632
- const b = l.getAttribute("data-bind"), u = l.getAttribute("data-expr"), y = l.getAttribute("maxbyte"), x = l.getAttribute("type");
632
+ const b = l.getAttribute("data-bind"), u = l.getAttribute("data-expr"), y = l.getAttribute("maxbyte"), v = l.getAttribute("type");
633
633
  let A = [];
634
- b && A.push(`data-bind="${b}"`), u && A.push(`data-expr="${u}"`), y && A.push(`maxbyte="${y}"`), x && A.push(`type="${x}"`), l.innerHTML = `<${g} ${A.join(" ")}></${g}>`;
634
+ b && A.push(`data-bind="${b}"`), u && A.push(`data-expr="${u}"`), y && A.push(`maxbyte="${y}"`), v && A.push(`type="${v}"`), l.innerHTML = `<${g} ${A.join(" ")}></${g}>`;
635
635
  });
636
636
  }, "processCellTypes"), s = /* @__PURE__ */ h((a) => {
637
637
  if (!a.querySelector("colgroup")) {
@@ -656,56 +656,56 @@ const Ut = class Ut {
656
656
  });
657
657
  const u = Array.from(Array(g), () => Array(b).fill(null));
658
658
  l.forEach((y) => {
659
- const x = y.sectionRowIndex;
659
+ const v = y.sectionRowIndex;
660
660
  let A = 0;
661
- Array.from(y.querySelectorAll("th,td")).forEach((v) => {
662
- for (let O = 0; O < u[x].length; O++)
663
- if (u[x][O] === null) {
664
- A = O;
661
+ Array.from(y.querySelectorAll("th,td")).forEach((x) => {
662
+ for (let W = 0; W < u[v].length; W++)
663
+ if (u[v][W] === null) {
664
+ A = W;
665
665
  break;
666
666
  }
667
- const M = v.rowSpan || 1, q = v.colSpan || 1;
668
- for (let O = 0; O < M; O++)
669
- for (let j = 0; j < q; j++)
670
- x + O < g && A + j < b && (u[x + O][A + j] = O === 0 && j === 0 ? "1" : "0");
667
+ const M = x.rowSpan || 1, q = x.colSpan || 1;
668
+ for (let W = 0; W < M; W++)
669
+ for (let F = 0; F < q; F++)
670
+ v + W < g && A + F < b && (u[v + W][A + F] = W === 0 && F === 0 ? "1" : "0");
671
671
  });
672
672
  }), l.forEach((y) => {
673
- const x = y.sectionRowIndex;
673
+ const v = y.sectionRowIndex;
674
674
  Array.from(y.querySelectorAll("th,td")).forEach((A) => {
675
- for (let v = 0; v < u[x].length; v++)
676
- if (u[x][v] === "1") {
677
- A.dataset.col = v, u[x][v] = "0";
675
+ for (let x = 0; x < u[v].length; x++)
676
+ if (u[v][x] === "1") {
677
+ A.dataset.col = x, u[v][x] = "0";
678
678
  break;
679
679
  }
680
680
  });
681
681
  });
682
- }, "resetColIndex"), o = n.cloneNode(!0);
683
- return s(o), e(o), r(o, "thead"), r(o, "tbody"), r(o, "tfoot"), Array.from(o.querySelectorAll("colgroup col")).forEach((a, c) => {
682
+ }, "resetColIndex"), i = n.cloneNode(!0);
683
+ return s(i), e(i), r(i, "thead"), r(i, "tbody"), r(i, "tfoot"), Array.from(i.querySelectorAll("colgroup col")).forEach((a, c) => {
684
684
  const l = a.getAttribute("fixed");
685
- l && o.querySelectorAll(`thead [data-col="${c}"], tbody [data-col="${c}"], tfoot [data-col="${c}"]`).forEach((f) => {
685
+ l && i.querySelectorAll(`thead [data-col="${c}"], tbody [data-col="${c}"], tfoot [data-col="${c}"]`).forEach((f) => {
686
686
  f.setAttribute("fixed", l);
687
687
  });
688
- }), o;
688
+ }), i;
689
689
  }
690
690
  // 🎯 [μΆ”κ°€] td/th에 μ„ μ–Έλœ cell-type 속성을 읽어 μ»€μŠ€ν…€ νƒœκ·Έλ‘œ μžλ™ 감싸기
691
691
  };
692
692
  h(Ut, "TableCompiler");
693
693
  let pe = Ut;
694
- var F, Ct, mt, rs, os;
694
+ var Y, Ct, mt, rs, is;
695
695
  const De = class De {
696
696
  constructor(n) {
697
697
  d(this, mt);
698
- d(this, F);
698
+ d(this, Y);
699
699
  d(this, Ct, { startRow: -1, startCol: -1, endRow: -1, endCol: -1 });
700
700
  // 3. λ·° λ Œλ”λ§ (9λΆ„ν•  전체λ₯Ό μˆœνšŒν•˜λ©° 경계선 클래슀 λΆ€μ—¬)
701
701
  E(this, "render", /* @__PURE__ */ h(() => {
702
702
  const { startRow: n, startCol: e, endRow: s, endCol: r } = t(this, Ct);
703
- t(this, F).querySelectorAll(
703
+ t(this, Y).querySelectorAll(
704
704
  ".ng-container-left .ng-part-body, .ng-container-body .ng-part-body, .ng-container-right .ng-part-body"
705
- ).forEach((i) => {
706
- i.querySelectorAll(".selected, .selected-top, .selected-bottom, .selected-left, .selected-right").forEach((a) => {
705
+ ).forEach((o) => {
706
+ o.querySelectorAll(".selected, .selected-top, .selected-bottom, .selected-left, .selected-right").forEach((a) => {
707
707
  a.classList.remove("selected", "selected-top", "selected-bottom", "selected-left", "selected-right");
708
- }), !(n < 0) && i.querySelectorAll("tbody tr").forEach((a) => {
708
+ }), !(n < 0) && o.querySelectorAll("tbody tr").forEach((a) => {
709
709
  const c = parseInt(a.dataset.row, 10);
710
710
  isNaN(c) || a.querySelectorAll("td, th").forEach((l) => {
711
711
  const f = parseInt(l.dataset.col, 10);
@@ -716,18 +716,18 @@ const De = class De {
716
716
  });
717
717
  });
718
718
  }, "render"));
719
- p(this, F, n), de(this, mt, os).call(this);
719
+ p(this, Y, n), de(this, mt, is).call(this);
720
720
  }
721
721
  setRange(n, e, s, r) {
722
- let o = Math.min(n, s), i = Math.max(n, s), a = Math.min(e, r), c = Math.max(e, r);
723
- const l = de(this, mt, rs).call(this, o, a, i, c);
722
+ let i = Math.min(n, s), o = Math.max(n, s), a = Math.min(e, r), c = Math.max(e, r);
723
+ const l = de(this, mt, rs).call(this, i, a, o, c);
724
724
  p(this, Ct, l), this.render();
725
725
  }
726
726
  };
727
- F = new WeakMap(), Ct = new WeakMap(), mt = new WeakSet(), // λ¨Έμ§€λœ 셀이 선택 μ˜μ—­μ— 걸쳐있으면 λ²”μœ„λ₯Ό μžλ™μœΌλ‘œ λ„“ν˜€μ£ΌλŠ” 보정기
727
+ Y = new WeakMap(), Ct = new WeakMap(), mt = new WeakSet(), // λ¨Έμ§€λœ 셀이 선택 μ˜μ—­μ— 걸쳐있으면 λ²”μœ„λ₯Ό μžλ™μœΌλ‘œ λ„“ν˜€μ£ΌλŠ” 보정기
728
728
  rs = /* @__PURE__ */ h(function(n, e, s, r) {
729
- let o = n, i = e, a = s, c = r, l = !0;
730
- const f = t(this, F).querySelectorAll(
729
+ let i = n, o = e, a = s, c = r, l = !0;
730
+ const f = t(this, Y).querySelectorAll(
731
731
  ".ng-container-left .ng-part-body, .ng-container-body .ng-part-body, .ng-container-right .ng-part-body"
732
732
  );
733
733
  for (; l; )
@@ -735,38 +735,38 @@ rs = /* @__PURE__ */ h(function(n, e, s, r) {
735
735
  g.querySelectorAll("tbody tr").forEach((b) => {
736
736
  const u = parseInt(b.dataset.row, 10);
737
737
  isNaN(u) || b.querySelectorAll("td, th").forEach((y) => {
738
- const x = parseInt(y.dataset.col, 10);
739
- if (isNaN(x)) return;
740
- const A = parseInt(y.rowSpan || 1, 10), v = parseInt(y.colSpan || 1, 10), M = u + A - 1, q = x + v - 1;
741
- if (u <= a && M >= o && x <= c && q >= i) {
742
- const j = Math.min(o, u), Je = Math.max(a, M), Qe = Math.min(i, x), ts = Math.max(c, q);
743
- (j !== o || Je !== a || Qe !== i || ts !== c) && (o = j, a = Je, i = Qe, c = ts, l = !0);
738
+ const v = parseInt(y.dataset.col, 10);
739
+ if (isNaN(v)) return;
740
+ const A = parseInt(y.rowSpan || 1, 10), x = parseInt(y.colSpan || 1, 10), M = u + A - 1, q = v + x - 1;
741
+ if (u <= a && M >= i && v <= c && q >= o) {
742
+ const F = Math.min(i, u), Je = Math.max(a, M), Qe = Math.min(o, v), ts = Math.max(c, q);
743
+ (F !== i || Je !== a || Qe !== o || ts !== c) && (i = F, a = Je, o = Qe, c = ts, l = !0);
744
744
  }
745
745
  });
746
746
  });
747
747
  });
748
- return { startRow: o, startCol: i, endRow: a, endCol: c };
749
- }, "#expandRangeByMerge"), os = /* @__PURE__ */ h(function() {
750
- const n = this.selector ? t(this, F).querySelector(".ng-container-top") : t(this, F).querySelector(".ng-container-top");
748
+ return { startRow: i, startCol: o, endRow: a, endCol: c };
749
+ }, "#expandRangeByMerge"), is = /* @__PURE__ */ h(function() {
750
+ const n = t(this, Y).querySelector(".ng-container-top");
751
751
  n && n.addEventListener("mousedown", (e) => {
752
752
  const s = e.target.closest("td, th");
753
753
  if (!s || s.dataset.row === void 0 || s.dataset.col === void 0 || s.closest("tr").classList.contains("nodata")) return;
754
- const r = parseInt(s.dataset.row, 10), o = parseInt(s.dataset.col, 10);
755
- this.setRange(r, o, r, o);
756
- const i = /* @__PURE__ */ h((c) => {
754
+ const r = parseInt(s.dataset.row, 10), i = parseInt(s.dataset.col, 10);
755
+ this.setRange(r, i, r, i);
756
+ const o = /* @__PURE__ */ h((c) => {
757
757
  const l = document.elementFromPoint(c.clientX, c.clientY), f = l == null ? void 0 : l.closest("td, th");
758
- if (!f || !t(this, F).contains(f) || f.dataset.row === void 0 || f.dataset.col === void 0 || f.closest("tr").classList.contains("nodata")) return;
758
+ if (!f || !t(this, Y).contains(f) || f.dataset.row === void 0 || f.dataset.col === void 0 || f.closest("tr").classList.contains("nodata")) return;
759
759
  const g = parseInt(f.dataset.row, 10), b = parseInt(f.dataset.col, 10);
760
- this.setRange(r, o, g, b);
760
+ this.setRange(r, i, g, b);
761
761
  }, "onMouseMove"), a = /* @__PURE__ */ h(() => {
762
- document.removeEventListener("mousemove", i), document.removeEventListener("mouseup", a);
762
+ document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", a);
763
763
  }, "onMouseUp");
764
- document.addEventListener("mousemove", i), document.addEventListener("mouseup", a);
764
+ document.addEventListener("mousemove", o), document.addEventListener("mouseup", a);
765
765
  });
766
766
  }, "#initEvents"), h(De, "CellSelection");
767
767
  let ye = De;
768
768
  var Xt, nt, rt, Lt, Kt, Zt, dt, Gt, Jt;
769
- const vt = class vt extends HTMLElement {
769
+ const xt = class xt extends HTMLElement {
770
770
  constructor() {
771
771
  super();
772
772
  d(this, Xt);
@@ -779,10 +779,10 @@ const vt = class vt extends HTMLElement {
779
779
  E(this, "generate", /* @__PURE__ */ h((e) => {
780
780
  if (T.log("sheet.generate()"), !e) return;
781
781
  p(this, nt, pe.compile(e)), t(this, Kt).call(this), t(this, Zt).call(this);
782
- const s = this.querySelector(".ng-container-body .ng-part-header"), r = this.querySelector(".ng-container-body .ng-part-footer"), o = this.querySelector(".ng-nodata-overlay");
783
- s && o && (o.style.top = `${s.offsetHeight}px`), r && o && (o.style.bottom = `${r.offsetHeight}px`), t(this, rt).initialize(), setTimeout(() => {
784
- var i;
785
- (i = this.querySelector("nine-table-hscrollbar")) == null || i.refresh();
782
+ const s = this.querySelector(".ng-container-body .ng-part-header"), r = this.querySelector(".ng-container-body .ng-part-footer"), i = this.querySelector(".ng-nodata-overlay");
783
+ s && i && (i.style.top = `${s.offsetHeight}px`), r && i && (i.style.bottom = `${r.offsetHeight}px`), t(this, rt).initialize(), setTimeout(() => {
784
+ var o;
785
+ (o = this.querySelector("nine-table-hscrollbar")) == null || o.refresh();
786
786
  }, 0);
787
787
  }, "generate"));
788
788
  d(this, Kt, /* @__PURE__ */ h(() => {
@@ -791,36 +791,36 @@ const vt = class vt extends HTMLElement {
791
791
  { selector: ".ng-container-left", type: "left" },
792
792
  { selector: ".ng-container-right", type: "right" }
793
793
  ].forEach(({ selector: s, type: r }) => {
794
- var o, i, a;
795
- (o = this.querySelector(`${s} .ng-part-header`)) == null || o.appendChild(t(this, dt).call(this, t(this, nt), r, "header")), (i = this.querySelector(`${s} .ng-virtual-spacer`)) == null || i.before(t(this, dt).call(this, t(this, nt), r, "body")), (a = this.querySelector(`${s} .ng-part-footer`)) == null || a.appendChild(t(this, dt).call(this, t(this, nt), r, "footer"));
794
+ var i, o, a;
795
+ (i = this.querySelector(`${s} .ng-part-header`)) == null || i.appendChild(t(this, dt).call(this, t(this, nt), r, "header")), (o = this.querySelector(`${s} .ng-virtual-spacer`)) == null || o.before(t(this, dt).call(this, t(this, nt), r, "body")), (a = this.querySelector(`${s} .ng-part-footer`)) == null || a.appendChild(t(this, dt).call(this, t(this, nt), r, "footer"));
796
796
  });
797
797
  }, "#renderSplitContainers"));
798
798
  d(this, Zt, /* @__PURE__ */ h(() => {
799
799
  ["left", "right", "body"].forEach((e) => {
800
800
  const s = this.querySelector(`.ng-container-${e}`), r = s == null ? void 0 : s.querySelectorAll("table");
801
801
  if (!s || !r || r.length === 0) return;
802
- let o = 0;
803
- r[0].querySelectorAll("col").forEach((i) => {
804
- const a = parseInt(i.getAttribute("width"), 10);
805
- isNaN(o) || (o += a);
806
- }), e === "body" ? s.style.flex = "1" : (s.style.flex = `0 0 ${o}px`, s.style.width = `${o}px`);
802
+ let i = 0;
803
+ r[0].querySelectorAll("col").forEach((o) => {
804
+ const a = parseInt(o.getAttribute("width"), 10);
805
+ isNaN(i) || (i += a);
806
+ }), e === "body" ? s.style.flex = "1" : (s.style.flex = `0 0 ${i}px`, s.style.width = `${i}px`);
807
807
  });
808
808
  }, "#updateContainerWidths"));
809
809
  d(this, dt, /* @__PURE__ */ h((e, s, r) => {
810
- const o = e.cloneNode(!0), i = o.querySelector("thead"), a = o.querySelector("tbody"), c = o.querySelector("tfoot");
810
+ const i = e.cloneNode(!0), o = i.querySelector("thead"), a = i.querySelector("tbody"), c = i.querySelector("tfoot");
811
811
  if (r === "header") {
812
812
  if (a && a.remove(), c && c.remove(), e.querySelector("tbody")) {
813
813
  const f = document.createElement("tbody");
814
- f.className = "fixed-tbody", o.appendChild(f);
814
+ f.className = "fixed-tbody", i.appendChild(f);
815
815
  }
816
- } else r === "body" ? (i && i.remove(), c && c.remove(), a && (a.className = "bindable-tbody")) : r === "footer" && (i && i.remove(), a && a.remove());
817
- return s === "left" ? o.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach((l) => {
816
+ } else r === "body" ? (o && o.remove(), c && c.remove(), a && (a.className = "bindable-tbody")) : r === "footer" && (o && o.remove(), a && a.remove());
817
+ return s === "left" ? i.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach((l) => {
818
818
  l.getAttribute("fixed") !== "left" && l.remove();
819
- }) : s === "right" ? o.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach((l) => {
819
+ }) : s === "right" ? i.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach((l) => {
820
820
  l.getAttribute("fixed") !== "right" && l.remove();
821
- }) : o.querySelectorAll("[fixed=left], [fixed=right]").forEach((l) => {
821
+ }) : i.querySelectorAll("[fixed=left], [fixed=right]").forEach((l) => {
822
822
  l.remove();
823
- }), o;
823
+ }), i;
824
824
  }, "#createSplitTable"));
825
825
  E(this, "getRowHeight", /* @__PURE__ */ h(() => t(this, rt).getRowHeight(), "getRowHeight"));
826
826
  E(this, "scrollToX", /* @__PURE__ */ h((e) => {
@@ -835,7 +835,7 @@ const vt = class vt extends HTMLElement {
835
835
  t(this, Jt).call(this), p(this, Lt, new ye(this));
836
836
  }, "#init"));
837
837
  d(this, Jt, /* @__PURE__ */ h(() => {
838
- const e = vt.SCROLLBAR_SIZE;
838
+ const e = xt.SCROLLBAR_SIZE;
839
839
  this.innerHTML = `
840
840
  <style>
841
841
  nine-table-sheet {
@@ -988,10 +988,10 @@ const vt = class vt extends HTMLElement {
988
988
  }
989
989
 
990
990
  /* μ™Έκ³½ κ²½κ³„μ„ μ—λ§Œ μ μš©λ˜λŠ” λ‹¨λ‹¨ν•œ ν…Œλ‘λ¦¬ */
991
- nine-table-sheet td.selected-top { border-top: 2px solid #2563eb !important; }
992
- nine-table-sheet td.selected-bottom { border-bottom: 2px solid #2563eb !important; }
993
- nine-table-sheet td.selected-left { border-left: 2px solid #2563eb !important; }
994
- nine-table-sheet td.selected-right { border-right: 2px solid #2563eb !important; }
991
+ nine-table-sheet td.selected-top { box-shadow: inset 0 2px 0 #2563eb !important; z-index: 2; }
992
+ nine-table-sheet td.selected-bottom { box-shadow: inset 0 -2px 0 #2563eb !important; z-index: 2; }
993
+ nine-table-sheet td.selected-left { box-shadow: inset 2px 0 0 #2563eb !important; z-index: 2; }
994
+ nine-table-sheet td.selected-right { box-shadow: inset -2px 0 0 #2563eb !important; z-index: 2; }
995
995
  </style>
996
996
 
997
997
  <div class='ng-container-top'>
@@ -1047,9 +1047,9 @@ const vt = class vt extends HTMLElement {
1047
1047
  this.innerHTML = "", T.log("NineTableSheet destroyed.");
1048
1048
  }
1049
1049
  };
1050
- Xt = new WeakMap(), nt = new WeakMap(), rt = new WeakMap(), Lt = new WeakMap(), Kt = new WeakMap(), Zt = new WeakMap(), dt = new WeakMap(), Gt = new WeakMap(), Jt = new WeakMap(), h(vt, "NineTableSheet"), E(vt, "SCROLLBAR_SIZE", 16);
1051
- let Ot = vt;
1052
- customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", Ot);
1050
+ Xt = new WeakMap(), nt = new WeakMap(), rt = new WeakMap(), Lt = new WeakMap(), Kt = new WeakMap(), Zt = new WeakMap(), dt = new WeakMap(), Gt = new WeakMap(), Jt = new WeakMap(), h(xt, "NineTableSheet"), E(xt, "SCROLLBAR_SIZE", 16);
1051
+ let Wt = xt;
1052
+ customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", Wt);
1053
1053
  var Qt, Ht;
1054
1054
  const Fe = class Fe extends HTMLElement {
1055
1055
  constructor() {
@@ -1057,9 +1057,9 @@ const Fe = class Fe extends HTMLElement {
1057
1057
  d(this, Qt, /* @__PURE__ */ h(() => {
1058
1058
  var e;
1059
1059
  (e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
1060
- var i;
1061
- const r = s.ctrlKey || s.metaKey || s.shiftKey, o = parseInt((i = s.target.closest(".nine-tab-item")) == null ? void 0 : i.dataset.index, 10);
1062
- t(this, Ht).call(this, o, r);
1060
+ var o;
1061
+ const r = s.ctrlKey || s.metaKey || s.shiftKey, i = parseInt((o = s.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
1062
+ t(this, Ht).call(this, i, r);
1063
1063
  }), t(this, Ht).call(this, 0, !1);
1064
1064
  }, "#init"));
1065
1065
  d(this, Ht, /* @__PURE__ */ h((e, s = !1) => {
@@ -1068,10 +1068,10 @@ const Fe = class Fe extends HTMLElement {
1068
1068
  Array.from(this.querySelectorAll("nine-splitter")).forEach((u) => u.style.setProperty("display", "none"));
1069
1069
  const b = f.filter((u) => u.classList.contains("active"));
1070
1070
  b.length < 2 || b.forEach((u) => {
1071
- const y = parseInt(u.getAttribute("data-index"), 10), x = this.querySelector(`nine-splitter[data-split-index="${y}"]`), A = f[y + 1];
1072
- x && A && A.classList.contains("active") && x.style.setProperty("display", "flex");
1071
+ const y = parseInt(u.getAttribute("data-index"), 10), v = this.querySelector(`nine-splitter[data-split-index="${y}"]`), A = f[y + 1];
1072
+ v && A && A.classList.contains("active") && v.style.setProperty("display", "flex");
1073
1073
  });
1074
- }, "updateSplitters"), o = this.querySelector(".nine-tab-bar"), i = this.querySelector("nine-table-sheets-body"), a = o.querySelectorAll(".nine-tab-item"), c = i.querySelectorAll("nine-table-sheet");
1074
+ }, "updateSplitters"), i = this.querySelector(".nine-tab-bar"), o = this.querySelector("nine-table-sheets-body"), a = i.querySelectorAll(".nine-tab-item"), c = o.querySelectorAll("nine-table-sheet");
1075
1075
  if (!a[e]) return;
1076
1076
  if (!s)
1077
1077
  a.forEach((f, g) => {
@@ -1081,14 +1081,14 @@ const Fe = class Fe extends HTMLElement {
1081
1081
  f.classList.toggle("active", b), f.style.flex = b ? "1 1 100%" : "";
1082
1082
  });
1083
1083
  else {
1084
- const f = a[e], g = o.querySelectorAll(".nine-tab-item.active");
1084
+ const f = a[e], g = i.querySelectorAll(".nine-tab-item.active");
1085
1085
  if (f.classList.contains("active") && g.length <= 1)
1086
1086
  return;
1087
1087
  f.classList.toggle("active");
1088
- const b = i.querySelector(`nine-table-sheet[data-index="${e}"]`);
1088
+ const b = o.querySelector(`nine-table-sheet[data-index="${e}"]`);
1089
1089
  b && (b.classList.toggle("active"), b.classList.contains("active") || (b.style.flex = ""));
1090
1090
  }
1091
- const l = i.querySelectorAll("nine-table-sheet.active");
1091
+ const l = o.querySelectorAll("nine-table-sheet.active");
1092
1092
  l == null || l.forEach((f) => {
1093
1093
  f.style.flex = l.length > 1 ? "1 1 0%" : "1 1 100%";
1094
1094
  }), r();
@@ -1115,14 +1115,14 @@ const je = class je {
1115
1115
  var c, l;
1116
1116
  const n = Array.from(t(this, I).shadowRoot.querySelectorAll("nine-table-sheet.active"));
1117
1117
  if (n.length === 0) return;
1118
- const e = parseInt(t(this, I).getAttribute("max-display-row"), 10) || 10, s = Math.max(...n.map((f) => f.getRowHeight())), r = (c = t(this, I).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, o = (l = t(this, I).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, i = Ot.SCROLLBAR_SIZE, a = e * s + r + o + i;
1118
+ const e = parseInt(t(this, I).getAttribute("max-display-row"), 10) || 10, s = Math.max(...n.map((f) => f.getRowHeight())), r = (c = t(this, I).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, i = (l = t(this, I).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = Wt.SCROLLBAR_SIZE, a = e * s + r + i + o;
1119
1119
  t(this, I).style.height = `${a}px`;
1120
1120
  }, "#applyAutoHeight"));
1121
1121
  d(this, ee, /* @__PURE__ */ h(() => {
1122
- const e = Array.from(t(this, I).children).filter((c) => c.tagName === "TABLE"), s = t(this, I).getAttribute("auto-height") === "true", r = e.length, o = e.map((c, l) => {
1122
+ const e = Array.from(t(this, I).children).filter((c) => c.tagName === "TABLE"), s = t(this, I).getAttribute("auto-height") === "true", r = e.length, i = e.map((c, l) => {
1123
1123
  const g = `<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>` : "";
1124
1124
  return g + b;
1125
- }).join(""), i = e.map((c, l) => `<div class="nine-tab-item ${l === 0 ? "active" : ""}" data-index="${l}">Sheet ${l + 1}</div>`).join("");
1125
+ }).join(""), o = e.map((c, l) => `<div class="nine-tab-item ${l === 0 ? "active" : ""}" data-index="${l}">Sheet ${l + 1}</div>`).join("");
1126
1126
  t(this, I).shadowRoot.innerHTML = `
1127
1127
  <style>
1128
1128
  :host {
@@ -1234,9 +1234,9 @@ const je = class je {
1234
1234
  <nine-table-body>
1235
1235
  <nine-table-summary></nine-table-summary>
1236
1236
  <nine-table-sheets>
1237
- <nine-table-sheets-body>${o}</nine-table-sheets-body>
1237
+ <nine-table-sheets-body>${i}</nine-table-sheets-body>
1238
1238
  <nine-table-sheets-footer>
1239
- <div class="nine-tab-bar">${i}</div>
1239
+ <div class="nine-tab-bar">${o}</div>
1240
1240
  <div class="sheets-counter">Total : <span id="row-count">0</span></div>
1241
1241
  </nine-table-sheets-footer>
1242
1242
  </nine-table-sheets>
@@ -1255,7 +1255,7 @@ const je = class je {
1255
1255
  }
1256
1256
  };
1257
1257
  I = new WeakMap(), te = new WeakMap(), Mt = new WeakMap(), ee = new WeakMap(), h(je, "LayoutManager");
1258
- let ve = je;
1258
+ let xe = je;
1259
1259
  var It, ft;
1260
1260
  const Ve = class Ve {
1261
1261
  constructor(n) {
@@ -1273,13 +1273,13 @@ const Ve = class Ve {
1273
1273
  }
1274
1274
  };
1275
1275
  It = new WeakMap(), ft = new WeakMap(), h(Ve, "ngRow");
1276
- let xe = Ve;
1277
- var N, C, W, ut, se, U, ne, ot, $t, re, oe, gt;
1278
- const B = class B {
1276
+ let ve = Ve;
1277
+ var N, C, z, ut, se, U, ne, it, $t, re, ie, gt;
1278
+ const O = class O {
1279
1279
  constructor(n, e) {
1280
1280
  d(this, N);
1281
1281
  d(this, C);
1282
- d(this, W, []);
1282
+ d(this, z, []);
1283
1283
  d(this, ut, []);
1284
1284
  d(this, se, 0);
1285
1285
  d(this, U, []);
@@ -1293,107 +1293,107 @@ const B = class B {
1293
1293
  e.__ng || (e.__ng = t(this, $t).call(this)), e.__ng.height = t(this, U).slice();
1294
1294
  });
1295
1295
  }, "#initialize"));
1296
- d(this, ot, /* @__PURE__ */ h(() => {
1296
+ d(this, it, /* @__PURE__ */ h(() => {
1297
1297
  const n = t(this, N).shadowRoot.querySelector("nine-table-sheets");
1298
1298
  n == null || n.classList.toggle("nodata", this.length === 0), t(this, N).shadowRoot.querySelectorAll("nine-table-sheet").forEach((e) => {
1299
1299
  e.invalidate();
1300
1300
  });
1301
1301
  }, "#invalidate"));
1302
1302
  E(this, "get", /* @__PURE__ */ h((n, e) => {
1303
- var o;
1303
+ var i;
1304
1304
  const s = this.getValidData();
1305
1305
  if (!s || s.length <= 0) return;
1306
1306
  if (n == null) return t(this, gt).call(this, s);
1307
1307
  if (n < 0 || n >= s.length) return null;
1308
- const r = typeof ((o = t(this, N).fields) == null ? void 0 : o.get) == "function" ? t(this, N).fields.get() : [];
1308
+ const r = typeof ((i = t(this, N).fields) == null ? void 0 : i.get) == "function" ? t(this, N).fields.get() : [];
1309
1309
  if (e != null) {
1310
- const i = r.indexOf(e);
1311
- return i >= 0 ? s[n].v[i] : null;
1310
+ const o = r.indexOf(e);
1311
+ return o >= 0 ? s[n].v[o] : null;
1312
1312
  }
1313
1313
  return t(this, gt).call(this, s[n]);
1314
1314
  }, "get"));
1315
1315
  E(this, "set", /* @__PURE__ */ h((n) => {
1316
- this.clear(), this.add(n, !1), t(this, ot).call(this);
1316
+ this.clear(), this.add(n, !1), t(this, it).call(this);
1317
1317
  }, "set"));
1318
1318
  d(this, $t, /* @__PURE__ */ h(() => ({
1319
- rowState: B.ROW_STATE.EMPTY,
1319
+ rowState: O.ROW_STATE.EMPTY,
1320
1320
  deleted: !1,
1321
1321
  filtered: !1,
1322
1322
  height: t(this, U).slice(),
1323
1323
  o: {},
1324
1324
  c: {},
1325
- _: [0, 0, 0, 0, B.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, U).slice(), -1, {}, {}]
1325
+ _: [0, 0, 0, 0, O.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, U).slice(), -1, {}, {}]
1326
1326
  }), "#getDefaultMeta"));
1327
1327
  E(this, "reset", /* @__PURE__ */ h(() => {
1328
- p(this, W, []), p(this, ut, []), t(this, ot).call(this);
1328
+ p(this, z, []), p(this, ut, []), t(this, it).call(this);
1329
1329
  }, "reset"));
1330
1330
  E(this, "clear", /* @__PURE__ */ h(() => {
1331
1331
  var n;
1332
- t(this, C).rawRecords = [], p(this, W, []), p(this, ut, []), (n = t(this, C).viewRecords) != null && n.reset && t(this, C).viewRecords.reset();
1332
+ t(this, C).rawRecords = [], p(this, z, []), p(this, ut, []), (n = t(this, C).viewRecords) != null && n.reset && t(this, C).viewRecords.reset();
1333
1333
  }, "clear"));
1334
1334
  d(this, re, /* @__PURE__ */ h((n) => {
1335
1335
  var r;
1336
1336
  Array.isArray(n) || (n = [n]);
1337
1337
  const e = typeof ((r = t(this, N).fields) == null ? void 0 : r.get) == "function" ? t(this, N).fields.get() : Object.keys(n[0] || {}), s = [];
1338
- return n.forEach((o) => {
1339
- const i = { v: [] };
1338
+ return n.forEach((i) => {
1339
+ const o = { v: [] };
1340
1340
  e.forEach((a) => {
1341
- i.v.push(o[a] !== void 0 && o[a] !== null ? o[a] : "");
1342
- }), s.push(i);
1341
+ o.v.push(i[a] !== void 0 && i[a] !== null ? i[a] : "");
1342
+ }), s.push(o);
1343
1343
  }), s;
1344
1344
  }, "#json2Array"));
1345
- d(this, oe, /* @__PURE__ */ h((n) => (Array.isArray(n) || (n = [n]), n.forEach((e) => {
1346
- e.__ng = t(this, $t).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = B.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1345
+ d(this, ie, /* @__PURE__ */ h((n) => (Array.isArray(n) || (n = [n]), n.forEach((e) => {
1346
+ e.__ng = t(this, $t).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = O.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1347
1347
  }), n), "#defaultInsert"));
1348
1348
  E(this, "add", /* @__PURE__ */ h((n, e = !0) => {
1349
1349
  n === void 0 && (n = {});
1350
1350
  const s = t(this, re).call(this, n);
1351
- t(this, C).rawRecords = t(this, C).rawRecords.concat(t(this, oe).call(this, s)), this.resetRecords();
1351
+ t(this, C).rawRecords = t(this, C).rawRecords.concat(t(this, ie).call(this, s)), this.resetRecords();
1352
1352
  const r = this.count() - 1;
1353
- return e || s.forEach((o, i) => {
1354
- const a = t(this, C).rawRecords[r - i];
1355
- a && (a.__ng.rowState = B.ROW_STATE.EMPTY);
1356
- }), t(this, ot).call(this), r;
1353
+ return e || s.forEach((i, o) => {
1354
+ const a = t(this, C).rawRecords[r - o];
1355
+ a && (a.__ng.rowState = O.ROW_STATE.EMPTY);
1356
+ }), t(this, it).call(this), r;
1357
1357
  }, "add"));
1358
1358
  E(this, "delete", /* @__PURE__ */ h((n) => {
1359
1359
  let e = [];
1360
1360
  Array.isArray(n) ? e = n : typeof n > "u" ? e = [t(this, C).host.row.at] : e = [parseInt(n, 10)], e.sort((s, r) => r - s).forEach((s) => {
1361
- if (t(this, W)[s]) {
1362
- const r = t(this, W)[s].__ng.rowid;
1363
- t(this, W)[s].__ng.rowState === B.ROW_STATE.INSERT ? t(this, C).rawRecords = t(this, C).rawRecords.filter((o) => o.__ng.rowid !== r) : t(this, C).rawRecords.forEach((o) => {
1364
- o.__ng.rowid === r && (o.__ng.deleted = !0, o.__ng.rowState = B.ROW_STATE.DELETE);
1361
+ if (t(this, z)[s]) {
1362
+ const r = t(this, z)[s].__ng.rowid;
1363
+ t(this, z)[s].__ng.rowState === O.ROW_STATE.INSERT ? t(this, C).rawRecords = t(this, C).rawRecords.filter((i) => i.__ng.rowid !== r) : t(this, C).rawRecords.forEach((i) => {
1364
+ i.__ng.rowid === r && (i.__ng.deleted = !0, i.__ng.rowState = O.ROW_STATE.DELETE);
1365
1365
  });
1366
1366
  }
1367
- }), this.resetRecords(), t(this, ot).call(this);
1367
+ }), this.resetRecords(), t(this, it).call(this);
1368
1368
  }, "delete"));
1369
1369
  E(this, "setValue", /* @__PURE__ */ h((n, e, s) => {
1370
1370
  var c;
1371
1371
  n = parseInt(n, 10);
1372
- const o = (typeof ((c = t(this, N).fields) == null ? void 0 : c.get) == "function" ? t(this, N).fields.get() : []).indexOf(e);
1373
- if (o < 0) return;
1374
- const i = this.getValidData()[n];
1375
- if (!i) return;
1376
- const a = i.v[o];
1377
- a !== s && i.__ng.rowState !== B.ROW_STATE.INSERT && (i.__ng.o.hasOwnProperty(e) || (i.__ng.o[e] = a), i.__ng.rowState = B.ROW_STATE.UPDATE), i.v[o] = s;
1372
+ const i = (typeof ((c = t(this, N).fields) == null ? void 0 : c.get) == "function" ? t(this, N).fields.get() : []).indexOf(e);
1373
+ if (i < 0) return;
1374
+ const o = this.getValidData()[n];
1375
+ if (!o) return;
1376
+ const a = o.v[i];
1377
+ 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[i] = s;
1378
1378
  }, "setValue"));
1379
1379
  E(this, "resetRecords", /* @__PURE__ */ h(() => {
1380
- p(this, ut, t(this, C).rawRecords.filter((n) => !n.__ng.deleted)), p(this, W, t(this, C).rawRecords.filter((n) => !n.__ng.deleted && !n.__ng.filtered)), t(this, C).rawRecords.forEach((n, e) => {
1380
+ p(this, ut, t(this, C).rawRecords.filter((n) => !n.__ng.deleted)), p(this, z, t(this, C).rawRecords.filter((n) => !n.__ng.deleted && !n.__ng.filtered)), t(this, C).rawRecords.forEach((n, e) => {
1381
1381
  n.__ng.rowidx = e;
1382
- }), t(this, W).forEach((n, e) => {
1382
+ }), t(this, z).forEach((n, e) => {
1383
1383
  n.__ng.i = e;
1384
1384
  });
1385
1385
  }, "resetRecords"));
1386
- E(this, "getValidData", /* @__PURE__ */ h(() => (t(this, W).length === 0 && t(this, C).rawRecords.length > 0 && this.resetRecords(), t(this, W)), "getValidData"));
1386
+ E(this, "getValidData", /* @__PURE__ */ h(() => (t(this, z).length === 0 && t(this, C).rawRecords.length > 0 && this.resetRecords(), t(this, z)), "getValidData"));
1387
1387
  d(this, gt, /* @__PURE__ */ h((n) => {
1388
- var i;
1388
+ var o;
1389
1389
  if (!n) return n;
1390
- const e = !Array.isArray(n), s = e ? [n] : n, r = typeof ((i = t(this, N).fields) == null ? void 0 : i.get) == "function" ? t(this, N).fields.get() : [], o = s.filter((a) => !a.__ng.deleted).map((a) => {
1390
+ const e = !Array.isArray(n), s = e ? [n] : n, r = typeof ((o = t(this, N).fields) == null ? void 0 : o.get) == "function" ? t(this, N).fields.get() : [], i = s.filter((a) => !a.__ng.deleted).map((a) => {
1391
1391
  const c = {};
1392
1392
  return r.forEach((l, f) => {
1393
1393
  c[l] = a.v ? a.v[f] : a[l];
1394
1394
  }), c.__ng = a.__ng, c;
1395
1395
  });
1396
- return e ? o[0] : o;
1396
+ return e ? i[0] : i;
1397
1397
  }, "#conv"));
1398
1398
  E(this, "count", /* @__PURE__ */ h(() => this.getValidData().length, "count"));
1399
1399
  p(this, N, n), p(this, C, e), t(this, ne).call(this);
@@ -1408,38 +1408,38 @@ const B = class B {
1408
1408
  return ++ns(this, se)._;
1409
1409
  }
1410
1410
  get count() {
1411
- return t(this, W).length;
1411
+ return t(this, z).length;
1412
1412
  }
1413
1413
  get length() {
1414
- return t(this, W).length;
1414
+ return t(this, z).length;
1415
1415
  }
1416
1416
  getRowCount() {
1417
1417
  return this.length;
1418
1418
  }
1419
1419
  };
1420
- N = new WeakMap(), C = new WeakMap(), W = new WeakMap(), ut = new WeakMap(), se = new WeakMap(), U = new WeakMap(), ne = new WeakMap(), ot = new WeakMap(), $t = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), gt = new WeakMap(), h(B, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1421
- E(B, "ROW_STATE", {
1420
+ N = new WeakMap(), C = new WeakMap(), z = new WeakMap(), ut = new WeakMap(), se = new WeakMap(), U = new WeakMap(), ne = new WeakMap(), it = new WeakMap(), $t = new WeakMap(), re = new WeakMap(), ie = new WeakMap(), gt = new WeakMap(), h(O, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1421
+ E(O, "ROW_STATE", {
1422
1422
  EMPTY: "EMPTY",
1423
1423
  NORMAL: "NORMAL",
1424
1424
  INSERT: "INSERT",
1425
1425
  UPDATE: "UPDATE",
1426
1426
  DELETE: "DELETE"
1427
1427
  });
1428
- let we = B;
1429
- var it;
1428
+ let we = O;
1429
+ var ot;
1430
1430
  const Ye = class Ye {
1431
1431
  constructor(n) {
1432
- d(this, it);
1433
- p(this, it, n), this.row = new xe(this), this.data = new we(t(this, it), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1432
+ d(this, ot);
1433
+ p(this, ot, n), this.row = new ve(this), this.data = new we(t(this, ot), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1434
1434
  var e;
1435
- (e = t(this, it).view) != null && e.redraw && t(this, it).view.redraw();
1435
+ (e = t(this, ot).view) != null && e.redraw && t(this, ot).view.redraw();
1436
1436
  }, this.setDataSource = (e) => {
1437
1437
  this.data && this.data.reset(), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.data.set(e || []);
1438
1438
  }, this.getRowState = (e) => {
1439
- var r, o;
1439
+ var r, i;
1440
1440
  const s = parseInt(e, 10);
1441
1441
  if (!(s >= this.data.count()))
1442
- return (o = (r = this.data.getValidData()[s]) == null ? void 0 : r.__ng) == null ? void 0 : o.rowState;
1442
+ return (i = (r = this.data.getValidData()[s]) == null ? void 0 : r.__ng) == null ? void 0 : i.rowState;
1443
1443
  }, this.getRowPosition = () => this.row.at, this.setRowPosition = (e) => {
1444
1444
  this.row.at = e;
1445
1445
  }, 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) => {
@@ -1447,9 +1447,9 @@ const Ye = class Ye {
1447
1447
  }, this.setDataSource([]);
1448
1448
  }
1449
1449
  };
1450
- it = new WeakMap(), h(Ye, "ngDataManager");
1450
+ ot = new WeakMap(), h(Ye, "ngDataManager");
1451
1451
  let Se = Ye;
1452
- var bt, H, _t, ie;
1452
+ var bt, H, _t, oe;
1453
1453
  const Ue = class Ue {
1454
1454
  // 🎯 이제 { name: string, type: string } κ°μ²΄λ“€μ˜ λ°°μ—΄λ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.
1455
1455
  constructor(n) {
@@ -1466,31 +1466,31 @@ const Ue = class Ue {
1466
1466
  n.set(e.name, e.type);
1467
1467
  }), p(this, H, Array.from(n, ([e, s]) => ({ name: e, type: s }))), p(this, H, t(this, H).filter((e) => e.name !== "" && e.name !== "__ng")), t(this, H).sort((e, s) => e.name.length < s.name.length ? 1 : -1);
1468
1468
  }, "#adjust"));
1469
- d(this, ie, /* @__PURE__ */ h(() => {
1469
+ d(this, oe, /* @__PURE__ */ h(() => {
1470
1470
  p(this, H, []), T.log(t(this, bt).querySelectorAll("table"));
1471
1471
  const n = Array.from(t(this, bt).querySelectorAll("table"));
1472
1472
  if (!(!n || n.length === 0)) {
1473
1473
  for (const e of n)
1474
1474
  T.log(e), $("[data-bind]", e).each((s, r) => {
1475
- const o = r.dataset.bind, i = r.getAttribute("data-type") || "string";
1476
- o && t(this, H).push({ name: o, type: i });
1475
+ const i = r.dataset.bind, o = r.getAttribute("data-type") || "string";
1476
+ i && t(this, H).push({ name: i, type: o });
1477
1477
  }), ["data-expr", "background-color", "color", "tooltip", "visible", "readonly", "enable-button", "enable-check", "class-expr", "icon-color", "icon-src"].forEach((s) => {
1478
- $(`[${s}]`, e).each((r, o) => {
1479
- var i = o.getAttribute(s);
1480
- if (i.indexOf("data.") < 0) {
1481
- const a = i.search(/[(]/g);
1478
+ $(`[${s}]`, e).each((r, i) => {
1479
+ var o = i.getAttribute(s);
1480
+ if (o.indexOf("data.") < 0) {
1481
+ const a = o.search(/[(]/g);
1482
1482
  if (a > 0)
1483
1483
  try {
1484
- i = String(window[i.substring(0, a).trim()]);
1484
+ o = String(window[o.substring(0, a).trim()]);
1485
1485
  } catch {
1486
- i = "";
1486
+ o = "";
1487
1487
  }
1488
1488
  }
1489
- i.split("data.").forEach((a) => {
1489
+ o.split("data.").forEach((a) => {
1490
1490
  if (a.trim() != "") {
1491
1491
  const c = a.search(/[^_A-Za-z0-9]/g);
1492
1492
  let l = "";
1493
- c >= 0 ? l = a.substring(0, c) : i.startsWith("data.") && (l = a.replace("data.", "")), l && t(this, H).push({ name: l, type: "string" });
1493
+ c >= 0 ? l = a.substring(0, c) : o.startsWith("data.") && (l = a.replace("data.", "")), l && t(this, H).push({ name: l, type: "string" });
1494
1494
  }
1495
1495
  });
1496
1496
  });
@@ -1498,7 +1498,7 @@ const Ue = class Ue {
1498
1498
  t(this, _t).call(this);
1499
1499
  }
1500
1500
  }, "#init"));
1501
- p(this, bt, n), t(this, ie).call(this);
1501
+ p(this, bt, n), t(this, oe).call(this);
1502
1502
  }
1503
1503
  // 🎯 기쑴에 ν•„λ“œ μ΄λ¦„λ§Œ μ“°λ˜ κ³³λ“€κ³Όμ˜ ν˜Έν™˜μ„ μœ„ν•΄ 이름 λ°°μ—΄λ§Œ λ¦¬ν„΄ν•˜λŠ” λ©”μ„œλ“œ μœ μ§€
1504
1504
  get() {
@@ -1520,7 +1520,7 @@ const Ue = class Ue {
1520
1520
  return t(this, H).some((e) => e.name === n);
1521
1521
  }
1522
1522
  };
1523
- bt = new WeakMap(), H = new WeakMap(), _t = new WeakMap(), ie = new WeakMap(), h(Ue, "ngFields");
1523
+ bt = new WeakMap(), H = new WeakMap(), _t = new WeakMap(), oe = new WeakMap(), h(Ue, "ngFields");
1524
1524
  let Ee = Ue;
1525
1525
  var at, ae, le;
1526
1526
  const Xe = class Xe extends HTMLElement {
@@ -1530,7 +1530,7 @@ const Xe = class Xe extends HTMLElement {
1530
1530
  d(this, at);
1531
1531
  d(this, ae);
1532
1532
  d(this, le, /* @__PURE__ */ h(() => {
1533
- this.fields = new Ee(this), p(this, ae, new ve(this)), T.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1533
+ this.fields = new Ee(this), p(this, ae, new xe(this)), T.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1534
1534
  }, "#init"));
1535
1535
  this.attachShadow({ mode: "open" }), p(this, at, new Se(this));
1536
1536
  }
@@ -1556,7 +1556,7 @@ const Xe = class Xe extends HTMLElement {
1556
1556
  at = new WeakMap(), ae = new WeakMap(), le = new WeakMap(), h(Xe, "NineTable");
1557
1557
  let Ae = Xe;
1558
1558
  customElements.get("nine-table") || customElements.define("nine-table", Ae);
1559
- const xt = class xt extends HTMLElement {
1559
+ const vt = class vt extends HTMLElement {
1560
1560
  // πŸ‘ˆ μ»€μŠ€ν…€ μŠ€νƒ€μΌμš© μΊμ‹œ μΆ”κ°€
1561
1561
  constructor() {
1562
1562
  super();
@@ -1567,8 +1567,8 @@ const xt = class xt extends HTMLElement {
1567
1567
  connectedCallback() {
1568
1568
  }
1569
1569
  };
1570
- h(xt, "BasicCellElement"), E(xt, "_styleCache", /* @__PURE__ */ new Map()), E(xt, "_customStyleCache", /* @__PURE__ */ new Map());
1571
- let Re = xt;
1570
+ h(vt, "BasicCellElement"), E(vt, "_styleCache", /* @__PURE__ */ new Map()), E(vt, "_customStyleCache", /* @__PURE__ */ new Map());
1571
+ let Re = vt;
1572
1572
  var L, Nt, m, Me, Ie, $e, _e, Ne;
1573
1573
  const Ke = class Ke extends Re {
1574
1574
  constructor() {
@@ -1605,36 +1605,36 @@ const Ke = class Ke extends Re {
1605
1605
  var e = ninegrid.j.querySelectorAll(t(this, m)).attr("suppress");
1606
1606
  if (e && (e = parseInt(e)), e && !isNaN(e)) {
1607
1607
  var s = t(this, m).closest("tr"), r = [];
1608
- $("th,td", s).each((v, M) => {
1608
+ $("th,td", s).each((x, M) => {
1609
1609
  var q = ninegrid.j.querySelectorAll(M).attr("suppress");
1610
1610
  q && M.dataset.row && (q = parseInt(q), !isNaN(q) && q <= e && r.push(q));
1611
1611
  }), r.sort();
1612
- var o = !1;
1612
+ var i = !1;
1613
1613
  if (parseInt(s.sectionRowIndex / t(this, L).template.length) > 0)
1614
- for (var i of r) {
1615
- if (i > e) break;
1614
+ for (var o of r) {
1615
+ if (o > e) break;
1616
1616
  var a = parseInt(t(this, m).dataset.row), c = a - 1, l = t(this, m).closest("tr").data, f = t(this, L).data.get(c);
1617
1617
  t(this, m).dataset.matrixRow;
1618
- var g = t(this, L).body.querySelector(`tbody.bindable [suppress="${i}"][data-matrix-row="${t(this, m).dataset.matrixRow}"]`), b = g.dataset.expr ? this.getExprValue(g.dataset.expr, l, a) : l[g.dataset.bind], u = g.dataset.expr ? this.getExprValue(g.dataset.expr, f, c) : f[g.dataset.bind];
1618
+ var g = t(this, L).body.querySelector(`tbody.bindable [suppress="${o}"][data-matrix-row="${t(this, m).dataset.matrixRow}"]`), b = g.dataset.expr ? this.getExprValue(g.dataset.expr, l, a) : l[g.dataset.bind], u = g.dataset.expr ? this.getExprValue(g.dataset.expr, f, c) : f[g.dataset.bind];
1619
1619
  if (b != u) {
1620
- o = !0;
1620
+ i = !0;
1621
1621
  break;
1622
1622
  }
1623
1623
  }
1624
1624
  else
1625
- o = !0;
1626
- o ? ninegrid.j.querySelectorAll(t(this, m)).removeClass("suppress") : ninegrid.j.querySelectorAll(t(this, m)).addClass("suppress"), ninegrid.j.querySelectorAll(t(this, m)).hasClass("hidden") || (o ? ninegrid.j.querySelectorAll(t(this, m)).removeClass("hidden") : ninegrid.j.querySelectorAll(t(this, m)).addClass("hidden"));
1627
- var y = parseInt(t(this, m).dataset.matrixRow), x = y - 1, A = t(this, L).body.querySelector(`tbody.bindable [data-col="${t(this, m).dataset.col}"][data-matrix-row="${x}"]`);
1625
+ i = !0;
1626
+ i ? ninegrid.j.querySelectorAll(t(this, m)).removeClass("suppress") : ninegrid.j.querySelectorAll(t(this, m)).addClass("suppress"), ninegrid.j.querySelectorAll(t(this, m)).hasClass("hidden") || (i ? ninegrid.j.querySelectorAll(t(this, m)).removeClass("hidden") : ninegrid.j.querySelectorAll(t(this, m)).addClass("hidden"));
1627
+ var y = parseInt(t(this, m).dataset.matrixRow), v = y - 1, A = t(this, L).body.querySelector(`tbody.bindable [data-col="${t(this, m).dataset.col}"][data-matrix-row="${v}"]`);
1628
1628
  $(A).hasClass("suppress") && !ninegrid.j.querySelectorAll(t(this, m)).hasClass("suppress") ? ninegrid.j.querySelectorAll(A).removeClass("last-none-suppress").addClass("last-suppress") : !$(A).hasClass("suppress") && ninegrid.j.querySelectorAll(t(this, m)).hasClass("suppress") ? ninegrid.j.querySelectorAll(A).removeClass("last-suppress").addClass("last-none-suppress") : ninegrid.j.querySelectorAll(A).removeClass("last-none-suppress").removeClass("last-suppress");
1629
1629
  }
1630
1630
  }
1631
1631
  }, "#resetSuppress"));
1632
- E(this, "getExprValue", /* @__PURE__ */ h((e, s, r, o) => {
1632
+ E(this, "getExprValue", /* @__PURE__ */ h((e, s, r, i) => {
1633
1633
  if (typeof e < "u")
1634
1634
  try {
1635
1635
  r = parseInt(r);
1636
- const i = e.replace("()", "");
1637
- return t(this, L)[i] ? t(this, L)[i].call(this, s, r, t(this, m)) : t(this, L).exprFunction(e).call(this, s, r, t(this, L).data);
1636
+ const o = e.replace("()", "");
1637
+ return t(this, L)[o] ? t(this, L)[o].call(this, s, r, t(this, m)) : t(this, L).exprFunction(e).call(this, s, r, t(this, L).data);
1638
1638
  } catch {
1639
1639
  return ["NG-COMBO"].includes(this.tagName) ? "" : e;
1640
1640
  }
@@ -1680,11 +1680,11 @@ const Ze = class Ze extends qe {
1680
1680
  };
1681
1681
  h(Ze, "EditableCellElement");
1682
1682
  let Te = Ze;
1683
- var Wt, lt, pt, yt, ce, X, We;
1683
+ var zt, lt, pt, yt, ce, X, ze;
1684
1684
  const Ge = class Ge extends Te {
1685
1685
  constructor() {
1686
1686
  super();
1687
- d(this, Wt);
1687
+ d(this, zt);
1688
1688
  d(this, lt);
1689
1689
  d(this, pt);
1690
1690
  d(this, yt);
@@ -1692,7 +1692,7 @@ const Ge = class Ge extends Te {
1692
1692
  d(this, X);
1693
1693
  E(this, "refresh", /* @__PURE__ */ h(() => {
1694
1694
  const e = super.refresh();
1695
- t(this, Wt).value = e;
1695
+ t(this, zt).value = e;
1696
1696
  }, "refresh"));
1697
1697
  /**
1698
1698
  dataRefresh = (v) => {
@@ -1724,11 +1724,11 @@ const Ge = class Ge extends Te {
1724
1724
  if (!v) this.reset();
1725
1725
  };
1726
1726
  */
1727
- d(this, We, /* @__PURE__ */ h((e) => {
1727
+ d(this, ze, /* @__PURE__ */ h((e) => {
1728
1728
  if (!["Escape", "Enter", "Tab", "Home", "End", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Backspace", "Delete"].includes(e.code)) {
1729
1729
  if (t(this, lt) == "number") {
1730
- let o = [];
1731
- if (t(this, X) && Number(t(this, X)) > 0 && o.push("."), t(this, yt) && Number(t(this, yt)) >= 0 && o.push("-"), !(e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && !o.includes(e.key) && e.preventDefault(), t(this, X) && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && e.target.selectionStart == e.target.selectionEnd) {
1730
+ let i = [];
1731
+ if (t(this, X) && Number(t(this, X)) > 0 && i.push("."), t(this, yt) && Number(t(this, yt)) >= 0 && i.push("-"), !(e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && !i.includes(e.key) && e.preventDefault(), t(this, X) && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && e.target.selectionStart == e.target.selectionEnd) {
1732
1732
  var s = e.target.value, r = s.indexOf(".");
1733
1733
  if (r >= 0) {
1734
1734
  var s = s.substr(r + 1, s.length);
@@ -1749,10 +1749,10 @@ const Ge = class Ge extends Te {
1749
1749
  ${e.join(" ")}
1750
1750
  ondragstart="return false;"
1751
1751
  >
1752
- `, super.connectedCallback(), p(this, Wt, this.querySelector("input"));
1752
+ `, super.connectedCallback(), p(this, zt, this.querySelector("input"));
1753
1753
  }
1754
1754
  };
1755
- Wt = new WeakMap(), lt = new WeakMap(), pt = new WeakMap(), yt = new WeakMap(), ce = new WeakMap(), X = new WeakMap(), We = new WeakMap(), h(Ge, "CellInputText");
1755
+ zt = new WeakMap(), lt = new WeakMap(), pt = new WeakMap(), yt = new WeakMap(), ce = new WeakMap(), X = new WeakMap(), ze = new WeakMap(), h(Ge, "CellInputText");
1756
1756
  let ke = Ge;
1757
1757
  customElements.get("cell-input-text");
1758
1758
  customElements.get("cell-input") || customElements.define("cell-input", ke);