@webitel/ui-sdk 0.9.35 → 0.9.39
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 +47 -47
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.umd.js +47 -47
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +3 -2
- package/src/locale/en/en.js +29 -0
- package/src/locale/ru/ru.js +29 -0
- package/src/locale/ua/ua.js +29 -0
- package/src/modules/QueryFilters/components/abstract-api-filter.vue +3 -2
- package/src/modules/QueryFilters/mixins/enumFilterMixin.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.39",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve-lib": "vue-cli-service serve",
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
"vue-multiselect": "^2.1.6",
|
|
41
41
|
"vue-observe-visibility": "^1.0.0",
|
|
42
42
|
"vue-router": "^3.2.0",
|
|
43
|
-
"vuejs-datepicker": "^1.6.2"
|
|
43
|
+
"vuejs-datepicker": "^1.6.2",
|
|
44
|
+
"webitel-sdk": "^0.1.84"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@testing-library/jest-dom": "^5.11.4",
|
package/src/locale/en/en.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { AgentStatus, CallDirection } from 'webitel-sdk';
|
|
2
|
+
import { QueueType } from 'webitel-sdk/esm2015/enums';
|
|
3
|
+
import { snakeToCamel } from '../../scripts/caseConverters';
|
|
1
4
|
import AdminSections from '../../enums/WebitelApplications/AdminSections.enum';
|
|
2
5
|
import SupervisorSections from '../../enums/WebitelApplications/SupervisorSections.enum';
|
|
3
6
|
import WebitelApplications from '../../enums/WebitelApplications/WebitelApplications.enum';
|
|
@@ -34,6 +37,32 @@ export default {
|
|
|
34
37
|
supervisor: 'Supervisor | Supervisors',
|
|
35
38
|
auditor: 'Auditor | Auditors',
|
|
36
39
|
region: 'Region | Regions',
|
|
40
|
+
queue: {
|
|
41
|
+
type: {
|
|
42
|
+
[QueueType.INBOUND_QUEUE]: 'Inbound queue',
|
|
43
|
+
[QueueType.OFFLINE_QUEUE]: 'Offline queue',
|
|
44
|
+
[QueueType.OUTBOUND_IVR_QUEUE]: 'Outbound IVR queue',
|
|
45
|
+
[QueueType.PREDICTIVE_DIALER]: 'Predictive dialer',
|
|
46
|
+
[QueueType.PROGRESSIVE_DIALER]: 'Progressive dialer',
|
|
47
|
+
[QueueType.PREVIEW_DIALER]: 'Preview dialer',
|
|
48
|
+
[QueueType.CHAT_INBOUND_QUEUE]: 'Chat queue',
|
|
49
|
+
[QueueType.TASK_QUEUE]: 'Task queue',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
agent: {
|
|
53
|
+
status: {
|
|
54
|
+
[AgentStatus.Online]: 'Online',
|
|
55
|
+
[AgentStatus.Pause]: 'Pause',
|
|
56
|
+
[AgentStatus.Offline]: 'Offline',
|
|
57
|
+
[snakeToCamel(AgentStatus.BreakOut)]: 'Break out',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
calls: {
|
|
62
|
+
direction: {
|
|
63
|
+
[CallDirection.Inbound]: 'Inbound',
|
|
64
|
+
[CallDirection.Outbound]: 'Outbound',
|
|
65
|
+
},
|
|
37
66
|
},
|
|
38
67
|
// describes Webitel FRONTEND applications + their navs
|
|
39
68
|
WebitelApplications: {
|
package/src/locale/ru/ru.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { AgentStatus, CallDirection } from 'webitel-sdk';
|
|
2
|
+
import { QueueType } from 'webitel-sdk/esm2015/enums';
|
|
1
3
|
import AdminSections from '../../enums/WebitelApplications/AdminSections.enum';
|
|
2
4
|
import SupervisorSections from '../../enums/WebitelApplications/SupervisorSections.enum';
|
|
3
5
|
import WebitelApplications from '../../enums/WebitelApplications/WebitelApplications.enum';
|
|
6
|
+
import { snakeToCamel } from '../../scripts/caseConverters';
|
|
4
7
|
|
|
5
8
|
export default {
|
|
6
9
|
// describes reusable buttons, actions, default titles, and other ui elements
|
|
@@ -34,6 +37,32 @@ export default {
|
|
|
34
37
|
supervisor: 'Супервизор | Супервизоры',
|
|
35
38
|
auditor: 'Аудитор | Аудиторы',
|
|
36
39
|
region: 'Регион | Регионы',
|
|
40
|
+
queue: {
|
|
41
|
+
type: {
|
|
42
|
+
[QueueType.INBOUND_QUEUE]: 'Входящая очередь',
|
|
43
|
+
[QueueType.OFFLINE_QUEUE]: 'Оффлайн очередь',
|
|
44
|
+
[QueueType.OUTBOUND_IVR_QUEUE]: 'Исходящий IVR',
|
|
45
|
+
[QueueType.PREDICTIVE_DIALER]: 'Предиктивный обзвон',
|
|
46
|
+
[QueueType.PROGRESSIVE_DIALER]: 'Прогрессивный обзвон',
|
|
47
|
+
[QueueType.PREVIEW_DIALER]: 'Превью обзвон',
|
|
48
|
+
[QueueType.CHAT_INBOUND_QUEUE]: 'Очередь чатов',
|
|
49
|
+
[QueueType.TASK_QUEUE]: 'Очередь задач',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
agent: {
|
|
53
|
+
status: {
|
|
54
|
+
[AgentStatus.Online]: 'Онлайн',
|
|
55
|
+
[AgentStatus.Pause]: 'Пауза',
|
|
56
|
+
[AgentStatus.Offline]: 'Оффлайн',
|
|
57
|
+
[snakeToCamel(AgentStatus.BreakOut)]: 'Принудительный перерыв',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
calls: {
|
|
62
|
+
direction: {
|
|
63
|
+
[CallDirection.Inbound]: 'Входящий | Входящие',
|
|
64
|
+
[CallDirection.Outbound]: 'Исходящий | Исходящие',
|
|
65
|
+
},
|
|
37
66
|
},
|
|
38
67
|
// describes Webitel FRONTEND applications + their navs
|
|
39
68
|
WebitelApplications: {
|
package/src/locale/ua/ua.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { AgentStatus, CallDirection } from 'webitel-sdk';
|
|
2
|
+
import { QueueType } from 'webitel-sdk/esm2015/enums';
|
|
1
3
|
import AdminSections from '../../enums/WebitelApplications/AdminSections.enum';
|
|
2
4
|
import SupervisorSections from '../../enums/WebitelApplications/SupervisorSections.enum';
|
|
3
5
|
import WebitelApplications from '../../enums/WebitelApplications/WebitelApplications.enum';
|
|
6
|
+
import { snakeToCamel } from '../../scripts/caseConverters';
|
|
4
7
|
|
|
5
8
|
export default {
|
|
6
9
|
// describes reusable buttons, actions, default titles, and other ui elements
|
|
@@ -34,6 +37,32 @@ export default {
|
|
|
34
37
|
supervisor: 'Супервізор | Супервізори',
|
|
35
38
|
auditor: 'Аудитор | Аудитори',
|
|
36
39
|
region: 'Регіон | Регіони',
|
|
40
|
+
queue: {
|
|
41
|
+
type: {
|
|
42
|
+
[QueueType.INBOUND_QUEUE]: 'Вхідна черга',
|
|
43
|
+
[QueueType.OFFLINE_QUEUE]: 'Оффлайн черга',
|
|
44
|
+
[QueueType.OUTBOUND_IVR_QUEUE]: 'Вихідний IVR',
|
|
45
|
+
[QueueType.PREDICTIVE_DIALER]: 'Предиктивний обзвін',
|
|
46
|
+
[QueueType.PROGRESSIVE_DIALER]: 'Прогресивний обзвін',
|
|
47
|
+
[QueueType.PREVIEW_DIALER]: 'Прев\'ю обзвін',
|
|
48
|
+
[QueueType.CHAT_INBOUND_QUEUE]: 'Черга чатів',
|
|
49
|
+
[QueueType.TASK_QUEUE]: 'Черга задач',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
agent: {
|
|
53
|
+
status: {
|
|
54
|
+
[AgentStatus.Online]: 'Онлайн',
|
|
55
|
+
[AgentStatus.Pause]: 'Пауза',
|
|
56
|
+
[AgentStatus.Offline]: 'Офлайн',
|
|
57
|
+
[snakeToCamel(AgentStatus.BreakOut)]: 'Примусова перерва',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
calls: {
|
|
62
|
+
direction: {
|
|
63
|
+
[CallDirection.Inbound]: 'Вхідний | Вхідні',
|
|
64
|
+
[CallDirection.Outbound]: 'Вихідний | Вихідні',
|
|
65
|
+
},
|
|
37
66
|
},
|
|
38
67
|
// describes Webitel FRONTEND applications + their navs
|
|
39
68
|
WebitelApplications: {
|
|
@@ -29,8 +29,9 @@ export default {
|
|
|
29
29
|
search(params) {
|
|
30
30
|
return this.filterSchema.search(params);
|
|
31
31
|
},
|
|
32
|
-
fetchSelected(...args) {
|
|
33
|
-
|
|
32
|
+
async fetchSelected(...args) {
|
|
33
|
+
const { items = [] } = await this.filterSchema.fetchSelected(...args);
|
|
34
|
+
return items;
|
|
34
35
|
},
|
|
35
36
|
},
|
|
36
37
|
};
|
|
@@ -21,7 +21,10 @@ export default {
|
|
|
21
21
|
localizedOptions() {
|
|
22
22
|
const optsHaveLocale = this.options.length && this.options[0].locale; // just check 1st el
|
|
23
23
|
if (optsHaveLocale) {
|
|
24
|
-
return this.options.map((opt) => ({
|
|
24
|
+
return this.options.map((opt) => ({
|
|
25
|
+
...opt,
|
|
26
|
+
name: Array.isArray(opt.locale) ? this.$tc(...opt.locale) : this.$t(opt.locale),
|
|
27
|
+
}));
|
|
25
28
|
}
|
|
26
29
|
return this.options;
|
|
27
30
|
},
|