@ninebone/table 0.0.399 → 0.0.401

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.
@@ -223,7 +223,7 @@ const ae = class ae extends HTMLElement {
223
223
  } else
224
224
  n.style.display = "block";
225
225
  const f = s.clientHeight;
226
- if (H.log(s, f), f <= 0) return;
226
+ if (H.log(s, f, this, this.clientHeight), f <= 0) return;
227
227
  const u = Math.max(Math.min(f * (r / h), f), 20);
228
228
  n.style.height = `${u}px`;
229
229
  const b = e.scrollTop, y = Math.max(h - r, 1);
@@ -244,7 +244,9 @@ const ae = class ae extends HTMLElement {
244
244
  n.stopPropagation(), n.preventDefault(), g(this, D, !0), g(this, ht, n.clientY), g(this, dt, e.scrollTop);
245
245
  const r = /* @__PURE__ */ a((l) => {
246
246
  if (!t(this, D)) return;
247
- const d = t(this, S).track.getBoundingClientRect(), h = t(this, S).thumb.clientHeight, u = d.height - h, b = l.clientY - t(this, ht), y = e.clientHeight, m = s(), R = Math.max(m - y, 1);
247
+ const d = t(this, S).track.getBoundingClientRect(), h = t(this, S).thumb.clientHeight, u = d.height - h, b = l.clientY - t(this, ht), y = e.clientHeight;
248
+ H.log(":::", this.clientHeight);
249
+ const m = s(), R = Math.max(m - y, 1);
248
250
  if (u > 0 && R > 0) {
249
251
  const J = b / u * R;
250
252
  let at = t(this, dt) + J;
@@ -428,7 +430,7 @@ At = new WeakMap(), tt = new WeakMap(), a(M, "TableCompiler"), c(M, At, /* @__PU
428
430
  });
429
431
  }, "#resetColIndex"));
430
432
  let Gt = M;
431
- var I, w, W, T, B, F, N, et, Tt, qt, kt, ft, ut, Lt, Ct, gt, Ht, it, bt;
433
+ var I, w, W, T, B, F, N, et, Tt, qt, kt, ft, ut, Lt, Ht, gt, Ct, it, bt;
432
434
  const ce = class ce {
433
435
  constructor(i) {
434
436
  c(this, I);
@@ -531,7 +533,7 @@ const ce = class ce {
531
533
  y > 0 && (n[u] && (n[u].style.height = `${y}px`), r[u] && (r[u].style.height = `${y}px`), o[u] && (o[u].style.height = `${y}px`));
532
534
  }
533
535
  }, "#syncRowHeights"));
534
- c(this, Ct, /* @__PURE__ */ a(() => {
536
+ c(this, Ht, /* @__PURE__ */ a(() => {
535
537
  !t(this, w) || !(t(this, w) instanceof HTMLElement) || (g(this, B, new ResizeObserver((i) => {
536
538
  for (const e of i) {
537
539
  const s = e.target;
@@ -553,7 +555,7 @@ const ce = class ce {
553
555
  e && e.querySelector("tbody.bindable-tbody") && t(this, qt).call(this, e, i);
554
556
  }), t(this, Lt).call(this);
555
557
  }, "#renderAllContainers"));
556
- c(this, Ht, /* @__PURE__ */ a((i) => {
558
+ c(this, Ct, /* @__PURE__ */ a((i) => {
557
559
  [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((e) => {
558
560
  var h;
559
561
  const s = t(this, w).querySelector(e);
@@ -592,7 +594,7 @@ const ce = class ce {
592
594
  y.style.display = "", t(this, bt).call(this, y, J, R);
593
595
  });
594
596
  }), t(this, et) || (g(this, et, !0), setTimeout(() => {
595
- t(this, Ht).call(this, r), g(this, et, !1);
597
+ t(this, Ct).call(this, r), g(this, et, !1);
596
598
  }, 0));
597
599
  }, "#handleScroll"));
598
600
  c(this, bt, /* @__PURE__ */ a((i, e, s) => {
@@ -604,7 +606,7 @@ const ce = class ce {
604
606
  v(this, "destroy", /* @__PURE__ */ a(() => {
605
607
  t(this, B) && (t(this, B).disconnect(), g(this, B, null));
606
608
  }, "destroy"));
607
- g(this, I, i.getRootNode().host), g(this, w, i), t(this, Ct).call(this);
609
+ g(this, I, i.getRootNode().host), g(this, w, i), t(this, Ht).call(this);
608
610
  }
609
611
  getRowHeight() {
610
612
  return t(this, T);
@@ -614,7 +616,7 @@ const ce = class ce {
614
616
  return ((e = t(this, W).get(i)) == null ? void 0 : e.length) || 1;
615
617
  }
616
618
  };
617
- I = new WeakMap(), w = new WeakMap(), W = new WeakMap(), T = new WeakMap(), B = new WeakMap(), F = new WeakMap(), N = new WeakMap(), et = new WeakMap(), Tt = new WeakMap(), qt = new WeakMap(), kt = new WeakMap(), ft = new WeakMap(), ut = new WeakMap(), Lt = new WeakMap(), Ct = new WeakMap(), gt = new WeakMap(), Ht = new WeakMap(), it = new WeakMap(), bt = new WeakMap(), a(ce, "RowManager");
619
+ I = new WeakMap(), w = new WeakMap(), W = new WeakMap(), T = new WeakMap(), B = new WeakMap(), F = new WeakMap(), N = new WeakMap(), et = new WeakMap(), Tt = new WeakMap(), qt = new WeakMap(), kt = new WeakMap(), ft = new WeakMap(), ut = new WeakMap(), Lt = new WeakMap(), Ht = new WeakMap(), gt = new WeakMap(), Ct = new WeakMap(), it = new WeakMap(), bt = new WeakMap(), a(ce, "RowManager");
618
620
  let Jt = ce;
619
621
  var Mt, st, j, _t, $t, It, Wt, Ot;
620
622
  const ct = class ct extends HTMLElement {