handsontable 0.0.0-next-3be5fb5-20230427 → 0.0.0-next-aad186f-20230428
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.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/3rdparty/walkontable/src/cell/coords.js +13 -16
- package/3rdparty/walkontable/src/cell/coords.mjs +13 -16
- package/3rdparty/walkontable/src/cell/range.js +25 -29
- package/3rdparty/walkontable/src/cell/range.mjs +24 -28
- package/3rdparty/walkontable/src/overlay/_base.js +6 -7
- package/3rdparty/walkontable/src/overlay/_base.mjs +6 -7
- package/3rdparty/walkontable/src/overlay/bottom.js +6 -7
- package/3rdparty/walkontable/src/overlay/bottom.mjs +6 -7
- package/3rdparty/walkontable/src/overlay/top.js +6 -7
- package/3rdparty/walkontable/src/overlay/top.mjs +6 -7
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.js +10 -12
- package/3rdparty/walkontable/src/overlay/topInlineStartCorner.mjs +10 -12
- package/3rdparty/walkontable/src/overlays.js +55 -64
- package/3rdparty/walkontable/src/overlays.mjs +55 -64
- package/3rdparty/walkontable/src/scroll.js +20 -23
- package/3rdparty/walkontable/src/scroll.mjs +20 -23
- package/3rdparty/walkontable/src/settings.js +13 -15
- package/3rdparty/walkontable/src/settings.mjs +13 -15
- package/3rdparty/walkontable/src/table.js +22 -26
- package/3rdparty/walkontable/src/table.mjs +22 -26
- package/base.js +2 -4
- package/base.mjs +2 -2
- package/core.js +7 -3
- package/core.mjs +7 -3
- package/dataMap/dataSource.js +5 -5
- package/dataMap/dataSource.mjs +5 -5
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +2453 -1877
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +113 -105
- package/dist/handsontable.js +2215 -1640
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +11 -3
- package/dist/languages/all.js +133 -0
- package/dist/languages/ar-AR.js +7 -0
- package/dist/languages/cs-CZ.js +7 -0
- package/dist/languages/de-CH.js +7 -0
- package/dist/languages/de-DE.js +7 -0
- package/dist/languages/en-US.js +7 -0
- package/dist/languages/es-MX.js +7 -0
- package/dist/languages/fr-FR.js +7 -0
- package/dist/languages/it-IT.js +7 -0
- package/dist/languages/ja-JP.js +7 -0
- package/dist/languages/ko-KR.js +7 -0
- package/dist/languages/lv-LV.js +7 -0
- package/dist/languages/nb-NO.js +7 -0
- package/dist/languages/nl-NL.js +7 -0
- package/dist/languages/pl-PL.js +7 -0
- package/dist/languages/pt-BR.js +7 -0
- package/dist/languages/ru-RU.js +7 -0
- package/dist/languages/sr-SP.js +7 -0
- package/dist/languages/zh-CN.js +7 -0
- package/dist/languages/zh-TW.js +7 -0
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/i18n/languages/ar-AR.js +7 -1
- package/i18n/languages/cs-CZ.js +7 -1
- package/i18n/languages/de-CH.js +7 -1
- package/i18n/languages/de-DE.js +7 -1
- package/i18n/languages/en-US.js +7 -1
- package/i18n/languages/es-MX.js +7 -1
- package/i18n/languages/fr-FR.js +7 -1
- package/i18n/languages/it-IT.js +7 -1
- package/i18n/languages/ja-JP.js +7 -1
- package/i18n/languages/ko-KR.js +7 -1
- package/i18n/languages/lv-LV.js +7 -1
- package/i18n/languages/nb-NO.js +7 -1
- package/i18n/languages/nl-NL.js +7 -1
- package/i18n/languages/pl-PL.js +7 -1
- package/i18n/languages/pt-BR.js +7 -1
- package/i18n/languages/ru-RU.js +7 -1
- package/i18n/languages/sr-SP.js +7 -1
- package/i18n/languages/zh-CN.js +7 -1
- package/i18n/languages/zh-TW.js +7 -1
- package/languages/all.js +133 -0
- package/languages/ar-AR.js +7 -0
- package/languages/cs-CZ.js +7 -0
- package/languages/de-CH.js +7 -0
- package/languages/de-DE.js +7 -0
- package/languages/en-US.js +7 -0
- package/languages/es-MX.js +7 -0
- package/languages/fr-FR.js +7 -0
- package/languages/index.js +133 -0
- package/languages/it-IT.js +7 -0
- package/languages/ja-JP.js +7 -0
- package/languages/ko-KR.js +7 -0
- package/languages/lv-LV.js +7 -0
- package/languages/nb-NO.js +7 -0
- package/languages/nl-NL.js +7 -0
- package/languages/pl-PL.js +7 -0
- package/languages/pt-BR.js +7 -0
- package/languages/ru-RU.js +7 -0
- package/languages/sr-SP.js +7 -0
- package/languages/zh-CN.js +7 -0
- package/languages/zh-TW.js +7 -0
- package/package.json +3 -2
- package/pluginHooks.js +16 -6
- package/pluginHooks.mjs +15 -3
- package/plugins/autoRowSize/autoRowSize.js +2 -2
- package/plugins/autoRowSize/autoRowSize.mjs +2 -2
- package/plugins/copyPaste/copyableRanges.js +25 -31
- package/plugins/copyPaste/copyableRanges.mjs +18 -24
- package/plugins/formulas/formulas.js +139 -134
- package/plugins/formulas/formulas.mjs +139 -134
- package/plugins/formulas/indexSyncer/axisSyncer.js +379 -0
- package/plugins/formulas/indexSyncer/axisSyncer.mjs +374 -0
- package/plugins/formulas/indexSyncer/index.js +225 -0
- package/plugins/formulas/indexSyncer/index.mjs +219 -0
- package/plugins/nestedHeaders/stateManager/headersTree.js +23 -26
- package/plugins/nestedHeaders/stateManager/headersTree.mjs +20 -23
- package/plugins/nestedHeaders/stateManager/index.js +3 -3
- package/plugins/nestedHeaders/stateManager/matrixGenerator.js +1 -0
- package/plugins/nestedHeaders/stateManager/settingsNormalizer.js +1 -1
- package/plugins/nestedHeaders/utils/ghostTable.js +30 -35
- package/plugins/nestedHeaders/utils/ghostTable.mjs +30 -35
- package/plugins/registry.js +3 -1
- package/plugins/undoRedo/undoRedo.js +0 -1
- package/plugins/undoRedo/undoRedo.mjs +0 -1
- package/selection/highlight/visualSelection.js +5 -6
- package/selection/highlight/visualSelection.mjs +5 -6
- package/tableView.js +62 -72
- package/tableView.mjs +62 -72
- package/translations/changesObservable/observable.js +41 -46
- package/translations/changesObservable/observable.mjs +36 -41
- package/translations/changesObservable/observer.js +1 -1
- package/translations/indexMapper.js +21 -0
- package/translations/indexMapper.mjs +21 -0
- package/utils/dataStructures/tree.js +15 -18
- package/utils/dataStructures/tree.mjs +15 -18
package/languages/ko-KR.js
CHANGED
|
@@ -199,6 +199,13 @@ exports.default = void 0;
|
|
|
199
199
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(2));
|
|
200
200
|
var _handsontable = _interopRequireDefault(__webpack_require__(6));
|
|
201
201
|
var _dictionary;
|
|
202
|
+
/**
|
|
203
|
+
* @preserve
|
|
204
|
+
* Authors: Hwang, Gun-gu
|
|
205
|
+
* Last updated: Aug 20, 2018
|
|
206
|
+
*
|
|
207
|
+
* Description: Definition file for Korean - Korea language-country.
|
|
208
|
+
*/
|
|
202
209
|
var C = _handsontable.default.languages.dictionaryKeys;
|
|
203
210
|
var dictionary = (_dictionary = {
|
|
204
211
|
languageCode: 'ko-KR'
|
package/languages/lv-LV.js
CHANGED
|
@@ -200,6 +200,13 @@ exports.default = void 0;
|
|
|
200
200
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(2));
|
|
201
201
|
var _handsontable = _interopRequireDefault(__webpack_require__(6));
|
|
202
202
|
var _dictionary;
|
|
203
|
+
/**
|
|
204
|
+
* @preserve
|
|
205
|
+
* Authors: Edgars Voroboks, NullIsNot0
|
|
206
|
+
* Last updated: Dec 5, 2022
|
|
207
|
+
*
|
|
208
|
+
* Description: Definition file for Latvian - Latvia language-country.
|
|
209
|
+
*/
|
|
203
210
|
var C = _handsontable.default.languages.dictionaryKeys;
|
|
204
211
|
var dictionary = (_dictionary = {
|
|
205
212
|
languageCode: 'lv-LV'
|
package/languages/nb-NO.js
CHANGED
|
@@ -201,6 +201,13 @@ exports.default = void 0;
|
|
|
201
201
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(2));
|
|
202
202
|
var _handsontable = _interopRequireDefault(__webpack_require__(6));
|
|
203
203
|
var _dictionary;
|
|
204
|
+
/**
|
|
205
|
+
* @preserve
|
|
206
|
+
* Authors: Simon Borøy-Johnsen (TheSimoms)
|
|
207
|
+
* Last updated: Dec 19, 2017
|
|
208
|
+
*
|
|
209
|
+
* Description: Definition file for Norwegian Bokmål - Norway language-country.
|
|
210
|
+
*/
|
|
204
211
|
var C = _handsontable.default.languages.dictionaryKeys;
|
|
205
212
|
var dictionary = (_dictionary = {
|
|
206
213
|
languageCode: 'nb-NO'
|
package/languages/nl-NL.js
CHANGED
|
@@ -202,6 +202,13 @@ exports.default = void 0;
|
|
|
202
202
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(2));
|
|
203
203
|
var _handsontable = _interopRequireDefault(__webpack_require__(6));
|
|
204
204
|
var _dictionary;
|
|
205
|
+
/**
|
|
206
|
+
* @preserve
|
|
207
|
+
* Authors: Tomas Rapkauskas, Anton Brouwer, webjazznl
|
|
208
|
+
* Last updated: Dec 5, 2022
|
|
209
|
+
*
|
|
210
|
+
* Description: Definition file for Dutch - The Netherlands language-country.
|
|
211
|
+
*/
|
|
205
212
|
var C = _handsontable.default.languages.dictionaryKeys;
|
|
206
213
|
var dictionary = (_dictionary = {
|
|
207
214
|
languageCode: 'nl-NL'
|
package/languages/pl-PL.js
CHANGED
|
@@ -203,6 +203,13 @@ exports.default = void 0;
|
|
|
203
203
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(2));
|
|
204
204
|
var _handsontable = _interopRequireDefault(__webpack_require__(6));
|
|
205
205
|
var _dictionary;
|
|
206
|
+
/**
|
|
207
|
+
* @preserve
|
|
208
|
+
* Authors: Handsoncode
|
|
209
|
+
* Last updated: Dec 5, 2022
|
|
210
|
+
*
|
|
211
|
+
* Description: Definition file for Polish - Poland language-country.
|
|
212
|
+
*/
|
|
206
213
|
var C = _handsontable.default.languages.dictionaryKeys;
|
|
207
214
|
var dictionary = (_dictionary = {
|
|
208
215
|
languageCode: 'pl-PL'
|
package/languages/pt-BR.js
CHANGED
|
@@ -142,6 +142,13 @@ exports.default = void 0;
|
|
|
142
142
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(2));
|
|
143
143
|
var _handsontable = _interopRequireDefault(__webpack_require__(6));
|
|
144
144
|
var _dictionary;
|
|
145
|
+
/**
|
|
146
|
+
* @preserve
|
|
147
|
+
* Authors: Júlio C. Zuppa
|
|
148
|
+
* Last updated: Jan 12, 2018
|
|
149
|
+
*
|
|
150
|
+
* Description: Definition file for Portuguese - Brazil language-country.
|
|
151
|
+
*/
|
|
145
152
|
var C = _handsontable.default.languages.dictionaryKeys;
|
|
146
153
|
var dictionary = (_dictionary = {
|
|
147
154
|
languageCode: 'pt-BR'
|
package/languages/ru-RU.js
CHANGED
|
@@ -142,6 +142,13 @@ exports.default = void 0;
|
|
|
142
142
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(2));
|
|
143
143
|
var _handsontable = _interopRequireDefault(__webpack_require__(6));
|
|
144
144
|
var _dictionary;
|
|
145
|
+
/**
|
|
146
|
+
* @preserve
|
|
147
|
+
* Authors: Alexey Rogachev
|
|
148
|
+
* Last updated: Feb 28, 2018
|
|
149
|
+
*
|
|
150
|
+
* Description: Definition file for Russian - Russia language-country.
|
|
151
|
+
*/
|
|
145
152
|
var C = _handsontable.default.languages.dictionaryKeys;
|
|
146
153
|
var dictionary = (_dictionary = {
|
|
147
154
|
languageCode: 'ru-RU'
|
package/languages/sr-SP.js
CHANGED
|
@@ -142,6 +142,13 @@ exports.default = void 0;
|
|
|
142
142
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(2));
|
|
143
143
|
var _handsontable = _interopRequireDefault(__webpack_require__(6));
|
|
144
144
|
var _dictionary;
|
|
145
|
+
/**
|
|
146
|
+
* @preserve
|
|
147
|
+
* Author: Ivan Zarkovic
|
|
148
|
+
* Last updated: May 9, 2022
|
|
149
|
+
*
|
|
150
|
+
* Description: Definition file for Serbian - Republic of Serbia language-country.
|
|
151
|
+
*/
|
|
145
152
|
var C = _handsontable.default.languages.dictionaryKeys;
|
|
146
153
|
var dictionary = (_dictionary = {
|
|
147
154
|
languageCode: 'sr-SP'
|
package/languages/zh-CN.js
CHANGED
|
@@ -142,6 +142,13 @@ exports.default = void 0;
|
|
|
142
142
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(2));
|
|
143
143
|
var _handsontable = _interopRequireDefault(__webpack_require__(6));
|
|
144
144
|
var _dictionary;
|
|
145
|
+
/**
|
|
146
|
+
* @preserve
|
|
147
|
+
* Authors: soakit, HChenZi
|
|
148
|
+
* Last updated: Mar 09, 2023
|
|
149
|
+
*
|
|
150
|
+
* Description: Definition file for Chinese - China language-country.
|
|
151
|
+
*/
|
|
145
152
|
var C = _handsontable.default.languages.dictionaryKeys;
|
|
146
153
|
var dictionary = (_dictionary = {
|
|
147
154
|
languageCode: 'zh-CN'
|
package/languages/zh-TW.js
CHANGED
|
@@ -142,6 +142,13 @@ exports.default = void 0;
|
|
|
142
142
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(2));
|
|
143
143
|
var _handsontable = _interopRequireDefault(__webpack_require__(6));
|
|
144
144
|
var _dictionary;
|
|
145
|
+
/**
|
|
146
|
+
* @preserve
|
|
147
|
+
* Authors: Phyllis Yen
|
|
148
|
+
* Last updated: Mar 9, 2018
|
|
149
|
+
*
|
|
150
|
+
* Description: Definition file for Chinese - Taiwan language-country.
|
|
151
|
+
*/
|
|
145
152
|
var C = _handsontable.default.languages.dictionaryKeys;
|
|
146
153
|
var dictionary = (_dictionary = {
|
|
147
154
|
languageCode: 'zh-TW'
|
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-aad186f-20230428",
|
|
14
14
|
"main": "index",
|
|
15
15
|
"module": "index.mjs",
|
|
16
16
|
"jsnext:main": "index.mjs",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"webpack-cli": "^3.3.0"
|
|
106
106
|
},
|
|
107
107
|
"optionalDependencies": {
|
|
108
|
-
"hyperformula": "^2.
|
|
108
|
+
"hyperformula": "^2.4.0"
|
|
109
109
|
},
|
|
110
110
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
111
111
|
"typings": "./index.d.ts",
|
|
@@ -399,6 +399,7 @@
|
|
|
399
399
|
"require": "./plugins/formulas/index.js",
|
|
400
400
|
"import": "./plugins/formulas/index.mjs"
|
|
401
401
|
},
|
|
402
|
+
"./plugins/formulas/indexSyncer": "./plugins/formulas/indexSyncer",
|
|
402
403
|
"./plugins/hiddenColumns/index.d.ts": "./plugins/hiddenColumns/index.d.ts",
|
|
403
404
|
"./plugins/hiddenColumns": {
|
|
404
405
|
"require": "./plugins/hiddenColumns/index.js",
|
package/pluginHooks.js
CHANGED
|
@@ -141,9 +141,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
141
141
|
* });
|
|
142
142
|
* :::
|
|
143
143
|
* ...
|
|
144
|
-
*/
|
|
145
|
-
|
|
146
|
-
// @TODO: Move plugin description hooks to plugin?
|
|
144
|
+
*/ // @TODO: Move plugin description hooks to plugin?
|
|
147
145
|
var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sentence */
|
|
148
146
|
/**
|
|
149
147
|
* Fired after resetting a cell's meta. This happens when the {@link Core#updateSettings} method is called.
|
|
@@ -289,6 +287,12 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
|
|
|
289
287
|
* :::
|
|
290
288
|
*/
|
|
291
289
|
'beforeCreateCol',
|
|
290
|
+
/**
|
|
291
|
+
* Fired after changing a column sequence. It populates every change on indexes captured by {@link IndexMapper}.
|
|
292
|
+
*
|
|
293
|
+
* @param {'init'|'remove'|'insert'|'move'|'update'} [source] String that identifies source of row sequence change.
|
|
294
|
+
*/
|
|
295
|
+
'afterColumnSequenceChange',
|
|
292
296
|
/**
|
|
293
297
|
* Fired after created a new column.
|
|
294
298
|
*
|
|
@@ -551,6 +555,12 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
|
|
|
551
555
|
* @param {object} cellProperties Object containing the cell's properties.
|
|
552
556
|
*/
|
|
553
557
|
'afterRenderer',
|
|
558
|
+
/**
|
|
559
|
+
* Fired after changing a row sequence. It populates every change on indexes captured by {@link IndexMapper}.
|
|
560
|
+
*
|
|
561
|
+
* @param {'init'|'remove'|'insert'|'move'|'update'} [source] String that identifies source of row sequence change.
|
|
562
|
+
*/
|
|
563
|
+
'afterRowSequenceChange',
|
|
554
564
|
/**
|
|
555
565
|
* Fired after the horizontal scroll event.
|
|
556
566
|
*
|
|
@@ -1196,8 +1206,8 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
|
|
|
1196
1206
|
* Fired when a data was retrieved or modified.
|
|
1197
1207
|
*
|
|
1198
1208
|
* @event Hooks#modifyData
|
|
1199
|
-
* @param {number} row Physical row
|
|
1200
|
-
* @param {number} column
|
|
1209
|
+
* @param {number} row Physical row index.
|
|
1210
|
+
* @param {number} column Visual column index.
|
|
1201
1211
|
* @param {object} valueHolder Object which contains original value which can be modified by overwriting `.value` property.
|
|
1202
1212
|
* @param {string} ioMode String which indicates for what operation hook is fired (`get` or `set`).
|
|
1203
1213
|
*/
|
|
@@ -1208,7 +1218,7 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
|
|
|
1208
1218
|
* @event Hooks#modifySourceData
|
|
1209
1219
|
* @since 8.0.0
|
|
1210
1220
|
* @param {number} row Physical row index.
|
|
1211
|
-
* @param {number} column Physical column index.
|
|
1221
|
+
* @param {number} column Physical column index or property name.
|
|
1212
1222
|
* @param {object} valueHolder Object which contains original value which can be modified by overwriting `.value` property.
|
|
1213
1223
|
* @param {string} ioMode String which indicates for what operation hook is fired (`get` or `set`).
|
|
1214
1224
|
*/
|
package/pluginHooks.mjs
CHANGED
|
@@ -284,6 +284,12 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
|
|
|
284
284
|
* :::
|
|
285
285
|
*/
|
|
286
286
|
'beforeCreateCol',
|
|
287
|
+
/**
|
|
288
|
+
* Fired after changing a column sequence. It populates every change on indexes captured by {@link IndexMapper}.
|
|
289
|
+
*
|
|
290
|
+
* @param {'init'|'remove'|'insert'|'move'|'update'} [source] String that identifies source of row sequence change.
|
|
291
|
+
*/
|
|
292
|
+
'afterColumnSequenceChange',
|
|
287
293
|
/**
|
|
288
294
|
* Fired after created a new column.
|
|
289
295
|
*
|
|
@@ -546,6 +552,12 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
|
|
|
546
552
|
* @param {object} cellProperties Object containing the cell's properties.
|
|
547
553
|
*/
|
|
548
554
|
'afterRenderer',
|
|
555
|
+
/**
|
|
556
|
+
* Fired after changing a row sequence. It populates every change on indexes captured by {@link IndexMapper}.
|
|
557
|
+
*
|
|
558
|
+
* @param {'init'|'remove'|'insert'|'move'|'update'} [source] String that identifies source of row sequence change.
|
|
559
|
+
*/
|
|
560
|
+
'afterRowSequenceChange',
|
|
549
561
|
/**
|
|
550
562
|
* Fired after the horizontal scroll event.
|
|
551
563
|
*
|
|
@@ -1191,8 +1203,8 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
|
|
|
1191
1203
|
* Fired when a data was retrieved or modified.
|
|
1192
1204
|
*
|
|
1193
1205
|
* @event Hooks#modifyData
|
|
1194
|
-
* @param {number} row Physical row
|
|
1195
|
-
* @param {number} column
|
|
1206
|
+
* @param {number} row Physical row index.
|
|
1207
|
+
* @param {number} column Visual column index.
|
|
1196
1208
|
* @param {object} valueHolder Object which contains original value which can be modified by overwriting `.value` property.
|
|
1197
1209
|
* @param {string} ioMode String which indicates for what operation hook is fired (`get` or `set`).
|
|
1198
1210
|
*/
|
|
@@ -1203,7 +1215,7 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
|
|
|
1203
1215
|
* @event Hooks#modifySourceData
|
|
1204
1216
|
* @since 8.0.0
|
|
1205
1217
|
* @param {number} row Physical row index.
|
|
1206
|
-
* @param {number} column Physical column index.
|
|
1218
|
+
* @param {number} column Physical column index or property name.
|
|
1207
1219
|
* @param {object} valueHolder Object which contains original value which can be modified by overwriting `.value` property.
|
|
1208
1220
|
* @param {string} ioMode String which indicates for what operation hook is fired (`get` or `set`).
|
|
1209
1221
|
*/
|
|
@@ -83,10 +83,10 @@ var ROW_WIDTHS_MAP_NAME = 'autoRowSize';
|
|
|
83
83
|
* To configure the sync/async distribution, you can pass an absolute value (number of rows) or a percentage value to a config object:
|
|
84
84
|
* ```js
|
|
85
85
|
* // as a number (300 rows in sync, rest async)
|
|
86
|
-
* autoRowSize: {syncLimit: 300}
|
|
86
|
+
* autoRowSize: {syncLimit: 300},
|
|
87
87
|
*
|
|
88
88
|
* // as a string (percent)
|
|
89
|
-
* autoRowSize: {syncLimit: '40%'}
|
|
89
|
+
* autoRowSize: {syncLimit: '40%'},
|
|
90
90
|
*
|
|
91
91
|
* // allow sample duplication
|
|
92
92
|
* autoRowSize: {syncLimit: '40%', allowSampleDuplicates: true},
|
|
@@ -76,10 +76,10 @@ var ROW_WIDTHS_MAP_NAME = 'autoRowSize';
|
|
|
76
76
|
* To configure the sync/async distribution, you can pass an absolute value (number of rows) or a percentage value to a config object:
|
|
77
77
|
* ```js
|
|
78
78
|
* // as a number (300 rows in sync, rest async)
|
|
79
|
-
* autoRowSize: {syncLimit: 300}
|
|
79
|
+
* autoRowSize: {syncLimit: 300},
|
|
80
80
|
*
|
|
81
81
|
* // as a string (percent)
|
|
82
|
-
* autoRowSize: {syncLimit: '40%'}
|
|
82
|
+
* autoRowSize: {syncLimit: '40%'},
|
|
83
83
|
*
|
|
84
84
|
* // allow sample duplication
|
|
85
85
|
* autoRowSize: {syncLimit: '40%', allowSampleDuplicates: true},
|
|
@@ -33,6 +33,13 @@ function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) {
|
|
|
33
33
|
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
|
|
34
34
|
function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); }
|
|
35
35
|
function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } }
|
|
36
|
+
/**
|
|
37
|
+
* The utils class produces the selection ranges in the `{startRow, startCol, endRow, endCol}` format
|
|
38
|
+
* based on the current table selection. The CopyPaste plugin consumes that ranges to generate
|
|
39
|
+
* appropriate data ready to copy to the clipboard.
|
|
40
|
+
*
|
|
41
|
+
* @private
|
|
42
|
+
*/
|
|
36
43
|
var _selectedRange = /*#__PURE__*/new WeakMap();
|
|
37
44
|
var _countRows = /*#__PURE__*/new WeakMap();
|
|
38
45
|
var _countColumns = /*#__PURE__*/new WeakMap();
|
|
@@ -41,38 +48,7 @@ var _columnsLimit = /*#__PURE__*/new WeakMap();
|
|
|
41
48
|
var _countColumnHeaders = /*#__PURE__*/new WeakMap();
|
|
42
49
|
var _trimColumnsRange = /*#__PURE__*/new WeakSet();
|
|
43
50
|
var _trimRowsRange = /*#__PURE__*/new WeakSet();
|
|
44
|
-
/**
|
|
45
|
-
* The utils class produces the selection ranges in the `{startRow, startCol, endRow, endCol}` format
|
|
46
|
-
* based on the current table selection. The CopyPaste plugin consumes that ranges to generate
|
|
47
|
-
* appropriate data ready to copy to the clipboard.
|
|
48
|
-
*
|
|
49
|
-
* @private
|
|
50
|
-
*/
|
|
51
51
|
var CopyableRangesFactory = /*#__PURE__*/function () {
|
|
52
|
-
/**
|
|
53
|
-
* @type {CellRange}
|
|
54
|
-
*/
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @type {function(): number}
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @type {function(): number}
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @type {function(): number}
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @type {function(): number}
|
|
70
|
-
*/
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @type {function(): number}
|
|
74
|
-
*/
|
|
75
|
-
|
|
76
52
|
/* eslint-disable jsdoc/require-description-complete-sentence */
|
|
77
53
|
/**
|
|
78
54
|
* @param {{
|
|
@@ -106,26 +82,44 @@ var CopyableRangesFactory = /*#__PURE__*/function () {
|
|
|
106
82
|
* @returns {number} Returns trimmed column index if it exceeds the limit.
|
|
107
83
|
*/
|
|
108
84
|
_classPrivateMethodInitSpec(this, _trimColumnsRange);
|
|
85
|
+
/**
|
|
86
|
+
* @type {CellRange}
|
|
87
|
+
*/
|
|
109
88
|
_classPrivateFieldInitSpec(this, _selectedRange, {
|
|
110
89
|
writable: true,
|
|
111
90
|
value: void 0
|
|
112
91
|
});
|
|
92
|
+
/**
|
|
93
|
+
* @type {function(): number}
|
|
94
|
+
*/
|
|
113
95
|
_classPrivateFieldInitSpec(this, _countRows, {
|
|
114
96
|
writable: true,
|
|
115
97
|
value: void 0
|
|
116
98
|
});
|
|
99
|
+
/**
|
|
100
|
+
* @type {function(): number}
|
|
101
|
+
*/
|
|
117
102
|
_classPrivateFieldInitSpec(this, _countColumns, {
|
|
118
103
|
writable: true,
|
|
119
104
|
value: void 0
|
|
120
105
|
});
|
|
106
|
+
/**
|
|
107
|
+
* @type {function(): number}
|
|
108
|
+
*/
|
|
121
109
|
_classPrivateFieldInitSpec(this, _rowsLimit, {
|
|
122
110
|
writable: true,
|
|
123
111
|
value: void 0
|
|
124
112
|
});
|
|
113
|
+
/**
|
|
114
|
+
* @type {function(): number}
|
|
115
|
+
*/
|
|
125
116
|
_classPrivateFieldInitSpec(this, _columnsLimit, {
|
|
126
117
|
writable: true,
|
|
127
118
|
value: void 0
|
|
128
119
|
});
|
|
120
|
+
/**
|
|
121
|
+
* @type {function(): number}
|
|
122
|
+
*/
|
|
129
123
|
_classPrivateFieldInitSpec(this, _countColumnHeaders, {
|
|
130
124
|
writable: true,
|
|
131
125
|
value: void 0
|
|
@@ -44,30 +44,6 @@ var _countColumnHeaders = /*#__PURE__*/new WeakMap();
|
|
|
44
44
|
var _trimColumnsRange = /*#__PURE__*/new WeakSet();
|
|
45
45
|
var _trimRowsRange = /*#__PURE__*/new WeakSet();
|
|
46
46
|
export var CopyableRangesFactory = /*#__PURE__*/function () {
|
|
47
|
-
/**
|
|
48
|
-
* @type {CellRange}
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @type {function(): number}
|
|
53
|
-
*/
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @type {function(): number}
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @type {function(): number}
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @type {function(): number}
|
|
65
|
-
*/
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @type {function(): number}
|
|
69
|
-
*/
|
|
70
|
-
|
|
71
47
|
/* eslint-disable jsdoc/require-description-complete-sentence */
|
|
72
48
|
/**
|
|
73
49
|
* @param {{
|
|
@@ -101,26 +77,44 @@ export var CopyableRangesFactory = /*#__PURE__*/function () {
|
|
|
101
77
|
* @returns {number} Returns trimmed column index if it exceeds the limit.
|
|
102
78
|
*/
|
|
103
79
|
_classPrivateMethodInitSpec(this, _trimColumnsRange);
|
|
80
|
+
/**
|
|
81
|
+
* @type {CellRange}
|
|
82
|
+
*/
|
|
104
83
|
_classPrivateFieldInitSpec(this, _selectedRange, {
|
|
105
84
|
writable: true,
|
|
106
85
|
value: void 0
|
|
107
86
|
});
|
|
87
|
+
/**
|
|
88
|
+
* @type {function(): number}
|
|
89
|
+
*/
|
|
108
90
|
_classPrivateFieldInitSpec(this, _countRows, {
|
|
109
91
|
writable: true,
|
|
110
92
|
value: void 0
|
|
111
93
|
});
|
|
94
|
+
/**
|
|
95
|
+
* @type {function(): number}
|
|
96
|
+
*/
|
|
112
97
|
_classPrivateFieldInitSpec(this, _countColumns, {
|
|
113
98
|
writable: true,
|
|
114
99
|
value: void 0
|
|
115
100
|
});
|
|
101
|
+
/**
|
|
102
|
+
* @type {function(): number}
|
|
103
|
+
*/
|
|
116
104
|
_classPrivateFieldInitSpec(this, _rowsLimit, {
|
|
117
105
|
writable: true,
|
|
118
106
|
value: void 0
|
|
119
107
|
});
|
|
108
|
+
/**
|
|
109
|
+
* @type {function(): number}
|
|
110
|
+
*/
|
|
120
111
|
_classPrivateFieldInitSpec(this, _columnsLimit, {
|
|
121
112
|
writable: true,
|
|
122
113
|
value: void 0
|
|
123
114
|
});
|
|
115
|
+
/**
|
|
116
|
+
* @type {function(): number}
|
|
117
|
+
*/
|
|
124
118
|
_classPrivateFieldInitSpec(this, _countColumnHeaders, {
|
|
125
119
|
writable: true,
|
|
126
120
|
value: void 0
|