@visactor/vtable 1.3.0 → 1.3.1-alpha.0
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/PivotTable.js +17 -11
- package/cjs/PivotTable.js.map +1 -1
- package/cjs/components/empty-tip/empty-tip.js +2 -2
- 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 +2 -0
- package/cjs/dataset/dataset.js +8 -7
- 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/pivot-header-layout.js +17 -13
- package/cjs/layout/pivot-header-layout.js.map +1 -1
- package/cjs/scenegraph/group-creater/cell-helper.js +2 -2
- package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/cjs/scenegraph/layout/frozen.js +12 -4
- package/cjs/scenegraph/layout/frozen.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +111 -23
- package/dist/vtable.min.js +2 -2
- package/es/PivotTable.js +17 -11
- package/es/PivotTable.js.map +1 -1
- package/es/components/empty-tip/empty-tip.js +2 -2
- 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 +2 -0
- package/es/dataset/dataset.js +8 -7
- 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/pivot-header-layout.js +17 -13
- package/es/layout/pivot-header-layout.js.map +1 -1
- package/es/scenegraph/group-creater/cell-helper.js +2 -2
- package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
- package/es/scenegraph/layout/frozen.js +12 -4
- package/es/scenegraph/layout/frozen.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +5 -5
package/dist/vtable.js
CHANGED
|
@@ -39305,10 +39305,10 @@
|
|
|
39305
39305
|
for (let col = range.start.col; col <= range.end.col; col++) {
|
|
39306
39306
|
for (let row = range.start.row; row <= range.end.row; row++) {
|
|
39307
39307
|
const cellGroup = table.scenegraph.getCell(col, row, true);
|
|
39308
|
-
if (cellGroup.role === 'cell' && range.start.row !== range.end.row && cellGroup.
|
|
39308
|
+
if (cellGroup.role === 'cell' && range.start.row !== range.end.row && cellGroup.contentHeight !== cellHeight) {
|
|
39309
39309
|
updateCellContentHeight(cellGroup, cellHeight, cellHeight, table.isAutoRowHeight(row), padding, textAlign, textBaseline);
|
|
39310
39310
|
}
|
|
39311
|
-
if (cellGroup.role === 'cell' && range.start.col !== range.end.col && cellGroup.
|
|
39311
|
+
if (cellGroup.role === 'cell' && range.start.col !== range.end.col && cellGroup.contentWidth !== cellWidth) {
|
|
39312
39312
|
updateCellContentWidth(cellGroup, cellWidth, cellHeight, 0, table.isAutoRowHeight(row), padding, textAlign, textBaseline, table.scenegraph);
|
|
39313
39313
|
}
|
|
39314
39314
|
cellGroup.contentWidth = cellWidth;
|
|
@@ -47915,6 +47915,9 @@
|
|
|
47915
47915
|
}
|
|
47916
47916
|
}
|
|
47917
47917
|
else if (scene.table.frozenColCount < scene.table.rowHeaderLevelCount) {
|
|
47918
|
+
scene.bodyGroup.setAttribute('height', scene.rowHeaderGroup.attribute.height);
|
|
47919
|
+
scene.bodyGroup.setAttribute('y', scene.rowHeaderGroup.attribute.y);
|
|
47920
|
+
scene.colHeaderGroup.setAttribute('height', scene.cornerHeaderGroup.attribute.height);
|
|
47918
47921
|
for (let i = 0; i < scene.table.rowHeaderLevelCount - scene.table.frozenColCount; i++) {
|
|
47919
47922
|
moveColumnFromRowHeaderToBody(scene);
|
|
47920
47923
|
moveColumnFromCornerHeaderToColHeader(scene);
|
|
@@ -47941,6 +47944,9 @@
|
|
|
47941
47944
|
}
|
|
47942
47945
|
function resetFrozen(scene) {
|
|
47943
47946
|
if (scene.frozenColCount > scene.table.frozenColCount) {
|
|
47947
|
+
scene.bodyGroup.setAttribute('height', scene.rowHeaderGroup.attribute.height);
|
|
47948
|
+
scene.bodyGroup.setAttribute('y', scene.rowHeaderGroup.attribute.y);
|
|
47949
|
+
scene.colHeaderGroup.setAttribute('height', scene.cornerHeaderGroup.attribute.height);
|
|
47944
47950
|
for (let i = 0; i < scene.frozenColCount - scene.table.frozenColCount; i++) {
|
|
47945
47951
|
moveColumnFromRowHeaderToBody(scene);
|
|
47946
47952
|
moveColumnFromCornerHeaderToColHeader(scene);
|
|
@@ -59205,7 +59211,7 @@
|
|
|
59205
59211
|
return TABLE_EVENT_TYPE;
|
|
59206
59212
|
}
|
|
59207
59213
|
options;
|
|
59208
|
-
version = "1.3.0";
|
|
59214
|
+
version = "1.3.1-alpha.0";
|
|
59209
59215
|
pagination;
|
|
59210
59216
|
id = `VTable${Date.now()}`;
|
|
59211
59217
|
headerStyleCache;
|
|
@@ -64078,10 +64084,12 @@
|
|
|
64078
64084
|
const topHeaderHeight = !this.table.transpose || this.table.options.indicatorsAsCol
|
|
64079
64085
|
? this.table.getFrozenRowsHeight()
|
|
64080
64086
|
: 0;
|
|
64081
|
-
const width = (this.table.columnHeaderLevelCount > 0
|
|
64082
|
-
|
|
64083
|
-
|
|
64084
|
-
|
|
64087
|
+
const width = (this.table.columnHeaderLevelCount > 0 && this.table.isListTable()
|
|
64088
|
+
? this.table.getDrawRange().width
|
|
64089
|
+
: this.table.tableNoFrameWidth) - leftHeaderWidth;
|
|
64090
|
+
const height = (this.table.rowHeaderLevelCount > 0 && this.table.isListTable()
|
|
64091
|
+
? this.table.getDrawRange().height
|
|
64092
|
+
: this.table.tableNoFrameHeight) - topHeaderHeight;
|
|
64085
64093
|
this._emptyTipComponent.setAttributes({
|
|
64086
64094
|
spaceBetweenTextAndIcon: this._emptyTipOption.spaceBetweenTextAndIcon,
|
|
64087
64095
|
x: this.table.tableX + leftHeaderWidth,
|
|
@@ -64124,10 +64132,12 @@
|
|
|
64124
64132
|
const topHeaderHeight = !this.table.transpose || this.table.options.indicatorsAsCol
|
|
64125
64133
|
? this.table.getFrozenRowsHeight()
|
|
64126
64134
|
: 0;
|
|
64127
|
-
const width = (this.table.columnHeaderLevelCount > 0
|
|
64128
|
-
|
|
64129
|
-
|
|
64130
|
-
|
|
64135
|
+
const width = (this.table.columnHeaderLevelCount > 0 && this.table.isListTable()
|
|
64136
|
+
? this.table.getDrawRange().width
|
|
64137
|
+
: this.table.tableNoFrameWidth) - leftHeaderWidth;
|
|
64138
|
+
const height = (this.table.rowHeaderLevelCount > 0 && this.table.isListTable()
|
|
64139
|
+
? this.table.getDrawRange().height
|
|
64140
|
+
: this.table.tableNoFrameHeight) - topHeaderHeight;
|
|
64131
64141
|
return {
|
|
64132
64142
|
spaceBetweenTextAndIcon: this._emptyTipOption.spaceBetweenTextAndIcon,
|
|
64133
64143
|
x: this.table.tableX + leftHeaderWidth,
|
|
@@ -65657,7 +65667,15 @@
|
|
|
65657
65667
|
}
|
|
65658
65668
|
this.sharedVar.seqId = Math.max(this.sharedVar.seqId, this._headerObjects.length);
|
|
65659
65669
|
if (this.cornerSetting.titleOnDimension === 'column') {
|
|
65660
|
-
|
|
65670
|
+
let colDimensionKeys = this.columnDimensionTree.dimensionKeysIncludeVirtual.valueArr();
|
|
65671
|
+
if ((this.dataset.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
65672
|
+
colDimensionKeys = this.columnsDefine.map(define => {
|
|
65673
|
+
if (typeof define === 'string') {
|
|
65674
|
+
return define;
|
|
65675
|
+
}
|
|
65676
|
+
return define.dimensionKey;
|
|
65677
|
+
});
|
|
65678
|
+
}
|
|
65661
65679
|
this.cornerHeaderObjs = this._addCornerHeaders(this.columnHeaderTitle ? [''].concat(colDimensionKeys) : colDimensionKeys, this.columnsDefine);
|
|
65662
65680
|
}
|
|
65663
65681
|
else if (this.cornerSetting.titleOnDimension === 'row') {
|
|
@@ -65673,7 +65691,15 @@
|
|
|
65673
65691
|
this.cornerHeaderObjs = this._addCornerHeaders(this.rowHeaderTitle ? [''].concat(rowTreeFirstKey) : rowTreeFirstKey, this.rowsDefine.concat(extensionRowDimensions));
|
|
65674
65692
|
}
|
|
65675
65693
|
else {
|
|
65676
|
-
|
|
65694
|
+
let rowDimensionKeys = this.rowDimensionTree.dimensionKeysIncludeVirtual.valueArr();
|
|
65695
|
+
if ((this.dataset.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
65696
|
+
rowDimensionKeys = this.rowsDefine.map(define => {
|
|
65697
|
+
if (typeof define === 'string') {
|
|
65698
|
+
return define;
|
|
65699
|
+
}
|
|
65700
|
+
return define.dimensionKey;
|
|
65701
|
+
});
|
|
65702
|
+
}
|
|
65677
65703
|
this.cornerHeaderObjs = this._addCornerHeaders(this.rowHeaderTitle ? [''].concat(rowDimensionKeys) : rowDimensionKeys, this.rowsDefine);
|
|
65678
65704
|
}
|
|
65679
65705
|
}
|
|
@@ -66331,6 +66357,19 @@
|
|
|
66331
66357
|
: this.columnDimensionTree.totalLevel
|
|
66332
66358
|
: this.columnDimensionTree.totalLevel
|
|
66333
66359
|
: this.columnDimensionTree.totalLevel;
|
|
66360
|
+
if (count === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
66361
|
+
if (this.cornerSetting.titleOnDimension === 'row') {
|
|
66362
|
+
count = 1;
|
|
66363
|
+
}
|
|
66364
|
+
else if ((this.dataset.records?.length ?? 0) === 0 && this.cornerSetting.titleOnDimension === 'column') {
|
|
66365
|
+
count = this.columnsDefine.length ?? 0;
|
|
66366
|
+
}
|
|
66367
|
+
}
|
|
66368
|
+
else if ((this.dataset.records?.length ?? 0) === 0 &&
|
|
66369
|
+
!this.dataset.customColTree &&
|
|
66370
|
+
!this.dataset.customRowTree) {
|
|
66371
|
+
count = this.columnsDefine.length;
|
|
66372
|
+
}
|
|
66334
66373
|
if (this.columnHeaderTitle) {
|
|
66335
66374
|
count += 1;
|
|
66336
66375
|
}
|
|
@@ -66364,6 +66403,19 @@
|
|
|
66364
66403
|
this.rowDimensionKeys[this.rowDimensionKeys.length - 1] === this.indicatorDimensionKey) {
|
|
66365
66404
|
count = rowLevelCount - 1;
|
|
66366
66405
|
}
|
|
66406
|
+
if (count === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
66407
|
+
if (this.cornerSetting.titleOnDimension === 'column') {
|
|
66408
|
+
count = 1;
|
|
66409
|
+
}
|
|
66410
|
+
else if ((this.dataset.records?.length ?? 0) === 0 && this.cornerSetting.titleOnDimension === 'row') {
|
|
66411
|
+
count = this.rowsDefine.length ?? 0;
|
|
66412
|
+
}
|
|
66413
|
+
}
|
|
66414
|
+
else if ((this.dataset.records?.length ?? 0) === 0 &&
|
|
66415
|
+
!this.dataset.customColTree &&
|
|
66416
|
+
!this.dataset.customRowTree) {
|
|
66417
|
+
count = this.rowsDefine.length;
|
|
66418
|
+
}
|
|
66367
66419
|
if (this.rowHeaderTitle) {
|
|
66368
66420
|
count += 1;
|
|
66369
66421
|
}
|
|
@@ -66478,16 +66530,16 @@
|
|
|
66478
66530
|
return '';
|
|
66479
66531
|
}
|
|
66480
66532
|
else if (this.isCornerHeader(col, row)) {
|
|
66481
|
-
return this._cornerHeaderCellIds[row][col - this.leftRowSeriesNumberColumnCount];
|
|
66533
|
+
return this._cornerHeaderCellIds[row]?.[col - this.leftRowSeriesNumberColumnCount];
|
|
66482
66534
|
}
|
|
66483
66535
|
else if (this.isColumnHeader(col, row)) {
|
|
66484
|
-
return this._columnHeaderCellIds[row][col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount];
|
|
66536
|
+
return this._columnHeaderCellIds[row]?.[col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount];
|
|
66485
66537
|
}
|
|
66486
66538
|
else if (this.isRowHeader(col, row)) {
|
|
66487
66539
|
return this._rowHeaderCellIds[row - this.columnHeaderLevelCount]?.[col - this.leftRowSeriesNumberColumnCount];
|
|
66488
66540
|
}
|
|
66489
66541
|
else if (this.isRightFrozenColumn(col, row)) {
|
|
66490
|
-
return this._rowHeaderCellIds[row - this.columnHeaderLevelCount][this.rowHeaderLevelCount - 1];
|
|
66542
|
+
return this._rowHeaderCellIds[row - this.columnHeaderLevelCount]?.[this.rowHeaderLevelCount - 1];
|
|
66491
66543
|
}
|
|
66492
66544
|
else if (this.isBottomFrozenRow(col, row)) {
|
|
66493
66545
|
return this._columnHeaderCellIds[this.columnHeaderLevelCount - 1]?.[col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount];
|
|
@@ -68321,7 +68373,9 @@
|
|
|
68321
68373
|
collectedValues = {};
|
|
68322
68374
|
cacheCollectedValues = {};
|
|
68323
68375
|
rows;
|
|
68376
|
+
rowsHasValue;
|
|
68324
68377
|
columns;
|
|
68378
|
+
columnsHasValue;
|
|
68325
68379
|
indicatorKeys;
|
|
68326
68380
|
customRowTree;
|
|
68327
68381
|
customColTree;
|
|
@@ -68381,6 +68435,8 @@
|
|
|
68381
68435
|
this.rowFlatKeys = {};
|
|
68382
68436
|
this.colKeys = [];
|
|
68383
68437
|
this.rowKeys = [];
|
|
68438
|
+
this.rowsHasValue = [];
|
|
68439
|
+
this.columnsHasValue = [];
|
|
68384
68440
|
if (records) {
|
|
68385
68441
|
this.records = records;
|
|
68386
68442
|
typeof window !== 'undefined' ? window.performance.now() : 0;
|
|
@@ -68401,19 +68457,25 @@
|
|
|
68401
68457
|
}
|
|
68402
68458
|
else {
|
|
68403
68459
|
if (this.rowHierarchyType === 'tree') {
|
|
68404
|
-
this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows,
|
|
68460
|
+
this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows.filter((key, index) => {
|
|
68461
|
+
return this.rowsHasValue[index];
|
|
68462
|
+
}), this.indicatorsAsCol ? undefined : this.indicators, this.totals?.row?.showGrandTotals ||
|
|
68405
68463
|
(!this.indicatorsAsCol && this.columns.length === 0) ||
|
|
68406
68464
|
(this.indicatorsAsCol && this.rows.length === 0), this.rowGrandTotalLabel);
|
|
68407
68465
|
}
|
|
68408
68466
|
else {
|
|
68409
|
-
this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows
|
|
68467
|
+
this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows.filter((key, index) => {
|
|
68468
|
+
return this.rowsHasValue[index];
|
|
68469
|
+
}), this.indicatorsAsCol ? undefined : this.indicators, this.rowsIsTotal, this.totals?.row?.showGrandTotals || (this.indicatorsAsCol && this.rows.length === 0), this.rowGrandTotalLabel, this.rowSubTotalLabel, this.totals?.row?.showGrandTotalsOnTop ?? false, this.totals?.row?.showSubTotalsOnTop ?? false);
|
|
68410
68470
|
}
|
|
68411
68471
|
}
|
|
68412
68472
|
if (this.customColTree) {
|
|
68413
68473
|
this.colHeaderTree = this.customColTree;
|
|
68414
68474
|
}
|
|
68415
68475
|
else {
|
|
68416
|
-
this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns
|
|
68476
|
+
this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns.filter((key, index) => {
|
|
68477
|
+
return this.columnsHasValue[index];
|
|
68478
|
+
}), this.indicatorsAsCol ? this.indicators : undefined, this.colsIsTotal, this.totals?.column?.showGrandTotals || (!this.indicatorsAsCol && this.columns.length === 0), this.colGrandTotalLabel, this.colSubTotalLabel, this.totals?.column?.showGrandTotalsOnLeft ?? false, this.totals?.column?.showSubTotalsOnLeft ?? false);
|
|
68417
68479
|
}
|
|
68418
68480
|
typeof window !== 'undefined' ? window.performance.now() : 0;
|
|
68419
68481
|
if (this.dataConfig?.isPivotChart) {
|
|
@@ -68610,6 +68672,7 @@
|
|
|
68610
68672
|
for (let l = 0, len1 = this.rows.length; l < len1; l++) {
|
|
68611
68673
|
const rowAttr = this.rows[l];
|
|
68612
68674
|
if (rowAttr in record) {
|
|
68675
|
+
this.rowsHasValue[l] = true;
|
|
68613
68676
|
rowKey.push(record[rowAttr]);
|
|
68614
68677
|
}
|
|
68615
68678
|
else if (rowAttr !== IndicatorDimensionKeyPlaceholder) {
|
|
@@ -68635,6 +68698,7 @@
|
|
|
68635
68698
|
for (let n = 0, len2 = this.columns.length; n < len2; n++) {
|
|
68636
68699
|
const colAttr = this.columns[n];
|
|
68637
68700
|
if (colAttr in record) {
|
|
68701
|
+
this.columnsHasValue[n] = true;
|
|
68638
68702
|
colKey.push(record[colAttr]);
|
|
68639
68703
|
}
|
|
68640
68704
|
else if (colAttr !== IndicatorDimensionKeyPlaceholder) {
|
|
@@ -68760,16 +68824,22 @@
|
|
|
68760
68824
|
this.sortKeys();
|
|
68761
68825
|
if (!this.customRowTree) {
|
|
68762
68826
|
if (this.rowHierarchyType === 'tree') {
|
|
68763
|
-
this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows,
|
|
68827
|
+
this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows.filter((key, index) => {
|
|
68828
|
+
return this.rowsHasValue[index];
|
|
68829
|
+
}), this.indicatorsAsCol ? undefined : this.indicators, this.totals?.row?.showGrandTotals ||
|
|
68764
68830
|
(!this.indicatorsAsCol && this.columns.length === 0) ||
|
|
68765
68831
|
(this.indicatorsAsCol && this.rows.length === 0), this.rowGrandTotalLabel);
|
|
68766
68832
|
}
|
|
68767
68833
|
else {
|
|
68768
|
-
this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows
|
|
68834
|
+
this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows.filter((key, index) => {
|
|
68835
|
+
return this.rowsHasValue[index];
|
|
68836
|
+
}), this.indicatorsAsCol ? undefined : this.indicators, this.rowsIsTotal, this.totals?.row?.showGrandTotals || (this.indicatorsAsCol && this.rows.length === 0), this.rowGrandTotalLabel, this.rowSubTotalLabel, this.totals?.row?.showGrandTotalsOnTop ?? false, this.totals?.row?.showSubTotalsOnTop ?? false);
|
|
68769
68837
|
}
|
|
68770
68838
|
}
|
|
68771
68839
|
if (!this.customColTree) {
|
|
68772
|
-
this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns
|
|
68840
|
+
this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns.filter((key, index) => {
|
|
68841
|
+
return this.columnsHasValue[index];
|
|
68842
|
+
}), this.indicatorsAsCol ? this.indicators : undefined, this.colsIsTotal, this.totals?.column?.showGrandTotals || (!this.indicatorsAsCol && this.columns.length === 0), this.colGrandTotalLabel, this.colSubTotalLabel, this.totals?.column?.showGrandTotalsOnLeft ?? false, this.totals?.column?.showSubTotalsOnLeft ?? false);
|
|
68773
68843
|
}
|
|
68774
68844
|
}
|
|
68775
68845
|
updateFilterRules(filterRules, isResetTree = false) {
|
|
@@ -69483,12 +69553,18 @@
|
|
|
69483
69553
|
if (options.indicatorsAsCol !== false) {
|
|
69484
69554
|
this.dataset.colHeaderTree = supplementIndicatorNodesForCustomTree(this.dataset.colHeaderTree, options.indicators);
|
|
69485
69555
|
}
|
|
69556
|
+
if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
69557
|
+
this.dataset.colHeaderTree = [];
|
|
69558
|
+
}
|
|
69486
69559
|
columnDimensionTree = new DimensionTree(this.dataset.colHeaderTree ?? [], this.layoutNodeId);
|
|
69487
69560
|
}
|
|
69488
69561
|
if (!options.rowTree) {
|
|
69489
69562
|
if (options.indicatorsAsCol === false) {
|
|
69490
69563
|
this.dataset.rowHeaderTree = supplementIndicatorNodesForCustomTree(this.dataset.rowHeaderTree, options.indicators);
|
|
69491
69564
|
}
|
|
69565
|
+
if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
69566
|
+
this.dataset.rowHeaderTree = [];
|
|
69567
|
+
}
|
|
69492
69568
|
rowDimensionTree = new DimensionTree(this.dataset.rowHeaderTree ?? [], this.layoutNodeId, this.options.rowHierarchyType, this.options.rowHierarchyType === 'tree' ? this.options.rowExpandLevel ?? 1 : undefined);
|
|
69493
69569
|
}
|
|
69494
69570
|
this.internalProps.layoutMap = new PivotHeaderLayoutMap(this, this.dataset, columnDimensionTree, rowDimensionTree);
|
|
@@ -69621,12 +69697,18 @@
|
|
|
69621
69697
|
if (options.indicatorsAsCol !== false) {
|
|
69622
69698
|
this.dataset.colHeaderTree = supplementIndicatorNodesForCustomTree(this.dataset.colHeaderTree, options.indicators);
|
|
69623
69699
|
}
|
|
69700
|
+
if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
69701
|
+
this.dataset.colHeaderTree = [];
|
|
69702
|
+
}
|
|
69624
69703
|
columnDimensionTree = new DimensionTree(this.dataset.colHeaderTree ?? [], this.layoutNodeId);
|
|
69625
69704
|
}
|
|
69626
69705
|
if (!options.rowTree) {
|
|
69627
69706
|
if (options.indicatorsAsCol === false) {
|
|
69628
69707
|
this.dataset.rowHeaderTree = supplementIndicatorNodesForCustomTree(this.dataset.rowHeaderTree, options.indicators);
|
|
69629
69708
|
}
|
|
69709
|
+
if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
69710
|
+
this.dataset.rowHeaderTree = [];
|
|
69711
|
+
}
|
|
69630
69712
|
rowDimensionTree = new DimensionTree(this.dataset.rowHeaderTree ?? [], this.layoutNodeId, this.options.rowHierarchyType, this.options.rowHierarchyType === 'tree' ? this.options.rowExpandLevel ?? 1 : undefined);
|
|
69631
69713
|
}
|
|
69632
69714
|
internalProps.layoutMap = new PivotHeaderLayoutMap(this, this.dataset, columnDimensionTree, rowDimensionTree);
|
|
@@ -70403,12 +70485,18 @@
|
|
|
70403
70485
|
columnDimensionTree = internalProps.layoutMap.columnDimensionTree;
|
|
70404
70486
|
}
|
|
70405
70487
|
else {
|
|
70488
|
+
if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
70489
|
+
this.dataset.colHeaderTree = [];
|
|
70490
|
+
}
|
|
70406
70491
|
columnDimensionTree = new DimensionTree(this.dataset.colHeaderTree ?? [], this.layoutNodeId);
|
|
70407
70492
|
}
|
|
70408
70493
|
if (options.rowTree) {
|
|
70409
70494
|
rowDimensionTree = internalProps.layoutMap.rowDimensionTree;
|
|
70410
70495
|
}
|
|
70411
70496
|
else {
|
|
70497
|
+
if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
70498
|
+
this.dataset.rowHeaderTree = [];
|
|
70499
|
+
}
|
|
70412
70500
|
rowDimensionTree = new DimensionTree(this.dataset.rowHeaderTree ?? [], this.layoutNodeId, this.options.rowHierarchyType, this.options.rowHierarchyType === 'tree' ? this.options.rowExpandLevel ?? 1 : undefined);
|
|
70413
70501
|
}
|
|
70414
70502
|
internalProps.layoutMap = new PivotHeaderLayoutMap(this, this.dataset, columnDimensionTree, rowDimensionTree);
|
|
@@ -72330,7 +72418,7 @@
|
|
|
72330
72418
|
}
|
|
72331
72419
|
|
|
72332
72420
|
registerForVrender();
|
|
72333
|
-
const version = "1.3.0";
|
|
72421
|
+
const version = "1.3.1-alpha.0";
|
|
72334
72422
|
function getIcons() {
|
|
72335
72423
|
return get$2();
|
|
72336
72424
|
}
|