handsontable 19.0.0-rc8 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdparty/walkontable/src/overlay/scrollbarProxies.js +3 -1
- package/3rdparty/walkontable/src/overlay/scrollbarProxies.mjs +3 -1
- package/CHANGELOG.md +5 -4
- package/README.md +11 -4
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core/hooks/constants.d.ts +2 -0
- package/core/hooks/constants.js +15 -6
- package/core/hooks/constants.mjs +15 -6
- package/core/license.js +2 -2
- package/core/license.mjs +2 -2
- package/core/types.d.ts +1 -0
- package/core.js +51 -4
- package/core.mjs +51 -4
- package/dataMap/metaManager/metaSchema.js +1 -0
- package/dataMap/metaManager/metaSchema.mjs +1 -0
- package/dist/handsontable.full.js +299 -121
- package/dist/handsontable.full.min.js +24 -24
- package/dist/handsontable.js +299 -121
- package/dist/handsontable.min.js +24 -24
- package/dist/handsontable.settings-schema.js +23 -13
- package/dist/handsontable.settings-schema.min.js +2 -2
- package/dist/manifest.json +1 -71
- package/dist/themes/classic.js +2 -2
- package/dist/themes/classic.min.js +2 -2
- package/dist/themes/horizon.js +2 -2
- package/dist/themes/horizon.min.js +2 -2
- package/dist/themes/main.js +2 -2
- package/dist/themes/main.min.js +2 -2
- package/dist/themes/static/variables/colors/ant.js +2 -2
- package/dist/themes/static/variables/colors/ant.min.js +2 -2
- package/dist/themes/static/variables/colors/classic.js +2 -2
- package/dist/themes/static/variables/colors/classic.min.js +2 -2
- package/dist/themes/static/variables/colors/horizon.js +2 -2
- package/dist/themes/static/variables/colors/horizon.min.js +2 -2
- package/dist/themes/static/variables/colors/main.js +2 -2
- package/dist/themes/static/variables/colors/main.min.js +2 -2
- package/dist/themes/static/variables/colors/material.js +2 -2
- package/dist/themes/static/variables/colors/material.min.js +2 -2
- package/dist/themes/static/variables/colors/shadcn.js +2 -2
- package/dist/themes/static/variables/colors/shadcn.min.js +2 -2
- package/dist/themes/static/variables/density.js +2 -2
- package/dist/themes/static/variables/density.min.js +2 -2
- package/dist/themes/static/variables/helpers/iconStyles.js +2 -2
- package/dist/themes/static/variables/helpers/iconStyles.min.js +2 -2
- package/dist/themes/static/variables/helpers/iconsMap.js +2 -2
- package/dist/themes/static/variables/helpers/iconsMap.min.js +2 -2
- package/dist/themes/static/variables/icons/horizon.js +2 -2
- package/dist/themes/static/variables/icons/horizon.min.js +2 -2
- package/dist/themes/static/variables/icons/main.js +2 -2
- package/dist/themes/static/variables/icons/main.min.js +2 -2
- package/dist/themes/static/variables/sizing.js +2 -2
- package/dist/themes/static/variables/sizing.min.js +2 -2
- package/dist/themes/static/variables/tokens/classic.js +2 -2
- package/dist/themes/static/variables/tokens/classic.min.js +2 -2
- package/dist/themes/static/variables/tokens/horizon.js +2 -2
- package/dist/themes/static/variables/tokens/horizon.min.js +2 -2
- package/dist/themes/static/variables/tokens/main.js +2 -2
- package/dist/themes/static/variables/tokens/main.min.js +2 -2
- package/helpers/mixed.js +5 -5
- package/helpers/mixed.mjs +5 -5
- package/package.json +1 -1
- package/plugins/asyncValues/feature.generated.js +0 -1
- package/plugins/asyncValues/feature.generated.mjs +0 -1
- package/plugins/autoColumnSize/autoColumnSize.js +3 -3
- package/plugins/autoColumnSize/autoColumnSize.mjs +3 -3
- package/plugins/autoColumnSize/feature.generated.js +0 -1
- package/plugins/autoColumnSize/feature.generated.mjs +0 -1
- package/plugins/autoLink/feature.generated.js +0 -1
- package/plugins/autoLink/feature.generated.mjs +0 -1
- package/plugins/autoRowHeaderSize/feature.generated.js +0 -1
- package/plugins/autoRowHeaderSize/feature.generated.mjs +0 -1
- package/plugins/autoRowSize/autoRowSize.js +5 -5
- package/plugins/autoRowSize/autoRowSize.mjs +5 -5
- package/plugins/autoRowSize/feature.generated.js +0 -1
- package/plugins/autoRowSize/feature.generated.mjs +0 -1
- package/plugins/autofill/feature.generated.js +0 -1
- package/plugins/autofill/feature.generated.mjs +0 -1
- package/plugins/base/base.d.ts +8 -1
- package/plugins/bindRowsWithHeaders/feature.generated.js +0 -1
- package/plugins/bindRowsWithHeaders/feature.generated.mjs +0 -1
- package/plugins/checkboxHeader/feature.generated.js +0 -1
- package/plugins/checkboxHeader/feature.generated.mjs +0 -1
- package/plugins/collapsibleColumns/feature.generated.js +0 -1
- package/plugins/collapsibleColumns/feature.generated.mjs +0 -1
- package/plugins/columnSorting/feature.generated.js +0 -1
- package/plugins/columnSorting/feature.generated.mjs +0 -1
- package/plugins/columnSummary/feature.generated.js +0 -1
- package/plugins/columnSummary/feature.generated.mjs +0 -1
- package/plugins/comments/feature.generated.js +0 -1
- package/plugins/comments/feature.generated.mjs +0 -1
- package/plugins/contextMenu/feature.generated.js +0 -1
- package/plugins/contextMenu/feature.generated.mjs +0 -1
- package/plugins/copyPaste/feature.generated.js +0 -1
- package/plugins/copyPaste/feature.generated.mjs +0 -1
- package/plugins/customBorders/feature.generated.js +0 -1
- package/plugins/customBorders/feature.generated.mjs +0 -1
- package/plugins/dataProvider/feature.generated.js +0 -1
- package/plugins/dataProvider/feature.generated.mjs +0 -1
- package/plugins/dialog/feature.generated.js +0 -1
- package/plugins/dialog/feature.generated.mjs +0 -1
- package/plugins/dragToScroll/feature.generated.js +0 -1
- package/plugins/dragToScroll/feature.generated.mjs +0 -1
- package/plugins/dropdownMenu/feature.generated.js +0 -1
- package/plugins/dropdownMenu/feature.generated.mjs +0 -1
- package/plugins/emptyDataState/feature.generated.js +0 -1
- package/plugins/emptyDataState/feature.generated.mjs +0 -1
- package/plugins/exportFile/feature.generated.js +0 -1
- package/plugins/exportFile/feature.generated.mjs +0 -1
- package/plugins/filters/feature.generated.js +0 -1
- package/plugins/filters/feature.generated.mjs +0 -1
- package/plugins/formulaBuilder/feature.generated.js +0 -1
- package/plugins/formulaBuilder/feature.generated.mjs +0 -1
- package/plugins/formulas/feature.generated.js +0 -1
- package/plugins/formulas/feature.generated.mjs +0 -1
- package/plugins/formulas/formulas.js +4 -4
- package/plugins/formulas/formulas.mjs +4 -4
- package/plugins/freezeBar/feature.generated.js +0 -1
- package/plugins/freezeBar/feature.generated.mjs +0 -1
- package/plugins/hiddenColumns/feature.generated.js +0 -1
- package/plugins/hiddenColumns/feature.generated.mjs +0 -1
- package/plugins/hiddenRows/feature.generated.js +0 -1
- package/plugins/hiddenRows/feature.generated.mjs +0 -1
- package/plugins/importFile/feature.generated.js +0 -1
- package/plugins/importFile/feature.generated.mjs +0 -1
- package/plugins/loading/feature.generated.js +0 -1
- package/plugins/loading/feature.generated.mjs +0 -1
- package/plugins/manualColumnFreeze/feature.generated.js +0 -1
- package/plugins/manualColumnFreeze/feature.generated.mjs +0 -1
- package/plugins/manualColumnMove/feature.generated.js +0 -1
- package/plugins/manualColumnMove/feature.generated.mjs +0 -1
- package/plugins/manualColumnResize/feature.generated.js +0 -1
- package/plugins/manualColumnResize/feature.generated.mjs +0 -1
- package/plugins/manualRowMove/feature.generated.js +0 -1
- package/plugins/manualRowMove/feature.generated.mjs +0 -1
- package/plugins/manualRowResize/feature.generated.js +0 -1
- package/plugins/manualRowResize/feature.generated.mjs +0 -1
- package/plugins/mergeCells/feature.generated.js +0 -1
- package/plugins/mergeCells/feature.generated.mjs +0 -1
- package/plugins/mergeCells/mergeCells.js +159 -16
- package/plugins/mergeCells/mergeCells.mjs +159 -16
- package/plugins/moveCells/feature.generated.js +0 -1
- package/plugins/moveCells/feature.generated.mjs +0 -1
- package/plugins/multiColumnSorting/feature.generated.js +0 -1
- package/plugins/multiColumnSorting/feature.generated.mjs +0 -1
- package/plugins/nestedHeaders/feature.generated.js +0 -1
- package/plugins/nestedHeaders/feature.generated.mjs +0 -1
- package/plugins/nestedRows/feature.generated.js +0 -1
- package/plugins/nestedRows/feature.generated.mjs +0 -1
- package/plugins/notification/feature.generated.js +0 -1
- package/plugins/notification/feature.generated.mjs +0 -1
- package/plugins/pagination/feature.generated.js +0 -1
- package/plugins/pagination/feature.generated.mjs +0 -1
- package/plugins/pagination/pagination.js +17 -4
- package/plugins/pagination/pagination.mjs +17 -4
- package/plugins/rowSelection/feature.generated.js +0 -1
- package/plugins/rowSelection/feature.generated.mjs +0 -1
- package/plugins/search/feature.generated.js +0 -1
- package/plugins/search/feature.generated.mjs +0 -1
- package/plugins/selectionHandles/feature.generated.js +0 -1
- package/plugins/selectionHandles/feature.generated.mjs +0 -1
- package/plugins/sheetsBar/feature.generated.js +0 -1
- package/plugins/sheetsBar/feature.generated.mjs +0 -1
- package/plugins/stretchColumns/feature.generated.js +0 -1
- package/plugins/stretchColumns/feature.generated.mjs +0 -1
- package/plugins/trimRows/feature.generated.js +0 -1
- package/plugins/trimRows/feature.generated.mjs +0 -1
- package/plugins/undoRedo/feature.generated.js +0 -1
- package/plugins/undoRedo/feature.generated.mjs +0 -1
- package/plugins/undoRedo/restore.js +20 -8
- package/plugins/undoRedo/restore.mjs +20 -8
- package/plugins/undoRedo/snapshot/gridState.d.ts +5 -1
- package/plugins/undoRedo/snapshot/gridState.js +5 -2
- package/plugins/undoRedo/snapshot/gridState.mjs +5 -2
- package/plugins/viewState/feature.generated.js +0 -1
- package/plugins/viewState/feature.generated.mjs +0 -1
- package/styles/handsontable.css +2 -2
- package/styles/handsontable.min.css +2 -2
- package/styles/handsontableStyles.d.ts +1 -1
- package/styles/handsontableStyles.js +1 -1
- package/styles/handsontableStyles.mjs +1 -1
- package/styles/ht-icons-horizon.min.css +2 -2
- package/styles/ht-icons-main.min.css +2 -2
- package/styles/ht-theme-classic-no-icons.min.css +2 -2
- package/styles/ht-theme-classic.min.css +2 -2
- package/styles/ht-theme-horizon-no-icons.min.css +2 -2
- package/styles/ht-theme-horizon.min.css +2 -2
- package/styles/ht-theme-main-no-icons.min.css +2 -2
- package/styles/ht-theme-main.min.css +2 -2
- package/utils/licenseBranding/index.js +5 -4
- package/utils/licenseBranding/index.mjs +5 -4
- package/utils/licenseNotification.js +2 -2
- package/utils/licenseNotification.mjs +2 -2
- package/utils/xlsxEngine/licenseCapabilities.generated.js +0 -4
- package/utils/xlsxEngine/licenseCapabilities.generated.mjs +0 -4
|
@@ -579,7 +579,9 @@ function apply(axis, layout, holder, measured, holderStyle) {
|
|
|
579
579
|
// color) shapes the proxy too and its bar keeps filling the gutter it sits in. The track is left to
|
|
580
580
|
// the proxy's background, like the fillers'.
|
|
581
581
|
setStyle(elements.proxy, 'scrollbarWidth', holderStyle.scrollbarWidth);
|
|
582
|
-
|
|
582
|
+
if (typeof holderStyle.scrollbarColor === 'string') {
|
|
583
|
+
setStyle(elements.proxy, 'scrollbarColor', resolveProxyScrollbarColor(holderStyle.scrollbarColor));
|
|
584
|
+
}
|
|
583
585
|
elements.fillers.forEach((filler, index)=>{
|
|
584
586
|
const box = layout.fillers[index];
|
|
585
587
|
if (box) {
|
|
@@ -608,7 +608,9 @@ function apply(axis, layout, holder, measured, holderStyle) {
|
|
|
608
608
|
// color) shapes the proxy too and its bar keeps filling the gutter it sits in. The track is left to
|
|
609
609
|
// the proxy's background, like the fillers'.
|
|
610
610
|
setStyle(elements.proxy, 'scrollbarWidth', holderStyle.scrollbarWidth);
|
|
611
|
-
|
|
611
|
+
if (typeof holderStyle.scrollbarColor === 'string') {
|
|
612
|
+
setStyle(elements.proxy, 'scrollbarColor', resolveProxyScrollbarColor(holderStyle.scrollbarColor));
|
|
613
|
+
}
|
|
612
614
|
elements.fillers.forEach((filler, index)=>{
|
|
613
615
|
const box = layout.fillers[index];
|
|
614
616
|
if (box) {
|
package/CHANGELOG.md
CHANGED
|
@@ -9,7 +9,7 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
9
9
|
|
|
10
10
|
<!-- UNVERSIONED -->
|
|
11
11
|
|
|
12
|
-
## [19.0.0
|
|
12
|
+
## [19.0.0] - 2026-11-26
|
|
13
13
|
|
|
14
14
|
### Added
|
|
15
15
|
- **Breaking change**: Added treegrid accessibility to the NestedRows plugin: tree attributes on rows, Ctrl/Cmd+arrow keys on a row header to expand, collapse, or move to the parent row, and screen reader announcements. On a row header, Ctrl/Cmd+arrow keys no longer jump to the edge of the row, and Enter no longer toggles while an overlay covers the grid. [#13759](https://github.com/handsontable/handsontable/pull/13759)
|
|
@@ -53,10 +53,10 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
53
53
|
- Added the license check of plugins: a plugin that the tier of a license key leaves out stays off, and the console and the bar under the grid name the missing features. A plugin turned off with `disablePlugin()` while its option is on now counts as off for exports, imports, row resizing, the Loading overlay, and the Undo, Redo, and "Copy with group headers" context menu items. [#14104](https://github.com/handsontable/handsontable/pull/14104)
|
|
54
54
|
- Added the `hidden_columns_hide` and `hidden_columns_show` keys to the column menu. List them in the `dropdownMenu` option to show the items. `dropdownMenu: true` is unchanged. A custom column menu item under one of these keys now uses the built-in action and visibility rule unless you set your own. The `MenuItemConfig` and `PredefinedMenuItemKey` types are now also exported from `handsontable`. [#14107](https://github.com/handsontable/handsontable/pull/14107)
|
|
55
55
|
- Added the import of the errors Excel stores as rich values, such as #SPILL! and #CALC!, to the built-in XLSX engine. Such cells used to import as #VALUE!. A cell holding a linked data type, such as Stocks, is now reported in result.dropped. [#14119](https://github.com/handsontable/handsontable/pull/14119)
|
|
56
|
-
- Added a "Powered by Handsontable DataGrid" bar below the grid for
|
|
56
|
+
- Added a "Powered by Handsontable DataGrid" bar below the grid for license keys whose terms carry the `attribution-bar` flag. A license bar now stays within the grid's declared `height`. [#14139](https://github.com/handsontable/handsontable/pull/14139)
|
|
57
57
|
- Added the `batchEvaluation` setting of the `formulas` option, which makes HyperFormula recalculate once for all changes made inside `batch()`, and the `beforeSuspendExecution`, `afterSuspendExecution`, `beforeResumeExecution`, and `afterResumeExecution` hooks. [#14268](https://github.com/handsontable/handsontable/pull/14268)
|
|
58
58
|
- Added the `includeSummaryResults` option of a column summary, which lets a summary count the results of other summaries inside its range. [#14271](https://github.com/handsontable/handsontable/pull/14271)
|
|
59
|
-
- Added license
|
|
59
|
+
- Added a license tier: a license key can name the Professional tier, which includes every Handsontable feature, and the license key guide lists the features it includes. A key that names no tier keeps every feature. [#14284](https://github.com/handsontable/handsontable/pull/14284)
|
|
60
60
|
- Added an `emptyValue` option that sets what an emptied cell stores, and stopped a cell editor confirmed without any typing from overwriting the cell's value with an empty string. [#3927](https://github.com/handsontable/handsontable/issues/3927)
|
|
61
61
|
- Added the `AutoRowHeaderSize` plugin, which sizes the row header column to its longest label instead of clipping it. [#7147](https://github.com/handsontable/handsontable/issues/7147)
|
|
62
62
|
- React: Added a console warning when a Handsontable function renderer is passed to the `renderer` prop of `HotTable` or `HotColumn`, pointing to the `hotRenderer` prop instead. [#14010](https://github.com/handsontable/handsontable/pull/14010)
|
|
@@ -66,7 +66,7 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
66
66
|
- **Breaking change**: Changed `height: 'auto'` to no longer clip the grid, so the page or the nearest scrolling ancestor scrolls it and its rows stay virtualized. See the migration guide for the other `width` and `height` changes. [#13381](https://github.com/handsontable/handsontable/pull/13381)
|
|
67
67
|
- **Breaking change**: The `autocomplete`, `dropdown`, and `handsontable` cell types now default `textEllipsis` to `true`, so a long value stays on a single line and truncates with an ellipsis clear of the dropdown arrow, and `autoRowSize` sizes their rows to one line; set `textEllipsis: false` on the column to restore wrapping. [#13509](https://github.com/handsontable/handsontable/pull/13509)
|
|
68
68
|
- **Breaking change**: Changed icons to render as `<i class="ht-icon ht-icon-<name>">` elements driven by `--ht-icon-<name>` CSS variables, and extended the theme `icons` option to accept SVG strings, class lists (for icon fonts such as Tabler), or renderer callbacks (for Material Symbols ligatures). Pseudo-element icon selectors are removed and the Filters condition caption text moved into a `htUISelectCaptionLabel` child. Mirrored icons follow the grid's `layoutDirection` instead of an ancestor's `dir`, and a checkbox on a `-no-icons` bundle shows the theme's box with no tick instead of a native checkbox. The `iconsMap()` theme helper is deprecated in favor of `iconStyles()`; see the 19.0 migration guide. [#13639](https://github.com/handsontable/handsontable/pull/13639)
|
|
69
|
-
- **Breaking change**: Changed the TypeScript types of the `filters` option. The object form now accepts only `searchMode` and `
|
|
69
|
+
- **Breaking change**: Changed the TypeScript types of the `filters` option. The object form now accepts only `searchMode`, `filterFixedRows`, and `availableConditions`, and a column's `filters` accepts a boolean or an object that holds only `availableConditions`, so a misspelled key, a wrong value, or an unsupported per-column key no longer compiles. [#13662](https://github.com/handsontable/handsontable/pull/13662)
|
|
70
70
|
- **Breaking change**: Changed how undo and redo work: every action is now one undo step that restores the grid state it started from, so an undo puts values back on the right records after rows or columns were moved, sorted, filtered, or trimmed. Hiding, trimming, resizing, freezing, collapsing, custom borders, comments, cell meta, and the pagination page and page size are now undoable, `batch()`, `batchExecution()`, and the new `runOperation()` method group changes into one step, and the new `undo: { maxHistory }` option caps the history. With `undo: false`, nothing is recorded anymore. [#13672](https://github.com/handsontable/handsontable/pull/13672)
|
|
71
71
|
- **Breaking change**: Changed the narrowest width a column can be resized to, in a grid whose headers render the dropdown menu button, from 20px to the icon size plus the cell padding on both sides (32px in Main, 40px in Horizon, 24px in Classic), so the menu button stays inside its own cell. A narrow header now hides the label text first, then the sort indicator, and keeps the menu button. See the migration guide. [#13742](https://github.com/handsontable/handsontable/pull/13742)
|
|
72
72
|
- **Breaking change**: Changed `manualColumnFreeze` so that frozen columns can be dragged and columns can be dropped in front of them, as with `fixedColumnsStart`; to keep the old lock, return `false` from `beforeColumnMove`, as shown in the migration guide. Added the `restoreColumnPosition` option of `manualColumnFreeze`, a `finalIndex` argument to the `beforeColumnUnfreeze` and `afterColumnUnfreeze` hooks, and fixed the drop guideline being hidden under frozen columns and the selection staying on the old column after a freeze or unfreeze from the menu. [#13755](https://github.com/handsontable/handsontable/pull/13755)
|
|
@@ -108,6 +108,7 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
108
108
|
- React: Changed `@handsontable/react-wrapper` to declare `react` and `react-dom` 18.0.0 or later as peer dependencies, matching the documented React 18 minimum. [#14009](https://github.com/handsontable/handsontable/pull/14009)
|
|
109
109
|
- Angular: Changed the wrapper to build with Angular 22, which replaces the per-file type declarations with a single bundled types file, while the supported range stays Angular 16 to 22. [#13835](https://github.com/handsontable/handsontable/pull/13835)
|
|
110
110
|
- Angular: Changed the `[data]` input to update the grid outside Angular's zone, like the `[settings]` input. A callback added with `addHook()` now runs outside the zone on a `[data]` change too, so async work it starts no longer triggers change detection by itself. [#14388](https://github.com/handsontable/handsontable/pull/14388)
|
|
111
|
+
- Changed the "Powered by Handsontable DataGrid" bar so that a trial license key shows it only when the key's terms ask for it, like any other key. [#14465](https://github.com/handsontable/handsontable/pull/14465)
|
|
111
112
|
|
|
112
113
|
### Deprecated
|
|
113
114
|
- Deprecated writing past the last column of an object data source. A paste, `populateFromArray()`, or `setDataAtCell()` still adds a property named after the column index, which no column can display, and prints a one-time console warning; the write will be ignored in Handsontable 20.0.0. Use `setDataAtRowProp()` to write a field the grid shows no column for. [#13343](https://github.com/handsontable/handsontable/pull/13343)
|
package/README.md
CHANGED
|
@@ -49,18 +49,25 @@
|
|
|
49
49
|
✅ [Sorting data](https://handsontable.com/docs/rows-sorting/) <br>
|
|
50
50
|
✅ [Filtering data](https://handsontable.com/docs/column-filter/) <br>
|
|
51
51
|
✅ [400 built-in formulas](https://handsontable.com/docs/formula-calculation/) <br>
|
|
52
|
+
✅ [Formula bar and builder](https://handsontable.com/docs/javascript-data-grid/formula-builder/) <br>
|
|
53
|
+
✅ [Multiple sheets](https://handsontable.com/docs/javascript-data-grid/sheets-bar/) <br>
|
|
52
54
|
✅ [Configurable selection](https://handsontable.com/docs/selection/) <br>
|
|
55
|
+
✅ [Row selection with checkboxes](https://handsontable.com/docs/javascript-data-grid/row-selection/) <br>
|
|
53
56
|
✅ [Data validation](https://handsontable.com/docs/cell-validator/) <br>
|
|
54
57
|
✅ [Conditional formatting](https://handsontable.com/docs/conditional-formatting/) <br>
|
|
55
58
|
✅ [Merged cells](https://handsontable.com/docs/merge-cells/) <br>
|
|
56
|
-
✅ [Frozen rows and columns](https://handsontable.com/docs/column-freezing/) <br>
|
|
59
|
+
✅ [Frozen rows and columns, adjustable by drag](https://handsontable.com/docs/column-freezing/) <br>
|
|
57
60
|
✅ [Hiding rows and columns](https://handsontable.com/docs/column-hiding/) <br>
|
|
58
61
|
✅ [Right-click context menu](https://handsontable.com/docs/context-menu/) <br>
|
|
62
|
+
✅ [Undo and redo](https://handsontable.com/docs/javascript-data-grid/undo-redo/) <br>
|
|
63
|
+
✅ [Clickable links](https://handsontable.com/docs/javascript-data-grid/clickable-links/) <br>
|
|
59
64
|
✅ [Row pagination](https://handsontable.com/docs/javascript-data-grid/rows-pagination/) <br>
|
|
60
65
|
✅ [Server-side data](https://handsontable.com/docs/javascript-data-grid/server-side-data/) <br>
|
|
66
|
+
✅ [Async cell values](https://handsontable.com/docs/javascript-data-grid/async-values/) <br>
|
|
61
67
|
✅ [Notifications](https://handsontable.com/docs/javascript-data-grid/notification/) <br>
|
|
62
|
-
✅ [
|
|
63
|
-
✅ [
|
|
68
|
+
✅ [Import and export Excel (XLSX)](https://handsontable.com/docs/javascript-data-grid/import-and-export/) <br>
|
|
69
|
+
✅ [Save and restore view state](https://handsontable.com/docs/javascript-data-grid/view-state/) <br>
|
|
70
|
+
✅ [Date and time editing](https://handsontable.com/docs/javascript-data-grid/date-cell-type/) <br>
|
|
64
71
|
✅ [Shadow DOM / Web Components support](https://handsontable.com/docs/javascript-data-grid/shadow-dom/) <br>
|
|
65
72
|
|
|
66
73
|
<br>
|
|
@@ -278,7 +285,7 @@ Non-commercial projects, such as teaching or academic research, may qualify for
|
|
|
278
285
|
|
|
279
286
|
Pass your license key in the `licenseKey` option. The examples above leave that line commented out: uncomment it and add your key.
|
|
280
287
|
|
|
281
|
-
To evaluate Handsontable, [get a trial key](https://handsontable.com/pricing/). During the trial, the grid shows the Handsontable badge
|
|
288
|
+
To evaluate Handsontable, [get a trial key](https://handsontable.com/pricing/). During the trial, the grid shows the Handsontable badge, plus a "Powered by Handsontable DataGrid" bar below the table when the key's terms ask for it, and the console warns how many days remain. After the trial expires, the grid shows an expiration message and the console reports an error. When the grace period stored in the key also passes, a blocking screen replaces the grid. See [Trial keys](https://handsontable.com/docs/license-key/#trial-keys) for details.
|
|
282
289
|
|
|
283
290
|
For non-commercial use, [contact our sales team](https://handsontable.com/contact/) to apply for a free license.
|
|
284
291
|
|
package/base.js
CHANGED
|
@@ -72,8 +72,8 @@ Handsontable.hooks = _hooks.Hooks.getSingleton();
|
|
|
72
72
|
Handsontable.CellCoords = _src.CellCoords;
|
|
73
73
|
Handsontable.CellRange = _src.CellRange;
|
|
74
74
|
Handsontable.packageName = 'handsontable';
|
|
75
|
-
Handsontable.buildDate = "
|
|
76
|
-
Handsontable.version = "19.0.0
|
|
75
|
+
Handsontable.buildDate = "26/11/2026 12:22:36";
|
|
76
|
+
Handsontable.version = "19.0.0";
|
|
77
77
|
Handsontable.languages = {
|
|
78
78
|
dictionaryKeys: _registry.dictionaryKeys,
|
|
79
79
|
getLanguageDictionary: _registry.getLanguageDictionary,
|
package/base.mjs
CHANGED
|
@@ -43,8 +43,8 @@ Handsontable.hooks = Hooks.getSingleton();
|
|
|
43
43
|
Handsontable.CellCoords = CellCoords;
|
|
44
44
|
Handsontable.CellRange = CellRange;
|
|
45
45
|
Handsontable.packageName = 'handsontable';
|
|
46
|
-
Handsontable.buildDate = "
|
|
47
|
-
Handsontable.version = "19.0.0
|
|
46
|
+
Handsontable.buildDate = "26/11/2026 12:22:36";
|
|
47
|
+
Handsontable.version = "19.0.0";
|
|
48
48
|
Handsontable.languages = {
|
|
49
49
|
dictionaryKeys,
|
|
50
50
|
getLanguageDictionary,
|
package/core/hooks/constants.js
CHANGED
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
* });
|
|
42
42
|
* }}
|
|
43
43
|
* />
|
|
44
|
+
* ```
|
|
44
45
|
* :::
|
|
45
46
|
*
|
|
46
47
|
* ::: only-for angular
|
|
@@ -119,6 +120,7 @@
|
|
|
119
120
|
* // function body - will only run for first instance
|
|
120
121
|
* }
|
|
121
122
|
* });
|
|
123
|
+
* ```
|
|
122
124
|
* :::
|
|
123
125
|
* ...
|
|
124
126
|
*/ "use strict";
|
|
@@ -2050,7 +2052,9 @@ const REGISTERED_HOOKS = [
|
|
|
2050
2052
|
/**
|
|
2051
2053
|
* Fired by {@link Core#suspendExecution} before it suspends the execution (the index cache updates).
|
|
2052
2054
|
* [`batch()`](@/api/core.md#batch) and [`batchExecution()`](@/api/core.md#batchexecution) suspend the
|
|
2053
|
-
* execution the same way
|
|
2055
|
+
* execution the same way. The hook does not fire when Handsontable stores or clears the column widths and
|
|
2056
|
+
* row heights it measures, or recomputes the rows of a page with the `'auto'` page size on a render (for
|
|
2057
|
+
* example, after the container is resized).
|
|
2054
2058
|
*
|
|
2055
2059
|
* The hook fires only when the execution changes from resumed to suspended: a nested call fires nothing.
|
|
2056
2060
|
* Its return value cannot cancel the suspension, but a listener that throws stops it, and the error
|
|
@@ -2100,7 +2104,9 @@ const REGISTERED_HOOKS = [
|
|
|
2100
2104
|
/**
|
|
2101
2105
|
* Fired by {@link Core#suspendExecution} after it suspends the execution (the index cache updates).
|
|
2102
2106
|
* [`batch()`](@/api/core.md#batch) and [`batchExecution()`](@/api/core.md#batchexecution) suspend the
|
|
2103
|
-
* execution the same way
|
|
2107
|
+
* execution the same way. The hook does not fire when Handsontable stores or clears the column widths and
|
|
2108
|
+
* row heights it measures, or recomputes the rows of a page with the `'auto'` page size on a render (for
|
|
2109
|
+
* example, after the container is resized).
|
|
2104
2110
|
*
|
|
2105
2111
|
* The hook fires only when the execution changes from resumed to suspended: a nested call fires nothing.
|
|
2106
2112
|
* When a listener throws, the execution is resumed (the `beforeResumeExecution` and
|
|
@@ -2147,7 +2153,9 @@ const REGISTERED_HOOKS = [
|
|
|
2147
2153
|
/**
|
|
2148
2154
|
* Fired by {@link Core#resumeExecution} before it resumes the execution and updates the index cache.
|
|
2149
2155
|
* [`batch()`](@/api/core.md#batch) and [`batchExecution()`](@/api/core.md#batchexecution) resume the
|
|
2150
|
-
* execution the same way
|
|
2156
|
+
* execution the same way. The hook does not fire when Handsontable stores or clears the column widths and
|
|
2157
|
+
* row heights it measures, or recomputes the rows of a page with the `'auto'` page size on a render (for
|
|
2158
|
+
* example, after the container is resized).
|
|
2151
2159
|
*
|
|
2152
2160
|
* The hook fires only when the execution changes from suspended to resumed: a nested call, a forced
|
|
2153
2161
|
* nested call, and a call while the execution is not suspended fire nothing. It cannot cancel the resume.
|
|
@@ -2200,14 +2208,15 @@ const REGISTERED_HOOKS = [
|
|
|
2200
2208
|
* Fired by {@link Core#resumeExecution} after it resumes the execution and updates the index cache, so
|
|
2201
2209
|
* the index changes made while the execution was suspended are already applied.
|
|
2202
2210
|
* [`batch()`](@/api/core.md#batch) and [`batchExecution()`](@/api/core.md#batchexecution) resume the
|
|
2203
|
-
* execution the same way
|
|
2211
|
+
* execution the same way. The hook does not fire when Handsontable stores or clears the column widths and
|
|
2212
|
+
* row heights it measures, or recomputes the rows of a page with the `'auto'` page size on a render (for
|
|
2213
|
+
* example, after the container is resized).
|
|
2204
2214
|
* `batch()` resumes rendering after this hook.
|
|
2205
2215
|
*
|
|
2206
2216
|
* The hook fires only when the execution changes from suspended to resumed: a nested call, a forced
|
|
2207
2217
|
* nested call, and a call while the execution is not suspended fire nothing. It fires even when a
|
|
2208
2218
|
* `beforeResumeExecution` listener or the index cache update throws. The hook does not fire while the
|
|
2209
|
-
* instance is being destroyed. A listener that suspends the execution again,
|
|
2210
|
-
* starts a new cycle, which fires all four hooks again, this one included.
|
|
2219
|
+
* instance is being destroyed. A listener that suspends the execution again starts a new cycle, which fires all four hooks again, this one included.
|
|
2211
2220
|
*
|
|
2212
2221
|
* @event Hooks#afterResumeExecution
|
|
2213
2222
|
* @since 19.0.0
|
package/core/hooks/constants.mjs
CHANGED
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
* });
|
|
42
42
|
* }}
|
|
43
43
|
* />
|
|
44
|
+
* ```
|
|
44
45
|
* :::
|
|
45
46
|
*
|
|
46
47
|
* ::: only-for angular
|
|
@@ -119,6 +120,7 @@
|
|
|
119
120
|
* // function body - will only run for first instance
|
|
120
121
|
* }
|
|
121
122
|
* });
|
|
123
|
+
* ```
|
|
122
124
|
* :::
|
|
123
125
|
* ...
|
|
124
126
|
*/ export const REGISTERED_HOOKS = [
|
|
@@ -2029,7 +2031,9 @@
|
|
|
2029
2031
|
/**
|
|
2030
2032
|
* Fired by {@link Core#suspendExecution} before it suspends the execution (the index cache updates).
|
|
2031
2033
|
* [`batch()`](@/api/core.md#batch) and [`batchExecution()`](@/api/core.md#batchexecution) suspend the
|
|
2032
|
-
* execution the same way
|
|
2034
|
+
* execution the same way. The hook does not fire when Handsontable stores or clears the column widths and
|
|
2035
|
+
* row heights it measures, or recomputes the rows of a page with the `'auto'` page size on a render (for
|
|
2036
|
+
* example, after the container is resized).
|
|
2033
2037
|
*
|
|
2034
2038
|
* The hook fires only when the execution changes from resumed to suspended: a nested call fires nothing.
|
|
2035
2039
|
* Its return value cannot cancel the suspension, but a listener that throws stops it, and the error
|
|
@@ -2079,7 +2083,9 @@
|
|
|
2079
2083
|
/**
|
|
2080
2084
|
* Fired by {@link Core#suspendExecution} after it suspends the execution (the index cache updates).
|
|
2081
2085
|
* [`batch()`](@/api/core.md#batch) and [`batchExecution()`](@/api/core.md#batchexecution) suspend the
|
|
2082
|
-
* execution the same way
|
|
2086
|
+
* execution the same way. The hook does not fire when Handsontable stores or clears the column widths and
|
|
2087
|
+
* row heights it measures, or recomputes the rows of a page with the `'auto'` page size on a render (for
|
|
2088
|
+
* example, after the container is resized).
|
|
2083
2089
|
*
|
|
2084
2090
|
* The hook fires only when the execution changes from resumed to suspended: a nested call fires nothing.
|
|
2085
2091
|
* When a listener throws, the execution is resumed (the `beforeResumeExecution` and
|
|
@@ -2126,7 +2132,9 @@
|
|
|
2126
2132
|
/**
|
|
2127
2133
|
* Fired by {@link Core#resumeExecution} before it resumes the execution and updates the index cache.
|
|
2128
2134
|
* [`batch()`](@/api/core.md#batch) and [`batchExecution()`](@/api/core.md#batchexecution) resume the
|
|
2129
|
-
* execution the same way
|
|
2135
|
+
* execution the same way. The hook does not fire when Handsontable stores or clears the column widths and
|
|
2136
|
+
* row heights it measures, or recomputes the rows of a page with the `'auto'` page size on a render (for
|
|
2137
|
+
* example, after the container is resized).
|
|
2130
2138
|
*
|
|
2131
2139
|
* The hook fires only when the execution changes from suspended to resumed: a nested call, a forced
|
|
2132
2140
|
* nested call, and a call while the execution is not suspended fire nothing. It cannot cancel the resume.
|
|
@@ -2179,14 +2187,15 @@
|
|
|
2179
2187
|
* Fired by {@link Core#resumeExecution} after it resumes the execution and updates the index cache, so
|
|
2180
2188
|
* the index changes made while the execution was suspended are already applied.
|
|
2181
2189
|
* [`batch()`](@/api/core.md#batch) and [`batchExecution()`](@/api/core.md#batchexecution) resume the
|
|
2182
|
-
* execution the same way
|
|
2190
|
+
* execution the same way. The hook does not fire when Handsontable stores or clears the column widths and
|
|
2191
|
+
* row heights it measures, or recomputes the rows of a page with the `'auto'` page size on a render (for
|
|
2192
|
+
* example, after the container is resized).
|
|
2183
2193
|
* `batch()` resumes rendering after this hook.
|
|
2184
2194
|
*
|
|
2185
2195
|
* The hook fires only when the execution changes from suspended to resumed: a nested call, a forced
|
|
2186
2196
|
* nested call, and a call while the execution is not suspended fire nothing. It fires even when a
|
|
2187
2197
|
* `beforeResumeExecution` listener or the index cache update throws. The hook does not fire while the
|
|
2188
|
-
* instance is being destroyed. A listener that suspends the execution again,
|
|
2189
|
-
* starts a new cycle, which fires all four hooks again, this one included.
|
|
2198
|
+
* instance is being destroyed. A listener that suspends the execution again starts a new cycle, which fires all four hooks again, this one included.
|
|
2190
2199
|
*
|
|
2191
2200
|
* @event Hooks#afterResumeExecution
|
|
2192
2201
|
* @since 19.0.0
|
package/core/license.js
CHANGED
|
@@ -33,10 +33,10 @@ function getLicenseState(hot) {
|
|
|
33
33
|
return cached.state;
|
|
34
34
|
}
|
|
35
35
|
// DO NOT add a `typeof process` guard here - see the matching comment in `initLicenseNotification`.
|
|
36
|
-
// The bundler inlines `"
|
|
36
|
+
// The bundler inlines `"26/11/2026"` to a string literal (the bare read cannot
|
|
37
37
|
// crash); a guard is left un-inlined and compiles to `false` in browser bundles, blanking the date
|
|
38
38
|
// and silently killing expired-key detection.
|
|
39
|
-
const releaseDate = "
|
|
39
|
+
const releaseDate = "26/11/2026" || '';
|
|
40
40
|
const state = (0, _mixed._getLicenseState)(licenseKey, releaseDate);
|
|
41
41
|
licenseStates.set(hot, {
|
|
42
42
|
key: licenseKey,
|
package/core/license.mjs
CHANGED
|
@@ -22,10 +22,10 @@ import { resolveXlsxEntitlement, UNRESTRICTED_XLSX_ENTITLEMENT } from '../utils/
|
|
|
22
22
|
return cached.state;
|
|
23
23
|
}
|
|
24
24
|
// DO NOT add a `typeof process` guard here - see the matching comment in `initLicenseNotification`.
|
|
25
|
-
// The bundler inlines `"
|
|
25
|
+
// The bundler inlines `"26/11/2026"` to a string literal (the bare read cannot
|
|
26
26
|
// crash); a guard is left un-inlined and compiles to `false` in browser bundles, blanking the date
|
|
27
27
|
// and silently killing expired-key detection.
|
|
28
|
-
const releaseDate = "
|
|
28
|
+
const releaseDate = "26/11/2026" || '';
|
|
29
29
|
const state = _getLicenseState(licenseKey, releaseDate);
|
|
30
30
|
licenseStates.set(hot, {
|
|
31
31
|
key: licenseKey,
|
package/core/types.d.ts
CHANGED
|
@@ -294,6 +294,7 @@ export interface HotInstance {
|
|
|
294
294
|
_isAnsweringStaleValidation(): boolean;
|
|
295
295
|
_applySettingsAndData(settings: Partial<GridSettings>, data: unknown[], source: string, cellOptionMetas?: CellOptionMetaEntry[] | null, keptCellMetas?: KeptCellMetas | null): void;
|
|
296
296
|
_isDataWorkDeferred(): boolean;
|
|
297
|
+
_batchExecutionWithoutHooks<T>(wrappedOperations: () => T, forceFlushChanges?: boolean): T;
|
|
297
298
|
_isDataLoadPending(): boolean;
|
|
298
299
|
_runInPluginLifecyclePass<T>(callback: () => T): T;
|
|
299
300
|
_isHeldMetaPhaseRunning(): boolean;
|
package/core.js
CHANGED
|
@@ -4392,11 +4392,20 @@ function Core(rootContainer, userSettings, rootInstanceSymbol = false) {
|
|
|
4392
4392
|
* hot.resumeExecution(); // It updates the cache internally
|
|
4393
4393
|
* ```
|
|
4394
4394
|
*/ this.suspendExecution = function() {
|
|
4395
|
+
suspendExecution.call(this, true);
|
|
4396
|
+
};
|
|
4397
|
+
/**
|
|
4398
|
+
* Suspends the execution, the way {@link Core#suspendExecution} does.
|
|
4399
|
+
*
|
|
4400
|
+
* @private
|
|
4401
|
+
* @param {boolean} firesHooks `false` for a suspension Handsontable makes for its own bookkeeping (see
|
|
4402
|
+
* `_batchExecutionWithoutHooks()`), which fires no execution hooks.
|
|
4403
|
+
*/ function suspendExecution(firesHooks) {
|
|
4395
4404
|
// The hooks report the state change, so a nested call fires nothing. A grid being destroyed fires
|
|
4396
4405
|
// nothing either: its teardown runs in a `batchExecution()` whose resume comes after `afterDestroy`.
|
|
4397
4406
|
// A call a `before*` listener makes fires nothing: the counter is still 0 while that listener runs, so
|
|
4398
4407
|
// it would fire the hook again and recurse.
|
|
4399
|
-
const changesState = this.executionSuspendedCounter === 0 && !isBeingDestroyed && !isRunningBeforeExecutionHook;
|
|
4408
|
+
const changesState = firesHooks && this.executionSuspendedCounter === 0 && !isBeingDestroyed && !isRunningBeforeExecutionHook;
|
|
4400
4409
|
if (changesState) {
|
|
4401
4410
|
isRunningBeforeExecutionHook = true;
|
|
4402
4411
|
try {
|
|
@@ -4423,7 +4432,7 @@ function Core(rootContainer, userSettings, rootInstanceSymbol = false) {
|
|
|
4423
4432
|
throw error;
|
|
4424
4433
|
}
|
|
4425
4434
|
}
|
|
4426
|
-
}
|
|
4435
|
+
}
|
|
4427
4436
|
/**
|
|
4428
4437
|
* Resumes the execution process. In combination with the {@link Core#suspendExecution}
|
|
4429
4438
|
* method it allows aggregating the table logic changes after which the cache is
|
|
@@ -4465,9 +4474,18 @@ function Core(rootContainer, userSettings, rootInstanceSymbol = false) {
|
|
|
4465
4474
|
* hot.resumeExecution(); // It updates the cache internally
|
|
4466
4475
|
* ```
|
|
4467
4476
|
*/ this.resumeExecution = function(forceFlushChanges = false) {
|
|
4477
|
+
resumeExecution.call(this, forceFlushChanges, true);
|
|
4478
|
+
};
|
|
4479
|
+
/**
|
|
4480
|
+
* Resumes the execution, the way {@link Core#resumeExecution} does.
|
|
4481
|
+
*
|
|
4482
|
+
* @private
|
|
4483
|
+
* @param {boolean} forceFlushChanges If `true`, the index cache is updated also by a nested call.
|
|
4484
|
+
* @param {boolean} firesHooks `false` for the resume of a suspension that fired no execution hooks.
|
|
4485
|
+
*/ function resumeExecution(forceFlushChanges, firesHooks) {
|
|
4468
4486
|
const nextValue = this.executionSuspendedCounter - 1;
|
|
4469
4487
|
// Only the resume that brings the counter back to 0 changes the state (see `suspendExecution`).
|
|
4470
|
-
const changesState = nextValue === 0 && !isBeingDestroyed && !isRunningBeforeExecutionHook;
|
|
4488
|
+
const changesState = firesHooks && nextValue === 0 && !isBeingDestroyed && !isRunningBeforeExecutionHook;
|
|
4471
4489
|
// Each step runs in a `finally`, so a throwing listener (of these hooks or of a cache update) cannot
|
|
4472
4490
|
// keep the grid or a mapper suspended, and `afterResumeExecution` (where a plugin releases what it held
|
|
4473
4491
|
// on the suspension) still fires.
|
|
@@ -4499,7 +4517,7 @@ function Core(rootContainer, userSettings, rootInstanceSymbol = false) {
|
|
|
4499
4517
|
}
|
|
4500
4518
|
}
|
|
4501
4519
|
}
|
|
4502
|
-
}
|
|
4520
|
+
}
|
|
4503
4521
|
/**
|
|
4504
4522
|
* The method aggregates multi-line API calls into a callback and postpones the
|
|
4505
4523
|
* table execution process. After the execution of the operations, the internal table
|
|
@@ -4562,6 +4580,35 @@ function Core(rootContainer, userSettings, rootInstanceSymbol = false) {
|
|
|
4562
4580
|
});
|
|
4563
4581
|
};
|
|
4564
4582
|
/**
|
|
4583
|
+
* Runs the callback with the execution suspended, as {@link Core#batchExecution} does, and fires no
|
|
4584
|
+
* execution hooks. It is for the bookkeeping Handsontable does on its own, such as storing the sizes
|
|
4585
|
+
* AutoColumnSize and AutoRowSize measure on a render: the execution hooks report the batches an
|
|
4586
|
+
* application or a feature makes, so a `batch()` that writes a cell fires them once, not once more for
|
|
4587
|
+
* each size the render that follows stores.
|
|
4588
|
+
*
|
|
4589
|
+
* A suspension made inside the callback is nested, so it fires nothing. One a listener of the index cache
|
|
4590
|
+
* update makes while this call resumes is a suspension of its own and fires the hooks.
|
|
4591
|
+
*
|
|
4592
|
+
* @private
|
|
4593
|
+
* @param {Function} wrappedOperations Batched operations wrapped in a function.
|
|
4594
|
+
* @param {boolean} [forceFlushChanges=false] If `true`, the index cache is updated also by a nested call.
|
|
4595
|
+
* @returns {*} Returns result from the wrappedOperations callback.
|
|
4596
|
+
*/ this._batchExecutionWithoutHooks = function(wrappedOperations, forceFlushChanges = false) {
|
|
4597
|
+
const executionState = instance;
|
|
4598
|
+
// An operation, like `batchExecution()`: UndoRedo reads the batch as one `'batch'` entry.
|
|
4599
|
+
return operationScope.run('batch', undefined, ()=>{
|
|
4600
|
+
suspendExecution.call(executionState, false);
|
|
4601
|
+
let completed = false;
|
|
4602
|
+
try {
|
|
4603
|
+
const result = wrappedOperations();
|
|
4604
|
+
completed = true;
|
|
4605
|
+
return result;
|
|
4606
|
+
} finally{
|
|
4607
|
+
resumeExecution.call(executionState, completed && forceFlushChanges, false);
|
|
4608
|
+
}
|
|
4609
|
+
});
|
|
4610
|
+
};
|
|
4611
|
+
/**
|
|
4565
4612
|
* It batches the rendering process and index recalculations. The method aggregates
|
|
4566
4613
|
* multi-line API calls into a callback and postpones the table rendering process
|
|
4567
4614
|
* as well aggregates the table logic changes such as index changes into one call
|
package/core.mjs
CHANGED
|
@@ -4377,11 +4377,20 @@ let activeGuid = null;
|
|
|
4377
4377
|
* hot.resumeExecution(); // It updates the cache internally
|
|
4378
4378
|
* ```
|
|
4379
4379
|
*/ this.suspendExecution = function() {
|
|
4380
|
+
suspendExecution.call(this, true);
|
|
4381
|
+
};
|
|
4382
|
+
/**
|
|
4383
|
+
* Suspends the execution, the way {@link Core#suspendExecution} does.
|
|
4384
|
+
*
|
|
4385
|
+
* @private
|
|
4386
|
+
* @param {boolean} firesHooks `false` for a suspension Handsontable makes for its own bookkeeping (see
|
|
4387
|
+
* `_batchExecutionWithoutHooks()`), which fires no execution hooks.
|
|
4388
|
+
*/ function suspendExecution(firesHooks) {
|
|
4380
4389
|
// The hooks report the state change, so a nested call fires nothing. A grid being destroyed fires
|
|
4381
4390
|
// nothing either: its teardown runs in a `batchExecution()` whose resume comes after `afterDestroy`.
|
|
4382
4391
|
// A call a `before*` listener makes fires nothing: the counter is still 0 while that listener runs, so
|
|
4383
4392
|
// it would fire the hook again and recurse.
|
|
4384
|
-
const changesState = this.executionSuspendedCounter === 0 && !isBeingDestroyed && !isRunningBeforeExecutionHook;
|
|
4393
|
+
const changesState = firesHooks && this.executionSuspendedCounter === 0 && !isBeingDestroyed && !isRunningBeforeExecutionHook;
|
|
4385
4394
|
if (changesState) {
|
|
4386
4395
|
isRunningBeforeExecutionHook = true;
|
|
4387
4396
|
try {
|
|
@@ -4408,7 +4417,7 @@ let activeGuid = null;
|
|
|
4408
4417
|
throw error;
|
|
4409
4418
|
}
|
|
4410
4419
|
}
|
|
4411
|
-
}
|
|
4420
|
+
}
|
|
4412
4421
|
/**
|
|
4413
4422
|
* Resumes the execution process. In combination with the {@link Core#suspendExecution}
|
|
4414
4423
|
* method it allows aggregating the table logic changes after which the cache is
|
|
@@ -4450,9 +4459,18 @@ let activeGuid = null;
|
|
|
4450
4459
|
* hot.resumeExecution(); // It updates the cache internally
|
|
4451
4460
|
* ```
|
|
4452
4461
|
*/ this.resumeExecution = function(forceFlushChanges = false) {
|
|
4462
|
+
resumeExecution.call(this, forceFlushChanges, true);
|
|
4463
|
+
};
|
|
4464
|
+
/**
|
|
4465
|
+
* Resumes the execution, the way {@link Core#resumeExecution} does.
|
|
4466
|
+
*
|
|
4467
|
+
* @private
|
|
4468
|
+
* @param {boolean} forceFlushChanges If `true`, the index cache is updated also by a nested call.
|
|
4469
|
+
* @param {boolean} firesHooks `false` for the resume of a suspension that fired no execution hooks.
|
|
4470
|
+
*/ function resumeExecution(forceFlushChanges, firesHooks) {
|
|
4453
4471
|
const nextValue = this.executionSuspendedCounter - 1;
|
|
4454
4472
|
// Only the resume that brings the counter back to 0 changes the state (see `suspendExecution`).
|
|
4455
|
-
const changesState = nextValue === 0 && !isBeingDestroyed && !isRunningBeforeExecutionHook;
|
|
4473
|
+
const changesState = firesHooks && nextValue === 0 && !isBeingDestroyed && !isRunningBeforeExecutionHook;
|
|
4456
4474
|
// Each step runs in a `finally`, so a throwing listener (of these hooks or of a cache update) cannot
|
|
4457
4475
|
// keep the grid or a mapper suspended, and `afterResumeExecution` (where a plugin releases what it held
|
|
4458
4476
|
// on the suspension) still fires.
|
|
@@ -4484,7 +4502,7 @@ let activeGuid = null;
|
|
|
4484
4502
|
}
|
|
4485
4503
|
}
|
|
4486
4504
|
}
|
|
4487
|
-
}
|
|
4505
|
+
}
|
|
4488
4506
|
/**
|
|
4489
4507
|
* The method aggregates multi-line API calls into a callback and postpones the
|
|
4490
4508
|
* table execution process. After the execution of the operations, the internal table
|
|
@@ -4547,6 +4565,35 @@ let activeGuid = null;
|
|
|
4547
4565
|
});
|
|
4548
4566
|
};
|
|
4549
4567
|
/**
|
|
4568
|
+
* Runs the callback with the execution suspended, as {@link Core#batchExecution} does, and fires no
|
|
4569
|
+
* execution hooks. It is for the bookkeeping Handsontable does on its own, such as storing the sizes
|
|
4570
|
+
* AutoColumnSize and AutoRowSize measure on a render: the execution hooks report the batches an
|
|
4571
|
+
* application or a feature makes, so a `batch()` that writes a cell fires them once, not once more for
|
|
4572
|
+
* each size the render that follows stores.
|
|
4573
|
+
*
|
|
4574
|
+
* A suspension made inside the callback is nested, so it fires nothing. One a listener of the index cache
|
|
4575
|
+
* update makes while this call resumes is a suspension of its own and fires the hooks.
|
|
4576
|
+
*
|
|
4577
|
+
* @private
|
|
4578
|
+
* @param {Function} wrappedOperations Batched operations wrapped in a function.
|
|
4579
|
+
* @param {boolean} [forceFlushChanges=false] If `true`, the index cache is updated also by a nested call.
|
|
4580
|
+
* @returns {*} Returns result from the wrappedOperations callback.
|
|
4581
|
+
*/ this._batchExecutionWithoutHooks = function(wrappedOperations, forceFlushChanges = false) {
|
|
4582
|
+
const executionState = instance;
|
|
4583
|
+
// An operation, like `batchExecution()`: UndoRedo reads the batch as one `'batch'` entry.
|
|
4584
|
+
return operationScope.run('batch', undefined, ()=>{
|
|
4585
|
+
suspendExecution.call(executionState, false);
|
|
4586
|
+
let completed = false;
|
|
4587
|
+
try {
|
|
4588
|
+
const result = wrappedOperations();
|
|
4589
|
+
completed = true;
|
|
4590
|
+
return result;
|
|
4591
|
+
} finally{
|
|
4592
|
+
resumeExecution.call(executionState, completed && forceFlushChanges, false);
|
|
4593
|
+
}
|
|
4594
|
+
});
|
|
4595
|
+
};
|
|
4596
|
+
/**
|
|
4550
4597
|
* It batches the rendering process and index recalculations. The method aggregates
|
|
4551
4598
|
* multi-line API calls into a callback and postpones the table rendering process
|
|
4552
4599
|
* as well aggregates the table logic changes such as index changes into one call
|
|
@@ -3776,6 +3776,7 @@ const _default = ()=>{
|
|
|
3776
3776
|
*
|
|
3777
3777
|
* // keep the selected items in the dropdown
|
|
3778
3778
|
* filterSelectedItems: false,
|
|
3779
|
+
* ```
|
|
3779
3780
|
*/ filterSelectedItems: true,
|
|
3780
3781
|
/**
|
|
3781
3782
|
* The `fixedColumnsEnd` option sets the number of [frozen columns](@/guides/columns/column-freezing/column-freezing.md) at the end edge of the grid.
|
|
@@ -3766,6 +3766,7 @@ import { hasOwnProperty, isObjectEqual } from '../../helpers/object.mjs';
|
|
|
3766
3766
|
*
|
|
3767
3767
|
* // keep the selected items in the dropdown
|
|
3768
3768
|
* filterSelectedItems: false,
|
|
3769
|
+
* ```
|
|
3769
3770
|
*/ filterSelectedItems: true,
|
|
3770
3771
|
/**
|
|
3771
3772
|
* The `fixedColumnsEnd` option sets the number of [frozen columns](@/guides/columns/column-freezing/column-freezing.md) at the end edge of the grid.
|