@visactor/vtable 1.19.9-alpha.3 → 1.20.0-alpha.0
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/ListTable.d.ts +8 -2
- package/cjs/ListTable.js +58 -11
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.d.ts +4 -1
- package/cjs/PivotChart.js +8 -3
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/PivotTable.d.ts +4 -1
- package/cjs/PivotTable.js +8 -3
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/core/BaseTable.d.ts +14 -1
- package/cjs/core/BaseTable.js +121 -28
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/core/TABLE_EVENT_TYPE.d.ts +4 -0
- package/cjs/core/TABLE_EVENT_TYPE.js +5 -1
- package/cjs/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/cjs/core/animation.js.map +1 -1
- package/cjs/core/group-helper.d.ts +3 -1
- package/cjs/core/group-helper.js +8 -4
- package/cjs/core/group-helper.js.map +1 -1
- package/cjs/core/utils/get-cell-position.js +2 -2
- package/cjs/core/utils/get-cell-position.js.map +1 -1
- package/cjs/data/DataSource.d.ts +1 -0
- package/cjs/data/DataSource.js +21 -12
- package/cjs/data/DataSource.js.map +1 -1
- package/cjs/edit/edit-manager.js +5 -4
- package/cjs/edit/edit-manager.js.map +1 -1
- package/cjs/event/drill.js +2 -1
- package/cjs/event/event.d.ts +17 -0
- package/cjs/event/event.js +238 -4
- package/cjs/event/event.js.map +1 -1
- package/cjs/event/listener/container-dom.js +8 -153
- package/cjs/event/listener/container-dom.js.map +1 -1
- package/cjs/event/listener/scroll-bar.js +1 -1
- package/cjs/event/listener/scroll-bar.js.map +1 -1
- package/cjs/event/listener/table-group.js +27 -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/pivot-header-layout.js +1 -1
- package/cjs/layout/pivot-layout.js +2 -0
- package/cjs/layout/row-height-map.js +1 -1
- package/cjs/layout/simple-header-layout.js +1 -1
- package/cjs/layout/tree-helper.js +1 -1
- package/cjs/plugins/custom-cell-style.js +1 -2
- package/cjs/plugins/index.js +1 -1
- package/cjs/plugins/interface.js +1 -1
- package/cjs/plugins/invert-highlight.js +1 -1
- package/cjs/plugins/list-tree-stick-cell.js +1 -1
- package/cjs/plugins/plugin-manager.js +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +1 -4
- package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/chart-render.js +1 -4
- package/cjs/scenegraph/graphic/contributions/chart-render.js.map +1 -1
- package/cjs/scenegraph/graphic/contributions/vchart-graphic-picker.js +1 -7
- package/cjs/scenegraph/graphic/contributions/vchart-graphic-picker.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js +2 -1
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/cjs/scenegraph/layout/compute-col-width.js +3 -1
- package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
- package/cjs/scenegraph/layout/frozen.js +7 -4
- package/cjs/scenegraph/layout/frozen.js.map +1 -1
- package/cjs/scenegraph/scenegraph.d.ts +6 -2
- package/cjs/scenegraph/scenegraph.js +31 -7
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/scenegraph/select/create-select-border.d.ts +2 -0
- package/cjs/scenegraph/select/create-select-border.js +2 -2
- package/cjs/scenegraph/select/create-select-border.js.map +1 -1
- package/cjs/scenegraph/select/update-custom-select-border.d.ts +6 -0
- package/cjs/scenegraph/select/update-custom-select-border.js +69 -0
- package/cjs/scenegraph/select/update-custom-select-border.js.map +1 -0
- package/cjs/scenegraph/select/update-select-border.js +4 -12
- package/cjs/scenegraph/select/update-select-border.js.map +1 -1
- package/cjs/scenegraph/utils/cell-pos.d.ts +12 -0
- package/cjs/scenegraph/utils/cell-pos.js +26 -1
- package/cjs/scenegraph/utils/cell-pos.js.map +1 -1
- package/cjs/scenegraph/utils/update-container.d.ts +1 -0
- package/cjs/scenegraph/utils/update-container.js +8 -1
- package/cjs/scenegraph/utils/update-container.js.map +1 -1
- package/cjs/state/select/custom-select.d.ts +2 -2
- package/cjs/state/select/custom-select.js +2 -14
- package/cjs/state/select/custom-select.js.map +1 -1
- package/cjs/state/select/update-position.js +1 -1
- package/cjs/state/select/update-position.js.map +1 -1
- package/cjs/state/state.d.ts +4 -7
- package/cjs/state/state.js +14 -2
- package/cjs/state/state.js.map +1 -1
- package/cjs/themes/theme-define.js +1 -1
- package/cjs/themes/theme-define.js.map +1 -1
- package/cjs/tools/style.d.ts +3 -1
- package/cjs/tools/style.js +23 -2
- package/cjs/tools/style.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +6 -0
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/events.d.ts +21 -1
- package/cjs/ts-types/events.js.map +1 -1
- package/cjs/ts-types/new-data-set.d.ts +1 -0
- package/cjs/ts-types/new-data-set.js.map +1 -1
- package/cjs/ts-types/style-define.d.ts +6 -0
- package/cjs/ts-types/style-define.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +3 -0
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +2402 -465
- package/dist/vtable.min.js +2 -2
- package/es/ListTable.d.ts +8 -2
- package/es/ListTable.js +59 -9
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.d.ts +4 -1
- package/es/PivotChart.js +8 -3
- package/es/PivotChart.js.map +1 -1
- package/es/PivotTable.d.ts +4 -1
- package/es/PivotTable.js +8 -3
- package/es/PivotTable.js.map +1 -1
- package/es/core/BaseTable.d.ts +14 -1
- package/es/core/BaseTable.js +116 -24
- package/es/core/BaseTable.js.map +1 -1
- package/es/core/TABLE_EVENT_TYPE.d.ts +4 -0
- package/es/core/TABLE_EVENT_TYPE.js +5 -1
- package/es/core/TABLE_EVENT_TYPE.js.map +1 -1
- package/es/core/animation.js +1 -1
- package/es/core/animation.js.map +1 -1
- package/es/core/group-helper.d.ts +3 -1
- package/es/core/group-helper.js +8 -4
- package/es/core/group-helper.js.map +1 -1
- package/es/core/utils/get-cell-position.js +2 -2
- package/es/core/utils/get-cell-position.js.map +1 -1
- package/es/data/DataSource.d.ts +1 -0
- package/es/data/DataSource.js +21 -12
- package/es/data/DataSource.js.map +1 -1
- package/es/edit/edit-manager.js +5 -4
- package/es/edit/edit-manager.js.map +1 -1
- package/es/event/drill.js +2 -1
- package/es/event/event.d.ts +17 -0
- package/es/event/event.js +240 -3
- package/es/event/event.js.map +1 -1
- package/es/event/listener/container-dom.js +9 -154
- package/es/event/listener/container-dom.js.map +1 -1
- package/es/event/listener/scroll-bar.js +1 -1
- package/es/event/listener/scroll-bar.js.map +1 -1
- package/es/event/listener/table-group.js +27 -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/pivot-header-layout.js +1 -1
- package/es/layout/pivot-layout.js +2 -0
- package/es/layout/row-height-map.js +1 -1
- package/es/layout/simple-header-layout.js +1 -1
- package/es/layout/tree-helper.js +1 -1
- package/es/plugins/custom-cell-style.js +1 -2
- package/es/plugins/index.js +1 -1
- package/es/plugins/interface.js +1 -1
- package/es/plugins/invert-highlight.js +1 -1
- package/es/plugins/list-tree-stick-cell.js +1 -1
- package/es/plugins/plugin-manager.js +1 -1
- package/es/scenegraph/graphic/contributions/chart-render-helper.js +1 -4
- package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
- package/es/scenegraph/graphic/contributions/chart-render.js +1 -4
- package/es/scenegraph/graphic/contributions/chart-render.js.map +1 -1
- package/es/scenegraph/graphic/contributions/vchart-graphic-picker.js +1 -7
- package/es/scenegraph/graphic/contributions/vchart-graphic-picker.js.map +1 -1
- package/es/scenegraph/group-creater/cell-helper.js +2 -1
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
- package/es/scenegraph/layout/compute-col-width.js +3 -1
- package/es/scenegraph/layout/compute-col-width.js.map +1 -1
- package/es/scenegraph/layout/frozen.js +7 -4
- package/es/scenegraph/layout/frozen.js.map +1 -1
- package/es/scenegraph/scenegraph.d.ts +6 -2
- package/es/scenegraph/scenegraph.js +29 -8
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/scenegraph/select/create-select-border.d.ts +2 -0
- package/es/scenegraph/select/create-select-border.js +1 -1
- package/es/scenegraph/select/create-select-border.js.map +1 -1
- package/es/scenegraph/select/update-custom-select-border.d.ts +6 -0
- package/es/scenegraph/select/update-custom-select-border.js +63 -0
- package/es/scenegraph/select/update-custom-select-border.js.map +1 -0
- package/es/scenegraph/select/update-select-border.js +4 -11
- package/es/scenegraph/select/update-select-border.js.map +1 -1
- package/es/scenegraph/utils/cell-pos.d.ts +12 -0
- package/es/scenegraph/utils/cell-pos.js +24 -0
- package/es/scenegraph/utils/cell-pos.js.map +1 -1
- package/es/scenegraph/utils/update-container.d.ts +1 -0
- package/es/scenegraph/utils/update-container.js +6 -0
- package/es/scenegraph/utils/update-container.js.map +1 -1
- package/es/state/select/custom-select.d.ts +2 -2
- package/es/state/select/custom-select.js +3 -15
- package/es/state/select/custom-select.js.map +1 -1
- package/es/state/select/update-position.js +1 -1
- package/es/state/select/update-position.js.map +1 -1
- package/es/state/state.d.ts +4 -7
- package/es/state/state.js +14 -2
- package/es/state/state.js.map +1 -1
- package/es/themes/theme-define.js +1 -1
- package/es/themes/theme-define.js.map +1 -1
- package/es/tools/style.d.ts +3 -1
- package/es/tools/style.js +20 -0
- package/es/tools/style.js.map +1 -1
- package/es/ts-types/base-table.d.ts +6 -0
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/events.d.ts +21 -1
- package/es/ts-types/events.js.map +1 -1
- package/es/ts-types/new-data-set.d.ts +1 -0
- package/es/ts-types/new-data-set.js.map +1 -1
- package/es/ts-types/style-define.d.ts +6 -0
- package/es/ts-types/style-define.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +3 -0
- package/es/ts-types/table-engine.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +8 -8
package/es/core/BaseTable.d.ts
CHANGED
|
@@ -55,6 +55,8 @@ export declare abstract class BaseTable extends EventTarget implements BaseTable
|
|
|
55
55
|
customRender?: ICustomRender;
|
|
56
56
|
canvasWidth?: number;
|
|
57
57
|
canvasHeight?: number;
|
|
58
|
+
contentOffsetX?: number;
|
|
59
|
+
contentOffsetY?: number;
|
|
58
60
|
_vDataSet?: DataSet;
|
|
59
61
|
scenegraph: Scenegraph;
|
|
60
62
|
stateManager: StateManager;
|
|
@@ -91,6 +93,7 @@ export declare abstract class BaseTable extends EventTarget implements BaseTable
|
|
|
91
93
|
getElement(): HTMLElement;
|
|
92
94
|
get canvas(): HTMLCanvasElement;
|
|
93
95
|
setCanvasSize(canvasWidth: number, canvasHeight: number): void;
|
|
96
|
+
setContentInsetXY(contentOffsetX: number, contentOffsetY: number): void;
|
|
94
97
|
resize(): void;
|
|
95
98
|
get rowCount(): number;
|
|
96
99
|
set rowCount(rowCount: number);
|
|
@@ -256,7 +259,10 @@ export declare abstract class BaseTable extends EventTarget implements BaseTable
|
|
|
256
259
|
private dispose;
|
|
257
260
|
release(): void;
|
|
258
261
|
fireListeners<TYPE extends keyof TableEventHandlersEventArgumentMap>(type: TYPE, event: TableEventHandlersEventArgumentMap[TYPE]): TableEventHandlersReturnMap[TYPE][];
|
|
259
|
-
updateOption(options: BaseTableConstructorOptions
|
|
262
|
+
updateOption(options: BaseTableConstructorOptions, updateConfig?: {
|
|
263
|
+
clearColWidthCache?: boolean;
|
|
264
|
+
clearRowHeightCache?: boolean;
|
|
265
|
+
}): void;
|
|
260
266
|
renderWithRecreateCells(): void;
|
|
261
267
|
getFrozenRowsHeight(): number;
|
|
262
268
|
getFrozenColsWidth(): number;
|
|
@@ -276,6 +282,13 @@ export declare abstract class BaseTable extends EventTarget implements BaseTable
|
|
|
276
282
|
clearSelected(): void;
|
|
277
283
|
selectCell(col: number, row: number, isShift?: boolean, isCtrl?: boolean, makeSelectCellVisible?: boolean, skipBodyMerge?: boolean): void;
|
|
278
284
|
selectCells(cellRanges: CellRange[]): void;
|
|
285
|
+
selectRow(rowIndex: number, isCtrl?: boolean, isShift?: boolean): void;
|
|
286
|
+
selectCol(colIndex: number, isCtrl?: boolean, isShift?: boolean): void;
|
|
287
|
+
startDragSelectCol(colIndex: number, isCtrl?: boolean, isShift?: boolean): void;
|
|
288
|
+
dragSelectCol(colIndex: number, isCtrl?: boolean): void;
|
|
289
|
+
endDragSelect(): void;
|
|
290
|
+
startDragSelectRow(rowIndex: number, isCtrl?: boolean, isShift?: boolean): void;
|
|
291
|
+
dragSelectRow(rowIndex: number, isCtrl?: boolean): void;
|
|
279
292
|
abstract isListTable(): boolean;
|
|
280
293
|
abstract isPivotTable(): boolean;
|
|
281
294
|
abstract isPivotChart(): boolean;
|
package/es/core/BaseTable.js
CHANGED
|
@@ -90,7 +90,7 @@ export class BaseTable extends EventTarget {
|
|
|
90
90
|
}
|
|
91
91
|
constructor(container, options = {}) {
|
|
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
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.
|
|
93
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.20.0-alpha.0", this.id = `VTable${Date.now()}`,
|
|
94
94
|
this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200),
|
|
95
95
|
"node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container,
|
|
96
96
|
container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
|
|
@@ -102,7 +102,7 @@ export class BaseTable extends EventTarget {
|
|
|
102
102
|
const {frozenColCount: frozenColCount = 0, unfreezeAllOnExceedsMaxWidth: unfreezeAllOnExceedsMaxWidth, frozenRowCount: frozenRowCount, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth, widthMode: widthMode = "standard", heightMode: heightMode = "standard", autoFillWidth: autoFillWidth = !1, autoFillHeight: autoFillHeight = !1, containerFit: containerFit = {
|
|
103
103
|
width: !1,
|
|
104
104
|
height: !1
|
|
105
|
-
}, widthAdaptiveMode: widthAdaptiveMode = "only-body", heightAdaptiveMode: heightAdaptiveMode = "only-body", keyboardOptions: keyboardOptions, eventOptions: eventOptions, rowSeriesNumber: rowSeriesNumber, enableCheckboxCascade: enableCheckboxCascade, enableHeaderCheckboxCascade: enableHeaderCheckboxCascade, columnResizeMode: columnResizeMode, rowResizeMode: rowResizeMode = "none", resize: resize, dragHeaderMode: dragHeaderMode, dragOrder: dragOrder, 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, {groupConfig: groupConfig, groupBy: groupBy, groupTitleFieldFormat: groupTitleFieldFormat, groupTitleCustomLayout: groupTitleCustomLayout, enableTreeStickCell: enableTreeStickCell} = options;
|
|
105
|
+
}, widthAdaptiveMode: widthAdaptiveMode = "only-body", heightAdaptiveMode: heightAdaptiveMode = "only-body", keyboardOptions: keyboardOptions, eventOptions: eventOptions, rowSeriesNumber: rowSeriesNumber, enableCheckboxCascade: enableCheckboxCascade, enableHeaderCheckboxCascade: enableHeaderCheckboxCascade, columnResizeMode: columnResizeMode, rowResizeMode: rowResizeMode = "none", resize: resize, dragHeaderMode: dragHeaderMode, dragOrder: dragOrder, 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, contentOffsetX: translateX, contentOffsetY: translateY, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth, limitMinHeight: limitMinHeight, clearDOM: clearDOM = !0} = options, {groupConfig: groupConfig, groupBy: groupBy, groupTitleFieldFormat: groupTitleFieldFormat, groupTitleCustomLayout: groupTitleCustomLayout, enableTreeStickCell: enableTreeStickCell} = options;
|
|
106
106
|
this.container = container, this.options = options, this._widthMode = widthMode,
|
|
107
107
|
this._heightMode = heightMode, this._widthAdaptiveMode = widthAdaptiveMode, this._heightAdaptiveMode = heightAdaptiveMode,
|
|
108
108
|
this._autoFillWidth = autoFillWidth, this._autoFillHeight = autoFillHeight, void 0 !== containerFit && (this._containerFit = "boolean" == typeof containerFit ? {
|
|
@@ -123,7 +123,8 @@ export class BaseTable extends EventTarget {
|
|
|
123
123
|
this.padding.bottom = padding, this.padding.right = padding) : (padding.top && (this.padding.top = padding.top),
|
|
124
124
|
padding.bottom && (this.padding.bottom = padding.bottom), padding.left && (this.padding.left = padding.left),
|
|
125
125
|
padding.right && (this.padding.right = padding.right))), (isValid(canvasHeight) || isValid(canvasWidth)) && (this.canvasSizeSeted = !0),
|
|
126
|
-
this.tableNoFrameWidth = 0, this.tableNoFrameHeight = 0, this.
|
|
126
|
+
this.tableNoFrameWidth = 0, this.tableNoFrameHeight = 0, this.contentOffsetX = null != translateX ? translateX : 0,
|
|
127
|
+
this.contentOffsetY = null != translateY ? translateY : 0, this.canvasWidth = isNumber(canvasWidth) ? canvasWidth : void 0,
|
|
127
128
|
this.canvasHeight = isNumber(canvasHeight) ? canvasHeight : void 0, this.columnWidthComputeMode = null !== (_d = options.columnWidthComputeMode) && void 0 !== _d ? _d : "normal";
|
|
128
129
|
const internalProps = this.internalProps = {};
|
|
129
130
|
void 0 !== showFrozenIcon && (this.showFrozenIcon = showFrozenIcon), "number" == typeof allowFrozenColCount && allowFrozenColCount <= 0 && (this.showFrozenIcon = !1),
|
|
@@ -254,6 +255,10 @@ export class BaseTable extends EventTarget {
|
|
|
254
255
|
this.canvasWidth = canvasWidth, this.canvasHeight = canvasHeight, this.options.canvasHeight = canvasHeight,
|
|
255
256
|
this.options.canvasWidth = canvasWidth, this.resize();
|
|
256
257
|
}
|
|
258
|
+
setContentInsetXY(contentOffsetX, contentOffsetY) {
|
|
259
|
+
this.contentOffsetX = contentOffsetX, this.contentOffsetY = contentOffsetY, this.options.contentOffsetX = contentOffsetX,
|
|
260
|
+
this.options.contentOffsetY = contentOffsetY, this.resize();
|
|
261
|
+
}
|
|
257
262
|
resize() {
|
|
258
263
|
var _a;
|
|
259
264
|
this._updateSize(), null === (_a = this.internalProps.legends) || void 0 === _a || _a.forEach((legend => {
|
|
@@ -309,7 +314,8 @@ export class BaseTable extends EventTarget {
|
|
|
309
314
|
return null !== (_e = null !== (_c = null === (_b = null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.layoutMap) || void 0 === _b ? void 0 : _b.frozenRowCount) && void 0 !== _c ? _c : null === (_d = this.internalProps) || void 0 === _d ? void 0 : _d.frozenRowCount) && void 0 !== _e ? _e : 0;
|
|
310
315
|
}
|
|
311
316
|
set frozenRowCount(frozenRowCount) {
|
|
312
|
-
this.internalProps.frozenRowCount = frozenRowCount, this.
|
|
317
|
+
this.internalProps.frozenRowCount = frozenRowCount, this.options.frozenRowCount = frozenRowCount,
|
|
318
|
+
this.stateManager.setFrozenRow(this.internalProps.frozenRowCount);
|
|
313
319
|
}
|
|
314
320
|
get rightFrozenColCount() {
|
|
315
321
|
var _a, _b, _c, _d, _e;
|
|
@@ -483,7 +489,7 @@ export class BaseTable extends EventTarget {
|
|
|
483
489
|
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, _0, _1, _2, _3, _4, _5;
|
|
484
490
|
const {padding: padding} = this;
|
|
485
491
|
let widthP = 0, heightP = 0;
|
|
486
|
-
if (this.tableX =
|
|
492
|
+
if (this.tableX = this.contentOffsetX, this.tableY = this.contentOffsetY, this.options.canvas && this.options.viewBox) widthP = this.options.viewBox.x2 - this.options.viewBox.x1,
|
|
487
493
|
heightP = this.options.viewBox.y2 - this.options.viewBox.y1, (null === (_a = null == this ? void 0 : this.scenegraph) || void 0 === _a ? void 0 : _a.stage) && (this.options.viewBox ? this.scenegraph.stage.setViewBox(this.options.viewBox, !1) : this.scenegraph.stage.resize(widthP, heightP)); else if ("browser" === Env.mode) {
|
|
488
494
|
const element = this.getElement();
|
|
489
495
|
let widthWithoutPadding = 0, heightWithoutPadding = 0;
|
|
@@ -514,15 +520,15 @@ export class BaseTable extends EventTarget {
|
|
|
514
520
|
const width = Math.floor(widthP - vScrollBarWidth), height = Math.floor(heightP - hScrollBarWidth);
|
|
515
521
|
if (null === (_l = this.internalProps.theme) || void 0 === _l ? void 0 : _l.frameStyle) {
|
|
516
522
|
const lineWidths = toBoxArray(null !== (_o = null === (_m = this.internalProps.theme.frameStyle) || void 0 === _m ? void 0 : _m.borderLineWidth) && void 0 !== _o ? _o : [ null ]), shadowWidths = toBoxArray(null !== (_q = null === (_p = this.internalProps.theme.frameStyle) || void 0 === _p ? void 0 : _p.shadowBlur) && void 0 !== _q ? _q : [ 0 ]);
|
|
517
|
-
if (null === (_r = this.theme.frameStyle) || void 0 === _r ? void 0 : _r.innerBorder) this.tableX
|
|
518
|
-
this.tableY
|
|
519
|
-
this.tableNoFrameHeight = height - (null !== (_t = shadowWidths[2]) && void 0 !== _t ? _t : 0); else {
|
|
520
|
-
this.tableX
|
|
521
|
-
this.tableY
|
|
523
|
+
if (null === (_r = this.theme.frameStyle) || void 0 === _r ? void 0 : _r.innerBorder) this.tableX += this.contentOffsetX,
|
|
524
|
+
this.tableY += this.contentOffsetY, this.tableNoFrameWidth = width - (null !== (_s = shadowWidths[1]) && void 0 !== _s ? _s : 0) - this.contentOffsetX,
|
|
525
|
+
this.tableNoFrameHeight = height - (null !== (_t = shadowWidths[2]) && void 0 !== _t ? _t : 0) - this.contentOffsetY; else {
|
|
526
|
+
this.tableX += (null !== (_u = lineWidths[3]) && void 0 !== _u ? _u : 0) + (null !== (_v = shadowWidths[3]) && void 0 !== _v ? _v : 0),
|
|
527
|
+
this.tableY += (null !== (_w = lineWidths[0]) && void 0 !== _w ? _w : 0) + (null !== (_x = shadowWidths[0]) && void 0 !== _x ? _x : 0);
|
|
522
528
|
const rightBorder = (null !== (_y = lineWidths[1]) && void 0 !== _y ? _y : 0) + (null !== (_z = shadowWidths[1]) && void 0 !== _z ? _z : 0);
|
|
523
|
-
this.tableNoFrameWidth = width - (rightBorder > vScrollBarWidth ? rightBorder - vScrollBarWidth : 0) - ((null !== (_0 = lineWidths[3]) && void 0 !== _0 ? _0 : 0) + (null !== (_1 = shadowWidths[3]) && void 0 !== _1 ? _1 : 0));
|
|
529
|
+
this.tableNoFrameWidth = width - (rightBorder > vScrollBarWidth ? rightBorder - vScrollBarWidth : 0) - ((null !== (_0 = lineWidths[3]) && void 0 !== _0 ? _0 : 0) + (null !== (_1 = shadowWidths[3]) && void 0 !== _1 ? _1 : 0)) - this.contentOffsetX;
|
|
524
530
|
const bottomBorder = (null !== (_2 = lineWidths[2]) && void 0 !== _2 ? _2 : 0) + (null !== (_3 = shadowWidths[2]) && void 0 !== _3 ? _3 : 0);
|
|
525
|
-
this.tableNoFrameHeight = height - (bottomBorder > hScrollBarWidth ? bottomBorder - hScrollBarWidth : 0) - ((null !== (_4 = lineWidths[0]) && void 0 !== _4 ? _4 : 0) + (null !== (_5 = shadowWidths[0]) && void 0 !== _5 ? _5 : 0));
|
|
531
|
+
this.tableNoFrameHeight = height - (bottomBorder > hScrollBarWidth ? bottomBorder - hScrollBarWidth : 0) - ((null !== (_4 = lineWidths[0]) && void 0 !== _4 ? _4 : 0) + (null !== (_5 = shadowWidths[0]) && void 0 !== _5 ? _5 : 0)) - this.contentOffsetY;
|
|
526
532
|
}
|
|
527
533
|
}
|
|
528
534
|
this._clearColRangeWidthsMap(), this._clearRowRangeHeightsMap();
|
|
@@ -962,7 +968,8 @@ export class BaseTable extends EventTarget {
|
|
|
962
968
|
if (this.isReleased) return;
|
|
963
969
|
null === (_b = null === (_a = internalProps.tooltipHandler) || void 0 === _a ? void 0 : _a.release) || void 0 === _b || _b.call(_a),
|
|
964
970
|
null === (_d = null === (_c = internalProps.menuHandler) || void 0 === _c ? void 0 : _c.release) || void 0 === _d || _d.call(_c),
|
|
965
|
-
null === (_e = super.release) || void 0 === _e || _e.call(this),
|
|
971
|
+
null === (_e = super.release) || void 0 === _e || _e.call(this), this.pluginManager.release(),
|
|
972
|
+
null === (_g = null === (_f = internalProps.handler) || void 0 === _f ? void 0 : _f.release) || void 0 === _g || _g.call(_f),
|
|
966
973
|
this.eventManager.release(), null === (_j = null === (_h = internalProps.focusControl) || void 0 === _h ? void 0 : _h.release) || void 0 === _j || _j.call(_h),
|
|
967
974
|
null === (_k = internalProps.legends) || void 0 === _k || _k.forEach((legend => {
|
|
968
975
|
null == legend || legend.release();
|
|
@@ -977,16 +984,22 @@ export class BaseTable extends EventTarget {
|
|
|
977
984
|
parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element),
|
|
978
985
|
null === (_q = null === (_p = null === (_o = this.editorManager) || void 0 === _o ? void 0 : _o.editingEditor) || void 0 === _p ? void 0 : _p.onEnd) || void 0 === _q || _q.call(_p),
|
|
979
986
|
this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (_r = this.reactCustomLayout) || void 0 === _r || _r.clearCache(),
|
|
980
|
-
|
|
987
|
+
clearChartRenderQueue();
|
|
981
988
|
}
|
|
982
989
|
fireListeners(type, event) {
|
|
983
990
|
return super.fireListeners(type, event);
|
|
984
991
|
}
|
|
985
|
-
updateOption(options
|
|
992
|
+
updateOption(options, updateConfig = {
|
|
993
|
+
clearColWidthCache: !0,
|
|
994
|
+
clearRowHeightCache: !0
|
|
995
|
+
}) {
|
|
986
996
|
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, _0, _1;
|
|
987
|
-
|
|
997
|
+
this.fireListeners(TABLE_EVENT_TYPE.BEFORE_UPDATE_OPTION, {
|
|
998
|
+
options: options,
|
|
999
|
+
container: this.container
|
|
1000
|
+
}), null === (_a = this.editorManager) || void 0 === _a || _a.cancelEdit(), this.options = options,
|
|
988
1001
|
this._hasAutoImageColumn = void 0;
|
|
989
|
-
const {frozenColCount: frozenColCount = 0, unfreezeAllOnExceedsMaxWidth: unfreezeAllOnExceedsMaxWidth, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth = 80, keyboardOptions: keyboardOptions, eventOptions: eventOptions, rowSeriesNumber: rowSeriesNumber, enableCheckboxCascade: enableCheckboxCascade, enableHeaderCheckboxCascade: enableHeaderCheckboxCascade, columnResizeMode: columnResizeMode, rowResizeMode: rowResizeMode = "none", resize: resize, dragHeaderMode: dragHeaderMode, dragOrder: dragOrder, showFrozenIcon: showFrozenIcon, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, pixelRatio: pixelRatio, widthMode: widthMode, heightMode: heightMode, autoFillWidth: autoFillWidth, autoFillHeight: autoFillHeight, containerFit: containerFit, widthAdaptiveMode: widthAdaptiveMode, heightAdaptiveMode: heightAdaptiveMode, customRender: customRender, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount, canvasWidth: canvasWidth, canvasHeight: canvasHeight, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth, limitMinHeight: limitMinHeight} = options, {groupConfig: groupConfig, groupBy: groupBy, groupTitleFieldFormat: groupTitleFieldFormat, groupTitleCustomLayout: groupTitleCustomLayout, enableTreeStickCell: enableTreeStickCell} = options;
|
|
1002
|
+
const {frozenColCount: frozenColCount = 0, unfreezeAllOnExceedsMaxWidth: unfreezeAllOnExceedsMaxWidth, defaultRowHeight: defaultRowHeight = 40, defaultHeaderRowHeight: defaultHeaderRowHeight, defaultColWidth: defaultColWidth = 80, defaultHeaderColWidth: defaultHeaderColWidth = 80, keyboardOptions: keyboardOptions, eventOptions: eventOptions, rowSeriesNumber: rowSeriesNumber, enableCheckboxCascade: enableCheckboxCascade, enableHeaderCheckboxCascade: enableHeaderCheckboxCascade, columnResizeMode: columnResizeMode, rowResizeMode: rowResizeMode = "none", resize: resize, dragHeaderMode: dragHeaderMode, dragOrder: dragOrder, showFrozenIcon: showFrozenIcon, allowFrozenColCount: allowFrozenColCount, padding: padding, hover: hover, menu: menu, select: click, pixelRatio: pixelRatio, widthMode: widthMode, heightMode: heightMode, autoFillWidth: autoFillWidth, autoFillHeight: autoFillHeight, containerFit: containerFit, widthAdaptiveMode: widthAdaptiveMode, heightAdaptiveMode: heightAdaptiveMode, customRender: customRender, renderChartAsync: renderChartAsync, renderChartAsyncBatchCount: renderChartAsyncBatchCount, canvasWidth: canvasWidth, canvasHeight: canvasHeight, contentOffsetX: translateX = 0, contentOffsetY: translateY = 0, overscrollBehavior: overscrollBehavior, limitMinWidth: limitMinWidth, limitMinHeight: limitMinHeight} = options, {groupConfig: groupConfig, groupBy: groupBy, groupTitleFieldFormat: groupTitleFieldFormat, groupTitleCustomLayout: groupTitleCustomLayout, enableTreeStickCell: enableTreeStickCell} = options;
|
|
990
1003
|
pixelRatio && pixelRatio !== this.internalProps.pixelRatio && (this.internalProps.pixelRatio = pixelRatio),
|
|
991
1004
|
padding && ("number" == typeof padding ? (this.padding.top = padding, this.padding.left = padding,
|
|
992
1005
|
this.padding.bottom = padding, this.padding.right = padding) : (padding.top && (this.padding.top = padding.top),
|
|
@@ -1006,7 +1019,8 @@ export class BaseTable extends EventTarget {
|
|
|
1006
1019
|
} : {
|
|
1007
1020
|
width: !1,
|
|
1008
1021
|
height: !1
|
|
1009
|
-
}), this.customRender = customRender, this.
|
|
1022
|
+
}), this.customRender = customRender, this.contentOffsetX = null != translateX ? translateX : 0,
|
|
1023
|
+
this.contentOffsetY = null != translateY ? translateY : 0, this.canvasWidth = isNumber(canvasWidth) ? canvasWidth : void 0,
|
|
1010
1024
|
this.canvasHeight = isNumber(canvasHeight) ? canvasHeight : void 0;
|
|
1011
1025
|
const internalProps = this.internalProps;
|
|
1012
1026
|
if ("node" === Env.mode || options.canvas || updateRootElementPadding(internalProps.element, this.padding),
|
|
@@ -1027,10 +1041,11 @@ export class BaseTable extends EventTarget {
|
|
|
1027
1041
|
internalProps.groupTitleFieldFormat = null !== (_l = null == groupConfig ? void 0 : groupConfig.titleFieldFormat) && void 0 !== _l ? _l : groupTitleFieldFormat,
|
|
1028
1042
|
internalProps.groupTitleCustomLayout = null !== (_m = null == groupConfig ? void 0 : groupConfig.titleCustomLayout) && void 0 !== _m ? _m : groupTitleCustomLayout,
|
|
1029
1043
|
internalProps.enableTreeStickCell = null !== (_o = null == groupConfig ? void 0 : groupConfig.enableTreeStickCell) && void 0 !== _o ? _o : enableTreeStickCell,
|
|
1044
|
+
(null == updateConfig ? void 0 : updateConfig.clearColWidthCache) && (internalProps._widthResizedColMap.clear(),
|
|
1045
|
+
this.colWidthsMap = new NumberMap, this.colContentWidthsMap = new NumberMap, this.colWidthsLimit = {}),
|
|
1046
|
+
(null == updateConfig ? void 0 : updateConfig.clearRowHeightCache) && (internalProps._heightResizedRowMap.clear(),
|
|
1030
1047
|
internalProps._rowHeightsMap = new NumberRangeMap(this), internalProps._rowRangeHeightsMap = new Map,
|
|
1031
|
-
internalProps._colRangeWidthsMap = new Map, internalProps.
|
|
1032
|
-
internalProps._heightResizedRowMap = new Set, this.colWidthsMap = new NumberMap,
|
|
1033
|
-
this.colContentWidthsMap = new NumberMap, this.colWidthsLimit = {}, internalProps.stick.changedCells.clear(),
|
|
1048
|
+
internalProps._colRangeWidthsMap = new Map), internalProps.stick.changedCells.clear(),
|
|
1034
1049
|
internalProps.theme = themes.of(null !== (_p = options.theme) && void 0 !== _p ? _p : themes.DEFAULT),
|
|
1035
1050
|
internalProps.theme.isPivot = this.isPivotTable(), setIconColor(internalProps.theme.functionalIconsStyle),
|
|
1036
1051
|
this.scenegraph.updateStageBackground(), internalProps.autoWrapText = options.autoWrapText,
|
|
@@ -1076,7 +1091,8 @@ export class BaseTable extends EventTarget {
|
|
|
1076
1091
|
const MenuHandler = Factory.getComponent("menuHandler");
|
|
1077
1092
|
internalProps.menuHandler = new MenuHandler(this);
|
|
1078
1093
|
}
|
|
1079
|
-
this.clearCellStyleCache(),
|
|
1094
|
+
this.clearCellStyleCache(), (null == updateConfig ? void 0 : updateConfig.clearColWidthCache) && this.clearColWidthCache(),
|
|
1095
|
+
(null == updateConfig ? void 0 : updateConfig.clearRowHeightCache) && this.clearRowHeightCache(),
|
|
1080
1096
|
internalProps.customMergeCell = getCustomMergeCellFunc(options.customMergeCell),
|
|
1081
1097
|
null === (_z = this.customCellStylePlugin) || void 0 === _z || _z.updateCustomCell(null !== (_0 = options.customCellStyle) && void 0 !== _0 ? _0 : [], null !== (_1 = options.customCellStyleArrangement) && void 0 !== _1 ? _1 : []),
|
|
1082
1098
|
this._adjustCanvasSizeByOption();
|
|
@@ -1180,11 +1196,87 @@ export class BaseTable extends EventTarget {
|
|
|
1180
1196
|
const {scrollLeft: scrollLeft, scrollTop: scrollTop} = this;
|
|
1181
1197
|
cellRanges.forEach(((cellRange, index) => {
|
|
1182
1198
|
var _a, _b, _c, _d, _e, _f;
|
|
1183
|
-
|
|
1184
|
-
this.stateManager.
|
|
1199
|
+
const startRow = cellRange.start.row, startCol = cellRange.start.col, endRow = cellRange.end.row, endCol = cellRange.end.col;
|
|
1200
|
+
startCol === endCol && startRow === endRow ? this.stateManager.updateSelectPos(startCol, startRow, !1, index >= 1, !1, null === (_b = null === (_a = this.options.select) || void 0 === _a ? void 0 : _a.makeSelectCellVisible) || void 0 === _b || _b, !0) : (this.stateManager.updateSelectPos(startCol, startRow, !1, index >= 1, !1, null === (_d = null === (_c = this.options.select) || void 0 === _c ? void 0 : _c.makeSelectCellVisible) || void 0 === _d || _d, !0),
|
|
1201
|
+
this.stateManager.updateInteractionState(InteractionState.grabing), this.stateManager.updateSelectPos(endCol, endRow, !1, index >= 1, !1, null === (_f = null === (_e = this.options.select) || void 0 === _e ? void 0 : _e.makeSelectCellVisible) || void 0 === _f || _f, !0)),
|
|
1185
1202
|
this.stateManager.endSelectCells(!1, !1), this.stateManager.updateInteractionState(InteractionState.default);
|
|
1186
1203
|
})), this.setScrollTop(scrollTop), this.setScrollLeft(scrollLeft);
|
|
1187
1204
|
}
|
|
1205
|
+
selectRow(rowIndex, isCtrl, isShift) {
|
|
1206
|
+
const currentSelectRanges = this.stateManager.select.ranges;
|
|
1207
|
+
if (isCtrl) currentSelectRanges.push({
|
|
1208
|
+
start: {
|
|
1209
|
+
col: 0,
|
|
1210
|
+
row: rowIndex
|
|
1211
|
+
},
|
|
1212
|
+
end: {
|
|
1213
|
+
col: this.colCount - 1,
|
|
1214
|
+
row: rowIndex
|
|
1215
|
+
}
|
|
1216
|
+
}), this.selectCells(currentSelectRanges); else if (isShift) {
|
|
1217
|
+
const lastSelectRange = currentSelectRanges[currentSelectRanges.length - 1];
|
|
1218
|
+
lastSelectRange && (lastSelectRange.end.row = rowIndex), this.selectCells(currentSelectRanges);
|
|
1219
|
+
} else this.selectCells([ {
|
|
1220
|
+
start: {
|
|
1221
|
+
col: 0,
|
|
1222
|
+
row: rowIndex
|
|
1223
|
+
},
|
|
1224
|
+
end: {
|
|
1225
|
+
col: this.colCount - 1,
|
|
1226
|
+
row: rowIndex
|
|
1227
|
+
}
|
|
1228
|
+
} ]);
|
|
1229
|
+
}
|
|
1230
|
+
selectCol(colIndex, isCtrl, isShift) {
|
|
1231
|
+
const currentSelectRanges = this.stateManager.select.ranges;
|
|
1232
|
+
if (isCtrl) currentSelectRanges.push({
|
|
1233
|
+
start: {
|
|
1234
|
+
col: colIndex,
|
|
1235
|
+
row: 0
|
|
1236
|
+
},
|
|
1237
|
+
end: {
|
|
1238
|
+
col: colIndex,
|
|
1239
|
+
row: this.rowCount - 1
|
|
1240
|
+
}
|
|
1241
|
+
}), this.selectCells(currentSelectRanges); else if (isShift) {
|
|
1242
|
+
const lastSelectRange = currentSelectRanges[currentSelectRanges.length - 1];
|
|
1243
|
+
lastSelectRange && (lastSelectRange.end.col = colIndex), this.selectCells(currentSelectRanges);
|
|
1244
|
+
} else this.selectCells([ {
|
|
1245
|
+
start: {
|
|
1246
|
+
col: colIndex,
|
|
1247
|
+
row: 0
|
|
1248
|
+
},
|
|
1249
|
+
end: {
|
|
1250
|
+
col: colIndex,
|
|
1251
|
+
row: this.rowCount - 1
|
|
1252
|
+
}
|
|
1253
|
+
} ]);
|
|
1254
|
+
}
|
|
1255
|
+
startDragSelectCol(colIndex, isCtrl, isShift) {
|
|
1256
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1257
|
+
const lastSelectRange = this.stateManager.select.ranges[this.stateManager.select.ranges.length - 1], startCol = isShift && (null === (_a = null == lastSelectRange ? void 0 : lastSelectRange.start) || void 0 === _a ? void 0 : _a.col) ? null === (_b = null == lastSelectRange ? void 0 : lastSelectRange.start) || void 0 === _b ? void 0 : _b.col : colIndex, endCol = colIndex, endRow = this.rowCount - 1;
|
|
1258
|
+
this.stateManager.updateSelectPos(startCol, 0, isShift, isCtrl, !1, null === (_d = null === (_c = this.options.select) || void 0 === _c ? void 0 : _c.makeSelectCellVisible) || void 0 === _d || _d, !0),
|
|
1259
|
+
this.stateManager.updateInteractionState(InteractionState.grabing), this.stateManager.updateSelectPos(endCol, endRow, isShift, isCtrl, !1, null === (_f = null === (_e = this.options.select) || void 0 === _e ? void 0 : _e.makeSelectCellVisible) || void 0 === _f || _f, !0);
|
|
1260
|
+
}
|
|
1261
|
+
dragSelectCol(colIndex, isCtrl) {
|
|
1262
|
+
var _a, _b;
|
|
1263
|
+
const currentSelectRanges = this.stateManager.select.ranges, lastSelectRange = currentSelectRanges[currentSelectRanges.length - 1];
|
|
1264
|
+
lastSelectRange && (lastSelectRange.end.col = colIndex), this.stateManager.updateSelectPos(colIndex, this.rowCount - 1, !1, isCtrl, !1, null === (_b = null === (_a = this.options.select) || void 0 === _a ? void 0 : _a.makeSelectCellVisible) || void 0 === _b || _b, !0);
|
|
1265
|
+
}
|
|
1266
|
+
endDragSelect() {
|
|
1267
|
+
this.stateManager.updateInteractionState(InteractionState.default), this.stateManager.endSelectCells(!1, !1);
|
|
1268
|
+
}
|
|
1269
|
+
startDragSelectRow(rowIndex, isCtrl, isShift) {
|
|
1270
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1271
|
+
const lastSelectRange = this.stateManager.select.ranges[this.stateManager.select.ranges.length - 1], startRow = isShift && (null === (_a = null == lastSelectRange ? void 0 : lastSelectRange.start) || void 0 === _a ? void 0 : _a.row) ? null === (_b = null == lastSelectRange ? void 0 : lastSelectRange.start) || void 0 === _b ? void 0 : _b.row : rowIndex, endCol = this.colCount - 1, endRow = rowIndex;
|
|
1272
|
+
this.stateManager.updateSelectPos(0, startRow, isShift, isCtrl, !1, null === (_d = null === (_c = this.options.select) || void 0 === _c ? void 0 : _c.makeSelectCellVisible) || void 0 === _d || _d, !0),
|
|
1273
|
+
this.stateManager.updateInteractionState(InteractionState.grabing), this.stateManager.updateSelectPos(endCol, endRow, isShift, isCtrl, !1, null === (_f = null === (_e = this.options.select) || void 0 === _e ? void 0 : _e.makeSelectCellVisible) || void 0 === _f || _f, !0);
|
|
1274
|
+
}
|
|
1275
|
+
dragSelectRow(rowIndex, isCtrl) {
|
|
1276
|
+
var _a, _b;
|
|
1277
|
+
const currentSelectRanges = this.stateManager.select.ranges, lastSelectRange = currentSelectRanges[currentSelectRanges.length - 1];
|
|
1278
|
+
lastSelectRange && (lastSelectRange.end.row = rowIndex), this.stateManager.updateSelectPos(this.colCount - 1, rowIndex, !1, isCtrl, !1, null === (_b = null === (_a = this.options.select) || void 0 === _a ? void 0 : _a.makeSelectCellVisible) || void 0 === _b || _b, !0);
|
|
1279
|
+
}
|
|
1188
1280
|
get recordsCount() {
|
|
1189
1281
|
var _a;
|
|
1190
1282
|
return null === (_a = this.records) || void 0 === _a ? void 0 : _a.length;
|