handsontable 0.0.0-next-87b048b-20250409 → 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.
- package/3rdparty/walkontable/src/cell/range.js +0 -14
- package/3rdparty/walkontable/src/cell/range.mjs +0 -14
- package/3rdparty/walkontable/src/renderer/rowHeaders.js +1 -4
- package/3rdparty/walkontable/src/renderer/rowHeaders.mjs +1 -4
- package/3rdparty/walkontable/src/selection/border/border.js +0 -5
- package/3rdparty/walkontable/src/selection/border/border.mjs +0 -5
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +4 -3
- package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +4 -3
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +10 -8
- package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +10 -8
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +4 -3
- package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +4 -3
- package/3rdparty/walkontable/src/table.js +2 -5
- package/3rdparty/walkontable/src/table.mjs +2 -5
- package/CHANGELOG.md +0 -39
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core/focusCatcher/focusDetector.js +1 -1
- package/core/focusCatcher/focusDetector.mjs +2 -2
- package/core/hooks/constants.js +0 -8
- package/core/hooks/constants.mjs +0 -8
- package/core/hooks/index.d.ts +0 -1
- package/core.d.ts +1 -0
- package/core.js +25 -32
- package/core.mjs +26 -33
- package/dataMap/dataMap.js +7 -0
- package/dataMap/dataMap.mjs +7 -0
- package/dataMap/metaManager/metaSchema.js +0 -1
- package/dataMap/metaManager/metaSchema.mjs +0 -1
- package/dist/handsontable.css +3 -3
- package/dist/handsontable.full.css +3 -3
- package/dist/handsontable.full.js +350 -437
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +17 -17
- package/dist/handsontable.js +350 -437
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +18 -18
- package/editorManager.js +7 -1
- package/editorManager.mjs +7 -1
- package/editors/autocompleteEditor/autocompleteEditor.js +4 -14
- package/editors/autocompleteEditor/autocompleteEditor.mjs +4 -14
- package/editors/textEditor/textEditor.js +1 -1
- package/editors/textEditor/textEditor.mjs +2 -2
- package/helpers/browser.js +1 -1
- package/helpers/browser.mjs +1 -1
- package/helpers/dom/element.js +2 -2
- package/helpers/dom/element.mjs +1 -1
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/helpers/object.js +0 -3
- package/helpers/object.mjs +0 -3
- package/package.json +1 -1
- package/plugins/autoColumnSize/autoColumnSize.js +1 -1
- package/plugins/autoColumnSize/autoColumnSize.mjs +1 -1
- package/plugins/autoRowSize/autoRowSize.js +6 -1
- package/plugins/autoRowSize/autoRowSize.mjs +6 -1
- package/plugins/columnSorting/columnSorting.js +4 -0
- package/plugins/columnSorting/columnSorting.mjs +4 -0
- package/plugins/comments/comments.js +0 -1
- package/plugins/comments/comments.mjs +0 -1
- package/plugins/contextMenu/menu/defaultShortcutsList.js +2 -2
- package/plugins/contextMenu/menu/defaultShortcutsList.mjs +2 -2
- package/plugins/contextMenu/menu/menu.js +0 -1
- package/plugins/contextMenu/menu/menu.mjs +0 -1
- package/plugins/contextMenu/menu/positioner.js +2 -10
- package/plugins/contextMenu/menu/positioner.mjs +2 -10
- package/plugins/copyPaste/copyPaste.js +15 -12
- package/plugins/copyPaste/copyPaste.mjs +16 -13
- package/plugins/copyPaste/pasteEvent.js +0 -3
- package/plugins/copyPaste/pasteEvent.mjs +0 -3
- package/plugins/filters/filters.js +24 -25
- package/plugins/filters/filters.mjs +24 -25
- package/plugins/filters/ui/multipleSelect.js +1 -7
- package/plugins/filters/ui/multipleSelect.mjs +1 -7
- package/plugins/hiddenColumns/hiddenColumns.js +1 -1
- package/plugins/hiddenColumns/hiddenColumns.mjs +1 -1
- package/plugins/hiddenRows/hiddenRows.js +1 -1
- package/plugins/hiddenRows/hiddenRows.mjs +1 -1
- package/plugins/manualColumnResize/manualColumnResize.js +6 -4
- package/plugins/manualColumnResize/manualColumnResize.mjs +6 -4
- package/plugins/manualRowResize/manualRowResize.js +6 -4
- package/plugins/manualRowResize/manualRowResize.mjs +6 -4
- package/plugins/mergeCells/mergeCells.js +29 -8
- package/plugins/mergeCells/mergeCells.mjs +29 -8
- package/plugins/mergeCells/renderer.js +0 -15
- package/plugins/mergeCells/renderer.mjs +0 -15
- package/plugins/nestedRows/data/dataManager.js +2 -2
- package/plugins/nestedRows/data/dataManager.mjs +2 -2
- package/plugins/undoRedo/actions/removeColumn.js +14 -19
- package/plugins/undoRedo/actions/removeColumn.mjs +14 -19
- package/plugins/undoRedo/actions/removeRow.js +4 -12
- package/plugins/undoRedo/actions/removeRow.mjs +4 -12
- package/selection/selection.js +1 -3
- package/selection/selection.mjs +1 -3
- package/styles/handsontable.css +15 -14
- package/styles/handsontable.min.css +3 -3
- package/styles/ht-theme-horizon.css +2 -2
- package/styles/ht-theme-horizon.min.css +2 -2
- package/styles/ht-theme-main.css +2 -2
- package/styles/ht-theme-main.min.css +2 -2
- package/tableView.js +8 -5
- package/tableView.mjs +8 -5
- package/utils/ghostTable.js +0 -3
- package/utils/ghostTable.mjs +0 -3
- package/plugins/mergeCells/utils.js +0 -31
- 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
|
-
|
|
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(!
|
|
166
|
+
this._wt.draw(!this.hot.forceFullRender);
|
|
168
167
|
_assertClassBrand(_TableView_brand, this, _updateScrollbarClassNames).call(this);
|
|
169
|
-
this.hot.runHooks('afterRender',
|
|
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.
|
|
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
|
}
|
package/utils/ghostTable.js
CHANGED
|
@@ -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
|
}
|
package/utils/ghostTable.mjs
CHANGED
|
@@ -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
|
-
}
|