@point-hub/papp 0.1.17 → 0.1.18

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/index.js CHANGED
@@ -10696,10 +10696,16 @@ const mg = /* @__PURE__ */ fg(vg), hg = { class: "relative w-full" }, gg = ["id"
10696
10696
  }, h = E();
10697
10697
  return ne(() => {
10698
10698
  a.autofocus && h.value?.focus();
10699
- }), ee(
10700
- () => [r.value, a.options],
10701
- () => {
10702
- console.log("a"), o.value = a.options.find((g) => g.value === r.value), n.value = o.value?.label;
10699
+ }), ee(() => o.value, (g) => {
10700
+ r.value !== g?.value && (r.value = g?.value), n.value !== g?.label && (n.value = g?.label), s.value?.length && (s.value = []);
10701
+ }, { immediate: !0 }), ee(
10702
+ () => r.value,
10703
+ (g) => {
10704
+ const v = a.options?.find((m) => m.value === g);
10705
+ v ? o.value = {
10706
+ value: v?.value,
10707
+ label: v?.label
10708
+ } : o.value = void 0;
10703
10709
  },
10704
10710
  { immediate: !0 }
10705
10711
  ), t({
@@ -10813,7 +10819,7 @@ const mg = /* @__PURE__ */ fg(vg), hg = { class: "relative w-full" }, gg = ["id"
10813
10819
  }, 8, ["label", "layout", "description", "required", "helpers", "errors"]);
10814
10820
  };
10815
10821
  }
10816
- }), zg = /* @__PURE__ */ oe(qg, [["__scopeId", "data-v-726f11a7"]]), Ug = ["disabled", "data-testid"], Yg = /* @__PURE__ */ R({
10822
+ }), zg = /* @__PURE__ */ oe(qg, [["__scopeId", "data-v-fc084772"]]), Ug = ["disabled", "data-testid"], Yg = /* @__PURE__ */ R({
10817
10823
  __name: "base-switch",
10818
10824
  props: /* @__PURE__ */ ye({
10819
10825
  modelValue: { type: Boolean },