@ninebone/grid 0.0.73 → 0.0.74

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.
package/dist/nine-grid.js CHANGED
@@ -28557,13 +28557,12 @@ class Jd extends HTMLElement {
28557
28557
  tt(this, es, !0), this.shiftY = t.offsetY + f(this, ge).track.getBoundingClientRect().y, this.trackHeight = $(f(this, ge).track).height(), this.thumbHeight = $(f(this, ge).thumb).height(), this.nodataHeight = $(".ng-container .ng-table tr.nodata", f(this, qt).body).height(), this.bodyHeight = $(".ng-container-body", f(this, qt).body).height(), this.templateHeight = f(this, qt).template.height(), this.theadHeight = $(".ng-container-body table > thead", f(this, qt).body).height() || 0, this.tfootHeight = $(".ng-container-body table > tfoot", f(this, qt).body).height() || 0, this.fixedHeight = $(".ng-container-body tbody.fixed", f(this, qt).body).height(), this.tableHeight = $(".ng-container-body .ng-table", f(this, qt).body).height(), tt(this, xn, !0), document.addEventListener("mousemove", f(this, _n)), typeof this.onDragStart == "function" && this.onDragStart();
28558
28558
  });
28559
28559
  Y(this, _n, (t) => {
28560
- var n;
28561
28560
  if (f(this, es)) {
28562
28561
  t.preventDefault(), f(this, xn) && (H.j.querySelectorAll("th,td", f(this, qt).body).removeClass("active").removeClass("multi-selected").removeClass("selected").removeClass("selected-current").removeClass("selected-area").removeClass("selected-top").removeClass("selected-bottom").removeClass("selected-left").removeClass("selected-right"), tt(this, xn, !1));
28563
28562
  var l = this.trackHeight, c = t.clientY - this.shiftY;
28564
28563
  c < 0 && (c = 0), c + f(this, qs).call(this) > l && (c = parseInt(l - f(this, qs).call(this)));
28565
28564
  var o = parseInt($(".ng-container-body tbody.bindable tr", f(this, qt).body).not(".nodata").length / f(this, qt).template.length), r = parseInt(c * (f(this, qt).data.count() + 1 - o) / parseInt(l - f(this, qs).call(this)));
28566
- f(this, qt).dataManager.viewRecords.rawIndex != r ? (f(this, qt).scrollToV2(r), f(this, qt).setScrollTransform(0)) : (trace.log(t), Ve(n = f(this, qt), Qh, Iu).call(n, -10));
28565
+ f(this, qt).dataManager.viewRecords.rawIndex != r ? (f(this, qt).scrollToV2(r), f(this, qt).setScrollTransform(0)) : (trace.log(t), Ve(this, Qh, Iu).call(this, -10));
28567
28566
  }
28568
28567
  });
28569
28568
  Y(this, qs, () => parseInt(f(this, ge).thumb.dataset.height));