handsontable 0.0.0-next-d4ae6d7-20221205 → 0.0.0-next-0c2e6f8-20221206
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.
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core.js +11 -5
- package/core.mjs +11 -5
- package/dataMap/dataMap.js +33 -65
- package/dataMap/dataMap.mjs +33 -65
- package/dataMap/metaManager/metaSchema.js +54 -38
- package/dataMap/metaManager/metaSchema.mjs +54 -38
- package/dataMap/replaceData.js +1 -2
- package/dataMap/replaceData.mjs +1 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +137 -133
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +7 -7
- package/dist/handsontable.js +137 -133
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +3 -3
- package/editorManager.js +7 -4
- package/editorManager.mjs +7 -4
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/columnSummary/columnSummary.js +5 -5
- package/plugins/columnSummary/columnSummary.mjs +5 -5
- package/plugins/columnSummary/endpoints.js +14 -2
- package/plugins/columnSummary/endpoints.mjs +14 -2
- package/plugins/formulas/formulas.js +6 -6
- package/plugins/formulas/formulas.mjs +6 -6
- package/shortcuts/manager.js +1 -1
- package/shortcuts/manager.mjs +1 -1
package/editorManager.js
CHANGED
@@ -18,6 +18,7 @@ require("core-js/modules/es.weak-map.js");
|
|
18
18
|
require("core-js/modules/web.dom-collections.iterator.js");
|
19
19
|
var _unicode = require("./helpers/unicode");
|
20
20
|
var _event = require("./helpers/dom/event");
|
21
|
+
var _element = require("./helpers/dom/element");
|
21
22
|
var _registry = require("./editors/registry");
|
22
23
|
var _eventManager = _interopRequireDefault(require("./eventManager"));
|
23
24
|
var _mixed = require("./helpers/mixed");
|
@@ -251,10 +252,12 @@ var EditorManager = /*#__PURE__*/function () {
|
|
251
252
|
// Getting values using the modified coordinates.
|
252
253
|
this.cellProperties = this.instance.getCellMeta(visualRowToCheck, visualColumnToCheck);
|
253
254
|
var activeElement = this.instance.rootDocument.activeElement;
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
255
|
+
|
256
|
+
// Blurring the `activeElement` removes the unwanted border around the focusable element (#6877)
|
257
|
+
// and resets the `document.activeElement` property. The blurring should happen only when the
|
258
|
+
// previously selected input element has not belonged to the Handsontable editor. If blurring is
|
259
|
+
// triggered for all elements, there is a problem with the disappearing IME editor (#9672).
|
260
|
+
if (activeElement && (0, _element.isOutsideInput)(activeElement)) {
|
258
261
|
activeElement.blur();
|
259
262
|
}
|
260
263
|
if (!this.isCellEditable()) {
|
package/editorManager.mjs
CHANGED
@@ -23,6 +23,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
23
23
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
24
24
|
import { isFunctionKey, isCtrlMetaKey } from "./helpers/unicode.mjs";
|
25
25
|
import { stopImmediatePropagation } from "./helpers/dom/event.mjs";
|
26
|
+
import { isOutsideInput } from "./helpers/dom/element.mjs";
|
26
27
|
import { getEditorInstance } from "./editors/registry.mjs";
|
27
28
|
import EventManager from "./eventManager.mjs";
|
28
29
|
import { isDefined } from "./helpers/mixed.mjs";
|
@@ -244,10 +245,12 @@ var EditorManager = /*#__PURE__*/function () {
|
|
244
245
|
// Getting values using the modified coordinates.
|
245
246
|
this.cellProperties = this.instance.getCellMeta(visualRowToCheck, visualColumnToCheck);
|
246
247
|
var activeElement = this.instance.rootDocument.activeElement;
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
248
|
+
|
249
|
+
// Blurring the `activeElement` removes the unwanted border around the focusable element (#6877)
|
250
|
+
// and resets the `document.activeElement` property. The blurring should happen only when the
|
251
|
+
// previously selected input element has not belonged to the Handsontable editor. If blurring is
|
252
|
+
// triggered for all elements, there is a problem with the disappearing IME editor (#9672).
|
253
|
+
if (activeElement && isOutsideInput(activeElement)) {
|
251
254
|
activeElement.blur();
|
252
255
|
}
|
253
256
|
if (!this.isCellEditable()) {
|
package/helpers/mixed.js
CHANGED
@@ -152,7 +152,7 @@ var domMessages = {
|
|
152
152
|
function _injectProductInfo(key, element) {
|
153
153
|
var hasValidType = !isEmpty(key);
|
154
154
|
var isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
155
|
-
var hotVersion = "0.0.0-next-
|
155
|
+
var hotVersion = "0.0.0-next-0c2e6f8-20221206";
|
156
156
|
var keyValidityDate;
|
157
157
|
var consoleMessageState = 'invalid';
|
158
158
|
var domMessageState = 'invalid';
|
package/helpers/mixed.mjs
CHANGED
@@ -142,7 +142,7 @@ var domMessages = {
|
|
142
142
|
export function _injectProductInfo(key, element) {
|
143
143
|
var hasValidType = !isEmpty(key);
|
144
144
|
var isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
145
|
-
var hotVersion = "0.0.0-next-
|
145
|
+
var hotVersion = "0.0.0-next-0c2e6f8-20221206";
|
146
146
|
var keyValidityDate;
|
147
147
|
var consoleMessageState = 'invalid';
|
148
148
|
var 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": "0.0.0-next-
|
13
|
+
"version": "0.0.0-next-0c2e6f8-20221206",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|
@@ -53,7 +53,7 @@ var PLUGIN_PRIORITY = 220;
|
|
53
53
|
* The `ColumnSummary` plugin lets you [easily summarize your columns](@/guides/columns/column-summary.md).
|
54
54
|
*
|
55
55
|
* You can use the [built-in summary functions](@/guides/columns/column-summary.md#built-in-summary-functions),
|
56
|
-
* or implement a [custom summary function](@/guides/columns/column-summary.md#
|
56
|
+
* or implement a [custom summary function](@/guides/columns/column-summary.md#implement-a-custom-summary-function).
|
57
57
|
*
|
58
58
|
* For each column summary, you can set the following configuration options:
|
59
59
|
*
|
@@ -64,12 +64,12 @@ var PLUGIN_PRIORITY = 220;
|
|
64
64
|
* | `type` | Yes | String | - | [Sets a summary function](@/guides/columns/column-summary.md#step-3-calculate-your-summary) |
|
65
65
|
* | `destinationRow` | Yes | Number | - | [Sets the destination cell's row coordinate](@/guides/columns/column-summary.md#step-4-provide-the-destination-cell-s-coordinates) |
|
66
66
|
* | `destinationColumn` | Yes | Number | - | [Sets the destination cell's column coordinate](@/guides/columns/column-summary.md#step-4-provide-the-destination-cell-s-coordinates) |
|
67
|
-
* | `forceNumeric` | No | Boolean | `false` | [Forces the summary to treat non-numerics as numerics](@/guides/columns/column-summary.md#
|
67
|
+
* | `forceNumeric` | No | Boolean | `false` | [Forces the summary to treat non-numerics as numerics](@/guides/columns/column-summary.md#force-numeric-values) |
|
68
68
|
* | `reversedRowCoords` | No | Boolean | `false` | [Reverses row coordinates](@/guides/columns/column-summary.md#step-5-make-room-for-the-destination-cell) |
|
69
|
-
* | `suppressDataTypeErrors` | No | Boolean | `true` | [Suppresses data type errors](@/guides/columns/column-summary.md#
|
69
|
+
* | `suppressDataTypeErrors` | No | Boolean | `true` | [Suppresses data type errors](@/guides/columns/column-summary.md#throw-data-type-errors) |
|
70
70
|
* | `readOnly` | No | Boolean | `true` | Makes summary cell read-only |
|
71
|
-
* | `roundFloat` | No | Number | - | [Rounds summary result](@/guides/columns/column-summary.md#
|
72
|
-
* | `customFunction` | No | Function | - | [Lets you add a custom summary function](@/guides/columns/column-summary.md#
|
71
|
+
* | `roundFloat` | No | Number | - | [Rounds summary result](@/guides/columns/column-summary.md#round-a-column-summary-result) |
|
72
|
+
* | `customFunction` | No | Function | - | [Lets you add a custom summary function](@/guides/columns/column-summary.md#implement-a-custom-summary-function) |
|
73
73
|
*
|
74
74
|
* @example
|
75
75
|
* ::: only-for javascript
|
@@ -47,7 +47,7 @@ export var PLUGIN_PRIORITY = 220;
|
|
47
47
|
* The `ColumnSummary` plugin lets you [easily summarize your columns](@/guides/columns/column-summary.md).
|
48
48
|
*
|
49
49
|
* You can use the [built-in summary functions](@/guides/columns/column-summary.md#built-in-summary-functions),
|
50
|
-
* or implement a [custom summary function](@/guides/columns/column-summary.md#
|
50
|
+
* or implement a [custom summary function](@/guides/columns/column-summary.md#implement-a-custom-summary-function).
|
51
51
|
*
|
52
52
|
* For each column summary, you can set the following configuration options:
|
53
53
|
*
|
@@ -58,12 +58,12 @@ export var PLUGIN_PRIORITY = 220;
|
|
58
58
|
* | `type` | Yes | String | - | [Sets a summary function](@/guides/columns/column-summary.md#step-3-calculate-your-summary) |
|
59
59
|
* | `destinationRow` | Yes | Number | - | [Sets the destination cell's row coordinate](@/guides/columns/column-summary.md#step-4-provide-the-destination-cell-s-coordinates) |
|
60
60
|
* | `destinationColumn` | Yes | Number | - | [Sets the destination cell's column coordinate](@/guides/columns/column-summary.md#step-4-provide-the-destination-cell-s-coordinates) |
|
61
|
-
* | `forceNumeric` | No | Boolean | `false` | [Forces the summary to treat non-numerics as numerics](@/guides/columns/column-summary.md#
|
61
|
+
* | `forceNumeric` | No | Boolean | `false` | [Forces the summary to treat non-numerics as numerics](@/guides/columns/column-summary.md#force-numeric-values) |
|
62
62
|
* | `reversedRowCoords` | No | Boolean | `false` | [Reverses row coordinates](@/guides/columns/column-summary.md#step-5-make-room-for-the-destination-cell) |
|
63
|
-
* | `suppressDataTypeErrors` | No | Boolean | `true` | [Suppresses data type errors](@/guides/columns/column-summary.md#
|
63
|
+
* | `suppressDataTypeErrors` | No | Boolean | `true` | [Suppresses data type errors](@/guides/columns/column-summary.md#throw-data-type-errors) |
|
64
64
|
* | `readOnly` | No | Boolean | `true` | Makes summary cell read-only |
|
65
|
-
* | `roundFloat` | No | Number | - | [Rounds summary result](@/guides/columns/column-summary.md#
|
66
|
-
* | `customFunction` | No | Function | - | [Lets you add a custom summary function](@/guides/columns/column-summary.md#
|
65
|
+
* | `roundFloat` | No | Number | - | [Rounds summary result](@/guides/columns/column-summary.md#round-a-column-summary-result) |
|
66
|
+
* | `customFunction` | No | Function | - | [Lets you add a custom summary function](@/guides/columns/column-summary.md#implement-a-custom-summary-function) |
|
67
67
|
*
|
68
68
|
* @example
|
69
69
|
* ::: only-for javascript
|
@@ -489,6 +489,15 @@ var Endpoints = /*#__PURE__*/function () {
|
|
489
489
|
var useOffset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
490
490
|
var alterRowOffset = endpoint.alterRowOffset || 0;
|
491
491
|
var alterColOffset = endpoint.alterColumnOffset || 0;
|
492
|
+
var _ref = [this.hot.toVisualRow(endpoint.destinationRow), this.hot.toVisualColumn(endpoint.destinationColumn)],
|
493
|
+
visualRowIndex = _ref[0],
|
494
|
+
visualColumnIndex = _ref[1];
|
495
|
+
if (visualColumnIndex !== null && visualRowIndex !== null) {
|
496
|
+
// Clear the meta on the "old" indexes
|
497
|
+
var cellMeta = this.hot.getCellMeta(visualRowIndex, visualColumnIndex);
|
498
|
+
cellMeta.readOnly = false;
|
499
|
+
cellMeta.className = '';
|
500
|
+
}
|
492
501
|
this.cellsToSetCache.push([this.hot.toVisualRow(endpoint.destinationRow + (useOffset ? alterRowOffset : 0)), this.hot.toVisualColumn(endpoint.destinationColumn + (useOffset ? alterColOffset : 0)), '']);
|
493
502
|
}
|
494
503
|
|
@@ -503,14 +512,17 @@ var Endpoints = /*#__PURE__*/function () {
|
|
503
512
|
key: "setEndpointValue",
|
504
513
|
value: function setEndpointValue(endpoint, source) {
|
505
514
|
var render = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
515
|
+
// We'll need the reversed offset values, because cellMeta will be shifted AGAIN afterwards.
|
516
|
+
var reverseRowOffset = -1 * endpoint.alterRowOffset || 0;
|
517
|
+
var reverseColOffset = -1 * endpoint.alterColumnOffset || 0;
|
506
518
|
var visualEndpointRowIndex = this.hot.toVisualRow(endpoint.destinationRow);
|
507
519
|
if (endpoint.destinationRow >= this.hot.countRows() || endpoint.destinationColumn >= this.hot.countCols()) {
|
508
520
|
this.throwOutOfBoundsWarning();
|
509
521
|
return;
|
510
522
|
}
|
511
|
-
var destinationVisualRow = this.hot.toVisualRow(endpoint.destinationRow);
|
523
|
+
var destinationVisualRow = this.hot.toVisualRow(endpoint.destinationRow + reverseRowOffset);
|
512
524
|
if (destinationVisualRow !== null) {
|
513
|
-
var cellMeta = this.hot.getCellMeta(destinationVisualRow, endpoint.destinationColumn);
|
525
|
+
var cellMeta = this.hot.getCellMeta(destinationVisualRow, endpoint.destinationColumn + reverseColOffset);
|
514
526
|
if (source === 'init' || cellMeta.readOnly !== endpoint.readOnly) {
|
515
527
|
cellMeta.readOnly = endpoint.readOnly;
|
516
528
|
cellMeta.className = 'columnSummaryResult';
|
@@ -485,6 +485,15 @@ var Endpoints = /*#__PURE__*/function () {
|
|
485
485
|
var useOffset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
486
486
|
var alterRowOffset = endpoint.alterRowOffset || 0;
|
487
487
|
var alterColOffset = endpoint.alterColumnOffset || 0;
|
488
|
+
var _ref = [this.hot.toVisualRow(endpoint.destinationRow), this.hot.toVisualColumn(endpoint.destinationColumn)],
|
489
|
+
visualRowIndex = _ref[0],
|
490
|
+
visualColumnIndex = _ref[1];
|
491
|
+
if (visualColumnIndex !== null && visualRowIndex !== null) {
|
492
|
+
// Clear the meta on the "old" indexes
|
493
|
+
var cellMeta = this.hot.getCellMeta(visualRowIndex, visualColumnIndex);
|
494
|
+
cellMeta.readOnly = false;
|
495
|
+
cellMeta.className = '';
|
496
|
+
}
|
488
497
|
this.cellsToSetCache.push([this.hot.toVisualRow(endpoint.destinationRow + (useOffset ? alterRowOffset : 0)), this.hot.toVisualColumn(endpoint.destinationColumn + (useOffset ? alterColOffset : 0)), '']);
|
489
498
|
}
|
490
499
|
|
@@ -499,14 +508,17 @@ var Endpoints = /*#__PURE__*/function () {
|
|
499
508
|
key: "setEndpointValue",
|
500
509
|
value: function setEndpointValue(endpoint, source) {
|
501
510
|
var render = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
511
|
+
// We'll need the reversed offset values, because cellMeta will be shifted AGAIN afterwards.
|
512
|
+
var reverseRowOffset = -1 * endpoint.alterRowOffset || 0;
|
513
|
+
var reverseColOffset = -1 * endpoint.alterColumnOffset || 0;
|
502
514
|
var visualEndpointRowIndex = this.hot.toVisualRow(endpoint.destinationRow);
|
503
515
|
if (endpoint.destinationRow >= this.hot.countRows() || endpoint.destinationColumn >= this.hot.countCols()) {
|
504
516
|
this.throwOutOfBoundsWarning();
|
505
517
|
return;
|
506
518
|
}
|
507
|
-
var destinationVisualRow = this.hot.toVisualRow(endpoint.destinationRow);
|
519
|
+
var destinationVisualRow = this.hot.toVisualRow(endpoint.destinationRow + reverseRowOffset);
|
508
520
|
if (destinationVisualRow !== null) {
|
509
|
-
var cellMeta = this.hot.getCellMeta(destinationVisualRow, endpoint.destinationColumn);
|
521
|
+
var cellMeta = this.hot.getCellMeta(destinationVisualRow, endpoint.destinationColumn + reverseColOffset);
|
510
522
|
if (source === 'init' || cellMeta.readOnly !== endpoint.readOnly) {
|
511
523
|
cellMeta.readOnly = endpoint.readOnly;
|
512
524
|
cellMeta.className = 'columnSummaryResult';
|
@@ -838,7 +838,7 @@ var Formulas = /*#__PURE__*/function (_BasePlugin) {
|
|
838
838
|
* @private
|
839
839
|
* @param {Array[]} changes An array of changes in format [[row, prop, oldValue, value], ...].
|
840
840
|
* @param {string} [source] String that identifies source of hook call
|
841
|
-
* ([list of all available sources]{@link
|
841
|
+
* ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
|
842
842
|
*/
|
843
843
|
}, {
|
844
844
|
key: "onAfterSetDataAtCell",
|
@@ -899,7 +899,7 @@ var Formulas = /*#__PURE__*/function (_BasePlugin) {
|
|
899
899
|
* @private
|
900
900
|
* @param {Array[]} changes An array of changes in format [[row, column, oldValue, value], ...].
|
901
901
|
* @param {string} [source] String that identifies source of hook call
|
902
|
-
* ([list of all available sources]{@link
|
902
|
+
* ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
|
903
903
|
*/
|
904
904
|
}, {
|
905
905
|
key: "onAfterSetSourceDataAtCell",
|
@@ -1014,7 +1014,7 @@ var Formulas = /*#__PURE__*/function (_BasePlugin) {
|
|
1014
1014
|
* @param {number} row Represents the visual index of first newly created row in the data source array.
|
1015
1015
|
* @param {number} amount Number of newly created rows in the data source array.
|
1016
1016
|
* @param {string} [source] String that identifies source of hook call
|
1017
|
-
* ([list of all available sources]{@link
|
1017
|
+
* ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
|
1018
1018
|
*/
|
1019
1019
|
}, {
|
1020
1020
|
key: "onAfterCreateRow",
|
@@ -1033,7 +1033,7 @@ var Formulas = /*#__PURE__*/function (_BasePlugin) {
|
|
1033
1033
|
* @param {number} col Represents the visual index of first newly created column in the data source.
|
1034
1034
|
* @param {number} amount Number of newly created columns in the data source.
|
1035
1035
|
* @param {string} [source] String that identifies source of hook call
|
1036
|
-
* ([list of all available sources]{@link
|
1036
|
+
* ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
|
1037
1037
|
*/
|
1038
1038
|
}, {
|
1039
1039
|
key: "onAfterCreateCol",
|
@@ -1053,7 +1053,7 @@ var Formulas = /*#__PURE__*/function (_BasePlugin) {
|
|
1053
1053
|
* @param {number} amount An amount of removed rows.
|
1054
1054
|
* @param {number[]} physicalRows An array of physical rows removed from the data source.
|
1055
1055
|
* @param {string} [source] String that identifies source of hook call
|
1056
|
-
* ([list of all available sources]{@link
|
1056
|
+
* ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
|
1057
1057
|
*/
|
1058
1058
|
}, {
|
1059
1059
|
key: "onAfterRemoveRow",
|
@@ -1079,7 +1079,7 @@ var Formulas = /*#__PURE__*/function (_BasePlugin) {
|
|
1079
1079
|
* @param {number} amount An amount of removed columns.
|
1080
1080
|
* @param {number[]} physicalColumns An array of physical columns removed from the data source.
|
1081
1081
|
* @param {string} [source] String that identifies source of hook call
|
1082
|
-
* ([list of all available sources]{@link
|
1082
|
+
* ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
|
1083
1083
|
*/
|
1084
1084
|
}, {
|
1085
1085
|
key: "onAfterRemoveCol",
|
@@ -831,7 +831,7 @@ export var Formulas = /*#__PURE__*/function (_BasePlugin) {
|
|
831
831
|
* @private
|
832
832
|
* @param {Array[]} changes An array of changes in format [[row, prop, oldValue, value], ...].
|
833
833
|
* @param {string} [source] String that identifies source of hook call
|
834
|
-
* ([list of all available sources]{@link
|
834
|
+
* ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
|
835
835
|
*/
|
836
836
|
}, {
|
837
837
|
key: "onAfterSetDataAtCell",
|
@@ -892,7 +892,7 @@ export var Formulas = /*#__PURE__*/function (_BasePlugin) {
|
|
892
892
|
* @private
|
893
893
|
* @param {Array[]} changes An array of changes in format [[row, column, oldValue, value], ...].
|
894
894
|
* @param {string} [source] String that identifies source of hook call
|
895
|
-
* ([list of all available sources]{@link
|
895
|
+
* ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
|
896
896
|
*/
|
897
897
|
}, {
|
898
898
|
key: "onAfterSetSourceDataAtCell",
|
@@ -1007,7 +1007,7 @@ export var Formulas = /*#__PURE__*/function (_BasePlugin) {
|
|
1007
1007
|
* @param {number} row Represents the visual index of first newly created row in the data source array.
|
1008
1008
|
* @param {number} amount Number of newly created rows in the data source array.
|
1009
1009
|
* @param {string} [source] String that identifies source of hook call
|
1010
|
-
* ([list of all available sources]{@link
|
1010
|
+
* ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
|
1011
1011
|
*/
|
1012
1012
|
}, {
|
1013
1013
|
key: "onAfterCreateRow",
|
@@ -1026,7 +1026,7 @@ export var Formulas = /*#__PURE__*/function (_BasePlugin) {
|
|
1026
1026
|
* @param {number} col Represents the visual index of first newly created column in the data source.
|
1027
1027
|
* @param {number} amount Number of newly created columns in the data source.
|
1028
1028
|
* @param {string} [source] String that identifies source of hook call
|
1029
|
-
* ([list of all available sources]{@link
|
1029
|
+
* ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
|
1030
1030
|
*/
|
1031
1031
|
}, {
|
1032
1032
|
key: "onAfterCreateCol",
|
@@ -1046,7 +1046,7 @@ export var Formulas = /*#__PURE__*/function (_BasePlugin) {
|
|
1046
1046
|
* @param {number} amount An amount of removed rows.
|
1047
1047
|
* @param {number[]} physicalRows An array of physical rows removed from the data source.
|
1048
1048
|
* @param {string} [source] String that identifies source of hook call
|
1049
|
-
* ([list of all available sources]{@link
|
1049
|
+
* ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
|
1050
1050
|
*/
|
1051
1051
|
}, {
|
1052
1052
|
key: "onAfterRemoveRow",
|
@@ -1072,7 +1072,7 @@ export var Formulas = /*#__PURE__*/function (_BasePlugin) {
|
|
1072
1072
|
* @param {number} amount An amount of removed columns.
|
1073
1073
|
* @param {number[]} physicalColumns An array of physical columns removed from the data source.
|
1074
1074
|
* @param {string} [source] String that identifies source of hook call
|
1075
|
-
* ([list of all available sources]{@link
|
1075
|
+
* ([list of all available sources]{@link https://handsontable.com/docs/javascript-data-grid/events-and-hooks/#handsontable-hooks}).
|
1076
1076
|
*/
|
1077
1077
|
}, {
|
1078
1078
|
key: "onAfterRemoveCol",
|
package/shortcuts/manager.js
CHANGED
@@ -19,7 +19,7 @@ var _recorder = require("./recorder");
|
|
19
19
|
* @param {object} options The manager's options
|
20
20
|
* @param {EventTarget} options.ownerWindow A starting `window` element
|
21
21
|
* @param {Function} options.handleEvent A condition on which `event` is handled.
|
22
|
-
* @param {Function} options.beforeKeyDown A hook fired before the `keydown` event is handled. You can use it to [block a keyboard shortcut's actions](@/guides/accessories-and-menus/keyboard-shortcuts.md#
|
22
|
+
* @param {Function} options.beforeKeyDown A hook fired before the `keydown` event is handled. You can use it to [block a keyboard shortcut's actions](@/guides/accessories-and-menus/keyboard-shortcuts.md#block-a-keyboard-shortcut-s-actions).
|
23
23
|
* @param {Function} options.afterKeyDown A hook fired after the `keydown` event is handled
|
24
24
|
*/
|
25
25
|
var createShortcutManager = function createShortcutManager(_ref) {
|
package/shortcuts/manager.mjs
CHANGED
@@ -14,7 +14,7 @@ import { useRecorder } from "./recorder.mjs";
|
|
14
14
|
* @param {object} options The manager's options
|
15
15
|
* @param {EventTarget} options.ownerWindow A starting `window` element
|
16
16
|
* @param {Function} options.handleEvent A condition on which `event` is handled.
|
17
|
-
* @param {Function} options.beforeKeyDown A hook fired before the `keydown` event is handled. You can use it to [block a keyboard shortcut's actions](@/guides/accessories-and-menus/keyboard-shortcuts.md#
|
17
|
+
* @param {Function} options.beforeKeyDown A hook fired before the `keydown` event is handled. You can use it to [block a keyboard shortcut's actions](@/guides/accessories-and-menus/keyboard-shortcuts.md#block-a-keyboard-shortcut-s-actions).
|
18
18
|
* @param {Function} options.afterKeyDown A hook fired after the `keydown` event is handled
|
19
19
|
*/
|
20
20
|
export var createShortcutManager = function createShortcutManager(_ref) {
|