@webitel/ui-sdk 26.4.55 → 26.4.56

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 (63) hide show
  1. package/dist/{index-DIbizsCF.js → index-B8uu3HCG.js} +1 -1
  2. package/dist/{index-DUvxbc74.js → index-rctF23bo.js} +1 -1
  3. package/dist/{install-b3LF2l6e.js → install-CWTO-pUl.js} +37 -37
  4. package/dist/{isObject-Df1QjwSr.js → isObject-D-VfzobZ.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 +37 -37
  8. package/dist/{useVidstackSrc-r5eaGiNI.js → useVidstackSrc-CuVEfjHt.js} +1 -1
  9. package/dist/{vidstack-Bq6c3Bam-DUhOSZ5b.js → vidstack-Bq6c3Bam-Cy2CxGIU.js} +3 -3
  10. package/dist/{vidstack-D2pY00kU--9OviSIY.js → vidstack-D2pY00kU-CkuczmHF.js} +3 -3
  11. package/dist/{vidstack-DDXt6fpN-DAHT4IlN.js → vidstack-DDXt6fpN-Dzn05oCd.js} +2 -2
  12. package/dist/{vidstack-D_-9AA6_-4NXefQZ2.js → vidstack-D_-9AA6_-pcom8VxP.js} +2 -2
  13. package/dist/{vidstack-DqAw8m9J-DykxUivk.js → vidstack-DqAw8m9J-Bu5RKaAM.js} +1 -1
  14. package/dist/{vidstack-audio-CAtkbhyu.js → vidstack-audio-CUprbLLi.js} +2 -2
  15. package/dist/{vidstack-dash-_VUyXBlM.js → vidstack-dash-D_Dc0Q9b.js} +4 -4
  16. package/dist/{vidstack-google-cast-CjaT-bOh.js → vidstack-google-cast-ioFZMQ4m.js} +4 -4
  17. package/dist/{vidstack-hls-BLwPZsJT.js → vidstack-hls-CpuPBnp6.js} +4 -4
  18. package/dist/{vidstack-video-C4Nn4Tci.js → vidstack-video-BoKxFvDa.js} +3 -3
  19. package/dist/{vidstack-vimeo-BM6Grb7n.js → vidstack-vimeo-D_1_z3Ro.js} +4 -4
  20. package/dist/{vidstack-youtube-DKIF9ZLF.js → vidstack-youtube-aJmMeQgI.js} +3 -3
  21. package/dist/{wt-action-bar-BUTecaFM.js → wt-action-bar-9zvLlAt-.js} +1 -1
  22. package/dist/{wt-button-select-_sP7TEjh.js → wt-button-select-x9AAytVC.js} +1 -1
  23. package/dist/{wt-call-media-action-B754SWie.js → wt-call-media-action-D4435-Ke.js} +1 -1
  24. package/dist/{wt-chat-emoji-8kgugJp3.js → wt-chat-emoji-BaDigRYo.js} +2 -2
  25. package/dist/{wt-confirm-dialog-Dfn8LBqD.js → wt-confirm-dialog-Cqkb032H.js} +1 -1
  26. package/dist/{wt-context-menu-CM6Uy8E_.js → wt-context-menu-BfQ2PKIT.js} +1 -1
  27. package/dist/{wt-copy-action-BBCJFKTA.js → wt-copy-action-E7U1jVaj.js} +1 -1
  28. package/dist/{wt-datepicker-CEg7Bz8f.js → wt-datepicker-_KueScup.js} +1 -1
  29. package/dist/{wt-display-chip-items-i4Sofmjw.js → wt-display-chip-items-CYMFBJgX.js} +1 -1
  30. package/dist/{wt-dual-panel-BKHIz6GE.js → wt-dual-panel-Ct8_taN9.js} +1 -1
  31. package/dist/{wt-dummy-CrbQHj7e.js → wt-dummy-C2aEuVqm.js} +1 -1
  32. package/dist/{wt-error-page-C6Ffq5UN.js → wt-error-page-B7gPk7DD.js} +1 -1
  33. package/dist/{wt-expansion-card-vo-1_anD.js → wt-expansion-card-c6NOlFGJ.js} +1 -1
  34. package/dist/{wt-expansion-panel-MH-Ck5c9.js → wt-expansion-panel-uthnUrMd.js} +1 -1
  35. package/dist/{wt-filters-panel-wrapper-Cufdyl3l.js → wt-filters-panel-wrapper-BxBggj5F.js} +1 -1
  36. package/dist/{wt-galleria-CJA4YRIH.js → wt-galleria-C7FfZ8_9.js} +1 -1
  37. package/dist/{wt-inline-add-panel-C_YL_gEc.js → wt-inline-add-panel-CZbmrk-H.js} +1 -1
  38. package/dist/{wt-navigation-menu-Z8miYMLM.js → wt-navigation-menu-CJA6HtI2.js} +1 -1
  39. package/dist/{wt-notifications-bar-Bi_GUm8d.js → wt-notifications-bar-C25Il3Nr.js} +2 -2
  40. package/dist/{wt-pagination-Cr5FWOMe.js → wt-pagination-32qDY1oa.js} +1 -1
  41. package/dist/{wt-player-DTDnFI9y.js → wt-player-C28zc2Uv.js} +2 -2
  42. package/dist/{wt-screen-recordings-action-ByIvxs0u.js → wt-screen-recordings-action-Ac7uh_ZK.js} +1 -1
  43. package/dist/{wt-search-bar-D9HsQwYk.js → wt-search-bar-Cd7LGTao.js} +1 -1
  44. package/dist/{wt-selection-popup-DIEAkxye.js → wt-selection-popup-DkJE4AOc.js} +1 -1
  45. package/dist/{wt-start-page-Ccnkc45u.js → wt-start-page-C-HrzciV.js} +1 -1
  46. package/dist/{wt-status-select-nrzAML3-.js → wt-status-select-COi8eNE7.js} +1 -1
  47. package/dist/{wt-stepper-Cuuwczjp.js → wt-stepper-5luJYzx3.js} +1 -1
  48. package/dist/{wt-table-CeV_WB5D.js → wt-table-Be4iV5NL.js} +1 -1
  49. package/dist/{wt-table-actions-BQVB7ALh.js → wt-table-actions-BUg3lMIr.js} +1 -1
  50. package/dist/{wt-table-column-select-C4AY_Nyy.js → wt-table-column-select-TYUbysDN.js} +2 -2
  51. package/dist/{wt-tabs-D_6GZBjk.js → wt-tabs-DncYE6wM.js} +1 -1
  52. package/dist/{wt-tags-input-BhsvaOnv.js → wt-tags-input-CjJfyyNS.js} +2 -2
  53. package/dist/{wt-timepicker-g4BcXrO5.js → wt-timepicker-BfShY4UJ.js} +1 -1
  54. package/dist/{wt-tree-CmvdV2AP.js → wt-tree-pMseCygd.js} +2 -2
  55. package/dist/{wt-tree-table-Cy8Ps3Cw.js → wt-tree-table-7IVpIxuI.js} +1 -1
  56. package/dist/{wt-type-extension-value-input-nuNyA7mx.js → wt-type-extension-value-input-CTBNgZiS.js} +2 -2
  57. package/dist/{wt-vidstack-player-CuYDziPr.js → wt-vidstack-player-DwVI19sF.js} +1033 -1030
  58. package/package.json +1 -1
  59. package/src/components/wt-vidstack-player/components/buttons/fullscreen-button.vue +20 -10
  60. package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +2 -1
  61. package/src/components/wt-vidstack-player/types/WtVidstackPlayerSizeProvider.ts +1 -0
  62. package/src/components/wt-vidstack-player/wt-vidstack-player.vue +13 -1
  63. package/types/components/wt-vidstack-player/types/WtVidstackPlayerSizeProvider.d.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.4.55",
3
+ "version": "26.4.56",
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",
@@ -1,8 +1,8 @@
1
1
  <template>
2
- <media-fullscreen-button
2
+ <div
3
3
  class="fullscreen-button"
4
- @media-enter-fullscreen-request="emit('toggle', true)"
5
- @media-exit-fullscreen-request="emit('toggle', false)"
4
+ :class="{ 'fullscreen-button--active': fullscreen }"
5
+ @click="emit('toggle', !fullscreen)"
6
6
  >
7
7
  <wt-icon-btn
8
8
  icon="player-enter-fullscreen"
@@ -14,13 +14,15 @@
14
14
  color="on-dark"
15
15
  class="fullscreen-button__exit"
16
16
  />
17
- </media-fullscreen-button>
17
+ </div>
18
18
  </template>
19
19
 
20
20
  <script setup lang="ts">
21
- import { defineEmits } from 'vue';
22
-
21
+ import { inject } from 'vue';
23
22
  import WtIconBtn from '../../../wt-icon-btn/wt-icon-btn.vue';
23
+ import type { WtVidstackPlayerSizeProvider } from '../../types/WtVidstackPlayerSizeProvider';
24
+
25
+ const { fullscreen } = inject<WtVidstackPlayerSizeProvider>('size');
24
26
 
25
27
  const emit = defineEmits<{
26
28
  toggle: [
@@ -29,7 +31,15 @@ const emit = defineEmits<{
29
31
  }>();
30
32
  </script>
31
33
 
32
- <style scoped>.fullscreen-button[data-active] .fullscreen-button__enter,
33
- .fullscreen-button:not([data-active]) .fullscreen-button__exit {
34
- display: none;
35
- }</style>
34
+ <style scoped>
35
+ .fullscreen-button {
36
+ display: inline-flex;
37
+ padding: 0;
38
+ cursor: pointer;
39
+ }
40
+
41
+ .fullscreen-button--active .fullscreen-button__enter,
42
+ .fullscreen-button:not(.fullscreen-button--active) .fullscreen-button__exit {
43
+ display: none;
44
+ }
45
+ </style>
@@ -58,7 +58,7 @@ import type { WtVidstackPlayerSizeProvider } from '../../../types/WtVidstackPlay
58
58
  import FullscreenButton from '../../buttons/fullscreen-button.vue';
59
59
  import ToggleButton from '../../toggle-button.vue';
60
60
 
61
- const { size, fullscreen, changeSize } =
61
+ const { size, fullscreen, changeSize, enterFullscreen } =
62
62
  inject<WtVidstackPlayerSizeProvider>('size');
63
63
 
64
64
  const toggleIcon = computed(() =>
@@ -81,6 +81,7 @@ const handleFullscreen = (value: boolean) => {
81
81
  if (size.value !== ComponentSize.LG) {
82
82
  fullscreen.value = true;
83
83
  changeSize(ComponentSize.LG);
84
+ enterFullscreen();
84
85
  }
85
86
  } else if (size.value === ComponentSize.LG) {
86
87
  exitFullscreen();
@@ -6,4 +6,5 @@ export interface WtVidstackPlayerSizeProvider {
6
6
  size: Ref<ComponentSize>;
7
7
  fullscreen: Ref<boolean>;
8
8
  changeSize: (value: ComponentSize) => void;
9
+ enterFullscreen: () => void;
9
10
  }
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <div
3
+ ref="root"
3
4
  :class="rootClasses"
4
5
  class="wt-vidstack-player"
5
6
  >
@@ -48,7 +49,7 @@
48
49
  import 'vidstack/player';
49
50
  import 'vidstack/player/ui';
50
51
  import type { MediaSrc } from 'vidstack';
51
- import { computed, provide, ref, toRefs } from 'vue';
52
+ import { computed, provide, ref, toRefs, useTemplateRef } from 'vue';
52
53
 
53
54
  import { ComponentSize } from '../../enums';
54
55
  import { VideoLayout } from './components';
@@ -96,6 +97,7 @@ const emit = defineEmits<{
96
97
  }>();
97
98
 
98
99
  // const player = useTemplateRef<MediaPlayerElement>('player');
100
+ const rootEl = useTemplateRef<HTMLElement>('root');
99
101
  const size = ref(props.size || ComponentSize.SM);
100
102
  const fullscreen = ref(false);
101
103
 
@@ -104,6 +106,10 @@ const changeSize = (value) => {
104
106
  emit('change-size', value);
105
107
  };
106
108
 
109
+ const enterFullscreen = () => {
110
+ rootEl.value?.requestFullscreen();
111
+ };
112
+
107
113
  /** @author liza-pohranichna
108
114
  * options: [sm, md, lg]
109
115
  */
@@ -111,6 +117,7 @@ provide('size', {
111
117
  size,
112
118
  fullscreen,
113
119
  changeSize,
120
+ enterFullscreen,
114
121
  });
115
122
 
116
123
  const { src: srcRef, mime: typeRef, stream: streamRef } = toRefs(props);
@@ -265,6 +272,7 @@ const onCanPlay = (ev: Event) => {
265
272
  .wt-vidstack-player--lg .wt-vidstack-player__player {
266
273
  display: flex;
267
274
  align-items: center;
275
+ min-height: 100%;
268
276
  }
269
277
 
270
278
  .wt-vidstack-player--lg .wt-vidstack-player__provider {
@@ -276,6 +284,10 @@ const onCanPlay = (ev: Event) => {
276
284
  border-radius: 0;
277
285
  }
278
286
 
287
+ .wt-vidstack-player--fullscreen .wt-vidstack-player__provider :deep(video) {
288
+ border-radius: 0;
289
+ }
290
+
279
291
  .wt-vidstack-player--static {
280
292
  position: relative;
281
293
  z-index: 1;
@@ -4,4 +4,5 @@ export interface WtVidstackPlayerSizeProvider {
4
4
  size: Ref<ComponentSize>;
5
5
  fullscreen: Ref<boolean>;
6
6
  changeSize: (value: ComponentSize) => void;
7
+ enterFullscreen: () => void;
7
8
  }