handsontable 0.0.0-next-7230ce6-20240605 → 0.0.0-next-70c065d-20240606

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/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 = "0.0.0-next-7230ce6-20240605";
137
+ const hotVersion = "0.0.0-next-70c065d-20240606";
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 = "0.0.0-next-7230ce6-20240605";
127
+ const hotVersion = "0.0.0-next-70c065d-20240606";
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": "0.0.0-next-7230ce6-20240605",
13
+ "version": "0.0.0-next-70c065d-20240606",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
@@ -174,27 +174,21 @@ class Transformation {
174
174
  const topStartCorner = cellRange.getTopStartCorner();
175
175
  const topEndCorner = cellRange.getTopEndCorner();
176
176
  const bottomEndCorner = cellRange.getBottomEndCorner();
177
- const restDelta = {
178
- row: coords.row - highlightRow,
179
- col: coords.col - highlightColumn
180
- };
181
- if (delta.col < 0) {
182
- if (toColumn >= highlightColumn && coords.col < highlightColumn) {
183
- coords.col = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topStartCorner.col, topEndCorner.col) + restDelta.col;
184
- }
185
- } else if (delta.col > 0) {
186
- if (toColumn <= highlightColumn && coords.col > highlightColumn) {
187
- coords.col = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topEndCorner.col, topStartCorner.col) + restDelta.col;
188
- }
177
+ if (delta.col < 0 && toColumn >= highlightColumn && coords.col < highlightColumn) {
178
+ const columnRestDelta = coords.col - highlightColumn;
179
+ coords.col = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topStartCorner.col, topEndCorner.col) + columnRestDelta;
180
+ } else if (delta.col > 0 && toColumn <= highlightColumn && coords.col > highlightColumn) {
181
+ const endColumnIndex = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topEndCorner.col, topStartCorner.col);
182
+ const columnRestDelta = Math.max(coords.col - endColumnIndex, 1);
183
+ coords.col = endColumnIndex + columnRestDelta;
189
184
  }
190
- if (delta.row < 0) {
191
- if (toRow >= highlightRow && coords.row < highlightRow) {
192
- coords.row = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, topStartCorner.row, bottomEndCorner.row) + restDelta.row;
193
- }
194
- } else if (delta.row > 0) {
195
- if (toRow <= highlightRow && coords.row > highlightRow) {
196
- coords.row = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, bottomEndCorner.row, topStartCorner.row) + restDelta.row;
197
- }
185
+ if (delta.row < 0 && toRow >= highlightRow && coords.row < highlightRow) {
186
+ const rowRestDelta = coords.row - highlightRow;
187
+ coords.row = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, topStartCorner.row, bottomEndCorner.row) + rowRestDelta;
188
+ } else if (delta.row > 0 && toRow <= highlightRow && coords.row > highlightRow) {
189
+ const bottomRowIndex = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, bottomEndCorner.row, topStartCorner.row);
190
+ const rowRestDelta = Math.max(coords.row - bottomRowIndex, 1);
191
+ coords.row = bottomRowIndex + rowRestDelta;
198
192
  }
199
193
  const {
200
194
  rowDir,
@@ -170,27 +170,21 @@ class Transformation {
170
170
  const topStartCorner = cellRange.getTopStartCorner();
171
171
  const topEndCorner = cellRange.getTopEndCorner();
172
172
  const bottomEndCorner = cellRange.getBottomEndCorner();
173
- const restDelta = {
174
- row: coords.row - highlightRow,
175
- col: coords.col - highlightColumn
176
- };
177
- if (delta.col < 0) {
178
- if (toColumn >= highlightColumn && coords.col < highlightColumn) {
179
- coords.col = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topStartCorner.col, topEndCorner.col) + restDelta.col;
180
- }
181
- } else if (delta.col > 0) {
182
- if (toColumn <= highlightColumn && coords.col > highlightColumn) {
183
- coords.col = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topEndCorner.col, topStartCorner.col) + restDelta.col;
184
- }
173
+ if (delta.col < 0 && toColumn >= highlightColumn && coords.col < highlightColumn) {
174
+ const columnRestDelta = coords.col - highlightColumn;
175
+ coords.col = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topStartCorner.col, topEndCorner.col) + columnRestDelta;
176
+ } else if (delta.col > 0 && toColumn <= highlightColumn && coords.col > highlightColumn) {
177
+ const endColumnIndex = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedColumn).call(this, topEndCorner.col, topStartCorner.col);
178
+ const columnRestDelta = Math.max(coords.col - endColumnIndex, 1);
179
+ coords.col = endColumnIndex + columnRestDelta;
185
180
  }
186
- if (delta.row < 0) {
187
- if (toRow >= highlightRow && coords.row < highlightRow) {
188
- coords.row = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, topStartCorner.row, bottomEndCorner.row) + restDelta.row;
189
- }
190
- } else if (delta.row > 0) {
191
- if (toRow <= highlightRow && coords.row > highlightRow) {
192
- coords.row = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, bottomEndCorner.row, topStartCorner.row) + restDelta.row;
193
- }
181
+ if (delta.row < 0 && toRow >= highlightRow && coords.row < highlightRow) {
182
+ const rowRestDelta = coords.row - highlightRow;
183
+ coords.row = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, topStartCorner.row, bottomEndCorner.row) + rowRestDelta;
184
+ } else if (delta.row > 0 && toRow <= highlightRow && coords.row > highlightRow) {
185
+ const bottomRowIndex = _assertClassBrand(_Transformation_brand, this, _findFirstNonHiddenZeroBasedRow).call(this, bottomEndCorner.row, topStartCorner.row);
186
+ const rowRestDelta = Math.max(coords.row - bottomRowIndex, 1);
187
+ coords.row = bottomRowIndex + rowRestDelta;
194
188
  }
195
189
  const {
196
190
  rowDir,