@wwtdev/bsds-components-vue3 2.14.0 → 2.14.1
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/bsds-components.js +4 -4
- package/package.json +1 -1
package/lib/bsds-components.js
CHANGED
|
@@ -2624,7 +2624,7 @@ const nn = {
|
|
|
2624
2624
|
},
|
|
2625
2625
|
emits: ["update:selectedOptions", "update:selectedOption", "toggled", "close", "check-option", "uncheck-option"],
|
|
2626
2626
|
setup(e, { emit: a }) {
|
|
2627
|
-
const t = e, l = a, n =
|
|
2627
|
+
const t = e, l = a, n = f(() => t.selectedOptions.length);
|
|
2628
2628
|
let i = null;
|
|
2629
2629
|
const [d, o] = Z(2), s = I(!1), r = () => i || (i = document.getElementById(v.value)), m = f(() => Je(async () => await (t.multiselect ? Promise.resolve().then(() => Pn) : Promise.resolve().then(() => En)))), h = f(() => t.optionsId || o.value), v = f(() => t.toggleId || d.value);
|
|
2630
2630
|
function g() {
|
|
@@ -2642,13 +2642,13 @@ const nn = {
|
|
|
2642
2642
|
s.value = !0;
|
|
2643
2643
|
}
|
|
2644
2644
|
function S(k) {
|
|
2645
|
-
|
|
2645
|
+
l("uncheck-option", k);
|
|
2646
2646
|
}
|
|
2647
2647
|
function C(k) {
|
|
2648
2648
|
l("check-option", k);
|
|
2649
2649
|
}
|
|
2650
2650
|
function $(k) {
|
|
2651
|
-
|
|
2651
|
+
l("update:selectedOptions", k);
|
|
2652
2652
|
}
|
|
2653
2653
|
function M(k) {
|
|
2654
2654
|
t.multiselect || (l("update:selectedOption", k), y());
|
|
@@ -2670,7 +2670,7 @@ const nn = {
|
|
|
2670
2670
|
open: e.open,
|
|
2671
2671
|
"options-id": h.value,
|
|
2672
2672
|
size: e.toggleSize,
|
|
2673
|
-
"badge-count": e.showBadgeCount ? n.value : void 0,
|
|
2673
|
+
"badge-count": e.showBadgeCount && e.multiselect ? n.value : void 0,
|
|
2674
2674
|
onClick: A[0] || (A[0] = (F) => k.$emit("toggled"))
|
|
2675
2675
|
}, {
|
|
2676
2676
|
label: D(() => [
|