handsontable 0.0.0-next-30767dd-20250207 → 0.0.0-next-21f0f43-20250210

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.

Potentially problematic release.


This version of handsontable might be problematic. Click here for more details.

Files changed (43) hide show
  1. package/3rdparty/walkontable/src/calculator/viewportColumns.js +1 -5
  2. package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +1 -5
  3. package/3rdparty/walkontable/src/calculator/viewportRows.js +1 -5
  4. package/3rdparty/walkontable/src/calculator/viewportRows.mjs +1 -5
  5. package/3rdparty/walkontable/src/overlay/inlineStart.js +1 -8
  6. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +1 -8
  7. package/3rdparty/walkontable/src/overlay/top.js +1 -9
  8. package/3rdparty/walkontable/src/overlay/top.mjs +1 -9
  9. package/3rdparty/walkontable/src/renderer/cells.js +4 -1
  10. package/3rdparty/walkontable/src/renderer/cells.mjs +4 -1
  11. package/3rdparty/walkontable/src/renderer/columnHeaders.js +4 -1
  12. package/3rdparty/walkontable/src/renderer/columnHeaders.mjs +4 -1
  13. package/3rdparty/walkontable/src/renderer/rowHeaders.js +3 -0
  14. package/3rdparty/walkontable/src/renderer/rowHeaders.mjs +3 -0
  15. package/3rdparty/walkontable/src/utils/column.js +4 -25
  16. package/3rdparty/walkontable/src/utils/column.mjs +4 -25
  17. package/3rdparty/walkontable/src/utils/row.js +2 -12
  18. package/3rdparty/walkontable/src/utils/row.mjs +2 -12
  19. package/base.js +2 -2
  20. package/base.mjs +2 -2
  21. package/core.js +4 -54
  22. package/core.mjs +4 -54
  23. package/dist/handsontable.css +2 -2
  24. package/dist/handsontable.full.css +2 -2
  25. package/dist/handsontable.full.js +49 -151
  26. package/dist/handsontable.full.min.css +2 -2
  27. package/dist/handsontable.full.min.js +9 -9
  28. package/dist/handsontable.js +44 -140
  29. package/dist/handsontable.min.css +2 -2
  30. package/dist/handsontable.min.js +15 -15
  31. package/helpers/mixed.js +1 -1
  32. package/helpers/mixed.mjs +1 -1
  33. package/package.json +1 -1
  34. package/plugins/copyPaste/copyPaste.js +6 -12
  35. package/plugins/copyPaste/copyPaste.mjs +6 -12
  36. package/renderers/textRenderer/textRenderer.js +8 -3
  37. package/renderers/textRenderer/textRenderer.mjs +8 -3
  38. package/styles/handsontable.css +2 -2
  39. package/styles/handsontable.min.css +2 -2
  40. package/styles/ht-theme-horizon.css +2 -2
  41. package/styles/ht-theme-horizon.min.css +2 -2
  42. package/styles/ht-theme-main.css +2 -2
  43. package/styles/ht-theme-main.min.css +2 -2
@@ -85,11 +85,7 @@ class ViewportColumnsCalculator extends _viewportBase.ViewportBaseCalculator {
85
85
  * @returns {number}
86
86
  */
87
87
  getColumnWidth(column) {
88
- const width = this.columnWidthFn(column);
89
- if (isNaN(width)) {
90
- return DEFAULT_WIDTH;
91
- }
92
- return width;
88
+ return this.columnWidthFn(column);
93
89
  }
94
90
  }
95
91
  exports.ViewportColumnsCalculator = ViewportColumnsCalculator;
@@ -82,10 +82,6 @@ export class ViewportColumnsCalculator extends ViewportBaseCalculator {
82
82
  * @returns {number}
83
83
  */
84
84
  getColumnWidth(column) {
85
- const width = this.columnWidthFn(column);
86
- if (isNaN(width)) {
87
- return DEFAULT_WIDTH;
88
- }
89
- return width;
85
+ return this.columnWidthFn(column);
90
86
  }
91
87
  }
@@ -87,11 +87,7 @@ class ViewportRowsCalculator extends _viewportBase.ViewportBaseCalculator {
87
87
  * @returns {number}
88
88
  */
89
89
  getRowHeight(row) {
90
- const rowHeight = this.rowHeightFn(row);
91
- if (isNaN(rowHeight)) {
92
- return this.defaultHeight;
93
- }
94
- return rowHeight;
90
+ return this.rowHeightFn(row);
95
91
  }
96
92
  }
97
93
  exports.ViewportRowsCalculator = ViewportRowsCalculator;
@@ -84,10 +84,6 @@ export class ViewportRowsCalculator extends ViewportBaseCalculator {
84
84
  * @returns {number}
85
85
  */
86
86
  getRowHeight(row) {
87
- const rowHeight = this.rowHeightFn(row);
88
- if (isNaN(rowHeight)) {
89
- return this.defaultHeight;
90
- }
91
- return rowHeight;
87
+ return this.rowHeightFn(row);
92
88
  }
93
89
  }
@@ -115,14 +115,7 @@ class InlineStartOverlay extends _base.Overlay {
115
115
  * @returns {number} Width sum.
116
116
  */
117
117
  sumCellSizes(from, to) {
118
- const defaultColumnWidth = this.wtSettings.getSetting('defaultColumnWidth');
119
- let column = from;
120
- let sum = 0;
121
- while (column < to) {
122
- sum += this.wot.wtTable.getColumnWidth(column) || defaultColumnWidth;
123
- column += 1;
124
- }
125
- return sum;
118
+ return (to - from) * 80;
126
119
  }
127
120
 
128
121
  /**
@@ -111,14 +111,7 @@ export class InlineStartOverlay extends Overlay {
111
111
  * @returns {number} Width sum.
112
112
  */
113
113
  sumCellSizes(from, to) {
114
- const defaultColumnWidth = this.wtSettings.getSetting('defaultColumnWidth');
115
- let column = from;
116
- let sum = 0;
117
- while (column < to) {
118
- sum += this.wot.wtTable.getColumnWidth(column) || defaultColumnWidth;
119
- column += 1;
120
- }
121
- return sum;
114
+ return (to - from) * 80;
122
115
  }
123
116
 
124
117
  /**
@@ -138,15 +138,7 @@ class TopOverlay extends _base.Overlay {
138
138
  * @returns {number} Height sum.
139
139
  */
140
140
  sumCellSizes(from, to) {
141
- const defaultRowHeight = this.wot.stylesHandler.getDefaultRowHeight();
142
- let row = from;
143
- let sum = 0;
144
- while (row < to) {
145
- const height = this.wot.wtTable.getRowHeight(row);
146
- sum += height === undefined ? defaultRowHeight : height;
147
- row += 1;
148
- }
149
- return sum;
141
+ return (to - from) * 29;
150
142
  }
151
143
 
152
144
  /**
@@ -134,15 +134,7 @@ export class TopOverlay extends Overlay {
134
134
  * @returns {number} Height sum.
135
135
  */
136
136
  sumCellSizes(from, to) {
137
- const defaultRowHeight = this.wot.stylesHandler.getDefaultRowHeight();
138
- let row = from;
139
- let sum = 0;
140
- while (row < to) {
141
- const height = this.wot.wtTable.getRowHeight(row);
142
- sum += height === undefined ? defaultRowHeight : height;
143
- row += 1;
144
- }
145
- return sum;
137
+ return (to - from) * 29;
146
138
  }
147
139
 
148
140
  /**
@@ -72,11 +72,14 @@ class CellsRenderer extends _base.BaseRenderer {
72
72
  this.sourceRowIndex = sourceRowIndex;
73
73
  const orderView = this.obtainOrderView(TR);
74
74
  const rowHeadersView = rowHeaders.obtainOrderView(TR);
75
- orderView.prependView(rowHeadersView).setSize(columnsToRender).setOffset(0).start();
75
+ orderView.prependView(rowHeadersView).setSize(columnsToRender).setOffset(this.table.renderedColumnToSource(0)).start();
76
76
  for (let visibleColumnIndex = 0; visibleColumnIndex < columnsToRender; visibleColumnIndex++) {
77
77
  orderView.render();
78
78
  const sourceColumnIndex = this.table.renderedColumnToSource(visibleColumnIndex);
79
79
  const TD = orderView.getCurrentNode();
80
+ if (TD.innerHTML !== '') {
81
+ continue;
82
+ }
80
83
  if (!(0, _element.hasClass)(TD, 'hide')) {
81
84
  // Workaround for hidden columns plugin
82
85
  TD.className = '';
@@ -69,11 +69,14 @@ export class CellsRenderer extends BaseRenderer {
69
69
  this.sourceRowIndex = sourceRowIndex;
70
70
  const orderView = this.obtainOrderView(TR);
71
71
  const rowHeadersView = rowHeaders.obtainOrderView(TR);
72
- orderView.prependView(rowHeadersView).setSize(columnsToRender).setOffset(0).start();
72
+ orderView.prependView(rowHeadersView).setSize(columnsToRender).setOffset(this.table.renderedColumnToSource(0)).start();
73
73
  for (let visibleColumnIndex = 0; visibleColumnIndex < columnsToRender; visibleColumnIndex++) {
74
74
  orderView.render();
75
75
  const sourceColumnIndex = this.table.renderedColumnToSource(visibleColumnIndex);
76
76
  const TD = orderView.getCurrentNode();
77
+ if (TD.innerHTML !== '') {
78
+ continue;
79
+ }
77
80
  if (!hasClass(TD, 'hide')) {
78
81
  // Workaround for hidden columns plugin
79
82
  TD.className = '';
@@ -18,7 +18,7 @@ var _a11y = require("../../../../helpers/a11y");
18
18
  */
19
19
  class ColumnHeadersRenderer extends _base.BaseRenderer {
20
20
  constructor(rootNode) {
21
- super(null, rootNode); // NodePool is not implemented for this renderer yet
21
+ super('TR', rootNode); // NodePool is not implemented for this renderer yet
22
22
  }
23
23
 
24
24
  /**
@@ -86,6 +86,9 @@ class ColumnHeadersRenderer extends _base.BaseRenderer {
86
86
  // eslint-disable-line max-len
87
87
  const sourceColumnIndex = this.table.renderedColumnToSource(renderedColumnIndex);
88
88
  const TH = TR.childNodes[renderedColumnIndex + rowHeadersCount];
89
+ if (TH.innerHTML !== '') {
90
+ continue;
91
+ }
89
92
  TH.className = '';
90
93
  TH.removeAttribute('style');
91
94
 
@@ -15,7 +15,7 @@ import { A11Y_COLINDEX, A11Y_COLUMNHEADER, A11Y_ROW, A11Y_ROWGROUP, A11Y_ROWINDE
15
15
  */
16
16
  export class ColumnHeadersRenderer extends BaseRenderer {
17
17
  constructor(rootNode) {
18
- super(null, rootNode); // NodePool is not implemented for this renderer yet
18
+ super('TR', rootNode); // NodePool is not implemented for this renderer yet
19
19
  }
20
20
 
21
21
  /**
@@ -83,6 +83,9 @@ export class ColumnHeadersRenderer extends BaseRenderer {
83
83
  // eslint-disable-line max-len
84
84
  const sourceColumnIndex = this.table.renderedColumnToSource(renderedColumnIndex);
85
85
  const TH = TR.childNodes[renderedColumnIndex + rowHeadersCount];
86
+ if (TH.innerHTML !== '') {
87
+ continue;
88
+ }
86
89
  TH.className = '';
87
90
  TH.removeAttribute('style');
88
91
 
@@ -77,6 +77,9 @@ class RowHeadersRenderer extends _base.BaseRenderer {
77
77
  for (let visibleColumnIndex = 0; visibleColumnIndex < rowHeadersCount; visibleColumnIndex++) {
78
78
  orderView.render();
79
79
  const TH = orderView.getCurrentNode();
80
+ if (TH.innerHTML !== '') {
81
+ continue;
82
+ }
80
83
  TH.className = '';
81
84
  TH.removeAttribute('style');
82
85
 
@@ -74,6 +74,9 @@ export class RowHeadersRenderer extends BaseRenderer {
74
74
  for (let visibleColumnIndex = 0; visibleColumnIndex < rowHeadersCount; visibleColumnIndex++) {
75
75
  orderView.render();
76
76
  const TH = orderView.getCurrentNode();
77
+ if (TH.innerHTML !== '') {
78
+ continue;
79
+ }
77
80
  TH.className = '';
78
81
  TH.removeAttribute('style');
79
82
 
@@ -39,8 +39,7 @@ class ColumnUtils {
39
39
  * @returns {number}
40
40
  */
41
41
  getWidth(sourceIndex) {
42
- const width = this.wtSettings.getSetting('columnWidth', sourceIndex) || this.wtSettings.getSetting('defaultColumnWidth');
43
- return width;
42
+ return this.wtSettings.getSetting('columnWidth', sourceIndex);
44
43
  }
45
44
 
46
45
  /**
@@ -50,12 +49,7 @@ class ColumnUtils {
50
49
  * @returns {number}
51
50
  */
52
51
  getHeaderHeight(level) {
53
- let height = this.dataAccessObject.stylesHandler.getDefaultRowHeight();
54
- const oversizedHeight = this.dataAccessObject.wtViewport.oversizedColumnHeaders[level];
55
- if (oversizedHeight !== undefined) {
56
- height = height ? Math.max(height, oversizedHeight) : oversizedHeight;
57
- }
58
- return height;
52
+ return this.dataAccessObject.stylesHandler.getDefaultRowHeight();
59
53
  }
60
54
 
61
55
  /**
@@ -65,27 +59,12 @@ class ColumnUtils {
65
59
  * @returns {number}
66
60
  */
67
61
  getHeaderWidth(sourceIndex) {
68
- return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(sourceIndex));
62
+ return 50;
69
63
  }
70
64
 
71
65
  /**
72
66
  * Calculates column header widths that can be retrieved from the cache.
73
67
  */
74
- calculateWidths() {
75
- const {
76
- wtSettings
77
- } = this;
78
- let rowHeaderWidthSetting = wtSettings.getSetting('rowHeaderWidth');
79
- rowHeaderWidthSetting = wtSettings.getSetting('onModifyRowHeaderWidth', rowHeaderWidthSetting);
80
- if (rowHeaderWidthSetting !== null && rowHeaderWidthSetting !== undefined) {
81
- const rowHeadersCount = wtSettings.getSetting('rowHeaders').length;
82
- const defaultColumnWidth = wtSettings.getSetting('defaultColumnWidth');
83
- for (let visibleColumnIndex = 0; visibleColumnIndex < rowHeadersCount; visibleColumnIndex++) {
84
- let width = Array.isArray(rowHeaderWidthSetting) ? rowHeaderWidthSetting[visibleColumnIndex] : rowHeaderWidthSetting;
85
- width = width === null || width === undefined ? defaultColumnWidth : width;
86
- this.headerWidths.set(visibleColumnIndex, width);
87
- }
88
- }
89
- }
68
+ calculateWidths() {}
90
69
  }
91
70
  exports.default = ColumnUtils;
@@ -36,8 +36,7 @@ export default class ColumnUtils {
36
36
  * @returns {number}
37
37
  */
38
38
  getWidth(sourceIndex) {
39
- const width = this.wtSettings.getSetting('columnWidth', sourceIndex) || this.wtSettings.getSetting('defaultColumnWidth');
40
- return width;
39
+ return this.wtSettings.getSetting('columnWidth', sourceIndex);
41
40
  }
42
41
 
43
42
  /**
@@ -47,12 +46,7 @@ export default class ColumnUtils {
47
46
  * @returns {number}
48
47
  */
49
48
  getHeaderHeight(level) {
50
- let height = this.dataAccessObject.stylesHandler.getDefaultRowHeight();
51
- const oversizedHeight = this.dataAccessObject.wtViewport.oversizedColumnHeaders[level];
52
- if (oversizedHeight !== undefined) {
53
- height = height ? Math.max(height, oversizedHeight) : oversizedHeight;
54
- }
55
- return height;
49
+ return this.dataAccessObject.stylesHandler.getDefaultRowHeight();
56
50
  }
57
51
 
58
52
  /**
@@ -62,26 +56,11 @@ export default class ColumnUtils {
62
56
  * @returns {number}
63
57
  */
64
58
  getHeaderWidth(sourceIndex) {
65
- return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(sourceIndex));
59
+ return 50;
66
60
  }
67
61
 
68
62
  /**
69
63
  * Calculates column header widths that can be retrieved from the cache.
70
64
  */
71
- calculateWidths() {
72
- const {
73
- wtSettings
74
- } = this;
75
- let rowHeaderWidthSetting = wtSettings.getSetting('rowHeaderWidth');
76
- rowHeaderWidthSetting = wtSettings.getSetting('onModifyRowHeaderWidth', rowHeaderWidthSetting);
77
- if (rowHeaderWidthSetting !== null && rowHeaderWidthSetting !== undefined) {
78
- const rowHeadersCount = wtSettings.getSetting('rowHeaders').length;
79
- const defaultColumnWidth = wtSettings.getSetting('defaultColumnWidth');
80
- for (let visibleColumnIndex = 0; visibleColumnIndex < rowHeadersCount; visibleColumnIndex++) {
81
- let width = Array.isArray(rowHeaderWidthSetting) ? rowHeaderWidthSetting[visibleColumnIndex] : rowHeaderWidthSetting;
82
- width = width === null || width === undefined ? defaultColumnWidth : width;
83
- this.headerWidths.set(visibleColumnIndex, width);
84
- }
85
- }
86
- }
65
+ calculateWidths() {}
87
66
  }
@@ -35,12 +35,7 @@ class RowUtils {
35
35
  * @returns {number}
36
36
  */
37
37
  getHeight(sourceIndex) {
38
- let height = this.wtSettings.getSetting('rowHeight', sourceIndex);
39
- const oversizedHeight = this.dataAccessObject.wtViewport.oversizedRows[sourceIndex];
40
- if (oversizedHeight !== undefined) {
41
- height = height === undefined ? oversizedHeight : Math.max(height, oversizedHeight);
42
- }
43
- return height;
38
+ return this.wtSettings.getSetting('rowHeight', sourceIndex);
44
39
  }
45
40
 
46
41
  /**
@@ -51,12 +46,7 @@ class RowUtils {
51
46
  * @returns {number}
52
47
  */
53
48
  getHeightByOverlayName(sourceIndex, overlayName) {
54
- let height = this.wtSettings.getSetting('rowHeightByOverlayName', sourceIndex, overlayName);
55
- const oversizedHeight = this.dataAccessObject.wtViewport.oversizedRows[sourceIndex];
56
- if (oversizedHeight !== undefined) {
57
- height = height === undefined ? oversizedHeight : Math.max(height, oversizedHeight);
58
- }
59
- return height;
49
+ return this.wtSettings.getSetting('rowHeight', sourceIndex);
60
50
  }
61
51
  }
62
52
  exports.default = RowUtils;
@@ -32,12 +32,7 @@ export default class RowUtils {
32
32
  * @returns {number}
33
33
  */
34
34
  getHeight(sourceIndex) {
35
- let height = this.wtSettings.getSetting('rowHeight', sourceIndex);
36
- const oversizedHeight = this.dataAccessObject.wtViewport.oversizedRows[sourceIndex];
37
- if (oversizedHeight !== undefined) {
38
- height = height === undefined ? oversizedHeight : Math.max(height, oversizedHeight);
39
- }
40
- return height;
35
+ return this.wtSettings.getSetting('rowHeight', sourceIndex);
41
36
  }
42
37
 
43
38
  /**
@@ -48,11 +43,6 @@ export default class RowUtils {
48
43
  * @returns {number}
49
44
  */
50
45
  getHeightByOverlayName(sourceIndex, overlayName) {
51
- let height = this.wtSettings.getSetting('rowHeightByOverlayName', sourceIndex, overlayName);
52
- const oversizedHeight = this.dataAccessObject.wtViewport.oversizedRows[sourceIndex];
53
- if (oversizedHeight !== undefined) {
54
- height = height === undefined ? oversizedHeight : Math.max(height, oversizedHeight);
55
- }
56
- return height;
46
+ return this.wtSettings.getSetting('rowHeight', sourceIndex);
57
47
  }
58
48
  }
package/base.js CHANGED
@@ -45,8 +45,8 @@ Handsontable.hooks = _hooks.Hooks.getSingleton();
45
45
  Handsontable.CellCoords = _src.CellCoords;
46
46
  Handsontable.CellRange = _src.CellRange;
47
47
  Handsontable.packageName = 'handsontable';
48
- Handsontable.buildDate = "07/02/2025 16:03:36";
49
- Handsontable.version = "0.0.0-next-30767dd-20250207";
48
+ Handsontable.buildDate = "10/02/2025 10:14:07";
49
+ Handsontable.version = "0.0.0-next-21f0f43-20250210";
50
50
  Handsontable.languages = {
51
51
  dictionaryKeys: _registry.dictionaryKeys,
52
52
  getLanguageDictionary: _registry.getLanguageDictionary,
package/base.mjs CHANGED
@@ -35,8 +35,8 @@ Handsontable.hooks = Hooks.getSingleton();
35
35
  Handsontable.CellCoords = CellCoords;
36
36
  Handsontable.CellRange = CellRange;
37
37
  Handsontable.packageName = 'handsontable';
38
- Handsontable.buildDate = "07/02/2025 16:03:42";
39
- Handsontable.version = "0.0.0-next-30767dd-20250207";
38
+ Handsontable.buildDate = "10/02/2025 10:14:12";
39
+ Handsontable.version = "0.0.0-next-21f0f43-20250210";
40
40
  Handsontable.languages = {
41
41
  dictionaryKeys,
42
42
  getLanguageDictionary,
package/core.js CHANGED
@@ -3495,33 +3495,7 @@ function Core(rootElement, userSettings) {
3495
3495
  * @returns {number}
3496
3496
  */
3497
3497
  this._getColWidthFromSettings = function (col) {
3498
- let width;
3499
-
3500
- // We currently don't support cell meta objects for headers (negative values)
3501
- if (col >= 0) {
3502
- const cellProperties = instance.getCellMeta(0, col);
3503
- width = cellProperties.width;
3504
- }
3505
- if (width === undefined || width === tableMeta.width) {
3506
- width = tableMeta.colWidths;
3507
- }
3508
- if (width !== undefined && width !== null) {
3509
- switch (typeof width) {
3510
- case 'object':
3511
- // array
3512
- width = width[col];
3513
- break;
3514
- case 'function':
3515
- width = width(col);
3516
- break;
3517
- default:
3518
- break;
3519
- }
3520
- if (typeof width === 'string') {
3521
- width = parseInt(width, 10);
3522
- }
3523
- }
3524
- return width;
3498
+ return tableMeta.colWidths[col];
3525
3499
  };
3526
3500
 
3527
3501
  /**
@@ -3535,12 +3509,7 @@ function Core(rootElement, userSettings) {
3535
3509
  * @fires Hooks#modifyColWidth
3536
3510
  */
3537
3511
  this.getColWidth = function (column, source) {
3538
- let width = instance._getColWidthFromSettings(column);
3539
- width = instance.runHooks('modifyColWidth', width, column, source);
3540
- if (width === undefined) {
3541
- width = _src.DEFAULT_COLUMN_WIDTH;
3542
- }
3543
- return width;
3512
+ return instance._getColWidthFromSettings(column);
3544
3513
  };
3545
3514
 
3546
3515
  /**
@@ -3553,24 +3522,7 @@ function Core(rootElement, userSettings) {
3553
3522
  * @returns {number}
3554
3523
  */
3555
3524
  this._getRowHeightFromSettings = function (row) {
3556
- let height = tableMeta.rowHeights;
3557
- if (height !== undefined && height !== null) {
3558
- switch (typeof height) {
3559
- case 'object':
3560
- // array
3561
- height = height[row];
3562
- break;
3563
- case 'function':
3564
- height = height(row);
3565
- break;
3566
- default:
3567
- break;
3568
- }
3569
- if (typeof height === 'string') {
3570
- height = parseInt(height, 10);
3571
- }
3572
- }
3573
- return height;
3525
+ return tableMeta.rowHeights;
3574
3526
  };
3575
3527
 
3576
3528
  /**
@@ -3601,9 +3553,7 @@ function Core(rootElement, userSettings) {
3601
3553
  * @fires Hooks#modifyRowHeight
3602
3554
  */
3603
3555
  this.getRowHeight = function (row, source) {
3604
- let height = instance._getRowHeightFromSettings(row);
3605
- height = instance.runHooks('modifyRowHeight', height, row, source);
3606
- return height;
3556
+ return instance._getRowHeightFromSettings(row);
3607
3557
  };
3608
3558
 
3609
3559
  /**
package/core.mjs CHANGED
@@ -3490,33 +3490,7 @@ export default function Core(rootElement, userSettings) {
3490
3490
  * @returns {number}
3491
3491
  */
3492
3492
  this._getColWidthFromSettings = function (col) {
3493
- let width;
3494
-
3495
- // We currently don't support cell meta objects for headers (negative values)
3496
- if (col >= 0) {
3497
- const cellProperties = instance.getCellMeta(0, col);
3498
- width = cellProperties.width;
3499
- }
3500
- if (width === undefined || width === tableMeta.width) {
3501
- width = tableMeta.colWidths;
3502
- }
3503
- if (width !== undefined && width !== null) {
3504
- switch (typeof width) {
3505
- case 'object':
3506
- // array
3507
- width = width[col];
3508
- break;
3509
- case 'function':
3510
- width = width(col);
3511
- break;
3512
- default:
3513
- break;
3514
- }
3515
- if (typeof width === 'string') {
3516
- width = parseInt(width, 10);
3517
- }
3518
- }
3519
- return width;
3493
+ return tableMeta.colWidths[col];
3520
3494
  };
3521
3495
 
3522
3496
  /**
@@ -3530,12 +3504,7 @@ export default function Core(rootElement, userSettings) {
3530
3504
  * @fires Hooks#modifyColWidth
3531
3505
  */
3532
3506
  this.getColWidth = function (column, source) {
3533
- let width = instance._getColWidthFromSettings(column);
3534
- width = instance.runHooks('modifyColWidth', width, column, source);
3535
- if (width === undefined) {
3536
- width = DEFAULT_COLUMN_WIDTH;
3537
- }
3538
- return width;
3507
+ return instance._getColWidthFromSettings(column);
3539
3508
  };
3540
3509
 
3541
3510
  /**
@@ -3548,24 +3517,7 @@ export default function Core(rootElement, userSettings) {
3548
3517
  * @returns {number}
3549
3518
  */
3550
3519
  this._getRowHeightFromSettings = function (row) {
3551
- let height = tableMeta.rowHeights;
3552
- if (height !== undefined && height !== null) {
3553
- switch (typeof height) {
3554
- case 'object':
3555
- // array
3556
- height = height[row];
3557
- break;
3558
- case 'function':
3559
- height = height(row);
3560
- break;
3561
- default:
3562
- break;
3563
- }
3564
- if (typeof height === 'string') {
3565
- height = parseInt(height, 10);
3566
- }
3567
- }
3568
- return height;
3520
+ return tableMeta.rowHeights;
3569
3521
  };
3570
3522
 
3571
3523
  /**
@@ -3596,9 +3548,7 @@ export default function Core(rootElement, userSettings) {
3596
3548
  * @fires Hooks#modifyRowHeight
3597
3549
  */
3598
3550
  this.getRowHeight = function (row, source) {
3599
- let height = instance._getRowHeightFromSettings(row);
3600
- height = instance.runHooks('modifyRowHeight', height, row, source);
3601
- return height;
3551
+ return instance._getRowHeightFromSettings(row);
3602
3552
  };
3603
3553
 
3604
3554
  /**
@@ -25,8 +25,8 @@
25
25
  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
26
26
  * USE OR INABILITY TO USE THIS SOFTWARE.
27
27
  *
28
- * Version: 0.0.0-next-30767dd-20250207
29
- * Release date: 16/12/2024 (built at 07/02/2025 16:04:06)
28
+ * Version: 0.0.0-next-21f0f43-20250210
29
+ * Release date: 16/12/2024 (built at 10/02/2025 10:14:34)
30
30
  */
31
31
  /**
32
32
  * Fix for bootstrap styles
@@ -25,8 +25,8 @@
25
25
  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
26
26
  * USE OR INABILITY TO USE THIS SOFTWARE.
27
27
  *
28
- * Version: 0.0.0-next-30767dd-20250207
29
- * Release date: 16/12/2024 (built at 07/02/2025 16:04:06)
28
+ * Version: 0.0.0-next-21f0f43-20250210
29
+ * Release date: 16/12/2024 (built at 10/02/2025 10:14:34)
30
30
  */
31
31
  /**
32
32
  * Fix for bootstrap styles