@ninebone/table 0.0.470 β†’ 0.0.472

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,12 +1,12 @@
1
- var je = Object.defineProperty;
2
- var Fe = (q) => {
1
+ var Fe = Object.defineProperty;
2
+ var Ye = (q) => {
3
3
  throw TypeError(q);
4
4
  };
5
- var Ke = (q, i, e) => i in q ? je(q, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : q[i] = e;
6
- var h = (q, i) => je(q, "name", { value: i, configurable: !0 });
7
- var A = (q, i, e) => Ke(q, typeof i != "symbol" ? i + "" : i, e), Ye = (q, i, e) => i.has(q) || Fe("Cannot " + e);
8
- var t = (q, i, e) => (Ye(q, i, "read from private field"), e ? e.call(q) : i.get(q)), d = (q, i, e) => i.has(q) ? Fe("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(q) : i.set(q, e), y = (q, i, e, s) => (Ye(q, i, "write to private field"), s ? s.call(q, e) : i.set(q, e), e);
9
- var Ve = (q, i, e, s) => ({
5
+ var Ue = (q, i, e) => i in q ? Fe(q, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : q[i] = e;
6
+ var h = (q, i) => Fe(q, "name", { value: i, configurable: !0 });
7
+ var A = (q, i, e) => Ue(q, typeof i != "symbol" ? i + "" : i, e), Ve = (q, i, e) => i.has(q) || Ye("Cannot " + e);
8
+ var t = (q, i, e) => (Ve(q, i, "read from private field"), e ? e.call(q) : i.get(q)), d = (q, i, e) => i.has(q) ? Ye("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(q) : i.set(q, e), y = (q, i, e, s) => (Ve(q, i, "write to private field"), s ? s.call(q, e) : i.set(q, e), e);
9
+ var Ke = (q, i, e, s) => ({
10
10
  set _(r) {
11
11
  y(q, i, r, e);
12
12
  },
@@ -14,17 +14,17 @@ var Ve = (q, i, e, s) => ({
14
14
  return t(q, i, s);
15
15
  }
16
16
  });
17
- import { trace as Ue } from "@ninebone/util";
18
- const Le = class Le extends Ue.constructor {
17
+ import { trace as Xe } from "@ninebone/util";
18
+ const He = class He extends Xe.constructor {
19
19
  constructor() {
20
20
  super(), this.init("nine-table", "green");
21
21
  }
22
22
  };
23
- h(Le, "Trace");
24
- let ae = Le;
25
- const yt = new ae();
26
- var D, P, S, K, U, X, It, Z, _t;
27
- const He = class He extends HTMLElement {
23
+ h(He, "Trace");
24
+ let le = He;
25
+ const pt = new le();
26
+ var D, P, S, K, U, X, _t, Z, Nt;
27
+ const Me = class Me extends HTMLElement {
28
28
  constructor() {
29
29
  super();
30
30
  d(this, D);
@@ -33,7 +33,7 @@ const He = class He extends HTMLElement {
33
33
  d(this, K);
34
34
  d(this, U);
35
35
  d(this, X);
36
- d(this, It, /* @__PURE__ */ h(() => {
36
+ d(this, _t, /* @__PURE__ */ h(() => {
37
37
  if (!t(this, D)) return;
38
38
  const e = t(this, D).querySelector(".ng-container-body .ng-part-body");
39
39
  e && (y(this, X, new ResizeObserver(() => {
@@ -73,7 +73,7 @@ const He = class He extends HTMLElement {
73
73
  const l = s.clientWidth, u = r.scrollWidth - l;
74
74
  return c > 0 && u > 0 && (s.scrollLeft = a / c * u), a > 0 && a < c - 1;
75
75
  }, "#thumbMoveTo"));
76
- d(this, _t, /* @__PURE__ */ h(() => {
76
+ d(this, Nt, /* @__PURE__ */ h(() => {
77
77
  const e = /* @__PURE__ */ h((r) => {
78
78
  clearInterval(t(this, K)), clearInterval(t(this, U));
79
79
  const n = parseInt(t(this, S).thumb.style.left || 0, 10);
@@ -190,7 +190,7 @@ const He = class He extends HTMLElement {
190
190
  right: this.querySelector(".ng-scroll-right")
191
191
  }), s.addEventListener("scroll", () => {
192
192
  t(this, P) || this.refresh();
193
- }), t(this, _t).call(this), t(this, It).call(this), this.refresh();
193
+ }), t(this, Nt).call(this), t(this, _t).call(this), this.refresh();
194
194
  }, "initWhenReady");
195
195
  e();
196
196
  }
@@ -198,19 +198,19 @@ const He = class He extends HTMLElement {
198
198
  t(this, X) && t(this, X).disconnect();
199
199
  }
200
200
  };
201
- D = new WeakMap(), P = new WeakMap(), S = new WeakMap(), K = new WeakMap(), U = new WeakMap(), X = new WeakMap(), It = new WeakMap(), Z = new WeakMap(), _t = new WeakMap(), h(He, "NineTableHScrollBar");
202
- let le = He;
203
- customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", le);
204
- var j, nt, G, R, vt, wt, Nt;
205
- const Me = class Me extends HTMLElement {
201
+ D = new WeakMap(), P = new WeakMap(), S = new WeakMap(), K = new WeakMap(), U = new WeakMap(), X = new WeakMap(), _t = new WeakMap(), Z = new WeakMap(), Nt = new WeakMap(), h(Me, "NineTableHScrollBar");
202
+ let ce = Me;
203
+ customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ce);
204
+ var j, nt, G, R, wt, St, Wt;
205
+ const $e = class $e extends HTMLElement {
206
206
  constructor() {
207
207
  super();
208
208
  d(this, j);
209
209
  d(this, nt);
210
210
  d(this, G, !1);
211
211
  d(this, R);
212
- d(this, vt, 0);
213
212
  d(this, wt, 0);
213
+ d(this, St, 0);
214
214
  A(this, "refresh", /* @__PURE__ */ h(() => {
215
215
  if (!t(this, j) || !t(this, R)) return;
216
216
  const e = t(this, R).container, s = t(this, R).track, r = t(this, R).thumb, n = e.clientHeight, a = (t(this, j).data.get() || []).length, c = t(this, nt).getRowHeight(), l = a * c;
@@ -229,7 +229,7 @@ const Me = class Me extends HTMLElement {
229
229
  const v = f - u;
230
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;
231
231
  }, "refresh"));
232
- d(this, Nt, /* @__PURE__ */ h(() => {
232
+ d(this, Wt, /* @__PURE__ */ h(() => {
233
233
  const e = t(this, R).container, s = /* @__PURE__ */ h(() => {
234
234
  const n = (t(this, j).data.get() || []).length, o = t(this, nt).getRowHeight();
235
235
  return n * o;
@@ -238,13 +238,13 @@ const Me = class Me extends HTMLElement {
238
238
  t(this, G) || this.refresh();
239
239
  }), t(this, R).thumb.addEventListener("mousedown", (r) => {
240
240
  if (r.button !== 0) return;
241
- r.stopPropagation(), r.preventDefault(), y(this, G, !0), y(this, vt, r.clientY), y(this, wt, e.scrollTop);
241
+ r.stopPropagation(), r.preventDefault(), y(this, G, !0), y(this, wt, r.clientY), y(this, St, e.scrollTop);
242
242
  const n = /* @__PURE__ */ h((a) => {
243
243
  if (!t(this, G)) 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 = s(), v = Math.max(m - g, 1);
244
+ const c = t(this, R).track.getBoundingClientRect(), l = t(this, R).thumb.clientHeight, u = c.height - l, b = a.clientY - t(this, wt), g = e.clientHeight, m = s(), v = Math.max(m - g, 1);
245
245
  if (u > 0 && v > 0) {
246
246
  const w = b / u * v;
247
- let x = t(this, wt) + w;
247
+ let x = t(this, St) + w;
248
248
  const M = Math.max(0, m - g);
249
249
  x < 0 && (x = 0), x > M && (x = M), e.scrollTop = x;
250
250
  }
@@ -345,16 +345,16 @@ const Me = class Me extends HTMLElement {
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, Nt).call(this), this.refresh();
348
+ }), t(this, Wt).call(this), this.refresh();
349
349
  }, "initWhenReady");
350
350
  e();
351
351
  }
352
352
  };
353
- j = new WeakMap(), nt = new WeakMap(), G = new WeakMap(), R = new WeakMap(), vt = new WeakMap(), wt = new WeakMap(), Nt = new WeakMap(), h(Me, "NineTableVScrollBar");
354
- let ce = Me;
355
- customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", ce);
356
- var O, E, B, H, F, J, St, ot, Wt, Ot, Bt, Et, At, zt, Dt, qt, Pt, Ee, at, lt, jt;
357
- const $e = class $e {
353
+ j = new WeakMap(), nt = new WeakMap(), G = new WeakMap(), R = new WeakMap(), wt = new WeakMap(), St = new WeakMap(), Wt = new WeakMap(), h($e, "NineTableVScrollBar");
354
+ let he = $e;
355
+ customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", he);
356
+ var O, E, B, H, F, J, Et, ot, at, Ot, Bt, zt, At, qt, Dt, Pt, Rt, jt, Ae, lt, ct, Ft;
357
+ const Ie = class Ie {
358
358
  constructor(i) {
359
359
  d(this, O);
360
360
  d(this, E);
@@ -362,13 +362,14 @@ const $e = class $e {
362
362
  d(this, H, null);
363
363
  d(this, F, null);
364
364
  d(this, J, 0);
365
- d(this, St, 40);
365
+ d(this, Et, 40);
366
366
  d(this, ot, !1);
367
- d(this, Wt, 3);
367
+ d(this, at, !1);
368
+ d(this, Ot, 3);
368
369
  A(this, "refresh", /* @__PURE__ */ h(() => {
369
370
  var e;
370
371
  const i = t(this, E).querySelector(".ng-container-body .ng-part-body");
371
- i && (t(this, Et).call(this), t(this, at).call(this, i.scrollTop), (e = t(this, E).querySelector("nine-table-vscrollbar")) == null || e.refresh());
372
+ i && (t(this, At).call(this), t(this, lt).call(this, i.scrollTop), (e = t(this, E).querySelector("nine-table-vscrollbar")) == null || e.refresh());
372
373
  }, "refresh"));
373
374
  A(this, "initialize", /* @__PURE__ */ h(() => {
374
375
  y(this, H, null), t(this, B).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((r) => {
@@ -383,33 +384,35 @@ const $e = class $e {
383
384
  });
384
385
  const i = t(this, E).querySelector(".ng-container-body .ng-part-body"), e = t(this, E).querySelector(".ng-container-left .ng-part-body"), s = t(this, E).querySelector(".ng-container-right .ng-part-body");
385
386
  if (i) {
386
- t(this, Bt).call(this, i), t(this, qt).call(this), t(this, Et).call(this), t(this, at).call(this, i.scrollTop);
387
+ t(this, zt).call(this, i), t(this, Rt).call(this), t(this, At).call(this), t(this, lt).call(this, i.scrollTop);
387
388
  let r = !1;
388
389
  const n = /* @__PURE__ */ h((o, a) => {
389
390
  var c;
390
- r || (r = !0, i && i.scrollTop !== o && (i.scrollTop = o), e && e.scrollTop !== o && (e.scrollTop = o), s && s.scrollTop !== o && (s.scrollTop = o), t(this, at).call(this, o), (c = t(this, E).querySelector("nine-table-vscrollbar")) == null || c.refresh(), r = !1);
391
+ r || (r = !0, i && i.scrollTop !== o && (i.scrollTop = o), e && e.scrollTop !== o && (e.scrollTop = o), s && s.scrollTop !== o && (s.scrollTop = o), t(this, lt).call(this, o), (c = t(this, E).querySelector("nine-table-vscrollbar")) == null || c.refresh(), r = !1);
391
392
  }, "syncScroll");
392
393
  [i, e, s].forEach((o) => {
393
- o && o.addEventListener("scroll", () => {
394
- n(o.scrollTop);
394
+ o == null || o.addEventListener("scroll", () => {
395
+ t(this, at) || (y(this, at, !0), requestAnimationFrame(() => {
396
+ n(o.scrollTop), y(this, at, !1);
397
+ }));
395
398
  });
396
399
  });
397
400
  }
398
401
  }, "initialize"));
399
- d(this, Ot, /* @__PURE__ */ h((i, e) => {
402
+ d(this, Bt, /* @__PURE__ */ h((i, e) => {
400
403
  const s = t(this, B).get(e);
401
404
  if (!s || s.length === 0) return;
402
405
  const r = i.querySelector(".ng-part-body tbody.bindable-tbody");
403
406
  if (!r) return;
404
407
  r.querySelectorAll("tr:not(.nodata)").forEach((a) => a.remove());
405
408
  const n = r.querySelector("tr.nodata"), o = document.createDocumentFragment();
406
- for (let a = 0; a < t(this, St); a++)
409
+ for (let a = 0; a < t(this, Et); a++)
407
410
  s.forEach((c) => {
408
411
  o.appendChild(c.cloneNode(!0));
409
412
  });
410
413
  n ? n.before(o) : r.appendChild(o);
411
414
  }, "#renderRows"));
412
- d(this, Bt, /* @__PURE__ */ h((i) => {
415
+ d(this, zt, /* @__PURE__ */ h((i) => {
413
416
  if (t(this, H) !== null && t(this, H) > 0)
414
417
  return t(this, H);
415
418
  const e = t(this, B).get(".ng-container-body");
@@ -427,9 +430,9 @@ const $e = class $e {
427
430
  const u = s.querySelectorAll("tr:not(.nodata)");
428
431
  return u.forEach((b) => {
429
432
  f += b.offsetHeight || b.getBoundingClientRect().height;
430
- }), u.forEach((b) => b.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, y(this, H, f > 0 ? f : 24), t(this, At).call(this), t(this, H);
433
+ }), u.forEach((b) => b.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, y(this, H, f > 0 ? f : 24), t(this, qt).call(this), t(this, H);
431
434
  }, "#measureAndCacheHeight"));
432
- d(this, Et, /* @__PURE__ */ h(() => {
435
+ d(this, At, /* @__PURE__ */ h(() => {
433
436
  const e = (t(this, O).data.get() || []).length, s = t(this, H) || 24, r = e * s;
434
437
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((n) => {
435
438
  const o = t(this, E).querySelector(n);
@@ -438,13 +441,13 @@ const $e = class $e {
438
441
  a && (a.style.height = `${r}px`);
439
442
  });
440
443
  }, "#updateVirtualScrollHeight"));
441
- d(this, At, /* @__PURE__ */ h(() => {
444
+ d(this, qt, /* @__PURE__ */ h(() => {
442
445
  if (t(this, J) > 0 && t(this, H) > 0) {
443
446
  const i = Math.ceil(t(this, J) / t(this, H));
444
- y(this, St, i + t(this, Wt));
447
+ y(this, Et, i + t(this, Ot));
445
448
  }
446
449
  }, "#updateRowCount"));
447
- d(this, zt, /* @__PURE__ */ h(() => {
450
+ d(this, Dt, /* @__PURE__ */ h(() => {
448
451
  var a, c, l, f, u, b;
449
452
  const i = t(this, E).querySelector(".ng-container-left .ng-part-body table"), e = t(this, E).querySelector(".ng-container-body .ng-part-body table"), s = t(this, E).querySelector(".ng-container-right .ng-part-body table");
450
453
  if (e) {
@@ -471,7 +474,7 @@ const $e = class $e {
471
474
  }
472
475
  }
473
476
  }, "#syncRowHeights"));
474
- d(this, Dt, /* @__PURE__ */ h(() => {
477
+ d(this, Pt, /* @__PURE__ */ h(() => {
475
478
  !t(this, E) || !(t(this, E) instanceof HTMLElement) || (y(this, F, new ResizeObserver((i) => {
476
479
  for (const e of i) {
477
480
  const s = e.target;
@@ -482,18 +485,18 @@ const $e = class $e {
482
485
  const o = s.querySelector(".ng-part-header"), a = s.querySelector(".ng-part-footer");
483
486
  o && (n += o.offsetHeight), a && (n += a.offsetHeight);
484
487
  const c = Math.max(r - n, 100);
485
- t(this, J) !== c && (y(this, J, c), t(this, At).call(this), t(this, H) !== null && t(this, qt).call(this));
488
+ t(this, J) !== c && (y(this, J, c), t(this, qt).call(this), t(this, H) !== null && t(this, Rt).call(this));
486
489
  }
487
490
  }
488
491
  })), t(this, F).observe(t(this, E)));
489
492
  }, "#initResizeObserver"));
490
- d(this, qt, /* @__PURE__ */ h(() => {
493
+ d(this, Rt, /* @__PURE__ */ h(() => {
491
494
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
492
495
  const e = t(this, E).querySelector(i);
493
- e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Ot).call(this, e, i);
494
- }), t(this, jt).call(this), t(this, zt).call(this);
496
+ e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Bt).call(this, e, i);
497
+ }), t(this, Ft).call(this), t(this, Dt).call(this);
495
498
  }, "#renderAllContainers"));
496
- d(this, Pt, /* @__PURE__ */ h((i) => {
499
+ d(this, jt, /* @__PURE__ */ h((i) => {
497
500
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((e) => {
498
501
  var l;
499
502
  const s = t(this, E).querySelector(e);
@@ -508,11 +511,11 @@ const $e = class $e {
508
511
  return;
509
512
  }
510
513
  const g = t(this, O).data.get(b);
511
- f.style.display = "", t(this, lt).call(this, f, g, b);
514
+ f.style.display = "", t(this, ct).call(this, f, g, b);
512
515
  });
513
516
  });
514
517
  }, "#adjustBufferRows"));
515
- d(this, Ee, /* @__PURE__ */ h((i) => {
518
+ d(this, Ae, /* @__PURE__ */ h((i) => {
516
519
  var c;
517
520
  const e = t(this, H);
518
521
  if (!e || e <= 0) return;
@@ -529,13 +532,13 @@ const $e = class $e {
529
532
  return;
530
533
  }
531
534
  const w = t(this, O).data.get(v);
532
- g.style.display = "", t(this, lt).call(this, g, w, v);
535
+ g.style.display = "", t(this, ct).call(this, g, w, v);
533
536
  });
534
537
  }), t(this, ot) || (y(this, ot, !0), setTimeout(() => {
535
- t(this, Pt).call(this, n), y(this, ot, !1);
538
+ t(this, jt).call(this, n), y(this, ot, !1);
536
539
  }, 0));
537
540
  }, "#handleScroll_BAK"));
538
- d(this, at, /* @__PURE__ */ h((i) => {
541
+ d(this, lt, /* @__PURE__ */ h((i) => {
539
542
  var u;
540
543
  const e = t(this, H);
541
544
  if (!e || e <= 0) return;
@@ -557,7 +560,7 @@ const $e = class $e {
557
560
  return;
558
561
  }
559
562
  const k = t(this, O).data.get(M);
560
- w.style.display = "", t(this, lt).call(this, w, k, M);
563
+ w.style.display = "", t(this, ct).call(this, w, k, M);
561
564
  });
562
565
  });
563
566
  }, "#handleScroll"));
@@ -575,14 +578,14 @@ const $e = class $e {
575
578
  cell.dataset.row = dataIndex;
576
579
  });
577
580
  }; */
578
- d(this, lt, /* @__PURE__ */ h((i, e, s) => {
579
- i.dataset.row = s, i.data = e, yt.log(s), Array.from(i.cells).forEach((r, n) => {
581
+ d(this, ct, /* @__PURE__ */ h((i, e, s) => {
582
+ i.dataset.row = s, i.data = e, pt.log(s), Array.from(i.cells).forEach((r, n) => {
580
583
  r.dataset.row = s, r.querySelector(':scope > [is^="cell-"], :scope > [class*="cell-"], :scope > cell-');
581
584
  const o = Array.from(r.children).find((a) => a.tagName.toLowerCase().startsWith("cell-") || typeof a.refresh == "function");
582
585
  o && typeof o.refresh == "function" && o.refresh();
583
586
  });
584
587
  }, "#bindRowData"));
585
- d(this, jt, /* @__PURE__ */ h(() => {
588
+ d(this, Ft, /* @__PURE__ */ h(() => {
586
589
  var c, l, f;
587
590
  const i = t(this, E).querySelector(".ng-container-left .ng-part-header table"), e = t(this, E).querySelector(".ng-container-body .ng-part-header table"), s = t(this, E).querySelector(".ng-container-right .ng-part-header table");
588
591
  if (!e) return;
@@ -599,7 +602,7 @@ const $e = class $e {
599
602
  A(this, "destroy", /* @__PURE__ */ h(() => {
600
603
  t(this, F) && (t(this, F).disconnect(), y(this, F, null));
601
604
  }, "destroy"));
602
- y(this, O, i.getRootNode().host), y(this, E, i), t(this, Dt).call(this);
605
+ y(this, O, i.getRootNode().host), y(this, E, i), t(this, Pt).call(this);
603
606
  }
604
607
  getRowHeight() {
605
608
  return t(this, H);
@@ -609,14 +612,14 @@ const $e = class $e {
609
612
  return ((e = t(this, B).get(i)) == null ? void 0 : e.length) || 1;
610
613
  }
611
614
  };
612
- O = new WeakMap(), E = new WeakMap(), B = new WeakMap(), H = new WeakMap(), F = new WeakMap(), J = new WeakMap(), St = new WeakMap(), ot = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), Et = new WeakMap(), At = new WeakMap(), zt = new WeakMap(), Dt = new WeakMap(), qt = new WeakMap(), Pt = new WeakMap(), Ee = new WeakMap(), at = new WeakMap(), lt = new WeakMap(), jt = new WeakMap(), h($e, "RowManager");
613
- let he = $e;
614
- const Ft = class Ft {
615
+ O = new WeakMap(), E = new WeakMap(), B = new WeakMap(), H = new WeakMap(), F = new WeakMap(), J = new WeakMap(), Et = new WeakMap(), ot = new WeakMap(), at = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), zt = new WeakMap(), At = new WeakMap(), qt = new WeakMap(), Dt = new WeakMap(), Pt = new WeakMap(), Rt = new WeakMap(), jt = new WeakMap(), Ae = new WeakMap(), lt = new WeakMap(), ct = new WeakMap(), Ft = new WeakMap(), h(Ie, "RowManager");
616
+ let de = Ie;
617
+ const Yt = class Yt {
615
618
  /**
616
619
  * 🎯 λ ˆμ΄μ•„μ›ƒ λ‚΄μ˜ μ—¬λŸ¬ rawTables 배열을 μΌκ΄„λ‘œ λ°›μ•„ 단일 λ§ˆμŠ€ν„° ν…œν”Œλ¦ΏμœΌλ‘œ 사전 μ»΄νŒŒμΌν•©λ‹ˆλ‹€.
617
620
  */
618
621
  static compileAll(i) {
619
- return Array.isArray(i) ? i.map((e) => Ft.compile(e)) : [];
622
+ return Array.isArray(i) ? i.map((e) => Yt.compile(e)) : [];
620
623
  }
621
624
  /**
622
625
  * 🎯 단일 원본 ν…Œμ΄λΈ”μ„ λ°›μ•„ κΈ°λ³Έ ꡬ쑰 보정 및 2차원 격자 인덱슀 사전 λΆ€μ—¬ μ™„λ£Œλœ λ§ˆμŠ€ν„° ν…Œμ΄λΈ” λ°˜ν™˜
@@ -665,8 +668,8 @@ const Ft = class Ft {
665
668
  }
666
669
  const M = x.rowSpan || 1, k = x.colSpan || 1;
667
670
  for (let z = 0; z < M; z++)
668
- for (let pt = 0; pt < k; pt++)
669
- v + z < u && w + pt < b && (g[v + z][w + pt] = z === 0 && pt === 0 ? "1" : "0");
671
+ for (let mt = 0; mt < k; mt++)
672
+ v + z < u && w + mt < b && (g[v + z][w + mt] = z === 0 && mt === 0 ? "1" : "0");
670
673
  });
671
674
  }), l.forEach((m) => {
672
675
  const v = m.sectionRowIndex;
@@ -688,20 +691,20 @@ const Ft = class Ft {
688
691
  }
689
692
  // 🎯 [μΆ”κ°€] td/th에 μ„ μ–Έλœ cell-type 속성을 읽어 μ»€μŠ€ν…€ νƒœκ·Έλ‘œ μžλ™ 감싸기
690
693
  };
691
- h(Ft, "TableCompiler");
692
- let de = Ft;
693
- var Yt, Q, tt, Vt, Kt, ct, Ut, Xt;
694
- const mt = class mt extends HTMLElement {
694
+ h(Yt, "TableCompiler");
695
+ let fe = Yt;
696
+ var Vt, Q, tt, Kt, Ut, ht, Xt, Zt;
697
+ const xt = class xt extends HTMLElement {
695
698
  constructor() {
696
699
  super();
697
- d(this, Yt);
700
+ d(this, Vt);
698
701
  d(this, Q, null);
699
702
  d(this, tt);
700
703
  A(this, "invalidate", /* @__PURE__ */ h(() => {
701
704
  var e, s;
702
705
  t(this, tt).refresh(), (e = this.querySelector("nine-table-hscrollbar")) == null || e.refresh(), (s = this.querySelector("nine-table-vscrollbar")) == null || s.refresh();
703
706
  }, "invalidate"));
704
- d(this, Vt, /* @__PURE__ */ h(() => {
707
+ d(this, Kt, /* @__PURE__ */ h(() => {
705
708
  [
706
709
  { selector: ".ng-container-body", type: null },
707
710
  { selector: ".ng-container-left", type: "left" },
@@ -711,18 +714,18 @@ const mt = class mt extends HTMLElement {
711
714
  if (!n) return;
712
715
  n.innerHTML = "";
713
716
  const o = document.createElement("div");
714
- o.className = "ng-part-header", o.appendChild(t(this, ct).call(this, t(this, Q), r, "header"));
717
+ o.className = "ng-part-header", o.appendChild(t(this, ht).call(this, t(this, Q), r, "header"));
715
718
  const a = document.createElement("div");
716
719
  a.className = "ng-part-body";
717
720
  const c = document.createElement("div");
718
- c.className = "ng-scroll-content", c.style.position = "relative", c.style.width = "100%", c.appendChild(t(this, ct).call(this, t(this, Q), r, "body"));
721
+ c.className = "ng-scroll-content", c.style.position = "relative", c.style.width = "100%", c.appendChild(t(this, ht).call(this, t(this, Q), r, "body"));
719
722
  const l = document.createElement("div");
720
723
  l.className = "ng-virtual-spacer", l.style.width = "100%", l.style.pointerEvents = "none", c.appendChild(l), a.appendChild(c);
721
724
  const f = document.createElement("div");
722
- f.className = "ng-part-footer", f.appendChild(t(this, ct).call(this, t(this, Q), r, "footer")), n.appendChild(o), n.appendChild(a), n.appendChild(f);
725
+ f.className = "ng-part-footer", f.appendChild(t(this, ht).call(this, t(this, Q), r, "footer")), n.appendChild(o), n.appendChild(a), n.appendChild(f);
723
726
  });
724
727
  }, "#renderSplitContainers"));
725
- d(this, Kt, /* @__PURE__ */ h(() => {
728
+ d(this, Ut, /* @__PURE__ */ h(() => {
726
729
  ["left", "right", "body"].forEach((e) => {
727
730
  const s = this.querySelector(`.ng-container-${e}`), r = s == null ? void 0 : s.querySelectorAll("table");
728
731
  if (!s || !r || r.length === 0) return;
@@ -734,12 +737,12 @@ const mt = class mt extends HTMLElement {
734
737
  });
735
738
  }, "#updateContainerWidths"));
736
739
  A(this, "generate", /* @__PURE__ */ h((e) => {
737
- e && (y(this, Q, de.compile(e)), t(this, Vt).call(this), t(this, Kt).call(this), t(this, tt).initialize(), setTimeout(() => {
740
+ e && (y(this, Q, fe.compile(e)), t(this, Kt).call(this), t(this, Ut).call(this), t(this, tt).initialize(), setTimeout(() => {
738
741
  var s;
739
742
  (s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
740
743
  }, 0));
741
744
  }, "generate"));
742
- d(this, ct, /* @__PURE__ */ h((e, s, r) => {
745
+ d(this, ht, /* @__PURE__ */ h((e, s, r) => {
743
746
  const n = e.cloneNode(!0), o = n.querySelector("thead"), a = n.querySelector("tbody"), c = n.querySelector("tfoot");
744
747
  if (r === "header") {
745
748
  if (a && a.remove(), c && c.remove(), e.querySelector("tbody")) {
@@ -764,11 +767,11 @@ const mt = class mt extends HTMLElement {
764
767
  const s = this.querySelector(".ng-container-body .ng-part-body");
765
768
  s && (s.scrollTop = e);
766
769
  }, "scrollToY"));
767
- d(this, Ut, /* @__PURE__ */ h(() => {
768
- t(this, Xt).call(this);
769
- }, "#init"));
770
770
  d(this, Xt, /* @__PURE__ */ h(() => {
771
- const e = mt.SCROLLBAR_SIZE;
771
+ t(this, Zt).call(this);
772
+ }, "#init"));
773
+ d(this, Zt, /* @__PURE__ */ h(() => {
774
+ const e = xt.SCROLLBAR_SIZE;
772
775
  this.innerHTML = `
773
776
  <style>
774
777
  nine-table-sheet {
@@ -910,31 +913,31 @@ const mt = class mt extends HTMLElement {
910
913
  </div>
911
914
  `;
912
915
  }, "#render"));
913
- y(this, tt, new he(this)), y(this, Yt, this.getRootNode().host);
916
+ y(this, tt, new de(this)), y(this, Vt, this.getRootNode().host);
914
917
  }
915
918
  connectedCallback() {
916
- t(this, Ut).call(this);
919
+ t(this, Xt).call(this);
917
920
  }
918
921
  disconnectedCallback() {
919
- this.innerHTML = "", yt.log("NineTableSheet destroyed.");
922
+ this.innerHTML = "", pt.log("NineTableSheet destroyed.");
920
923
  }
921
924
  };
922
- Yt = new WeakMap(), Q = new WeakMap(), tt = new WeakMap(), Vt = new WeakMap(), Kt = new WeakMap(), ct = new WeakMap(), Ut = new WeakMap(), Xt = new WeakMap(), h(mt, "NineTableSheet"), A(mt, "SCROLLBAR_SIZE", 16);
923
- let $t = mt;
924
- customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", $t);
925
- var Zt, Rt;
926
- const Ie = class Ie extends HTMLElement {
925
+ Vt = new WeakMap(), Q = new WeakMap(), tt = new WeakMap(), Kt = new WeakMap(), Ut = new WeakMap(), ht = new WeakMap(), Xt = new WeakMap(), Zt = new WeakMap(), h(xt, "NineTableSheet"), A(xt, "SCROLLBAR_SIZE", 16);
926
+ let It = xt;
927
+ customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", It);
928
+ var Gt, kt;
929
+ const _e = class _e extends HTMLElement {
927
930
  constructor() {
928
931
  super();
929
- d(this, Zt, /* @__PURE__ */ h(() => {
932
+ d(this, Gt, /* @__PURE__ */ h(() => {
930
933
  var e;
931
934
  (e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
932
935
  var o;
933
936
  const r = s.ctrlKey || s.metaKey || s.shiftKey, n = parseInt((o = s.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
934
- t(this, Rt).call(this, n, r);
935
- }), t(this, Rt).call(this, 0, !1);
937
+ t(this, kt).call(this, n, r);
938
+ }), t(this, kt).call(this, 0, !1);
936
939
  }, "#init"));
937
- d(this, Rt, /* @__PURE__ */ h((e, s = !1) => {
940
+ d(this, kt, /* @__PURE__ */ h((e, s = !1) => {
938
941
  const r = /* @__PURE__ */ h(() => {
939
942
  const f = Array.from(this.querySelectorAll("nine-table-sheet"));
940
943
  Array.from(this.querySelectorAll("nine-splitter")).forEach((g) => g.style.setProperty("display", "none"));
@@ -967,30 +970,30 @@ const Ie = class Ie extends HTMLElement {
967
970
  }, "#switchSheet"));
968
971
  }
969
972
  connectedCallback() {
970
- t(this, Zt).call(this);
973
+ t(this, Gt).call(this);
971
974
  }
972
975
  };
973
- Zt = new WeakMap(), Rt = new WeakMap(), h(Ie, "NineTableSheets");
974
- let fe = Ie;
975
- customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", fe);
976
- var I, Gt, kt, Jt;
977
- const _e = class _e {
976
+ Gt = new WeakMap(), kt = new WeakMap(), h(_e, "NineTableSheets");
977
+ let ue = _e;
978
+ customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", ue);
979
+ var I, Jt, Tt, Qt;
980
+ const Ne = class Ne {
978
981
  constructor(i) {
979
982
  d(this, I);
980
- d(this, Gt, /* @__PURE__ */ h(() => {
981
- t(this, Jt).call(this), new ResizeObserver((i) => {
983
+ d(this, Jt, /* @__PURE__ */ h(() => {
984
+ t(this, Qt).call(this), new ResizeObserver((i) => {
982
985
  for (let e of i)
983
- t(this, I).getAttribute("auto-height") === "true" && t(this, kt).call(this);
986
+ t(this, I).getAttribute("auto-height") === "true" && t(this, Tt).call(this);
984
987
  }).observe(t(this, I));
985
988
  }, "#init"));
986
- d(this, kt, /* @__PURE__ */ h(() => {
989
+ d(this, Tt, /* @__PURE__ */ h(() => {
987
990
  var c, l;
988
991
  const i = Array.from(t(this, I).shadowRoot.querySelectorAll("nine-table-sheet.active"));
989
992
  if (i.length === 0) return;
990
- const e = parseInt(t(this, I).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), r = (c = t(this, I).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, I).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = $t.SCROLLBAR_SIZE, a = e * s + r + n + o;
993
+ const e = parseInt(t(this, I).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), r = (c = t(this, I).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, n = (l = t(this, I).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = It.SCROLLBAR_SIZE, a = e * s + r + n + o;
991
994
  t(this, I).style.height = `${a}px`;
992
995
  }, "#applyAutoHeight"));
993
- d(this, Jt, /* @__PURE__ */ h(() => {
996
+ d(this, Qt, /* @__PURE__ */ h(() => {
994
997
  const e = Array.from(t(this, I).children).filter((c) => c.tagName === "TABLE"), s = t(this, I).getAttribute("auto-height") === "true", r = e.length, n = e.map((c, l) => {
995
998
  const u = `<nine-table-sheet class="${l === 0 ? "active" : ""}" data-index="${l}"></nine-table-sheet>`, b = l < r - 1 ? `<nine-splitter class="h" data-split-index="${l}"></nine-splitter>` : "";
996
999
  return u + b;
@@ -1089,50 +1092,50 @@ const _e = class _e {
1089
1092
  const a = t(this, I).shadowRoot.querySelectorAll("nine-table-sheet");
1090
1093
  a == null || a.forEach((c, l) => {
1091
1094
  e[l] && setTimeout(() => {
1092
- c.generate(e[l]), s && t(this, kt).call(this);
1095
+ c.generate(e[l]), s && t(this, Tt).call(this);
1093
1096
  });
1094
1097
  });
1095
1098
  }, "#render"));
1096
- y(this, I, i), t(this, Gt).call(this);
1099
+ y(this, I, i), t(this, Jt).call(this);
1097
1100
  }
1098
1101
  };
1099
- I = new WeakMap(), Gt = new WeakMap(), kt = new WeakMap(), Jt = new WeakMap(), h(_e, "LayoutManager");
1100
- let ue = _e;
1101
- var Tt, ht;
1102
- const Ne = class Ne {
1102
+ I = new WeakMap(), Jt = new WeakMap(), Tt = new WeakMap(), Qt = new WeakMap(), h(Ne, "LayoutManager");
1103
+ let ge = Ne;
1104
+ var Ct, dt;
1105
+ const We = class We {
1103
1106
  constructor(i) {
1104
- d(this, Tt);
1105
- d(this, ht, -1);
1106
- A(this, "count", /* @__PURE__ */ h(() => t(this, Tt).rawRecords.length, "count"));
1107
- y(this, Tt, i);
1107
+ d(this, Ct);
1108
+ d(this, dt, -1);
1109
+ A(this, "count", /* @__PURE__ */ h(() => t(this, Ct).rawRecords.length, "count"));
1110
+ y(this, Ct, i);
1108
1111
  }
1109
1112
  get at() {
1110
- return t(this, ht);
1113
+ return t(this, dt);
1111
1114
  }
1112
1115
  set at(i) {
1113
- y(this, ht, parseInt(i, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, ht)}"]`) && setTimeout(() => {
1116
+ y(this, dt, parseInt(i, 10)), body && !body.querySelector(`tbody.bindable tr[data-row="${t(this, dt)}"]`) && setTimeout(() => {
1114
1117
  });
1115
1118
  }
1116
1119
  };
1117
- Tt = new WeakMap(), ht = new WeakMap(), h(Ne, "ngRow");
1118
- let ge = Ne;
1119
- var _, T, N, dt, Qt, Y, te, et, Ct, ee, se, ft;
1120
+ Ct = new WeakMap(), dt = new WeakMap(), h(We, "ngRow");
1121
+ let be = We;
1122
+ var _, T, N, ft, te, Y, ee, et, Lt, se, ie, ut;
1120
1123
  const W = class W {
1121
1124
  constructor(i, e) {
1122
1125
  d(this, _);
1123
1126
  d(this, T);
1124
1127
  d(this, N, []);
1125
- d(this, dt, []);
1126
- d(this, Qt, 0);
1128
+ d(this, ft, []);
1129
+ d(this, te, 0);
1127
1130
  d(this, Y, []);
1128
- d(this, te, /* @__PURE__ */ h(() => {
1131
+ d(this, ee, /* @__PURE__ */ h(() => {
1129
1132
  y(this, Y, []);
1130
1133
  const i = t(this, _).template || [];
1131
1134
  Array.from(i).forEach((e) => {
1132
1135
  var s;
1133
1136
  t(this, Y).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
1134
1137
  }), (t(this, T).rawRecords || []).forEach((e) => {
1135
- e.__ng || (e.__ng = t(this, Ct).call(this)), e.__ng.height = t(this, Y).slice();
1138
+ e.__ng || (e.__ng = t(this, Lt).call(this)), e.__ng.height = t(this, Y).slice();
1136
1139
  });
1137
1140
  }, "#initialize"));
1138
1141
  d(this, et, /* @__PURE__ */ h(() => {
@@ -1144,19 +1147,19 @@ const W = class W {
1144
1147
  var n;
1145
1148
  const s = this.getValidData();
1146
1149
  if (!s || s.length <= 0) return;
1147
- if (i == null) return t(this, ft).call(this, s);
1150
+ if (i == null) return t(this, ut).call(this, s);
1148
1151
  if (i < 0 || i >= s.length) return null;
1149
1152
  const r = typeof ((n = t(this, _).fields) == null ? void 0 : n.get) == "function" ? t(this, _).fields.get() : [];
1150
1153
  if (e != null) {
1151
1154
  const o = r.indexOf(e);
1152
1155
  return o >= 0 ? s[i].v[o] : null;
1153
1156
  }
1154
- return t(this, ft).call(this, s[i]);
1157
+ return t(this, ut).call(this, s[i]);
1155
1158
  }, "get"));
1156
1159
  A(this, "set", /* @__PURE__ */ h((i) => {
1157
1160
  this.clear(), this.add(i, !1), t(this, et).call(this);
1158
1161
  }, "set"));
1159
- d(this, Ct, /* @__PURE__ */ h(() => ({
1162
+ d(this, Lt, /* @__PURE__ */ h(() => ({
1160
1163
  rowState: W.ROW_STATE.EMPTY,
1161
1164
  deleted: !1,
1162
1165
  filtered: !1,
@@ -1166,13 +1169,13 @@ const W = class W {
1166
1169
  _: [0, 0, 0, 0, W.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, Y).slice(), -1, {}, {}]
1167
1170
  }), "#getDefaultMeta"));
1168
1171
  A(this, "reset", /* @__PURE__ */ h(() => {
1169
- y(this, N, []), y(this, dt, []), t(this, et).call(this);
1172
+ y(this, N, []), y(this, ft, []), t(this, et).call(this);
1170
1173
  }, "reset"));
1171
1174
  A(this, "clear", /* @__PURE__ */ h(() => {
1172
1175
  var i;
1173
- t(this, T).rawRecords = [], y(this, N, []), y(this, dt, []), (i = t(this, T).viewRecords) != null && i.reset && t(this, T).viewRecords.reset();
1176
+ t(this, T).rawRecords = [], y(this, N, []), y(this, ft, []), (i = t(this, T).viewRecords) != null && i.reset && t(this, T).viewRecords.reset();
1174
1177
  }, "clear"));
1175
- d(this, ee, /* @__PURE__ */ h((i) => {
1178
+ d(this, se, /* @__PURE__ */ h((i) => {
1176
1179
  var r;
1177
1180
  Array.isArray(i) || (i = [i]);
1178
1181
  const e = typeof ((r = t(this, _).fields) == null ? void 0 : r.get) == "function" ? t(this, _).fields.get() : Object.keys(i[0] || {}), s = [];
@@ -1183,13 +1186,13 @@ const W = class W {
1183
1186
  }), s.push(o);
1184
1187
  }), s;
1185
1188
  }, "#json2Array"));
1186
- d(this, se, /* @__PURE__ */ h((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
1187
- 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;
1189
+ d(this, ie, /* @__PURE__ */ h((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
1190
+ 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;
1188
1191
  }), i), "#defaultInsert"));
1189
1192
  A(this, "add", /* @__PURE__ */ h((i, e = !0) => {
1190
1193
  i === void 0 && (i = {});
1191
- const s = t(this, ee).call(this, i);
1192
- t(this, T).rawRecords = t(this, T).rawRecords.concat(t(this, se).call(this, s)), this.resetRecords();
1194
+ const s = t(this, se).call(this, i);
1195
+ t(this, T).rawRecords = t(this, T).rawRecords.concat(t(this, ie).call(this, s)), this.resetRecords();
1193
1196
  const r = this.count() - 1;
1194
1197
  return e || s.forEach((n, o) => {
1195
1198
  const a = t(this, T).rawRecords[r - o];
@@ -1218,14 +1221,14 @@ const W = class W {
1218
1221
  a !== s && o.__ng.rowState !== W.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(e) || (o.__ng.o[e] = a), o.__ng.rowState = W.ROW_STATE.UPDATE), o.v[n] = s;
1219
1222
  }, "setValue"));
1220
1223
  A(this, "resetRecords", /* @__PURE__ */ h(() => {
1221
- y(this, dt, t(this, T).rawRecords.filter((i) => !i.__ng.deleted)), y(this, N, t(this, T).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), t(this, T).rawRecords.forEach((i, e) => {
1224
+ y(this, ft, t(this, T).rawRecords.filter((i) => !i.__ng.deleted)), y(this, N, t(this, T).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), t(this, T).rawRecords.forEach((i, e) => {
1222
1225
  i.__ng.rowidx = e;
1223
1226
  }), t(this, N).forEach((i, e) => {
1224
1227
  i.__ng.i = e;
1225
1228
  });
1226
1229
  }, "resetRecords"));
1227
1230
  A(this, "getValidData", /* @__PURE__ */ h(() => (t(this, N).length === 0 && t(this, T).rawRecords.length > 0 && this.resetRecords(), t(this, N)), "getValidData"));
1228
- d(this, ft, /* @__PURE__ */ h((i) => {
1231
+ d(this, ut, /* @__PURE__ */ h((i) => {
1229
1232
  var o;
1230
1233
  if (!i) return i;
1231
1234
  const e = !Array.isArray(i), s = e ? [i] : i, r = typeof ((o = t(this, _).fields) == null ? void 0 : o.get) == "function" ? t(this, _).fields.get() : [], n = s.filter((a) => !a.__ng.deleted).map((a) => {
@@ -1237,16 +1240,16 @@ const W = class W {
1237
1240
  return e ? n[0] : n;
1238
1241
  }, "#conv"));
1239
1242
  A(this, "count", /* @__PURE__ */ h(() => this.getValidData().length, "count"));
1240
- y(this, _, i), y(this, T, e), t(this, te).call(this);
1243
+ y(this, _, i), y(this, T, e), t(this, ee).call(this);
1241
1244
  }
1242
1245
  get source() {
1243
- return t(this, ft).call(this, t(this, T).rawRecords);
1246
+ return t(this, ut).call(this, t(this, T).rawRecords);
1244
1247
  }
1245
1248
  set source(i) {
1246
1249
  this.clear(), this.add(i, !1);
1247
1250
  }
1248
1251
  get nextId() {
1249
- return ++Ve(this, Qt)._;
1252
+ return ++Ke(this, te)._;
1250
1253
  }
1251
1254
  get length() {
1252
1255
  return t(this, N).length;
@@ -1255,7 +1258,7 @@ const W = class W {
1255
1258
  return this.length;
1256
1259
  }
1257
1260
  };
1258
- _ = new WeakMap(), T = new WeakMap(), N = new WeakMap(), dt = new WeakMap(), Qt = new WeakMap(), Y = new WeakMap(), te = new WeakMap(), et = new WeakMap(), Ct = new WeakMap(), ee = new WeakMap(), se = new WeakMap(), ft = new WeakMap(), h(W, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1261
+ _ = new WeakMap(), T = new WeakMap(), N = new WeakMap(), ft = new WeakMap(), te = new WeakMap(), Y = new WeakMap(), ee = new WeakMap(), et = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), ut = new WeakMap(), h(W, "ngData"), // 🎯 ν–‰ μƒνƒœ μ •μ˜ μƒμˆ˜λ₯Ό 클래슀 λ‚΄λΆ€λ‘œ λ‚΄μž¬ν™”
1259
1262
  A(W, "ROW_STATE", {
1260
1263
  EMPTY: "EMPTY",
1261
1264
  NORMAL: "NORMAL",
@@ -1263,12 +1266,12 @@ A(W, "ROW_STATE", {
1263
1266
  UPDATE: "UPDATE",
1264
1267
  DELETE: "DELETE"
1265
1268
  });
1266
- let be = W;
1269
+ let ye = W;
1267
1270
  var st;
1268
- const We = class We {
1271
+ const Oe = class Oe {
1269
1272
  constructor(i) {
1270
1273
  d(this, st);
1271
- y(this, st, i), this.row = new ge(this), this.data = new be(t(this, st), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1274
+ y(this, st, i), this.row = new be(this), this.data = new ye(t(this, st), this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
1272
1275
  var e;
1273
1276
  (e = t(this, st).view) != null && e.redraw && t(this, st).view.redraw();
1274
1277
  }, this.setDataSource = (e) => {
@@ -1285,31 +1288,31 @@ const We = class We {
1285
1288
  }, this.setDataSource([]);
1286
1289
  }
1287
1290
  };
1288
- st = new WeakMap(), h(We, "ngDataManager");
1289
- let ye = We;
1290
- var ut, L, Lt, ie;
1291
- const Oe = class Oe {
1291
+ st = new WeakMap(), h(Oe, "ngDataManager");
1292
+ let pe = Oe;
1293
+ var gt, L, Ht, re;
1294
+ const Be = class Be {
1292
1295
  // 🎯 이제 { name: string, type: string } κ°μ²΄λ“€μ˜ λ°°μ—΄λ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.
1293
1296
  constructor(i) {
1294
- d(this, ut);
1297
+ d(this, gt);
1295
1298
  d(this, L, []);
1296
1299
  A(this, "add", /* @__PURE__ */ h((i, e = "string") => {
1297
1300
  i.forEach((s) => {
1298
1301
  t(this, L).some((r) => r.name === s) || t(this, L).push({ name: s, type: e });
1299
- }), t(this, Lt).call(this);
1302
+ }), t(this, Ht).call(this);
1300
1303
  }, "add"));
1301
- d(this, Lt, /* @__PURE__ */ h(() => {
1304
+ d(this, Ht, /* @__PURE__ */ h(() => {
1302
1305
  const i = /* @__PURE__ */ new Map();
1303
1306
  t(this, L).forEach((e) => {
1304
1307
  i.set(e.name, e.type);
1305
1308
  }), y(this, L, Array.from(i, ([e, s]) => ({ name: e, type: s }))), y(this, L, t(this, L).filter((e) => e.name !== "" && e.name !== "__ng")), t(this, L).sort((e, s) => e.name.length < s.name.length ? 1 : -1);
1306
1309
  }, "#adjust"));
1307
- d(this, ie, /* @__PURE__ */ h(() => {
1308
- y(this, L, []), yt.log(t(this, ut).querySelectorAll("table"));
1309
- const i = Array.from(t(this, ut).querySelectorAll("table"));
1310
+ d(this, re, /* @__PURE__ */ h(() => {
1311
+ y(this, L, []), pt.log(t(this, gt).querySelectorAll("table"));
1312
+ const i = Array.from(t(this, gt).querySelectorAll("table"));
1310
1313
  if (!(!i || i.length === 0)) {
1311
1314
  for (const e of i)
1312
- yt.log(e), $("[data-bind]", e).each((s, r) => {
1315
+ pt.log(e), $("[data-bind]", e).each((s, r) => {
1313
1316
  const n = r.dataset.bind, o = r.getAttribute("data-type") || "string";
1314
1317
  n && t(this, L).push({ name: n, type: o });
1315
1318
  }), ["data-expr", "background-color", "color", "tooltip", "visible", "readonly", "enable-button", "enable-check", "class-expr", "icon-color", "icon-src"].forEach((s) => {
@@ -1333,10 +1336,10 @@ const Oe = class Oe {
1333
1336
  });
1334
1337
  });
1335
1338
  });
1336
- t(this, Lt).call(this);
1339
+ t(this, Ht).call(this);
1337
1340
  }
1338
1341
  }, "#init"));
1339
- y(this, ut, i), t(this, ie).call(this);
1342
+ y(this, gt, i), t(this, re).call(this);
1340
1343
  }
1341
1344
  // 🎯 기쑴에 ν•„λ“œ μ΄λ¦„λ§Œ μ“°λ˜ κ³³λ“€κ³Όμ˜ ν˜Έν™˜μ„ μœ„ν•΄ 이름 λ°°μ—΄λ§Œ λ¦¬ν„΄ν•˜λŠ” λ©”μ„œλ“œ μœ μ§€
1342
1345
  get() {
@@ -1358,25 +1361,25 @@ const Oe = class Oe {
1358
1361
  return t(this, L).some((e) => e.name === i);
1359
1362
  }
1360
1363
  };
1361
- ut = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), ie = new WeakMap(), h(Oe, "ngFields");
1362
- let pe = Oe;
1363
- var it, re, ne;
1364
- const Be = class Be extends HTMLElement {
1364
+ gt = new WeakMap(), L = new WeakMap(), Ht = new WeakMap(), re = new WeakMap(), h(Be, "ngFields");
1365
+ let me = Be;
1366
+ var it, ne, oe;
1367
+ const ze = class ze extends HTMLElement {
1365
1368
  constructor() {
1366
1369
  super();
1367
1370
  //#created = false;
1368
1371
  d(this, it);
1369
- d(this, re);
1370
- d(this, ne, /* @__PURE__ */ h(() => {
1371
- this.fields = new pe(this), y(this, re, new ue(this)), yt.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1372
+ d(this, ne);
1373
+ d(this, oe, /* @__PURE__ */ h(() => {
1374
+ this.fields = new me(this), y(this, ne, new ge(this)), pt.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
1372
1375
  }, "#init"));
1373
- this.attachShadow({ mode: "open" }), y(this, it, new ye(this));
1376
+ this.attachShadow({ mode: "open" }), y(this, it, new pe(this));
1374
1377
  }
1375
1378
  connectedCallback() {
1376
- t(this, ne).call(this);
1379
+ t(this, oe).call(this);
1377
1380
  }
1378
1381
  disconnectedCallback() {
1379
- yt.log("NineTable disconnected.");
1382
+ pt.log("NineTable disconnected.");
1380
1383
  }
1381
1384
  // 🎯 μ™ΈλΆ€μ—μ„œ grid.data.set(...) ν˜•νƒœλ‘œ μ ‘κ·Όν•  수 μžˆλ„λ‘ 데이터 λ§€λ‹ˆμ € μ˜€ν”ˆ
1382
1385
  get data() {
@@ -1391,10 +1394,10 @@ const Be = class Be extends HTMLElement {
1391
1394
  return t(this, it);
1392
1395
  }
1393
1396
  };
1394
- it = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), h(Be, "NineTable");
1395
- let me = Be;
1396
- customElements.get("nine-table") || customElements.define("nine-table", me);
1397
- const xt = class xt extends HTMLElement {
1397
+ it = new WeakMap(), ne = new WeakMap(), oe = new WeakMap(), h(ze, "NineTable");
1398
+ let xe = ze;
1399
+ customElements.get("nine-table") || customElements.define("nine-table", xe);
1400
+ const vt = class vt extends HTMLElement {
1398
1401
  // πŸ‘ˆ μ»€μŠ€ν…€ μŠ€νƒ€μΌμš© μΊμ‹œ μΆ”κ°€
1399
1402
  constructor() {
1400
1403
  super();
@@ -1405,19 +1408,19 @@ const xt = class xt extends HTMLElement {
1405
1408
  connectedCallback() {
1406
1409
  }
1407
1410
  };
1408
- h(xt, "BasicCellElement"), A(xt, "_styleCache", /* @__PURE__ */ new Map()), A(xt, "_customStyleCache", /* @__PURE__ */ new Map());
1409
- let xe = xt;
1410
- var C, Ht, p, Ae, qe, Re, ke, Te;
1411
- const ze = class ze extends xe {
1411
+ h(vt, "BasicCellElement"), A(vt, "_styleCache", /* @__PURE__ */ new Map()), A(vt, "_customStyleCache", /* @__PURE__ */ new Map());
1412
+ let ve = vt;
1413
+ var C, Mt, p, qe, Re, ke, Te, Ce;
1414
+ const De = class De extends ve {
1412
1415
  constructor() {
1413
1416
  super();
1414
1417
  d(this, C);
1415
- d(this, Ht);
1418
+ d(this, Mt);
1416
1419
  d(this, p);
1417
- d(this, Ae);
1418
1420
  d(this, qe);
1419
1421
  d(this, Re);
1420
1422
  d(this, ke);
1423
+ d(this, Te);
1421
1424
  A(this, "getDisplayText", /* @__PURE__ */ h((e) => {
1422
1425
  if (t(this, p))
1423
1426
  if (t(this, p).closest("tbody")) {
@@ -1438,7 +1441,7 @@ const ze = class ze extends xe {
1438
1441
  } catch {
1439
1442
  }
1440
1443
  }, "getDisplayText"));
1441
- d(this, Te, /* @__PURE__ */ h(() => {
1444
+ d(this, Ce, /* @__PURE__ */ h(() => {
1442
1445
  if (!(!t(this, C) || !t(this, C).template || !t(this, p).closest("tbody.bindable"))) {
1443
1446
  var e = ninegrid.j.querySelectorAll(t(this, p)).attr("suppress");
1444
1447
  if (e && (e = parseInt(e)), e && !isNaN(e)) {
@@ -1481,7 +1484,7 @@ const ze = class ze extends xe {
1481
1484
  }, "getExprValue"));
1482
1485
  }
1483
1486
  connectedCallback() {
1484
- super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this, Ht, t(this, p).closest("tr"));
1487
+ super.connectedCallback(), y(this, C, this.getRootNode().host), y(this, p, this.closest("th,td")), y(this, Mt, t(this, p).closest("tr"));
1485
1488
  }
1486
1489
  get value() {
1487
1490
  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];
@@ -1499,12 +1502,12 @@ const ze = class ze extends xe {
1499
1502
  return t(this, p).closest("tr").data;
1500
1503
  }
1501
1504
  refresh() {
1502
- return t(this, p).dataset.bind, parseInt(t(this, p).dataset.row), t(this, Ht).data, t(this, p).dataset.row;
1505
+ return t(this, p).dataset.bind, parseInt(t(this, p).dataset.row), t(this, Mt).data, t(this, p).dataset.row;
1503
1506
  }
1504
1507
  };
1505
- C = new WeakMap(), Ht = new WeakMap(), p = new WeakMap(), Ae = new WeakMap(), qe = new WeakMap(), Re = new WeakMap(), ke = new WeakMap(), Te = new WeakMap(), h(ze, "CellElement");
1506
- let ve = ze;
1507
- const De = class De extends ve {
1508
+ C = new WeakMap(), Mt = new WeakMap(), p = new WeakMap(), qe = new WeakMap(), Re = new WeakMap(), ke = new WeakMap(), Te = new WeakMap(), Ce = new WeakMap(), h(De, "CellElement");
1509
+ let we = De;
1510
+ const Pe = class Pe extends we {
1508
1511
  constructor() {
1509
1512
  super();
1510
1513
  }
@@ -1515,21 +1518,21 @@ const De = class De extends ve {
1515
1518
  return super.refresh();
1516
1519
  }
1517
1520
  };
1518
- h(De, "EditableCellElement");
1519
- let we = De;
1520
- var Mt, rt, gt, bt, oe, V, Ce;
1521
- const Pe = class Pe extends we {
1521
+ h(Pe, "EditableCellElement");
1522
+ let Se = Pe;
1523
+ var $t, rt, bt, yt, ae, V, Le;
1524
+ const je = class je extends Se {
1522
1525
  constructor() {
1523
1526
  super();
1524
- d(this, Mt);
1527
+ d(this, $t);
1525
1528
  d(this, rt);
1526
- d(this, gt);
1527
1529
  d(this, bt);
1528
- d(this, oe);
1530
+ d(this, yt);
1531
+ d(this, ae);
1529
1532
  d(this, V);
1530
1533
  A(this, "refresh", /* @__PURE__ */ h(() => {
1531
1534
  const e = super.refresh();
1532
- t(this, Mt).value = e;
1535
+ t(this, $t).value = e;
1533
1536
  }, "refresh"));
1534
1537
  /**
1535
1538
  dataRefresh = (v) => {
@@ -1561,11 +1564,11 @@ const Pe = class Pe extends we {
1561
1564
  if (!v) this.reset();
1562
1565
  };
1563
1566
  */
1564
- d(this, Ce, /* @__PURE__ */ h((e) => {
1567
+ d(this, Le, /* @__PURE__ */ h((e) => {
1565
1568
  if (!["Escape", "Enter", "Tab", "Home", "End", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Backspace", "Delete"].includes(e.code)) {
1566
1569
  if (t(this, rt) == "number") {
1567
1570
  let n = [];
1568
- if (t(this, V) && Number(t(this, V)) > 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, V) && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && e.target.selectionStart == e.target.selectionEnd) {
1571
+ if (t(this, V) && Number(t(this, V)) > 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, V) && (e.keyCode >= 48 && e.keyCode <= 57 || e.keyCode >= 96 && e.keyCode <= 105) && e.target.selectionStart == e.target.selectionEnd) {
1569
1572
  var s = e.target.value, r = s.indexOf(".");
1570
1573
  if (r >= 0) {
1571
1574
  var s = s.substr(r + 1, s.length);
@@ -1573,10 +1576,10 @@ const Pe = class Pe extends we {
1573
1576
  }
1574
1577
  }
1575
1578
  }
1576
- t(this, gt) && ninegrid.getByteLength(e.target.value) >= Number(t(this, gt)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
1579
+ t(this, bt) && ninegrid.getByteLength(e.target.value) >= Number(t(this, bt)) && e.target.selectionStart == e.target.selectionEnd && e.preventDefault();
1577
1580
  }
1578
1581
  }, "#onKeyDown"));
1579
- if (this.applyBaseStyle(), y(this, rt, this.getAttribute("type") || "text"), y(this, gt, this.getAttribute("maxbyte")), y(this, bt, this.getAttribute("min")), y(this, oe, this.getAttribute("max")), y(this, V, this.getAttribute("scale")), !["text", "number"].includes(t(this, rt))) throw `invalid type : ${t(this, rt)}`;
1582
+ if (this.applyBaseStyle(), y(this, rt, this.getAttribute("type") || "text"), y(this, bt, this.getAttribute("maxbyte")), y(this, yt, this.getAttribute("min")), y(this, ae, this.getAttribute("max")), y(this, V, this.getAttribute("scale")), !["text", "number"].includes(t(this, rt))) throw `invalid type : ${t(this, rt)}`;
1580
1583
  }
1581
1584
  connectedCallback() {
1582
1585
  for (var e = [], s = 0; s < this.attributes.length; s++)
@@ -1586,11 +1589,11 @@ const Pe = class Pe extends we {
1586
1589
  ${e.join(" ")}
1587
1590
  ondragstart="return false;"
1588
1591
  >
1589
- `, super.connectedCallback(), y(this, Mt, this.querySelector("input"));
1592
+ `, super.connectedCallback(), y(this, $t, this.querySelector("input"));
1590
1593
  }
1591
1594
  };
1592
- Mt = new WeakMap(), rt = new WeakMap(), gt = new WeakMap(), bt = new WeakMap(), oe = new WeakMap(), V = new WeakMap(), Ce = new WeakMap(), h(Pe, "CellInputText");
1593
- let Se = Pe;
1595
+ $t = new WeakMap(), rt = new WeakMap(), bt = new WeakMap(), yt = new WeakMap(), ae = new WeakMap(), V = new WeakMap(), Le = new WeakMap(), h(je, "CellInputText");
1596
+ let Ee = je;
1594
1597
  customElements.get("cell-input-text");
1595
- customElements.get("cell-input") || customElements.define("cell-input", Se);
1598
+ customElements.get("cell-input") || customElements.define("cell-input", Ee);
1596
1599
  //# sourceMappingURL=nine-table.js.map