@visactor/vtable 1.3.1 → 1.3.2-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/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 +57 -37
- package/cjs/layout/pivot-header-layout.js.map +1 -1
- package/cjs/vrender.js.map +1 -1
- package/dist/vtable.js +141 -29
- package/dist/vtable.min.js +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 +56 -36
- package/es/layout/pivot-header-layout.js.map +1 -1
- package/es/vrender.js.map +1 -1
- package/package.json +3 -3
package/cjs/vrender.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAA8F;AAC9F,yDAAqE;AACrE,yDAmBgC;AAIhC,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,SAAgB,kBAAkB;IAChC,IAAI,QAAQ,EAAE;QACZ,OAAO;KACR;IACD,QAAQ,GAAG,IAAI,CAAC;IAEhB,IAAA,+BAAgB,GAAE,CAAC;IAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;QAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;KAC3B;SAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;QACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;KACxB;IACD,IAAA,0BAAW,GAAE,CAAC;IACd,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,8BAAe,GAAE,CAAC;IAClB,IAAA,gCAAiB,GAAE,CAAC;IACpB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,+BAAgB,GAAE,CAAC;IACnB,IAAA,iCAAkB,GAAE,CAAC;IACrB,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,+BAAgB,GAAE,CAAC;AACrB,CAAC;AA/BD,gDA+BC;AAED,yDAAuC;AACvC,yDAAuC","file":"vrender.js","sourcesContent":["import '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule } from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\n// export const version = \"1.3.
|
|
1
|
+
{"version":3,"sources":["../src/vrender.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAA8F;AAC9F,yDAAqE;AACrE,yDAmBgC;AAIhC,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,SAAgB,kBAAkB;IAChC,IAAI,QAAQ,EAAE;QACZ,OAAO;KACR;IACD,QAAQ,GAAG,IAAI,CAAC;IAEhB,IAAA,+BAAgB,GAAE,CAAC;IAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;QAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;KAC3B;SAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;QACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;KACxB;IACD,IAAA,0BAAW,GAAE,CAAC;IACd,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,4BAAa,GAAE,CAAC;IAChB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,8BAAe,GAAE,CAAC;IAClB,IAAA,gCAAiB,GAAE,CAAC;IACpB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,+BAAgB,GAAE,CAAC;IACnB,IAAA,iCAAkB,GAAE,CAAC;IACrB,IAAA,6BAAc,GAAE,CAAC;IACjB,IAAA,2BAAY,GAAE,CAAC;IACf,IAAA,+BAAgB,GAAE,CAAC;AACrB,CAAC;AA/BD,gDA+BC;AAED,yDAAuC;AACvC,yDAAuC","file":"vrender.js","sourcesContent":["import '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule } from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\n// export const version = \"1.3.2-alpha.0\";\n\nlet registed = false;\nexport function registerForVrender() {\n if (registed) {\n return;\n }\n registed = true;\n // 注册内置组件\n preLoadAllModule();\n\n if (isBrowserEnv()) {\n loadBrowserEnv(container);\n } else if (isNodeEnv()) {\n loadNodeEnv(container);\n }\n registerArc();\n registerArc3d();\n registerArea();\n registerCircle();\n registerGlyph();\n registerGroup();\n registerImage();\n registerLine();\n registerPath();\n registerPolygon();\n registerPyramid3d();\n registerRect();\n registerRect3d();\n registerRichtext();\n registerShadowRoot();\n registerSymbol();\n registerText();\n registerWrapText();\n}\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
|
package/dist/vtable.js
CHANGED
|
@@ -59226,7 +59226,7 @@
|
|
|
59226
59226
|
return TABLE_EVENT_TYPE;
|
|
59227
59227
|
}
|
|
59228
59228
|
options;
|
|
59229
|
-
version = "1.3.
|
|
59229
|
+
version = "1.3.2-alpha.0";
|
|
59230
59230
|
pagination;
|
|
59231
59231
|
id = `VTable${Date.now()}`;
|
|
59232
59232
|
headerStyleCache;
|
|
@@ -64100,10 +64100,12 @@
|
|
|
64100
64100
|
const topHeaderHeight = !this.table.transpose || this.table.options.indicatorsAsCol
|
|
64101
64101
|
? this.table.getFrozenRowsHeight()
|
|
64102
64102
|
: 0;
|
|
64103
|
-
const width = (this.table.columnHeaderLevelCount > 0
|
|
64104
|
-
|
|
64105
|
-
|
|
64106
|
-
|
|
64103
|
+
const width = (this.table.columnHeaderLevelCount > 0 && this.table.isListTable()
|
|
64104
|
+
? this.table.getDrawRange().width
|
|
64105
|
+
: this.table.tableNoFrameWidth) - leftHeaderWidth;
|
|
64106
|
+
const height = (this.table.rowHeaderLevelCount > 0 && this.table.isListTable()
|
|
64107
|
+
? this.table.getDrawRange().height
|
|
64108
|
+
: this.table.tableNoFrameHeight) - topHeaderHeight;
|
|
64107
64109
|
this._emptyTipComponent.setAttributes({
|
|
64108
64110
|
spaceBetweenTextAndIcon: this._emptyTipOption.spaceBetweenTextAndIcon,
|
|
64109
64111
|
x: this.table.tableX + leftHeaderWidth,
|
|
@@ -64146,10 +64148,12 @@
|
|
|
64146
64148
|
const topHeaderHeight = !this.table.transpose || this.table.options.indicatorsAsCol
|
|
64147
64149
|
? this.table.getFrozenRowsHeight()
|
|
64148
64150
|
: 0;
|
|
64149
|
-
const width = (this.table.columnHeaderLevelCount > 0
|
|
64150
|
-
|
|
64151
|
-
|
|
64152
|
-
|
|
64151
|
+
const width = (this.table.columnHeaderLevelCount > 0 && this.table.isListTable()
|
|
64152
|
+
? this.table.getDrawRange().width
|
|
64153
|
+
: this.table.tableNoFrameWidth) - leftHeaderWidth;
|
|
64154
|
+
const height = (this.table.rowHeaderLevelCount > 0 && this.table.isListTable()
|
|
64155
|
+
? this.table.getDrawRange().height
|
|
64156
|
+
: this.table.tableNoFrameHeight) - topHeaderHeight;
|
|
64153
64157
|
return {
|
|
64154
64158
|
spaceBetweenTextAndIcon: this._emptyTipOption.spaceBetweenTextAndIcon,
|
|
64155
64159
|
x: this.table.tableX + leftHeaderWidth,
|
|
@@ -65644,11 +65648,8 @@
|
|
|
65644
65648
|
this.rowDimensionKeys = this.rowDimensionTree.dimensionKeys.valueArr();
|
|
65645
65649
|
this.fullRowDimensionKeys = this.fullRowDimensionKeys.concat(this.rowDimensionKeys);
|
|
65646
65650
|
this.resetRowHeaderLevelCount();
|
|
65647
|
-
this._generateColHeaderIds();
|
|
65648
|
-
this.colIndex = 0;
|
|
65649
|
-
this._generateRowHeaderIds();
|
|
65650
65651
|
if (this._table.isPivotChart()) {
|
|
65651
|
-
this.hasTwoIndicatorAxes = this.
|
|
65652
|
+
this.hasTwoIndicatorAxes = this.indicatorsDefine.some((indicatorObject) => {
|
|
65652
65653
|
if (indicatorObject.chartSpec &&
|
|
65653
65654
|
indicatorObject.chartSpec.series &&
|
|
65654
65655
|
indicatorObject.chartSpec.series.length > 1) {
|
|
@@ -65667,6 +65668,9 @@
|
|
|
65667
65668
|
});
|
|
65668
65669
|
}
|
|
65669
65670
|
this.resetColumnHeaderLevelCount();
|
|
65671
|
+
this._generateColHeaderIds();
|
|
65672
|
+
this.colIndex = 0;
|
|
65673
|
+
this._generateRowHeaderIds();
|
|
65670
65674
|
this._rowHeaderCellFullPathIds_FULL = transpose(this._rowHeaderCellFullPathIds_FULL);
|
|
65671
65675
|
if (table.options.rowHierarchyType === 'tree' && this.extensionRows?.length >= 1) {
|
|
65672
65676
|
this.generateExtensionRowTree();
|
|
@@ -65686,7 +65690,21 @@
|
|
|
65686
65690
|
}
|
|
65687
65691
|
this.sharedVar.seqId = Math.max(this.sharedVar.seqId, this._headerObjects.length);
|
|
65688
65692
|
if (this.cornerSetting.titleOnDimension === 'column') {
|
|
65689
|
-
|
|
65693
|
+
let colDimensionKeys = this.columnDimensionTree.dimensionKeysIncludeVirtual.valueArr();
|
|
65694
|
+
if (this.dataset &&
|
|
65695
|
+
(this.dataset.records?.length ?? 0) === 0 &&
|
|
65696
|
+
!this.dataset.customColTree &&
|
|
65697
|
+
!this.dataset.customRowTree) {
|
|
65698
|
+
colDimensionKeys = this.columnsDefine.map(define => {
|
|
65699
|
+
if (typeof define === 'string') {
|
|
65700
|
+
return define;
|
|
65701
|
+
}
|
|
65702
|
+
return define.dimensionKey;
|
|
65703
|
+
});
|
|
65704
|
+
if (this.indicatorsAsCol) {
|
|
65705
|
+
colDimensionKeys.push(this.indicatorDimensionKey);
|
|
65706
|
+
}
|
|
65707
|
+
}
|
|
65690
65708
|
this.cornerHeaderObjs = this._addCornerHeaders(this.columnHeaderTitle ? [''].concat(colDimensionKeys) : colDimensionKeys, this.columnsDefine);
|
|
65691
65709
|
}
|
|
65692
65710
|
else if (this.cornerSetting.titleOnDimension === 'row') {
|
|
@@ -65702,7 +65720,21 @@
|
|
|
65702
65720
|
this.cornerHeaderObjs = this._addCornerHeaders(this.rowHeaderTitle ? [''].concat(rowTreeFirstKey) : rowTreeFirstKey, this.rowsDefine.concat(extensionRowDimensions));
|
|
65703
65721
|
}
|
|
65704
65722
|
else {
|
|
65705
|
-
|
|
65723
|
+
let rowDimensionKeys = this.rowDimensionTree.dimensionKeysIncludeVirtual.valueArr();
|
|
65724
|
+
if (this.dataset &&
|
|
65725
|
+
(this.dataset.records?.length ?? 0) === 0 &&
|
|
65726
|
+
!this.dataset.customColTree &&
|
|
65727
|
+
!this.dataset.customRowTree) {
|
|
65728
|
+
rowDimensionKeys = this.rowsDefine.map(define => {
|
|
65729
|
+
if (typeof define === 'string') {
|
|
65730
|
+
return define;
|
|
65731
|
+
}
|
|
65732
|
+
return define.dimensionKey;
|
|
65733
|
+
});
|
|
65734
|
+
if (!this.indicatorsAsCol) {
|
|
65735
|
+
rowDimensionKeys.push(this.indicatorDimensionKey);
|
|
65736
|
+
}
|
|
65737
|
+
}
|
|
65706
65738
|
this.cornerHeaderObjs = this._addCornerHeaders(this.rowHeaderTitle ? [''].concat(rowDimensionKeys) : rowDimensionKeys, this.rowsDefine);
|
|
65707
65739
|
}
|
|
65708
65740
|
}
|
|
@@ -65808,12 +65840,24 @@
|
|
|
65808
65840
|
}
|
|
65809
65841
|
_generateColHeaderIds() {
|
|
65810
65842
|
if (this.columnDimensionTree.tree.children?.length >= 1) {
|
|
65811
|
-
|
|
65843
|
+
let startRow = 0;
|
|
65844
|
+
if (this.dataset &&
|
|
65845
|
+
(this.dataset.records?.length ?? 0) === 0 &&
|
|
65846
|
+
!this.dataset.customColTree &&
|
|
65847
|
+
!this.dataset.customRowTree &&
|
|
65848
|
+
this.indicatorsAsCol &&
|
|
65849
|
+
this.columnDimensionTree.totalLevel < this.columnHeaderLevelCount) {
|
|
65850
|
+
startRow = this.columnHeaderLevelCount - this.columnDimensionTree.totalLevel;
|
|
65851
|
+
for (let i = 0; i < startRow; i++) {
|
|
65852
|
+
this._columnHeaderCellFullPathIds.unshift([]);
|
|
65853
|
+
}
|
|
65854
|
+
}
|
|
65855
|
+
this._addHeaders(this._columnHeaderCellFullPathIds, startRow, this.columnDimensionTree.tree.children, [], this.columnHeaderObjs);
|
|
65812
65856
|
}
|
|
65813
65857
|
if (this.columnHeaderTitle) {
|
|
65814
65858
|
this.sharedVar.seqId = Math.max(this.sharedVar.seqId, this._headerObjects.length);
|
|
65815
65859
|
const id = ++this.sharedVar.seqId;
|
|
65816
|
-
const firstRowIds = Array(this.colCount - this.rowHeaderLevelCount).fill(id);
|
|
65860
|
+
const firstRowIds = Array(this.colCount - this.rowHeaderLevelCount - this.rightFrozenColCount).fill(id);
|
|
65817
65861
|
this._columnHeaderCellFullPathIds.unshift(firstRowIds);
|
|
65818
65862
|
const cell = {
|
|
65819
65863
|
id,
|
|
@@ -65844,7 +65888,19 @@
|
|
|
65844
65888
|
this._addHeadersForTreeMode(this._rowHeaderCellFullPathIds_FULL, 0, this.rowDimensionTree.tree.children, [], this.rowDimensionTree.totalLevel, true, this.rowsDefine, this.rowHeaderObjs);
|
|
65845
65889
|
}
|
|
65846
65890
|
else {
|
|
65847
|
-
|
|
65891
|
+
let startRow = 0;
|
|
65892
|
+
if (this.dataset &&
|
|
65893
|
+
(this.dataset.records?.length ?? 0) === 0 &&
|
|
65894
|
+
!this.dataset.customColTree &&
|
|
65895
|
+
!this.dataset.customRowTree &&
|
|
65896
|
+
!this.indicatorsAsCol &&
|
|
65897
|
+
this.rowDimensionTree.totalLevel < this.rowHeaderLevelCount) {
|
|
65898
|
+
startRow = this.rowHeaderLevelCount - this.rowDimensionTree.totalLevel;
|
|
65899
|
+
for (let i = 0; i < startRow; i++) {
|
|
65900
|
+
this._rowHeaderCellFullPathIds_FULL.unshift([]);
|
|
65901
|
+
}
|
|
65902
|
+
}
|
|
65903
|
+
this._addHeaders(this._rowHeaderCellFullPathIds_FULL, startRow, this.rowDimensionTree.tree.children, [], this.rowHeaderObjs);
|
|
65848
65904
|
}
|
|
65849
65905
|
}
|
|
65850
65906
|
if (this.rowHeaderTitle) {
|
|
@@ -66369,6 +66425,25 @@
|
|
|
66369
66425
|
checkHasCartesianChart(this.indicatorsDefine)) {
|
|
66370
66426
|
count -= 1;
|
|
66371
66427
|
}
|
|
66428
|
+
if (count === 0 && this.dataset && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
66429
|
+
if (this.cornerSetting.titleOnDimension === 'row') {
|
|
66430
|
+
count = 1;
|
|
66431
|
+
}
|
|
66432
|
+
else if ((this.dataset.records?.length ?? 0) === 0 && this.cornerSetting.titleOnDimension === 'column') {
|
|
66433
|
+
count = this.columnsDefine.length ?? 0;
|
|
66434
|
+
}
|
|
66435
|
+
}
|
|
66436
|
+
else if (this.dataset &&
|
|
66437
|
+
(this.dataset.records?.length ?? 0) === 0 &&
|
|
66438
|
+
!this.dataset.customColTree &&
|
|
66439
|
+
!this.dataset.customRowTree) {
|
|
66440
|
+
if (this.cornerSetting.titleOnDimension === 'column') {
|
|
66441
|
+
count = this.columnsDefine.length ?? 0;
|
|
66442
|
+
if (!this.hideIndicatorName && this.indicatorsAsCol) {
|
|
66443
|
+
count++;
|
|
66444
|
+
}
|
|
66445
|
+
}
|
|
66446
|
+
}
|
|
66372
66447
|
this.columnHeaderLevelCount = count;
|
|
66373
66448
|
return;
|
|
66374
66449
|
}
|
|
@@ -66396,6 +66471,25 @@
|
|
|
66396
66471
|
if (this.rowHeaderTitle) {
|
|
66397
66472
|
count += 1;
|
|
66398
66473
|
}
|
|
66474
|
+
if (count === 0 && this.dataset && !this.dataset.customColTree && !this.dataset.customRowTree) {
|
|
66475
|
+
if (this.cornerSetting.titleOnDimension === 'column') {
|
|
66476
|
+
count = 1;
|
|
66477
|
+
}
|
|
66478
|
+
else if ((this.dataset.records?.length ?? 0) === 0 && this.cornerSetting.titleOnDimension === 'row') {
|
|
66479
|
+
count = this.rowsDefine.length ?? 0;
|
|
66480
|
+
}
|
|
66481
|
+
}
|
|
66482
|
+
else if (this.dataset &&
|
|
66483
|
+
(this.dataset.records?.length ?? 0) === 0 &&
|
|
66484
|
+
!this.dataset.customColTree &&
|
|
66485
|
+
!this.dataset.customRowTree) {
|
|
66486
|
+
if (this.cornerSetting.titleOnDimension === 'row') {
|
|
66487
|
+
count = this.rowsDefine.length;
|
|
66488
|
+
if (!this.hideIndicatorName && !this.indicatorsAsCol) {
|
|
66489
|
+
count++;
|
|
66490
|
+
}
|
|
66491
|
+
}
|
|
66492
|
+
}
|
|
66399
66493
|
this.rowHeaderLevelCount = count;
|
|
66400
66494
|
return;
|
|
66401
66495
|
}
|
|
@@ -66507,16 +66601,16 @@
|
|
|
66507
66601
|
return '';
|
|
66508
66602
|
}
|
|
66509
66603
|
else if (this.isCornerHeader(col, row)) {
|
|
66510
|
-
return this._cornerHeaderCellIds[row][col - this.leftRowSeriesNumberColumnCount];
|
|
66604
|
+
return this._cornerHeaderCellIds[row]?.[col - this.leftRowSeriesNumberColumnCount];
|
|
66511
66605
|
}
|
|
66512
66606
|
else if (this.isColumnHeader(col, row)) {
|
|
66513
|
-
return this._columnHeaderCellIds[row][col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount];
|
|
66607
|
+
return this._columnHeaderCellIds[row]?.[col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount];
|
|
66514
66608
|
}
|
|
66515
66609
|
else if (this.isRowHeader(col, row)) {
|
|
66516
66610
|
return this._rowHeaderCellIds[row - this.columnHeaderLevelCount]?.[col - this.leftRowSeriesNumberColumnCount];
|
|
66517
66611
|
}
|
|
66518
66612
|
else if (this.isRightFrozenColumn(col, row)) {
|
|
66519
|
-
return this._rowHeaderCellIds[row - this.columnHeaderLevelCount][this.rowHeaderLevelCount - 1];
|
|
66613
|
+
return this._rowHeaderCellIds[row - this.columnHeaderLevelCount]?.[this.rowHeaderLevelCount - 1];
|
|
66520
66614
|
}
|
|
66521
66615
|
else if (this.isBottomFrozenRow(col, row)) {
|
|
66522
66616
|
return this._columnHeaderCellIds[this.columnHeaderLevelCount - 1]?.[col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount];
|
|
@@ -67908,10 +68002,10 @@
|
|
|
67908
68002
|
this.columnTree = dataset.colHeaderTree;
|
|
67909
68003
|
this.columnDimensionTree = new DimensionTree(this.columnTree ?? [], this.sharedVar);
|
|
67910
68004
|
this.rowDimensionTree = new DimensionTree(this.rowTree ?? [], this.sharedVar, this.rowHierarchyType, this.rowHierarchyType === 'tree' ? this.rowExpandLevel : undefined);
|
|
68005
|
+
this.resetColumnHeaderLevelCount();
|
|
67911
68006
|
this._generateColHeaderIds();
|
|
67912
68007
|
this.colIndex = 0;
|
|
67913
68008
|
this._generateRowHeaderIds();
|
|
67914
|
-
this.resetColumnHeaderLevelCount();
|
|
67915
68009
|
this._rowHeaderCellFullPathIds_FULL = transpose(this._rowHeaderCellFullPathIds_FULL);
|
|
67916
68010
|
this._headerObjectMap = this._headerObjects.reduce((o, e) => {
|
|
67917
68011
|
o[e.id] = e;
|
|
@@ -68351,7 +68445,9 @@
|
|
|
68351
68445
|
collectedValues = {};
|
|
68352
68446
|
cacheCollectedValues = {};
|
|
68353
68447
|
rows;
|
|
68448
|
+
rowsHasValue;
|
|
68354
68449
|
columns;
|
|
68450
|
+
columnsHasValue;
|
|
68355
68451
|
indicatorKeys;
|
|
68356
68452
|
customRowTree;
|
|
68357
68453
|
customColTree;
|
|
@@ -68411,6 +68507,8 @@
|
|
|
68411
68507
|
this.rowFlatKeys = {};
|
|
68412
68508
|
this.colKeys = [];
|
|
68413
68509
|
this.rowKeys = [];
|
|
68510
|
+
this.rowsHasValue = [];
|
|
68511
|
+
this.columnsHasValue = [];
|
|
68414
68512
|
if (records) {
|
|
68415
68513
|
this.records = records;
|
|
68416
68514
|
typeof window !== 'undefined' ? window.performance.now() : 0;
|
|
@@ -68431,19 +68529,25 @@
|
|
|
68431
68529
|
}
|
|
68432
68530
|
else {
|
|
68433
68531
|
if (this.rowHierarchyType === 'tree') {
|
|
68434
|
-
this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows,
|
|
68532
|
+
this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows.filter((key, index) => {
|
|
68533
|
+
return this.rowsHasValue[index];
|
|
68534
|
+
}), this.indicatorsAsCol ? undefined : this.indicators, this.totals?.row?.showGrandTotals ||
|
|
68435
68535
|
(!this.indicatorsAsCol && this.columns.length === 0) ||
|
|
68436
68536
|
(this.indicatorsAsCol && this.rows.length === 0), this.rowGrandTotalLabel);
|
|
68437
68537
|
}
|
|
68438
68538
|
else {
|
|
68439
|
-
this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows
|
|
68539
|
+
this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows.filter((key, index) => {
|
|
68540
|
+
return this.rowsHasValue[index];
|
|
68541
|
+
}), 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);
|
|
68440
68542
|
}
|
|
68441
68543
|
}
|
|
68442
68544
|
if (this.customColTree) {
|
|
68443
68545
|
this.colHeaderTree = this.customColTree;
|
|
68444
68546
|
}
|
|
68445
68547
|
else {
|
|
68446
|
-
this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns
|
|
68548
|
+
this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns.filter((key, index) => {
|
|
68549
|
+
return this.columnsHasValue[index];
|
|
68550
|
+
}), 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);
|
|
68447
68551
|
}
|
|
68448
68552
|
typeof window !== 'undefined' ? window.performance.now() : 0;
|
|
68449
68553
|
if (this.dataConfig?.isPivotChart) {
|
|
@@ -68640,6 +68744,7 @@
|
|
|
68640
68744
|
for (let l = 0, len1 = this.rows.length; l < len1; l++) {
|
|
68641
68745
|
const rowAttr = this.rows[l];
|
|
68642
68746
|
if (rowAttr in record) {
|
|
68747
|
+
this.rowsHasValue[l] = true;
|
|
68643
68748
|
rowKey.push(record[rowAttr]);
|
|
68644
68749
|
}
|
|
68645
68750
|
else if (rowAttr !== IndicatorDimensionKeyPlaceholder) {
|
|
@@ -68665,6 +68770,7 @@
|
|
|
68665
68770
|
for (let n = 0, len2 = this.columns.length; n < len2; n++) {
|
|
68666
68771
|
const colAttr = this.columns[n];
|
|
68667
68772
|
if (colAttr in record) {
|
|
68773
|
+
this.columnsHasValue[n] = true;
|
|
68668
68774
|
colKey.push(record[colAttr]);
|
|
68669
68775
|
}
|
|
68670
68776
|
else if (colAttr !== IndicatorDimensionKeyPlaceholder) {
|
|
@@ -68790,16 +68896,22 @@
|
|
|
68790
68896
|
this.sortKeys();
|
|
68791
68897
|
if (!this.customRowTree) {
|
|
68792
68898
|
if (this.rowHierarchyType === 'tree') {
|
|
68793
|
-
this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows,
|
|
68899
|
+
this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows.filter((key, index) => {
|
|
68900
|
+
return this.rowsHasValue[index];
|
|
68901
|
+
}), this.indicatorsAsCol ? undefined : this.indicators, this.totals?.row?.showGrandTotals ||
|
|
68794
68902
|
(!this.indicatorsAsCol && this.columns.length === 0) ||
|
|
68795
68903
|
(this.indicatorsAsCol && this.rows.length === 0), this.rowGrandTotalLabel);
|
|
68796
68904
|
}
|
|
68797
68905
|
else {
|
|
68798
|
-
this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows
|
|
68906
|
+
this.rowHeaderTree = this.ArrToTree(this.rowKeys, this.rows.filter((key, index) => {
|
|
68907
|
+
return this.rowsHasValue[index];
|
|
68908
|
+
}), 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);
|
|
68799
68909
|
}
|
|
68800
68910
|
}
|
|
68801
68911
|
if (!this.customColTree) {
|
|
68802
|
-
this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns
|
|
68912
|
+
this.colHeaderTree = this.ArrToTree(this.colKeys, this.columns.filter((key, index) => {
|
|
68913
|
+
return this.columnsHasValue[index];
|
|
68914
|
+
}), 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);
|
|
68803
68915
|
}
|
|
68804
68916
|
}
|
|
68805
68917
|
updateFilterRules(filterRules, isResetTree = false) {
|
|
@@ -72368,7 +72480,7 @@
|
|
|
72368
72480
|
}
|
|
72369
72481
|
|
|
72370
72482
|
registerForVrender();
|
|
72371
|
-
const version = "1.3.
|
|
72483
|
+
const version = "1.3.2-alpha.0";
|
|
72372
72484
|
function getIcons() {
|
|
72373
72485
|
return get$2();
|
|
72374
72486
|
}
|