handsontable 14.2.0 → 14.3.0-next-13fe676-20240409
Sign up to get free protection for your applications and to get access to all the features.
- package/3rdparty/walkontable/src/calculator/renderAllColumns.js +1 -1
- package/3rdparty/walkontable/src/calculator/renderAllColumns.mjs +1 -1
- package/3rdparty/walkontable/src/calculator/renderAllRows.js +1 -1
- package/3rdparty/walkontable/src/calculator/renderAllRows.mjs +1 -1
- package/3rdparty/walkontable/src/calculator/viewportColumns.js +13 -18
- package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +13 -18
- package/3rdparty/walkontable/src/calculator/viewportRows.js +11 -16
- package/3rdparty/walkontable/src/calculator/viewportRows.mjs +11 -16
- package/3rdparty/walkontable/src/cell/coords.js +13 -18
- package/3rdparty/walkontable/src/cell/coords.mjs +13 -18
- package/3rdparty/walkontable/src/cell/range.d.ts +2 -1
- package/3rdparty/walkontable/src/cell/range.js +42 -30
- package/3rdparty/walkontable/src/cell/range.mjs +42 -30
- package/3rdparty/walkontable/src/core/_base.js +2 -2
- package/3rdparty/walkontable/src/core/_base.mjs +2 -2
- package/3rdparty/walkontable/src/core/clone.js +1 -1
- package/3rdparty/walkontable/src/core/clone.mjs +1 -1
- package/3rdparty/walkontable/src/event.js +72 -104
- package/3rdparty/walkontable/src/event.mjs +72 -104
- package/3rdparty/walkontable/src/filter/column.js +1 -1
- package/3rdparty/walkontable/src/filter/column.mjs +1 -1
- package/3rdparty/walkontable/src/filter/row.js +1 -1
- package/3rdparty/walkontable/src/filter/row.mjs +1 -1
- package/3rdparty/walkontable/src/index.js +1 -1
- package/3rdparty/walkontable/src/overlay/_base.js +1 -1
- package/3rdparty/walkontable/src/overlay/_base.mjs +1 -1
- package/3rdparty/walkontable/src/overlay/bottom.js +1 -1
- package/3rdparty/walkontable/src/overlay/bottom.mjs +1 -1
- 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 +12 -1
- package/3rdparty/walkontable/src/overlay/top.mjs +13 -2
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +1 -1
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +1 -1
- package/3rdparty/walkontable/src/overlays.js +47 -5
- package/3rdparty/walkontable/src/overlays.mjs +47 -5
- package/3rdparty/walkontable/src/renderer/_base.js +1 -1
- package/3rdparty/walkontable/src/renderer/_base.mjs +1 -1
- package/3rdparty/walkontable/src/renderer/cells.js +1 -1
- package/3rdparty/walkontable/src/renderer/cells.mjs +1 -1
- package/3rdparty/walkontable/src/renderer/rowHeaders.js +1 -1
- package/3rdparty/walkontable/src/renderer/rowHeaders.mjs +1 -1
- package/3rdparty/walkontable/src/renderer/rows.js +1 -1
- package/3rdparty/walkontable/src/renderer/rows.mjs +1 -1
- package/3rdparty/walkontable/src/renderer/table.js +1 -1
- package/3rdparty/walkontable/src/renderer/table.mjs +1 -1
- package/3rdparty/walkontable/src/scroll.js +16 -18
- package/3rdparty/walkontable/src/scroll.mjs +16 -18
- 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/settings.js +1 -1
- package/3rdparty/walkontable/src/settings.mjs +1 -1
- package/3rdparty/walkontable/src/table.js +1 -1
- package/3rdparty/walkontable/src/table.mjs +1 -1
- package/3rdparty/walkontable/src/utils/column.js +1 -1
- package/3rdparty/walkontable/src/utils/column.mjs +1 -1
- package/3rdparty/walkontable/src/utils/columnStretching.js +28 -45
- package/3rdparty/walkontable/src/utils/columnStretching.mjs +28 -45
- package/3rdparty/walkontable/src/utils/nodesPool.js +1 -1
- package/3rdparty/walkontable/src/utils/nodesPool.mjs +1 -1
- package/3rdparty/walkontable/src/utils/orderView/view.js +2 -2
- package/3rdparty/walkontable/src/utils/orderView/view.mjs +2 -2
- package/3rdparty/walkontable/src/utils/orderView/viewSize.js +1 -1
- package/3rdparty/walkontable/src/utils/orderView/viewSize.mjs +1 -1
- package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.js +1 -1
- package/3rdparty/walkontable/src/utils/orderView/viewSizeSet.mjs +1 -1
- package/3rdparty/walkontable/src/utils/row.js +1 -1
- package/3rdparty/walkontable/src/utils/row.mjs +1 -1
- package/CHANGELOG.md +20 -0
- 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 +98 -43
- package/core.mjs +98 -43
- package/dataMap/dataMap.js +1 -1
- package/dataMap/dataMap.mjs +1 -1
- package/dataMap/dataSource.js +2 -2
- package/dataMap/dataSource.mjs +2 -2
- package/dataMap/metaManager/lazyFactoryMap.js +3 -5
- package/dataMap/metaManager/lazyFactoryMap.mjs +2 -4
- package/dataMap/metaManager/metaLayers/cellMeta.js +2 -2
- package/dataMap/metaManager/metaLayers/cellMeta.mjs +2 -2
- package/dataMap/metaManager/metaLayers/columnMeta.js +1 -1
- package/dataMap/metaManager/metaLayers/columnMeta.mjs +1 -1
- package/dataMap/metaManager/metaLayers/globalMeta.js +1 -1
- package/dataMap/metaManager/metaLayers/globalMeta.mjs +1 -1
- package/dataMap/metaManager/metaLayers/tableMeta.js +1 -1
- package/dataMap/metaManager/metaLayers/tableMeta.mjs +1 -1
- package/dataMap/metaManager/metaSchema.js +272 -272
- package/dataMap/metaManager/metaSchema.mjs +272 -272
- package/dataMap/metaManager/mods/dynamicCellMeta.js +1 -1
- package/dataMap/metaManager/mods/dynamicCellMeta.mjs +1 -1
- package/dataMap/metaManager/mods/extendMetaProperties.js +1 -1
- package/dataMap/metaManager/mods/extendMetaProperties.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 +9800 -10020
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +292 -292
- package/dist/handsontable.js +7470 -7056
- 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 +26 -24
- package/editorManager.mjs +26 -24
- package/editors/autocompleteEditor/autocompleteEditor.js +7 -11
- package/editors/autocompleteEditor/autocompleteEditor.mjs +7 -11
- package/editors/baseEditor/baseEditor.js +1 -1
- package/editors/baseEditor/baseEditor.mjs +1 -1
- package/editors/dateEditor/dateEditor.js +35 -11
- package/editors/dateEditor/dateEditor.mjs +35 -11
- package/editors/selectEditor/selectEditor.js +20 -19
- package/editors/selectEditor/selectEditor.mjs +20 -19
- package/editors/textEditor/textEditor.js +1 -1
- package/editors/textEditor/textEditor.mjs +1 -1
- package/eventManager.js +2 -2
- package/eventManager.mjs +2 -2
- 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 +2 -2
- package/helpers/mixed.mjs +2 -2
- package/helpers/object.js +2 -2
- package/helpers/object.mjs +2 -2
- package/i18n/languages/ar-AR.d.ts +5 -0
- package/i18n/languages/ar-AR.js +1 -1
- package/i18n/languages/cs-CZ.d.ts +5 -0
- package/i18n/languages/cs-CZ.js +1 -1
- package/i18n/languages/de-CH.js +1 -1
- package/i18n/languages/de-DE.js +1 -1
- package/i18n/languages/en-US.js +1 -1
- package/i18n/languages/es-MX.js +1 -1
- package/i18n/languages/fr-FR.js +1 -1
- package/i18n/languages/hr-HR.d.ts +5 -0
- package/i18n/languages/hr-HR.js +1 -1
- package/i18n/languages/it-IT.js +1 -1
- package/i18n/languages/ja-JP.js +1 -1
- package/i18n/languages/ko-KR.js +1 -1
- package/i18n/languages/lv-LV.js +1 -1
- package/i18n/languages/nb-NO.js +1 -1
- package/i18n/languages/nl-NL.js +1 -1
- package/i18n/languages/pl-PL.js +1 -1
- package/i18n/languages/pt-BR.js +1 -1
- package/i18n/languages/ru-RU.js +1 -1
- package/i18n/languages/sr-SP.d.ts +5 -0
- package/i18n/languages/sr-SP.js +1 -1
- package/i18n/languages/zh-CN.js +1 -1
- package/i18n/languages/zh-TW.js +1 -1
- package/i18n/registry.js +1 -1
- package/index.d.ts +10 -0
- package/index.js +1 -1
- package/package.json +14 -10
- package/pluginHooks.d.ts +4 -3
- package/pluginHooks.js +143 -82
- package/pluginHooks.mjs +143 -82
- package/plugins/autoColumnSize/autoColumnSize.js +50 -66
- package/plugins/autoColumnSize/autoColumnSize.mjs +50 -66
- package/plugins/autoRowSize/autoRowSize.js +29 -35
- package/plugins/autoRowSize/autoRowSize.mjs +29 -35
- package/plugins/autofill/autofill.js +31 -39
- package/plugins/autofill/autofill.mjs +31 -39
- package/plugins/base/base.js +13 -18
- package/plugins/base/base.mjs +13 -18
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.js +6 -6
- package/plugins/bindRowsWithHeaders/bindRowsWithHeaders.mjs +6 -6
- package/plugins/collapsibleColumns/collapsibleColumns.js +60 -51
- package/plugins/collapsibleColumns/collapsibleColumns.mjs +60 -51
- package/plugins/columnSorting/columnSorting.js +50 -46
- package/plugins/columnSorting/columnSorting.mjs +50 -46
- package/plugins/columnSorting/columnStatesManager.js +1 -1
- package/plugins/columnSorting/columnStatesManager.mjs +1 -1
- package/plugins/columnSummary/columnSummary.js +36 -40
- package/plugins/columnSummary/columnSummary.mjs +36 -40
- package/plugins/columnSummary/endpoints.js +1 -1
- package/plugins/columnSummary/endpoints.mjs +1 -1
- package/plugins/comments/commentEditor.js +1 -1
- package/plugins/comments/commentEditor.mjs +1 -1
- package/plugins/comments/comments.js +117 -159
- package/plugins/comments/comments.mjs +117 -159
- package/plugins/comments/contextMenuItem/addEditComment.js +1 -1
- package/plugins/comments/contextMenuItem/readOnlyComment.js +1 -1
- package/plugins/comments/contextMenuItem/removeComment.js +1 -1
- package/plugins/comments/displaySwitch.js +1 -1
- package/plugins/comments/displaySwitch.mjs +1 -1
- package/plugins/contextMenu/commandExecutor.js +1 -1
- package/plugins/contextMenu/commandExecutor.mjs +1 -1
- package/plugins/contextMenu/contextMenu.js +24 -30
- package/plugins/contextMenu/contextMenu.mjs +24 -30
- package/plugins/contextMenu/itemsFactory.js +2 -2
- package/plugins/contextMenu/itemsFactory.mjs +2 -2
- package/plugins/contextMenu/menu/cursor.js +1 -1
- package/plugins/contextMenu/menu/cursor.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 +14 -22
- package/plugins/contextMenu/menu/menu.mjs +14 -22
- package/plugins/contextMenu/menu/positioner.js +41 -58
- package/plugins/contextMenu/menu/positioner.mjs +41 -58
- package/plugins/contextMenu/predefinedItems/alignment.js +1 -1
- package/plugins/contextMenu/predefinedItems/clearColumn.js +1 -1
- package/plugins/contextMenu/predefinedItems/columnLeft.js +1 -1
- package/plugins/contextMenu/predefinedItems/columnRight.js +1 -1
- package/plugins/contextMenu/predefinedItems/index.js +1 -1
- package/plugins/contextMenu/predefinedItems/readOnly.js +1 -1
- package/plugins/contextMenu/predefinedItems/redo.js +1 -1
- package/plugins/contextMenu/predefinedItems/removeColumn.js +1 -1
- package/plugins/contextMenu/predefinedItems/removeRow.js +1 -1
- package/plugins/contextMenu/predefinedItems/rowAbove.js +1 -1
- package/plugins/contextMenu/predefinedItems/rowBelow.js +1 -1
- package/plugins/contextMenu/predefinedItems/undo.js +1 -1
- package/plugins/copyPaste/contextMenuItem/cut.js +1 -1
- package/plugins/copyPaste/copyPaste.js +120 -161
- package/plugins/copyPaste/copyPaste.mjs +120 -161
- package/plugins/copyPaste/copyableRanges.js +43 -66
- package/plugins/copyPaste/copyableRanges.mjs +43 -66
- package/plugins/customBorders/contextMenuItem/bottom.js +1 -1
- package/plugins/customBorders/contextMenuItem/left.js +1 -1
- package/plugins/customBorders/contextMenuItem/noBorders.js +1 -1
- package/plugins/customBorders/contextMenuItem/right.js +1 -1
- package/plugins/customBorders/contextMenuItem/top.js +1 -1
- package/plugins/customBorders/customBorders.js +14 -16
- package/plugins/customBorders/customBorders.mjs +13 -15
- package/plugins/dragToScroll/dragToScroll.js +7 -7
- package/plugins/dragToScroll/dragToScroll.mjs +7 -7
- package/plugins/dropdownMenu/dropdownMenu.js +84 -110
- package/plugins/dropdownMenu/dropdownMenu.mjs +84 -110
- package/plugins/exportFile/dataProvider.js +2 -2
- package/plugins/exportFile/dataProvider.mjs +2 -2
- package/plugins/exportFile/exportFile.js +2 -2
- package/plugins/exportFile/exportFile.mjs +1 -1
- package/plugins/exportFile/types/_base.js +1 -1
- package/plugins/exportFile/types/_base.mjs +1 -1
- package/plugins/filters/component/_base.js +1 -1
- package/plugins/filters/component/_base.mjs +1 -1
- package/plugins/filters/component/actionBar.js +11 -11
- package/plugins/filters/component/actionBar.mjs +9 -9
- package/plugins/filters/component/condition.js +15 -17
- package/plugins/filters/component/condition.mjs +14 -16
- package/plugins/filters/component/operators.js +7 -7
- package/plugins/filters/component/operators.mjs +7 -7
- package/plugins/filters/component/value.js +26 -30
- package/plugins/filters/component/value.mjs +25 -29
- package/plugins/filters/condition/beginsWith.js +1 -1
- package/plugins/filters/condition/between.js +1 -1
- package/plugins/filters/condition/contains.js +1 -1
- package/plugins/filters/condition/date/after.js +1 -1
- package/plugins/filters/condition/date/before.js +1 -1
- package/plugins/filters/condition/date/today.js +1 -1
- package/plugins/filters/condition/date/tomorrow.js +1 -1
- package/plugins/filters/condition/date/yesterday.js +1 -1
- package/plugins/filters/condition/empty.js +1 -1
- package/plugins/filters/condition/endsWith.js +1 -1
- package/plugins/filters/condition/equal.js +1 -1
- package/plugins/filters/condition/greaterThan.js +1 -1
- package/plugins/filters/condition/greaterThanOrEqual.js +1 -1
- package/plugins/filters/condition/lessThan.js +1 -1
- package/plugins/filters/condition/lessThanOrEqual.js +1 -1
- package/plugins/filters/condition/none.js +1 -1
- package/plugins/filters/condition/notBetween.js +1 -1
- package/plugins/filters/condition/notContains.js +1 -1
- package/plugins/filters/condition/notEmpty.js +1 -1
- package/plugins/filters/condition/notEqual.js +1 -1
- package/plugins/filters/conditionCollection.js +1 -1
- package/plugins/filters/conditionCollection.mjs +1 -1
- package/plugins/filters/conditionUpdateObserver.js +23 -25
- package/plugins/filters/conditionUpdateObserver.mjs +23 -25
- package/plugins/filters/dataFilter.js +2 -2
- package/plugins/filters/dataFilter.mjs +2 -2
- package/plugins/filters/filters.js +84 -98
- package/plugins/filters/filters.mjs +83 -97
- package/plugins/filters/logicalOperations/conjunction.js +1 -1
- package/plugins/filters/logicalOperations/disjunction.js +1 -1
- package/plugins/filters/logicalOperations/disjunctionWithExtraCondition.js +1 -1
- package/plugins/filters/ui/_base.js +2 -2
- package/plugins/filters/ui/_base.mjs +1 -1
- 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 +86 -113
- 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 +51 -73
- package/plugins/filters/ui/select.mjs +49 -71
- package/plugins/formulas/formulas.js +270 -328
- package/plugins/formulas/formulas.mjs +271 -329
- 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/contextMenuItem/hideColumn.js +1 -1
- package/plugins/hiddenColumns/contextMenuItem/showColumn.js +1 -1
- package/plugins/hiddenColumns/hiddenColumns.js +68 -87
- package/plugins/hiddenColumns/hiddenColumns.mjs +68 -87
- package/plugins/hiddenRows/contextMenuItem/hideRow.js +1 -1
- package/plugins/hiddenRows/contextMenuItem/showRow.js +1 -1
- package/plugins/hiddenRows/hiddenRows.js +67 -86
- package/plugins/hiddenRows/hiddenRows.mjs +67 -86
- package/plugins/manualColumnFreeze/contextMenuItem/freezeColumn.js +1 -1
- package/plugins/manualColumnFreeze/contextMenuItem/unfreezeColumn.js +1 -1
- package/plugins/manualColumnFreeze/manualColumnFreeze.js +24 -32
- package/plugins/manualColumnFreeze/manualColumnFreeze.mjs +25 -33
- package/plugins/manualColumnMove/manualColumnMove.js +133 -177
- package/plugins/manualColumnMove/manualColumnMove.mjs +133 -177
- package/plugins/manualColumnMove/ui/_base.js +1 -1
- package/plugins/manualColumnMove/ui/_base.mjs +1 -1
- package/plugins/manualColumnResize/manualColumnResize.js +169 -230
- package/plugins/manualColumnResize/manualColumnResize.mjs +169 -230
- package/plugins/manualRowMove/manualRowMove.js +106 -135
- package/plugins/manualRowMove/manualRowMove.mjs +106 -135
- package/plugins/manualRowMove/ui/_base.js +1 -1
- package/plugins/manualRowMove/ui/_base.mjs +1 -1
- package/plugins/manualRowResize/manualRowResize.js +150 -209
- package/plugins/manualRowResize/manualRowResize.mjs +150 -209
- package/plugins/mergeCells/calculations/autofill.js +1 -1
- package/plugins/mergeCells/calculations/autofill.mjs +1 -1
- package/plugins/mergeCells/calculations/selection.js +3 -72
- package/plugins/mergeCells/calculations/selection.mjs +3 -72
- package/plugins/mergeCells/cellCoords.js +1 -1
- package/plugins/mergeCells/cellCoords.mjs +1 -1
- package/plugins/mergeCells/cellsCollection.js +118 -2
- package/plugins/mergeCells/cellsCollection.mjs +118 -2
- package/plugins/mergeCells/contextMenuItem/toggleMerge.js +12 -2
- 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 +500 -398
- package/plugins/mergeCells/mergeCells.mjs +500 -398
- package/plugins/multiColumnSorting/multiColumnSorting.js +9 -3
- package/plugins/multiColumnSorting/multiColumnSorting.mjs +9 -3
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.js +2 -2
- package/plugins/multipleSelectionHandles/multipleSelectionHandles.mjs +2 -2
- package/plugins/nestedHeaders/nestedHeaders.js +206 -254
- package/plugins/nestedHeaders/nestedHeaders.mjs +207 -255
- 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/nestedHeaders/utils/ghostTable.js +1 -1
- package/plugins/nestedHeaders/utils/ghostTable.mjs +1 -1
- package/plugins/nestedRows/data/dataManager.js +2 -2
- package/plugins/nestedRows/data/dataManager.mjs +2 -2
- package/plugins/nestedRows/nestedRows.js +154 -185
- package/plugins/nestedRows/nestedRows.mjs +155 -186
- package/plugins/nestedRows/ui/_base.js +1 -1
- package/plugins/nestedRows/ui/_base.mjs +1 -1
- package/plugins/nestedRows/ui/contextMenu.js +13 -17
- package/plugins/nestedRows/ui/contextMenu.mjs +11 -15
- package/plugins/nestedRows/utils/rowMoveController.js +6 -6
- package/plugins/nestedRows/utils/rowMoveController.mjs +6 -6
- package/plugins/persistentState/persistentState.js +1 -1
- package/plugins/persistentState/persistentState.mjs +1 -1
- package/plugins/persistentState/storage.js +3 -3
- package/plugins/persistentState/storage.mjs +3 -3
- package/plugins/search/search.js +8 -8
- package/plugins/search/search.mjs +8 -8
- package/plugins/touchScroll/touchScroll.js +16 -20
- package/plugins/touchScroll/touchScroll.mjs +17 -21
- package/plugins/trimRows/trimRows.js +7 -7
- package/plugins/trimRows/trimRows.mjs +7 -7
- package/plugins/undoRedo/index.js +1 -1
- package/renderers/checkboxRenderer/checkboxRenderer.js +8 -5
- package/renderers/checkboxRenderer/checkboxRenderer.mjs +8 -5
- package/selection/highlight/highlight.js +16 -18
- package/selection/highlight/highlight.mjs +15 -17
- package/selection/highlight/visualSelection.js +3 -1
- package/selection/highlight/visualSelection.mjs +3 -1
- package/selection/range.js +3 -5
- package/selection/range.mjs +2 -4
- package/selection/selection.js +227 -69
- package/selection/selection.mjs +225 -67
- 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 +3 -2
- package/shortcuts/context.mjs +3 -2
- package/shortcuts/manager.js +2 -2
- package/shortcuts/manager.mjs +2 -2
- package/tableView.js +53 -79
- package/tableView.mjs +53 -79
- 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/indexMapper.js +1 -1
- package/translations/indexMapper.mjs +1 -1
- package/translations/mapCollections/aggregatedCollection.js +2 -2
- package/translations/mapCollections/aggregatedCollection.mjs +2 -2
- package/translations/mapCollections/mapCollection.js +1 -1
- package/translations/mapCollections/mapCollection.mjs +1 -1
- package/translations/maps/indexMap.js +2 -2
- package/translations/maps/indexMap.mjs +2 -2
- package/translations/maps/linkedPhysicalIndexToValueMap.js +1 -1
- package/translations/maps/linkedPhysicalIndexToValueMap.mjs +1 -1
- package/utils/dataStructures/linkedList.js +7 -2
- package/utils/dataStructures/linkedList.mjs +7 -2
- package/utils/dataStructures/tree.js +2 -2
- package/utils/dataStructures/tree.mjs +2 -2
- package/utils/ghostTable.js +1 -1
- package/utils/ghostTable.mjs +1 -1
- package/utils/interval.js +27 -45
- package/utils/interval.mjs +27 -45
- package/utils/samplesGenerator.js +1 -1
- package/utils/samplesGenerator.mjs +1 -1
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");
|
@@ -10,7 +10,7 @@ var _console = require("./helpers/console");
|
|
10
10
|
var _templateLiteralTag = require("./helpers/templateLiteralTag");
|
11
11
|
var _function = require("./helpers/function");
|
12
12
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
13
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
14
14
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
15
15
|
/* eslint-disable jsdoc/require-description-complete-sentence */
|
16
16
|
/**
|
@@ -23,7 +23,7 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
23
23
|
* ::: only-for react
|
24
24
|
* This page lists all the **Handsontable hooks** – callbacks that let you react before or after an action occurs.
|
25
25
|
*
|
26
|
-
* Read more on the [Events and hooks](@/guides/getting-started/events-and-hooks.md) page.
|
26
|
+
* Read more on the [Events and hooks](@/guides/getting-started/events-and-hooks/events-and-hooks.md) page.
|
27
27
|
* :::
|
28
28
|
*
|
29
29
|
* @example
|
@@ -134,13 +134,13 @@ 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
|
*
|
141
141
|
* @event Hooks#afterChange
|
142
142
|
* @param {Array[]} changes 2D array containing information about each of the edited cells `[[row, prop, oldVal, newVal], ...]`. `row` is a visual row index.
|
143
|
-
* @param {string} [source] String that identifies source of hook call ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
143
|
+
* @param {string} [source] String that identifies source of hook call ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
144
144
|
* @example
|
145
145
|
* ::: only-for javascript
|
146
146
|
* ```js
|
@@ -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
|
@@ -244,7 +244,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
244
244
|
* @param {number} index Represents the visual index of first newly created column in the data source array.
|
245
245
|
* @param {number} amount Number of newly created columns in the data source array.
|
246
246
|
* @param {string} [source] String that identifies source of hook call
|
247
|
-
* ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
247
|
+
* ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
248
248
|
* @returns {*} If `false` then creating columns is cancelled.
|
249
249
|
* @example
|
250
250
|
* ::: only-for javascript
|
@@ -285,7 +285,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
285
285
|
* @param {number} index Represents the visual index of first newly created column in the data source.
|
286
286
|
* @param {number} amount Number of newly created columns in the data source.
|
287
287
|
* @param {string} [source] String that identifies source of hook call
|
288
|
-
* ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
288
|
+
* ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
289
289
|
*/
|
290
290
|
'afterCreateCol',
|
291
291
|
/**
|
@@ -295,7 +295,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
295
295
|
* @param {number} index Represents the visual index of first newly created row in the data source array.
|
296
296
|
* @param {number} amount Number of newly created rows in the data source array.
|
297
297
|
* @param {string} [source] String that identifies source of hook call
|
298
|
-
* ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
298
|
+
* ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
299
299
|
* @returns {*|boolean} If false is returned the action is canceled.
|
300
300
|
*/
|
301
301
|
'beforeCreateRow',
|
@@ -306,7 +306,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
306
306
|
* @param {number} index Represents the visual index of first newly created row in the data source array.
|
307
307
|
* @param {number} amount Number of newly created rows in the data source array.
|
308
308
|
* @param {string} [source] String that identifies source of hook call
|
309
|
-
* ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
309
|
+
* ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
310
310
|
*/
|
311
311
|
'afterCreateRow',
|
312
312
|
/**
|
@@ -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.
|
@@ -389,11 +389,11 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
389
389
|
* or the [`updateSettings()`](@/api/core.md#updatesettings) method.
|
390
390
|
*
|
391
391
|
* Read more:
|
392
|
-
* - [Binding to data](@/guides/getting-started/binding-to-data.md)
|
393
|
-
* - [Saving data](@/guides/getting-started/saving-data.md)
|
392
|
+
* - [Binding to data](@/guides/getting-started/binding-to-data/binding-to-data.md)
|
393
|
+
* - [Saving data](@/guides/getting-started/saving-data/saving-data.md)
|
394
394
|
*
|
395
395
|
* @event Hooks#afterLoadData
|
396
|
-
* @param {Array} sourceData An [array of arrays](@/guides/getting-started/binding-to-data.md#array-of-arrays), or an [array of objects](@/guides/getting-started/binding-to-data.md#array-of-objects), that contains Handsontable's data
|
396
|
+
* @param {Array} sourceData An [array of arrays](@/guides/getting-started/binding-to-data/binding-to-data.md#array-of-arrays), or an [array of objects](@/guides/getting-started/binding-to-data/binding-to-data.md#array-of-objects), that contains Handsontable's data
|
397
397
|
* @param {boolean} initialLoad A flag that indicates whether the data was loaded at Handsontable's initialization (`true`) or later (`false`)
|
398
398
|
* @param {string} source The source of the call
|
399
399
|
*/
|
@@ -403,18 +403,18 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
403
403
|
* modifies Handsontable's [`data`](@/api/options.md#data).
|
404
404
|
*
|
405
405
|
* Read more:
|
406
|
-
* - [Binding to data](@/guides/getting-started/binding-to-data.md)
|
407
|
-
* - [Saving data](@/guides/getting-started/saving-data.md)
|
406
|
+
* - [Binding to data](@/guides/getting-started/binding-to-data/binding-to-data.md)
|
407
|
+
* - [Saving data](@/guides/getting-started/saving-data/saving-data.md)
|
408
408
|
*
|
409
409
|
* @event Hooks#afterUpdateData
|
410
410
|
* @since 11.1.0
|
411
|
-
* @param {Array} sourceData An [array of arrays](@/guides/getting-started/binding-to-data.md#array-of-arrays), or an [array of objects](@/guides/getting-started/binding-to-data.md#array-of-objects), that contains Handsontable's data
|
411
|
+
* @param {Array} sourceData An [array of arrays](@/guides/getting-started/binding-to-data/binding-to-data.md#array-of-arrays), or an [array of objects](@/guides/getting-started/binding-to-data/binding-to-data.md#array-of-objects), that contains Handsontable's data
|
412
412
|
* @param {boolean} initialLoad A flag that indicates whether the data was loaded at Handsontable's initialization (`true`) or later (`false`)
|
413
413
|
* @param {string} source The source of the call
|
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
|
*/
|
@@ -502,7 +502,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
502
502
|
* @param {number} amount An amount of removed columns.
|
503
503
|
* @param {number[]} physicalColumns An array of physical columns removed from the data source.
|
504
504
|
* @param {string} [source] String that identifies source of hook call
|
505
|
-
* ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
505
|
+
* ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
506
506
|
*/
|
507
507
|
'afterRemoveCol',
|
508
508
|
/**
|
@@ -513,7 +513,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
513
513
|
* @param {number} amount An amount of removed rows.
|
514
514
|
* @param {number[]} physicalRows An array of physical rows removed from the data source.
|
515
515
|
* @param {string} [source] String that identifies source of hook call
|
516
|
-
* ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
516
|
+
* ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
517
517
|
*/
|
518
518
|
'afterRemoveRow',
|
519
519
|
/**
|
@@ -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
|
@@ -814,17 +856,17 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
814
856
|
* @event Hooks#afterSetDataAtCell
|
815
857
|
* @param {Array} changes An array of changes in format `[[row, column, oldValue, value], ...]`.
|
816
858
|
* @param {string} [source] String that identifies source of hook call
|
817
|
-
* ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
859
|
+
* ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
818
860
|
*/
|
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], ...]`.
|
826
868
|
* @param {string} [source] String that identifies source of hook call
|
827
|
-
* ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
869
|
+
* ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
828
870
|
*/
|
829
871
|
'afterSetDataAtRowProp',
|
830
872
|
/**
|
@@ -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.
|
@@ -856,7 +898,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
856
898
|
* @param {number} row Visual row index.
|
857
899
|
* @param {string|number} prop Property name / visual column index.
|
858
900
|
* @param {string} [source] String that identifies source of hook call
|
859
|
-
* ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
901
|
+
* ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
860
902
|
* @returns {undefined | boolean} If `false` the cell will be marked as invalid, `true` otherwise.
|
861
903
|
*/
|
862
904
|
'afterValidate',
|
@@ -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
|
/**
|
@@ -932,7 +967,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
932
967
|
* @event Hooks#beforeChange
|
933
968
|
* @param {Array[]} changes 2D array containing information about each of the edited cells `[[row, prop, oldVal, newVal], ...]`. `row` is a visual row index.
|
934
969
|
* @param {string} [source] String that identifies source of hook call
|
935
|
-
* ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
970
|
+
* ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
936
971
|
* @returns {undefined | boolean} If `false` all changes were cancelled, `true` otherwise.
|
937
972
|
* @example
|
938
973
|
* ::: only-for javascript
|
@@ -1002,7 +1037,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1002
1037
|
* @event Hooks#beforeChangeRender
|
1003
1038
|
* @param {Array[]} changes Array in form of `[row, prop, oldValue, newValue]`.
|
1004
1039
|
* @param {string} [source] String that identifies source of hook call
|
1005
|
-
* ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
1040
|
+
* ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
1006
1041
|
*/
|
1007
1042
|
'beforeChangeRender',
|
1008
1043
|
/**
|
@@ -1052,12 +1087,12 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1052
1087
|
* or the [`updateSettings()`](@/api/core.md#updatesettings) method.
|
1053
1088
|
*
|
1054
1089
|
* Read more:
|
1055
|
-
* - [Binding to data](@/guides/getting-started/binding-to-data.md)
|
1056
|
-
* - [Saving data](@/guides/getting-started/saving-data.md)
|
1090
|
+
* - [Binding to data](@/guides/getting-started/binding-to-data/binding-to-data.md)
|
1091
|
+
* - [Saving data](@/guides/getting-started/saving-data/saving-data.md)
|
1057
1092
|
*
|
1058
1093
|
* @event Hooks#beforeLoadData
|
1059
1094
|
* @since 8.0.0
|
1060
|
-
* @param {Array} sourceData An [array of arrays](@/guides/getting-started/binding-to-data.md#array-of-arrays), or an [array of objects](@/guides/getting-started/binding-to-data.md#array-of-objects), that contains Handsontable's data
|
1095
|
+
* @param {Array} sourceData An [array of arrays](@/guides/getting-started/binding-to-data/binding-to-data.md#array-of-arrays), or an [array of objects](@/guides/getting-started/binding-to-data/binding-to-data.md#array-of-objects), that contains Handsontable's data
|
1061
1096
|
* @param {boolean} initialLoad A flag that indicates whether the data was loaded at Handsontable's initialization (`true`) or later (`false`)
|
1062
1097
|
* @param {string} source The source of the call
|
1063
1098
|
* @returns {Array} The returned array will be used as Handsontable's new dataset.
|
@@ -1068,19 +1103,19 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1068
1103
|
* modifies Handsontable's [`data`](@/api/options.md#data).
|
1069
1104
|
*
|
1070
1105
|
* Read more:
|
1071
|
-
* - [Binding to data](@/guides/getting-started/binding-to-data.md)
|
1072
|
-
* - [Saving data](@/guides/getting-started/saving-data.md)
|
1106
|
+
* - [Binding to data](@/guides/getting-started/binding-to-data/binding-to-data.md)
|
1107
|
+
* - [Saving data](@/guides/getting-started/saving-data/saving-data.md)
|
1073
1108
|
*
|
1074
1109
|
* @event Hooks#beforeUpdateData
|
1075
1110
|
* @since 11.1.0
|
1076
|
-
* @param {Array} sourceData An [array of arrays](@/guides/getting-started/binding-to-data.md#array-of-arrays), or an [array of objects](@/guides/getting-started/binding-to-data.md#array-of-objects), that contains Handsontable's data
|
1111
|
+
* @param {Array} sourceData An [array of arrays](@/guides/getting-started/binding-to-data/binding-to-data.md#array-of-arrays), or an [array of objects](@/guides/getting-started/binding-to-data/binding-to-data.md#array-of-objects), that contains Handsontable's data
|
1077
1112
|
* @param {boolean} initialLoad A flag that indicates whether the data was loaded at Handsontable's initialization (`true`) or later (`false`)
|
1078
1113
|
* @param {string} source The source of the call
|
1079
1114
|
* @returns {Array} The returned array will be used as Handsontable's new dataset.
|
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
|
*
|
@@ -1146,7 +1181,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1146
1181
|
* @param {number} amount Amount of columns to be removed.
|
1147
1182
|
* @param {number[]} physicalColumns An array of physical columns removed from the data source.
|
1148
1183
|
* @param {string} [source] String that identifies source of hook call
|
1149
|
-
* ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
1184
|
+
* ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
1150
1185
|
* @returns {*|boolean} If false is returned the action is canceled.
|
1151
1186
|
*/
|
1152
1187
|
'beforeRemoveCol',
|
@@ -1158,7 +1193,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1158
1193
|
* @param {number} amount Amount of rows to be removed.
|
1159
1194
|
* @param {number[]} physicalRows An array of physical rows removed from the data source.
|
1160
1195
|
* @param {string} [source] String that identifies source of hook call
|
1161
|
-
* ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
1196
|
+
* ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
1162
1197
|
* @returns {*|boolean} If false is returned the action is canceled.
|
1163
1198
|
*/
|
1164
1199
|
'beforeRemoveRow',
|
@@ -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
|
/**
|
@@ -1301,7 +1344,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1301
1344
|
* @param {number} row Visual row index.
|
1302
1345
|
* @param {string|number} prop Property name / column index.
|
1303
1346
|
* @param {string} [source] String that identifies source of hook call
|
1304
|
-
* ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
1347
|
+
* ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
1305
1348
|
*/
|
1306
1349
|
'beforeValidate',
|
1307
1350
|
/**
|
@@ -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
|
@@ -1744,11 +1787,11 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1744
1787
|
* @param {number} finalIndex Visual column index, being a start index for the moved columns.
|
1745
1788
|
* Points to where the elements will be placed after the moving action.
|
1746
1789
|
* To check visualization of final index please take a look at
|
1747
|
-
* [documentation](@/guides/columns/column-moving.md).
|
1790
|
+
* [documentation](@/guides/columns/column-moving/column-moving.md).
|
1748
1791
|
* @param {number|undefined} dropIndex Visual column index, being a drop index for the moved columns.
|
1749
1792
|
* Points to where we are going to drop the moved elements. To check
|
1750
1793
|
* visualization of drop index please take a look at
|
1751
|
-
* [documentation](@/guides/columns/column-moving.md).
|
1794
|
+
* [documentation](@/guides/columns/column-moving/column-moving.md).
|
1752
1795
|
* It's `undefined` when `dragColumns` function wasn't called.
|
1753
1796
|
* @param {boolean} movePossible Indicates if it's possible to move rows to the desired position.
|
1754
1797
|
* @returns {undefined | boolean} If `false` the column will not be moved, `true` otherwise.
|
@@ -1763,11 +1806,11 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1763
1806
|
* @param {number} finalIndex Visual column index, being a start index for the moved columns.
|
1764
1807
|
* Points to where the elements will be placed after the moving action.
|
1765
1808
|
* To check visualization of final index please take a look at
|
1766
|
-
* [documentation](@/guides/columns/column-moving.md).
|
1809
|
+
* [documentation](@/guides/columns/column-moving/column-moving.md).
|
1767
1810
|
* @param {number|undefined} dropIndex Visual column index, being a drop index for the moved columns.
|
1768
1811
|
* Points to where we are going to drop the moved elements.
|
1769
1812
|
* To check visualization of drop index please take a look at
|
1770
|
-
* [documentation](@/guides/columns/column-moving.md).
|
1813
|
+
* [documentation](@/guides/columns/column-moving/column-moving.md).
|
1771
1814
|
* It's `undefined` when `dragColumns` function wasn't called.
|
1772
1815
|
* @param {boolean} movePossible Indicates if it was possible to move columns to the desired position.
|
1773
1816
|
* @param {boolean} orderChanged Indicates if order of columns was changed by move.
|
@@ -1801,11 +1844,11 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1801
1844
|
* @param {number} finalIndex Visual row index, being a start index for the moved rows.
|
1802
1845
|
* Points to where the elements will be placed after the moving action.
|
1803
1846
|
* To check visualization of final index please take a look at
|
1804
|
-
* [documentation](@/guides/rows/row-moving.md).
|
1847
|
+
* [documentation](@/guides/rows/row-moving/row-moving.md).
|
1805
1848
|
* @param {number|undefined} dropIndex Visual row index, being a drop index for the moved rows.
|
1806
1849
|
* Points to where we are going to drop the moved elements.
|
1807
1850
|
* To check visualization of drop index please take a look at
|
1808
|
-
* [documentation](@/guides/rows/row-moving.md).
|
1851
|
+
* [documentation](@/guides/rows/row-moving/row-moving.md).
|
1809
1852
|
* It's `undefined` when `dragRows` function wasn't called.
|
1810
1853
|
* @param {boolean} movePossible Indicates if it's possible to move rows to the desired position.
|
1811
1854
|
* @returns {*|boolean} If false is returned the action is canceled.
|
@@ -1820,11 +1863,11 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1820
1863
|
* @param {number} finalIndex Visual row index, being a start index for the moved rows.
|
1821
1864
|
* Points to where the elements will be placed after the moving action.
|
1822
1865
|
* To check visualization of final index please take a look at
|
1823
|
-
* [documentation](@/guides/rows/row-moving.md).
|
1866
|
+
* [documentation](@/guides/rows/row-moving/row-moving.md).
|
1824
1867
|
* @param {number|undefined} dropIndex Visual row index, being a drop index for the moved rows.
|
1825
1868
|
* Points to where we are going to drop the moved elements.
|
1826
1869
|
* To check visualization of drop index please take a look at
|
1827
|
-
* [documentation](@/guides/rows/row-moving.md).
|
1870
|
+
* [documentation](@/guides/rows/row-moving/row-moving.md).
|
1828
1871
|
* It's `undefined` when `dragRows` function wasn't called.
|
1829
1872
|
* @param {boolean} movePossible Indicates if it was possible to move rows to the desired position.
|
1830
1873
|
* @param {boolean} orderChanged Indicates if order of rows was changed by move.
|
@@ -1897,7 +1940,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1897
1940
|
'beforeStretchingColumnWidth',
|
1898
1941
|
/**
|
1899
1942
|
* Fired by the [`Filters`](@/api/filters.md) plugin,
|
1900
|
-
* before a [column filter](@/guides/columns/column-filter.md) gets applied.
|
1943
|
+
* before a [column filter](@/guides/columns/column-filter/column-filter.md) gets applied.
|
1901
1944
|
*
|
1902
1945
|
* [`beforeFilter`](#beforefilter) takes one argument (`conditionsStack`), which is an array of objects.
|
1903
1946
|
* Each object represents one of your [column filters](@/api/filters.md#addcondition),
|
@@ -1942,7 +1985,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1942
1985
|
*```
|
1943
1986
|
*
|
1944
1987
|
* Read more:
|
1945
|
-
* - [Guides: Column filter](@/guides/columns/column-filter.md)
|
1988
|
+
* - [Guides: Column filter](@/guides/columns/column-filter/column-filter.md)
|
1946
1989
|
* - [Hooks: `afterFilter`](#afterfilter)
|
1947
1990
|
* - [Options: `filters`](@/api/options.md#filters)
|
1948
1991
|
* - [Plugins: `Filters`](@/api/filters.md)
|
@@ -1955,7 +1998,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1955
1998
|
'beforeFilter',
|
1956
1999
|
/**
|
1957
2000
|
* Fired by the [`Filters`](@/api/filters.md) plugin,
|
1958
|
-
* after a [column filter](@/guides/columns/column-filter.md) gets applied.
|
2001
|
+
* after a [column filter](@/guides/columns/column-filter/column-filter.md) gets applied.
|
1959
2002
|
*
|
1960
2003
|
* [`afterFilter`](#afterfilter) takes one argument (`conditionsStack`), which is an array of objects.
|
1961
2004
|
* Each object represents one of your [column filters](@/api/filters.md#addcondition),
|
@@ -1989,7 +2032,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
1989
2032
|
* ```
|
1990
2033
|
*
|
1991
2034
|
* Read more:
|
1992
|
-
* - [Guides: Column filter](@/guides/columns/column-filter.md)
|
2035
|
+
* - [Guides: Column filter](@/guides/columns/column-filter/column-filter.md)
|
1993
2036
|
* - [Hooks: `beforeFilter`](#beforefilter)
|
1994
2037
|
* - [Options: `filters`](@/api/options.md#filters)
|
1995
2038
|
* - [Plugins: `Filters`](@/api/filters.md)
|
@@ -2009,7 +2052,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
2009
2052
|
* This hook gets also fired on Handsontable's initialization, returning the addresses and values of all cells.
|
2010
2053
|
*
|
2011
2054
|
* Read more:
|
2012
|
-
* - [Guides: Formula calculation](@/guides/formulas/formula-calculation.md)
|
2055
|
+
* - [Guides: Formula calculation](@/guides/formulas/formula-calculation/formula-calculation.md)
|
2013
2056
|
* - [HyperFormula documentation: `valuesUpdated`](https://hyperformula.handsontable.com/api/interfaces/listeners.html#valuesupdated)
|
2014
2057
|
*
|
2015
2058
|
* @since 9.0.0
|
@@ -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
|
*/
|
@@ -2098,7 +2141,7 @@ const REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-s
|
|
2098
2141
|
* @since 8.4.0
|
2099
2142
|
* @param {Array} doneActions Stack of actions which may be undone.
|
2100
2143
|
* @param {string} [source] String that identifies source of action
|
2101
|
-
* ([list of all available sources](@/guides/getting-started/events-and-hooks.md#definition-for-source-argument)).
|
2144
|
+
* ([list of all available sources](@/guides/getting-started/events-and-hooks/events-and-hooks.md#definition-for-source-argument)).
|
2102
2145
|
* @returns {*|boolean} If false is returned the action of changing undo stack is canceled.
|
2103
2146
|
*/
|
2104
2147
|
'beforeUndoStackChange',
|
@@ -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
|
@@ -2889,7 +2950,7 @@ class Hooks {
|
|
2889
2950
|
/**
|
2890
2951
|
* Registers a hook name (adds it to the list of the known hook names). Used by plugins.
|
2891
2952
|
* It is not necessary to call register, but if you use it, your plugin hook will be used returned by
|
2892
|
-
* the `getRegistered` method. (which itself is used in the [demo](@/guides/getting-started/events-and-hooks.md)).
|
2953
|
+
* the `getRegistered` method. (which itself is used in the [demo](@/guides/getting-started/events-and-hooks/events-and-hooks.md)).
|
2893
2954
|
*
|
2894
2955
|
* @param {string} key The hook name.
|
2895
2956
|
*
|