@webitel/ui-sdk 26.8.13 → 26.8.14

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.
@@ -1076,7 +1076,7 @@ var se = class {
1076
1076
  i18n: null
1077
1077
  }, Y = (e) => {
1078
1078
  if (typeof e == "function") {
1079
- let t = ({ type: e, text: t }) => de.eventBus.$emit("notification", {
1079
+ let t = ({ type: e, text: t }) => de.eventBus?.$emit("notification", {
1080
1080
  type: e,
1081
1081
  text: t
1082
1082
  });
@@ -12,7 +12,7 @@ import "./sortQueryAdapters-CyYXvnDN.js";
12
12
  import { n as w, t as T } from "./wt-icon-btn-Behnq_SS.js";
13
13
  import { t as se } from "./wt-icon-action-BBmutGsL.js";
14
14
  import { t as ce } from "./useValidation-DgSm80YX.js";
15
- import { i as le, n as ue, r as de } from "./composables-DgOEWk-2.js";
15
+ import { i as le, n as ue, r as de } from "./composables-C_OatTQJ.js";
16
16
  import { t as fe } from "./wt-expand-transition-C2p9bR4j.js";
17
17
  import { a as pe, c as me, i as he, n as ge, o as _e, r as ve, s as ye, t as be } from "./floating-ui.dom-Ch9ml4Rx.js";
18
18
  import * as xe from "vue";
@@ -6560,9 +6560,9 @@ var Rl = {
6560
6560
  ])), [[r, d]]) : O("", !0)], 2);
6561
6561
  };
6562
6562
  }
6563
- }, [["__scopeId", "data-v-72aa56d0"]]), Ul = N(() => import("./wt-action-bar-HBm22ay5.js")), Wl = N(() => import("./wt-button-select-BnRHgJ4i.js")), Gl = N(() => import("./wt-confirm-dialog-DCUitG2v.js")), Kl = N(() => import("./wt-context-menu-yW52oF-2.js")), ql = N(() => import("./wt-copy-action-d9gVzAsB.js")), Jl = N(() => import("./wt-datepicker-BMyxdXw4.js")), Yl = N(() => import("./wt-dual-panel-Dhj8Eg_y.js")), Xl = N(() => import("./wt-dummy-CLjhRWZ6.js")), Zl = N(() => import("./wt-error-page-vhu4lIyF.js")), Ql = N(() => import("./wt-expansion-panel-Br7JPc5X.js")), $l = N(() => import("./wt-expansion-card-BLsTTApF.js")), eu = N(() => import("./wt-filters-panel-wrapper-Cc9b3aci.js")), tu = N(() => import("./wt-galleria-0eeveVIj.js")), nu = N(() => import("./wt-notifications-bar-CKEWt08-.js")), ru = N(() => import("./wt-page-header-CDbd4aOh.js")), iu = N(() => import("./wt-pagination-G2ZGU4Pi.js")), au = N(() => import("./wt-player-xBVVmERg.js")), ou = N(() => import("./wt-popover-ChCN6b1o.js").then((e) => e.n)), su = N(() => import("./wt-search-bar-DtJL-csc.js")), cu = N(() => import("./wt-slider-BPzRTeYU.js").then((e) => e.n)), lu = N(() => import("./wt-status-select-D1hAjCAS.js")), uu = N(() => import("./wt-stepper-B6zpd1Uh.js")), du = N(() => import("./wt-table-_Zf-10Ge.js")), fu = N(() => import("./wt-table-actions-4-peSVkc.js")), pu = N(() => import("./wt-table-column-select-CgEh5BAF.js")), mu = N(() => import("./wt-tabs-DuOgj-lZ.js")), hu = N(() => import("./wt-time-input-u5Ay5_X5.js")), gu = N(() => import("./wt-timepicker-CB8HzUZw.js")), _u = N(() => import("./wt-tree-DZ9ErOGj.js")), vu = N(() => import("./wt-tree-table-C-UiFrTF.js")), yu = N(() => import("./wt-vidstack-player-BEYcf_KT.js")), bu = N(() => import("./wt-call-media-action-Bn2bGCWs.js")), xu = N(() => import("./wt-chat-emoji-DGEqinz9.js")), Su = N(() => import("./wt-display-chip-items-C8ucU1uX.js")), Cu = N(() => import("./wt-navigation-menu-CenQi_-T.js")), wu = N(() => import("./wt-selection-popup-CjYw4ppb.js")), Tu = N(() => import("./wt-start-page-DMXRhA9E.js"));
6564
- N(() => import("./wt-type-extension-value-input-BvbsDPZY.js"));
6565
- var Eu = N(() => import("./wt-screen-recordings-action-Dzzo0eqW.js")), Du = N(() => import("./wt-send-message-popup-Dfrl_T0n.js")), Ou = {
6563
+ }, [["__scopeId", "data-v-72aa56d0"]]), Ul = N(() => import("./wt-action-bar-HBm22ay5.js")), Wl = N(() => import("./wt-button-select-BnRHgJ4i.js")), Gl = N(() => import("./wt-confirm-dialog-DCUitG2v.js")), Kl = N(() => import("./wt-context-menu-yW52oF-2.js")), ql = N(() => import("./wt-copy-action-d9gVzAsB.js")), Jl = N(() => import("./wt-datepicker-BMyxdXw4.js")), Yl = N(() => import("./wt-dual-panel-Dhj8Eg_y.js")), Xl = N(() => import("./wt-dummy-CLjhRWZ6.js")), Zl = N(() => import("./wt-error-page-vhu4lIyF.js")), Ql = N(() => import("./wt-expansion-panel-Br7JPc5X.js")), $l = N(() => import("./wt-expansion-card-BzhcCehz.js")), eu = N(() => import("./wt-filters-panel-wrapper-Cc9b3aci.js")), tu = N(() => import("./wt-galleria-qPHnXPx7.js")), nu = N(() => import("./wt-notifications-bar-CKEWt08-.js")), ru = N(() => import("./wt-page-header-CDbd4aOh.js")), iu = N(() => import("./wt-pagination-G2ZGU4Pi.js")), au = N(() => import("./wt-player-xBVVmERg.js")), ou = N(() => import("./wt-popover-ChCN6b1o.js").then((e) => e.n)), su = N(() => import("./wt-search-bar-DtJL-csc.js")), cu = N(() => import("./wt-slider-BPzRTeYU.js").then((e) => e.n)), lu = N(() => import("./wt-status-select-D1hAjCAS.js")), uu = N(() => import("./wt-stepper-B6zpd1Uh.js")), du = N(() => import("./wt-table-DJ3yOWZV.js")), fu = N(() => import("./wt-table-actions-4-peSVkc.js")), pu = N(() => import("./wt-table-column-select-CgEh5BAF.js")), mu = N(() => import("./wt-tabs-DuOgj-lZ.js")), hu = N(() => import("./wt-time-input-u5Ay5_X5.js")), gu = N(() => import("./wt-timepicker-CB8HzUZw.js")), _u = N(() => import("./wt-tree-DZ9ErOGj.js")), vu = N(() => import("./wt-tree-table-C-UiFrTF.js")), yu = N(() => import("./wt-vidstack-player-B7FViYdW.js")), bu = N(() => import("./wt-call-media-action-Bn2bGCWs.js")), xu = N(() => import("./wt-chat-emoji-D3UxQcHT.js")), Su = N(() => import("./wt-display-chip-items-Df29r-JZ.js")), Cu = N(() => import("./wt-navigation-menu-CenQi_-T.js")), wu = N(() => import("./wt-selection-popup-CjYw4ppb.js")), Tu = N(() => import("./wt-start-page-DMXRhA9E.js"));
6564
+ N(() => import("./wt-type-extension-value-input-CnEz_ua5.js"));
6565
+ var Eu = N(() => import("./wt-screen-recordings-action-Dzzo0eqW.js")), Du = N(() => import("./wt-send-message-popup-BePv9v32.js")), Ou = {
6566
6566
  WtActionBar: Ul,
6567
6567
  WtImage: fo,
6568
6568
  WtEmpty: _o,
@@ -78,9 +78,11 @@ var l = () => {
78
78
  let h = s(!1), g = null, _ = null, v = () => document.querySelector(`#${e.value}_list`)?.parentElement, y = (e) => {
79
79
  let t = e.target;
80
80
  t.scrollTop + t.clientHeight >= t.scrollHeight - 40 && !p.value && m.value && f();
81
- }, b = () => {
82
- h.value = !0, a.value = d(a.value);
83
- }, x = () => {
81
+ }, b = null, x = () => {
82
+ h.value = !0, a.value = d(a.value), b = requestAnimationFrame(() => {
83
+ b = null, v()?.scrollTo(0, 0);
84
+ });
85
+ }, S = () => {
84
86
  n.value?.focus(), i.value && v()?.addEventListener("scroll", y);
85
87
  let e = t?.value?.overlay;
86
88
  e && (g = new ResizeObserver(() => {
@@ -94,22 +96,22 @@ var l = () => {
94
96
  };
95
97
  _ = requestAnimationFrame(i);
96
98
  }
97
- }, S = !1;
99
+ }, C = !1;
98
100
  return c(a, () => {
99
- S && (S = !1, r(() => v()?.scrollTo(0, 0)));
101
+ C && (C = !1, r(() => v()?.scrollTo(0, 0)));
100
102
  }), {
101
103
  isDropdownOpen: h,
102
- onDropdownBeforeShow: b,
104
+ onDropdownBeforeShow: x,
103
105
  onDropdownBeforeHide: () => {
104
106
  let e = t?.value?.overlay;
105
107
  e && (e.style.pointerEvents = "none"), v()?.scrollTo(0, 0);
106
108
  },
107
- onDropdownShow: x,
109
+ onDropdownShow: S,
108
110
  onDropdownHide: () => {
109
- h.value = !1, g?.disconnect(), g = null, _ !== null && (cancelAnimationFrame(_), _ = null), i.value ? (v()?.removeEventListener("scroll", y), o.value && u()) : l(""), o.value = "";
111
+ h.value = !1, b !== null && (cancelAnimationFrame(b), b = null), g?.disconnect(), g = null, _ !== null && (cancelAnimationFrame(_), _ = null), i.value ? (v()?.removeEventListener("scroll", y), o.value && u()) : l(""), o.value = "";
110
112
  },
111
113
  filterOptionsAndScrollToTop: (e) => {
112
- S = !0, l(e);
114
+ C = !0, l(e);
113
115
  }
114
116
  };
115
117
  }, v = (e) => {
package/dist/ui-sdk.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./generateInstance-C9d7J_TX.js";
2
2
  import { n as t } from "./wt-icon-DvONu3WD.js";
3
- import { S as n, _ as r, b as i, c as a, d as o, f as s, g as c, h as l, l as u, m as d, p as f, t as p, u as m, v as h, x as g, y as _ } from "./components--U8hCdMV.js";
3
+ import { S as n, _ as r, b as i, c as a, d as o, f as s, g as c, h as l, l as u, m as d, p as f, t as p, u as m, v as h, x as g, y as _ } from "./components-C7jH_1i9.js";
4
4
  import { i as v, l as y } from "./enums-De8CDKZ1.js";
5
5
  import { computed as b, reactive as x, shallowRef as S, watch as C } from "vue";
6
6
  import w from "primevue/autocomplete";