@visactor/vtable 1.1.1-alpha.0 → 1.1.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 +7 -6
- package/cjs/ListTable.js.map +1 -1
- package/cjs/PivotChart.js +40 -19
- package/cjs/PivotChart.js.map +1 -1
- package/cjs/PivotTable.js +77 -34
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/components/empty-tip/empty-tip.js +1 -5
- package/cjs/components/empty-tip/empty-tip.js.map +1 -1
- package/cjs/core/BaseTable.js +1 -1
- package/cjs/core/BaseTable.js.map +1 -1
- package/cjs/dataset/dataset.d.ts +4 -1
- package/cjs/dataset/dataset.js +5 -5
- package/cjs/dataset/dataset.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +2 -2
- package/cjs/index.js.map +1 -1
- package/cjs/layout/tree-helper.js +1 -0
- package/cjs/plugins/themes.js +1 -2
- package/cjs/scenegraph/style/frame-border.js +3 -2
- package/cjs/scenegraph/style/frame-border.js.map +1 -1
- package/cjs/vrender.js +9 -9
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +184 -51
- package/dist/vtable.min.js +2 -2
- package/es/ListTable.js +6 -6
- package/es/ListTable.js.map +1 -1
- package/es/PivotChart.js +40 -19
- package/es/PivotChart.js.map +1 -1
- package/es/PivotTable.js +77 -34
- package/es/PivotTable.js.map +1 -1
- package/es/components/empty-tip/empty-tip.js +1 -5
- package/es/components/empty-tip/empty-tip.js.map +1 -1
- package/es/core/BaseTable.js +1 -1
- package/es/core/BaseTable.js.map +1 -1
- package/es/dataset/dataset.d.ts +4 -1
- package/es/dataset/dataset.js +5 -5
- package/es/dataset/dataset.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/layout/tree-helper.js +2 -1
- package/es/plugins/themes.js +1 -2
- package/es/scenegraph/style/frame-border.js +3 -2
- package/es/scenegraph/style/frame-border.js.map +1 -1
- package/es/vrender.js +2 -2
- package/es/vrender.js.map +1 -1
- package/package.json +3 -3
package/dist/vtable.js
CHANGED
|
@@ -22380,8 +22380,10 @@
|
|
|
22380
22380
|
}
|
|
22381
22381
|
registed = true;
|
|
22382
22382
|
preLoadAllModule();
|
|
22383
|
-
|
|
22384
|
-
|
|
22383
|
+
if (isBrowserEnv()) {
|
|
22384
|
+
loadBrowserEnv(container);
|
|
22385
|
+
}
|
|
22386
|
+
else if (isNodeEnv()) {
|
|
22385
22387
|
loadNodeEnv(container);
|
|
22386
22388
|
}
|
|
22387
22389
|
registerArc();
|
|
@@ -44440,6 +44442,9 @@
|
|
|
44440
44442
|
rectAttributes.y = borderTop / 2;
|
|
44441
44443
|
rectAttributes.pickable = false;
|
|
44442
44444
|
if (isTableGroup) {
|
|
44445
|
+
if (cornerRadius) {
|
|
44446
|
+
rectAttributes.cornerRadius = cornerRadius + (rectAttributes.lineWidth ?? 0) / 2;
|
|
44447
|
+
}
|
|
44443
44448
|
if (frameTheme.innerBorder) {
|
|
44444
44449
|
rectAttributes.x = group.attribute.x + borderLeft / 2;
|
|
44445
44450
|
rectAttributes.y = group.attribute.y + borderTop / 2;
|
|
@@ -60290,7 +60295,7 @@
|
|
|
60290
60295
|
return TABLE_EVENT_TYPE;
|
|
60291
60296
|
}
|
|
60292
60297
|
options;
|
|
60293
|
-
version = "1.1.1
|
|
60298
|
+
version = "1.1.1";
|
|
60294
60299
|
pagination;
|
|
60295
60300
|
id = `VTable${Date.now()}`;
|
|
60296
60301
|
headerStyleCache;
|
|
@@ -65163,17 +65168,17 @@
|
|
|
65163
65168
|
this.isReleased = true;
|
|
65164
65169
|
}
|
|
65165
65170
|
resetVisible() {
|
|
65166
|
-
if (!this.table.recordsCount || this.table.recordsCount === 0)
|
|
65167
|
-
this.
|
|
65168
|
-
|
|
65169
|
-
|
|
65170
|
-
|
|
65171
|
+
if (((!this.table.recordsCount || this.table.recordsCount === 0) &&
|
|
65172
|
+
this.table.internalProps.layoutMap.rowCount === this.table.internalProps.layoutMap.columnHeaderLevelCount) ||
|
|
65173
|
+
this.table.internalProps.layoutMap.colCount === this.table.internalProps.layoutMap.rowHeaderLevelCount) {
|
|
65174
|
+
if (!this.table.scenegraph.stage.defaultLayer.children.includes(this._emptyTipComponent)) {
|
|
65175
|
+
this.table.scenegraph.stage.defaultLayer.appendChild(this._emptyTipComponent);
|
|
65176
|
+
}
|
|
65171
65177
|
}
|
|
65172
65178
|
else {
|
|
65173
|
-
this.
|
|
65174
|
-
|
|
65175
|
-
}
|
|
65176
|
-
this._emptyTipComponent.hideAll();
|
|
65179
|
+
if (this.table.scenegraph.stage.defaultLayer.children.includes(this._emptyTipComponent)) {
|
|
65180
|
+
this.table.scenegraph.stage.defaultLayer.removeChild(this._emptyTipComponent);
|
|
65181
|
+
}
|
|
65177
65182
|
}
|
|
65178
65183
|
}
|
|
65179
65184
|
_getEmptyTipAttrs() {
|
|
@@ -65259,6 +65264,7 @@
|
|
|
65259
65264
|
}
|
|
65260
65265
|
else {
|
|
65261
65266
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this);
|
|
65267
|
+
this.internalProps.emptyTip.resetVisible();
|
|
65262
65268
|
}
|
|
65263
65269
|
}
|
|
65264
65270
|
setTimeout(() => {
|
|
@@ -65508,6 +65514,7 @@
|
|
|
65508
65514
|
}
|
|
65509
65515
|
else {
|
|
65510
65516
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this);
|
|
65517
|
+
this.internalProps.emptyTip.resetVisible();
|
|
65511
65518
|
}
|
|
65512
65519
|
}
|
|
65513
65520
|
return new Promise(resolve => {
|
|
@@ -65943,6 +65950,7 @@
|
|
|
65943
65950
|
}
|
|
65944
65951
|
else {
|
|
65945
65952
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this);
|
|
65953
|
+
this.internalProps.emptyTip.resetVisible();
|
|
65946
65954
|
}
|
|
65947
65955
|
}
|
|
65948
65956
|
this.render();
|
|
@@ -69818,7 +69826,7 @@
|
|
|
69818
69826
|
return indicatorKey === value.indicatorKey;
|
|
69819
69827
|
});
|
|
69820
69828
|
}
|
|
69821
|
-
getAggregator(rowKey = [], colKey = [], indicator, considerChangedValue = true) {
|
|
69829
|
+
getAggregator(rowKey = [], colKey = [], indicator, considerChangedValue = true, indicatorPosition) {
|
|
69822
69830
|
const indicatorIndex = this.indicatorKeys.indexOf(indicator);
|
|
69823
69831
|
let flatRowKey;
|
|
69824
69832
|
let flatColKey;
|
|
@@ -69826,22 +69834,26 @@
|
|
|
69826
69834
|
flatRowKey = rowKey;
|
|
69827
69835
|
}
|
|
69828
69836
|
else {
|
|
69829
|
-
|
|
69830
|
-
|
|
69831
|
-
|
|
69832
|
-
|
|
69833
|
-
|
|
69837
|
+
if (!indicatorPosition || indicatorPosition.position === 'row') {
|
|
69838
|
+
rowKey.map((key, i) => {
|
|
69839
|
+
if (key === indicator && (!isValid$3(indicatorPosition?.index) || i === indicatorPosition.index)) {
|
|
69840
|
+
rowKey.splice(i, 1);
|
|
69841
|
+
}
|
|
69842
|
+
});
|
|
69843
|
+
}
|
|
69834
69844
|
flatRowKey = rowKey.join(this.stringJoinChar);
|
|
69835
69845
|
}
|
|
69836
69846
|
if (typeof colKey === 'string') {
|
|
69837
69847
|
flatColKey = colKey;
|
|
69838
69848
|
}
|
|
69839
69849
|
else {
|
|
69840
|
-
|
|
69841
|
-
|
|
69842
|
-
|
|
69843
|
-
|
|
69844
|
-
|
|
69850
|
+
if (!indicatorPosition || indicatorPosition.position === 'col') {
|
|
69851
|
+
colKey.map((key, i) => {
|
|
69852
|
+
if (key === indicator && (!isValid$3(indicatorPosition?.index) || i === indicatorPosition.index)) {
|
|
69853
|
+
colKey.splice(i, 1);
|
|
69854
|
+
}
|
|
69855
|
+
});
|
|
69856
|
+
}
|
|
69845
69857
|
flatColKey = colKey.join(this.stringJoinChar);
|
|
69846
69858
|
}
|
|
69847
69859
|
const agg = this.tree[flatRowKey]?.[flatColKey]?.[indicatorIndex];
|
|
@@ -70528,6 +70540,7 @@
|
|
|
70528
70540
|
}
|
|
70529
70541
|
else {
|
|
70530
70542
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this);
|
|
70543
|
+
this.internalProps.emptyTip.resetVisible();
|
|
70531
70544
|
}
|
|
70532
70545
|
}
|
|
70533
70546
|
setTimeout(() => {
|
|
@@ -70665,6 +70678,7 @@
|
|
|
70665
70678
|
}
|
|
70666
70679
|
else {
|
|
70667
70680
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this);
|
|
70681
|
+
this.internalProps.emptyTip.resetVisible();
|
|
70668
70682
|
}
|
|
70669
70683
|
}
|
|
70670
70684
|
return new Promise(resolve => {
|
|
@@ -70771,13 +70785,26 @@
|
|
|
70771
70785
|
else if (this.dataset) {
|
|
70772
70786
|
const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
70773
70787
|
if (cellDimensionPath) {
|
|
70774
|
-
|
|
70788
|
+
let indicatorPosition;
|
|
70789
|
+
const colKeys = cellDimensionPath.colHeaderPaths.map((colPath, index) => {
|
|
70790
|
+
if (colPath.indicatorKey) {
|
|
70791
|
+
indicatorPosition = {
|
|
70792
|
+
position: 'col',
|
|
70793
|
+
index
|
|
70794
|
+
};
|
|
70795
|
+
}
|
|
70775
70796
|
return colPath.indicatorKey ?? colPath.value;
|
|
70776
70797
|
});
|
|
70777
|
-
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath) => {
|
|
70798
|
+
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath, index) => {
|
|
70799
|
+
if (rowPath.indicatorKey) {
|
|
70800
|
+
indicatorPosition = {
|
|
70801
|
+
position: 'row',
|
|
70802
|
+
index
|
|
70803
|
+
};
|
|
70804
|
+
}
|
|
70778
70805
|
return rowPath.indicatorKey ?? rowPath.value;
|
|
70779
70806
|
});
|
|
70780
|
-
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row));
|
|
70807
|
+
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row), true, indicatorPosition);
|
|
70781
70808
|
if (aggregator.records && aggregator.records.length >= 1) {
|
|
70782
70809
|
return aggregator.records[0][field];
|
|
70783
70810
|
}
|
|
@@ -70829,21 +70856,34 @@
|
|
|
70829
70856
|
}
|
|
70830
70857
|
else if (this.dataset) {
|
|
70831
70858
|
const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
70859
|
+
let indicatorPosition;
|
|
70832
70860
|
const colKeys = cellDimensionPath.colHeaderPaths
|
|
70833
70861
|
?.filter((path) => {
|
|
70834
70862
|
return !path.virtual;
|
|
70835
70863
|
})
|
|
70836
|
-
?.map((colPath) => {
|
|
70864
|
+
?.map((colPath, index) => {
|
|
70865
|
+
if (colPath.indicatorKey) {
|
|
70866
|
+
indicatorPosition = {
|
|
70867
|
+
position: 'col',
|
|
70868
|
+
index
|
|
70869
|
+
};
|
|
70870
|
+
}
|
|
70837
70871
|
return colPath.indicatorKey ?? colPath.value;
|
|
70838
70872
|
});
|
|
70839
70873
|
const rowKeys = cellDimensionPath.rowHeaderPaths
|
|
70840
70874
|
?.filter((path) => {
|
|
70841
70875
|
return !path.virtual;
|
|
70842
70876
|
})
|
|
70843
|
-
?.map((rowPath) => {
|
|
70877
|
+
?.map((rowPath, index) => {
|
|
70878
|
+
if (rowPath.indicatorKey) {
|
|
70879
|
+
indicatorPosition = {
|
|
70880
|
+
position: 'row',
|
|
70881
|
+
index
|
|
70882
|
+
};
|
|
70883
|
+
}
|
|
70844
70884
|
return rowPath.indicatorKey ?? rowPath.value;
|
|
70845
70885
|
});
|
|
70846
|
-
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row));
|
|
70886
|
+
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row), true, indicatorPosition);
|
|
70847
70887
|
const { fieldFormat } = this.internalProps.layoutMap.getBody(col, row);
|
|
70848
70888
|
return aggregator.formatValue
|
|
70849
70889
|
? aggregator.formatValue(col, row, this)
|
|
@@ -70879,14 +70919,27 @@
|
|
|
70879
70919
|
return dataValue;
|
|
70880
70920
|
}
|
|
70881
70921
|
else if (this.dataset) {
|
|
70922
|
+
let indicatorPosition;
|
|
70882
70923
|
const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
70883
|
-
const colKeys = cellDimensionPath.colHeaderPaths.map((colPath) => {
|
|
70924
|
+
const colKeys = cellDimensionPath.colHeaderPaths.map((colPath, index) => {
|
|
70925
|
+
if (colPath.indicatorKey) {
|
|
70926
|
+
indicatorPosition = {
|
|
70927
|
+
position: 'col',
|
|
70928
|
+
index
|
|
70929
|
+
};
|
|
70930
|
+
}
|
|
70884
70931
|
return colPath.indicatorKey ?? colPath.value;
|
|
70885
70932
|
});
|
|
70886
|
-
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath) => {
|
|
70933
|
+
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath, index) => {
|
|
70934
|
+
if (rowPath.indicatorKey) {
|
|
70935
|
+
indicatorPosition = {
|
|
70936
|
+
position: 'row',
|
|
70937
|
+
index
|
|
70938
|
+
};
|
|
70939
|
+
}
|
|
70887
70940
|
return rowPath.indicatorKey ?? rowPath.value;
|
|
70888
70941
|
});
|
|
70889
|
-
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row));
|
|
70942
|
+
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row), true, indicatorPosition);
|
|
70890
70943
|
return aggregator.value ? aggregator.value() : undefined;
|
|
70891
70944
|
}
|
|
70892
70945
|
else if (this.flatDataToObjects) {
|
|
@@ -70914,14 +70967,27 @@
|
|
|
70914
70967
|
return dataValue;
|
|
70915
70968
|
}
|
|
70916
70969
|
else if (this.dataset) {
|
|
70970
|
+
let indicatorPosition;
|
|
70917
70971
|
const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
70918
|
-
const colKeys = cellDimensionPath.colHeaderPaths.map((colPath) => {
|
|
70972
|
+
const colKeys = cellDimensionPath.colHeaderPaths.map((colPath, index) => {
|
|
70973
|
+
if (colPath.indicatorKey) {
|
|
70974
|
+
indicatorPosition = {
|
|
70975
|
+
position: 'col',
|
|
70976
|
+
index
|
|
70977
|
+
};
|
|
70978
|
+
}
|
|
70919
70979
|
return colPath.indicatorKey ?? colPath.value;
|
|
70920
70980
|
});
|
|
70921
|
-
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath) => {
|
|
70981
|
+
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath, index) => {
|
|
70982
|
+
if (rowPath.indicatorKey) {
|
|
70983
|
+
indicatorPosition = {
|
|
70984
|
+
position: 'row',
|
|
70985
|
+
index
|
|
70986
|
+
};
|
|
70987
|
+
}
|
|
70922
70988
|
return rowPath.indicatorKey ?? rowPath.value;
|
|
70923
70989
|
});
|
|
70924
|
-
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row), false);
|
|
70990
|
+
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row), false, indicatorPosition);
|
|
70925
70991
|
return aggregator.value ? aggregator.value() : undefined;
|
|
70926
70992
|
}
|
|
70927
70993
|
else if (this.flatDataToObjects) {
|
|
@@ -70948,14 +71014,27 @@
|
|
|
70948
71014
|
return dataValue;
|
|
70949
71015
|
}
|
|
70950
71016
|
else if (this.dataset) {
|
|
71017
|
+
let indicatorPosition;
|
|
70951
71018
|
const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
70952
|
-
const colKeys = cellDimensionPath.colHeaderPaths.map((colPath) => {
|
|
71019
|
+
const colKeys = cellDimensionPath.colHeaderPaths.map((colPath, index) => {
|
|
71020
|
+
if (colPath.indicatorKey) {
|
|
71021
|
+
indicatorPosition = {
|
|
71022
|
+
position: 'col',
|
|
71023
|
+
index
|
|
71024
|
+
};
|
|
71025
|
+
}
|
|
70953
71026
|
return colPath.indicatorKey ?? colPath.value;
|
|
70954
71027
|
});
|
|
70955
|
-
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath) => {
|
|
71028
|
+
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath, index) => {
|
|
71029
|
+
if (rowPath.indicatorKey) {
|
|
71030
|
+
indicatorPosition = {
|
|
71031
|
+
position: 'row',
|
|
71032
|
+
index
|
|
71033
|
+
};
|
|
71034
|
+
}
|
|
70956
71035
|
return rowPath.indicatorKey ?? rowPath.value;
|
|
70957
71036
|
});
|
|
70958
|
-
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row));
|
|
71037
|
+
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row), true, indicatorPosition);
|
|
70959
71038
|
return aggregator.records;
|
|
70960
71039
|
}
|
|
70961
71040
|
else if (this.flatDataToObjects) {
|
|
@@ -70982,14 +71061,27 @@
|
|
|
70982
71061
|
return dataValue;
|
|
70983
71062
|
}
|
|
70984
71063
|
else if (this.dataset) {
|
|
71064
|
+
let indicatorPosition;
|
|
70985
71065
|
const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
70986
|
-
const colKeys = cellDimensionPath.colHeaderPaths.map((colPath) => {
|
|
71066
|
+
const colKeys = cellDimensionPath.colHeaderPaths.map((colPath, index) => {
|
|
71067
|
+
if (colPath.indicatorKey) {
|
|
71068
|
+
indicatorPosition = {
|
|
71069
|
+
position: 'col',
|
|
71070
|
+
index
|
|
71071
|
+
};
|
|
71072
|
+
}
|
|
70987
71073
|
return colPath.indicatorKey ?? colPath.value;
|
|
70988
71074
|
});
|
|
70989
|
-
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath) => {
|
|
71075
|
+
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath, index) => {
|
|
71076
|
+
if (rowPath.indicatorKey) {
|
|
71077
|
+
indicatorPosition = {
|
|
71078
|
+
position: 'row',
|
|
71079
|
+
index
|
|
71080
|
+
};
|
|
71081
|
+
}
|
|
70990
71082
|
return rowPath.indicatorKey ?? rowPath.value;
|
|
70991
71083
|
});
|
|
70992
|
-
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row));
|
|
71084
|
+
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row), false, indicatorPosition);
|
|
70993
71085
|
return aggregator.records;
|
|
70994
71086
|
}
|
|
70995
71087
|
else if (this.flatDataToObjects) {
|
|
@@ -71666,6 +71758,7 @@
|
|
|
71666
71758
|
}
|
|
71667
71759
|
else {
|
|
71668
71760
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this);
|
|
71761
|
+
this.internalProps.emptyTip.resetVisible();
|
|
71669
71762
|
}
|
|
71670
71763
|
}
|
|
71671
71764
|
setTimeout(() => {
|
|
@@ -71827,6 +71920,7 @@
|
|
|
71827
71920
|
}
|
|
71828
71921
|
else {
|
|
71829
71922
|
this.internalProps.emptyTip = new EmptyTip(this.options.emptyTip, this);
|
|
71923
|
+
this.internalProps.emptyTip.resetVisible();
|
|
71830
71924
|
}
|
|
71831
71925
|
}
|
|
71832
71926
|
return new Promise(resolve => {
|
|
@@ -71915,14 +72009,27 @@
|
|
|
71915
72009
|
return typeof fieldFormat === 'function' ? fieldFormat(title, col, row, this) : title;
|
|
71916
72010
|
}
|
|
71917
72011
|
if (this.dataset) {
|
|
72012
|
+
let indicatorPosition;
|
|
71918
72013
|
const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
71919
|
-
const colKeys = cellDimensionPath.colHeaderPaths.map((colPath) => {
|
|
72014
|
+
const colKeys = cellDimensionPath.colHeaderPaths.map((colPath, index) => {
|
|
72015
|
+
if (colPath.indicatorKey) {
|
|
72016
|
+
indicatorPosition = {
|
|
72017
|
+
position: 'col',
|
|
72018
|
+
index
|
|
72019
|
+
};
|
|
72020
|
+
}
|
|
71920
72021
|
return colPath.indicatorKey ?? colPath.value;
|
|
71921
72022
|
});
|
|
71922
|
-
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath) => {
|
|
72023
|
+
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath, index) => {
|
|
72024
|
+
if (rowPath.indicatorKey) {
|
|
72025
|
+
indicatorPosition = {
|
|
72026
|
+
position: 'row',
|
|
72027
|
+
index
|
|
72028
|
+
};
|
|
72029
|
+
}
|
|
71923
72030
|
return rowPath.indicatorKey ?? rowPath.value;
|
|
71924
72031
|
});
|
|
71925
|
-
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row));
|
|
72032
|
+
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row), true, indicatorPosition);
|
|
71926
72033
|
return aggregator.value ? aggregator.value() : undefined;
|
|
71927
72034
|
}
|
|
71928
72035
|
const { fieldFormat } = this.internalProps.layoutMap.getBody(col, row);
|
|
@@ -71954,14 +72061,27 @@
|
|
|
71954
72061
|
return typeof title === 'function' ? title() : title;
|
|
71955
72062
|
}
|
|
71956
72063
|
if (this.dataset) {
|
|
72064
|
+
let indicatorPosition;
|
|
71957
72065
|
const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
71958
|
-
const colKeys = cellDimensionPath.colHeaderPaths.map((colPath) => {
|
|
72066
|
+
const colKeys = cellDimensionPath.colHeaderPaths.map((colPath, index) => {
|
|
72067
|
+
if (colPath.indicatorKey) {
|
|
72068
|
+
indicatorPosition = {
|
|
72069
|
+
position: 'col',
|
|
72070
|
+
index
|
|
72071
|
+
};
|
|
72072
|
+
}
|
|
71959
72073
|
return colPath.indicatorKey ?? colPath.value;
|
|
71960
72074
|
});
|
|
71961
|
-
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath) => {
|
|
72075
|
+
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath, index) => {
|
|
72076
|
+
if (rowPath.indicatorKey) {
|
|
72077
|
+
indicatorPosition = {
|
|
72078
|
+
position: 'row',
|
|
72079
|
+
index
|
|
72080
|
+
};
|
|
72081
|
+
}
|
|
71962
72082
|
return rowPath.indicatorKey ?? rowPath.value;
|
|
71963
72083
|
});
|
|
71964
|
-
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row));
|
|
72084
|
+
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row), true, indicatorPosition);
|
|
71965
72085
|
return aggregator.value ? aggregator.value() : undefined;
|
|
71966
72086
|
}
|
|
71967
72087
|
const rowIndex = this.getBodyIndexByRow(row);
|
|
@@ -71978,14 +72098,27 @@
|
|
|
71978
72098
|
return undefined;
|
|
71979
72099
|
}
|
|
71980
72100
|
if (this.dataset) {
|
|
72101
|
+
let indicatorPosition;
|
|
71981
72102
|
const cellDimensionPath = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
|
|
71982
|
-
const colKeys = cellDimensionPath.colHeaderPaths.map((colPath) => {
|
|
72103
|
+
const colKeys = cellDimensionPath.colHeaderPaths.map((colPath, index) => {
|
|
72104
|
+
if (colPath.indicatorKey) {
|
|
72105
|
+
indicatorPosition = {
|
|
72106
|
+
position: 'col',
|
|
72107
|
+
index
|
|
72108
|
+
};
|
|
72109
|
+
}
|
|
71983
72110
|
return colPath.indicatorKey ?? colPath.value;
|
|
71984
72111
|
});
|
|
71985
|
-
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath) => {
|
|
72112
|
+
const rowKeys = cellDimensionPath.rowHeaderPaths.map((rowPath, index) => {
|
|
72113
|
+
if (rowPath.indicatorKey) {
|
|
72114
|
+
indicatorPosition = {
|
|
72115
|
+
position: 'row',
|
|
72116
|
+
index
|
|
72117
|
+
};
|
|
72118
|
+
}
|
|
71986
72119
|
return rowPath.indicatorKey ?? rowPath.value;
|
|
71987
72120
|
});
|
|
71988
|
-
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row));
|
|
72121
|
+
const aggregator = this.dataset.getAggregator(rowKeys, colKeys, this.internalProps.layoutMap.getIndicatorKey(col, row), true, indicatorPosition);
|
|
71989
72122
|
return aggregator.records;
|
|
71990
72123
|
}
|
|
71991
72124
|
return undefined;
|
|
@@ -73124,7 +73257,7 @@
|
|
|
73124
73257
|
}
|
|
73125
73258
|
|
|
73126
73259
|
registerForVrender();
|
|
73127
|
-
const version = "1.1.1
|
|
73260
|
+
const version = "1.1.1";
|
|
73128
73261
|
function getIcons() {
|
|
73129
73262
|
return get$2();
|
|
73130
73263
|
}
|