@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.umd.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
|
(function (global, factory) {
|
|
@@ -7757,6 +7757,11 @@
|
|
|
7757
7757
|
this._updateWidth();
|
|
7758
7758
|
}
|
|
7759
7759
|
|
|
7760
|
+
// Update estimated item heights after width is set
|
|
7761
|
+
if (p.virtualListHelper.isVirtual()) {
|
|
7762
|
+
p.virtualListHelper.render();
|
|
7763
|
+
}
|
|
7764
|
+
|
|
7760
7765
|
// How much space is there above, and how much below?
|
|
7761
7766
|
let roomAbove = targetBox.top - viewport.top;
|
|
7762
7767
|
let roomBelow = viewport.bottom - targetBox.bottom;
|
|
@@ -9997,6 +10002,7 @@
|
|
|
9997
10002
|
'search' {value}: input box value has changed
|
|
9998
10003
|
'search:focus': input box has gained focus
|
|
9999
10004
|
'search:blur': input box has lost focus
|
|
10005
|
+
'search:term': search term has been updated, before results were re-filtered
|
|
10000
10006
|
'input:resize': input box resized
|
|
10001
10007
|
'itemschanged' {term, mutated, count}: the current set of items has changed
|
|
10002
10008
|
*/
|
|
@@ -10511,6 +10517,7 @@
|
|
|
10511
10517
|
|
|
10512
10518
|
if (performSearch) {var _p$dropList2;
|
|
10513
10519
|
p.filterTerm = p.input.value.trim();
|
|
10520
|
+
this._trigger('search:term', p.filterTerm);
|
|
10514
10521
|
(_p$dropList2 = p.dropList) === null || _p$dropList2 === void 0 || _p$dropList2.setSearchTerm(p.filterTerm, performSearch);
|
|
10515
10522
|
}
|
|
10516
10523
|
|
|
@@ -12072,6 +12079,7 @@
|
|
|
12072
12079
|
if (p.disabled || p.readOnly) return;
|
|
12073
12080
|
|
|
12074
12081
|
p.filterTerm = p.input.value.trim();
|
|
12082
|
+
this._trigger('search:term', p.filterTerm);
|
|
12075
12083
|
(_p$dropList9 = p.dropList) === null || _p$dropList9 === void 0 || _p$dropList9.setSearchTerm(p.filterTerm, true);
|
|
12076
12084
|
}).
|
|
12077
12085
|
add(p.input, 'click.dropdown', () => {
|
|
@@ -12915,6 +12923,7 @@
|
|
|
12915
12923
|
p.input.value = value == null ? '' : String(value);
|
|
12916
12924
|
|
|
12917
12925
|
p.filterTerm = '';
|
|
12926
|
+
this._trigger('search:term', p.filterTerm);
|
|
12918
12927
|
(_p$dropList0 = p.dropList) === null || _p$dropList0 === void 0 || _p$dropList0.setSearchTerm('', true);
|
|
12919
12928
|
}
|
|
12920
12929
|
|