@visactor/vtable 1.17.4-alpha.5 → 1.17.4-alpha.7

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 (113) hide show
  1. package/cjs/ListTable.js +2 -10
  2. package/cjs/ListTable.js.map +1 -1
  3. package/cjs/body-helper/style/ProgressBarStyle.d.ts +0 -3
  4. package/cjs/body-helper/style/ProgressBarStyle.js +2 -9
  5. package/cjs/body-helper/style/ProgressBarStyle.js.map +1 -1
  6. package/cjs/core/BaseTable.js +3 -15
  7. package/cjs/core/BaseTable.js.map +1 -1
  8. package/cjs/core/tableHelper.js +10 -13
  9. package/cjs/core/tableHelper.js.map +1 -1
  10. package/cjs/edit/edit-manager.js +0 -2
  11. package/cjs/edit/edit-manager.js.map +1 -1
  12. package/cjs/event/event.js +1 -2
  13. package/cjs/event/event.js.map +1 -1
  14. package/cjs/event/self-event-listener/list-table/checkbox.d.ts +0 -1
  15. package/cjs/event/self-event-listener/list-table/checkbox.js +12 -54
  16. package/cjs/event/self-event-listener/list-table/checkbox.js.map +1 -1
  17. package/cjs/index.d.ts +1 -1
  18. package/cjs/index.js +1 -1
  19. package/cjs/index.js.map +1 -1
  20. package/cjs/scenegraph/graphic/chart.d.ts +2 -2
  21. package/cjs/scenegraph/graphic/chart.js +1 -1
  22. package/cjs/scenegraph/graphic/chart.js.map +1 -1
  23. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js +6 -7
  24. package/cjs/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  25. package/cjs/scenegraph/graphic/contributions/index.js +4 -2
  26. package/cjs/scenegraph/graphic/contributions/index.js.map +1 -1
  27. package/cjs/scenegraph/graphic/contributions/picker-interceptor.d.ts +8 -0
  28. package/cjs/scenegraph/graphic/contributions/picker-interceptor.js +42 -0
  29. package/cjs/scenegraph/graphic/contributions/picker-interceptor.js.map +1 -0
  30. package/cjs/scenegraph/graphic/contributions/vchart-graphic-picker.d.ts +6 -0
  31. package/cjs/scenegraph/graphic/contributions/vchart-graphic-picker.js +31 -0
  32. package/cjs/scenegraph/graphic/contributions/vchart-graphic-picker.js.map +1 -0
  33. package/cjs/scenegraph/group-creater/cell-helper.js +1 -1
  34. package/cjs/scenegraph/group-creater/cell-helper.js.map +1 -1
  35. package/cjs/scenegraph/group-creater/cell-type/button-cell.js +1 -3
  36. package/cjs/scenegraph/group-creater/cell-type/button-cell.js.map +1 -1
  37. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js +5 -9
  38. package/cjs/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -1
  39. package/cjs/scenegraph/select/update-select-border.js +1 -2
  40. package/cjs/scenegraph/select/update-select-border.js.map +1 -1
  41. package/cjs/state/checkbox/checkbox.js +2 -9
  42. package/cjs/state/checkbox/checkbox.js.map +1 -1
  43. package/cjs/state/hover/update-position.js +3 -1
  44. package/cjs/state/hover/update-position.js.map +1 -1
  45. package/cjs/themes/theme.js +0 -4
  46. package/cjs/themes/theme.js.map +1 -1
  47. package/cjs/ts-types/base-table.d.ts +1 -0
  48. package/cjs/ts-types/base-table.js.map +1 -1
  49. package/cjs/ts-types/column/style.d.ts +0 -1
  50. package/cjs/ts-types/column/style.js.map +1 -1
  51. package/cjs/ts-types/table-engine.d.ts +0 -1
  52. package/cjs/ts-types/table-engine.js.map +1 -1
  53. package/cjs/ts-types/theme.d.ts +0 -1
  54. package/cjs/ts-types/theme.js.map +1 -1
  55. package/cjs/vrender.js.map +1 -1
  56. package/dist/vtable.js +70 -178
  57. package/dist/vtable.min.js +2 -2
  58. package/es/ListTable.js +2 -10
  59. package/es/ListTable.js.map +1 -1
  60. package/es/body-helper/style/ProgressBarStyle.d.ts +0 -3
  61. package/es/body-helper/style/ProgressBarStyle.js +2 -9
  62. package/es/body-helper/style/ProgressBarStyle.js.map +1 -1
  63. package/es/core/BaseTable.js +3 -15
  64. package/es/core/BaseTable.js.map +1 -1
  65. package/es/core/tableHelper.js +10 -13
  66. package/es/core/tableHelper.js.map +1 -1
  67. package/es/edit/edit-manager.js +0 -2
  68. package/es/edit/edit-manager.js.map +1 -1
  69. package/es/event/event.js +2 -3
  70. package/es/event/event.js.map +1 -1
  71. package/es/event/self-event-listener/list-table/checkbox.d.ts +0 -1
  72. package/es/event/self-event-listener/list-table/checkbox.js +10 -52
  73. package/es/event/self-event-listener/list-table/checkbox.js.map +1 -1
  74. package/es/index.d.ts +1 -1
  75. package/es/index.js +1 -1
  76. package/es/index.js.map +1 -1
  77. package/es/scenegraph/graphic/chart.d.ts +2 -2
  78. package/es/scenegraph/graphic/chart.js +2 -2
  79. package/es/scenegraph/graphic/chart.js.map +1 -1
  80. package/es/scenegraph/graphic/contributions/chart-render-helper.js +6 -7
  81. package/es/scenegraph/graphic/contributions/chart-render-helper.js.map +1 -1
  82. package/es/scenegraph/graphic/contributions/index.js +5 -2
  83. package/es/scenegraph/graphic/contributions/index.js.map +1 -1
  84. package/es/scenegraph/graphic/contributions/picker-interceptor.d.ts +8 -0
  85. package/es/scenegraph/graphic/contributions/picker-interceptor.js +37 -0
  86. package/es/scenegraph/graphic/contributions/picker-interceptor.js.map +1 -0
  87. package/es/scenegraph/graphic/contributions/vchart-graphic-picker.d.ts +6 -0
  88. package/es/scenegraph/graphic/contributions/vchart-graphic-picker.js +29 -0
  89. package/es/scenegraph/graphic/contributions/vchart-graphic-picker.js.map +1 -0
  90. package/es/scenegraph/group-creater/cell-helper.js +1 -1
  91. package/es/scenegraph/group-creater/cell-helper.js.map +1 -1
  92. package/es/scenegraph/group-creater/cell-type/button-cell.js +1 -3
  93. package/es/scenegraph/group-creater/cell-type/button-cell.js.map +1 -1
  94. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js +5 -9
  95. package/es/scenegraph/group-creater/cell-type/progress-bar-cell.js.map +1 -1
  96. package/es/scenegraph/select/update-select-border.js +1 -2
  97. package/es/scenegraph/select/update-select-border.js.map +1 -1
  98. package/es/state/checkbox/checkbox.js +2 -9
  99. package/es/state/checkbox/checkbox.js.map +1 -1
  100. package/es/state/hover/update-position.js +3 -1
  101. package/es/state/hover/update-position.js.map +1 -1
  102. package/es/themes/theme.js +0 -4
  103. package/es/themes/theme.js.map +1 -1
  104. package/es/ts-types/base-table.d.ts +1 -0
  105. package/es/ts-types/base-table.js.map +1 -1
  106. package/es/ts-types/column/style.d.ts +0 -1
  107. package/es/ts-types/column/style.js.map +1 -1
  108. package/es/ts-types/table-engine.d.ts +0 -1
  109. package/es/ts-types/table-engine.js.map +1 -1
  110. package/es/ts-types/theme.d.ts +0 -1
  111. package/es/ts-types/theme.js.map +1 -1
  112. package/es/vrender.js.map +1 -1
  113. package/package.json +4 -4
package/dist/vtable.js CHANGED
@@ -30668,9 +30668,6 @@
30668
30668
  },
30669
30669
  get selectionFillMode() {
30670
30670
  return selectionStyle?.selectionFillMode ?? 'overlay';
30671
- },
30672
- get dynamicUpdateSelectionSize() {
30673
- return selectionStyle?.dynamicUpdateSelectionSize ?? false;
30674
30671
  }
30675
30672
  };
30676
30673
  }
@@ -34516,36 +34513,32 @@
34516
34513
  const tableCornerRadius = table.theme.frameStyle.cornerRadius;
34517
34514
  if (table.theme.cellInnerBorder) {
34518
34515
  if (Array.isArray(tableCornerRadius)) {
34519
- const radius = [0, 0, 0, 0];
34520
34516
  if (col === 0 && row === 0) {
34521
- radius[0] = tableCornerRadius[0];
34517
+ return [tableCornerRadius[0], 0, 0, 0];
34522
34518
  }
34523
- if (col === table.colCount - 1 && row === 0) {
34524
- radius[1] = tableCornerRadius[1];
34519
+ else if (col === table.colCount - 1 && row === 0) {
34520
+ return [0, tableCornerRadius[1], 0, 0];
34525
34521
  }
34526
- if (col === 0 && row === table.rowCount - 1) {
34527
- radius[3] = tableCornerRadius[3];
34522
+ else if (col === 0 && row === table.rowCount - 1) {
34523
+ return [0, 0, 0, tableCornerRadius[3]];
34528
34524
  }
34529
- if (col === table.colCount - 1 && row === table.rowCount - 1) {
34530
- radius[2] = tableCornerRadius[2];
34525
+ else if (col === table.colCount - 1 && row === table.rowCount - 1) {
34526
+ return [0, 0, tableCornerRadius[2], 0];
34531
34527
  }
34532
- return radius;
34533
34528
  }
34534
34529
  else if (tableCornerRadius) {
34535
- const radius = [0, 0, 0, 0];
34536
34530
  if (col === 0 && row === 0) {
34537
- radius[0] = tableCornerRadius;
34531
+ return [tableCornerRadius, 0, 0, 0];
34538
34532
  }
34539
- if (col === table.colCount - 1 && row === 0) {
34540
- radius[1] = tableCornerRadius;
34533
+ else if (col === table.colCount - 1 && row === 0) {
34534
+ return [0, tableCornerRadius, 0, 0];
34541
34535
  }
34542
- if (col === 0 && row === table.rowCount - 1) {
34543
- radius[3] = tableCornerRadius;
34536
+ else if (col === 0 && row === table.rowCount - 1) {
34537
+ return [0, 0, 0, tableCornerRadius];
34544
34538
  }
34545
- if (col === table.colCount - 1 && row === table.rowCount - 1) {
34546
- radius[2] = tableCornerRadius;
34539
+ else if (col === table.colCount - 1 && row === table.rowCount - 1) {
34540
+ return [0, 0, tableCornerRadius, 0];
34547
34541
  }
34548
- return radius;
34549
34542
  }
34550
34543
  }
34551
34544
  return 0;
@@ -37613,7 +37606,6 @@
37613
37606
  customElementsGroup = customResult.elementsGroup;
37614
37607
  renderDefault = customResult.renderDefault;
37615
37608
  }
37616
- else if (range?.isCustom) ;
37617
37609
  else {
37618
37610
  let customRender;
37619
37611
  let customLayout;
@@ -41176,7 +41168,7 @@
41176
41168
  }
41177
41169
 
41178
41170
  const CHART_NUMBER_TYPE = genNumberType();
41179
- class Chart extends Group$2 {
41171
+ class Chart extends Rect$2 {
41180
41172
  type = 'chart';
41181
41173
  chartInstance;
41182
41174
  activeChartInstance;
@@ -41398,11 +41390,11 @@
41398
41390
  y2: viewBox.y2 - viewBox.y1
41399
41391
  }, false, false);
41400
41392
  const chartStage = chartInstance.getStage();
41401
- const matrix = chart.globalTransMatrix.clone();
41402
- const stageMatrix = chart.stage.window.getViewBoxTransform();
41403
- matrix.multiply(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f);
41393
+ const matrix = chart.globalTransMatrix;
41394
+ const stageMatrix = chart.stage.window.getViewBoxTransform().clone();
41395
+ stageMatrix.multiply(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f);
41404
41396
  chartStage.window.setViewBoxTransform &&
41405
- chartStage.window.setViewBoxTransform(matrix.a, matrix.b, matrix.c, matrix.d, matrix.e, matrix.f);
41397
+ chartStage.window.setViewBoxTransform(stageMatrix.a, stageMatrix.b, stageMatrix.c, stageMatrix.d, stageMatrix.e, stageMatrix.f);
41406
41398
  const { table } = chart.getRootNode();
41407
41399
  let updateSpec = false;
41408
41400
  if (table.options.specFormat) {
@@ -41519,10 +41511,7 @@
41519
41511
  if (stage.releaseStatus === 'released') {
41520
41512
  return null;
41521
41513
  }
41522
- const matrix = stage.window.getViewBoxTransform();
41523
41514
  const window = renderToNewWindow(stage, fullImage, viewBox);
41524
- window.setViewBoxTransform(matrix.a, matrix.b, matrix.c, matrix.d, 0, 0);
41525
- stage.renderTo(window);
41526
41515
  const c = window.getNativeHandler();
41527
41516
  if (c.nativeCanvas) {
41528
41517
  return c.nativeCanvas;
@@ -41560,6 +41549,7 @@
41560
41549
  title: ''
41561
41550
  });
41562
41551
  }
41552
+ window.setViewBoxTransform(matrix.a, matrix.b, matrix.c, matrix.d, 0, 0);
41563
41553
  stage.renderTo(window);
41564
41554
  return window;
41565
41555
  }
@@ -43036,6 +43026,27 @@
43036
43026
  injectable()
43037
43027
  ], SuffixTextBeforeRenderContribution);
43038
43028
 
43029
+ let VChartPicker = class VChartPicker {
43030
+ type = 'chart';
43031
+ numberType = CHART_NUMBER_TYPE;
43032
+ contains(chart, point, params) {
43033
+ const vChart = chart.activeChartInstance;
43034
+ if (!vChart) {
43035
+ return false;
43036
+ }
43037
+ const vchartStage = vChart.getStage();
43038
+ vchartStage.dirtyBounds?.clear();
43039
+ const pick = vchartStage.pick(point.x, point.y);
43040
+ if (pick.graphic === null && pick.group.name === 'root') {
43041
+ return false;
43042
+ }
43043
+ return pick;
43044
+ }
43045
+ };
43046
+ VChartPicker = __decorate([
43047
+ injectable()
43048
+ ], VChartPicker);
43049
+
43039
43050
  var splitModule = new ContainerModule((bind, unbind, isBound, rebind) => {
43040
43051
  if (isBound(SplitRectBeforeRenderContribution$1)) {
43041
43052
  rebind(SplitRectBeforeRenderContribution$1).to(SplitRectBeforeRenderContribution).inSingletonScope();
@@ -43054,6 +43065,8 @@
43054
43065
  bind(DefaultCanvasChartRender).toSelf().inSingletonScope();
43055
43066
  bind(ChartRender).to(DefaultCanvasChartRender);
43056
43067
  bind(GraphicRender).to(DefaultCanvasChartRender);
43068
+ bind(VChartPicker).toSelf().inSingletonScope();
43069
+ bind(CanvasPickerContribution).toService(VChartPicker);
43057
43070
  bind(BeforeImageRenderContribution).toSelf().inSingletonScope();
43058
43071
  bind(ImageRenderContribution).toService(BeforeImageRenderContribution);
43059
43072
  bind(AfterImageRenderContribution).toSelf().inSingletonScope();
@@ -45741,11 +45754,10 @@
45741
45754
  isNearBottomColHeader = true;
45742
45755
  }
45743
45756
  }
45744
- const { dynamicUpdateSelectionSize } = table.theme.selectionStyle;
45745
- if ((isNearRowHeader && (selectComp.rect.attribute.stroke[3] || dynamicUpdateSelectionSize)) ||
45746
- (isNearRightRowHeader && (selectComp.rect.attribute.stroke[1] || dynamicUpdateSelectionSize)) ||
45747
- (isNearColHeader && (selectComp.rect.attribute.stroke[0] || dynamicUpdateSelectionSize)) ||
45748
- (isNearBottomColHeader && (selectComp.rect.attribute.stroke[2] || dynamicUpdateSelectionSize))) {
45757
+ if ((isNearRowHeader && selectComp.rect.attribute.stroke[3]) ||
45758
+ (isNearRightRowHeader && selectComp.rect.attribute.stroke[1]) ||
45759
+ (isNearColHeader && selectComp.rect.attribute.stroke[0]) ||
45760
+ (isNearBottomColHeader && selectComp.rect.attribute.stroke[2])) {
45749
45761
  if (isNearRowHeader && selectComp.rect.attribute.stroke[3]) {
45750
45762
  scene.tableGroup.insertAfter(selectComp.rect, selectComp.role === 'columnHeader'
45751
45763
  ? scene.cornerHeaderGroup
@@ -50045,8 +50057,10 @@
50045
50057
  if (prevHoverCellCol === col && prevHoverCellRow === row) {
50046
50058
  return;
50047
50059
  }
50048
- scenegraph.deactivateChart(prevHoverCellCol, prevHoverCellRow);
50049
- scenegraph.activateChart(col, row);
50060
+ if (!state.table.options.customConfig?.disableBuildInChartActive) {
50061
+ scenegraph.deactivateChart(prevHoverCellCol, prevHoverCellRow);
50062
+ scenegraph.activateChart(col, row);
50063
+ }
50050
50064
  let updateScenegraph = false;
50051
50065
  const { ranges, highlightScope: selectMode } = state.select;
50052
50066
  if (prevHoverCellCol !== -1 && prevHoverCellRow !== -1) {
@@ -51421,19 +51435,6 @@
51421
51435
  if (state.checkedState.has(dataIndex)) {
51422
51436
  state.checkedState.get(dataIndex)[field] = checked;
51423
51437
  }
51424
- else if (dataIndex.includes(',')) {
51425
- const parentDataIndex = dataIndex.split(',').slice(0, -1).join(',');
51426
- if (state.checkedState.has(parentDataIndex) && state.checkedState.get(parentDataIndex)[field] === true) {
51427
- state.checkedState.set(dataIndex, {
51428
- [field]: true
51429
- });
51430
- }
51431
- else {
51432
- state.checkedState.set(dataIndex, {
51433
- [field]: checked
51434
- });
51435
- }
51436
- }
51437
51438
  else {
51438
51439
  state.checkedState.set(dataIndex, {
51439
51440
  [field]: checked
@@ -51619,8 +51620,6 @@
51619
51620
  target = table.isPivotTable() ? undefined : table.getRecordIndexByCell(0, targetIndex);
51620
51621
  }
51621
51622
  if (isNumber$4(source) && isNumber$4(target)) {
51622
- sourceIndex = source;
51623
- targetIndex = target;
51624
51623
  if (sourceIndex > targetIndex) {
51625
51624
  const sourceRecord = checkedState.get(sourceIndex.toString());
51626
51625
  for (let i = sourceIndex; i > targetIndex; i--) {
@@ -55338,13 +55337,10 @@
55338
55337
 
55339
55338
  function bindGroupTitleCheckboxChange(table) {
55340
55339
  table.on('checkbox_state_change', args => {
55341
- const { col, row, checked, field } = args;
55342
- if (field !== '_vtable_rowSeries_number' || table.internalProps.rowSeriesNumber?.enableTreeCheckbox !== true) {
55343
- return;
55344
- }
55345
- if (table.isHeader(col, row)) {
55340
+ if (table.internalProps.rowSeriesNumber?.enableTreeCheckbox !== true) {
55346
55341
  return;
55347
55342
  }
55343
+ const { col, row, checked } = args;
55348
55344
  const record = table.getCellOriginRecord(col, row);
55349
55345
  const indexedData = table.dataSource.currentPagerIndexedData;
55350
55346
  const titleShowIndex = table.getRecordShowIndexByCell(col, row);
@@ -55352,9 +55348,9 @@
55352
55348
  if (isNumber$4(titleIndex)) {
55353
55349
  titleIndex = [titleIndex];
55354
55350
  }
55355
- if (record.vtableMerge || record.children?.length) {
55351
+ if (record.vtableMerge) {
55356
55352
  if (checked) {
55357
- if (getHierarchyState(table, col, row) === HierarchyState.collapse) {
55353
+ if (table.getHierarchyState(col, row) === HierarchyState.collapse) {
55358
55354
  updateChildrenCheckboxState(true, titleIndex, table);
55359
55355
  }
55360
55356
  else {
@@ -55363,7 +55359,7 @@
55363
55359
  updateGroupTitleCheckboxState(titleShowIndex, titleIndex, indexedData, table);
55364
55360
  }
55365
55361
  else {
55366
- if (getHierarchyState(table, col, row) === HierarchyState.collapse) {
55362
+ if (table.getHierarchyState(col, row) === HierarchyState.collapse) {
55367
55363
  updateChildrenCheckboxState(false, titleIndex, table);
55368
55364
  }
55369
55365
  else {
@@ -55412,23 +55408,7 @@
55412
55408
  const currentIndexLength = isArray$7(currentIndex) ? currentIndex.length : 1;
55413
55409
  let start = false;
55414
55410
  const result = [];
55415
- const keys = Array.from(checkedState.keys()).sort((a, b) => {
55416
- const aArr = a.split(',');
55417
- const bArr = b.split(',');
55418
- const maxLength = Math.max(aArr.length, bArr.length);
55419
- for (let i = 0; i < maxLength; i++) {
55420
- const a = Number(aArr[i]) ?? 0;
55421
- const b = Number(bArr[i]) ?? 0;
55422
- if (a !== b) {
55423
- return a - b;
55424
- }
55425
- }
55426
- return 0;
55427
- });
55428
- const stateArr = keys.map(key => checkedState.get(key));
55429
- stateArr.forEach((state, i) => {
55430
- const index = keys[i];
55431
- const value = state;
55411
+ checkedState.forEach((value, index) => {
55432
55412
  if (start) {
55433
55413
  const indexData = index.split(',');
55434
55414
  if (indexData.length === currentIndexLength) {
@@ -55460,35 +55440,19 @@
55460
55440
  setCellCheckboxStateByAttribute(col, row, 'indeterminate', table);
55461
55441
  }
55462
55442
  }
55463
- function updateChildrenCheckboxState(parentState, currentIndex, table) {
55443
+ function updateChildrenCheckboxState(state, currentIndex, table) {
55464
55444
  const { checkedState } = table.stateManager;
55465
55445
  const key = currentIndex.toString();
55466
55446
  const currentIndexLength = isArray$7(currentIndex) ? currentIndex.length : 1;
55467
55447
  let start = false;
55468
- const keys = Array.from(checkedState.keys()).sort((a, b) => {
55469
- const aArr = a.split(',');
55470
- const bArr = b.split(',');
55471
- const maxLength = Math.max(aArr.length, bArr.length);
55472
- for (let i = 0; i < maxLength; i++) {
55473
- const a = Number(aArr[i]) ?? 0;
55474
- const b = Number(bArr[i]) ?? 0;
55475
- if (a !== b) {
55476
- return a - b;
55477
- }
55478
- }
55479
- return 0;
55480
- });
55481
- const stateArr = keys.map(key => checkedState.get(key));
55482
- stateArr.forEach((state, i) => {
55483
- const index = keys[i];
55484
- const value = state;
55448
+ checkedState.forEach((value, index) => {
55485
55449
  if (start) {
55486
55450
  const indexData = index.split(',');
55487
55451
  if (indexData.length === currentIndexLength) {
55488
55452
  start = false;
55489
55453
  }
55490
55454
  else {
55491
- value._vtable_rowSeries_number = parentState;
55455
+ value._vtable_rowSeries_number = state;
55492
55456
  }
55493
55457
  }
55494
55458
  if (index === key) {
@@ -55496,33 +55460,6 @@
55496
55460
  }
55497
55461
  });
55498
55462
  }
55499
- function bindHeaderCheckboxChange(table) {
55500
- table.on('checkbox_state_change', args => {
55501
- const { col, row, checked, field } = args;
55502
- if (table.isHeader(col, row)) {
55503
- table.stateManager.setHeaderCheckedState(field, checked);
55504
- const cellType = table.getCellType(col, row);
55505
- if (cellType === 'checkbox') {
55506
- table.scenegraph.updateCheckboxCellState(col, row, checked);
55507
- }
55508
- }
55509
- else {
55510
- table.stateManager.setCheckedState(col, row, field, checked);
55511
- const cellType = table.getCellType(col, row);
55512
- if (cellType === 'checkbox') {
55513
- const oldHeaderCheckedState = table.stateManager.headerCheckedState[field];
55514
- const newHeaderCheckedState = table.stateManager.updateHeaderCheckedState(field, col, row);
55515
- if (oldHeaderCheckedState !== newHeaderCheckedState) {
55516
- table.scenegraph.updateHeaderCheckboxCellState(col, row, newHeaderCheckedState);
55517
- }
55518
- }
55519
- }
55520
- });
55521
- }
55522
- function getHierarchyState(table, col, row) {
55523
- const index = table.getRecordShowIndexByCell(col, row);
55524
- return table.dataSource.getHierarchyState(index);
55525
- }
55526
55463
 
55527
55464
  function bindButtonClickEvent(table) {
55528
55465
  table.on(TABLE_EVENT_TYPE.CLICK_CELL, (e) => {
@@ -55700,7 +55637,6 @@
55700
55637
  bindAxisClickEvent(this.table);
55701
55638
  bindAxisHoverEvent(this.table);
55702
55639
  bindGroupTitleCheckboxChange(this.table);
55703
- bindHeaderCheckboxChange(this.table);
55704
55640
  bindButtonClickEvent(this.table);
55705
55641
  rightButtonClickEvent(this.table);
55706
55642
  }
@@ -56012,7 +55948,6 @@
56012
55948
  _barMarkWidth;
56013
55949
  _barMarkPosition;
56014
55950
  _barRightToLeft;
56015
- _barMarkInBar;
56016
55951
  static get DEFAULT() {
56017
55952
  return defaultStyle$4 ? defaultStyle$4 : (defaultStyle$4 = new ProgressBarStyle());
56018
55953
  }
@@ -56034,7 +55969,6 @@
56034
55969
  this._barMarkWidth = style.barMarkWidth ?? 2;
56035
55970
  this._barMarkPosition = style.barMarkPosition ?? 'right';
56036
55971
  this._barRightToLeft = style.barRightToLeft ?? false;
56037
- this._barMarkInBar = style.barMarkInBar ?? true;
56038
55972
  }
56039
55973
  get showBar() {
56040
55974
  return this._showBar;
@@ -56126,12 +56060,6 @@
56126
56060
  set barRightToLeft(value) {
56127
56061
  this._barRightToLeft = value;
56128
56062
  }
56129
- get barMarkInBar() {
56130
- return this._barMarkInBar;
56131
- }
56132
- set barMarkInBar(value) {
56133
- this._barMarkInBar = value;
56134
- }
56135
56063
  clone() {
56136
56064
  return new ProgressBarStyle(this, null);
56137
56065
  }
@@ -60524,7 +60452,7 @@
60524
60452
  return TABLE_EVENT_TYPE;
60525
60453
  }
60526
60454
  options;
60527
- version = "1.17.4-alpha.5";
60455
+ version = "1.17.4-alpha.7";
60528
60456
  pagination;
60529
60457
  id = `VTable${Date.now()}`;
60530
60458
  headerStyleCache;
@@ -61193,8 +61121,6 @@
61193
61121
  height - ((lineWidths[0] ?? 0) + (shadowWidths[0] ?? 0)) - ((lineWidths[2] ?? 0) + (shadowWidths[2] ?? 0));
61194
61122
  }
61195
61123
  }
61196
- this._clearColRangeWidthsMap();
61197
- this._clearRowRangeHeightsMap();
61198
61124
  }
61199
61125
  updateViewBox(newViewBox) {
61200
61126
  const oldWidth = (this.options?.viewBox?.x2 ?? 0) - (this.options?.viewBox?.x1 ?? 0);
@@ -62369,8 +62295,7 @@
62369
62295
  end: {
62370
62296
  col: Math.min(customMerge.range.end.col, this.colCount - 1),
62371
62297
  row: Math.min(customMerge.range.end.row, this.rowCount - 1)
62372
- },
62373
- isCustom: true
62298
+ }
62374
62299
  };
62375
62300
  return range;
62376
62301
  }
@@ -62399,17 +62324,6 @@
62399
62324
  }, styleClass, this.options.autoWrapText, this.theme);
62400
62325
  customMerge.style = fullStyle;
62401
62326
  }
62402
- customMerge.range = {
62403
- start: {
62404
- col: Math.max(customMerge.range.start.col, 0),
62405
- row: Math.max(customMerge.range.start.row, 0)
62406
- },
62407
- end: {
62408
- col: Math.min(customMerge.range.end.col, this.colCount - 1),
62409
- row: Math.min(customMerge.range.end.row, this.rowCount - 1)
62410
- },
62411
- isCustom: true
62412
- };
62413
62327
  return customMerge;
62414
62328
  }
62415
62329
  }
@@ -66582,10 +66496,6 @@
66582
66496
  if (this.table.internalProps.layoutMap?.isAggregation?.(col, row)) {
66583
66497
  return;
66584
66498
  }
66585
- const record = this.table.getCellRawRecord(col, row);
66586
- if (record?.vtableMerge) {
66587
- return;
66588
- }
66589
66499
  if (!this.editingEditor) {
66590
66500
  this.editCell = { col, row };
66591
66501
  }
@@ -68227,25 +68137,13 @@
68227
68137
  this.stateManager.initLeftRecordsCheckState(this.records);
68228
68138
  }
68229
68139
  if (isValid$3(field)) {
68230
- const keys = Array.from(this.stateManager.checkedState.keys()).sort((a, b) => {
68231
- const aArr = a.split(',');
68232
- const bArr = b.split(',');
68233
- const maxLength = Math.max(aArr.length, bArr.length);
68234
- for (let i = 0; i < maxLength; i++) {
68235
- const a = Number(aArr[i]) ?? 0;
68236
- const b = Number(bArr[i]) ?? 0;
68237
- if (a !== b) {
68238
- return a - b;
68239
- }
68240
- }
68241
- return 0;
68242
- });
68140
+ const keys = Array.from(this.stateManager.checkedState.keys()).sort((a, b) => Number(a) - Number(b));
68243
68141
  let stateArr = keys.map(key => this.stateManager.checkedState.get(key));
68244
68142
  if (this.options.groupBy) {
68245
68143
  stateArr = getGroupCheckboxState(this);
68246
68144
  }
68247
68145
  return Array.from(stateArr, (state) => {
68248
- return state && state[field];
68146
+ return state[field];
68249
68147
  });
68250
68148
  }
68251
68149
  return new Array(...this.stateManager.checkedState.values());
@@ -73879,7 +73777,7 @@
73879
73777
  height: contentHeight
73880
73778
  });
73881
73779
  percentCompleteBarGroup.name = 'progress-bar';
73882
- const { showBar, barColor, barBgColor, barPositiveColor, barNegativeColor, barAxisColor, barRightToLeft, showBarMark, barMarkPositiveColor, barMarkNegativeColor, barMarkWidth, barMarkPosition, barMarkInBar } = style;
73780
+ const { showBar, barColor, barBgColor, barPositiveColor, barNegativeColor, barAxisColor, barRightToLeft, showBarMark, barMarkPositiveColor, barMarkNegativeColor, barMarkWidth, barMarkPosition } = style;
73883
73781
  let { barHeight, barBottom, barPadding } = style;
73884
73782
  if (barPadding.length === 1) {
73885
73783
  barPadding = [barPadding[0], barPadding[0], barPadding[0], barPadding[0]];
@@ -73902,13 +73800,9 @@
73902
73800
  });
73903
73801
  const borderWidth = getQuadProps(getProp('borderLineWidth', style, col, row, table));
73904
73802
  const barPaddingTop = Math.max(barPadding[0], Math.ceil(borderWidth[0] / 2));
73905
- let barPaddingRight = Math.max(barPadding[1], Math.floor(borderWidth[1] / 2));
73803
+ const barPaddingRight = Math.max(barPadding[1], Math.floor(borderWidth[1] / 2));
73906
73804
  const barPaddingBottom = Math.max(barPadding[2], Math.floor(borderWidth[2] / 2));
73907
- let barPaddingLeft = Math.max(barPadding[3], Math.ceil(borderWidth[3] / 2));
73908
- if (showBarMark && barMarkWidth > 0 && barMarkPosition === 'right' && barMarkInBar === false) {
73909
- barPaddingRight += barMarkWidth;
73910
- barPaddingLeft += barMarkWidth;
73911
- }
73805
+ const barPaddingLeft = Math.max(barPadding[3], Math.ceil(borderWidth[3] / 2));
73912
73806
  contentWidth -= barPaddingRight + barPaddingLeft;
73913
73807
  contentHeight -= barPaddingBottom + barPaddingTop;
73914
73808
  if (row === table.rowCount - 1 && [0, '0'].includes(barBottom)) {
@@ -74129,7 +74023,7 @@
74129
74023
  if (barMarkPosition === 'right') {
74130
74024
  const markLeft = barRightToLeft
74131
74025
  ? barRectPosi.left + barMarkWidth / 2
74132
- : barRectPosi.left + barRectPosi.width + (barMarkInBar ? -barMarkWidth / 2 : barMarkWidth / 2);
74026
+ : barRectPosi.left + barRectPosi.width - barMarkWidth / 2;
74133
74027
  points.push({ x: markLeft, y: barRectPosi.top });
74134
74028
  points.push({ x: markLeft, y: barRectPosi.top + barRectPosi.height });
74135
74029
  }
@@ -74573,9 +74467,7 @@
74573
74467
  cornerRadius: buttonBorderRadius
74574
74468
  },
74575
74469
  state: {
74576
- text: {
74577
- hover: {}
74578
- },
74470
+ text: {},
74579
74471
  panel: {
74580
74472
  hover: {
74581
74473
  fill: buttonHoverColor,
@@ -83204,7 +83096,7 @@
83204
83096
  }
83205
83097
 
83206
83098
  registerForVrender();
83207
- const version = "1.17.4-alpha.5";
83099
+ const version = "1.17.4-alpha.7";
83208
83100
  function getIcons() {
83209
83101
  return get$2();
83210
83102
  }