@visactor/vtable 1.26.1 → 1.26.2-none

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.
Files changed (41) hide show
  1. package/cjs/ListTable.d.ts +1 -0
  2. package/cjs/ListTable.js +11 -1
  3. package/cjs/ListTable.js.map +1 -1
  4. package/cjs/PivotTable.js +9 -4
  5. package/cjs/PivotTable.js.map +1 -1
  6. package/cjs/core/BaseTable.js +5 -3
  7. package/cjs/core/BaseTable.js.map +1 -1
  8. package/cjs/event/event.js +3 -1
  9. package/cjs/event/event.js.map +1 -1
  10. package/cjs/index.d.ts +1 -1
  11. package/cjs/index.js +1 -1
  12. package/cjs/index.js.map +1 -1
  13. package/cjs/layout/simple-header-layout.js +7 -7
  14. package/cjs/layout/simple-header-layout.js.map +1 -1
  15. package/cjs/plugins/list-tree-stick-cell.js +29 -3
  16. package/cjs/plugins/list-tree-stick-cell.js.map +1 -1
  17. package/cjs/state/select/update-position.js +2 -2
  18. package/cjs/state/select/update-position.js.map +1 -1
  19. package/cjs/vrender.js.map +1 -1
  20. package/dist/vtable.js +93 -14
  21. package/dist/vtable.min.js +1 -1
  22. package/es/ListTable.d.ts +1 -0
  23. package/es/ListTable.js +11 -1
  24. package/es/ListTable.js.map +1 -1
  25. package/es/PivotTable.js +9 -4
  26. package/es/PivotTable.js.map +1 -1
  27. package/es/core/BaseTable.js +5 -3
  28. package/es/core/BaseTable.js.map +1 -1
  29. package/es/event/event.js +3 -1
  30. package/es/event/event.js.map +1 -1
  31. package/es/index.d.ts +1 -1
  32. package/es/index.js +1 -1
  33. package/es/index.js.map +1 -1
  34. package/es/layout/simple-header-layout.js +7 -7
  35. package/es/layout/simple-header-layout.js.map +1 -1
  36. package/es/plugins/list-tree-stick-cell.js +32 -2
  37. package/es/plugins/list-tree-stick-cell.js.map +1 -1
  38. package/es/state/select/update-position.js +2 -2
  39. package/es/state/select/update-position.js.map +1 -1
  40. package/es/vrender.js.map +1 -1
  41. package/package.json +3 -3
@@ -92,7 +92,7 @@ export class BaseTable extends EventTarget {
92
92
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
93
93
  if (super(), this.showFrozenIcon = !0, this._scrollToRowCorrectTimer = null, this._tableBorderWidth_left = 0,
94
94
  this._tableBorderWidth_right = 0, this._tableBorderWidth_top = 0, this._tableBorderWidth_bottom = 0,
95
- this.version = "1.26.1", this.id = `VTable${Date.now()}`, this.isReleased = !1,
95
+ this.version = "1.26.2-none", this.id = `VTable${Date.now()}`, this.isReleased = !1,
96
96
  this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
97
97
  "undefined" != typeof window) {
98
98
  const g = window;
@@ -943,7 +943,8 @@ export class BaseTable extends EventTarget {
943
943
  return count;
944
944
  }
945
945
  getBodyVisibleCellRange() {
946
- const {scrollTop: scrollTop, scrollLeft: scrollLeft} = this, frozenRowsHeight = this.getFrozenRowsHeight(), frozenColsContentWidth = this.getFrozenColsContentWidth(), frozenColsOffset = this.getFrozenColsOffset(), bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight(), rightFrozenColsWidth = this.getRightFrozenColsWidth(), {row: rowStart} = this.getRowAt(scrollTop + frozenRowsHeight + 1), {col: colStart} = this.getColAt(scrollLeft + frozenColsContentWidth + 1), rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight ? this.getRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight).row : this.rowCount - 1, colEnd = this.getAllColsWidth() > this.tableNoFrameWidth ? this.getColAt(scrollLeft + frozenColsOffset + this.tableNoFrameWidth - 1 - rightFrozenColsWidth).col : this.colCount - 1;
946
+ var _a, _b, _c, _d;
947
+ const {scrollTop: scrollTop, scrollLeft: scrollLeft} = this, frozenColsContentWidth = this.getFrozenColsContentWidth(), frozenColsOffset = this.getFrozenColsOffset(), bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight(), rightFrozenColsWidth = this.getRightFrozenColsWidth(), rowStart = Math.max(null !== (_b = null === (_a = this.getTargetRowAt(scrollTop + 1)) || void 0 === _a ? void 0 : _a.row) && void 0 !== _b ? _b : -1, this.frozenRowCount), {col: colStart} = this.getColAt(scrollLeft + frozenColsContentWidth + 1), rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight ? Math.max(null !== (_d = null === (_c = this.getTargetRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight)) || void 0 === _c ? void 0 : _c.row) && void 0 !== _d ? _d : -1, rowStart) : this.rowCount - 1, colEnd = this.getAllColsWidth() > this.tableNoFrameWidth ? this.getColAt(scrollLeft + frozenColsOffset + this.tableNoFrameWidth - 1 - rightFrozenColsWidth).col : this.colCount - 1;
947
948
  return colEnd < 0 || rowEnd < 0 ? null : {
948
949
  rowStart: rowStart,
949
950
  colStart: colStart,
@@ -952,7 +953,8 @@ export class BaseTable extends EventTarget {
952
953
  };
953
954
  }
954
955
  getBodyVisibleRowRange(start_deltaY = 0, end_deltaY = 0) {
955
- const {scrollTop: scrollTop} = this, frozenRowsHeight = this.getFrozenRowsHeight(), bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight(), {row: rowStart} = this.getRowAt(scrollTop + frozenRowsHeight + 1 + start_deltaY), rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight ? this.getRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight + end_deltaY).row : this.rowCount - 1;
956
+ var _a, _b, _c, _d;
957
+ const {scrollTop: scrollTop} = this, bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight(), rowStart = Math.max(null !== (_b = null === (_a = this.getTargetRowAt(scrollTop + 1 + start_deltaY)) || void 0 === _a ? void 0 : _a.row) && void 0 !== _b ? _b : -1, this.frozenRowCount), rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight ? Math.max(null !== (_d = null === (_c = this.getTargetRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight + end_deltaY)) || void 0 === _c ? void 0 : _c.row) && void 0 !== _d ? _d : -1, rowStart) : this.rowCount - 1;
956
958
  return rowEnd < 0 ? null : {
957
959
  rowStart: rowStart,
958
960
  rowEnd: rowEnd