@visactor/vtable 1.4.2-alpha.1 → 1.4.2-alpha.2

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 (49) hide show
  1. package/cjs/PivotTable.js +19 -19
  2. package/cjs/PivotTable.js.map +1 -1
  3. package/cjs/core/BaseTable.js +3 -5
  4. package/cjs/core/BaseTable.js.map +1 -1
  5. package/cjs/core/FouseInput.js +2 -1
  6. package/cjs/core/row-series-number-helper.js +1 -2
  7. package/cjs/event/event.js +3 -7
  8. package/cjs/event/event.js.map +1 -1
  9. package/cjs/event/listener/table-group.js +15 -25
  10. package/cjs/event/listener/table-group.js.map +1 -1
  11. package/cjs/index.d.ts +1 -1
  12. package/cjs/index.js +1 -1
  13. package/cjs/index.js.map +1 -1
  14. package/cjs/layout/tree-helper.js +1 -0
  15. package/cjs/plugins/themes.js +1 -2
  16. package/cjs/state/cell-move/index.js +1 -4
  17. package/cjs/state/cell-move/index.js.map +1 -1
  18. package/cjs/state/sort/index.js +3 -7
  19. package/cjs/state/sort/index.js.map +1 -1
  20. package/cjs/state/state.d.ts +1 -1
  21. package/cjs/state/state.js +6 -10
  22. package/cjs/state/state.js.map +1 -1
  23. package/cjs/vrender.js.map +1 -1
  24. package/dist/vtable.js +69 -37
  25. package/dist/vtable.min.js +1 -1
  26. package/es/PivotTable.js +19 -19
  27. package/es/PivotTable.js.map +1 -1
  28. package/es/core/BaseTable.js +3 -5
  29. package/es/core/BaseTable.js.map +1 -1
  30. package/es/core/FouseInput.js +2 -1
  31. package/es/core/row-series-number-helper.js +1 -2
  32. package/es/event/event.js +2 -6
  33. package/es/event/event.js.map +1 -1
  34. package/es/event/listener/table-group.js +15 -25
  35. package/es/event/listener/table-group.js.map +1 -1
  36. package/es/index.d.ts +1 -1
  37. package/es/index.js +1 -1
  38. package/es/index.js.map +1 -1
  39. package/es/layout/tree-helper.js +2 -1
  40. package/es/plugins/themes.js +1 -2
  41. package/es/state/cell-move/index.js +1 -4
  42. package/es/state/cell-move/index.js.map +1 -1
  43. package/es/state/sort/index.js +3 -7
  44. package/es/state/sort/index.js.map +1 -1
  45. package/es/state/state.d.ts +1 -1
  46. package/es/state/state.js +6 -10
  47. package/es/state/state.js.map +1 -1
  48. package/es/vrender.js.map +1 -1
  49. package/package.json +4 -4
@@ -86,7 +86,7 @@ export class BaseTable extends EventTarget {
86
86
  }
87
87
  constructor(container, options = {}) {
88
88
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
89
- if (super(), this.showFrozenIcon = !0, this.version = "1.4.2-alpha.1", this.id = `VTable${Date.now()}`,
89
+ if (super(), this.showFrozenIcon = !0, this.version = "1.4.2-alpha.2", this.id = `VTable${Date.now()}`,
90
90
  this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
91
91
  !container && "node" !== options.mode) throw new Error("vtable's container is undefined");
92
92
  const {frozenColCount: frozenColCount = 0, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth, widthMode: widthMode = "standard", heightMode: heightMode = "standard", autoFillWidth: autoFillWidth = !1, autoFillHeight: autoFillHeight = !1, widthAdaptiveMode: widthAdaptiveMode = "only-body", heightAdaptiveMode: heightAdaptiveMode = "only-body", keyboardOptions: keyboardOptions, eventOptions: eventOptions, rowSeriesNumber: rowSeriesNumber, columnResizeMode: columnResizeMode, rowResizeMode: rowResizeMode = "none", dragHeaderMode: dragHeaderMode, showFrozenIcon: showFrozenIcon, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, customRender: customRender, pixelRatio: pixelRatio = defaultPixelRatio, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount, mode: mode, modeParams: modeParams, canvasWidth: canvasWidth, canvasHeight: canvasHeight, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth, limitMinHeight: limitMinHeight, clearDOM: clearDOM = !0} = options;
@@ -1065,16 +1065,14 @@ export class BaseTable extends EventTarget {
1065
1065
  this.stateManager.updateSelectPos(-1, -1);
1066
1066
  }
1067
1067
  selectCell(col, row, isShift, isCtrl) {
1068
- var _a;
1069
- const isHasSelected = !!(null === (_a = this.stateManager.select.ranges) || void 0 === _a ? void 0 : _a.length);
1070
- this.stateManager.updateSelectPos(col, row, isShift, isCtrl), this.stateManager.endSelectCells(!0, isHasSelected);
1068
+ this.stateManager.updateSelectPos(col, row, isShift, isCtrl), this.stateManager.endSelectCells();
1071
1069
  }
1072
1070
  selectCells(cellRanges) {
1073
1071
  const {scrollLeft: scrollLeft, scrollTop: scrollTop} = this;
1074
1072
  cellRanges.forEach(((cellRange, index) => {
1075
1073
  cellRange.start.col === cellRange.end.col && cellRange.start.row === cellRange.end.row ? this.stateManager.updateSelectPos(cellRange.start.col, cellRange.start.row, !1, index >= 1, !1, !1, !0) : (this.stateManager.updateSelectPos(cellRange.start.col, cellRange.start.row, !1, index >= 1, !1, !1, !0),
1076
1074
  this.stateManager.updateInteractionState(InteractionState.grabing), this.stateManager.updateSelectPos(cellRange.end.col, cellRange.end.row, !1, index >= 1, !1, !1, !0)),
1077
- this.stateManager.endSelectCells(!1, !1), this.stateManager.updateInteractionState(InteractionState.default);
1075
+ this.stateManager.endSelectCells(!1), this.stateManager.updateInteractionState(InteractionState.default);
1078
1076
  })), this.setScrollTop(scrollTop), this.setScrollLeft(scrollLeft);
1079
1077
  }
1080
1078
  get recordsCount() {