handsontable 14.4.0-next-f62dd73-20240521 → 14.4.0-next-be40519-20240522
Sign up to get free protection for your applications and to get access to all the features.
- 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 +12 -16
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +4 -4
- package/dist/handsontable.js +12 -16
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +4 -4
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/filters/ui/multipleSelect.js +7 -11
- package/plugins/filters/ui/multipleSelect.mjs +7 -11
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-
|
137
|
+
const hotVersion = "14.4.0-next-be40519-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-
|
127
|
+
const hotVersion = "14.4.0-next-be40519-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-
|
13
|
+
"version": "14.4.0-next-be40519-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
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
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
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
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.
|