@visactor/vtable-sheet 1.22.11-alpha.5 → 1.22.11-alpha.6

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.
@@ -37856,6 +37856,24 @@
37856
37856
  }, delay));
37857
37857
  };
37858
37858
  }
37859
+ function cancellableThrottle(func, delay) {
37860
+ let timer = null,
37861
+ lastArgs = null,
37862
+ context = null;
37863
+ return {
37864
+ throttled: function (...args) {
37865
+ lastArgs = args, context = this, timer || (timer = setTimeout(() => {
37866
+ lastArgs && func.apply(context, lastArgs), timer = null, lastArgs = null, context = null;
37867
+ }, delay));
37868
+ },
37869
+ cancel: () => {
37870
+ timer && (clearTimeout(timer), timer = null, lastArgs = null, context = null);
37871
+ },
37872
+ flush: () => {
37873
+ timer && lastArgs && (clearTimeout(timer), func.apply(context, lastArgs), timer = null, lastArgs = null, context = null);
37874
+ }
37875
+ };
37876
+ }
37859
37877
  function pad(num, totalChars) {
37860
37878
  for (num = `${num}`; num.length < totalChars;) num = "0" + num;
37861
37879
  return num;
@@ -38828,7 +38846,6 @@
38828
38846
  AFTER_UPDATE_CELL_CONTENT_WIDTH: "after_update_cell_content_width",
38829
38847
  AFTER_UPDATE_SELECT_BORDER_HEIGHT: "after_update_select_border_height",
38830
38848
  CHANGE_CELL_VALUE: "change_cell_value",
38831
- CHANGE_CELL_VALUES: "change_cell_values",
38832
38849
  DRAG_FILL_HANDLE_END: "drag_fill_handle_end",
38833
38850
  MOUSEDOWN_FILL_HANDLE: "mousedown_fill_handle",
38834
38851
  DBLCLICK_FILL_HANDLE: "dblclick_fill_handle",
@@ -39849,6 +39866,9 @@
39849
39866
  var _a;
39850
39867
  return null !== (_a = defaultStyle.textAlign) && void 0 !== _a ? _a : "left";
39851
39868
  },
39869
+ get textStickBaseOnAlign() {
39870
+ return defaultStyle.textStickBaseOnAlign;
39871
+ },
39852
39872
  get textBaseline() {
39853
39873
  var _a;
39854
39874
  return null !== (_a = defaultStyle.textBaseline) && void 0 !== _a ? _a : "middle";
@@ -40532,6 +40552,9 @@
40532
40552
  get textStick() {
40533
40553
  return style.textStick;
40534
40554
  },
40555
+ get textStickBaseOnAlign() {
40556
+ return style.textStickBaseOnAlign;
40557
+ },
40535
40558
  get marked() {
40536
40559
  return style.marked;
40537
40560
  },
@@ -40955,24 +40978,6 @@
40955
40978
  }
40956
40979
  }
40957
40980
  }
40958
- changeFieldValueByRecordIndex(value, recordIndex, field, table) {
40959
- var _a, _b, _c, _d;
40960
- if (null === field) return;
40961
- if (null == recordIndex) return;
40962
- const rawKey = recordIndex.toString();
40963
- if (!this.beforeChangedRecordsMap.has(rawKey)) {
40964
- const rawRecords = Array.isArray(null === (_a = this.dataSourceObj) || void 0 === _a ? void 0 : _a.records) ? this.dataSourceObj.records : null,
40965
- originRecord = rawRecords ? Array.isArray(recordIndex) ? getValueFromDeepArray(rawRecords, recordIndex) : rawRecords[recordIndex] : void 0;
40966
- this.beforeChangedRecordsMap.set(rawKey, null !== (_b = cloneDeep$1(originRecord, void 0, ["vtable_gantt_linkedFrom", "vtable_gantt_linkedTo"])) && void 0 !== _b ? _b : {});
40967
- }
40968
- if ("string" == typeof field || "number" == typeof field) {
40969
- const beforeChangedValue = null === (_c = this.beforeChangedRecordsMap.get(rawKey)) || void 0 === _c ? void 0 : _c[field],
40970
- rawRecords = Array.isArray(null === (_d = this.dataSourceObj) || void 0 === _d ? void 0 : _d.records) ? this.dataSourceObj.records : null,
40971
- record = rawRecords ? Array.isArray(recordIndex) ? getValueFromDeepArray(rawRecords, recordIndex) : rawRecords[recordIndex] : void 0;
40972
- let formatValue = value;
40973
- "number" == typeof beforeChangedValue && isAllDigits(value) && (formatValue = parseFloat(value)), record ? record[field] = formatValue : rawRecords && "number" == typeof recordIndex && (rawRecords[recordIndex] = "Array" === this.addRecordRule ? [] : {}, rawRecords[recordIndex][field] = formatValue);
40974
- }
40975
- }
40976
40981
  cacheBeforeChangedRecord(dataIndex, table) {
40977
40982
  var _a;
40978
40983
  if (!this.beforeChangedRecordsMap.has(dataIndex.toString())) {
@@ -41038,16 +41043,9 @@
41038
41043
  }
41039
41044
  }
41040
41045
  adjustBeforeChangedRecordsMap(insertIndex, insertCount, type = "add") {
41041
- const delta = "add" === type ? insertCount : -insertCount,
41042
- numericKeys = [];
41043
- this.beforeChangedRecordsMap.forEach((_, key) => {
41044
- const numKey = Number(key);
41045
- Number.isInteger(numKey) && numKey.toString() === key && numKey >= insertIndex && numericKeys.push(numKey);
41046
- }), numericKeys.sort((a, b) => "add" === type ? b - a : a - b);
41047
- for (let i = 0; i < numericKeys.length; i++) {
41048
- const key = numericKeys[i],
41049
- record = this.beforeChangedRecordsMap.get(key.toString());
41050
- this.beforeChangedRecordsMap.delete(key.toString()), this.beforeChangedRecordsMap.set((key + delta).toString(), record);
41046
+ for (let key = this.beforeChangedRecordsMap.size - 1; key >= insertIndex; key--) {
41047
+ const record = this.beforeChangedRecordsMap.get(key.toString());
41048
+ this.beforeChangedRecordsMap.delete(key.toString()), this.beforeChangedRecordsMap.set((key + ("add" === type ? insertCount : -insertCount)).toString(), record);
41051
41049
  }
41052
41050
  }
41053
41051
  deleteRecords(recordIndexs) {
@@ -47724,11 +47722,35 @@
47724
47722
  return hoverMode;
47725
47723
  }
47726
47724
 
47725
+ let brushingChartInstance,
47726
+ brushingChartInstanceCellPos = {
47727
+ col: -1,
47728
+ row: -1
47729
+ };
47730
+ function setBrushingChartInstance(chartInstance, col, row) {
47731
+ brushingChartInstance = chartInstance, brushingChartInstanceCellPos = {
47732
+ col: col,
47733
+ row: row
47734
+ };
47735
+ }
47736
+ function clearBrushingChartInstance() {
47737
+ brushingChartInstance = void 0, brushingChartInstanceCellPos = {
47738
+ col: -1,
47739
+ row: -1
47740
+ };
47741
+ }
47742
+ function getBrushingChartInstance() {
47743
+ return brushingChartInstance;
47744
+ }
47745
+ function getBrushingChartInstanceCellPos() {
47746
+ return brushingChartInstanceCellPos;
47747
+ }
47727
47748
  const chartInstanceListColumnByColumnDirection = {};
47728
47749
  const chartInstanceListRowByRowDirection = {};
47750
+ const delayRunDimensionHoverTimer = [];
47729
47751
  function generateChartInstanceListByColumnDirection(col, dimensionValueOrXValue, positionValueOrYValue, canvasXY, table, hideTooltip = !1, isScatter = !1) {
47730
47752
  var _a;
47731
- isValid$2(chartInstanceListColumnByColumnDirection[col]) || (chartInstanceListColumnByColumnDirection[col] = {});
47753
+ clearDelayRunDimensionHoverTimers(), isValid$2(chartInstanceListColumnByColumnDirection[col]) || (chartInstanceListColumnByColumnDirection[col] = {});
47732
47754
  const {
47733
47755
  rowStart: rowStart
47734
47756
  } = table.getBodyVisibleRowRange();
@@ -47737,76 +47759,40 @@
47737
47759
  for (let i = rowStart; i <= rowEnd; i++) {
47738
47760
  const cellGroup = table.scenegraph.getCell(col, i),
47739
47761
  chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
47740
- chartNode.addUpdateShapeAndBoundsTag(), chartInstanceListColumnByColumnDirection[col][i] || isValid$2(chartNode) && (chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance), setTimeout(() => {
47741
- var _a, _b, _c, _d, _e, _f;
47762
+ chartInstanceListColumnByColumnDirection[col][i] || isValid$2(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance);
47763
+ const timer = setTimeout(() => {
47764
+ var _a, _b, _c, _d;
47742
47765
  if (null === (_a = chartInstanceListColumnByColumnDirection[col]) || void 0 === _a ? void 0 : _a[i]) {
47743
47766
  const chartDimensionLinkage = table.options.chartDimensionLinkage;
47744
47767
  let isShowTooltip = !isScatter;
47745
- if (!isScatter && "object" == typeof chartDimensionLinkage) if (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, i === rowEnd && isShowTooltip) {
47746
- const heightLimitToShowTooltipForEdgeRow = null !== (_c = chartDimensionLinkage.heightLimitToShowTooltipForEdgeRow) && void 0 !== _c ? _c : 0,
47747
- {
47748
- rowEnd: rowEnd1
47749
- } = table.getBodyVisibleRowRange(0, -heightLimitToShowTooltipForEdgeRow);
47750
- if (rowEnd1 === rowEnd) isShowTooltip = !0;else {
47751
- const {
47752
- rowEnd: rowEnd2
47753
- } = table.getBodyVisibleRowRange(0, 5);
47754
- isShowTooltip = rowEnd2 !== rowEnd;
47755
- }
47756
- } else if (i === rowStart && isShowTooltip) {
47757
- const heightLimitToShowTooltipForEdgeRow = null !== (_d = chartDimensionLinkage.heightLimitToShowTooltipForEdgeRow) && void 0 !== _d ? _d : 0,
47758
- {
47759
- rowStart: rowStart1
47760
- } = table.getBodyVisibleRowRange(heightLimitToShowTooltipForEdgeRow, 0);
47761
- if (rowStart1 === rowStart) isShowTooltip = !0;else {
47762
- const {
47763
- rowStart: rowStart2
47764
- } = table.getBodyVisibleRowRange(0, -5);
47765
- isShowTooltip = rowStart2 !== rowStart;
47766
- }
47767
- }
47768
- if (isScatter) table.stateManager.hover.cellPos.col === col && table.stateManager.hover.cellPos.row === i || null === (_f = (_e = chartInstanceListColumnByColumnDirection[col][i]).showCrosshair) || void 0 === _f || _f.call(_e, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue);else {
47769
- const bodyBoundryTop = table.frozenRowCount ? table.getCellRelativeRect(col, table.frozenRowCount - 1).bottom : 0,
47768
+ if (isScatter || "object" != typeof chartDimensionLinkage || (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeRow(i, table)), isScatter) table.stateManager.hover.cellPos.col === col && table.stateManager.hover.cellPos.row === i || null === (_d = (_c = chartInstanceListColumnByColumnDirection[col][i]).showCrosshair) || void 0 === _d || _d.call(_c, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue);else {
47769
+ const cellBoundry = table.getCellRelativeRect(col, i),
47770
+ bodyBoundryTop = table.frozenRowCount ? table.getCellRelativeRect(col, table.frozenRowCount - 1).bottom : 0,
47770
47771
  absolutePositionTop = Math.max(bodyBoundryTop, table.getCellRelativeRect(col, i).top);
47771
47772
  hideTooltip ? (table.stateManager.hover.cellPos.col === col && table.stateManager.hover.cellPos.row === i || chartInstanceListColumnByColumnDirection[col][i].hideTooltip(), chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
47772
47773
  tooltip: !1,
47773
47774
  showTooltipOption: {
47774
- x: canvasXY.x,
47775
- y: absolutePositionTop,
47775
+ x: canvasXY.x - cellBoundry.left,
47776
+ y: absolutePositionTop - cellBoundry.top,
47776
47777
  activeType: "dimension"
47777
47778
  }
47778
47779
  })) : chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
47779
47780
  tooltip: isShowTooltip,
47780
47781
  showTooltipOption: {
47781
- x: canvasXY.x,
47782
- y: absolutePositionTop,
47782
+ x: canvasXY.x - cellBoundry.left,
47783
+ y: absolutePositionTop - cellBoundry.top,
47783
47784
  activeType: "dimension"
47784
47785
  }
47785
47786
  });
47786
47787
  }
47787
47788
  }
47788
- }, 0), table.scenegraph.updateNextFrame();
47789
- }
47790
- }
47791
- function clearChartInstanceListByColumnDirection(col, excludedRow, table) {
47792
- var _a;
47793
- if (isValid$2(chartInstanceListColumnByColumnDirection[col])) {
47794
- for (const i in chartInstanceListColumnByColumnDirection[col]) {
47795
- if (isValid$2(excludedRow) && Number(i) === excludedRow) continue;
47796
- const cellGroup = table.scenegraph.getCell(col, Number(i)),
47797
- chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
47798
- chartNode.addUpdateShapeAndBoundsTag(), isValid$2(chartNode) && (chartNode.deactivate(table, {
47799
- releaseChartInstance: !0,
47800
- releaseColumnChartInstance: !1,
47801
- releaseRowChartInstance: !1
47802
- }), chartInstanceListColumnByColumnDirection[col][i] = null);
47803
- }
47804
- delete chartInstanceListColumnByColumnDirection[col];
47789
+ }, 0);
47790
+ delayRunDimensionHoverTimer.push(timer), table.scenegraph.updateNextFrame();
47805
47791
  }
47806
47792
  }
47807
47793
  function generateChartInstanceListByRowDirection(row, dimensionValueOrXValue, positionValueOrYValue, canvasXY, table, hideTooltip = !1, isScatter = !1) {
47808
47794
  var _a;
47809
- isValid$2(chartInstanceListRowByRowDirection[row]) || (chartInstanceListRowByRowDirection[row] = {});
47795
+ clearDelayRunDimensionHoverTimers(), isValid$2(chartInstanceListRowByRowDirection[row]) || (chartInstanceListRowByRowDirection[row] = {});
47810
47796
  const {
47811
47797
  colStart: colStart
47812
47798
  } = table.getBodyVisibleColRange();
@@ -47815,64 +47801,162 @@
47815
47801
  for (let i = colStart; i <= colEnd; i++) {
47816
47802
  const cellGroup = table.scenegraph.getCell(i, row),
47817
47803
  chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
47818
- chartNode.addUpdateShapeAndBoundsTag(), chartInstanceListRowByRowDirection[row][i] || isValid$2(chartNode) && (chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListRowByRowDirection[row][i] = chartNode.activeChartInstance), setTimeout(() => {
47804
+ chartInstanceListRowByRowDirection[row][i] || isValid$2(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListRowByRowDirection[row][i] = chartNode.activeChartInstance);
47805
+ const timer = setTimeout(() => {
47819
47806
  var _a, _b, _c, _d;
47820
47807
  if (null === (_a = chartInstanceListRowByRowDirection[row]) || void 0 === _a ? void 0 : _a[i]) {
47821
47808
  const chartDimensionLinkage = table.options.chartDimensionLinkage;
47822
47809
  let isShowTooltip = !isScatter;
47823
- if (!isScatter && "object" == typeof chartDimensionLinkage) if (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, i === colEnd && isShowTooltip) {
47824
- const widthLimitToShowTooltipForEdgeColumn = chartDimensionLinkage.widthLimitToShowTooltipForEdgeColumn,
47825
- {
47826
- colEnd: colEnd1
47827
- } = table.getBodyVisibleColRange(0, -widthLimitToShowTooltipForEdgeColumn);
47828
- if (colEnd1 === colEnd) isShowTooltip = !0;else {
47829
- const {
47830
- colEnd: colEnd2
47831
- } = table.getBodyVisibleColRange(0, 5);
47832
- isShowTooltip = colEnd2 !== colEnd;
47833
- }
47834
- } else if (i === colStart && isShowTooltip) {
47835
- const widthLimitToShowTooltipForEdgeColumn = chartDimensionLinkage.widthLimitToShowTooltipForEdgeColumn,
47836
- {
47837
- colStart: colStart1
47838
- } = table.getBodyVisibleColRange(widthLimitToShowTooltipForEdgeColumn, 0);
47839
- if (colStart1 === colStart) isShowTooltip = !0;else {
47840
- const {
47841
- colStart: colStart2
47842
- } = table.getBodyVisibleColRange(0, -5);
47843
- isShowTooltip = colStart2 !== colStart;
47844
- }
47845
- }
47846
- if (isScatter) table.stateManager.hover.cellPos.col === i && table.stateManager.hover.cellPos.row === row || null === (_d = (_c = chartInstanceListRowByRowDirection[row][i]).showCrosshair) || void 0 === _d || _d.call(_c, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue);else {
47847
- const bodyBoundryLeft = table.frozenColCount ? table.getCellRelativeRect(table.frozenColCount - 1, row).right : 0,
47810
+ if (isScatter || "object" != typeof chartDimensionLinkage || (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeColumn(i, table)), isScatter) table.stateManager.hover.cellPos.col === i && table.stateManager.hover.cellPos.row === row || null === (_d = (_c = chartInstanceListRowByRowDirection[row][i]).showCrosshair) || void 0 === _d || _d.call(_c, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue);else {
47811
+ const cellBoundry = table.getCellRelativeRect(i, row),
47812
+ bodyBoundryLeft = table.frozenColCount ? table.getCellRelativeRect(table.frozenColCount - 1, row).right : 0,
47848
47813
  absolutePositionLeft = Math.max(bodyBoundryLeft, table.getCellRelativeRect(i, row).left);
47849
47814
  hideTooltip ? (table.stateManager.hover.cellPos.col === i && table.stateManager.hover.cellPos.row === row || chartInstanceListRowByRowDirection[row][i].hideTooltip(), chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
47850
47815
  tooltip: !1,
47851
47816
  showTooltipOption: {
47852
- x: absolutePositionLeft,
47853
- y: canvasXY.y,
47817
+ x: absolutePositionLeft - cellBoundry.left,
47818
+ y: canvasXY.y - cellBoundry.top,
47854
47819
  activeType: "dimension"
47855
47820
  }
47856
47821
  })) : chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
47857
47822
  tooltip: isShowTooltip,
47858
47823
  showTooltipOption: {
47859
- x: absolutePositionLeft,
47860
- y: canvasXY.y,
47824
+ x: absolutePositionLeft - cellBoundry.left,
47825
+ y: canvasXY.y - cellBoundry.top,
47861
47826
  activeType: "dimension"
47862
47827
  }
47863
47828
  });
47864
47829
  }
47865
47830
  }
47866
- }, 0), table.scenegraph.updateNextFrame();
47831
+ }, 0);
47832
+ delayRunDimensionHoverTimer.push(timer), table.scenegraph.updateNextFrame();
47833
+ }
47834
+ }
47835
+ function generateChartInstanceListByViewRange(datum, table, deactivate = !1) {
47836
+ var _a;
47837
+ clearDelayRunDimensionHoverTimers();
47838
+ const {
47839
+ rowStart: rowStart
47840
+ } = table.getBodyVisibleRowRange();
47841
+ let rowEnd = table.getBodyVisibleRowRange().rowEnd;
47842
+ rowEnd = Math.min(table.rowCount - 1 - table.bottomFrozenRowCount, rowEnd);
47843
+ const {
47844
+ colStart: colStart
47845
+ } = table.getBodyVisibleColRange();
47846
+ let colEnd = table.getBodyVisibleColRange().colEnd;
47847
+ colEnd = Math.min(table.colCount - 1 - table.rightFrozenColCount, colEnd);
47848
+ for (let col = colStart; col <= colEnd; col++) {
47849
+ isValid$2(chartInstanceListColumnByColumnDirection[col]) || (chartInstanceListColumnByColumnDirection[col] = {});
47850
+ for (let i = rowStart; i <= rowEnd; i++) {
47851
+ const cellGroup = table.scenegraph.getCell(col, i),
47852
+ chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
47853
+ chartInstanceListColumnByColumnDirection[col][i] || isValid$2(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.activeChartInstance ? chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance : "pie" === chartNode.attribute.spec.type && (chartNode.activate(table), chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance));
47854
+ const timer = setTimeout(() => {
47855
+ var _a, _b;
47856
+ if (null === (_a = chartInstanceListColumnByColumnDirection[col]) || void 0 === _a ? void 0 : _a[i]) {
47857
+ const chartDimensionLinkage = table.options.chartDimensionLinkage;
47858
+ let isShowTooltip = !0;
47859
+ "object" == typeof chartDimensionLinkage && (deactivate ? (chartInstanceListColumnByColumnDirection[col][i].setHovered(), chartInstanceListColumnByColumnDirection[col][i].hideTooltip()) : (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeRow(i, table), isShowTooltip = isShowTooltip && checkIsShowTooltipForEdgeColumn(col, table), chartInstanceListColumnByColumnDirection[col][i].setHovered(datum), isShowTooltip && chartInstanceListColumnByColumnDirection[col][i].showTooltip(datum, {
47860
+ activeType: "mark"
47861
+ })));
47862
+ }
47863
+ }, 0);
47864
+ delayRunDimensionHoverTimer.push(timer), table.scenegraph.updateNextFrame();
47865
+ }
47866
+ }
47867
+ }
47868
+ function checkIsShowTooltipForEdgeRow(row, table) {
47869
+ var _a, _b;
47870
+ let isShowTooltip = !0;
47871
+ const {
47872
+ rowStart: rowStart
47873
+ } = table.getBodyVisibleRowRange();
47874
+ let rowEnd = table.getBodyVisibleRowRange().rowEnd;
47875
+ rowEnd = Math.min(table.rowCount - 1 - table.bottomFrozenRowCount, rowEnd);
47876
+ const chartDimensionLinkage = table.options.chartDimensionLinkage;
47877
+ if (row === rowEnd && isShowTooltip) {
47878
+ const heightLimitToShowTooltipForEdgeRow = null !== (_a = chartDimensionLinkage.heightLimitToShowTooltipForEdgeRow) && void 0 !== _a ? _a : 0,
47879
+ {
47880
+ rowEnd: rowEnd1
47881
+ } = table.getBodyVisibleRowRange(0, -heightLimitToShowTooltipForEdgeRow);
47882
+ if (rowEnd1 === rowEnd) isShowTooltip = !0;else {
47883
+ const {
47884
+ rowEnd: rowEnd2
47885
+ } = table.getBodyVisibleRowRange(0, 5);
47886
+ isShowTooltip = rowEnd2 !== rowEnd;
47887
+ }
47888
+ } else if (row === rowStart && isShowTooltip) {
47889
+ const heightLimitToShowTooltipForEdgeRow = null !== (_b = chartDimensionLinkage.heightLimitToShowTooltipForEdgeRow) && void 0 !== _b ? _b : 0,
47890
+ {
47891
+ rowStart: rowStart1
47892
+ } = table.getBodyVisibleRowRange(heightLimitToShowTooltipForEdgeRow, 0);
47893
+ if (rowStart1 === rowStart) isShowTooltip = !0;else {
47894
+ const {
47895
+ rowStart: rowStart2
47896
+ } = table.getBodyVisibleRowRange(0, -5);
47897
+ isShowTooltip = rowStart2 !== rowStart;
47898
+ }
47899
+ }
47900
+ return isShowTooltip;
47901
+ }
47902
+ function checkIsShowTooltipForEdgeColumn(col, table) {
47903
+ let isShowTooltip = !0;
47904
+ const {
47905
+ colStart: colStart
47906
+ } = table.getBodyVisibleColRange();
47907
+ let colEnd = table.getBodyVisibleColRange().colEnd;
47908
+ colEnd = Math.min(table.colCount - 1 - table.rightFrozenColCount, colEnd);
47909
+ const chartDimensionLinkage = table.options.chartDimensionLinkage;
47910
+ if (col === colEnd && isShowTooltip) {
47911
+ const widthLimitToShowTooltipForEdgeColumn = chartDimensionLinkage.widthLimitToShowTooltipForEdgeColumn,
47912
+ {
47913
+ colEnd: colEnd1
47914
+ } = table.getBodyVisibleColRange(0, -widthLimitToShowTooltipForEdgeColumn);
47915
+ if (colEnd1 === colEnd) isShowTooltip = !0;else {
47916
+ const {
47917
+ colEnd: colEnd2
47918
+ } = table.getBodyVisibleColRange(0, 5);
47919
+ isShowTooltip = colEnd2 !== colEnd;
47920
+ }
47921
+ } else if (col === colStart && isShowTooltip) {
47922
+ const widthLimitToShowTooltipForEdgeColumn = chartDimensionLinkage.widthLimitToShowTooltipForEdgeColumn,
47923
+ {
47924
+ colStart: colStart1
47925
+ } = table.getBodyVisibleColRange(widthLimitToShowTooltipForEdgeColumn, 0);
47926
+ if (colStart1 === colStart) isShowTooltip = !0;else {
47927
+ const {
47928
+ colStart: colStart2
47929
+ } = table.getBodyVisibleColRange(0, -5);
47930
+ isShowTooltip = colStart2 !== colStart;
47931
+ }
47867
47932
  }
47933
+ return isShowTooltip;
47868
47934
  }
47869
- function clearChartInstanceListByRowDirection(row, excludedCol, table) {
47935
+ function clearChartInstanceListByColumnDirection(col, excludedRow, table, forceRelease = !1) {
47936
+ var _a;
47937
+ if (isValid$2(chartInstanceListColumnByColumnDirection[col])) {
47938
+ for (const i in chartInstanceListColumnByColumnDirection[col]) {
47939
+ if (isValid$2(excludedRow) && Number(i) === excludedRow) continue;
47940
+ const cellGroup = table.scenegraph.getCell(col, Number(i)),
47941
+ chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
47942
+ isValid$2(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.deactivate(table, {
47943
+ forceRelease: forceRelease,
47944
+ releaseChartInstance: !0,
47945
+ releaseColumnChartInstance: !1,
47946
+ releaseRowChartInstance: !1
47947
+ }), chartInstanceListColumnByColumnDirection[col][i] = null);
47948
+ }
47949
+ delete chartInstanceListColumnByColumnDirection[col];
47950
+ }
47951
+ }
47952
+ function clearChartInstanceListByRowDirection(row, excludedCol, table, forceRelease = !1) {
47870
47953
  var _a;
47871
47954
  if (isValid$2(chartInstanceListRowByRowDirection[row])) for (const i in chartInstanceListRowByRowDirection[row]) {
47872
47955
  if (isValid$2(excludedCol) && Number(i) === excludedCol) continue;
47873
47956
  const cellGroup = table.scenegraph.getCell(Number(i), row),
47874
47957
  chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
47875
- chartNode.addUpdateShapeAndBoundsTag(), isValid$2(chartNode) && (chartNode.deactivate(table, {
47958
+ isValid$2(chartNode) && (chartNode.addUpdateShapeAndBoundsTag(), chartNode.deactivate(table, {
47959
+ forceRelease: forceRelease,
47876
47960
  releaseChartInstance: !0,
47877
47961
  releaseColumnChartInstance: !1,
47878
47962
  releaseRowChartInstance: !1
@@ -47880,6 +47964,15 @@
47880
47964
  }
47881
47965
  delete chartInstanceListRowByRowDirection[row];
47882
47966
  }
47967
+ function clearDelayRunDimensionHoverTimers() {
47968
+ for (const timer of delayRunDimensionHoverTimer) clearTimeout(timer);
47969
+ delayRunDimensionHoverTimer.length = 0;
47970
+ }
47971
+ function clearAllChartInstanceList(table, forceRelease = !1) {
47972
+ clearDelayRunDimensionHoverTimers();
47973
+ for (const col in chartInstanceListColumnByColumnDirection) clearChartInstanceListByColumnDirection(Number(col), void 0, table, forceRelease);
47974
+ for (const row in chartInstanceListRowByRowDirection) clearChartInstanceListByRowDirection(Number(row), void 0, table, forceRelease);
47975
+ }
47883
47976
 
47884
47977
  function isValidAlignDomain(domain) {
47885
47978
  return 2 === domain.length && isValidNumber$1(domain[0]) && isValidNumber$1(domain[1]) && domain[1] >= domain[0];
@@ -48513,7 +48606,7 @@
48513
48606
  const CHART_NUMBER_TYPE = genNumberType();
48514
48607
  class Chart extends Rect$2 {
48515
48608
  constructor(isShareChartSpec, params) {
48516
- if (super(params), this.type = "chart", this.activeChartInstanceHoverOnMark = null, this.justShowMarkTooltip = void 0, this.justShowMarkTooltipTimer = Date.now(), this.delayRunDimensionHoverTimer = void 0, this.numberType = CHART_NUMBER_TYPE, this.isShareChartSpec = isShareChartSpec, params.chartInstance) this.chartInstance = params.chartInstance;else {
48609
+ if (super(params), this.type = "chart", this.activeChartInstanceLastViewBox = null, this.activeChartInstanceHoverOnMark = null, this.justShowMarkTooltip = void 0, this.justShowMarkTooltipTimer = Date.now(), this.delayRunDimensionHoverTimer = void 0, this.numberType = CHART_NUMBER_TYPE, this.isShareChartSpec = isShareChartSpec, params.chartInstance) this.chartInstance = params.chartInstance;else {
48517
48610
  const chartInstance = this.chartInstance = new params.ClassType(params.spec, merge({}, this.attribute.tableChartOption, {
48518
48611
  renderCanvas: params.canvas,
48519
48612
  mode: "node" === this.attribute.mode ? "node" : "desktop-browser",
@@ -48534,7 +48627,7 @@
48534
48627
  }
48535
48628
  }
48536
48629
  activate(table) {
48537
- var _a, _b, _c, _d, _e;
48630
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
48538
48631
  if (this.activeChartInstance) return;
48539
48632
  const {
48540
48633
  col: col,
@@ -48553,7 +48646,7 @@
48553
48646
  y1: y1 - table.scrollTop,
48554
48647
  y2: y2 - table.scrollTop
48555
48648
  });
48556
- null === (_a = this.activeChartInstance) || void 0 === _a || _a.release(), this.attribute.ClassType.globalConfig.uniqueTooltip = !1, this.activeChartInstance = new this.attribute.ClassType(this.attribute.spec, merge({}, this.attribute.tableChartOption, {
48649
+ this.attribute.ClassType.globalConfig.uniqueTooltip = !1, this.activeChartInstance = new this.attribute.ClassType(this.attribute.spec, merge({}, this.attribute.tableChartOption, {
48557
48650
  renderCanvas: this.attribute.canvas,
48558
48651
  mode: "desktop-browser",
48559
48652
  canvasControled: !1,
@@ -48587,7 +48680,7 @@
48587
48680
  layer.main && drawParams.clear && hoverColor && (context.beginPath(), context.fillStyle = hoverColor, context.rect(viewBox.x1, viewBox.y1, viewBox.x2 - viewBox.x1, viewBox.y2 - viewBox.y1), context.fill());
48588
48681
  }
48589
48682
  },
48590
- componentShowContent: table.options.chartDimensionLinkage && "scatter" !== this.attribute.spec.type ? {
48683
+ componentShowContent: (null === (_a = table.options.chartDimensionLinkage) || void 0 === _a ? void 0 : _a.showTooltip) && "scatter" !== this.attribute.spec.type ? {
48591
48684
  tooltip: {
48592
48685
  dimension: !1,
48593
48686
  mark: !0
@@ -48598,15 +48691,40 @@
48598
48691
  const chartStage = this.activeChartInstance.getStage(),
48599
48692
  matrix = this.globalTransMatrix.clone(),
48600
48693
  stageMatrix = this.stage.window.getViewBoxTransform();
48694
+ let brushChangeThrottle;
48601
48695
  matrix.multiply(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f), chartStage.window.setViewBoxTransform && chartStage.window.setViewBoxTransform(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f), this.activeChartInstance.renderSync(), null === (_c = null === (_b = table.internalProps.layoutMap) || void 0 === _b ? void 0 : _b.updateDataStateToActiveChartInstance) || void 0 === _c || _c.call(_b, this.activeChartInstance), this.activeChartInstance.on("click", params => {
48602
48696
  var _a;
48603
- !1 === (null === (_a = this.attribute.spec.select) || void 0 === _a ? void 0 : _a.enable) ? table.scenegraph.updateChartState(null) : Chart.temp && table.scenegraph.updateChartState(null == params ? void 0 : params.datum);
48697
+ !1 === (null === (_a = this.attribute.spec.select) || void 0 === _a ? void 0 : _a.enable) ? table.scenegraph.updateChartState(null, void 0) : Chart.temp && table.scenegraph.updateChartState(null == params ? void 0 : params.datum, "click");
48698
+ }), (null === (_d = table.options.chartDimensionLinkage) || void 0 === _d ? void 0 : _d.listenBrushChange) && (brushChangeThrottle = cancellableThrottle(table.scenegraph.updateChartState.bind(table.scenegraph), null !== (_f = null === (_e = table.options.chartDimensionLinkage) || void 0 === _e ? void 0 : _e.brushChangeDelay) && void 0 !== _f ? _f : 100), this.activeChartInstance.on("brushChange", params => {
48699
+ var _a;
48700
+ brushChangeThrottle.throttled(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData, "brush");
48701
+ })), this.activeChartInstance.on("brushStart", params => {
48702
+ const brushingChartInstance = getBrushingChartInstance();
48703
+ brushingChartInstance !== this.activeChartInstance && (brushingChartInstance && brushingChartInstance.getChart().getComponentsByKey("brush")[0].clearBrushStateAndMask(), setBrushingChartInstance(this.activeChartInstance, col, row));
48604
48704
  }), this.activeChartInstance.on("brushEnd", params => {
48605
48705
  var _a;
48606
- table.scenegraph.updateChartState(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData), Chart.temp = 0, setTimeout(() => {
48706
+ null == brushChangeThrottle || brushChangeThrottle.cancel(), table.scenegraph.updateChartState(null === (_a = null == params ? void 0 : params.value) || void 0 === _a ? void 0 : _a.inBrushData, "brush"), Chart.temp = 0, setTimeout(() => {
48607
48707
  Chart.temp = 1;
48608
48708
  }, 0);
48609
- }), table.options.chartDimensionLinkage && this.activeChartInstance.on("dimensionHover", params => {
48709
+ }), (null === (_g = table.options.chartDimensionLinkage) || void 0 === _g ? void 0 : _g.showTooltip) && ("pie" === this.attribute.spec.type && (this.activeChartInstance.on("pointerover", {
48710
+ markName: "pie"
48711
+ }, params => {
48712
+ var _a;
48713
+ const categoryField = this.attribute.spec.categoryField,
48714
+ datum = {
48715
+ [categoryField]: null === (_a = null == params ? void 0 : params.datum) || void 0 === _a ? void 0 : _a[categoryField]
48716
+ };
48717
+ generateChartInstanceListByViewRange(datum, table, !1);
48718
+ }), this.activeChartInstance.on("pointerout", {
48719
+ markName: "pie"
48720
+ }, params => {
48721
+ var _a;
48722
+ const categoryField = this.attribute.spec.categoryField,
48723
+ datum = {
48724
+ [categoryField]: null === (_a = null == params ? void 0 : params.datum) || void 0 === _a ? void 0 : _a[categoryField]
48725
+ };
48726
+ generateChartInstanceListByViewRange(datum, table, !0);
48727
+ })), this.activeChartInstance.on("dimensionHover", params => {
48610
48728
  var _a, _b;
48611
48729
  const dimensionInfo = null == params ? void 0 : params.dimensionInfo[0],
48612
48730
  canvasXY = null === (_a = null == params ? void 0 : params.event) || void 0 === _a ? void 0 : _a.canvas,
@@ -48669,21 +48787,23 @@
48669
48787
  }
48670
48788
  }
48671
48789
  }
48672
- }), null === (_e = (_d = table)._bindChartEvent) || void 0 === _e || _e.call(_d, this.activeChartInstance);
48790
+ })), null === (_j = (_h = table)._bindChartEvent) || void 0 === _j || _j.call(_h, this.activeChartInstance);
48673
48791
  }
48674
48792
  deactivate(table, {
48793
+ forceRelease = !1,
48675
48794
  releaseChartInstance = !0,
48676
48795
  releaseColumnChartInstance = !0,
48677
- releaseRowChartInstance = !0
48796
+ releaseRowChartInstance = !0,
48797
+ releaseAllChartInstance = !1
48678
48798
  } = {}) {
48679
48799
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
48680
48800
  if (this.activeChartInstanceHoverOnMark = null, this.justShowMarkTooltip = void 0, this.justShowMarkTooltipTimer = Date.now(), clearTimeout(this.delayRunDimensionHoverTimer), this.delayRunDimensionHoverTimer = void 0, releaseChartInstance) {
48681
- null === (_a = this.activeChartInstance) || void 0 === _a || _a.updateViewBox({
48801
+ !forceRelease && getBrushingChartInstance() && getBrushingChartInstance() === this.activeChartInstance || (null === (_a = this.activeChartInstance) || void 0 === _a || _a.updateViewBox({
48682
48802
  x1: -1e3,
48683
48803
  x2: -800,
48684
48804
  y1: -1e3,
48685
48805
  y2: -800
48686
- }, !1, !1), null === (_b = this.activeChartInstance) || void 0 === _b || _b.release(), this.activeChartInstance = null;
48806
+ }, !1, !1), null === (_b = this.activeChartInstance) || void 0 === _b || _b.release(), this.activeChartInstance = null);
48687
48807
  const {
48688
48808
  col: col,
48689
48809
  row: row
@@ -48696,7 +48816,7 @@
48696
48816
  } = this.parent;
48697
48817
  releaseColumnChartInstance && table.internalProps.layoutMap.isAxisCell(col, table.rowCount - table.bottomFrozenRowCount) && (null === (_h = null === (_g = table.scenegraph.getCell(col, table.rowCount - table.bottomFrozenRowCount).firstChild) || void 0 === _g ? void 0 : _g.hideLabelHoverOnAxis) || void 0 === _h || _h.call(_g)), releaseRowChartInstance && table.internalProps.layoutMap.isAxisCell(table.rowHeaderLevelCount - 1, row) && (null === (_k = null === (_j = table.scenegraph.getCell(table.rowHeaderLevelCount - 1, row).firstChild) || void 0 === _j ? void 0 : _j.hideLabelHoverOnAxis) || void 0 === _k || _k.call(_j));
48698
48818
  }
48699
- releaseColumnChartInstance && clearChartInstanceListByColumnDirection(this.parent.col, "scatter" === this.attribute.spec.type ? this.parent.row : void 0, table), releaseRowChartInstance && clearChartInstanceListByRowDirection(this.parent.row, "scatter" === this.attribute.spec.type ? this.parent.col : void 0, table);
48819
+ releaseAllChartInstance ? clearAllChartInstanceList(table, forceRelease) : (releaseColumnChartInstance && clearChartInstanceListByColumnDirection(this.parent.col, "scatter" === this.attribute.spec.type ? this.parent.row : void 0, table, forceRelease), releaseRowChartInstance && clearChartInstanceListByRowDirection(this.parent.row, "scatter" === this.attribute.spec.type ? this.parent.col : void 0, table, forceRelease));
48700
48820
  }
48701
48821
  updateData(data) {
48702
48822
  this.attribute.data = data;
@@ -48711,13 +48831,14 @@
48711
48831
  y1: y1,
48712
48832
  x2: x2,
48713
48833
  y2: y2
48714
- } = cellGroup.globalAABBBounds;
48715
- return {
48716
- x1: Math.ceil(x1 + padding[3] + table.scrollLeft + (null !== (_b = null === (_a = table.options.viewBox) || void 0 === _a ? void 0 : _a.x1) && void 0 !== _b ? _b : 0)),
48717
- x2: Math.ceil(x1 + cellGroup.attribute.width - padding[1] + table.scrollLeft + (null !== (_d = null === (_c = table.options.viewBox) || void 0 === _c ? void 0 : _c.x1) && void 0 !== _d ? _d : 0)),
48718
- y1: Math.ceil(y1 + padding[0] + table.scrollTop + (null !== (_f = null === (_e = table.options.viewBox) || void 0 === _e ? void 0 : _e.y1) && void 0 !== _f ? _f : 0)),
48719
- y2: Math.ceil(y1 + cellGroup.attribute.height - padding[2] + table.scrollTop + (null !== (_h = null === (_g = table.options.viewBox) || void 0 === _g ? void 0 : _g.y1) && void 0 !== _h ? _h : 0))
48720
- };
48834
+ } = cellGroup.globalAABBBounds,
48835
+ viewBox = {
48836
+ x1: Math.ceil(x1 + padding[3] + table.scrollLeft + (null !== (_b = null === (_a = table.options.viewBox) || void 0 === _a ? void 0 : _a.x1) && void 0 !== _b ? _b : 0)),
48837
+ x2: Math.ceil(x1 + cellGroup.attribute.width - padding[1] + table.scrollLeft + (null !== (_d = null === (_c = table.options.viewBox) || void 0 === _c ? void 0 : _c.x1) && void 0 !== _d ? _d : 0)),
48838
+ y1: Math.ceil(y1 + padding[0] + table.scrollTop + (null !== (_f = null === (_e = table.options.viewBox) || void 0 === _e ? void 0 : _e.y1) && void 0 !== _f ? _f : 0)),
48839
+ y2: Math.ceil(y1 + cellGroup.attribute.height - padding[2] + table.scrollTop + (null !== (_h = null === (_g = table.options.viewBox) || void 0 === _g ? void 0 : _g.y1) && void 0 !== _h ? _h : 0))
48840
+ };
48841
+ return this.activeChartInstance ? this.activeChartInstanceLastViewBox = viewBox : this.activeChartInstanceLastViewBox = null, viewBox;
48721
48842
  }
48722
48843
  }
48723
48844
  function getTableBounds(col, row, table) {
@@ -48932,7 +49053,7 @@
48932
49053
  {
48933
49054
  width = groupAttribute.width,
48934
49055
  height = groupAttribute.height
48935
- } = (chart.getViewBox(), chart.attribute),
49056
+ } = chart.attribute,
48936
49057
  {
48937
49058
  table: table
48938
49059
  } = chart.getRootNode(),
@@ -48960,8 +49081,9 @@
48960
49081
  });
48961
49082
  }
48962
49083
  }
48963
- const viewBox = chart.getViewBox();
48964
- activeChartInstance.updateViewBox({
49084
+ const lastViewBox = chart.activeChartInstanceLastViewBox,
49085
+ viewBox = chart.getViewBox();
49086
+ lastViewBox && viewBox.x1 === lastViewBox.x1 && viewBox.x2 === lastViewBox.x2 && viewBox.y1 === lastViewBox.y1 && viewBox.y2 === lastViewBox.y2 || activeChartInstance.updateViewBox({
48965
49087
  x1: 0,
48966
49088
  x2: viewBox.x2 - viewBox.x1,
48967
49089
  y1: 0,
@@ -52479,9 +52601,10 @@
52479
52601
  });
52480
52602
  }
52481
52603
  }
52482
- function updateChartState(scenegraph, datum) {
52604
+ function updateChartState(scenegraph, datum, selectedDataMode) {
52483
52605
  const table = scenegraph.table;
52484
52606
  if (table.isPivotChart()) {
52607
+ table._selectedDataMode = selectedDataMode;
52485
52608
  const preSelectItemsCount = table._selectedDataItemsInChart.length;
52486
52609
  if ((null == datum || 0 === (null == datum ? void 0 : datum.length) || 0 === Object.keys(datum).length) && 0 === preSelectItemsCount) return;
52487
52610
  const newSelectedDataItemsInChart = [];
@@ -53229,16 +53352,36 @@
53229
53352
  resetResidentHoverIcon(col, row) {
53230
53353
  resetResidentHoverIcon(col, row, this);
53231
53354
  }
53232
- deactivateChart(col, row) {
53233
- var _a, _b, _c;
53234
- if (-1 === col || -1 === row) return;
53355
+ deactivateChart(col, row, forceRelease = !1) {
53356
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
53357
+ if (-1 === col || -1 === row) {
53358
+ if (forceRelease) {
53359
+ const brushingChartInstanceCellPos = getBrushingChartInstanceCellPos(),
53360
+ cellGroup = this.getCell(brushingChartInstanceCellPos.col, brushingChartInstanceCellPos.row);
53361
+ (null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.deactivate) && (clearBrushingChartInstance(), null === (_c = null === (_b = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _b ? void 0 : _b.deactivate) || void 0 === _c || _c.call(_b, this.table, {
53362
+ forceRelease: !0,
53363
+ releaseChartInstance: !0,
53364
+ releaseColumnChartInstance: !0,
53365
+ releaseRowChartInstance: !0,
53366
+ releaseAllChartInstance: !0
53367
+ }));
53368
+ }
53369
+ return;
53370
+ }
53235
53371
  const cellGroup = this.getCell(col, row);
53236
- if (null === (_a = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _a ? void 0 : _a.deactivate) {
53372
+ if (null === (_d = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _d ? void 0 : _d.deactivate) {
53373
+ if (forceRelease) return clearBrushingChartInstance(), void (null === (_f = null === (_e = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _e ? void 0 : _e.deactivate) || void 0 === _f || _f.call(_e, this.table, {
53374
+ forceRelease: !0,
53375
+ releaseChartInstance: !0,
53376
+ releaseColumnChartInstance: !0,
53377
+ releaseRowChartInstance: !0,
53378
+ releaseAllChartInstance: !0
53379
+ }));
53237
53380
  const chartType = (null == cellGroup ? void 0 : cellGroup.firstChild).attribute.spec.type;
53238
- null === (_c = null === (_b = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _b ? void 0 : _b.deactivate) || void 0 === _c || _c.call(_b, this.table, this.table.options.chartDimensionLinkage ? {
53239
- releaseChartInstance: "scatter" === chartType ? col !== this.table.stateManager.hover.cellPos.col && row !== this.table.stateManager.hover.cellPos.row || this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount || this.table.stateManager.hover.cellPos.row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount || this.table.stateManager.hover.cellPos.col < this.table.frozenColCount || this.table.stateManager.hover.cellPos.col > this.table.colCount - 1 - this.table.rightFrozenColCount : this.table.options.indicatorsAsCol ? row !== this.table.stateManager.hover.cellPos.row || this.table.stateManager.hover.cellPos.col < this.table.frozenColCount || this.table.stateManager.hover.cellPos.col > this.table.colCount - 1 - this.table.rightFrozenColCount : col !== this.table.stateManager.hover.cellPos.col || this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount || this.table.stateManager.hover.cellPos.row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount,
53240
- releaseColumnChartInstance: col !== this.table.stateManager.hover.cellPos.col || this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount || this.table.stateManager.hover.cellPos.row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount,
53241
- releaseRowChartInstance: row !== this.table.stateManager.hover.cellPos.row || this.table.stateManager.hover.cellPos.col < this.table.frozenColCount || this.table.stateManager.hover.cellPos.col > this.table.colCount - 1 - this.table.rightFrozenColCount
53381
+ null === (_h = null === (_g = null == cellGroup ? void 0 : cellGroup.firstChild) || void 0 === _g ? void 0 : _g.deactivate) || void 0 === _h || _h.call(_g, this.table, (null === (_j = this.table.options.chartDimensionLinkage) || void 0 === _j ? void 0 : _j.showTooltip) ? {
53382
+ releaseChartInstance: "pie" !== chartType && ("scatter" === chartType ? col !== this.table.stateManager.hover.cellPos.col && row !== this.table.stateManager.hover.cellPos.row || this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount || this.table.stateManager.hover.cellPos.row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount || this.table.stateManager.hover.cellPos.col < this.table.frozenColCount || this.table.stateManager.hover.cellPos.col > this.table.colCount - 1 - this.table.rightFrozenColCount : this.table.options.indicatorsAsCol ? row !== this.table.stateManager.hover.cellPos.row || this.table.stateManager.hover.cellPos.col < this.table.frozenColCount || this.table.stateManager.hover.cellPos.col > this.table.colCount - 1 - this.table.rightFrozenColCount : col !== this.table.stateManager.hover.cellPos.col || this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount || this.table.stateManager.hover.cellPos.row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount),
53383
+ releaseColumnChartInstance: "pie" !== chartType && (col !== this.table.stateManager.hover.cellPos.col || this.table.stateManager.hover.cellPos.row < this.table.frozenRowCount || this.table.stateManager.hover.cellPos.row > this.table.rowCount - 1 - this.table.bottomFrozenRowCount),
53384
+ releaseRowChartInstance: "pie" !== chartType && (row !== this.table.stateManager.hover.cellPos.row || this.table.stateManager.hover.cellPos.col < this.table.frozenColCount || this.table.stateManager.hover.cellPos.col > this.table.colCount - 1 - this.table.rightFrozenColCount)
53242
53385
  } : void 0);
53243
53386
  }
53244
53387
  }
@@ -53286,8 +53429,15 @@
53286
53429
  updateChartSizeForResizeRowHeight(row) {
53287
53430
  updateChartSizeForResizeRowHeight(this, row);
53288
53431
  }
53289
- updateChartState(datum) {
53290
- this.table.isPivotChart() && updateChartState(this, datum);
53432
+ updateChartState(datum, selectedDataMode) {
53433
+ var _a, _b;
53434
+ if (this.table.isPivotChart()) {
53435
+ if (null == datum || 0 === (null == datum ? void 0 : datum.length) || 0 === Object.keys(datum).length) {
53436
+ const brushingChartInstance = getBrushingChartInstance();
53437
+ brushingChartInstance && brushingChartInstance.getChart().getComponentsByKey("brush")[0].clearBrushStateAndMask(), null === (_b = null === (_a = this.table.options.chartDimensionLinkage) || void 0 === _a ? void 0 : _a.clearChartState) || void 0 === _b || _b.call(_a);
53438
+ }
53439
+ updateChartState(this, datum, selectedDataMode);
53440
+ }
53291
53441
  }
53292
53442
  updateCheckboxCellState(col, row, checked) {
53293
53443
  var _a, _b;
@@ -56314,7 +56464,7 @@
56314
56464
  }, 0 !== e.button) return;
56315
56465
  const eventArgsSet = getCellEventArgsSet(e);
56316
56466
  if (eventManager.downIcon = void 0, stateManager.interactionState !== InteractionState.default) return;
56317
- if (table.isPivotChart() && "chart" !== (null === (_a = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.target.type) && table.scenegraph.updateChartState(null), (null === (_b = eventArgsSet.eventArgs) || void 0 === _b ? void 0 : _b.target) !== (null === (_c = stateManager.residentHoverIcon) || void 0 === _c ? void 0 : _c.icon) && stateManager.hideMenu(), "chart" === (null === (_d = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _d ? void 0 : _d.target.type)) return;
56467
+ if (table.isPivotChart() && "chart" !== (null === (_a = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _a ? void 0 : _a.target.type) && table.scenegraph.updateChartState(null, void 0), (null === (_b = eventArgsSet.eventArgs) || void 0 === _b ? void 0 : _b.target) !== (null === (_c = stateManager.residentHoverIcon) || void 0 === _c ? void 0 : _c.icon) && stateManager.hideMenu(), "chart" === (null === (_d = null == eventArgsSet ? void 0 : eventArgsSet.eventArgs) || void 0 === _d ? void 0 : _d.target.type)) return;
56318
56468
  const isCompleteEdit = null === (_e = table.editorManager) || void 0 === _e ? void 0 : _e.completeEdit(e.nativeEvent);
56319
56469
  getPromiseValue(isCompleteEdit, isCompleteEdit => {
56320
56470
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
@@ -56342,7 +56492,7 @@
56342
56492
  }
56343
56493
  eventManager.dealTableHover(eventArgsSet);
56344
56494
  } else {
56345
- if (!eventManager.checkCellFillhandle(eventArgsSet) && (eventManager.checkColumnResize(eventArgsSet, !0) || eventManager.checkRowResize(eventArgsSet, !0))) return table.scenegraph.updateChartState(null), void stateManager.updateInteractionState(InteractionState.grabing);
56495
+ if (!eventManager.checkCellFillhandle(eventArgsSet) && (eventManager.checkColumnResize(eventArgsSet, !0) || eventManager.checkRowResize(eventArgsSet, !0))) return table.scenegraph.updateChartState(null, void 0), void stateManager.updateInteractionState(InteractionState.grabing);
56346
56496
  if (eventManager.checkColumnMover(eventArgsSet)) return void stateManager.updateInteractionState(InteractionState.grabing);
56347
56497
  if (eventManager.checkCellFillhandle(eventArgsSet, !0) && eventManager.dealFillSelect(eventArgsSet)) return void stateManager.updateInteractionState(InteractionState.grabing);
56348
56498
  eventManager.dealTableSelect(eventArgsSet) && stateManager.updateInteractionState(InteractionState.grabing);
@@ -56494,7 +56644,7 @@
56494
56644
  if (!(null === (_a = table.options.customConfig) || void 0 === _a ? void 0 : _a.selectCellWhenCellEditorNotExists) && !1 === isCompleteEdit) return;
56495
56645
  const hitIcon = (null === (_b = e.target.role) || void 0 === _b ? void 0 : _b.startsWith("icon")) ? e.target : void 0;
56496
56646
  if (eventManager.downIcon = hitIcon, "touch" === e.pointerType || hitIcon || eventManager.checkCellFillhandle(eventArgsSet) || stateManager.columnResize.resizing || !eventManager.checkColumnResize(eventArgsSet, !0)) ;else {
56497
- table.scenegraph.updateChartState(null), stateManager.updateInteractionState(InteractionState.grabing);
56647
+ table.scenegraph.updateChartState(null, void 0), stateManager.updateInteractionState(InteractionState.grabing);
56498
56648
  const {
56499
56649
  eventArgs: eventArgs
56500
56650
  } = eventArgsSet;
@@ -56513,7 +56663,7 @@
56513
56663
  if (table.eventManager.isDraging || !target || !target.isDescendantsOf(table.scenegraph.stage) && target.stage !== target || target.isDescendantsOf(table.scenegraph.tableGroup)) table.eventManager.isDraging && stateManager.isSelecting() && stateManager.endSelectCells();else {
56514
56664
  stateManager.updateInteractionState(InteractionState.default), eventManager.dealTableHover();
56515
56665
  const isHasSelected = !!(null === (_a = stateManager.select.ranges) || void 0 === _a ? void 0 : _a.length);
56516
- (null === (_b = table.options.customConfig) || void 0 === _b ? void 0 : _b.cancelSelectCellHook) ? (null === (_c = table.options.customConfig) || void 0 === _c ? void 0 : _c.cancelSelectCellHook(e)) && eventManager.dealTableSelect() : (null === (_e = null === (_d = table.options.select) || void 0 === _d ? void 0 : _d.blankAreaClickDeselect) || void 0 === _e || _e) && eventManager.dealTableSelect(), stateManager.endSelectCells(!0, isHasSelected), stateManager.updateCursor(), table.scenegraph.updateChartState(null);
56666
+ (null === (_b = table.options.customConfig) || void 0 === _b ? void 0 : _b.cancelSelectCellHook) ? (null === (_c = table.options.customConfig) || void 0 === _c ? void 0 : _c.cancelSelectCellHook(e)) && eventManager.dealTableSelect() : (null === (_e = null === (_d = table.options.select) || void 0 === _d ? void 0 : _d.blankAreaClickDeselect) || void 0 === _e || _e) && eventManager.dealTableSelect(), stateManager.endSelectCells(!0, isHasSelected), stateManager.updateCursor(), table.scenegraph.updateChartState(null, void 0);
56517
56667
  }
56518
56668
  }), table.scenegraph.stage.addEventListener("pointermove", e => {
56519
56669
  var _a, _b, _c;
@@ -56631,7 +56781,15 @@
56631
56781
  table.stateManager.setCheckedState(col, row, cellInfo.field, e.detail.checked), table.fireListeners(TABLE_EVENT_TYPE.SWITCH_STATE_CHANGE, cellsEvent), table.scenegraph.updateNextFrame();
56632
56782
  }), table.scenegraph.stage.addEventListener("wheel", e => {
56633
56783
  var _a;
56634
- e.path.find(node => "legend" === node.name) || (null === (_a = table.editorManager) || void 0 === _a || _a.completeEdit(), table.eventManager._enableTableScroll && handleWhell(e, stateManager));
56784
+ if (!e.path.find(node => "legend" === node.name)) {
56785
+ null === (_a = table.editorManager) || void 0 === _a || _a.completeEdit();
56786
+ const {
56787
+ cellPos: cellPos
56788
+ } = table.stateManager.hover,
56789
+ prevHoverCellCol = cellPos.col,
56790
+ prevHoverCellRow = cellPos.row;
56791
+ table.scenegraph.deactivateChart(prevHoverCellCol, prevHoverCellRow, !0), table.eventManager._enableTableScroll && handleWhell(e, stateManager);
56792
+ }
56635
56793
  });
56636
56794
  }
56637
56795
  function bindGesture(eventManager) {
@@ -57411,7 +57569,7 @@
57411
57569
  };
57412
57570
  let EventManager$1 = class EventManager {
57413
57571
  constructor(table) {
57414
- this.isDown = !1, this.isDraging = !1, this.globalEventListeners = [], this._enableTableScroll = !0, this.cutWaitPaste = !1, this.clipboardCheckTimer = null, this.cutOperationTime = 0, this.lastClipboardContent = "", this.cutCellRange = null, this.cutRanges = null, this.copySourceRange = null, this.table = table, this.handleTextStickBindId = [], this.inertiaScroll = new InertiaScroll(table.stateManager), "node" === Env$1.mode || table.options.disableInteraction || (this.bindOuterEvent(), setTimeout(() => {
57572
+ this.isDown = !1, this.isDraging = !1, this.globalEventListeners = [], this._enableTableScroll = !0, this.cutWaitPaste = !1, this.clipboardCheckTimer = null, this.cutOperationTime = 0, this.lastClipboardContent = "", this.cutCellRange = null, this.copySourceRange = null, this.table = table, this.handleTextStickBindId = [], this.inertiaScroll = new InertiaScroll(table.stateManager), "node" === Env$1.mode || table.options.disableInteraction || (this.bindOuterEvent(), setTimeout(() => {
57415
57573
  this.bindSelfEvent();
57416
57574
  }, 0));
57417
57575
  }
@@ -57713,25 +57871,15 @@
57713
57871
  } catch (error) {}
57714
57872
  }
57715
57873
  handleCut(e) {
57716
- var _a;
57717
57874
  return __awaiter$1(this, void 0, void 0, function* () {
57718
- this.handleCopy(e, !0), this.cutWaitPaste = !0, this.cutCellRange = this.table.getSelectedCellInfos(), this.cutRanges = null === (_a = this.table.stateManager.select.ranges) || void 0 === _a ? void 0 : _a.map(r => ({
57719
- start: {
57720
- col: r.start.col,
57721
- row: r.start.row
57722
- },
57723
- end: {
57724
- col: r.end.col,
57725
- row: r.end.row
57726
- }
57727
- })), this.clipboardCheckTimer && clearTimeout(this.clipboardCheckTimer), this.clipboardCheckTimer = window.setTimeout(() => {
57728
- this.cutWaitPaste && (this.cutWaitPaste = !1, this.cutCellRange = null, this.cutRanges = null, this.clipboardCheckTimer = null);
57875
+ this.handleCopy(e, !0), this.cutWaitPaste = !0, this.cutCellRange = this.table.getSelectedCellInfos(), this.clipboardCheckTimer && clearTimeout(this.clipboardCheckTimer), this.clipboardCheckTimer = window.setTimeout(() => {
57876
+ this.cutWaitPaste && (this.cutWaitPaste = !1, this.cutCellRange = null, this.clipboardCheckTimer = null);
57729
57877
  }, 3e4), this.saveClipboardContent();
57730
57878
  });
57731
57879
  }
57732
57880
  handlePaste(e) {
57733
57881
  this.cutWaitPaste ? this.checkClipboardChanged().then(changed => {
57734
- this.executePaste(e), changed || this.clearCutArea(this.table), this.cutWaitPaste && (this.cutWaitPaste = !1, this.cutCellRange = null, this.cutRanges = null, this.clipboardCheckTimer && (clearTimeout(this.clipboardCheckTimer), this.clipboardCheckTimer = null));
57882
+ this.executePaste(e), changed || this.clearCutArea(this.table), this.cutWaitPaste && (this.cutWaitPaste = !1, this.cutCellRange = null, this.clipboardCheckTimer && (clearTimeout(this.clipboardCheckTimer), this.clipboardCheckTimer = null));
57735
57883
  }).catch(() => {
57736
57884
  this.executePaste(e), this.cutWaitPaste && (this.cutWaitPaste = !1, this.cutCellRange = null, this.clipboardCheckTimer && (clearTimeout(this.clipboardCheckTimer), this.clipboardCheckTimer = null));
57737
57885
  }) : this.executePaste(e);
@@ -57808,9 +57956,9 @@
57808
57956
  }
57809
57957
  clearCutArea(table) {
57810
57958
  try {
57811
- const ranges = this.cutRanges;
57812
- if (!ranges || 0 === ranges.length) return;
57813
- table.changeCellValuesByIds(ranges, "");
57959
+ const selectCells = this.cutCellRange;
57960
+ if (!selectCells || 0 === selectCells.length) return;
57961
+ for (let i = 0; i < selectCells.length; i++) for (let j = 0; j < selectCells[i].length; j++) selectCells[i][j] && table.changeCellValue(selectCells[i][j].col, selectCells[i][j].row, void 0);
57814
57962
  } catch (error) {}
57815
57963
  }
57816
57964
  checkClipboardChanged() {
@@ -59748,15 +59896,6 @@
59748
59896
  constructor(table, customCellStyle, customCellStyleArrangement) {
59749
59897
  this.table = table, this.customCellStyle = customCellStyle, this.customCellStyleArrangement = customCellStyleArrangement;
59750
59898
  }
59751
- clearCustomCellStyleArrangement() {
59752
- this.customCellStyleArrangement = [];
59753
- }
59754
- addCustomCellStyleArrangement(cellPosition, customStyleId) {
59755
- this.customCellStyleArrangement.push({
59756
- cellPosition: cellPosition,
59757
- customStyleId: customStyleId
59758
- });
59759
- }
59760
59899
  getCustomCellStyle(col, row) {
59761
59900
  const customStyleIds = this.getCustomCellStyleIds(col, row);
59762
59901
  if (customStyleIds.length) {
@@ -60062,7 +60201,7 @@
60062
60201
  }
60063
60202
  constructor(container, options = {}) {
60064
60203
  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;
60065
- if (super(), this.showFrozenIcon = !0, this.version = "1.22.11-alpha.5", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env$1.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");
60204
+ if (super(), this.showFrozenIcon = !0, this.version = "1.22.11-alpha.6", this.id = `VTable${Date.now()}`, this.isReleased = !1, this._chartEventMap = {}, this.throttleInvalidate = throttle2(this.render.bind(this), 200), "node" === Env$1.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");
60066
60205
  this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
60067
60206
  options: options,
60068
60207
  container: container
@@ -63873,16 +64012,15 @@
63873
64012
  step((generator = generator.apply(thisArg, _arguments || [])).next());
63874
64013
  });
63875
64014
  };
63876
- function listTableChangeCellValue(col, row, value, workOnEditableCell, triggerEvent, table, silentChangeCellValuesEvent) {
64015
+ function listTableChangeCellValue(col, row, value, workOnEditableCell, triggerEvent, table) {
63877
64016
  if (workOnEditableCell && table.isHasEditorDefine(col, row) || !1 === workOnEditableCell) {
63878
- const recordShowIndex = table.getRecordShowIndexByCell(col, row),
63879
- recordIndex = recordShowIndex >= 0 ? table.dataSource.getIndexKey(recordShowIndex) : void 0,
64017
+ const recordIndex = table.getRecordShowIndexByCell(col, row),
63880
64018
  {
63881
64019
  field: field
63882
64020
  } = table.internalProps.layoutMap.getBody(col, row),
63883
64021
  beforeChangeValue = table.getCellRawValue(col, row),
63884
64022
  oldValue = table.getCellOriginValue(col, row);
63885
- table.isHeader(col, row) ? table.internalProps.layoutMap.updateColumnTitle(col, row, value) : table.dataSource.changeFieldValue(value, recordShowIndex, field, col, row, table);
64023
+ table.isHeader(col, row) ? table.internalProps.layoutMap.updateColumnTitle(col, row, value) : table.dataSource.changeFieldValue(value, recordIndex, field, col, row, table);
63886
64024
  const range = table.getCellRange(col, row),
63887
64025
  aggregators = table.internalProps.layoutMap.getAggregatorsByCell(col, row);
63888
64026
  if (aggregators) {
@@ -63905,24 +64043,16 @@
63905
64043
  table.scenegraph.updateRowHeight(row, newHeight - oldHeight);
63906
64044
  }
63907
64045
  const changedValue = table.getCellOriginValue(col, row);
63908
- if (oldValue !== changedValue && triggerEvent) {
63909
- const changeValue = {
63910
- col: col,
63911
- row: row,
63912
- recordIndex: recordIndex,
63913
- field: field,
63914
- rawValue: beforeChangeValue,
63915
- currentValue: oldValue,
63916
- changedValue: changedValue
63917
- };
63918
- table.fireListeners(TABLE_EVENT_TYPE.CHANGE_CELL_VALUE, changeValue), silentChangeCellValuesEvent || table.fireListeners(TABLE_EVENT_TYPE.CHANGE_CELL_VALUES, {
63919
- values: [changeValue]
63920
- });
63921
- }
63922
- table.scenegraph.updateNextFrame();
64046
+ oldValue !== changedValue && triggerEvent && table.fireListeners(TABLE_EVENT_TYPE.CHANGE_CELL_VALUE, {
64047
+ col: col,
64048
+ row: row,
64049
+ rawValue: beforeChangeValue,
64050
+ currentValue: oldValue,
64051
+ changedValue: changedValue
64052
+ }), table.scenegraph.updateNextFrame();
63923
64053
  }
63924
64054
  }
63925
- function listTableChangeCellValues(startCol, startRow, values, workOnEditableCell, triggerEvent, table, silentChangeCellValuesEvent) {
64055
+ function listTableChangeCellValues(startCol, startRow, values, workOnEditableCell, triggerEvent, table) {
63926
64056
  var _a, _b;
63927
64057
  return __awaiter(this, void 0, void 0, function* () {
63928
64058
  const changedCellResults = [];
@@ -63944,7 +64074,6 @@
63944
64074
  oldRowValues.push(oldValue);
63945
64075
  }
63946
64076
  }
63947
- const resultChangeValues = [];
63948
64077
  for (let i = 0; i < values.length && !(startRow + i > table.rowCount - 1); i++) {
63949
64078
  changedCellResults[i] = [], pasteRowEnd = startRow + i;
63950
64079
  const rowValues = values[i];
@@ -63968,34 +64097,25 @@
63968
64097
  if (isCanChange) {
63969
64098
  changedCellResults[i][j] = !0;
63970
64099
  const value = rowValues[j],
63971
- recordShowIndex = table.getRecordShowIndexByCell(startCol + j, startRow + i),
63972
- recordIndex = recordShowIndex >= 0 ? table.dataSource.getIndexKey(recordShowIndex) : void 0,
64100
+ recordIndex = table.getRecordShowIndexByCell(startCol + j, startRow + i),
63973
64101
  {
63974
64102
  field: field
63975
64103
  } = table.internalProps.layoutMap.getBody(startCol + j, startRow + i),
63976
64104
  beforeChangeValue = beforeChangeValues[i][j],
63977
64105
  oldValue = oldValues[i][j];
63978
- table.isHeader(startCol + j, startRow + i) ? table.internalProps.layoutMap.updateColumnTitle(startCol + j, startRow + i, value) : table.dataSource.changeFieldValue(value, recordShowIndex, field, startCol + j, startRow + i, table);
64106
+ table.isHeader(startCol + j, startRow + i) ? table.internalProps.layoutMap.updateColumnTitle(startCol + j, startRow + i, value) : table.dataSource.changeFieldValue(value, recordIndex, field, startCol + j, startRow + i, table);
63979
64107
  const changedValue = table.getCellOriginValue(startCol + j, startRow + i);
63980
- if (oldValue !== changedValue && triggerEvent) {
63981
- const changeValue = {
63982
- col: startCol + j,
63983
- row: startRow + i,
63984
- recordIndex: recordIndex,
63985
- field: field,
63986
- rawValue: beforeChangeValue,
63987
- currentValue: oldValue,
63988
- changedValue: changedValue
63989
- };
63990
- table.fireListeners(TABLE_EVENT_TYPE.CHANGE_CELL_VALUE, changeValue), resultChangeValues.push(changeValue);
63991
- }
64108
+ oldValue !== changedValue && triggerEvent && table.fireListeners(TABLE_EVENT_TYPE.CHANGE_CELL_VALUE, {
64109
+ col: startCol + j,
64110
+ row: startRow + i,
64111
+ rawValue: beforeChangeValue,
64112
+ currentValue: oldValue,
64113
+ changedValue: changedValue
64114
+ });
63992
64115
  } else changedCellResults[i][j] = !1;
63993
64116
  }
63994
64117
  pasteColEnd = Math.max(pasteColEnd, thisRowPasteColEnd);
63995
64118
  }
63996
- silentChangeCellValuesEvent || table.fireListeners(TABLE_EVENT_TYPE.CHANGE_CELL_VALUES, {
63997
- values: resultChangeValues
63998
- });
63999
64119
  const startRange = table.getCellRange(startCol, startRow),
64000
64120
  range = table.getCellRange(pasteColEnd, pasteRowEnd),
64001
64121
  aggregators = table.internalProps.layoutMap.getAggregatorsByCellRange(startRange.start.col, startRange.start.row, range.end.col, range.end.row);
@@ -64029,58 +64149,6 @@
64029
64149
  return table.scenegraph.updateNextFrame(), changedCellResults;
64030
64150
  });
64031
64151
  }
64032
- function listTableChangeCellValuesByIds(ranges, value, workOnEditableCell, triggerEvent, table, silentChangeCellValuesEvent) {
64033
- var _a, _b;
64034
- return __awaiter(this, void 0, void 0, function* () {
64035
- const resultChangeValues = [],
64036
- processed = new Set(),
64037
- nextValue = null != value ? value : "";
64038
- for (let i = 0; i < (null !== (_a = null == ranges ? void 0 : ranges.length) && void 0 !== _a ? _a : 0); i++) {
64039
- const range = ranges[i],
64040
- startCol = Math.min(range.start.col, range.end.col),
64041
- endCol = Math.max(range.start.col, range.end.col),
64042
- startRow = Math.min(range.start.row, range.end.row),
64043
- endRow = Math.max(range.start.row, range.end.row);
64044
- if (startCol > endCol || startRow > endRow) continue;
64045
- const values = [],
64046
- oldValues = [];
64047
- for (let row = startRow; row <= endRow; row++) {
64048
- const rowValues = [],
64049
- rowOldValues = [];
64050
- for (let col = startCol; col <= endCol; col++) rowValues.push(nextValue), rowOldValues.push(table.getCellOriginValue(col, row));
64051
- values.push(rowValues), oldValues.push(rowOldValues);
64052
- }
64053
- const changedCellResults = yield listTableChangeCellValues(startCol, startRow, values, workOnEditableCell, triggerEvent, table, !0);
64054
- for (let r = 0; r < values.length; r++) for (let c = 0; c < values[r].length; c++) {
64055
- const col = startCol + c,
64056
- row = startRow + r,
64057
- key = `${col},${row}`;
64058
- if (processed.has(key)) continue;
64059
- if (processed.add(key), !triggerEvent || !(null === (_b = null == changedCellResults ? void 0 : changedCellResults[r]) || void 0 === _b ? void 0 : _b[c])) continue;
64060
- const oldValue = oldValues[r][c],
64061
- changedValue = table.getCellOriginValue(col, row);
64062
- if (oldValue === changedValue) continue;
64063
- const recordShowIndex = table.getRecordShowIndexByCell(col, row),
64064
- recordIndex = recordShowIndex >= 0 ? table.dataSource.getIndexKey(recordShowIndex) : void 0,
64065
- {
64066
- field: field
64067
- } = table.internalProps.layoutMap.getBody(col, row);
64068
- resultChangeValues.push({
64069
- col: col,
64070
- row: row,
64071
- recordIndex: recordIndex,
64072
- field: field,
64073
- rawValue: oldValue,
64074
- currentValue: oldValue,
64075
- changedValue: changedValue
64076
- });
64077
- }
64078
- }
64079
- !silentChangeCellValuesEvent && triggerEvent && table.fireListeners(TABLE_EVENT_TYPE.CHANGE_CELL_VALUES, {
64080
- values: resultChangeValues
64081
- });
64082
- });
64083
- }
64084
64152
  function getCellUpdateType(col, row, table, oldCellUpdateType) {
64085
64153
  if ("group" === oldCellUpdateType) return oldCellUpdateType;
64086
64154
  if ("sort" === oldCellUpdateType && !table.internalProps.groupBy) return oldCellUpdateType;
@@ -65244,165 +65312,43 @@
65244
65312
  }
65245
65313
  return isValid$2(editorDefine);
65246
65314
  }
65247
- changeCellValue(col, row, value, workOnEditableCell = !1, triggerEvent = !0, silentChangeCellValuesEvent) {
65248
- return listTableChangeCellValue(col, row, value, workOnEditableCell, triggerEvent, this, silentChangeCellValuesEvent);
65249
- }
65250
- changeCellValues(startCol, startRow, values, workOnEditableCell = !1, triggerEvent = !0, silentChangeCellValuesEvent) {
65251
- return listTableChangeCellValues(startCol, startRow, values, workOnEditableCell, triggerEvent, this, silentChangeCellValuesEvent);
65252
- }
65253
- changeCellValuesByIds(ranges, value, workOnEditableCell = !1, triggerEvent = !0, silentChangeCellValuesEvent) {
65254
- return listTableChangeCellValuesByIds(ranges, value, workOnEditableCell, triggerEvent, this, silentChangeCellValuesEvent);
65255
- }
65256
- changeSourceCellValue(recordIndex, field, value) {
65257
- const tableIndex = this.getTableIndexByRecordIndex(recordIndex),
65258
- cellAddr = this.getCellAddrByFieldRecord(field, recordIndex);
65259
- if (tableIndex < 0 || cellAddr.col < 0 || cellAddr.row < 0) return;
65260
- this.dataSource.changeFieldValue(value, tableIndex, field, cellAddr.col, cellAddr.row, this);
65261
- const beforeChangeValue = this.getCellRawValue(cellAddr.col, cellAddr.row),
65262
- oldValue = this.getCellOriginValue(cellAddr.col, cellAddr.row),
65263
- changedValue = this.getCellOriginValue(cellAddr.col, cellAddr.row);
65264
- if (oldValue !== changedValue) {
65265
- const changeValue = {
65266
- col: cellAddr.col,
65267
- row: cellAddr.row,
65268
- recordIndex: recordIndex,
65269
- field: field,
65270
- rawValue: beforeChangeValue,
65271
- currentValue: oldValue,
65272
- changedValue: changedValue
65273
- };
65274
- this.fireListeners(TABLE_EVENT_TYPE.CHANGE_CELL_VALUE, changeValue), this.fireListeners(TABLE_EVENT_TYPE.CHANGE_CELL_VALUES, {
65275
- values: [changeValue]
65276
- });
65277
- }
65278
- }
65279
- changeCellValueByRecord(recordIndex, field, value, options) {
65280
- var _a, _b, _c, _d, _e;
65281
- const triggerEvent = null === (_a = null == options ? void 0 : options.triggerEvent) || void 0 === _a || _a,
65282
- silentChangeCellValuesEvent = null == options ? void 0 : options.silentChangeCellValuesEvent,
65283
- autoRefresh = null === (_b = null == options ? void 0 : options.autoRefresh) || void 0 === _b || _b,
65284
- records = null === (_c = this.dataSource.dataSourceObj) || void 0 === _c ? void 0 : _c.records;
65285
- let record, oldValue;
65286
- if (!Array.isArray(records) || "string" != typeof field && "number" != typeof field || (record = Array.isArray(recordIndex) ? getValueFromDeepArray(records, recordIndex) : records[recordIndex], oldValue = null == record ? void 0 : record[field]), this.dataSource.changeFieldValueByRecordIndex(value, recordIndex, field, this), !triggerEvent) return;
65287
- const changedValue = !record || "string" != typeof field && "number" != typeof field ? value : null == record ? void 0 : record[field];
65288
- if (oldValue !== changedValue) {
65289
- const cellAddr = this.getCellAddrByFieldRecord(field, recordIndex),
65290
- changeValue = {
65291
- col: null !== (_d = null == cellAddr ? void 0 : cellAddr.col) && void 0 !== _d ? _d : -1,
65292
- row: null !== (_e = null == cellAddr ? void 0 : cellAddr.row) && void 0 !== _e ? _e : -1,
65293
- recordIndex: recordIndex,
65294
- field: field,
65295
- rawValue: oldValue,
65296
- currentValue: oldValue,
65297
- changedValue: changedValue
65298
- };
65299
- this.fireListeners(TABLE_EVENT_TYPE.CHANGE_CELL_VALUE, changeValue), silentChangeCellValuesEvent || this.fireListeners(TABLE_EVENT_TYPE.CHANGE_CELL_VALUES, {
65300
- values: [changeValue]
65301
- });
65302
- }
65303
- autoRefresh && this.refreshAfterSourceChange();
65304
- }
65305
- changeCellValueBySource(recordIndex, field, value, triggerEvent = !0, silentChangeCellValuesEvent) {
65306
- return this.changeCellValueByRecord(recordIndex, field, value, {
65307
- triggerEvent: triggerEvent,
65308
- silentChangeCellValuesEvent: silentChangeCellValuesEvent,
65309
- autoRefresh: !0
65310
- });
65311
- }
65312
- changeCellValuesByRecords(changeValues, options) {
65313
- var _a, _b, _c, _d, _e, _f, _g;
65314
- const triggerEvent = null === (_a = null == options ? void 0 : options.triggerEvent) || void 0 === _a || _a,
65315
- silentChangeCellValuesEvent = null == options ? void 0 : options.silentChangeCellValuesEvent,
65316
- autoRefresh = null === (_b = null == options ? void 0 : options.autoRefresh) || void 0 === _b || _b,
65317
- resultChangeValues = [];
65318
- for (let i = 0; i < changeValues.length; i++) {
65319
- const {
65320
- recordIndex: recordIndex,
65321
- field: field,
65322
- value: value
65323
- } = changeValues[i],
65324
- records = null === (_c = this.dataSource.dataSourceObj) || void 0 === _c ? void 0 : _c.records;
65325
- let record, oldValue;
65326
- if (!Array.isArray(records) || "string" != typeof field && "number" != typeof field || (record = Array.isArray(recordIndex) ? getValueFromDeepArray(records, recordIndex) : records[recordIndex], oldValue = null == record ? void 0 : record[field]), this.dataSource.changeFieldValueByRecordIndex(value, recordIndex, field, this), triggerEvent) {
65327
- const changedValue = !record || "string" != typeof field && "number" != typeof field ? value : null == record ? void 0 : record[field];
65328
- if (oldValue !== changedValue) {
65329
- const changeValue = {
65330
- col: null !== (_e = null === (_d = this.getCellAddrByFieldRecord(field, recordIndex)) || void 0 === _d ? void 0 : _d.col) && void 0 !== _e ? _e : -1,
65331
- row: null !== (_g = null === (_f = this.getCellAddrByFieldRecord(field, recordIndex)) || void 0 === _f ? void 0 : _f.row) && void 0 !== _g ? _g : -1,
65332
- recordIndex: recordIndex,
65333
- field: field,
65334
- rawValue: oldValue,
65335
- currentValue: oldValue,
65336
- changedValue: changedValue
65337
- };
65338
- this.fireListeners(TABLE_EVENT_TYPE.CHANGE_CELL_VALUE, changeValue), resultChangeValues.push(changeValue);
65339
- }
65340
- }
65341
- }
65342
- !silentChangeCellValuesEvent && resultChangeValues.length && triggerEvent && this.fireListeners(TABLE_EVENT_TYPE.CHANGE_CELL_VALUES, {
65343
- values: resultChangeValues
65344
- }), autoRefresh && this.refreshAfterSourceChange();
65345
- }
65346
- changeCellValuesBySource(changeValues, triggerEvent = !0, silentChangeCellValuesEvent) {
65347
- return this.changeCellValuesByRecords(changeValues, {
65348
- triggerEvent: triggerEvent,
65349
- silentChangeCellValuesEvent: silentChangeCellValuesEvent,
65350
- autoRefresh: !0
65351
- });
65315
+ changeCellValue(col, row, value, workOnEditableCell = !1, triggerEvent = !0) {
65316
+ return listTableChangeCellValue(col, row, value, workOnEditableCell, triggerEvent, this);
65352
65317
  }
65353
- refreshAfterSourceChange(options) {
65354
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
65355
- const reapplyFilter = null === (_a = null == options ? void 0 : options.reapplyFilter) || void 0 === _a || _a,
65356
- reapplySort = null === (_b = null == options ? void 0 : options.reapplySort) || void 0 === _b || _b,
65357
- clearRowHeightCache = null === (_c = null == options ? void 0 : options.clearRowHeightCache) || void 0 === _c || _c;
65358
- this.scenegraph.clearCells(), this.sortState && reapplySort && (null === (_e = (_d = this.dataSource).clearSortedIndexMap) || void 0 === _e || _e.call(_d), null === (_g = null === (_f = this.dataSource.sortedIndexMap) || void 0 === _f ? void 0 : _f.clear) || void 0 === _g || _g.call(_f)), reapplyFilter ? this.sortState && reapplySort ? (this.dataSource.updateFilterRulesForSorted(null === (_h = this.dataSource.dataConfig) || void 0 === _h ? void 0 : _h.filterRules), sortRecords(this)) : this.dataSource.updateFilterRules(null === (_j = this.dataSource.dataConfig) || void 0 === _j ? void 0 : _j.filterRules) : this.sortState && reapplySort && sortRecords(this);
65359
- const traverseColumns = columns => {
65360
- var _a, _b, _c, _d;
65361
- for (let i = 0; i < (null !== (_a = null == columns ? void 0 : columns.length) && void 0 !== _a ? _a : 0); i++) {
65362
- const column = columns[i],
65363
- aggregators = null == column ? void 0 : column.vtable_aggregator;
65364
- if (aggregators) if (Array.isArray(aggregators)) for (let j = 0; j < aggregators.length; j++) null === (_c = null === (_b = aggregators[j]) || void 0 === _b ? void 0 : _b.recalculate) || void 0 === _c || _c.call(_b);else null === (_d = null == aggregators ? void 0 : aggregators.recalculate) || void 0 === _d || _d.call(aggregators);
65365
- (null == column ? void 0 : column.columns) && traverseColumns(column.columns);
65366
- }
65367
- };
65368
- traverseColumns(this.internalProps.columns), this.refreshRowColCount(), this.internalProps.layoutMap.clearCellRangeMap(), this.internalProps.useOneRowHeightFillAll = !1, this.stateManager.initCheckedState(this.records), this.scenegraph.createSceneGraph(!clearRowHeightCache), null === (_k = this.internalProps.emptyTip) || void 0 === _k || _k.resetVisible(), this.resize();
65318
+ changeCellValues(startCol, startRow, values, workOnEditableCell = !1, triggerEvent = !0) {
65319
+ return listTableChangeCellValues(startCol, startRow, values, workOnEditableCell, triggerEvent, this);
65369
65320
  }
65370
- addRecord(record, recordIndex, triggerEvent = !0) {
65321
+ addRecord(record, recordIndex) {
65371
65322
  var _a;
65372
65323
  const success = listTableAddRecord(record, recordIndex, this);
65373
- adjustHeightResizedRowMapWithAddRecordIndex(this, recordIndex, [record]), null === (_a = this.internalProps.emptyTip) || void 0 === _a || _a.resetVisible(), triggerEvent && success && this.fireListeners(TABLE_EVENT_TYPE.ADD_RECORD, {
65324
+ adjustHeightResizedRowMapWithAddRecordIndex(this, recordIndex, [record]), null === (_a = this.internalProps.emptyTip) || void 0 === _a || _a.resetVisible(), success && this.fireListeners(TABLE_EVENT_TYPE.ADD_RECORD, {
65374
65325
  records: [record],
65375
65326
  recordIndex: recordIndex,
65376
65327
  recordCount: 1
65377
65328
  });
65378
65329
  }
65379
- addRecords(records, recordIndex, triggerEvent = !0) {
65330
+ addRecords(records, recordIndex) {
65380
65331
  var _a;
65381
65332
  const success = listTableAddRecords(records, recordIndex, this);
65382
- "number" == typeof recordIndex && adjustHeightResizedRowMapWithAddRecordIndex(this, recordIndex, records), null === (_a = this.internalProps.emptyTip) || void 0 === _a || _a.resetVisible(), triggerEvent && success && this.fireListeners(TABLE_EVENT_TYPE.ADD_RECORD, {
65333
+ "number" == typeof recordIndex && adjustHeightResizedRowMapWithAddRecordIndex(this, recordIndex, records), null === (_a = this.internalProps.emptyTip) || void 0 === _a || _a.resetVisible(), success && this.fireListeners(TABLE_EVENT_TYPE.ADD_RECORD, {
65383
65334
  records: records,
65384
65335
  recordIndex: recordIndex,
65385
65336
  recordCount: records.length
65386
65337
  });
65387
65338
  }
65388
- deleteRecords(recordIndexs, triggerEvent = !0) {
65339
+ deleteRecords(recordIndexs) {
65389
65340
  var _a;
65390
- const deletedRecords = [];
65391
- (null == recordIndexs ? void 0 : recordIndexs.length) > 0 && recordIndexs.forEach(index => {
65392
- let record = null;
65393
- record = "number" == typeof index ? this.dataSource.get(index) : [], deletedRecords.push(record);
65394
- }), listTableDeleteRecords(recordIndexs, this), adjustHeightResizedRowMapWithDeleteRecordIndex(this, recordIndexs), null === (_a = this.internalProps.emptyTip) || void 0 === _a || _a.resetVisible();
65341
+ listTableDeleteRecords(recordIndexs, this), adjustHeightResizedRowMapWithDeleteRecordIndex(this, recordIndexs), null === (_a = this.internalProps.emptyTip) || void 0 === _a || _a.resetVisible();
65395
65342
  const rowIndexs = [];
65396
65343
  for (let i = 0; i < recordIndexs.length; i++) rowIndexs.push(this.getBodyRowIndexByRecordIndex(recordIndexs[i]) + this.columnHeaderLevelCount);
65397
- triggerEvent && this.fireListeners(TABLE_EVENT_TYPE.DELETE_RECORD, {
65344
+ this.fireListeners(TABLE_EVENT_TYPE.DELETE_RECORD, {
65398
65345
  recordIndexs: recordIndexs,
65399
- records: deletedRecords,
65400
65346
  rowIndexs: rowIndexs,
65401
65347
  deletedCount: (Array.isArray(recordIndexs[0]), recordIndexs.length)
65402
65348
  });
65403
65349
  }
65404
- updateRecords(records, recordIndexs, triggerEvent = !0) {
65405
- listTableUpdateRecords(records, recordIndexs, this), triggerEvent && this.fireListeners(TABLE_EVENT_TYPE.UPDATE_RECORD, {
65350
+ updateRecords(records, recordIndexs) {
65351
+ listTableUpdateRecords(records, recordIndexs, this), this.fireListeners(TABLE_EVENT_TYPE.UPDATE_RECORD, {
65406
65352
  records: records,
65407
65353
  recordIndexs: recordIndexs,
65408
65354
  updateCount: records.length
@@ -69622,8 +69568,8 @@
69622
69568
  }(ExcelEditCellKeyboardResponse || (ExcelEditCellKeyboardResponse = {}));
69623
69569
  class ExcelEditCellKeyboardPlugin {
69624
69570
  constructor(pluginOptions) {
69625
- var _a, _b, _c;
69626
- this.id = "excel-edit-cell-keyboard", this.name = "Excel Edit Cell Keyboard", this.runTime = [TABLE_EVENT_TYPE.INITIALIZED], this.id = null !== (_a = null == pluginOptions ? void 0 : pluginOptions.id) && void 0 !== _a ? _a : this.id, this.pluginOptions = pluginOptions, this.responseKeyboard = null !== (_b = null == pluginOptions ? void 0 : pluginOptions.responseKeyboard) && void 0 !== _b ? _b : [ExcelEditCellKeyboardResponse.ENTER, ExcelEditCellKeyboardResponse.TAB, ExcelEditCellKeyboardResponse.ARROW_LEFT, ExcelEditCellKeyboardResponse.ARROW_RIGHT, ExcelEditCellKeyboardResponse.ARROW_DOWN, ExcelEditCellKeyboardResponse.ARROW_UP, ExcelEditCellKeyboardResponse.DELETE, ExcelEditCellKeyboardResponse.BACKSPACE], this.aggregateDeleteToOneChangeCellValuesEvent = null !== (_c = null == pluginOptions ? void 0 : pluginOptions.aggregateDeleteToOneChangeCellValuesEvent) && void 0 !== _c && _c, this.bindEvent();
69571
+ var _a, _b;
69572
+ this.id = "excel-edit-cell-keyboard", this.name = "Excel Edit Cell Keyboard", this.runTime = [TABLE_EVENT_TYPE.INITIALIZED], this.id = null !== (_a = null == pluginOptions ? void 0 : pluginOptions.id) && void 0 !== _a ? _a : this.id, this.pluginOptions = pluginOptions, this.responseKeyboard = null !== (_b = null == pluginOptions ? void 0 : pluginOptions.responseKeyboard) && void 0 !== _b ? _b : [ExcelEditCellKeyboardResponse.ENTER, ExcelEditCellKeyboardResponse.TAB, ExcelEditCellKeyboardResponse.ARROW_LEFT, ExcelEditCellKeyboardResponse.ARROW_RIGHT, ExcelEditCellKeyboardResponse.ARROW_DOWN, ExcelEditCellKeyboardResponse.ARROW_UP, ExcelEditCellKeyboardResponse.DELETE, ExcelEditCellKeyboardResponse.BACKSPACE], this.bindEvent();
69627
69573
  }
69628
69574
  run(...args) {
69629
69575
  const table = args[2];
@@ -69654,7 +69600,7 @@
69654
69600
  (null == selectCells ? void 0 : selectCells.length) > 0 && (document.activeElement === this.table.getElement() || Object.values(this.table.editorManager.cacheLastSelectedCellEditor || {}).some(editor => {
69655
69601
  var _a;
69656
69602
  return (null === (_a = editor.getInputElement) || void 0 === _a ? void 0 : _a.call(editor)) === document.activeElement;
69657
- })) && (deleteSelectRange(selectCells, this.table, null === (_c = null === (_b = this.pluginOptions) || void 0 === _b ? void 0 : _b.deleteWorkOnEditableCell) || void 0 === _c || _c, this.aggregateDeleteToOneChangeCellValuesEvent), event.stopPropagation(), event.preventDefault());
69603
+ })) && (deleteSelectRange(selectCells, this.table, null === (_c = null === (_b = this.pluginOptions) || void 0 === _b ? void 0 : _b.deleteWorkOnEditableCell) || void 0 === _c || _c), event.stopPropagation(), event.preventDefault());
69658
69604
  }
69659
69605
  } else this.table.editorManager.completeEdit(), this.table.getElement().focus(), eventKey === ExcelEditCellKeyboardResponse.ENTER ? this.table.selectCell(col, row + 1) : eventKey === ExcelEditCellKeyboardResponse.TAB && this.table.selectCell(col + 1, row), event.stopPropagation(), event.preventDefault();
69660
69606
  }
@@ -69676,11 +69622,8 @@
69676
69622
  document.removeEventListener("keydown", this.handleKeyDown, !0);
69677
69623
  }
69678
69624
  }
69679
- function deleteSelectRange(selectCells, tableInstance, workOnEditableCell = !1, aggregateToOneChangeCellValuesEvent = !1) {
69680
- if (aggregateToOneChangeCellValuesEvent) {
69681
- const ranges = tableInstance.stateManager.select.ranges;
69682
- (null == ranges ? void 0 : ranges.length) && tableInstance.changeCellValuesByIds(ranges, "", workOnEditableCell, !0);
69683
- } else for (let i = 0; i < selectCells.length; i++) for (let j = 0; j < selectCells[i].length; j++) tableInstance.changeCellValue(selectCells[i][j].col, selectCells[i][j].row, "", workOnEditableCell);
69625
+ function deleteSelectRange(selectCells, tableInstance, workOnEditableCell = !1) {
69626
+ for (let i = 0; i < selectCells.length; i++) for (let j = 0; j < selectCells[i].length; j++) tableInstance.changeCellValue(selectCells[i][j].col, selectCells[i][j].row, "", workOnEditableCell);
69684
69627
  }
69685
69628
 
69686
69629
  const MENU_CONTAINER_CLASS = "vtable-context-menu-container";
@@ -91243,7 +91186,7 @@
91243
91186
  importStyle();
91244
91187
  }
91245
91188
 
91246
- const version = "1.22.11-alpha.5";
91189
+ const version = "1.22.11-alpha.6";
91247
91190
  importStyles();
91248
91191
 
91249
91192
  exports.TYPES = index;