@webitel/ui-sdk 2.0.13 → 2.0.14-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 +38 -27
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +36 -25
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +3 -3
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +2 -2
- package/src/components/atoms/wt-indicator/wt-indicator.vue +7 -2
- package/src/components/molecules/wt-select/wt-select.vue +1 -1
- package/src/components/organisms/wt-player/wt-player.vue +27 -3
- package/src/locale/en/en.js +12 -1
- package/src/locale/ru/ru.js +11 -1
- package/src/locale/ua/ua.js +11 -1
- package/src/modules/Userinfo/store/UserinfoStoreModule.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14-3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve-lib": "vue-cli-service serve",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"vue-observe-visibility": "^1.0.0",
|
|
45
45
|
"vue-router": "^3.2.0",
|
|
46
46
|
"vuejs-datepicker": "^1.6.2",
|
|
47
|
-
"webitel-sdk": "^0.1.
|
|
47
|
+
"webitel-sdk": "^0.1.130"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@babel/eslint-parser": "^7.17.0",
|
|
@@ -24,7 +24,7 @@ export default {
|
|
|
24
24
|
color: {
|
|
25
25
|
type: String,
|
|
26
26
|
default: 'secondary',
|
|
27
|
-
options: ['primary', 'secondary', 'disabled', 'success', 'danger', 'transfer', 'break-out'],
|
|
27
|
+
options: ['primary', 'secondary', 'accent', 'disabled', 'success', 'danger', 'transfer', 'break-out', 'job'],
|
|
28
28
|
},
|
|
29
29
|
text: {
|
|
30
30
|
type: [String, Number],
|
|
@@ -62,7 +62,8 @@ export default {
|
|
|
62
62
|
background: var(--indicator-disabled-color);
|
|
63
63
|
border-radius: 50%;
|
|
64
64
|
|
|
65
|
-
&--primary
|
|
65
|
+
&--primary,
|
|
66
|
+
&--accent {
|
|
66
67
|
background: var(--indicator-primary-color);
|
|
67
68
|
}
|
|
68
69
|
|
|
@@ -89,6 +90,10 @@ export default {
|
|
|
89
90
|
&--break-out {
|
|
90
91
|
background: var(--indicator-break-out-color);
|
|
91
92
|
}
|
|
93
|
+
|
|
94
|
+
&--job {
|
|
95
|
+
background: var(--job-color);
|
|
96
|
+
}
|
|
92
97
|
}
|
|
93
98
|
|
|
94
99
|
.wt-indicator--size {
|
|
@@ -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);
|
package/src/locale/en/en.js
CHANGED
|
@@ -28,6 +28,7 @@ export default {
|
|
|
28
28
|
name: 'Name',
|
|
29
29
|
expand: 'Expand',
|
|
30
30
|
collapse: 'Collapse',
|
|
31
|
+
generate: 'Generate',
|
|
31
32
|
lang: {
|
|
32
33
|
en: 'English',
|
|
33
34
|
ru: 'Русский',
|
|
@@ -35,6 +36,15 @@ export default {
|
|
|
35
36
|
},
|
|
36
37
|
from: 'From',
|
|
37
38
|
to: 'To',
|
|
39
|
+
tts: 'Text-to-Speech',
|
|
40
|
+
state: 'State',
|
|
41
|
+
},
|
|
42
|
+
// yak zhe ya zaebalsya povtoriaty odni i ti sami slova!!!!
|
|
43
|
+
vocabulary: {
|
|
44
|
+
language: 'Language',
|
|
45
|
+
voice: 'Voice',
|
|
46
|
+
format: 'Format',
|
|
47
|
+
text: 'Text',
|
|
38
48
|
},
|
|
39
49
|
// date-related texts
|
|
40
50
|
date: {
|
|
@@ -55,7 +65,8 @@ export default {
|
|
|
55
65
|
[QueueType.PROGRESSIVE_DIALER]: 'Progressive dialer',
|
|
56
66
|
[QueueType.PREVIEW_DIALER]: 'Preview dialer',
|
|
57
67
|
[QueueType.CHAT_INBOUND_QUEUE]: 'Chat queue',
|
|
58
|
-
[QueueType.
|
|
68
|
+
[QueueType.INBOUND_JOB_QUEUE]: 'Inbound job queue',
|
|
69
|
+
[QueueType.OUTBOUND_JOB_QUEUE]: 'Outbound job queue',
|
|
59
70
|
},
|
|
60
71
|
},
|
|
61
72
|
agent: {
|
package/src/locale/ru/ru.js
CHANGED
|
@@ -28,6 +28,7 @@ export default {
|
|
|
28
28
|
name: 'Имя',
|
|
29
29
|
expand: 'Развернуть',
|
|
30
30
|
collapse: 'Свернуть',
|
|
31
|
+
generate: 'Сгенерировать',
|
|
31
32
|
lang: {
|
|
32
33
|
en: 'English',
|
|
33
34
|
ru: 'Русский',
|
|
@@ -35,6 +36,14 @@ export default {
|
|
|
35
36
|
},
|
|
36
37
|
from: 'От',
|
|
37
38
|
to: 'До',
|
|
39
|
+
tts: 'Text-to-Speech',
|
|
40
|
+
state: 'Состояние',
|
|
41
|
+
},
|
|
42
|
+
vocabulary: {
|
|
43
|
+
language: 'Язык',
|
|
44
|
+
voice: 'Голос',
|
|
45
|
+
format: 'Формат',
|
|
46
|
+
text: 'Текст',
|
|
38
47
|
},
|
|
39
48
|
// date-related texts
|
|
40
49
|
date: {
|
|
@@ -55,7 +64,8 @@ export default {
|
|
|
55
64
|
[QueueType.PROGRESSIVE_DIALER]: 'Прогрессивный обзвон',
|
|
56
65
|
[QueueType.PREVIEW_DIALER]: 'Превью обзвон',
|
|
57
66
|
[QueueType.CHAT_INBOUND_QUEUE]: 'Очередь чатов',
|
|
58
|
-
[QueueType.
|
|
67
|
+
[QueueType.INBOUND_JOB_QUEUE]: 'Входящая очередь заданий',
|
|
68
|
+
[QueueType.OUTBOUND_JOB_QUEUE]: 'Исходящая очередь заданий',
|
|
59
69
|
},
|
|
60
70
|
},
|
|
61
71
|
agent: {
|
package/src/locale/ua/ua.js
CHANGED
|
@@ -28,6 +28,7 @@ export default {
|
|
|
28
28
|
name: 'Ім\'я',
|
|
29
29
|
expand: 'Розгорнути',
|
|
30
30
|
collapse: 'Згорнути',
|
|
31
|
+
generate: 'Згенерувати',
|
|
31
32
|
lang: {
|
|
32
33
|
en: 'English',
|
|
33
34
|
ru: 'Русский',
|
|
@@ -35,6 +36,14 @@ export default {
|
|
|
35
36
|
},
|
|
36
37
|
from: 'Від',
|
|
37
38
|
to: 'До',
|
|
39
|
+
tts: 'Text-to-Speech',
|
|
40
|
+
state: 'Стан',
|
|
41
|
+
},
|
|
42
|
+
vocabulary: {
|
|
43
|
+
language: 'Мова',
|
|
44
|
+
voice: 'Голос',
|
|
45
|
+
format: 'Формат',
|
|
46
|
+
text: 'Текст',
|
|
38
47
|
},
|
|
39
48
|
// date-related texts
|
|
40
49
|
date: {
|
|
@@ -55,7 +64,8 @@ export default {
|
|
|
55
64
|
[QueueType.PROGRESSIVE_DIALER]: 'Прогресивний обзвін',
|
|
56
65
|
[QueueType.PREVIEW_DIALER]: 'Прев\'ю обзвін',
|
|
57
66
|
[QueueType.CHAT_INBOUND_QUEUE]: 'Черга чатів',
|
|
58
|
-
[QueueType.
|
|
67
|
+
[QueueType.INBOUND_JOB_QUEUE]: 'Вхідна черга завдань',
|
|
68
|
+
[QueueType.OUTBOUND_JOB_QUEUE]: 'Вихідна черга завдань',
|
|
59
69
|
},
|
|
60
70
|
},
|
|
61
71
|
agent: {
|