handsontable 0.0.0-next-3344a1b-20231030 → 0.0.0-next-f6b3dec-20231030
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/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +20 -6
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +5 -5
- package/dist/handsontable.js +20 -6
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +5 -5
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/pluginHooks.js +1 -1
- package/pluginHooks.mjs +1 -1
- package/plugins/mergeCells/mergeCells.js +14 -0
- package/plugins/mergeCells/mergeCells.mjs +14 -0
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-
|
137
|
+
const hotVersion = "0.0.0-next-f6b3dec-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 = "0.0.0-next-
|
127
|
+
const hotVersion = "0.0.0-next-f6b3dec-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": "0.0.0-next-
|
13
|
+
"version": "0.0.0-next-f6b3dec-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([[
|
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([[
|
2620
|
+
const DEPRECATED_HOOKS = new Map([[]]);
|
2621
2621
|
class Hooks {
|
2622
2622
|
static getSingleton() {
|
2623
2623
|
return getGlobalSingleton();
|
@@ -188,6 +188,9 @@ class MergeCells extends _base.BasePlugin {
|
|
188
188
|
this.addHook('afterDrawSelection', function () {
|
189
189
|
return _this.onAfterDrawSelection(...arguments);
|
190
190
|
});
|
191
|
+
this.addHook('beforeRemoveCellClassNames', function () {
|
192
|
+
return _this.onBeforeRemoveCellClassNames(...arguments);
|
193
|
+
});
|
191
194
|
this.addHook('beforeUndoStackChange', (action, source) => {
|
192
195
|
if (source === 'MergeCells') {
|
193
196
|
return false;
|
@@ -1199,5 +1202,16 @@ class MergeCells extends _base.BasePlugin {
|
|
1199
1202
|
}
|
1200
1203
|
return this.selectionCalculations.getSelectedMergedCellClassName(currentRow, currentColumn, cornersOfSelection, layerLevel);
|
1201
1204
|
}
|
1205
|
+
|
1206
|
+
/**
|
1207
|
+
* `beforeRemoveCellClassNames` hook callback. Used to remove additional class name from all cells in the table.
|
1208
|
+
*
|
1209
|
+
* @private
|
1210
|
+
* @returns {string[]} An `Array` of `String`s. Each of these strings will act like class names to be removed from
|
1211
|
+
* all the cells in the table.
|
1212
|
+
*/
|
1213
|
+
onBeforeRemoveCellClassNames() {
|
1214
|
+
return this.selectionCalculations.getSelectedMergedCellClassNameToRemove();
|
1215
|
+
}
|
1202
1216
|
}
|
1203
1217
|
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
|
}
|