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
@@ -59,7 +59,7 @@ import { isObjectEqual } from "../../helpers/object.mjs";
|
|
59
59
|
* ::: only-for react
|
60
60
|
*
|
61
61
|
* To apply configuration options, pass them as individual props
|
62
|
-
* of the [`HotTable`](@/guides/getting-started/installation.md
|
62
|
+
* of the [`HotTable`](@/guides/getting-started/installation.md#use-the-hottable-component)
|
63
63
|
* or [`HotColumn`](@/guides/columns/react-hot-column.md) components.
|
64
64
|
*
|
65
65
|
* Read more on the [Configuration options](@/guides/getting-started/configuration-options.md) page.
|
@@ -89,10 +89,10 @@ import { isObjectEqual } from "../../helpers/object.mjs";
|
|
89
89
|
* :::
|
90
90
|
*
|
91
91
|
* Depending on your needs, you can apply [configuration options](@/api/options.md) to different elements of your grid:
|
92
|
-
* - [The entire grid](@/guides/getting-started/configuration-options.md#
|
93
|
-
* - [Individual columns](@/guides/getting-started/configuration-options.md#
|
94
|
-
* - [Individual rows](@/guides/getting-started/configuration-options.md#
|
95
|
-
* - [Individual cells](@/guides/getting-started/configuration-options.md#
|
92
|
+
* - [The entire grid](@/guides/getting-started/configuration-options.md#set-grid-options)
|
93
|
+
* - [Individual columns](@/guides/getting-started/configuration-options.md#set-column-options)
|
94
|
+
* - [Individual rows](@/guides/getting-started/configuration-options.md#set-row-options)
|
95
|
+
* - [Individual cells](@/guides/getting-started/configuration-options.md#set-cell-options)
|
96
96
|
* - [Individual grid elements, based on any logic you implement](@/guides/getting-started/configuration-options.md#implementing-custom-logic)
|
97
97
|
*
|
98
98
|
* Read more:
|
@@ -413,14 +413,16 @@ export default (function () {
|
|
413
413
|
*/
|
414
414
|
autoRowSize: void 0,
|
415
415
|
/**
|
416
|
-
*
|
416
|
+
* With [`autoWrapCol`](#autowrapcol) enabled:
|
417
|
+
* - When you select a bottom-most cell, pressing <kbd>**↓**</kbd> takes you to the top-most cell of the next column.
|
418
|
+
* - When you select a top-most cell, pressing <kbd>**↑**</kbd> takes you to the bottom-most cell of the previous column.
|
417
419
|
*
|
418
|
-
* You can set the `autoWrapCol` option to one of the following:
|
420
|
+
* You can set the [`autoWrapCol`](#autowrapcol) option to one of the following:
|
419
421
|
*
|
420
|
-
* | Setting | Description
|
421
|
-
* | ----------------- |
|
422
|
-
* | `true` |
|
423
|
-
* | `false` (default) |
|
422
|
+
* | Setting | Description |
|
423
|
+
* | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
424
|
+
* | `true` | When you select a bottom-most cell, pressing <kbd>**↓**</kbd> takes you to the top-most cell of the next column.<br><br>When you select a top-most cell, pressing <kbd>**↑**</kbd> takes you to the bottom-most cell of the previous column. |
|
425
|
+
* | `false` (default) | When you select a bottom-most cell, pressing <kbd>**↓**</kbd> doesn't do anything.<br><br>When you select a top-most cell, pressing <kbd>**↑**</kbd> doesn't do anything. |
|
424
426
|
*
|
425
427
|
* @memberof Options#
|
426
428
|
* @type {boolean}
|
@@ -429,20 +431,29 @@ export default (function () {
|
|
429
431
|
*
|
430
432
|
* @example
|
431
433
|
* ```js
|
432
|
-
* //
|
434
|
+
* // when you select a bottom-most cell, pressing ⬇ doesn't do anything
|
435
|
+
* // when you select a top-most cell, pressing ⬆ doesn't do anything
|
436
|
+
* autoWrapCol: false, // default setting
|
437
|
+
*
|
438
|
+
* // when you select a bottom-most cell, pressing ⬇ takes you to the top-most cell of the next column
|
439
|
+
* // when you select a top-most cell, pressing ⬆ takes you to the bottom-most cell of the previous column
|
433
440
|
* autoWrapCol: true,
|
434
441
|
* ```
|
435
442
|
*/
|
436
443
|
autoWrapCol: false,
|
437
444
|
/**
|
438
|
-
*
|
445
|
+
* With [`autoWrapRow`](#autoWrapRow) enabled:
|
446
|
+
* - When you select the first cell of a row, pressing <kbd>**←**</kbd>* takes you to the last cell of the row above.
|
447
|
+
* - When you select the last cell of a row, pressing <kbd>**→**</kbd>* takes you to the first cell of the row below.
|
448
|
+
*
|
449
|
+
* You can set the [`autoWrapRow`](#autoWrapRow) option to one of the following:
|
439
450
|
*
|
440
|
-
*
|
451
|
+
* | Setting | Description |
|
452
|
+
* | ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
453
|
+
* | `true` | When you select the first cell of a row, pressing <kbd>**←**</kbd>* takes you to the last cell of the row above.<br><br>When you select the last cell of a row, pressing <kbd>**→**</kbd>* takes you to the first cell of the row below. |
|
454
|
+
* | `false` (default) | When you select the first cell of a row, pressing <kbd>**←**</kbd>* doesn't do anything.<br><br>When you select the last cell of a row, pressing <kbd>**→**</kbd>* doesn't do anything. |
|
441
455
|
*
|
442
|
-
*
|
443
|
-
* | ----------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
444
|
-
* | `true` | On reaching the grid's left or right edge:<br>- Jump to the grid's opposite edge<br>- Select a cell in the previous/next row |
|
445
|
-
* | `false` (default) | On reaching the grid's left or right edge, stop |
|
456
|
+
* \* The exact key depends on your [`layoutDirection`](#layoutdirection) configuration.
|
446
457
|
*
|
447
458
|
* @memberof Options#
|
448
459
|
* @type {boolean}
|
@@ -451,7 +462,12 @@ export default (function () {
|
|
451
462
|
*
|
452
463
|
* @example
|
453
464
|
* ```js
|
454
|
-
* //
|
465
|
+
* // when you select the first cell of a row, pressing ⬅ doesn't do anything
|
466
|
+
* // when you select the last cell of a row, pressing ➡️ doesn't do anything
|
467
|
+
* autoWrapRow: false, // default setting
|
468
|
+
*
|
469
|
+
* // when you select the first cell of a row, pressing ⬅ takes you to the last cell of the row above
|
470
|
+
* // when you select the last cell of a row, pressing ➡️ takes you to the first cell of the row below
|
455
471
|
* autoWrapRow: true,
|
456
472
|
* ```
|
457
473
|
*/
|
@@ -485,11 +501,11 @@ export default (function () {
|
|
485
501
|
/**
|
486
502
|
* The `cell` option lets you apply [configuration options](@/guides/getting-started/configuration-options.md) to individual cells.
|
487
503
|
*
|
488
|
-
* The `cell` option overwrites the [top-level grid options](@/guides/getting-started/configuration-options.md#
|
504
|
+
* The `cell` option overwrites the [top-level grid options](@/guides/getting-started/configuration-options.md#set-grid-options),
|
489
505
|
* and the [`columns`](#columns) options.
|
490
506
|
*
|
491
507
|
* Read more:
|
492
|
-
* - [Configuration options: Setting cell options](@/guides/getting-started/configuration-options.md#
|
508
|
+
* - [Configuration options: Setting cell options](@/guides/getting-started/configuration-options.md#set-cell-options)
|
493
509
|
* - [`columns`](#columns)
|
494
510
|
*
|
495
511
|
* @memberof Options#
|
@@ -526,8 +542,8 @@ export default (function () {
|
|
526
542
|
* | `prop` | No | String \| Number | If [`data`](#data) is set to an [array of arrays](@/guides/getting-started/binding-to-data.md#array-of-arrays), `prop` is the same number as `column`.<br><br>If [`data`](#data) is set to an [array of objects](@/guides/getting-started/binding-to-data.md#array-of-objects), `prop` is a property name for the column's data object. |
|
527
543
|
*
|
528
544
|
* Read more:
|
529
|
-
* - [Configuration options: Implementing custom logic](@/guides/getting-started/configuration-options.md#
|
530
|
-
* - [Configuration options: Setting row options](@/guides/getting-started/configuration-options.md#
|
545
|
+
* - [Configuration options: Implementing custom logic](@/guides/getting-started/configuration-options.md#implement-custom-logic)
|
546
|
+
* - [Configuration options: Setting row options](@/guides/getting-started/configuration-options.md#set-row-options)
|
531
547
|
* - [`columns`](#columns)
|
532
548
|
* - [`cell`](#cell)
|
533
549
|
*
|
@@ -744,12 +760,12 @@ export default (function () {
|
|
744
760
|
* - An array of objects (each object represents one column)
|
745
761
|
* - A function that returns an array of objects
|
746
762
|
*
|
747
|
-
* The `columns` option overwrites the [top-level grid options](@/guides/getting-started/configuration-options.md#
|
763
|
+
* The `columns` option overwrites the [top-level grid options](@/guides/getting-started/configuration-options.md#set-grid-options).
|
748
764
|
*
|
749
765
|
* When you use `columns`, the [`startCols`](#startCols), [`minCols`](#minCols), and [`maxCols`](#maxCols) options are ignored.
|
750
766
|
*
|
751
767
|
* Read more:
|
752
|
-
* - [Configuration options: Setting column options](@/guides/getting-started/configuration-options.md#
|
768
|
+
* - [Configuration options: Setting column options](@/guides/getting-started/configuration-options.md#set-column-options)
|
753
769
|
* - [`startCols`](#startCols)
|
754
770
|
* - [`minCols`](#minCols)
|
755
771
|
* - [`maxCols`](#maxCols)
|
@@ -882,12 +898,12 @@ export default (function () {
|
|
882
898
|
* | `type` | `'sum'` \| `'min'` \| `'max'` \| `'count'` \| `'average'` \| `'custom'` | [Summary function](@/guides/columns/column-summary.md#step-3-calculate-your-summary) |
|
883
899
|
* | `destinationRow` | A number | [Destination cell's row coordinate](@/guides/columns/column-summary.md#step-4-provide-the-destination-cell-s-coordinates) |
|
884
900
|
* | `destinationColumn` | A number | [Destination cell's column coordinate](@/guides/columns/column-summary.md#step-4-provide-the-destination-cell-s-coordinates) |
|
885
|
-
* | `forceNumeric` | `true` \| `false` | [Treat non-numerics as numerics](@/guides/columns/column-summary.md#
|
901
|
+
* | `forceNumeric` | `true` \| `false` | [Treat non-numerics as numerics](@/guides/columns/column-summary.md#force-numeric-values) |
|
886
902
|
* | `reversedRowCoords` | `true` \| `false` | [Reverse row coordinates](@/guides/columns/column-summary.md#step-5-make-room-for-the-destination-cell) |
|
887
|
-
* | `suppressDataTypeErrors` | `true` \| `false` | [Suppress data type errors](@/guides/columns/column-summary.md#
|
903
|
+
* | `suppressDataTypeErrors` | `true` \| `false` | [Suppress data type errors](@/guides/columns/column-summary.md#throw-data-type-errors) |
|
888
904
|
* | `readOnly` | `true` \| `false` | Make summary cell read-only |
|
889
|
-
* | `roundFloat` | `true` \| `false` | [Round summary result](@/guides/columns/column-summary.md#
|
890
|
-
* | `customFunction` | A function | [Custom summary function](@/guides/columns/column-summary.md#
|
905
|
+
* | `roundFloat` | `true` \| `false` | [Round summary result](@/guides/columns/column-summary.md#round-a-column-summary-result) |
|
906
|
+
* | `customFunction` | A function | [Custom summary function](@/guides/columns/column-summary.md#implement-a-custom-summary-function) |
|
891
907
|
*
|
892
908
|
* Read more:
|
893
909
|
* - [Column summary](@/guides/columns/column-summary.md)
|
@@ -1065,13 +1081,13 @@ export default (function () {
|
|
1065
1081
|
* | `false` | Disable the [`ContextMenu`](@/api/contextMenu.md) plugin |
|
1066
1082
|
* | `true` | - Enable the [`ContextMenu`](@/api/contextMenu.md) plugin<br>- Use the [default context menu options](@/guides/accessories-and-menus/context-menu.md#context-menu-with-default-options) |
|
1067
1083
|
* | An array | - Enable the [`ContextMenu`](@/api/contextMenu.md) plugin<br>- Modify [individual context menu options](@/guides/accessories-and-menus/context-menu.md#context-menu-with-specific-options) |
|
1068
|
-
* | An object | - Enable the [`ContextMenu`](@/api/contextMenu.md) plugin<br>- Apply a [custom context menu configuration](@/guides/accessories-and-menus/context-menu.md#context-menu-with-fully-custom-configuration) |
|
1084
|
+
* | An object | - Enable the [`ContextMenu`](@/api/contextMenu.md) plugin<br>- Apply a [custom context menu configuration](@/guides/accessories-and-menus/context-menu.md#context-menu-with-a-fully-custom-configuration) |
|
1069
1085
|
*
|
1070
1086
|
* Read more:
|
1071
1087
|
* - [Context menu](@/guides/accessories-and-menus/context-menu.md)
|
1072
1088
|
* - [Context menu: Context menu with default options](@/guides/accessories-and-menus/context-menu.md#context-menu-with-default-options)
|
1073
1089
|
* - [Context menu: Context menu with specific options](@/guides/accessories-and-menus/context-menu.md#context-menu-with-specific-options)
|
1074
|
-
* - [Context menu: Context menu with fully custom configuration options](@/guides/accessories-and-menus/context-menu.md#context-menu-with-fully-custom-configuration)
|
1090
|
+
* - [Context menu: Context menu with fully custom configuration options](@/guides/accessories-and-menus/context-menu.md#context-menu-with-a-fully-custom-configuration)
|
1075
1091
|
* - [Plugins: `ContextMenu`](@/api/contextMenu.md)
|
1076
1092
|
*
|
1077
1093
|
* @memberof Options#
|
@@ -2568,7 +2584,7 @@ export default (function () {
|
|
2568
2584
|
*
|
2569
2585
|
* You can set the layout direction only at Handsontable's [initialization](@/guides/getting-started/installation.md#initialize-handsontable). Any change of the `layoutDirection` option after the initialization (e.g. using the [`updateSettings()`](@/api/core.md#updatesettings) method) is ignored.
|
2570
2586
|
*
|
2571
|
-
* You can set the `layoutDirection` option only [for the entire grid](@/guides/getting-started/configuration-options.md#
|
2587
|
+
* You can set the `layoutDirection` option only [for the entire grid](@/guides/getting-started/configuration-options.md#set-grid-options).
|
2572
2588
|
* You can't set it for individual columns, rows, or cells.
|
2573
2589
|
*
|
2574
2590
|
* You can set the `layoutDirection` option to one of the following strings:
|
@@ -2640,8 +2656,8 @@ export default (function () {
|
|
2640
2656
|
* The `locale` option configures Handsontable's [locale](@/guides/internationalization/locale.md) settings.
|
2641
2657
|
*
|
2642
2658
|
* You can set the `locale` option to any valid and canonicalized Unicode BCP 47 locale tag,
|
2643
|
-
* both for the [entire grid](@/guides/internationalization/locale.md#
|
2644
|
-
* and for [individual columns](@/guides/internationalization/locale.md#
|
2659
|
+
* both for the [entire grid](@/guides/internationalization/locale.md#set-the-grid-s-locale),
|
2660
|
+
* and for [individual columns](@/guides/internationalization/locale.md#set-a-column-s-locale).
|
2645
2661
|
*
|
2646
2662
|
* Read more:
|
2647
2663
|
* - [Locale](@/guides/internationalization/locale.md)
|
@@ -3294,7 +3310,7 @@ export default (function () {
|
|
3294
3310
|
* | `true` | Enable the [`PersistentState`](@/api/persistentState.md) plugin |
|
3295
3311
|
*
|
3296
3312
|
* Read more:
|
3297
|
-
* - [Saving data: Saving data locally](@/guides/getting-started/saving-data.md#
|
3313
|
+
* - [Saving data: Saving data locally](@/guides/getting-started/saving-data.md#save-data-locally)
|
3298
3314
|
* - [Plugins: `PersistentState`](@/api/persistentState.md)
|
3299
3315
|
*
|
3300
3316
|
* @memberof Options#
|
@@ -3737,7 +3753,7 @@ export default (function () {
|
|
3737
3753
|
* | `'multiple'` | Allow the user to select multiple ranges of cells at a time. |
|
3738
3754
|
*
|
3739
3755
|
* Read more:
|
3740
|
-
* - [Selection: Selecting ranges](@/guides/cell-features/selection.md#
|
3756
|
+
* - [Selection: Selecting ranges](@/guides/cell-features/selection.md#select-ranges)
|
3741
3757
|
*
|
3742
3758
|
* @memberof Options#
|
3743
3759
|
* @type {string}
|
@@ -3828,7 +3844,7 @@ export default (function () {
|
|
3828
3844
|
* | `true` | - Disable pasting data into this column<br>- On pasting, paste data into the next column to the right |
|
3829
3845
|
*
|
3830
3846
|
* Read more:
|
3831
|
-
* - [Configuration options: Setting column options](@/guides/getting-started/configuration-options.md#
|
3847
|
+
* - [Configuration options: Setting column options](@/guides/getting-started/configuration-options.md#set-column-options)
|
3832
3848
|
*
|
3833
3849
|
* @memberof Options#
|
3834
3850
|
* @type {boolean}
|
@@ -3861,7 +3877,7 @@ export default (function () {
|
|
3861
3877
|
* | `true` | - Disable pasting data into this row<br>- On pasting, paste data into the row below |
|
3862
3878
|
*
|
3863
3879
|
* Read more:
|
3864
|
-
* - [Configuration options: Setting row options](@/guides/getting-started/configuration-options.md#
|
3880
|
+
* - [Configuration options: Setting row options](@/guides/getting-started/configuration-options.md#set-row-options)
|
3865
3881
|
*
|
3866
3882
|
* @memberof Options#
|
3867
3883
|
* @type {boolean}
|
package/dataMap/replaceData.js
CHANGED
@@ -44,7 +44,6 @@ function replaceData(data, setDataMapFunction, callbackFunction, config) {
|
|
44
44
|
dataSource = config.dataSource,
|
45
45
|
internalSource = config.internalSource,
|
46
46
|
source = config.source,
|
47
|
-
metaManager = config.metaManager,
|
48
47
|
firstRun = config.firstRun;
|
49
48
|
var capitalizedInternalSource = (0, _string.toUpperCaseFirst)(internalSource);
|
50
49
|
var tableMeta = hotInstance.getSettings();
|
@@ -59,7 +58,7 @@ function replaceData(data, setDataMapFunction, callbackFunction, config) {
|
|
59
58
|
dataMap.destroy();
|
60
59
|
}
|
61
60
|
data = hotInstance.runHooks("before".concat(capitalizedInternalSource), data, firstRun, source);
|
62
|
-
var newDataMap = new _dataMap.default(hotInstance, data,
|
61
|
+
var newDataMap = new _dataMap.default(hotInstance, data, tableMeta);
|
63
62
|
|
64
63
|
// We need to apply the new dataMap immediately, because of some asynchronous logic in the
|
65
64
|
// `autoRowSize`/`autoColumnSize` plugins.
|
package/dataMap/replaceData.mjs
CHANGED
@@ -39,7 +39,6 @@ function replaceData(data, setDataMapFunction, callbackFunction, config) {
|
|
39
39
|
dataSource = config.dataSource,
|
40
40
|
internalSource = config.internalSource,
|
41
41
|
source = config.source,
|
42
|
-
metaManager = config.metaManager,
|
43
42
|
firstRun = config.firstRun;
|
44
43
|
var capitalizedInternalSource = toUpperCaseFirst(internalSource);
|
45
44
|
var tableMeta = hotInstance.getSettings();
|
@@ -54,7 +53,7 @@ function replaceData(data, setDataMapFunction, callbackFunction, config) {
|
|
54
53
|
dataMap.destroy();
|
55
54
|
}
|
56
55
|
data = hotInstance.runHooks("before".concat(capitalizedInternalSource), data, firstRun, source);
|
57
|
-
var newDataMap = new DataMap(hotInstance, data,
|
56
|
+
var newDataMap = new DataMap(hotInstance, data, tableMeta);
|
58
57
|
|
59
58
|
// We need to apply the new dataMap immediately, because of some asynchronous logic in the
|
60
59
|
// `autoRowSize`/`autoColumnSize` plugins.
|
package/dist/handsontable.css
CHANGED
@@ -25,8 +25,8 @@
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
27
27
|
*
|
28
|
-
* Version: 0.0.0-next-
|
29
|
-
* Release date: 25/10/2022 (built at
|
28
|
+
* Version: 0.0.0-next-0c2e6f8-20221206
|
29
|
+
* Release date: 25/10/2022 (built at 06/12/2022 11:00:58)
|
30
30
|
*/
|
31
31
|
/**
|
32
32
|
* Fix for bootstrap styles
|
@@ -25,8 +25,8 @@
|
|
25
25
|
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
|
26
26
|
* USE OR INABILITY TO USE THIS SOFTWARE.
|
27
27
|
*
|
28
|
-
* Version: 0.0.0-next-
|
29
|
-
* Release date: 25/10/2022 (built at
|
28
|
+
* Version: 0.0.0-next-0c2e6f8-20221206
|
29
|
+
* Release date: 25/10/2022 (built at 06/12/2022 11:00:58)
|
30
30
|
*/
|
31
31
|
/**
|
32
32
|
* Fix for bootstrap styles
|