mediacube-ui-v2 0.0.128 → 0.0.130

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.
@@ -19682,10 +19682,23 @@ const Rv = ["dir"], Iv = ["for"], Yv = ["for"], Nv = { class: "mc-field-text__ma
19682
19682
  }), Wa(() => {
19683
19683
  window.removeEventListener("resize", O), window.removeEventListener("transitionrun", O);
19684
19684
  });
19685
- const v = () => {
19685
+ const v = (x) => {
19686
19686
  E(!o.value);
19687
+ const S = new MouseEvent("click", {
19688
+ bubbles: !0,
19689
+ cancelable: !0,
19690
+ view: window,
19691
+ clientX: x.clientX,
19692
+ clientY: x.clientY
19693
+ });
19694
+ Object.defineProperty(S, "originalTarget", {
19695
+ value: x.target,
19696
+ enumerable: !1
19697
+ }), window.dispatchEvent(S);
19687
19698
  }, y = (x) => {
19688
- const S = x.target;
19699
+ var C;
19700
+ if (x.originalTarget && ((C = x.originalTarget) == null ? void 0 : C.closest(`#${n}`)) === n) return;
19701
+ const S = x.originalTarget || x.target;
19689
19702
  o.value && !S.closest(`#${n}`) && A();
19690
19703
  }, A = () => {
19691
19704
  E(!1);
@@ -19720,7 +19733,7 @@ const Rv = ["dir"], Iv = ["for"], Yv = ["for"], Nv = { class: "mc-field-text__ma
19720
19733
  ref: i,
19721
19734
  tabindex: "0",
19722
19735
  onKeyup: Ht(A, ["esc"]),
19723
- onClick: v
19736
+ onClick: Le(v, ["stop", "prevent"])
19724
19737
  }, [
19725
19738
  I(x.$slots, "activator")
19726
19739
  ], 544),