@webitel/ui-sdk 25.10.4 → 25.10.5

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/ui-sdk.js CHANGED
@@ -63879,6 +63879,7 @@ function YU(o, i, a, r, l, d) {
63879
63879
  const GU = /* @__PURE__ */ Fe(ZU, [["render", YU], ["__scopeId", "data-v-c0b24e2c"]]), i9 = /* @__PURE__ */ wt({
63880
63880
  __name: "wt-popover",
63881
63881
  props: {
63882
+ disabled: { type: Boolean, default: !1 },
63882
63883
  dismissable: { type: Boolean },
63883
63884
  appendTo: { default: "body" },
63884
63885
  baseZIndex: { default: 0 },
@@ -63892,40 +63893,40 @@ const GU = /* @__PURE__ */ Fe(ZU, [["render", YU], ["__scopeId", "data-v-c0b24e2
63892
63893
  },
63893
63894
  emits: ["show", "hide"],
63894
63895
  setup(o, { expose: i }) {
63895
- const a = Xc(), r = Na("innerPopover"), l = (f, m) => {
63896
- var h;
63897
- (h = r.value) == null || h.toggle(f, m ?? void 0);
63898
- }, d = (f, m) => {
63896
+ const a = Xc(), r = Na("innerPopover"), l = o, d = (m, h) => {
63897
+ var b;
63898
+ l.disabled || (b = r.value) == null || b.toggle(m, h ?? void 0);
63899
+ }, p = (m, h) => {
63900
+ var b;
63901
+ l.disabled || (b = r.value) == null || b.show(m, h ?? void 0);
63902
+ }, f = (m) => {
63899
63903
  var h;
63900
- (h = r.value) == null || h.show(f, m ?? void 0);
63901
- }, p = (f) => {
63902
- var m;
63903
- (m = r.value) == null || m.hide(f);
63904
+ (h = r.value) == null || h.hide(m);
63904
63905
  };
63905
63906
  return i({
63906
- toggle: l,
63907
- show: d,
63908
- hide: p
63909
- }), (f, m) => {
63910
- const h = he("p-popover");
63907
+ toggle: d,
63908
+ show: p,
63909
+ hide: f
63910
+ }), (m, h) => {
63911
+ const b = he("p-popover");
63911
63912
  return D(), j("div", null, [
63912
- ee(f.$slots, "activator", tt(st({ show: d, toggle: l, hide: p }))),
63913
- ve(h, fe(X(a), {
63913
+ ee(m.$slots, "activator", tt(st({ show: p, toggle: d, hide: f }))),
63914
+ ve(b, fe(X(a), {
63914
63915
  ref_key: "innerPopover",
63915
63916
  ref: r
63916
63917
  }, {
63917
- "append-to": f.appendTo,
63918
- "base-z-index": f.baseZIndex,
63919
- "auto-z-index": f.autoZIndex,
63920
- breakpoints: f.breakpoints,
63921
- dt: f.dt,
63922
- pt: f.pt,
63923
- "pt-options": f.ptOptions,
63924
- "close-on-escape": f.closeOnEscape,
63925
- unstyled: f.unstyled
63918
+ "append-to": m.appendTo,
63919
+ "base-z-index": m.baseZIndex,
63920
+ "auto-z-index": m.autoZIndex,
63921
+ breakpoints: m.breakpoints,
63922
+ dt: m.dt,
63923
+ pt: m.pt,
63924
+ "pt-options": m.ptOptions,
63925
+ "close-on-escape": m.closeOnEscape,
63926
+ unstyled: m.unstyled
63926
63927
  }, Dn(X(a))), {
63927
63928
  default: re(() => [
63928
- ee(f.$slots, "default", tt(st({ hide: p, toggle: l })))
63929
+ ee(m.$slots, "default", tt(st({ hide: f, toggle: d })))
63929
63930
  ], void 0, !0),
63930
63931
  _: 3
63931
63932
  }, 16, ["append-to", "base-z-index", "auto-z-index", "breakpoints", "dt", "pt", "pt-options", "close-on-escape", "unstyled"])