@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/lib/DropList.js CHANGED
@@ -181,7 +181,7 @@ class DropList {
181
181
  let classes = [p.baseClassName];
182
182
 
183
183
  if (p.additionalClasses) {
184
- classes = classes.concat(p.additionalClasses);
184
+ classes = classes.concat((p.additionalClasses + '').split(' ').filter(x => x));
185
185
  }
186
186
 
187
187
  const initialCss = {
@@ -1926,8 +1926,8 @@ class DropList {
1926
1926
  this._trigger('check', {
1927
1927
  value: next.value,
1928
1928
  item: next[ItemSymbol] ?? next,
1929
- checked: item._checked,
1930
- isGroup: item._group,
1929
+ checked: next._checked,
1930
+ isGroup: next._group,
1931
1931
  isCheckingGroup: true,
1932
1932
  });
1933
1933
  }
@@ -1998,8 +1998,8 @@ class DropList {
1998
1998
  this._trigger('check', {
1999
1999
  value: groupItem.value,
2000
2000
  item: groupItem[ItemSymbol] ?? groupItem,
2001
- checked: item._checked,
2002
- isGroup: item._group,
2001
+ checked: groupItem._checked,
2002
+ isGroup: groupItem._group,
2003
2003
  isCheckingGroup: false,
2004
2004
  });
2005
2005
  }
package/lib/SelectBox.js CHANGED
@@ -83,7 +83,7 @@ const inputBackbufferCssProps = [
83
83
  * @property {boolean} [hasOpenIndicator=true] has open/close indicator?
84
84
  * @property {string} [placeholder=''] Placeholder text
85
85
  * @property {boolean} [sortSelectedItems=true] Should the selected items be sorted?
86
- * @property {boolean} [sortListItems=true] Sort list items
86
+ * @property {boolean} [sortListItems=false] Sort list items
87
87
  * @property {boolean} [sortListCheckedFirst=true] When sorting - put checked items first (applicable to `multi` mode only)
88
88
  * @property {*[]} [stickyValues]
89
89
  * @property {function(a: DropList.ItemBase, b: DropList.ItemBase):number} [sortItemComparator]
@@ -125,7 +125,7 @@ const defaultOptions = {
125
125
  hasOpenIndicator: true,
126
126
  placeholder: '',
127
127
  sortSelectedItems: true,
128
- sortListItems: true,
128
+ sortListItems: false,
129
129
  sortListCheckedFirst: true,
130
130
  stickyValues: null,
131
131
  sortItemComparator: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielgindi/selectbox",
3
- "version": "1.0.43",
3
+ "version": "1.0.47",
4
4
  "description": "A collection of dom utilities. So you can work natively with the dom without dom frameworks.",
5
5
  "main": "dist/lib.cjs.min.js",
6
6
  "module": "lib/index.js",
@@ -31,25 +31,25 @@
31
31
  "homepage": "https://github.com/danielgindi/selectbox#readme",
32
32
  "license": "MIT",
33
33
  "devDependencies": {
34
- "@babel/core": "^7.16.0",
35
- "@babel/preset-env": "^7.16.0",
36
- "@babel/runtime": "^7.16.3",
34
+ "@babel/core": "^7.16.7",
35
+ "@babel/preset-env": "^7.16.8",
36
+ "@babel/runtime": "^7.16.7",
37
37
  "@rollup/plugin-babel": "^5.3.0",
38
38
  "@rollup/plugin-commonjs": "^21.0.1",
39
- "@rollup/plugin-node-resolve": "^13.0.6",
40
- "core-js": "^3.19.1",
41
- "eslint": "^8.2.0",
39
+ "@rollup/plugin-node-resolve": "^13.1.3",
40
+ "core-js": "^3.20.3",
41
+ "eslint": "^8.7.0",
42
42
  "eslint-formatter-codeframe": "^7.32.1",
43
- "eslint-plugin-vue": "^8.0.3",
43
+ "eslint-plugin-vue": "^8.3.0",
44
44
  "fs-extra": "^10.0.0",
45
45
  "husky": "^7.0.4",
46
46
  "pinst": "^2.1.6",
47
- "rollup": "^2.59.0",
47
+ "rollup": "^2.64.0",
48
48
  "rollup-plugin-terser": "^7.0.2",
49
- "sass": "^1.43.4"
49
+ "sass": "^1.48.0"
50
50
  },
51
51
  "dependencies": {
52
- "@danielgindi/dom-utils": "^1.0.5",
52
+ "@danielgindi/dom-utils": "^1.0.6",
53
53
  "@danielgindi/virtual-list-helper": "^1.0.3",
54
54
  "keycode-js": "^3.1.0",
55
55
  "mitt": "^3.0.0"
package/vue/SelectBox.vue CHANGED
@@ -54,7 +54,7 @@
54
54
  },
55
55
  sortListItems: {
56
56
  type: Boolean,
57
- default: true,
57
+ default: false,
58
58
  },
59
59
  sortListCheckedFirst: {
60
60
  type: Boolean,