handsontable 14.5.0-next-ede811d-20240717 → 14.5.0-next-cd41430-20240725

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/3rdparty/walkontable/src/calculator/calculationType/fullyVisibleColumns.js +126 -0
  2. package/3rdparty/walkontable/src/calculator/calculationType/fullyVisibleColumns.mjs +122 -0
  3. package/3rdparty/walkontable/src/calculator/calculationType/fullyVisibleRows.js +119 -0
  4. package/3rdparty/walkontable/src/calculator/calculationType/fullyVisibleRows.mjs +115 -0
  5. package/3rdparty/walkontable/src/calculator/calculationType/partiallyVisibleColumns.js +125 -0
  6. package/3rdparty/walkontable/src/calculator/calculationType/partiallyVisibleColumns.mjs +121 -0
  7. package/3rdparty/walkontable/src/calculator/calculationType/partiallyVisibleRows.js +118 -0
  8. package/3rdparty/walkontable/src/calculator/calculationType/partiallyVisibleRows.mjs +114 -0
  9. package/3rdparty/walkontable/src/calculator/{renderAllColumns.js → calculationType/renderedAllColumns.js} +32 -9
  10. package/3rdparty/walkontable/src/calculator/{renderAllColumns.mjs → calculationType/renderedAllColumns.mjs} +31 -8
  11. package/3rdparty/walkontable/src/calculator/{renderAllRows.js → calculationType/renderedAllRows.js} +32 -9
  12. package/3rdparty/walkontable/src/calculator/{renderAllRows.mjs → calculationType/renderedAllRows.mjs} +31 -8
  13. package/3rdparty/walkontable/src/calculator/calculationType/renderedColumns.js +37 -0
  14. package/3rdparty/walkontable/src/calculator/calculationType/renderedColumns.mjs +33 -0
  15. package/3rdparty/walkontable/src/calculator/calculationType/renderedRows.js +37 -0
  16. package/3rdparty/walkontable/src/calculator/calculationType/renderedRows.mjs +33 -0
  17. package/3rdparty/walkontable/src/calculator/index.js +18 -17
  18. package/3rdparty/walkontable/src/calculator/index.mjs +11 -6
  19. package/3rdparty/walkontable/src/calculator/viewportBase.js +92 -0
  20. package/3rdparty/walkontable/src/calculator/viewportBase.mjs +88 -0
  21. package/3rdparty/walkontable/src/calculator/viewportColumns.js +51 -145
  22. package/3rdparty/walkontable/src/calculator/viewportColumns.mjs +51 -145
  23. package/3rdparty/walkontable/src/calculator/viewportRows.js +59 -141
  24. package/3rdparty/walkontable/src/calculator/viewportRows.mjs +59 -141
  25. package/3rdparty/walkontable/src/index.js +2 -0
  26. package/3rdparty/walkontable/src/index.mjs +2 -2
  27. package/3rdparty/walkontable/src/table.js +5 -11
  28. package/3rdparty/walkontable/src/table.mjs +5 -11
  29. package/3rdparty/walkontable/src/utils/column.js +2 -1
  30. package/3rdparty/walkontable/src/utils/column.mjs +2 -1
  31. package/3rdparty/walkontable/src/utils/columnStretching.js +10 -19
  32. package/3rdparty/walkontable/src/utils/columnStretching.mjs +10 -19
  33. package/3rdparty/walkontable/src/viewport.js +35 -46
  34. package/3rdparty/walkontable/src/viewport.mjs +36 -47
  35. package/base.js +2 -2
  36. package/base.mjs +2 -2
  37. package/core.js +1 -1
  38. package/core.mjs +2 -2
  39. package/dist/handsontable.css +2 -2
  40. package/dist/handsontable.full.css +2 -2
  41. package/dist/handsontable.full.js +2494 -1961
  42. package/dist/handsontable.full.min.css +2 -2
  43. package/dist/handsontable.full.min.js +148 -148
  44. package/dist/handsontable.js +2495 -1962
  45. package/dist/handsontable.min.css +2 -2
  46. package/dist/handsontable.min.js +32 -32
  47. package/helpers/mixed.js +1 -1
  48. package/helpers/mixed.mjs +1 -1
  49. package/package.json +1 -1
  50. package/plugins/autoColumnSize/autoColumnSize.js +1 -1
  51. package/plugins/autoColumnSize/autoColumnSize.mjs +2 -2
  52. package/plugins/manualRowResize/manualRowResize.js +1 -1
  53. package/plugins/manualRowResize/manualRowResize.mjs +2 -2
  54. package/3rdparty/walkontable/src/calculator/constants.js +0 -26
  55. package/3rdparty/walkontable/src/calculator/constants.mjs +0 -23
package/helpers/mixed.js CHANGED
@@ -134,7 +134,7 @@ const domMessages = {
134
134
  function _injectProductInfo(key, element) {
135
135
  const hasValidType = !isEmpty(key);
136
136
  const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
137
- const hotVersion = "14.5.0-next-ede811d-20240717";
137
+ const hotVersion = "14.5.0-next-cd41430-20240725";
138
138
  let keyValidityDate;
139
139
  let consoleMessageState = 'invalid';
140
140
  let domMessageState = 'invalid';
package/helpers/mixed.mjs CHANGED
@@ -124,7 +124,7 @@ const domMessages = {
124
124
  export function _injectProductInfo(key, element) {
125
125
  const hasValidType = !isEmpty(key);
126
126
  const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
127
- const hotVersion = "14.5.0-next-ede811d-20240717";
127
+ const hotVersion = "14.5.0-next-cd41430-20240725";
128
128
  let keyValidityDate;
129
129
  let consoleMessageState = 'invalid';
130
130
  let 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": "14.5.0-next-ede811d-20240717",
13
+ "version": "14.5.0-next-cd41430-20240725",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
@@ -482,7 +482,7 @@ class AutoColumnSize extends _base.BasePlugin {
482
482
  if (width === undefined) {
483
483
  width = this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(column));
484
484
  if (keepMinimum && typeof width === 'number') {
485
- width = Math.max(width, _src.ViewportColumnsCalculator.DEFAULT_WIDTH);
485
+ width = Math.max(width, _src.DEFAULT_COLUMN_WIDTH);
486
486
  }
487
487
  }
488
488
  return width;
@@ -17,7 +17,7 @@ import { isObject, hasOwnProperty } from "../../helpers/object.mjs";
17
17
  import { valueAccordingPercent, rangeEach } from "../../helpers/number.mjs";
18
18
  import SamplesGenerator from "../../utils/samplesGenerator.mjs";
19
19
  import { isPercentValue } from "../../helpers/string.mjs";
20
- import { ViewportColumnsCalculator } from "../../3rdparty/walkontable/src/index.mjs";
20
+ import { DEFAULT_COLUMN_WIDTH } from "../../3rdparty/walkontable/src/index.mjs";
21
21
  import { PhysicalIndexToValueMap as IndexToValueMap } from "../../translations/index.mjs";
22
22
  Hooks.getSingleton().register('modifyAutoColumnSizeSeed');
23
23
  export const PLUGIN_KEY = 'autoColumnSize';
@@ -478,7 +478,7 @@ export class AutoColumnSize extends BasePlugin {
478
478
  if (width === undefined) {
479
479
  width = this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(column));
480
480
  if (keepMinimum && typeof width === 'number') {
481
- width = Math.max(width, ViewportColumnsCalculator.DEFAULT_WIDTH);
481
+ width = Math.max(width, DEFAULT_COLUMN_WIDTH);
482
482
  }
483
483
  }
484
484
  return width;
@@ -227,7 +227,7 @@ class ManualRowResize extends _base.BasePlugin {
227
227
  */
228
228
  setManualSize(row, height) {
229
229
  const physicalRow = this.hot.toPhysicalRow(row);
230
- const newHeight = Math.max(height, _src.ViewportRowsCalculator.DEFAULT_HEIGHT);
230
+ const newHeight = Math.max(height, _src.DEFAULT_ROW_HEIGHT);
231
231
  _classPrivateFieldGet(_rowHeightsMap, this).setValueAtIndex(physicalRow, newHeight);
232
232
  return newHeight;
233
233
  }
@@ -11,7 +11,7 @@ import { addClass, closest, hasClass, removeClass, outerWidth, isDetached } from
11
11
  import { arrayEach } from "../../helpers/array.mjs";
12
12
  import { rangeEach } from "../../helpers/number.mjs";
13
13
  import { PhysicalIndexToValueMap as IndexToValueMap } from "../../translations/index.mjs";
14
- import { ViewportRowsCalculator } from "../../3rdparty/walkontable/src/index.mjs"; // Developer note! Whenever you make a change in this file, make an analogous change in manualColumnResize.js
14
+ import { DEFAULT_ROW_HEIGHT } from "../../3rdparty/walkontable/src/index.mjs"; // Developer note! Whenever you make a change in this file, make an analogous change in manualColumnResize.js
15
15
  export const PLUGIN_KEY = 'manualRowResize';
16
16
  export const PLUGIN_PRIORITY = 30;
17
17
  const PERSISTENT_STATE_KEY = 'manualRowHeights';
@@ -222,7 +222,7 @@ export class ManualRowResize extends BasePlugin {
222
222
  */
223
223
  setManualSize(row, height) {
224
224
  const physicalRow = this.hot.toPhysicalRow(row);
225
- const newHeight = Math.max(height, ViewportRowsCalculator.DEFAULT_HEIGHT);
225
+ const newHeight = Math.max(height, DEFAULT_ROW_HEIGHT);
226
226
  _classPrivateFieldGet(_rowHeightsMap, this).setValueAtIndex(physicalRow, newHeight);
227
227
  return newHeight;
228
228
  }
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- /**
5
- * Render type calculation calculates how many DOM nodes should be created and where placed
6
- * based on `startRow` and `endRow` properties.
7
- *
8
- * @type {number}
9
- */
10
- const RENDER_TYPE = exports.RENDER_TYPE = 1;
11
- /**
12
- * Fully visible type calculation calculates rows that are fully visible in the viewport.
13
- * This type of calculation is used in scrolling by arrow keys navigation.
14
- *
15
- * @type {number}
16
- */
17
- const FULLY_VISIBLE_TYPE = exports.FULLY_VISIBLE_TYPE = 2;
18
- /**
19
- * Partially visible type calculation calculates rows that are fully and partially visible in
20
- * the viewport. This type of calculation is used to check `endRow` (or `startRow`) with properties
21
- * calculated in render calculator. If checking met the criteria slow render is
22
- * performed (which render calculator with new data).
23
- *
24
- * @type {number}
25
- */
26
- const PARTIALLY_VISIBLE_TYPE = exports.PARTIALLY_VISIBLE_TYPE = 3;
@@ -1,23 +0,0 @@
1
- /**
2
- * Render type calculation calculates how many DOM nodes should be created and where placed
3
- * based on `startRow` and `endRow` properties.
4
- *
5
- * @type {number}
6
- */
7
- export const RENDER_TYPE = 1;
8
- /**
9
- * Fully visible type calculation calculates rows that are fully visible in the viewport.
10
- * This type of calculation is used in scrolling by arrow keys navigation.
11
- *
12
- * @type {number}
13
- */
14
- export const FULLY_VISIBLE_TYPE = 2;
15
- /**
16
- * Partially visible type calculation calculates rows that are fully and partially visible in
17
- * the viewport. This type of calculation is used to check `endRow` (or `startRow`) with properties
18
- * calculated in render calculator. If checking met the criteria slow render is
19
- * performed (which render calculator with new data).
20
- *
21
- * @type {number}
22
- */
23
- export const PARTIALLY_VISIBLE_TYPE = 3;