@visactor/vtable 0.14.1 → 0.14.2-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.
Files changed (63) hide show
  1. package/cjs/core/BaseTable.js +1 -1
  2. package/cjs/core/BaseTable.js.map +1 -1
  3. package/cjs/index.d.ts +1 -1
  4. package/cjs/index.js +1 -1
  5. package/cjs/index.js.map +1 -1
  6. package/cjs/scenegraph/component/custom.d.ts +1 -0
  7. package/cjs/scenegraph/component/custom.js +3 -2
  8. package/cjs/scenegraph/component/custom.js.map +1 -1
  9. package/cjs/scenegraph/group-creater/column-helper.js +1 -1
  10. package/cjs/scenegraph/group-creater/column-helper.js.map +1 -1
  11. package/cjs/scenegraph/group-creater/progress/proxy.js +3 -1
  12. package/cjs/scenegraph/group-creater/progress/proxy.js.map +1 -1
  13. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +6 -2
  14. package/cjs/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
  15. package/cjs/scenegraph/layout/compute-col-width.js +3 -2
  16. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  17. package/cjs/scenegraph/layout/compute-row-height.js +3 -2
  18. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  19. package/cjs/scenegraph/layout/update-row.js +73 -29
  20. package/cjs/scenegraph/layout/update-row.js.map +1 -1
  21. package/cjs/scenegraph/layout/update-width.js +8 -2
  22. package/cjs/scenegraph/layout/update-width.js.map +1 -1
  23. package/cjs/scenegraph/scenegraph.js +1 -1
  24. package/cjs/scenegraph/scenegraph.js.map +1 -1
  25. package/cjs/scenegraph/select/update-select-border.js +2 -2
  26. package/cjs/scenegraph/select/update-select-border.js.map +1 -1
  27. package/cjs/state/select/update-position.js +28 -21
  28. package/cjs/state/select/update-position.js.map +1 -1
  29. package/cjs/ts-types/base-table.d.ts +2 -0
  30. package/cjs/ts-types/base-table.js.map +1 -1
  31. package/dist/vtable.js +165 -64
  32. package/dist/vtable.min.js +2 -2
  33. package/es/core/BaseTable.js +1 -1
  34. package/es/core/BaseTable.js.map +1 -1
  35. package/es/index.d.ts +1 -1
  36. package/es/index.js +1 -1
  37. package/es/index.js.map +1 -1
  38. package/es/scenegraph/component/custom.d.ts +1 -0
  39. package/es/scenegraph/component/custom.js +1 -1
  40. package/es/scenegraph/component/custom.js.map +1 -1
  41. package/es/scenegraph/group-creater/column-helper.js +1 -1
  42. package/es/scenegraph/group-creater/column-helper.js.map +1 -1
  43. package/es/scenegraph/group-creater/progress/proxy.js +3 -1
  44. package/es/scenegraph/group-creater/progress/proxy.js.map +1 -1
  45. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js +6 -2
  46. package/es/scenegraph/group-creater/progress/update-position/dynamic-set-y.js.map +1 -1
  47. package/es/scenegraph/layout/compute-col-width.js +4 -3
  48. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  49. package/es/scenegraph/layout/compute-row-height.js +4 -3
  50. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  51. package/es/scenegraph/layout/update-row.js +73 -28
  52. package/es/scenegraph/layout/update-row.js.map +1 -1
  53. package/es/scenegraph/layout/update-width.js +8 -1
  54. package/es/scenegraph/layout/update-width.js.map +1 -1
  55. package/es/scenegraph/scenegraph.js +1 -1
  56. package/es/scenegraph/scenegraph.js.map +1 -1
  57. package/es/scenegraph/select/update-select-border.js +2 -2
  58. package/es/scenegraph/select/update-select-border.js.map +1 -1
  59. package/es/state/select/update-position.js +28 -21
  60. package/es/state/select/update-position.js.map +1 -1
  61. package/es/ts-types/base-table.d.ts +2 -0
  62. package/es/ts-types/base-table.js.map +1 -1
  63. package/package.json +1 -1
package/dist/vtable.js CHANGED
@@ -52055,8 +52055,8 @@
52055
52055
  let textAlign;
52056
52056
  let textBaseline;
52057
52057
  let y = 0;
52058
- if (columnGroup.colHeight) {
52059
- y = columnGroup.colHeight;
52058
+ if (columnGroup.lastChild) {
52059
+ y = columnGroup.lastChild.attribute.y + columnGroup.lastChild.attribute.height;
52060
52060
  }
52061
52061
  for (let j = rowStart; j <= rowEnd; j++) {
52062
52062
  const row = j;
@@ -53376,10 +53376,10 @@
53376
53376
  };
53377
53377
  if (customLayout) {
53378
53378
  const customLayoutObj = customLayout(arg);
53379
- if (customLayoutObj.rootContainer) {
53380
- customLayoutObj.rootContainer = decodeReactDom(customLayoutObj.rootContainer);
53381
- }
53382
53379
  if (customLayoutObj.rootContainer instanceof Group$3) {
53380
+ customLayoutObj.rootContainer = decodeReactDom(customLayoutObj.rootContainer);
53381
+ dealPercentCalc(customLayoutObj.rootContainer, table.getColWidth(col), 0);
53382
+ customLayoutObj.rootContainer.setStage(table.scenegraph.stage);
53383
53383
  height = customLayoutObj.rootContainer.AABBBounds.height() ?? 0;
53384
53384
  }
53385
53385
  else {
@@ -53918,6 +53918,13 @@
53918
53918
  });
53919
53919
  });
53920
53920
  const changed = updateCellContentWidth(singleCellGroup, distWidth, cellHeight, detaX, autoRowHeight, padding, textAlign, textBaseline, table.scenegraph);
53921
+ const hierarchyOffset = getHierarchyOffset(singleCellGroup.col, singleCellGroup.row, table);
53922
+ if (hierarchyOffset) {
53923
+ const text = singleCellGroup.getChildByName('text');
53924
+ if (text) {
53925
+ text.setAttribute('dx', hierarchyOffset);
53926
+ }
53927
+ }
53921
53928
  const rangeHeight = table.getRowHeight(row);
53922
53929
  const rangeWidth = table.getColWidth(col);
53923
53930
  singleCellGroup.contentWidth = distWidth;
@@ -55957,10 +55964,10 @@
55957
55964
  };
55958
55965
  if (customLayout) {
55959
55966
  const customLayoutObj = customLayout(arg);
55960
- if (customLayoutObj.rootContainer) {
55961
- customLayoutObj.rootContainer = decodeReactDom(customLayoutObj.rootContainer);
55962
- }
55963
55967
  if (customLayoutObj.rootContainer instanceof Group$3) {
55968
+ customLayoutObj.rootContainer = decodeReactDom(customLayoutObj.rootContainer);
55969
+ dealPercentCalc(customLayoutObj.rootContainer, 0, table.getRowHeight(row));
55970
+ customLayoutObj.rootContainer.setStage(table.scenegraph.stage);
55964
55971
  width = customLayoutObj.rootContainer.AABBBounds.width() ?? 0;
55965
55972
  }
55966
55973
  else {
@@ -56496,7 +56503,9 @@
56496
56503
  proxy.rowEnd = direction === 'up' ? proxy.rowEnd + count : proxy.rowEnd - count;
56497
56504
  updateRowContent(syncTopRow, syncBottomRow, proxy);
56498
56505
  if (proxy.table.heightMode === 'autoHeight') {
56499
- updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, direction);
56506
+ updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? 'down' : 'up');
56507
+ updateAutoRow(0, proxy.table.frozenColCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? 'down' : 'up');
56508
+ updateAutoRow(proxy.table.colCount - proxy.table.rightFrozenColCount, proxy.table.colCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? 'down' : 'up');
56500
56509
  const cellGroup = proxy.table.scenegraph.highPerformanceGetCell(proxy.bodyLeftCol, screenTopRow, true);
56501
56510
  const delaY = screenTopY - (cellGroup.attribute.y + proxy.table.getFrozenRowsHeight() + proxy.table.scenegraph.proxy.deltaY);
56502
56511
  proxy.table.scenegraph.proxy.deltaY += delaY;
@@ -56532,6 +56541,8 @@
56532
56541
  updateRowContent(syncTopRow, syncBottomRow, proxy);
56533
56542
  if (proxy.table.heightMode === 'autoHeight') {
56534
56543
  updateAutoRow(proxy.bodyLeftCol, proxy.bodyRightCol, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? 'down' : 'up');
56544
+ updateAutoRow(0, proxy.table.frozenColCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? 'down' : 'up');
56545
+ updateAutoRow(proxy.table.colCount - proxy.table.rightFrozenColCount, proxy.table.colCount - 1, syncTopRow, syncBottomRow, proxy.table, distEndRow > proxy.bodyBottomRow - (proxy.rowEnd - proxy.rowStart + 1) ? 'down' : 'up');
56535
56546
  }
56536
56547
  proxy.table.scenegraph.proxy.deltaY = 0;
56537
56548
  proxy.currentRow = direction === 'up' ? proxy.currentRow + count : proxy.currentRow - count;
@@ -56982,6 +56993,8 @@
56982
56993
  updateRowContent(this.rowUpdatePos, distRow, this);
56983
56994
  if (this.table.heightMode === 'autoHeight') {
56984
56995
  updateAutoRow(this.bodyLeftCol, this.bodyRightCol, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection);
56996
+ updateAutoRow(0, this.table.frozenColCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection);
56997
+ updateAutoRow(this.table.colCount - this.table.rightFrozenColCount, this.table.colCount - 1, this.rowUpdatePos, distRow, this.table, this.rowUpdateDirection);
56985
56998
  }
56986
56999
  this.rowUpdatePos = distRow + 1;
56987
57000
  }
@@ -57210,7 +57223,7 @@
57210
57223
  const cellRange = scene.table.getCellRange(startCol, startRow);
57211
57224
  const colsWidth = scene.table.getColsWidth(cellRange.start.col, endCol);
57212
57225
  const rowsHeight = scene.table.getRowsHeight(cellRange.start.row, endRow);
57213
- const firstCellBound = scene.highPerformanceGetCell(startCol, startRow).globalAABBBounds;
57226
+ const firstCellBound = scene.highPerformanceGetCell(cellRange.start.col, cellRange.start.row).globalAABBBounds;
57214
57227
  selectComp.rect.setAttributes({
57215
57228
  x: firstCellBound.x1 - scene.tableGroup.attribute.x,
57216
57229
  y: firstCellBound.y1 - scene.tableGroup.attribute.y,
@@ -57218,9 +57231,9 @@
57218
57231
  height: rowsHeight,
57219
57232
  visible: true
57220
57233
  });
57221
- const isNearRowHeader = startCol === scene.table.frozenColCount;
57234
+ const isNearRowHeader = cellRange.start.col === scene.table.frozenColCount;
57222
57235
  const isNearRightRowHeader = endCol === scene.table.colCount - scene.table.rightFrozenColCount - 1;
57223
- const isNearColHeader = startRow === scene.table.frozenRowCount;
57236
+ const isNearColHeader = cellRange.start.row === scene.table.frozenRowCount;
57224
57237
  const isNearBottomColHeader = endRow === scene.table.rowCount - scene.table.bottomFrozenRowCount - 1;
57225
57238
  if ((isNearRowHeader && selectComp.rect.attribute.stroke[3]) ||
57226
57239
  (isNearRightRowHeader && selectComp.rect.attribute.stroke[1]) ||
@@ -57565,17 +57578,26 @@
57565
57578
 
57566
57579
  function updateRow(removeCells, addCells, updateCells, table) {
57567
57580
  const scene = table.scenegraph;
57568
- const removeRows = deduplication(removeCells.map(cell => cell.row)).sort((a, b) => a - b);
57581
+ const removeRows = deduplication(removeCells.map(cell => cell.row)).sort((a, b) => b - a);
57569
57582
  const addRows = deduplication(addCells.map(cell => cell.row)).sort((a, b) => a - b);
57570
57583
  removeRows.forEach(row => {
57571
57584
  removeRow(row, scene);
57572
57585
  });
57586
+ removeRows.forEach(row => {
57587
+ scene.table.rowHeightsMap.adjustOrder(row + 1, row, scene.table.rowHeightsMap.count() - row - 1);
57588
+ scene.table.rowHeightsMap.del(scene.table.rowHeightsMap.count() - 1);
57589
+ });
57573
57590
  if (removeRows.length) {
57574
57591
  resetRowNumber(scene);
57575
57592
  }
57593
+ scene.table._clearRowRangeHeightsMap();
57594
+ let updateAfter;
57576
57595
  addRows.forEach(row => {
57577
- addRow(row, scene);
57596
+ const needUpdateAfter = addRow(row, scene);
57597
+ updateAfter = updateAfter || needUpdateAfter;
57598
+ scene.table.rowHeightsMap.adjustOrder(row, row + 1, scene.table.rowHeightsMap.count() - row);
57578
57599
  });
57600
+ const newTotalHeight = resetRowNumberAndY(scene);
57579
57601
  updateCells.forEach(cell => {
57580
57602
  if (!cell) {
57581
57603
  return;
@@ -57592,13 +57614,28 @@
57592
57614
  updateCell$1(cell.col, cell.row, scene.table, false);
57593
57615
  }
57594
57616
  });
57595
- const newTotalHeight = resetRowNumberAndY(scene);
57617
+ if (isNumber$7(updateAfter)) {
57618
+ for (let col = 0; col < table.colCount; col++) {
57619
+ for (let row = updateAfter; row < table.rowCount; row++) {
57620
+ const cellGroup = scene.highPerformanceGetCell(col, row, true);
57621
+ cellGroup.needUpdate = true;
57622
+ }
57623
+ }
57624
+ scene.proxy.rowUpdatePos = updateAfter;
57625
+ }
57596
57626
  if (addRows.length) {
57597
- scene.proxy.rowUpdatePos = scene.proxy.rowStart;
57627
+ if (!isNumber$7(updateAfter)) {
57628
+ const minRow = Math.min(...addRows);
57629
+ scene.proxy.rowUpdatePos = minRow;
57630
+ }
57598
57631
  scene.proxy.rowUpdateDirection = 'up';
57599
57632
  scene.proxy.updateCellGroups(scene.proxy.screenRowCount * 2);
57600
57633
  scene.proxy.progress();
57601
57634
  }
57635
+ else if (removeRows.length) {
57636
+ scene.proxy.updateCellGroups(scene.proxy.screenRowCount * 2);
57637
+ scene.proxy.progress();
57638
+ }
57602
57639
  scene.updateContainerHeight(scene.table.frozenRowCount, newTotalHeight - scene.bodyGroup.attribute.height);
57603
57640
  }
57604
57641
  function removeRow(row, scene) {
@@ -57616,55 +57653,43 @@
57616
57653
  return false;
57617
57654
  });
57618
57655
  if (cellGroup) {
57656
+ colGroup.updateColumnHeight(-cellGroup.attribute.height);
57619
57657
  colGroup.removeChild(cellGroup);
57620
57658
  }
57621
57659
  }
57622
- scene.proxy.rowEnd--;
57660
+ if (row <= scene.proxy.rowEnd) {
57661
+ scene.proxy.rowEnd--;
57662
+ scene.proxy.currentRow--;
57663
+ }
57623
57664
  scene.proxy.bodyBottomRow--;
57624
- scene.proxy.currentRow--;
57625
- scene.proxy.totalRow--;
57665
+ const totalActualBodyRowCount = Math.min(scene.proxy.rowLimit, scene.proxy.bodyBottomRow - scene.proxy.bodyTopRow + 1);
57666
+ scene.proxy.totalActualBodyRowCount = totalActualBodyRowCount;
57667
+ scene.proxy.totalRow = scene.proxy.bodyTopRow + totalActualBodyRowCount - 1;
57626
57668
  }
57627
57669
  function addRow(row, scene) {
57628
- for (let col = 0; col < scene.table.colCount; col++) {
57629
- const cellGroup = new Group$1({
57630
- x: 0,
57631
- y: 0,
57632
- width: scene.table.getColWidth(col),
57633
- height: scene.table.getRowHeight(row)
57634
- });
57635
- cellGroup.role = 'cell';
57636
- cellGroup.col = col;
57637
- cellGroup.row = row;
57638
- cellGroup.needUpdate = true;
57639
- if (!cellGroup) {
57640
- continue;
57641
- }
57642
- const colGroup = scene.getColGroup(col);
57643
- if (!colGroup) {
57644
- continue;
57645
- }
57646
- if (colGroup.firstChild && row < colGroup.firstChild.row) {
57647
- colGroup.insertBefore(cellGroup, colGroup.firstChild);
57648
- colGroup.firstChild.row = colGroup.firstChild.row + 1;
57649
- }
57650
- else if (colGroup.lastChild && row > colGroup.lastChild.row) {
57651
- colGroup.appendChild(cellGroup);
57652
- }
57653
- else {
57654
- const cellBefore = scene.highPerformanceGetCell(col, row, true);
57655
- if (cellBefore !== cellGroup) {
57656
- colGroup.insertBefore(cellGroup, cellBefore);
57657
- cellBefore && (cellBefore.row = cellBefore.row + 1);
57658
- if (cellBefore !== colGroup.lastChild) {
57659
- colGroup.lastChild && (colGroup.lastChild.row = colGroup.lastChild.row + 1);
57660
- }
57661
- }
57662
- }
57663
- }
57664
- scene.proxy.rowEnd++;
57670
+ const proxy = scene.proxy;
57665
57671
  scene.proxy.bodyBottomRow++;
57666
- scene.proxy.currentRow++;
57667
57672
  scene.proxy.totalRow++;
57673
+ if (row < proxy.rowStart) {
57674
+ return undefined;
57675
+ }
57676
+ else if (row > proxy.rowEnd) {
57677
+ if (proxy.rowEnd - proxy.rowStart < scene.proxy.rowLimit) {
57678
+ scene.proxy.rowEnd++;
57679
+ scene.proxy.currentRow++;
57680
+ addRowCellGroup(row, scene);
57681
+ }
57682
+ return undefined;
57683
+ }
57684
+ if (proxy.rowEnd - proxy.rowStart < scene.proxy.rowLimit) {
57685
+ scene.proxy.rowEnd++;
57686
+ scene.proxy.currentRow++;
57687
+ addRowCellGroup(row, scene);
57688
+ }
57689
+ else {
57690
+ return row;
57691
+ }
57692
+ return undefined;
57668
57693
  }
57669
57694
  function deduplication(array) {
57670
57695
  const result = [];
@@ -57684,11 +57709,25 @@
57684
57709
  }
57685
57710
  let rowIndex = headerColGroup.firstChild?.row;
57686
57711
  headerColGroup.forEachChildren((cellGroup) => {
57712
+ const oldRow = cellGroup.row;
57713
+ if (isNumber$7(cellGroup.mergeStartRow)) {
57714
+ cellGroup.mergeStartRow = cellGroup.mergeStartRow - oldRow + rowIndex;
57715
+ }
57716
+ if (isNumber$7(cellGroup.mergeEndRow)) {
57717
+ cellGroup.mergeEndRow = cellGroup.mergeEndRow - oldRow + rowIndex;
57718
+ }
57687
57719
  cellGroup.row = rowIndex;
57688
57720
  rowIndex++;
57689
57721
  });
57690
57722
  rowIndex = colGroup.firstChild?.row;
57691
57723
  colGroup.forEachChildren((cellGroup) => {
57724
+ const oldRow = cellGroup.row;
57725
+ if (isNumber$7(cellGroup.mergeStartRow)) {
57726
+ cellGroup.mergeStartRow = cellGroup.mergeStartRow - oldRow + rowIndex;
57727
+ }
57728
+ if (isNumber$7(cellGroup.mergeEndRow)) {
57729
+ cellGroup.mergeEndRow = cellGroup.mergeEndRow - oldRow + rowIndex;
57730
+ }
57692
57731
  cellGroup.row = rowIndex;
57693
57732
  rowIndex++;
57694
57733
  });
@@ -57706,8 +57745,15 @@
57706
57745
  let rowIndex = headerColGroup.firstChild?.row;
57707
57746
  let y = 0;
57708
57747
  rowIndex = colGroup.firstChild?.row;
57709
- y = 0;
57748
+ y = scene.getCellGroupY(rowIndex);
57710
57749
  colGroup.forEachChildren((cellGroup) => {
57750
+ const oldRow = cellGroup.row;
57751
+ if (isNumber$7(cellGroup.mergeStartRow)) {
57752
+ cellGroup.mergeStartRow = cellGroup.mergeStartRow - oldRow + rowIndex;
57753
+ }
57754
+ if (isNumber$7(cellGroup.mergeEndRow)) {
57755
+ cellGroup.mergeEndRow = cellGroup.mergeEndRow - oldRow + rowIndex;
57756
+ }
57711
57757
  cellGroup.row = rowIndex;
57712
57758
  rowIndex++;
57713
57759
  if (cellGroup.role !== 'cell') {
@@ -57720,6 +57766,58 @@
57720
57766
  }
57721
57767
  return newTotalHeight;
57722
57768
  }
57769
+ function addRowCellGroup(row, scene) {
57770
+ for (let col = 0; col < scene.table.colCount; col++) {
57771
+ const cellGroup = new Group$1({
57772
+ x: 0,
57773
+ y: 0,
57774
+ width: scene.table.getColWidth(col),
57775
+ height: scene.table.getRowHeight(row)
57776
+ });
57777
+ cellGroup.role = 'cell';
57778
+ cellGroup.col = col;
57779
+ cellGroup.row = row;
57780
+ cellGroup.needUpdate = true;
57781
+ if (!cellGroup) {
57782
+ continue;
57783
+ }
57784
+ const colGroup = scene.getColGroup(col);
57785
+ if (!colGroup) {
57786
+ continue;
57787
+ }
57788
+ if (colGroup.firstChild && row < colGroup.firstChild.row) {
57789
+ colGroup.insertBefore(cellGroup, colGroup.firstChild);
57790
+ colGroup.firstChild.row = colGroup.firstChild.row + 1;
57791
+ if (isNumber$7(colGroup.firstChild.mergeStartRow) &&
57792
+ isNumber$7(colGroup.firstChild.mergeEndRow)) {
57793
+ colGroup.firstChild.mergeStartRow = colGroup.firstChild.mergeStartRow + 1;
57794
+ colGroup.firstChild.mergeEndRow = colGroup.firstChild.mergeEndRow + 1;
57795
+ }
57796
+ }
57797
+ else if (colGroup.lastChild && row > colGroup.lastChild.row) {
57798
+ colGroup.appendChild(cellGroup);
57799
+ }
57800
+ else {
57801
+ const cellBefore = scene.highPerformanceGetCell(col, row, true);
57802
+ if (cellBefore !== cellGroup) {
57803
+ colGroup.insertBefore(cellGroup, cellBefore);
57804
+ cellBefore && (cellBefore.row = cellBefore.row + 1);
57805
+ if (isNumber$7(cellBefore.mergeStartRow) && isNumber$7(cellBefore.mergeEndRow)) {
57806
+ cellBefore.mergeStartRow = cellBefore.mergeStartRow + 1;
57807
+ cellBefore.mergeEndRow = cellBefore.mergeEndRow + 1;
57808
+ }
57809
+ if (cellBefore !== colGroup.lastChild) {
57810
+ colGroup.lastChild && (colGroup.lastChild.row = colGroup.lastChild.row + 1);
57811
+ if (isNumber$7(colGroup.lastChild.mergeStartRow) &&
57812
+ isNumber$7(colGroup.lastChild.mergeEndRow)) {
57813
+ colGroup.lastChild.mergeStartRow = colGroup.lastChild.mergeStartRow + 1;
57814
+ colGroup.lastChild.mergeEndRow = colGroup.lastChild.mergeEndRow + 1;
57815
+ }
57816
+ }
57817
+ }
57818
+ }
57819
+ }
57820
+ }
57723
57821
 
57724
57822
  function handleTextStick(table) {
57725
57823
  const { changedCells } = table.internalProps.stick;
@@ -59799,6 +59897,7 @@
59799
59897
  if (!this.isPivot && !this.transpose) {
59800
59898
  this.component.setFrozenColumnShadow(this.table.frozenColCount - 1);
59801
59899
  }
59900
+ this.component.updateScrollBar();
59802
59901
  this.updateNextFrame();
59803
59902
  }
59804
59903
  getColumnGroupX(col) {
@@ -60166,15 +60265,17 @@
60166
60265
  scenegraph.deleteAllSelectBorder();
60167
60266
  }
60168
60267
  if (state.select.headerSelectMode !== 'cell' && table.isColumnHeader(col, row)) {
60268
+ const cellRange = table.getCellRange(col, row);
60169
60269
  state.select.ranges.push({
60170
- start: { col, row },
60171
- end: { col, row: table.rowCount - 1 }
60270
+ start: { col: cellRange.start.col, row },
60271
+ end: { col: cellRange.end.col, row: table.rowCount - 1 }
60172
60272
  });
60173
60273
  }
60174
60274
  else if (state.select.headerSelectMode !== 'cell' && table.isRowHeader(col, row)) {
60275
+ const cellRange = table.getCellRange(col, row);
60175
60276
  state.select.ranges.push({
60176
- start: { col, row },
60177
- end: { col: table.colCount - 1, row }
60277
+ start: { col, row: cellRange.start.row },
60278
+ end: { col: table.colCount - 1, row: cellRange.end.row }
60178
60279
  });
60179
60280
  }
60180
60281
  else {
@@ -65666,7 +65767,7 @@
65666
65767
  return TABLE_EVENT_TYPE;
65667
65768
  }
65668
65769
  options;
65669
- version = "0.14.1";
65770
+ version = "0.14.2-alpha.1";
65670
65771
  pagination;
65671
65772
  id = `VTable${Date.now()}`;
65672
65773
  headerStyleCache;
@@ -75069,7 +75170,7 @@
75069
75170
  return new Tag$1(params ? params.attribute : {});
75070
75171
  }
75071
75172
 
75072
- const version = "0.14.1";
75173
+ const version = "0.14.2-alpha.1";
75073
75174
  function getIcons() {
75074
75175
  return get$1();
75075
75176
  }