@webitel/ui-sdk 26.6.47 → 26.6.49

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.
Files changed (65) hide show
  1. package/dist/{components-gi3TmScp.js → components-DQu77Q7M.js} +575 -606
  2. package/dist/{composables-BJtyGE9D.js → composables-Cw74RLc7.js} +13 -5
  3. package/dist/{debounce-DrmECuJ2.js → debounce-DPzXwiOS.js} +9 -4
  4. package/dist/eventBus-By3thVlR.js +31 -0
  5. package/dist/ui-sdk.css +1 -1
  6. package/dist/ui-sdk.js +5015 -4022
  7. package/dist/ui-sdk.umd.cjs +918 -628
  8. package/dist/{useVidstackSrc-DfNrFbOO.js → useVidstackSrc-jCDCYTce.js} +1 -1
  9. package/dist/usetoast-BECIyaas.js +10 -0
  10. package/dist/{vidstack-Bq6c3Bam-3dCf_D36.js → vidstack-Bq6c3Bam-hoRopLll.js} +1 -1
  11. package/dist/{vidstack-D2pY00kU-DoW028io.js → vidstack-D2pY00kU-dXPuSPZl.js} +1 -1
  12. package/dist/{vidstack-audio-B58bvsna.js → vidstack-audio-CCSR8cXr.js} +1 -1
  13. package/dist/{vidstack-dash-CX-LTHx3.js → vidstack-dash-CNcNULYU.js} +2 -2
  14. package/dist/{vidstack-hls-CLzdTFu6.js → vidstack-hls-BP6P23Cc.js} +2 -2
  15. package/dist/{vidstack-video-XtP8iTBc.js → vidstack-video-IgjC6GLU.js} +2 -2
  16. package/dist/{wt-button-BJmzJIU6.js → wt-button-CZfPNaIj.js} +1 -1
  17. package/dist/{wt-chat-emoji-70Ip-iGR.js → wt-chat-emoji-DogZsQlE.js} +571 -553
  18. package/dist/{wt-display-chip-items-7t7gfd-q.js → wt-display-chip-items-DESlV2p7.js} +1 -1
  19. package/dist/{wt-expansion-card-Bvs6YO3O.js → wt-expansion-card-BMsJwsp6.js} +1 -1
  20. package/dist/{wt-galleria-BXZJO_cB.js → wt-galleria-BPI3140G.js} +1 -1
  21. package/dist/{wt-icon-pxO7IjwV.js → wt-icon-DZxZg6ON.js} +2 -0
  22. package/dist/{wt-icon-btn-CjjI4cgE.js → wt-icon-btn-BUpa-fbk.js} +1 -1
  23. package/dist/wt-notifications-bar-CDTqa7M9.js +29 -0
  24. package/dist/{wt-pagination-BA_PZPIE.js → wt-pagination-CZuQFM3-.js} +1 -1
  25. package/dist/{wt-player-DROQ1CPs.js → wt-player-BxvfY3f0.js} +3 -3
  26. package/dist/{wt-search-bar-CWZdvAOf.js → wt-search-bar-CyMYRgHH.js} +1 -1
  27. package/dist/{wt-send-message-popup-Bg1K-tw8.js → wt-send-message-popup-ffiDFiVQ.js} +1 -1
  28. package/dist/{wt-table-D4XANcJ1.js → wt-table-C8kioEyj.js} +1 -1
  29. package/dist/wt-toast-m61COwji.js +44 -0
  30. package/dist/{wt-tree-table-MLET4gIv.js → wt-tree-table-2u2mPfO_.js} +1 -1
  31. package/dist/{wt-type-extension-value-input-DQhC5C4L.js → wt-type-extension-value-input-CDJ1y4xf.js} +1 -1
  32. package/dist/{wt-vidstack-player-CmdiCgCp.js → wt-vidstack-player-EobMavSI.js} +9 -9
  33. package/package.json +1 -1
  34. package/src/assets/icons/sprite/error.svg +4 -0
  35. package/src/assets/icons/sprite/index.ts +4 -0
  36. package/src/assets/icons/sprite/warning.svg +3 -0
  37. package/src/components/_internals/composables/useSelect/useSelectDropdown.ts +30 -0
  38. package/src/components/index.js +3 -3
  39. package/src/components/wt-notifications-bar/__tests__/WtNotificationsBar.spec.js +49 -46
  40. package/src/components/wt-notifications-bar/wt-notifications-bar.vue +24 -84
  41. package/src/components/wt-toast/__tests__/WtToast.spec.js +19 -0
  42. package/src/components/wt-toast/types/index.ts +11 -0
  43. package/src/components/wt-toast/wt-toast.vue +53 -0
  44. package/src/components/wt-vidstack-player/components/panels/playback-controls-panel/components/time-group.vue +1 -0
  45. package/src/css/components-variables.css +0 -1
  46. package/src/enums/index.ts +2 -2
  47. package/src/plugins/primevue/primevue.plugin.js +4 -0
  48. package/src/plugins/primevue/theme/components/components.js +2 -0
  49. package/src/plugins/primevue/theme/components/toast/toast.js +26 -0
  50. package/types/components/wt-notifications-bar/wt-notifications-bar.vue.d.ts +1 -12
  51. package/types/components/wt-player/wt-player.vue.d.ts +1 -1
  52. package/types/components/wt-toast/types/index.d.ts +7 -0
  53. package/types/components/wt-toast/wt-toast.vue.d.ts +3 -0
  54. package/types/enums/index.d.ts +2 -2
  55. package/types/modules/Flow/lookups/FlowTypeApplications.lookup.d.ts +5 -5
  56. package/types/plugins/primevue/theme/components/components.d.ts +2 -0
  57. package/types/plugins/primevue/theme/components/toast/toast.d.ts +223 -0
  58. package/dist/isObject-Dgs_L5xI.js +0 -11
  59. package/dist/logger-hl3ueNok.js +0 -47
  60. package/dist/wt-notifications-bar-BwO_qvrc.js +0 -52
  61. package/src/components/wt-notification/__tests__/WtNotification.spec.js +0 -28
  62. package/src/components/wt-notification/_variables.css +0 -9
  63. package/src/components/wt-notification/wt-notification.vue +0 -68
  64. package/types/components/wt-notification/wt-notification.vue.d.ts +0 -18
  65. /package/types/components/{wt-notification/__tests__/WtNotification.spec.d.ts → wt-toast/__tests__/WtToast.spec.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./vue-i18n-B8Px6VcD.js";
2
2
  import "./useExpansion-DVdIpoOn.js";
3
- import { t } from "./debounce-DrmECuJ2.js";
3
+ import { t } from "./debounce-DPzXwiOS.js";
4
4
  import "./useWtTable-tqmVOvve.js";
5
5
  import { computed as n, nextTick as r, onMounted as i, onUnmounted as a, reactive as o, ref as s, watch as c } from "vue";
6
6
  //#region src/components/_internals/composables/useGalleriaFullscreen/useGalleriaFullscreen.ts
@@ -74,7 +74,7 @@ var l = () => {
74
74
  });
75
75
  } };
76
76
  }, _ = ({ selectId: e, selectRef: t, filterInput: n, searchMethod: r, filteredOptions: i, filterText: a, filterOptions: o, resetAndFetch: c, sortOptions: l, fetchOptions: u, isLoading: d, searchHasNext: f }) => {
77
- let p = s(!1), m = null, h = () => document.querySelector(`#${e.value}_list`)?.parentElement, g = (e) => {
77
+ let p = s(!1), m = null, h = null, g = () => document.querySelector(`#${e.value}_list`)?.parentElement, _ = (e) => {
78
78
  let t = e.target;
79
79
  t.scrollTop + t.clientHeight >= t.scrollHeight - 40 && !d.value && f.value && u();
80
80
  };
@@ -85,17 +85,25 @@ var l = () => {
85
85
  },
86
86
  onDropdownBeforeHide: () => {
87
87
  let e = t?.value?.overlay;
88
- e && (e.style.pointerEvents = "none"), h()?.scrollTo(0, 0);
88
+ e && (e.style.pointerEvents = "none"), g()?.scrollTo(0, 0);
89
89
  },
90
90
  onDropdownShow: () => {
91
- n.value?.focus(), r.value && h()?.addEventListener("scroll", g);
91
+ n.value?.focus(), r.value && g()?.addEventListener("scroll", _);
92
92
  let e = t?.value?.overlay;
93
93
  e && (m = new ResizeObserver(() => {
94
94
  t.value?.alignOverlay();
95
95
  }), m.observe(e));
96
+ let i = t?.value?.$el;
97
+ if (i) {
98
+ let e = i.getBoundingClientRect().top, n = i.getBoundingClientRect().left, r = () => {
99
+ let a = i.getBoundingClientRect();
100
+ (a.top !== e || a.left !== n) && (e = a.top, n = a.left, t.value?.alignOverlay()), h = requestAnimationFrame(r);
101
+ };
102
+ h = requestAnimationFrame(r);
103
+ }
96
104
  },
97
105
  onDropdownHide: () => {
98
- p.value = !1, m?.disconnect(), m = null, r.value ? (h()?.removeEventListener("scroll", g), a.value && c()) : o(""), a.value = "";
106
+ p.value = !1, m?.disconnect(), m = null, h !== null && (cancelAnimationFrame(h), h = null), r.value ? (g()?.removeEventListener("scroll", _), a.value && c()) : o(""), a.value = "";
99
107
  }
100
108
  };
101
109
  }, v = (e) => {
@@ -1,8 +1,13 @@
1
1
  import { a as e, t } from "./chunk-CY3AvKd6.js";
2
2
  import { n, t as r } from "./dist-BYiYpK00.js";
3
- import { t as i } from "./isObject-Dgs_L5xI.js";
4
- //#region node_modules/lodash/_freeGlobal.js
5
- var a = /* @__PURE__ */ t(((e, t) => {
3
+ //#region node_modules/lodash/isObject.js
4
+ var i = /* @__PURE__ */ t(((e, t) => {
5
+ function n(e) {
6
+ var t = typeof e;
7
+ return e != null && (t == "object" || t == "function");
8
+ }
9
+ t.exports = n;
10
+ })), a = /* @__PURE__ */ t(((e, t) => {
6
11
  n(), t.exports = typeof r == "object" && r && r.Object === Object && r;
7
12
  })), o = /* @__PURE__ */ t(((e, t) => {
8
13
  var n = a(), r = typeof self == "object" && self && self.Object === Object && self;
@@ -125,4 +130,4 @@ var a = /* @__PURE__ */ t(((e, t) => {
125
130
  t.exports = u;
126
131
  })))(), 1), v = (e, t, n = 1e3) => (0, _.default)(e, n, t);
127
132
  //#endregion
128
- export { u as a, p as i, h as n, o, m as r, a as s, v as t };
133
+ export { u as a, i as c, p as i, h as n, o, m as r, a as s, v as t };
@@ -0,0 +1,31 @@
1
+ //#region node_modules/mitt/dist/mitt.mjs
2
+ function e(e) {
3
+ return {
4
+ all: e ||= /* @__PURE__ */ new Map(),
5
+ on: function(t, n) {
6
+ var r = e.get(t);
7
+ r ? r.push(n) : e.set(t, [n]);
8
+ },
9
+ off: function(t, n) {
10
+ var r = e.get(t);
11
+ r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : e.set(t, []));
12
+ },
13
+ emit: function(t, n) {
14
+ var r = e.get(t);
15
+ r && r.slice().map(function(e) {
16
+ e(n);
17
+ }), (r = e.get("*")) && r.slice().map(function(e) {
18
+ e(t, n);
19
+ });
20
+ }
21
+ };
22
+ }
23
+ //#endregion
24
+ //#region src/scripts/eventBus.js
25
+ var t = e(), n = {
26
+ $on: (...e) => t.on(...e),
27
+ $off: (...e) => t.off(...e),
28
+ $emit: (...e) => t.emit(...e)
29
+ };
30
+ //#endregion
31
+ export { n as t };