@danielgindi/selectbox 2.0.14 → 2.0.16
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 +2 -37
- 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 +2 -37
- 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 +2 -37
- 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/SelectBox.js +1 -36
- package/package.json +1 -1
- package/vue/SelectBox.vue +15 -4
package/dist/lib.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/selectbox 2.0.
|
|
2
|
+
* @danielgindi/selectbox 2.0.16
|
|
3
3
|
* git://github.com/danielgindi/selectbox.git
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -9908,8 +9908,6 @@ const inputBackbufferCssProps = [
|
|
|
9908
9908
|
* @property {function(item: DropList.ItemBase, itemEl: Element)} [unrenderMultiItem]
|
|
9909
9909
|
* @property {function(item: DropList.ItemBase, itemEl: Element):(*|false)} [renderRestMultiItem]
|
|
9910
9910
|
* @property {function(item: DropList.ItemBase, itemEl: Element)} [unrenderRestMultiItem]
|
|
9911
|
-
* @property {function(item: DropList.ItemBase, itemEl: Element):(*|false)} [renderNoResultsItem]
|
|
9912
|
-
* @property {function(item: DropList.ItemBase, itemEl: Element)} [unrenderNoResultsItem]
|
|
9913
9911
|
* @property {boolean} [searchable=false] is it searchable?
|
|
9914
9912
|
* @property {string} [noResultsText='No matching results'] text for no results (empty for none)
|
|
9915
9913
|
* @property {boolean} [autoSelectTextOnCheck=true] automatically select text in input when an item is checked (multi mode). Used to allow the user to quickly type multiple items.
|
|
@@ -10054,8 +10052,7 @@ class SelectBox {
|
|
|
10054
10052
|
unrenderMultiItem: o.unrenderMultiItem,
|
|
10055
10053
|
renderRestMultiItem: o.renderRestMultiItem,
|
|
10056
10054
|
unrenderRestMultiItem: o.unrenderRestMultiItem,
|
|
10057
|
-
|
|
10058
|
-
unrenderNoResultsItem: o.unrenderNoResultsItem,
|
|
10055
|
+
|
|
10059
10056
|
on: o.on || null,
|
|
10060
10057
|
silenceEvents: true,
|
|
10061
10058
|
mitt: mitt(),
|
|
@@ -10916,18 +10913,6 @@ class SelectBox {
|
|
|
10916
10913
|
return this;
|
|
10917
10914
|
}
|
|
10918
10915
|
|
|
10919
|
-
/**
|
|
10920
|
-
* @param {(function(item: DropList.ItemBase, itemEl: Element):(*|false))|null} render
|
|
10921
|
-
* @param {(function(item: DropList.ItemBase, itemEl: Element))|null} unrender
|
|
10922
|
-
* @returns {SelectBox}
|
|
10923
|
-
*/
|
|
10924
|
-
setRenderNoResultsItem(render, unrender) {
|
|
10925
|
-
const p = this._p;
|
|
10926
|
-
p.renderNoResultsItem = render;
|
|
10927
|
-
p.unrenderNoResultsItem = unrender;
|
|
10928
|
-
return this;
|
|
10929
|
-
}
|
|
10930
|
-
|
|
10931
10916
|
/**
|
|
10932
10917
|
* @param {string} prop
|
|
10933
10918
|
* @returns {SelectBox}
|
|
@@ -11623,31 +11608,11 @@ class SelectBox {
|
|
|
11623
11608
|
p.resortBySelectionNeeded = true;
|
|
11624
11609
|
}
|
|
11625
11610
|
|
|
11626
|
-
const renderNoResultsItem = p.renderNoResultsItem;
|
|
11627
|
-
const unrenderNoResultsItem = p.unrenderNoResultsItem;
|
|
11628
|
-
const customRenderItem = (p.listOptions || {}).renderItem;
|
|
11629
|
-
const customUnrenderItem = (p.listOptions || {}).unrenderItem;
|
|
11630
|
-
|
|
11631
|
-
const renderItem = renderNoResultsItem || customRenderItem ? (item, itemEl) => {
|
|
11632
|
-
if (customRenderItem)
|
|
11633
|
-
return customRenderItem(item, itemEl);
|
|
11634
|
-
return false;
|
|
11635
|
-
} : null;
|
|
11636
|
-
|
|
11637
|
-
const unrenderItem = unrenderNoResultsItem || customRenderItem ? (item, itemEl) => {
|
|
11638
|
-
if (customUnrenderItem)
|
|
11639
|
-
return customUnrenderItem(item, itemEl);
|
|
11640
|
-
return false;
|
|
11641
|
-
} : null;
|
|
11642
|
-
|
|
11643
11611
|
const dropList = p.dropList = new DropList(_objectSpread2(_objectSpread2({
|
|
11644
11612
|
virtualMinItems: 10 },
|
|
11645
11613
|
|
|
11646
11614
|
p.listOptions), {}, {
|
|
11647
11615
|
|
|
11648
|
-
renderItem: renderItem,
|
|
11649
|
-
unrenderItem: unrenderItem,
|
|
11650
|
-
|
|
11651
11616
|
multi: p.multi,
|
|
11652
11617
|
capturesFocus: false,
|
|
11653
11618
|
|