handsontable 0.0.0-next-a2cc849-20240208 → 0.0.0-next-fd66c90-20240209

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.

Files changed (59) hide show
  1. package/3rdparty/walkontable/src/cell/range.d.ts +0 -1
  2. package/3rdparty/walkontable/src/cell/range.js +0 -12
  3. package/3rdparty/walkontable/src/cell/range.mjs +0 -12
  4. package/base.js +2 -2
  5. package/base.mjs +2 -2
  6. package/core/viewportScroll/index.js +1 -4
  7. package/core/viewportScroll/index.mjs +1 -4
  8. package/core.js +0 -14
  9. package/core.mjs +0 -14
  10. package/dist/handsontable.css +2 -2
  11. package/dist/handsontable.full.css +2 -2
  12. package/dist/handsontable.full.js +1022 -1304
  13. package/dist/handsontable.full.min.css +2 -2
  14. package/dist/handsontable.full.min.js +151 -151
  15. package/dist/handsontable.js +1024 -1306
  16. package/dist/handsontable.min.css +2 -2
  17. package/dist/handsontable.min.js +32 -32
  18. package/editorManager.js +8 -12
  19. package/editorManager.mjs +8 -12
  20. package/helpers/mixed.js +1 -1
  21. package/helpers/mixed.mjs +1 -1
  22. package/package.json +1 -1
  23. package/pluginHooks.d.ts +0 -1
  24. package/pluginHooks.js +1 -43
  25. package/pluginHooks.mjs +1 -43
  26. package/plugins/collapsibleColumns/collapsibleColumns.js +1 -7
  27. package/plugins/collapsibleColumns/collapsibleColumns.mjs +1 -7
  28. package/plugins/columnSorting/columnSorting.js +0 -6
  29. package/plugins/columnSorting/columnSorting.mjs +0 -6
  30. package/plugins/contextMenu/menu/defaultShortcutsList.js +10 -26
  31. package/plugins/contextMenu/menu/defaultShortcutsList.mjs +10 -26
  32. package/plugins/mergeCells/mergeCells.js +1 -3
  33. package/plugins/mergeCells/mergeCells.mjs +1 -3
  34. package/plugins/multiColumnSorting/multiColumnSorting.js +0 -6
  35. package/plugins/multiColumnSorting/multiColumnSorting.mjs +0 -6
  36. package/plugins/nestedHeaders/nestedHeaders.js +0 -1
  37. package/plugins/nestedHeaders/nestedHeaders.mjs +0 -1
  38. package/plugins/nestedRows/nestedRows.js +1 -7
  39. package/plugins/nestedRows/nestedRows.mjs +1 -7
  40. package/renderers/checkboxRenderer/checkboxRenderer.js +4 -4
  41. package/renderers/checkboxRenderer/checkboxRenderer.mjs +4 -4
  42. package/selection/selection.js +30 -156
  43. package/selection/selection.mjs +29 -155
  44. package/selection/transformation.js +27 -18
  45. package/selection/transformation.mjs +27 -18
  46. package/shortcutContexts/commands/editor/closeAndSave.js +2 -2
  47. package/shortcutContexts/commands/editor/closeAndSave.mjs +2 -2
  48. package/shortcutContexts/commands/editor/open.js +3 -18
  49. package/shortcutContexts/commands/editor/open.mjs +3 -18
  50. package/shortcutContexts/commands/moveCellSelection/inlineEnd.js +1 -6
  51. package/shortcutContexts/commands/moveCellSelection/inlineEnd.mjs +1 -6
  52. package/shortcutContexts/commands/moveCellSelection/inlineStart.js +1 -6
  53. package/shortcutContexts/commands/moveCellSelection/inlineStart.mjs +1 -6
  54. package/shortcutContexts/grid.js +2 -2
  55. package/shortcutContexts/grid.mjs +2 -2
  56. package/shortcuts/context.js +1 -2
  57. package/shortcuts/context.mjs +1 -2
  58. package/core/viewportScroll/scrollStrategies/focusScroll.js +0 -15
  59. package/core/viewportScroll/scrollStrategies/focusScroll.mjs +0 -11
@@ -20,7 +20,6 @@ export default class CellRange {
20
20
  }): boolean;
21
21
  isSingleCell(): boolean;
22
22
  isSingleHeader(): boolean;
23
- isHeader(): boolean;
24
23
  containsHeaders(): boolean;
25
24
  getOuterHeight(): number;
26
25
  getOuterWidth(): number;
@@ -154,18 +154,6 @@ class CellRange {
154
154
  return (this.from.row < 0 || this.from.col < 0) && this.from.row === this.to.row && this.from.col === this.to.col;
155
155
  }
156
156
 
157
- /**
158
- * Checks if your range covers only headers range (negative coordinates, without any cells).
159
- *
160
- * @returns {boolean}
161
- */
162
- isHeader() {
163
- if (this.from.isHeader() && this.to.isHeader()) {
164
- return true;
165
- }
166
- return this.from.col < 0 && this.to.col < 0 || this.from.row < 0 && this.to.row < 0;
167
- }
168
-
169
157
  /**
170
158
  * Checks if your range overlaps headers range (negative coordinates).
171
159
  *
@@ -150,18 +150,6 @@ class CellRange {
150
150
  return (this.from.row < 0 || this.from.col < 0) && this.from.row === this.to.row && this.from.col === this.to.col;
151
151
  }
152
152
 
153
- /**
154
- * Checks if your range covers only headers range (negative coordinates, without any cells).
155
- *
156
- * @returns {boolean}
157
- */
158
- isHeader() {
159
- if (this.from.isHeader() && this.to.isHeader()) {
160
- return true;
161
- }
162
- return this.from.col < 0 && this.to.col < 0 || this.from.row < 0 && this.to.row < 0;
163
- }
164
-
165
153
  /**
166
154
  * Checks if your range overlaps headers range (negative coordinates).
167
155
  *
package/base.js CHANGED
@@ -45,8 +45,8 @@ Handsontable.hooks = _pluginHooks.default.getSingleton();
45
45
  Handsontable.CellCoords = _src.CellCoords;
46
46
  Handsontable.CellRange = _src.CellRange;
47
47
  Handsontable.packageName = 'handsontable';
48
- Handsontable.buildDate = "08/02/2024 14:19:28";
49
- Handsontable.version = "0.0.0-next-a2cc849-20240208";
48
+ Handsontable.buildDate = "09/02/2024 11:01:20";
49
+ Handsontable.version = "0.0.0-next-fd66c90-20240209";
50
50
  Handsontable.languages = {
51
51
  dictionaryKeys: _registry.dictionaryKeys,
52
52
  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 = "08/02/2024 14:19:35";
39
- Handsontable.version = "0.0.0-next-a2cc849-20240208";
38
+ Handsontable.buildDate = "09/02/2024 11:01:26";
39
+ Handsontable.version = "0.0.0-next-fd66c90-20240209";
40
40
  Handsontable.languages = {
41
41
  dictionaryKeys,
42
42
  getLanguageDictionary,
@@ -4,7 +4,6 @@ exports.__esModule = true;
4
4
  exports.createViewportScroller = createViewportScroller;
5
5
  var _columnHeaderScroll = require("./scrollStrategies/columnHeaderScroll");
6
6
  var _cornerHeaderScroll = require("./scrollStrategies/cornerHeaderScroll");
7
- var _focusScroll = require("./scrollStrategies/focusScroll");
8
7
  var _multipleScroll = require("./scrollStrategies/multipleScroll");
9
8
  var _noncontiguousScroll = require("./scrollStrategies/noncontiguousScroll");
10
9
  var _rowHeaderScroll = require("./scrollStrategies/rowHeaderScroll");
@@ -47,9 +46,7 @@ function createViewportScroller(hot) {
47
46
  return;
48
47
  }
49
48
  let scrollStrategy;
50
- if (selection.isFocusSelectionChanged()) {
51
- scrollStrategy = (0, _focusScroll.focusScrollStrategy)(hot);
52
- } else if (selection.isSelectedByCorner()) {
49
+ if (selection.isSelectedByCorner()) {
53
50
  scrollStrategy = (0, _cornerHeaderScroll.cornerHeaderScrollStrategy)(hot);
54
51
  } else if (selection.isSelectedByRowHeader()) {
55
52
  scrollStrategy = (0, _rowHeaderScroll.rowHeaderScrollStrategy)(hot);
@@ -1,6 +1,5 @@
1
1
  import { columnHeaderScrollStrategy } from "./scrollStrategies/columnHeaderScroll.mjs";
2
2
  import { cornerHeaderScrollStrategy } from "./scrollStrategies/cornerHeaderScroll.mjs";
3
- import { focusScrollStrategy } from "./scrollStrategies/focusScroll.mjs";
4
3
  import { multipleScrollStrategy } from "./scrollStrategies/multipleScroll.mjs";
5
4
  import { noncontiguousScrollStrategy } from "./scrollStrategies/noncontiguousScroll.mjs";
6
5
  import { rowHeaderScrollStrategy } from "./scrollStrategies/rowHeaderScroll.mjs";
@@ -43,9 +42,7 @@ export function createViewportScroller(hot) {
43
42
  return;
44
43
  }
45
44
  let scrollStrategy;
46
- if (selection.isFocusSelectionChanged()) {
47
- scrollStrategy = focusScrollStrategy(hot);
48
- } else if (selection.isSelectedByCorner()) {
45
+ if (selection.isSelectedByCorner()) {
49
46
  scrollStrategy = cornerHeaderScrollStrategy(hot);
50
47
  } else if (selection.isSelectedByRowHeader()) {
51
48
  scrollStrategy = rowHeaderScrollStrategy(hot);
package/core.js CHANGED
@@ -284,12 +284,6 @@ function Core(rootElement, userSettings) {
284
284
  countRenderableRows: () => this.view.countRenderableRows(),
285
285
  countRowHeaders: () => this.countRowHeaders(),
286
286
  countColHeaders: () => this.countColHeaders(),
287
- countRenderableRowsInRange: function () {
288
- return _this.view.countRenderableRowsInRange(...arguments);
289
- },
290
- countRenderableColumnsInRange: function () {
291
- return _this.view.countRenderableColumnsInRange(...arguments);
292
- },
293
287
  getShortcutManager: () => instance.getShortcutManager(),
294
288
  createCellCoords: (row, column) => instance._createCellCoords(row, column),
295
289
  createCellRange: (highlight, from, to) => instance._createCellRange(highlight, from, to),
@@ -345,14 +339,6 @@ function Core(rootElement, userSettings) {
345
339
  }
346
340
  this._refreshBorders(null);
347
341
  });
348
- this.selection.addLocalHook('afterSetFocus', cellCoords => {
349
- const preventScrolling = (0, _object.createObjectPropListener)(false);
350
- this.runHooks('afterSelectionFocusSet', cellCoords.row, cellCoords.col, preventScrolling);
351
- if (!preventScrolling.isTouched() || preventScrolling.isTouched() && !preventScrolling.value) {
352
- viewportScroller.scrollTo(cellCoords);
353
- }
354
- this._refreshBorders(null);
355
- });
356
342
  this.selection.addLocalHook('afterSelectionFinished', cellRanges => {
357
343
  const selectionLayerLevel = cellRanges.length - 1;
358
344
  const {
package/core.mjs CHANGED
@@ -279,12 +279,6 @@ export default function Core(rootElement, userSettings) {
279
279
  countRenderableRows: () => this.view.countRenderableRows(),
280
280
  countRowHeaders: () => this.countRowHeaders(),
281
281
  countColHeaders: () => this.countColHeaders(),
282
- countRenderableRowsInRange: function () {
283
- return _this.view.countRenderableRowsInRange(...arguments);
284
- },
285
- countRenderableColumnsInRange: function () {
286
- return _this.view.countRenderableColumnsInRange(...arguments);
287
- },
288
282
  getShortcutManager: () => instance.getShortcutManager(),
289
283
  createCellCoords: (row, column) => instance._createCellCoords(row, column),
290
284
  createCellRange: (highlight, from, to) => instance._createCellRange(highlight, from, to),
@@ -340,14 +334,6 @@ export default function Core(rootElement, userSettings) {
340
334
  }
341
335
  this._refreshBorders(null);
342
336
  });
343
- this.selection.addLocalHook('afterSetFocus', cellCoords => {
344
- const preventScrolling = createObjectPropListener(false);
345
- this.runHooks('afterSelectionFocusSet', cellCoords.row, cellCoords.col, preventScrolling);
346
- if (!preventScrolling.isTouched() || preventScrolling.isTouched() && !preventScrolling.value) {
347
- viewportScroller.scrollTo(cellCoords);
348
- }
349
- this._refreshBorders(null);
350
- });
351
337
  this.selection.addLocalHook('afterSelectionFinished', cellRanges => {
352
338
  const selectionLayerLevel = cellRanges.length - 1;
353
339
  const {
@@ -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-a2cc849-20240208
29
- * Release date: 16/01/2024 (built at 08/02/2024 14:19:40)
28
+ * Version: 0.0.0-next-fd66c90-20240209
29
+ * Release date: 16/01/2024 (built at 09/02/2024 11:01:31)
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-a2cc849-20240208
29
- * Release date: 16/01/2024 (built at 08/02/2024 14:19:40)
28
+ * Version: 0.0.0-next-fd66c90-20240209
29
+ * Release date: 16/01/2024 (built at 09/02/2024 11:01:31)
30
30
  */
31
31
  /**
32
32
  * Fix for bootstrap styles