handsontable 14.4.0-next-0a79a1f-20240521 → 14.4.0-next-674f9d8-20240522

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.4.0-next-0a79a1f-20240521";
137
+ const hotVersion = "14.4.0-next-674f9d8-20240522";
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.4.0-next-0a79a1f-20240521";
127
+ const hotVersion = "14.4.0-next-674f9d8-20240522";
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.4.0-next-0a79a1f-20240521",
13
+ "version": "14.4.0-next-674f9d8-20240522",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",
@@ -257,7 +257,6 @@ class MultipleSelectUI extends _base.BaseUI {
257
257
  }
258
258
  return width;
259
259
  },
260
- hiddenRows: true,
261
260
  maxCols: 1,
262
261
  autoWrapCol: true,
263
262
  height: 110,
@@ -347,16 +346,13 @@ class MultipleSelectUI extends _base.BaseUI {
347
346
  exports.MultipleSelectUI = MultipleSelectUI;
348
347
  function _onInput(event) {
349
348
  const value = event.target.value.toLocaleLowerCase(this.getLocale());
350
- const hiddenRows = _classPrivateFieldGet(_itemsBox, this).getPlugin('hiddenRows');
351
- hiddenRows.showRows(hiddenRows.getHiddenRows());
352
- _classPrivateFieldGet(_items, this).forEach((item, index) => {
353
- item.checked = `${item.value}`.toLocaleLowerCase(this.getLocale()).indexOf(value) >= 0;
354
- if (!item.checked) {
355
- hiddenRows.hideRow(index);
356
- }
357
- });
358
- _classPrivateFieldGet(_itemsBox, this).view.adjustElementsSize();
359
- _classPrivateFieldGet(_itemsBox, this).render();
349
+ let filteredItems;
350
+ if (value === '') {
351
+ filteredItems = [..._classPrivateFieldGet(_items, this)];
352
+ } else {
353
+ filteredItems = _classPrivateFieldGet(_items, this).filter(item => `${item.value}`.toLocaleLowerCase(this.getLocale()).indexOf(value) >= 0);
354
+ }
355
+ _classPrivateFieldGet(_itemsBox, this).loadData(filteredItems);
360
356
  }
361
357
  /**
362
358
  * 'keydown' event listener for input element.
@@ -252,7 +252,6 @@ export class MultipleSelectUI extends BaseUI {
252
252
  }
253
253
  return width;
254
254
  },
255
- hiddenRows: true,
256
255
  maxCols: 1,
257
256
  autoWrapCol: true,
258
257
  height: 110,
@@ -341,16 +340,13 @@ export class MultipleSelectUI extends BaseUI {
341
340
  }
342
341
  function _onInput(event) {
343
342
  const value = event.target.value.toLocaleLowerCase(this.getLocale());
344
- const hiddenRows = _classPrivateFieldGet(_itemsBox, this).getPlugin('hiddenRows');
345
- hiddenRows.showRows(hiddenRows.getHiddenRows());
346
- _classPrivateFieldGet(_items, this).forEach((item, index) => {
347
- item.checked = `${item.value}`.toLocaleLowerCase(this.getLocale()).indexOf(value) >= 0;
348
- if (!item.checked) {
349
- hiddenRows.hideRow(index);
350
- }
351
- });
352
- _classPrivateFieldGet(_itemsBox, this).view.adjustElementsSize();
353
- _classPrivateFieldGet(_itemsBox, this).render();
343
+ let filteredItems;
344
+ if (value === '') {
345
+ filteredItems = [..._classPrivateFieldGet(_items, this)];
346
+ } else {
347
+ filteredItems = _classPrivateFieldGet(_items, this).filter(item => `${item.value}`.toLocaleLowerCase(this.getLocale()).indexOf(value) >= 0);
348
+ }
349
+ _classPrivateFieldGet(_itemsBox, this).loadData(filteredItems);
354
350
  }
355
351
  /**
356
352
  * 'keydown' event listener for input element.