@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.
@@ -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 = I(t.selectedOptions.length);
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
- t.multiselect && n.value--, l("uncheck-option", k);
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
- !n.value && t.multiselect && (n.value = 0), t.multiselect && (n.value = k.length), l("update:selectedOptions", k);
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(() => [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wwtdev/bsds-components-vue3",
3
3
  "type": "module",
4
- "version": "2.14.0",
4
+ "version": "2.14.1",
5
5
  "description": "BSDS Vue3 Components",
6
6
  "files": [
7
7
  "lib"