handsontable 0.0.0-next-ae2e00f-20231213 → 0.0.0-next-1bead53-20231215

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-ae2e00f-20231213";
137
+ const hotVersion = "0.0.0-next-1bead53-20231215";
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-ae2e00f-20231213";
127
+ const hotVersion = "0.0.0-next-1bead53-20231215";
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-ae2e00f-20231213",
13
+ "version": "0.0.0-next-1bead53-20231215",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
@@ -467,7 +467,12 @@ class ManualColumnResize extends _base.BasePlugin {
467
467
  * @returns {boolean}
468
468
  */
469
469
  checkIfColumnHeader(element) {
470
- return !!(0, _element.closest)(element, ['THEAD'], this.hot.rootElement);
470
+ const thead = (0, _element.closest)(element, ['THEAD'], this.hot.rootElement);
471
+ const {
472
+ topOverlay,
473
+ topInlineStartCornerOverlay
474
+ } = this.hot.view._wt.wtOverlays;
475
+ return [topOverlay.clone.wtTable.THEAD, topInlineStartCornerOverlay.clone.wtTable.THEAD].includes(thead);
471
476
  }
472
477
 
473
478
  /**
@@ -462,7 +462,12 @@ export class ManualColumnResize extends BasePlugin {
462
462
  * @returns {boolean}
463
463
  */
464
464
  checkIfColumnHeader(element) {
465
- return !!closest(element, ['THEAD'], this.hot.rootElement);
465
+ const thead = closest(element, ['THEAD'], this.hot.rootElement);
466
+ const {
467
+ topOverlay,
468
+ topInlineStartCornerOverlay
469
+ } = this.hot.view._wt.wtOverlays;
470
+ return [topOverlay.clone.wtTable.THEAD, topInlineStartCornerOverlay.clone.wtTable.THEAD].includes(thead);
466
471
  }
467
472
 
468
473
  /**
@@ -446,9 +446,13 @@ class ManualRowResize extends _base.BasePlugin {
446
446
  * @returns {boolean}
447
447
  */
448
448
  checkIfRowHeader(element) {
449
- var _element$parentNode;
450
- const thElement = (0, _element.closest)(element, ['TH'], this.hot.rootElement);
451
- return thElement && ((_element$parentNode = element.parentNode) === null || _element$parentNode === void 0 || (_element$parentNode = _element$parentNode.parentNode) === null || _element$parentNode === void 0 ? void 0 : _element$parentNode.tagName) === 'TBODY';
449
+ const tbody = (0, _element.closest)(element, ['TBODY'], this.hot.rootElement);
450
+ const {
451
+ inlineStartOverlay,
452
+ topInlineStartCornerOverlay,
453
+ bottomInlineStartCornerOverlay
454
+ } = this.hot.view._wt.wtOverlays;
455
+ return [inlineStartOverlay.clone.wtTable.TBODY, topInlineStartCornerOverlay.clone.wtTable.TBODY, bottomInlineStartCornerOverlay.clone.wtTable.TBODY].includes(tbody);
452
456
  }
453
457
 
454
458
  /**
@@ -441,9 +441,13 @@ export class ManualRowResize extends BasePlugin {
441
441
  * @returns {boolean}
442
442
  */
443
443
  checkIfRowHeader(element) {
444
- var _element$parentNode;
445
- const thElement = closest(element, ['TH'], this.hot.rootElement);
446
- return thElement && ((_element$parentNode = element.parentNode) === null || _element$parentNode === void 0 || (_element$parentNode = _element$parentNode.parentNode) === null || _element$parentNode === void 0 ? void 0 : _element$parentNode.tagName) === 'TBODY';
444
+ const tbody = closest(element, ['TBODY'], this.hot.rootElement);
445
+ const {
446
+ inlineStartOverlay,
447
+ topInlineStartCornerOverlay,
448
+ bottomInlineStartCornerOverlay
449
+ } = this.hot.view._wt.wtOverlays;
450
+ return [inlineStartOverlay.clone.wtTable.TBODY, topInlineStartCornerOverlay.clone.wtTable.TBODY, bottomInlineStartCornerOverlay.clone.wtTable.TBODY].includes(tbody);
447
451
  }
448
452
 
449
453
  /**