@visactor/vtable 1.3.1-alpha.0 → 1.3.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.
Files changed (69) hide show
  1. package/cjs/ListTable.js +13 -11
  2. package/cjs/ListTable.js.map +1 -1
  3. package/cjs/PivotChart.js +7 -6
  4. package/cjs/PivotChart.js.map +1 -1
  5. package/cjs/PivotTable.js +19 -23
  6. package/cjs/PivotTable.js.map +1 -1
  7. package/cjs/components/empty-tip/empty-tip.js +2 -2
  8. package/cjs/components/empty-tip/empty-tip.js.map +1 -1
  9. package/cjs/core/BaseTable.js +3 -3
  10. package/cjs/core/BaseTable.js.map +1 -1
  11. package/cjs/dataset/dataset.d.ts +0 -2
  12. package/cjs/dataset/dataset.js +7 -8
  13. package/cjs/dataset/dataset.js.map +1 -1
  14. package/cjs/event/listener/container-dom.js +3 -2
  15. package/cjs/event/listener/container-dom.js.map +1 -1
  16. package/cjs/index.d.ts +1 -1
  17. package/cjs/index.js +2 -2
  18. package/cjs/index.js.map +1 -1
  19. package/cjs/layout/pivot-header-layout.js +15 -19
  20. package/cjs/layout/pivot-header-layout.js.map +1 -1
  21. package/cjs/layout/row-height-map.js +1 -0
  22. package/cjs/layout/row-height-map.js.map +1 -1
  23. package/cjs/scenegraph/layout/compute-row-height.js +4 -1
  24. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  25. package/cjs/scenegraph/scenegraph.js +2 -2
  26. package/cjs/scenegraph/scenegraph.js.map +1 -1
  27. package/cjs/state/cell-move/index.js +1 -1
  28. package/cjs/state/cell-move/index.js.map +1 -1
  29. package/cjs/state/sort/index.js +2 -2
  30. package/cjs/state/sort/index.js.map +1 -1
  31. package/cjs/ts-types/base-table.d.ts +3 -2
  32. package/cjs/ts-types/base-table.js.map +1 -1
  33. package/cjs/vrender.js.map +1 -1
  34. package/dist/vtable.js +54 -104
  35. package/dist/vtable.min.js +2 -2
  36. package/es/ListTable.js +13 -12
  37. package/es/ListTable.js.map +1 -1
  38. package/es/PivotChart.js +8 -7
  39. package/es/PivotChart.js.map +1 -1
  40. package/es/PivotTable.js +20 -24
  41. package/es/PivotTable.js.map +1 -1
  42. package/es/components/empty-tip/empty-tip.js +2 -2
  43. package/es/components/empty-tip/empty-tip.js.map +1 -1
  44. package/es/core/BaseTable.js +3 -3
  45. package/es/core/BaseTable.js.map +1 -1
  46. package/es/dataset/dataset.d.ts +0 -2
  47. package/es/dataset/dataset.js +7 -8
  48. package/es/dataset/dataset.js.map +1 -1
  49. package/es/event/listener/container-dom.js +3 -2
  50. package/es/event/listener/container-dom.js.map +1 -1
  51. package/es/index.d.ts +1 -1
  52. package/es/index.js +1 -1
  53. package/es/index.js.map +1 -1
  54. package/es/layout/pivot-header-layout.js +15 -18
  55. package/es/layout/pivot-header-layout.js.map +1 -1
  56. package/es/layout/row-height-map.js +1 -0
  57. package/es/layout/row-height-map.js.map +1 -1
  58. package/es/scenegraph/layout/compute-row-height.js +4 -1
  59. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  60. package/es/scenegraph/scenegraph.js +2 -2
  61. package/es/scenegraph/scenegraph.js.map +1 -1
  62. package/es/state/cell-move/index.js +1 -1
  63. package/es/state/cell-move/index.js.map +1 -1
  64. package/es/state/sort/index.js +2 -2
  65. package/es/state/sort/index.js.map +1 -1
  66. package/es/ts-types/base-table.d.ts +3 -2
  67. package/es/ts-types/base-table.js.map +1 -1
  68. package/es/vrender.js.map +1 -1
  69. package/package.json +5 -5
package/dist/vtable.js CHANGED
@@ -40997,6 +40997,9 @@
40997
40997
  return true;
40998
40998
  }
40999
40999
  function fillRowsHeight(height, startRow, endRow, table, newHeights) {
41000
+ if (table.internalProps.useOneRowHeightFillAll) {
41001
+ return;
41002
+ }
41000
41003
  for (let row = startRow; row <= endRow; row++) {
41001
41004
  if (newHeights) {
41002
41005
  newHeights[row] = height;
@@ -41005,6 +41008,7 @@
41005
41008
  table._setRowHeight(row, height);
41006
41009
  }
41007
41010
  }
41011
+ table.internalProps.useOneRowHeightFillAll = true;
41008
41012
  }
41009
41013
  function computeCustomRenderHeight(col, row, table) {
41010
41014
  const customRender = table.getCustomRender(col, row);
@@ -49614,6 +49618,7 @@
49614
49618
  computeColsWidth(this.table, 0, this.table.colCount - 1, true);
49615
49619
  }
49616
49620
  recalculateRowHeights() {
49621
+ this.table.internalProps.useOneRowHeightFillAll = false;
49617
49622
  computeRowsHeight(this.table, 0, this.table.rowCount - 1, true, true);
49618
49623
  }
49619
49624
  resize() {
@@ -50326,6 +50331,7 @@
50326
50331
  }
50327
50332
  updateRow(removeCells, addCells, updateCells = []) {
50328
50333
  this.table.internalProps.layoutMap.clearCellRangeMap();
50334
+ this.table.internalProps.useOneRowHeightFillAll = false;
50329
50335
  const addRows = deduplication$1(addCells.map(cell => cell.row)).sort((a, b) => a - b);
50330
50336
  const updateRows = deduplication$1(updateCells.map(cell => cell.row)).sort((a, b) => a - b);
50331
50337
  const isNotFillHeight = this.table.getAllRowsHeight() -
@@ -50652,6 +50658,7 @@
50652
50658
  if (headerC?.sort) {
50653
50659
  executeSort(tableState, table, headerC);
50654
50660
  }
50661
+ table.internalProps.useOneRowHeightFillAll = false;
50655
50662
  table.internalProps.layoutMap.clearCellRangeMap();
50656
50663
  table.scenegraph.sortCell();
50657
50664
  table.stateManager.updateSelectPos(-1, -1);
@@ -51198,6 +51205,7 @@
51198
51205
  const oldTargetMergeInfo = state.table.getCellRange(state.columnMove.colTarget, state.columnMove.rowTarget);
51199
51206
  const moveContext = state.table._moveHeaderPosition({ col: state.columnMove.colSource, row: state.columnMove.rowSource }, { col: state.columnMove.colTarget, row: state.columnMove.rowTarget });
51200
51207
  if (moveContext) {
51208
+ state.table.internalProps.useOneRowHeightFillAll = false;
51201
51209
  state.table.internalProps.layoutMap.clearCellRangeMap();
51202
51210
  const sourceMergeInfo = state.table.getCellRange(state.columnMove.colSource, state.columnMove.rowSource);
51203
51211
  const targetMergeInfo = state.table.getCellRange(state.columnMove.colTarget, state.columnMove.rowTarget);
@@ -54622,7 +54630,11 @@
54622
54630
  }
54623
54631
  }
54624
54632
  table.stateManager.updateInteractionState(InteractionState.grabing);
54625
- table.stateManager.updateSelectPos(table.getTargetColAtConsiderRightFrozen(selectX, considerFrozenX).col, table.getTargetRowAtConsiderBottomFrozen(selectY, considerFrozenY).row, false, false, false, true);
54633
+ const targetCol = table.getTargetColAtConsiderRightFrozen(selectX, considerFrozenX);
54634
+ const targetRow = table.getTargetRowAtConsiderBottomFrozen(selectY, considerFrozenY);
54635
+ if (isValid$1(targetCol) && isValid$1(targetRow)) {
54636
+ table.stateManager.updateSelectPos(targetCol.col, targetRow.row, false, false, false, true);
54637
+ }
54626
54638
  });
54627
54639
  }
54628
54640
  else if (table.eventManager.inertiaScroll.isInertiaScrolling()) {
@@ -58128,6 +58140,9 @@
58128
58140
  put(position, newValue) {
58129
58141
  if (this.data.has(position)) {
58130
58142
  const oldValue = this.data.get(position);
58143
+ if (oldValue === newValue) {
58144
+ return;
58145
+ }
58131
58146
  this.data.set(position, newValue);
58132
58147
  const difference = newValue - oldValue;
58133
58148
  this.totalSum += difference;
@@ -59211,7 +59226,7 @@
59211
59226
  return TABLE_EVENT_TYPE;
59212
59227
  }
59213
59228
  options;
59214
- version = "1.3.1-alpha.0";
59229
+ version = "1.3.1";
59215
59230
  pagination;
59216
59231
  id = `VTable${Date.now()}`;
59217
59232
  headerStyleCache;
@@ -60587,6 +60602,7 @@
60587
60602
  renderWithRecreateCells() {
60588
60603
  const oldHoverState = { col: this.stateManager.hover.cellPos.col, row: this.stateManager.hover.cellPos.row };
60589
60604
  this.refreshHeader();
60605
+ this.internalProps.useOneRowHeightFillAll = false;
60590
60606
  this.scenegraph.clearCells();
60591
60607
  this.clearCellStyleCache();
60592
60608
  this.scenegraph.createSceneGraph();
@@ -64084,12 +64100,10 @@
64084
64100
  const topHeaderHeight = !this.table.transpose || this.table.options.indicatorsAsCol
64085
64101
  ? this.table.getFrozenRowsHeight()
64086
64102
  : 0;
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;
64103
+ const width = (this.table.columnHeaderLevelCount > 0 ? this.table.getDrawRange().width : this.table.tableNoFrameWidth) -
64104
+ leftHeaderWidth;
64105
+ const height = (this.table.rowHeaderLevelCount > 0 ? this.table.getDrawRange().height : this.table.tableNoFrameHeight) -
64106
+ topHeaderHeight;
64093
64107
  this._emptyTipComponent.setAttributes({
64094
64108
  spaceBetweenTextAndIcon: this._emptyTipOption.spaceBetweenTextAndIcon,
64095
64109
  x: this.table.tableX + leftHeaderWidth,
@@ -64132,12 +64146,10 @@
64132
64146
  const topHeaderHeight = !this.table.transpose || this.table.options.indicatorsAsCol
64133
64147
  ? this.table.getFrozenRowsHeight()
64134
64148
  : 0;
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;
64149
+ const width = (this.table.columnHeaderLevelCount > 0 ? this.table.getDrawRange().width : this.table.tableNoFrameWidth) -
64150
+ leftHeaderWidth;
64151
+ const height = (this.table.rowHeaderLevelCount > 0 ? this.table.getDrawRange().height : this.table.tableNoFrameHeight) -
64152
+ topHeaderHeight;
64141
64153
  return {
64142
64154
  spaceBetweenTextAndIcon: this._emptyTipOption.spaceBetweenTextAndIcon,
64143
64155
  x: this.table.tableX + leftHeaderWidth,
@@ -64191,6 +64203,7 @@
64191
64203
  this.editorManager = new EditManeger(this);
64192
64204
  }
64193
64205
  this.refreshHeader();
64206
+ this.internalProps.useOneRowHeightFillAll = false;
64194
64207
  if (options.dataSource) {
64195
64208
  _setDataSource(this, options.dataSource);
64196
64209
  }
@@ -64242,6 +64255,7 @@
64242
64255
  this.internalProps.headerHelper.setTableColumnsEditor();
64243
64256
  this._hasAutoImageColumn = undefined;
64244
64257
  this.refreshHeader();
64258
+ this.internalProps.useOneRowHeightFillAll = false;
64245
64259
  this.scenegraph.clearCells();
64246
64260
  this.headerStyleCache = new Map();
64247
64261
  this.bodyStyleCache = new Map();
@@ -64261,6 +64275,7 @@
64261
64275
  this.internalProps.columns = header;
64262
64276
  this.options.header = header;
64263
64277
  this.refreshHeader();
64278
+ this.internalProps.useOneRowHeightFillAll = false;
64264
64279
  this.renderAsync();
64265
64280
  }
64266
64281
  get transpose() {
@@ -64433,6 +64448,7 @@
64433
64448
  this.internalProps.headerHelper.setTableColumnsEditor();
64434
64449
  this.transpose = options.transpose ?? false;
64435
64450
  this.refreshHeader();
64451
+ this.internalProps.useOneRowHeightFillAll = false;
64436
64452
  if (internalProps.releaseList) {
64437
64453
  internalProps.releaseList.forEach(releaseObj => releaseObj?.release?.());
64438
64454
  internalProps.releaseList = null;
@@ -64475,6 +64491,7 @@
64475
64491
  pagination.perPageCount &&
64476
64492
  (this.pagination.perPageCount = pagination.perPageCount || this.pagination.perPageCount);
64477
64493
  this.internalProps.layoutMap.clearCellRangeMap();
64494
+ this.internalProps.useOneRowHeightFillAll = false;
64478
64495
  this.scenegraph.clearCells();
64479
64496
  this.dataSource.updatePagination(this.pagination);
64480
64497
  this.refreshRowColCount();
@@ -64701,6 +64718,7 @@
64701
64718
  this.refreshRowColCount();
64702
64719
  this.clearCellStyleCache();
64703
64720
  this.internalProps.layoutMap.clearCellRangeMap();
64721
+ this.internalProps.useOneRowHeightFillAll = false;
64704
64722
  this.scenegraph.updateHierarchyIcon(col, row);
64705
64723
  this.scenegraph.updateRow(diffPositions.removeCellPositions, diffPositions.addCellPositions);
64706
64724
  if (checkHasChart) {
@@ -64780,6 +64798,7 @@
64780
64798
  if (hd.define.sort !== false) {
64781
64799
  this.dataSource.sort(hd.field, order, sortFunc);
64782
64800
  this.internalProps.layoutMap.clearCellRangeMap();
64801
+ this.internalProps.useOneRowHeightFillAll = false;
64783
64802
  this.scenegraph.sortCell();
64784
64803
  }
64785
64804
  }
@@ -65667,15 +65686,7 @@
65667
65686
  }
65668
65687
  this.sharedVar.seqId = Math.max(this.sharedVar.seqId, this._headerObjects.length);
65669
65688
  if (this.cornerSetting.titleOnDimension === 'column') {
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
- }
65689
+ const colDimensionKeys = this.columnDimensionTree.dimensionKeysIncludeVirtual.valueArr();
65679
65690
  this.cornerHeaderObjs = this._addCornerHeaders(this.columnHeaderTitle ? [''].concat(colDimensionKeys) : colDimensionKeys, this.columnsDefine);
65680
65691
  }
65681
65692
  else if (this.cornerSetting.titleOnDimension === 'row') {
@@ -65691,15 +65702,7 @@
65691
65702
  this.cornerHeaderObjs = this._addCornerHeaders(this.rowHeaderTitle ? [''].concat(rowTreeFirstKey) : rowTreeFirstKey, this.rowsDefine.concat(extensionRowDimensions));
65692
65703
  }
65693
65704
  else {
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
- }
65705
+ const rowDimensionKeys = this.rowDimensionTree.dimensionKeysIncludeVirtual.valueArr();
65703
65706
  this.cornerHeaderObjs = this._addCornerHeaders(this.rowHeaderTitle ? [''].concat(rowDimensionKeys) : rowDimensionKeys, this.rowsDefine);
65704
65707
  }
65705
65708
  }
@@ -66357,19 +66360,6 @@
66357
66360
  : this.columnDimensionTree.totalLevel
66358
66361
  : this.columnDimensionTree.totalLevel
66359
66362
  : 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
66363
  if (this.columnHeaderTitle) {
66374
66364
  count += 1;
66375
66365
  }
@@ -66403,19 +66393,6 @@
66403
66393
  this.rowDimensionKeys[this.rowDimensionKeys.length - 1] === this.indicatorDimensionKey) {
66404
66394
  count = rowLevelCount - 1;
66405
66395
  }
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
66396
  if (this.rowHeaderTitle) {
66420
66397
  count += 1;
66421
66398
  }
@@ -66530,16 +66507,16 @@
66530
66507
  return '';
66531
66508
  }
66532
66509
  else if (this.isCornerHeader(col, row)) {
66533
- return this._cornerHeaderCellIds[row]?.[col - this.leftRowSeriesNumberColumnCount];
66510
+ return this._cornerHeaderCellIds[row][col - this.leftRowSeriesNumberColumnCount];
66534
66511
  }
66535
66512
  else if (this.isColumnHeader(col, row)) {
66536
- return this._columnHeaderCellIds[row]?.[col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount];
66513
+ return this._columnHeaderCellIds[row][col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount];
66537
66514
  }
66538
66515
  else if (this.isRowHeader(col, row)) {
66539
66516
  return this._rowHeaderCellIds[row - this.columnHeaderLevelCount]?.[col - this.leftRowSeriesNumberColumnCount];
66540
66517
  }
66541
66518
  else if (this.isRightFrozenColumn(col, row)) {
66542
- return this._rowHeaderCellIds[row - this.columnHeaderLevelCount]?.[this.rowHeaderLevelCount - 1];
66519
+ return this._rowHeaderCellIds[row - this.columnHeaderLevelCount][this.rowHeaderLevelCount - 1];
66543
66520
  }
66544
66521
  else if (this.isBottomFrozenRow(col, row)) {
66545
66522
  return this._columnHeaderCellIds[this.columnHeaderLevelCount - 1]?.[col - this.rowHeaderLevelCount - this.leftRowSeriesNumberColumnCount];
@@ -67519,6 +67496,7 @@
67519
67496
  }
67520
67497
  setPagination(pagination) {
67521
67498
  this.clearCellRangeMap();
67499
+ this._table.internalProps.useOneRowHeightFillAll = false;
67522
67500
  this.pagination = pagination;
67523
67501
  if (this.rowHierarchyType === 'grid' &&
67524
67502
  isValid$1(this.pagination?.perPageCount) &&
@@ -68373,9 +68351,7 @@
68373
68351
  collectedValues = {};
68374
68352
  cacheCollectedValues = {};
68375
68353
  rows;
68376
- rowsHasValue;
68377
68354
  columns;
68378
- columnsHasValue;
68379
68355
  indicatorKeys;
68380
68356
  customRowTree;
68381
68357
  customColTree;
@@ -68435,8 +68411,6 @@
68435
68411
  this.rowFlatKeys = {};
68436
68412
  this.colKeys = [];
68437
68413
  this.rowKeys = [];
68438
- this.rowsHasValue = [];
68439
- this.columnsHasValue = [];
68440
68414
  if (records) {
68441
68415
  this.records = records;
68442
68416
  typeof window !== 'undefined' ? window.performance.now() : 0;
@@ -68457,25 +68431,19 @@
68457
68431
  }
68458
68432
  else {
68459
68433
  if (this.rowHierarchyType === 'tree') {
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 ||
68434
+ this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows, this.indicatorsAsCol ? undefined : this.indicators, this.totals?.row?.showGrandTotals ||
68463
68435
  (!this.indicatorsAsCol && this.columns.length === 0) ||
68464
68436
  (this.indicatorsAsCol && this.rows.length === 0), this.rowGrandTotalLabel);
68465
68437
  }
68466
68438
  else {
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);
68439
+ 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
68440
  }
68471
68441
  }
68472
68442
  if (this.customColTree) {
68473
68443
  this.colHeaderTree = this.customColTree;
68474
68444
  }
68475
68445
  else {
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);
68446
+ 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
68447
  }
68480
68448
  typeof window !== 'undefined' ? window.performance.now() : 0;
68481
68449
  if (this.dataConfig?.isPivotChart) {
@@ -68672,7 +68640,6 @@
68672
68640
  for (let l = 0, len1 = this.rows.length; l < len1; l++) {
68673
68641
  const rowAttr = this.rows[l];
68674
68642
  if (rowAttr in record) {
68675
- this.rowsHasValue[l] = true;
68676
68643
  rowKey.push(record[rowAttr]);
68677
68644
  }
68678
68645
  else if (rowAttr !== IndicatorDimensionKeyPlaceholder) {
@@ -68698,7 +68665,6 @@
68698
68665
  for (let n = 0, len2 = this.columns.length; n < len2; n++) {
68699
68666
  const colAttr = this.columns[n];
68700
68667
  if (colAttr in record) {
68701
- this.columnsHasValue[n] = true;
68702
68668
  colKey.push(record[colAttr]);
68703
68669
  }
68704
68670
  else if (colAttr !== IndicatorDimensionKeyPlaceholder) {
@@ -68824,22 +68790,16 @@
68824
68790
  this.sortKeys();
68825
68791
  if (!this.customRowTree) {
68826
68792
  if (this.rowHierarchyType === 'tree') {
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 ||
68793
+ this.rowHeaderTree = this.ArrToTree1(this.rowKeys, this.rows, this.indicatorsAsCol ? undefined : this.indicators, this.totals?.row?.showGrandTotals ||
68830
68794
  (!this.indicatorsAsCol && this.columns.length === 0) ||
68831
68795
  (this.indicatorsAsCol && this.rows.length === 0), this.rowGrandTotalLabel);
68832
68796
  }
68833
68797
  else {
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);
68798
+ 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
68799
  }
68838
68800
  }
68839
68801
  if (!this.customColTree) {
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);
68802
+ 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
68803
  }
68844
68804
  }
68845
68805
  updateFilterRules(filterRules, isResetTree = false) {
@@ -69553,18 +69513,12 @@
69553
69513
  if (options.indicatorsAsCol !== false) {
69554
69514
  this.dataset.colHeaderTree = supplementIndicatorNodesForCustomTree(this.dataset.colHeaderTree, options.indicators);
69555
69515
  }
69556
- if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
69557
- this.dataset.colHeaderTree = [];
69558
- }
69559
69516
  columnDimensionTree = new DimensionTree(this.dataset.colHeaderTree ?? [], this.layoutNodeId);
69560
69517
  }
69561
69518
  if (!options.rowTree) {
69562
69519
  if (options.indicatorsAsCol === false) {
69563
69520
  this.dataset.rowHeaderTree = supplementIndicatorNodesForCustomTree(this.dataset.rowHeaderTree, options.indicators);
69564
69521
  }
69565
- if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
69566
- this.dataset.rowHeaderTree = [];
69567
- }
69568
69522
  rowDimensionTree = new DimensionTree(this.dataset.rowHeaderTree ?? [], this.layoutNodeId, this.options.rowHierarchyType, this.options.rowHierarchyType === 'tree' ? this.options.rowExpandLevel ?? 1 : undefined);
69569
69523
  }
69570
69524
  this.internalProps.layoutMap = new PivotHeaderLayoutMap(this, this.dataset, columnDimensionTree, rowDimensionTree);
@@ -69578,6 +69532,7 @@
69578
69532
  this.editorManager = new EditManeger(this);
69579
69533
  }
69580
69534
  this.refreshHeader();
69535
+ this.internalProps.useOneRowHeightFillAll = false;
69581
69536
  this.stateManager.initCheckedState(records);
69582
69537
  this.scenegraph.createSceneGraph();
69583
69538
  if (options.title) {
@@ -69697,18 +69652,12 @@
69697
69652
  if (options.indicatorsAsCol !== false) {
69698
69653
  this.dataset.colHeaderTree = supplementIndicatorNodesForCustomTree(this.dataset.colHeaderTree, options.indicators);
69699
69654
  }
69700
- if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
69701
- this.dataset.colHeaderTree = [];
69702
- }
69703
69655
  columnDimensionTree = new DimensionTree(this.dataset.colHeaderTree ?? [], this.layoutNodeId);
69704
69656
  }
69705
69657
  if (!options.rowTree) {
69706
69658
  if (options.indicatorsAsCol === false) {
69707
69659
  this.dataset.rowHeaderTree = supplementIndicatorNodesForCustomTree(this.dataset.rowHeaderTree, options.indicators);
69708
69660
  }
69709
- if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
69710
- this.dataset.rowHeaderTree = [];
69711
- }
69712
69661
  rowDimensionTree = new DimensionTree(this.dataset.rowHeaderTree ?? [], this.layoutNodeId, this.options.rowHierarchyType, this.options.rowHierarchyType === 'tree' ? this.options.rowExpandLevel ?? 1 : undefined);
69713
69662
  }
69714
69663
  internalProps.layoutMap = new PivotHeaderLayoutMap(this, this.dataset, columnDimensionTree, rowDimensionTree);
@@ -69719,6 +69668,7 @@
69719
69668
  this.pivotSortState = options.pivotSortState;
69720
69669
  }
69721
69670
  this.refreshHeader();
69671
+ this.internalProps.useOneRowHeightFillAll = false;
69722
69672
  if (internalProps.releaseList) {
69723
69673
  internalProps.releaseList.forEach(releaseObj => releaseObj?.release?.());
69724
69674
  internalProps.releaseList = null;
@@ -70165,6 +70115,7 @@
70165
70115
  this.internalProps.layoutMap.resetHeaderTree();
70166
70116
  this.scenegraph.clearCells();
70167
70117
  this.refreshHeader();
70118
+ this.internalProps.useOneRowHeightFillAll = false;
70168
70119
  this.scenegraph.createSceneGraph();
70169
70120
  this.render();
70170
70121
  }
@@ -70485,18 +70436,12 @@
70485
70436
  columnDimensionTree = internalProps.layoutMap.columnDimensionTree;
70486
70437
  }
70487
70438
  else {
70488
- if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
70489
- this.dataset.colHeaderTree = [];
70490
- }
70491
70439
  columnDimensionTree = new DimensionTree(this.dataset.colHeaderTree ?? [], this.layoutNodeId);
70492
70440
  }
70493
70441
  if (options.rowTree) {
70494
70442
  rowDimensionTree = internalProps.layoutMap.rowDimensionTree;
70495
70443
  }
70496
70444
  else {
70497
- if ((this.records?.length ?? 0) === 0 && !this.dataset.customColTree && !this.dataset.customRowTree) {
70498
- this.dataset.rowHeaderTree = [];
70499
- }
70500
70445
  rowDimensionTree = new DimensionTree(this.dataset.rowHeaderTree ?? [], this.layoutNodeId, this.options.rowHierarchyType, this.options.rowHierarchyType === 'tree' ? this.options.rowExpandLevel ?? 1 : undefined);
70501
70446
  }
70502
70447
  internalProps.layoutMap = new PivotHeaderLayoutMap(this, this.dataset, columnDimensionTree, rowDimensionTree);
@@ -70506,6 +70451,7 @@
70506
70451
  }
70507
70452
  }
70508
70453
  this.refreshHeader();
70454
+ this.internalProps.useOneRowHeightFillAll = false;
70509
70455
  this.scenegraph.clearCells();
70510
70456
  this.clearCellStyleCache();
70511
70457
  this.scenegraph.createSceneGraph();
@@ -70936,6 +70882,7 @@
70936
70882
  rowDimensionTree = new DimensionTree(this.dataset.rowHeaderTree ?? [], this.layoutNodeId);
70937
70883
  this.internalProps.layoutMap = new PivotHeaderLayoutMap(this, this.dataset, columnDimensionTree, rowDimensionTree);
70938
70884
  this.refreshHeader();
70885
+ this.internalProps.useOneRowHeightFillAll = false;
70939
70886
  this.scenegraph.createSceneGraph();
70940
70887
  if (options.title) {
70941
70888
  this.internalProps.title = new Title(options.title, this);
@@ -71093,6 +71040,7 @@
71093
71040
  rowDimensionTree = new DimensionTree(this.dataset.rowHeaderTree ?? [], this.layoutNodeId);
71094
71041
  internalProps.layoutMap = new PivotHeaderLayoutMap(this, this.dataset, columnDimensionTree, rowDimensionTree);
71095
71042
  this.refreshHeader();
71043
+ this.internalProps.useOneRowHeightFillAll = false;
71096
71044
  if (internalProps.releaseList) {
71097
71045
  internalProps.releaseList.forEach(releaseObj => releaseObj?.release?.());
71098
71046
  internalProps.releaseList = null;
@@ -71326,6 +71274,7 @@
71326
71274
  this.internalProps.layoutMap.resetHeaderTree();
71327
71275
  this.scenegraph.clearCells();
71328
71276
  this.refreshHeader();
71277
+ this.internalProps.useOneRowHeightFillAll = false;
71329
71278
  this.scenegraph.createSceneGraph();
71330
71279
  this.render();
71331
71280
  }
@@ -71794,6 +71743,7 @@
71794
71743
  }
71795
71744
  internalProps.layoutMap = new PivotHeaderLayoutMap(this, this.dataset, columnDimensionTree, rowDimensionTree);
71796
71745
  this.refreshHeader();
71746
+ this.internalProps.useOneRowHeightFillAll = false;
71797
71747
  this.scenegraph.clearCells();
71798
71748
  this.clearCellStyleCache();
71799
71749
  this.scenegraph.createSceneGraph();
@@ -72418,7 +72368,7 @@
72418
72368
  }
72419
72369
 
72420
72370
  registerForVrender();
72421
- const version = "1.3.1-alpha.0";
72371
+ const version = "1.3.1";
72422
72372
  function getIcons() {
72423
72373
  return get$2();
72424
72374
  }