@webitel/ui-sdk 26.4.22 → 26.4.24

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 (59) hide show
  1. package/dist/{index-jqHf5LGX.js → index-C9wTDLGp.js} +1 -1
  2. package/dist/{index-CjWTFyL0.js → index-DYcoqLcD.js} +1 -1
  3. package/dist/{install-BMvKjjLL.js → install-Kba4JYan.js} +4478 -4443
  4. package/dist/{isObject-BOdq4aPl.js → isObject-CGz83frb.js} +1 -1
  5. package/dist/ui-sdk.css +1 -1
  6. package/dist/ui-sdk.js +1 -1
  7. package/dist/ui-sdk.umd.cjs +220 -220
  8. package/dist/{useVidstackSrc-D3dSiS_u.js → useVidstackSrc-BLenyTd1.js} +1 -1
  9. package/dist/{vidstack-Bq6c3Bam-BndP9u3K.js → vidstack-Bq6c3Bam-Dfe1pX12.js} +3 -3
  10. package/dist/{vidstack-D2pY00kU-Cno9fdPB.js → vidstack-D2pY00kU-D6TCmA-4.js} +3 -3
  11. package/dist/{vidstack-DDXt6fpN-THTrNGei.js → vidstack-DDXt6fpN-CKcIr3OO.js} +2 -2
  12. package/dist/{vidstack-D_-9AA6_-Cyne3PF1.js → vidstack-D_-9AA6_-DC3xAnIB.js} +2 -2
  13. package/dist/{vidstack-DqAw8m9J-D5YdwkJB.js → vidstack-DqAw8m9J-BfePaGxO.js} +1 -1
  14. package/dist/{vidstack-audio-B2KUAd7p.js → vidstack-audio-DKdutLh1.js} +2 -2
  15. package/dist/{vidstack-dash-HMWdH_gZ.js → vidstack-dash-BaikuV9e.js} +4 -4
  16. package/dist/{vidstack-google-cast-CvX63UOS.js → vidstack-google-cast-DmGIA8m8.js} +4 -4
  17. package/dist/{vidstack-hls-DqYT1QHJ.js → vidstack-hls-C_PLdy-5.js} +4 -4
  18. package/dist/{vidstack-video-vCkAWywh.js → vidstack-video-BSn9S8zZ.js} +3 -3
  19. package/dist/{vidstack-vimeo-DyetBgp9.js → vidstack-vimeo-De_W3vND.js} +4 -4
  20. package/dist/{vidstack-youtube-Dl5m33Pu.js → vidstack-youtube-CkreCdqK.js} +3 -3
  21. package/dist/{wt-action-bar-D700Ttx3.js → wt-action-bar-CvD1_qlz.js} +1 -1
  22. package/dist/{wt-button-select-B87u0hgr.js → wt-button-select-BcQFGqiI.js} +1 -1
  23. package/dist/{wt-chat-emoji-mp0EaqYs.js → wt-chat-emoji-CjZuXjgK.js} +612 -598
  24. package/dist/{wt-confirm-dialog-BX8pm7yN.js → wt-confirm-dialog-CbPKhWvY.js} +1 -1
  25. package/dist/{wt-context-menu-Co3IhwbA.js → wt-context-menu-8tRk9Drk.js} +1 -1
  26. package/dist/{wt-copy-action-BZ_xWmdj.js → wt-copy-action-B0H5Uc8b.js} +1 -1
  27. package/dist/{wt-datepicker-CrAEf9OO.js → wt-datepicker-Cl5T97FR.js} +1 -1
  28. package/dist/{wt-display-chip-items-Cc1A8GeK.js → wt-display-chip-items-BD8kT5MZ.js} +1 -1
  29. package/dist/{wt-dual-panel-C_ASG2p5.js → wt-dual-panel-BAaj-oXF.js} +1 -1
  30. package/dist/{wt-dummy-BjmJQQ0F.js → wt-dummy-DOgSZzBI.js} +1 -1
  31. package/dist/{wt-error-page-D2imccW5.js → wt-error-page-COIFkb6C.js} +1 -1
  32. package/dist/{wt-expansion-card-ClFIXrDM.js → wt-expansion-card-kdjtf-88.js} +1 -1
  33. package/dist/{wt-expansion-panel-CYiS2tL7.js → wt-expansion-panel-QbMHThCr.js} +1 -1
  34. package/dist/{wt-filters-panel-wrapper-ByzTfgKZ.js → wt-filters-panel-wrapper-BuaguC0n.js} +1 -1
  35. package/dist/{wt-galleria-Df4zTp50.js → wt-galleria-D0VXmoBy.js} +1 -1
  36. package/dist/{wt-navigation-menu-2chCqw9i.js → wt-navigation-menu-CyNuoBYC.js} +1 -1
  37. package/dist/{wt-notifications-bar-DOSe479l.js → wt-notifications-bar-CeUQGd8M.js} +2 -2
  38. package/dist/{wt-pagination-CveEqFBV.js → wt-pagination-C_7LYiuK.js} +1 -1
  39. package/dist/{wt-player-CKQMruy9.js → wt-player-D-wN_Qdi.js} +2 -2
  40. package/dist/{wt-screen-recordings-action-D9oBUusr.js → wt-screen-recordings-action-CF1sFNAD.js} +1 -1
  41. package/dist/{wt-search-bar-yUrpR1SZ.js → wt-search-bar-CMBjGmwi.js} +1 -1
  42. package/dist/{wt-selection-popup-Bwg78BJe.js → wt-selection-popup-CaqzxF0j.js} +1 -1
  43. package/dist/{wt-start-page-Dxbhsdrt.js → wt-start-page-CGCCr6RO.js} +1 -1
  44. package/dist/{wt-status-select-DkGJbYv3.js → wt-status-select-IGoJvKO_.js} +1 -1
  45. package/dist/{wt-stepper-BY80WOU1.js → wt-stepper-BZAW3uXl.js} +1 -1
  46. package/dist/{wt-table-B4BybRki.js → wt-table-DECB44j5.js} +1 -1
  47. package/dist/{wt-table-actions-D5E6efBj.js → wt-table-actions-B0SFJx-g.js} +1 -1
  48. package/dist/{wt-table-column-select-DGfzFsJI.js → wt-table-column-select-BvdNWNoq.js} +2 -2
  49. package/dist/{wt-tabs-CUPLncfA.js → wt-tabs-Dq47VTJg.js} +1 -1
  50. package/dist/{wt-tags-input-GbtecQzx.js → wt-tags-input-D4emimSQ.js} +2 -2
  51. package/dist/{wt-timepicker-lBHoJGds.js → wt-timepicker-NvV7Pd8S.js} +1 -1
  52. package/dist/{wt-tree-B4Uh0jlK.js → wt-tree-CbgMT0ej.js} +2 -2
  53. package/dist/{wt-tree-table-Ce7IFn9f.js → wt-tree-table-Bq3eI_U5.js} +1 -1
  54. package/dist/{wt-type-extension-value-input-C6mtsqcV.js → wt-type-extension-value-input-CaLK5owU.js} +2 -2
  55. package/dist/{wt-vidstack-player-MG2DMhZn.js → wt-vidstack-player-Dhh2rK8W.js} +10 -10
  56. package/package.json +1 -1
  57. package/src/components/on-demand/wt-chat-emoji/wt-chat-emoji.vue +36 -11
  58. package/src/components/wt-avatar/wt-avatar.vue +19 -17
  59. package/types/components/on-demand/wt-chat-emoji/wt-chat-emoji.vue.d.ts +19 -0
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as we, mergeModels as Re, useModel as Ae, computed as x, resolveComponent as $, createBlock as Z, renderSlot as F, createCommentVNode as De, unref as D, openBlock as ee, mergeProps as _, createVNode as P } from "vue";
2
- import { ag as ve, ah as Oe, O as Ee, ai as Ce, aj as qe, B as ke, ak as Se, al as te, am as xe } from "./install-BMvKjjLL.js";
3
- import { d as _e } from "./index-CjWTFyL0.js";
2
+ import { ag as ve, ah as Oe, O as Ee, ai as Ce, aj as qe, B as ke, ak as Se, al as te, am as xe } from "./install-Kba4JYan.js";
3
+ import { d as _e } from "./index-DYcoqLcD.js";
4
4
  import { get as Ue, set as Be } from "lodash-es";
5
5
  import "@aliasedDeps/api-services/axios";
6
6
  import * as e from "zod";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as lt, inject as ge, createElementBlock as mt, openBlock as G, normalizeClass as ye, unref as ot, createElementVNode as at, renderSlot as Wt, createVNode as U, useTemplateRef as qi, onMounted as _i, onBeforeUnmount as Ii, createBlock as Gt, createCommentVNode as Ut, toDisplayString as Vi, resolveComponent as Di, withCtx as _e, ref as us, provide as Ri, toRefs as Oi } from "vue";
2
- import { a as q, c as ft, i as B, b as Ie, d as S, e as nt, f as Ve, l as O, s as Zt, g as Ds, E as Rs, D as L, h as Q, o as x, j as Ni, k as f, m as l, n as M, p as Os, q as Hi, r as oe, t as W, V as J, v as w, C as b, S as gt, w as It, x as p, y as rt, z, I as Ns, A as Fi, B as Bi, F as tt, G as Ge, H as Hs, J as ps, K as Ue, L as Fs, M as Tt, N as Ke, O as de, P as Gi, Q as xt, R as Ui, U as Ki, W as Qi, X as Wi, Y as zi, Z as ji, _ as Yi, $ as Xi, a0 as Ji, a1 as Bs, a2 as T, a3 as _, a4 as ce, a5 as Zi, a6 as Vt, a7 as K, a8 as ta, a9 as ea, aa as sa, ab as ia, ac as ms, ad as aa, ae as na, af as v, ag as y, ah as ra, ai as oa, T as ha, u as la } from "./useVidstackSrc-D3dSiS_u.js";
3
- import { T as da, U as ca, V as ua, X as pa, _ as dt, Q as zt, Y as ma, C as Y } from "./install-BMvKjjLL.js";
2
+ import { a as q, c as ft, i as B, b as Ie, d as S, e as nt, f as Ve, l as O, s as Zt, g as Ds, E as Rs, D as L, h as Q, o as x, j as Ni, k as f, m as l, n as M, p as Os, q as Hi, r as oe, t as W, V as J, v as w, C as b, S as gt, w as It, x as p, y as rt, z, I as Ns, A as Fi, B as Bi, F as tt, G as Ge, H as Hs, J as ps, K as Ue, L as Fs, M as Tt, N as Ke, O as de, P as Gi, Q as xt, R as Ui, U as Ki, W as Qi, X as Wi, Y as zi, Z as ji, _ as Yi, $ as Xi, a0 as Ji, a1 as Bs, a2 as T, a3 as _, a4 as ce, a5 as Zi, a6 as Vt, a7 as K, a8 as ta, a9 as ea, aa as sa, ab as ia, ac as ms, ad as aa, ae as na, af as v, ag as y, ah as ra, ai as oa, T as ha, u as la } from "./useVidstackSrc-BLenyTd1.js";
3
+ import { T as da, U as ca, V as ua, X as pa, _ as dt, Q as zt, Y as ma, C as Y } from "./install-Kba4JYan.js";
4
4
  import { _ as fa } from "./wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js";
5
5
  const Gs = ft();
6
6
  function $() {
@@ -2070,7 +2070,7 @@ class cn {
2070
2070
  return "audio";
2071
2071
  }
2072
2072
  async load(t) {
2073
- return new (await import("./vidstack-audio-B2KUAd7p.js")).AudioProvider(this.target, t);
2073
+ return new (await import("./vidstack-audio-DKdutLh1.js")).AudioProvider(this.target, t);
2074
2074
  }
2075
2075
  }
2076
2076
  class je {
@@ -2083,7 +2083,7 @@ class je {
2083
2083
  return "video";
2084
2084
  }
2085
2085
  async load(t) {
2086
- return new (await import("./vidstack-video-vCkAWywh.js")).VideoProvider(this.target, t);
2086
+ return new (await import("./vidstack-video-BSn9S8zZ.js")).VideoProvider(this.target, t);
2087
2087
  }
2088
2088
  }
2089
2089
  class Ye extends je {
@@ -2093,7 +2093,7 @@ class Ye extends je {
2093
2093
  return Ye.supported && Ge(t);
2094
2094
  }
2095
2095
  async load(t) {
2096
- return new (await import("./vidstack-hls-DqYT1QHJ.js")).HLSProvider(this.target, t);
2096
+ return new (await import("./vidstack-hls-C_PLdy-5.js")).HLSProvider(this.target, t);
2097
2097
  }
2098
2098
  }
2099
2099
  class Xe extends je {
@@ -2103,7 +2103,7 @@ class Xe extends je {
2103
2103
  return Xe.supported && Ue(t);
2104
2104
  }
2105
2105
  async load(t) {
2106
- return new (await import("./vidstack-dash-HMWdH_gZ.js")).DASHProvider(this.target, t);
2106
+ return new (await import("./vidstack-dash-BaikuV9e.js")).DASHProvider(this.target, t);
2107
2107
  }
2108
2108
  }
2109
2109
  class un {
@@ -2125,7 +2125,7 @@ class un {
2125
2125
  return "video";
2126
2126
  }
2127
2127
  async load(t) {
2128
- return new (await import("./vidstack-vimeo-DyetBgp9.js")).VimeoProvider(this.target, t);
2128
+ return new (await import("./vidstack-vimeo-De_W3vND.js")).VimeoProvider(this.target, t);
2129
2129
  }
2130
2130
  async loadPoster(t, e, s) {
2131
2131
  const { resolveVimeoVideoId: i, getVimeoVideoInfo: n } = await import("./vidstack-krOAtKMi-C50BTxmn.js");
@@ -2157,7 +2157,7 @@ class pn {
2157
2157
  return "video";
2158
2158
  }
2159
2159
  async load(t) {
2160
- return new (await import("./vidstack-youtube-Dl5m33Pu.js")).YouTubeProvider(this.target, t);
2160
+ return new (await import("./vidstack-youtube-CkreCdqK.js")).YouTubeProvider(this.target, t);
2161
2161
  }
2162
2162
  async loadPoster(t, e, s) {
2163
2163
  const { findYouTubePoster: i, resolveYouTubeVideoId: n } = await import("./vidstack-Dm1xEU9Q-CXHNvShT.js"), r = S(t.src) && n(t.src);
@@ -2625,7 +2625,7 @@ class bn extends Pt {
2625
2625
  throw i.code = "CAST_NOT_AVAILABLE", i;
2626
2626
  }
2627
2627
  if (te("https://www.gstatic.com"), !this.#v) {
2628
- const i = await import("./vidstack-D2pY00kU-Cno9fdPB.js").then((n) => n.v);
2628
+ const i = await import("./vidstack-D2pY00kU-D6TCmA-4.js").then((n) => n.v);
2629
2629
  this.#v = new i.GoogleCastLoader();
2630
2630
  }
2631
2631
  await this.#v.prompt(this.#s), t && this.#e.queue.enqueue("media-google-cast-request", t);
@@ -8022,7 +8022,7 @@ class Mr extends v(HTMLElement, ii) {
8022
8022
  if (this.#e?.classList.contains("vds-google-cast"))
8023
8023
  return this.#e;
8024
8024
  const t = document.createElement("div");
8025
- return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-Cyne3PF1.js").then(({ insertContent: e }) => {
8025
+ return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-DC3xAnIB.js").then(({ insertContent: e }) => {
8026
8026
  e(t, this.#t.$state);
8027
8027
  }), t;
8028
8028
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.4.22",
3
+ "version": "26.4.24",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run biome:format:all || true) && npm run publish-lib",
@@ -12,18 +12,23 @@
12
12
  wide
13
13
  @click="togglePicker"
14
14
  />
15
- <div
16
- v-if="isOpened"
17
- ref="emojiPickerWrapper"
18
- class="wt-chat-emoji__wrapper"
19
- ></div>
20
- </div>
15
+ <teleport
16
+ :disabled="!popupTeleportTo"
17
+ :to="teleportValue"
18
+ >
19
+ <div
20
+ v-if="isOpened"
21
+ ref="emojiPickerWrapper"
22
+ class="wt-chat-emoji__wrapper"
23
+ ></div>
24
+ </teleport>
25
+ </div>
21
26
  </template>
22
27
 
23
28
  <script setup>
24
29
  import { ComponentSize } from '@webitel/ui-sdk/enums';
25
30
  import * as EmojiPicker from 'emoji-picker-element/picker'; ///!not delete
26
- import { nextTick, onBeforeUnmount, ref } from 'vue';
31
+ import { computed, nextTick, onBeforeUnmount, ref } from 'vue';
27
32
 
28
33
  import { eventBus } from '../../../scripts';
29
34
 
@@ -32,6 +37,15 @@ const props = defineProps({
32
37
  type: String,
33
38
  default: ComponentSize.MD,
34
39
  },
40
+ /**
41
+ * @author HlukhovYe
42
+ * teleport popup to specific element, pass selector
43
+ * https://webitel.atlassian.net/browse/WTEL-8731
44
+ */
45
+ popupTeleportTo: {
46
+ type: String,
47
+ default: '',
48
+ },
35
49
  });
36
50
 
37
51
  const emit = defineEmits([
@@ -42,6 +56,9 @@ const emojiPickerWrapper = ref(null);
42
56
  const isOpened = ref(false);
43
57
  const picker = ref(null);
44
58
 
59
+ // Teleport's to prop is required even if it's disabled
60
+ const teleportValue = computed(() => props.popupTeleportTo || 'body');
61
+
45
62
  const initPicker = async () => {
46
63
  if (picker.value) return;
47
64
 
@@ -93,10 +110,18 @@ onBeforeUnmount(() => {
93
110
  .wt-chat-emoji {
94
111
  position: relative;
95
112
  width: 100%;
113
+ }
114
+
115
+ .wt-chat-emoji__wrapper {
116
+ position: absolute;
117
+ left: 50%;
118
+ bottom: calc(100% + var(--spacing-xs));
119
+ z-index: calc(var(--popup-wrapper-z-index) - 1);
120
+ }
96
121
 
97
- :deep() emoji-picker {
98
- --background: var(--content-wrapper-color);
99
- --border-color: var(--secondary-color);
100
- }
122
+ :deep() emoji-picker {
123
+ --background: var(--content-wrapper-color);
124
+ --border-color: var(--secondary-color);
125
+ transform: translateX(-50%);
101
126
  }
102
127
  </style>
@@ -1,13 +1,16 @@
1
1
  <template>
2
- <PAvatar
2
+ <PAvatar
3
3
  :class="[`p-avatar-${props.size}`]"
4
4
  :shape="props.shape"
5
- :label="avatarLetters"
6
- :style="{ background: `var(${avatarLettersBackground})`, color: `var(${avatarLettersColor})` }"
5
+ :style="{ background: `var(${avatarLettersBackground})`, color: `var(${avatarLettersColor})` }"
7
6
  class="wt-avatar"
8
7
  >
9
- <template #default>
10
- <wt-badge v-if="badge" :color-variable="badgeColorVar" :icon-badge="isBadge ? props.status : null" />
8
+ <template #default>
9
+ <wt-badge v-if="badge" :color-variable="badgeColorVar" :icon-badge="isBadge ? props.status : null" />
10
+
11
+ <span v-if="isLetterAvatar && !bot" class="wt-avatar__letters-text">
12
+ {{ avatarLetters }}
13
+ </span>
11
14
 
12
15
  <div
13
16
  v-if="bot"
@@ -19,9 +22,9 @@
19
22
  />
20
23
  </div>
21
24
 
22
- <img v-if="!isLetterAvatar && !bot" :src="imgSrc" alt="avatar" class="wt-avatar__img" />
23
- </template>
24
- </PAvatar>
25
+ <img v-if="!isLetterAvatar && !bot" :src="imgSrc" alt="avatar" class="wt-avatar__img" />
26
+ </template>
27
+ </PAvatar>
25
28
  </template>
26
29
 
27
30
  <script setup>
@@ -237,15 +240,6 @@ const badgeColorVar = computed(() => {
237
240
  user-select: none;
238
241
  }
239
242
 
240
- .wt-avatar__letters {
241
- display: flex;
242
- justify-content: center;
243
- align-items: center;
244
- border-radius: 50%;
245
- height: 100%;
246
- width: 100%;
247
- }
248
-
249
243
  .wt-avatar__img {
250
244
  border-radius: 50%;
251
245
  width: 100%;
@@ -260,4 +254,12 @@ const badgeColorVar = computed(() => {
260
254
  border-radius: 50%;
261
255
  background-color: var(--p-avatar-bot-background);
262
256
  }
257
+
258
+ .wt-avatar__letters-text {
259
+ display: flex;
260
+ justify-content: center;
261
+ align-items: center;
262
+ width: 100%;
263
+ height: 100%;
264
+ }
263
265
  </style>
@@ -5,6 +5,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
5
5
  type: StringConstructor;
6
6
  default: "md";
7
7
  };
8
+ /**
9
+ * @author HlukhovYe
10
+ * teleport popup to specific element, pass selector
11
+ * https://webitel.atlassian.net/browse/WTEL-8731
12
+ */
13
+ popupTeleportTo: {
14
+ type: StringConstructor;
15
+ default: string;
16
+ };
8
17
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
18
  "insert-emoji": (...args: any[]) => void;
10
19
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -12,8 +21,18 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
12
21
  type: StringConstructor;
13
22
  default: "md";
14
23
  };
24
+ /**
25
+ * @author HlukhovYe
26
+ * teleport popup to specific element, pass selector
27
+ * https://webitel.atlassian.net/browse/WTEL-8731
28
+ */
29
+ popupTeleportTo: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
15
33
  }>> & Readonly<{
16
34
  "onInsert-emoji"?: (...args: any[]) => any;
17
35
  }>, {
18
36
  size: string;
37
+ popupTeleportTo: string;
19
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;