k-react-vtable 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/tag/tag.js +1 -2
- package/cjs/components/vrender-components/checkbox.js +2 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/react-vtable.js +320 -170
- package/dist/react-vtable.min.js +2 -2
- package/es/components/tag/tag.js +1 -2
- package/es/components/vrender-components/checkbox.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +2 -2
package/dist/react-vtable.js
CHANGED
|
@@ -31325,7 +31325,7 @@
|
|
|
31325
31325
|
width: width,
|
|
31326
31326
|
height: height
|
|
31327
31327
|
} = item.attribute;
|
|
31328
|
-
contentWidth < startX + width && (startX = 0, startY += height + spaceRow, pages += 1), index > 0 && item.setAttributes({
|
|
31328
|
+
contentWidth < startX + width && index > 0 && (startX = 0, startY += height + spaceRow, pages += 1), index > 0 && item.setAttributes({
|
|
31329
31329
|
x: startX,
|
|
31330
31330
|
y: startY
|
|
31331
31331
|
}), startX += spaceCol + width;
|
|
@@ -31336,9 +31336,10 @@
|
|
|
31336
31336
|
if (compWidth = this._itemMaxWidth * maxCol + (maxCol - 1) * spaceCol, compHeight = maxHeight, contentWidth = compWidth, comp = this._createPager(compStyle), this._pagerComponent = comp, this._innerView.add(comp), contentHeight = maxHeight - comp.AABBBounds.height() - pagerSpace - renderStartY, contentHeight <= 0) return this._innerView.removeChild(comp), !1;
|
|
31337
31337
|
itemsContainer.getChildren().forEach((item, index) => {
|
|
31338
31338
|
const {
|
|
31339
|
+
width: width,
|
|
31339
31340
|
height: height
|
|
31340
31341
|
} = item.attribute;
|
|
31341
|
-
contentHeight < startY + height && (startY = 0, startX += this._itemMaxWidth + spaceCol, pages += 1), index > 0 && item.setAttributes({
|
|
31342
|
+
contentHeight < startY + height && index > 0 && (startY = 0, startX += this._itemMaxWidth + spaceCol, pages += 1), index > 0 && item.setAttributes({
|
|
31342
31343
|
x: startX,
|
|
31343
31344
|
y: startY
|
|
31344
31345
|
}), startY += spaceRow + height;
|
|
@@ -37628,16 +37629,15 @@
|
|
|
37628
37629
|
const sourceIds = this.records.splice(sourceI, 1);
|
|
37629
37630
|
sourceIds.unshift(targetI, 0), Array.prototype.splice.apply(this.records, sourceIds);
|
|
37630
37631
|
}
|
|
37631
|
-
} else
|
|
37632
|
-
sourceI = this.currentPagerIndexedData[sourceIndex], targetI = this.currentPagerIndexedData[targetIndex];
|
|
37633
|
-
const records = this.records.splice(sourceI, 1);
|
|
37634
|
-
records.unshift(targetI, 0), Array.prototype.splice.apply(this.records, records);
|
|
37635
|
-
}
|
|
37632
|
+
} else this.exchangeRecordData(sourceIndex, targetIndex);
|
|
37636
37633
|
this.restoreTreeHierarchyState(), this.updatePagerData();
|
|
37637
|
-
} else
|
|
37638
|
-
|
|
37639
|
-
|
|
37640
|
-
|
|
37634
|
+
} else this.exchangeRecordData(sourceIndex, targetIndex);
|
|
37635
|
+
}
|
|
37636
|
+
exchangeRecordData(sourceIndex, targetIndex) {
|
|
37637
|
+
const sourceI = this.getRecordIndexPaths(sourceIndex),
|
|
37638
|
+
targetI = this.getRecordIndexPaths(targetIndex),
|
|
37639
|
+
records = this.records.splice(sourceI, 1);
|
|
37640
|
+
records.unshift(targetI, 0), Array.prototype.splice.apply(this.records, records);
|
|
37641
37641
|
}
|
|
37642
37642
|
restoreTreeHierarchyState() {
|
|
37643
37643
|
var _a, _b;
|
|
@@ -42246,12 +42246,19 @@
|
|
|
42246
42246
|
if ("number" == typeof customRowHeight) return customRowHeight;
|
|
42247
42247
|
if ("auto" !== customRowHeight) return table.getDefaultRowHeight(row);
|
|
42248
42248
|
}
|
|
42249
|
-
if (table.isPivotChart() && row >= table.columnHeaderLevelCount && row < table.rowCount - table.bottomFrozenRowCount)
|
|
42250
|
-
|
|
42251
|
-
|
|
42252
|
-
|
|
42253
|
-
|
|
42254
|
-
|
|
42249
|
+
if (table.isPivotChart() && row >= table.columnHeaderLevelCount && row < table.rowCount - table.bottomFrozenRowCount) {
|
|
42250
|
+
let ifNeedComputeRowHeight = table.internalProps.layoutMap.indicatorsAsCol,
|
|
42251
|
+
isHeatmap = !1;
|
|
42252
|
+
if (!table.internalProps.layoutMap.indicatorsAsCol) {
|
|
42253
|
+
"heatmap" === table.internalProps.layoutMap.getChartSpec(table.rowHeaderLevelCount, row).type && (isHeatmap = !0, ifNeedComputeRowHeight = !0);
|
|
42254
|
+
}
|
|
42255
|
+
if (ifNeedComputeRowHeight) {
|
|
42256
|
+
const optimunHeight = table.internalProps.layoutMap.getOptimunHeightForChart(row, isHeatmap);
|
|
42257
|
+
if (optimunHeight > 0) return optimunHeight;
|
|
42258
|
+
} else {
|
|
42259
|
+
const defaultHeight = table.getDefaultRowHeight(row);
|
|
42260
|
+
if (isNumber$6(defaultHeight)) return defaultHeight;
|
|
42261
|
+
}
|
|
42255
42262
|
}
|
|
42256
42263
|
for (let col = startCol; col <= endCol; col++) {
|
|
42257
42264
|
const customHeight = computeCustomRenderHeight(col, row, table);
|
|
@@ -44303,7 +44310,10 @@
|
|
|
44303
44310
|
const formatResult = table.options.specFormat(chart.attribute.spec, chartInstance, chart);
|
|
44304
44311
|
if (formatResult.needFormatSpec && formatResult.spec) {
|
|
44305
44312
|
const spec = formatResult.spec;
|
|
44306
|
-
chartInstance.updateSpecSync(spec
|
|
44313
|
+
chartInstance.updateSpecSync(spec, !1, {
|
|
44314
|
+
reuse: !1,
|
|
44315
|
+
morph: !1
|
|
44316
|
+
}), updateSpec = null === (_a = formatResult.updateSpec) || void 0 === _a || _a;
|
|
44307
44317
|
}
|
|
44308
44318
|
}
|
|
44309
44319
|
if (!updateSpec) if (null == axes || axes.forEach((axis, index) => {
|
|
@@ -44459,7 +44469,10 @@
|
|
|
44459
44469
|
const formatResult = table.options.specFormat(chart.attribute.spec, activeChartInstance, chart);
|
|
44460
44470
|
if (formatResult.needFormatSpec && formatResult.spec) {
|
|
44461
44471
|
const spec = formatResult.spec;
|
|
44462
|
-
activeChartInstance.updateSpecSync(spec
|
|
44472
|
+
activeChartInstance.updateSpecSync(spec, !1, {
|
|
44473
|
+
reuse: !1,
|
|
44474
|
+
morph: !1
|
|
44475
|
+
});
|
|
44463
44476
|
}
|
|
44464
44477
|
}
|
|
44465
44478
|
const viewBox = chart.getViewBox();
|
|
@@ -45274,6 +45287,15 @@
|
|
|
45274
45287
|
this.type = "chart", this.numberType = CHART_NUMBER_TYPE;
|
|
45275
45288
|
}
|
|
45276
45289
|
contains(chart, point, params) {
|
|
45290
|
+
var _a;
|
|
45291
|
+
if (chart.attribute.detectPickChartItem) {
|
|
45292
|
+
const vChart = chart.activeChartInstance;
|
|
45293
|
+
if (!vChart) return !1;
|
|
45294
|
+
const vchartStage = vChart.getStage();
|
|
45295
|
+
null === (_a = vchartStage.dirtyBounds) || void 0 === _a || _a.clear();
|
|
45296
|
+
const pick = vchartStage.pick(point.x, point.y);
|
|
45297
|
+
return (null !== pick.graphic || "root" !== pick.group.name) && pick;
|
|
45298
|
+
}
|
|
45277
45299
|
return !!chart.AABBBounds.containsPoint(point);
|
|
45278
45300
|
}
|
|
45279
45301
|
};
|
|
@@ -45355,7 +45377,9 @@
|
|
|
45355
45377
|
if (endRow - startRow > 5e3 && (prepareDeltaRow = Math.ceil((endRow - startRow) / 5e3)), table.isPivotChart() && col >= table.rowHeaderLevelCount && col < table.colCount - table.rightFrozenColCount) {
|
|
45356
45378
|
if (table.internalProps.layoutMap.indicatorsAsCol) return table.defaultColWidth;
|
|
45357
45379
|
{
|
|
45358
|
-
|
|
45380
|
+
let isHeatmap = !1;
|
|
45381
|
+
"heatmap" === table.internalProps.layoutMap.getChartSpec(col, table.columnHeaderLevelCount).type && (isHeatmap = !0);
|
|
45382
|
+
const optimunWidth = table.internalProps.layoutMap.getOptimunWidthForChart(col, isHeatmap);
|
|
45359
45383
|
if (optimunWidth > 0) return optimunWidth;
|
|
45360
45384
|
}
|
|
45361
45385
|
}
|
|
@@ -46891,32 +46915,38 @@
|
|
|
46891
46915
|
|
|
46892
46916
|
function updateAllSelectComponent(scene) {
|
|
46893
46917
|
const size0 = scene.customSelectedRangeComponents.size;
|
|
46894
|
-
let index0 = 0
|
|
46918
|
+
let index0 = 0,
|
|
46919
|
+
firstItem0 = null;
|
|
46895
46920
|
scene.customSelectedRangeComponents.forEach((selectComp, key) => {
|
|
46896
|
-
updateComponent(selectComp, key, scene, {
|
|
46921
|
+
0 === index0 && (firstItem0 = selectComp), updateComponent(selectComp, key, scene, {
|
|
46897
46922
|
size: size0,
|
|
46898
|
-
index: ++index0
|
|
46923
|
+
index: ++index0,
|
|
46924
|
+
firstItem: firstItem0
|
|
46899
46925
|
});
|
|
46900
46926
|
});
|
|
46901
46927
|
const size1 = scene.selectingRangeComponents.size;
|
|
46902
|
-
let index1 = 0
|
|
46928
|
+
let index1 = 0,
|
|
46929
|
+
firstItem1 = null;
|
|
46903
46930
|
scene.selectingRangeComponents.forEach((selectComp, key) => {
|
|
46904
|
-
updateComponent(selectComp, key, scene, {
|
|
46931
|
+
0 === index1 && (firstItem1 = selectComp), updateComponent(selectComp, key, scene, {
|
|
46905
46932
|
size: size1,
|
|
46906
|
-
index: ++index1
|
|
46933
|
+
index: ++index1,
|
|
46934
|
+
firstItem: firstItem1
|
|
46907
46935
|
});
|
|
46908
46936
|
});
|
|
46909
46937
|
const size2 = scene.selectedRangeComponents.size;
|
|
46910
|
-
let index2 = 0
|
|
46938
|
+
let index2 = 0,
|
|
46939
|
+
firstItem2 = null;
|
|
46911
46940
|
scene.selectedRangeComponents.forEach((selectComp, key) => {
|
|
46912
|
-
updateComponent(selectComp, key, scene, {
|
|
46941
|
+
0 === index2 && (firstItem2 = selectComp), updateComponent(selectComp, key, scene, {
|
|
46913
46942
|
size: size2,
|
|
46914
|
-
index: ++index2
|
|
46943
|
+
index: ++index2,
|
|
46944
|
+
firstItem: firstItem2
|
|
46915
46945
|
});
|
|
46916
46946
|
});
|
|
46917
46947
|
}
|
|
46918
46948
|
function updateComponent(selectComp, key, scene, other) {
|
|
46919
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
46949
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
46920
46950
|
const table = scene.table,
|
|
46921
46951
|
[startColStr, startRowStr, endColStr, endRowStr] = key.split("-"),
|
|
46922
46952
|
startCol = parseInt(startColStr, 10),
|
|
@@ -46956,9 +46986,9 @@
|
|
|
46956
46986
|
width: colsWidth,
|
|
46957
46987
|
height: rowsHeight,
|
|
46958
46988
|
visible: !0,
|
|
46959
|
-
cornerRadius: other ? 1 === other.size ? 2 : 1 === other.index ? [2, 0, 0, 2] : other.index === other.size ? [0, 2, 2, 0] : 0 : 0
|
|
46989
|
+
cornerRadius: other ? 1 === other.size ? 2 : 1 === other.index ? "rightFrozen" === selectComp.role ? [0, 2, 2, 0] : [2, 0, 0, 2] : other.index === other.size ? "rightFrozen" === (null === (_a = other.firstItem) || void 0 === _a ? void 0 : _a.role) ? [2, 0, 0, 2] : [0, 2, 2, 0] : 0 : 0
|
|
46960
46990
|
}), selectComp.fillhandle) {
|
|
46961
|
-
const fillHandle = null === (
|
|
46991
|
+
const fillHandle = null === (_b = scene.table.options.excelOptions) || void 0 === _b ? void 0 : _b.fillHandle;
|
|
46962
46992
|
let lastCellBound,
|
|
46963
46993
|
handlerX,
|
|
46964
46994
|
visible = !0;
|
|
@@ -46967,7 +46997,7 @@
|
|
|
46967
46997
|
table: scene.table
|
|
46968
46998
|
})), endCol < table.colCount - 1 ? (lastCellBound = scene.highPerformanceGetCell(endCol, endRow).globalAABBBounds, handlerX = lastCellBound.x2 - scene.tableGroup.attribute.x - 3) : 0 === startCol ? (lastCellBound = scene.highPerformanceGetCell(0, endRow).globalAABBBounds, handlerX = lastCellBound.x1 - scene.tableGroup.attribute.x) : (lastCellBound = scene.highPerformanceGetCell(startCol - 1, endRow).globalAABBBounds, handlerX = lastCellBound.x2 - scene.tableGroup.attribute.x - 3), lastCellBound = endRow < table.rowCount - 1 ? scene.highPerformanceGetCell(endCol, endRow).globalAABBBounds : scene.highPerformanceGetCell(endCol, startRow - 1).globalAABBBounds;
|
|
46969
46999
|
const handlerY = lastCellBound.y2 - scene.tableGroup.attribute.y - 3;
|
|
46970
|
-
null === (
|
|
47000
|
+
null === (_c = selectComp.fillhandle) || void 0 === _c || _c.setAttributes({
|
|
46971
47001
|
x: handlerX,
|
|
46972
47002
|
y: handlerY,
|
|
46973
47003
|
width: 6,
|
|
@@ -47000,7 +47030,7 @@
|
|
|
47000
47030
|
selectComp.rect.setAttributes({
|
|
47001
47031
|
x: selectComp.rect.attribute.x + (table.getFrozenColsWidth() - selectComp.rect.attribute.x),
|
|
47002
47032
|
width: width > 0 ? width : 0
|
|
47003
|
-
}), null === (
|
|
47033
|
+
}), null === (_d = selectComp.fillhandle) || void 0 === _d || _d.setAttributes({
|
|
47004
47034
|
visible: width > 0
|
|
47005
47035
|
});
|
|
47006
47036
|
}
|
|
@@ -47009,7 +47039,7 @@
|
|
|
47009
47039
|
selectComp.rect.setAttributes({
|
|
47010
47040
|
x: selectComp.rect.attribute.x,
|
|
47011
47041
|
width: width > 0 ? width : 0
|
|
47012
|
-
}), null === (
|
|
47042
|
+
}), null === (_e = selectComp.fillhandle) || void 0 === _e || _e.setAttributes({
|
|
47013
47043
|
visible: width - colsWidth > 0
|
|
47014
47044
|
});
|
|
47015
47045
|
}
|
|
@@ -47018,7 +47048,7 @@
|
|
|
47018
47048
|
selectComp.rect.setAttributes({
|
|
47019
47049
|
y: selectComp.rect.attribute.y + (scene.colHeaderGroup.attribute.height - selectComp.rect.attribute.y),
|
|
47020
47050
|
height: height > 0 ? height : 0
|
|
47021
|
-
}), null === (
|
|
47051
|
+
}), null === (_f = selectComp.fillhandle) || void 0 === _f || _f.setAttributes({
|
|
47022
47052
|
visible: height > 0
|
|
47023
47053
|
});
|
|
47024
47054
|
}
|
|
@@ -47027,20 +47057,20 @@
|
|
|
47027
47057
|
selectComp.rect.setAttributes({
|
|
47028
47058
|
y: selectComp.rect.attribute.y,
|
|
47029
47059
|
height: height > 0 ? height : 0
|
|
47030
|
-
}), null === (
|
|
47060
|
+
}), null === (_g = selectComp.fillhandle) || void 0 === _g || _g.setAttributes({
|
|
47031
47061
|
visible: height - rowsHeight > 0
|
|
47032
47062
|
});
|
|
47033
47063
|
}
|
|
47034
47064
|
} else scene.tableGroup.insertAfter(selectComp.rect, "body" === selectComp.role ? scene.bodyGroup : "columnHeader" === selectComp.role ? scene.colHeaderGroup : "rowHeader" === selectComp.role ? scene.rowHeaderGroup : "cornerHeader" === selectComp.role ? scene.cornerHeaderGroup : "rightTopCorner" === selectComp.role ? scene.rightTopCornerGroup : "rightFrozen" === selectComp.role ? scene.rightFrozenGroup : "leftBottomCorner" === selectComp.role ? scene.leftBottomCornerGroup : "bottomFrozen" === selectComp.role ? scene.bottomFrozenGroup : scene.rightBottomCornerGroup);
|
|
47035
47065
|
let diffSize = 0;
|
|
47036
|
-
"number" == typeof selectComp.rect.attribute.lineWidth && (diffSize = Math.ceil(selectComp.rect.attribute.lineWidth / 2)), endCol === table.colCount - 1 && (Array.isArray(selectComp.rect.attribute.lineWidth) && (diffSize = Math.ceil((null !== (
|
|
47066
|
+
"number" == typeof selectComp.rect.attribute.lineWidth && (diffSize = Math.ceil(selectComp.rect.attribute.lineWidth / 2)), endCol === table.colCount - 1 && (Array.isArray(selectComp.rect.attribute.lineWidth) && (diffSize = Math.ceil((null !== (_h = selectComp.rect.attribute.lineWidth[1]) && void 0 !== _h ? _h : 0) / 2)), selectComp.rect.setAttributes({
|
|
47037
47067
|
width: selectComp.rect.attribute.width - diffSize
|
|
47038
|
-
})), 0 === startCol && (Array.isArray(selectComp.rect.attribute.lineWidth) && (diffSize = Math.ceil((null !== (
|
|
47068
|
+
})), 0 === startCol && (Array.isArray(selectComp.rect.attribute.lineWidth) && (diffSize = Math.ceil((null !== (_j = selectComp.rect.attribute.lineWidth[3]) && void 0 !== _j ? _j : 0) / 2)), selectComp.rect.setAttributes({
|
|
47039
47069
|
x: selectComp.rect.attribute.x + diffSize,
|
|
47040
47070
|
width: selectComp.rect.attribute.width - diffSize
|
|
47041
|
-
})), endRow === table.rowCount - 1 && (Array.isArray(selectComp.rect.attribute.lineWidth) && (diffSize = Math.ceil((null !== (
|
|
47071
|
+
})), endRow === table.rowCount - 1 && (Array.isArray(selectComp.rect.attribute.lineWidth) && (diffSize = Math.ceil((null !== (_k = selectComp.rect.attribute.lineWidth[2]) && void 0 !== _k ? _k : 0) / 2)), selectComp.rect.setAttributes({
|
|
47042
47072
|
height: selectComp.rect.attribute.height - diffSize
|
|
47043
|
-
})), 0 === startRow && (Array.isArray(selectComp.rect.attribute.lineWidth) && (diffSize = Math.ceil((null !== (
|
|
47073
|
+
})), 0 === startRow && (Array.isArray(selectComp.rect.attribute.lineWidth) && (diffSize = Math.ceil((null !== (_l = selectComp.rect.attribute.lineWidth[0]) && void 0 !== _l ? _l : 0) / 2)), selectComp.rect.setAttributes({
|
|
47044
47074
|
y: selectComp.rect.attribute.y + diffSize,
|
|
47045
47075
|
height: selectComp.rect.attribute.height - diffSize
|
|
47046
47076
|
}));
|
|
@@ -49338,7 +49368,7 @@
|
|
|
49338
49368
|
return col < this.table.rowHeaderLevelCount ? this.table.getColsWidth(0, col - 1) : col < this.table.colCount - this.table.rightFrozenColCount ? this.table.getColsWidth(this.table.rowHeaderLevelCount, col - 1) : col < this.table.colCount ? this.table.getColsWidth(this.table.colCount - this.table.bottomFrozenRowCount, col - 1) : 0;
|
|
49339
49369
|
}
|
|
49340
49370
|
getCellGroupY(row) {
|
|
49341
|
-
return row < this.table.frozenRowCount ? this.table.getRowsHeight(0, row - 1) : row < this.table.rowCount - this.table.bottomFrozenRowCount ? this.table.getRowsHeight(this.table.
|
|
49371
|
+
return row < this.table.frozenRowCount ? this.table.getRowsHeight(0, row - 1) : row < this.table.rowCount - this.table.bottomFrozenRowCount ? this.table.getRowsHeight(this.table.columnHeaderLevelCount, row - 1) : row < this.table.rowCount ? this.table.getRowsHeight(this.table.rowCount - this.table.bottomFrozenRowCount, row - 1) : 0;
|
|
49342
49372
|
}
|
|
49343
49373
|
getCellGroupX(col) {
|
|
49344
49374
|
return col < this.table.rowHeaderLevelCount ? this.table.getColsWidth(0, col - 1) : col < this.table.colCount - this.table.rightFrozenColCount ? this.table.getColsWidth(this.table.rowHeaderLevelCount, col - 1) : col < this.table.colCount ? this.table.getColsWidth(this.table.colCount - this.table.rightFrozenColCount, col - 1) : 0;
|
|
@@ -49508,7 +49538,7 @@
|
|
|
49508
49538
|
return table._getLayoutCellId(col, row) === table._getLayoutCellId(range1Col, range1Row);
|
|
49509
49539
|
}
|
|
49510
49540
|
|
|
49511
|
-
function updateSelectPosition(state, col, row,
|
|
49541
|
+
function updateSelectPosition(state, col, row, enableShiftSelectMode, enableCtrlSelectMode, isSelectAll, makeSelectCellVisible = !0, skipBodyMerge = !1) {
|
|
49512
49542
|
var _a, _b;
|
|
49513
49543
|
const {
|
|
49514
49544
|
table: table,
|
|
@@ -49518,10 +49548,7 @@
|
|
|
49518
49548
|
scenegraph: scenegraph
|
|
49519
49549
|
} = table,
|
|
49520
49550
|
{
|
|
49521
|
-
|
|
49522
|
-
disableHeader: disableHeader,
|
|
49523
|
-
cellPos: cellPos,
|
|
49524
|
-
disableCtrlMultiSelect: disableCtrlMultiSelect
|
|
49551
|
+
cellPos: cellPos
|
|
49525
49552
|
} = state.select;
|
|
49526
49553
|
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) {
|
|
49527
49554
|
const currentRange = state.select.ranges[state.select.ranges.length - 1];
|
|
@@ -49611,8 +49638,8 @@
|
|
|
49611
49638
|
}
|
|
49612
49639
|
} else {
|
|
49613
49640
|
const currentRange = state.select.ranges[state.select.ranges.length - 1];
|
|
49614
|
-
if (
|
|
49615
|
-
if (
|
|
49641
|
+
if (enableShiftSelectMode && currentRange) {
|
|
49642
|
+
if ("cell" !== state.select.headerSelectMode && table.isColumnHeader(col, row)) {
|
|
49616
49643
|
const startCol = Math.min(currentRange.start.col, currentRange.end.col, col),
|
|
49617
49644
|
endCol = Math.max(currentRange.start.col, currentRange.end.col, col),
|
|
49618
49645
|
startRow = Math.min(currentRange.start.row, currentRange.end.row, row),
|
|
@@ -49670,10 +49697,10 @@
|
|
|
49670
49697
|
col: col,
|
|
49671
49698
|
row: row
|
|
49672
49699
|
};
|
|
49673
|
-
scenegraph.deleteLastSelectedRangeComponents(), scenegraph.updateCellSelectBorder(currentRange);
|
|
49700
|
+
enableShiftSelectMode || (currentRange.end = currentRange.start), scenegraph.deleteLastSelectedRangeComponents(), scenegraph.updateCellSelectBorder(currentRange);
|
|
49674
49701
|
} else {
|
|
49675
49702
|
let extendSelectRange = !0;
|
|
49676
|
-
if (-1 === cellPos.col || -1 === cellPos.row ||
|
|
49703
|
+
if (-1 === cellPos.col || -1 === cellPos.row || enableCtrlSelectMode || (state.select.ranges = [], scenegraph.deleteAllSelectBorder()), "cell" !== state.select.headerSelectMode && table.isColumnHeader(col, row)) {
|
|
49677
49704
|
const cellRange = table.getCellRange(col, row);
|
|
49678
49705
|
"body" === state.select.headerSelectMode ? state.select.ranges.push({
|
|
49679
49706
|
start: {
|
|
@@ -50818,7 +50845,7 @@
|
|
|
50818
50845
|
});
|
|
50819
50846
|
}
|
|
50820
50847
|
setSelectState() {
|
|
50821
|
-
var _a, _b, _c, _d, _e;
|
|
50848
|
+
var _a, _b, _c, _d, _e, _f;
|
|
50822
50849
|
const {
|
|
50823
50850
|
headerSelectMode: headerSelectMode,
|
|
50824
50851
|
disableSelect: disableSelect,
|
|
@@ -50833,7 +50860,7 @@
|
|
|
50833
50860
|
highlightInRange: !1
|
|
50834
50861
|
}, this.table.options.select),
|
|
50835
50862
|
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";
|
|
50836
|
-
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);
|
|
50863
|
+
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);
|
|
50837
50864
|
}
|
|
50838
50865
|
isSelected(col, row) {
|
|
50839
50866
|
let seled = !1;
|
|
@@ -50886,11 +50913,11 @@
|
|
|
50886
50913
|
updateHoverPos(col, row) {
|
|
50887
50914
|
updateHoverPosition(this, col, row);
|
|
50888
50915
|
}
|
|
50889
|
-
updateSelectPos(col, row,
|
|
50916
|
+
updateSelectPos(col, row, enableShiftSelectMode = !1, enableCtrlSelectMode = !1, isSelectAll = !1, makeSelectCellVisible = !0, skipBodyMerge = !1) {
|
|
50890
50917
|
-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);
|
|
50891
50918
|
const oldCellPosCol = this.select.cellPos.col,
|
|
50892
50919
|
oldCellPosRow = this.select.cellPos.row;
|
|
50893
|
-
updateSelectPosition(this, col, row,
|
|
50920
|
+
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, {
|
|
50894
50921
|
ranges: this.select.ranges,
|
|
50895
50922
|
col: col,
|
|
50896
50923
|
row: row
|
|
@@ -52354,7 +52381,7 @@
|
|
|
52354
52381
|
handler.on(table.getElement(), "blur", e => {
|
|
52355
52382
|
eventManager.dealTableHover();
|
|
52356
52383
|
}), handler.on(table.getElement(), "keydown", e => {
|
|
52357
|
-
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;
|
|
52384
|
+
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;
|
|
52358
52385
|
const beforeKeydownEvent = {
|
|
52359
52386
|
keyCode: null !== (_a = e.keyCode) && void 0 !== _a ? _a : e.which,
|
|
52360
52387
|
code: e.code,
|
|
@@ -52364,41 +52391,44 @@
|
|
|
52364
52391
|
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;
|
|
52365
52392
|
let targetCol, targetRow;
|
|
52366
52393
|
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;
|
|
52367
|
-
|
|
52368
|
-
|
|
52369
|
-
|
|
52370
|
-
|
|
52394
|
+
const enableShiftSelectMode = null === (_h = null === (_g = table.options.keyboardOptions) || void 0 === _g ? void 0 : _g.shiftMultiSelect) || void 0 === _h || _h;
|
|
52395
|
+
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)));
|
|
52396
|
+
} else if ("Escape" === e.key) null === (_p = table.editorManager) || void 0 === _p || _p.cancelEdit(), table.getElement().focus();else if ("Enter" === e.key) {
|
|
52397
|
+
if (null === (_q = table.editorManager) || void 0 === _q ? void 0 : _q.editingEditor) {
|
|
52398
|
+
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)) {
|
|
52371
52399
|
const targetCol = stateManager.select.cellPos.col,
|
|
52372
52400
|
targetRow = Math.min(table.rowCount - 1, Math.max(0, stateManager.select.cellPos.row + 1));
|
|
52373
52401
|
if (isCellDisableSelect(table, targetCol, targetRow)) return;
|
|
52374
|
-
table.
|
|
52402
|
+
const enableShiftSelectMode = null === (_u = null === (_t = table.options.keyboardOptions) || void 0 === _t ? void 0 : _t.shiftMultiSelect) || void 0 === _u || _u;
|
|
52403
|
+
table.selectCell(targetCol, targetRow, e.shiftKey && enableShiftSelectMode);
|
|
52375
52404
|
}
|
|
52376
52405
|
return;
|
|
52377
52406
|
}
|
|
52378
|
-
if (!0 === (null === (
|
|
52407
|
+
if (!0 === (null === (_v = table.options.keyboardOptions) || void 0 === _v ? void 0 : _v.moveFocusCellOnEnter)) {
|
|
52379
52408
|
const targetCol = stateManager.select.cellPos.col,
|
|
52380
52409
|
targetRow = Math.min(table.rowCount - 1, Math.max(0, stateManager.select.cellPos.row + 1));
|
|
52381
52410
|
if (isCellDisableSelect(table, targetCol, targetRow)) return;
|
|
52382
|
-
table.
|
|
52383
|
-
|
|
52411
|
+
const enableShiftSelectMode = null === (_x = null === (_w = table.options.keyboardOptions) || void 0 === _w ? void 0 : _w.shiftMultiSelect) || void 0 === _x || _x;
|
|
52412
|
+
table.selectCell(targetCol, targetRow, e.shiftKey && enableShiftSelectMode);
|
|
52413
|
+
} 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)) {
|
|
52384
52414
|
const startCol = table.stateManager.select.ranges[0].start.col,
|
|
52385
52415
|
startRow = table.stateManager.select.ranges[0].start.row,
|
|
52386
52416
|
endCol = table.stateManager.select.ranges[0].end.col,
|
|
52387
52417
|
endRow = table.stateManager.select.ranges[0].end.row;
|
|
52388
|
-
startCol === endCol && startRow === endRow && table.getEditor(startCol, startRow) && (null === (
|
|
52418
|
+
startCol === endCol && startRow === endRow && table.getEditor(startCol, startRow) && (null === (_2 = table.editorManager) || void 0 === _2 || _2.startEditCell(startCol, startRow));
|
|
52389
52419
|
}
|
|
52390
52420
|
} else if ("Tab" === e.key) {
|
|
52391
|
-
if ((null === (
|
|
52421
|
+
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) {
|
|
52392
52422
|
if (stateManager.select.cellPos.col === table.colCount - 1 && stateManager.select.cellPos.row === table.rowCount - 1) return;
|
|
52393
52423
|
let targetCol, targetRow;
|
|
52394
52424
|
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;
|
|
52395
|
-
table.selectCell(targetCol, targetRow), (null === (
|
|
52425
|
+
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)));
|
|
52396
52426
|
}
|
|
52397
52427
|
} else if (!e.ctrlKey && !e.metaKey) {
|
|
52398
52428
|
const editCellTrigger = table.options.editCellTrigger;
|
|
52399
|
-
if (("keydown" === editCellTrigger || Array.isArray(editCellTrigger) && editCellTrigger.includes("keydown")) && !(null === (
|
|
52429
|
+
if (("keydown" === editCellTrigger || Array.isArray(editCellTrigger) && editCellTrigger.includes("keydown")) && !(null === (_8 = table.editorManager) || void 0 === _8 ? void 0 : _8.editingEditor)) {
|
|
52400
52430
|
const allowedKeys = /^[a-zA-Z0-9+\-*\/%=.,\s]$/;
|
|
52401
|
-
e.key.match(allowedKeys) && (table.editorManager && (table.editorManager.beginTriggerEditCellMode = "keydown"), null === (
|
|
52431
|
+
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, ""));
|
|
52402
52432
|
}
|
|
52403
52433
|
}
|
|
52404
52434
|
handleKeydownListener(e);
|
|
@@ -52715,8 +52745,9 @@
|
|
|
52715
52745
|
});
|
|
52716
52746
|
}
|
|
52717
52747
|
function bindGroupCheckboxTreeChange(table) {
|
|
52718
|
-
|
|
52748
|
+
table.on("checkbox_state_change", args => {
|
|
52719
52749
|
var _a;
|
|
52750
|
+
if (!0 !== table.internalProps.enableCheckboxCascade) return;
|
|
52720
52751
|
const {
|
|
52721
52752
|
col: col,
|
|
52722
52753
|
row: row,
|
|
@@ -52824,7 +52855,8 @@
|
|
|
52824
52855
|
});
|
|
52825
52856
|
}
|
|
52826
52857
|
function bindHeaderCheckboxChange(table) {
|
|
52827
|
-
|
|
52858
|
+
table.on("checkbox_state_change", args => {
|
|
52859
|
+
if (!0 !== table.internalProps.enableHeaderCheckboxCascade) return;
|
|
52828
52860
|
const {
|
|
52829
52861
|
col: col,
|
|
52830
52862
|
row: row,
|
|
@@ -52982,7 +53014,7 @@
|
|
|
52982
53014
|
}
|
|
52983
53015
|
dealMenuHover(eventArgsSet) {}
|
|
52984
53016
|
dealTableSelect(eventArgsSet, isSelectMoving) {
|
|
52985
|
-
var _a, _b, _c, _d, _e;
|
|
53017
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
52986
53018
|
if (!eventArgsSet) return this.table.stateManager.updateSelectPos(-1, -1), !1;
|
|
52987
53019
|
const {
|
|
52988
53020
|
eventArgs: eventArgs
|
|
@@ -52997,12 +53029,15 @@
|
|
|
52997
53029
|
}
|
|
52998
53030
|
return !1;
|
|
52999
53031
|
}
|
|
53000
|
-
|
|
53032
|
+
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;
|
|
53033
|
+
const shiftMultiSelect = null === (_e = null === (_d = this.table.keyboardOptions) || void 0 === _d ? void 0 : _d.shiftMultiSelect) || void 0 === _e || _e,
|
|
53034
|
+
ctrlMultiSelect = null === (_g = null === (_f = this.table.keyboardOptions) || void 0 === _f ? void 0 : _f.ctrlMultiSelect) || void 0 === _g || _g;
|
|
53035
|
+
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;
|
|
53001
53036
|
}
|
|
53002
53037
|
return !1;
|
|
53003
53038
|
}
|
|
53004
53039
|
dealFillSelect(eventArgsSet, isSelectMoving) {
|
|
53005
|
-
var _a, _b;
|
|
53040
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
53006
53041
|
const {
|
|
53007
53042
|
eventArgs: eventArgs
|
|
53008
53043
|
} = eventArgsSet;
|
|
@@ -53010,8 +53045,14 @@
|
|
|
53010
53045
|
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()) {
|
|
53011
53046
|
let updateRow, updateCol;
|
|
53012
53047
|
const currentRange = this.table.stateManager.select.ranges[this.table.stateManager.select.ranges.length - 1];
|
|
53013
|
-
isSelectMoving && (isValid$5(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))
|
|
53014
|
-
|
|
53048
|
+
isSelectMoving && (isValid$5(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));
|
|
53049
|
+
const ctrlMultiSelect = null === (_d = null === (_c = this.table.keyboardOptions) || void 0 === _c ? void 0 : _c.ctrlMultiSelect) || void 0 === _d || _d;
|
|
53050
|
+
this.table.stateManager.updateSelectPos(isSelectMoving ? updateCol : currentRange.end.col, isSelectMoving ? updateRow : currentRange.end.row, !0, (eventArgs.event.ctrlKey || eventArgs.event.metaKey) && ctrlMultiSelect, !1, !isSelectMoving);
|
|
53051
|
+
} else {
|
|
53052
|
+
const shiftMultiSelect = null === (_f = null === (_e = this.table.keyboardOptions) || void 0 === _e ? void 0 : _e.shiftMultiSelect) || void 0 === _f || _f,
|
|
53053
|
+
ctrlMultiSelect = null === (_h = null === (_g = this.table.keyboardOptions) || void 0 === _g ? void 0 : _g.ctrlMultiSelect) || void 0 === _h || _h;
|
|
53054
|
+
this.table.stateManager.updateSelectPos(eventArgs.col, eventArgs.row, eventArgs.event.shiftKey && shiftMultiSelect, (eventArgs.event.ctrlKey || eventArgs.event.metaKey) && ctrlMultiSelect, !1, !isSelectMoving);
|
|
53055
|
+
}
|
|
53015
53056
|
return !0;
|
|
53016
53057
|
}
|
|
53017
53058
|
return !1;
|
|
@@ -53154,7 +53195,8 @@
|
|
|
53154
53195
|
return !1;
|
|
53155
53196
|
}
|
|
53156
53197
|
release() {
|
|
53157
|
-
|
|
53198
|
+
var _a;
|
|
53199
|
+
null === (_a = this.gesture) || void 0 === _a || _a.release(), this.globalEventListeners.forEach(item => {
|
|
53158
53200
|
"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);
|
|
53159
53201
|
}), this.globalEventListeners = [];
|
|
53160
53202
|
}
|
|
@@ -53243,7 +53285,7 @@
|
|
|
53243
53285
|
cellIndex === cells.length - 1 && (cell = cell.trim()), rowValues.push(cell);
|
|
53244
53286
|
});
|
|
53245
53287
|
});
|
|
53246
|
-
const changedCellResults = yield table.changeCellValues(col, row, values);
|
|
53288
|
+
const changedCellResults = yield table.changeCellValues(col, row, values, !0);
|
|
53247
53289
|
table.hasListeners(TABLE_EVENT_TYPE.PASTED_DATA) && table.fireListeners(TABLE_EVENT_TYPE.PASTED_DATA, {
|
|
53248
53290
|
col: col,
|
|
53249
53291
|
row: row,
|
|
@@ -55674,7 +55716,7 @@
|
|
|
55674
55716
|
}
|
|
55675
55717
|
|
|
55676
55718
|
function getAxisConfigInPivotChart(col, row, layout) {
|
|
55677
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
55719
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
55678
55720
|
if (layout._table.isPivotChart()) if (layout.indicatorsAsCol) {
|
|
55679
55721
|
if (layout.hasTwoIndicatorAxes && row === layout.columnHeaderLevelCount - 1 && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) {
|
|
55680
55722
|
const axisRange = getRange("top", col, row + 1, col, layout.columnHeaderLevelCount - 1, col, row, 1, layout);
|
|
@@ -55713,7 +55755,10 @@
|
|
|
55713
55755
|
const info = layout.getIndicatorInfo(key);
|
|
55714
55756
|
info && (indicatorInfo = info);
|
|
55715
55757
|
});
|
|
55716
|
-
const axisRange = getRange("bottom", col, row - 1, col, row, col, row, 0, layout)
|
|
55758
|
+
const axisRange = getRange("bottom", col, row - 1, col, row, col, row, 0, layout),
|
|
55759
|
+
{
|
|
55760
|
+
chartType: chartType
|
|
55761
|
+
} = getAxisOption(col, row - 1, "bottom", layout);
|
|
55717
55762
|
if (!axisRange) return;
|
|
55718
55763
|
const chartCellStyle = layout._table._getCellStyle(col, row - 1),
|
|
55719
55764
|
padding = getQuadProps(getProp("padding", chartCellStyle, col, row - 1, layout._table)),
|
|
@@ -55726,12 +55771,21 @@
|
|
|
55726
55771
|
targetRange: targetRange,
|
|
55727
55772
|
theme: theme
|
|
55728
55773
|
} = axisRange;
|
|
55729
|
-
|
|
55774
|
+
isNumber$6(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$6(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1));
|
|
55775
|
+
let domain = [];
|
|
55776
|
+
if ("heatmap" === chartType) {
|
|
55777
|
+
const colDimensionKey = layout.getDimensionKeyInChartSpec(col, layout.rowCount - layout.bottomFrozenRowCount - 1, "xField"),
|
|
55778
|
+
data = null !== (_a = layout.dataset.collectedValues[colDimensionKey]) && void 0 !== _a ? _a : [],
|
|
55779
|
+
colPath = layout.getColKeysPath(col, row);
|
|
55780
|
+
domain = null !== (_b = null == data ? void 0 : data[null != colPath ? colPath : ""]) && void 0 !== _b ? _b : [];
|
|
55781
|
+
}
|
|
55782
|
+
return merge$2({
|
|
55730
55783
|
title: {
|
|
55731
55784
|
visible: !0,
|
|
55732
55785
|
text: null == indicatorInfo ? void 0 : indicatorInfo.title
|
|
55733
55786
|
},
|
|
55734
|
-
range: range
|
|
55787
|
+
range: range,
|
|
55788
|
+
domain: "linear" === (null == axisOption ? void 0 : axisOption.type) ? void 0 : Array.from(domain)
|
|
55735
55789
|
}, axisOption, {
|
|
55736
55790
|
orient: "bottom",
|
|
55737
55791
|
type: (null == axisOption ? void 0 : axisOption.type) || "linear",
|
|
@@ -55749,9 +55803,9 @@
|
|
|
55749
55803
|
if (col === layout.rowHeaderLevelCount - 1 && row >= layout.columnHeaderLevelCount && row < layout.rowCount - layout.bottomFrozenRowCount) {
|
|
55750
55804
|
let rowDimensionKey = layout.getDimensionKeyInChartSpec(layout.rowHeaderLevelCount, row);
|
|
55751
55805
|
isArray$9(rowDimensionKey) && (rowDimensionKey = rowDimensionKey[0]);
|
|
55752
|
-
const data = null !== (
|
|
55806
|
+
const data = null !== (_c = layout.dataset.collectedValues[rowDimensionKey]) && void 0 !== _c ? _c : [],
|
|
55753
55807
|
rowPath = layout.getRowKeysPath(col, row),
|
|
55754
|
-
domain = null !== (
|
|
55808
|
+
domain = null !== (_d = data[null != rowPath ? rowPath : ""]) && void 0 !== _d ? _d : [],
|
|
55755
55809
|
{
|
|
55756
55810
|
axisOption: axisOption,
|
|
55757
55811
|
theme: theme,
|
|
@@ -55769,9 +55823,9 @@
|
|
|
55769
55823
|
}
|
|
55770
55824
|
}, axisOption, {
|
|
55771
55825
|
orient: "left",
|
|
55772
|
-
type: null !== (
|
|
55826
|
+
type: null !== (_e = null == axisOption ? void 0 : axisOption.type) && void 0 !== _e ? _e : "band",
|
|
55773
55827
|
__vtableChartTheme: theme,
|
|
55774
|
-
inverse: transformInverse(axisOption, "horizontal" === (null !== (
|
|
55828
|
+
inverse: transformInverse(axisOption, "horizontal" === (null !== (_f = null == spec ? void 0 : spec.direction) && void 0 !== _f ? _f : "scatter" === chartType ? "vertical" : "horizontal")),
|
|
55775
55829
|
__vtablePadding: padding
|
|
55776
55830
|
});
|
|
55777
55831
|
}
|
|
@@ -55783,7 +55837,10 @@
|
|
|
55783
55837
|
const info = layout.getIndicatorInfo(key);
|
|
55784
55838
|
info && (indicatorInfo = info);
|
|
55785
55839
|
});
|
|
55786
|
-
const axisRange = getRange("left", col + 1, row, col, row, col, row, 0, layout)
|
|
55840
|
+
const axisRange = getRange("left", col + 1, row, col, row, col, row, 0, layout),
|
|
55841
|
+
{
|
|
55842
|
+
chartType: chartType
|
|
55843
|
+
} = getAxisOption(col + 1, row, "left", layout);
|
|
55787
55844
|
if (!axisRange) return;
|
|
55788
55845
|
const chartCellStyle = layout._table._getCellStyle(col + 1, row),
|
|
55789
55846
|
padding = getQuadProps(getProp("padding", chartCellStyle, col + 1, row, layout._table)),
|
|
@@ -55796,13 +55853,22 @@
|
|
|
55796
55853
|
targetRange: targetRange,
|
|
55797
55854
|
theme: theme
|
|
55798
55855
|
} = axisRange;
|
|
55799
|
-
|
|
55856
|
+
isNumber$6(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$6(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1));
|
|
55857
|
+
let domain = [];
|
|
55858
|
+
if ("heatmap" === chartType) {
|
|
55859
|
+
const rowDimensionKey = layout.getDimensionKeyInChartSpec(layout.rowHeaderLevelCount, row, "yField"),
|
|
55860
|
+
data = null !== (_g = layout.dataset.collectedValues[rowDimensionKey]) && void 0 !== _g ? _g : [],
|
|
55861
|
+
rowPath = layout.getRowKeysPath(col, row);
|
|
55862
|
+
domain = null !== (_h = null == data ? void 0 : data[null != rowPath ? rowPath : ""]) && void 0 !== _h ? _h : [];
|
|
55863
|
+
}
|
|
55864
|
+
return merge$2({
|
|
55800
55865
|
title: {
|
|
55801
55866
|
visible: !0,
|
|
55802
55867
|
text: null == indicatorInfo ? void 0 : indicatorInfo.title,
|
|
55803
55868
|
autoRotate: !0
|
|
55804
55869
|
},
|
|
55805
|
-
range: range
|
|
55870
|
+
range: range,
|
|
55871
|
+
domain: "linear" === (null == axisOption ? void 0 : axisOption.type) ? void 0 : Array.from(domain)
|
|
55806
55872
|
}, axisOption, {
|
|
55807
55873
|
orient: "left",
|
|
55808
55874
|
type: (null == axisOption ? void 0 : axisOption.type) || "linear",
|
|
@@ -55818,7 +55884,10 @@
|
|
|
55818
55884
|
});
|
|
55819
55885
|
}
|
|
55820
55886
|
if (col === layout.colCount - layout.rightFrozenColCount && row >= layout.columnHeaderLevelCount && row < layout.rowCount - layout.bottomFrozenRowCount) {
|
|
55821
|
-
const axisRange = getRange("right", col - 1, row, layout.rowHeaderLevelCount - 1, row, col, row, 1, layout)
|
|
55887
|
+
const axisRange = getRange("right", col - 1, row, layout.rowHeaderLevelCount - 1, row, col, row, 1, layout),
|
|
55888
|
+
{
|
|
55889
|
+
chartType: chartType
|
|
55890
|
+
} = getAxisOption(col - 1, row, "right", layout);
|
|
55822
55891
|
if (!axisRange) return;
|
|
55823
55892
|
const chartCellStyle = layout._table._getCellStyle(col - 1, row),
|
|
55824
55893
|
padding = getQuadProps(getProp("padding", chartCellStyle, col - 1, row, layout._table)),
|
|
@@ -55831,11 +55900,20 @@
|
|
|
55831
55900
|
targetRange: targetRange,
|
|
55832
55901
|
theme: theme
|
|
55833
55902
|
} = axisRange;
|
|
55834
|
-
|
|
55903
|
+
isNumber$6(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min, range.min > 0 && (axisOption.zero = !1)), isNumber$6(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max, range.max < 0 && (axisOption.zero = !1));
|
|
55904
|
+
let domain = [];
|
|
55905
|
+
if ("heatmap" === chartType) {
|
|
55906
|
+
const rowDimensionKey = layout.getDimensionKeyInChartSpec(layout.colCount - layout.rightFrozenColCount - 1, row, "yField"),
|
|
55907
|
+
data = null !== (_j = layout.dataset.collectedValues[rowDimensionKey]) && void 0 !== _j ? _j : [],
|
|
55908
|
+
rowPath = layout.getRowKeysPath(col, row);
|
|
55909
|
+
domain = null !== (_k = null == data ? void 0 : data[null != rowPath ? rowPath : ""]) && void 0 !== _k ? _k : [];
|
|
55910
|
+
}
|
|
55911
|
+
return merge$2({
|
|
55835
55912
|
range: range,
|
|
55836
55913
|
title: {
|
|
55837
55914
|
autoRotate: !0
|
|
55838
|
-
}
|
|
55915
|
+
},
|
|
55916
|
+
domain: "linear" === (null == axisOption ? void 0 : axisOption.type) ? void 0 : Array.from(domain)
|
|
55839
55917
|
}, axisOption, {
|
|
55840
55918
|
orient: "right",
|
|
55841
55919
|
type: (null == axisOption ? void 0 : axisOption.type) || "linear",
|
|
@@ -55853,9 +55931,9 @@
|
|
|
55853
55931
|
if (row === layout.rowCount - layout.bottomFrozenRowCount && col >= layout.rowHeaderLevelCount && col < layout.colCount - layout.rightFrozenColCount) {
|
|
55854
55932
|
let columnDimensionKey = layout.getDimensionKeyInChartSpec(col, layout.columnHeaderLevelCount);
|
|
55855
55933
|
isArray$9(columnDimensionKey) && (columnDimensionKey = columnDimensionKey[0]);
|
|
55856
|
-
const data = null !== (
|
|
55934
|
+
const data = null !== (_l = layout.dataset.collectedValues[columnDimensionKey]) && void 0 !== _l ? _l : [],
|
|
55857
55935
|
colPath = layout.getColKeysPath(col, row),
|
|
55858
|
-
domain = null !== (
|
|
55936
|
+
domain = null !== (_m = null == data ? void 0 : data[null != colPath ? colPath : ""]) && void 0 !== _m ? _m : [],
|
|
55859
55937
|
{
|
|
55860
55938
|
axisOption: axisOption,
|
|
55861
55939
|
isPercent: isPercent,
|
|
@@ -55870,7 +55948,7 @@
|
|
|
55870
55948
|
range: "linear" === (null == axisOption ? void 0 : axisOption.type) ? domain : void 0
|
|
55871
55949
|
}, axisOption, {
|
|
55872
55950
|
orient: "bottom",
|
|
55873
|
-
type: null !== (
|
|
55951
|
+
type: null !== (_o = null == axisOption ? void 0 : axisOption.type) && void 0 !== _o ? _o : "band",
|
|
55874
55952
|
__vtableChartTheme: theme,
|
|
55875
55953
|
__vtablePadding: padding
|
|
55876
55954
|
});
|
|
@@ -55997,20 +56075,44 @@
|
|
|
55997
56075
|
Direction.vertical = "vertical", Direction.horizontal = "horizontal";
|
|
55998
56076
|
}(Direction || (Direction = {}));
|
|
55999
56077
|
function hasLinearAxis(spec, tableAxesConfig, isHorizontal, isThisXAxis) {
|
|
56000
|
-
if (!isArray$9(spec.axes)
|
|
56001
|
-
for (let i = 0; i < spec.axes.length; i++) {
|
|
56078
|
+
if (!(isArray$9(spec.axes) && 0 !== spec.axes.length || isArray$9(tableAxesConfig) && 0 !== tableAxesConfig.length)) return isHorizontal && isThisXAxis || !isHorizontal && !isThisXAxis;
|
|
56079
|
+
if (isArray$9(spec.axes) && spec.axes.length > 0) for (let i = 0; i < spec.axes.length; i++) {
|
|
56002
56080
|
const axisSpec = spec.axes[i];
|
|
56003
|
-
if (!isHorizontal && isThisXAxis && "bottom" === axisSpec.orient
|
|
56004
|
-
|
|
56005
|
-
|
|
56006
|
-
|
|
56081
|
+
if (!isHorizontal && isThisXAxis && "bottom" === axisSpec.orient) {
|
|
56082
|
+
if ("heatmap" === spec.type) return "linear" === axisSpec.type;
|
|
56083
|
+
if ("linear" === axisSpec.type) return !0;
|
|
56084
|
+
}
|
|
56085
|
+
if (isHorizontal && isThisXAxis && "bottom" === axisSpec.orient) {
|
|
56086
|
+
if ("heatmap" === spec.type) return "linear" === axisSpec.type;
|
|
56087
|
+
if ("linear" !== axisSpec.type) return !0;
|
|
56088
|
+
}
|
|
56089
|
+
if (!isHorizontal && !isThisXAxis && "left" === axisSpec.orient) {
|
|
56090
|
+
if ("heatmap" === spec.type) return "linear" === axisSpec.type;
|
|
56091
|
+
if ("linear" !== axisSpec.type) return !0;
|
|
56092
|
+
}
|
|
56093
|
+
if (isHorizontal && !isThisXAxis && "left" === axisSpec.orient) {
|
|
56094
|
+
if ("heatmap" === spec.type) return "linear" === axisSpec.type;
|
|
56095
|
+
if ("linear" === axisSpec.type) return !0;
|
|
56096
|
+
}
|
|
56007
56097
|
}
|
|
56008
56098
|
if (isArray$9(tableAxesConfig) && tableAxesConfig.length > 0) for (let i = 0; i < tableAxesConfig.length; i++) {
|
|
56009
56099
|
const axisSpec = tableAxesConfig[i];
|
|
56010
|
-
if (!isHorizontal && isThisXAxis && "bottom" === axisSpec.orient
|
|
56011
|
-
|
|
56012
|
-
|
|
56013
|
-
|
|
56100
|
+
if (!isHorizontal && isThisXAxis && "bottom" === axisSpec.orient) {
|
|
56101
|
+
if ("heatmap" === spec.type) return "linear" === axisSpec.type;
|
|
56102
|
+
if ("linear" === axisSpec.type) return !0;
|
|
56103
|
+
}
|
|
56104
|
+
if (isHorizontal && isThisXAxis && "bottom" === axisSpec.orient) {
|
|
56105
|
+
if ("heatmap" === spec.type) return "linear" === axisSpec.type;
|
|
56106
|
+
if ("linear" !== axisSpec.type) return !0;
|
|
56107
|
+
}
|
|
56108
|
+
if (!isHorizontal && !isThisXAxis && "left" === axisSpec.orient) {
|
|
56109
|
+
if ("heatmap" === spec.type) return "linear" === axisSpec.type;
|
|
56110
|
+
if ("linear" !== axisSpec.type) return !0;
|
|
56111
|
+
}
|
|
56112
|
+
if (isHorizontal && !isThisXAxis && "left" === axisSpec.orient) {
|
|
56113
|
+
if ("heatmap" === spec.type) return "linear" === axisSpec.type;
|
|
56114
|
+
if ("linear" === axisSpec.type) return !0;
|
|
56115
|
+
}
|
|
56014
56116
|
}
|
|
56015
56117
|
return isHorizontal && isThisXAxis || !isHorizontal && !isThisXAxis;
|
|
56016
56118
|
}
|
|
@@ -56429,7 +56531,7 @@
|
|
|
56429
56531
|
}
|
|
56430
56532
|
constructor(container, options = {}) {
|
|
56431
56533
|
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;
|
|
56432
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.0.
|
|
56534
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.0.19", 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");
|
|
56433
56535
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
56434
56536
|
options: options,
|
|
56435
56537
|
container: container
|
|
@@ -56511,8 +56613,8 @@
|
|
|
56511
56613
|
if (internalProps.calcWidthContext = {
|
|
56512
56614
|
_: internalProps,
|
|
56513
56615
|
get full() {
|
|
56514
|
-
var _a;
|
|
56515
|
-
return "node" === Env.mode ? that.canvasWidth / (null != pixelRatio ? pixelRatio : 1) : this._.canvas.width / (null !== (_a = this._.context.pixelRatio) && void 0 !== _a ? _a : window.devicePixelRatio);
|
|
56616
|
+
var _a, _b;
|
|
56617
|
+
return "node" === Env.mode ? that.canvasWidth / (null != pixelRatio ? pixelRatio : 1) : this._.canvas.width / (null !== (_b = null !== (_a = this._.context.pixelRatio) && void 0 !== _a ? _a : that.internalProps.pixelRatio) && void 0 !== _b ? _b : window.devicePixelRatio);
|
|
56516
56618
|
}
|
|
56517
56619
|
}, internalProps.cellTextOverflows = {}, internalProps.focusedTable = !1, internalProps.theme = themes.of(null !== (_r = options.theme) && void 0 !== _r ? _r : themes.DEFAULT), internalProps.theme.isPivot = this.isPivotTable(), setIconColor(internalProps.theme.functionalIconsStyle), container ? (clearDOM && (container.innerHTML = ""), container.appendChild(internalProps.element), this._updateSize()) : this._updateSize(), internalProps.bodyHelper = new BodyHelper(this), internalProps.headerHelper = new HeaderHelper(this), internalProps.rowSeriesNumberHelper = new RowSeriesNumberHelper(this), internalProps.autoWrapText = options.autoWrapText, internalProps.enableLineBreak = options.enableLineBreak, internalProps.allowFrozenColCount = null !== (_s = options.allowFrozenColCount) && void 0 !== _s ? _s : 0, internalProps.limitMaxAutoWidth = null !== (_t = options.limitMaxAutoWidth) && void 0 !== _t ? _t : 450, internalProps.limitMinWidth = null != limitMinWidth ? "number" == typeof limitMinWidth ? limitMinWidth : limitMinWidth ? 10 : 0 : 10, internalProps.limitMinHeight = null != limitMinHeight ? "number" == typeof limitMinHeight ? limitMinHeight : limitMinHeight ? 10 : 0 : 10, this.scenegraph = new Scenegraph(this), this.stateManager = new StateManager(this), this.eventManager = new EventManager(this), this.animationManager = new TableAnimationManager(this), options.legends) {
|
|
56518
56620
|
internalProps.legends = [];
|
|
@@ -56806,12 +56908,13 @@
|
|
|
56806
56908
|
var _a;
|
|
56807
56909
|
if (pixelRatio !== (null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.pixelRatio)) {
|
|
56808
56910
|
this.internalProps.pixelRatio = pixelRatio;
|
|
56809
|
-
const
|
|
56911
|
+
const that = this,
|
|
56912
|
+
canvasWidth = this.canvasWidth;
|
|
56810
56913
|
this.internalProps.calcWidthContext = {
|
|
56811
56914
|
_: this.internalProps,
|
|
56812
56915
|
get full() {
|
|
56813
|
-
var _a;
|
|
56814
|
-
return "node" === Env.mode ? canvasWidth / (null != pixelRatio ? pixelRatio : 1) : this._.canvas.width / (null !== (_a = this._.context.pixelRatio) && void 0 !== _a ? _a : window.devicePixelRatio);
|
|
56916
|
+
var _a, _b;
|
|
56917
|
+
return "node" === Env.mode ? canvasWidth / (null != pixelRatio ? pixelRatio : 1) : this._.canvas.width / (null !== (_b = null !== (_a = this._.context.pixelRatio) && void 0 !== _a ? _a : that.internalProps.pixelRatio) && void 0 !== _b ? _b : window.devicePixelRatio);
|
|
56815
56918
|
}
|
|
56816
56919
|
}, this.scenegraph.setPixelRatio(pixelRatio);
|
|
56817
56920
|
}
|
|
@@ -57349,7 +57452,7 @@
|
|
|
57349
57452
|
this.release();
|
|
57350
57453
|
}
|
|
57351
57454
|
release() {
|
|
57352
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
57455
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
57353
57456
|
const internalProps = this.internalProps;
|
|
57354
57457
|
if (this.isReleased) return;
|
|
57355
57458
|
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 => {
|
|
@@ -57358,10 +57461,8 @@
|
|
|
57358
57461
|
var _a;
|
|
57359
57462
|
return null === (_a = null == releaseObj ? void 0 : releaseObj.release) || void 0 === _a ? void 0 : _a.call(releaseObj);
|
|
57360
57463
|
}), internalProps.releaseList = null), this.scenegraph.stage.release(), this.scenegraph.proxy.release(), internalProps.focusControl.release();
|
|
57361
|
-
const
|
|
57362
|
-
|
|
57363
|
-
} = internalProps.element;
|
|
57364
|
-
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();
|
|
57464
|
+
const parentElement = null === (_o = internalProps.element) || void 0 === _o ? void 0 : _o.parentElement;
|
|
57465
|
+
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();
|
|
57365
57466
|
}
|
|
57366
57467
|
fireListeners(type, event) {
|
|
57367
57468
|
return super.fireListeners(type, event);
|
|
@@ -57561,10 +57662,10 @@
|
|
|
57561
57662
|
clearSelected() {
|
|
57562
57663
|
this.stateManager.updateSelectPos(-1, -1);
|
|
57563
57664
|
}
|
|
57564
|
-
selectCell(col, row,
|
|
57665
|
+
selectCell(col, row, enableShiftSelectMode, enableCtrlSelectMode, makeSelectCellVisible, skipBodyMerge = !1) {
|
|
57565
57666
|
var _a, _b, _c;
|
|
57566
57667
|
const isHasSelected = !!(null === (_a = this.stateManager.select.ranges) || void 0 === _a ? void 0 : _a.length);
|
|
57567
|
-
this.stateManager.updateSelectPos(col, row,
|
|
57668
|
+
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);
|
|
57568
57669
|
}
|
|
57569
57670
|
selectCells(cellRanges) {
|
|
57570
57671
|
const {
|
|
@@ -57630,30 +57731,30 @@
|
|
|
57630
57731
|
}
|
|
57631
57732
|
}]);
|
|
57632
57733
|
}
|
|
57633
|
-
startDragSelectCol(colIndex,
|
|
57734
|
+
startDragSelectCol(colIndex, enableCtrlSelectMode, enableShiftSelectMode) {
|
|
57634
57735
|
var _a, _b, _c, _d, _e, _f;
|
|
57635
57736
|
const lastSelectRange = this.stateManager.select.ranges[this.stateManager.select.ranges.length - 1],
|
|
57636
|
-
startCol =
|
|
57737
|
+
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,
|
|
57637
57738
|
endCol = colIndex,
|
|
57638
57739
|
endRow = this.rowCount - 1;
|
|
57639
|
-
this.stateManager.updateSelectPos(startCol, 0,
|
|
57740
|
+
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);
|
|
57640
57741
|
}
|
|
57641
|
-
dragSelectCol(colIndex,
|
|
57742
|
+
dragSelectCol(colIndex, enableCtrlSelectMode) {
|
|
57642
57743
|
var _a, _b;
|
|
57643
57744
|
const currentSelectRanges = this.stateManager.select.ranges,
|
|
57644
57745
|
lastSelectRange = currentSelectRanges[currentSelectRanges.length - 1];
|
|
57645
|
-
lastSelectRange && (lastSelectRange.end.col = colIndex), this.stateManager.updateSelectPos(colIndex, this.rowCount - 1, !1,
|
|
57746
|
+
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);
|
|
57646
57747
|
}
|
|
57647
57748
|
endDragSelect() {
|
|
57648
57749
|
this.stateManager.updateInteractionState(InteractionState.default), this.stateManager.endSelectCells(!1, !1);
|
|
57649
57750
|
}
|
|
57650
|
-
startDragSelectRow(rowIndex,
|
|
57751
|
+
startDragSelectRow(rowIndex, enableCtrlSelectMode, isShift) {
|
|
57651
57752
|
var _a, _b, _c, _d, _e, _f;
|
|
57652
57753
|
const lastSelectRange = this.stateManager.select.ranges[this.stateManager.select.ranges.length - 1],
|
|
57653
57754
|
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,
|
|
57654
57755
|
endCol = this.colCount - 1,
|
|
57655
57756
|
endRow = rowIndex;
|
|
57656
|
-
this.stateManager.updateSelectPos(0, startRow, isShift,
|
|
57757
|
+
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);
|
|
57657
57758
|
}
|
|
57658
57759
|
dragSelectRow(rowIndex, isCtrl) {
|
|
57659
57760
|
var _a, _b;
|
|
@@ -59877,7 +59978,7 @@
|
|
|
59877
59978
|
let isHasCartesianChart = !1;
|
|
59878
59979
|
for (let i = 0; i < indicatorsDefine.length; i++) {
|
|
59879
59980
|
const columnObj = indicatorsDefine[i];
|
|
59880
|
-
if (columnObj.chartSpec && "wordCloud" !== columnObj.chartSpec.type && "radar" !== columnObj.chartSpec.type && "gauge" !== columnObj.chartSpec.type && "pie" !== columnObj.chartSpec.type && "funnel" !== columnObj.chartSpec.type && "rose" !== columnObj.chartSpec.type) {
|
|
59981
|
+
if (columnObj.chartSpec && "wordCloud" !== columnObj.chartSpec.type && "radar" !== columnObj.chartSpec.type && "gauge" !== columnObj.chartSpec.type && "pie" !== columnObj.chartSpec.type && "funnel" !== columnObj.chartSpec.type && "rose" !== columnObj.chartSpec.type && "sunburst" !== columnObj.chartSpec.type && "treemap" !== columnObj.chartSpec.type && "sankey" !== columnObj.chartSpec.type && "circlePacking" !== columnObj.chartSpec.type) {
|
|
59881
59982
|
isHasCartesianChart = !0;
|
|
59882
59983
|
break;
|
|
59883
59984
|
}
|
|
@@ -59887,19 +59988,19 @@
|
|
|
59887
59988
|
function isCartesianChart(col, row, layout) {
|
|
59888
59989
|
let isHasCartesianChart = !0;
|
|
59889
59990
|
const chartSpec = layout.getRawChartSpec(col, row);
|
|
59890
|
-
return chartSpec && "pie" !== chartSpec.type && "radar" !== chartSpec.type && "gauge" !== chartSpec.type && "wordCloud" !== chartSpec.type && "funnel" !== chartSpec.type && "rose" !== chartSpec.type || (isHasCartesianChart = !1), isHasCartesianChart;
|
|
59991
|
+
return chartSpec && "pie" !== chartSpec.type && "radar" !== chartSpec.type && "gauge" !== chartSpec.type && "wordCloud" !== chartSpec.type && "funnel" !== chartSpec.type && "rose" !== chartSpec.type && "sunburst" !== chartSpec.type && "treemap" !== chartSpec.type && "sankey" !== chartSpec.type && "circlePacking" !== chartSpec.type || (isHasCartesianChart = !1), isHasCartesianChart;
|
|
59891
59992
|
}
|
|
59892
59993
|
function isHasCartesianChartInline(col, row, checkDirection, layout) {
|
|
59893
59994
|
let isHasCartesianChart = !1;
|
|
59894
59995
|
if (layout.indicatorsAsCol && "row" === checkDirection || !layout.indicatorsAsCol && "col" === checkDirection) for (let i = 0; i < layout.indicatorsDefine.length; i++) {
|
|
59895
59996
|
const columnObj = layout.indicatorsDefine[i];
|
|
59896
|
-
if (columnObj.chartSpec && "pie" !== columnObj.chartSpec.type && "wordCloud" !== columnObj.chartSpec.type && "radar" !== columnObj.chartSpec.type && "gauge" !== columnObj.chartSpec.type && "funnel" !== columnObj.chartSpec.type && "rose" !== columnObj.chartSpec.type) {
|
|
59997
|
+
if (columnObj.chartSpec && "pie" !== columnObj.chartSpec.type && "wordCloud" !== columnObj.chartSpec.type && "radar" !== columnObj.chartSpec.type && "gauge" !== columnObj.chartSpec.type && "funnel" !== columnObj.chartSpec.type && "rose" !== columnObj.chartSpec.type && "sunburst" !== columnObj.chartSpec.type && "treemap" !== columnObj.chartSpec.type && "sankey" !== columnObj.chartSpec.type && "circlePacking" !== columnObj.chartSpec.type) {
|
|
59897
59998
|
isHasCartesianChart = !0;
|
|
59898
59999
|
break;
|
|
59899
60000
|
}
|
|
59900
60001
|
} else {
|
|
59901
60002
|
const chartSpec = layout.getRawChartSpec(col, row);
|
|
59902
|
-
chartSpec ? "pie" !== chartSpec.type && "radar" !== chartSpec.type && "gauge" !== chartSpec.type && "wordCloud" !== chartSpec.type && "funnel" !== chartSpec.type && "rose" !== chartSpec.type && (isHasCartesianChart = !0) : isHasCartesianChart = !1;
|
|
60003
|
+
chartSpec ? "pie" !== chartSpec.type && "radar" !== chartSpec.type && "gauge" !== chartSpec.type && "wordCloud" !== chartSpec.type && "funnel" !== chartSpec.type && "rose" !== chartSpec.type && "sunburst" !== chartSpec.type && "treemap" !== chartSpec.type && "sankey" !== chartSpec.type && "circlePacking" !== chartSpec.type && (isHasCartesianChart = !0) : isHasCartesianChart = !1;
|
|
59903
60004
|
}
|
|
59904
60005
|
return isHasCartesianChart;
|
|
59905
60006
|
}
|
|
@@ -59907,7 +60008,7 @@
|
|
|
59907
60008
|
let chartSpec = layout.getRawChartSpec(col, row);
|
|
59908
60009
|
return chartSpec ? layout._table.isPivotChart() ? (chartSpec = cloneDeepSpec(chartSpec), chartSpec.sortDataByAxis = !0, isArray$9(chartSpec.series) && chartSpec.series.forEach(serie => {
|
|
59909
60010
|
serie.sortDataByAxis = !0;
|
|
59910
|
-
}), "gauge" !== chartSpec.type && "rose" !== chartSpec.type && "
|
|
60011
|
+
}), "pie" !== chartSpec.type && "radar" !== chartSpec.type && "gauge" !== chartSpec.type && "wordCloud" !== chartSpec.type && "funnel" !== chartSpec.type && "rose" !== chartSpec.type && "sunburst" !== chartSpec.type && "treemap" !== chartSpec.type && "sankey" !== chartSpec.type && "circlePacking" !== chartSpec.type && (chartSpec.axes = layout.getChartAxes(col, row)), chartSpec.padding = 0, chartSpec.dataZoom = [], chartSpec) : chartSpec : null;
|
|
59911
60012
|
}
|
|
59912
60013
|
function getChartAxes(col, row, layout) {
|
|
59913
60014
|
var _a, _b, _c;
|
|
@@ -59992,19 +60093,32 @@
|
|
|
59992
60093
|
const indicatorKeys = layout.getIndicatorKeyInChartSpec(col, row),
|
|
59993
60094
|
rowPath = layout.getRowKeysPath(col, row);
|
|
59994
60095
|
indicatorKeys.forEach((key, index) => {
|
|
60096
|
+
var _a, _b;
|
|
59995
60097
|
const {
|
|
59996
60098
|
range: range,
|
|
59997
60099
|
targetTicks: targetTicks,
|
|
59998
60100
|
targetRange: targetRange,
|
|
59999
60101
|
axisOption: axisOption
|
|
60000
60102
|
} = getAxisRangeAndTicks(col, row, index, 0 === index ? "left" : "right", 0 === index ? "right" : "left", indicatorKeys, rowPath, layout);
|
|
60001
|
-
isNumber$6(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min), isNumber$6(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max), hasSameAxis(axisOption, axes)
|
|
60103
|
+
if (isNumber$6(null == axisOption ? void 0 : axisOption.min) && (range.min = axisOption.min), isNumber$6(null == axisOption ? void 0 : axisOption.max) && (range.max = axisOption.max), hasSameAxis(axisOption, axes)) return;
|
|
60104
|
+
const {
|
|
60105
|
+
chartType: chartType
|
|
60106
|
+
} = getAxisOption(col, row, 0 === index ? "left" : "right", layout);
|
|
60107
|
+
let domain = [];
|
|
60108
|
+
if ("heatmap" === chartType) {
|
|
60109
|
+
const rowDimensionKey = layout.getDimensionKeyInChartSpec(layout.rowHeaderLevelCount, row, "yField"),
|
|
60110
|
+
data = null !== (_a = layout.dataset.collectedValues[rowDimensionKey]) && void 0 !== _a ? _a : [],
|
|
60111
|
+
rowPath = layout.getRowKeysPath(col, row);
|
|
60112
|
+
domain = null !== (_b = null == data ? void 0 : data[null != rowPath ? rowPath : ""]) && void 0 !== _b ? _b : [];
|
|
60113
|
+
}
|
|
60114
|
+
axes.push(merge$2({
|
|
60002
60115
|
range: range,
|
|
60003
60116
|
label: {
|
|
60004
60117
|
style: {
|
|
60005
60118
|
fontSize: DEFAULT_TEXT_FONT_SIZE
|
|
60006
60119
|
}
|
|
60007
|
-
}
|
|
60120
|
+
},
|
|
60121
|
+
domain: "linear" === (null == axisOption ? void 0 : axisOption.type) ? void 0 : Array.from(domain)
|
|
60008
60122
|
}, axisOption, {
|
|
60009
60123
|
type: (null == axisOption ? void 0 : axisOption.type) || "linear",
|
|
60010
60124
|
orient: 0 === index ? "left" : "right",
|
|
@@ -60020,7 +60134,8 @@
|
|
|
60020
60134
|
},
|
|
60021
60135
|
seriesIndex: (null == axisOption ? void 0 : axisOption.seriesId) ? void 0 : index,
|
|
60022
60136
|
tick: {
|
|
60023
|
-
tickMode: getTickModeFunction(targetTicks, targetRange, range, index)
|
|
60137
|
+
tickMode: getTickModeFunction(targetTicks, targetRange, range, index),
|
|
60138
|
+
visible: !1
|
|
60024
60139
|
},
|
|
60025
60140
|
sync: {
|
|
60026
60141
|
axisId: NO_AXISID_FRO_VTABLE
|
|
@@ -61487,6 +61602,7 @@
|
|
|
61487
61602
|
} else if (table.sortState) table.dataSource.deleteRecordsForSorted(recordIndexs), sortRecords(table), table.refreshRowColCount(), table.scenegraph.clearCells(), table.scenegraph.createSceneGraph();else {
|
|
61488
61603
|
const deletedRecordIndexs = table.dataSource.deleteRecords(recordIndexs);
|
|
61489
61604
|
if (0 === deletedRecordIndexs.length) return;
|
|
61605
|
+
for (let index = 0; index < deletedRecordIndexs.length; index++) adjustCheckBoxStateMapWithDeleteRecordIndex(table, deletedRecordIndexs[index], 1);
|
|
61490
61606
|
const oldRowCount = table.transpose ? table.colCount : table.rowCount;
|
|
61491
61607
|
table.refreshRowColCount();
|
|
61492
61608
|
const newRowCount = table.transpose ? table.colCount : table.rowCount,
|
|
@@ -61690,10 +61806,22 @@
|
|
|
61690
61806
|
checkedState.delete(originKey), targetKey && checkedState.set(targetKey, value);
|
|
61691
61807
|
});
|
|
61692
61808
|
} else {
|
|
61693
|
-
|
|
61694
|
-
|
|
61695
|
-
|
|
61696
|
-
|
|
61809
|
+
const toDelete = [],
|
|
61810
|
+
toUpdate = [];
|
|
61811
|
+
checkedState.forEach((value, key) => {
|
|
61812
|
+
const dataIndex = Number(key);
|
|
61813
|
+
!isNaN(dataIndex) && dataIndex >= recordIndex && (dataIndex === recordIndex ? toDelete.push(key) : dataIndex > recordIndex && toUpdate.push({
|
|
61814
|
+
originKey: key,
|
|
61815
|
+
targetKey: (dataIndex - count).toString(),
|
|
61816
|
+
value: value
|
|
61817
|
+
}));
|
|
61818
|
+
}), toDelete.forEach(key => checkedState.delete(key)), toUpdate.forEach(({
|
|
61819
|
+
originKey: originKey,
|
|
61820
|
+
targetKey: targetKey,
|
|
61821
|
+
value: value
|
|
61822
|
+
}) => {
|
|
61823
|
+
checkedState.delete(originKey), checkedState.set(targetKey, value);
|
|
61824
|
+
});
|
|
61697
61825
|
}
|
|
61698
61826
|
}
|
|
61699
61827
|
function adjustCheckBoxStateMapWithAddRecordIndex(table, recordIndex, count) {
|
|
@@ -62489,7 +62617,8 @@
|
|
|
62489
62617
|
return Array.isArray(index) && 1 === index.length && (index = index[0]), this.dataSource.getTableIndex(index);
|
|
62490
62618
|
}
|
|
62491
62619
|
release() {
|
|
62492
|
-
|
|
62620
|
+
var _a;
|
|
62621
|
+
null === (_a = this.editorManager) || void 0 === _a || _a.release(), super.release();
|
|
62493
62622
|
}
|
|
62494
62623
|
expandAllTreeNode() {
|
|
62495
62624
|
if (!this._hasHierarchyTreeHeader()) return;
|
|
@@ -65582,7 +65711,7 @@
|
|
|
65582
65711
|
};
|
|
65583
65712
|
|
|
65584
65713
|
function createChartCellGroup(cellGroup, columnGroup, xOrigin, yOrigin, col, row, width, height, padding, dataValue, chartModule, chartSpec, chartInstance, dataId, table, cellTheme, isShareChartSpec, isAsync, isNoChartDataRenderNothing) {
|
|
65585
|
-
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;
|
|
65714
|
+
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;
|
|
65586
65715
|
const ClassType = get$1()[chartModule],
|
|
65587
65716
|
headerStyle = table._getCellStyle(col, row),
|
|
65588
65717
|
functionalPadding = getFunctionalProp("padding", headerStyle, col, row, table);
|
|
@@ -65637,6 +65766,7 @@
|
|
|
65637
65766
|
data: table.getCellValue(col, row) || [],
|
|
65638
65767
|
cellPadding: padding,
|
|
65639
65768
|
dpr: table.internalProps.pixelRatio,
|
|
65769
|
+
detectPickChartItem: null === (_1 = table.options.customConfig) || void 0 === _1 ? void 0 : _1.detectPickChartItem,
|
|
65640
65770
|
axes: table.isPivotChart() ? table.internalProps.layoutMap.getChartAxes(col, row) : [],
|
|
65641
65771
|
tableChartOption: table.options.chartOption,
|
|
65642
65772
|
col: col,
|
|
@@ -68907,15 +69037,23 @@
|
|
|
68907
69037
|
clearCellRangeMap() {
|
|
68908
69038
|
this._largeCellRangeCache.length = 0, this._CellHeaderPathMap = new Map();
|
|
68909
69039
|
}
|
|
68910
|
-
getDimensionKeyInChartSpec(_col, _row) {
|
|
68911
|
-
var _a, _b, _c, _d, _e, _f;
|
|
69040
|
+
getDimensionKeyInChartSpec(_col, _row, type) {
|
|
69041
|
+
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;
|
|
68912
69042
|
let dimensionKey;
|
|
68913
|
-
if (!1 === this.indicatorsAsCol)
|
|
68914
|
-
const chartSpec = this.
|
|
68915
|
-
if (chartSpec && (dimensionKey = null !== (_a = chartSpec.
|
|
68916
|
-
|
|
68917
|
-
|
|
68918
|
-
|
|
69043
|
+
if (!1 === this.indicatorsAsCol) {
|
|
69044
|
+
const chartSpec = this.getRawChartSpec(_col, _row);
|
|
69045
|
+
if (chartSpec && (dimensionKey = "yField" === type ? null !== (_a = chartSpec.yField) && void 0 !== _a ? _a : null === (_c = null === (_b = null == chartSpec ? void 0 : chartSpec.series) || void 0 === _b ? void 0 : _b[0]) || void 0 === _c ? void 0 : _c.yField : "histogram" === chartSpec.type ? chartSpec.x2Field : null !== (_d = chartSpec.xField) && void 0 !== _d ? _d : null === (_f = null === (_e = null == chartSpec ? void 0 : chartSpec.series) || void 0 === _e ? void 0 : _e[0]) || void 0 === _f ? void 0 : _f.xField, dimensionKey)) return dimensionKey;
|
|
69046
|
+
for (let i = 0; i < this.indicatorsDefine.length; i++) {
|
|
69047
|
+
const chartSpec = this.indicatorsDefine[i].chartSpec;
|
|
69048
|
+
if (chartSpec && (dimensionKey = "yField" === type ? null !== (_g = chartSpec.yField) && void 0 !== _g ? _g : null === (_j = null === (_h = null == chartSpec ? void 0 : chartSpec.series) || void 0 === _h ? void 0 : _h[0]) || void 0 === _j ? void 0 : _j.yField : "histogram" === chartSpec.type ? chartSpec.x2Field : null !== (_k = chartSpec.xField) && void 0 !== _k ? _k : null === (_m = null === (_l = null == chartSpec ? void 0 : chartSpec.series) || void 0 === _l ? void 0 : _l[0]) || void 0 === _m ? void 0 : _m.xField, dimensionKey)) return dimensionKey;
|
|
69049
|
+
}
|
|
69050
|
+
} else {
|
|
69051
|
+
const chartSpec = this.getRawChartSpec(_col, _row);
|
|
69052
|
+
if (chartSpec && (dimensionKey = "xField" === type ? "histogram" === chartSpec.type ? chartSpec.x2Field : null !== (_o = chartSpec.xField) && void 0 !== _o ? _o : null === (_q = null === (_p = null == chartSpec ? void 0 : chartSpec.series) || void 0 === _p ? void 0 : _p[0]) || void 0 === _q ? void 0 : _q.xField : null !== (_r = chartSpec.yField) && void 0 !== _r ? _r : null === (_t = null === (_s = null == chartSpec ? void 0 : chartSpec.series) || void 0 === _s ? void 0 : _s[0]) || void 0 === _t ? void 0 : _t.yField, dimensionKey)) return dimensionKey;
|
|
69053
|
+
for (let i = 0; i < this.indicatorsDefine.length; i++) {
|
|
69054
|
+
const chartSpec = this.indicatorsDefine[i].chartSpec;
|
|
69055
|
+
if (chartSpec && (dimensionKey = "xField" === type ? "histogram" === chartSpec.type ? chartSpec.x2Field : null !== (_u = chartSpec.xField) && void 0 !== _u ? _u : null === (_w = null === (_v = null == chartSpec ? void 0 : chartSpec.series) || void 0 === _v ? void 0 : _v[0]) || void 0 === _w ? void 0 : _w.xField : null !== (_x = chartSpec.yField) && void 0 !== _x ? _x : null === (_z = null === (_y = null == chartSpec ? void 0 : chartSpec.series) || void 0 === _y ? void 0 : _y[0]) || void 0 === _z ? void 0 : _z.yField, dimensionKey)) return dimensionKey;
|
|
69056
|
+
}
|
|
68919
69057
|
}
|
|
68920
69058
|
return null;
|
|
68921
69059
|
}
|
|
@@ -68988,22 +69126,23 @@
|
|
|
68988
69126
|
}
|
|
68989
69127
|
return null;
|
|
68990
69128
|
}
|
|
68991
|
-
getOptimunHeightForChart(row) {
|
|
69129
|
+
getOptimunHeightForChart(row, isHeatmap) {
|
|
68992
69130
|
var _a, _b, _c, _d, _e;
|
|
68993
69131
|
const path = this.getCellHeaderPaths(this.rowHeaderLevelCount, row).rowHeaderPaths;
|
|
68994
69132
|
let collectedValues, height;
|
|
69133
|
+
isHeatmap && path[path.length - 1].indicatorKey && path.pop();
|
|
68995
69134
|
for (const key in this.dataset.collectValuesBy) if ("yField" === this.dataset.collectValuesBy[key].type && !this.dataset.collectValuesBy[key].range) {
|
|
68996
69135
|
collectedValues = null === (_a = this.dataset.collectedValues[key]) || void 0 === _a ? void 0 : _a[path.map(pathObj => pathObj.value).join(this.dataset.stringJoinChar)];
|
|
68997
69136
|
break;
|
|
68998
69137
|
}
|
|
68999
69138
|
if (this._chartItemBandSize) height = scaleWholeRangeSize(null !== (_b = null == collectedValues ? void 0 : collectedValues.length) && void 0 !== _b ? _b : 0, this._chartItemBandSize, this._chartPaddingInner, this._chartPaddingOuter);else {
|
|
69000
69139
|
const barWidth = this._chartItemSpanSize || 25;
|
|
69001
|
-
height = (null !== (_c = null == collectedValues ? void 0 : collectedValues.length) && void 0 !== _c ? _c : 0) * (barWidth + barWidth / 3);
|
|
69140
|
+
height = (null !== (_c = null == collectedValues ? void 0 : collectedValues.length) && void 0 !== _c ? _c : 0) * (barWidth + (isHeatmap ? 0 : barWidth / 3));
|
|
69002
69141
|
}
|
|
69003
69142
|
const padding = getQuadProps(null !== (_e = null !== (_d = this._chartPadding) && void 0 !== _d ? _d : this._table.theme.bodyStyle.padding) && void 0 !== _e ? _e : 0);
|
|
69004
69143
|
return height + padding[0] + padding[2];
|
|
69005
69144
|
}
|
|
69006
|
-
getOptimunWidthForChart(col) {
|
|
69145
|
+
getOptimunWidthForChart(col, isHeatmap) {
|
|
69007
69146
|
var _a, _b, _c, _d, _e;
|
|
69008
69147
|
const path = this.getCellHeaderPaths(col, this.columnHeaderLevelCount).colHeaderPaths;
|
|
69009
69148
|
let collectedValues, width;
|
|
@@ -69013,7 +69152,7 @@
|
|
|
69013
69152
|
}
|
|
69014
69153
|
if (this._chartItemBandSize) width = scaleWholeRangeSize(null !== (_b = null == collectedValues ? void 0 : collectedValues.length) && void 0 !== _b ? _b : 0, this._chartItemBandSize, this._chartPaddingInner, this._chartPaddingOuter);else {
|
|
69015
69154
|
const barWidth = this._chartItemSpanSize || 25;
|
|
69016
|
-
width = (null !== (_c = null == collectedValues ? void 0 : collectedValues.length) && void 0 !== _c ? _c : 0) * (barWidth + barWidth / 3);
|
|
69155
|
+
width = (null !== (_c = null == collectedValues ? void 0 : collectedValues.length) && void 0 !== _c ? _c : 0) * (barWidth + (isHeatmap ? 0 : barWidth / 3));
|
|
69017
69156
|
}
|
|
69018
69157
|
const padding = getQuadProps(null !== (_e = null !== (_d = this._chartPadding) && void 0 !== _d ? _d : this._table.theme.bodyStyle.padding) && void 0 !== _e ? _e : 0);
|
|
69019
69158
|
return width + padding[1] + padding[3];
|
|
@@ -69432,7 +69571,7 @@
|
|
|
69432
69571
|
this.filteredRecords || (this.filteredRecords = []);
|
|
69433
69572
|
for (let i = 0, len = this.records.length; i < len; i++) {
|
|
69434
69573
|
const record = this.records[i];
|
|
69435
|
-
isNeedFilter && !this.filterRecord(record) || (this.filteredRecords.push(record), this.processRecord(record));
|
|
69574
|
+
isNeedFilter && !this.filterRecord(record) || (this.filteredRecords.push(record), record && this.processRecord(record));
|
|
69436
69575
|
}
|
|
69437
69576
|
} else {
|
|
69438
69577
|
this.filteredRecords || (this.filteredRecords = {});
|
|
@@ -71141,7 +71280,8 @@
|
|
|
71141
71280
|
}));
|
|
71142
71281
|
}
|
|
71143
71282
|
release() {
|
|
71144
|
-
|
|
71283
|
+
var _a;
|
|
71284
|
+
this.internalProps.layoutMap.clearHeaderPathCache(), null === (_a = this.editorManager) || void 0 === _a || _a.release(), super.release();
|
|
71145
71285
|
}
|
|
71146
71286
|
};
|
|
71147
71287
|
|
|
@@ -71158,7 +71298,7 @@
|
|
|
71158
71298
|
let columnDimensionTree, rowDimensionTree;
|
|
71159
71299
|
super(container, options), this.layoutNodeId = {
|
|
71160
71300
|
seqId: 0
|
|
71161
|
-
}, this._selectedDataItemsInChart = [], this._selectedDimensionInChart = [], this._chartEventMap = {}, (options = this.options).layout && Object.assign(options, options.layout), this.internalProps.columns = cloneDeep$1(options.columns), this.internalProps.rows = cloneDeep$1(options.rows), this.internalProps.indicators = cloneDeepSpec(options.indicators), this.internalProps.columnTree = !options.indicatorsAsCol || (null === (_a = options.columns) || void 0 === _a ? void 0 : _a.length) || options.columnTree ? cloneDeep$1(options.columnTree) : [], this.internalProps.rowTree = options.indicatorsAsCol || (null === (_b = options.rows) || void 0 === _b ? void 0 : _b.length) || options.rowTree ? cloneDeep$1(options.rowTree) : [], this.internalProps.records = options.records, this.setCustomStateNameToSpec(), this.internalProps.columnResizeType = null !== (_e = null !== (_d = null === (_c = options.resize) || void 0 === _c ? void 0 : _c.columnResizeType) && void 0 !== _d ? _d : options.columnResizeType) && void 0 !== _e ? _e : "column", this.internalProps.rowResizeType = null !== (_h = null !== (_g = null === (_f = options.resize) || void 0 === _f ? void 0 : _f.rowResizeType) && void 0 !== _g ? _g : options.rowResizeType) && void 0 !== _h ? _h : "row", this.internalProps.dataConfig = {
|
|
71301
|
+
}, this._selectedDataItemsInChart = [], this._selectedDimensionInChart = [], this._chartEventMap = {}, this._throttleTimer = null, this._latestFilterRules = null, (options = this.options).layout && Object.assign(options, options.layout), this.internalProps.columns = cloneDeep$1(options.columns), this.internalProps.rows = cloneDeep$1(options.rows), this.internalProps.indicators = cloneDeepSpec(options.indicators), this.internalProps.columnTree = !options.indicatorsAsCol || (null === (_a = options.columns) || void 0 === _a ? void 0 : _a.length) || options.columnTree ? cloneDeep$1(options.columnTree) : [], this.internalProps.rowTree = options.indicatorsAsCol || (null === (_b = options.rows) || void 0 === _b ? void 0 : _b.length) || options.rowTree ? cloneDeep$1(options.rowTree) : [], this.internalProps.records = options.records, this.setCustomStateNameToSpec(), this.internalProps.columnResizeType = null !== (_e = null !== (_d = null === (_c = options.resize) || void 0 === _c ? void 0 : _c.columnResizeType) && void 0 !== _d ? _d : options.columnResizeType) && void 0 !== _e ? _e : "column", this.internalProps.rowResizeType = null !== (_h = null !== (_g = null === (_f = options.resize) || void 0 === _f ? void 0 : _f.rowResizeType) && void 0 !== _g ? _g : options.rowResizeType) && void 0 !== _h ? _h : "row", this.internalProps.dataConfig = {
|
|
71162
71302
|
isPivotChart: !0
|
|
71163
71303
|
}, this.internalProps.columnWidthConfig = options.columnWidthConfig, this.internalProps.columnWidthConfigForRowHeader = options.columnWidthConfigForRowHeader, this._axes = isArray$9(options.axes) ? options.axes : [], options.columnTree && (!1 !== options.indicatorsAsCol && (this.internalProps.columnTree = supplementIndicatorNodesForCustomTree(this.internalProps.columnTree, options.indicators)), columnDimensionTree = new DimensionTree(null !== (_j = this.internalProps.columnTree) && void 0 !== _j ? _j : [], this.layoutNodeId)), options.rowTree && (!1 === options.indicatorsAsCol && (this.internalProps.rowTree = supplementIndicatorNodesForCustomTree(this.internalProps.rowTree, options.indicators)), rowDimensionTree = new DimensionTree(null !== (_k = this.internalProps.rowTree) && void 0 !== _k ? _k : [], this.layoutNodeId));
|
|
71164
71304
|
const rowKeys = (null === (_l = null == rowDimensionTree ? void 0 : rowDimensionTree.dimensionKeys) || void 0 === _l ? void 0 : _l.count) ? rowDimensionTree.dimensionKeys.valueArr() : null !== (_o = null === (_m = options.rows) || void 0 === _m ? void 0 : _m.reduce((keys, rowObj) => ("string" == typeof rowObj ? keys.push(rowObj) : keys.push(rowObj.dimensionKey), keys), [])) && void 0 !== _o ? _o : [],
|
|
@@ -71481,20 +71621,20 @@
|
|
|
71481
71621
|
};
|
|
71482
71622
|
}
|
|
71483
71623
|
_generateCollectValuesConfig(columnKeys, rowKeys) {
|
|
71484
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
71624
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
71485
71625
|
columnKeys = columnKeys.filter(key => key !== IndicatorDimensionKeyPlaceholder), rowKeys = rowKeys.filter(key => key !== IndicatorDimensionKeyPlaceholder);
|
|
71486
71626
|
const indicators = this.internalProps.indicators,
|
|
71487
71627
|
collectValuesBy = {};
|
|
71488
71628
|
for (let i = 0, len = null == indicators ? void 0 : indicators.length; i < len; i++) if ("string" != typeof indicators[i] && indicators[i].chartSpec) {
|
|
71489
|
-
if ("pie" === (null === (_a = indicators[i].chartSpec) || void 0 === _a ? void 0 : _a.type) || "rose" === (null === (_b = indicators[i].chartSpec) || void 0 === _b ? void 0 : _b.type) || "
|
|
71629
|
+
if ("pie" === (null === (_a = indicators[i].chartSpec) || void 0 === _a ? void 0 : _a.type) || "rose" === (null === (_b = indicators[i].chartSpec) || void 0 === _b ? void 0 : _b.type) || "funnel" === (null === (_c = indicators[i].chartSpec) || void 0 === _c ? void 0 : _c.type) || "radar" === (null === (_d = indicators[i].chartSpec) || void 0 === _d ? void 0 : _d.type) || "gauge" === (null === (_e = indicators[i].chartSpec) || void 0 === _e ? void 0 : _e.type) || "wordCloud" === (null === (_f = indicators[i].chartSpec) || void 0 === _f ? void 0 : _f.type) || "sunburst" === (null === (_g = indicators[i].chartSpec) || void 0 === _g ? void 0 : _g.type) || "treemap" === (null === (_h = indicators[i].chartSpec) || void 0 === _h ? void 0 : _h.type) || "sankey" === (null === (_j = indicators[i].chartSpec) || void 0 === _j ? void 0 : _j.type) || "circlePacking" === (null === (_k = indicators[i].chartSpec) || void 0 === _k ? void 0 : _k.type)) continue;
|
|
71490
71630
|
const indicatorDefine = indicators[i],
|
|
71491
71631
|
indicatorSpec = indicatorDefine.chartSpec;
|
|
71492
71632
|
if (!1 === this.options.indicatorsAsCol) {
|
|
71493
|
-
if (!1 !== (null == indicatorSpec ? void 0 : indicatorSpec.stack) && ("bar" === (null == indicatorSpec ? void 0 : indicatorSpec.type) || "area" === (null == indicatorSpec ? void 0 : indicatorSpec.type)) && (indicatorSpec.stack = !0), collectValuesBy[indicatorDefine.indicatorKey] = {
|
|
71633
|
+
if (!1 !== (null == indicatorSpec ? void 0 : indicatorSpec.stack) && ("bar" === (null == indicatorSpec ? void 0 : indicatorSpec.type) || "area" === (null == indicatorSpec ? void 0 : indicatorSpec.type)) && (indicatorSpec.stack = !0), "heatmap" !== (null == indicatorSpec ? void 0 : indicatorSpec.type) && (collectValuesBy[indicatorDefine.indicatorKey] = {
|
|
71494
71634
|
by: rowKeys,
|
|
71495
71635
|
range: !0,
|
|
71496
|
-
sumBy: (null == indicatorSpec ? void 0 : indicatorSpec.stack) && columnKeys.concat(null == indicatorSpec ? void 0 : indicatorSpec.xField)
|
|
71497
|
-
}, indicatorSpec.series) indicatorSpec.series.forEach(chartSeries => {
|
|
71636
|
+
sumBy: "histogram" === indicatorSpec.type ? columnKeys.concat(null == indicatorSpec ? void 0 : indicatorSpec.xField, null == indicatorSpec ? void 0 : indicatorSpec.x2Field) : (null == indicatorSpec ? void 0 : indicatorSpec.stack) && columnKeys.concat(null == indicatorSpec ? void 0 : indicatorSpec.xField)
|
|
71637
|
+
}), indicatorSpec.series) indicatorSpec.series.forEach(chartSeries => {
|
|
71498
71638
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
71499
71639
|
const xField = "string" == typeof chartSeries.xField ? chartSeries.xField : chartSeries.xField[0];
|
|
71500
71640
|
collectValuesBy[xField] = {
|
|
@@ -71512,29 +71652,30 @@
|
|
|
71512
71652
|
extendRange: parseMarkLineGetExtendRange(indicatorSpec.markLine)
|
|
71513
71653
|
};
|
|
71514
71654
|
});else {
|
|
71515
|
-
const xField = "string" == typeof indicatorSpec.xField ? indicatorSpec.xField : indicatorSpec.xField[0];
|
|
71655
|
+
const xField = "histogram" === indicatorSpec.type ? indicatorSpec.x2Field : "string" == typeof indicatorSpec.xField ? indicatorSpec.xField : indicatorSpec.xField[0];
|
|
71516
71656
|
collectValuesBy[xField] = {
|
|
71517
71657
|
by: columnKeys,
|
|
71518
71658
|
type: "horizontal" !== indicatorSpec.direction ? "xField" : void 0,
|
|
71519
71659
|
range: hasLinearAxis(indicatorSpec, this._axes, "horizontal" === indicatorSpec.direction, !0),
|
|
71520
|
-
sortBy: "horizontal" !== indicatorSpec.direction ? null === (
|
|
71660
|
+
sortBy: "horizontal" !== indicatorSpec.direction ? null === (_o = null === (_m = null === (_l = null == indicatorSpec ? void 0 : indicatorSpec.data) || void 0 === _l ? void 0 : _l.fields) || void 0 === _m ? void 0 : _m[xField]) || void 0 === _o ? void 0 : _o.domain : void 0
|
|
71521
71661
|
}, !1 !== (null == indicatorSpec ? void 0 : indicatorSpec.stack) && ("bar" === (null == indicatorSpec ? void 0 : indicatorSpec.type) || "area" === (null == indicatorSpec ? void 0 : indicatorSpec.type)) && (indicatorSpec.stack = !0);
|
|
71522
71662
|
const yField = indicatorSpec.yField;
|
|
71523
71663
|
collectValuesBy[yField] = {
|
|
71524
71664
|
by: rowKeys,
|
|
71525
|
-
|
|
71526
|
-
|
|
71527
|
-
|
|
71665
|
+
type: "horizontal" !== indicatorSpec.direction ? "yField" : void 0,
|
|
71666
|
+
range: hasLinearAxis(indicatorSpec, this._axes, "horizontal" === indicatorSpec.direction, !1),
|
|
71667
|
+
sumBy: "histogram" === indicatorSpec.type ? columnKeys.concat(null == indicatorSpec ? void 0 : indicatorSpec.xField, null == indicatorSpec ? void 0 : indicatorSpec.x2Field) : indicatorSpec.stack && columnKeys.concat(null == indicatorSpec ? void 0 : indicatorSpec.xField),
|
|
71668
|
+
sortBy: "horizontal" === indicatorSpec.direction ? null === (_r = null === (_q = null === (_p = null == indicatorSpec ? void 0 : indicatorSpec.data) || void 0 === _p ? void 0 : _p.fields) || void 0 === _q ? void 0 : _q[yField]) || void 0 === _r ? void 0 : _r.domain : void 0,
|
|
71528
71669
|
extendRange: parseMarkLineGetExtendRange(indicatorSpec.markLine)
|
|
71529
71670
|
};
|
|
71530
71671
|
}
|
|
71531
71672
|
} else {
|
|
71532
71673
|
const indicatorDefine = indicators[i];
|
|
71533
|
-
if (!1 !== (null == indicatorSpec ? void 0 : indicatorSpec.stack) && ("bar" === (null == indicatorSpec ? void 0 : indicatorSpec.type) || "area" === (null == indicatorSpec ? void 0 : indicatorSpec.type)) && (indicatorSpec.stack = !0), collectValuesBy[indicatorDefine.indicatorKey] = {
|
|
71674
|
+
if (!1 !== (null == indicatorSpec ? void 0 : indicatorSpec.stack) && ("bar" === (null == indicatorSpec ? void 0 : indicatorSpec.type) || "area" === (null == indicatorSpec ? void 0 : indicatorSpec.type)) && (indicatorSpec.stack = !0), "heatmap" !== (null == indicatorSpec ? void 0 : indicatorSpec.type) && (collectValuesBy[indicatorDefine.indicatorKey] = {
|
|
71534
71675
|
by: columnKeys,
|
|
71535
71676
|
range: !0,
|
|
71536
71677
|
sumBy: (null == indicatorSpec ? void 0 : indicatorSpec.stack) && rowKeys.concat(null == indicatorSpec ? void 0 : indicatorSpec.yField)
|
|
71537
|
-
}, indicatorSpec.series) indicatorSpec.series.forEach(chartSeries => {
|
|
71678
|
+
}), indicatorSpec.series) indicatorSpec.series.forEach(chartSeries => {
|
|
71538
71679
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
71539
71680
|
const yField = "string" == typeof chartSeries.yField ? chartSeries.yField : chartSeries.yField[0];
|
|
71540
71681
|
collectValuesBy[yField] = {
|
|
@@ -71557,14 +71698,15 @@
|
|
|
71557
71698
|
by: rowKeys,
|
|
71558
71699
|
type: "horizontal" === indicatorSpec.direction ? "yField" : void 0,
|
|
71559
71700
|
range: hasLinearAxis(indicatorSpec, this._axes, "horizontal" === indicatorSpec.direction, !1),
|
|
71560
|
-
sortBy: "horizontal" === indicatorSpec.direction ? null === (
|
|
71701
|
+
sortBy: "horizontal" === indicatorSpec.direction ? null === (_u = null === (_t = null === (_s = null == indicatorSpec ? void 0 : indicatorSpec.data) || void 0 === _s ? void 0 : _s.fields) || void 0 === _t ? void 0 : _t[yField]) || void 0 === _u ? void 0 : _u.domain : void 0
|
|
71561
71702
|
}, !1 !== (null == indicatorSpec ? void 0 : indicatorSpec.stack) && ("bar" === (null == indicatorSpec ? void 0 : indicatorSpec.type) || "area" === (null == indicatorSpec ? void 0 : indicatorSpec.type)) && (indicatorSpec.stack = !0);
|
|
71562
|
-
const xField = indicatorSpec.xField;
|
|
71703
|
+
const xField = "histogram" === indicatorSpec.type ? indicatorSpec.x2Field : indicatorSpec.xField;
|
|
71563
71704
|
collectValuesBy[xField] = {
|
|
71564
71705
|
by: columnKeys,
|
|
71706
|
+
type: "horizontal" === indicatorSpec.direction ? "xField" : void 0,
|
|
71565
71707
|
range: hasLinearAxis(indicatorSpec, this._axes, "horizontal" === indicatorSpec.direction, !0),
|
|
71566
71708
|
sumBy: indicatorSpec.stack && rowKeys.concat(null == indicatorSpec ? void 0 : indicatorSpec.yField),
|
|
71567
|
-
sortBy: "horizontal" !== indicatorSpec.direction ? null === (
|
|
71709
|
+
sortBy: "horizontal" !== indicatorSpec.direction ? null === (_x = null === (_w = null === (_v = null == indicatorSpec ? void 0 : indicatorSpec.data) || void 0 === _v ? void 0 : _v.fields) || void 0 === _w ? void 0 : _w[xField]) || void 0 === _x ? void 0 : _x.domain : void 0,
|
|
71568
71710
|
extendRange: parseMarkLineGetExtendRange(indicatorSpec.markLine)
|
|
71569
71711
|
};
|
|
71570
71712
|
}
|
|
@@ -71617,6 +71759,14 @@
|
|
|
71617
71759
|
});
|
|
71618
71760
|
}
|
|
71619
71761
|
updateFilterRules(filterRules) {
|
|
71762
|
+
this._throttledUpdateFilterRules(filterRules);
|
|
71763
|
+
}
|
|
71764
|
+
_throttledUpdateFilterRules(filterRules) {
|
|
71765
|
+
this._latestFilterRules = filterRules, null === this._throttleTimer && (this._executeFilterUpdate(filterRules), this._throttleTimer = window.setTimeout(() => {
|
|
71766
|
+
this._latestFilterRules !== filterRules && this._executeFilterUpdate(this._latestFilterRules), this._throttleTimer = null;
|
|
71767
|
+
}, 200));
|
|
71768
|
+
}
|
|
71769
|
+
_executeFilterUpdate(filterRules) {
|
|
71620
71770
|
this.internalProps.dataConfig.filterRules = filterRules, this.dataset.updateFilterRules(filterRules), clearChartCacheImage(this.scenegraph), updateChartData(this.scenegraph), this.render();
|
|
71621
71771
|
}
|
|
71622
71772
|
clearChartCacheImage(col, row) {
|
|
@@ -79854,7 +80004,7 @@
|
|
|
79854
80004
|
const Checkbox = React.forwardRef(CheckboxComponent);
|
|
79855
80005
|
Checkbox.displayName = 'Checkbox';
|
|
79856
80006
|
|
|
79857
|
-
const version = "1.0.
|
|
80007
|
+
const version = "1.0.19";
|
|
79858
80008
|
|
|
79859
80009
|
exports.Arc = Arc;
|
|
79860
80010
|
exports.Avatar = Avatar;
|