handsontable 0.0.0-next-59715d3-20230523 → 0.0.0-next-93e34dc-20230601

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 (216) hide show
  1. package/3rdparty/walkontable/src/cell/coords.d.ts +6 -1
  2. package/3rdparty/walkontable/src/cell/coords.js +61 -12
  3. package/3rdparty/walkontable/src/cell/coords.mjs +61 -12
  4. package/3rdparty/walkontable/src/cell/range.d.ts +9 -2
  5. package/3rdparty/walkontable/src/cell/range.js +44 -7
  6. package/3rdparty/walkontable/src/cell/range.mjs +44 -7
  7. package/3rdparty/walkontable/src/core/_base.js +9 -3
  8. package/3rdparty/walkontable/src/core/_base.mjs +9 -3
  9. package/3rdparty/walkontable/src/core/clone.js +2 -2
  10. package/3rdparty/walkontable/src/core/clone.mjs +2 -2
  11. package/3rdparty/walkontable/src/core/core.js +3 -2
  12. package/3rdparty/walkontable/src/core/core.mjs +3 -2
  13. package/3rdparty/walkontable/src/event.js +7 -7
  14. package/3rdparty/walkontable/src/event.mjs +7 -7
  15. package/3rdparty/walkontable/src/facade/core.js +2 -2
  16. package/3rdparty/walkontable/src/facade/core.mjs +2 -2
  17. package/3rdparty/walkontable/src/index.js +10 -2
  18. package/3rdparty/walkontable/src/index.mjs +2 -2
  19. package/3rdparty/walkontable/src/overlay/_base.js +1 -1
  20. package/3rdparty/walkontable/src/overlay/_base.mjs +1 -1
  21. package/3rdparty/walkontable/src/overlay/inlineStart.js +2 -4
  22. package/3rdparty/walkontable/src/overlay/inlineStart.mjs +2 -4
  23. package/3rdparty/walkontable/src/overlay/top.js +2 -4
  24. package/3rdparty/walkontable/src/overlay/top.mjs +2 -4
  25. package/3rdparty/walkontable/src/{border.js → selection/border/border.js} +7 -12
  26. package/3rdparty/walkontable/src/{border.mjs → selection/border/border.mjs} +7 -12
  27. package/3rdparty/walkontable/src/selection/border/constants.js +18 -0
  28. package/3rdparty/walkontable/src/selection/border/constants.mjs +13 -0
  29. package/3rdparty/walkontable/src/selection/constants.js +63 -0
  30. package/3rdparty/walkontable/src/selection/constants.mjs +51 -0
  31. package/3rdparty/walkontable/src/selection/index.js +30 -0
  32. package/3rdparty/walkontable/src/selection/index.mjs +5 -0
  33. package/3rdparty/walkontable/src/selection/manager.js +328 -0
  34. package/3rdparty/walkontable/src/selection/manager.mjs +322 -0
  35. package/3rdparty/walkontable/src/selection/scanner.js +363 -0
  36. package/3rdparty/walkontable/src/selection/scanner.mjs +359 -0
  37. package/3rdparty/walkontable/src/selection/selection.js +133 -0
  38. package/3rdparty/walkontable/src/selection/selection.mjs +127 -0
  39. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.js +9 -0
  40. package/3rdparty/walkontable/src/table/mixin/calculatedColumns.mjs +9 -0
  41. package/3rdparty/walkontable/src/table/mixin/calculatedRows.js +9 -0
  42. package/3rdparty/walkontable/src/table/mixin/calculatedRows.mjs +9 -0
  43. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.js +9 -0
  44. package/3rdparty/walkontable/src/table/mixin/stickyColumnsStart.mjs +9 -0
  45. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.js +9 -0
  46. package/3rdparty/walkontable/src/table/mixin/stickyRowsBottom.mjs +9 -0
  47. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.js +9 -0
  48. package/3rdparty/walkontable/src/table/mixin/stickyRowsTop.mjs +9 -0
  49. package/3rdparty/walkontable/src/table.js +7 -79
  50. package/3rdparty/walkontable/src/table.mjs +8 -80
  51. package/base.js +2 -2
  52. package/base.mjs +2 -2
  53. package/core.d.ts +5 -3
  54. package/core.js +82 -300
  55. package/core.mjs +82 -300
  56. package/dataMap/metaManager/metaSchema.js +15 -0
  57. package/dataMap/metaManager/metaSchema.mjs +15 -0
  58. package/dist/handsontable.css +8 -3
  59. package/dist/handsontable.full.css +8 -3
  60. package/dist/handsontable.full.js +12245 -9953
  61. package/dist/handsontable.full.min.css +3 -3
  62. package/dist/handsontable.full.min.js +120 -120
  63. package/dist/handsontable.js +15898 -13606
  64. package/dist/handsontable.min.css +3 -3
  65. package/dist/handsontable.min.js +4 -4
  66. package/editorManager.js +20 -82
  67. package/editorManager.mjs +25 -86
  68. package/editors/textEditor/textEditor.js +3 -11
  69. package/editors/textEditor/textEditor.mjs +4 -12
  70. package/helpers/mixed.js +1 -1
  71. package/helpers/mixed.mjs +1 -1
  72. package/helpers/number.d.ts +1 -0
  73. package/helpers/number.js +18 -0
  74. package/helpers/number.mjs +17 -0
  75. package/package.json +1 -1
  76. package/pluginHooks.js +1 -1
  77. package/pluginHooks.mjs +1 -1
  78. package/plugins/copyPaste/copyPaste.js +5 -1
  79. package/plugins/copyPaste/copyPaste.mjs +5 -1
  80. package/plugins/customBorders/customBorders.js +18 -52
  81. package/plugins/customBorders/customBorders.mjs +19 -53
  82. package/plugins/mergeCells/mergeCells.js +5 -18
  83. package/plugins/mergeCells/mergeCells.mjs +5 -18
  84. package/plugins/nestedHeaders/nestedHeaders.js +89 -9
  85. package/plugins/nestedHeaders/nestedHeaders.mjs +89 -9
  86. package/plugins/nestedHeaders/stateManager/index.js +37 -0
  87. package/plugins/nestedHeaders/stateManager/index.mjs +37 -0
  88. package/renderers/checkboxRenderer/checkboxRenderer.js +2 -2
  89. package/renderers/checkboxRenderer/checkboxRenderer.mjs +1 -1
  90. package/selection/highlight/highlight.js +311 -88
  91. package/selection/highlight/highlight.mjs +301 -84
  92. package/selection/highlight/types/activeHeader.js +10 -9
  93. package/selection/highlight/types/activeHeader.mjs +10 -8
  94. package/selection/highlight/types/area.js +12 -27
  95. package/selection/highlight/types/area.mjs +16 -30
  96. package/selection/highlight/types/areaLayered.js +54 -0
  97. package/selection/highlight/types/areaLayered.mjs +49 -0
  98. package/selection/highlight/types/column.js +50 -0
  99. package/selection/highlight/types/column.mjs +45 -0
  100. package/selection/highlight/types/customSelection.js +7 -10
  101. package/selection/highlight/types/customSelection.mjs +7 -9
  102. package/selection/highlight/types/fill.js +5 -8
  103. package/selection/highlight/types/fill.mjs +5 -7
  104. package/selection/highlight/types/{cell.js → focus.js} +5 -8
  105. package/selection/highlight/types/{cell.mjs → focus.mjs} +5 -7
  106. package/selection/highlight/types/header.js +10 -20
  107. package/selection/highlight/types/header.mjs +10 -19
  108. package/selection/highlight/types/{index.js → row.js} +27 -31
  109. package/selection/highlight/types/{index.mjs → row.mjs} +24 -29
  110. package/selection/highlight/visualSelection.js +23 -28
  111. package/selection/highlight/visualSelection.mjs +23 -28
  112. package/selection/index.js +4 -7
  113. package/selection/index.mjs +2 -3
  114. package/selection/mouseEventHandler.js +1 -1
  115. package/selection/mouseEventHandler.mjs +1 -1
  116. package/selection/range.js +8 -8
  117. package/selection/range.mjs +8 -8
  118. package/selection/selection.js +296 -180
  119. package/selection/selection.mjs +291 -179
  120. package/selection/transformation.js +233 -96
  121. package/selection/transformation.mjs +230 -93
  122. package/selection/utils.js +12 -35
  123. package/selection/utils.mjs +13 -35
  124. package/settings.d.ts +1 -0
  125. package/shortcutContexts/commands/editor/closeAndSave.js +15 -0
  126. package/shortcutContexts/commands/editor/closeAndSave.mjs +10 -0
  127. package/shortcutContexts/commands/editor/closeWithoutSaving.js +13 -0
  128. package/shortcutContexts/commands/editor/closeWithoutSaving.mjs +8 -0
  129. package/shortcutContexts/commands/editor/fastOpen.js +16 -0
  130. package/shortcutContexts/commands/editor/fastOpen.mjs +11 -0
  131. package/shortcutContexts/commands/editor/index.js +16 -0
  132. package/shortcutContexts/commands/editor/index.mjs +12 -0
  133. package/shortcutContexts/commands/editor/open.js +29 -0
  134. package/shortcutContexts/commands/editor/open.mjs +24 -0
  135. package/shortcutContexts/commands/emptySelectedCells.js +12 -0
  136. package/shortcutContexts/commands/emptySelectedCells.mjs +7 -0
  137. package/shortcutContexts/commands/extendCellsSelection/down.js +15 -0
  138. package/shortcutContexts/commands/extendCellsSelection/down.mjs +10 -0
  139. package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.js +21 -0
  140. package/shortcutContexts/commands/extendCellsSelection/downByViewportHeight.mjs +16 -0
  141. package/shortcutContexts/commands/extendCellsSelection/index.js +24 -0
  142. package/shortcutContexts/commands/extendCellsSelection/index.mjs +20 -0
  143. package/shortcutContexts/commands/extendCellsSelection/left.js +15 -0
  144. package/shortcutContexts/commands/extendCellsSelection/left.mjs +10 -0
  145. package/shortcutContexts/commands/extendCellsSelection/right.js +15 -0
  146. package/shortcutContexts/commands/extendCellsSelection/right.mjs +10 -0
  147. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +22 -0
  148. package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +17 -0
  149. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.js +17 -0
  150. package/shortcutContexts/commands/extendCellsSelection/toMostInlineEnd.mjs +12 -0
  151. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.js +17 -0
  152. package/shortcutContexts/commands/extendCellsSelection/toMostInlineStart.mjs +12 -0
  153. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +39 -0
  154. package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +34 -0
  155. package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +39 -0
  156. package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +34 -0
  157. package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +22 -0
  158. package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +17 -0
  159. package/shortcutContexts/commands/extendCellsSelection/up.js +15 -0
  160. package/shortcutContexts/commands/extendCellsSelection/up.mjs +10 -0
  161. package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.js +21 -0
  162. package/shortcutContexts/commands/extendCellsSelection/upByViewportHeight.mjs +16 -0
  163. package/shortcutContexts/commands/index.js +51 -0
  164. package/shortcutContexts/commands/index.mjs +47 -0
  165. package/shortcutContexts/commands/moveCellSelection/down.js +12 -0
  166. package/shortcutContexts/commands/moveCellSelection/down.mjs +7 -0
  167. package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.js +11 -0
  168. package/shortcutContexts/commands/moveCellSelection/downByViewportHeight.mjs +6 -0
  169. package/shortcutContexts/commands/moveCellSelection/index.js +28 -0
  170. package/shortcutContexts/commands/moveCellSelection/index.mjs +24 -0
  171. package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +13 -0
  172. package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +8 -0
  173. package/shortcutContexts/commands/moveCellSelection/inlineStart.js +13 -0
  174. package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +8 -0
  175. package/shortcutContexts/commands/moveCellSelection/left.js +11 -0
  176. package/shortcutContexts/commands/moveCellSelection/left.mjs +6 -0
  177. package/shortcutContexts/commands/moveCellSelection/right.js +11 -0
  178. package/shortcutContexts/commands/moveCellSelection/right.mjs +6 -0
  179. package/shortcutContexts/commands/moveCellSelection/toMostBottom.js +16 -0
  180. package/shortcutContexts/commands/moveCellSelection/toMostBottom.mjs +11 -0
  181. package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.js +17 -0
  182. package/shortcutContexts/commands/moveCellSelection/toMostBottomInlineEnd.mjs +12 -0
  183. package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.js +13 -0
  184. package/shortcutContexts/commands/moveCellSelection/toMostInlineEnd.mjs +8 -0
  185. package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.js +16 -0
  186. package/shortcutContexts/commands/moveCellSelection/toMostInlineStart.mjs +11 -0
  187. package/shortcutContexts/commands/moveCellSelection/toMostLeft.js +35 -0
  188. package/shortcutContexts/commands/moveCellSelection/toMostLeft.mjs +30 -0
  189. package/shortcutContexts/commands/moveCellSelection/toMostRight.js +35 -0
  190. package/shortcutContexts/commands/moveCellSelection/toMostRight.mjs +30 -0
  191. package/shortcutContexts/commands/moveCellSelection/toMostTop.js +16 -0
  192. package/shortcutContexts/commands/moveCellSelection/toMostTop.mjs +11 -0
  193. package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.js +18 -0
  194. package/shortcutContexts/commands/moveCellSelection/toMostTopInlineStart.mjs +13 -0
  195. package/shortcutContexts/commands/moveCellSelection/up.js +12 -0
  196. package/shortcutContexts/commands/moveCellSelection/up.mjs +7 -0
  197. package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.js +11 -0
  198. package/shortcutContexts/commands/moveCellSelection/upByViewportHeight.mjs +6 -0
  199. package/shortcutContexts/commands/populateSelectedCellsData.js +35 -0
  200. package/shortcutContexts/commands/populateSelectedCellsData.mjs +30 -0
  201. package/shortcutContexts/commands/selectAll.js +11 -0
  202. package/shortcutContexts/commands/selectAll.mjs +6 -0
  203. package/shortcutContexts/constants.js +19 -0
  204. package/shortcutContexts/constants.mjs +12 -0
  205. package/shortcutContexts/editor.js +29 -0
  206. package/shortcutContexts/editor.mjs +25 -0
  207. package/shortcutContexts/grid.js +232 -0
  208. package/shortcutContexts/grid.mjs +228 -0
  209. package/shortcutContexts/index.js +29 -0
  210. package/shortcutContexts/index.mjs +15 -0
  211. package/tableView.js +58 -9
  212. package/tableView.mjs +58 -9
  213. package/3rdparty/walkontable/src/selection.js +0 -354
  214. package/3rdparty/walkontable/src/selection.mjs +0 -348
  215. package/selection/highlight/constants.js +0 -16
  216. package/selection/highlight/constants.mjs +0 -6
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.command = void 0;
5
+ var command = {
6
+ name: 'editorFastOpen',
7
+ callback: function callback(hot, event) {
8
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
9
+ highlight = _hot$getSelectedRange.highlight;
10
+ if (highlight.isHeader()) {
11
+ return;
12
+ }
13
+ hot._getEditorManager().openEditor(null, event, true);
14
+ }
15
+ };
16
+ exports.command = command;
@@ -0,0 +1,11 @@
1
+ export var command = {
2
+ name: 'editorFastOpen',
3
+ callback: function callback(hot, event) {
4
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
5
+ highlight = _hot$getSelectedRange.highlight;
6
+ if (highlight.isHeader()) {
7
+ return;
8
+ }
9
+ hot._getEditorManager().openEditor(null, event, true);
10
+ }
11
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.getAllCommands = getAllCommands;
5
+ var _closeAndSave = require("./closeAndSave");
6
+ var _closeWithoutSaving = require("./closeWithoutSaving");
7
+ var _fastOpen = require("./fastOpen");
8
+ var _open = require("./open");
9
+ /**
10
+ * Returns complete list of the shortcut commands for the cells editing feature.
11
+ *
12
+ * @returns {Function[]}
13
+ */
14
+ function getAllCommands() {
15
+ return [_closeAndSave.command, _closeWithoutSaving.command, _fastOpen.command, _open.command];
16
+ }
@@ -0,0 +1,12 @@
1
+ import { command as closeAndSave } from "./closeAndSave.mjs";
2
+ import { command as closeWithoutSaving } from "./closeWithoutSaving.mjs";
3
+ import { command as fastOpen } from "./fastOpen.mjs";
4
+ import { command as open } from "./open.mjs";
5
+ /**
6
+ * Returns complete list of the shortcut commands for the cells editing feature.
7
+ *
8
+ * @returns {Function[]}
9
+ */
10
+ export function getAllCommands() {
11
+ return [closeAndSave, closeWithoutSaving, fastOpen, open];
12
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.command = void 0;
5
+ require("core-js/modules/es.array.includes.js");
6
+ require("core-js/modules/es.string.includes.js");
7
+ var _event = require("../../../helpers/dom/event");
8
+ var command = {
9
+ name: 'editorOpen',
10
+ callback: function callback(hot, event, keys) {
11
+ var editorManager = hot._getEditorManager();
12
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
13
+ highlight = _hot$getSelectedRange.highlight;
14
+ if (highlight.isHeader()) {
15
+ return;
16
+ }
17
+ if (hot.getSettings().enterBeginsEditing) {
18
+ if (editorManager.cellProperties.readOnly) {
19
+ editorManager.moveSelectionAfterEnter();
20
+ } else {
21
+ editorManager.openEditor(null, event, true);
22
+ }
23
+ } else {
24
+ editorManager.moveSelectionAfterEnter(keys.includes('shift'));
25
+ }
26
+ (0, _event.stopImmediatePropagation)(event); // required by HandsontableEditor
27
+ }
28
+ };
29
+ exports.command = command;
@@ -0,0 +1,24 @@
1
+ import "core-js/modules/es.array.includes.js";
2
+ import "core-js/modules/es.string.includes.js";
3
+ import { stopImmediatePropagation } from "../../../helpers/dom/event.mjs";
4
+ export var command = {
5
+ name: 'editorOpen',
6
+ callback: function callback(hot, event, keys) {
7
+ var editorManager = hot._getEditorManager();
8
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
9
+ highlight = _hot$getSelectedRange.highlight;
10
+ if (highlight.isHeader()) {
11
+ return;
12
+ }
13
+ if (hot.getSettings().enterBeginsEditing) {
14
+ if (editorManager.cellProperties.readOnly) {
15
+ editorManager.moveSelectionAfterEnter();
16
+ } else {
17
+ editorManager.openEditor(null, event, true);
18
+ }
19
+ } else {
20
+ editorManager.moveSelectionAfterEnter(keys.includes('shift'));
21
+ }
22
+ stopImmediatePropagation(event); // required by HandsontableEditor
23
+ }
24
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.command = void 0;
5
+ var command = {
6
+ name: 'emptySelectedCells',
7
+ callback: function callback(hot) {
8
+ hot.emptySelectedCells();
9
+ hot._getEditorManager().prepareEditor();
10
+ }
11
+ };
12
+ exports.command = command;
@@ -0,0 +1,7 @@
1
+ export var command = {
2
+ name: 'emptySelectedCells',
3
+ callback: function callback(hot) {
4
+ hot.emptySelectedCells();
5
+ hot._getEditorManager().prepareEditor();
6
+ }
7
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.command = void 0;
5
+ var command = {
6
+ name: 'extendCellsSelectionDown',
7
+ callback: function callback(hot) {
8
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
9
+ highlight = _hot$getSelectedRange.highlight;
10
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByRowHeader()) {
11
+ hot.selection.transformEnd(1, 0);
12
+ }
13
+ }
14
+ };
15
+ exports.command = command;
@@ -0,0 +1,10 @@
1
+ export var command = {
2
+ name: 'extendCellsSelectionDown',
3
+ callback: function callback(hot) {
4
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
5
+ highlight = _hot$getSelectedRange.highlight;
6
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByRowHeader()) {
7
+ hot.selection.transformEnd(1, 0);
8
+ }
9
+ }
10
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.command = void 0;
5
+ var command = {
6
+ name: 'extendCellsSelectionDownByViewportHeight',
7
+ callback: function callback(hot) {
8
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
9
+ to = _hot$getSelectedRange.to;
10
+ var nextRowIndexToSelect = Math.min(to.row + hot.countVisibleRows(), hot.countRows() - 1);
11
+ var row = hot.rowIndexMapper.getNearestNotHiddenIndex(nextRowIndexToSelect, -1);
12
+ if (row !== null) {
13
+ var coords = hot._createCellCoords(row, to.col);
14
+ var scrollPadding = to.row - hot.view.getFirstFullyVisibleRow();
15
+ var nextVerticalScroll = Math.min(coords.row - scrollPadding, hot.countRows() - 1);
16
+ hot.selection.setRangeEnd(coords);
17
+ hot.scrollViewportTo(nextVerticalScroll);
18
+ }
19
+ }
20
+ };
21
+ exports.command = command;
@@ -0,0 +1,16 @@
1
+ export var command = {
2
+ name: 'extendCellsSelectionDownByViewportHeight',
3
+ callback: function callback(hot) {
4
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
5
+ to = _hot$getSelectedRange.to;
6
+ var nextRowIndexToSelect = Math.min(to.row + hot.countVisibleRows(), hot.countRows() - 1);
7
+ var row = hot.rowIndexMapper.getNearestNotHiddenIndex(nextRowIndexToSelect, -1);
8
+ if (row !== null) {
9
+ var coords = hot._createCellCoords(row, to.col);
10
+ var scrollPadding = to.row - hot.view.getFirstFullyVisibleRow();
11
+ var nextVerticalScroll = Math.min(coords.row - scrollPadding, hot.countRows() - 1);
12
+ hot.selection.setRangeEnd(coords);
13
+ hot.scrollViewportTo(nextVerticalScroll);
14
+ }
15
+ }
16
+ };
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.getAllCommands = getAllCommands;
5
+ var _down = require("./down");
6
+ var _downByViewportHeight = require("./downByViewportHeight");
7
+ var _left = require("./left");
8
+ var _right = require("./right");
9
+ var _toMostBottom = require("./toMostBottom");
10
+ var _toMostInlineEnd = require("./toMostInlineEnd");
11
+ var _toMostInlineStart = require("./toMostInlineStart");
12
+ var _toMostLeft = require("./toMostLeft");
13
+ var _toMostRight = require("./toMostRight");
14
+ var _toMostTop = require("./toMostTop");
15
+ var _up = require("./up");
16
+ var _upByViewportHeight = require("./upByViewportHeight");
17
+ /**
18
+ * Returns complete list of the shortcut commands for the cells selection extending feature.
19
+ *
20
+ * @returns {Function[]}
21
+ */
22
+ function getAllCommands() {
23
+ return [_down.command, _downByViewportHeight.command, _left.command, _right.command, _toMostBottom.command, _toMostInlineEnd.command, _toMostInlineStart.command, _toMostLeft.command, _toMostRight.command, _toMostTop.command, _up.command, _upByViewportHeight.command];
24
+ }
@@ -0,0 +1,20 @@
1
+ import { command as down } from "./down.mjs";
2
+ import { command as downByViewportHeight } from "./downByViewportHeight.mjs";
3
+ import { command as left } from "./left.mjs";
4
+ import { command as right } from "./right.mjs";
5
+ import { command as toMostBottom } from "./toMostBottom.mjs";
6
+ import { command as toMostInlineEnd } from "./toMostInlineEnd.mjs";
7
+ import { command as toMostInlineStart } from "./toMostInlineStart.mjs";
8
+ import { command as toMostLeft } from "./toMostLeft.mjs";
9
+ import { command as toMostRight } from "./toMostRight.mjs";
10
+ import { command as toMostTop } from "./toMostTop.mjs";
11
+ import { command as up } from "./up.mjs";
12
+ import { command as upByViewportHeight } from "./upByViewportHeight.mjs";
13
+ /**
14
+ * Returns complete list of the shortcut commands for the cells selection extending feature.
15
+ *
16
+ * @returns {Function[]}
17
+ */
18
+ export function getAllCommands() {
19
+ return [down, downByViewportHeight, left, right, toMostBottom, toMostInlineEnd, toMostInlineStart, toMostLeft, toMostRight, toMostTop, up, upByViewportHeight];
20
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.command = void 0;
5
+ var command = {
6
+ name: 'extendCellsSelectionLeft',
7
+ callback: function callback(hot) {
8
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
9
+ highlight = _hot$getSelectedRange.highlight;
10
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByColumnHeader()) {
11
+ hot.selection.transformEnd(0, -1 * hot.getDirectionFactor());
12
+ }
13
+ }
14
+ };
15
+ exports.command = command;
@@ -0,0 +1,10 @@
1
+ export var command = {
2
+ name: 'extendCellsSelectionLeft',
3
+ callback: function callback(hot) {
4
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
5
+ highlight = _hot$getSelectedRange.highlight;
6
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByColumnHeader()) {
7
+ hot.selection.transformEnd(0, -1 * hot.getDirectionFactor());
8
+ }
9
+ }
10
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.command = void 0;
5
+ var command = {
6
+ name: 'extendCellsSelectionRight',
7
+ callback: function callback(hot) {
8
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
9
+ highlight = _hot$getSelectedRange.highlight;
10
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByColumnHeader()) {
11
+ hot.selection.transformEnd(0, hot.getDirectionFactor());
12
+ }
13
+ }
14
+ };
15
+ exports.command = command;
@@ -0,0 +1,10 @@
1
+ export var command = {
2
+ name: 'extendCellsSelectionRight',
3
+ callback: function callback(hot) {
4
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
5
+ highlight = _hot$getSelectedRange.highlight;
6
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByColumnHeader()) {
7
+ hot.selection.transformEnd(0, hot.getDirectionFactor());
8
+ }
9
+ }
10
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.command = void 0;
5
+ var command = {
6
+ name: 'extendCellsSelectionToMostBottom',
7
+ callback: function callback(hot) {
8
+ var selection = hot.selection,
9
+ rowIndexMapper = hot.rowIndexMapper;
10
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
11
+ highlight = _hot$getSelectedRange.highlight,
12
+ from = _hot$getSelectedRange.from,
13
+ to = _hot$getSelectedRange.to;
14
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByRowHeader()) {
15
+ var row = rowIndexMapper.getNearestNotHiddenIndex(hot.countRows() - 1, -1);
16
+ selection.setRangeStart(from.clone());
17
+ selection.selectedByRowHeader.add(selection.getLayerLevel());
18
+ selection.setRangeEnd(hot._createCellCoords(row, to.col));
19
+ }
20
+ }
21
+ };
22
+ exports.command = command;
@@ -0,0 +1,17 @@
1
+ export var command = {
2
+ name: 'extendCellsSelectionToMostBottom',
3
+ callback: function callback(hot) {
4
+ var selection = hot.selection,
5
+ rowIndexMapper = hot.rowIndexMapper;
6
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
7
+ highlight = _hot$getSelectedRange.highlight,
8
+ from = _hot$getSelectedRange.from,
9
+ to = _hot$getSelectedRange.to;
10
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByRowHeader()) {
11
+ var row = rowIndexMapper.getNearestNotHiddenIndex(hot.countRows() - 1, -1);
12
+ selection.setRangeStart(from.clone());
13
+ selection.selectedByRowHeader.add(selection.getLayerLevel());
14
+ selection.setRangeEnd(hot._createCellCoords(row, to.col));
15
+ }
16
+ }
17
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.command = void 0;
5
+ var command = {
6
+ name: 'extendCellsSelectionToMostInlineEnd',
7
+ callback: function callback(hot) {
8
+ var selection = hot.selection,
9
+ columnIndexMapper = hot.columnIndexMapper;
10
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
11
+ highlight = _hot$getSelectedRange.highlight;
12
+ if (highlight.isCell()) {
13
+ selection.setRangeEnd(hot._createCellCoords(selection.selectedRange.current().from.row, columnIndexMapper.getNearestNotHiddenIndex(hot.countCols() - 1, -1)));
14
+ }
15
+ }
16
+ };
17
+ exports.command = command;
@@ -0,0 +1,12 @@
1
+ export var command = {
2
+ name: 'extendCellsSelectionToMostInlineEnd',
3
+ callback: function callback(hot) {
4
+ var selection = hot.selection,
5
+ columnIndexMapper = hot.columnIndexMapper;
6
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
7
+ highlight = _hot$getSelectedRange.highlight;
8
+ if (highlight.isCell()) {
9
+ selection.setRangeEnd(hot._createCellCoords(selection.selectedRange.current().from.row, columnIndexMapper.getNearestNotHiddenIndex(hot.countCols() - 1, -1)));
10
+ }
11
+ }
12
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.command = void 0;
5
+ var command = {
6
+ name: 'extendCellsSelectionToMostInlineStart',
7
+ callback: function callback(hot) {
8
+ var selection = hot.selection,
9
+ columnIndexMapper = hot.columnIndexMapper;
10
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
11
+ highlight = _hot$getSelectedRange.highlight;
12
+ if (highlight.isCell()) {
13
+ selection.setRangeEnd(hot._createCellCoords(selection.selectedRange.current().from.row, columnIndexMapper.getNearestNotHiddenIndex(0, 1)));
14
+ }
15
+ }
16
+ };
17
+ exports.command = command;
@@ -0,0 +1,12 @@
1
+ export var command = {
2
+ name: 'extendCellsSelectionToMostInlineStart',
3
+ callback: function callback(hot) {
4
+ var selection = hot.selection,
5
+ columnIndexMapper = hot.columnIndexMapper;
6
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
7
+ highlight = _hot$getSelectedRange.highlight;
8
+ if (highlight.isCell()) {
9
+ selection.setRangeEnd(hot._createCellCoords(selection.selectedRange.current().from.row, columnIndexMapper.getNearestNotHiddenIndex(0, 1)));
10
+ }
11
+ }
12
+ };
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.symbol.js");
4
+ require("core-js/modules/es.symbol.description.js");
5
+ require("core-js/modules/es.object.to-string.js");
6
+ require("core-js/modules/es.symbol.iterator.js");
7
+ require("core-js/modules/es.array.iterator.js");
8
+ require("core-js/modules/es.string.iterator.js");
9
+ require("core-js/modules/web.dom-collections.iterator.js");
10
+ require("core-js/modules/es.array.from.js");
11
+ require("core-js/modules/es.array.slice.js");
12
+ require("core-js/modules/es.function.name.js");
13
+ require("core-js/modules/es.regexp.exec.js");
14
+ exports.__esModule = true;
15
+ exports.command = void 0;
16
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
17
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
19
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
20
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
21
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
22
+ var command = {
23
+ name: 'extendCellsSelectionToMostLeft',
24
+ callback: function callback(hot) {
25
+ var selection = hot.selection,
26
+ columnIndexMapper = hot.columnIndexMapper;
27
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
28
+ highlight = _hot$getSelectedRange.highlight,
29
+ from = _hot$getSelectedRange.from,
30
+ to = _hot$getSelectedRange.to;
31
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByColumnHeader()) {
32
+ var column = columnIndexMapper.getNearestNotHiddenIndex.apply(columnIndexMapper, _toConsumableArray(hot.isRtl() ? [hot.countCols() - 1, -1] : [0, 1]));
33
+ selection.setRangeStart(from.clone());
34
+ selection.selectedByColumnHeader.add(selection.getLayerLevel());
35
+ selection.setRangeEnd(hot._createCellCoords(to.row, column));
36
+ }
37
+ }
38
+ };
39
+ exports.command = command;
@@ -0,0 +1,34 @@
1
+ import "core-js/modules/es.symbol.js";
2
+ import "core-js/modules/es.symbol.description.js";
3
+ import "core-js/modules/es.object.to-string.js";
4
+ import "core-js/modules/es.symbol.iterator.js";
5
+ import "core-js/modules/es.array.iterator.js";
6
+ import "core-js/modules/es.string.iterator.js";
7
+ import "core-js/modules/web.dom-collections.iterator.js";
8
+ import "core-js/modules/es.array.from.js";
9
+ import "core-js/modules/es.array.slice.js";
10
+ import "core-js/modules/es.function.name.js";
11
+ import "core-js/modules/es.regexp.exec.js";
12
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
13
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
15
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
16
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
17
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
18
+ export var command = {
19
+ name: 'extendCellsSelectionToMostLeft',
20
+ callback: function callback(hot) {
21
+ var selection = hot.selection,
22
+ columnIndexMapper = hot.columnIndexMapper;
23
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
24
+ highlight = _hot$getSelectedRange.highlight,
25
+ from = _hot$getSelectedRange.from,
26
+ to = _hot$getSelectedRange.to;
27
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByColumnHeader()) {
28
+ var column = columnIndexMapper.getNearestNotHiddenIndex.apply(columnIndexMapper, _toConsumableArray(hot.isRtl() ? [hot.countCols() - 1, -1] : [0, 1]));
29
+ selection.setRangeStart(from.clone());
30
+ selection.selectedByColumnHeader.add(selection.getLayerLevel());
31
+ selection.setRangeEnd(hot._createCellCoords(to.row, column));
32
+ }
33
+ }
34
+ };
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.symbol.js");
4
+ require("core-js/modules/es.symbol.description.js");
5
+ require("core-js/modules/es.object.to-string.js");
6
+ require("core-js/modules/es.symbol.iterator.js");
7
+ require("core-js/modules/es.array.iterator.js");
8
+ require("core-js/modules/es.string.iterator.js");
9
+ require("core-js/modules/web.dom-collections.iterator.js");
10
+ require("core-js/modules/es.array.from.js");
11
+ require("core-js/modules/es.array.slice.js");
12
+ require("core-js/modules/es.function.name.js");
13
+ require("core-js/modules/es.regexp.exec.js");
14
+ exports.__esModule = true;
15
+ exports.command = void 0;
16
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
17
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
19
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
20
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
21
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
22
+ var command = {
23
+ name: 'extendCellsSelectionToMostRight',
24
+ callback: function callback(hot) {
25
+ var selection = hot.selection,
26
+ columnIndexMapper = hot.columnIndexMapper;
27
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
28
+ highlight = _hot$getSelectedRange.highlight,
29
+ from = _hot$getSelectedRange.from,
30
+ to = _hot$getSelectedRange.to;
31
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByColumnHeader()) {
32
+ var column = columnIndexMapper.getNearestNotHiddenIndex.apply(columnIndexMapper, _toConsumableArray(hot.isRtl() ? [0, 1] : [hot.countCols() - 1, -1]));
33
+ selection.setRangeStart(from.clone());
34
+ selection.selectedByColumnHeader.add(selection.getLayerLevel());
35
+ selection.setRangeEnd(hot._createCellCoords(to.row, column));
36
+ }
37
+ }
38
+ };
39
+ exports.command = command;
@@ -0,0 +1,34 @@
1
+ import "core-js/modules/es.symbol.js";
2
+ import "core-js/modules/es.symbol.description.js";
3
+ import "core-js/modules/es.object.to-string.js";
4
+ import "core-js/modules/es.symbol.iterator.js";
5
+ import "core-js/modules/es.array.iterator.js";
6
+ import "core-js/modules/es.string.iterator.js";
7
+ import "core-js/modules/web.dom-collections.iterator.js";
8
+ import "core-js/modules/es.array.from.js";
9
+ import "core-js/modules/es.array.slice.js";
10
+ import "core-js/modules/es.function.name.js";
11
+ import "core-js/modules/es.regexp.exec.js";
12
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
13
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
15
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
16
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
17
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
18
+ export var command = {
19
+ name: 'extendCellsSelectionToMostRight',
20
+ callback: function callback(hot) {
21
+ var selection = hot.selection,
22
+ columnIndexMapper = hot.columnIndexMapper;
23
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
24
+ highlight = _hot$getSelectedRange.highlight,
25
+ from = _hot$getSelectedRange.from,
26
+ to = _hot$getSelectedRange.to;
27
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByColumnHeader()) {
28
+ var column = columnIndexMapper.getNearestNotHiddenIndex.apply(columnIndexMapper, _toConsumableArray(hot.isRtl() ? [0, 1] : [hot.countCols() - 1, -1]));
29
+ selection.setRangeStart(from.clone());
30
+ selection.selectedByColumnHeader.add(selection.getLayerLevel());
31
+ selection.setRangeEnd(hot._createCellCoords(to.row, column));
32
+ }
33
+ }
34
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.command = void 0;
5
+ var command = {
6
+ name: 'extendCellsSelectionToMostTop',
7
+ callback: function callback(hot) {
8
+ var selection = hot.selection,
9
+ rowIndexMapper = hot.rowIndexMapper;
10
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
11
+ highlight = _hot$getSelectedRange.highlight,
12
+ from = _hot$getSelectedRange.from,
13
+ to = _hot$getSelectedRange.to;
14
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByRowHeader()) {
15
+ var row = rowIndexMapper.getNearestNotHiddenIndex(0, 1);
16
+ selection.setRangeStart(from.clone());
17
+ selection.selectedByRowHeader.add(selection.getLayerLevel());
18
+ selection.setRangeEnd(hot._createCellCoords(row, to.col));
19
+ }
20
+ }
21
+ };
22
+ exports.command = command;
@@ -0,0 +1,17 @@
1
+ export var command = {
2
+ name: 'extendCellsSelectionToMostTop',
3
+ callback: function callback(hot) {
4
+ var selection = hot.selection,
5
+ rowIndexMapper = hot.rowIndexMapper;
6
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
7
+ highlight = _hot$getSelectedRange.highlight,
8
+ from = _hot$getSelectedRange.from,
9
+ to = _hot$getSelectedRange.to;
10
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByRowHeader()) {
11
+ var row = rowIndexMapper.getNearestNotHiddenIndex(0, 1);
12
+ selection.setRangeStart(from.clone());
13
+ selection.selectedByRowHeader.add(selection.getLayerLevel());
14
+ selection.setRangeEnd(hot._createCellCoords(row, to.col));
15
+ }
16
+ }
17
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.command = void 0;
5
+ var command = {
6
+ name: 'extendCellsSelectionUp',
7
+ callback: function callback(hot) {
8
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
9
+ highlight = _hot$getSelectedRange.highlight;
10
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByRowHeader()) {
11
+ hot.selection.transformEnd(-1, 0);
12
+ }
13
+ }
14
+ };
15
+ exports.command = command;
@@ -0,0 +1,10 @@
1
+ export var command = {
2
+ name: 'extendCellsSelectionUp',
3
+ callback: function callback(hot) {
4
+ var _hot$getSelectedRange = hot.getSelectedRangeLast(),
5
+ highlight = _hot$getSelectedRange.highlight;
6
+ if (highlight.isCell() || highlight.isHeader() && hot.selection.isSelectedByRowHeader()) {
7
+ hot.selection.transformEnd(-1, 0);
8
+ }
9
+ }
10
+ };