@visactor/vtable 1.16.0 → 1.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/ListTable.js +2 -2
- package/cjs/ListTable.js.map +1 -1
- package/cjs/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/dataset/dataset.js +11 -11
- package/cjs/dataset/dataset.js.map +1 -1
- package/cjs/event/event.js +4 -3
- package/cjs/event/event.js.map +1 -1
- package/cjs/event/listener/table-group.js +1 -0
- package/cjs/event/listener/table-group.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js +20 -12
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +6 -3
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -1
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +16 -2
- package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
- package/cjs/scenegraph/scenegraph.js +17 -1
- package/cjs/scenegraph/scenegraph.js.map +1 -1
- package/cjs/scenegraph/style/frame-border.js +4 -0
- package/cjs/scenegraph/style/frame-border.js.map +1 -1
- package/cjs/state/state.d.ts +1 -1
- package/cjs/state/state.js +4 -4
- package/cjs/state/state.js.map +1 -1
- package/cjs/themes/theme.js +4 -0
- package/cjs/themes/theme.js.map +1 -1
- package/cjs/ts-types/base-table.d.ts +1 -0
- package/cjs/ts-types/base-table.js.map +1 -1
- package/cjs/ts-types/dataset/aggregation.js +3 -1
- package/cjs/ts-types/dataset/aggregation.js.map +1 -1
- package/cjs/ts-types/table-engine.d.ts +2 -0
- package/cjs/ts-types/table-engine.js.map +1 -1
- package/cjs/ts-types/theme.d.ts +3 -2
- package/cjs/ts-types/theme.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +130 -42
- package/dist/vtable.min.js +2 -2
- package/es/ListTable.js +2 -2
- package/es/ListTable.js.map +1 -1
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/dataset/dataset.js +11 -11
- package/es/dataset/dataset.js.map +1 -1
- package/es/event/event.js +4 -3
- package/es/event/event.js.map +1 -1
- package/es/event/listener/table-group.js +1 -0
- package/es/event/listener/table-group.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/scenegraph/group-creater/cell-helper.js +20 -12
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js +6 -3
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-x.js.map +1 -1
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +17 -1
- package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
- package/es/scenegraph/scenegraph.js +12 -1
- package/es/scenegraph/scenegraph.js.map +1 -1
- package/es/scenegraph/style/frame-border.js +4 -0
- package/es/scenegraph/style/frame-border.js.map +1 -1
- package/es/state/state.d.ts +1 -1
- package/es/state/state.js +4 -4
- package/es/state/state.js.map +1 -1
- package/es/themes/theme.js +4 -0
- package/es/themes/theme.js.map +1 -1
- package/es/ts-types/base-table.d.ts +1 -0
- package/es/ts-types/base-table.js.map +1 -1
- package/es/ts-types/dataset/aggregation.js +3 -1
- package/es/ts-types/dataset/aggregation.js.map +1 -1
- package/es/ts-types/table-engine.d.ts +2 -0
- package/es/ts-types/table-engine.js.map +1 -1
- package/es/ts-types/theme.d.ts +3 -2
- package/es/ts-types/theme.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +4 -4
package/dist/vtable.js
CHANGED
|
@@ -26687,6 +26687,8 @@
|
|
|
26687
26687
|
this.fieldValue = undefined;
|
|
26688
26688
|
}
|
|
26689
26689
|
recalculate() {
|
|
26690
|
+
this.fieldValue = undefined;
|
|
26691
|
+
this._formatedValue = undefined;
|
|
26690
26692
|
}
|
|
26691
26693
|
}
|
|
26692
26694
|
class RecalculateAggregator extends Aggregator {
|
|
@@ -30229,6 +30231,9 @@
|
|
|
30229
30231
|
},
|
|
30230
30232
|
get labelVisible() {
|
|
30231
30233
|
return columnResize.labelVisible ?? true;
|
|
30234
|
+
},
|
|
30235
|
+
get visibleOnHover() {
|
|
30236
|
+
return columnResize.visibleOnHover ?? false;
|
|
30232
30237
|
}
|
|
30233
30238
|
};
|
|
30234
30239
|
}
|
|
@@ -37152,30 +37157,7 @@
|
|
|
37152
37157
|
}
|
|
37153
37158
|
}
|
|
37154
37159
|
}
|
|
37155
|
-
|
|
37156
|
-
let renderDefault = true;
|
|
37157
|
-
if (customResult) {
|
|
37158
|
-
customElementsGroup = customResult.elementsGroup;
|
|
37159
|
-
renderDefault = customResult.renderDefault;
|
|
37160
|
-
}
|
|
37161
|
-
else {
|
|
37162
|
-
let customRender;
|
|
37163
|
-
let customLayout;
|
|
37164
|
-
const cellLocation = table.getCellLocation(col, row);
|
|
37165
|
-
if (cellLocation !== 'body') {
|
|
37166
|
-
customRender = define?.headerCustomRender;
|
|
37167
|
-
customLayout = define?.headerCustomLayout;
|
|
37168
|
-
}
|
|
37169
|
-
else {
|
|
37170
|
-
customRender = define?.customRender || table.customRender;
|
|
37171
|
-
customLayout = define?.customLayout;
|
|
37172
|
-
}
|
|
37173
|
-
if (customLayout || customRender) {
|
|
37174
|
-
const customResult = dealWithCustom(customLayout, customRender, col, row, cellWidth, cellHeight, false, table.isAutoRowHeight(row), padding, range, table);
|
|
37175
|
-
customElementsGroup = customResult.elementsGroup;
|
|
37176
|
-
renderDefault = customResult.renderDefault;
|
|
37177
|
-
}
|
|
37178
|
-
}
|
|
37160
|
+
const { customElementsGroup, renderDefault } = _generateCustomElementsGroup(table, define, col, row, cellWidth, cellHeight, padding, range, customResult);
|
|
37179
37161
|
const createTextCellGroup = Factory.getFunction('createTextCellGroup');
|
|
37180
37162
|
cellGroup = createTextCellGroup(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, mayHaveIcon, customElementsGroup, renderDefault, cellTheme, range, isAsync);
|
|
37181
37163
|
const axisConfig = table.internalProps.layoutMap.getAxisConfigInPivotChart(col, row);
|
|
@@ -37211,10 +37193,11 @@
|
|
|
37211
37193
|
cellGroup = createChartCellGroup(null, columnGroup, 0, y, col, row, cellWidth, cellHeight, padding, value, define.chartModule, table.internalProps.layoutMap.getChartSpec(col, row), chartInstance, table.internalProps.layoutMap.getChartDataId(col, row) ?? 'data', table, cellTheme, table.internalProps.layoutMap.isShareChartSpec(col, row), isAsync, table.internalProps.layoutMap.isNoChartDataRenderNothing(col, row));
|
|
37212
37194
|
}
|
|
37213
37195
|
else if (type === 'progressbar') {
|
|
37196
|
+
const { customElementsGroup, renderDefault } = _generateCustomElementsGroup(table, define, col, row, cellWidth, cellHeight, padding, range, customResult);
|
|
37214
37197
|
const style = table._getCellStyle(col, row);
|
|
37215
37198
|
const dataValue = table.getCellOriginValue(col, row);
|
|
37216
37199
|
const createTextCellGroup = Factory.getFunction('createTextCellGroup');
|
|
37217
|
-
cellGroup = createTextCellGroup(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, false,
|
|
37200
|
+
cellGroup = createTextCellGroup(table, value, columnGroup, 0, y, col, row, colWidth, cellWidth, cellHeight, padding, textAlign, textBaseline, false, customElementsGroup, renderDefault, cellTheme, range, isAsync);
|
|
37218
37201
|
const createProgressBarCell = Factory.getFunction('createProgressBarCell');
|
|
37219
37202
|
const progressBarGroup = createProgressBarCell(define, style, colWidth, value, dataValue, col, row, padding, table, range);
|
|
37220
37203
|
if (cellGroup.firstChild) {
|
|
@@ -37239,6 +37222,36 @@
|
|
|
37239
37222
|
cellGroup.onBeforeAttributeUpdate = onBeforeAttributeUpdateForInvertHighlight;
|
|
37240
37223
|
return cellGroup;
|
|
37241
37224
|
}
|
|
37225
|
+
function _generateCustomElementsGroup(table, define, col, row, cellWidth, cellHeight, padding, range, customResult) {
|
|
37226
|
+
let customElementsGroup;
|
|
37227
|
+
let renderDefault = true;
|
|
37228
|
+
if (customResult) {
|
|
37229
|
+
customElementsGroup = customResult.elementsGroup;
|
|
37230
|
+
renderDefault = customResult.renderDefault;
|
|
37231
|
+
}
|
|
37232
|
+
else {
|
|
37233
|
+
let customRender;
|
|
37234
|
+
let customLayout;
|
|
37235
|
+
const cellLocation = table.getCellLocation(col, row);
|
|
37236
|
+
if (cellLocation !== 'body') {
|
|
37237
|
+
customRender = define?.headerCustomRender;
|
|
37238
|
+
customLayout = define?.headerCustomLayout;
|
|
37239
|
+
}
|
|
37240
|
+
else {
|
|
37241
|
+
customRender = define?.customRender || table.customRender;
|
|
37242
|
+
customLayout = define?.customLayout;
|
|
37243
|
+
}
|
|
37244
|
+
if (customLayout || customRender) {
|
|
37245
|
+
const customResult = dealWithCustom(customLayout, customRender, col, row, cellWidth, cellHeight, false, table.isAutoRowHeight(row), padding, range, table);
|
|
37246
|
+
customElementsGroup = customResult.elementsGroup;
|
|
37247
|
+
renderDefault = customResult.renderDefault;
|
|
37248
|
+
}
|
|
37249
|
+
}
|
|
37250
|
+
return {
|
|
37251
|
+
customElementsGroup,
|
|
37252
|
+
renderDefault
|
|
37253
|
+
};
|
|
37254
|
+
}
|
|
37242
37255
|
function updateCell$1(col, row, table, addNew, isShadow, forceFastUpdate) {
|
|
37243
37256
|
const oldCellGroup = table.scenegraph.highPerformanceGetCell(col, row, true);
|
|
37244
37257
|
const cellLocation = table.getCellLocation(col, row);
|
|
@@ -40610,6 +40623,10 @@
|
|
|
40610
40623
|
? group.border.attribute.strokeArrayWidth[3]
|
|
40611
40624
|
: group.border.attribute.lineWidth ?? 0;
|
|
40612
40625
|
group.border.setAttributes({
|
|
40626
|
+
borderLeft,
|
|
40627
|
+
borderTop,
|
|
40628
|
+
borderRight,
|
|
40629
|
+
borderBottom,
|
|
40613
40630
|
width: group.attribute.width - borderLeft / 2 - borderRight / 2,
|
|
40614
40631
|
height: group.attribute.height - borderTop / 2 - borderBottom / 2
|
|
40615
40632
|
});
|
|
@@ -43814,7 +43831,13 @@
|
|
|
43814
43831
|
return;
|
|
43815
43832
|
}
|
|
43816
43833
|
containerGroup.setAttribute('width', lastColGroup.attribute.x + lastColGroup.attribute.width);
|
|
43817
|
-
containerGroup.border
|
|
43834
|
+
if (containerGroup.border) {
|
|
43835
|
+
const border = containerGroup.border;
|
|
43836
|
+
border.setAttribute('width', lastColGroup.attribute.x +
|
|
43837
|
+
lastColGroup.attribute.width -
|
|
43838
|
+
(border.attribute.borderLeft ?? 0) / 2 -
|
|
43839
|
+
(border.attribute.borderRight ?? 0) / 2);
|
|
43840
|
+
}
|
|
43818
43841
|
}
|
|
43819
43842
|
|
|
43820
43843
|
function updateAutoRow(colStart, colEnd, rowStart, rowEnd, table, direction = 'up', part) {
|
|
@@ -44134,9 +44157,30 @@
|
|
|
44134
44157
|
proxy.updateCellGroupContent(cellGroup);
|
|
44135
44158
|
}
|
|
44136
44159
|
}
|
|
44160
|
+
updateColumnContainerHeight(proxy.table.scenegraph.rowHeaderGroup);
|
|
44161
|
+
updateColumnContainerHeight(proxy.table.scenegraph.rightFrozenGroup);
|
|
44162
|
+
updateColumnContainerHeight(proxy.table.scenegraph.bodyGroup);
|
|
44137
44163
|
proxy.table.scenegraph.updateNextFrame();
|
|
44138
44164
|
return sync;
|
|
44139
44165
|
}
|
|
44166
|
+
function updateColumnContainerHeight(containerGroup) {
|
|
44167
|
+
const lastColGroup = getLastChild(containerGroup);
|
|
44168
|
+
if (!lastColGroup) {
|
|
44169
|
+
return;
|
|
44170
|
+
}
|
|
44171
|
+
const lastCellGroup = getLastChild(lastColGroup);
|
|
44172
|
+
if (!lastCellGroup) {
|
|
44173
|
+
return;
|
|
44174
|
+
}
|
|
44175
|
+
containerGroup.setAttribute('height', lastCellGroup.attribute.y + lastCellGroup.attribute.height);
|
|
44176
|
+
if (containerGroup.border) {
|
|
44177
|
+
const border = containerGroup.border;
|
|
44178
|
+
border.setAttribute('height', lastCellGroup.attribute.y +
|
|
44179
|
+
lastCellGroup.attribute.height -
|
|
44180
|
+
(border.attribute.borderTop ?? 0) / 2 -
|
|
44181
|
+
(border.attribute.borderBottom ?? 0) / 2);
|
|
44182
|
+
}
|
|
44183
|
+
}
|
|
44140
44184
|
|
|
44141
44185
|
async function sortVertical(proxy) {
|
|
44142
44186
|
proxy.table.scenegraph.bodyGroup.forEachChildren((colGroup, index) => {
|
|
@@ -49016,6 +49060,16 @@
|
|
|
49016
49060
|
: this.table.theme.bodyStyle.frameStyle, this.rowHeaderGroup.role, isListTableWithFrozen ? [true, false, true, true] : undefined);
|
|
49017
49061
|
createFrameBorder(this.colHeaderGroup, this.table.theme.headerStyle.frameStyle, this.colHeaderGroup.role, isListTableWithFrozen ? [true, true, true, false] : undefined);
|
|
49018
49062
|
createFrameBorder(this.cornerHeaderGroup, this.isPivot ? this.table.theme.cornerHeaderStyle.frameStyle : this.table.theme.headerStyle.frameStyle, this.cornerHeaderGroup.role, isListTableWithFrozen ? [true, false, true, true] : undefined);
|
|
49063
|
+
this.table.theme.cornerLeftBottomCellStyle?.frameStyle &&
|
|
49064
|
+
createFrameBorder(this.leftBottomCornerGroup, this.table.theme.cornerLeftBottomCellStyle.frameStyle, this.leftBottomCornerGroup.role, isListTableWithFrozen ? [true, false, true, true] : undefined);
|
|
49065
|
+
this.table.theme.bottomFrozenStyle?.frameStyle &&
|
|
49066
|
+
createFrameBorder(this.bottomFrozenGroup, this.table.theme.bottomFrozenStyle.frameStyle, this.bottomFrozenGroup.role, isListTableWithFrozen ? [true, true, true, false] : undefined);
|
|
49067
|
+
this.table.theme.rightFrozenStyle?.frameStyle &&
|
|
49068
|
+
createFrameBorder(this.rightFrozenGroup, this.table.theme.rightFrozenStyle.frameStyle, this.rightFrozenGroup.role, undefined);
|
|
49069
|
+
this.table.theme.cornerRightTopCellStyle?.frameStyle &&
|
|
49070
|
+
createFrameBorder(this.rightTopCornerGroup, this.table.theme.cornerRightTopCellStyle.frameStyle, this.rightTopCornerGroup.role, undefined);
|
|
49071
|
+
this.table.theme.cornerRightBottomCellStyle?.frameStyle &&
|
|
49072
|
+
createFrameBorder(this.rightBottomCornerGroup, this.table.theme.cornerRightBottomCellStyle.frameStyle, this.rightBottomCornerGroup.role, undefined);
|
|
49019
49073
|
createFrameBorder(this.tableGroup, this.table.theme.frameStyle, this.tableGroup.role, undefined);
|
|
49020
49074
|
}
|
|
49021
49075
|
getResizeColAt(abstractX, abstractY, cellGroup) {
|
|
@@ -49141,6 +49195,26 @@
|
|
|
49141
49195
|
this.cornerHeaderGroup.appendChild(this.cornerHeaderGroup.border);
|
|
49142
49196
|
updateFrameBorderSize(this.cornerHeaderGroup);
|
|
49143
49197
|
}
|
|
49198
|
+
if (this.leftBottomCornerGroup.border) {
|
|
49199
|
+
this.leftBottomCornerGroup.appendChild(this.leftBottomCornerGroup.border);
|
|
49200
|
+
updateFrameBorderSize(this.leftBottomCornerGroup);
|
|
49201
|
+
}
|
|
49202
|
+
if (this.bottomFrozenGroup.border) {
|
|
49203
|
+
this.bottomFrozenGroup.appendChild(this.bottomFrozenGroup.border);
|
|
49204
|
+
updateFrameBorderSize(this.bottomFrozenGroup);
|
|
49205
|
+
}
|
|
49206
|
+
if (this.rightFrozenGroup.border) {
|
|
49207
|
+
this.rightFrozenGroup.appendChild(this.rightFrozenGroup.border);
|
|
49208
|
+
updateFrameBorderSize(this.rightFrozenGroup);
|
|
49209
|
+
}
|
|
49210
|
+
if (this.rightTopCornerGroup.border) {
|
|
49211
|
+
this.rightTopCornerGroup.appendChild(this.rightTopCornerGroup.border);
|
|
49212
|
+
updateFrameBorderSize(this.rightTopCornerGroup);
|
|
49213
|
+
}
|
|
49214
|
+
if (this.rightBottomCornerGroup.border) {
|
|
49215
|
+
this.rightBottomCornerGroup.appendChild(this.rightBottomCornerGroup.border);
|
|
49216
|
+
updateFrameBorderSize(this.rightBottomCornerGroup);
|
|
49217
|
+
}
|
|
49144
49218
|
updateCornerRadius(this.table);
|
|
49145
49219
|
}
|
|
49146
49220
|
sortCell() {
|
|
@@ -52051,10 +52125,10 @@
|
|
|
52051
52125
|
}
|
|
52052
52126
|
}
|
|
52053
52127
|
}
|
|
52054
|
-
setDropDownMenuHighlight(
|
|
52055
|
-
this.menu.dropDownMenuHighlight =
|
|
52056
|
-
for (let i = 0; i <
|
|
52057
|
-
const { col, row } =
|
|
52128
|
+
setDropDownMenuHighlight(dropDownMenuInfo) {
|
|
52129
|
+
this.menu.dropDownMenuHighlight = dropDownMenuInfo;
|
|
52130
|
+
for (let i = 0; i < dropDownMenuInfo.length; i++) {
|
|
52131
|
+
const { col, row } = dropDownMenuInfo[i];
|
|
52058
52132
|
const range = this.table.getCellRange(col, row);
|
|
52059
52133
|
if (!range) {
|
|
52060
52134
|
continue;
|
|
@@ -52769,6 +52843,9 @@
|
|
|
52769
52843
|
}
|
|
52770
52844
|
eventManager.dealIconHover(eventArgsSet);
|
|
52771
52845
|
eventManager.dealTableHover(eventArgsSet);
|
|
52846
|
+
if (table.theme.columnResize.visibleOnHover) {
|
|
52847
|
+
eventManager.checkColumnResize(eventArgsSet, true);
|
|
52848
|
+
}
|
|
52772
52849
|
if (eventArgsSet.eventArgs && table.hasListeners(TABLE_EVENT_TYPE.MOUSEMOVE_CELL)) {
|
|
52773
52850
|
let icon;
|
|
52774
52851
|
let position;
|
|
@@ -54749,7 +54826,9 @@
|
|
|
54749
54826
|
if (this.table.eventManager.checkCellFillhandle(eventArgsSet)) {
|
|
54750
54827
|
this.table.fireListeners(TABLE_EVENT_TYPE.DBLCLICK_FILL_HANDLE, {});
|
|
54751
54828
|
}
|
|
54752
|
-
else if (this.table._canResizeColumn(resizeCol.col, resizeCol.row) &&
|
|
54829
|
+
else if (this.table._canResizeColumn(resizeCol.col, resizeCol.row) &&
|
|
54830
|
+
resizeCol.col >= 0 &&
|
|
54831
|
+
!this.table.options.disableDblclickAutoResizeColWidth) {
|
|
54753
54832
|
this.table.scenegraph.updateAutoColWidth(resizeCol.col);
|
|
54754
54833
|
this.table.internalProps._widthResizedColMap.add(resizeCol.col);
|
|
54755
54834
|
this.table.scenegraph.updateChartSizeForResizeColWidth(resizeCol.col);
|
|
@@ -54914,6 +54993,9 @@
|
|
|
54914
54993
|
}
|
|
54915
54994
|
return true;
|
|
54916
54995
|
}
|
|
54996
|
+
if (this.table.stateManager.isResizeCol()) {
|
|
54997
|
+
this.table.stateManager.endResizeCol();
|
|
54998
|
+
}
|
|
54917
54999
|
return false;
|
|
54918
55000
|
}
|
|
54919
55001
|
checkRowResize(eventArgsSet, update) {
|
|
@@ -59517,7 +59599,7 @@
|
|
|
59517
59599
|
return TABLE_EVENT_TYPE;
|
|
59518
59600
|
}
|
|
59519
59601
|
options;
|
|
59520
|
-
version = "1.16.
|
|
59602
|
+
version = "1.16.1";
|
|
59521
59603
|
pagination;
|
|
59522
59604
|
id = `VTable${Date.now()}`;
|
|
59523
59605
|
headerStyleCache;
|
|
@@ -66989,7 +67071,7 @@
|
|
|
66989
67071
|
return null;
|
|
66990
67072
|
}
|
|
66991
67073
|
getHierarchyState(col, row) {
|
|
66992
|
-
if (!this.options.groupBy) {
|
|
67074
|
+
if (!this.options.groupBy || (isArray$7(this.options.groupBy) && this.options.groupBy.length === 0)) {
|
|
66993
67075
|
const define = this.getBodyColumnDefine(col, row);
|
|
66994
67076
|
if (!define.tree) {
|
|
66995
67077
|
return HierarchyState.none;
|
|
@@ -67155,7 +67237,8 @@
|
|
|
67155
67237
|
this.stateManager.initLeftRecordsCheckState(this.records);
|
|
67156
67238
|
}
|
|
67157
67239
|
if (isValid$3(field)) {
|
|
67158
|
-
|
|
67240
|
+
const keys = Array.from(this.stateManager.checkedState.keys()).sort();
|
|
67241
|
+
let stateArr = keys.map(key => this.stateManager.checkedState.get(key));
|
|
67159
67242
|
if (this.options.groupBy) {
|
|
67160
67243
|
stateArr = getGroupCheckboxState(this);
|
|
67161
67244
|
}
|
|
@@ -76848,7 +76931,7 @@
|
|
|
76848
76931
|
return this.rowsHasValue[index];
|
|
76849
76932
|
}), this.indicatorsAsCol ? undefined : this.indicators, this.totals?.row?.showGrandTotals ||
|
|
76850
76933
|
(!this.indicatorsAsCol && this.columns.length === 0) ||
|
|
76851
|
-
(this.indicatorsAsCol && this.rows.length === 0), this.rowGrandTotalLabel);
|
|
76934
|
+
(this.indicatorsAsCol && this.rows.length === 0), this.rowGrandTotalLabel, this.totals?.row?.showGrandTotalsOnTop ?? false);
|
|
76852
76935
|
}
|
|
76853
76936
|
else {
|
|
76854
76937
|
this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows.filter((key, index) => {
|
|
@@ -77372,7 +77455,7 @@
|
|
|
77372
77455
|
return this.rowsHasValue[index];
|
|
77373
77456
|
}), this.indicatorsAsCol ? undefined : this.indicators, this.totals?.row?.showGrandTotals ||
|
|
77374
77457
|
(!this.indicatorsAsCol && this.columns.length === 0) ||
|
|
77375
|
-
(this.indicatorsAsCol && this.rows.length === 0), this.rowGrandTotalLabel);
|
|
77458
|
+
(this.indicatorsAsCol && this.rows.length === 0), this.rowGrandTotalLabel, this.totals?.row?.showGrandTotalsOnTop ?? false);
|
|
77376
77459
|
}
|
|
77377
77460
|
else {
|
|
77378
77461
|
this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows.filter((key, index) => {
|
|
@@ -77896,11 +77979,11 @@
|
|
|
77896
77979
|
}
|
|
77897
77980
|
}
|
|
77898
77981
|
}
|
|
77899
|
-
ArrToTree1(arr, rows, indicators, isGrandTotal, grandTotalLabel) {
|
|
77982
|
+
ArrToTree1(arr, rows, indicators, isGrandTotal, grandTotalLabel, showGrandTotalsOnTop) {
|
|
77900
77983
|
const result = [];
|
|
77901
77984
|
const concatStr = this.stringJoinChar;
|
|
77902
77985
|
const map = new Map();
|
|
77903
|
-
function addList(list) {
|
|
77986
|
+
function addList(list, isGrandTotal) {
|
|
77904
77987
|
const path = [];
|
|
77905
77988
|
let node;
|
|
77906
77989
|
list.forEach((value, index) => {
|
|
@@ -77931,15 +78014,20 @@
|
|
|
77931
78014
|
node.children.push(item);
|
|
77932
78015
|
}
|
|
77933
78016
|
else {
|
|
77934
|
-
|
|
78017
|
+
if (showGrandTotalsOnTop && isGrandTotal) {
|
|
78018
|
+
result.unshift(item);
|
|
78019
|
+
}
|
|
78020
|
+
else {
|
|
78021
|
+
result.push(item);
|
|
78022
|
+
}
|
|
77935
78023
|
}
|
|
77936
78024
|
}
|
|
77937
78025
|
node = item;
|
|
77938
78026
|
});
|
|
77939
78027
|
}
|
|
77940
|
-
arr.forEach(item => addList(item));
|
|
78028
|
+
arr.forEach(item => addList(item, false));
|
|
77941
78029
|
if (isGrandTotal) {
|
|
77942
|
-
addList([grandTotalLabel]);
|
|
78030
|
+
addList([grandTotalLabel], isGrandTotal);
|
|
77943
78031
|
}
|
|
77944
78032
|
return result;
|
|
77945
78033
|
}
|
|
@@ -81484,7 +81572,7 @@
|
|
|
81484
81572
|
}
|
|
81485
81573
|
|
|
81486
81574
|
registerForVrender();
|
|
81487
|
-
const version = "1.16.
|
|
81575
|
+
const version = "1.16.1";
|
|
81488
81576
|
function getIcons() {
|
|
81489
81577
|
return get$2();
|
|
81490
81578
|
}
|