@webitel/ui-sdk 2.0.13-2 → 2.0.13-3
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 +17 -5
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +17 -5
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +1 -1
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/organisms/wt-player/wt-player.vue +26 -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,
|
|
@@ -142,8 +154,19 @@ export default {
|
|
|
142
154
|
|
|
143
155
|
.wt-player {
|
|
144
156
|
@extend %typo-body-2;
|
|
145
|
-
|
|
146
|
-
|
|
157
|
+
|
|
158
|
+
&--position {
|
|
159
|
+
&-sticky {
|
|
160
|
+
position: sticky;
|
|
161
|
+
bottom: 60px;
|
|
162
|
+
}
|
|
163
|
+
&-relative {
|
|
164
|
+
position: relative;
|
|
165
|
+
}
|
|
166
|
+
&-static {
|
|
167
|
+
position: static;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
147
170
|
|
|
148
171
|
.plyr {
|
|
149
172
|
max-width: 100%; // prevents <video> container overflow
|