handsontable 0.0.0-next-5a535ed-20240403 → 0.0.0-next-c2810a1-20240403
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/calculator/viewportColumns.js +12 -17
- package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +12 -17
- package/3rdparty/walkontable/src/calculator/viewportRows.js +10 -15
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +10 -15
- package/3rdparty/walkontable/src/cell/coords.js +12 -17
- package/3rdparty/walkontable/src/cell/coords.mjs +12 -17
- package/3rdparty/walkontable/src/cell/range.d.ts +2 -1
- package/3rdparty/walkontable/src/cell/range.js +40 -28
- package/3rdparty/walkontable/src/cell/range.mjs +40 -28
- package/3rdparty/walkontable/src/core/_base.js +1 -1
- package/3rdparty/walkontable/src/core/_base.mjs +1 -1
- package/3rdparty/walkontable/src/event.js +72 -104
- package/3rdparty/walkontable/src/event.mjs +72 -104
- package/3rdparty/walkontable/src/overlay/inlineStart.js +15 -1
- package/3rdparty/walkontable/src/overlay/inlineStart.mjs +16 -2
- package/3rdparty/walkontable/src/overlay/top.js +11 -0
- package/3rdparty/walkontable/src/overlay/top.mjs +12 -1
- package/3rdparty/walkontable/src/overlays.js +46 -4
- package/3rdparty/walkontable/src/overlays.mjs +46 -4
- package/3rdparty/walkontable/src/scroll.js +15 -17
- package/3rdparty/walkontable/src/scroll.mjs +15 -17
- package/3rdparty/walkontable/src/selection/manager.js +48 -69
- package/3rdparty/walkontable/src/selection/manager.mjs +48 -69
- package/3rdparty/walkontable/src/selection/scanner.js +33 -42
- package/3rdparty/walkontable/src/selection/scanner.mjs +33 -42
- package/3rdparty/walkontable/src/utils/columnStretching.js +27 -44
- package/3rdparty/walkontable/src/utils/columnStretching.mjs +27 -44
- package/3rdparty/walkontable/src/utils/orderView/view.js +1 -1
- package/3rdparty/walkontable/src/utils/orderView/view.mjs +1 -1
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core/viewportScroll/index.js +4 -1
- package/core/viewportScroll/index.mjs +4 -1
- package/core/viewportScroll/scrollStrategies/focusScroll.js +15 -0
- package/core/viewportScroll/scrollStrategies/focusScroll.mjs +11 -0
- package/core.d.ts +4 -3
- package/core.js +77 -22
- package/core.mjs +77 -22
- package/dataMap/dataSource.js +1 -1
- package/dataMap/dataSource.mjs +1 -1
- package/dataMap/metaManager/metaLayers/cellMeta.js +1 -1
- package/dataMap/metaManager/metaLayers/cellMeta.mjs +1 -1
- package/dataMap/metaManager/metaSchema.js +1 -1
- package/dataMap/metaManager/metaSchema.mjs +1 -1
- package/dataMap/replaceData.js +1 -1
- package/dataMap/replaceData.mjs +1 -1
- package/dist/handsontable.css +4 -4
- package/dist/handsontable.full.css +4 -4
- package/dist/handsontable.full.js +9063 -9122
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +292 -292
- package/dist/handsontable.js +6968 -6574
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +25 -25
- package/dist/languages/all.min.js +1 -1
- package/dist/languages/ar-AR.min.js +1 -1
- package/dist/languages/cs-CZ.min.js +1 -1
- package/dist/languages/de-CH.min.js +1 -1
- package/dist/languages/de-DE.min.js +1 -1
- package/dist/languages/en-US.min.js +1 -1
- package/dist/languages/es-MX.min.js +1 -1
- package/dist/languages/fr-FR.min.js +1 -1
- package/dist/languages/hr-HR.min.js +1 -1
- package/dist/languages/it-IT.min.js +1 -1
- package/dist/languages/ja-JP.min.js +1 -1
- package/dist/languages/ko-KR.min.js +1 -1
- package/dist/languages/lv-LV.min.js +1 -1
- package/dist/languages/nb-NO.min.js +1 -1
- package/dist/languages/nl-NL.min.js +1 -1
- package/dist/languages/pl-PL.min.js +1 -1
- package/dist/languages/pt-BR.min.js +1 -1
- package/dist/languages/ru-RU.min.js +1 -1
- package/dist/languages/sr-SP.min.js +1 -1
- package/dist/languages/zh-CN.min.js +1 -1
- package/dist/languages/zh-TW.min.js +1 -1
- package/editorManager.js +25 -23
- package/editorManager.mjs +25 -23
- package/editors/autocompleteEditor/autocompleteEditor.js +6 -10
- package/editors/autocompleteEditor/autocompleteEditor.mjs +6 -10
- package/editors/selectEditor/selectEditor.js +20 -19
- package/editors/selectEditor/selectEditor.mjs +20 -19
- package/eventManager.js +1 -1
- package/eventManager.mjs +1 -1
- package/focusManager.js +64 -82
- package/focusManager.mjs +64 -82
- package/helpers/dom/element.js +23 -1
- package/helpers/dom/element.mjs +21 -1
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/helpers/object.js +2 -2
- package/helpers/object.mjs +2 -2
- package/i18n/languages/ar-AR.d.ts +5 -0
- package/i18n/languages/cs-CZ.d.ts +5 -0
- package/i18n/languages/hr-HR.d.ts +5 -0
- package/i18n/languages/sr-SP.d.ts +5 -0
- package/index.d.ts +10 -0
- package/package.json +7 -2
- package/pluginHooks.d.ts +4 -3
- package/pluginHooks.js +99 -38
- package/pluginHooks.mjs +99 -38
- package/plugins/autoColumnSize/autoColumnSize.js +49 -65
- package/plugins/autoColumnSize/autoColumnSize.mjs +49 -65
- package/plugins/autoRowSize/autoRowSize.js +28 -34
- package/plugins/autoRowSize/autoRowSize.mjs +28 -34
- package/plugins/autofill/autofill.js +30 -38
- package/plugins/autofill/autofill.mjs +30 -38
- package/plugins/base/base.js +12 -17
- package/plugins/base/base.mjs +12 -17
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +5 -5
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +5 -5
- package/plugins/collapsibleColumns/collapsibleColumns.js +59 -50
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +59 -50
- package/plugins/columnSorting/columnSorting.js +49 -45
- package/plugins/columnSorting/columnSorting.mjs +49 -45
- package/plugins/columnSummary/columnSummary.js +22 -26
- package/plugins/columnSummary/columnSummary.mjs +22 -26
- package/plugins/comments/comments.js +116 -158
- package/plugins/comments/comments.mjs +116 -158
- package/plugins/contextMenu/contextMenu.js +20 -26
- package/plugins/contextMenu/contextMenu.mjs +20 -26
- package/plugins/contextMenu/itemsFactory.js +1 -1
- package/plugins/contextMenu/itemsFactory.mjs +1 -1
- package/plugins/contextMenu/menu/defaultShortcutsList.js +26 -10
- package/plugins/contextMenu/menu/defaultShortcutsList.mjs +26 -10
- package/plugins/contextMenu/menu/menu.js +13 -21
- package/plugins/contextMenu/menu/menu.mjs +13 -21
- package/plugins/contextMenu/menu/positioner.js +41 -58
- package/plugins/contextMenu/menu/positioner.mjs +41 -58
- package/plugins/copyPaste/copyPaste.js +116 -157
- package/plugins/copyPaste/copyPaste.mjs +116 -157
- package/plugins/copyPaste/copyableRanges.js +43 -66
- package/plugins/copyPaste/copyableRanges.mjs +43 -66
- package/plugins/customBorders/customBorders.js +11 -13
- package/plugins/customBorders/customBorders.mjs +11 -13
- package/plugins/dragToScroll/dragToScroll.js +6 -6
- package/plugins/dragToScroll/dragToScroll.mjs +6 -6
- package/plugins/dropdownMenu/dropdownMenu.js +81 -107
- package/plugins/dropdownMenu/dropdownMenu.mjs +81 -107
- package/plugins/exportFile/dataProvider.js +1 -1
- package/plugins/exportFile/dataProvider.mjs +1 -1
- package/plugins/filters/component/actionBar.js +9 -9
- package/plugins/filters/component/actionBar.mjs +8 -8
- package/plugins/filters/component/condition.js +13 -15
- package/plugins/filters/component/condition.mjs +13 -15
- package/plugins/filters/component/operators.js +6 -6
- package/plugins/filters/component/operators.mjs +6 -6
- package/plugins/filters/component/value.js +24 -28
- package/plugins/filters/component/value.mjs +24 -28
- package/plugins/filters/conditionUpdateObserver.js +22 -24
- package/plugins/filters/conditionUpdateObserver.mjs +22 -24
- package/plugins/filters/dataFilter.js +1 -1
- package/plugins/filters/dataFilter.mjs +1 -1
- package/plugins/filters/filters.js +81 -95
- package/plugins/filters/filters.mjs +81 -95
- package/plugins/filters/ui/input.js +13 -19
- package/plugins/filters/ui/input.mjs +13 -19
- package/plugins/filters/ui/link.js +8 -13
- package/plugins/filters/ui/link.mjs +8 -13
- package/plugins/filters/ui/multipleSelect.js +85 -112
- package/plugins/filters/ui/multipleSelect.mjs +85 -112
- package/plugins/filters/ui/radioInput.js +12 -20
- package/plugins/filters/ui/radioInput.mjs +12 -20
- package/plugins/filters/ui/select.js +50 -72
- package/plugins/filters/ui/select.mjs +49 -71
- package/plugins/formulas/formulas.js +268 -326
- package/plugins/formulas/formulas.mjs +269 -327
- package/plugins/formulas/indexSyncer/axisSyncer.js +38 -61
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +38 -61
- package/plugins/formulas/indexSyncer/index.js +25 -48
- package/plugins/formulas/indexSyncer/index.mjs +25 -48
- package/plugins/hiddenColumns/hiddenColumns.js +64 -83
- package/plugins/hiddenColumns/hiddenColumns.mjs +64 -83
- package/plugins/hiddenRows/hiddenRows.js +63 -82
- package/plugins/hiddenRows/hiddenRows.mjs +63 -82
- package/plugins/manualColumnFreeze/manualColumnFreeze.js +24 -32
- package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +25 -33
- package/plugins/manualColumnMove/manualColumnMove.js +126 -170
- package/plugins/manualColumnMove/manualColumnMove.mjs +126 -170
- package/plugins/manualColumnResize/manualColumnResize.js +169 -230
- package/plugins/manualColumnResize/manualColumnResize.mjs +169 -230
- package/plugins/manualRowMove/manualRowMove.js +99 -128
- package/plugins/manualRowMove/manualRowMove.mjs +99 -128
- package/plugins/manualRowResize/manualRowResize.js +150 -209
- package/plugins/manualRowResize/manualRowResize.mjs +150 -209
- package/plugins/mergeCells/calculations/selection.js +2 -71
- package/plugins/mergeCells/calculations/selection.mjs +2 -71
- package/plugins/mergeCells/cellsCollection.js +117 -1
- package/plugins/mergeCells/cellsCollection.mjs +117 -1
- package/plugins/mergeCells/contextMenuItem/toggleMerge.js +11 -1
- package/plugins/mergeCells/contextMenuItem/toggleMerge.mjs +11 -1
- package/plugins/mergeCells/focusOrder.js +305 -0
- package/plugins/mergeCells/focusOrder.mjs +300 -0
- package/plugins/mergeCells/mergeCells.js +499 -397
- package/plugins/mergeCells/mergeCells.mjs +499 -397
- package/plugins/multiColumnSorting/multiColumnSorting.js +8 -2
- package/plugins/multiColumnSorting/multiColumnSorting.mjs +8 -2
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +1 -1
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +1 -1
- package/plugins/nestedHeaders/nestedHeaders.js +205 -253
- package/plugins/nestedHeaders/nestedHeaders.mjs +206 -254
- package/plugins/nestedHeaders/stateManager/headersTree.js +21 -32
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +21 -32
- package/plugins/nestedHeaders/stateManager/index.js +30 -41
- package/plugins/nestedHeaders/stateManager/index.mjs +30 -41
- package/plugins/nestedHeaders/stateManager/sourceSettings.js +19 -30
- package/plugins/nestedHeaders/stateManager/sourceSettings.mjs +19 -30
- package/plugins/nestedRows/data/dataManager.js +1 -1
- package/plugins/nestedRows/data/dataManager.mjs +1 -1
- package/plugins/nestedRows/nestedRows.js +151 -182
- package/plugins/nestedRows/nestedRows.mjs +152 -183
- package/plugins/nestedRows/ui/contextMenu.js +11 -15
- package/plugins/nestedRows/ui/contextMenu.mjs +10 -14
- package/plugins/nestedRows/utils/rowMoveController.js +1 -1
- package/plugins/nestedRows/utils/rowMoveController.mjs +1 -1
- package/plugins/persistentState/storage.js +2 -2
- package/plugins/persistentState/storage.mjs +2 -2
- package/plugins/search/search.js +7 -7
- package/plugins/search/search.mjs +7 -7
- package/plugins/touchScroll/touchScroll.js +15 -19
- package/plugins/touchScroll/touchScroll.mjs +16 -20
- package/plugins/trimRows/trimRows.js +6 -6
- package/plugins/trimRows/trimRows.mjs +6 -6
- package/renderers/checkboxRenderer/checkboxRenderer.js +8 -5
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +8 -5
- package/selection/highlight/highlight.js +14 -14
- package/selection/highlight/highlight.mjs +13 -13
- package/selection/highlight/visualSelection.js +2 -0
- package/selection/highlight/visualSelection.mjs +2 -0
- package/selection/selection.js +225 -67
- package/selection/selection.mjs +224 -66
- package/selection/transformation.js +149 -118
- package/selection/transformation.mjs +149 -118
- package/shortcutContexts/commands/editor/closeAndSave.js +2 -2
- package/shortcutContexts/commands/editor/closeAndSave.mjs +2 -2
- package/shortcutContexts/commands/editor/open.js +18 -3
- package/shortcutContexts/commands/editor/open.mjs +18 -3
- package/shortcutContexts/commands/extendCellsSelection/down.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/down.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/left.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/left.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/right.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/right.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toColumns.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +9 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +9 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +10 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +10 -3
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +3 -1
- package/shortcutContexts/commands/extendCellsSelection/toRows.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +1 -1
- package/shortcutContexts/commands/extendCellsSelection/up.js +1 -1
- package/shortcutContexts/commands/extendCellsSelection/up.mjs +1 -1
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +6 -1
- package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +6 -1
- package/shortcutContexts/commands/moveCellSelection/inlineStart.js +6 -1
- package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +6 -1
- package/shortcutContexts/grid.js +9 -3
- package/shortcutContexts/grid.mjs +9 -3
- package/shortcuts/context.js +2 -1
- package/shortcuts/context.mjs +2 -1
- package/tableView.js +52 -78
- package/tableView.mjs +52 -78
- package/translations/changesObservable/observable.js +21 -38
- package/translations/changesObservable/observable.mjs +21 -38
- package/translations/changesObservable/observer.js +7 -12
- package/translations/changesObservable/observer.mjs +6 -11
- package/translations/mapCollections/aggregatedCollection.js +1 -1
- package/translations/mapCollections/aggregatedCollection.mjs +1 -1
- package/translations/maps/indexMap.js +1 -1
- package/translations/maps/indexMap.mjs +1 -1
- package/utils/dataStructures/linkedList.js +6 -1
- package/utils/dataStructures/linkedList.mjs +6 -1
- package/utils/dataStructures/tree.js +1 -1
- package/utils/dataStructures/tree.mjs +1 -1
- package/utils/interval.js +26 -44
- package/utils/interval.mjs +26 -44
package/helpers/dom/element.js
CHANGED
@@ -13,6 +13,8 @@ exports.getCaretPosition = getCaretPosition;
|
|
13
13
|
exports.getComputedStyle = getComputedStyle;
|
14
14
|
exports.getCssTransform = getCssTransform;
|
15
15
|
exports.getFrameElement = getFrameElement;
|
16
|
+
exports.getMaximumScrollLeft = getMaximumScrollLeft;
|
17
|
+
exports.getMaximumScrollTop = getMaximumScrollTop;
|
16
18
|
exports.getParent = getParent;
|
17
19
|
exports.getParentWindow = getParentWindow;
|
18
20
|
exports.getScrollLeft = getScrollLeft;
|
@@ -56,8 +58,8 @@ exports.selectElementIfAllowed = selectElementIfAllowed;
|
|
56
58
|
exports.setAttribute = setAttribute;
|
57
59
|
exports.setCaretPosition = setCaretPosition;
|
58
60
|
exports.setOverlayPosition = setOverlayPosition;
|
59
|
-
require("core-js/modules/es.array.push.js");
|
60
61
|
require("core-js/modules/es.error.cause.js");
|
62
|
+
require("core-js/modules/es.array.push.js");
|
61
63
|
var _string = require("../string");
|
62
64
|
var _a11y = require("../a11y");
|
63
65
|
/**
|
@@ -664,6 +666,26 @@ function getScrollableElement(element) {
|
|
664
666
|
return rootWindow;
|
665
667
|
}
|
666
668
|
|
669
|
+
/**
|
670
|
+
* Get the maximum available `scrollTop` value for the provided element.
|
671
|
+
*
|
672
|
+
* @param {HTMLElement} element The element to get the maximum scroll top value from.
|
673
|
+
* @returns {number} The maximum scroll top value.
|
674
|
+
*/
|
675
|
+
function getMaximumScrollTop(element) {
|
676
|
+
return element.scrollHeight - element.clientHeight;
|
677
|
+
}
|
678
|
+
|
679
|
+
/**
|
680
|
+
* Get the maximum available `scrollLeft` value for the provided element.
|
681
|
+
*
|
682
|
+
* @param {HTMLElement} element The element to get the maximum scroll left value from.
|
683
|
+
* @returns {number} The maximum scroll left value.
|
684
|
+
*/
|
685
|
+
function getMaximumScrollLeft(element) {
|
686
|
+
return element.scrollWidth - element.clientWidth;
|
687
|
+
}
|
688
|
+
|
667
689
|
/**
|
668
690
|
* Returns a DOM element responsible for trimming the provided element.
|
669
691
|
*
|
package/helpers/dom/element.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import "core-js/modules/es.array.push.js";
|
2
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
+
import "core-js/modules/es.array.push.js";
|
3
3
|
import { sanitize } from "../string.mjs";
|
4
4
|
import { A11Y_HIDDEN } from "../a11y.mjs";
|
5
5
|
/**
|
@@ -606,6 +606,26 @@ export function getScrollableElement(element) {
|
|
606
606
|
return rootWindow;
|
607
607
|
}
|
608
608
|
|
609
|
+
/**
|
610
|
+
* Get the maximum available `scrollTop` value for the provided element.
|
611
|
+
*
|
612
|
+
* @param {HTMLElement} element The element to get the maximum scroll top value from.
|
613
|
+
* @returns {number} The maximum scroll top value.
|
614
|
+
*/
|
615
|
+
export function getMaximumScrollTop(element) {
|
616
|
+
return element.scrollHeight - element.clientHeight;
|
617
|
+
}
|
618
|
+
|
619
|
+
/**
|
620
|
+
* Get the maximum available `scrollLeft` value for the provided element.
|
621
|
+
*
|
622
|
+
* @param {HTMLElement} element The element to get the maximum scroll left value from.
|
623
|
+
* @returns {number} The maximum scroll left value.
|
624
|
+
*/
|
625
|
+
export function getMaximumScrollLeft(element) {
|
626
|
+
return element.scrollWidth - element.clientWidth;
|
627
|
+
}
|
628
|
+
|
609
629
|
/**
|
610
630
|
* Returns a DOM element responsible for trimming the provided element.
|
611
631
|
*
|
package/helpers/mixed.js
CHANGED
@@ -134,7 +134,7 @@ const domMessages = {
|
|
134
134
|
function _injectProductInfo(key, element) {
|
135
135
|
const hasValidType = !isEmpty(key);
|
136
136
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
137
|
-
const hotVersion = "0.0.0-next-
|
137
|
+
const hotVersion = "0.0.0-next-c2810a1-20240403";
|
138
138
|
let keyValidityDate;
|
139
139
|
let consoleMessageState = 'invalid';
|
140
140
|
let domMessageState = 'invalid';
|
package/helpers/mixed.mjs
CHANGED
@@ -124,7 +124,7 @@ const domMessages = {
|
|
124
124
|
export function _injectProductInfo(key, element) {
|
125
125
|
const hasValidType = !isEmpty(key);
|
126
126
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
127
|
-
const hotVersion = "0.0.0-next-
|
127
|
+
const hotVersion = "0.0.0-next-c2810a1-20240403";
|
128
128
|
let keyValidityDate;
|
129
129
|
let consoleMessageState = 'invalid';
|
130
130
|
let domMessageState = 'invalid';
|
package/helpers/object.js
CHANGED
@@ -17,9 +17,9 @@ exports.isObjectEqual = isObjectEqual;
|
|
17
17
|
exports.mixin = mixin;
|
18
18
|
exports.objectEach = objectEach;
|
19
19
|
exports.setProperty = setProperty;
|
20
|
-
require("core-js/modules/es.json.stringify.js");
|
21
|
-
require("core-js/modules/es.array.push.js");
|
22
20
|
require("core-js/modules/es.error.cause.js");
|
21
|
+
require("core-js/modules/es.array.push.js");
|
22
|
+
require("core-js/modules/es.json.stringify.js");
|
23
23
|
var _array = require("./array");
|
24
24
|
/**
|
25
25
|
* Generate schema for passed object.
|
package/helpers/object.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import "core-js/modules/es.json.stringify.js";
|
2
|
-
import "core-js/modules/es.array.push.js";
|
3
1
|
import "core-js/modules/es.error.cause.js";
|
2
|
+
import "core-js/modules/es.array.push.js";
|
3
|
+
import "core-js/modules/es.json.stringify.js";
|
4
4
|
import { arrayEach } from "./array.mjs";
|
5
5
|
/**
|
6
6
|
* Generate schema for passed object.
|
package/index.d.ts
CHANGED
@@ -361,6 +361,7 @@ declare namespace Handsontable {
|
|
361
361
|
export class CopyPaste extends _CopyPaste {}
|
362
362
|
export class CustomBorders extends _CustomBorders {}
|
363
363
|
export class DragToScroll extends _DragToScroll {}
|
364
|
+
export class DropdownMenu extends _DropdownMenu {}
|
364
365
|
export class ExportFile extends _ExportFile {}
|
365
366
|
export class Filters extends _Filters {}
|
366
367
|
export class Formulas extends _Formulas {}
|
@@ -378,6 +379,7 @@ declare namespace Handsontable {
|
|
378
379
|
export class NestedRows extends _NestedRows {}
|
379
380
|
export class PersistentState extends _PersistentState {}
|
380
381
|
export class Search extends _Search {}
|
382
|
+
export class TouchScroll extends _TouchScroll {}
|
381
383
|
export class TrimRows extends _TrimRows {}
|
382
384
|
export class UndoRedo extends _UndoRedo {}
|
383
385
|
|
@@ -441,6 +443,10 @@ declare namespace Handsontable {
|
|
441
443
|
export { DragToScrollSettings as Settings };
|
442
444
|
}
|
443
445
|
|
446
|
+
export namespace DropdownMenu {
|
447
|
+
export { DropdownMenuSettings as Settings };
|
448
|
+
}
|
449
|
+
|
444
450
|
export namespace ExportFile {
|
445
451
|
export { ExportFileSettings as Settings };
|
446
452
|
}
|
@@ -517,6 +523,10 @@ declare namespace Handsontable {
|
|
517
523
|
export { SearchQueryMethod };
|
518
524
|
}
|
519
525
|
|
526
|
+
export namespace TouchScroll {
|
527
|
+
export { TouchScrollSettings as Settings };
|
528
|
+
}
|
529
|
+
|
520
530
|
export namespace TrimRows {
|
521
531
|
export { TrimRowsSettings as Settings };
|
522
532
|
}
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"url": "https://github.com/handsontable/handsontable/issues"
|
11
11
|
},
|
12
12
|
"author": "Handsoncode <hello@handsontable.com>",
|
13
|
-
"version": "0.0.0-next-
|
13
|
+
"version": "0.0.0-next-c2810a1-20240403",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|
@@ -98,11 +98,12 @@
|
|
98
98
|
"string-replace-loader": "^3.1.0",
|
99
99
|
"stylelint": "^13.3.3",
|
100
100
|
"typescript": "3.8.2",
|
101
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
101
102
|
"webpack": "^5.88.1",
|
102
103
|
"webpack-cli": "^5.1.4"
|
103
104
|
},
|
104
105
|
"optionalDependencies": {
|
105
|
-
"hyperformula": "^2.
|
106
|
+
"hyperformula": "^2.6.2"
|
106
107
|
},
|
107
108
|
"license": "SEE LICENSE IN LICENSE.txt",
|
108
109
|
"typings": "./index.d.ts",
|
@@ -617,10 +618,12 @@
|
|
617
618
|
"import": "./i18n/registry.mjs"
|
618
619
|
},
|
619
620
|
"./i18n/languages/ar-AR": {
|
621
|
+
"types": "./i18n/languages/ar-AR.d.ts",
|
620
622
|
"require": "./i18n/languages/ar-AR.js",
|
621
623
|
"import": "./i18n/languages/ar-AR.mjs"
|
622
624
|
},
|
623
625
|
"./i18n/languages/cs-CZ": {
|
626
|
+
"types": "./i18n/languages/cs-CZ.d.ts",
|
624
627
|
"require": "./i18n/languages/cs-CZ.js",
|
625
628
|
"import": "./i18n/languages/cs-CZ.mjs"
|
626
629
|
},
|
@@ -650,6 +653,7 @@
|
|
650
653
|
"import": "./i18n/languages/fr-FR.mjs"
|
651
654
|
},
|
652
655
|
"./i18n/languages/hr-HR": {
|
656
|
+
"types": "./i18n/languages/hr-HR.d.ts",
|
653
657
|
"require": "./i18n/languages/hr-HR.js",
|
654
658
|
"import": "./i18n/languages/hr-HR.mjs"
|
655
659
|
},
|
@@ -704,6 +708,7 @@
|
|
704
708
|
"import": "./i18n/languages/ru-RU.mjs"
|
705
709
|
},
|
706
710
|
"./i18n/languages/sr-SP": {
|
711
|
+
"types": "./i18n/languages/sr-SP.d.ts",
|
707
712
|
"require": "./i18n/languages/sr-SP.js",
|
708
713
|
"import": "./i18n/languages/sr-SP.mjs"
|
709
714
|
},
|
package/pluginHooks.d.ts
CHANGED
@@ -13,15 +13,12 @@ import {
|
|
13
13
|
DropdownMenu,
|
14
14
|
} from './plugins/dropdownMenu';
|
15
15
|
import {
|
16
|
-
ColumnSorting,
|
17
16
|
Config as ColumnSortingConfig,
|
18
17
|
} from './plugins/columnSorting';
|
19
18
|
import {
|
20
|
-
Filters,
|
21
19
|
ColumnConditions as FiltersColumnConditions,
|
22
20
|
} from './plugins/filters';
|
23
21
|
import {
|
24
|
-
UndoRedo,
|
25
22
|
Action as UndoRedoAction,
|
26
23
|
} from './plugins/undoRedo';
|
27
24
|
import {
|
@@ -101,6 +98,7 @@ export interface Events {
|
|
101
98
|
afterLoadData?: (sourceData: CellValue[], initialLoad: boolean, source: string | undefined) => void;
|
102
99
|
afterMergeCells?: (cellRange: CellRange, mergeParent: MergeCellsSettings, auto: boolean) => void;
|
103
100
|
afterModifyTransformEnd?: (coords: CellCoords, rowTransformDir: -1 | 0, colTransformDir: -1 | 0) => void;
|
101
|
+
afterModifyTransformFocus?: (coords: CellCoords, rowTransformDir: -1 | 0, colTransformDir: -1 | 0) => void;
|
104
102
|
afterModifyTransformStart?: (coords: CellCoords, rowTransformDir: -1 | 0, colTransformDir: -1 | 0) => void;
|
105
103
|
afterMomentumScroll?: () => void;
|
106
104
|
afterNamedExpressionAdded?: (namedExpressionName: string, changes: ExportedChange[]) => void;
|
@@ -133,6 +131,7 @@ export interface Events {
|
|
133
131
|
afterSelectionByProp?: (row: number, prop: string, row2: number, prop2: string, preventScrolling: { value: boolean }, selectionLayerLevel: number) => void;
|
134
132
|
afterSelectionEnd?: (row: number, column: number, row2: number, column2: number, selectionLayerLevel: number) => void;
|
135
133
|
afterSelectionEndByProp?: (row: number, prop: string, row2: number, prop2: string, selectionLayerLevel: number) => void;
|
134
|
+
afterSelectionFocusSet?: (row: number, column: number, preventScrolling: { value: boolean }) => void;
|
136
135
|
afterSelectRows?: (from: CellCoords, to: CellCoords, highlight: CellCoords) => void;
|
137
136
|
afterSetCellMeta?: (row: number, column: number, key: string, value: any) => void;
|
138
137
|
afterSetDataAtCell?: (changes: CellChange[], source?: ChangeSource) => void;
|
@@ -211,6 +210,7 @@ export interface Events {
|
|
211
210
|
beforeRowResize?: (newSize: number, row: number, isDoubleClick: boolean) => number | void;
|
212
211
|
beforeRowWrap?: (isActionInterrupted: { value: boolean }, newCoords: CellCoords, isRowFlipped: boolean) => void;
|
213
212
|
beforeSelectColumns?: (from: CellCoords, to: CellCoords, highlight: CellCoords) => void;
|
213
|
+
beforeSelectionFocusSet?: (coords: CellCoords) => void;
|
214
214
|
beforeSelectionHighlightSet?: () => void;
|
215
215
|
beforeSelectRows?: (from: CellCoords, to: CellCoords, highlight: CellCoords) => void;
|
216
216
|
beforeSetCellMeta?: (row: number, column: number, key: string, value: any) => boolean | void;
|
@@ -253,6 +253,7 @@ export interface Events {
|
|
253
253
|
modifyRowHeight?: (height: number, row: number) => void;
|
254
254
|
modifySourceData?: (row: number, column: number, valueHolder: { value: CellValue }, ioMode: 'get' | 'set') => void;
|
255
255
|
modifyTransformEnd?: (delta: CellCoords) => void;
|
256
|
+
modifyTransformFocus?: (delta: CellCoords) => void;
|
256
257
|
modifyTransformStart?: (delta: CellCoords) => void;
|
257
258
|
persistentStateLoad?: (key: string, valuePlaceholder: { value: any }) => void;
|
258
259
|
persistentStateReset?: (key: string) => void;
|
package/pluginHooks.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
|
-
require("core-js/modules/es.array.push.js");
|
5
4
|
require("core-js/modules/es.error.cause.js");
|
5
|
+
require("core-js/modules/es.array.push.js");
|
6
6
|
var _array = require("./helpers/array");
|
7
7
|
var _object = require("./helpers/object");
|
8
8
|
var _string = require("./helpers/string");
|
@@ -134,7 +134,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
134
134
|
'afterCellMetaReset',
|
135
135
|
/**
|
136
136
|
* Fired after one or more cells has been changed. The changes are triggered in any situation when the
|
137
|
-
* value is entered using an editor or changed using API (e.q setDataAtCell).
|
137
|
+
* value is entered using an editor or changed using API (e.q [`setDataAtCell`](@/api/core.md#setdataatcell) method).
|
138
138
|
*
|
139
139
|
* __Note:__ For performance reasons, the `changes` array is null for `"loadData"` source.
|
140
140
|
*
|
@@ -177,7 +177,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
177
177
|
'afterContextMenuDefaultOptions',
|
178
178
|
/**
|
179
179
|
* Fired each time user opens {@link ContextMenu} plugin before setting up the Context Menu's items but after filtering these options by
|
180
|
-
* user (`contextMenu` option). This hook can by helpful to determine if user use specified menu item or to set up
|
180
|
+
* user ([`contextMenu`](@/api/options.md#contextmenu) option). This hook can by helpful to determine if user use specified menu item or to set up
|
181
181
|
* one of the menu item to by always visible.
|
182
182
|
*
|
183
183
|
* @event Hooks#beforeContextMenuSetItems
|
@@ -195,7 +195,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
195
195
|
'afterDropdownMenuDefaultOptions',
|
196
196
|
/**
|
197
197
|
* Fired by {@link DropdownMenu} plugin before setting up the Dropdown Menu's items but after filtering these options
|
198
|
-
* by user (`dropdownMenu` option). This hook can by helpful to determine if user use specified menu item or to set
|
198
|
+
* by user ([`dropdownMenu`](@/api/options.md#dropdownmenu) option). This hook can by helpful to determine if user use specified menu item or to set
|
199
199
|
* up one of the menu item to by always visible.
|
200
200
|
*
|
201
201
|
* @event Hooks#beforeDropdownMenuSetItems
|
@@ -322,7 +322,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
322
322
|
*/
|
323
323
|
'afterDestroy',
|
324
324
|
/**
|
325
|
-
* Hook fired after keydown event is handled.
|
325
|
+
* Hook fired after `keydown` event is handled.
|
326
326
|
*
|
327
327
|
* @event Hooks#afterDocumentKeyDown
|
328
328
|
* @param {Event} event A native `keydown` event object.
|
@@ -414,7 +414,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
414
414
|
*/
|
415
415
|
'afterUpdateData',
|
416
416
|
/**
|
417
|
-
* Fired after a scroll event, which is identified as a momentum scroll (e.g.
|
417
|
+
* Fired after a scroll event, which is identified as a momentum scroll (e.g. on an iPad).
|
418
418
|
*
|
419
419
|
* @event Hooks#afterMomentumScroll
|
420
420
|
*/
|
@@ -598,7 +598,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
598
598
|
*/
|
599
599
|
'afterScroll',
|
600
600
|
/**
|
601
|
-
* Fired after one or more cells are selected (e.g.
|
601
|
+
* Fired after one or more cells are selected (e.g. during mouse move).
|
602
602
|
*
|
603
603
|
* @event Hooks#afterSelection
|
604
604
|
* @param {number} row Selection start visual row index.
|
@@ -650,7 +650,9 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
650
650
|
* @param {string} prop Selection start data source object property name.
|
651
651
|
* @param {number} row2 Selection end visual row index.
|
652
652
|
* @param {string} prop2 Selection end data source object property name.
|
653
|
-
* @param {object} preventScrolling
|
653
|
+
* @param {object} preventScrolling A reference to the observable object with the `value` property.
|
654
|
+
* Property `preventScrolling.value` expects a boolean value that
|
655
|
+
* Handsontable uses to control scroll behavior after selection.
|
654
656
|
* @param {number} selectionLayerLevel The number which indicates what selection layer is currently modified.
|
655
657
|
* @example
|
656
658
|
* ```js
|
@@ -677,7 +679,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
677
679
|
*/
|
678
680
|
'afterSelectionByProp',
|
679
681
|
/**
|
680
|
-
* Fired after one or more cells are selected (e.g.
|
682
|
+
* Fired after one or more cells are selected (e.g. on mouse up).
|
681
683
|
*
|
682
684
|
* @event Hooks#afterSelectionEnd
|
683
685
|
* @param {number} row Selection start visual row index.
|
@@ -688,7 +690,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
688
690
|
*/
|
689
691
|
'afterSelectionEnd',
|
690
692
|
/**
|
691
|
-
* Fired after one or more cells are selected (e.g.
|
693
|
+
* Fired after one or more cells are selected (e.g. on mouse up).
|
692
694
|
*
|
693
695
|
* The `prop` and `prop2` arguments represent the source object property name instead of the column number.
|
694
696
|
*
|
@@ -700,6 +702,46 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
700
702
|
* @param {number} selectionLayerLevel The number which indicates what selection layer is currently modified.
|
701
703
|
*/
|
702
704
|
'afterSelectionEndByProp',
|
705
|
+
/**
|
706
|
+
* Fired after the focus position within a selected range is changed.
|
707
|
+
*
|
708
|
+
* @since 14.3.0
|
709
|
+
* @event Hooks#afterSelectionFocusSet
|
710
|
+
* @param {number} row The focus visual row index position.
|
711
|
+
* @param {number} column The focus visual column index position.
|
712
|
+
* @param {object} preventScrolling A reference to the observable object with the `value` property.
|
713
|
+
* Property `preventScrolling.value` expects a boolean value that
|
714
|
+
* Handsontable uses to control scroll behavior after selection.
|
715
|
+
* @example
|
716
|
+
* ```js
|
717
|
+
* ::: only-for javascript
|
718
|
+
* new Handsontable(element, {
|
719
|
+
* afterSelectionFocusSet: (row, column, preventScrolling) => {
|
720
|
+
* // If set to `false` (default): when focused cell selection is outside the viewport,
|
721
|
+
* // Handsontable scrolls the viewport to that cell.
|
722
|
+
* // If set to `true`: when focused cell selection is outside the viewport,
|
723
|
+
* // Handsontable doesn't scroll the viewport.
|
724
|
+
* preventScrolling.value = true;
|
725
|
+
* }
|
726
|
+
* })
|
727
|
+
* ```
|
728
|
+
* :::
|
729
|
+
*
|
730
|
+
* ::: only-for react
|
731
|
+
* ```jsx
|
732
|
+
* <HotTable
|
733
|
+
* afterSelectionFocusSet={(row, column, preventScrolling) => {
|
734
|
+
* // If set to `false` (default): when focused cell selection is outside the viewport,
|
735
|
+
* // Handsontable scrolls the viewport to that cell.
|
736
|
+
* // If set to `true`: when focused cell selection is outside the viewport,
|
737
|
+
* // Handsontable doesn't scroll the viewport.
|
738
|
+
* preventScrolling.value = true;
|
739
|
+
* }}
|
740
|
+
* />
|
741
|
+
* ```
|
742
|
+
* :::
|
743
|
+
*/
|
744
|
+
'afterSelectionFocusSet',
|
703
745
|
/**
|
704
746
|
* Fired before one or more columns are selected (e.g. During mouse header click or {@link Core#selectColumns} API call).
|
705
747
|
*
|
@@ -735,7 +777,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
735
777
|
*/
|
736
778
|
'beforeSelectColumns',
|
737
779
|
/**
|
738
|
-
* Fired after one or more columns are selected (e.g.
|
780
|
+
* Fired after one or more columns are selected (e.g. during mouse header click or {@link Core#selectColumns} API call).
|
739
781
|
*
|
740
782
|
* @since 14.0.0
|
741
783
|
* @event Hooks#afterSelectColumns
|
@@ -745,7 +787,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
745
787
|
*/
|
746
788
|
'afterSelectColumns',
|
747
789
|
/**
|
748
|
-
* Fired before one or more rows are selected (e.g.
|
790
|
+
* Fired before one or more rows are selected (e.g. during mouse header click or {@link Core#selectRows} API call).
|
749
791
|
*
|
750
792
|
* @since 14.0.0
|
751
793
|
* @event Hooks#beforeSelectRows
|
@@ -779,7 +821,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
779
821
|
*/
|
780
822
|
'beforeSelectRows',
|
781
823
|
/**
|
782
|
-
* Fired after one or more rows are selected (e.g.
|
824
|
+
* Fired after one or more rows are selected (e.g. during mouse header click or {@link Core#selectRows} API call).
|
783
825
|
*
|
784
826
|
* @since 14.0.0
|
785
827
|
* @event Hooks#afterSelectRows
|
@@ -819,7 +861,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
819
861
|
'afterSetDataAtCell',
|
820
862
|
/**
|
821
863
|
* Fired after cell data was changed.
|
822
|
-
* Called only when `setDataAtRowProp` was executed.
|
864
|
+
* Called only when [`setDataAtRowProp`](@/api/core.md#setdataatrowprop) was executed.
|
823
865
|
*
|
824
866
|
* @event Hooks#afterSetDataAtRowProp
|
825
867
|
* @param {Array} changes An array of changes in format `[[row, prop, oldValue, value], ...]`.
|
@@ -837,7 +879,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
837
879
|
*/
|
838
880
|
'afterSetSourceDataAtCell',
|
839
881
|
/**
|
840
|
-
* Fired after calling the `updateSettings` method.
|
882
|
+
* Fired after calling the [`updateSettings`](@/api/core.md#updatesettings) method.
|
841
883
|
*
|
842
884
|
* @event Hooks#afterUpdateSettings
|
843
885
|
* @param {object} newSettings New settings object.
|
@@ -887,7 +929,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
887
929
|
* @param {string} direction Declares the direction of the autofill. Possible values: `up`, `down`, `left`, `right`.
|
888
930
|
*
|
889
931
|
* @returns {boolean|Array[]} If false, the operation is cancelled. If array of arrays, the returned data
|
890
|
-
* will be passed into `populateFromArray` instead of the default autofill
|
932
|
+
* will be passed into [`populateFromArray`](@/api/core.md#populatefromarray) instead of the default autofill
|
891
933
|
* algorithm's result.
|
892
934
|
*/
|
893
935
|
'beforeAutofill',
|
@@ -909,17 +951,10 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
909
951
|
*
|
910
952
|
* @event Hooks#beforeCellAlignment
|
911
953
|
* @param {object} stateBefore An object with class names defining the cell alignment.
|
912
|
-
* @param {CellRange[]} range An array of CellRange coordinates where the alignment will be applied.
|
954
|
+
* @param {CellRange[]} range An array of `CellRange` coordinates where the alignment will be applied.
|
913
955
|
* @param {string} type Type of the alignment - either `horizontal` or `vertical`.
|
914
956
|
* @param {string} alignmentClass String defining the alignment class added to the cell.
|
915
|
-
* Possible values:
|
916
|
-
* * `htLeft`
|
917
|
-
* * `htCenter`
|
918
|
-
* * `htRight`
|
919
|
-
* * `htJustify`
|
920
|
-
* * `htTop`
|
921
|
-
* * `htMiddle`
|
922
|
-
* * `htBottom`.
|
957
|
+
* Possible values: `htLeft` , `htCenter`, `htRight`, `htJustify`, `htTop`, `htMiddle`, `htBottom`.
|
923
958
|
*/
|
924
959
|
'beforeCellAlignment',
|
925
960
|
/**
|
@@ -1080,7 +1115,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1080
1115
|
*/
|
1081
1116
|
'beforeUpdateData',
|
1082
1117
|
/**
|
1083
|
-
* Hook fired before keydown event is handled. It can be used to stop default key bindings.
|
1118
|
+
* Hook fired before `keydown` event is handled. It can be used to stop default key bindings.
|
1084
1119
|
*
|
1085
1120
|
* __Note__: To prevent default behavior you need to call `false` in your `beforeKeyDown` handler.
|
1086
1121
|
*
|
@@ -1254,25 +1289,33 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1254
1289
|
* @returns {boolean|undefined} If false is returned the action is canceled.
|
1255
1290
|
*/
|
1256
1291
|
'beforeSetCellMeta',
|
1292
|
+
/**
|
1293
|
+
* Fired before setting focus selection.
|
1294
|
+
*
|
1295
|
+
* @since 14.3.0
|
1296
|
+
* @event Hooks#beforeSelectionFocusSet
|
1297
|
+
* @param {CellCoords} coords CellCoords instance.
|
1298
|
+
*/
|
1299
|
+
'beforeSelectionFocusSet',
|
1257
1300
|
/**
|
1258
1301
|
* Fired before setting range is started but not finished yet.
|
1259
1302
|
*
|
1260
1303
|
* @event Hooks#beforeSetRangeStartOnly
|
1261
|
-
* @param {CellCoords} coords CellCoords instance.
|
1304
|
+
* @param {CellCoords} coords `CellCoords` instance.
|
1262
1305
|
*/
|
1263
1306
|
'beforeSetRangeStartOnly',
|
1264
1307
|
/**
|
1265
1308
|
* Fired before setting range is started.
|
1266
1309
|
*
|
1267
1310
|
* @event Hooks#beforeSetRangeStart
|
1268
|
-
* @param {CellCoords} coords CellCoords instance.
|
1311
|
+
* @param {CellCoords} coords `CellCoords` instance.
|
1269
1312
|
*/
|
1270
1313
|
'beforeSetRangeStart',
|
1271
1314
|
/**
|
1272
1315
|
* Fired before setting range is ended.
|
1273
1316
|
*
|
1274
1317
|
* @event Hooks#beforeSetRangeEnd
|
1275
|
-
* @param {CellCoords} coords CellCoords instance.
|
1318
|
+
* @param {CellCoords} coords `CellCoords` instance.
|
1276
1319
|
*/
|
1277
1320
|
'beforeSetRangeEnd',
|
1278
1321
|
/**
|
@@ -1405,7 +1448,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1405
1448
|
*/
|
1406
1449
|
'modifyRowData',
|
1407
1450
|
/**
|
1408
|
-
* Used to modify the cell coordinates when using the `getCell` method, opening editor, getting value from the editor
|
1451
|
+
* Used to modify the cell coordinates when using the [`getCell`](@/api/core.md#getcell) method, opening editor, getting value from the editor
|
1409
1452
|
* and saving values from the closed editor.
|
1410
1453
|
*
|
1411
1454
|
* @event Hooks#modifyGetCellCoords
|
@@ -2074,9 +2117,9 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
2074
2117
|
* @event Hooks#modifyColumnHeaderValue
|
2075
2118
|
* @param {string} value A column header value.
|
2076
2119
|
* @param {number} visualColumnIndex A visual column index.
|
2077
|
-
* @param {number} [headerLevel=0] Header level index. Accepts positive (0 to n)
|
2078
|
-
* and negative (
|
2079
|
-
* topmost header. For negative values,
|
2120
|
+
* @param {number} [headerLevel=0] Header level index. Accepts positive (`0` to `n`)
|
2121
|
+
* and negative (`-1` to `-n`) values. For positive values, `0` points to the
|
2122
|
+
* topmost header. For negative values, `-1` points to the bottom-most
|
2080
2123
|
* header (the header closest to the cells).
|
2081
2124
|
* @returns {string} The column header value to be updated.
|
2082
2125
|
*/
|
@@ -2163,6 +2206,14 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
2163
2206
|
* @param {number} rowHeaderWidth Row header width.
|
2164
2207
|
*/
|
2165
2208
|
'modifyRowHeaderWidth',
|
2209
|
+
/**
|
2210
|
+
* Fired when the focus of the selection is being modified (e.g. Moving the focus with the enter/tab keys).
|
2211
|
+
*
|
2212
|
+
* @since 14.3.0
|
2213
|
+
* @event Hooks#modifyTransformFocus
|
2214
|
+
* @param {CellCoords} delta Cell coords object declaring the delta of the new selection relative to the previous one.
|
2215
|
+
*/
|
2216
|
+
'modifyTransformFocus',
|
2166
2217
|
/**
|
2167
2218
|
* Fired when the start of the selection is being modified (e.g. Moving the selection with the arrow keys).
|
2168
2219
|
*
|
@@ -2177,6 +2228,16 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
2177
2228
|
* @param {CellCoords} delta Cell coords object declaring the delta of the new selection relative to the previous one.
|
2178
2229
|
*/
|
2179
2230
|
'modifyTransformEnd',
|
2231
|
+
/**
|
2232
|
+
* Fired after the focus of the selection is being modified (e.g. Moving the focus with the enter/tab keys).
|
2233
|
+
*
|
2234
|
+
* @since 14.3.0
|
2235
|
+
* @event Hooks#afterModifyTransformFocus
|
2236
|
+
* @param {CellCoords} coords Coords of the freshly focused cell.
|
2237
|
+
* @param {number} rowTransformDir `-1` if trying to focus a cell with a negative row index. `0` otherwise.
|
2238
|
+
* @param {number} colTransformDir `-1` if trying to focus a cell with a negative column index. `0` otherwise.
|
2239
|
+
*/
|
2240
|
+
'afterModifyTransformFocus',
|
2180
2241
|
/**
|
2181
2242
|
* Fired after the start of the selection is being modified (e.g. Moving the selection with the arrow keys).
|
2182
2243
|
*
|
@@ -2352,7 +2413,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
2352
2413
|
* option is enabled.
|
2353
2414
|
*
|
2354
2415
|
* @event Hooks#beforeDropdownMenuShow
|
2355
|
-
* @param {DropdownMenu} dropdownMenu The DropdownMenu instance.
|
2416
|
+
* @param {DropdownMenu} dropdownMenu The `DropdownMenu` instance.
|
2356
2417
|
*/
|
2357
2418
|
'beforeDropdownMenuShow',
|
2358
2419
|
/**
|
@@ -2360,7 +2421,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
2360
2421
|
* option is enabled.
|
2361
2422
|
*
|
2362
2423
|
* @event Hooks#afterDropdownMenuShow
|
2363
|
-
* @param {DropdownMenu} dropdownMenu The DropdownMenu instance.
|
2424
|
+
* @param {DropdownMenu} dropdownMenu The `DropdownMenu` instance.
|
2364
2425
|
*/
|
2365
2426
|
'afterDropdownMenuShow',
|
2366
2427
|
/**
|
@@ -2368,11 +2429,11 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
2368
2429
|
* option is enabled.
|
2369
2430
|
*
|
2370
2431
|
* @event Hooks#afterDropdownMenuHide
|
2371
|
-
* @param {DropdownMenu} instance The DropdownMenu instance.
|
2432
|
+
* @param {DropdownMenu} instance The `DropdownMenu` instance.
|
2372
2433
|
*/
|
2373
2434
|
'afterDropdownMenuHide',
|
2374
2435
|
/**
|
2375
|
-
* Fired by {@link NestedRows} plugin before adding a children to the NestedRows structure. This hook is fired when
|
2436
|
+
* Fired by {@link NestedRows} plugin before adding a children to the `NestedRows` structure. This hook is fired when
|
2376
2437
|
* {@link Options#nestedRows} option is enabled.
|
2377
2438
|
*
|
2378
2439
|
* @event Hooks#beforeAddChild
|
@@ -2382,7 +2443,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
2382
2443
|
*/
|
2383
2444
|
'beforeAddChild',
|
2384
2445
|
/**
|
2385
|
-
* Fired by {@link NestedRows} plugin after adding a children to the NestedRows structure. This hook is fired when
|
2446
|
+
* Fired by {@link NestedRows} plugin after adding a children to the `NestedRows` structure. This hook is fired when
|
2386
2447
|
* {@link Options#nestedRows} option is enabled.
|
2387
2448
|
*
|
2388
2449
|
* @event Hooks#afterAddChild
|