handsontable 14.0.0-next-e8f87aa-20231030 → 14.0.0-next-5fd908e-20231030

Sign up to get free protection for your applications and to get access to all the features.
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-e8f87aa-20231030";
137
+ const hotVersion = "14.0.0-next-5fd908e-20231030";
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-e8f87aa-20231030";
127
+ const hotVersion = "14.0.0-next-5fd908e-20231030";
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-e8f87aa-20231030",
13
+ "version": "14.0.0-next-5fd908e-20231030",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
package/pluginHooks.js CHANGED
@@ -2619,7 +2619,7 @@ const REMOVED_HOOKS = new Map([['modifyRow', '8.0.0'], ['modifyCol', '8.0.0'], [
2619
2619
  * @type {Map<string, string>}
2620
2620
  */
2621
2621
  /* eslint-enable jsdoc/require-description-complete-sentence */
2622
- const DEPRECATED_HOOKS = new Map([['beforeRemoveCellClassNames', 'The hook "beforeRemoveCellClassNames" is deprecated and will be removed in the next major release.']]);
2622
+ const DEPRECATED_HOOKS = new Map([[]]);
2623
2623
  class Hooks {
2624
2624
  static getSingleton() {
2625
2625
  return getGlobalSingleton();
package/pluginHooks.mjs CHANGED
@@ -2617,7 +2617,7 @@ const REMOVED_HOOKS = new Map([['modifyRow', '8.0.0'], ['modifyCol', '8.0.0'], [
2617
2617
  * @type {Map<string, string>}
2618
2618
  */
2619
2619
  /* eslint-enable jsdoc/require-description-complete-sentence */
2620
- const DEPRECATED_HOOKS = new Map([['beforeRemoveCellClassNames', 'The hook "beforeRemoveCellClassNames" is deprecated and will be removed in the next major release.']]);
2620
+ const DEPRECATED_HOOKS = new Map([[]]);
2621
2621
  class Hooks {
2622
2622
  static getSingleton() {
2623
2623
  return getGlobalSingleton();
@@ -186,6 +186,9 @@ class MergeCells extends _base.BasePlugin {
186
186
  this.addHook('afterDrawSelection', function () {
187
187
  return _this.onAfterDrawSelection(...arguments);
188
188
  });
189
+ this.addHook('beforeRemoveCellClassNames', function () {
190
+ return _this.onBeforeRemoveCellClassNames(...arguments);
191
+ });
189
192
  this.addHook('beforeUndoStackChange', (action, source) => {
190
193
  if (source === 'MergeCells') {
191
194
  return false;
@@ -1197,5 +1200,16 @@ class MergeCells extends _base.BasePlugin {
1197
1200
  }
1198
1201
  return this.selectionCalculations.getSelectedMergedCellClassName(currentRow, currentColumn, cornersOfSelection, layerLevel);
1199
1202
  }
1203
+
1204
+ /**
1205
+ * `beforeRemoveCellClassNames` hook callback. Used to remove additional class name from all cells in the table.
1206
+ *
1207
+ * @private
1208
+ * @returns {string[]} An `Array` of `String`s. Each of these strings will act like class names to be removed from
1209
+ * all the cells in the table.
1210
+ */
1211
+ onBeforeRemoveCellClassNames() {
1212
+ return this.selectionCalculations.getSelectedMergedCellClassNameToRemove();
1213
+ }
1200
1214
  }
1201
1215
  exports.MergeCells = MergeCells;
@@ -182,6 +182,9 @@ export class MergeCells extends BasePlugin {
182
182
  this.addHook('afterDrawSelection', function () {
183
183
  return _this.onAfterDrawSelection(...arguments);
184
184
  });
185
+ this.addHook('beforeRemoveCellClassNames', function () {
186
+ return _this.onBeforeRemoveCellClassNames(...arguments);
187
+ });
185
188
  this.addHook('beforeUndoStackChange', (action, source) => {
186
189
  if (source === 'MergeCells') {
187
190
  return false;
@@ -1193,4 +1196,15 @@ export class MergeCells extends BasePlugin {
1193
1196
  }
1194
1197
  return this.selectionCalculations.getSelectedMergedCellClassName(currentRow, currentColumn, cornersOfSelection, layerLevel);
1195
1198
  }
1199
+
1200
+ /**
1201
+ * `beforeRemoveCellClassNames` hook callback. Used to remove additional class name from all cells in the table.
1202
+ *
1203
+ * @private
1204
+ * @returns {string[]} An `Array` of `String`s. Each of these strings will act like class names to be removed from
1205
+ * all the cells in the table.
1206
+ */
1207
+ onBeforeRemoveCellClassNames() {
1208
+ return this.selectionCalculations.getSelectedMergedCellClassNameToRemove();
1209
+ }
1196
1210
  }