@danielgindi/selectbox 1.0.76 → 1.0.78
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 +632 -365
- 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 -3
- 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 +632 -365
- 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 +2 -2
- package/lib/SelectBox.js +5 -0
- package/package.json +14 -14
package/lib/DropList.js
CHANGED
|
@@ -624,7 +624,7 @@ class DropList {
|
|
|
624
624
|
|
|
625
625
|
// Look for the proper item
|
|
626
626
|
let itemIndex = this.itemIndexByValue(value);
|
|
627
|
-
if (itemIndex
|
|
627
|
+
if (itemIndex === -1) return this;
|
|
628
628
|
|
|
629
629
|
let item = this.itemAtIndex(itemIndex);
|
|
630
630
|
item[ItemSymbol] = newItem;
|
|
@@ -673,7 +673,7 @@ class DropList {
|
|
|
673
673
|
|
|
674
674
|
// Look for the proper item
|
|
675
675
|
let itemIndex = this.itemIndexByValueOrLabel(value, label);
|
|
676
|
-
if (itemIndex
|
|
676
|
+
if (itemIndex === -1) return this;
|
|
677
677
|
|
|
678
678
|
let spliced = p.items.splice(itemIndex, 1);
|
|
679
679
|
if (spliced[0]._group) {
|
package/lib/SelectBox.js
CHANGED
|
@@ -3420,6 +3420,11 @@ class SelectBox {
|
|
|
3420
3420
|
if (group.length === 0 || (group.length === 1 && group[0]._group)) {
|
|
3421
3421
|
groups.splice(g--, 1);
|
|
3422
3422
|
glen--;
|
|
3423
|
+
|
|
3424
|
+
let sgi = uncheckedGroups.indexOf(group);
|
|
3425
|
+
if (sgi !== -1) {
|
|
3426
|
+
uncheckedGroups.splice(sgi, 1);
|
|
3427
|
+
}
|
|
3423
3428
|
}
|
|
3424
3429
|
}
|
|
3425
3430
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielgindi/selectbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.78",
|
|
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,26 +31,26 @@
|
|
|
31
31
|
"homepage": "https://github.com/danielgindi/selectbox#readme",
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@babel/core": "^7.20.
|
|
34
|
+
"@babel/core": "^7.20.12",
|
|
35
35
|
"@babel/preset-env": "^7.20.2",
|
|
36
|
-
"@babel/runtime": "^7.20.
|
|
37
|
-
"@rollup/plugin-babel": "^6.0.
|
|
38
|
-
"@rollup/plugin-commonjs": "^
|
|
36
|
+
"@babel/runtime": "^7.20.13",
|
|
37
|
+
"@rollup/plugin-babel": "^6.0.3",
|
|
38
|
+
"@rollup/plugin-commonjs": "^24.0.1",
|
|
39
39
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
40
|
+
"@rollup/plugin-terser": "^0.4.0",
|
|
41
|
+
"core-js": "^3.28.0",
|
|
42
|
+
"eslint": "^8.34.0",
|
|
42
43
|
"eslint-formatter-codeframe": "^7.32.1",
|
|
43
|
-
"eslint-plugin-vue": "^9.
|
|
44
|
-
"fs-extra": "^
|
|
45
|
-
"husky": "^8.0.
|
|
44
|
+
"eslint-plugin-vue": "^9.9.0",
|
|
45
|
+
"fs-extra": "^11.1.0",
|
|
46
|
+
"husky": "^8.0.3",
|
|
46
47
|
"pinst": "^3.0.0",
|
|
47
|
-
"rollup": "^3.
|
|
48
|
-
"
|
|
49
|
-
"sass": "^1.56.0"
|
|
48
|
+
"rollup": "^3.15.0",
|
|
49
|
+
"sass": "^1.58.1"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@danielgindi/dom-utils": "^1.0.8",
|
|
53
|
-
"@danielgindi/virtual-list-helper": "^1.0.
|
|
53
|
+
"@danielgindi/virtual-list-helper": "^1.0.9",
|
|
54
54
|
"fast-deep-equal": "^3.1.3",
|
|
55
55
|
"keycode-js": "^3.1.0",
|
|
56
56
|
"mitt": "^3.0.0"
|