handsontable 0.0.0-next-74a68c1-20230627 → 0.0.0-next-208afb8-20230627
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/CHANGELOG.md +0 -31
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/core.d.ts +1 -0
- package/core.js +31 -2
- package/core.mjs +31 -2
- package/dataMap/metaManager/metaSchema.js +1 -1
- package/dataMap/metaManager/metaSchema.mjs +1 -1
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +3553 -3366
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +53 -53
- package/dist/handsontable.js +7968 -7781
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +4 -4
- package/editorManager.js +4 -10
- package/editorManager.mjs +4 -10
- package/helpers/mixed.js +2 -2
- package/helpers/mixed.mjs +2 -2
- package/package.json +1 -1
- package/pluginHooks.d.ts +1 -0
- package/pluginHooks.js +11 -4
- package/pluginHooks.mjs +11 -4
- package/plugins/comments/commentEditor.js +1 -0
- package/plugins/comments/commentEditor.mjs +1 -0
- package/plugins/comments/comments.js +289 -231
- package/plugins/comments/comments.mjs +297 -241
- package/plugins/comments/contextMenuItem/addEditComment.js +51 -0
- package/plugins/comments/contextMenuItem/addEditComment.mjs +35 -0
- package/plugins/comments/contextMenuItem/readOnlyComment.js +63 -0
- package/plugins/comments/contextMenuItem/readOnlyComment.mjs +55 -0
- package/plugins/comments/contextMenuItem/removeComment.js +48 -0
- package/plugins/comments/contextMenuItem/removeComment.mjs +32 -0
- package/plugins/contextMenu/contextMenu.js +1 -0
- package/plugins/contextMenu/contextMenu.mjs +1 -0
- package/plugins/copyPaste/copyPaste.js +1 -1
- package/plugins/copyPaste/copyPaste.mjs +1 -1
- package/plugins/filters/filters.js +42 -62
- package/plugins/filters/filters.mjs +41 -61
- package/shortcutContexts/commands/index.js +1 -2
- package/shortcutContexts/commands/index.mjs +1 -2
- package/shortcutContexts/grid.js +0 -5
- package/shortcutContexts/grid.mjs +0 -5
- package/tableView.js +9 -4
- package/tableView.mjs +9 -4
- package/translations/indexMapper.d.ts +2 -0
- package/shortcutContexts/commands/scrollToFocusedCell.js +0 -38
- package/shortcutContexts/commands/scrollToFocusedCell.mjs +0 -33
package/CHANGELOG.md
CHANGED
@@ -9,37 +9,6 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
9
9
|
|
10
10
|
<!-- UNVERSIONED -->
|
11
11
|
|
12
|
-
## [13.0.0] - 2023-06-22
|
13
|
-
|
14
|
-
### Added
|
15
|
-
|
16
|
-
- Angular: Added support for Angular 16. [#10396](https://github.com/handsontable/handsontable/pull/10396)
|
17
|
-
|
18
|
-
### Changed
|
19
|
-
|
20
|
-
- **Breaking change (React, Angular, Vue 2, Vue 3)**: Changed Handsontable's policy toward older versions of supported frameworks. From now on, Handsontable supports only those versions of any supported frameworks that are officially supported by their respective teams. Dropping Handsontable's support for any older framework versions won't be treated as a breaking change. [#10396](https://github.com/handsontable/handsontable/pull/10396)
|
21
|
-
- **Breaking change**: Changed the order in which three hooks are executed: now, the `beforeChange` hook is fired before the `afterSetDataAtCell` and `afterSetDataAtRowProp` hooks. [#10231](https://github.com/handsontable/handsontable/pull/10231)
|
22
|
-
- Changed the margins of the context menu in the RTL layout direction. [#10375](https://github.com/handsontable/handsontable/pull/10375)
|
23
|
-
|
24
|
-
### Removed
|
25
|
-
|
26
|
-
- **Breaking change (Angular)**: Dropped support for Angular 13 and lower. From now on, Handsontable supports only those versions of Angular that are officially supported by the Angular team: currently, it's 14-16. However, Handsontable 13.0.0 was thoroughly tested and, to the best of our knowledge, works correctly with versions down to Angular 12. [#10396](https://github.com/handsontable/handsontable/pull/10396)
|
27
|
-
- **Breaking change**: Removed the deprecated `beforeAutofillInsidePopulate` hook. [#10407](https://github.com/handsontable/handsontable/pull/10407)
|
28
|
-
- **Breaking change**: Removed the deprecated `getFirstNotHiddenIndex` method. Instead, use the `getNearestNotHiddenIndex()` method. [#10407](https://github.com/handsontable/handsontable/pull/10407)
|
29
|
-
- **Breaking change**: Removed the deprecated parameters of the `alter()` method: `insert_row` and `insert_col`. Instead, use the following parameters: `insert_row_above`, `insert_row_below`, `insert_col_start`, and `insert_col_end`. [#10407](https://github.com/handsontable/handsontable/pull/10407)
|
30
|
-
- **Breaking change**: Removed the deprecated parameters of the `populateFromArray()` method: `direction` and `deltas`. [#10407](https://github.com/handsontable/handsontable/pull/10407)
|
31
|
-
|
32
|
-
### Fixed
|
33
|
-
|
34
|
-
- Fixed an issue where the "Read only" icon of the context menu displayed incorrectly in the RTL layout direction. [#10375](https://github.com/handsontable/handsontable/pull/10375)
|
35
|
-
|
36
|
-
For more information on Handsontable 13.0.0, see:
|
37
|
-
|
38
|
-
- [Blog post (13.0.0)](https://handsontable.com/blog/handsontable-13-0-0-support-for-angular-16-and-new-frameworks-support-policy)
|
39
|
-
- [Documentation (13.0)](https://handsontable.com/docs/13.0)
|
40
|
-
- [Migration guide (12.4 → 13.0)](https://handsontable.com/docs/migration-from-12.4-to-13.0)
|
41
|
-
- [Release notes (13.0.0)](https://handsontable.com/docs/release-notes/#_13-0-0)
|
42
|
-
|
43
12
|
## [12.4.0] - 2023-05-23
|
44
13
|
|
45
14
|
### Added
|
package/base.js
CHANGED
@@ -44,8 +44,8 @@ Handsontable.hooks = _pluginHooks.default.getSingleton();
|
|
44
44
|
Handsontable.CellCoords = _src.CellCoords;
|
45
45
|
Handsontable.CellRange = _src.CellRange;
|
46
46
|
Handsontable.packageName = 'handsontable';
|
47
|
-
Handsontable.buildDate = "27/06/2023
|
48
|
-
Handsontable.version = "0.0.0-next-
|
47
|
+
Handsontable.buildDate = "27/06/2023 13:48:19";
|
48
|
+
Handsontable.version = "0.0.0-next-208afb8-20230627";
|
49
49
|
Handsontable.languages = {
|
50
50
|
dictionaryKeys: _registry.dictionaryKeys,
|
51
51
|
getLanguageDictionary: _registry.getLanguageDictionary,
|
package/base.mjs
CHANGED
@@ -35,8 +35,8 @@ Handsontable.hooks = Hooks.getSingleton();
|
|
35
35
|
Handsontable.CellCoords = CellCoords;
|
36
36
|
Handsontable.CellRange = CellRange;
|
37
37
|
Handsontable.packageName = 'handsontable';
|
38
|
-
Handsontable.buildDate = "27/06/2023
|
39
|
-
Handsontable.version = "0.0.0-next-
|
38
|
+
Handsontable.buildDate = "27/06/2023 13:48:38";
|
39
|
+
Handsontable.version = "0.0.0-next-208afb8-20230627";
|
40
40
|
Handsontable.languages = {
|
41
41
|
dictionaryKeys: dictionaryKeys,
|
42
42
|
getLanguageDictionary: getLanguageDictionary,
|
package/core.d.ts
CHANGED
@@ -131,6 +131,7 @@ export default class Core {
|
|
131
131
|
rowIndexMapper: IndexMapper;
|
132
132
|
runHooks(key: keyof Events, p1?: any, p2?: any, p3?: any, p4?: any, p5?: any, p6?: any): any;
|
133
133
|
scrollViewportTo(row?: number, column?: number, snapToBottom?: boolean, snapToRight?: boolean, considerHiddenIndexes?: boolean): boolean;
|
134
|
+
scrollToFocusedCell(callback?: () => void): void;
|
134
135
|
selectAll(includeRowHeaders?: boolean, includeColumnHeaders?: boolean, focusPosition?: { row?: number, col?: number }): void;
|
135
136
|
selectCell(row: number, col: number, endRow?: number, endCol?: number, scrollToCell?: boolean, changeListener?: boolean): boolean;
|
136
137
|
selectCellByProp(row: number, prop: string, endRow?: number, endProp?: string, scrollToCell?: boolean): boolean;
|
package/core.js
CHANGED
@@ -3738,7 +3738,7 @@ function Core(rootElement, userSettings) {
|
|
3738
3738
|
/**
|
3739
3739
|
* Returns the number of rendered row headers.
|
3740
3740
|
*
|
3741
|
-
* @since
|
3741
|
+
* @since 14.0.0
|
3742
3742
|
* @memberof Core#
|
3743
3743
|
* @function countRowHeaders
|
3744
3744
|
* @returns {number} Number of row headers.
|
@@ -3750,7 +3750,7 @@ function Core(rootElement, userSettings) {
|
|
3750
3750
|
/**
|
3751
3751
|
* Returns the number of rendered column headers.
|
3752
3752
|
*
|
3753
|
-
* @since
|
3753
|
+
* @since 14.0.0
|
3754
3754
|
* @memberof Core#
|
3755
3755
|
* @function countColHeaders
|
3756
3756
|
* @returns {number} Number of column headers.
|
@@ -4124,6 +4124,35 @@ function Core(rootElement, userSettings) {
|
|
4124
4124
|
return false;
|
4125
4125
|
};
|
4126
4126
|
|
4127
|
+
/**
|
4128
|
+
* Scrolls the viewport to coordinates specified by the currently focused cell.
|
4129
|
+
*
|
4130
|
+
* @since 14.0.0
|
4131
|
+
* @memberof Core#
|
4132
|
+
* @function scrollToFocusedCell
|
4133
|
+
* @param {Function} callback The callback function to call after the viewport is scrolled.
|
4134
|
+
*/
|
4135
|
+
this.scrollToFocusedCell = function () {
|
4136
|
+
var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {};
|
4137
|
+
if (!this.selection.isSelected()) {
|
4138
|
+
return;
|
4139
|
+
}
|
4140
|
+
this.addHookOnce('afterScroll', callback);
|
4141
|
+
var _this$getSelectedRang = this.getSelectedRangeLast(),
|
4142
|
+
highlight = _this$getSelectedRang.highlight;
|
4143
|
+
var renderableRowIndex = this.rowIndexMapper.getRenderableFromVisualIndex(highlight.row);
|
4144
|
+
var renderableColumnIndex = this.columnIndexMapper.getRenderableFromVisualIndex(highlight.col);
|
4145
|
+
var isScrolled = this.view.scrollViewport(this._createCellCoords(renderableRowIndex, renderableColumnIndex));
|
4146
|
+
if (isScrolled) {
|
4147
|
+
this.view.render();
|
4148
|
+
} else {
|
4149
|
+
this.removeHook('afterScroll', callback);
|
4150
|
+
this._registerImmediate(function () {
|
4151
|
+
return callback();
|
4152
|
+
});
|
4153
|
+
}
|
4154
|
+
};
|
4155
|
+
|
4127
4156
|
/**
|
4128
4157
|
* Removes the table from the DOM and destroys the instance of the Handsontable.
|
4129
4158
|
*
|
package/core.mjs
CHANGED
@@ -3733,7 +3733,7 @@ export default function Core(rootElement, userSettings) {
|
|
3733
3733
|
/**
|
3734
3734
|
* Returns the number of rendered row headers.
|
3735
3735
|
*
|
3736
|
-
* @since
|
3736
|
+
* @since 14.0.0
|
3737
3737
|
* @memberof Core#
|
3738
3738
|
* @function countRowHeaders
|
3739
3739
|
* @returns {number} Number of row headers.
|
@@ -3745,7 +3745,7 @@ export default function Core(rootElement, userSettings) {
|
|
3745
3745
|
/**
|
3746
3746
|
* Returns the number of rendered column headers.
|
3747
3747
|
*
|
3748
|
-
* @since
|
3748
|
+
* @since 14.0.0
|
3749
3749
|
* @memberof Core#
|
3750
3750
|
* @function countColHeaders
|
3751
3751
|
* @returns {number} Number of column headers.
|
@@ -4119,6 +4119,35 @@ export default function Core(rootElement, userSettings) {
|
|
4119
4119
|
return false;
|
4120
4120
|
};
|
4121
4121
|
|
4122
|
+
/**
|
4123
|
+
* Scrolls the viewport to coordinates specified by the currently focused cell.
|
4124
|
+
*
|
4125
|
+
* @since 14.0.0
|
4126
|
+
* @memberof Core#
|
4127
|
+
* @function scrollToFocusedCell
|
4128
|
+
* @param {Function} callback The callback function to call after the viewport is scrolled.
|
4129
|
+
*/
|
4130
|
+
this.scrollToFocusedCell = function () {
|
4131
|
+
var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {};
|
4132
|
+
if (!this.selection.isSelected()) {
|
4133
|
+
return;
|
4134
|
+
}
|
4135
|
+
this.addHookOnce('afterScroll', callback);
|
4136
|
+
var _this$getSelectedRang = this.getSelectedRangeLast(),
|
4137
|
+
highlight = _this$getSelectedRang.highlight;
|
4138
|
+
var renderableRowIndex = this.rowIndexMapper.getRenderableFromVisualIndex(highlight.row);
|
4139
|
+
var renderableColumnIndex = this.columnIndexMapper.getRenderableFromVisualIndex(highlight.col);
|
4140
|
+
var isScrolled = this.view.scrollViewport(this._createCellCoords(renderableRowIndex, renderableColumnIndex));
|
4141
|
+
if (isScrolled) {
|
4142
|
+
this.view.render();
|
4143
|
+
} else {
|
4144
|
+
this.removeHook('afterScroll', callback);
|
4145
|
+
this._registerImmediate(function () {
|
4146
|
+
return callback();
|
4147
|
+
});
|
4148
|
+
}
|
4149
|
+
};
|
4150
|
+
|
4122
4151
|
/**
|
4123
4152
|
* Removes the table from the DOM and destroys the instance of the Handsontable.
|
4124
4153
|
*
|
@@ -3115,7 +3115,7 @@ var _default = function _default() {
|
|
3115
3115
|
/**
|
3116
3116
|
* When set to `true`, the `navigableHeaders` option lets you navigate [row headers](@/guides/rows/row-header.md) and [column headers](@/guides/columns/column-header.md), using the arrow keys or the <kbd>**Tab**</kbd> key (if the [`disableTabNavigation`](#disabletabnavigation) option is set to `false`).
|
3117
3117
|
*
|
3118
|
-
* @since
|
3118
|
+
* @since 14.0.0
|
3119
3119
|
* @memberof Options#
|
3120
3120
|
* @type {boolean}
|
3121
3121
|
* @default false
|
@@ -3111,7 +3111,7 @@ export default (function () {
|
|
3111
3111
|
/**
|
3112
3112
|
* When set to `true`, the `navigableHeaders` option lets you navigate [row headers](@/guides/rows/row-header.md) and [column headers](@/guides/columns/column-header.md), using the arrow keys or the <kbd>**Tab**</kbd> key (if the [`disableTabNavigation`](#disabletabnavigation) option is set to `false`).
|
3113
3113
|
*
|
3114
|
-
* @since
|
3114
|
+
* @since 14.0.0
|
3115
3115
|
* @memberof Options#
|
3116
3116
|
* @type {boolean}
|
3117
3117
|
* @default false
|
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:
|
28
|
+
* Version: 0.0.0-next-208afb8-20230627
|
29
|
+
* Release date: 23/05/2023 (built at 27/06/2023 13:48:55)
|
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:
|
28
|
+
* Version: 0.0.0-next-208afb8-20230627
|
29
|
+
* Release date: 23/05/2023 (built at 27/06/2023 13:48:55)
|
30
30
|
*/
|
31
31
|
/**
|
32
32
|
* Fix for bootstrap styles
|