handsontable 0.0.0-next-d1c8e0e-20230621 → 0.0.0-next-c765185-20230622

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of handsontable might be problematic. Click here for more details.

Files changed (280) hide show
  1. package/3rdparty/walkontable/src/{selection/border/border.js → border.js} +12 -7
  2. package/3rdparty/walkontable/src/{selection/border/border.mjs → border.mjs} +12 -7
  3. package/3rdparty/walkontable/src/cell/coords.d.ts +1 -6
  4. package/3rdparty/walkontable/src/cell/coords.js +12 -61
  5. package/3rdparty/walkontable/src/cell/coords.mjs +12 -61
  6. package/3rdparty/walkontable/src/cell/range.d.ts +2 -9
  7. package/3rdparty/walkontable/src/cell/range.js +7 -44
  8. package/3rdparty/walkontable/src/cell/range.mjs +7 -44
  9. package/3rdparty/walkontable/src/core/_base.js +3 -9
  10. package/3rdparty/walkontable/src/core/_base.mjs +3 -9
  11. package/3rdparty/walkontable/src/core/clone.js +2 -2
  12. package/3rdparty/walkontable/src/core/clone.mjs +2 -2
  13. package/3rdparty/walkontable/src/core/core.js +2 -3
  14. package/3rdparty/walkontable/src/core/core.mjs +2 -3
  15. package/3rdparty/walkontable/src/event.js +7 -7
  16. package/3rdparty/walkontable/src/event.mjs +7 -7
  17. package/3rdparty/walkontable/src/facade/core.js +2 -2
  18. package/3rdparty/walkontable/src/facade/core.mjs +2 -2
  19. package/3rdparty/walkontable/src/index.js +2 -10
  20. package/3rdparty/walkontable/src/index.mjs +2 -2
  21. package/3rdparty/walkontable/src/overlay/_base.js +1 -1
  22. package/3rdparty/walkontable/src/overlay/_base.mjs +1 -1
  23. package/3rdparty/walkontable/src/overlay/inlineStart.js +4 -2
  24. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +4 -2
  25. package/3rdparty/walkontable/src/overlay/top.js +4 -2
  26. package/3rdparty/walkontable/src/overlay/top.mjs +4 -2
  27. package/3rdparty/walkontable/src/selection.js +355 -0
  28. package/3rdparty/walkontable/src/selection.mjs +349 -0
  29. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +0 -9
  30. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +0 -9
  31. package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +0 -9
  32. package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +0 -9
  33. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +0 -9
  34. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +0 -9
  35. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +0 -9
  36. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +0 -9
  37. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +0 -9
  38. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +0 -9
  39. package/3rdparty/walkontable/src/table.js +79 -7
  40. package/3rdparty/walkontable/src/table.mjs +80 -8
  41. package/CHANGELOG.md +31 -0
  42. package/base.js +2 -2
  43. package/base.mjs +2 -2
  44. package/core.d.ts +3 -5
  45. package/core.js +309 -127
  46. package/core.mjs +309 -127
  47. package/dataMap/metaManager/metaSchema.js +0 -19
  48. package/dataMap/metaManager/metaSchema.mjs +0 -19
  49. package/dist/handsontable.css +3 -8
  50. package/dist/handsontable.full.css +3 -8
  51. package/dist/handsontable.full.js +10826 -13821
  52. package/dist/handsontable.full.min.css +3 -3
  53. package/dist/handsontable.full.min.js +115 -115
  54. package/dist/handsontable.js +13565 -16560
  55. package/dist/handsontable.min.css +3 -3
  56. package/dist/handsontable.min.js +4 -4
  57. package/editorManager.js +94 -21
  58. package/editorManager.mjs +98 -26
  59. package/editors/textEditor/textEditor.js +11 -3
  60. package/editors/textEditor/textEditor.mjs +12 -4
  61. package/helpers/mixed.js +2 -2
  62. package/helpers/mixed.mjs +2 -2
  63. package/helpers/number.d.ts +0 -1
  64. package/helpers/number.js +0 -18
  65. package/helpers/number.mjs +0 -17
  66. package/package.json +1 -1
  67. package/pluginHooks.d.ts +1 -5
  68. package/pluginHooks.js +1 -89
  69. package/pluginHooks.mjs +1 -89
  70. package/plugins/collapsibleColumns/collapsibleColumns.js +24 -81
  71. package/plugins/collapsibleColumns/collapsibleColumns.mjs +24 -81
  72. package/plugins/columnSorting/columnSorting.js +8 -50
  73. package/plugins/columnSorting/columnSorting.mjs +9 -49
  74. package/plugins/columnSorting/index.js +2 -4
  75. package/plugins/columnSorting/index.mjs +1 -1
  76. package/plugins/comments/comments.js +4 -11
  77. package/plugins/comments/comments.mjs +4 -11
  78. package/plugins/contextMenu/contextMenu.d.ts +1 -1
  79. package/plugins/contextMenu/contextMenu.js +29 -80
  80. package/plugins/contextMenu/contextMenu.mjs +30 -81
  81. package/plugins/contextMenu/predefinedItems/alignment.js +0 -7
  82. package/plugins/contextMenu/predefinedItems/alignment.mjs +0 -7
  83. package/plugins/contextMenu/predefinedItems/clearColumn.js +3 -5
  84. package/plugins/contextMenu/predefinedItems/clearColumn.mjs +3 -5
  85. package/plugins/contextMenu/predefinedItems/columnLeft.js +3 -5
  86. package/plugins/contextMenu/predefinedItems/columnLeft.mjs +3 -5
  87. package/plugins/contextMenu/predefinedItems/columnRight.js +3 -5
  88. package/plugins/contextMenu/predefinedItems/columnRight.mjs +3 -5
  89. package/plugins/contextMenu/predefinedItems/readOnly.js +0 -7
  90. package/plugins/contextMenu/predefinedItems/readOnly.mjs +0 -7
  91. package/plugins/contextMenu/predefinedItems/removeColumn.js +5 -7
  92. package/plugins/contextMenu/predefinedItems/removeColumn.mjs +3 -5
  93. package/plugins/contextMenu/predefinedItems/removeRow.js +5 -7
  94. package/plugins/contextMenu/predefinedItems/removeRow.mjs +3 -5
  95. package/plugins/contextMenu/predefinedItems/rowAbove.js +3 -5
  96. package/plugins/contextMenu/predefinedItems/rowAbove.mjs +3 -5
  97. package/plugins/contextMenu/predefinedItems/rowBelow.js +3 -5
  98. package/plugins/contextMenu/predefinedItems/rowBelow.mjs +3 -5
  99. package/plugins/contextMenu/utils.js +16 -25
  100. package/plugins/contextMenu/utils.mjs +15 -24
  101. package/plugins/copyPaste/contextMenuItem/copy.js +0 -7
  102. package/plugins/copyPaste/contextMenuItem/copy.mjs +0 -7
  103. package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.js +1 -9
  104. package/plugins/copyPaste/contextMenuItem/copyColumnHeadersOnly.mjs +1 -9
  105. package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.js +1 -9
  106. package/plugins/copyPaste/contextMenuItem/copyWithColumnGroupHeaders.mjs +1 -9
  107. package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.js +1 -9
  108. package/plugins/copyPaste/contextMenuItem/copyWithColumnHeaders.mjs +1 -9
  109. package/plugins/copyPaste/contextMenuItem/cut.js +0 -7
  110. package/plugins/copyPaste/contextMenuItem/cut.mjs +0 -7
  111. package/plugins/copyPaste/copyPaste.js +1 -5
  112. package/plugins/copyPaste/copyPaste.mjs +1 -5
  113. package/plugins/customBorders/customBorders.js +53 -25
  114. package/plugins/customBorders/customBorders.mjs +54 -26
  115. package/plugins/dropdownMenu/dropdownMenu.d.ts +1 -1
  116. package/plugins/dropdownMenu/dropdownMenu.js +30 -94
  117. package/plugins/dropdownMenu/dropdownMenu.mjs +30 -94
  118. package/plugins/filters/filters.js +42 -62
  119. package/plugins/filters/filters.mjs +41 -61
  120. package/plugins/mergeCells/mergeCells.js +18 -5
  121. package/plugins/mergeCells/mergeCells.mjs +18 -5
  122. package/plugins/multiColumnSorting/multiColumnSorting.js +3 -42
  123. package/plugins/multiColumnSorting/multiColumnSorting.mjs +3 -42
  124. package/plugins/nestedHeaders/nestedHeaders.js +10 -132
  125. package/plugins/nestedHeaders/nestedHeaders.mjs +10 -132
  126. package/plugins/nestedHeaders/stateManager/index.js +0 -37
  127. package/plugins/nestedHeaders/stateManager/index.mjs +0 -37
  128. package/plugins/nestedRows/nestedRows.js +7 -52
  129. package/plugins/nestedRows/nestedRows.mjs +7 -52
  130. package/renderers/checkboxRenderer/checkboxRenderer.js +2 -2
  131. package/renderers/checkboxRenderer/checkboxRenderer.mjs +1 -1
  132. package/selection/highlight/constants.js +16 -0
  133. package/selection/highlight/constants.mjs +6 -0
  134. package/selection/highlight/highlight.js +89 -312
  135. package/selection/highlight/highlight.mjs +85 -302
  136. package/selection/highlight/types/activeHeader.js +9 -10
  137. package/selection/highlight/types/activeHeader.mjs +8 -10
  138. package/selection/highlight/types/area.js +27 -12
  139. package/selection/highlight/types/area.mjs +30 -16
  140. package/selection/highlight/types/{focus.js → cell.js} +8 -5
  141. package/selection/highlight/types/{focus.mjs → cell.mjs} +7 -5
  142. package/selection/highlight/types/customSelection.js +10 -7
  143. package/selection/highlight/types/customSelection.mjs +9 -7
  144. package/selection/highlight/types/fill.js +8 -5
  145. package/selection/highlight/types/fill.mjs +7 -5
  146. package/selection/highlight/types/header.js +20 -10
  147. package/selection/highlight/types/header.mjs +19 -10
  148. package/selection/highlight/types/{row.js → index.js} +31 -27
  149. package/selection/highlight/types/{row.mjs → index.mjs} +29 -24
  150. package/selection/highlight/visualSelection.js +27 -31
  151. package/selection/highlight/visualSelection.mjs +27 -31
  152. package/selection/index.js +7 -4
  153. package/selection/index.mjs +3 -2
  154. package/selection/mouseEventHandler.js +1 -1
  155. package/selection/mouseEventHandler.mjs +1 -1
  156. package/selection/range.js +8 -8
  157. package/selection/range.mjs +8 -8
  158. package/selection/selection.js +181 -315
  159. package/selection/selection.mjs +180 -310
  160. package/selection/transformation.js +96 -233
  161. package/selection/transformation.mjs +93 -230
  162. package/selection/utils.js +36 -12
  163. package/selection/utils.mjs +36 -13
  164. package/settings.d.ts +0 -1
  165. package/shortcuts/manager.js +0 -2
  166. package/shortcuts/manager.mjs +0 -2
  167. package/shortcuts/recorder.js +2 -2
  168. package/shortcuts/recorder.mjs +2 -2
  169. package/shortcuts/utils.js +5 -21
  170. package/shortcuts/utils.mjs +4 -20
  171. package/tableView.js +9 -58
  172. package/tableView.mjs +9 -58
  173. package/translations/indexMapper.js +9 -8
  174. package/translations/indexMapper.mjs +9 -8
  175. package/3rdparty/walkontable/src/selection/border/constants.js +0 -18
  176. package/3rdparty/walkontable/src/selection/border/constants.mjs +0 -13
  177. package/3rdparty/walkontable/src/selection/constants.js +0 -63
  178. package/3rdparty/walkontable/src/selection/constants.mjs +0 -51
  179. package/3rdparty/walkontable/src/selection/index.js +0 -30
  180. package/3rdparty/walkontable/src/selection/index.mjs +0 -5
  181. package/3rdparty/walkontable/src/selection/manager.js +0 -329
  182. package/3rdparty/walkontable/src/selection/manager.mjs +0 -323
  183. package/3rdparty/walkontable/src/selection/scanner.js +0 -364
  184. package/3rdparty/walkontable/src/selection/scanner.mjs +0 -360
  185. package/3rdparty/walkontable/src/selection/selection.js +0 -133
  186. package/3rdparty/walkontable/src/selection/selection.mjs +0 -127
  187. package/selection/highlight/types/areaLayered.js +0 -54
  188. package/selection/highlight/types/areaLayered.mjs +0 -49
  189. package/selection/highlight/types/column.js +0 -50
  190. package/selection/highlight/types/column.mjs +0 -45
  191. package/shortcutContexts/commands/editor/closeAndSave.js +0 -15
  192. package/shortcutContexts/commands/editor/closeAndSave.mjs +0 -10
  193. package/shortcutContexts/commands/editor/closeWithoutSaving.js +0 -13
  194. package/shortcutContexts/commands/editor/closeWithoutSaving.mjs +0 -8
  195. package/shortcutContexts/commands/editor/fastOpen.js +0 -16
  196. package/shortcutContexts/commands/editor/fastOpen.mjs +0 -11
  197. package/shortcutContexts/commands/editor/index.js +0 -16
  198. package/shortcutContexts/commands/editor/index.mjs +0 -12
  199. package/shortcutContexts/commands/editor/open.js +0 -29
  200. package/shortcutContexts/commands/editor/open.mjs +0 -24
  201. package/shortcutContexts/commands/emptySelectedCells.js +0 -12
  202. package/shortcutContexts/commands/emptySelectedCells.mjs +0 -7
  203. package/shortcutContexts/commands/extendCellsSelection/down.js +0 -15
  204. package/shortcutContexts/commands/extendCellsSelection/down.mjs +0 -10
  205. package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.js +0 -21
  206. package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.mjs +0 -16
  207. package/shortcutContexts/commands/extendCellsSelection/index.js +0 -26
  208. package/shortcutContexts/commands/extendCellsSelection/index.mjs +0 -22
  209. package/shortcutContexts/commands/extendCellsSelection/left.js +0 -15
  210. package/shortcutContexts/commands/extendCellsSelection/left.mjs +0 -10
  211. package/shortcutContexts/commands/extendCellsSelection/right.js +0 -15
  212. package/shortcutContexts/commands/extendCellsSelection/right.mjs +0 -10
  213. package/shortcutContexts/commands/extendCellsSelection/toColumns.js +0 -19
  214. package/shortcutContexts/commands/extendCellsSelection/toColumns.mjs +0 -14
  215. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +0 -22
  216. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +0 -17
  217. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +0 -17
  218. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +0 -12
  219. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +0 -17
  220. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +0 -12
  221. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +0 -40
  222. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +0 -35
  223. package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +0 -40
  224. package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +0 -35
  225. package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +0 -22
  226. package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +0 -17
  227. package/shortcutContexts/commands/extendCellsSelection/toRows.js +0 -19
  228. package/shortcutContexts/commands/extendCellsSelection/toRows.mjs +0 -14
  229. package/shortcutContexts/commands/extendCellsSelection/up.js +0 -15
  230. package/shortcutContexts/commands/extendCellsSelection/up.mjs +0 -10
  231. package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.js +0 -21
  232. package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.mjs +0 -16
  233. package/shortcutContexts/commands/index.js +0 -52
  234. package/shortcutContexts/commands/index.mjs +0 -48
  235. package/shortcutContexts/commands/moveCellSelection/down.js +0 -12
  236. package/shortcutContexts/commands/moveCellSelection/down.mjs +0 -7
  237. package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.js +0 -29
  238. package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.mjs +0 -24
  239. package/shortcutContexts/commands/moveCellSelection/index.js +0 -28
  240. package/shortcutContexts/commands/moveCellSelection/index.mjs +0 -24
  241. package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +0 -13
  242. package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +0 -8
  243. package/shortcutContexts/commands/moveCellSelection/inlineStart.js +0 -13
  244. package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +0 -8
  245. package/shortcutContexts/commands/moveCellSelection/left.js +0 -11
  246. package/shortcutContexts/commands/moveCellSelection/left.mjs +0 -6
  247. package/shortcutContexts/commands/moveCellSelection/right.js +0 -11
  248. package/shortcutContexts/commands/moveCellSelection/right.mjs +0 -6
  249. package/shortcutContexts/commands/moveCellSelection/toMostBottom.js +0 -16
  250. package/shortcutContexts/commands/moveCellSelection/toMostBottom.mjs +0 -11
  251. package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.js +0 -17
  252. package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.mjs +0 -12
  253. package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.js +0 -13
  254. package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.mjs +0 -8
  255. package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.js +0 -16
  256. package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.mjs +0 -11
  257. package/shortcutContexts/commands/moveCellSelection/toMostLeft.js +0 -36
  258. package/shortcutContexts/commands/moveCellSelection/toMostLeft.mjs +0 -31
  259. package/shortcutContexts/commands/moveCellSelection/toMostRight.js +0 -36
  260. package/shortcutContexts/commands/moveCellSelection/toMostRight.mjs +0 -31
  261. package/shortcutContexts/commands/moveCellSelection/toMostTop.js +0 -16
  262. package/shortcutContexts/commands/moveCellSelection/toMostTop.mjs +0 -11
  263. package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.js +0 -18
  264. package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.mjs +0 -13
  265. package/shortcutContexts/commands/moveCellSelection/up.js +0 -12
  266. package/shortcutContexts/commands/moveCellSelection/up.mjs +0 -7
  267. package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.js +0 -29
  268. package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.mjs +0 -24
  269. package/shortcutContexts/commands/populateSelectedCellsData.js +0 -35
  270. package/shortcutContexts/commands/populateSelectedCellsData.mjs +0 -30
  271. package/shortcutContexts/commands/selectAll.js +0 -11
  272. package/shortcutContexts/commands/selectAll.mjs +0 -6
  273. package/shortcutContexts/constants.js +0 -19
  274. package/shortcutContexts/constants.mjs +0 -12
  275. package/shortcutContexts/editor.js +0 -29
  276. package/shortcutContexts/editor.mjs +0 -25
  277. package/shortcutContexts/grid.js +0 -247
  278. package/shortcutContexts/grid.mjs +0 -243
  279. package/shortcutContexts/index.js +0 -29
  280. package/shortcutContexts/index.mjs +0 -15
package/pluginHooks.d.ts CHANGED
@@ -110,8 +110,8 @@ export interface Events {
110
110
  afterOnCellCornerDblClick?: (event: MouseEvent) => void;
111
111
  afterOnCellCornerMouseDown?: (event: MouseEvent) => void;
112
112
  afterOnCellMouseDown?: (event: MouseEvent, coords: CellCoords, TD: HTMLTableCellElement) => void;
113
- afterOnCellMouseOut?: (event: MouseEvent, coords: CellCoords, TD: HTMLTableCellElement) => void;
114
113
  afterOnCellMouseOver?: (event: MouseEvent, coords: CellCoords, TD: HTMLTableCellElement) => void;
114
+ afterOnCellMouseOut?: (event: MouseEvent, coords: CellCoords, TD: HTMLTableCellElement) => void;
115
115
  afterOnCellMouseUp?: (event: MouseEvent, coords: CellCoords, TD: HTMLTableCellElement) => void;
116
116
  afterPaste?: (data: CellValue[][], coords: RangeType[]) => void;
117
117
  afterPluginsInitialized?: () => void;
@@ -128,12 +128,10 @@ export interface Events {
128
128
  afterRowSequenceChange?: (source: 'init' | 'move' | 'insert' | 'remove' | 'update') => void;
129
129
  afterScrollHorizontally?: () => void;
130
130
  afterScrollVertically?: () => void;
131
- afterSelectColumns?: (from: CellCoords, to: CellCoords, highlight: CellCoords) => void;
132
131
  afterSelection?: (row: number, column: number, row2: number, column2: number, preventScrolling: { value: boolean }, selectionLayerLevel: number) => void;
133
132
  afterSelectionByProp?: (row: number, prop: string, row2: number, prop2: string, preventScrolling: { value: boolean }, selectionLayerLevel: number) => void;
134
133
  afterSelectionEnd?: (row: number, column: number, row2: number, column2: number, selectionLayerLevel: number) => void;
135
134
  afterSelectionEndByProp?: (row: number, prop: string, row2: number, prop2: string, selectionLayerLevel: number) => void;
136
- afterSelectRows?: (from: CellCoords, to: CellCoords, highlight: CellCoords) => void;
137
135
  afterSetCellMeta?: (row: number, column: number, key: string, value: any) => void;
138
136
  afterSetDataAtCell?: (changes: CellChange[], source?: ChangeSource) => void;
139
137
  afterSetDataAtRowProp?: (changes: CellChange[], source?: ChangeSource) => void;
@@ -207,8 +205,6 @@ export interface Events {
207
205
  beforeRenderer?: (TD: HTMLTableCellElement, row: number, column: number, prop: string | number, value: CellValue, cellProperties: CellProperties) => void;
208
206
  beforeRowMove?: (movedRows: number[], finalIndex: number, dropIndex: number | undefined, movePossible: boolean) => void;
209
207
  beforeRowResize?: (newSize: number, row: number, isDoubleClick: boolean) => number | void;
210
- beforeSelectColumns?: (from: CellCoords, to: CellCoords, highlight: CellCoords) => void;
211
- beforeSelectRows?: (from: CellCoords, to: CellCoords, highlight: CellCoords) => void;
212
208
  beforeSetCellMeta?: (row: number, col: number, key: string, value: any) => boolean | void;
213
209
  beforeSetRangeEnd?: (coords: CellCoords) => void;
214
210
  beforeSetRangeStart?: (coords: CellCoords) => void;
package/pluginHooks.js CHANGED
@@ -680,94 +680,6 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
680
680
  * @param {number} selectionLayerLevel The number which indicates what selection layer is currently modified.
681
681
  */
682
682
  'afterSelectionEndByProp',
683
- /**
684
- * Fired before one or more columns are selected (e.g. During mouse header click or {@link Core#selectColumns} API call).
685
- *
686
- * @since 13.0.0
687
- * @event Hooks#beforeSelectColumns
688
- * @param {CellCoords} from Selection start coords object.
689
- * @param {CellCoords} to Selection end coords object.
690
- * @param {CellCoords} highlight Selection cell focus coords object.
691
- * @example
692
- * ::: only-for javascript
693
- * ```js
694
- * new Handsontable(element, {
695
- * beforeSelectColumns: (from, to, highlight) => {
696
- * // Extend the column selection by one column left and one column right.
697
- * from.col = Math.max(from.col - 1, 0);
698
- * to.col = Math.min(to.col + 1, this.countCols() - 1);
699
- * }
700
- * })
701
- * ```
702
- * :::
703
- *
704
- * ::: only-for react
705
- * ```jsx
706
- * <HotTable
707
- * beforeSelectColumns={(from, to, highlight) => {
708
- * // Extend the column selection by one column left and one column right.
709
- * from.col = Math.max(from.col - 1, 0);
710
- * to.col = Math.min(to.col + 1, this.countCols() - 1);
711
- * }}
712
- * />
713
- * ```
714
- * :::
715
- */
716
- 'beforeSelectColumns',
717
- /**
718
- * Fired after one or more columns are selected (e.g. During mouse header click or {@link Core#selectColumns} API call).
719
- *
720
- * @since 13.0.0
721
- * @event Hooks#afterSelectColumns
722
- * @param {CellCoords} from Selection start coords object.
723
- * @param {CellCoords} to Selection end coords object.
724
- * @param {CellCoords} highlight Selection cell focus coords object.
725
- */
726
- 'afterSelectColumns',
727
- /**
728
- * Fired before one or more rows are selected (e.g. During mouse header click or {@link Core#selectRows} API call).
729
- *
730
- * @since 13.0.0
731
- * @event Hooks#beforeSelectRows
732
- * @param {CellCoords} from Selection start coords object.
733
- * @param {CellCoords} to Selection end coords object.
734
- * @param {CellCoords} highlight Selection cell focus coords object.
735
- * @example
736
- * ::: only-for javascript
737
- * ```js
738
- * new Handsontable(element, {
739
- * beforeSelectRows: (from, to, highlight) => {
740
- * // Extend the row selection by one row up and one row bottom more.
741
- * from.row = Math.max(from.row - 1, 0);
742
- * to.row = Math.min(to.row + 1, this.countRows() - 1);
743
- * }
744
- * })
745
- * ```
746
- * :::
747
- *
748
- * ::: only-for react
749
- * ```jsx
750
- * <HotTable
751
- * beforeSelectRows={(from, to, highlight) => {
752
- * // Extend the row selection by one row up and one row bottom more.
753
- * from.row = Math.max(from.row - 1, 0);
754
- * to.row = Math.min(to.row + 1, this.countRows() - 1);
755
- * }}
756
- * />
757
- * ```
758
- * :::
759
- */
760
- 'beforeSelectRows',
761
- /**
762
- * Fired after one or more rows are selected (e.g. During mouse header click or {@link Core#selectRows} API call).
763
- *
764
- * @since 13.0.0
765
- * @event Hooks#afterSelectRows
766
- * @param {CellCoords} from Selection start coords object.
767
- * @param {CellCoords} to Selection end coords object.
768
- * @param {CellCoords} highlight Selection cell focus coords object.
769
- */
770
- 'afterSelectRows',
771
683
  /**
772
684
  * Fired after cell meta is changed.
773
685
  *
@@ -2491,7 +2403,7 @@ var REMOVED_HOOKS = new Map([['modifyRow', '8.0.0'], ['modifyCol', '8.0.0'], ['u
2491
2403
  * @type {Map<string, string>}
2492
2404
  */
2493
2405
  /* eslint-enable jsdoc/require-description-complete-sentence */
2494
- var DEPRECATED_HOOKS = new Map([['beforeRemoveCellClassNames', 'The hook "beforeRemoveCellClassNames" is deprecated and will be removed in the next major release.']]);
2406
+ var DEPRECATED_HOOKS = new Map([]);
2495
2407
  var Hooks = /*#__PURE__*/function () {
2496
2408
  /**
2497
2409
  *
package/pluginHooks.mjs CHANGED
@@ -677,94 +677,6 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
677
677
  * @param {number} selectionLayerLevel The number which indicates what selection layer is currently modified.
678
678
  */
679
679
  'afterSelectionEndByProp',
680
- /**
681
- * Fired before one or more columns are selected (e.g. During mouse header click or {@link Core#selectColumns} API call).
682
- *
683
- * @since 13.0.0
684
- * @event Hooks#beforeSelectColumns
685
- * @param {CellCoords} from Selection start coords object.
686
- * @param {CellCoords} to Selection end coords object.
687
- * @param {CellCoords} highlight Selection cell focus coords object.
688
- * @example
689
- * ::: only-for javascript
690
- * ```js
691
- * new Handsontable(element, {
692
- * beforeSelectColumns: (from, to, highlight) => {
693
- * // Extend the column selection by one column left and one column right.
694
- * from.col = Math.max(from.col - 1, 0);
695
- * to.col = Math.min(to.col + 1, this.countCols() - 1);
696
- * }
697
- * })
698
- * ```
699
- * :::
700
- *
701
- * ::: only-for react
702
- * ```jsx
703
- * <HotTable
704
- * beforeSelectColumns={(from, to, highlight) => {
705
- * // Extend the column selection by one column left and one column right.
706
- * from.col = Math.max(from.col - 1, 0);
707
- * to.col = Math.min(to.col + 1, this.countCols() - 1);
708
- * }}
709
- * />
710
- * ```
711
- * :::
712
- */
713
- 'beforeSelectColumns',
714
- /**
715
- * Fired after one or more columns are selected (e.g. During mouse header click or {@link Core#selectColumns} API call).
716
- *
717
- * @since 13.0.0
718
- * @event Hooks#afterSelectColumns
719
- * @param {CellCoords} from Selection start coords object.
720
- * @param {CellCoords} to Selection end coords object.
721
- * @param {CellCoords} highlight Selection cell focus coords object.
722
- */
723
- 'afterSelectColumns',
724
- /**
725
- * Fired before one or more rows are selected (e.g. During mouse header click or {@link Core#selectRows} API call).
726
- *
727
- * @since 13.0.0
728
- * @event Hooks#beforeSelectRows
729
- * @param {CellCoords} from Selection start coords object.
730
- * @param {CellCoords} to Selection end coords object.
731
- * @param {CellCoords} highlight Selection cell focus coords object.
732
- * @example
733
- * ::: only-for javascript
734
- * ```js
735
- * new Handsontable(element, {
736
- * beforeSelectRows: (from, to, highlight) => {
737
- * // Extend the row selection by one row up and one row bottom more.
738
- * from.row = Math.max(from.row - 1, 0);
739
- * to.row = Math.min(to.row + 1, this.countRows() - 1);
740
- * }
741
- * })
742
- * ```
743
- * :::
744
- *
745
- * ::: only-for react
746
- * ```jsx
747
- * <HotTable
748
- * beforeSelectRows={(from, to, highlight) => {
749
- * // Extend the row selection by one row up and one row bottom more.
750
- * from.row = Math.max(from.row - 1, 0);
751
- * to.row = Math.min(to.row + 1, this.countRows() - 1);
752
- * }}
753
- * />
754
- * ```
755
- * :::
756
- */
757
- 'beforeSelectRows',
758
- /**
759
- * Fired after one or more rows are selected (e.g. During mouse header click or {@link Core#selectRows} API call).
760
- *
761
- * @since 13.0.0
762
- * @event Hooks#afterSelectRows
763
- * @param {CellCoords} from Selection start coords object.
764
- * @param {CellCoords} to Selection end coords object.
765
- * @param {CellCoords} highlight Selection cell focus coords object.
766
- */
767
- 'afterSelectRows',
768
680
  /**
769
681
  * Fired after cell meta is changed.
770
682
  *
@@ -2488,7 +2400,7 @@ var REMOVED_HOOKS = new Map([['modifyRow', '8.0.0'], ['modifyCol', '8.0.0'], ['u
2488
2400
  * @type {Map<string, string>}
2489
2401
  */
2490
2402
  /* eslint-enable jsdoc/require-description-complete-sentence */
2491
- var DEPRECATED_HOOKS = new Map([['beforeRemoveCellClassNames', 'The hook "beforeRemoveCellClassNames" is deprecated and will be removed in the next major release.']]);
2403
+ var DEPRECATED_HOOKS = new Map([]);
2492
2404
  var Hooks = /*#__PURE__*/function () {
2493
2405
  /**
2494
2406
  *
@@ -69,7 +69,6 @@ var PLUGIN_PRIORITY = 290;
69
69
  exports.PLUGIN_PRIORITY = PLUGIN_PRIORITY;
70
70
  var SETTING_KEYS = ['nestedHeaders'];
71
71
  var COLLAPSIBLE_ELEMENT_CLASS = 'collapsibleIndicator';
72
- var SHORTCUTS_GROUP = PLUGIN_KEY;
73
72
  var actionDictionary = new Map([['collapse', {
74
73
  hideColumn: true,
75
74
  beforeHook: 'beforeColumnCollapse',
@@ -238,7 +237,6 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
238
237
  this.addHook('beforeOnCellMouseDown', function (event, coords, TD) {
239
238
  return _this2.onBeforeOnCellMouseDown(event, coords, TD);
240
239
  });
241
- this.registerShortcuts();
242
240
  _get(_getPrototypeOf(CollapsibleColumns.prototype), "enablePlugin", this).call(this);
243
241
  // @TODO: Workaround for broken plugin initialization abstraction (#6806).
244
242
  this.updatePlugin();
@@ -289,65 +287,10 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
289
287
  this.hot.columnIndexMapper.unregisterMap(this.pluginName);
290
288
  _classPrivateFieldSet(this, _collapsedColumnsMap, null);
291
289
  this.nestedHeadersPlugin = null;
292
- this.unregisterShortcuts();
293
290
  this.clearButtons();
294
291
  _get(_getPrototypeOf(CollapsibleColumns.prototype), "disablePlugin", this).call(this);
295
292
  }
296
293
 
297
- /**
298
- * Register shortcuts responsible for toggling collapsible columns.
299
- *
300
- * @private
301
- */
302
- }, {
303
- key: "registerShortcuts",
304
- value: function registerShortcuts() {
305
- var _this3 = this;
306
- this.hot.getShortcutManager().getContext('grid').addShortcut({
307
- keys: [['Enter']],
308
- callback: function callback() {
309
- var _this3$headerStateMan;
310
- var _this3$hot$getSelecte = _this3.hot.getSelectedRangeLast().highlight,
311
- row = _this3$hot$getSelecte.row,
312
- col = _this3$hot$getSelecte.col;
313
- var _ref = (_this3$headerStateMan = _this3.headerStateManager.getHeaderTreeNodeData(row, col)) !== null && _this3$headerStateMan !== void 0 ? _this3$headerStateMan : {},
314
- collapsible = _ref.collapsible,
315
- isCollapsed = _ref.isCollapsed,
316
- columnIndex = _ref.columnIndex;
317
- if (!collapsible) {
318
- return;
319
- }
320
- if (isCollapsed) {
321
- _this3.expandSection({
322
- row: row,
323
- col: columnIndex
324
- });
325
- } else {
326
- _this3.collapseSection({
327
- row: row,
328
- col: columnIndex
329
- });
330
- }
331
- },
332
- runOnlyIf: function runOnlyIf() {
333
- var _this3$hot$getSelecte2;
334
- return (_this3$hot$getSelecte2 = _this3.hot.getSelectedRangeLast()) === null || _this3$hot$getSelecte2 === void 0 ? void 0 : _this3$hot$getSelecte2.highlight.isHeader();
335
- },
336
- group: SHORTCUTS_GROUP
337
- });
338
- }
339
-
340
- /**
341
- * Unregister shortcuts responsible for toggling collapsible columns.
342
- *
343
- * @private
344
- */
345
- }, {
346
- key: "unregisterShortcuts",
347
- value: function unregisterShortcuts() {
348
- this.hot.getShortcutManager().getContext('grid').removeShortcutsByGroup(SHORTCUTS_GROUP);
349
- }
350
-
351
294
  /**
352
295
  * Clears the expand/collapse buttons.
353
296
  *
@@ -417,7 +360,7 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
417
360
  }, {
418
361
  key: "toggleAllCollapsibleSections",
419
362
  value: function toggleAllCollapsibleSections(action) {
420
- var _this4 = this;
363
+ var _this3 = this;
421
364
  var coords = this.headerStateManager.mapNodes(function (headerSettings) {
422
365
  var collapsible = headerSettings.collapsible,
423
366
  origColspan = headerSettings.origColspan,
@@ -426,7 +369,7 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
426
369
  isCollapsed = headerSettings.isCollapsed;
427
370
  if (collapsible === true && origColspan > 1 && (isCollapsed && action === 'expand' || !isCollapsed && action === 'collapse')) {
428
371
  return {
429
- row: _this4.headerStateManager.levelToRowCoords(headerLevel),
372
+ row: _this3.headerStateManager.levelToRowCoords(headerLevel),
430
373
  col: columnIndex
431
374
  };
432
375
  }
@@ -465,7 +408,7 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
465
408
  }, {
466
409
  key: "toggleCollapsibleSection",
467
410
  value: function toggleCollapsibleSection(coords, action) {
468
- var _this5 = this;
411
+ var _this4 = this;
469
412
  if (!actionDictionary.has(action)) {
470
413
  throw new Error("Unsupported action is passed (".concat(action, ")."));
471
414
  }
@@ -474,18 +417,18 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
474
417
  }
475
418
 
476
419
  // Ignore coordinates which points to the cells range.
477
- var filteredCoords = (0, _array.arrayFilter)(coords, function (_ref2) {
478
- var row = _ref2.row;
420
+ var filteredCoords = (0, _array.arrayFilter)(coords, function (_ref) {
421
+ var row = _ref.row;
479
422
  return row < 0;
480
423
  });
481
424
  var isActionPossible = filteredCoords.length > 0;
482
- (0, _array.arrayEach)(filteredCoords, function (_ref3) {
483
- var _this5$headerStateMan;
484
- var row = _ref3.row,
485
- column = _ref3.col;
486
- var _ref4 = (_this5$headerStateMan = _this5.headerStateManager.getHeaderSettings(row, column)) !== null && _this5$headerStateMan !== void 0 ? _this5$headerStateMan : {},
487
- collapsible = _ref4.collapsible,
488
- isCollapsed = _ref4.isCollapsed;
425
+ (0, _array.arrayEach)(filteredCoords, function (_ref2) {
426
+ var _this4$headerStateMan;
427
+ var row = _ref2.row,
428
+ column = _ref2.col;
429
+ var _ref3 = (_this4$headerStateMan = _this4.headerStateManager.getHeaderSettings(row, column)) !== null && _this4$headerStateMan !== void 0 ? _this4$headerStateMan : {},
430
+ collapsible = _ref3.collapsible,
431
+ isCollapsed = _ref3.isCollapsed;
489
432
  if (!collapsible || isCollapsed && action === 'collapse' || !isCollapsed && action === 'expand') {
490
433
  isActionPossible = false;
491
434
  return false;
@@ -494,13 +437,13 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
494
437
  var nodeModRollbacks = [];
495
438
  var affectedColumnsIndexes = [];
496
439
  if (isActionPossible) {
497
- (0, _array.arrayEach)(filteredCoords, function (_ref5) {
498
- var row = _ref5.row,
499
- column = _ref5.col;
500
- var _this5$headerStateMan2 = _this5.headerStateManager.triggerNodeModification(action, row, column),
501
- colspanCompensation = _this5$headerStateMan2.colspanCompensation,
502
- affectedColumns = _this5$headerStateMan2.affectedColumns,
503
- rollbackModification = _this5$headerStateMan2.rollbackModification;
440
+ (0, _array.arrayEach)(filteredCoords, function (_ref4) {
441
+ var row = _ref4.row,
442
+ column = _ref4.col;
443
+ var _this4$headerStateMan2 = _this4.headerStateManager.triggerNodeModification(action, row, column),
444
+ colspanCompensation = _this4$headerStateMan2.colspanCompensation,
445
+ affectedColumns = _this4$headerStateMan2.affectedColumns,
446
+ rollbackModification = _this4$headerStateMan2.rollbackModification;
504
447
  if (colspanCompensation > 0) {
505
448
  affectedColumnsIndexes.push.apply(affectedColumnsIndexes, _toConsumableArray(affectedColumns));
506
449
  nodeModRollbacks.push(rollbackModification);
@@ -527,7 +470,7 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
527
470
  }
528
471
  this.hot.batchExecution(function () {
529
472
  (0, _array.arrayEach)(affectedColumnsIndexes, function (visualColumn) {
530
- _classPrivateFieldGet(_this5, _collapsedColumnsMap).setValueAtIndex(_this5.hot.toPhysicalColumn(visualColumn), actionTranslator.hideColumn);
473
+ _classPrivateFieldGet(_this4, _collapsedColumnsMap).setValueAtIndex(_this4.hot.toPhysicalColumn(visualColumn), actionTranslator.hideColumn);
531
474
  });
532
475
  }, true);
533
476
  var isActionPerformed = this.getCollapsedColumns().length !== currentCollapsedColumns.length;
@@ -561,10 +504,10 @@ var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
561
504
  key: "onAfterGetColHeader",
562
505
  value: function onAfterGetColHeader(column, TH, headerLevel) {
563
506
  var _this$headerStateMana;
564
- var _ref6 = (_this$headerStateMana = this.headerStateManager.getHeaderSettings(headerLevel, column)) !== null && _this$headerStateMana !== void 0 ? _this$headerStateMana : {},
565
- collapsible = _ref6.collapsible,
566
- origColspan = _ref6.origColspan,
567
- isCollapsed = _ref6.isCollapsed;
507
+ var _ref5 = (_this$headerStateMana = this.headerStateManager.getHeaderSettings(headerLevel, column)) !== null && _this$headerStateMana !== void 0 ? _this$headerStateMana : {},
508
+ collapsible = _ref5.collapsible,
509
+ origColspan = _ref5.origColspan,
510
+ isCollapsed = _ref5.isCollapsed;
568
511
  var isNodeCollapsible = collapsible && origColspan > 1 && column >= this.hot.getSettings().fixedColumnsStart;
569
512
  var collapsibleElement = TH.querySelector(".".concat(COLLAPSIBLE_ELEMENT_CLASS));
570
513
  if (isNodeCollapsible) {
@@ -62,7 +62,6 @@ export var PLUGIN_KEY = 'collapsibleColumns';
62
62
  export var PLUGIN_PRIORITY = 290;
63
63
  var SETTING_KEYS = ['nestedHeaders'];
64
64
  var COLLAPSIBLE_ELEMENT_CLASS = 'collapsibleIndicator';
65
- var SHORTCUTS_GROUP = PLUGIN_KEY;
66
65
  var actionDictionary = new Map([['collapse', {
67
66
  hideColumn: true,
68
67
  beforeHook: 'beforeColumnCollapse',
@@ -231,7 +230,6 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
231
230
  this.addHook('beforeOnCellMouseDown', function (event, coords, TD) {
232
231
  return _this2.onBeforeOnCellMouseDown(event, coords, TD);
233
232
  });
234
- this.registerShortcuts();
235
233
  _get(_getPrototypeOf(CollapsibleColumns.prototype), "enablePlugin", this).call(this);
236
234
  // @TODO: Workaround for broken plugin initialization abstraction (#6806).
237
235
  this.updatePlugin();
@@ -282,65 +280,10 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
282
280
  this.hot.columnIndexMapper.unregisterMap(this.pluginName);
283
281
  _classPrivateFieldSet(this, _collapsedColumnsMap, null);
284
282
  this.nestedHeadersPlugin = null;
285
- this.unregisterShortcuts();
286
283
  this.clearButtons();
287
284
  _get(_getPrototypeOf(CollapsibleColumns.prototype), "disablePlugin", this).call(this);
288
285
  }
289
286
 
290
- /**
291
- * Register shortcuts responsible for toggling collapsible columns.
292
- *
293
- * @private
294
- */
295
- }, {
296
- key: "registerShortcuts",
297
- value: function registerShortcuts() {
298
- var _this3 = this;
299
- this.hot.getShortcutManager().getContext('grid').addShortcut({
300
- keys: [['Enter']],
301
- callback: function callback() {
302
- var _this3$headerStateMan;
303
- var _this3$hot$getSelecte = _this3.hot.getSelectedRangeLast().highlight,
304
- row = _this3$hot$getSelecte.row,
305
- col = _this3$hot$getSelecte.col;
306
- var _ref = (_this3$headerStateMan = _this3.headerStateManager.getHeaderTreeNodeData(row, col)) !== null && _this3$headerStateMan !== void 0 ? _this3$headerStateMan : {},
307
- collapsible = _ref.collapsible,
308
- isCollapsed = _ref.isCollapsed,
309
- columnIndex = _ref.columnIndex;
310
- if (!collapsible) {
311
- return;
312
- }
313
- if (isCollapsed) {
314
- _this3.expandSection({
315
- row: row,
316
- col: columnIndex
317
- });
318
- } else {
319
- _this3.collapseSection({
320
- row: row,
321
- col: columnIndex
322
- });
323
- }
324
- },
325
- runOnlyIf: function runOnlyIf() {
326
- var _this3$hot$getSelecte2;
327
- return (_this3$hot$getSelecte2 = _this3.hot.getSelectedRangeLast()) === null || _this3$hot$getSelecte2 === void 0 ? void 0 : _this3$hot$getSelecte2.highlight.isHeader();
328
- },
329
- group: SHORTCUTS_GROUP
330
- });
331
- }
332
-
333
- /**
334
- * Unregister shortcuts responsible for toggling collapsible columns.
335
- *
336
- * @private
337
- */
338
- }, {
339
- key: "unregisterShortcuts",
340
- value: function unregisterShortcuts() {
341
- this.hot.getShortcutManager().getContext('grid').removeShortcutsByGroup(SHORTCUTS_GROUP);
342
- }
343
-
344
287
  /**
345
288
  * Clears the expand/collapse buttons.
346
289
  *
@@ -410,7 +353,7 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
410
353
  }, {
411
354
  key: "toggleAllCollapsibleSections",
412
355
  value: function toggleAllCollapsibleSections(action) {
413
- var _this4 = this;
356
+ var _this3 = this;
414
357
  var coords = this.headerStateManager.mapNodes(function (headerSettings) {
415
358
  var collapsible = headerSettings.collapsible,
416
359
  origColspan = headerSettings.origColspan,
@@ -419,7 +362,7 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
419
362
  isCollapsed = headerSettings.isCollapsed;
420
363
  if (collapsible === true && origColspan > 1 && (isCollapsed && action === 'expand' || !isCollapsed && action === 'collapse')) {
421
364
  return {
422
- row: _this4.headerStateManager.levelToRowCoords(headerLevel),
365
+ row: _this3.headerStateManager.levelToRowCoords(headerLevel),
423
366
  col: columnIndex
424
367
  };
425
368
  }
@@ -458,7 +401,7 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
458
401
  }, {
459
402
  key: "toggleCollapsibleSection",
460
403
  value: function toggleCollapsibleSection(coords, action) {
461
- var _this5 = this;
404
+ var _this4 = this;
462
405
  if (!actionDictionary.has(action)) {
463
406
  throw new Error("Unsupported action is passed (".concat(action, ")."));
464
407
  }
@@ -467,18 +410,18 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
467
410
  }
468
411
 
469
412
  // Ignore coordinates which points to the cells range.
470
- var filteredCoords = arrayFilter(coords, function (_ref2) {
471
- var row = _ref2.row;
413
+ var filteredCoords = arrayFilter(coords, function (_ref) {
414
+ var row = _ref.row;
472
415
  return row < 0;
473
416
  });
474
417
  var isActionPossible = filteredCoords.length > 0;
475
- arrayEach(filteredCoords, function (_ref3) {
476
- var _this5$headerStateMan;
477
- var row = _ref3.row,
478
- column = _ref3.col;
479
- var _ref4 = (_this5$headerStateMan = _this5.headerStateManager.getHeaderSettings(row, column)) !== null && _this5$headerStateMan !== void 0 ? _this5$headerStateMan : {},
480
- collapsible = _ref4.collapsible,
481
- isCollapsed = _ref4.isCollapsed;
418
+ arrayEach(filteredCoords, function (_ref2) {
419
+ var _this4$headerStateMan;
420
+ var row = _ref2.row,
421
+ column = _ref2.col;
422
+ var _ref3 = (_this4$headerStateMan = _this4.headerStateManager.getHeaderSettings(row, column)) !== null && _this4$headerStateMan !== void 0 ? _this4$headerStateMan : {},
423
+ collapsible = _ref3.collapsible,
424
+ isCollapsed = _ref3.isCollapsed;
482
425
  if (!collapsible || isCollapsed && action === 'collapse' || !isCollapsed && action === 'expand') {
483
426
  isActionPossible = false;
484
427
  return false;
@@ -487,13 +430,13 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
487
430
  var nodeModRollbacks = [];
488
431
  var affectedColumnsIndexes = [];
489
432
  if (isActionPossible) {
490
- arrayEach(filteredCoords, function (_ref5) {
491
- var row = _ref5.row,
492
- column = _ref5.col;
493
- var _this5$headerStateMan2 = _this5.headerStateManager.triggerNodeModification(action, row, column),
494
- colspanCompensation = _this5$headerStateMan2.colspanCompensation,
495
- affectedColumns = _this5$headerStateMan2.affectedColumns,
496
- rollbackModification = _this5$headerStateMan2.rollbackModification;
433
+ arrayEach(filteredCoords, function (_ref4) {
434
+ var row = _ref4.row,
435
+ column = _ref4.col;
436
+ var _this4$headerStateMan2 = _this4.headerStateManager.triggerNodeModification(action, row, column),
437
+ colspanCompensation = _this4$headerStateMan2.colspanCompensation,
438
+ affectedColumns = _this4$headerStateMan2.affectedColumns,
439
+ rollbackModification = _this4$headerStateMan2.rollbackModification;
497
440
  if (colspanCompensation > 0) {
498
441
  affectedColumnsIndexes.push.apply(affectedColumnsIndexes, _toConsumableArray(affectedColumns));
499
442
  nodeModRollbacks.push(rollbackModification);
@@ -520,7 +463,7 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
520
463
  }
521
464
  this.hot.batchExecution(function () {
522
465
  arrayEach(affectedColumnsIndexes, function (visualColumn) {
523
- _classPrivateFieldGet(_this5, _collapsedColumnsMap).setValueAtIndex(_this5.hot.toPhysicalColumn(visualColumn), actionTranslator.hideColumn);
466
+ _classPrivateFieldGet(_this4, _collapsedColumnsMap).setValueAtIndex(_this4.hot.toPhysicalColumn(visualColumn), actionTranslator.hideColumn);
524
467
  });
525
468
  }, true);
526
469
  var isActionPerformed = this.getCollapsedColumns().length !== currentCollapsedColumns.length;
@@ -554,10 +497,10 @@ export var CollapsibleColumns = /*#__PURE__*/function (_BasePlugin) {
554
497
  key: "onAfterGetColHeader",
555
498
  value: function onAfterGetColHeader(column, TH, headerLevel) {
556
499
  var _this$headerStateMana;
557
- var _ref6 = (_this$headerStateMana = this.headerStateManager.getHeaderSettings(headerLevel, column)) !== null && _this$headerStateMana !== void 0 ? _this$headerStateMana : {},
558
- collapsible = _ref6.collapsible,
559
- origColspan = _ref6.origColspan,
560
- isCollapsed = _ref6.isCollapsed;
500
+ var _ref5 = (_this$headerStateMana = this.headerStateManager.getHeaderSettings(headerLevel, column)) !== null && _this$headerStateMana !== void 0 ? _this$headerStateMana : {},
501
+ collapsible = _ref5.collapsible,
502
+ origColspan = _ref5.origColspan,
503
+ isCollapsed = _ref5.isCollapsed;
561
504
  var isNodeCollapsible = collapsible && origColspan > 1 && column >= this.hot.getSettings().fixedColumnsStart;
562
505
  var collapsibleElement = TH.querySelector(".".concat(COLLAPSIBLE_ELEMENT_CLASS));
563
506
  if (isNodeCollapsible) {