@webitel/ui-sdk 2.0.13-1 → 2.0.13-4
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/ui-sdk.common.js +29 -18
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +27 -16
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +2 -2
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/wt-select/wt-select.vue +1 -1
- package/src/components/organisms/wt-player/wt-player.vue +27 -3
package/package.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<aside
|
|
2
|
+
<aside
|
|
3
|
+
class="wt-player"
|
|
4
|
+
:class="[`wt-player--position-${position}`]"
|
|
5
|
+
>
|
|
3
6
|
<component
|
|
4
7
|
:is="playerType"
|
|
5
8
|
class="wt-player__player"
|
|
@@ -12,6 +15,7 @@
|
|
|
12
15
|
|
|
13
16
|
<!-- The "wt-icon-btn" component is append in to "audio" element by "setCloseIcon" method-->
|
|
14
17
|
<wt-icon-btn
|
|
18
|
+
v-if="closable"
|
|
15
19
|
class="wt-player__close-icon"
|
|
16
20
|
ref="close-icon"
|
|
17
21
|
icon="close"
|
|
@@ -57,6 +61,14 @@ export default {
|
|
|
57
61
|
type: Boolean,
|
|
58
62
|
default: false,
|
|
59
63
|
},
|
|
64
|
+
closable: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: true,
|
|
67
|
+
},
|
|
68
|
+
position: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: 'sticky',
|
|
71
|
+
},
|
|
60
72
|
},
|
|
61
73
|
data: () => ({
|
|
62
74
|
player: null,
|
|
@@ -111,7 +123,7 @@ export default {
|
|
|
111
123
|
if (this.resetVolume) this.makeVolumeReset();
|
|
112
124
|
if (this.download) this.setupDownload();
|
|
113
125
|
|
|
114
|
-
this.appendCloseIcon();
|
|
126
|
+
if (this.closable) this.appendCloseIcon();
|
|
115
127
|
this.$emit('initialized', this.player);
|
|
116
128
|
},
|
|
117
129
|
makeVolumeReset() {
|
|
@@ -142,9 +154,21 @@ export default {
|
|
|
142
154
|
|
|
143
155
|
.wt-player {
|
|
144
156
|
@extend %typo-body-2;
|
|
145
|
-
position: sticky;
|
|
146
157
|
bottom: 60px;
|
|
147
158
|
|
|
159
|
+
&--position {
|
|
160
|
+
&-sticky {
|
|
161
|
+
position: sticky;
|
|
162
|
+
}
|
|
163
|
+
&-relative {
|
|
164
|
+
position: relative;
|
|
165
|
+
bottom: unset;
|
|
166
|
+
}
|
|
167
|
+
&-static {
|
|
168
|
+
position: static;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
148
172
|
.plyr {
|
|
149
173
|
max-width: 100%; // prevents <video> container overflow
|
|
150
174
|
border-radius: var(--border-radius);
|