@webitel/ui-sdk 0.9.65 → 0.9.66

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": "0.9.65",
3
+ "version": "0.9.66",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -41,7 +41,7 @@
41
41
  "vue-observe-visibility": "^1.0.0",
42
42
  "vue-router": "^3.2.0",
43
43
  "vuejs-datepicker": "^1.6.2",
44
- "webitel-sdk": "^0.1.84"
44
+ "webitel-sdk": "^0.1.91"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@testing-library/jest-dom": "^5.11.4",
@@ -11,7 +11,7 @@
11
11
  color: {
12
12
  type: String,
13
13
  default: 'main',
14
- options: ['main', 'outline', 'accent', 'secondary', 'success', 'danger', 'transfer'],
14
+ options: ['main', 'outline', 'accent', 'secondary', 'secondary-50', 'success', 'danger', 'transfer'],
15
15
  notes: '"main" and "outline" are badge-specific colors',
16
16
  },
17
17
  },
@@ -22,6 +22,10 @@
22
22
  background: var(--secondary-color);
23
23
  }
24
24
 
25
+ &--secondary-50-color {
26
+ background: var(--secondary-color-50);
27
+ }
28
+
25
29
  &--success-color {
26
30
  background: var(--true-color);
27
31
  }
@@ -1,9 +1,14 @@
1
- import { AgentStatus, CallDirection } from 'webitel-sdk';
1
+ import {
2
+ AgentStatus,
3
+ CallDirection,
4
+ ChannelState,
5
+ ChannelType,
6
+ } from 'webitel-sdk';
2
7
  import { QueueType } from 'webitel-sdk/esm2015/enums';
3
- import { snakeToCamel } from '../../scripts/caseConverters';
4
8
  import AdminSections from '../../enums/WebitelApplications/AdminSections.enum';
5
9
  import SupervisorSections from '../../enums/WebitelApplications/SupervisorSections.enum';
6
10
  import WebitelApplications from '../../enums/WebitelApplications/WebitelApplications.enum';
11
+ import { snakeToCamel } from '../../scripts/caseConverters';
7
12
 
8
13
  export default {
9
14
  // describes reusable buttons, actions, default titles, and other ui elements
@@ -58,6 +63,26 @@ export default {
58
63
  },
59
64
  },
60
65
  },
66
+ channel: {
67
+ state: {
68
+ [ChannelState.Waiting]: 'Waiting',
69
+ [ChannelState.Distribute]: 'Distribute',
70
+ [ChannelState.Offering]: 'Offering',
71
+ [ChannelState.Answered]: 'Answered',
72
+ [ChannelState.Active]: 'Active',
73
+ [ChannelState.Bridged]: 'Bridged',
74
+ [ChannelState.Hold]: 'Hold',
75
+ [ChannelState.Missed]: 'Missed',
76
+ [snakeToCamel(ChannelState.WrapTime)]: 'Wrap time',
77
+ [ChannelState.Processing]: 'Processing',
78
+ [ChannelState.Transfer]: 'Transfer',
79
+ },
80
+ type: {
81
+ [ChannelType.Call]: 'Call',
82
+ [ChannelType.Email]: 'Email',
83
+ [ChannelType.Chat]: 'Chat',
84
+ },
85
+ },
61
86
  calls: {
62
87
  direction: {
63
88
  [CallDirection.Inbound]: 'Inbound',
@@ -186,7 +211,7 @@ export default {
186
211
  text: 'Sorry, you have not enough privileges to see this page.',
187
212
  },
188
213
  page404: {
189
- title: "Looks like you're lost",
214
+ title: 'Looks like you\'re lost',
190
215
  text: 'Sorry, we can\'t find the page you want.',
191
216
  },
192
217
  },
@@ -1,4 +1,9 @@
1
- import { AgentStatus, CallDirection } from 'webitel-sdk';
1
+ import {
2
+ AgentStatus,
3
+ CallDirection,
4
+ ChannelState,
5
+ ChannelType,
6
+ } from 'webitel-sdk';
2
7
  import { QueueType } from 'webitel-sdk/esm2015/enums';
3
8
  import AdminSections from '../../enums/WebitelApplications/AdminSections.enum';
4
9
  import SupervisorSections from '../../enums/WebitelApplications/SupervisorSections.enum';
@@ -58,6 +63,26 @@ export default {
58
63
  },
59
64
  },
60
65
  },
66
+ channel: {
67
+ state: {
68
+ [ChannelState.Waiting]: 'Ожидание',
69
+ [ChannelState.Distribute]: 'Зарезервирован',
70
+ [ChannelState.Offering]: 'Распределение',
71
+ [ChannelState.Answered]: 'Отвечен',
72
+ [ChannelState.Active]: 'Активный',
73
+ [ChannelState.Bridged]: 'Соединён',
74
+ [ChannelState.Hold]: 'Удержание',
75
+ [ChannelState.Missed]: 'Пропущен',
76
+ [snakeToCamel(ChannelState.WrapTime)]: 'Постобработка',
77
+ [ChannelState.Processing]: 'Обработка',
78
+ [ChannelState.Transfer]: 'Перевод',
79
+ },
80
+ type: {
81
+ [ChannelType.Call]: 'Звонок',
82
+ [ChannelType.Email]: 'Почта',
83
+ [ChannelType.Chat]: 'Чат',
84
+ },
85
+ },
61
86
  calls: {
62
87
  direction: {
63
88
  [CallDirection.Inbound]: 'Входящий | Входящие',
@@ -1,4 +1,9 @@
1
- import { AgentStatus, CallDirection } from 'webitel-sdk';
1
+ import {
2
+ AgentStatus,
3
+ CallDirection,
4
+ ChannelState,
5
+ ChannelType,
6
+ } from 'webitel-sdk';
2
7
  import { QueueType } from 'webitel-sdk/esm2015/enums';
3
8
  import AdminSections from '../../enums/WebitelApplications/AdminSections.enum';
4
9
  import SupervisorSections from '../../enums/WebitelApplications/SupervisorSections.enum';
@@ -58,6 +63,26 @@ export default {
58
63
  },
59
64
  },
60
65
  },
66
+ channel: {
67
+ state: {
68
+ [ChannelState.Waiting]: 'Очікування',
69
+ [ChannelState.Distribute]: 'Зарезервований',
70
+ [ChannelState.Offering]: 'Розподіл',
71
+ [ChannelState.Answered]: 'Прийнятий',
72
+ [ChannelState.Active]: 'Активний',
73
+ [ChannelState.Bridged]: 'З\'єднаний',
74
+ [ChannelState.Hold]: 'Утримання',
75
+ [ChannelState.Missed]: 'Пропущений',
76
+ [snakeToCamel(ChannelState.WrapTime)]: 'Постобробка',
77
+ [ChannelState.Processing]: 'Обробка',
78
+ [ChannelState.Transfer]: 'Перевід',
79
+ },
80
+ type: {
81
+ [ChannelType.Call]: 'Дзвінок',
82
+ [ChannelType.Email]: 'Пошта',
83
+ [ChannelType.Chat]: 'Чат',
84
+ },
85
+ },
61
86
  calls: {
62
87
  direction: {
63
88
  [CallDirection.Inbound]: 'Вхідний | Вхідні',