@danielgindi/selectbox 2.0.43 → 2.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.cjs.js +10 -1
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +2 -2
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +10 -1
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +2 -2
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +10 -1
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +2 -2
- package/dist/lib.umd.min.js.map +1 -1
- package/lib/DropList.js +5 -0
- package/lib/SelectBox.js +4 -0
- package/package.json +1 -1
- package/vue/SelectBox.vue +3 -0
package/dist/lib.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/selectbox 2.0.
|
|
2
|
+
* @danielgindi/selectbox 2.0.46
|
|
3
3
|
* git://github.com/danielgindi/selectbox.git
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -7761,6 +7761,11 @@ class DropList {
|
|
|
7761
7761
|
this._updateWidth();
|
|
7762
7762
|
}
|
|
7763
7763
|
|
|
7764
|
+
// Update estimated item heights after width is set
|
|
7765
|
+
if (p.virtualListHelper.isVirtual()) {
|
|
7766
|
+
p.virtualListHelper.render();
|
|
7767
|
+
}
|
|
7768
|
+
|
|
7764
7769
|
// How much space is there above, and how much below?
|
|
7765
7770
|
let roomAbove = targetBox.top - viewport.top;
|
|
7766
7771
|
let roomBelow = viewport.bottom - targetBox.bottom;
|
|
@@ -10001,6 +10006,7 @@ Emits the following events:
|
|
|
10001
10006
|
'search' {value}: input box value has changed
|
|
10002
10007
|
'search:focus': input box has gained focus
|
|
10003
10008
|
'search:blur': input box has lost focus
|
|
10009
|
+
'search:term': search term has been updated, before results were re-filtered
|
|
10004
10010
|
'input:resize': input box resized
|
|
10005
10011
|
'itemschanged' {term, mutated, count}: the current set of items has changed
|
|
10006
10012
|
*/
|
|
@@ -10515,6 +10521,7 @@ class SelectBox {
|
|
|
10515
10521
|
|
|
10516
10522
|
if (performSearch) {var _p$dropList2;
|
|
10517
10523
|
p.filterTerm = p.input.value.trim();
|
|
10524
|
+
this._trigger('search:term', p.filterTerm);
|
|
10518
10525
|
(_p$dropList2 = p.dropList) === null || _p$dropList2 === void 0 || _p$dropList2.setSearchTerm(p.filterTerm, performSearch);
|
|
10519
10526
|
}
|
|
10520
10527
|
|
|
@@ -12076,6 +12083,7 @@ class SelectBox {
|
|
|
12076
12083
|
if (p.disabled || p.readOnly) return;
|
|
12077
12084
|
|
|
12078
12085
|
p.filterTerm = p.input.value.trim();
|
|
12086
|
+
this._trigger('search:term', p.filterTerm);
|
|
12079
12087
|
(_p$dropList9 = p.dropList) === null || _p$dropList9 === void 0 || _p$dropList9.setSearchTerm(p.filterTerm, true);
|
|
12080
12088
|
}).
|
|
12081
12089
|
add(p.input, 'click.dropdown', () => {
|
|
@@ -12919,6 +12927,7 @@ class SelectBox {
|
|
|
12919
12927
|
p.input.value = value == null ? '' : String(value);
|
|
12920
12928
|
|
|
12921
12929
|
p.filterTerm = '';
|
|
12930
|
+
this._trigger('search:term', p.filterTerm);
|
|
12922
12931
|
(_p$dropList0 = p.dropList) === null || _p$dropList0 === void 0 || _p$dropList0.setSearchTerm('', true);
|
|
12923
12932
|
}
|
|
12924
12933
|
|