handsontable 0.0.0-next-3c2766c-20240422 → 0.0.0-next-499b821-20240423

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/focusManager.js CHANGED
@@ -274,9 +274,7 @@ function _focusEditorElement() {
274
274
  * @param {object} newSettings The new settings passed to the `updateSettings` method.
275
275
  */
276
276
  function _onUpdateSettings(newSettings) {
277
- if (newSettings.imeFastEdit && this.getFocusMode() !== FOCUS_MODES.MIXED) {
278
- this.setFocusMode(FOCUS_MODES.MIXED);
279
- } else if (!newSettings.imeFastEdit && this.getFocusMode() !== FOCUS_MODES.CELL) {
280
- this.setFocusMode(FOCUS_MODES.CELL);
277
+ if (typeof newSettings.imeFastEdit === 'boolean') {
278
+ this.setFocusMode(newSettings.imeFastEdit ? FOCUS_MODES.MIXED : FOCUS_MODES.CELL);
281
279
  }
282
280
  }
package/focusManager.mjs CHANGED
@@ -270,9 +270,7 @@ function _focusEditorElement() {
270
270
  * @param {object} newSettings The new settings passed to the `updateSettings` method.
271
271
  */
272
272
  function _onUpdateSettings(newSettings) {
273
- if (newSettings.imeFastEdit && this.getFocusMode() !== FOCUS_MODES.MIXED) {
274
- this.setFocusMode(FOCUS_MODES.MIXED);
275
- } else if (!newSettings.imeFastEdit && this.getFocusMode() !== FOCUS_MODES.CELL) {
276
- this.setFocusMode(FOCUS_MODES.CELL);
273
+ if (typeof newSettings.imeFastEdit === 'boolean') {
274
+ this.setFocusMode(newSettings.imeFastEdit ? FOCUS_MODES.MIXED : FOCUS_MODES.CELL);
277
275
  }
278
276
  }
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-3c2766c-20240422";
137
+ const hotVersion = "0.0.0-next-499b821-20240423";
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-3c2766c-20240422";
127
+ const hotVersion = "0.0.0-next-499b821-20240423";
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-3c2766c-20240422",
13
+ "version": "0.0.0-next-499b821-20240423",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
@@ -22,7 +22,6 @@ function addEditCommentItem(plugin) {
22
22
  },
23
23
  callback() {
24
24
  const range = this.getSelectedRangeLast();
25
- this.deselectCell();
26
25
  plugin.setRange(range);
27
26
  plugin.show();
28
27
  plugin.focusEditor();
@@ -16,7 +16,6 @@ export default function addEditCommentItem(plugin) {
16
16
  },
17
17
  callback() {
18
18
  const range = this.getSelectedRangeLast();
19
- this.deselectCell();
20
19
  plugin.setRange(range);
21
20
  plugin.show();
22
21
  plugin.focusEditor();
@@ -250,12 +250,17 @@ 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
260
  hiddenRows: true,
254
261
  maxCols: 1,
255
262
  autoWrapCol: true,
256
263
  height: 110,
257
- // Workaround for #151.
258
- colWidths: () => _classPrivateFieldGet(_itemsBox, this).container.scrollWidth - (0, _element.getScrollbarWidth)(rootDocument),
259
264
  copyPaste: false,
260
265
  disableVisualSelection: 'area',
261
266
  fillHandle: false,
@@ -245,12 +245,17 @@ 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
255
  hiddenRows: true,
249
256
  maxCols: 1,
250
257
  autoWrapCol: true,
251
258
  height: 110,
252
- // Workaround for #151.
253
- colWidths: () => _classPrivateFieldGet(_itemsBox, this).container.scrollWidth - getScrollbarWidth(rootDocument),
254
259
  copyPaste: false,
255
260
  disableVisualSelection: 'area',
256
261
  fillHandle: false,