@visactor/vtable 1.3.1-alpha.0 → 1.3.1-alpha.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/PivotTable.js +11 -17
- 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/components/tooltip/TooltipHandler.js +1 -3
- package/cjs/components/tooltip/TooltipHandler.js.map +1 -1
- package/cjs/components/tooltip/logic/BubbleTooltipElement.js +7 -3
- package/cjs/components/tooltip/logic/BubbleTooltipElement.js.map +1 -1
- package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.js +1 -1
- package/cjs/components/tooltip/logic/BubbleTooltipElementStyle.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 +0 -2
- package/cjs/dataset/dataset.js +7 -8
- package/cjs/dataset/dataset.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/layout/pivot-header-layout.js +13 -17
- package/cjs/layout/pivot-header-layout.js.map +1 -1
- package/cjs/themes/theme.js +6 -0
- package/cjs/themes/theme.js.map +1 -1
- package/cjs/ts-types/icon.d.ts +2 -0
- package/cjs/ts-types/icon.js.map +1 -1
- package/cjs/ts-types/theme.d.ts +2 -0
- package/cjs/ts-types/theme.js.map +1 -1
- package/cjs/ts-types/tooltip.d.ts +2 -0
- package/cjs/ts-types/tooltip.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +56 -107
- package/dist/vtable.min.js +2 -2
- package/es/PivotTable.js +11 -17
- 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/components/tooltip/TooltipHandler.js +1 -3
- package/es/components/tooltip/TooltipHandler.js.map +1 -1
- package/es/components/tooltip/logic/BubbleTooltipElement.js +7 -3
- package/es/components/tooltip/logic/BubbleTooltipElement.js.map +1 -1
- package/es/components/tooltip/logic/BubbleTooltipElementStyle.js +1 -1
- package/es/components/tooltip/logic/BubbleTooltipElementStyle.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 +0 -2
- package/es/dataset/dataset.js +7 -8
- 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 +13 -17
- package/es/layout/pivot-header-layout.js.map +1 -1
- package/es/themes/theme.js +6 -0
- package/es/themes/theme.js.map +1 -1
- package/es/ts-types/icon.d.ts +2 -0
- package/es/ts-types/icon.js.map +1 -1
- package/es/ts-types/theme.d.ts +2 -0
- package/es/ts-types/theme.js.map +1 -1
- package/es/ts-types/tooltip.d.ts +2 -0
- package/es/ts-types/tooltip.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +2 -2
package/dist/vtable.js
CHANGED
|
@@ -25061,6 +25061,12 @@
|
|
|
25061
25061
|
},
|
|
25062
25062
|
get color() {
|
|
25063
25063
|
return tooltip.color ?? '#FFF';
|
|
25064
|
+
},
|
|
25065
|
+
get maxWidth() {
|
|
25066
|
+
return tooltip.maxWidth;
|
|
25067
|
+
},
|
|
25068
|
+
get maxHeight() {
|
|
25069
|
+
return tooltip.maxHeight;
|
|
25064
25070
|
}
|
|
25065
25071
|
};
|
|
25066
25072
|
}
|
|
@@ -56581,12 +56587,30 @@
|
|
|
56581
56587
|
white-space: pre-wrap;
|
|
56582
56588
|
margin: 0;
|
|
56583
56589
|
box-sizing: border-box;
|
|
56584
|
-
overflow:
|
|
56590
|
+
overflow: auto;
|
|
56585
56591
|
word-wrap: break-word;
|
|
56586
56592
|
position: relative;
|
|
56587
56593
|
background-color: #FFF;
|
|
56588
56594
|
z-index: 2;
|
|
56589
|
-
border-radius: 4px
|
|
56595
|
+
border-radius: 4px;
|
|
56596
|
+
}
|
|
56597
|
+
/* WebKit Microsoft Edge(新版): */
|
|
56598
|
+
.vtable__bubble-tooltip-element__content::-webkit-scrollbar {
|
|
56599
|
+
width: 0;
|
|
56600
|
+
height: 0;
|
|
56601
|
+
background-color: transparent;
|
|
56602
|
+
}
|
|
56603
|
+
/* Opera Firefox */
|
|
56604
|
+
.vtable__bubble-tooltip-element__content > scrollbar-track {
|
|
56605
|
+
width: 0;
|
|
56606
|
+
height: 0;
|
|
56607
|
+
background-color: transparent;
|
|
56608
|
+
}
|
|
56609
|
+
/* Internet Explorer 11 和 Microsoft Edge(旧版) */
|
|
56610
|
+
.vtable__bubble-tooltip-element__content > scrollbar {
|
|
56611
|
+
width: 0;
|
|
56612
|
+
height: 0;
|
|
56613
|
+
background-color: transparent;
|
|
56590
56614
|
}
|
|
56591
56615
|
.vtable__bubble-tooltip-element__triangle {
|
|
56592
56616
|
/* font-size: .75rem; */
|
|
@@ -56620,7 +56644,7 @@
|
|
|
56620
56644
|
constructor() {
|
|
56621
56645
|
this._handler = new EventHandler();
|
|
56622
56646
|
const rootElement = (this._rootElement = createElement('div', [TOOLTIP_CLASS, HIDDEN_CLASS]));
|
|
56623
|
-
const messageElement = createElement('
|
|
56647
|
+
const messageElement = createElement('div', [CONTENT_CLASS]);
|
|
56624
56648
|
const triangle = createElement('span', [TRIANGLE_CLASS]);
|
|
56625
56649
|
rootElement.appendChild(triangle);
|
|
56626
56650
|
rootElement.appendChild(messageElement);
|
|
@@ -56633,6 +56657,9 @@
|
|
|
56633
56657
|
this._disappearDelay = undefined;
|
|
56634
56658
|
this.unbindFromCell();
|
|
56635
56659
|
});
|
|
56660
|
+
messageElement.addEventListener('wheel', e => {
|
|
56661
|
+
e.stopPropagation();
|
|
56662
|
+
});
|
|
56636
56663
|
}
|
|
56637
56664
|
bindToCell(table, col, row, tooltipInstanceInfo, confine) {
|
|
56638
56665
|
this._disappearDelay = tooltipInstanceInfo?.disappearDelay;
|
|
@@ -56657,6 +56684,10 @@
|
|
|
56657
56684
|
tooltipInstanceInfo?.style?.color && (messageElement.style.color = tooltipInstanceInfo?.style?.color);
|
|
56658
56685
|
tooltipInstanceInfo?.style?.padding &&
|
|
56659
56686
|
(messageElement.style.padding = `${tooltipInstanceInfo?.style?.padding.join('px ')}px`);
|
|
56687
|
+
tooltipInstanceInfo?.style?.maxHeight &&
|
|
56688
|
+
(messageElement.style.maxHeight = `${tooltipInstanceInfo?.style?.maxHeight}px`);
|
|
56689
|
+
tooltipInstanceInfo?.style?.maxWidth &&
|
|
56690
|
+
(messageElement.style.maxWidth = `${tooltipInstanceInfo?.style?.maxWidth}px`);
|
|
56660
56691
|
messageElement && (messageElement.textContent = tooltipInstanceInfo?.content);
|
|
56661
56692
|
const binded = this._bindToCell(table, col, row, tooltipInstanceInfo?.position, tooltipInstanceInfo?.referencePosition, confine, tooltipInstanceInfo?.style?.arrowMark);
|
|
56662
56693
|
if (binded) {
|
|
@@ -57035,7 +57066,7 @@
|
|
|
57035
57066
|
rect
|
|
57036
57067
|
},
|
|
57037
57068
|
disappearDelay: table.internalProps.tooltip.overflowTextTooltipDisappearDelay ?? 0,
|
|
57038
|
-
style:
|
|
57069
|
+
style: table.theme.tooltipStyle
|
|
57039
57070
|
};
|
|
57040
57071
|
}
|
|
57041
57072
|
else if (table.internalProps.tooltip?.isShowOverflowTextTooltip) {
|
|
@@ -59211,7 +59242,7 @@
|
|
|
59211
59242
|
return TABLE_EVENT_TYPE;
|
|
59212
59243
|
}
|
|
59213
59244
|
options;
|
|
59214
|
-
version = "1.3.1-alpha.
|
|
59245
|
+
version = "1.3.1-alpha.1";
|
|
59215
59246
|
pagination;
|
|
59216
59247
|
id = `VTable${Date.now()}`;
|
|
59217
59248
|
headerStyleCache;
|
|
@@ -64084,12 +64115,10 @@
|
|
|
64084
64115
|
const topHeaderHeight = !this.table.transpose || this.table.options.indicatorsAsCol
|
|
64085
64116
|
? this.table.getFrozenRowsHeight()
|
|
64086
64117
|
: 0;
|
|
64087
|
-
const width = (this.table.columnHeaderLevelCount > 0
|
|
64088
|
-
|
|
64089
|
-
|
|
64090
|
-
|
|
64091
|
-
? this.table.getDrawRange().height
|
|
64092
|
-
: this.table.tableNoFrameHeight) - topHeaderHeight;
|
|
64118
|
+
const width = (this.table.columnHeaderLevelCount > 0 ? this.table.getDrawRange().width : this.table.tableNoFrameWidth) -
|
|
64119
|
+
leftHeaderWidth;
|
|
64120
|
+
const height = (this.table.rowHeaderLevelCount > 0 ? this.table.getDrawRange().height : this.table.tableNoFrameHeight) -
|
|
64121
|
+
topHeaderHeight;
|
|
64093
64122
|
this._emptyTipComponent.setAttributes({
|
|
64094
64123
|
spaceBetweenTextAndIcon: this._emptyTipOption.spaceBetweenTextAndIcon,
|
|
64095
64124
|
x: this.table.tableX + leftHeaderWidth,
|
|
@@ -64132,12 +64161,10 @@
|
|
|
64132
64161
|
const topHeaderHeight = !this.table.transpose || this.table.options.indicatorsAsCol
|
|
64133
64162
|
? this.table.getFrozenRowsHeight()
|
|
64134
64163
|
: 0;
|
|
64135
|
-
const width = (this.table.columnHeaderLevelCount > 0
|
|
64136
|
-
|
|
64137
|
-
|
|
64138
|
-
|
|
64139
|
-
? this.table.getDrawRange().height
|
|
64140
|
-
: this.table.tableNoFrameHeight) - topHeaderHeight;
|
|
64164
|
+
const width = (this.table.columnHeaderLevelCount > 0 ? this.table.getDrawRange().width : this.table.tableNoFrameWidth) -
|
|
64165
|
+
leftHeaderWidth;
|
|
64166
|
+
const height = (this.table.rowHeaderLevelCount > 0 ? this.table.getDrawRange().height : this.table.tableNoFrameHeight) -
|
|
64167
|
+
topHeaderHeight;
|
|
64141
64168
|
return {
|
|
64142
64169
|
spaceBetweenTextAndIcon: this._emptyTipOption.spaceBetweenTextAndIcon,
|
|
64143
64170
|
x: this.table.tableX + leftHeaderWidth,
|
|
@@ -65667,15 +65694,7 @@
|
|
|
65667
65694
|
}
|
|
65668
65695
|
this.sharedVar.seqId = Math.max(this.sharedVar.seqId, this._headerObjects.length);
|
|
65669
65696
|
if (this.cornerSetting.titleOnDimension === 'column') {
|
|
65670
|
-
|
|
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
|
-
}
|
|
65697
|
+
const colDimensionKeys = this.columnDimensionTree.dimensionKeysIncludeVirtual.valueArr();
|
|
65679
65698
|
this.cornerHeaderObjs = this._addCornerHeaders(this.columnHeaderTitle ? [''].concat(colDimensionKeys) : colDimensionKeys, this.columnsDefine);
|
|
65680
65699
|
}
|
|
65681
65700
|
else if (this.cornerSetting.titleOnDimension === 'row') {
|
|
@@ -65691,15 +65710,7 @@
|
|
|
65691
65710
|
this.cornerHeaderObjs = this._addCornerHeaders(this.rowHeaderTitle ? [''].concat(rowTreeFirstKey) : rowTreeFirstKey, this.rowsDefine.concat(extensionRowDimensions));
|
|
65692
65711
|
}
|
|
65693
65712
|
else {
|
|
65694
|
-
|
|
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
|
-
}
|
|
65713
|
+
const rowDimensionKeys = this.rowDimensionTree.dimensionKeysIncludeVirtual.valueArr();
|
|
65703
65714
|
this.cornerHeaderObjs = this._addCornerHeaders(this.rowHeaderTitle ? [''].concat(rowDimensionKeys) : rowDimensionKeys, this.rowsDefine);
|
|
65704
65715
|
}
|
|
65705
65716
|
}
|
|
@@ -66357,19 +66368,6 @@
|
|
|
66357
66368
|
: this.columnDimensionTree.totalLevel
|
|
66358
66369
|
: this.columnDimensionTree.totalLevel
|
|
66359
66370
|
: 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
|
-
}
|
|
66373
66371
|
if (this.columnHeaderTitle) {
|
|
66374
66372
|
count += 1;
|
|
66375
66373
|
}
|
|
@@ -66403,19 +66401,6 @@
|
|
|
66403
66401
|
this.rowDimensionKeys[this.rowDimensionKeys.length - 1] === this.indicatorDimensionKey) {
|
|
66404
66402
|
count = rowLevelCount - 1;
|
|
66405
66403
|
}
|
|
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
|
-
}
|
|
66419
66404
|
if (this.rowHeaderTitle) {
|
|
66420
66405
|
count += 1;
|
|
66421
66406
|
}
|
|
@@ -66530,16 +66515,16 @@
|
|
|
66530
66515
|
return '';
|
|
66531
66516
|
}
|
|
66532
66517
|
else if (this.isCornerHeader(col, row)) {
|
|
66533
|
-
return this._cornerHeaderCellIds[row]
|
|
66518
|
+
return this._cornerHeaderCellIds[row][col - this.leftRowSeriesNumberColumnCount];
|
|
66534
66519
|
}
|
|
66535
66520
|
else if (this.isColumnHeader(col, row)) {
|
|
66536
|
-
return this._columnHeaderCellIds[row]
|
|
66521
|
+
return this._columnHeaderCellIds[row][col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount];
|
|
66537
66522
|
}
|
|
66538
66523
|
else if (this.isRowHeader(col, row)) {
|
|
66539
66524
|
return this._rowHeaderCellIds[row - this.columnHeaderLevelCount]?.[col - this.leftRowSeriesNumberColumnCount];
|
|
66540
66525
|
}
|
|
66541
66526
|
else if (this.isRightFrozenColumn(col, row)) {
|
|
66542
|
-
return this._rowHeaderCellIds[row - this.columnHeaderLevelCount]
|
|
66527
|
+
return this._rowHeaderCellIds[row - this.columnHeaderLevelCount][this.rowHeaderLevelCount - 1];
|
|
66543
66528
|
}
|
|
66544
66529
|
else if (this.isBottomFrozenRow(col, row)) {
|
|
66545
66530
|
return this._columnHeaderCellIds[this.columnHeaderLevelCount - 1]?.[col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount];
|
|
@@ -68373,9 +68358,7 @@
|
|
|
68373
68358
|
collectedValues = {};
|
|
68374
68359
|
cacheCollectedValues = {};
|
|
68375
68360
|
rows;
|
|
68376
|
-
rowsHasValue;
|
|
68377
68361
|
columns;
|
|
68378
|
-
columnsHasValue;
|
|
68379
68362
|
indicatorKeys;
|
|
68380
68363
|
customRowTree;
|
|
68381
68364
|
customColTree;
|
|
@@ -68435,8 +68418,6 @@
|
|
|
68435
68418
|
this.rowFlatKeys = {};
|
|
68436
68419
|
this.colKeys = [];
|
|
68437
68420
|
this.rowKeys = [];
|
|
68438
|
-
this.rowsHasValue = [];
|
|
68439
|
-
this.columnsHasValue = [];
|
|
68440
68421
|
if (records) {
|
|
68441
68422
|
this.records = records;
|
|
68442
68423
|
typeof window !== 'undefined' ? window.performance.now() : 0;
|
|
@@ -68457,25 +68438,19 @@
|
|
|
68457
68438
|
}
|
|
68458
68439
|
else {
|
|
68459
68440
|
if (this.rowHierarchyType === 'tree') {
|
|
68460
|
-
this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows.
|
|
68461
|
-
return this.rowsHasValue[index];
|
|
68462
|
-
}), this.indicatorsAsCol ? undefined : this.indicators, this.totals?.row?.showGrandTotals ||
|
|
68441
|
+
this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows, this.indicatorsAsCol ? undefined : this.indicators, this.totals?.row?.showGrandTotals ||
|
|
68463
68442
|
(!this.indicatorsAsCol && this.columns.length === 0) ||
|
|
68464
68443
|
(this.indicatorsAsCol && this.rows.length === 0), this.rowGrandTotalLabel);
|
|
68465
68444
|
}
|
|
68466
68445
|
else {
|
|
68467
|
-
this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows.
|
|
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);
|
|
68446
|
+
this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows, 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);
|
|
68470
68447
|
}
|
|
68471
68448
|
}
|
|
68472
68449
|
if (this.customColTree) {
|
|
68473
68450
|
this.colHeaderTree = this.customColTree;
|
|
68474
68451
|
}
|
|
68475
68452
|
else {
|
|
68476
|
-
this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns.
|
|
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);
|
|
68453
|
+
this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns, 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);
|
|
68479
68454
|
}
|
|
68480
68455
|
typeof window !== 'undefined' ? window.performance.now() : 0;
|
|
68481
68456
|
if (this.dataConfig?.isPivotChart) {
|
|
@@ -68672,7 +68647,6 @@
|
|
|
68672
68647
|
for (let l = 0, len1 = this.rows.length; l < len1; l++) {
|
|
68673
68648
|
const rowAttr = this.rows[l];
|
|
68674
68649
|
if (rowAttr in record) {
|
|
68675
|
-
this.rowsHasValue[l] = true;
|
|
68676
68650
|
rowKey.push(record[rowAttr]);
|
|
68677
68651
|
}
|
|
68678
68652
|
else if (rowAttr !== IndicatorDimensionKeyPlaceholder) {
|
|
@@ -68698,7 +68672,6 @@
|
|
|
68698
68672
|
for (let n = 0, len2 = this.columns.length; n < len2; n++) {
|
|
68699
68673
|
const colAttr = this.columns[n];
|
|
68700
68674
|
if (colAttr in record) {
|
|
68701
|
-
this.columnsHasValue[n] = true;
|
|
68702
68675
|
colKey.push(record[colAttr]);
|
|
68703
68676
|
}
|
|
68704
68677
|
else if (colAttr !== IndicatorDimensionKeyPlaceholder) {
|
|
@@ -68824,22 +68797,16 @@
|
|
|
68824
68797
|
this.sortKeys();
|
|
68825
68798
|
if (!this.customRowTree) {
|
|
68826
68799
|
if (this.rowHierarchyType === 'tree') {
|
|
68827
|
-
this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows.
|
|
68828
|
-
return this.rowsHasValue[index];
|
|
68829
|
-
}), this.indicatorsAsCol ? undefined : this.indicators, this.totals?.row?.showGrandTotals ||
|
|
68800
|
+
this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows, this.indicatorsAsCol ? undefined : this.indicators, this.totals?.row?.showGrandTotals ||
|
|
68830
68801
|
(!this.indicatorsAsCol && this.columns.length === 0) ||
|
|
68831
68802
|
(this.indicatorsAsCol && this.rows.length === 0), this.rowGrandTotalLabel);
|
|
68832
68803
|
}
|
|
68833
68804
|
else {
|
|
68834
|
-
this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows.
|
|
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);
|
|
68805
|
+
this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows, 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);
|
|
68837
68806
|
}
|
|
68838
68807
|
}
|
|
68839
68808
|
if (!this.customColTree) {
|
|
68840
|
-
this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns.
|
|
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);
|
|
68809
|
+
this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns, 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);
|
|
68843
68810
|
}
|
|
68844
68811
|
}
|
|
68845
68812
|
updateFilterRules(filterRules, isResetTree = false) {
|
|
@@ -69553,18 +69520,12 @@
|
|
|
69553
69520
|
if (options.indicatorsAsCol !== false) {
|
|
69554
69521
|
this.dataset.colHeaderTree = supplementIndicatorNodesForCustomTree(this.dataset.colHeaderTree, options.indicators);
|
|
69555
69522
|
}
|
|
69556
|
-
if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
69557
|
-
this.dataset.colHeaderTree = [];
|
|
69558
|
-
}
|
|
69559
69523
|
columnDimensionTree = new DimensionTree(this.dataset.colHeaderTree ?? [], this.layoutNodeId);
|
|
69560
69524
|
}
|
|
69561
69525
|
if (!options.rowTree) {
|
|
69562
69526
|
if (options.indicatorsAsCol === false) {
|
|
69563
69527
|
this.dataset.rowHeaderTree = supplementIndicatorNodesForCustomTree(this.dataset.rowHeaderTree, options.indicators);
|
|
69564
69528
|
}
|
|
69565
|
-
if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
69566
|
-
this.dataset.rowHeaderTree = [];
|
|
69567
|
-
}
|
|
69568
69529
|
rowDimensionTree = new DimensionTree(this.dataset.rowHeaderTree ?? [], this.layoutNodeId, this.options.rowHierarchyType, this.options.rowHierarchyType === 'tree' ? this.options.rowExpandLevel ?? 1 : undefined);
|
|
69569
69530
|
}
|
|
69570
69531
|
this.internalProps.layoutMap = new PivotHeaderLayoutMap(this, this.dataset, columnDimensionTree, rowDimensionTree);
|
|
@@ -69697,18 +69658,12 @@
|
|
|
69697
69658
|
if (options.indicatorsAsCol !== false) {
|
|
69698
69659
|
this.dataset.colHeaderTree = supplementIndicatorNodesForCustomTree(this.dataset.colHeaderTree, options.indicators);
|
|
69699
69660
|
}
|
|
69700
|
-
if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
69701
|
-
this.dataset.colHeaderTree = [];
|
|
69702
|
-
}
|
|
69703
69661
|
columnDimensionTree = new DimensionTree(this.dataset.colHeaderTree ?? [], this.layoutNodeId);
|
|
69704
69662
|
}
|
|
69705
69663
|
if (!options.rowTree) {
|
|
69706
69664
|
if (options.indicatorsAsCol === false) {
|
|
69707
69665
|
this.dataset.rowHeaderTree = supplementIndicatorNodesForCustomTree(this.dataset.rowHeaderTree, options.indicators);
|
|
69708
69666
|
}
|
|
69709
|
-
if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
69710
|
-
this.dataset.rowHeaderTree = [];
|
|
69711
|
-
}
|
|
69712
69667
|
rowDimensionTree = new DimensionTree(this.dataset.rowHeaderTree ?? [], this.layoutNodeId, this.options.rowHierarchyType, this.options.rowHierarchyType === 'tree' ? this.options.rowExpandLevel ?? 1 : undefined);
|
|
69713
69668
|
}
|
|
69714
69669
|
internalProps.layoutMap = new PivotHeaderLayoutMap(this, this.dataset, columnDimensionTree, rowDimensionTree);
|
|
@@ -70485,18 +70440,12 @@
|
|
|
70485
70440
|
columnDimensionTree = internalProps.layoutMap.columnDimensionTree;
|
|
70486
70441
|
}
|
|
70487
70442
|
else {
|
|
70488
|
-
if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
70489
|
-
this.dataset.colHeaderTree = [];
|
|
70490
|
-
}
|
|
70491
70443
|
columnDimensionTree = new DimensionTree(this.dataset.colHeaderTree ?? [], this.layoutNodeId);
|
|
70492
70444
|
}
|
|
70493
70445
|
if (options.rowTree) {
|
|
70494
70446
|
rowDimensionTree = internalProps.layoutMap.rowDimensionTree;
|
|
70495
70447
|
}
|
|
70496
70448
|
else {
|
|
70497
|
-
if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
70498
|
-
this.dataset.rowHeaderTree = [];
|
|
70499
|
-
}
|
|
70500
70449
|
rowDimensionTree = new DimensionTree(this.dataset.rowHeaderTree ?? [], this.layoutNodeId, this.options.rowHierarchyType, this.options.rowHierarchyType === 'tree' ? this.options.rowExpandLevel ?? 1 : undefined);
|
|
70501
70450
|
}
|
|
70502
70451
|
internalProps.layoutMap = new PivotHeaderLayoutMap(this, this.dataset, columnDimensionTree, rowDimensionTree);
|
|
@@ -72418,7 +72367,7 @@
|
|
|
72418
72367
|
}
|
|
72419
72368
|
|
|
72420
72369
|
registerForVrender();
|
|
72421
|
-
const version = "1.3.1-alpha.
|
|
72370
|
+
const version = "1.3.1-alpha.1";
|
|
72422
72371
|
function getIcons() {
|
|
72423
72372
|
return get$2();
|
|
72424
72373
|
}
|