@webitel/ui-sdk 26.4.55 → 26.4.57
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/{index-DIbizsCF.js → index-Df3_k3NF.js} +1 -1
- package/dist/{index-DUvxbc74.js → index-zWPKR1ZP.js} +1 -1
- package/dist/{install-b3LF2l6e.js → install-Sbp7aowq.js} +37 -37
- package/dist/{isObject-Df1QjwSr.js → isObject-ClehCu-l.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +37 -37
- package/dist/{useVidstackSrc-r5eaGiNI.js → useVidstackSrc-ClO9wg8K.js} +1 -1
- package/dist/{vidstack-Bq6c3Bam-DUhOSZ5b.js → vidstack-Bq6c3Bam-BlM-7O48.js} +3 -3
- package/dist/{vidstack-D2pY00kU--9OviSIY.js → vidstack-D2pY00kU-BtzWINpM.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-DAHT4IlN.js → vidstack-DDXt6fpN-C5yRKA6_.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-4NXefQZ2.js → vidstack-D_-9AA6_-B95XIo3A.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-DykxUivk.js → vidstack-DqAw8m9J-DYmsrmBA.js} +1 -1
- package/dist/{vidstack-audio-CAtkbhyu.js → vidstack-audio-CunZzuoA.js} +2 -2
- package/dist/{vidstack-dash-_VUyXBlM.js → vidstack-dash-CAayip9g.js} +4 -4
- package/dist/{vidstack-google-cast-CjaT-bOh.js → vidstack-google-cast-BhQBxTy2.js} +4 -4
- package/dist/{vidstack-hls-BLwPZsJT.js → vidstack-hls-Bz2R-jGA.js} +4 -4
- package/dist/{vidstack-video-C4Nn4Tci.js → vidstack-video-B5GT5ihH.js} +3 -3
- package/dist/{vidstack-vimeo-BM6Grb7n.js → vidstack-vimeo-D5gofr3Q.js} +4 -4
- package/dist/{vidstack-youtube-DKIF9ZLF.js → vidstack-youtube-DbpdP00r.js} +3 -3
- package/dist/{wt-action-bar-BUTecaFM.js → wt-action-bar-K9OWJpOL.js} +1 -1
- package/dist/{wt-button-select-_sP7TEjh.js → wt-button-select-DLTqAJeJ.js} +1 -1
- package/dist/{wt-call-media-action-B754SWie.js → wt-call-media-action-cLMdvpkk.js} +1 -1
- package/dist/{wt-chat-emoji-8kgugJp3.js → wt-chat-emoji-BMQfL9X3.js} +2 -2
- package/dist/{wt-confirm-dialog-Dfn8LBqD.js → wt-confirm-dialog-CvyV8msD.js} +1 -1
- package/dist/{wt-context-menu-CM6Uy8E_.js → wt-context-menu-CpZ2CzY0.js} +1 -1
- package/dist/{wt-copy-action-BBCJFKTA.js → wt-copy-action-C33Rf1SF.js} +1 -1
- package/dist/{wt-datepicker-CEg7Bz8f.js → wt-datepicker-CNFoZn3e.js} +1 -1
- package/dist/{wt-display-chip-items-i4Sofmjw.js → wt-display-chip-items-GWB6Q8dy.js} +1 -1
- package/dist/{wt-dual-panel-BKHIz6GE.js → wt-dual-panel-DmRI5XiN.js} +1 -1
- package/dist/{wt-dummy-CrbQHj7e.js → wt-dummy-Btmg48Xk.js} +1 -1
- package/dist/{wt-error-page-C6Ffq5UN.js → wt-error-page-zL3IkviW.js} +1 -1
- package/dist/{wt-expansion-card-vo-1_anD.js → wt-expansion-card-CTzjc-1W.js} +1 -1
- package/dist/{wt-expansion-panel-MH-Ck5c9.js → wt-expansion-panel-D9yaIL8F.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-Cufdyl3l.js → wt-filters-panel-wrapper-BOBOOdd7.js} +1 -1
- package/dist/{wt-galleria-CJA4YRIH.js → wt-galleria-BowpxD9N.js} +1 -1
- package/dist/{wt-inline-add-panel-C_YL_gEc.js → wt-inline-add-panel-BJyEtl_1.js} +1 -1
- package/dist/{wt-navigation-menu-Z8miYMLM.js → wt-navigation-menu-BA-D1Ftl.js} +1 -1
- package/dist/{wt-notifications-bar-Bi_GUm8d.js → wt-notifications-bar-7YTH7-WG.js} +2 -2
- package/dist/{wt-pagination-Cr5FWOMe.js → wt-pagination-pL2i5l-m.js} +1 -1
- package/dist/{wt-player-DTDnFI9y.js → wt-player-B89hXXhe.js} +2 -2
- package/dist/{wt-screen-recordings-action-ByIvxs0u.js → wt-screen-recordings-action-DfKtQy3U.js} +1 -1
- package/dist/{wt-search-bar-D9HsQwYk.js → wt-search-bar-Ce09h1wL.js} +1 -1
- package/dist/{wt-selection-popup-DIEAkxye.js → wt-selection-popup-DHk5d0XG.js} +1 -1
- package/dist/{wt-start-page-Ccnkc45u.js → wt-start-page-B5tNQh7b.js} +1 -1
- package/dist/{wt-status-select-nrzAML3-.js → wt-status-select-BFVtbXHt.js} +1 -1
- package/dist/{wt-stepper-Cuuwczjp.js → wt-stepper-Dch5zqwf.js} +1 -1
- package/dist/{wt-table-CeV_WB5D.js → wt-table-DZsynLod.js} +1 -1
- package/dist/{wt-table-actions-BQVB7ALh.js → wt-table-actions-B_wgsJiY.js} +1 -1
- package/dist/{wt-table-column-select-C4AY_Nyy.js → wt-table-column-select-D2niYDeI.js} +2 -2
- package/dist/{wt-tabs-D_6GZBjk.js → wt-tabs-CUDtNLN7.js} +1 -1
- package/dist/{wt-tags-input-BhsvaOnv.js → wt-tags-input-Dp1kXte5.js} +2 -2
- package/dist/{wt-timepicker-g4BcXrO5.js → wt-timepicker-DvGBVwy0.js} +1 -1
- package/dist/{wt-tree-CmvdV2AP.js → wt-tree-B8O0F8aU.js} +2 -2
- package/dist/{wt-tree-table-Cy8Ps3Cw.js → wt-tree-table-BWK5cUXK.js} +1 -1
- package/dist/{wt-type-extension-value-input-nuNyA7mx.js → wt-type-extension-value-input-CYzHcmqX.js} +4 -3
- package/dist/{wt-vidstack-player-CuYDziPr.js → wt-vidstack-player-BZfPWV-j.js} +1033 -1030
- package/package.json +1 -1
- package/src/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue +15 -14
- package/src/components/wt-vidstack-player/components/buttons/fullscreen-button.vue +20 -10
- package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +2 -1
- package/src/components/wt-vidstack-player/types/WtVidstackPlayerSizeProvider.ts +1 -0
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +13 -1
- package/types/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue.d.ts +1 -0
- 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.
|
|
3
|
+
"version": "26.4.57",
|
|
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",
|
package/src/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue
CHANGED
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
v-else-if="field.kind === FieldType.Select"
|
|
27
27
|
:name="FieldType.Select"
|
|
28
28
|
:default-props="{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
...sharedChildrenProps,
|
|
30
|
+
...selectProps,
|
|
31
|
+
value,
|
|
32
|
+
}"
|
|
33
33
|
>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
<wt-select
|
|
35
|
+
v-bind="sharedChildrenProps"
|
|
36
|
+
:value="value"
|
|
37
|
+
:search-method="loadLookupList(field.lookup)"
|
|
38
|
+
track-by="id"
|
|
39
|
+
clearable
|
|
40
|
+
@input="selectElement"
|
|
41
|
+
/>
|
|
42
42
|
</slot>
|
|
43
43
|
<slot
|
|
44
44
|
v-else-if="field.kind === FieldType.Multiselect"
|
|
@@ -85,6 +85,7 @@ const model = defineModel<unknown>();
|
|
|
85
85
|
|
|
86
86
|
const props = defineProps<{
|
|
87
87
|
field: WebitelProtoDataField;
|
|
88
|
+
label?: string;
|
|
88
89
|
required?: boolean;
|
|
89
90
|
/**
|
|
90
91
|
* TODO: implement validation
|
|
@@ -95,11 +96,11 @@ const props = defineProps<{
|
|
|
95
96
|
const { t } = useI18n();
|
|
96
97
|
|
|
97
98
|
const label = computed(() => {
|
|
98
|
-
return t(props.field?.name || 'vocabulary.labels');
|
|
99
|
+
return props.label || t(props.field?.name || 'vocabulary.labels');
|
|
99
100
|
});
|
|
100
101
|
|
|
101
102
|
const isRequired = computed(() => {
|
|
102
|
-
return props.required
|
|
103
|
+
return props.required ?? props.field.required;
|
|
103
104
|
});
|
|
104
105
|
|
|
105
106
|
const value = computed(() => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<div
|
|
3
3
|
class="fullscreen-button"
|
|
4
|
-
|
|
5
|
-
@
|
|
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
|
-
</
|
|
17
|
+
</div>
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<script setup lang="ts">
|
|
21
|
-
import {
|
|
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
|
|
33
|
-
.fullscreen-button
|
|
34
|
-
display:
|
|
35
|
-
|
|
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();
|
|
@@ -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;
|