handsontable 0.0.0-next-8da910d-20250131 → 0.0.0-next-8e6e16f-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 (37) hide show
  1. package/3rdparty/walkontable/src/calculator/viewportColumns.js +8 -5
  2. package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +8 -5
  3. package/3rdparty/walkontable/src/calculator/viewportRows.js +8 -5
  4. package/3rdparty/walkontable/src/calculator/viewportRows.mjs +8 -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 +1 -1
  10. package/3rdparty/walkontable/src/renderer/cells.mjs +1 -1
  11. package/3rdparty/walkontable/src/renderer/rowHeaders.js +1 -1
  12. package/3rdparty/walkontable/src/renderer/rowHeaders.mjs +1 -1
  13. package/3rdparty/walkontable/src/utils/column.js +15 -8
  14. package/3rdparty/walkontable/src/utils/column.mjs +15 -8
  15. package/3rdparty/walkontable/src/utils/row.js +19 -12
  16. package/3rdparty/walkontable/src/utils/row.mjs +19 -12
  17. package/base.js +2 -2
  18. package/base.mjs +2 -2
  19. package/core.js +16 -9
  20. package/core.mjs +16 -9
  21. package/dist/handsontable.css +2 -2
  22. package/dist/handsontable.full.css +2 -2
  23. package/dist/handsontable.full.js +75 -63
  24. package/dist/handsontable.full.min.css +2 -2
  25. package/dist/handsontable.full.min.js +6 -6
  26. package/dist/handsontable.js +75 -63
  27. package/dist/handsontable.min.css +2 -2
  28. package/dist/handsontable.min.js +14 -14
  29. package/helpers/mixed.js +1 -1
  30. package/helpers/mixed.mjs +1 -1
  31. package/package.json +1 -1
  32. package/styles/handsontable.css +2 -2
  33. package/styles/handsontable.min.css +2 -2
  34. package/styles/ht-theme-horizon.css +2 -2
  35. package/styles/ht-theme-horizon.min.css +2 -2
  36. package/styles/ht-theme-main.css +2 -2
  37. package/styles/ht-theme-main.min.css +2 -2
@@ -85,11 +85,14 @@ 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 50;
89
+ // const width = this.columnWidthFn(column);
90
+
91
+ // if (isNaN(width)) {
92
+ // return DEFAULT_WIDTH;
93
+ // }
94
+
95
+ // return width;
93
96
  }
94
97
  }
95
98
  exports.ViewportColumnsCalculator = ViewportColumnsCalculator;
@@ -82,10 +82,13 @@ 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 50;
86
+ // const width = this.columnWidthFn(column);
87
+
88
+ // if (isNaN(width)) {
89
+ // return DEFAULT_WIDTH;
90
+ // }
91
+
92
+ // return width;
90
93
  }
91
94
  }
@@ -87,11 +87,14 @@ 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 23;
91
+ // const rowHeight = this.rowHeightFn(row);
92
+
93
+ // if (isNaN(rowHeight)) {
94
+ // return this.defaultHeight;
95
+ // }
96
+
97
+ // return rowHeight;
95
98
  }
96
99
  }
97
100
  exports.ViewportRowsCalculator = ViewportRowsCalculator;
@@ -84,10 +84,13 @@ 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 23;
88
+ // const rowHeight = this.rowHeightFn(row);
89
+
90
+ // if (isNaN(rowHeight)) {
91
+ // return this.defaultHeight;
92
+ // }
93
+
94
+ // return rowHeight;
92
95
  }
93
96
  }
@@ -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) * 50;
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) * 50;
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) * 23;
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) * 23;
146
138
  }
147
139
 
148
140
  /**
@@ -72,7 +72,7 @@ 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(this.table.renderedColumnToSource(0)).start();
75
+ orderView.prependView(rowHeadersView).setSize(columnsToRender).setOffset(0).start();
76
76
  for (let visibleColumnIndex = 0; visibleColumnIndex < columnsToRender; visibleColumnIndex++) {
77
77
  orderView.render();
78
78
  const sourceColumnIndex = this.table.renderedColumnToSource(visibleColumnIndex);
@@ -69,7 +69,7 @@ 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(this.table.renderedColumnToSource(0)).start();
72
+ orderView.prependView(rowHeadersView).setSize(columnsToRender).setOffset(0).start();
73
73
  for (let visibleColumnIndex = 0; visibleColumnIndex < columnsToRender; visibleColumnIndex++) {
74
74
  orderView.render();
75
75
  const sourceColumnIndex = this.table.renderedColumnToSource(visibleColumnIndex);
@@ -73,7 +73,7 @@ class RowHeadersRenderer extends _base.BaseRenderer {
73
73
  this.sourceRowIndex = sourceRowIndex;
74
74
  const orderView = this.obtainOrderView(TR);
75
75
  const cellsView = cells.obtainOrderView(TR);
76
- orderView.appendView(cellsView).setSize(rowHeadersCount).setOffset(this.table.renderedColumnToSource(0)).start();
76
+ orderView.appendView(cellsView).setSize(rowHeadersCount).setOffset(0).start();
77
77
  for (let visibleColumnIndex = 0; visibleColumnIndex < rowHeadersCount; visibleColumnIndex++) {
78
78
  orderView.render();
79
79
  const TH = orderView.getCurrentNode();
@@ -70,7 +70,7 @@ export class RowHeadersRenderer extends BaseRenderer {
70
70
  this.sourceRowIndex = sourceRowIndex;
71
71
  const orderView = this.obtainOrderView(TR);
72
72
  const cellsView = cells.obtainOrderView(TR);
73
- orderView.appendView(cellsView).setSize(rowHeadersCount).setOffset(this.table.renderedColumnToSource(0)).start();
73
+ orderView.appendView(cellsView).setSize(rowHeadersCount).setOffset(0).start();
74
74
  for (let visibleColumnIndex = 0; visibleColumnIndex < rowHeadersCount; visibleColumnIndex++) {
75
75
  orderView.render();
76
76
  const TH = orderView.getCurrentNode();
@@ -39,8 +39,11 @@ 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 50;
43
+ // const width = this.wtSettings.getSetting('columnWidth', sourceIndex)
44
+ // || this.wtSettings.getSetting('defaultColumnWidth');
45
+
46
+ // return width;
44
47
  }
45
48
 
46
49
  /**
@@ -50,12 +53,16 @@ class ColumnUtils {
50
53
  * @returns {number}
51
54
  */
52
55
  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;
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;
59
66
  }
60
67
 
61
68
  /**
@@ -36,8 +36,11 @@ 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 50;
40
+ // const width = this.wtSettings.getSetting('columnWidth', sourceIndex)
41
+ // || this.wtSettings.getSetting('defaultColumnWidth');
42
+
43
+ // return width;
41
44
  }
42
45
 
43
46
  /**
@@ -47,12 +50,16 @@ export default class ColumnUtils {
47
50
  * @returns {number}
48
51
  */
49
52
  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;
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;
56
63
  }
57
64
 
58
65
  /**
@@ -35,12 +35,16 @@ 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 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;
44
48
  }
45
49
 
46
50
  /**
@@ -51,12 +55,15 @@ class RowUtils {
51
55
  * @returns {number}
52
56
  */
53
57
  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;
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;
60
67
  }
61
68
  }
62
69
  exports.default = RowUtils;
@@ -32,12 +32,16 @@ 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 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;
41
45
  }
42
46
 
43
47
  /**
@@ -48,11 +52,14 @@ export default class RowUtils {
48
52
  * @returns {number}
49
53
  */
50
54
  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;
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;
57
64
  }
58
65
  }
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 = "31/01/2025 10:00:49";
49
- Handsontable.version = "0.0.0-next-8da910d-20250131";
48
+ Handsontable.buildDate = "03/02/2025 11:19:39";
49
+ Handsontable.version = "0.0.0-next-8e6e16f-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 = "31/01/2025 10:00:54";
39
- Handsontable.version = "0.0.0-next-8da910d-20250131";
38
+ Handsontable.buildDate = "03/02/2025 11:19:44";
39
+ Handsontable.version = "0.0.0-next-8e6e16f-20250203";
40
40
  Handsontable.languages = {
41
41
  dictionaryKeys,
42
42
  getLanguageDictionary,
package/core.js CHANGED
@@ -3535,12 +3535,16 @@ function Core(rootElement, userSettings) {
3535
3535
  * @fires Hooks#modifyColWidth
3536
3536
  */
3537
3537
  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;
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;
3544
3548
  };
3545
3549
 
3546
3550
  /**
@@ -3601,9 +3605,12 @@ function Core(rootElement, userSettings) {
3601
3605
  * @fires Hooks#modifyRowHeight
3602
3606
  */
3603
3607
  this.getRowHeight = function (row, source) {
3604
- let height = instance._getRowHeightFromSettings(row);
3605
- height = instance.runHooks('modifyRowHeight', height, row, source);
3606
- return height;
3608
+ return 23;
3609
+ // let height = instance._getRowHeightFromSettings(row);
3610
+ //
3611
+ // height = instance.runHooks('modifyRowHeight', height, row, source);
3612
+ //
3613
+ // return height;
3607
3614
  };
3608
3615
 
3609
3616
  /**
package/core.mjs CHANGED
@@ -3530,12 +3530,16 @@ export default function Core(rootElement, userSettings) {
3530
3530
  * @fires Hooks#modifyColWidth
3531
3531
  */
3532
3532
  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;
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;
3539
3543
  };
3540
3544
 
3541
3545
  /**
@@ -3596,9 +3600,12 @@ export default function Core(rootElement, userSettings) {
3596
3600
  * @fires Hooks#modifyRowHeight
3597
3601
  */
3598
3602
  this.getRowHeight = function (row, source) {
3599
- let height = instance._getRowHeightFromSettings(row);
3600
- height = instance.runHooks('modifyRowHeight', height, row, source);
3601
- return height;
3603
+ return 23;
3604
+ // let height = instance._getRowHeightFromSettings(row);
3605
+ //
3606
+ // height = instance.runHooks('modifyRowHeight', height, row, source);
3607
+ //
3608
+ // return height;
3602
3609
  };
3603
3610
 
3604
3611
  /**
@@ -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-8da910d-20250131
29
- * Release date: 16/12/2024 (built at 31/01/2025 10:01:16)
28
+ * Version: 0.0.0-next-8e6e16f-20250203
29
+ * Release date: 16/12/2024 (built at 03/02/2025 11:20:06)
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-8da910d-20250131
29
- * Release date: 16/12/2024 (built at 31/01/2025 10:01:16)
28
+ * Version: 0.0.0-next-8e6e16f-20250203
29
+ * Release date: 16/12/2024 (built at 03/02/2025 11:20:06)
30
30
  */
31
31
  /**
32
32
  * Fix for bootstrap styles