handsontable 0.0.0-next-8e6e16f-20250203 → 0.0.0-next-fc06746-20250203

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 (33) hide show
  1. package/3rdparty/walkontable/src/calculator/viewportColumns.js +5 -8
  2. package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +5 -8
  3. package/3rdparty/walkontable/src/calculator/viewportRows.js +5 -8
  4. package/3rdparty/walkontable/src/calculator/viewportRows.mjs +5 -8
  5. package/3rdparty/walkontable/src/overlay/inlineStart.js +8 -1
  6. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +8 -1
  7. package/3rdparty/walkontable/src/overlay/top.js +9 -1
  8. package/3rdparty/walkontable/src/overlay/top.mjs +9 -1
  9. package/3rdparty/walkontable/src/utils/column.js +8 -15
  10. package/3rdparty/walkontable/src/utils/column.mjs +8 -15
  11. package/3rdparty/walkontable/src/utils/row.js +12 -19
  12. package/3rdparty/walkontable/src/utils/row.mjs +12 -19
  13. package/base.js +2 -2
  14. package/base.mjs +2 -2
  15. package/core.js +9 -16
  16. package/core.mjs +9 -16
  17. package/dist/handsontable.css +2 -2
  18. package/dist/handsontable.full.css +2 -2
  19. package/dist/handsontable.full.js +61 -73
  20. package/dist/handsontable.full.min.css +2 -2
  21. package/dist/handsontable.full.min.js +5 -5
  22. package/dist/handsontable.js +61 -73
  23. package/dist/handsontable.min.css +2 -2
  24. package/dist/handsontable.min.js +13 -13
  25. package/helpers/mixed.js +1 -1
  26. package/helpers/mixed.mjs +1 -1
  27. package/package.json +1 -1
  28. package/styles/handsontable.css +2 -2
  29. package/styles/handsontable.min.css +2 -2
  30. package/styles/ht-theme-horizon.css +2 -2
  31. package/styles/ht-theme-horizon.min.css +2 -2
  32. package/styles/ht-theme-main.css +2 -2
  33. package/styles/ht-theme-main.min.css +2 -2
@@ -85,14 +85,11 @@ class ViewportColumnsCalculator extends _viewportBase.ViewportBaseCalculator {
85
85
  * @returns {number}
86
86
  */
87
87
  getColumnWidth(column) {
88
- return 50;
89
- // const width = this.columnWidthFn(column);
90
-
91
- // if (isNaN(width)) {
92
- // return DEFAULT_WIDTH;
93
- // }
94
-
95
- // return width;
88
+ const width = this.columnWidthFn(column);
89
+ if (isNaN(width)) {
90
+ return DEFAULT_WIDTH;
91
+ }
92
+ return width;
96
93
  }
97
94
  }
98
95
  exports.ViewportColumnsCalculator = ViewportColumnsCalculator;
@@ -82,13 +82,10 @@ export class ViewportColumnsCalculator extends ViewportBaseCalculator {
82
82
  * @returns {number}
83
83
  */
84
84
  getColumnWidth(column) {
85
- return 50;
86
- // const width = this.columnWidthFn(column);
87
-
88
- // if (isNaN(width)) {
89
- // return DEFAULT_WIDTH;
90
- // }
91
-
92
- // return width;
85
+ const width = this.columnWidthFn(column);
86
+ if (isNaN(width)) {
87
+ return DEFAULT_WIDTH;
88
+ }
89
+ return width;
93
90
  }
94
91
  }
@@ -87,14 +87,11 @@ class ViewportRowsCalculator extends _viewportBase.ViewportBaseCalculator {
87
87
  * @returns {number}
88
88
  */
89
89
  getRowHeight(row) {
90
- return 23;
91
- // const rowHeight = this.rowHeightFn(row);
92
-
93
- // if (isNaN(rowHeight)) {
94
- // return this.defaultHeight;
95
- // }
96
-
97
- // return rowHeight;
90
+ const rowHeight = this.rowHeightFn(row);
91
+ if (isNaN(rowHeight)) {
92
+ return this.defaultHeight;
93
+ }
94
+ return rowHeight;
98
95
  }
99
96
  }
100
97
  exports.ViewportRowsCalculator = ViewportRowsCalculator;
@@ -84,13 +84,10 @@ export class ViewportRowsCalculator extends ViewportBaseCalculator {
84
84
  * @returns {number}
85
85
  */
86
86
  getRowHeight(row) {
87
- return 23;
88
- // const rowHeight = this.rowHeightFn(row);
89
-
90
- // if (isNaN(rowHeight)) {
91
- // return this.defaultHeight;
92
- // }
93
-
94
- // return rowHeight;
87
+ const rowHeight = this.rowHeightFn(row);
88
+ if (isNaN(rowHeight)) {
89
+ return this.defaultHeight;
90
+ }
91
+ return rowHeight;
95
92
  }
96
93
  }
@@ -115,7 +115,14 @@ class InlineStartOverlay extends _base.Overlay {
115
115
  * @returns {number} Width sum.
116
116
  */
117
117
  sumCellSizes(from, to) {
118
- return (to - from) * 50;
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;
119
126
  }
120
127
 
121
128
  /**
@@ -111,7 +111,14 @@ export class InlineStartOverlay extends Overlay {
111
111
  * @returns {number} Width sum.
112
112
  */
113
113
  sumCellSizes(from, to) {
114
- return (to - from) * 50;
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;
115
122
  }
116
123
 
117
124
  /**
@@ -138,7 +138,15 @@ class TopOverlay extends _base.Overlay {
138
138
  * @returns {number} Height sum.
139
139
  */
140
140
  sumCellSizes(from, to) {
141
- return (to - from) * 23;
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;
142
150
  }
143
151
 
144
152
  /**
@@ -134,7 +134,15 @@ export class TopOverlay extends Overlay {
134
134
  * @returns {number} Height sum.
135
135
  */
136
136
  sumCellSizes(from, to) {
137
- return (to - from) * 23;
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;
138
146
  }
139
147
 
140
148
  /**
@@ -39,11 +39,8 @@ class ColumnUtils {
39
39
  * @returns {number}
40
40
  */
41
41
  getWidth(sourceIndex) {
42
- return 50;
43
- // const width = this.wtSettings.getSetting('columnWidth', sourceIndex)
44
- // || this.wtSettings.getSetting('defaultColumnWidth');
45
-
46
- // return width;
42
+ const width = this.wtSettings.getSetting('columnWidth', sourceIndex) || this.wtSettings.getSetting('defaultColumnWidth');
43
+ return width;
47
44
  }
48
45
 
49
46
  /**
@@ -53,16 +50,12 @@ class ColumnUtils {
53
50
  * @returns {number}
54
51
  */
55
52
  getHeaderHeight(level) {
56
- return 23;
57
- // let height = this.dataAccessObject.stylesHandler.getDefaultRowHeight();
58
-
59
- // const oversizedHeight = this.dataAccessObject.wtViewport.oversizedColumnHeaders[level];
60
-
61
- // if (oversizedHeight !== undefined) {
62
- // height = height ? Math.max(height, oversizedHeight) : oversizedHeight;
63
- // }
64
-
65
- // return height;
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;
66
59
  }
67
60
 
68
61
  /**
@@ -36,11 +36,8 @@ export default class ColumnUtils {
36
36
  * @returns {number}
37
37
  */
38
38
  getWidth(sourceIndex) {
39
- return 50;
40
- // const width = this.wtSettings.getSetting('columnWidth', sourceIndex)
41
- // || this.wtSettings.getSetting('defaultColumnWidth');
42
-
43
- // return width;
39
+ const width = this.wtSettings.getSetting('columnWidth', sourceIndex) || this.wtSettings.getSetting('defaultColumnWidth');
40
+ return width;
44
41
  }
45
42
 
46
43
  /**
@@ -50,16 +47,12 @@ export default class ColumnUtils {
50
47
  * @returns {number}
51
48
  */
52
49
  getHeaderHeight(level) {
53
- return 23;
54
- // let height = this.dataAccessObject.stylesHandler.getDefaultRowHeight();
55
-
56
- // const oversizedHeight = this.dataAccessObject.wtViewport.oversizedColumnHeaders[level];
57
-
58
- // if (oversizedHeight !== undefined) {
59
- // height = height ? Math.max(height, oversizedHeight) : oversizedHeight;
60
- // }
61
-
62
- // return height;
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;
63
56
  }
64
57
 
65
58
  /**
@@ -35,16 +35,12 @@ class RowUtils {
35
35
  * @returns {number}
36
36
  */
37
37
  getHeight(sourceIndex) {
38
- return 23;
39
-
40
- // let height = this.wtSettings.getSetting('rowHeight', sourceIndex);
41
- // const oversizedHeight = this.dataAccessObject.wtViewport.oversizedRows[sourceIndex];
42
-
43
- // if (oversizedHeight !== undefined) {
44
- // height = height === undefined ? oversizedHeight : Math.max(height, oversizedHeight);
45
- // }
46
-
47
- // return height;
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;
48
44
  }
49
45
 
50
46
  /**
@@ -55,15 +51,12 @@ class RowUtils {
55
51
  * @returns {number}
56
52
  */
57
53
  getHeightByOverlayName(sourceIndex, overlayName) {
58
- return 23;
59
- // let height = this.wtSettings.getSetting('rowHeightByOverlayName', sourceIndex, overlayName);
60
- // const oversizedHeight = this.dataAccessObject.wtViewport.oversizedRows[sourceIndex];
61
-
62
- // if (oversizedHeight !== undefined) {
63
- // height = height === undefined ? oversizedHeight : Math.max(height, oversizedHeight);
64
- // }
65
-
66
- // return height;
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;
67
60
  }
68
61
  }
69
62
  exports.default = RowUtils;
@@ -32,16 +32,12 @@ export default class RowUtils {
32
32
  * @returns {number}
33
33
  */
34
34
  getHeight(sourceIndex) {
35
- return 23;
36
-
37
- // let height = this.wtSettings.getSetting('rowHeight', sourceIndex);
38
- // const oversizedHeight = this.dataAccessObject.wtViewport.oversizedRows[sourceIndex];
39
-
40
- // if (oversizedHeight !== undefined) {
41
- // height = height === undefined ? oversizedHeight : Math.max(height, oversizedHeight);
42
- // }
43
-
44
- // return height;
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;
45
41
  }
46
42
 
47
43
  /**
@@ -52,14 +48,11 @@ export default class RowUtils {
52
48
  * @returns {number}
53
49
  */
54
50
  getHeightByOverlayName(sourceIndex, overlayName) {
55
- return 23;
56
- // let height = this.wtSettings.getSetting('rowHeightByOverlayName', sourceIndex, overlayName);
57
- // const oversizedHeight = this.dataAccessObject.wtViewport.oversizedRows[sourceIndex];
58
-
59
- // if (oversizedHeight !== undefined) {
60
- // height = height === undefined ? oversizedHeight : Math.max(height, oversizedHeight);
61
- // }
62
-
63
- // return height;
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;
64
57
  }
65
58
  }
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 = "03/02/2025 11:19:39";
49
- Handsontable.version = "0.0.0-next-8e6e16f-20250203";
48
+ Handsontable.buildDate = "03/02/2025 12:56:37";
49
+ Handsontable.version = "0.0.0-next-fc06746-20250203";
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 = "03/02/2025 11:19:44";
39
- Handsontable.version = "0.0.0-next-8e6e16f-20250203";
38
+ Handsontable.buildDate = "03/02/2025 12:56:42";
39
+ Handsontable.version = "0.0.0-next-fc06746-20250203";
40
40
  Handsontable.languages = {
41
41
  dictionaryKeys,
42
42
  getLanguageDictionary,
package/core.js CHANGED
@@ -3535,16 +3535,12 @@ function Core(rootElement, userSettings) {
3535
3535
  * @fires Hooks#modifyColWidth
3536
3536
  */
3537
3537
  this.getColWidth = function (column, source) {
3538
- return 50;
3539
- // let width = instance._getColWidthFromSettings(column);
3540
- //
3541
- // width = instance.runHooks('modifyColWidth', width, column, source);
3542
- //
3543
- // if (width === undefined) {
3544
- // width = DEFAULT_COLUMN_WIDTH;
3545
- // }
3546
- //
3547
- // return width;
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;
3548
3544
  };
3549
3545
 
3550
3546
  /**
@@ -3605,12 +3601,9 @@ function Core(rootElement, userSettings) {
3605
3601
  * @fires Hooks#modifyRowHeight
3606
3602
  */
3607
3603
  this.getRowHeight = function (row, source) {
3608
- return 23;
3609
- // let height = instance._getRowHeightFromSettings(row);
3610
- //
3611
- // height = instance.runHooks('modifyRowHeight', height, row, source);
3612
- //
3613
- // return height;
3604
+ let height = instance._getRowHeightFromSettings(row);
3605
+ height = instance.runHooks('modifyRowHeight', height, row, source);
3606
+ return height;
3614
3607
  };
3615
3608
 
3616
3609
  /**
package/core.mjs CHANGED
@@ -3530,16 +3530,12 @@ export default function Core(rootElement, userSettings) {
3530
3530
  * @fires Hooks#modifyColWidth
3531
3531
  */
3532
3532
  this.getColWidth = function (column, source) {
3533
- return 50;
3534
- // let width = instance._getColWidthFromSettings(column);
3535
- //
3536
- // width = instance.runHooks('modifyColWidth', width, column, source);
3537
- //
3538
- // if (width === undefined) {
3539
- // width = DEFAULT_COLUMN_WIDTH;
3540
- // }
3541
- //
3542
- // return width;
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;
3543
3539
  };
3544
3540
 
3545
3541
  /**
@@ -3600,12 +3596,9 @@ export default function Core(rootElement, userSettings) {
3600
3596
  * @fires Hooks#modifyRowHeight
3601
3597
  */
3602
3598
  this.getRowHeight = function (row, source) {
3603
- return 23;
3604
- // let height = instance._getRowHeightFromSettings(row);
3605
- //
3606
- // height = instance.runHooks('modifyRowHeight', height, row, source);
3607
- //
3608
- // return height;
3599
+ let height = instance._getRowHeightFromSettings(row);
3600
+ height = instance.runHooks('modifyRowHeight', height, row, source);
3601
+ return height;
3609
3602
  };
3610
3603
 
3611
3604
  /**
@@ -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-8e6e16f-20250203
29
- * Release date: 16/12/2024 (built at 03/02/2025 11:20:06)
28
+ * Version: 0.0.0-next-fc06746-20250203
29
+ * Release date: 16/12/2024 (built at 03/02/2025 12:57:04)
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-8e6e16f-20250203
29
- * Release date: 16/12/2024 (built at 03/02/2025 11:20:06)
28
+ * Version: 0.0.0-next-fc06746-20250203
29
+ * Release date: 16/12/2024 (built at 03/02/2025 12:57:04)
30
30
  */
31
31
  /**
32
32
  * Fix for bootstrap styles