@danielgindi/selectbox 1.0.43 → 1.0.47
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 +1593 -1250
- 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 +8 -8
- 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 +1593 -1250
- 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 -5
- package/lib/SelectBox.js +2 -2
- package/package.json +11 -11
- package/vue/SelectBox.vue +1 -1
package/dist/lib.es6.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/selectbox 1.0.
|
|
2
|
+
* @danielgindi/selectbox 1.0.47
|
|
3
3
|
* git://github.com/danielgindi/selectbox.git
|
|
4
4
|
*/
|
|
5
5
|
import { createElement, closestUntil, setElementAttrs, next, prev } from '@danielgindi/dom-utils/lib/Dom';
|
|
@@ -164,7 +164,7 @@ class DropList {
|
|
|
164
164
|
let classes = [p.baseClassName];
|
|
165
165
|
|
|
166
166
|
if (p.additionalClasses) {
|
|
167
|
-
classes = classes.concat(p.additionalClasses);
|
|
167
|
+
classes = classes.concat((p.additionalClasses + '').split(' ').filter(x => x));
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
const initialCss = {
|
|
@@ -1909,8 +1909,8 @@ class DropList {
|
|
|
1909
1909
|
this._trigger('check', {
|
|
1910
1910
|
value: next.value,
|
|
1911
1911
|
item: next[ItemSymbol$1] ?? next,
|
|
1912
|
-
checked:
|
|
1913
|
-
isGroup:
|
|
1912
|
+
checked: next._checked,
|
|
1913
|
+
isGroup: next._group,
|
|
1914
1914
|
isCheckingGroup: true,
|
|
1915
1915
|
});
|
|
1916
1916
|
}
|
|
@@ -1981,8 +1981,8 @@ class DropList {
|
|
|
1981
1981
|
this._trigger('check', {
|
|
1982
1982
|
value: groupItem.value,
|
|
1983
1983
|
item: groupItem[ItemSymbol$1] ?? groupItem,
|
|
1984
|
-
checked:
|
|
1985
|
-
isGroup:
|
|
1984
|
+
checked: groupItem._checked,
|
|
1985
|
+
isGroup: groupItem._group,
|
|
1986
1986
|
isCheckingGroup: false,
|
|
1987
1987
|
});
|
|
1988
1988
|
}
|
|
@@ -2222,7 +2222,7 @@ const inputBackbufferCssProps = [
|
|
|
2222
2222
|
* @property {boolean} [hasOpenIndicator=true] has open/close indicator?
|
|
2223
2223
|
* @property {string} [placeholder=''] Placeholder text
|
|
2224
2224
|
* @property {boolean} [sortSelectedItems=true] Should the selected items be sorted?
|
|
2225
|
-
* @property {boolean} [sortListItems=
|
|
2225
|
+
* @property {boolean} [sortListItems=false] Sort list items
|
|
2226
2226
|
* @property {boolean} [sortListCheckedFirst=true] When sorting - put checked items first (applicable to `multi` mode only)
|
|
2227
2227
|
* @property {*[]} [stickyValues]
|
|
2228
2228
|
* @property {function(a: DropList.ItemBase, b: DropList.ItemBase):number} [sortItemComparator]
|
|
@@ -2264,7 +2264,7 @@ const defaultOptions = {
|
|
|
2264
2264
|
hasOpenIndicator: true,
|
|
2265
2265
|
placeholder: '',
|
|
2266
2266
|
sortSelectedItems: true,
|
|
2267
|
-
sortListItems:
|
|
2267
|
+
sortListItems: false,
|
|
2268
2268
|
sortListCheckedFirst: true,
|
|
2269
2269
|
stickyValues: null,
|
|
2270
2270
|
sortItemComparator: null,
|