handsontable 0.0.0-next-ba17d71-20240207 → 0.0.0-next-a2cc849-20240208

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 (59) hide show
  1. package/3rdparty/walkontable/src/cell/range.d.ts +1 -0
  2. package/3rdparty/walkontable/src/cell/range.js +12 -0
  3. package/3rdparty/walkontable/src/cell/range.mjs +12 -0
  4. package/base.js +2 -2
  5. package/base.mjs +2 -2
  6. package/core/viewportScroll/index.js +4 -1
  7. package/core/viewportScroll/index.mjs +4 -1
  8. package/core/viewportScroll/scrollStrategies/focusScroll.js +15 -0
  9. package/core/viewportScroll/scrollStrategies/focusScroll.mjs +11 -0
  10. package/core.js +14 -0
  11. package/core.mjs +14 -0
  12. package/dist/handsontable.css +2 -2
  13. package/dist/handsontable.full.css +2 -2
  14. package/dist/handsontable.full.js +1304 -1022
  15. package/dist/handsontable.full.min.css +2 -2
  16. package/dist/handsontable.full.min.js +151 -151
  17. package/dist/handsontable.js +1306 -1024
  18. package/dist/handsontable.min.css +2 -2
  19. package/dist/handsontable.min.js +32 -32
  20. package/editorManager.js +12 -8
  21. package/editorManager.mjs +12 -8
  22. package/helpers/mixed.js +1 -1
  23. package/helpers/mixed.mjs +1 -1
  24. package/package.json +1 -1
  25. package/pluginHooks.d.ts +1 -0
  26. package/pluginHooks.js +43 -1
  27. package/pluginHooks.mjs +43 -1
  28. package/plugins/collapsibleColumns/collapsibleColumns.js +7 -1
  29. package/plugins/collapsibleColumns/collapsibleColumns.mjs +7 -1
  30. package/plugins/columnSorting/columnSorting.js +6 -0
  31. package/plugins/columnSorting/columnSorting.mjs +6 -0
  32. package/plugins/contextMenu/menu/defaultShortcutsList.js +26 -10
  33. package/plugins/contextMenu/menu/defaultShortcutsList.mjs +26 -10
  34. package/plugins/mergeCells/mergeCells.js +3 -1
  35. package/plugins/mergeCells/mergeCells.mjs +3 -1
  36. package/plugins/multiColumnSorting/multiColumnSorting.js +6 -0
  37. package/plugins/multiColumnSorting/multiColumnSorting.mjs +6 -0
  38. package/plugins/nestedHeaders/nestedHeaders.js +1 -0
  39. package/plugins/nestedHeaders/nestedHeaders.mjs +1 -0
  40. package/plugins/nestedRows/nestedRows.js +7 -1
  41. package/plugins/nestedRows/nestedRows.mjs +7 -1
  42. package/renderers/checkboxRenderer/checkboxRenderer.js +4 -4
  43. package/renderers/checkboxRenderer/checkboxRenderer.mjs +4 -4
  44. package/selection/selection.js +156 -30
  45. package/selection/selection.mjs +155 -29
  46. package/selection/transformation.js +18 -27
  47. package/selection/transformation.mjs +18 -27
  48. package/shortcutContexts/commands/editor/closeAndSave.js +2 -2
  49. package/shortcutContexts/commands/editor/closeAndSave.mjs +2 -2
  50. package/shortcutContexts/commands/editor/open.js +18 -3
  51. package/shortcutContexts/commands/editor/open.mjs +18 -3
  52. package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +6 -1
  53. package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +6 -1
  54. package/shortcutContexts/commands/moveCellSelection/inlineStart.js +6 -1
  55. package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +6 -1
  56. package/shortcutContexts/grid.js +2 -2
  57. package/shortcutContexts/grid.mjs +2 -2
  58. package/shortcuts/context.js +2 -1
  59. package/shortcuts/context.mjs +2 -1
@@ -157,12 +157,12 @@ function shortcutsGridContext(hot) {
157
157
  keys: [['Tab']],
158
158
  // The property value is controlled by focusCatcher module (https://github.com/handsontable/handsontable/blob/master/handsontable/src/core/focusCatcher/index.js)
159
159
  preventDefault: false,
160
- callback: () => commandsPool.moveCellSelectionInlineStart()
160
+ callback: event => commandsPool.moveCellSelectionInlineStart(event)
161
161
  }, {
162
162
  keys: [['Shift', 'Tab']],
163
163
  // The property value is controlled by focusCatcher module (https://github.com/handsontable/handsontable/blob/master/handsontable/src/core/focusCatcher/index.js)
164
164
  preventDefault: false,
165
- callback: () => commandsPool.moveCellSelectionInlineEnd()
165
+ callback: event => commandsPool.moveCellSelectionInlineEnd(event)
166
166
  }, {
167
167
  keys: [['Control/Meta', 'Backspace']],
168
168
  callback: () => commandsPool.scrollToFocusedCell()
@@ -153,12 +153,12 @@ export function shortcutsGridContext(hot) {
153
153
  keys: [['Tab']],
154
154
  // The property value is controlled by focusCatcher module (https://github.com/handsontable/handsontable/blob/master/handsontable/src/core/focusCatcher/index.js)
155
155
  preventDefault: false,
156
- callback: () => commandsPool.moveCellSelectionInlineStart()
156
+ callback: event => commandsPool.moveCellSelectionInlineStart(event)
157
157
  }, {
158
158
  keys: [['Shift', 'Tab']],
159
159
  // The property value is controlled by focusCatcher module (https://github.com/handsontable/handsontable/blob/master/handsontable/src/core/focusCatcher/index.js)
160
160
  preventDefault: false,
161
- callback: () => commandsPool.moveCellSelectionInlineEnd()
161
+ callback: event => commandsPool.moveCellSelectionInlineEnd(event)
162
162
  }, {
163
163
  keys: [['Control/Meta', 'Backspace']],
164
164
  callback: () => commandsPool.scrollToFocusedCell()
@@ -90,7 +90,8 @@ const createContext = name => {
90
90
  stopPropagation
91
91
  };
92
92
  if ((0, _mixed.isDefined)(relativeToGroup)) {
93
- [newShortcut.relativeToGroup, newShortcut.position] = [relativeToGroup, position];
93
+ newShortcut.relativeToGroup = relativeToGroup;
94
+ newShortcut.position = position;
94
95
  }
95
96
  if (isContextObject(forwardToContext)) {
96
97
  newShortcut.forwardToContext = forwardToContext;
@@ -86,7 +86,8 @@ export const createContext = name => {
86
86
  stopPropagation
87
87
  };
88
88
  if (isDefined(relativeToGroup)) {
89
- [newShortcut.relativeToGroup, newShortcut.position] = [relativeToGroup, position];
89
+ newShortcut.relativeToGroup = relativeToGroup;
90
+ newShortcut.position = position;
90
91
  }
91
92
  if (isContextObject(forwardToContext)) {
92
93
  newShortcut.forwardToContext = forwardToContext;