handsontable 14.0.0-next-549c902-20231121 → 14.0.0-next-104f8c6-20231124

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.
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.0.0-next-549c902-20231121";
137
+ const hotVersion = "14.0.0-next-104f8c6-20231124";
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.0.0-next-549c902-20231121";
127
+ const hotVersion = "14.0.0-next-104f8c6-20231124";
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.0.0-next-549c902-20231121",
13
+ "version": "14.0.0-next-104f8c6-20231124",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
@@ -723,7 +723,7 @@ class ColumnSorting extends _base.BasePlugin {
723
723
  wasClickableHeaderClicked(event, column) {
724
724
  const pluginSettingsForColumn = this.getFirstCellSettings(column)[this.pluginKey];
725
725
  const headerActionEnabled = pluginSettingsForColumn.headerAction;
726
- return headerActionEnabled && event.target.nodeName === 'SPAN';
726
+ return headerActionEnabled && ((0, _element.hasClass)(event.target, _utils.HEADER_SPAN_CLASS) || (0, _element.hasClass)(event.target, SORTING_INDICATOR_CLASS));
727
727
  }
728
728
  /**
729
729
  * Callback for the `onAfterOnCellMouseDown` hook.
@@ -6,7 +6,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
7
7
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
8
  function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
9
- import { addClass, appendElement, removeClass, setAttribute } from "../../helpers/dom/element.mjs";
9
+ import { addClass, appendElement, hasClass, removeClass, setAttribute } from "../../helpers/dom/element.mjs";
10
10
  import { isUndefined, isDefined } from "../../helpers/mixed.mjs";
11
11
  import { isObject } from "../../helpers/object.mjs";
12
12
  import { isFunction } from "../../helpers/function.mjs";
@@ -15,7 +15,7 @@ import { BasePlugin } from "../base/index.mjs";
15
15
  import { IndexesSequence, PhysicalIndexToValueMap as IndexToValueMap } from "../../translations/index.mjs";
16
16
  import Hooks from "../../pluginHooks.mjs";
17
17
  import { ColumnStatesManager } from "./columnStatesManager.mjs";
18
- import { getNextSortOrder, areValidSortStates, getHeaderSpanElement, isFirstLevelColumnHeader, wasHeaderClickedProperly } from "./utils.mjs";
18
+ import { HEADER_SPAN_CLASS, getNextSortOrder, areValidSortStates, getHeaderSpanElement, isFirstLevelColumnHeader, wasHeaderClickedProperly } from "./utils.mjs";
19
19
  import { getClassesToRemove, getClassesToAdd } from "./domHelpers.mjs";
20
20
  import { rootComparator } from "./rootComparator.mjs";
21
21
  import { registerRootComparator, sort } from "./sortService/index.mjs";
@@ -719,7 +719,7 @@ export class ColumnSorting extends BasePlugin {
719
719
  wasClickableHeaderClicked(event, column) {
720
720
  const pluginSettingsForColumn = this.getFirstCellSettings(column)[this.pluginKey];
721
721
  const headerActionEnabled = pluginSettingsForColumn.headerAction;
722
- return headerActionEnabled && event.target.nodeName === 'SPAN';
722
+ return headerActionEnabled && (hasClass(event.target, HEADER_SPAN_CLASS) || hasClass(event.target, SORTING_INDICATOR_CLASS));
723
723
  }
724
724
  /**
725
725
  * Callback for the `onAfterOnCellMouseDown` hook.
@@ -440,6 +440,7 @@ class NestedRows extends _base.BasePlugin {
440
440
  /**
441
441
  * The modifyRowData hook callback.
442
442
  *
443
+ * @private
443
444
  * @param {number} row Visual row index.
444
445
  * @returns {boolean}
445
446
  */
@@ -453,6 +454,7 @@ class NestedRows extends _base.BasePlugin {
453
454
  /**
454
455
  * Modify the source data length to match the length of the nested structure.
455
456
  *
457
+ * @private
456
458
  * @returns {number}
457
459
  */
458
460
  onModifySourceLength() {
@@ -463,6 +465,7 @@ class NestedRows extends _base.BasePlugin {
463
465
  }
464
466
 
465
467
  /**
468
+ * @private
466
469
  * @param {number} index The index where the data was spliced.
467
470
  * @param {number} amount An amount of items to remove.
468
471
  * @param {object} element An element to add.
@@ -436,6 +436,7 @@ export class NestedRows extends BasePlugin {
436
436
  /**
437
437
  * The modifyRowData hook callback.
438
438
  *
439
+ * @private
439
440
  * @param {number} row Visual row index.
440
441
  * @returns {boolean}
441
442
  */
@@ -449,6 +450,7 @@ export class NestedRows extends BasePlugin {
449
450
  /**
450
451
  * Modify the source data length to match the length of the nested structure.
451
452
  *
453
+ * @private
452
454
  * @returns {number}
453
455
  */
454
456
  onModifySourceLength() {
@@ -459,6 +461,7 @@ export class NestedRows extends BasePlugin {
459
461
  }
460
462
 
461
463
  /**
464
+ * @private
462
465
  * @param {number} index The index where the data was spliced.
463
466
  * @param {number} amount An amount of items to remove.
464
467
  * @param {object} element An element to add.