handsontable 14.0.0-next-c648fa4-20231128 → 14.0.0-next-b112557-20231129

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/helpers/mixed.js CHANGED
@@ -134,7 +134,7 @@ const domMessages = {
134
134
  function _injectProductInfo(key, element) {
135
135
  const hasValidType = !isEmpty(key);
136
136
  const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
137
- const hotVersion = "14.0.0-next-c648fa4-20231128";
137
+ const hotVersion = "14.0.0-next-b112557-20231129";
138
138
  let keyValidityDate;
139
139
  let consoleMessageState = 'invalid';
140
140
  let domMessageState = 'invalid';
package/helpers/mixed.mjs CHANGED
@@ -124,7 +124,7 @@ const domMessages = {
124
124
  export function _injectProductInfo(key, element) {
125
125
  const hasValidType = !isEmpty(key);
126
126
  const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
127
- const hotVersion = "14.0.0-next-c648fa4-20231128";
127
+ const hotVersion = "14.0.0-next-b112557-20231129";
128
128
  let keyValidityDate;
129
129
  let consoleMessageState = 'invalid';
130
130
  let domMessageState = 'invalid';
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/handsontable/handsontable/issues"
11
11
  },
12
12
  "author": "Handsoncode <hello@handsontable.com>",
13
- "version": "14.0.0-next-c648fa4-20231128",
13
+ "version": "14.0.0-next-b112557-20231129",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
@@ -5,7 +5,7 @@ const command = exports.command = {
5
5
  name: 'editorCloseAndSave',
6
6
  callback(hot, event, keys) {
7
7
  const editorManager = hot._getEditorManager();
8
- editorManager.closeEditorAndSaveChanges(hot.getShortcutManager().isCtrlPressed());
8
+ editorManager.closeEditorAndSaveChanges(event.ctrlKey || event.metaKey);
9
9
  editorManager.moveSelectionAfterEnter(keys.includes('shift'));
10
10
  }
11
11
  };
@@ -2,7 +2,7 @@ export const command = {
2
2
  name: 'editorCloseAndSave',
3
3
  callback(hot, event, keys) {
4
4
  const editorManager = hot._getEditorManager();
5
- editorManager.closeEditorAndSaveChanges(hot.getShortcutManager().isCtrlPressed());
5
+ editorManager.closeEditorAndSaveChanges(event.ctrlKey || event.metaKey);
6
6
  editorManager.moveSelectionAfterEnter(keys.includes('shift'));
7
7
  }
8
8
  };
@@ -7,9 +7,10 @@ var _extendCellsSelection = require("./extendCellsSelection");
7
7
  var _moveCellSelection = require("./moveCellSelection");
8
8
  var _emptySelectedCells = require("./emptySelectedCells");
9
9
  var _scrollToFocusedCell = require("./scrollToFocusedCell");
10
- var _selectAll = require("./selectAll");
10
+ var _selectAllCells = require("./selectAllCells");
11
+ var _selectAllCellsAndHeaders = require("./selectAllCellsAndHeaders");
11
12
  var _populateSelectedCellsData = require("./populateSelectedCellsData");
12
- const allCommands = [...(0, _editor.getAllCommands)(), ...(0, _extendCellsSelection.getAllCommands)(), ...(0, _moveCellSelection.getAllCommands)(), _emptySelectedCells.command, _scrollToFocusedCell.command, _selectAll.command, _populateSelectedCellsData.command];
13
+ const allCommands = [...(0, _editor.getAllCommands)(), ...(0, _extendCellsSelection.getAllCommands)(), ...(0, _moveCellSelection.getAllCommands)(), _emptySelectedCells.command, _scrollToFocusedCell.command, _selectAllCells.command, _selectAllCellsAndHeaders.command, _populateSelectedCellsData.command];
13
14
 
14
15
  /**
15
16
  * Prepares and creates an object with all available commands to trigger.
@@ -3,9 +3,10 @@ import { getAllCommands as getAllSelectionExtendCommands } from "./extendCellsSe
3
3
  import { getAllCommands as getAllSelectionMoveCommands } from "./moveCellSelection/index.mjs";
4
4
  import { command as emptySelectedCells } from "./emptySelectedCells.mjs";
5
5
  import { command as scrollToFocusedCell } from "./scrollToFocusedCell.mjs";
6
- import { command as selectAll } from "./selectAll.mjs";
6
+ import { command as selectAllCells } from "./selectAllCells.mjs";
7
+ import { command as selectAllCellsAndHeaders } from "./selectAllCellsAndHeaders.mjs";
7
8
  import { command as populateSelectedCellsData } from "./populateSelectedCellsData.mjs";
8
- const allCommands = [...getAllEditorCommands(), ...getAllSelectionExtendCommands(), ...getAllSelectionMoveCommands(), emptySelectedCells, scrollToFocusedCell, selectAll, populateSelectedCellsData];
9
+ const allCommands = [...getAllEditorCommands(), ...getAllSelectionExtendCommands(), ...getAllSelectionMoveCommands(), emptySelectedCells, scrollToFocusedCell, selectAllCells, selectAllCellsAndHeaders, populateSelectedCellsData];
9
10
 
10
11
  /**
11
12
  * Prepares and creates an object with all available commands to trigger.
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  const command = exports.command = {
5
- name: 'selectAll',
5
+ name: 'selectAllCells',
6
6
  callback(hot) {
7
7
  hot.selection.selectAll(true, true, {
8
8
  disableHeadersHighlight: true
@@ -1,5 +1,5 @@
1
1
  export const command = {
2
- name: 'selectAll',
2
+ name: 'selectAllCells',
3
3
  callback(hot) {
4
4
  hot.selection.selectAll(true, true, {
5
5
  disableHeadersHighlight: true
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ const command = exports.command = {
5
+ name: 'selectAllCellsAndHeaders',
6
+ callback(hot) {
7
+ hot.selection.selectAll(true, true, {
8
+ disableHeadersHighlight: false
9
+ });
10
+ }
11
+ };
@@ -0,0 +1,8 @@
1
+ export const command = {
2
+ name: 'selectAllCellsAndHeaders',
3
+ callback(hot) {
4
+ hot.selection.selectAll(true, true, {
5
+ disableHeadersHighlight: false
6
+ });
7
+ }
8
+ };
@@ -16,7 +16,11 @@ function shortcutsEditorContext(hot) {
16
16
  group: _constants.EDITOR_EDIT_GROUP
17
17
  };
18
18
  context.addShortcuts([{
19
- keys: [['Enter'], ['Enter', 'Shift'], ['Enter', 'Control/Meta'], ['Enter', 'Control/Meta', 'Shift']],
19
+ keys: [['Enter'], ['Enter', 'Shift']],
20
+ callback: (event, keys) => commandsPool.editorCloseAndSave(event, keys)
21
+ }, {
22
+ keys: [['Enter', 'Control/Meta'], ['Enter', 'Control/Meta', 'Shift']],
23
+ captureCtrl: true,
20
24
  callback: (event, keys) => commandsPool.editorCloseAndSave(event, keys)
21
25
  }, {
22
26
  keys: [['Escape'], ['Escape', 'Control/Meta']],
@@ -12,7 +12,11 @@ export function shortcutsEditorContext(hot) {
12
12
  group: EDITOR_EDIT_GROUP
13
13
  };
14
14
  context.addShortcuts([{
15
- keys: [['Enter'], ['Enter', 'Shift'], ['Enter', 'Control/Meta'], ['Enter', 'Control/Meta', 'Shift']],
15
+ keys: [['Enter'], ['Enter', 'Shift']],
16
+ callback: (event, keys) => commandsPool.editorCloseAndSave(event, keys)
17
+ }, {
18
+ keys: [['Enter', 'Control/Meta'], ['Enter', 'Control/Meta', 'Shift']],
19
+ captureCtrl: true,
16
20
  callback: (event, keys) => commandsPool.editorCloseAndSave(event, keys)
17
21
  }, {
18
22
  keys: [['Escape'], ['Escape', 'Control/Meta']],
@@ -36,8 +36,11 @@ function shortcutsGridContext(hot) {
36
36
  runOnlyIf: () => (0, _mixed.isDefined)(hot.getSelected())
37
37
  });
38
38
  context.addShortcuts([{
39
- keys: [['Control/Meta', 'A'], ['Control/Meta', 'Shift', 'Space']],
40
- callback: () => commandsPool.selectAll()
39
+ keys: [['Control/Meta', 'A']],
40
+ callback: () => commandsPool.selectAllCells()
41
+ }, {
42
+ keys: [['Control/Meta', 'Shift', 'Space']],
43
+ callback: () => commandsPool.selectAllCellsAndHeaders()
41
44
  }, {
42
45
  keys: [['Control/Meta', 'Enter']],
43
46
  callback: () => commandsPool.populateSelectedCellsData(),
@@ -32,8 +32,11 @@ export function shortcutsGridContext(hot) {
32
32
  runOnlyIf: () => isDefined(hot.getSelected())
33
33
  });
34
34
  context.addShortcuts([{
35
- keys: [['Control/Meta', 'A'], ['Control/Meta', 'Shift', 'Space']],
36
- callback: () => commandsPool.selectAll()
35
+ keys: [['Control/Meta', 'A']],
36
+ callback: () => commandsPool.selectAllCells()
37
+ }, {
38
+ keys: [['Control/Meta', 'Shift', 'Space']],
39
+ callback: () => commandsPool.selectAllCellsAndHeaders()
37
40
  }, {
38
41
  keys: [['Control/Meta', 'Enter']],
39
42
  callback: () => commandsPool.populateSelectedCellsData(),