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/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +926 -901
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +4 -4
- package/dist/handsontable.js +928 -903
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +4 -4
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/shortcutContexts/commands/editor/closeAndSave.js +1 -1
- package/shortcutContexts/commands/editor/closeAndSave.mjs +1 -1
- package/shortcutContexts/commands/index.js +3 -2
- package/shortcutContexts/commands/index.mjs +3 -2
- package/shortcutContexts/commands/{selectAll.js → selectAllCells.js} +1 -1
- package/shortcutContexts/commands/{selectAll.mjs → selectAllCells.mjs} +1 -1
- package/shortcutContexts/commands/selectAllCellsAndHeaders.js +11 -0
- package/shortcutContexts/commands/selectAllCellsAndHeaders.mjs +8 -0
- package/shortcutContexts/editor.js +5 -1
- package/shortcutContexts/editor.mjs +5 -1
- package/shortcutContexts/grid.js +5 -2
- package/shortcutContexts/grid.mjs +5 -2
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-
|
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-
|
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-
|
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(
|
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(
|
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
|
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,
|
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
|
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,
|
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.
|
@@ -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']
|
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']
|
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']],
|
package/shortcutContexts/grid.js
CHANGED
@@ -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']
|
40
|
-
callback: () => commandsPool.
|
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']
|
36
|
-
callback: () => commandsPool.
|
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(),
|