handsontable 0.0.0-next-7932225-20240619 → 0.0.0-next-0879a9d-20240620

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-7932225-20240619";
137
+ const hotVersion = "0.0.0-next-0879a9d-20240620";
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-7932225-20240619";
127
+ const hotVersion = "0.0.0-next-0879a9d-20240620";
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-7932225-20240619",
13
+ "version": "0.0.0-next-0879a9d-20240620",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
@@ -761,8 +761,8 @@ function _onBeforeAutofill(fillData, sourceRange, targetRange) {
761
761
  for (let populatedRowIndex = 0; populatedRowIndex < fillRangeData.length; populatedRowIndex += 1) {
762
762
  for (let populatedColumnIndex = 0; populatedColumnIndex < fillRangeData[populatedRowIndex].length; populatedColumnIndex += 1) {
763
763
  const populatedValue = fillRangeData[populatedRowIndex][populatedColumnIndex];
764
- const sourceRow = populatedRowIndex % populationRowLength;
765
- const sourceColumn = populatedColumnIndex % populationColumnLength;
764
+ const sourceRow = sourceStartRow + populatedRowIndex % populationRowLength;
765
+ const sourceColumn = sourceStartColumn + populatedColumnIndex % populationColumnLength;
766
766
  const sourceCellMeta = this.hot.getCellMeta(sourceRow, sourceColumn);
767
767
  if ((0, _utils.isDate)(populatedValue, sourceCellMeta.type)) {
768
768
  if (populatedValue.startsWith('\'')) {
@@ -756,8 +756,8 @@ function _onBeforeAutofill(fillData, sourceRange, targetRange) {
756
756
  for (let populatedRowIndex = 0; populatedRowIndex < fillRangeData.length; populatedRowIndex += 1) {
757
757
  for (let populatedColumnIndex = 0; populatedColumnIndex < fillRangeData[populatedRowIndex].length; populatedColumnIndex += 1) {
758
758
  const populatedValue = fillRangeData[populatedRowIndex][populatedColumnIndex];
759
- const sourceRow = populatedRowIndex % populationRowLength;
760
- const sourceColumn = populatedColumnIndex % populationColumnLength;
759
+ const sourceRow = sourceStartRow + populatedRowIndex % populationRowLength;
760
+ const sourceColumn = sourceStartColumn + populatedColumnIndex % populationColumnLength;
761
761
  const sourceCellMeta = this.hot.getCellMeta(sourceRow, sourceColumn);
762
762
  if (isDate(populatedValue, sourceCellMeta.type)) {
763
763
  if (populatedValue.startsWith('\'')) {
@@ -571,6 +571,8 @@ class Selection {
571
571
  x: this.tableProps.countRowHeaders(),
572
572
  y: this.tableProps.countColHeaders()
573
573
  });
574
+ } else {
575
+ _classPrivateFieldGet(_transformation, this).resetOffsetSize();
574
576
  }
575
577
  this.setRangeStart(_classPrivateFieldGet(_transformation, this).transformStart(rowDelta, colDelta, createMissingRecords));
576
578
  }
@@ -587,6 +589,8 @@ class Selection {
587
589
  x: this.tableProps.countRowHeaders(),
588
590
  y: this.tableProps.countColHeaders()
589
591
  });
592
+ } else {
593
+ _classPrivateFieldGet(_transformation, this).resetOffsetSize();
590
594
  }
591
595
  this.setRangeEnd(_classPrivateFieldGet(_transformation, this).transformEnd(rowDelta, colDelta));
592
596
  }
@@ -565,6 +565,8 @@ class Selection {
565
565
  x: this.tableProps.countRowHeaders(),
566
566
  y: this.tableProps.countColHeaders()
567
567
  });
568
+ } else {
569
+ _classPrivateFieldGet(_transformation, this).resetOffsetSize();
568
570
  }
569
571
  this.setRangeStart(_classPrivateFieldGet(_transformation, this).transformStart(rowDelta, colDelta, createMissingRecords));
570
572
  }
@@ -581,6 +583,8 @@ class Selection {
581
583
  x: this.tableProps.countRowHeaders(),
582
584
  y: this.tableProps.countColHeaders()
583
585
  });
586
+ } else {
587
+ _classPrivateFieldGet(_transformation, this).resetOffsetSize();
584
588
  }
585
589
  this.setRangeEnd(_classPrivateFieldGet(_transformation, this).transformEnd(rowDelta, colDelta));
586
590
  }
@@ -226,6 +226,16 @@ class Transformation {
226
226
  y
227
227
  });
228
228
  }
229
+
230
+ /**
231
+ * Resets the offset size to the default values.
232
+ */
233
+ resetOffsetSize() {
234
+ _classPrivateFieldSet(_offset, this, {
235
+ x: 0,
236
+ y: 0
237
+ });
238
+ }
229
239
  }
230
240
  function _clampCoords(zeroBasedCoords) {
231
241
  const {
@@ -222,6 +222,16 @@ class Transformation {
222
222
  y
223
223
  });
224
224
  }
225
+
226
+ /**
227
+ * Resets the offset size to the default values.
228
+ */
229
+ resetOffsetSize() {
230
+ _classPrivateFieldSet(_offset, this, {
231
+ x: 0,
232
+ y: 0
233
+ });
234
+ }
225
235
  }
226
236
  function _clampCoords(zeroBasedCoords) {
227
237
  const {