@webitel/ui-sdk 25.8.73 → 25.8.75

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