@visactor/vtable-calendar 1.20.1-alpha.1 → 1.20.1

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.
@@ -37220,16 +37220,15 @@
37220
37220
  const sourceIds = this.records.splice(sourceI, 1);
37221
37221
  sourceIds.unshift(targetI, 0), Array.prototype.splice.apply(this.records, sourceIds);
37222
37222
  }
37223
- } else {
37224
- sourceI = this.currentPagerIndexedData[sourceIndex], targetI = this.currentPagerIndexedData[targetIndex];
37225
- const records = this.records.splice(sourceI, 1);
37226
- records.unshift(targetI, 0), Array.prototype.splice.apply(this.records, records);
37227
- }
37223
+ } else this.exchangeRecordData(sourceIndex, targetIndex);
37228
37224
  this.restoreTreeHierarchyState(), this.updatePagerData();
37229
- } else {
37230
- const records = this.records.splice(sourceIndex, 1);
37231
- records.unshift(targetIndex, 0), Array.prototype.splice.apply(this.records, records);
37232
- }
37225
+ } else this.exchangeRecordData(sourceIndex, targetIndex);
37226
+ }
37227
+ exchangeRecordData(sourceIndex, targetIndex) {
37228
+ const sourceI = this.getRecordIndexPaths(sourceIndex),
37229
+ targetI = this.getRecordIndexPaths(targetIndex),
37230
+ records = this.records.splice(sourceI, 1);
37231
+ records.unshift(targetI, 0), Array.prototype.splice.apply(this.records, records);
37233
37232
  }
37234
37233
  restoreTreeHierarchyState() {
37235
37234
  var _a, _b;
@@ -41816,12 +41815,19 @@
41816
41815
  if ("number" == typeof customRowHeight) return customRowHeight;
41817
41816
  if ("auto" !== customRowHeight) return table.getDefaultRowHeight(row);
41818
41817
  }
41819
- if (table.isPivotChart() && row >= table.columnHeaderLevelCount && row < table.rowCount - table.bottomFrozenRowCount) if (table.internalProps.layoutMap.indicatorsAsCol) {
41820
- const optimunHeight = table.internalProps.layoutMap.getOptimunHeightForChart(row);
41821
- if (optimunHeight > 0) return optimunHeight;
41822
- } else {
41823
- const defaultHeight = table.getDefaultRowHeight(row);
41824
- if (isNumber$4(defaultHeight)) return defaultHeight;
41818
+ if (table.isPivotChart() && row >= table.columnHeaderLevelCount && row < table.rowCount - table.bottomFrozenRowCount) {
41819
+ let ifNeedComputeRowHeight = table.internalProps.layoutMap.indicatorsAsCol,
41820
+ isHeatmap = !1;
41821
+ if (!table.internalProps.layoutMap.indicatorsAsCol) {
41822
+ "heatmap" === table.internalProps.layoutMap.getChartSpec(table.rowHeaderLevelCount, row).type && (isHeatmap = !0, ifNeedComputeRowHeight = !0);
41823
+ }
41824
+ if (ifNeedComputeRowHeight) {
41825
+ const optimunHeight = table.internalProps.layoutMap.getOptimunHeightForChart(row, isHeatmap);
41826
+ if (optimunHeight > 0) return optimunHeight;
41827
+ } else {
41828
+ const defaultHeight = table.getDefaultRowHeight(row);
41829
+ if (isNumber$4(defaultHeight)) return defaultHeight;
41830
+ }
41825
41831
  }
41826
41832
  for (let col = startCol; col <= endCol; col++) {
41827
41833
  const customHeight = computeCustomRenderHeight(col, row, table);
@@ -43799,7 +43805,10 @@
43799
43805
  const formatResult = table.options.specFormat(chart.attribute.spec, chartInstance, chart);
43800
43806
  if (formatResult.needFormatSpec && formatResult.spec) {
43801
43807
  const spec = formatResult.spec;
43802
- chartInstance.updateSpecSync(spec), updateSpec = null === (_a = formatResult.updateSpec) || void 0 === _a || _a;
43808
+ chartInstance.updateSpecSync(spec, !1, {
43809
+ reuse: !1,
43810
+ morph: !1
43811
+ }), updateSpec = null === (_a = formatResult.updateSpec) || void 0 === _a || _a;
43803
43812
  }
43804
43813
  }
43805
43814
  if (!updateSpec) if (null == axes || axes.forEach((axis, index) => {
@@ -43955,7 +43964,10 @@
43955
43964
  const formatResult = table.options.specFormat(chart.attribute.spec, activeChartInstance, chart);
43956
43965
  if (formatResult.needFormatSpec && formatResult.spec) {
43957
43966
  const spec = formatResult.spec;
43958
- activeChartInstance.updateSpecSync(spec);
43967
+ activeChartInstance.updateSpecSync(spec, !1, {
43968
+ reuse: !1,
43969
+ morph: !1
43970
+ });
43959
43971
  }
43960
43972
  }
43961
43973
  const viewBox = chart.getViewBox();
@@ -44721,6 +44733,15 @@
44721
44733
  this.type = "chart", this.numberType = CHART_NUMBER_TYPE;
44722
44734
  }
44723
44735
  contains(chart, point, params) {
44736
+ var _a;
44737
+ if (chart.attribute.detectPickChartItem) {
44738
+ const vChart = chart.activeChartInstance;
44739
+ if (!vChart) return !1;
44740
+ const vchartStage = vChart.getStage();
44741
+ null === (_a = vchartStage.dirtyBounds) || void 0 === _a || _a.clear();
44742
+ const pick = vchartStage.pick(point.x, point.y);
44743
+ return (null !== pick.graphic || "root" !== pick.group.name) && pick;
44744
+ }
44724
44745
  return !!chart.AABBBounds.containsPoint(point);
44725
44746
  }
44726
44747
  };
@@ -44802,7 +44823,9 @@
44802
44823
  if (endRow - startRow > 5e3 && (prepareDeltaRow = Math.ceil((endRow - startRow) / 5e3)), table.isPivotChart() && col >= table.rowHeaderLevelCount && col < table.colCount - table.rightFrozenColCount) {
44803
44824
  if (table.internalProps.layoutMap.indicatorsAsCol) return table.defaultColWidth;
44804
44825
  {
44805
- const optimunWidth = table.internalProps.layoutMap.getOptimunWidthForChart(col);
44826
+ let isHeatmap = !1;
44827
+ "heatmap" === table.internalProps.layoutMap.getChartSpec(col, table.columnHeaderLevelCount).type && (isHeatmap = !0);
44828
+ const optimunWidth = table.internalProps.layoutMap.getOptimunWidthForChart(col, isHeatmap);
44806
44829
  if (optimunWidth > 0) return optimunWidth;
44807
44830
  }
44808
44831
  }
@@ -48876,7 +48899,7 @@
48876
48899
  return table._getLayoutCellId(col, row) === table._getLayoutCellId(range1Col, range1Row);
48877
48900
  }
48878
48901
 
48879
- function updateSelectPosition(state, col, row, isShift, isCtrl, isSelectAll, makeSelectCellVisible = !0, skipBodyMerge = !1) {
48902
+ function updateSelectPosition(state, col, row, enableShiftSelectMode, enableCtrlSelectMode, isSelectAll, makeSelectCellVisible = !0, skipBodyMerge = !1) {
48880
48903
  var _a, _b;
48881
48904
  const {
48882
48905
  table: table,
@@ -48886,10 +48909,7 @@
48886
48909
  scenegraph: scenegraph
48887
48910
  } = table,
48888
48911
  {
48889
- highlightScope: highlightScope,
48890
- disableHeader: disableHeader,
48891
- cellPos: cellPos,
48892
- disableCtrlMultiSelect: disableCtrlMultiSelect
48912
+ cellPos: cellPos
48893
48913
  } = state.select;
48894
48914
  if (state.select.isSelectAll = isSelectAll, -1 !== col && -1 !== row && makeSelectCellVisible && table._makeVisibleCell(col, row), -1 !== col && -1 !== row && makeSelectCellVisible) if (interactionState === InteractionState.grabing && state.select.ranges.length > 0) {
48895
48915
  const currentRange = state.select.ranges[state.select.ranges.length - 1];
@@ -48979,8 +48999,8 @@
48979
48999
  }
48980
49000
  } else {
48981
49001
  const currentRange = state.select.ranges[state.select.ranges.length - 1];
48982
- if (isShift && currentRange) {
48983
- if (isCtrl && !disableCtrlMultiSelect || (cellPos.col = col, cellPos.row = row), "cell" !== state.select.headerSelectMode && table.isColumnHeader(col, row)) {
49002
+ if (enableShiftSelectMode && currentRange) {
49003
+ if ("cell" !== state.select.headerSelectMode && table.isColumnHeader(col, row)) {
48984
49004
  const startCol = Math.min(currentRange.start.col, currentRange.end.col, col),
48985
49005
  endCol = Math.max(currentRange.start.col, currentRange.end.col, col),
48986
49006
  startRow = Math.min(currentRange.start.row, currentRange.end.row, row),
@@ -49038,10 +49058,10 @@
49038
49058
  col: col,
49039
49059
  row: row
49040
49060
  };
49041
- scenegraph.deleteLastSelectedRangeComponents(), scenegraph.updateCellSelectBorder(currentRange);
49061
+ enableShiftSelectMode || (currentRange.end = currentRange.start), scenegraph.deleteLastSelectedRangeComponents(), scenegraph.updateCellSelectBorder(currentRange);
49042
49062
  } else {
49043
49063
  let extendSelectRange = !0;
49044
- if (-1 === cellPos.col || -1 === cellPos.row || isCtrl && !disableCtrlMultiSelect || (state.select.ranges = [], scenegraph.deleteAllSelectBorder()), "cell" !== state.select.headerSelectMode && table.isColumnHeader(col, row)) {
49064
+ if (-1 === cellPos.col || -1 === cellPos.row || enableCtrlSelectMode || (state.select.ranges = [], scenegraph.deleteAllSelectBorder()), "cell" !== state.select.headerSelectMode && table.isColumnHeader(col, row)) {
49045
49065
  const cellRange = table.getCellRange(col, row);
49046
49066
  "body" === state.select.headerSelectMode ? state.select.ranges.push({
49047
49067
  start: {
@@ -50186,7 +50206,7 @@
50186
50206
  });
50187
50207
  }
50188
50208
  setSelectState() {
50189
- var _a, _b, _c, _d, _e;
50209
+ var _a, _b, _c, _d, _e, _f;
50190
50210
  const {
50191
50211
  headerSelectMode: headerSelectMode,
50192
50212
  disableSelect: disableSelect,
@@ -50201,7 +50221,7 @@
50201
50221
  highlightInRange: !1
50202
50222
  }, this.table.options.select),
50203
50223
  cornerHeaderSelectMode = (null === (_a = this.table.options.select) || void 0 === _a ? void 0 : _a.cornerHeaderSelectMode) ? null === (_b = this.table.options.select) || void 0 === _b ? void 0 : _b.cornerHeaderSelectMode : "body" === (null === (_c = this.table.options.select) || void 0 === _c ? void 0 : _c.headerSelectMode) ? null === (_d = this.table.options.select) || void 0 === _d ? void 0 : _d.headerSelectMode : "all";
50204
- this.select.highlightScope = !0 === disableSelect ? HighlightScope.none : "cross" === highlightMode ? HighlightScope.cross : "row" === highlightMode ? HighlightScope.row : "column" === highlightMode ? HighlightScope.column : HighlightScope.single, this.select.singleStyle = !disableSelect, this.select.disableHeader = disableHeaderSelect, this.select.headerSelectMode = headerSelectMode, this.select.cornerHeaderSelectMode = cornerHeaderSelectMode, this.select.highlightInRange = highlightInRange, this.select.disableCtrlMultiSelect = !1 === (null === (_e = this.table.options.keyboardOptions) || void 0 === _e ? void 0 : _e.ctrlMultiSelect);
50224
+ this.select.highlightScope = !0 === disableSelect ? HighlightScope.none : "cross" === highlightMode ? HighlightScope.cross : "row" === highlightMode ? HighlightScope.row : "column" === highlightMode ? HighlightScope.column : HighlightScope.single, this.select.singleStyle = !disableSelect, this.select.disableHeader = disableHeaderSelect, this.select.headerSelectMode = headerSelectMode, this.select.cornerHeaderSelectMode = cornerHeaderSelectMode, this.select.highlightInRange = highlightInRange, this.select.disableCtrlMultiSelect = !1 === (null === (_e = this.table.options.keyboardOptions) || void 0 === _e ? void 0 : _e.ctrlMultiSelect), this.select.disableShiftMultiSelect = !1 === (null === (_f = this.table.options.keyboardOptions) || void 0 === _f ? void 0 : _f.shiftMultiSelect);
50205
50225
  }
50206
50226
  isSelected(col, row) {
50207
50227
  let seled = !1;
@@ -50254,11 +50274,11 @@
50254
50274
  updateHoverPos(col, row) {
50255
50275
  updateHoverPosition(this, col, row);
50256
50276
  }
50257
- updateSelectPos(col, row, isShift = !1, isCtrl = !1, isSelectAll = !1, makeSelectCellVisible = !0, skipBodyMerge = !1) {
50277
+ updateSelectPos(col, row, enableShiftSelectMode = !1, enableCtrlSelectMode = !1, isSelectAll = !1, makeSelectCellVisible = !0, skipBodyMerge = !1) {
50258
50278
  -1 !== row && -1 !== row && (this.select.selecting = !0), col < 0 && (col = -1), row < 0 && (row = -1), col > this.table.colCount - 1 && (col = this.table.colCount - 1), row > this.table.rowCount - 1 && (row = this.table.rowCount - 1);
50259
50279
  const oldCellPosCol = this.select.cellPos.col,
50260
50280
  oldCellPosRow = this.select.cellPos.row;
50261
- updateSelectPosition(this, col, row, isShift, isCtrl, isSelectAll, makeSelectCellVisible, skipBodyMerge), !this.table.hasListeners(TABLE_EVENT_TYPE.SELECTED_CHANGED) || oldCellPosCol === col && oldCellPosRow === row || this.table.fireListeners(TABLE_EVENT_TYPE.SELECTED_CHANGED, {
50281
+ updateSelectPosition(this, col, row, enableShiftSelectMode, enableCtrlSelectMode, isSelectAll, makeSelectCellVisible, skipBodyMerge), !this.table.hasListeners(TABLE_EVENT_TYPE.SELECTED_CHANGED) || oldCellPosCol === col && oldCellPosRow === row || this.table.fireListeners(TABLE_EVENT_TYPE.SELECTED_CHANGED, {
50262
50282
  ranges: this.select.ranges,
50263
50283
  col: col,
50264
50284
  row: row
@@ -51709,7 +51729,7 @@
51709
51729
  handler.on(table.getElement(), "blur", e => {
51710
51730
  eventManager.dealTableHover();
51711
51731
  }), handler.on(table.getElement(), "keydown", e => {
51712
- 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;
51732
+ 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, _6, _7, _8, _9;
51713
51733
  const beforeKeydownEvent = {
51714
51734
  keyCode: null !== (_a = e.keyCode) && void 0 !== _a ? _a : e.which,
51715
51735
  code: e.code,
@@ -51719,41 +51739,44 @@
51719
51739
  if ((null === (_d = null === (_c = table.options.keyboardOptions) || void 0 === _c ? void 0 : _c.moveEditCellOnArrowKeys) || void 0 === _d || !_d) && (null === (_e = table.editorManager) || void 0 === _e ? void 0 : _e.editingEditor) || !1 === (null === (_f = table.options.keyboardOptions) || void 0 === _f ? void 0 : _f.moveSelectedCellOnArrowKeys)) return;
51720
51740
  let targetCol, targetRow;
51721
51741
  if (e.preventDefault(), e.stopPropagation(), "ArrowUp" === e.key ? e.ctrlKey || e.metaKey ? (targetCol = stateManager.select.cellPos.col, targetRow = 0) : (e.shiftKey, targetCol = stateManager.select.cellPos.col, targetRow = Math.min(table.rowCount - 1, Math.max(0, stateManager.select.cellPos.row - 1))) : "ArrowDown" === e.key ? e.ctrlKey || e.metaKey ? (targetCol = stateManager.select.cellPos.col, targetRow = table.rowCount - 1) : (e.shiftKey, targetCol = stateManager.select.cellPos.col, targetRow = Math.min(table.rowCount - 1, Math.max(0, stateManager.select.cellPos.row + 1))) : "ArrowLeft" === e.key ? e.ctrlKey || e.metaKey ? (targetCol = 0, targetRow = stateManager.select.cellPos.row) : (e.shiftKey, targetRow = stateManager.select.cellPos.row, targetCol = Math.min(table.colCount - 1, Math.max(0, stateManager.select.cellPos.col - 1))) : "ArrowRight" === e.key && (e.ctrlKey || e.metaKey ? (targetCol = table.colCount - 1, targetRow = stateManager.select.cellPos.row) : (e.shiftKey, targetRow = stateManager.select.cellPos.row, targetCol = Math.min(table.colCount - 1, Math.max(0, stateManager.select.cellPos.col + 1)))), isCellDisableSelect(table, targetCol, targetRow)) return;
51722
- table.selectCell(targetCol, targetRow, e.shiftKey), null !== (_h = null === (_g = table.options.keyboardOptions) || void 0 === _g ? void 0 : _g.moveEditCellOnArrowKeys) && void 0 !== _h && _h && (null === (_j = table.editorManager) || void 0 === _j ? void 0 : _j.editingEditor) && (null === (_k = table.editorManager) || void 0 === _k || _k.completeEdit(), table.getElement().focus(), table.getEditor(targetCol, targetRow) && (null === (_l = table.editorManager) || void 0 === _l || _l.startEditCell(targetCol, targetRow)));
51723
- } else if ("Escape" === e.key) null === (_m = table.editorManager) || void 0 === _m || _m.cancelEdit(), table.getElement().focus();else if ("Enter" === e.key) {
51724
- if (null === (_o = table.editorManager) || void 0 === _o ? void 0 : _o.editingEditor) {
51725
- if (handleKeydownListener(e), null === (_p = table.editorManager) || void 0 === _p || _p.completeEdit(), table.getElement().focus(), !0 === (null === (_q = table.options.keyboardOptions) || void 0 === _q ? void 0 : _q.moveFocusCellOnEnter)) {
51742
+ const enableShiftSelectMode = null === (_h = null === (_g = table.options.keyboardOptions) || void 0 === _g ? void 0 : _g.shiftMultiSelect) || void 0 === _h || _h;
51743
+ table.selectCell(targetCol, targetRow, e.shiftKey && enableShiftSelectMode), null !== (_k = null === (_j = table.options.keyboardOptions) || void 0 === _j ? void 0 : _j.moveEditCellOnArrowKeys) && void 0 !== _k && _k && (null === (_l = table.editorManager) || void 0 === _l ? void 0 : _l.editingEditor) && (null === (_m = table.editorManager) || void 0 === _m || _m.completeEdit(), table.getElement().focus(), table.getEditor(targetCol, targetRow) && (null === (_o = table.editorManager) || void 0 === _o || _o.startEditCell(targetCol, targetRow)));
51744
+ } else if ("Escape" === e.key) null === (_p = table.editorManager) || void 0 === _p || _p.cancelEdit(), table.getElement().focus();else if ("Enter" === e.key) {
51745
+ if (null === (_q = table.editorManager) || void 0 === _q ? void 0 : _q.editingEditor) {
51746
+ if (handleKeydownListener(e), null === (_r = table.editorManager) || void 0 === _r || _r.completeEdit(), table.getElement().focus(), !0 === (null === (_s = table.options.keyboardOptions) || void 0 === _s ? void 0 : _s.moveFocusCellOnEnter)) {
51726
51747
  const targetCol = stateManager.select.cellPos.col,
51727
51748
  targetRow = Math.min(table.rowCount - 1, Math.max(0, stateManager.select.cellPos.row + 1));
51728
51749
  if (isCellDisableSelect(table, targetCol, targetRow)) return;
51729
- table.selectCell(targetCol, targetRow, e.shiftKey);
51750
+ const enableShiftSelectMode = null === (_u = null === (_t = table.options.keyboardOptions) || void 0 === _t ? void 0 : _t.shiftMultiSelect) || void 0 === _u || _u;
51751
+ table.selectCell(targetCol, targetRow, e.shiftKey && enableShiftSelectMode);
51730
51752
  }
51731
51753
  return;
51732
51754
  }
51733
- if (!0 === (null === (_r = table.options.keyboardOptions) || void 0 === _r ? void 0 : _r.moveFocusCellOnEnter)) {
51755
+ if (!0 === (null === (_v = table.options.keyboardOptions) || void 0 === _v ? void 0 : _v.moveFocusCellOnEnter)) {
51734
51756
  const targetCol = stateManager.select.cellPos.col,
51735
51757
  targetRow = Math.min(table.rowCount - 1, Math.max(0, stateManager.select.cellPos.row + 1));
51736
51758
  if (isCellDisableSelect(table, targetCol, targetRow)) return;
51737
- table.selectCell(targetCol, targetRow, e.shiftKey);
51738
- } else if ((null === (_t = null === (_s = table.options.keyboardOptions) || void 0 === _s ? void 0 : _s.editCellOnEnter) || void 0 === _t || _t) && 1 === (null !== (_v = null === (_u = table.stateManager.select.ranges) || void 0 === _u ? void 0 : _u.length) && void 0 !== _v ? _v : 0)) {
51759
+ const enableShiftSelectMode = null === (_x = null === (_w = table.options.keyboardOptions) || void 0 === _w ? void 0 : _w.shiftMultiSelect) || void 0 === _x || _x;
51760
+ table.selectCell(targetCol, targetRow, e.shiftKey && enableShiftSelectMode);
51761
+ } else if ((null === (_z = null === (_y = table.options.keyboardOptions) || void 0 === _y ? void 0 : _y.editCellOnEnter) || void 0 === _z || _z) && 1 === (null !== (_1 = null === (_0 = table.stateManager.select.ranges) || void 0 === _0 ? void 0 : _0.length) && void 0 !== _1 ? _1 : 0)) {
51739
51762
  const startCol = table.stateManager.select.ranges[0].start.col,
51740
51763
  startRow = table.stateManager.select.ranges[0].start.row,
51741
51764
  endCol = table.stateManager.select.ranges[0].end.col,
51742
51765
  endRow = table.stateManager.select.ranges[0].end.row;
51743
- startCol === endCol && startRow === endRow && table.getEditor(startCol, startRow) && (null === (_w = table.editorManager) || void 0 === _w || _w.startEditCell(startCol, startRow));
51766
+ startCol === endCol && startRow === endRow && table.getEditor(startCol, startRow) && (null === (_2 = table.editorManager) || void 0 === _2 || _2.startEditCell(startCol, startRow));
51744
51767
  }
51745
51768
  } else if ("Tab" === e.key) {
51746
- if ((null === (_y = null === (_x = table.options.keyboardOptions) || void 0 === _x ? void 0 : _x.moveFocusCellOnTab) || void 0 === _y || _y) && stateManager.select.cellPos.col >= 0 && stateManager.select.cellPos.row >= 0) {
51769
+ if ((null === (_4 = null === (_3 = table.options.keyboardOptions) || void 0 === _3 ? void 0 : _3.moveFocusCellOnTab) || void 0 === _4 || _4) && stateManager.select.cellPos.col >= 0 && stateManager.select.cellPos.row >= 0) {
51747
51770
  if (stateManager.select.cellPos.col === table.colCount - 1 && stateManager.select.cellPos.row === table.rowCount - 1) return;
51748
51771
  let targetCol, targetRow;
51749
51772
  if (e.preventDefault(), stateManager.select.cellPos.col === table.colCount - 1 ? (targetRow = Math.min(table.rowCount - 1, stateManager.select.cellPos.row + 1), targetCol = table.rowHeaderLevelCount) : (targetRow = stateManager.select.cellPos.row, targetCol = stateManager.select.cellPos.col + 1), isCellDisableSelect(table, targetCol, targetRow)) return;
51750
- table.selectCell(targetCol, targetRow), (null === (_z = table.editorManager) || void 0 === _z ? void 0 : _z.editingEditor) && (null === (_0 = table.editorManager) || void 0 === _0 || _0.completeEdit(), table.getElement().focus(), table.getEditor(targetCol, targetRow) && (null === (_1 = table.editorManager) || void 0 === _1 || _1.startEditCell(targetCol, targetRow)));
51773
+ table.selectCell(targetCol, targetRow), (null === (_5 = table.editorManager) || void 0 === _5 ? void 0 : _5.editingEditor) && (null === (_6 = table.editorManager) || void 0 === _6 || _6.completeEdit(), table.getElement().focus(), table.getEditor(targetCol, targetRow) && (null === (_7 = table.editorManager) || void 0 === _7 || _7.startEditCell(targetCol, targetRow)));
51751
51774
  }
51752
51775
  } else if (!e.ctrlKey && !e.metaKey) {
51753
51776
  const editCellTrigger = table.options.editCellTrigger;
51754
- if (("keydown" === editCellTrigger || Array.isArray(editCellTrigger) && editCellTrigger.includes("keydown")) && !(null === (_2 = table.editorManager) || void 0 === _2 ? void 0 : _2.editingEditor)) {
51777
+ if (("keydown" === editCellTrigger || Array.isArray(editCellTrigger) && editCellTrigger.includes("keydown")) && !(null === (_8 = table.editorManager) || void 0 === _8 ? void 0 : _8.editingEditor)) {
51755
51778
  const allowedKeys = /^[a-zA-Z0-9+\-*\/%=.,\s]$/;
51756
- e.key.match(allowedKeys) && (table.editorManager && (table.editorManager.beginTriggerEditCellMode = "keydown"), null === (_3 = table.editorManager) || void 0 === _3 || _3.startEditCell(stateManager.select.cellPos.col, stateManager.select.cellPos.row, ""));
51779
+ e.key.match(allowedKeys) && (table.editorManager && (table.editorManager.beginTriggerEditCellMode = "keydown"), null === (_9 = table.editorManager) || void 0 === _9 || _9.startEditCell(stateManager.select.cellPos.col, stateManager.select.cellPos.row, ""));
51757
51780
  }
51758
51781
  }
51759
51782
  handleKeydownListener(e);
@@ -52070,8 +52093,9 @@
52070
52093
  });
52071
52094
  }
52072
52095
  function bindGroupCheckboxTreeChange(table) {
52073
- !0 === table.internalProps.enableCheckboxCascade && table.on("checkbox_state_change", args => {
52096
+ table.on("checkbox_state_change", args => {
52074
52097
  var _a;
52098
+ if (!0 !== table.internalProps.enableCheckboxCascade) return;
52075
52099
  const {
52076
52100
  col: col,
52077
52101
  row: row,
@@ -52179,7 +52203,8 @@
52179
52203
  });
52180
52204
  }
52181
52205
  function bindHeaderCheckboxChange(table) {
52182
- !0 === table.internalProps.enableHeaderCheckboxCascade && table.on("checkbox_state_change", args => {
52206
+ table.on("checkbox_state_change", args => {
52207
+ if (!0 !== table.internalProps.enableHeaderCheckboxCascade) return;
52183
52208
  const {
52184
52209
  col: col,
52185
52210
  row: row,
@@ -52337,7 +52362,7 @@
52337
52362
  }
52338
52363
  dealMenuHover(eventArgsSet) {}
52339
52364
  dealTableSelect(eventArgsSet, isSelectMoving) {
52340
- var _a, _b, _c, _d, _e;
52365
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
52341
52366
  if (!eventArgsSet) return this.table.stateManager.updateSelectPos(-1, -1), !1;
52342
52367
  const {
52343
52368
  eventArgs: eventArgs
@@ -52352,12 +52377,15 @@
52352
52377
  }
52353
52378
  return !1;
52354
52379
  }
52355
- return !this.table.isPivotChart() || "axis-label" !== (null === (_b = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _b ? void 0 : _b.target.name) && "chart" !== (null === (_c = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _c ? void 0 : _c.target.type) ? (this.table.stateManager.updateSelectPos("row" === this.table.stateManager.select.selectInline ? this.table.colCount - 1 : eventArgs.col, "col" === this.table.stateManager.select.selectInline ? this.table.rowCount - 1 : eventArgs.row, eventArgs.event.shiftKey, eventArgs.event.ctrlKey || eventArgs.event.metaKey, !1, !isSelectMoving && (null === (_e = null === (_d = this.table.options.select) || void 0 === _d ? void 0 : _d.makeSelectCellVisible) || void 0 === _e || _e)), !0) : (this.table.stateManager.updateSelectPos(-1, -1), !1);
52380
+ if (this.table.isPivotChart() && ("axis-label" === (null === (_b = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _b ? void 0 : _b.target.name) || "chart" === (null === (_c = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _c ? void 0 : _c.target.type))) return this.table.stateManager.updateSelectPos(-1, -1), !1;
52381
+ const shiftMultiSelect = null === (_e = null === (_d = this.table.keyboardOptions) || void 0 === _d ? void 0 : _d.shiftMultiSelect) || void 0 === _e || _e,
52382
+ ctrlMultiSelect = null === (_g = null === (_f = this.table.keyboardOptions) || void 0 === _f ? void 0 : _f.ctrlMultiSelect) || void 0 === _g || _g;
52383
+ return this.table.stateManager.updateSelectPos("row" === this.table.stateManager.select.selectInline ? this.table.colCount - 1 : eventArgs.col, "col" === this.table.stateManager.select.selectInline ? this.table.rowCount - 1 : eventArgs.row, eventArgs.event.shiftKey && shiftMultiSelect, (eventArgs.event.ctrlKey || eventArgs.event.metaKey) && ctrlMultiSelect, !1, !isSelectMoving && (null === (_j = null === (_h = this.table.options.select) || void 0 === _h ? void 0 : _h.makeSelectCellVisible) || void 0 === _j || _j)), !0;
52356
52384
  }
52357
52385
  return !1;
52358
52386
  }
52359
52387
  dealFillSelect(eventArgsSet, isSelectMoving) {
52360
- var _a, _b;
52388
+ var _a, _b, _c, _d, _e, _f, _g, _h;
52361
52389
  const {
52362
52390
  eventArgs: eventArgs
52363
52391
  } = eventArgsSet;
@@ -52365,8 +52393,14 @@
52365
52393
  if ((null === (_b = null === (_a = this.table.stateManager.select) || void 0 === _a ? void 0 : _a.ranges) || void 0 === _b ? void 0 : _b.length) && this.table.stateManager.isFillHandle()) {
52366
52394
  let updateRow, updateCol;
52367
52395
  const currentRange = this.table.stateManager.select.ranges[this.table.stateManager.select.ranges.length - 1];
52368
- isSelectMoving && (isValid$3(this.table.stateManager.fillHandle.directionRow) || (Math.abs(this.table.stateManager.fillHandle.startY - eventArgsSet.abstractPos.y) >= Math.abs(this.table.stateManager.fillHandle.startX - eventArgsSet.abstractPos.x) ? this.table.stateManager.fillHandle.directionRow = !0 : this.table.stateManager.fillHandle.directionRow = !1), Math.abs(this.table.stateManager.fillHandle.startY - eventArgsSet.abstractPos.y) >= Math.abs(this.table.stateManager.fillHandle.startX - eventArgsSet.abstractPos.x) ? this.table.stateManager.fillHandle.startY - eventArgsSet.abstractPos.y > 0 ? this.table.stateManager.fillHandle.direction = "top" : this.table.stateManager.fillHandle.direction = "bottom" : this.table.stateManager.fillHandle.startX - eventArgsSet.abstractPos.x > 0 ? this.table.stateManager.fillHandle.direction = "left" : this.table.stateManager.fillHandle.direction = "right", this.table.stateManager.fillHandle.directionRow ? (updateRow = eventArgs.row, updateCol = currentRange.end.col) : (updateRow = currentRange.end.row, updateCol = eventArgs.col)), this.table.stateManager.updateSelectPos(isSelectMoving ? updateCol : currentRange.end.col, isSelectMoving ? updateRow : currentRange.end.row, !0, eventArgs.event.ctrlKey || eventArgs.event.metaKey, !1, !isSelectMoving);
52369
- } else this.table.stateManager.updateSelectPos(eventArgs.col, eventArgs.row, eventArgs.event.shiftKey, eventArgs.event.ctrlKey || eventArgs.event.metaKey, !1, !isSelectMoving);
52396
+ isSelectMoving && (isValid$3(this.table.stateManager.fillHandle.directionRow) || (Math.abs(this.table.stateManager.fillHandle.startY - eventArgsSet.abstractPos.y) >= Math.abs(this.table.stateManager.fillHandle.startX - eventArgsSet.abstractPos.x) ? this.table.stateManager.fillHandle.directionRow = !0 : this.table.stateManager.fillHandle.directionRow = !1), Math.abs(this.table.stateManager.fillHandle.startY - eventArgsSet.abstractPos.y) >= Math.abs(this.table.stateManager.fillHandle.startX - eventArgsSet.abstractPos.x) ? this.table.stateManager.fillHandle.startY - eventArgsSet.abstractPos.y > 0 ? this.table.stateManager.fillHandle.direction = "top" : this.table.stateManager.fillHandle.direction = "bottom" : this.table.stateManager.fillHandle.startX - eventArgsSet.abstractPos.x > 0 ? this.table.stateManager.fillHandle.direction = "left" : this.table.stateManager.fillHandle.direction = "right", this.table.stateManager.fillHandle.directionRow ? (updateRow = eventArgs.row, updateCol = currentRange.end.col) : (updateRow = currentRange.end.row, updateCol = eventArgs.col));
52397
+ const ctrlMultiSelect = null === (_d = null === (_c = this.table.keyboardOptions) || void 0 === _c ? void 0 : _c.ctrlMultiSelect) || void 0 === _d || _d;
52398
+ this.table.stateManager.updateSelectPos(isSelectMoving ? updateCol : currentRange.end.col, isSelectMoving ? updateRow : currentRange.end.row, !0, (eventArgs.event.ctrlKey || eventArgs.event.metaKey) && ctrlMultiSelect, !1, !isSelectMoving);
52399
+ } else {
52400
+ const shiftMultiSelect = null === (_f = null === (_e = this.table.keyboardOptions) || void 0 === _e ? void 0 : _e.shiftMultiSelect) || void 0 === _f || _f,
52401
+ ctrlMultiSelect = null === (_h = null === (_g = this.table.keyboardOptions) || void 0 === _g ? void 0 : _g.ctrlMultiSelect) || void 0 === _h || _h;
52402
+ this.table.stateManager.updateSelectPos(eventArgs.col, eventArgs.row, eventArgs.event.shiftKey && shiftMultiSelect, (eventArgs.event.ctrlKey || eventArgs.event.metaKey) && ctrlMultiSelect, !1, !isSelectMoving);
52403
+ }
52370
52404
  return !0;
52371
52405
  }
52372
52406
  return !1;
@@ -52509,7 +52543,8 @@
52509
52543
  return !1;
52510
52544
  }
52511
52545
  release() {
52512
- this.gesture.release(), this.globalEventListeners.forEach(item => {
52546
+ var _a;
52547
+ null === (_a = this.gesture) || void 0 === _a || _a.release(), this.globalEventListeners.forEach(item => {
52513
52548
  "document" === item.env ? document.removeEventListener(item.name, item.callback) : "body" === item.env ? document.body.removeEventListener(item.name, item.callback) : "window" === item.env ? window.removeEventListener(item.name, item.callback) : "vglobal" === item.env && vglobal.removeEventListener(item.name, item.callback);
52514
52549
  }), this.globalEventListeners = [];
52515
52550
  }
@@ -52598,7 +52633,7 @@
52598
52633
  cellIndex === cells.length - 1 && (cell = cell.trim()), rowValues.push(cell);
52599
52634
  });
52600
52635
  });
52601
- const changedCellResults = yield table.changeCellValues(col, row, values);
52636
+ const changedCellResults = yield table.changeCellValues(col, row, values, !0);
52602
52637
  table.hasListeners(TABLE_EVENT_TYPE.PASTED_DATA) && table.fireListeners(TABLE_EVENT_TYPE.PASTED_DATA, {
52603
52638
  col: col,
52604
52639
  row: row,
@@ -54688,7 +54723,7 @@
54688
54723
  }
54689
54724
 
54690
54725
  function getAxisConfigInPivotChart(col, row, layout) {
54691
- var _a, _b, _c, _d, _e, _f, _g;
54726
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
54692
54727
  if (layout._table.isPivotChart()) if (layout.indicatorsAsCol) {
54693
54728
  if (layout.hasTwoIndicatorAxes && row === layout.columnHeaderLevelCount - 1 && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) {
54694
54729
  const axisRange = getRange("top", col, row + 1, col, layout.columnHeaderLevelCount - 1, col, row, 1, layout);
@@ -54727,7 +54762,10 @@
54727
54762
  const info = layout.getIndicatorInfo(key);
54728
54763
  info && (indicatorInfo = info);
54729
54764
  });
54730
- const axisRange = getRange("bottom", col, row - 1, col, row, col, row, 0, layout);
54765
+ const axisRange = getRange("bottom", col, row - 1, col, row, col, row, 0, layout),
54766
+ {
54767
+ chartType: chartType
54768
+ } = getAxisOption(col, row - 1, "bottom", layout);
54731
54769
  if (!axisRange) return;
54732
54770
  const chartCellStyle = layout._table._getCellStyle(col, row - 1),
54733
54771
  padding = getQuadProps(getProp("padding", chartCellStyle, col, row - 1, layout._table)),
@@ -54740,12 +54778,21 @@
54740
54778
  targetRange: targetRange,
54741
54779
  theme: theme
54742
54780
  } = axisRange;
54743
- return isNumber$4(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$4(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1)), merge$1({
54781
+ isNumber$4(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$4(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1));
54782
+ let domain = [];
54783
+ if ("heatmap" === chartType) {
54784
+ const colDimensionKey = layout.getDimensionKeyInChartSpec(col, layout.rowCount - layout.bottomFrozenRowCount - 1, "xField"),
54785
+ data = null !== (_a = layout.dataset.collectedValues[colDimensionKey]) && void 0 !== _a ? _a : [],
54786
+ colPath = layout.getColKeysPath(col, row);
54787
+ domain = null !== (_b = null == data ? void 0 : data[null != colPath ? colPath : ""]) && void 0 !== _b ? _b : [];
54788
+ }
54789
+ return merge$1({
54744
54790
  title: {
54745
54791
  visible: !0,
54746
54792
  text: null == indicatorInfo ? void 0 : indicatorInfo.title
54747
54793
  },
54748
- range: range
54794
+ range: range,
54795
+ domain: "linear" === (null == axisOption ? void 0 : axisOption.type) ? void 0 : Array.from(domain)
54749
54796
  }, axisOption, {
54750
54797
  orient: "bottom",
54751
54798
  type: (null == axisOption ? void 0 : axisOption.type) || "linear",
@@ -54763,9 +54810,9 @@
54763
54810
  if (col === layout.rowHeaderLevelCount - 1 && row >= layout.columnHeaderLevelCount && row < layout.rowCount - layout.bottomFrozenRowCount) {
54764
54811
  let rowDimensionKey = layout.getDimensionKeyInChartSpec(layout.rowHeaderLevelCount, row);
54765
54812
  isArray$7(rowDimensionKey) && (rowDimensionKey = rowDimensionKey[0]);
54766
- const data = null !== (_a = layout.dataset.collectedValues[rowDimensionKey]) && void 0 !== _a ? _a : [],
54813
+ const data = null !== (_c = layout.dataset.collectedValues[rowDimensionKey]) && void 0 !== _c ? _c : [],
54767
54814
  rowPath = layout.getRowKeysPath(col, row),
54768
- domain = null !== (_b = data[null != rowPath ? rowPath : ""]) && void 0 !== _b ? _b : [],
54815
+ domain = null !== (_d = data[null != rowPath ? rowPath : ""]) && void 0 !== _d ? _d : [],
54769
54816
  {
54770
54817
  axisOption: axisOption,
54771
54818
  theme: theme,
@@ -54783,9 +54830,9 @@
54783
54830
  }
54784
54831
  }, axisOption, {
54785
54832
  orient: "left",
54786
- type: null !== (_c = null == axisOption ? void 0 : axisOption.type) && void 0 !== _c ? _c : "band",
54833
+ type: null !== (_e = null == axisOption ? void 0 : axisOption.type) && void 0 !== _e ? _e : "band",
54787
54834
  __vtableChartTheme: theme,
54788
- inverse: transformInverse(axisOption, "horizontal" === (null !== (_d = null == spec ? void 0 : spec.direction) && void 0 !== _d ? _d : "scatter" === chartType ? "vertical" : "horizontal")),
54835
+ inverse: transformInverse(axisOption, "horizontal" === (null !== (_f = null == spec ? void 0 : spec.direction) && void 0 !== _f ? _f : "scatter" === chartType ? "vertical" : "horizontal")),
54789
54836
  __vtablePadding: padding
54790
54837
  });
54791
54838
  }
@@ -54797,7 +54844,10 @@
54797
54844
  const info = layout.getIndicatorInfo(key);
54798
54845
  info && (indicatorInfo = info);
54799
54846
  });
54800
- const axisRange = getRange("left", col + 1, row, col, row, col, row, 0, layout);
54847
+ const axisRange = getRange("left", col + 1, row, col, row, col, row, 0, layout),
54848
+ {
54849
+ chartType: chartType
54850
+ } = getAxisOption(col + 1, row, "left", layout);
54801
54851
  if (!axisRange) return;
54802
54852
  const chartCellStyle = layout._table._getCellStyle(col + 1, row),
54803
54853
  padding = getQuadProps(getProp("padding", chartCellStyle, col + 1, row, layout._table)),
@@ -54810,13 +54860,22 @@
54810
54860
  targetRange: targetRange,
54811
54861
  theme: theme
54812
54862
  } = axisRange;
54813
- return isNumber$4(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$4(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1)), merge$1({
54863
+ isNumber$4(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$4(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1));
54864
+ let domain = [];
54865
+ if ("heatmap" === chartType) {
54866
+ const rowDimensionKey = layout.getDimensionKeyInChartSpec(layout.rowHeaderLevelCount, row, "yField"),
54867
+ data = null !== (_g = layout.dataset.collectedValues[rowDimensionKey]) && void 0 !== _g ? _g : [],
54868
+ rowPath = layout.getRowKeysPath(col, row);
54869
+ domain = null !== (_h = null == data ? void 0 : data[null != rowPath ? rowPath : ""]) && void 0 !== _h ? _h : [];
54870
+ }
54871
+ return merge$1({
54814
54872
  title: {
54815
54873
  visible: !0,
54816
54874
  text: null == indicatorInfo ? void 0 : indicatorInfo.title,
54817
54875
  autoRotate: !0
54818
54876
  },
54819
- range: range
54877
+ range: range,
54878
+ domain: "linear" === (null == axisOption ? void 0 : axisOption.type) ? void 0 : Array.from(domain)
54820
54879
  }, axisOption, {
54821
54880
  orient: "left",
54822
54881
  type: (null == axisOption ? void 0 : axisOption.type) || "linear",
@@ -54832,7 +54891,10 @@
54832
54891
  });
54833
54892
  }
54834
54893
  if (col === layout.colCount - layout.rightFrozenColCount && row >= layout.columnHeaderLevelCount && row < layout.rowCount - layout.bottomFrozenRowCount) {
54835
- const axisRange = getRange("right", col - 1, row, layout.rowHeaderLevelCount - 1, row, col, row, 1, layout);
54894
+ const axisRange = getRange("right", col - 1, row, layout.rowHeaderLevelCount - 1, row, col, row, 1, layout),
54895
+ {
54896
+ chartType: chartType
54897
+ } = getAxisOption(col - 1, row, "right", layout);
54836
54898
  if (!axisRange) return;
54837
54899
  const chartCellStyle = layout._table._getCellStyle(col - 1, row),
54838
54900
  padding = getQuadProps(getProp("padding", chartCellStyle, col - 1, row, layout._table)),
@@ -54845,11 +54907,20 @@
54845
54907
  targetRange: targetRange,
54846
54908
  theme: theme
54847
54909
  } = axisRange;
54848
- return isNumber$4(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$4(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1)), merge$1({
54910
+ isNumber$4(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$4(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1));
54911
+ let domain = [];
54912
+ if ("heatmap" === chartType) {
54913
+ const rowDimensionKey = layout.getDimensionKeyInChartSpec(layout.colCount - layout.rightFrozenColCount - 1, row, "yField"),
54914
+ data = null !== (_j = layout.dataset.collectedValues[rowDimensionKey]) && void 0 !== _j ? _j : [],
54915
+ rowPath = layout.getRowKeysPath(col, row);
54916
+ domain = null !== (_k = null == data ? void 0 : data[null != rowPath ? rowPath : ""]) && void 0 !== _k ? _k : [];
54917
+ }
54918
+ return merge$1({
54849
54919
  range: range,
54850
54920
  title: {
54851
54921
  autoRotate: !0
54852
- }
54922
+ },
54923
+ domain: "linear" === (null == axisOption ? void 0 : axisOption.type) ? void 0 : Array.from(domain)
54853
54924
  }, axisOption, {
54854
54925
  orient: "right",
54855
54926
  type: (null == axisOption ? void 0 : axisOption.type) || "linear",
@@ -54867,9 +54938,9 @@
54867
54938
  if (row === layout.rowCount - layout.bottomFrozenRowCount && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) {
54868
54939
  let columnDimensionKey = layout.getDimensionKeyInChartSpec(col, layout.columnHeaderLevelCount);
54869
54940
  isArray$7(columnDimensionKey) && (columnDimensionKey = columnDimensionKey[0]);
54870
- const data = null !== (_e = layout.dataset.collectedValues[columnDimensionKey]) && void 0 !== _e ? _e : [],
54941
+ const data = null !== (_l = layout.dataset.collectedValues[columnDimensionKey]) && void 0 !== _l ? _l : [],
54871
54942
  colPath = layout.getColKeysPath(col, row),
54872
- domain = null !== (_f = null == data ? void 0 : data[null != colPath ? colPath : ""]) && void 0 !== _f ? _f : [],
54943
+ domain = null !== (_m = null == data ? void 0 : data[null != colPath ? colPath : ""]) && void 0 !== _m ? _m : [],
54873
54944
  {
54874
54945
  axisOption: axisOption,
54875
54946
  isPercent: isPercent,
@@ -54884,7 +54955,7 @@
54884
54955
  range: "linear" === (null == axisOption ? void 0 : axisOption.type) ? domain : void 0
54885
54956
  }, axisOption, {
54886
54957
  orient: "bottom",
54887
- type: null !== (_g = null == axisOption ? void 0 : axisOption.type) && void 0 !== _g ? _g : "band",
54958
+ type: null !== (_o = null == axisOption ? void 0 : axisOption.type) && void 0 !== _o ? _o : "band",
54888
54959
  __vtableChartTheme: theme,
54889
54960
  __vtablePadding: padding
54890
54961
  });
@@ -55391,7 +55462,7 @@
55391
55462
  }
55392
55463
  constructor(container, options = {}) {
55393
55464
  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;
55394
- if (super(), this.showFrozenIcon = !0, this.version = "1.20.1-alpha.1", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
55465
+ if (super(), this.showFrozenIcon = !0, this.version = "1.20.1", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env.mode ? (options = container, container = null) : container instanceof HTMLElement || (options = container, container = container.container ? container.container : null), !container && "node" !== options.mode && !options.canvas) throw new Error("vtable's container is undefined");
55395
55466
  this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
55396
55467
  options: options,
55397
55468
  container: container
@@ -56312,7 +56383,7 @@
56312
56383
  this.release();
56313
56384
  }
56314
56385
  release() {
56315
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
56386
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
56316
56387
  const internalProps = this.internalProps;
56317
56388
  if (this.isReleased) return;
56318
56389
  null === (_b = null === (_a = internalProps.tooltipHandler) || void 0 === _a ? void 0 : _a.release) || void 0 === _b || _b.call(_a), null === (_d = null === (_c = internalProps.menuHandler) || void 0 === _c ? void 0 : _c.release) || void 0 === _d || _d.call(_c), null === (_e = super.release) || void 0 === _e || _e.call(this), this.pluginManager.release(), null === (_g = null === (_f = internalProps.handler) || void 0 === _f ? void 0 : _f.release) || void 0 === _g || _g.call(_f), this.eventManager.release(), null === (_j = null === (_h = internalProps.focusControl) || void 0 === _h ? void 0 : _h.release) || void 0 === _j || _j.call(_h), null === (_k = internalProps.legends) || void 0 === _k || _k.forEach(legend => {
@@ -56321,10 +56392,8 @@
56321
56392
  var _a;
56322
56393
  return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
56323
56394
  }), internalProps.releaseList = null), this.scenegraph.stage.release(), this.scenegraph.proxy.release(), internalProps.focusControl.release();
56324
- const {
56325
- parentElement: parentElement
56326
- } = internalProps.element;
56327
- parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element), 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), this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (_r = this.reactCustomLayout) || void 0 === _r || _r.clearCache(), clearChartRenderQueue();
56395
+ const parentElement = null === (_o = internalProps.element) || void 0 === _o ? void 0 : _o.parentElement;
56396
+ parentElement && !this.options.canvas && parentElement.removeChild(internalProps.element), null === (_r = null === (_q = null === (_p = this.editorManager) || void 0 === _p ? void 0 : _p.editingEditor) || void 0 === _q ? void 0 : _q.onEnd) || void 0 === _r || _r.call(_q), this.isReleased = !0, this.scenegraph = null, this.internalProps = null, null === (_s = this.reactCustomLayout) || void 0 === _s || _s.clearCache(), clearChartRenderQueue();
56328
56397
  }
56329
56398
  fireListeners(type, event) {
56330
56399
  return super.fireListeners(type, event);
@@ -56524,10 +56593,10 @@
56524
56593
  clearSelected() {
56525
56594
  this.stateManager.updateSelectPos(-1, -1);
56526
56595
  }
56527
- selectCell(col, row, isShift, isCtrl, makeSelectCellVisible, skipBodyMerge = !1) {
56596
+ selectCell(col, row, enableShiftSelectMode, enableCtrlSelectMode, makeSelectCellVisible, skipBodyMerge = !1) {
56528
56597
  var _a, _b, _c;
56529
56598
  const isHasSelected = !!(null === (_a = this.stateManager.select.ranges) || void 0 === _a ? void 0 : _a.length);
56530
- this.stateManager.updateSelectPos(col, row, isShift, isCtrl, !1, null === (_c = null != makeSelectCellVisible ? makeSelectCellVisible : null === (_b = this.options.select) || void 0 === _b ? void 0 : _b.makeSelectCellVisible) || void 0 === _c || _c, skipBodyMerge), this.stateManager.endSelectCells(!0, isHasSelected);
56599
+ this.stateManager.updateSelectPos(col, row, enableShiftSelectMode, enableCtrlSelectMode, !1, null === (_c = null != makeSelectCellVisible ? makeSelectCellVisible : null === (_b = this.options.select) || void 0 === _b ? void 0 : _b.makeSelectCellVisible) || void 0 === _c || _c, skipBodyMerge), this.stateManager.endSelectCells(!0, isHasSelected);
56531
56600
  }
56532
56601
  selectCells(cellRanges) {
56533
56602
  const {
@@ -56593,30 +56662,30 @@
56593
56662
  }
56594
56663
  }]);
56595
56664
  }
56596
- startDragSelectCol(colIndex, isCtrl, isShift) {
56665
+ startDragSelectCol(colIndex, enableCtrlSelectMode, enableShiftSelectMode) {
56597
56666
  var _a, _b, _c, _d, _e, _f;
56598
56667
  const lastSelectRange = this.stateManager.select.ranges[this.stateManager.select.ranges.length - 1],
56599
- 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,
56668
+ startCol = enableShiftSelectMode && (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,
56600
56669
  endCol = colIndex,
56601
56670
  endRow = this.rowCount - 1;
56602
- 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), 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);
56671
+ this.stateManager.updateSelectPos(startCol, 0, enableShiftSelectMode, enableCtrlSelectMode, !1, null === (_d = null === (_c = this.options.select) || void 0 === _c ? void 0 : _c.makeSelectCellVisible) || void 0 === _d || _d, !0), this.stateManager.updateInteractionState(InteractionState.grabing), this.stateManager.updateSelectPos(endCol, endRow, enableShiftSelectMode, enableCtrlSelectMode, !1, null === (_f = null === (_e = this.options.select) || void 0 === _e ? void 0 : _e.makeSelectCellVisible) || void 0 === _f || _f, !0);
56603
56672
  }
56604
- dragSelectCol(colIndex, isCtrl) {
56673
+ dragSelectCol(colIndex, enableCtrlSelectMode) {
56605
56674
  var _a, _b;
56606
56675
  const currentSelectRanges = this.stateManager.select.ranges,
56607
56676
  lastSelectRange = currentSelectRanges[currentSelectRanges.length - 1];
56608
- 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);
56677
+ lastSelectRange && (lastSelectRange.end.col = colIndex), this.stateManager.updateSelectPos(colIndex, this.rowCount - 1, !1, enableCtrlSelectMode, !1, null === (_b = null === (_a = this.options.select) || void 0 === _a ? void 0 : _a.makeSelectCellVisible) || void 0 === _b || _b, !0);
56609
56678
  }
56610
56679
  endDragSelect() {
56611
56680
  this.stateManager.updateInteractionState(InteractionState.default), this.stateManager.endSelectCells(!1, !1);
56612
56681
  }
56613
- startDragSelectRow(rowIndex, isCtrl, isShift) {
56682
+ startDragSelectRow(rowIndex, enableCtrlSelectMode, isShift) {
56614
56683
  var _a, _b, _c, _d, _e, _f;
56615
56684
  const lastSelectRange = this.stateManager.select.ranges[this.stateManager.select.ranges.length - 1],
56616
56685
  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,
56617
56686
  endCol = this.colCount - 1,
56618
56687
  endRow = rowIndex;
56619
- 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), 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);
56688
+ this.stateManager.updateSelectPos(0, startRow, isShift, enableCtrlSelectMode, !1, null === (_d = null === (_c = this.options.select) || void 0 === _c ? void 0 : _c.makeSelectCellVisible) || void 0 === _d || _d, !0), this.stateManager.updateInteractionState(InteractionState.grabing), this.stateManager.updateSelectPos(endCol, endRow, isShift, enableCtrlSelectMode, !1, null === (_f = null === (_e = this.options.select) || void 0 === _e ? void 0 : _e.makeSelectCellVisible) || void 0 === _f || _f, !0);
56620
56689
  }
56621
56690
  dragSelectRow(rowIndex, isCtrl) {
56622
56691
  var _a, _b;
@@ -60158,6 +60227,7 @@
60158
60227
  } else if (table.sortState) table.dataSource.deleteRecordsForSorted(recordIndexs), sortRecords(table), table.refreshRowColCount(), table.scenegraph.clearCells(), table.scenegraph.createSceneGraph();else {
60159
60228
  const deletedRecordIndexs = table.dataSource.deleteRecords(recordIndexs);
60160
60229
  if (0 === deletedRecordIndexs.length) return;
60230
+ for (let index = 0; index < deletedRecordIndexs.length; index++) adjustCheckBoxStateMapWithDeleteRecordIndex(table, deletedRecordIndexs[index], 1);
60161
60231
  const oldRowCount = table.transpose ? table.colCount : table.rowCount;
60162
60232
  table.refreshRowColCount();
60163
60233
  const newRowCount = table.transpose ? table.colCount : table.rowCount,
@@ -60361,10 +60431,22 @@
60361
60431
  checkedState.delete(originKey), targetKey && checkedState.set(targetKey, value);
60362
60432
  });
60363
60433
  } else {
60364
- for (let key = checkedState.size - 1; key >= recordIndex; key--) {
60365
- const record = checkedState.get(key.toString());
60366
- checkedState.delete(key.toString()), checkedState.set((key - count).toString(), record);
60367
- }
60434
+ const toDelete = [],
60435
+ toUpdate = [];
60436
+ checkedState.forEach((value, key) => {
60437
+ const dataIndex = Number(key);
60438
+ !isNaN(dataIndex) && dataIndex >= recordIndex && (dataIndex === recordIndex ? toDelete.push(key) : dataIndex > recordIndex && toUpdate.push({
60439
+ originKey: key,
60440
+ targetKey: (dataIndex - count).toString(),
60441
+ value: value
60442
+ }));
60443
+ }), toDelete.forEach(key => checkedState.delete(key)), toUpdate.forEach(({
60444
+ originKey: originKey,
60445
+ targetKey: targetKey,
60446
+ value: value
60447
+ }) => {
60448
+ checkedState.delete(originKey), checkedState.set(targetKey, value);
60449
+ });
60368
60450
  }
60369
60451
  }
60370
60452
  function adjustCheckBoxStateMapWithAddRecordIndex(table, recordIndex, count) {
@@ -60597,7 +60679,7 @@
60597
60679
  } else {
60598
60680
  const define = table.getBodyColumnDefine(col, row),
60599
60681
  checkboxSeriesNumberStyle = table.getFieldData(define.field, col, row);
60600
- value = "string" == typeof checkboxSeriesNumberStyle ? checkboxSeriesNumberStyle : (null == checkboxSeriesNumberStyle ? void 0 : checkboxSeriesNumberStyle.text) ? null !== (_a = checkboxSeriesNumberStyle.text) && void 0 !== _a ? _a : "" : row - this.columnHeaderLevelCount + 1;
60682
+ value = ["number", "string"].includes(typeof checkboxSeriesNumberStyle) ? checkboxSeriesNumberStyle : (null == checkboxSeriesNumberStyle ? void 0 : checkboxSeriesNumberStyle.text) ? null !== (_a = checkboxSeriesNumberStyle.text) && void 0 !== _a ? _a : "" : row - this.columnHeaderLevelCount + 1;
60601
60683
  }
60602
60684
  const {
60603
60685
  format: format
@@ -61159,7 +61241,8 @@
61159
61241
  return Array.isArray(index) && 1 === index.length && (index = index[0]), this.dataSource.getTableIndex(index);
61160
61242
  }
61161
61243
  release() {
61162
- this.editorManager.release(), super.release();
61244
+ var _a;
61245
+ null === (_a = this.editorManager) || void 0 === _a || _a.release(), super.release();
61163
61246
  }
61164
61247
  expandAllTreeNode() {
61165
61248
  if (!this._hasHierarchyTreeHeader()) return;
@@ -64252,7 +64335,7 @@
64252
64335
  };
64253
64336
 
64254
64337
  function createChartCellGroup(cellGroup, columnGroup, xOrigin, yOrigin, col, row, width, height, padding, dataValue, chartModule, chartSpec, chartInstance, dataId, table, cellTheme, isShareChartSpec, isAsync, isNoChartDataRenderNothing) {
64255
- 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;
64338
+ 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;
64256
64339
  const ClassType = get$1()[chartModule],
64257
64340
  headerStyle = table._getCellStyle(col, row),
64258
64341
  functionalPadding = getFunctionalProp("padding", headerStyle, col, row, table);
@@ -64307,6 +64390,7 @@
64307
64390
  data: table.getCellValue(col, row) || [],
64308
64391
  cellPadding: padding,
64309
64392
  dpr: table.internalProps.pixelRatio,
64393
+ detectPickChartItem: null === (_1 = table.options.customConfig) || void 0 === _1 ? void 0 : _1.detectPickChartItem,
64310
64394
  axes: table.isPivotChart() ? table.internalProps.layoutMap.getChartAxes(col, row) : [],
64311
64395
  tableChartOption: table.options.chartOption,
64312
64396
  col: col,