@ninebone/table 0.0.492 β†’ 0.0.494

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
1
  var je = Object.defineProperty;
2
- var Fe = (q) => {
3
- throw TypeError(q);
2
+ var Fe = (R) => {
3
+ throw TypeError(R);
4
4
  };
5
- var Ue = (q, s, e) => s in q ? je(q, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : q[s] = e;
6
- var h = (q, s) => je(q, "name", { value: s, configurable: !0 });
7
- var A = (q, s, e) => Ue(q, typeof s != "symbol" ? s + "" : s, e), Ve = (q, s, e) => s.has(q) || Fe("Cannot " + e);
8
- var t = (q, s, e) => (Ve(q, s, "read from private field"), e ? e.call(q) : s.get(q)), d = (q, s, e) => s.has(q) ? Fe("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(q) : s.set(q, e), y = (q, s, e, i) => (Ve(q, s, "write to private field"), i ? i.call(q, e) : s.set(q, e), e);
9
- var Ye = (q, s, e, i) => ({
5
+ var Ue = (R, s, e) => s in R ? je(R, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : R[s] = e;
6
+ var h = (R, s) => je(R, "name", { value: s, configurable: !0 });
7
+ var A = (R, s, e) => Ue(R, typeof s != "symbol" ? s + "" : s, e), Ve = (R, s, e) => s.has(R) || Fe("Cannot " + e);
8
+ var t = (R, s, e) => (Ve(R, s, "read from private field"), e ? e.call(R) : s.get(R)), d = (R, s, e) => s.has(R) ? Fe("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(R) : s.set(R, e), y = (R, s, e, i) => (Ve(R, s, "write to private field"), i ? i.call(R, e) : s.set(R, e), e);
9
+ var Ye = (R, s, e, i) => ({
10
10
  set _(r) {
11
- y(q, s, r, e);
11
+ y(R, s, r, e);
12
12
  },
13
13
  get _() {
14
- return t(q, s, i);
14
+ return t(R, s, i);
15
15
  }
16
16
  });
17
17
  import { trace as Xe } from "@ninebone/util";
@@ -22,18 +22,18 @@ const Le = class Le extends Xe.constructor {
22
22
  };
23
23
  h(Le, "Trace");
24
24
  let oe = Le;
25
- const U = new oe();
26
- var B, P, w, X, K, Z, _t, G, Nt;
25
+ const P = new oe();
26
+ var B, j, w, X, K, Z, It, G, _t;
27
27
  const He = class He extends HTMLElement {
28
28
  constructor() {
29
29
  super();
30
30
  d(this, B);
31
- d(this, P, !1);
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
- d(this, _t, /* @__PURE__ */ h(() => {
36
+ d(this, It, /* @__PURE__ */ h(() => {
37
37
  if (!t(this, B)) return;
38
38
  const e = t(this, B).querySelector(".ng-container-body .ng-part-body");
39
39
  e && (y(this, Z, new ResizeObserver(() => {
@@ -41,7 +41,7 @@ const He = class He extends HTMLElement {
41
41
  })), t(this, Z).observe(e));
42
42
  }, "#observeResize"));
43
43
  A(this, "refresh", /* @__PURE__ */ h(() => {
44
- if (!t(this, B) || !t(this, w) || t(this, P)) return;
44
+ if (!t(this, B) || !t(this, w) || t(this, j)) return;
45
45
  const e = t(this, w).container, i = e.querySelector("table");
46
46
  if (!i) return;
47
47
  const r = t(this, w).track, n = t(this, w).thumb, o = t(this, B).querySelector(".ng-container-bottom"), a = e.clientWidth, c = i.scrollWidth;
@@ -73,7 +73,7 @@ const He = class He extends HTMLElement {
73
73
  const l = i.clientWidth, u = r.scrollWidth - l;
74
74
  return c > 0 && u > 0 && (i.scrollLeft = a / c * u), a > 0 && a < c - 1;
75
75
  }, "#thumbMoveTo"));
76
- d(this, Nt, /* @__PURE__ */ h(() => {
76
+ d(this, _t, /* @__PURE__ */ h(() => {
77
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);
@@ -99,13 +99,13 @@ const He = class He extends HTMLElement {
99
99
  t(this, G).call(this, r.clientX - n.left - o / 2);
100
100
  }), t(this, w).thumb.addEventListener("mousedown", (r) => {
101
101
  if (r.button !== 0) return;
102
- r.stopPropagation(), r.preventDefault(), y(this, P, !0), this.shiftX = r.clientX - t(this, w).thumb.getBoundingClientRect().left;
102
+ r.stopPropagation(), r.preventDefault(), y(this, j, !0), this.shiftX = r.clientX - t(this, w).thumb.getBoundingClientRect().left;
103
103
  const n = /* @__PURE__ */ h((a) => {
104
- if (!t(this, P)) return;
104
+ if (!t(this, j)) return;
105
105
  const c = t(this, w).track.getBoundingClientRect();
106
106
  t(this, G).call(this, a.clientX - c.left - this.shiftX);
107
107
  }, "onMouseMove"), o = /* @__PURE__ */ h(() => {
108
- y(this, P, !1), i(), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", o), this.refresh();
108
+ y(this, j, !1), i(), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", o), this.refresh();
109
109
  }, "onMouseUp");
110
110
  document.addEventListener("mousemove", n), document.addEventListener("mouseup", o);
111
111
  });
@@ -189,8 +189,8 @@ const He = class He extends HTMLElement {
189
189
  left: this.querySelector(".ng-scroll-left"),
190
190
  right: this.querySelector(".ng-scroll-right")
191
191
  }), i.addEventListener("scroll", () => {
192
- t(this, P) || this.refresh();
193
- }), t(this, Nt).call(this), t(this, _t).call(this), this.refresh();
192
+ t(this, j) || this.refresh();
193
+ }), t(this, _t).call(this), t(this, It).call(this), this.refresh();
194
194
  }, "initWhenReady");
195
195
  e();
196
196
  }
@@ -198,24 +198,24 @@ const He = class He extends HTMLElement {
198
198
  t(this, Z) && t(this, Z).disconnect();
199
199
  }
200
200
  };
201
- B = new WeakMap(), P = new WeakMap(), w = new WeakMap(), X = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), _t = new WeakMap(), G = new WeakMap(), Nt = new WeakMap(), h(He, "NineTableHScrollBar");
201
+ B = 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(He, "NineTableHScrollBar");
202
202
  let ae = He;
203
203
  customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ae);
204
- var j, ot, J, R, vt, wt, Wt;
205
- const $e = class $e extends HTMLElement {
204
+ var F, ot, J, q, xt, vt, Nt;
205
+ const Me = class Me extends HTMLElement {
206
206
  constructor() {
207
207
  super();
208
- d(this, j);
208
+ d(this, F);
209
209
  d(this, ot);
210
210
  d(this, J, !1);
211
- d(this, R);
211
+ d(this, q);
212
+ d(this, xt, 0);
212
213
  d(this, vt, 0);
213
- d(this, wt, 0);
214
214
  A(this, "refresh", /* @__PURE__ */ h(() => {
215
- if (!t(this, j) || !t(this, R)) return;
216
- const e = t(this, R).container, i = t(this, R).track, r = t(this, R).thumb, n = e.clientHeight, a = (t(this, j).data.get() || []).length, c = t(this, ot).getRowHeight(), l = a * c;
215
+ if (!t(this, F) || !t(this, q)) return;
216
+ const e = t(this, q).container, i = t(this, q).track, r = t(this, q).thumb, n = e.clientHeight, a = (t(this, F).data.get() || []).length, c = t(this, ot).getRowHeight(), l = a * c;
217
217
  if (l <= n) {
218
- r.style.display = "none", t(this, R).top.disabled = !0, t(this, R).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
221
  r.style.display = "block";
@@ -227,24 +227,24 @@ const $e = class $e extends HTMLElement {
227
227
  let m = 0;
228
228
  g > 0 && (m = b / g * (f - u));
229
229
  const v = f - u;
230
- m < 0 && (m = 0), m > v && (m = v), r.style.top = `${m}px`, t(this, R).top.disabled = b <= 0, t(this, R).bottom.disabled = b >= g - 1;
230
+ m < 0 && (m = 0), m > v && (m = v), r.style.top = `${m}px`, t(this, q).top.disabled = b <= 0, t(this, q).bottom.disabled = b >= g - 1;
231
231
  }, "refresh"));
232
- d(this, Wt, /* @__PURE__ */ h(() => {
233
- const e = t(this, R).container, i = /* @__PURE__ */ h(() => {
234
- const n = (t(this, j).data.get() || []).length, o = t(this, ot).getRowHeight();
232
+ d(this, Nt, /* @__PURE__ */ h(() => {
233
+ const e = t(this, q).container, i = /* @__PURE__ */ h(() => {
234
+ const n = (t(this, F).data.get() || []).length, o = t(this, ot).getRowHeight();
235
235
  return n * o;
236
236
  }, "getContentHeight");
237
237
  e.addEventListener("scroll", () => {
238
238
  t(this, J) || this.refresh();
239
- }), t(this, R).thumb.addEventListener("mousedown", (r) => {
239
+ }), t(this, q).thumb.addEventListener("mousedown", (r) => {
240
240
  if (r.button !== 0) return;
241
- r.stopPropagation(), r.preventDefault(), y(this, J, !0), y(this, vt, r.clientY), y(this, wt, e.scrollTop);
241
+ r.stopPropagation(), r.preventDefault(), y(this, J, !0), y(this, xt, r.clientY), y(this, vt, e.scrollTop);
242
242
  const n = /* @__PURE__ */ h((a) => {
243
243
  if (!t(this, J)) return;
244
- const c = t(this, R).track.getBoundingClientRect(), l = t(this, R).thumb.clientHeight, u = c.height - l, b = a.clientY - t(this, vt), g = e.clientHeight, m = i(), v = Math.max(m - g, 1);
244
+ const c = t(this, q).track.getBoundingClientRect(), l = t(this, q).thumb.clientHeight, u = c.height - l, b = a.clientY - t(this, xt), g = e.clientHeight, m = i(), v = Math.max(m - g, 1);
245
245
  if (u > 0 && v > 0) {
246
246
  const E = b / u * v;
247
- let x = t(this, wt) + E;
247
+ let x = t(this, vt) + E;
248
248
  const H = Math.max(0, m - g);
249
249
  x < 0 && (x = 0), x > H && (x = H), e.scrollTop = x;
250
250
  }
@@ -253,23 +253,23 @@ const $e = class $e extends HTMLElement {
253
253
  y(this, J, !1), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", o), this.refresh();
254
254
  }, "onMouseUp");
255
255
  document.addEventListener("mousemove", n), document.addEventListener("mouseup", o);
256
- }), t(this, R).track.addEventListener("mousedown", (r) => {
257
- if (r.button !== 0 || r.target === t(this, R).thumb) return;
258
- const n = t(this, R).track.getBoundingClientRect(), o = t(this, R).thumb.clientHeight, a = r.clientY - n.top - o / 2, l = n.height - o, f = e.clientHeight, u = i(), b = Math.max(u - f, 1);
256
+ }), t(this, q).track.addEventListener("mousedown", (r) => {
257
+ if (r.button !== 0 || r.target === t(this, q).thumb) return;
258
+ const n = t(this, q).track.getBoundingClientRect(), o = t(this, q).thumb.clientHeight, a = r.clientY - n.top - o / 2, l = n.height - o, f = e.clientHeight, u = i(), b = Math.max(u - f, 1);
259
259
  if (l > 0 && b > 0) {
260
260
  const g = Math.max(0, Math.min(1, a / l));
261
261
  e.scrollTop = g * b;
262
262
  }
263
263
  this.refresh();
264
- }), t(this, R).top.addEventListener("click", () => {
264
+ }), t(this, q).top.addEventListener("click", () => {
265
265
  e.scrollTop -= 40;
266
- }), t(this, R).bottom.addEventListener("click", () => {
266
+ }), t(this, q).bottom.addEventListener("click", () => {
267
267
  e.scrollTop += 40;
268
268
  });
269
269
  }, "#init"));
270
270
  }
271
271
  connectedCallback() {
272
- y(this, j, this.getRootNode().host), y(this, ot, this.closest("nine-table-sheet")), this.innerHTML = `
272
+ y(this, F, this.getRootNode().host), y(this, ot, this.closest("nine-table-sheet")), this.innerHTML = `
273
273
  <style>
274
274
  nine-table-vscrollbar {
275
275
  display: flex;
@@ -334,41 +334,42 @@ const $e = class $e extends HTMLElement {
334
334
  <button class='ng-scroll-bottom' disabled><div class='ng-scroll-icon'></div></button>
335
335
  `;
336
336
  const e = /* @__PURE__ */ h(() => {
337
- const i = t(this, j).shadowRoot.querySelector(".ng-container-body .ng-part-body");
337
+ const i = t(this, F).shadowRoot.querySelector(".ng-container-body .ng-part-body");
338
338
  if (!i) {
339
339
  setTimeout(e, 10);
340
340
  return;
341
341
  }
342
- y(this, R, {
342
+ y(this, q, {
343
343
  container: i,
344
344
  track: this.querySelector(".ng-scroll-track"),
345
345
  thumb: this.querySelector(".ng-scroll-thumb"),
346
346
  top: this.querySelector(".ng-scroll-top"),
347
347
  bottom: this.querySelector(".ng-scroll-bottom")
348
- }), t(this, Wt).call(this), this.refresh();
348
+ }), t(this, Nt).call(this), this.refresh();
349
349
  }, "initWhenReady");
350
350
  e();
351
351
  }
352
352
  };
353
- j = new WeakMap(), ot = new WeakMap(), J = new WeakMap(), R = new WeakMap(), vt = new WeakMap(), wt = new WeakMap(), Wt = new WeakMap(), h($e, "NineTableVScrollBar");
354
- let le = $e;
353
+ F = new WeakMap(), ot = new WeakMap(), J = new WeakMap(), q = new WeakMap(), xt = new WeakMap(), vt = new WeakMap(), Nt = new WeakMap(), h(Me, "NineTableVScrollBar");
354
+ let le = Me;
355
355
  customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", le);
356
- var D, S, z, M, F, Q, St, Se, at, Ot, Bt, Et, At, qt, zt, Dt, lt, Ee, ct, Rt, Pt;
357
- const Me = class Me {
356
+ var D, S, z, M, V, Q, wt, Se, at, Wt, Ot, Bt, St, Et, zt, Dt, At, Ee, lt, Rt, Pt;
357
+ const $e = class $e {
358
358
  constructor(s) {
359
359
  d(this, D);
360
360
  d(this, S);
361
361
  d(this, z, /* @__PURE__ */ new Map());
362
362
  d(this, M, null);
363
- d(this, F, null);
363
+ d(this, V, null);
364
364
  d(this, Q, 0);
365
- d(this, St, 40);
365
+ d(this, wt, 40);
366
366
  d(this, Se, !1);
367
367
  d(this, at, !1);
368
- d(this, Ot, 3);
368
+ d(this, Wt, 3);
369
369
  A(this, "refresh", /* @__PURE__ */ h(() => {
370
+ P.log("rowManager.refresh");
370
371
  const s = t(this, S).querySelector(".ng-container-body .ng-part-body");
371
- s && (t(this, Et).call(this, s), t(this, lt).call(this), t(this, At).call(this), t(this, ct).call(this, s.scrollTop));
372
+ s && (t(this, St).call(this), t(this, lt).call(this, s.scrollTop));
372
373
  }, "refresh"));
373
374
  A(this, "initialize", /* @__PURE__ */ h(() => {
374
375
  y(this, M, null), t(this, z).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
@@ -383,11 +384,11 @@ const Me = class Me {
383
384
  });
384
385
  const s = t(this, S).querySelector(".ng-container-body .ng-part-body"), e = t(this, S).querySelector(".ng-container-left .ng-part-body"), i = 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");
385
386
  if (s) {
386
- t(this, Et).call(this, s), t(this, lt).call(this), t(this, At).call(this), t(this, ct).call(this, s.scrollTop);
387
+ t(this, Bt).call(this, s), t(this, At).call(this), t(this, St).call(this), t(this, lt).call(this, s.scrollTop);
387
388
  let o = !1;
388
389
  const a = /* @__PURE__ */ h((c, l, f) => {
389
390
  var u;
390
- o || (o = !0, s && s.scrollTop !== c && (s.scrollTop = c), e && e.scrollTop !== c && (e.scrollTop = c), i && i.scrollTop !== c && (i.scrollTop = c), r && r.scrollLeft !== l && (r.scrollLeft = l), n && n.scrollLeft !== l && (n.scrollLeft = l), t(this, ct).call(this, c), (u = t(this, S).querySelector("nine-table-vscrollbar")) == null || u.refresh(), o = !1);
391
+ o || (o = !0, s && s.scrollTop !== c && (s.scrollTop = c), e && e.scrollTop !== c && (e.scrollTop = c), i && i.scrollTop !== c && (i.scrollTop = c), r && r.scrollLeft !== l && (r.scrollLeft = l), n && n.scrollLeft !== l && (n.scrollLeft = l), t(this, lt).call(this, c), (u = t(this, S).querySelector("nine-table-vscrollbar")) == null || u.refresh(), o = !1);
391
392
  }, "syncScroll");
392
393
  [s, e, i].forEach((c) => {
393
394
  c && c.addEventListener("scroll", () => {
@@ -398,23 +399,23 @@ const Me = class Me {
398
399
  });
399
400
  }
400
401
  }, "initialize"));
401
- d(this, Bt, /* @__PURE__ */ h((s, e) => {
402
+ d(this, Ot, /* @__PURE__ */ h((s, e) => {
402
403
  const i = t(this, z).get(e);
403
404
  if (!i || i.length === 0) return;
404
405
  const r = s.querySelector(".ng-part-body tbody.bindable-tbody");
405
406
  if (!r) return;
406
407
  r.querySelectorAll("tr:not(.nodata)").forEach((a) => a.remove());
407
408
  const n = r.querySelector("tr.nodata"), o = document.createDocumentFragment();
408
- for (let a = 0; a < t(this, St); a++)
409
+ for (let a = 0; a < t(this, wt); a++)
409
410
  i.forEach((c) => {
410
411
  o.appendChild(c.cloneNode(!0));
411
412
  });
412
413
  n ? n.before(o) : r.appendChild(o);
413
414
  }, "#renderRows"));
414
- d(this, Et, /* @__PURE__ */ h((s) => {
415
+ d(this, Bt, /* @__PURE__ */ h((s) => {
415
416
  if (t(this, M) !== null && t(this, M) > 0)
416
417
  return t(this, M);
417
- U.log("#measureAndCacheHeight");
418
+ P.log("#measureAndCacheHeight");
418
419
  const e = t(this, z).get(".ng-container-body");
419
420
  if (!e || e.length === 0) return 24;
420
421
  const i = s.querySelector("tbody.bindable-tbody");
@@ -430,9 +431,9 @@ const Me = class Me {
430
431
  const u = i.querySelectorAll("tr:not(.nodata)");
431
432
  return u.forEach((b) => {
432
433
  f += b.offsetHeight || b.getBoundingClientRect().height;
433
- }), u.forEach((b) => b.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, y(this, M, f > 0 ? f : 24), t(this, qt).call(this), t(this, M);
434
+ }), u.forEach((b) => b.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, y(this, M, f > 0 ? f : 24), t(this, Et).call(this), t(this, M);
434
435
  }, "#measureAndCacheHeight"));
435
- d(this, At, /* @__PURE__ */ h(() => {
436
+ d(this, St, /* @__PURE__ */ h(() => {
436
437
  const e = (t(this, D).data.get() || []).length, i = t(this, M), r = e * i;
437
438
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((n) => {
438
439
  const o = t(this, S).querySelector(n);
@@ -441,10 +442,10 @@ const Me = class Me {
441
442
  a && (a.style.height = `${r}px`);
442
443
  });
443
444
  }, "#updateVirtualScrollHeight"));
444
- d(this, qt, /* @__PURE__ */ h(() => {
445
+ d(this, Et, /* @__PURE__ */ h(() => {
445
446
  if (t(this, Q) > 0 && t(this, M) > 0) {
446
447
  const s = Math.ceil(t(this, Q) / t(this, M));
447
- y(this, St, s + t(this, Ot));
448
+ y(this, wt, s + t(this, Wt));
448
449
  }
449
450
  }, "#updateRowCount"));
450
451
  d(this, zt, /* @__PURE__ */ h(() => {
@@ -475,7 +476,7 @@ const Me = class Me {
475
476
  }
476
477
  }, "#syncRowHeights"));
477
478
  d(this, Dt, /* @__PURE__ */ h(() => {
478
- !t(this, S) || !(t(this, S) instanceof HTMLElement) || (y(this, F, new ResizeObserver((s) => {
479
+ !t(this, S) || !(t(this, S) instanceof HTMLElement) || (y(this, V, new ResizeObserver((s) => {
479
480
  for (const e of s) {
480
481
  const i = e.target;
481
482
  if (!i.classList.contains("active")) continue;
@@ -485,15 +486,15 @@ const Me = class Me {
485
486
  const o = i.querySelector(".ng-part-header"), a = i.querySelector(".ng-part-footer");
486
487
  o && (n += o.offsetHeight), a && (n += a.offsetHeight);
487
488
  const c = Math.max(r - n, 100);
488
- t(this, Q) !== c && (y(this, Q, c), t(this, qt).call(this), t(this, M) !== null && t(this, lt).call(this));
489
+ t(this, Q) !== c && (y(this, Q, c), t(this, Et).call(this), t(this, M) !== null && t(this, At).call(this));
489
490
  }
490
491
  }
491
- })), t(this, F).observe(t(this, S)));
492
+ })), t(this, V).observe(t(this, S)));
492
493
  }, "#initResizeObserver"));
493
- d(this, lt, /* @__PURE__ */ h(() => {
494
+ d(this, At, /* @__PURE__ */ h(() => {
494
495
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((s) => {
495
496
  const e = t(this, S).querySelector(s);
496
- e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Bt).call(this, e, s);
497
+ e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Ot).call(this, e, s);
497
498
  }), t(this, Pt).call(this), t(this, zt).call(this);
498
499
  }, "#renderAllContainers"));
499
500
  d(this, Ee, /* @__PURE__ */ h((s) => {
@@ -515,7 +516,7 @@ const Me = class Me {
515
516
  });
516
517
  });
517
518
  }, "#adjustBufferRows"));
518
- d(this, ct, /* @__PURE__ */ h((s) => {
519
+ d(this, lt, /* @__PURE__ */ h((s) => {
519
520
  var u;
520
521
  const e = t(this, M);
521
522
  if (!e || e <= 0) return;
@@ -525,7 +526,7 @@ const Me = class Me {
525
526
  if (!g) return;
526
527
  const m = g.querySelector(".ng-part-body tbody.bindable-tbody");
527
528
  m && (m.style.transform = `translateY(${o}px)`);
528
- }), U.log("#handleScroll", f, n), f !== n && [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((b) => {
529
+ }), P.log("#handleScroll", f, n), f !== n && [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((b) => {
529
530
  const g = t(this, S).querySelector(b);
530
531
  if (!g) return;
531
532
  const m = g.querySelector(".ng-part-body tbody.bindable-tbody");
@@ -556,8 +557,8 @@ const Me = class Me {
556
557
  });
557
558
  }; */
558
559
  d(this, Rt, /* @__PURE__ */ h((s, e, i) => {
559
- s.dataset.row = i, s.data = e, U.log(i), Array.from(s.cells).forEach((r, n) => {
560
- r.dataset.row = i, r.querySelector(':scope > [is^="cell-"], :scope > [class*="cell-"], :scope > cell-');
560
+ s.dataset.row = i, s.data = e, Array.from(s.cells).forEach((r, n) => {
561
+ r.dataset.row = i;
561
562
  const o = Array.from(r.children).find((a) => a.tagName.toLowerCase().startsWith("cell-") || typeof a.refresh == "function");
562
563
  o && typeof o.refresh == "function" && o.refresh();
563
564
  });
@@ -577,7 +578,7 @@ const Me = class Me {
577
578
  }
578
579
  }, "#syncHeaderHeights"));
579
580
  A(this, "destroy", /* @__PURE__ */ h(() => {
580
- t(this, F) && (t(this, F).disconnect(), y(this, F, null));
581
+ t(this, V) && (t(this, V).disconnect(), y(this, V, null));
581
582
  }, "destroy"));
582
583
  y(this, D, s.getRootNode().host), y(this, S, s), t(this, Dt).call(this);
583
584
  }
@@ -589,8 +590,8 @@ const Me = class Me {
589
590
  return ((e = t(this, z).get(s)) == null ? void 0 : e.length) || 1;
590
591
  }
591
592
  };
592
- D = new WeakMap(), S = new WeakMap(), z = new WeakMap(), M = new WeakMap(), F = new WeakMap(), Q = new WeakMap(), St = new WeakMap(), Se = new WeakMap(), at = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), Et = new WeakMap(), At = new WeakMap(), qt = new WeakMap(), zt = new WeakMap(), Dt = new WeakMap(), lt = new WeakMap(), Ee = new WeakMap(), ct = new WeakMap(), Rt = new WeakMap(), Pt = new WeakMap(), h(Me, "RowManager");
593
- let ce = Me;
593
+ D = new WeakMap(), S = new WeakMap(), z = new WeakMap(), M = new WeakMap(), V = new WeakMap(), Q = new WeakMap(), wt = new WeakMap(), Se = new WeakMap(), at = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), zt = new WeakMap(), Dt = new WeakMap(), At = new WeakMap(), Ee = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Pt = new WeakMap(), h($e, "RowManager");
594
+ let ce = $e;
594
595
  const jt = class jt {
595
596
  /**
596
597
  * 🎯 λ ˆμ΄μ•„μ›ƒ λ‚΄μ˜ μ—¬λŸ¬ rawTables 배열을 μΌκ΄„λ‘œ λ°›μ•„ 단일 λ§ˆμŠ€ν„° ν…œν”Œλ¦ΏμœΌλ‘œ 사전 μ»΄νŒŒμΌν•©λ‹ˆλ‹€.
@@ -645,8 +646,8 @@ const jt = class jt {
645
646
  }
646
647
  const H = x.rowSpan || 1, k = x.colSpan || 1;
647
648
  for (let O = 0; O < H; O++)
648
- for (let pt = 0; pt < k; pt++)
649
- v + O < u && E + pt < b && (g[v + O][E + pt] = O === 0 && pt === 0 ? "1" : "0");
649
+ for (let yt = 0; yt < k; yt++)
650
+ v + O < u && E + yt < b && (g[v + O][E + yt] = O === 0 && yt === 0 ? "1" : "0");
650
651
  });
651
652
  }), l.forEach((m) => {
652
653
  const v = m.sectionRowIndex;
@@ -670,8 +671,8 @@ const jt = class jt {
670
671
  };
671
672
  h(jt, "TableCompiler");
672
673
  let he = jt;
673
- var Ft, tt, et, Vt, Yt, ht, Ut, Xt;
674
- const mt = class mt extends HTMLElement {
674
+ var Ft, tt, et, Vt, Yt, ct, Ut, Xt;
675
+ const pt = class pt extends HTMLElement {
675
676
  constructor() {
676
677
  super();
677
678
  d(this, Ft);
@@ -690,15 +691,15 @@ const mt = class mt extends HTMLElement {
690
691
  if (!n) return;
691
692
  n.innerHTML = "";
692
693
  const o = document.createElement("div");
693
- o.className = "ng-part-header", o.appendChild(t(this, ht).call(this, t(this, tt), r, "header"));
694
+ o.className = "ng-part-header", o.appendChild(t(this, ct).call(this, t(this, tt), r, "header"));
694
695
  const a = document.createElement("div");
695
696
  a.className = "ng-part-body";
696
697
  const c = document.createElement("div");
697
- c.className = "ng-scroll-content", c.style.position = "relative", c.style.width = "100%", c.appendChild(t(this, ht).call(this, t(this, tt), r, "body"));
698
+ c.className = "ng-scroll-content", c.style.position = "relative", c.style.width = "100%", c.appendChild(t(this, ct).call(this, t(this, tt), r, "body"));
698
699
  const l = document.createElement("div");
699
700
  l.className = "ng-virtual-spacer", l.style.width = "100%", l.style.pointerEvents = "none", c.appendChild(l), a.appendChild(c);
700
701
  const f = document.createElement("div");
701
- f.className = "ng-part-footer", f.appendChild(t(this, ht).call(this, t(this, tt), r, "footer")), n.appendChild(o), n.appendChild(a), n.appendChild(f);
702
+ f.className = "ng-part-footer", f.appendChild(t(this, ct).call(this, t(this, tt), r, "footer")), n.appendChild(o), n.appendChild(a), n.appendChild(f);
702
703
  });
703
704
  }, "#renderSplitContainers"));
704
705
  d(this, Yt, /* @__PURE__ */ h(() => {
@@ -718,7 +719,7 @@ const mt = class mt extends HTMLElement {
718
719
  (i = this.querySelector("nine-table-hscrollbar")) == null || i.refresh();
719
720
  }, 0));
720
721
  }, "generate"));
721
- d(this, ht, /* @__PURE__ */ h((e, i, r) => {
722
+ d(this, ct, /* @__PURE__ */ h((e, i, r) => {
722
723
  const n = e.cloneNode(!0), o = n.querySelector("thead"), a = n.querySelector("tbody"), c = n.querySelector("tfoot");
723
724
  if (r === "header") {
724
725
  if (a && a.remove(), c && c.remove(), e.querySelector("tbody")) {
@@ -747,7 +748,7 @@ const mt = class mt extends HTMLElement {
747
748
  t(this, Xt).call(this);
748
749
  }, "#init"));
749
750
  d(this, Xt, /* @__PURE__ */ h(() => {
750
- const e = mt.SCROLLBAR_SIZE;
751
+ const e = pt.SCROLLBAR_SIZE;
751
752
  this.innerHTML = `
752
753
  <style>
753
754
  nine-table-sheet {
@@ -895,13 +896,13 @@ const mt = class mt extends HTMLElement {
895
896
  t(this, Ut).call(this);
896
897
  }
897
898
  disconnectedCallback() {
898
- this.innerHTML = "", U.log("NineTableSheet destroyed.");
899
+ this.innerHTML = "", P.log("NineTableSheet destroyed.");
899
900
  }
900
901
  };
901
- Ft = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), ht = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), h(mt, "NineTableSheet"), A(mt, "SCROLLBAR_SIZE", 16);
902
- let It = mt;
903
- customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", It);
904
- var Kt, kt;
902
+ Ft = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), Vt = new WeakMap(), Yt = new WeakMap(), ct = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), h(pt, "NineTableSheet"), A(pt, "SCROLLBAR_SIZE", 16);
903
+ let $t = pt;
904
+ customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", $t);
905
+ var Kt, qt;
905
906
  const Ie = class Ie extends HTMLElement {
906
907
  constructor() {
907
908
  super();
@@ -910,10 +911,10 @@ const Ie = class Ie extends HTMLElement {
910
911
  (e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (i) => {
911
912
  var o;
912
913
  const r = i.ctrlKey || i.metaKey || i.shiftKey, n = parseInt((o = i.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
913
- t(this, kt).call(this, n, r);
914
- }), t(this, kt).call(this, 0, !1);
914
+ t(this, qt).call(this, n, r);
915
+ }), t(this, qt).call(this, 0, !1);
915
916
  }, "#init"));
916
- d(this, kt, /* @__PURE__ */ h((e, i = !1) => {
917
+ d(this, qt, /* @__PURE__ */ h((e, i = !1) => {
917
918
  const r = /* @__PURE__ */ h(() => {
918
919
  const f = Array.from(this.querySelectorAll("nine-table-sheet"));
919
920
  Array.from(this.querySelectorAll("nine-splitter")).forEach((g) => g.style.setProperty("display", "none"));
@@ -949,24 +950,24 @@ const Ie = class Ie extends HTMLElement {
949
950
  t(this, Kt).call(this);
950
951
  }
951
952
  };
952
- Kt = new WeakMap(), kt = new WeakMap(), h(Ie, "NineTableSheets");
953
+ Kt = new WeakMap(), qt = new WeakMap(), h(Ie, "NineTableSheets");
953
954
  let de = Ie;
954
955
  customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", de);
955
- var I, Zt, Tt, Gt;
956
+ var I, Zt, kt, Gt;
956
957
  const _e = class _e {
957
958
  constructor(s) {
958
959
  d(this, I);
959
960
  d(this, Zt, /* @__PURE__ */ h(() => {
960
961
  t(this, Gt).call(this), new ResizeObserver((s) => {
961
962
  for (let e of s)
962
- t(this, I).getAttribute("auto-height") === "true" && t(this, Tt).call(this);
963
+ t(this, I).getAttribute("auto-height") === "true" && t(this, kt).call(this);
963
964
  }).observe(t(this, I));
964
965
  }, "#init"));
965
- d(this, Tt, /* @__PURE__ */ h(() => {
966
+ d(this, kt, /* @__PURE__ */ h(() => {
966
967
  var c, l;
967
968
  const s = Array.from(t(this, I).shadowRoot.querySelectorAll("nine-table-sheet.active"));
968
969
  if (s.length === 0) return;
969
- const e = parseInt(t(this, I).getAttribute("max-display-row"), 10) || 10, i = Math.max(...s.map((f) => f.getRowHeight())), r = (c = t(this, I).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, I).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = It.SCROLLBAR_SIZE, a = e * i + r + n + o;
970
+ const e = parseInt(t(this, I).getAttribute("max-display-row"), 10) || 10, i = Math.max(...s.map((f) => f.getRowHeight())), r = (c = t(this, I).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, I).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = $t.SCROLLBAR_SIZE, a = e * i + r + n + o;
970
971
  t(this, I).style.height = `${a}px`;
971
972
  }, "#applyAutoHeight"));
972
973
  d(this, Gt, /* @__PURE__ */ h(() => {
@@ -1068,50 +1069,50 @@ const _e = class _e {
1068
1069
  const a = t(this, I).shadowRoot.querySelectorAll("nine-table-sheet");
1069
1070
  a == null || a.forEach((c, l) => {
1070
1071
  e[l] && setTimeout(() => {
1071
- c.generate(e[l]), i && t(this, Tt).call(this);
1072
+ c.generate(e[l]), i && t(this, kt).call(this);
1072
1073
  });
1073
1074
  });
1074
1075
  }, "#render"));
1075
1076
  y(this, I, s), t(this, Zt).call(this);
1076
1077
  }
1077
1078
  };
1078
- I = new WeakMap(), Zt = new WeakMap(), Tt = new WeakMap(), Gt = new WeakMap(), h(_e, "LayoutManager");
1079
+ I = new WeakMap(), Zt = new WeakMap(), kt = new WeakMap(), Gt = new WeakMap(), h(_e, "LayoutManager");
1079
1080
  let fe = _e;
1080
- var Ct, dt;
1081
+ var Tt, ht;
1081
1082
  const Ne = class Ne {
1082
1083
  constructor(s) {
1083
- d(this, Ct);
1084
- d(this, dt, -1);
1085
- A(this, "count", /* @__PURE__ */ h(() => t(this, Ct).rawRecords.length, "count"));
1086
- y(this, Ct, s);
1084
+ d(this, Tt);
1085
+ d(this, ht, -1);
1086
+ A(this, "count", /* @__PURE__ */ h(() => t(this, Tt).rawRecords.length, "count"));
1087
+ y(this, Tt, s);
1087
1088
  }
1088
1089
  get at() {
1089
- return t(this, dt);
1090
+ return t(this, ht);
1090
1091
  }
1091
1092
  set at(s) {
1092
- y(this, dt, parseInt(s, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, dt)}"]`) && setTimeout(() => {
1093
+ y(this, ht, parseInt(s, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, ht)}"]`) && setTimeout(() => {
1093
1094
  });
1094
1095
  }
1095
1096
  };
1096
- Ct = new WeakMap(), dt = new WeakMap(), h(Ne, "ngRow");
1097
+ Tt = new WeakMap(), ht = new WeakMap(), h(Ne, "ngRow");
1097
1098
  let ue = Ne;
1098
- var _, T, N, ft, Jt, V, Qt, st, Lt, te, ee, ut;
1099
+ var _, T, N, dt, Jt, Y, Qt, st, Ct, te, ee, ft;
1099
1100
  const W = class W {
1100
1101
  constructor(s, e) {
1101
1102
  d(this, _);
1102
1103
  d(this, T);
1103
1104
  d(this, N, []);
1104
- d(this, ft, []);
1105
+ d(this, dt, []);
1105
1106
  d(this, Jt, 0);
1106
- d(this, V, []);
1107
+ d(this, Y, []);
1107
1108
  d(this, Qt, /* @__PURE__ */ h(() => {
1108
- y(this, V, []);
1109
+ y(this, Y, []);
1109
1110
  const s = t(this, _).template || [];
1110
1111
  Array.from(s).forEach((e) => {
1111
1112
  var i;
1112
- t(this, V).push(((i = e.getBoundingClientRect) == null ? void 0 : i.call(e).height) || 24);
1113
+ t(this, Y).push(((i = e.getBoundingClientRect) == null ? void 0 : i.call(e).height) || 24);
1113
1114
  }), (t(this, T).rawRecords || []).forEach((e) => {
1114
- e.__ng || (e.__ng = t(this, Lt).call(this)), e.__ng.height = t(this, V).slice();
1115
+ e.__ng || (e.__ng = t(this, Ct).call(this)), e.__ng.height = t(this, Y).slice();
1115
1116
  });
1116
1117
  }, "#initialize"));
1117
1118
  d(this, st, /* @__PURE__ */ h(() => {
@@ -1123,33 +1124,33 @@ const W = class W {
1123
1124
  var n;
1124
1125
  const i = this.getValidData();
1125
1126
  if (!i || i.length <= 0) return;
1126
- if (s == null) return t(this, ut).call(this, i);
1127
+ if (s == null) return t(this, ft).call(this, i);
1127
1128
  if (s < 0 || s >= i.length) return null;
1128
1129
  const r = typeof ((n = t(this, _).fields) == null ? void 0 : n.get) == "function" ? t(this, _).fields.get() : [];
1129
1130
  if (e != null) {
1130
1131
  const o = r.indexOf(e);
1131
1132
  return o >= 0 ? i[s].v[o] : null;
1132
1133
  }
1133
- return t(this, ut).call(this, i[s]);
1134
+ return t(this, ft).call(this, i[s]);
1134
1135
  }, "get"));
1135
1136
  A(this, "set", /* @__PURE__ */ h((s) => {
1136
1137
  this.clear(), this.add(s, !1), t(this, st).call(this);
1137
1138
  }, "set"));
1138
- d(this, Lt, /* @__PURE__ */ h(() => ({
1139
+ d(this, Ct, /* @__PURE__ */ h(() => ({
1139
1140
  rowState: W.ROW_STATE.EMPTY,
1140
1141
  deleted: !1,
1141
1142
  filtered: !1,
1142
- height: t(this, V).slice(),
1143
+ height: t(this, Y).slice(),
1143
1144
  o: {},
1144
1145
  c: {},
1145
- _: [0, 0, 0, 0, W.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, V).slice(), -1, {}, {}]
1146
+ _: [0, 0, 0, 0, W.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, Y).slice(), -1, {}, {}]
1146
1147
  }), "#getDefaultMeta"));
1147
1148
  A(this, "reset", /* @__PURE__ */ h(() => {
1148
- y(this, N, []), y(this, ft, []), t(this, st).call(this);
1149
+ y(this, N, []), y(this, dt, []), t(this, st).call(this);
1149
1150
  }, "reset"));
1150
1151
  A(this, "clear", /* @__PURE__ */ h(() => {
1151
1152
  var s;
1152
- t(this, T).rawRecords = [], y(this, N, []), y(this, ft, []), (s = t(this, T).viewRecords) != null && s.reset && t(this, T).viewRecords.reset();
1153
+ t(this, T).rawRecords = [], y(this, N, []), y(this, dt, []), (s = t(this, T).viewRecords) != null && s.reset && t(this, T).viewRecords.reset();
1153
1154
  }, "clear"));
1154
1155
  d(this, te, /* @__PURE__ */ h((s) => {
1155
1156
  var r;
@@ -1163,7 +1164,7 @@ const W = class W {
1163
1164
  }), i;
1164
1165
  }, "#json2Array"));
1165
1166
  d(this, ee, /* @__PURE__ */ h((s) => (Array.isArray(s) || (s = [s]), s.forEach((e) => {
1166
- e.__ng = t(this, Lt).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = W.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1167
+ e.__ng = t(this, Ct).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = W.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
1167
1168
  }), s), "#defaultInsert"));
1168
1169
  A(this, "add", /* @__PURE__ */ h((s, e = !0) => {
1169
1170
  s === void 0 && (s = {});
@@ -1197,14 +1198,14 @@ const W = class W {
1197
1198
  a !== i && o.__ng.rowState !== W.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(e) || (o.__ng.o[e] = a), o.__ng.rowState = W.ROW_STATE.UPDATE), o.v[n] = i;
1198
1199
  }, "setValue"));
1199
1200
  A(this, "resetRecords", /* @__PURE__ */ h(() => {
1200
- y(this, ft, t(this, T).rawRecords.filter((s) => !s.__ng.deleted)), y(this, N, t(this, T).rawRecords.filter((s) => !s.__ng.deleted && !s.__ng.filtered)), t(this, T).rawRecords.forEach((s, e) => {
1201
+ y(this, dt, t(this, T).rawRecords.filter((s) => !s.__ng.deleted)), y(this, N, t(this, T).rawRecords.filter((s) => !s.__ng.deleted && !s.__ng.filtered)), t(this, T).rawRecords.forEach((s, e) => {
1201
1202
  s.__ng.rowidx = e;
1202
1203
  }), t(this, N).forEach((s, e) => {
1203
1204
  s.__ng.i = e;
1204
1205
  });
1205
1206
  }, "resetRecords"));
1206
1207
  A(this, "getValidData", /* @__PURE__ */ h(() => (t(this, N).length === 0 && t(this, T).rawRecords.length > 0 && this.resetRecords(), t(this, N)), "getValidData"));
1207
- d(this, ut, /* @__PURE__ */ h((s) => {
1208
+ d(this, ft, /* @__PURE__ */ h((s) => {
1208
1209
  var o;
1209
1210
  if (!s) return s;
1210
1211
  const e = !Array.isArray(s), i = e ? [s] : s, r = typeof ((o = t(this, _).fields) == null ? void 0 : o.get) == "function" ? t(this, _).fields.get() : [], n = i.filter((a) => !a.__ng.deleted).map((a) => {
@@ -1219,7 +1220,7 @@ const W = class W {
1219
1220
  y(this, _, s), y(this, T, e), t(this, Qt).call(this);
1220
1221
  }
1221
1222
  get source() {
1222
- return t(this, ut).call(this, t(this, T).rawRecords);
1223
+ return t(this, ft).call(this, t(this, T).rawRecords);
1223
1224
  }
1224
1225
  set source(s) {
1225
1226
  this.clear(), this.add(s, !1);
@@ -1234,7 +1235,7 @@ const W = class W {
1234
1235
  return this.length;
1235
1236
  }
1236
1237
  };
1237
- _ = new WeakMap(), T = new WeakMap(), N = new WeakMap(), ft = new WeakMap(), Jt = new WeakMap(), V = new WeakMap(), Qt = new WeakMap(), st = new WeakMap(), Lt = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), ut = new WeakMap(), h(W, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1238
+ _ = new WeakMap(), T = new WeakMap(), N = new WeakMap(), dt = new WeakMap(), Jt = new WeakMap(), Y = new WeakMap(), Qt = new WeakMap(), st = new WeakMap(), Ct = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), ft = new WeakMap(), h(W, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1238
1239
  A(W, "ROW_STATE", {
1239
1240
  EMPTY: "EMPTY",
1240
1241
  NORMAL: "NORMAL",
@@ -1266,29 +1267,29 @@ const We = class We {
1266
1267
  };
1267
1268
  it = new WeakMap(), h(We, "ngDataManager");
1268
1269
  let be = We;
1269
- var gt, L, Ht, se;
1270
+ var ut, L, Lt, se;
1270
1271
  const Oe = class Oe {
1271
1272
  // 🎯 이제 { name: string, type: string } κ°μ²΄λ“€μ˜ λ°°μ—΄λ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.
1272
1273
  constructor(s) {
1273
- d(this, gt);
1274
+ d(this, ut);
1274
1275
  d(this, L, []);
1275
1276
  A(this, "add", /* @__PURE__ */ h((s, e = "string") => {
1276
1277
  s.forEach((i) => {
1277
1278
  t(this, L).some((r) => r.name === i) || t(this, L).push({ name: i, type: e });
1278
- }), t(this, Ht).call(this);
1279
+ }), t(this, Lt).call(this);
1279
1280
  }, "add"));
1280
- d(this, Ht, /* @__PURE__ */ h(() => {
1281
+ d(this, Lt, /* @__PURE__ */ h(() => {
1281
1282
  const s = /* @__PURE__ */ new Map();
1282
1283
  t(this, L).forEach((e) => {
1283
1284
  s.set(e.name, e.type);
1284
1285
  }), y(this, L, Array.from(s, ([e, i]) => ({ name: e, type: i }))), y(this, L, t(this, L).filter((e) => e.name !== "" && e.name !== "__ng")), t(this, L).sort((e, i) => e.name.length < i.name.length ? 1 : -1);
1285
1286
  }, "#adjust"));
1286
1287
  d(this, se, /* @__PURE__ */ h(() => {
1287
- y(this, L, []), U.log(t(this, gt).querySelectorAll("table"));
1288
- const s = Array.from(t(this, gt).querySelectorAll("table"));
1288
+ y(this, L, []), P.log(t(this, ut).querySelectorAll("table"));
1289
+ const s = Array.from(t(this, ut).querySelectorAll("table"));
1289
1290
  if (!(!s || s.length === 0)) {
1290
1291
  for (const e of s)
1291
- U.log(e), $("[data-bind]", e).each((i, r) => {
1292
+ P.log(e), $("[data-bind]", e).each((i, r) => {
1292
1293
  const n = r.dataset.bind, o = r.getAttribute("data-type") || "string";
1293
1294
  n && t(this, L).push({ name: n, type: o });
1294
1295
  }), ["data-expr", "background-color", "color", "tooltip", "visible", "readonly", "enable-button", "enable-check", "class-expr", "icon-color", "icon-src"].forEach((i) => {
@@ -1312,10 +1313,10 @@ const Oe = class Oe {
1312
1313
  });
1313
1314
  });
1314
1315
  });
1315
- t(this, Ht).call(this);
1316
+ t(this, Lt).call(this);
1316
1317
  }
1317
1318
  }, "#init"));
1318
- y(this, gt, s), t(this, se).call(this);
1319
+ y(this, ut, s), t(this, se).call(this);
1319
1320
  }
1320
1321
  // 🎯 기쑴에 ν•„λ“œ μ΄λ¦„λ§Œ μ“°λ˜ κ³³λ“€κ³Όμ˜ ν˜Έν™˜μ„ μœ„ν•΄ 이름 λ°°μ—΄λ§Œ λ¦¬ν„΄ν•˜λŠ” λ©”μ„œλ“œ μœ μ§€
1321
1322
  get() {
@@ -1337,7 +1338,7 @@ const Oe = class Oe {
1337
1338
  return t(this, L).some((e) => e.name === s);
1338
1339
  }
1339
1340
  };
1340
- gt = new WeakMap(), L = new WeakMap(), Ht = new WeakMap(), se = new WeakMap(), h(Oe, "ngFields");
1341
+ ut = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), h(Oe, "ngFields");
1341
1342
  let ye = Oe;
1342
1343
  var rt, ie, re;
1343
1344
  const Be = class Be extends HTMLElement {
@@ -1347,7 +1348,7 @@ const Be = class Be extends HTMLElement {
1347
1348
  d(this, rt);
1348
1349
  d(this, ie);
1349
1350
  d(this, re, /* @__PURE__ */ h(() => {
1350
- this.fields = new ye(this), y(this, ie, new fe(this)), U.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1351
+ this.fields = new ye(this), y(this, ie, new fe(this)), P.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1351
1352
  }, "#init"));
1352
1353
  this.attachShadow({ mode: "open" }), y(this, rt, new be(this));
1353
1354
  }
@@ -1355,7 +1356,7 @@ const Be = class Be extends HTMLElement {
1355
1356
  t(this, re).call(this);
1356
1357
  }
1357
1358
  disconnectedCallback() {
1358
- U.log("NineTable disconnected.");
1359
+ P.log("NineTable disconnected.");
1359
1360
  }
1360
1361
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
1361
1362
  get data() {
@@ -1373,7 +1374,7 @@ const Be = class Be extends HTMLElement {
1373
1374
  rt = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), h(Be, "NineTable");
1374
1375
  let pe = Be;
1375
1376
  customElements.get("nine-table") || customElements.define("nine-table", pe);
1376
- const xt = class xt extends HTMLElement {
1377
+ const mt = class mt extends HTMLElement {
1377
1378
  // πŸ‘ˆ μ»€μŠ€ν…€ μŠ€νƒ€μΌμš© μΊμ‹œ μΆ”κ°€
1378
1379
  constructor() {
1379
1380
  super();
@@ -1384,18 +1385,18 @@ const xt = class xt extends HTMLElement {
1384
1385
  connectedCallback() {
1385
1386
  }
1386
1387
  };
1387
- h(xt, "BasicCellElement"), A(xt, "_styleCache", /* @__PURE__ */ new Map()), A(xt, "_customStyleCache", /* @__PURE__ */ new Map());
1388
- let me = xt;
1389
- var C, $t, p, Ae, qe, Re, ke, Te;
1388
+ h(mt, "BasicCellElement"), A(mt, "_styleCache", /* @__PURE__ */ new Map()), A(mt, "_customStyleCache", /* @__PURE__ */ new Map());
1389
+ let me = mt;
1390
+ var C, Ht, p, Ae, Re, qe, ke, Te;
1390
1391
  const ze = class ze extends me {
1391
1392
  constructor() {
1392
1393
  super();
1393
1394
  d(this, C);
1394
- d(this, $t);
1395
+ d(this, Ht);
1395
1396
  d(this, p);
1396
1397
  d(this, Ae);
1397
- d(this, qe);
1398
1398
  d(this, Re);
1399
+ d(this, qe);
1399
1400
  d(this, ke);
1400
1401
  A(this, "getDisplayText", /* @__PURE__ */ h((e) => {
1401
1402
  if (t(this, p))
@@ -1460,7 +1461,7 @@ const ze = class ze extends me {
1460
1461
  }, "getExprValue"));
1461
1462
  }
1462
1463
  connectedCallback() {
1463
- super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this, $t, t(this, p).closest("tr"));
1464
+ super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this, Ht, t(this, p).closest("tr"));
1464
1465
  }
1465
1466
  get value() {
1466
1467
  var e = !t(this, C) || !t(this, C).dataManager || !t(this, p) || !t(this, p).dataset || !t(this, p).dataset.row || !t(this, p).dataset.bind ? "" : t(this, p).closest("tr").data[t(this, p).dataset.bind];
@@ -1478,10 +1479,10 @@ const ze = class ze extends me {
1478
1479
  return t(this, p).closest("tr").data;
1479
1480
  }
1480
1481
  refresh() {
1481
- return t(this, p).dataset.bind, parseInt(t(this, p).dataset.row), t(this, $t).data, t(this, p).dataset.row;
1482
+ return t(this, p).dataset.bind, parseInt(t(this, p).dataset.row), t(this, Ht).data, t(this, p).dataset.row;
1482
1483
  }
1483
1484
  };
1484
- C = new WeakMap(), $t = new WeakMap(), p = new WeakMap(), Ae = new WeakMap(), qe = new WeakMap(), Re = new WeakMap(), ke = new WeakMap(), Te = new WeakMap(), h(ze, "CellElement");
1485
+ C = new WeakMap(), Ht = new WeakMap(), p = new WeakMap(), Ae = new WeakMap(), Re = new WeakMap(), qe = new WeakMap(), ke = new WeakMap(), Te = new WeakMap(), h(ze, "CellElement");
1485
1486
  let xe = ze;
1486
1487
  const De = class De extends xe {
1487
1488
  constructor() {
@@ -1496,19 +1497,19 @@ const De = class De extends xe {
1496
1497
  };
1497
1498
  h(De, "EditableCellElement");
1498
1499
  let ve = De;
1499
- var Mt, nt, bt, yt, ne, Y, Ce;
1500
+ var Mt, nt, gt, bt, ne, U, Ce;
1500
1501
  const Pe = class Pe extends ve {
1501
1502
  constructor() {
1502
1503
  super();
1503
1504
  d(this, Mt);
1504
1505
  d(this, nt);
1506
+ d(this, gt);
1505
1507
  d(this, bt);
1506
- d(this, yt);
1507
1508
  d(this, ne);
1508
- d(this, Y);
1509
+ d(this, U);
1509
1510
  A(this, "refresh", /* @__PURE__ */ h(() => {
1510
1511
  const e = super.refresh();
1511
- t(this, Mt).value = e;
1512
+ P.log("::", e), t(this, Mt).value = e;
1512
1513
  }, "refresh"));
1513
1514
  /**
1514
1515
  dataRefresh = (v) => {
@@ -1544,18 +1545,18 @@ const Pe = class Pe extends ve {
1544
1545
  if (!["Escape", "Enter", "Tab", "Home", "End", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Backspace", "Delete"].includes(e.code)) {
1545
1546
  if (t(this, nt) == "number") {
1546
1547
  let n = [];
1547
- if (t(this, Y) && Number(t(this, Y)) > 0 && n.push("."), t(this, yt) && Number(t(this, yt)) >= 0 && n.push("-"), !(e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && !n.includes(e.key) && e.preventDefault(), t(this, Y) && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && e.target.selectionStart == e.target.selectionEnd) {
1548
+ 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) {
1548
1549
  var i = e.target.value, r = i.indexOf(".");
1549
1550
  if (r >= 0) {
1550
1551
  var i = i.substr(r + 1, i.length);
1551
- i.length >= Number(t(this, Y)) && e.preventDefault();
1552
+ i.length >= Number(t(this, U)) && e.preventDefault();
1552
1553
  }
1553
1554
  }
1554
1555
  }
1555
- t(this, bt) && ninegrid.getByteLength(e.target.value) >= Number(t(this, bt)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
1556
+ t(this, gt) && ninegrid.getByteLength(e.target.value) >= Number(t(this, gt)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
1556
1557
  }
1557
1558
  }, "#onKeyDown"));
1558
- if (this.applyBaseStyle(), y(this, nt, this.getAttribute("type") || "text"), y(this, bt, this.getAttribute("maxbyte")), y(this, yt, this.getAttribute("min")), y(this, ne, this.getAttribute("max")), y(this, Y, this.getAttribute("scale")), !["text", "number"].includes(t(this, nt))) throw `invalid type : ${t(this, nt)}`;
1559
+ if (this.applyBaseStyle(), y(this, nt, this.getAttribute("type") || "text"), y(this, gt, this.getAttribute("maxbyte")), y(this, bt, this.getAttribute("min")), y(this, ne, this.getAttribute("max")), y(this, U, this.getAttribute("scale")), !["text", "number"].includes(t(this, nt))) throw `invalid type : ${t(this, nt)}`;
1559
1560
  }
1560
1561
  connectedCallback() {
1561
1562
  for (var e = [], i = 0; i < this.attributes.length; i++)
@@ -1568,7 +1569,7 @@ const Pe = class Pe extends ve {
1568
1569
  `, super.connectedCallback(), y(this, Mt, this.querySelector("input"));
1569
1570
  }
1570
1571
  };
1571
- Mt = new WeakMap(), nt = new WeakMap(), bt = new WeakMap(), yt = new WeakMap(), ne = new WeakMap(), Y = new WeakMap(), Ce = new WeakMap(), h(Pe, "CellInputText");
1572
+ Mt = new WeakMap(), nt = new WeakMap(), gt = new WeakMap(), bt = new WeakMap(), ne = new WeakMap(), U = new WeakMap(), Ce = new WeakMap(), h(Pe, "CellInputText");
1572
1573
  let we = Pe;
1573
1574
  customElements.get("cell-input-text");
1574
1575
  customElements.get("cell-input") || customElements.define("cell-input", we);