@ninebone/table 0.0.606 β†’ 0.0.607

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.
@@ -23,28 +23,28 @@ const He = class He extends Ke.constructor {
23
23
  c(He, "Trace");
24
24
  let oe = He;
25
25
  const W = new oe();
26
- var z, j, w, X, K, Z, It, G, _t;
26
+ var B, j, w, X, K, Z, It, G, _t;
27
27
  const Me = class Me extends HTMLElement {
28
28
  constructor() {
29
29
  super();
30
- d(this, z);
30
+ d(this, B);
31
31
  d(this, j, !1);
32
32
  d(this, w);
33
33
  d(this, X);
34
34
  d(this, K);
35
35
  d(this, Z);
36
36
  d(this, It, /* @__PURE__ */ c(() => {
37
- if (!t(this, z)) return;
38
- const e = t(this, z).querySelector(".ng-container-body .ng-part-body");
37
+ if (!t(this, B)) return;
38
+ const e = t(this, B).querySelector(".ng-container-body .ng-part-body");
39
39
  e && (p(this, Z, new ResizeObserver(() => {
40
40
  this.refresh();
41
41
  })), t(this, Z).observe(e));
42
42
  }, "#observeResize"));
43
43
  E(this, "refresh", /* @__PURE__ */ c(() => {
44
- if (!t(this, z) || !t(this, w) || t(this, j)) return;
44
+ if (!t(this, B) || !t(this, w) || t(this, j)) return;
45
45
  const e = t(this, w).container, s = e.querySelector("table");
46
46
  if (!s) return;
47
- const r = t(this, w).track, n = t(this, w).thumb, o = t(this, z).querySelector(".ng-container-bottom"), a = e.clientWidth, h = s.scrollWidth;
47
+ const r = t(this, w).track, n = t(this, w).thumb, o = t(this, B).querySelector(".ng-container-bottom"), a = e.clientWidth, h = s.scrollWidth;
48
48
  if (a !== 0 && h > a)
49
49
  o && (o.style.display = "flex");
50
50
  else {
@@ -112,7 +112,7 @@ const Me = class Me extends HTMLElement {
112
112
  }, "#init"));
113
113
  }
114
114
  connectedCallback() {
115
- if (p(this, z, this.closest("nine-table-sheet") || this.getRootNode().host), !t(this, z)) return;
115
+ if (p(this, B, this.closest("nine-table-sheet") || this.getRootNode().host), !t(this, B)) return;
116
116
  this.innerHTML = `
117
117
  <style>
118
118
  nine-table-hscrollbar {
@@ -177,7 +177,7 @@ const Me = class Me extends HTMLElement {
177
177
  <button class='ng-scroll-right' disabled><div class='ng-scroll-icon'></div></button>
178
178
  `;
179
179
  const e = /* @__PURE__ */ c(() => {
180
- const s = t(this, z).querySelector(".ng-container-body .ng-part-body");
180
+ const s = t(this, B).querySelector(".ng-container-body .ng-part-body");
181
181
  if (!s) {
182
182
  setTimeout(e, 10);
183
183
  return;
@@ -198,7 +198,7 @@ const Me = class Me extends HTMLElement {
198
198
  t(this, Z) && t(this, Z).disconnect();
199
199
  }
200
200
  };
201
- z = new WeakMap(), j = new WeakMap(), w = new WeakMap(), X = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), It = new WeakMap(), G = new WeakMap(), _t = new WeakMap(), c(Me, "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(), c(Me, "NineTableHScrollBar");
202
202
  let ae = Me;
203
203
  customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ae);
204
204
  var F, at, J, q, vt, xt, Nt;
@@ -354,7 +354,7 @@ const $e = class $e extends HTMLElement {
354
354
  F = new WeakMap(), at = new WeakMap(), J = new WeakMap(), q = new WeakMap(), vt = new WeakMap(), xt = new WeakMap(), Nt = new WeakMap(), c($e, "NineTableVScrollBar");
355
355
  let le = $e;
356
356
  customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", le);
357
- var P, S, Q, D, I, V, tt, wt, Se, Ae, Wt, Ot, Bt, St, At, zt, Dt, Et, Ee, lt, Rt, Pt;
357
+ var P, S, Q, D, I, V, tt, wt, Se, Ae, Wt, Ot, zt, St, At, Bt, Dt, Et, Ee, lt, Rt, Pt;
358
358
  const Ie = class Ie {
359
359
  constructor(i) {
360
360
  d(this, P);
@@ -391,7 +391,7 @@ const Ie = class Ie {
391
391
  });
392
392
  const i = t(this, S).querySelector(".ng-container-body .ng-part-body"), e = t(this, S).querySelector(".ng-container-left .ng-part-body"), s = t(this, S).querySelector(".ng-container-right .ng-part-body"), r = t(this, S).querySelector(".ng-container-body .ng-part-header"), n = t(this, S).querySelector(".ng-container-body .ng-part-footer");
393
393
  if (i) {
394
- t(this, Bt).call(this, i), t(this, Et).call(this), t(this, St).call(this), t(this, lt).call(this, i.scrollTop);
394
+ t(this, zt).call(this, i), t(this, Et).call(this), t(this, St).call(this), t(this, lt).call(this, i.scrollTop);
395
395
  let o = !1;
396
396
  const a = /* @__PURE__ */ c((h) => {
397
397
  if (o) return;
@@ -420,7 +420,7 @@ const Ie = class Ie {
420
420
  });
421
421
  n ? n.before(o) : r.appendChild(o), e === ".ng-container-body" && (t(this, Q).firstTr = r.querySelector("tr:not(.nodata)"));
422
422
  }, "#renderRows"));
423
- d(this, Bt, /* @__PURE__ */ c((i) => {
423
+ d(this, zt, /* @__PURE__ */ c((i) => {
424
424
  if (W.log("rowManager.#measureAndCacheHeight"), t(this, I) !== null && t(this, I) > 0)
425
425
  return t(this, I);
426
426
  W.log("#measureAndCacheHeight");
@@ -457,7 +457,7 @@ const Ie = class Ie {
457
457
  p(this, wt, i + t(this, Wt));
458
458
  }
459
459
  }, "#updateRowCount"));
460
- d(this, zt, /* @__PURE__ */ c(() => {
460
+ d(this, Bt, /* @__PURE__ */ c(() => {
461
461
  var a, h, l, f, u, g;
462
462
  const i = t(this, S).querySelector(".ng-container-left .ng-part-body table"), e = t(this, S).querySelector(".ng-container-body .ng-part-body table"), s = t(this, S).querySelector(".ng-container-right .ng-part-body table");
463
463
  if (e) {
@@ -504,7 +504,7 @@ const Ie = class Ie {
504
504
  W.log("rowManager.#renderAllContainers"), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
505
505
  const e = t(this, S).querySelector(i);
506
506
  e && e.querySelector(".ng-part-body tbody.bindable-tbody") && t(this, Ot).call(this, e, i);
507
- }), t(this, Pt).call(this), t(this, zt).call(this);
507
+ }), t(this, Pt).call(this), t(this, Bt).call(this);
508
508
  }, "#renderAllContainers"));
509
509
  d(this, Ee, /* @__PURE__ */ c((i) => {
510
510
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((e) => {
@@ -599,7 +599,7 @@ const Ie = class Ie {
599
599
  return ((e = t(this, D).get(i)) == null ? void 0 : e.length) || 1;
600
600
  }
601
601
  };
602
- P = new WeakMap(), S = new WeakMap(), Q = new WeakMap(), D = new WeakMap(), I = new WeakMap(), V = new WeakMap(), tt = new WeakMap(), wt = new WeakMap(), Se = new WeakMap(), Ae = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), Bt = new WeakMap(), St = new WeakMap(), At = new WeakMap(), zt = new WeakMap(), Dt = new WeakMap(), Et = new WeakMap(), Ee = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Pt = new WeakMap(), c(Ie, "RowManager");
602
+ P = new WeakMap(), S = new WeakMap(), Q = new WeakMap(), D = new WeakMap(), I = new WeakMap(), V = new WeakMap(), tt = new WeakMap(), wt = new WeakMap(), Se = new WeakMap(), Ae = new WeakMap(), Wt = new WeakMap(), Ot = new WeakMap(), zt = new WeakMap(), St = new WeakMap(), At = new WeakMap(), Bt = new WeakMap(), Dt = new WeakMap(), Et = new WeakMap(), Ee = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Pt = new WeakMap(), c(Ie, "RowManager");
603
603
  let ce = Ie;
604
604
  const jt = class jt {
605
605
  /**
@@ -648,15 +648,15 @@ const jt = class jt {
648
648
  const x = m.sectionRowIndex;
649
649
  let A = 0;
650
650
  Array.from(m.querySelectorAll("th,td")).forEach((v) => {
651
- for (let B = 0; B < b[x].length; B++)
652
- if (b[x][B] === null) {
653
- A = B;
651
+ for (let z = 0; z < b[x].length; z++)
652
+ if (b[x][z] === null) {
653
+ A = z;
654
654
  break;
655
655
  }
656
656
  const M = v.rowSpan || 1, T = v.colSpan || 1;
657
- for (let B = 0; B < M; B++)
657
+ for (let z = 0; z < M; z++)
658
658
  for (let pt = 0; pt < T; pt++)
659
- x + B < u && A + pt < g && (b[x + B][A + pt] = B === 0 && pt === 0 ? "1" : "0");
659
+ x + z < u && A + pt < g && (b[x + z][A + pt] = z === 0 && pt === 0 ? "1" : "0");
660
660
  });
661
661
  }), l.forEach((m) => {
662
662
  const x = m.sectionRowIndex;
@@ -907,7 +907,6 @@ const yt = class yt extends HTMLElement {
907
907
  <div class="ng-part-header"></div>
908
908
  <div class="ng-part-body">
909
909
  <div class="ng-scroll-content">
910
- <div class="ng-nodata">Data Not Found</div>
911
910
  <div class="ng-virtual-spacer"></div>
912
911
  </div>
913
912
  </div>
@@ -922,6 +921,11 @@ const yt = class yt extends HTMLElement {
922
921
  </div>
923
922
  <div class="ng-part-footer"></div>
924
923
  </div>
924
+
925
+ <div class="ng-nodata-overlay">
926
+ Data Not Found
927
+ </div>
928
+
925
929
  <nine-table-vscrollbar></nine-table-vscrollbar>
926
930
  </div>
927
931
  <div class='ng-container-bottom'>
@@ -1091,17 +1095,26 @@ const Ne = class Ne {
1091
1095
  flex-shrink: 0;
1092
1096
  }
1093
1097
 
1094
- nine-table-sheets .ng-nodata {
1098
+ nine-table-sheets .ng-nodata-overlay {
1095
1099
  display: none;
1100
+ position: absolute;
1101
+ height: 100%;
1102
+ inset: 0;
1103
+ background: rgba(255, 255, 255, 0.9);
1104
+ z-index: 10;
1105
+ align-items: center;
1106
+ justify-content: center;
1107
+ font-size: 13px;
1108
+ color: #6b7280;
1109
+ font-weight: 500;"
1096
1110
  }
1097
1111
 
1098
1112
  nine-table-sheets.nodata {
1099
- .ng-scroll-content {
1100
- .ng-nodata {
1101
- display: block;
1102
- height: 100%;
1103
- }
1113
+ .ng-nodata-overlay {
1114
+ display: block;
1115
+ }
1104
1116
 
1117
+ .ng-scroll-content {
1105
1118
  table {
1106
1119
  display: none;
1107
1120
  }
@@ -1334,7 +1347,7 @@ const Oe = class Oe {
1334
1347
  rt = new WeakMap(), c(Oe, "ngDataManager");
1335
1348
  let be = Oe;
1336
1349
  var ut, L, Lt, se;
1337
- const Be = class Be {
1350
+ const ze = class ze {
1338
1351
  // 🎯 이제 { name: string, type: string } κ°μ²΄λ“€μ˜ λ°°μ—΄λ‘œ κ΄€λ¦¬ν•©λ‹ˆλ‹€.
1339
1352
  constructor(i) {
1340
1353
  d(this, ut);
@@ -1404,10 +1417,10 @@ const Be = class Be {
1404
1417
  return t(this, L).some((e) => e.name === i);
1405
1418
  }
1406
1419
  };
1407
- ut = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), c(Be, "ngFields");
1408
- let pe = Be;
1420
+ ut = new WeakMap(), L = new WeakMap(), Lt = new WeakMap(), se = new WeakMap(), c(ze, "ngFields");
1421
+ let pe = ze;
1409
1422
  var nt, ie, re;
1410
- const ze = class ze extends HTMLElement {
1423
+ const Be = class Be extends HTMLElement {
1411
1424
  constructor() {
1412
1425
  super();
1413
1426
  //#created = false;
@@ -1437,8 +1450,8 @@ const ze = class ze extends HTMLElement {
1437
1450
  return t(this, nt);
1438
1451
  }
1439
1452
  };
1440
- nt = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), c(ze, "NineTable");
1441
- let ye = ze;
1453
+ nt = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), c(Be, "NineTable");
1454
+ let ye = Be;
1442
1455
  customElements.get("nine-table") || customElements.define("nine-table", ye);
1443
1456
  const mt = class mt extends HTMLElement {
1444
1457
  // πŸ‘ˆ μ»€μŠ€ν…€ μŠ€νƒ€μΌμš© μΊμ‹œ μΆ”κ°€