handsontable 0.0.0-next-b02b3d1-20230710 → 0.0.0-next-3b33ccd-20230710
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/base.js +2 -2
- package/base.mjs +2 -2
- package/core.d.ts +1 -0
- package/core.js +31 -24
- package/core.mjs +31 -24
- package/dataMap/metaManager/metaSchema.js +0 -22
- package/dataMap/metaManager/metaSchema.mjs +0 -22
- package/dist/handsontable.css +2 -13
- package/dist/handsontable.full.css +2 -13
- package/dist/handsontable.full.js +4811 -4809
- package/dist/handsontable.full.min.css +3 -3
- package/dist/handsontable.full.min.js +61 -61
- package/dist/handsontable.js +13683 -13681
- package/dist/handsontable.min.css +3 -3
- package/dist/handsontable.min.js +4 -4
- package/editorManager.js +4 -10
- package/editorManager.mjs +4 -10
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/pluginHooks.d.ts +1 -1
- package/pluginHooks.js +7 -10
- package/pluginHooks.mjs +7 -10
- 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/dropdownMenu/dropdownMenu.js +0 -1
- package/plugins/dropdownMenu/dropdownMenu.mjs +0 -1
- package/plugins/formulas/engine/settings.js +2 -2
- package/plugins/formulas/engine/settings.mjs +2 -2
- package/plugins/formulas/formulas.js +2 -2
- package/plugins/formulas/formulas.mjs +2 -2
- package/plugins/manualRowResize/manualRowResize.js +2 -2
- package/plugins/manualRowResize/manualRowResize.mjs +2 -2
- package/settings.d.ts +0 -1
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.js +7 -2
- package/shortcutContexts/commands/extendCellsSelection/toMostBottom.mjs +7 -2
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.js +7 -2
- package/shortcutContexts/commands/extendCellsSelection/toMostLeft.mjs +7 -2
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.js +7 -2
- package/shortcutContexts/commands/extendCellsSelection/toMostRight.mjs +7 -2
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.js +7 -2
- package/shortcutContexts/commands/extendCellsSelection/toMostTop.mjs +7 -2
- package/shortcutContexts/constants.js +6 -1
- package/shortcutContexts/constants.mjs +4 -0
- package/tableView.js +9 -4
- package/tableView.mjs +9 -4
- package/core/focusCatcher/focusDetector.js +0 -62
- package/core/focusCatcher/focusDetector.mjs +0 -58
- package/core/focusCatcher/index.js +0 -133
- package/core/focusCatcher/index.mjs +0 -129
- package/core/index.js +0 -12
- package/core/index.mjs +0 -1
package/editorManager.js
CHANGED
@@ -255,13 +255,7 @@ var EditorManager = /*#__PURE__*/function () {
|
|
255
255
|
return;
|
256
256
|
}
|
257
257
|
if (!this.activeEditor) {
|
258
|
-
|
259
|
-
row = _this$instance$getSel2.row,
|
260
|
-
col = _this$instance$getSel2.col;
|
261
|
-
var renderableRowIndex = this.instance.rowIndexMapper.getRenderableFromVisualIndex(row);
|
262
|
-
var renderableColumnIndex = this.instance.columnIndexMapper.getRenderableFromVisualIndex(col);
|
263
|
-
this.instance.view.scrollViewport(this.instance._createCellCoords(renderableRowIndex, renderableColumnIndex));
|
264
|
-
this.instance.view.render();
|
258
|
+
this.instance.scrollToFocusedCell();
|
265
259
|
this.prepareEditor();
|
266
260
|
}
|
267
261
|
if (this.activeEditor) {
|
@@ -336,9 +330,9 @@ var EditorManager = /*#__PURE__*/function () {
|
|
336
330
|
key: "isCellEditable",
|
337
331
|
value: function isCellEditable() {
|
338
332
|
var editorClass = this.instance.getCellEditor(this.cellProperties);
|
339
|
-
var _this$instance$
|
340
|
-
row = _this$instance$
|
341
|
-
col = _this$instance$
|
333
|
+
var _this$instance$getSel2 = this.instance.getSelectedRangeLast().highlight,
|
334
|
+
row = _this$instance$getSel2.row,
|
335
|
+
col = _this$instance$getSel2.col;
|
342
336
|
var _this$instance = this.instance,
|
343
337
|
rowIndexMapper = _this$instance.rowIndexMapper,
|
344
338
|
columnIndexMapper = _this$instance.columnIndexMapper;
|
package/editorManager.mjs
CHANGED
@@ -249,13 +249,7 @@ var EditorManager = /*#__PURE__*/function () {
|
|
249
249
|
return;
|
250
250
|
}
|
251
251
|
if (!this.activeEditor) {
|
252
|
-
|
253
|
-
row = _this$instance$getSel2.row,
|
254
|
-
col = _this$instance$getSel2.col;
|
255
|
-
var renderableRowIndex = this.instance.rowIndexMapper.getRenderableFromVisualIndex(row);
|
256
|
-
var renderableColumnIndex = this.instance.columnIndexMapper.getRenderableFromVisualIndex(col);
|
257
|
-
this.instance.view.scrollViewport(this.instance._createCellCoords(renderableRowIndex, renderableColumnIndex));
|
258
|
-
this.instance.view.render();
|
252
|
+
this.instance.scrollToFocusedCell();
|
259
253
|
this.prepareEditor();
|
260
254
|
}
|
261
255
|
if (this.activeEditor) {
|
@@ -330,9 +324,9 @@ var EditorManager = /*#__PURE__*/function () {
|
|
330
324
|
key: "isCellEditable",
|
331
325
|
value: function isCellEditable() {
|
332
326
|
var editorClass = this.instance.getCellEditor(this.cellProperties);
|
333
|
-
var _this$instance$
|
334
|
-
row = _this$instance$
|
335
|
-
col = _this$instance$
|
327
|
+
var _this$instance$getSel2 = this.instance.getSelectedRangeLast().highlight,
|
328
|
+
row = _this$instance$getSel2.row,
|
329
|
+
col = _this$instance$getSel2.col;
|
336
330
|
var _this$instance = this.instance,
|
337
331
|
rowIndexMapper = _this$instance.rowIndexMapper,
|
338
332
|
columnIndexMapper = _this$instance.columnIndexMapper;
|
package/helpers/mixed.js
CHANGED
@@ -152,7 +152,7 @@ var domMessages = {
|
|
152
152
|
function _injectProductInfo(key, element) {
|
153
153
|
var hasValidType = !isEmpty(key);
|
154
154
|
var isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
155
|
-
var hotVersion = "0.0.0-next-
|
155
|
+
var hotVersion = "0.0.0-next-3b33ccd-20230710";
|
156
156
|
var keyValidityDate;
|
157
157
|
var consoleMessageState = 'invalid';
|
158
158
|
var domMessageState = 'invalid';
|
package/helpers/mixed.mjs
CHANGED
@@ -142,7 +142,7 @@ var domMessages = {
|
|
142
142
|
export function _injectProductInfo(key, element) {
|
143
143
|
var hasValidType = !isEmpty(key);
|
144
144
|
var isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
145
|
-
var hotVersion = "0.0.0-next-
|
145
|
+
var hotVersion = "0.0.0-next-3b33ccd-20230710";
|
146
146
|
var keyValidityDate;
|
147
147
|
var consoleMessageState = 'invalid';
|
148
148
|
var domMessageState = 'invalid';
|
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-3b33ccd-20230710",
|
14
14
|
"main": "index",
|
15
15
|
"module": "index.mjs",
|
16
16
|
"jsnext:main": "index.mjs",
|
package/pluginHooks.d.ts
CHANGED
@@ -128,6 +128,7 @@ export interface Events {
|
|
128
128
|
afterRowSequenceChange?: (source: 'init' | 'move' | 'insert' | 'remove' | 'update') => void;
|
129
129
|
afterScrollHorizontally?: () => void;
|
130
130
|
afterScrollVertically?: () => void;
|
131
|
+
afterScroll?: () => void;
|
131
132
|
afterSelectColumns?: (from: CellCoords, to: CellCoords, highlight: CellCoords) => void;
|
132
133
|
afterSelection?: (row: number, column: number, row2: number, column2: number, preventScrolling: { value: boolean }, selectionLayerLevel: number) => void;
|
133
134
|
afterSelectionByProp?: (row: number, prop: string, row2: number, prop2: string, preventScrolling: { value: boolean }, selectionLayerLevel: number) => void;
|
@@ -236,7 +237,6 @@ export interface Events {
|
|
236
237
|
modifyColWidth?: (width: number, column: number) => void;
|
237
238
|
modifyCopyableRange?: (copyableRanges: RangeType[]) => void;
|
238
239
|
modifyData?: (row: number, column: number, valueHolder: { value: CellValue }, ioMode: 'get' | 'set') => void;
|
239
|
-
modifyFocusOnTabNavigation?: (tabActivationDir: 'from_above' | 'from_below', visualCoords: CellCoords) => void;
|
240
240
|
modifyGetCellCoords?: (row: number, column: number, topmost: boolean) => void | [number, number] | [number, number, number, number];
|
241
241
|
modifyRowData?: (row: number) => void;
|
242
242
|
modifyRowHeader?: (row: number) => void;
|
package/pluginHooks.js
CHANGED
@@ -577,6 +577,13 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
|
|
577
577
|
* @event Hooks#afterScrollVertically
|
578
578
|
*/
|
579
579
|
'afterScrollVertically',
|
580
|
+
/**
|
581
|
+
* Fired after the vertical or horizontal scroll event.
|
582
|
+
*
|
583
|
+
* @since 14.0.0
|
584
|
+
* @event Hooks#afterScroll
|
585
|
+
*/
|
586
|
+
'afterScroll',
|
580
587
|
/**
|
581
588
|
* Fired after one or more cells are selected (e.g. During mouse move).
|
582
589
|
*
|
@@ -1336,16 +1343,6 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
|
|
1336
1343
|
* @returns {undefined|number[]}
|
1337
1344
|
*/
|
1338
1345
|
'modifyGetCellCoords',
|
1339
|
-
/**
|
1340
|
-
* Used to modify the cell coordinates when the table is activated (going into the listen mode).
|
1341
|
-
*
|
1342
|
-
* @event Hooks#modifyFocusOnTabNavigation
|
1343
|
-
* @since 14.0.0
|
1344
|
-
* @param {'from_above' | 'from_below'} tabActivationDir The browsers Tab navigation direction. Depending on
|
1345
|
-
* whether the user activated the table from the element above or below, another cell can be selected.
|
1346
|
-
* @param {CellCoords} visualCoords The coords that will be used to select a cell.
|
1347
|
-
*/
|
1348
|
-
'modifyFocusOnTabNavigation',
|
1349
1346
|
/**
|
1350
1347
|
* Allows modify the visual row index that is used to retrieve the row header element (TH) before it's
|
1351
1348
|
* highlighted (proper CSS class names are added). Modifying the visual row index allows building a custom
|
package/pluginHooks.mjs
CHANGED
@@ -574,6 +574,13 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
|
|
574
574
|
* @event Hooks#afterScrollVertically
|
575
575
|
*/
|
576
576
|
'afterScrollVertically',
|
577
|
+
/**
|
578
|
+
* Fired after the vertical or horizontal scroll event.
|
579
|
+
*
|
580
|
+
* @since 14.0.0
|
581
|
+
* @event Hooks#afterScroll
|
582
|
+
*/
|
583
|
+
'afterScroll',
|
577
584
|
/**
|
578
585
|
* Fired after one or more cells are selected (e.g. During mouse move).
|
579
586
|
*
|
@@ -1333,16 +1340,6 @@ var REGISTERED_HOOKS = [/* eslint-disable jsdoc/require-description-complete-sen
|
|
1333
1340
|
* @returns {undefined|number[]}
|
1334
1341
|
*/
|
1335
1342
|
'modifyGetCellCoords',
|
1336
|
-
/**
|
1337
|
-
* Used to modify the cell coordinates when the table is activated (going into the listen mode).
|
1338
|
-
*
|
1339
|
-
* @event Hooks#modifyFocusOnTabNavigation
|
1340
|
-
* @since 14.0.0
|
1341
|
-
* @param {'from_above' | 'from_below'} tabActivationDir The browsers Tab navigation direction. Depending on
|
1342
|
-
* whether the user activated the table from the element above or below, another cell can be selected.
|
1343
|
-
* @param {CellCoords} visualCoords The coords that will be used to select a cell.
|
1344
|
-
*/
|
1345
|
-
'modifyFocusOnTabNavigation',
|
1346
1343
|
/**
|
1347
1344
|
* Allows modify the visual row index that is used to retrieve the row header element (TH) before it's
|
1348
1345
|
* highlighted (proper CSS class names are added). Modifying the visual row index allows building a custom
|
@@ -197,6 +197,7 @@ var CommentEditor = /*#__PURE__*/function () {
|
|
197
197
|
this.rootDocument.body.appendChild(this.container);
|
198
198
|
(0, _element.addClass)(editor, CommentEditor.CLASS_EDITOR);
|
199
199
|
(0, _element.addClass)(textArea, CommentEditor.CLASS_INPUT);
|
200
|
+
textArea.setAttribute('data-hot-input', true);
|
200
201
|
editor.appendChild(textArea);
|
201
202
|
this.container.appendChild(editor);
|
202
203
|
return editor;
|
@@ -193,6 +193,7 @@ var CommentEditor = /*#__PURE__*/function () {
|
|
193
193
|
this.rootDocument.body.appendChild(this.container);
|
194
194
|
addClass(editor, CommentEditor.CLASS_EDITOR);
|
195
195
|
addClass(textArea, CommentEditor.CLASS_INPUT);
|
196
|
+
textArea.setAttribute('data-hot-input', true);
|
196
197
|
editor.appendChild(textArea);
|
197
198
|
this.container.appendChild(editor);
|
198
199
|
return editor;
|