@visactor/vtable-calendar 1.22.7-alpha.2 → 1.22.7-alpha.4
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/dist/vtable-calendar.js +103 -79
- package/dist/vtable-calendar.min.js +1 -1
- package/package.json +4 -4
package/dist/vtable-calendar.js
CHANGED
|
@@ -9498,7 +9498,7 @@
|
|
|
9498
9498
|
}
|
|
9499
9499
|
}]), noAnimateAttrs && this.setAttributesAndPreventAnimate(noAnimateAttrs, !1, {
|
|
9500
9500
|
type: AttributeUpdateType.STATE
|
|
9501
|
-
});
|
|
9501
|
+
}), this.finalAttribute && Object.assign(this.finalAttribute, attrs);
|
|
9502
9502
|
} else this.stopStateAnimates(), this.setAttributesAndPreventAnimate(attrs, !1, {
|
|
9503
9503
|
type: AttributeUpdateType.STATE
|
|
9504
9504
|
}), this.finalAttribute && Object.assign(this.finalAttribute, attrs);
|
|
@@ -9524,7 +9524,7 @@
|
|
|
9524
9524
|
getNormalAttribute(key) {
|
|
9525
9525
|
var _a, _b;
|
|
9526
9526
|
const value = this.attribute[key];
|
|
9527
|
-
return this.animates ? null === (_a = this.finalAttribute) || void 0 === _a ? void 0 : _a[key] : null != value ? value : null === (_b = this.finalAttribute) || void 0 === _b ? void 0 : _b[key];
|
|
9527
|
+
return this.animates && this.animates.size ? null === (_a = this.finalAttribute) || void 0 === _a ? void 0 : _a[key] : null != value ? value : null === (_b = this.finalAttribute) || void 0 === _b ? void 0 : _b[key];
|
|
9528
9528
|
}
|
|
9529
9529
|
clearStates(hasAnimation) {
|
|
9530
9530
|
this.hasState() && this.normalAttrs ? (this.currentStates = [], this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)) : this.currentStates = [], this.normalAttrs = null;
|
|
@@ -34932,9 +34932,7 @@
|
|
|
34932
34932
|
DELETE_RECORD: "delete_record",
|
|
34933
34933
|
UPDATE_RECORD: "update_record",
|
|
34934
34934
|
ADD_COLUMN: "add_column",
|
|
34935
|
-
DELETE_COLUMN: "delete_column"
|
|
34936
|
-
FILTER_MENU_SHOW: "filter_menu_show",
|
|
34937
|
-
FILTER_MENU_HIDE: "filter_menu_hide"
|
|
34935
|
+
DELETE_COLUMN: "delete_column"
|
|
34938
34936
|
};
|
|
34939
34937
|
|
|
34940
34938
|
const judgeType = value => {
|
|
@@ -43788,39 +43786,53 @@
|
|
|
43788
43786
|
for (let i = rowStart; i <= rowEnd; i++) {
|
|
43789
43787
|
const cellGroup = table.scenegraph.getCell(col, i),
|
|
43790
43788
|
chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
|
|
43791
|
-
chartNode.addUpdateShapeAndBoundsTag(), chartInstanceListColumnByColumnDirection[col][i] || isValid$3(chartNode) && (chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance),
|
|
43792
|
-
var _a, _b, _c, _d;
|
|
43789
|
+
chartNode.addUpdateShapeAndBoundsTag(), chartInstanceListColumnByColumnDirection[col][i] || isValid$3(chartNode) && (chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListColumnByColumnDirection[col][i] = chartNode.activeChartInstance), setTimeout(() => {
|
|
43790
|
+
var _a, _b, _c, _d, _e, _f;
|
|
43793
43791
|
if (null === (_a = chartInstanceListColumnByColumnDirection[col]) || void 0 === _a ? void 0 : _a[i]) {
|
|
43794
|
-
const
|
|
43795
|
-
chartDimensionLinkage = table.options.chartDimensionLinkage;
|
|
43792
|
+
const chartDimensionLinkage = table.options.chartDimensionLinkage;
|
|
43796
43793
|
let isShowTooltip = !isScatter;
|
|
43797
|
-
if (!isScatter && "object" == typeof chartDimensionLinkage
|
|
43798
|
-
const
|
|
43794
|
+
if (!isScatter && "object" == typeof chartDimensionLinkage) if (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, i === rowEnd && isShowTooltip) {
|
|
43795
|
+
const heightLimitToShowTooltipForEdgeRow = null !== (_c = chartDimensionLinkage.heightLimitToShowTooltipForEdgeRow) && void 0 !== _c ? _c : 0,
|
|
43799
43796
|
{
|
|
43800
43797
|
rowEnd: rowEnd1
|
|
43801
|
-
} = table.getBodyVisibleRowRange(-
|
|
43798
|
+
} = table.getBodyVisibleRowRange(0, -heightLimitToShowTooltipForEdgeRow);
|
|
43802
43799
|
if (rowEnd1 === rowEnd) isShowTooltip = !0;else {
|
|
43803
43800
|
const {
|
|
43804
43801
|
rowEnd: rowEnd2
|
|
43805
|
-
} = table.getBodyVisibleRowRange(5);
|
|
43802
|
+
} = table.getBodyVisibleRowRange(0, 5);
|
|
43806
43803
|
isShowTooltip = rowEnd2 !== rowEnd;
|
|
43807
43804
|
}
|
|
43808
|
-
}
|
|
43809
|
-
|
|
43810
|
-
|
|
43811
|
-
|
|
43812
|
-
|
|
43813
|
-
|
|
43814
|
-
|
|
43815
|
-
|
|
43816
|
-
|
|
43817
|
-
|
|
43818
|
-
showTooltipOption: {
|
|
43819
|
-
x: canvasXY.x,
|
|
43820
|
-
y: absolutePosition.top + 3,
|
|
43821
|
-
activeType: "dimension"
|
|
43805
|
+
} else if (i === rowStart && isShowTooltip) {
|
|
43806
|
+
const heightLimitToShowTooltipForEdgeRow = null !== (_d = chartDimensionLinkage.heightLimitToShowTooltipForEdgeRow) && void 0 !== _d ? _d : 0,
|
|
43807
|
+
{
|
|
43808
|
+
rowStart: rowStart1
|
|
43809
|
+
} = table.getBodyVisibleRowRange(heightLimitToShowTooltipForEdgeRow, 0);
|
|
43810
|
+
if (rowStart1 === rowStart) isShowTooltip = !0;else {
|
|
43811
|
+
const {
|
|
43812
|
+
rowStart: rowStart2
|
|
43813
|
+
} = table.getBodyVisibleRowRange(0, -5);
|
|
43814
|
+
isShowTooltip = rowStart2 !== rowStart;
|
|
43822
43815
|
}
|
|
43823
|
-
}
|
|
43816
|
+
}
|
|
43817
|
+
if (isScatter) null === (_f = (_e = chartInstanceListColumnByColumnDirection[col][i]).showCrosshair) || void 0 === _f || _f.call(_e, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue);else {
|
|
43818
|
+
const bodyBoundryTop = table.frozenRowCount ? table.getCellRelativeRect(col, table.frozenRowCount - 1).bottom : 0,
|
|
43819
|
+
absolutePositionTop = Math.max(bodyBoundryTop, table.getCellRelativeRect(col, i).top);
|
|
43820
|
+
hideTooltip ? (table.stateManager.hover.cellPos.col === col && table.stateManager.hover.cellPos.row === i || chartInstanceListColumnByColumnDirection[col][i].hideTooltip(), chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
43821
|
+
tooltip: !1,
|
|
43822
|
+
showTooltipOption: {
|
|
43823
|
+
x: canvasXY.x,
|
|
43824
|
+
y: absolutePositionTop,
|
|
43825
|
+
activeType: "dimension"
|
|
43826
|
+
}
|
|
43827
|
+
})) : chartInstanceListColumnByColumnDirection[col][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
43828
|
+
tooltip: isShowTooltip,
|
|
43829
|
+
showTooltipOption: {
|
|
43830
|
+
x: canvasXY.x,
|
|
43831
|
+
y: absolutePositionTop,
|
|
43832
|
+
activeType: "dimension"
|
|
43833
|
+
}
|
|
43834
|
+
});
|
|
43835
|
+
}
|
|
43824
43836
|
}
|
|
43825
43837
|
}, 0), table.scenegraph.updateNextFrame();
|
|
43826
43838
|
}
|
|
@@ -43852,39 +43864,53 @@
|
|
|
43852
43864
|
for (let i = colStart; i <= colEnd; i++) {
|
|
43853
43865
|
const cellGroup = table.scenegraph.getCell(i, row),
|
|
43854
43866
|
chartNode = null === (_a = null == cellGroup ? void 0 : cellGroup.getChildren()) || void 0 === _a ? void 0 : _a[0];
|
|
43855
|
-
chartNode.addUpdateShapeAndBoundsTag(), chartInstanceListRowByRowDirection[row][i] || isValid$3(chartNode) && (chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListRowByRowDirection[row][i] = chartNode.activeChartInstance),
|
|
43867
|
+
chartNode.addUpdateShapeAndBoundsTag(), chartInstanceListRowByRowDirection[row][i] || isValid$3(chartNode) && (chartNode.activeChartInstance || chartNode.activate(table), chartInstanceListRowByRowDirection[row][i] = chartNode.activeChartInstance), setTimeout(() => {
|
|
43856
43868
|
var _a, _b, _c, _d;
|
|
43857
43869
|
if (null === (_a = chartInstanceListRowByRowDirection[row]) || void 0 === _a ? void 0 : _a[i]) {
|
|
43858
|
-
const
|
|
43859
|
-
chartDimensionLinkage = table.options.chartDimensionLinkage;
|
|
43870
|
+
const chartDimensionLinkage = table.options.chartDimensionLinkage;
|
|
43860
43871
|
let isShowTooltip = !isScatter;
|
|
43861
|
-
if (!isScatter && "object" == typeof chartDimensionLinkage
|
|
43862
|
-
const
|
|
43872
|
+
if (!isScatter && "object" == typeof chartDimensionLinkage) if (isShowTooltip = null === (_b = chartDimensionLinkage.showTooltip) || void 0 === _b || _b, i === colEnd && isShowTooltip) {
|
|
43873
|
+
const widthLimitToShowTooltipForEdgeColumn = chartDimensionLinkage.widthLimitToShowTooltipForEdgeColumn,
|
|
43863
43874
|
{
|
|
43864
43875
|
colEnd: colEnd1
|
|
43865
|
-
} = table.getBodyVisibleColRange(-
|
|
43876
|
+
} = table.getBodyVisibleColRange(0, -widthLimitToShowTooltipForEdgeColumn);
|
|
43866
43877
|
if (colEnd1 === colEnd) isShowTooltip = !0;else {
|
|
43867
43878
|
const {
|
|
43868
43879
|
colEnd: colEnd2
|
|
43869
|
-
} = table.getBodyVisibleColRange(5);
|
|
43880
|
+
} = table.getBodyVisibleColRange(0, 5);
|
|
43870
43881
|
isShowTooltip = colEnd2 !== colEnd;
|
|
43871
43882
|
}
|
|
43872
|
-
}
|
|
43873
|
-
|
|
43874
|
-
|
|
43875
|
-
|
|
43876
|
-
|
|
43877
|
-
|
|
43878
|
-
|
|
43879
|
-
|
|
43880
|
-
|
|
43881
|
-
|
|
43882
|
-
showTooltipOption: {
|
|
43883
|
-
x: absolutePosition.left + 3,
|
|
43884
|
-
y: canvasXY.y,
|
|
43885
|
-
activeType: "dimension"
|
|
43883
|
+
} else if (i === colStart && isShowTooltip) {
|
|
43884
|
+
const widthLimitToShowTooltipForEdgeColumn = chartDimensionLinkage.widthLimitToShowTooltipForEdgeColumn,
|
|
43885
|
+
{
|
|
43886
|
+
colStart: colStart1
|
|
43887
|
+
} = table.getBodyVisibleColRange(widthLimitToShowTooltipForEdgeColumn, 0);
|
|
43888
|
+
if (colStart1 === colStart) isShowTooltip = !0;else {
|
|
43889
|
+
const {
|
|
43890
|
+
colStart: colStart2
|
|
43891
|
+
} = table.getBodyVisibleColRange(0, -5);
|
|
43892
|
+
isShowTooltip = colStart2 !== colStart;
|
|
43886
43893
|
}
|
|
43887
|
-
}
|
|
43894
|
+
}
|
|
43895
|
+
if (isScatter) null === (_d = (_c = chartInstanceListRowByRowDirection[row][i]).showCrosshair) || void 0 === _d || _d.call(_c, axis => "left" === axis.layoutOrient ? positionValueOrYValue : dimensionValueOrXValue);else {
|
|
43896
|
+
const bodyBoundryLeft = table.frozenColCount ? table.getCellRelativeRect(table.frozenColCount - 1, row).right : 0,
|
|
43897
|
+
absolutePositionLeft = Math.max(bodyBoundryLeft, table.getCellRelativeRect(i, row).left);
|
|
43898
|
+
hideTooltip ? (table.stateManager.hover.cellPos.col === i && table.stateManager.hover.cellPos.row === row || chartInstanceListRowByRowDirection[row][i].hideTooltip(), chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
43899
|
+
tooltip: !1,
|
|
43900
|
+
showTooltipOption: {
|
|
43901
|
+
x: absolutePositionLeft,
|
|
43902
|
+
y: canvasXY.y,
|
|
43903
|
+
activeType: "dimension"
|
|
43904
|
+
}
|
|
43905
|
+
})) : chartInstanceListRowByRowDirection[row][i].setDimensionIndex(dimensionValueOrXValue, {
|
|
43906
|
+
tooltip: isShowTooltip,
|
|
43907
|
+
showTooltipOption: {
|
|
43908
|
+
x: absolutePositionLeft,
|
|
43909
|
+
y: canvasXY.y,
|
|
43910
|
+
activeType: "dimension"
|
|
43911
|
+
}
|
|
43912
|
+
});
|
|
43913
|
+
}
|
|
43888
43914
|
}
|
|
43889
43915
|
}, 0), table.scenegraph.updateNextFrame();
|
|
43890
43916
|
}
|
|
@@ -44608,7 +44634,14 @@
|
|
|
44608
44634
|
} = drawParams;
|
|
44609
44635
|
layer.main && drawParams.clear && hoverColor && (context.beginPath(), context.fillStyle = hoverColor, context.rect(viewBox.x1, viewBox.y1, viewBox.x2 - viewBox.x1, viewBox.y2 - viewBox.y1), context.fill());
|
|
44610
44636
|
}
|
|
44611
|
-
}
|
|
44637
|
+
},
|
|
44638
|
+
componentShowContent: table.options.chartDimensionLinkage ? {
|
|
44639
|
+
tooltip: {
|
|
44640
|
+
dimension: !1,
|
|
44641
|
+
mark: !0
|
|
44642
|
+
},
|
|
44643
|
+
crosshair: !1
|
|
44644
|
+
} : void 0
|
|
44612
44645
|
}));
|
|
44613
44646
|
const chartStage = this.activeChartInstance.getStage(),
|
|
44614
44647
|
matrix = this.globalTransMatrix.clone(),
|
|
@@ -44646,7 +44679,7 @@
|
|
|
44646
44679
|
indicatorsAsCol ? generateChartInstanceListByRowDirection(row, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1) : generateChartInstanceListByColumnDirection(col, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1);
|
|
44647
44680
|
}, 100)) : indicatorsAsCol ? generateChartInstanceListByRowDirection(row, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1) : generateChartInstanceListByColumnDirection(col, dimensionValue, null, canvasXY, table, justShowMarkTooltip, !1), indicatorsAsCol) {
|
|
44648
44681
|
const series = dimensionInfo.data[0].series,
|
|
44649
|
-
width = "histogram" === this.attribute.spec.type || "
|
|
44682
|
+
width = "histogram" === this.attribute.spec.type || "line" === series.type || "area" === series.type ? 0 : series.getYAxisHelper().getBandwidth(0);
|
|
44650
44683
|
let y = series.valueToPositionY(dimensionValue);
|
|
44651
44684
|
const axisConfig = getAxisConfigInPivotChart(table.rowHeaderLevelCount - 1, row, table.internalProps.layoutMap);
|
|
44652
44685
|
let hoverOnLabelValue = yValue;
|
|
@@ -44664,7 +44697,7 @@
|
|
|
44664
44697
|
axisConfig.labelHoverOnAxis && table.scenegraph.getCell(table.rowHeaderLevelCount - 1, row).firstChild.showLabelHoverOnAxis(y + ("line" === series.type || "area" === series.type ? 0 : width / 2), hoverOnLabelValue);
|
|
44665
44698
|
} else {
|
|
44666
44699
|
const series = dimensionInfo.data[0].series,
|
|
44667
|
-
width = "histogram" === this.attribute.spec.type || "
|
|
44700
|
+
width = "histogram" === this.attribute.spec.type || "line" === series.type || "area" === series.type ? 0 : series.getXAxisHelper().getBandwidth(0);
|
|
44668
44701
|
let x = series.valueToPositionX(dimensionValue);
|
|
44669
44702
|
const axisConfig = getAxisConfigInPivotChart(col, table.rowCount - table.bottomFrozenRowCount, table.internalProps.layoutMap);
|
|
44670
44703
|
let hoverOnLabelValue = dimensionValue;
|
|
@@ -55979,7 +56012,7 @@
|
|
|
55979
56012
|
class PluginManager {
|
|
55980
56013
|
constructor(table, options) {
|
|
55981
56014
|
var _a;
|
|
55982
|
-
this.plugins = new Map(), this.
|
|
56015
|
+
this.plugins = new Map(), this.table = table, null === (_a = options.plugins) || void 0 === _a || _a.map(plugin => {
|
|
55983
56016
|
this.register(plugin), this._bindTableEventForPlugin(plugin);
|
|
55984
56017
|
});
|
|
55985
56018
|
}
|
|
@@ -55998,30 +56031,23 @@
|
|
|
55998
56031
|
_bindTableEventForPlugin(plugin) {
|
|
55999
56032
|
var _a;
|
|
56000
56033
|
null === (_a = plugin.runTime) || void 0 === _a || _a.forEach(runTime => {
|
|
56001
|
-
|
|
56034
|
+
this.table.on(runTime, (...args) => {
|
|
56002
56035
|
var _a;
|
|
56003
56036
|
null === (_a = plugin.run) || void 0 === _a || _a.call(plugin, ...args, runTime, this.table);
|
|
56004
56037
|
});
|
|
56005
|
-
this.pluginEventMap.set(plugin.id, [...(this.pluginEventMap.get(plugin.id) || []), id]);
|
|
56006
56038
|
});
|
|
56007
56039
|
}
|
|
56008
|
-
|
|
56040
|
+
updatePlugins(plugins) {
|
|
56009
56041
|
Array.from(this.plugins.values()).filter(plugin => !(null == plugins ? void 0 : plugins.some(p => p.id === plugin.id))).forEach(plugin => {
|
|
56010
|
-
|
|
56011
|
-
|
|
56012
|
-
|
|
56013
|
-
}), this.release(), this.plugins.delete(plugin.id);
|
|
56042
|
+
this.release(), this.plugins.delete(plugin.id);
|
|
56043
|
+
}), this.plugins.forEach(plugin => {
|
|
56044
|
+
plugin.update && plugin.update();
|
|
56014
56045
|
});
|
|
56015
56046
|
const addedPlugins = null == plugins ? void 0 : plugins.filter(plugin => !this.plugins.has(plugin.id));
|
|
56016
56047
|
null == addedPlugins || addedPlugins.forEach(plugin => {
|
|
56017
56048
|
this.register(plugin), this._bindTableEventForPlugin(plugin);
|
|
56018
56049
|
});
|
|
56019
56050
|
}
|
|
56020
|
-
updatePlugins(plugins) {
|
|
56021
|
-
null == plugins || plugins.forEach(plugin => {
|
|
56022
|
-
plugin.update && plugin.update();
|
|
56023
|
-
});
|
|
56024
|
-
}
|
|
56025
56051
|
release() {
|
|
56026
56052
|
this.plugins.forEach(plugin => {
|
|
56027
56053
|
var _a;
|
|
@@ -56044,7 +56070,7 @@
|
|
|
56044
56070
|
}
|
|
56045
56071
|
constructor(container, options = {}) {
|
|
56046
56072
|
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;
|
|
56047
|
-
if (super(), this.showFrozenIcon = !0, this.version = "1.22.7-alpha.
|
|
56073
|
+
if (super(), this.showFrozenIcon = !0, this.version = "1.22.7-alpha.4", 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");
|
|
56048
56074
|
this.pluginManager = new PluginManager(this, options), this.fireListeners(TABLE_EVENT_TYPE.BEFORE_INIT, {
|
|
56049
56075
|
options: options,
|
|
56050
56076
|
container: container
|
|
@@ -56660,13 +56686,11 @@
|
|
|
56660
56686
|
this.colContentWidthsMap.put(col, width);
|
|
56661
56687
|
}
|
|
56662
56688
|
getAllRowsHeight() {
|
|
56663
|
-
|
|
56664
|
-
if (!(null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.rowCount) || this.internalProps.rowCount <= 0) return 0;
|
|
56689
|
+
if (this.internalProps.rowCount <= 0) return 0;
|
|
56665
56690
|
return this.getRowsHeight(0, this.internalProps.rowCount - 1);
|
|
56666
56691
|
}
|
|
56667
56692
|
getAllColsWidth() {
|
|
56668
|
-
|
|
56669
|
-
if (!(null === (_a = this.internalProps) || void 0 === _a ? void 0 : _a.colCount) || this.internalProps.colCount <= 0) return 0;
|
|
56693
|
+
if (this.internalProps.colCount <= 0) return 0;
|
|
56670
56694
|
return this.getColsWidth(0, this.internalProps.colCount - 1);
|
|
56671
56695
|
}
|
|
56672
56696
|
getColsWidths() {
|
|
@@ -56887,7 +56911,7 @@
|
|
|
56887
56911
|
colEnd: colEnd
|
|
56888
56912
|
};
|
|
56889
56913
|
}
|
|
56890
|
-
getBodyVisibleRowRange(
|
|
56914
|
+
getBodyVisibleRowRange(start_deltaY = 0, end_deltaY = 0) {
|
|
56891
56915
|
const {
|
|
56892
56916
|
scrollTop: scrollTop
|
|
56893
56917
|
} = this,
|
|
@@ -56895,14 +56919,14 @@
|
|
|
56895
56919
|
bottomFrozenRowsHeight = this.getBottomFrozenRowsHeight(),
|
|
56896
56920
|
{
|
|
56897
56921
|
row: rowStart
|
|
56898
|
-
} = this.getRowAt(scrollTop + frozenRowsHeight + 1),
|
|
56899
|
-
rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight ? this.getRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight +
|
|
56922
|
+
} = this.getRowAt(scrollTop + frozenRowsHeight + 1 + start_deltaY),
|
|
56923
|
+
rowEnd = this.getAllRowsHeight() > this.tableNoFrameHeight ? this.getRowAt(scrollTop + this.tableNoFrameHeight - 1 - bottomFrozenRowsHeight + end_deltaY).row : this.rowCount - 1;
|
|
56900
56924
|
return rowEnd < 0 ? null : {
|
|
56901
56925
|
rowStart: rowStart,
|
|
56902
56926
|
rowEnd: rowEnd
|
|
56903
56927
|
};
|
|
56904
56928
|
}
|
|
56905
|
-
getBodyVisibleColRange(
|
|
56929
|
+
getBodyVisibleColRange(start_deltaX = 0, end_deltaX = 0) {
|
|
56906
56930
|
const {
|
|
56907
56931
|
scrollLeft: scrollLeft
|
|
56908
56932
|
} = this,
|
|
@@ -56910,8 +56934,8 @@
|
|
|
56910
56934
|
rightFrozenColsWidth = this.getRightFrozenColsWidth(),
|
|
56911
56935
|
{
|
|
56912
56936
|
col: colStart
|
|
56913
|
-
} = this.getColAt(scrollLeft + frozenColsWidth + 1),
|
|
56914
|
-
colEnd = this.getAllColsWidth() > this.tableNoFrameWidth ? this.getColAt(scrollLeft + this.tableNoFrameWidth - 1 - rightFrozenColsWidth +
|
|
56937
|
+
} = this.getColAt(scrollLeft + frozenColsWidth + 1 + start_deltaX),
|
|
56938
|
+
colEnd = this.getAllColsWidth() > this.tableNoFrameWidth ? this.getColAt(scrollLeft + this.tableNoFrameWidth - 1 - rightFrozenColsWidth + end_deltaX).col : this.colCount - 1;
|
|
56915
56939
|
return colEnd < 0 ? null : {
|
|
56916
56940
|
colStart: colStart,
|
|
56917
56941
|
colEnd: colEnd
|
|
@@ -61478,7 +61502,7 @@
|
|
|
61478
61502
|
}) {
|
|
61479
61503
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
61480
61504
|
const internalProps = this.internalProps;
|
|
61481
|
-
if (
|
|
61505
|
+
if (super.updateOption(options, updateConfig), internalProps.frozenColDragHeaderMode = null !== (_b = null === (_a = options.dragOrder) || void 0 === _a ? void 0 : _a.frozenColDragHeaderMode) && void 0 !== _b ? _b : options.frozenColDragHeaderMode, this.pagination = options.pagination, internalProps.sortState = options.sortState, internalProps.dataConfig = this.internalProps.groupBy ? getGroupByDataConfig(this.internalProps.groupBy, options.addRecordRule) : {
|
|
61482
61506
|
addRecordRule: options.addRecordRule
|
|
61483
61507
|
}, this.showHeader = null === (_c = options.showHeader) || void 0 === _c || _c, internalProps.columns = options.columns ? cloneDeepSpec(options.columns, ["children"]) : options.header ? cloneDeepSpec(options.header, ["children"]) : [], generateAggregationForColumn(this), internalProps.enableTreeNodeMerge = null !== (_e = null !== (_d = options.enableTreeNodeMerge) && void 0 !== _d ? _d : isValid$3(this.internalProps.groupBy)) && void 0 !== _e && _e, this.internalProps.headerHelper.setTableColumnsEditor(), this.transpose = null !== (_f = options.transpose) && void 0 !== _f && _f, this.refreshHeader(), this.internalProps.useOneRowHeightFillAll = !1, this.internalProps.columnWidthConfig = options.columnWidthConfig, this.internalProps.rowHeightConfig = options.rowHeightConfig, internalProps.releaseList) for (let i = internalProps.releaseList.length - 1; i >= 0; i--) {
|
|
61484
61508
|
const releaseObj = internalProps.releaseList[i];
|
|
@@ -61724,7 +61748,7 @@
|
|
|
61724
61748
|
}).map(key => this.stateManager.checkedState.get(key));
|
|
61725
61749
|
return this.options.groupBy && (stateArr = getGroupCheckboxState(this)), Array.from(stateArr, state => state && state[field]);
|
|
61726
61750
|
}
|
|
61727
|
-
return
|
|
61751
|
+
return new Array(...this.stateManager.checkedState.values());
|
|
61728
61752
|
}
|
|
61729
61753
|
getCellCheckboxState(col, row) {
|
|
61730
61754
|
var _a;
|