handsontable 0.0.0-next-5a7a384-20240528 → 0.0.0-next-df87bb0-20240604

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-5a7a384-20240528";
137
+ const hotVersion = "0.0.0-next-df87bb0-20240604";
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-5a7a384-20240528";
127
+ const hotVersion = "0.0.0-next-df87bb0-20240604";
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-5a7a384-20240528",
13
+ "version": "0.0.0-next-df87bb0-20240604",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
@@ -250,13 +250,7 @@ class MultipleSelectUI extends _base.BaseUI {
250
250
  beforeOnCellMouseUp: () => {
251
251
  _classPrivateFieldGet(_itemsBox, this).listen();
252
252
  },
253
- modifyColWidth: width => {
254
- const minWidth = _classPrivateFieldGet(_itemsBox, this).container.scrollWidth - (0, _element.getScrollbarWidth)(rootDocument);
255
- if (width !== undefined && width < minWidth) {
256
- return minWidth;
257
- }
258
- return width;
259
- },
253
+ colWidths: () => _classPrivateFieldGet(_itemsBox, this).container.scrollWidth - (0, _element.getScrollbarWidth)(rootDocument),
260
254
  maxCols: 1,
261
255
  autoWrapCol: true,
262
256
  height: 110,
@@ -245,13 +245,7 @@ export class MultipleSelectUI extends BaseUI {
245
245
  beforeOnCellMouseUp: () => {
246
246
  _classPrivateFieldGet(_itemsBox, this).listen();
247
247
  },
248
- modifyColWidth: width => {
249
- const minWidth = _classPrivateFieldGet(_itemsBox, this).container.scrollWidth - getScrollbarWidth(rootDocument);
250
- if (width !== undefined && width < minWidth) {
251
- return minWidth;
252
- }
253
- return width;
254
- },
248
+ colWidths: () => _classPrivateFieldGet(_itemsBox, this).container.scrollWidth - getScrollbarWidth(rootDocument),
255
249
  maxCols: 1,
256
250
  autoWrapCol: true,
257
251
  height: 110,
@@ -148,6 +148,10 @@ function checkboxRenderer(hotInstance, TD, row, col, prop, value, cellProperties
148
148
  callback: () => {
149
149
  changeSelectedCheckboxesState();
150
150
  return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
151
+ },
152
+ runOnlyIf: () => {
153
+ var _hotInstance$getSelec;
154
+ return (_hotInstance$getSelec = hotInstance.getSelectedRangeLast()) === null || _hotInstance$getSelec === void 0 ? void 0 : _hotInstance$getSelec.highlight.isCell();
151
155
  }
152
156
  }, {
153
157
  keys: [['enter']],
@@ -156,14 +160,18 @@ function checkboxRenderer(hotInstance, TD, row, col, prop, value, cellProperties
156
160
  return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
157
161
  },
158
162
  runOnlyIf: () => {
159
- var _hotInstance$getSelec;
160
- return hotInstance.getSettings().enterBeginsEditing && ((_hotInstance$getSelec = hotInstance.getSelectedRangeLast()) === null || _hotInstance$getSelec === void 0 ? void 0 : _hotInstance$getSelec.isSingle());
163
+ const range = hotInstance.getSelectedRangeLast();
164
+ return hotInstance.getSettings().enterBeginsEditing && (range === null || range === void 0 ? void 0 : range.isSingle()) && range.highlight.isCell();
161
165
  }
162
166
  }, {
163
167
  keys: [['delete'], ['backspace']],
164
168
  callback: () => {
165
169
  changeSelectedCheckboxesState(true);
166
170
  return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
171
+ },
172
+ runOnlyIf: () => {
173
+ var _hotInstance$getSelec2;
174
+ return (_hotInstance$getSelec2 = hotInstance.getSelectedRangeLast()) === null || _hotInstance$getSelec2 === void 0 ? void 0 : _hotInstance$getSelec2.highlight.isCell();
167
175
  }
168
176
  }], config);
169
177
  }
@@ -143,6 +143,10 @@ export function checkboxRenderer(hotInstance, TD, row, col, prop, value, cellPro
143
143
  callback: () => {
144
144
  changeSelectedCheckboxesState();
145
145
  return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
146
+ },
147
+ runOnlyIf: () => {
148
+ var _hotInstance$getSelec;
149
+ return (_hotInstance$getSelec = hotInstance.getSelectedRangeLast()) === null || _hotInstance$getSelec === void 0 ? void 0 : _hotInstance$getSelec.highlight.isCell();
146
150
  }
147
151
  }, {
148
152
  keys: [['enter']],
@@ -151,14 +155,18 @@ export function checkboxRenderer(hotInstance, TD, row, col, prop, value, cellPro
151
155
  return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
152
156
  },
153
157
  runOnlyIf: () => {
154
- var _hotInstance$getSelec;
155
- return hotInstance.getSettings().enterBeginsEditing && ((_hotInstance$getSelec = hotInstance.getSelectedRangeLast()) === null || _hotInstance$getSelec === void 0 ? void 0 : _hotInstance$getSelec.isSingle());
158
+ const range = hotInstance.getSelectedRangeLast();
159
+ return hotInstance.getSettings().enterBeginsEditing && (range === null || range === void 0 ? void 0 : range.isSingle()) && range.highlight.isCell();
156
160
  }
157
161
  }, {
158
162
  keys: [['delete'], ['backspace']],
159
163
  callback: () => {
160
164
  changeSelectedCheckboxesState(true);
161
165
  return !areSelectedCheckboxCells(); // False blocks next action associated with the keyboard shortcut.
166
+ },
167
+ runOnlyIf: () => {
168
+ var _hotInstance$getSelec2;
169
+ return (_hotInstance$getSelec2 = hotInstance.getSelectedRangeLast()) === null || _hotInstance$getSelec2 === void 0 ? void 0 : _hotInstance$getSelec2.highlight.isCell();
162
170
  }
163
171
  }], config);
164
172
  }