handsontable 0.0.0-next-30065c6-20250405 → 0.0.0-next-ff10728-20250410

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 (106) hide show
  1. package/3rdparty/walkontable/src/cell/range.js +0 -14
  2. package/3rdparty/walkontable/src/cell/range.mjs +0 -14
  3. package/3rdparty/walkontable/src/renderer/rowHeaders.js +1 -4
  4. package/3rdparty/walkontable/src/renderer/rowHeaders.mjs +1 -4
  5. package/3rdparty/walkontable/src/selection/border/border.js +0 -5
  6. package/3rdparty/walkontable/src/selection/border/border.mjs +0 -5
  7. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +4 -3
  8. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +4 -3
  9. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +10 -8
  10. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +10 -8
  11. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +4 -3
  12. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +4 -3
  13. package/3rdparty/walkontable/src/table.js +2 -5
  14. package/3rdparty/walkontable/src/table.mjs +2 -5
  15. package/CHANGELOG.md +0 -39
  16. package/base.js +2 -2
  17. package/base.mjs +2 -2
  18. package/core/focusCatcher/focusDetector.js +1 -1
  19. package/core/focusCatcher/focusDetector.mjs +2 -2
  20. package/core/hooks/constants.js +0 -8
  21. package/core/hooks/constants.mjs +0 -8
  22. package/core/hooks/index.d.ts +0 -1
  23. package/core.d.ts +1 -0
  24. package/core.js +25 -32
  25. package/core.mjs +26 -33
  26. package/dataMap/dataMap.js +7 -0
  27. package/dataMap/dataMap.mjs +7 -0
  28. package/dataMap/metaManager/metaSchema.js +0 -1
  29. package/dataMap/metaManager/metaSchema.mjs +0 -1
  30. package/dist/handsontable.css +3 -3
  31. package/dist/handsontable.full.css +3 -3
  32. package/dist/handsontable.full.js +350 -437
  33. package/dist/handsontable.full.min.css +3 -3
  34. package/dist/handsontable.full.min.js +17 -17
  35. package/dist/handsontable.js +350 -437
  36. package/dist/handsontable.min.css +3 -3
  37. package/dist/handsontable.min.js +18 -18
  38. package/editorManager.js +7 -1
  39. package/editorManager.mjs +7 -1
  40. package/editors/autocompleteEditor/autocompleteEditor.js +4 -14
  41. package/editors/autocompleteEditor/autocompleteEditor.mjs +4 -14
  42. package/editors/textEditor/textEditor.js +1 -1
  43. package/editors/textEditor/textEditor.mjs +2 -2
  44. package/helpers/browser.js +1 -1
  45. package/helpers/browser.mjs +1 -1
  46. package/helpers/dom/element.js +2 -2
  47. package/helpers/dom/element.mjs +1 -1
  48. package/helpers/mixed.js +2 -2
  49. package/helpers/mixed.mjs +2 -2
  50. package/helpers/object.js +0 -3
  51. package/helpers/object.mjs +0 -3
  52. package/package.json +1 -1
  53. package/plugins/autoColumnSize/autoColumnSize.js +1 -1
  54. package/plugins/autoColumnSize/autoColumnSize.mjs +1 -1
  55. package/plugins/autoRowSize/autoRowSize.js +6 -1
  56. package/plugins/autoRowSize/autoRowSize.mjs +6 -1
  57. package/plugins/columnSorting/columnSorting.js +4 -0
  58. package/plugins/columnSorting/columnSorting.mjs +4 -0
  59. package/plugins/comments/comments.js +0 -1
  60. package/plugins/comments/comments.mjs +0 -1
  61. package/plugins/contextMenu/menu/defaultShortcutsList.js +2 -2
  62. package/plugins/contextMenu/menu/defaultShortcutsList.mjs +2 -2
  63. package/plugins/contextMenu/menu/menu.js +0 -1
  64. package/plugins/contextMenu/menu/menu.mjs +0 -1
  65. package/plugins/contextMenu/menu/positioner.js +2 -10
  66. package/plugins/contextMenu/menu/positioner.mjs +2 -10
  67. package/plugins/copyPaste/copyPaste.js +15 -12
  68. package/plugins/copyPaste/copyPaste.mjs +16 -13
  69. package/plugins/copyPaste/pasteEvent.js +0 -3
  70. package/plugins/copyPaste/pasteEvent.mjs +0 -3
  71. package/plugins/filters/filters.js +24 -25
  72. package/plugins/filters/filters.mjs +24 -25
  73. package/plugins/filters/ui/multipleSelect.js +1 -7
  74. package/plugins/filters/ui/multipleSelect.mjs +1 -7
  75. package/plugins/hiddenColumns/hiddenColumns.js +1 -1
  76. package/plugins/hiddenColumns/hiddenColumns.mjs +1 -1
  77. package/plugins/hiddenRows/hiddenRows.js +1 -1
  78. package/plugins/hiddenRows/hiddenRows.mjs +1 -1
  79. package/plugins/manualColumnResize/manualColumnResize.js +6 -4
  80. package/plugins/manualColumnResize/manualColumnResize.mjs +6 -4
  81. package/plugins/manualRowResize/manualRowResize.js +6 -4
  82. package/plugins/manualRowResize/manualRowResize.mjs +6 -4
  83. package/plugins/mergeCells/mergeCells.js +29 -8
  84. package/plugins/mergeCells/mergeCells.mjs +29 -8
  85. package/plugins/mergeCells/renderer.js +0 -15
  86. package/plugins/mergeCells/renderer.mjs +0 -15
  87. package/plugins/nestedRows/data/dataManager.js +2 -2
  88. package/plugins/nestedRows/data/dataManager.mjs +2 -2
  89. package/plugins/undoRedo/actions/removeColumn.js +14 -19
  90. package/plugins/undoRedo/actions/removeColumn.mjs +14 -19
  91. package/plugins/undoRedo/actions/removeRow.js +4 -12
  92. package/plugins/undoRedo/actions/removeRow.mjs +4 -12
  93. package/selection/selection.js +1 -3
  94. package/selection/selection.mjs +1 -3
  95. package/styles/handsontable.css +15 -14
  96. package/styles/handsontable.min.css +3 -3
  97. package/styles/ht-theme-horizon.css +2 -2
  98. package/styles/ht-theme-horizon.min.css +2 -2
  99. package/styles/ht-theme-main.css +2 -2
  100. package/styles/ht-theme-main.min.css +2 -2
  101. package/tableView.js +8 -5
  102. package/tableView.mjs +8 -5
  103. package/utils/ghostTable.js +0 -3
  104. package/utils/ghostTable.mjs +0 -3
  105. package/plugins/mergeCells/utils.js +0 -31
  106. package/plugins/mergeCells/utils.mjs +0 -27
package/tableView.mjs CHANGED
@@ -158,16 +158,16 @@ class TableView {
158
158
  */
159
159
  render() {
160
160
  if (!this.hot.isRenderSuspended()) {
161
- const isFullRender = this.hot.forceFullRender;
162
- this.hot.runHooks('beforeRender', isFullRender);
161
+ this.hot.runHooks('beforeRender', this.hot.forceFullRender);
163
162
  if (this.postponedAdjustElementsSize) {
164
163
  this.postponedAdjustElementsSize = false;
165
164
  this.adjustElementsSize();
166
165
  }
167
- this._wt.draw(!isFullRender);
166
+ this._wt.draw(!this.hot.forceFullRender);
168
167
  _assertClassBrand(_TableView_brand, this, _updateScrollbarClassNames).call(this);
169
- this.hot.runHooks('afterRender', isFullRender);
168
+ this.hot.runHooks('afterRender', this.hot.forceFullRender);
170
169
  this.hot.forceFullRender = false;
170
+ this.hot.renderCall = false;
171
171
  }
172
172
  }
173
173
 
@@ -1074,7 +1074,8 @@ class TableView {
1074
1074
  this.eventManager.addEventListener(this.hot.rootDocument.documentElement, 'click', () => {
1075
1075
  if (this.settings.observeDOMVisibility) {
1076
1076
  if (this._wt.drawInterrupted) {
1077
- this.hot.render();
1077
+ this.hot.forceFullRender = true;
1078
+ this.render();
1078
1079
  }
1079
1080
  }
1080
1081
  });
@@ -1147,6 +1148,7 @@ class TableView {
1147
1148
  */
1148
1149
  beforeRender(force, skipRender) {
1149
1150
  if (force) {
1151
+ // this.hot.forceFullRender = did Handsontable request full render?
1150
1152
  this.hot.runHooks('beforeViewRender', this.hot.forceFullRender, skipRender);
1151
1153
  }
1152
1154
  }
@@ -1160,6 +1162,7 @@ class TableView {
1160
1162
  */
1161
1163
  afterRender(force) {
1162
1164
  if (force) {
1165
+ // this.hot.forceFullRender = did Handsontable request full render?
1163
1166
  this.hot.runHooks('afterViewRender', this.hot.forceFullRender);
1164
1167
  }
1165
1168
  }
@@ -85,9 +85,6 @@ class GhostTable {
85
85
  this.table = this.createTable(this.hot.table.className);
86
86
  this.table.colGroup.appendChild(this.createColGroupsCol(row));
87
87
  this.table.tr.appendChild(this.createRow(row));
88
- if (row === 0) {
89
- (0, _element.addClass)(this.table.table, 'htGhostTableFirstRow');
90
- }
91
88
  this.container.container.appendChild(this.table.fragment);
92
89
  rowObject.table = this.table.table;
93
90
  }
@@ -82,9 +82,6 @@ class GhostTable {
82
82
  this.table = this.createTable(this.hot.table.className);
83
83
  this.table.colGroup.appendChild(this.createColGroupsCol(row));
84
84
  this.table.tr.appendChild(this.createRow(row));
85
- if (row === 0) {
86
- addClass(this.table.table, 'htGhostTableFirstRow');
87
- }
88
85
  this.container.container.appendChild(this.table.fragment);
89
86
  rowObject.table = this.table.table;
90
87
  }
@@ -1,31 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.sumCellsHeights = sumCellsHeights;
5
- /**
6
- * Calculates the total height of the merged cell.
7
- *
8
- * @param {Core} hotInstance The Handsontable instance.
9
- * @param {*} row The merged cell's row index.
10
- * @param {*} rowspan The merged cell height.
11
- * @returns {number}
12
- */
13
- function sumCellsHeights(hotInstance, row, rowspan) {
14
- const {
15
- view,
16
- rowIndexMapper
17
- } = hotInstance;
18
- const stylesHandler = view.getStylesHandler();
19
- const defaultHeight = view.getDefaultRowHeight();
20
- let height = 0;
21
- for (let i = row; i < row + rowspan; i++) {
22
- if (!rowIndexMapper.isHidden(i)) {
23
- var _hotInstance$getRowHe;
24
- height += (_hotInstance$getRowHe = hotInstance.getRowHeight(i)) !== null && _hotInstance$getRowHe !== void 0 ? _hotInstance$getRowHe : defaultHeight;
25
- if (i === 0 && !stylesHandler.isClassicTheme()) {
26
- height += 1; // border-top-width
27
- }
28
- }
29
- }
30
- return height;
31
- }
@@ -1,27 +0,0 @@
1
- /**
2
- * Calculates the total height of the merged cell.
3
- *
4
- * @param {Core} hotInstance The Handsontable instance.
5
- * @param {*} row The merged cell's row index.
6
- * @param {*} rowspan The merged cell height.
7
- * @returns {number}
8
- */
9
- export function sumCellsHeights(hotInstance, row, rowspan) {
10
- const {
11
- view,
12
- rowIndexMapper
13
- } = hotInstance;
14
- const stylesHandler = view.getStylesHandler();
15
- const defaultHeight = view.getDefaultRowHeight();
16
- let height = 0;
17
- for (let i = row; i < row + rowspan; i++) {
18
- if (!rowIndexMapper.isHidden(i)) {
19
- var _hotInstance$getRowHe;
20
- height += (_hotInstance$getRowHe = hotInstance.getRowHeight(i)) !== null && _hotInstance$getRowHe !== void 0 ? _hotInstance$getRowHe : defaultHeight;
21
- if (i === 0 && !stylesHandler.isClassicTheme()) {
22
- height += 1; // border-top-width
23
- }
24
- }
25
- }
26
- return height;
27
- }