handsontable 0.0.0-next-2787440-20221201 → 0.0.0-next-c8630a2-20221202
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 +32 -23
- package/core.mjs +28 -19
- package/dataMap/dataMap.js +1 -4
- package/dataMap/dataMap.mjs +2 -5
- package/dataMap/metaManager/metaLayers/cellMeta.js +4 -5
- package/dataMap/metaManager/metaLayers/cellMeta.mjs +5 -6
- package/dataMap/metaManager/metaLayers/columnMeta.js +1 -1
- package/dataMap/metaManager/metaLayers/columnMeta.mjs +2 -2
- package/dataMap/metaManager/metaLayers/globalMeta.js +14 -1
- package/dataMap/metaManager/metaLayers/globalMeta.mjs +15 -2
- package/dataMap/metaManager/metaLayers/tableMeta.js +1 -1
- package/dataMap/metaManager/metaLayers/tableMeta.mjs +2 -2
- package/dataMap/metaManager/metaSchema.js +28 -35
- package/dataMap/metaManager/metaSchema.mjs +28 -35
- package/dataMap/metaManager/utils.js +44 -14
- package/dataMap/metaManager/utils.mjs +44 -14
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +1715 -1720
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +84 -84
- package/dist/handsontable.js +1370 -1375
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +3 -3
- package/editors/registry.js +3 -0
- package/editors/registry.mjs +3 -0
- package/helpers/data.d.ts +0 -1
- package/helpers/data.js +0 -49
- package/helpers/data.mjs +1 -49
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/helpers/object.js +1 -1
- package/helpers/object.mjs +1 -1
- package/package.json +1 -1
- package/plugins/columnSummary/columnSummary.js +5 -5
- package/plugins/columnSummary/columnSummary.mjs +5 -5
- 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/editors/registry.js
CHANGED
@@ -81,6 +81,9 @@ function _getEditorInstance(name, hotInstance) {
|
|
81
81
|
* @returns {Function} Returns editor class.
|
82
82
|
*/
|
83
83
|
function _getItem(name) {
|
84
|
+
if (typeof name === 'function') {
|
85
|
+
return name;
|
86
|
+
}
|
84
87
|
if (!hasItem(name)) {
|
85
88
|
throw Error("No registered editor found under \"".concat(name, "\" name"));
|
86
89
|
}
|
package/editors/registry.mjs
CHANGED
@@ -68,6 +68,9 @@ export function _getEditorInstance(name, hotInstance) {
|
|
68
68
|
* @returns {Function} Returns editor class.
|
69
69
|
*/
|
70
70
|
function _getItem(name) {
|
71
|
+
if (typeof name === 'function') {
|
72
|
+
return name;
|
73
|
+
}
|
71
74
|
if (!hasItem(name)) {
|
72
75
|
throw Error("No registered editor found under \"".concat(name, "\" name"));
|
73
76
|
}
|
package/helpers/data.d.ts
CHANGED
@@ -5,7 +5,6 @@ export function spreadsheetColumnIndex(label: string): number;
|
|
5
5
|
export function createSpreadsheetData(rows?: number, columns?: number): any[][];
|
6
6
|
export function createSpreadsheetObjectData(rows?: number, colCount?: number): any[][];
|
7
7
|
export function createEmptySpreadsheetData(rows: number, columns: number): string[][];
|
8
|
-
export function cellMethodLookupFactory(methodName: string, allowUndefined?: boolean): (row: number, col: number) => (prop: string) => any;
|
9
8
|
export function dataRowToChangesArray(dataRow: CellValue[] | object, rowOffset?: number): number[] | Array<number | string> | CellValue[];
|
10
9
|
export function countFirstRowKeys(data: CellValue[]): number;
|
11
10
|
export function isArrayOfArrays(data: any[]): boolean;
|
package/helpers/data.js
CHANGED
@@ -7,7 +7,6 @@ require("core-js/modules/es.array.iterator.js");
|
|
7
7
|
require("core-js/modules/es.string.iterator.js");
|
8
8
|
require("core-js/modules/web.dom-collections.iterator.js");
|
9
9
|
exports.__esModule = true;
|
10
|
-
exports.cellMethodLookupFactory = cellMethodLookupFactory;
|
11
10
|
exports.countFirstRowKeys = countFirstRowKeys;
|
12
11
|
exports.createEmptySpreadsheetData = createEmptySpreadsheetData;
|
13
12
|
exports.createSpreadsheetData = createSpreadsheetData;
|
@@ -17,11 +16,9 @@ exports.isArrayOfArrays = isArrayOfArrays;
|
|
17
16
|
exports.isArrayOfObjects = isArrayOfObjects;
|
18
17
|
exports.spreadsheetColumnIndex = spreadsheetColumnIndex;
|
19
18
|
exports.spreadsheetColumnLabel = spreadsheetColumnLabel;
|
20
|
-
require("core-js/modules/es.object.get-prototype-of.js");
|
21
19
|
require("core-js/modules/es.object.to-string.js");
|
22
20
|
require("core-js/modules/web.dom-collections.for-each.js");
|
23
21
|
require("core-js/modules/es.object.keys.js");
|
24
|
-
var _registry = require("./../cellTypes/registry");
|
25
22
|
var _object = require("./object");
|
26
23
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
27
24
|
var COLUMN_LABEL_BASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
@@ -128,52 +125,6 @@ function createEmptySpreadsheetData(rows, columns) {
|
|
128
125
|
return data;
|
129
126
|
}
|
130
127
|
|
131
|
-
/**
|
132
|
-
* Factory that produces a function for searching methods (or any properties) which could be defined directly in
|
133
|
-
* table configuration or implicitly, within cell type definition.
|
134
|
-
*
|
135
|
-
* For example: renderer can be defined explicitly using "renderer" property in column configuration or it can be
|
136
|
-
* defined implicitly using "type" property.
|
137
|
-
*
|
138
|
-
* Methods/properties defined explicitly always takes precedence over those defined through "type".
|
139
|
-
*
|
140
|
-
* If the method/property is not found in an object, searching is continued recursively through prototype chain, until
|
141
|
-
* it reaches the Object.prototype.
|
142
|
-
*
|
143
|
-
* @param {string} methodName Name of the method/property to search (i.e. 'renderer', 'validator', 'copyable').
|
144
|
-
* @param {boolean} [allowUndefined] If `false`, the search is continued if methodName has not been found in cell
|
145
|
-
* "type".
|
146
|
-
* @returns {Function}
|
147
|
-
*/
|
148
|
-
function cellMethodLookupFactory(methodName, allowUndefined) {
|
149
|
-
var isUndefinedAllowed = typeof allowUndefined === 'undefined' ? true : allowUndefined;
|
150
|
-
return function cellMethodLookup(row, col) {
|
151
|
-
return function getMethodFromProperties(properties) {
|
152
|
-
if (!properties) {
|
153
|
-
return; // method or property not found
|
154
|
-
}
|
155
|
-
|
156
|
-
if ((0, _object.hasOwnProperty)(properties, methodName) && properties[methodName] !== void 0) {
|
157
|
-
// check if it is own and is not empty
|
158
|
-
return properties[methodName]; // method defined directly
|
159
|
-
} else if ((0, _object.hasOwnProperty)(properties, 'type') && properties.type) {
|
160
|
-
// check if it is own and is not empty
|
161
|
-
if (typeof properties.type !== 'string') {
|
162
|
-
throw new Error('Cell "type" must be a string');
|
163
|
-
}
|
164
|
-
var type = (0, _registry.getCellType)(properties.type);
|
165
|
-
if ((0, _object.hasOwnProperty)(type, methodName)) {
|
166
|
-
return type[methodName]; // method defined in type.
|
167
|
-
} else if (isUndefinedAllowed) {
|
168
|
-
return; // method does not defined in type (eg. validator), returns undefined
|
169
|
-
}
|
170
|
-
}
|
171
|
-
|
172
|
-
return getMethodFromProperties(Object.getPrototypeOf(properties));
|
173
|
-
}(typeof row === 'number' ? this.getCellMeta(row, col) : row);
|
174
|
-
};
|
175
|
-
}
|
176
|
-
|
177
128
|
/**
|
178
129
|
* Transform a data row (either an array or an object) or an array of data rows to array of changes in a form of `[row,
|
179
130
|
* prop/col, value]`. Convenient to use with `setDataAtRowProp` and `setSourceDataAtCell` methods.
|
package/helpers/data.mjs
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
2
|
-
import "core-js/modules/es.object.get-prototype-of.js";
|
3
2
|
import "core-js/modules/es.object.to-string.js";
|
4
3
|
import "core-js/modules/web.dom-collections.for-each.js";
|
5
4
|
import "core-js/modules/es.object.keys.js";
|
@@ -9,8 +8,7 @@ import "core-js/modules/es.symbol.iterator.js";
|
|
9
8
|
import "core-js/modules/es.array.iterator.js";
|
10
9
|
import "core-js/modules/es.string.iterator.js";
|
11
10
|
import "core-js/modules/web.dom-collections.iterator.js";
|
12
|
-
import {
|
13
|
-
import { deepObjectSize, hasOwnProperty, isObject } from "./object.mjs";
|
11
|
+
import { deepObjectSize, isObject } from "./object.mjs";
|
14
12
|
var COLUMN_LABEL_BASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
15
13
|
var COLUMN_LABEL_BASE_LENGTH = COLUMN_LABEL_BASE.length;
|
16
14
|
|
@@ -115,52 +113,6 @@ export function createEmptySpreadsheetData(rows, columns) {
|
|
115
113
|
return data;
|
116
114
|
}
|
117
115
|
|
118
|
-
/**
|
119
|
-
* Factory that produces a function for searching methods (or any properties) which could be defined directly in
|
120
|
-
* table configuration or implicitly, within cell type definition.
|
121
|
-
*
|
122
|
-
* For example: renderer can be defined explicitly using "renderer" property in column configuration or it can be
|
123
|
-
* defined implicitly using "type" property.
|
124
|
-
*
|
125
|
-
* Methods/properties defined explicitly always takes precedence over those defined through "type".
|
126
|
-
*
|
127
|
-
* If the method/property is not found in an object, searching is continued recursively through prototype chain, until
|
128
|
-
* it reaches the Object.prototype.
|
129
|
-
*
|
130
|
-
* @param {string} methodName Name of the method/property to search (i.e. 'renderer', 'validator', 'copyable').
|
131
|
-
* @param {boolean} [allowUndefined] If `false`, the search is continued if methodName has not been found in cell
|
132
|
-
* "type".
|
133
|
-
* @returns {Function}
|
134
|
-
*/
|
135
|
-
export function cellMethodLookupFactory(methodName, allowUndefined) {
|
136
|
-
var isUndefinedAllowed = typeof allowUndefined === 'undefined' ? true : allowUndefined;
|
137
|
-
return function cellMethodLookup(row, col) {
|
138
|
-
return function getMethodFromProperties(properties) {
|
139
|
-
if (!properties) {
|
140
|
-
return; // method or property not found
|
141
|
-
}
|
142
|
-
|
143
|
-
if (hasOwnProperty(properties, methodName) && properties[methodName] !== void 0) {
|
144
|
-
// check if it is own and is not empty
|
145
|
-
return properties[methodName]; // method defined directly
|
146
|
-
} else if (hasOwnProperty(properties, 'type') && properties.type) {
|
147
|
-
// check if it is own and is not empty
|
148
|
-
if (typeof properties.type !== 'string') {
|
149
|
-
throw new Error('Cell "type" must be a string');
|
150
|
-
}
|
151
|
-
var type = getCellType(properties.type);
|
152
|
-
if (hasOwnProperty(type, methodName)) {
|
153
|
-
return type[methodName]; // method defined in type.
|
154
|
-
} else if (isUndefinedAllowed) {
|
155
|
-
return; // method does not defined in type (eg. validator), returns undefined
|
156
|
-
}
|
157
|
-
}
|
158
|
-
|
159
|
-
return getMethodFromProperties(Object.getPrototypeOf(properties));
|
160
|
-
}(typeof row === 'number' ? this.getCellMeta(row, col) : row);
|
161
|
-
};
|
162
|
-
}
|
163
|
-
|
164
116
|
/**
|
165
117
|
* Transform a data row (either an array or an object) or an array of data rows to array of changes in a form of `[row,
|
166
118
|
* prop/col, value]`. Convenient to use with `setDataAtRowProp` and `setSourceDataAtCell` methods.
|
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-c8630a2-20221202";
|
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-c8630a2-20221202";
|
146
146
|
var keyValidityDate;
|
147
147
|
var consoleMessageState = 'invalid';
|
148
148
|
var domMessageState = 'invalid';
|
package/helpers/object.js
CHANGED
@@ -363,7 +363,7 @@ function createObjectPropListener(defaultValue) {
|
|
363
363
|
/**
|
364
364
|
* Check if at specified `key` there is any value for `object`.
|
365
365
|
*
|
366
|
-
* @param {object} object Object to search value at
|
366
|
+
* @param {object} object Object to search value at specific key.
|
367
367
|
* @param {string} key String key to check.
|
368
368
|
* @returns {boolean}
|
369
369
|
*/
|
package/helpers/object.mjs
CHANGED
@@ -344,7 +344,7 @@ export function createObjectPropListener(defaultValue) {
|
|
344
344
|
/**
|
345
345
|
* Check if at specified `key` there is any value for `object`.
|
346
346
|
*
|
347
|
-
* @param {object} object Object to search value at
|
347
|
+
* @param {object} object Object to search value at specific key.
|
348
348
|
* @param {string} key String key to check.
|
349
349
|
* @returns {boolean}
|
350
350
|
*/
|
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-c8630a2-20221202",
|
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
|
@@ -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) {
|