@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.
- package/cjs/PivotTable.js +19 -19
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.js +3 -5
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/FouseInput.js +2 -1
- package/cjs/core/row-series-number-helper.js +1 -2
- package/cjs/event/event.js +3 -7
- package/cjs/event/event.js.map +1 -1
- package/cjs/event/listener/table-group.js +15 -25
- package/cjs/event/listener/table-group.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/layout/tree-helper.js +1 -0
- package/cjs/plugins/themes.js +1 -2
- package/cjs/state/cell-move/index.js +1 -4
- package/cjs/state/cell-move/index.js.map +1 -1
- package/cjs/state/sort/index.js +3 -7
- package/cjs/state/sort/index.js.map +1 -1
- package/cjs/state/state.d.ts +1 -1
- package/cjs/state/state.js +6 -10
- package/cjs/state/state.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +69 -37
- package/dist/vtable.min.js +1 -1
- package/es/PivotTable.js +19 -19
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.js +3 -5
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/FouseInput.js +2 -1
- package/es/core/row-series-number-helper.js +1 -2
- package/es/event/event.js +2 -6
- package/es/event/event.js.map +1 -1
- package/es/event/listener/table-group.js +15 -25
- package/es/event/listener/table-group.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/layout/tree-helper.js +2 -1
- package/es/plugins/themes.js +1 -2
- package/es/state/cell-move/index.js +1 -4
- package/es/state/cell-move/index.js.map +1 -1
- package/es/state/sort/index.js +3 -7
- package/es/state/sort/index.js.map +1 -1
- package/es/state/state.d.ts +1 -1
- package/es/state/state.js +6 -10
- package/es/state/state.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +4 -4
package/es/core/BaseTable.js
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
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
|
|
1075
|
+
this.stateManager.endSelectCells(!1), this.stateManager.updateInteractionState(InteractionState.default);
|
|
1078
1076
|
})), this.setScrollTop(scrollTop), this.setScrollLeft(scrollLeft);
|
|
1079
1077
|
}
|
|
1080
1078
|
get recordsCount() {
|