@visactor/vtable 0.24.0 → 0.24.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 (61) hide show
  1. package/cjs/ListTable.js +7 -25
  2. package/cjs/ListTable.js.map +1 -1
  3. package/cjs/PivotChart.js +5 -17
  4. package/cjs/PivotChart.js.map +1 -1
  5. package/cjs/PivotTable.d.ts +4 -4
  6. package/cjs/PivotTable.js +32 -29
  7. package/cjs/PivotTable.js.map +1 -1
  8. package/cjs/core/BaseTable.d.ts +1 -0
  9. package/cjs/core/BaseTable.js +17 -6
  10. package/cjs/core/BaseTable.js.map +1 -1
  11. package/cjs/dataset/flatDataToObject.d.ts +7 -0
  12. package/cjs/dataset/flatDataToObject.js +3 -0
  13. package/cjs/dataset/flatDataToObject.js.map +1 -1
  14. package/cjs/index.d.ts +1 -1
  15. package/cjs/index.js +1 -1
  16. package/cjs/index.js.map +1 -1
  17. package/cjs/layout/pivot-header-layout.js +8 -6
  18. package/cjs/layout/pivot-header-layout.js.map +1 -1
  19. package/cjs/layout/row-height-map.js +3 -1
  20. package/cjs/layout/row-height-map.js.map +1 -1
  21. package/cjs/layout/simple-header-layout.js +17 -1
  22. package/cjs/layout/simple-header-layout.js.map +1 -1
  23. package/cjs/scenegraph/layout/compute-col-width.js +1 -1
  24. package/cjs/scenegraph/layout/compute-col-width.js.map +1 -1
  25. package/cjs/scenegraph/layout/compute-row-height.js +1 -1
  26. package/cjs/scenegraph/layout/compute-row-height.js.map +1 -1
  27. package/cjs/scenegraph/scenegraph.js +1 -1
  28. package/cjs/themes/component.js +1 -1
  29. package/cjs/vrender.js.map +1 -1
  30. package/dist/vtable.js +110 -97
  31. package/dist/vtable.min.js +2 -2
  32. package/es/ListTable.js +7 -25
  33. package/es/ListTable.js.map +1 -1
  34. package/es/PivotChart.js +5 -17
  35. package/es/PivotChart.js.map +1 -1
  36. package/es/PivotTable.d.ts +4 -4
  37. package/es/PivotTable.js +31 -28
  38. package/es/PivotTable.js.map +1 -1
  39. package/es/core/BaseTable.d.ts +1 -0
  40. package/es/core/BaseTable.js +17 -6
  41. package/es/core/BaseTable.js.map +1 -1
  42. package/es/dataset/flatDataToObject.d.ts +7 -0
  43. package/es/dataset/flatDataToObject.js +3 -0
  44. package/es/dataset/flatDataToObject.js.map +1 -1
  45. package/es/index.d.ts +1 -1
  46. package/es/index.js +1 -1
  47. package/es/index.js.map +1 -1
  48. package/es/layout/pivot-header-layout.js +8 -6
  49. package/es/layout/pivot-header-layout.js.map +1 -1
  50. package/es/layout/row-height-map.js +3 -1
  51. package/es/layout/row-height-map.js.map +1 -1
  52. package/es/layout/simple-header-layout.js +17 -1
  53. package/es/layout/simple-header-layout.js.map +1 -1
  54. package/es/scenegraph/layout/compute-col-width.js +1 -1
  55. package/es/scenegraph/layout/compute-col-width.js.map +1 -1
  56. package/es/scenegraph/layout/compute-row-height.js +1 -1
  57. package/es/scenegraph/layout/compute-row-height.js.map +1 -1
  58. package/es/scenegraph/scenegraph.js +1 -1
  59. package/es/themes/component.js +1 -1
  60. package/es/vrender.js.map +1 -1
  61. package/package.json +2 -2
package/dist/vtable.js CHANGED
@@ -40786,7 +40786,7 @@
40786
40786
  }
40787
40787
  }
40788
40788
  else {
40789
- if (table.rowCount !== table.rowHeightsMap.length) {
40789
+ if (table.heightMode === 'adaptive' || table.autoFillHeight) {
40790
40790
  table.clearRowHeightCache();
40791
40791
  }
40792
40792
  if (update) {
@@ -44252,7 +44252,7 @@
44252
44252
  for (let col = colStart; col <= colEnd; col++) {
44253
44253
  let maxWidth;
44254
44254
  if (!table.internalProps.transpose &&
44255
- (table.internalProps.layoutMap.columnWidths?.[col]?.columnWidthComputeMode === 'only-header' ||
44255
+ (table.internalProps.layoutMap.columnObjects?.[col]?.columnWidthComputeMode === 'only-header' ||
44256
44256
  table.columnWidthComputeMode === 'only-header') &&
44257
44257
  'showHeader' in table.internalProps.layoutMap) {
44258
44258
  const temp = table.internalProps.layoutMap.showHeader;
@@ -44261,7 +44261,7 @@
44261
44261
  table.internalProps.layoutMap.showHeader = temp;
44262
44262
  }
44263
44263
  else if (!table.internalProps.transpose &&
44264
- (table.internalProps.layoutMap.columnWidths?.[col]?.columnWidthComputeMode === 'only-body' ||
44264
+ (table.internalProps.layoutMap.columnObjects?.[col]?.columnWidthComputeMode === 'only-body' ||
44265
44265
  table.columnWidthComputeMode === 'only-body')) {
44266
44266
  maxWidth = computeColWidth(col, table.internalProps.layoutMap.getBodyRange().start.row, table.internalProps.layoutMap.getBodyRange().end.row, table);
44267
44267
  }
@@ -57158,7 +57158,7 @@
57158
57158
  }, 0);
57159
57159
  }
57160
57160
  dealDiffenence() {
57161
- for (const [sumPos, sum] of this.cumulativeSum) {
57161
+ for (const [sumPos] of this.cumulativeSum) {
57162
57162
  for (const [difPos, difference] of this.difference) {
57163
57163
  if (sumPos >= difPos) {
57164
57164
  const oldSum = this.cumulativeSum.get(sumPos);
@@ -57169,6 +57169,9 @@
57169
57169
  this.difference.clear();
57170
57170
  }
57171
57171
  insert(position, value) {
57172
+ for (let i = position; i <= this.getLastIndex(); i++) {
57173
+ this.cumulativeSum.delete(i);
57174
+ }
57172
57175
  const lastIndex = this.getLastIndex() + 1;
57173
57176
  this.adjustOrder(position, position + 1, lastIndex - position);
57174
57177
  if (isValid$3(value)) {
@@ -57187,6 +57190,9 @@
57187
57190
  if (!this.has(position)) {
57188
57191
  return;
57189
57192
  }
57193
+ for (let i = position; i <= this.getLastIndex(); i++) {
57194
+ this.cumulativeSum.delete(i);
57195
+ }
57190
57196
  const lastIndex = this.getLastIndex();
57191
57197
  this.adjustOrder(position + 1, position, lastIndex - position);
57192
57198
  this.delLast();
@@ -57473,7 +57479,7 @@
57473
57479
  return TABLE_EVENT_TYPE;
57474
57480
  }
57475
57481
  options;
57476
- version = "0.24.0";
57482
+ version = "0.24.1";
57477
57483
  pagination;
57478
57484
  id = `VTable${Date.now()}`;
57479
57485
  headerStyleCache;
@@ -58005,7 +58011,7 @@
58005
58011
  }
58006
58012
  }
58007
58013
  getRowsHeight(startRow, endRow) {
58008
- if (startRow > endRow) {
58014
+ if (startRow > endRow || this.rowCount === 0) {
58009
58015
  return 0;
58010
58016
  }
58011
58017
  startRow = Math.max(startRow, 0);
@@ -58014,13 +58020,20 @@
58014
58020
  if (this.heightMode === 'standard' &&
58015
58021
  !this.autoFillHeight &&
58016
58022
  this.internalProps.layoutMap &&
58017
- endRow >= this.columnHeaderLevelCount &&
58018
- !this.bottomFrozenRowCount &&
58019
58023
  !this.hasAutoImageColumn()) {
58020
- for (let i = startRow; i < this.columnHeaderLevelCount; i++) {
58024
+ for (let i = startRow; i < Math.min(endRow + 1, this.columnHeaderLevelCount); i++) {
58025
+ h += this.getRowHeight(i);
58026
+ }
58027
+ if (endRow >= this.columnHeaderLevelCount) {
58028
+ h +=
58029
+ this.defaultRowHeight *
58030
+ (Math.min(endRow, this.rowCount - this.bottomFrozenRowCount - 1) -
58031
+ Math.max(this.columnHeaderLevelCount, startRow) +
58032
+ 1);
58033
+ }
58034
+ for (let i = this.rowCount - this.bottomFrozenRowCount; i < endRow + 1; i++) {
58021
58035
  h += this.getRowHeight(i);
58022
58036
  }
58023
- h += this.defaultRowHeight * (endRow - Math.max(this.columnHeaderLevelCount, startRow) + 1);
58024
58037
  }
58025
58038
  else {
58026
58039
  h = this.rowHeightsMap.getSumInRange(startRow, endRow);
@@ -60020,6 +60033,23 @@
60020
60033
  get leftRowSeriesNumberCount() {
60021
60034
  return this.internalProps.layoutMap?.leftRowSeriesNumberColumnCount ?? 0;
60022
60035
  }
60036
+ setMinMaxLimitWidth(setWidth = false) {
60037
+ const internalProps = this.internalProps;
60038
+ for (let col = 0; col < internalProps.layoutMap.columnWidths.length; col++) {
60039
+ const { width, minWidth, maxWidth } = internalProps.layoutMap.columnWidths?.[col] ?? {};
60040
+ if (setWidth &&
60041
+ width &&
60042
+ ((typeof width === 'string' && width !== 'auto') || (typeof width === 'number' && width > 0))) {
60043
+ this._setColWidth(col, width);
60044
+ }
60045
+ if (minWidth && ((typeof minWidth === 'number' && minWidth > 0) || typeof minWidth === 'string')) {
60046
+ this.setMinColWidth(col, minWidth);
60047
+ }
60048
+ if (maxWidth && ((typeof maxWidth === 'number' && maxWidth > 0) || typeof maxWidth === 'string')) {
60049
+ this.setMaxColWidth(col, maxWidth);
60050
+ }
60051
+ }
60052
+ }
60023
60053
  }
60024
60054
 
60025
60055
  var core = /*#__PURE__*/Object.freeze({
@@ -61540,7 +61570,30 @@
61540
61570
  return this._columns;
61541
61571
  }
61542
61572
  get columnWidths() {
61543
- return this._columns;
61573
+ if (this.leftRowSeriesNumberColumnCount) {
61574
+ const widths = this.leftRowSeriesNumberColumn.map(item => {
61575
+ return {
61576
+ width: item.width,
61577
+ minWidth: item.minWidth,
61578
+ maxWidth: item.maxWidth
61579
+ };
61580
+ });
61581
+ widths.push(...this._columns.map(item => {
61582
+ return {
61583
+ width: item.width,
61584
+ minWidth: item.minWidth,
61585
+ maxWidth: item.maxWidth
61586
+ };
61587
+ }));
61588
+ return widths;
61589
+ }
61590
+ return this._columns.map(item => {
61591
+ return {
61592
+ width: item.width,
61593
+ minWidth: item.minWidth,
61594
+ maxWidth: item.maxWidth
61595
+ };
61596
+ });
61544
61597
  }
61545
61598
  getColumnWidthDefined(col) {
61546
61599
  if (col >= 0) {
@@ -62792,18 +62845,7 @@
62792
62845
  const layoutMap = (internalProps.layoutMap = new SimpleHeaderLayoutMap(this, internalProps.columns ?? [], showHeader, table.options.hierarchyIndent));
62793
62846
  layoutMap.transpose = transpose;
62794
62847
  if (!transpose) {
62795
- for (let col = 0; col < layoutMap.columnWidths.length; col++) {
62796
- const { width, minWidth, maxWidth } = layoutMap.columnWidths?.[col] ?? {};
62797
- if (width && ((typeof width === 'string' && width !== 'auto') || (typeof width === 'number' && width > 0))) {
62798
- table._setColWidth(col, width);
62799
- }
62800
- if (minWidth && ((typeof minWidth === 'number' && minWidth > 0) || typeof minWidth === 'string')) {
62801
- table.setMinColWidth(col, minWidth);
62802
- }
62803
- if (maxWidth && ((typeof maxWidth === 'number' && maxWidth > 0) || typeof maxWidth === 'string')) {
62804
- table.setMaxColWidth(col, maxWidth);
62805
- }
62806
- }
62848
+ this.setMinMaxLimitWidth(true);
62807
62849
  }
62808
62850
  this.refreshRowColCount();
62809
62851
  }
@@ -62874,15 +62916,7 @@
62874
62916
  this.colWidthsMap.exchangeOrder(sourceCellRange.start.col, sourceCellRange.end.col - sourceCellRange.start.col + 1, targetCellRange.start.col, targetCellRange.end.col - targetCellRange.start.col + 1, moveContext.targetIndex);
62875
62917
  if (!this.transpose) {
62876
62918
  this.colWidthsLimit = {};
62877
- for (let col = 0; col < this.internalProps.layoutMap.columnWidths.length; col++) {
62878
- const { minWidth, maxWidth } = this.internalProps.layoutMap.columnWidths?.[col] ?? {};
62879
- if (minWidth && ((typeof minWidth === 'number' && minWidth > 0) || typeof minWidth === 'string')) {
62880
- this.setMinColWidth(col, minWidth);
62881
- }
62882
- if (maxWidth && ((typeof maxWidth === 'number' && maxWidth > 0) || typeof maxWidth === 'string')) {
62883
- this.setMaxColWidth(col, maxWidth);
62884
- }
62885
- }
62919
+ this.setMinMaxLimitWidth();
62886
62920
  }
62887
62921
  }
62888
62922
  else {
@@ -63993,13 +64027,6 @@
63993
64027
  this.fullRowDimensionKeys = this.fullRowDimensionKeys.concat(rowKeys);
63994
64028
  });
63995
64029
  }
63996
- if (this.rowsDefine.length > this.fullRowDimensionKeys.length) {
63997
- for (let i = this.fullRowDimensionKeys.length; i <= this.rowsDefine.length - 1; i++) {
63998
- this.fullRowDimensionKeys.push(typeof this.rowsDefine[i] === 'string'
63999
- ? this.rowsDefine[i]
64000
- : this.rowsDefine[i].dimensionKey);
64001
- }
64002
- }
64003
64030
  this.sharedVar.seqId = Math.max(this.sharedVar.seqId, this._headerObjects.length);
64004
64031
  if (this.cornerSetting.titleOnDimension === 'column') {
64005
64032
  this.cornerHeaderObjs = this._addCornerHeaders(this.columnHeaderTitle ? [''].concat(this.colDimensionKeys) : this.colDimensionKeys, this.columnsDefine);
@@ -64392,7 +64419,7 @@
64392
64419
  }
64393
64420
  }
64394
64421
  if (this.indicatorsAsCol) {
64395
- for (let i = this.rowHeaderLevelCount; i < this.colCount; i++) {
64422
+ for (let i = this.rowHeaderLevelCount + this.leftRowSeriesNumberColumnCount; i < this.colCount; i++) {
64396
64423
  const cellDefine = this.getBody(i, this.columnHeaderLevelCount);
64397
64424
  returnWidths[i] = {
64398
64425
  width: cellDefine?.width,
@@ -64414,14 +64441,14 @@
64414
64441
  isAuto = true;
64415
64442
  }
64416
64443
  if (typeof obj.minWidth === 'number') {
64417
- minWidth = Math.max(obj.minWidth, minWidth);
64444
+ minWidth = Math.max(obj.minWidth, minWidth ?? 0);
64418
64445
  }
64419
64446
  if (typeof obj.maxWidth === 'number') {
64420
- maxWidth = Math.max(obj.maxWidth, maxWidth);
64447
+ maxWidth = Math.min(obj.maxWidth, maxWidth ?? Number.MAX_VALUE);
64421
64448
  }
64422
64449
  });
64423
64450
  width = width > 0 ? width : isAuto ? 'auto' : undefined;
64424
- returnWidths.fill({ width, minWidth, maxWidth }, this.rowHeaderLevelCount, this.colCount - this.rightFrozenColCount);
64451
+ returnWidths.fill({ width, minWidth, maxWidth }, this.rowHeaderLevelCount + this.leftRowSeriesNumberColumnCount, this.colCount - this.rightFrozenColCount);
64425
64452
  }
64426
64453
  this._columnWidths = returnWidths;
64427
64454
  }
@@ -65170,6 +65197,9 @@
65170
65197
  hd.define.hierarchyState === HierarchyState.collapse ? HierarchyState.expand : HierarchyState.collapse;
65171
65198
  this.rowDimensionTree.reset(this.rowDimensionTree.tree.children, true);
65172
65199
  this._rowHeaderCellIds_FULL = [];
65200
+ this.rowDimensionKeys = this.rowDimensionTree.dimensionKeys.valueArr();
65201
+ this.fullRowDimensionKeys = [];
65202
+ this.fullRowDimensionKeys = this.fullRowDimensionKeys.concat(this.rowDimensionKeys);
65173
65203
  this._addHeadersForTreeMode(this._rowHeaderCellIds_FULL, 0, this.rowDimensionTree.tree.children, [], this.rowDimensionTree.totalLevel, true, this.rowsDefine, this.rowHeaderObjs);
65174
65204
  if (this.rowHeaderTitle) {
65175
65205
  const id = ++this.sharedVar.seqId;
@@ -66242,6 +66272,9 @@
66242
66272
  typeof window !== 'undefined' ? window.performance.now() : 0;
66243
66273
  }
66244
66274
  }
66275
+ changeDataConfig(dataConfig) {
66276
+ this.dataConfig = dataConfig;
66277
+ }
66245
66278
  setRecords(records) {
66246
66279
  this.processRecords();
66247
66280
  }
@@ -67622,6 +67655,7 @@
67622
67655
  !options.indicatorsAsCol && !options.rows?.length && !options.rowTree ? [] : cloneDeep(options.rowTree);
67623
67656
  options.records && (this.internalProps.records = options.records);
67624
67657
  this.stateManager.initCheckedState(this.internalProps.records);
67658
+ this.stateManager.updateDrillState(undefined, undefined, false, false, -1, -1);
67625
67659
  this.pagination = options.pagination;
67626
67660
  internalProps.columnResizeType = options.columnResizeType ?? 'column';
67627
67661
  internalProps.dataConfig = cloneDeep(options.dataConfig);
@@ -67734,19 +67768,7 @@
67734
67768
  }
67735
67769
  }
67736
67770
  refreshHeader() {
67737
- const internalProps = this.internalProps;
67738
- for (let col = 0; col < internalProps.layoutMap.columnWidths.length; col++) {
67739
- const { width, minWidth, maxWidth } = internalProps.layoutMap.columnWidths?.[col] ?? {};
67740
- if (width && ((typeof width === 'string' && width !== 'auto') || (typeof width === 'number' && width > 0))) {
67741
- this._setColWidth(col, width);
67742
- }
67743
- if (minWidth && ((typeof minWidth === 'number' && minWidth > 0) || typeof minWidth === 'string')) {
67744
- this.setMinColWidth(col, minWidth);
67745
- }
67746
- if (maxWidth && ((typeof maxWidth === 'number' && maxWidth > 0) || typeof maxWidth === 'string')) {
67747
- this.setMaxColWidth(col, maxWidth);
67748
- }
67749
- }
67771
+ this.setMinMaxLimitWidth(true);
67750
67772
  this.refreshRowColCount();
67751
67773
  }
67752
67774
  refreshRowColCount() {
@@ -68047,15 +68069,7 @@
68047
68069
  }
68048
68070
  }
68049
68071
  this.colWidthsMap.exchangeOrder(sourceCellRange.start.col, sourceCellRange.end.col - sourceCellRange.start.col + 1, targetCellRange.start.col, targetCellRange.end.col - targetCellRange.start.col + 1, moveContext.targetIndex);
68050
- for (let col = 0; col < this.internalProps.layoutMap.columnWidths.length; col++) {
68051
- const { minWidth, maxWidth } = this.internalProps.layoutMap.columnWidths?.[col] ?? {};
68052
- if (minWidth && ((typeof minWidth === 'number' && minWidth > 0) || typeof minWidth === 'string')) {
68053
- this.setMinColWidth(col, minWidth);
68054
- }
68055
- if (maxWidth && ((typeof maxWidth === 'number' && maxWidth > 0) || typeof maxWidth === 'string')) {
68056
- this.setMaxColWidth(col, maxWidth);
68057
- }
68058
- }
68072
+ this.setMinMaxLimitWidth();
68059
68073
  }
68060
68074
  else if (moveContext.moveType === 'row') {
68061
68075
  if (this.options.records?.[0]?.constructor === Array) {
@@ -68098,7 +68112,7 @@
68098
68112
  });
68099
68113
  }
68100
68114
  }
68101
- _refreshHierarchyState(col, row) {
68115
+ _refreshHierarchyState(col, row, beforeUpdateCell) {
68102
68116
  let notFillWidth = false;
68103
68117
  let notFillHeight = false;
68104
68118
  this.stateManager.updateHoverIcon(col, row, undefined, undefined);
@@ -68112,6 +68126,7 @@
68112
68126
  }
68113
68127
  }
68114
68128
  const result = this.internalProps.layoutMap.toggleHierarchyState(col, row);
68129
+ beforeUpdateCell && beforeUpdateCell();
68115
68130
  this.refreshRowColCount();
68116
68131
  this.clearCellStyleCache();
68117
68132
  this.scenegraph.updateHierarchyIcon(col, row);
@@ -68221,6 +68236,18 @@
68221
68236
  }
68222
68237
  this.eventManager.updateEventBinder();
68223
68238
  }
68239
+ startEditCell(col, row) {
68240
+ if (isValid$3(col) && isValid$3(row)) {
68241
+ this.selectCell(col, row);
68242
+ this.editorManager.startEditCell(col, row);
68243
+ }
68244
+ else if (this.stateManager.select?.cellPos) {
68245
+ const { col, row } = this.stateManager.select.cellPos;
68246
+ if (isValid$3(col) && isValid$3(row)) {
68247
+ this.editorManager.startEditCell(col, row);
68248
+ }
68249
+ }
68250
+ }
68224
68251
  completeEditCell() {
68225
68252
  this.editorManager.completeEdit();
68226
68253
  }
@@ -68429,15 +68456,21 @@
68429
68456
  }
68430
68457
  changeRecordOrder(source, target) {
68431
68458
  }
68432
- setTreeNodeChildren(records, col, row) {
68433
- const headerPaths = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
68434
- const headerTreeNode = this.internalProps.layoutMap.getHeadNode(headerPaths.rowHeaderPaths.slice(0, headerPaths.rowHeaderPaths.length));
68435
- headerTreeNode.children = records;
68436
- this._refreshHierarchyState(col, row);
68437
- }
68438
- addRecords(records) {
68459
+ setTreeNodeChildren(children, records, col, row) {
68439
68460
  if (this.flatDataToObjects) {
68440
- this.flatDataToObjects.addRecords(records);
68461
+ const headerPaths = this.internalProps.layoutMap.getCellHeaderPaths(col, row);
68462
+ const headerTreeNode = this.internalProps.layoutMap.getHeadNode(headerPaths.rowHeaderPaths.slice(0, headerPaths.rowHeaderPaths.length));
68463
+ headerTreeNode.children = children;
68464
+ this._refreshHierarchyState(col, row, () => {
68465
+ this.flatDataToObjects.changeDataConfig({
68466
+ rows: this.internalProps.layoutMap.fullRowDimensionKeys,
68467
+ columns: this.internalProps.layoutMap.colDimensionKeys,
68468
+ indicators: this.internalProps.layoutMap.indicatorKeys,
68469
+ indicatorsAsCol: this.internalProps.layoutMap.indicatorsAsCol,
68470
+ indicatorDimensionKey: this.internalProps.layoutMap.indicatorDimensionKey
68471
+ });
68472
+ this.flatDataToObjects.addRecords(records);
68473
+ });
68441
68474
  }
68442
68475
  }
68443
68476
  }
@@ -68617,19 +68650,7 @@
68617
68650
  updatePagination() {
68618
68651
  }
68619
68652
  refreshHeader() {
68620
- const internalProps = this.internalProps;
68621
- for (let col = 0; col < internalProps.layoutMap.columnWidths.length; col++) {
68622
- const { width, minWidth, maxWidth } = internalProps.layoutMap.columnWidths?.[col] ?? {};
68623
- if (width && ((typeof width === 'string' && width !== 'auto') || (typeof width === 'number' && width > 0))) {
68624
- this._setColWidth(col, width);
68625
- }
68626
- if (minWidth && ((typeof minWidth === 'number' && minWidth > 0) || typeof minWidth === 'string')) {
68627
- this.setMinColWidth(col, minWidth);
68628
- }
68629
- if (maxWidth && ((typeof maxWidth === 'number' && maxWidth > 0) || typeof maxWidth === 'string')) {
68630
- this.setMaxColWidth(col, maxWidth);
68631
- }
68632
- }
68653
+ this.setMinMaxLimitWidth(true);
68633
68654
  this.refreshRowColCount();
68634
68655
  }
68635
68656
  refreshRowColCount() {
@@ -68832,15 +68853,7 @@
68832
68853
  }
68833
68854
  }
68834
68855
  this.colWidthsMap.adjustOrder(moveContext.sourceIndex, moveContext.targetIndex, moveContext.sourceSize);
68835
- for (let col = 0; col < this.internalProps.layoutMap.columnWidths.length; col++) {
68836
- const { minWidth, maxWidth } = this.internalProps.layoutMap.columnWidths?.[col] ?? {};
68837
- if (minWidth && ((typeof minWidth === 'number' && minWidth > 0) || typeof minWidth === 'string')) {
68838
- this.setMinColWidth(col, minWidth);
68839
- }
68840
- if (maxWidth && ((typeof maxWidth === 'number' && maxWidth > 0) || typeof maxWidth === 'string')) {
68841
- this.setMaxColWidth(col, maxWidth);
68842
- }
68843
- }
68856
+ this.setMinMaxLimitWidth();
68844
68857
  }
68845
68858
  else if (moveContext.moveType === 'row') {
68846
68859
  if (this.options.records?.[0]?.constructor === Array) {
@@ -69833,7 +69846,7 @@
69833
69846
  }
69834
69847
 
69835
69848
  registerForVrender();
69836
- const version = "0.24.0";
69849
+ const version = "0.24.1";
69837
69850
  function getIcons() {
69838
69851
  return get$2();
69839
69852
  }