handsontable 0.0.0-next-85c6dcb-20240226 → 0.0.0-next-94c1d9f-20240226

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/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-85c6dcb-20240226";
137
+ const hotVersion = "0.0.0-next-94c1d9f-20240226";
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-85c6dcb-20240226";
127
+ const hotVersion = "0.0.0-next-94c1d9f-20240226";
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-85c6dcb-20240226",
13
+ "version": "0.0.0-next-94c1d9f-20240226",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
@@ -7,6 +7,7 @@ var _base = require("../base");
7
7
  var _pluginHooks = _interopRequireDefault(require("../../pluginHooks"));
8
8
  var _element = require("../../helpers/dom/element");
9
9
  var _array = require("../../helpers/array");
10
+ var _mixed = require("../../helpers/mixed");
10
11
  var _utils = require("./utils");
11
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
13
  function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
@@ -392,13 +393,13 @@ class Autofill extends _base.BasePlugin {
392
393
  for (let rowIndex = cornersOfSelectedCells[2] + 1; rowIndex < nrOfTableRows; rowIndex++) {
393
394
  for (let columnIndex = cornersOfSelectedCells[1]; columnIndex <= cornersOfSelectedCells[3]; columnIndex++) {
394
395
  const dataInCell = data[rowIndex][columnIndex];
395
- if (dataInCell) {
396
+ if (!(0, _mixed.isEmpty)(dataInCell)) {
396
397
  return -1;
397
398
  }
398
399
  }
399
400
  const dataInNextLeftCell = data[rowIndex][cornersOfSelectedCells[1] - 1];
400
401
  const dataInNextRightCell = data[rowIndex][cornersOfSelectedCells[3] + 1];
401
- if (!!dataInNextLeftCell || !!dataInNextRightCell) {
402
+ if (!(0, _mixed.isEmpty)(dataInNextLeftCell) || !(0, _mixed.isEmpty)(dataInNextRightCell)) {
402
403
  lastFilledInRowIndex = rowIndex;
403
404
  }
404
405
  }
@@ -10,6 +10,7 @@ import { BasePlugin } from "../base/index.mjs";
10
10
  import Hooks from "../../pluginHooks.mjs";
11
11
  import { offset, outerHeight, outerWidth } from "../../helpers/dom/element.mjs";
12
12
  import { arrayEach, arrayMap } from "../../helpers/array.mjs";
13
+ import { isEmpty } from "../../helpers/mixed.mjs";
13
14
  import { getDragDirectionAndRange, DIRECTIONS, getMappedFillHandleSetting } from "./utils.mjs";
14
15
  Hooks.getSingleton().register('modifyAutofillRange');
15
16
  Hooks.getSingleton().register('beforeAutofill');
@@ -388,13 +389,13 @@ export class Autofill extends BasePlugin {
388
389
  for (let rowIndex = cornersOfSelectedCells[2] + 1; rowIndex < nrOfTableRows; rowIndex++) {
389
390
  for (let columnIndex = cornersOfSelectedCells[1]; columnIndex <= cornersOfSelectedCells[3]; columnIndex++) {
390
391
  const dataInCell = data[rowIndex][columnIndex];
391
- if (dataInCell) {
392
+ if (!isEmpty(dataInCell)) {
392
393
  return -1;
393
394
  }
394
395
  }
395
396
  const dataInNextLeftCell = data[rowIndex][cornersOfSelectedCells[1] - 1];
396
397
  const dataInNextRightCell = data[rowIndex][cornersOfSelectedCells[3] + 1];
397
- if (!!dataInNextLeftCell || !!dataInNextRightCell) {
398
+ if (!isEmpty(dataInNextLeftCell) || !isEmpty(dataInNextRightCell)) {
398
399
  lastFilledInRowIndex = rowIndex;
399
400
  }
400
401
  }