@webitel/ui-sdk 2.0.13 → 2.0.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "2.0.13",
3
+ "version": "2.0.14",
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.128"
47
+ "webitel-sdk": "^0.1.130"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@babel/eslint-parser": "^7.17.0",
@@ -23,7 +23,7 @@
23
23
  :allow-empty="allowEmpty"
24
24
  :disabled="disabled"
25
25
  :internal-search="!searchMethod"
26
- :label="optionLabel"
26
+ :label="trackBy ? optionLabel : null"
27
27
  :limit="1"
28
28
  :limit-text="(count) => `+${count}`"
29
29
  :loading="false"
@@ -91,6 +91,7 @@ export default {
91
91
  return this.user.name || this.user.username;
92
92
  },
93
93
  userAccount() {
94
+ console.info(this.user, this.user.preferredUsername);
94
95
  return this.user.preferredUsername || this.user.account;
95
96
  },
96
97
  buildVersion() {
@@ -1,5 +1,8 @@
1
1
  <template>
2
- <aside class="wt-player">
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);
@@ -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.TASK_QUEUE]: 'Task queue',
68
+ [QueueType.INBOUND_JOB_QUEUE]: 'Inbound job queue',
69
+ [QueueType.OUTBOUND_JOB_QUEUE]: 'Outbound job queue',
59
70
  },
60
71
  },
61
72
  agent: {
@@ -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.TASK_QUEUE]: 'Очередь задач',
67
+ [QueueType.INBOUND_JOB_QUEUE]: 'Входящая очередь заданий',
68
+ [QueueType.OUTBOUND_JOB_QUEUE]: 'Исходящая очередь заданий',
59
69
  },
60
70
  },
61
71
  agent: {
@@ -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.TASK_QUEUE]: 'Черга задач',
67
+ [QueueType.INBOUND_JOB_QUEUE]: 'Вхідна черга завдань',
68
+ [QueueType.OUTBOUND_JOB_QUEUE]: 'Вихідна черга завдань',
59
69
  },
60
70
  },
61
71
  agent: {