@webitel/ui-sdk 1.0.20 → 1.0.23
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/img/sprite/index.js +0 -7
- 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 +1 -1
- package/src/enums/WebitelApplications/AdminSections.enum.js +1 -0
- package/src/locale/en/en.js +1 -0
- package/src/locale/ru/ru.js +1 -0
- package/src/locale/ua/ua.js +1 -0
- package/src/modules/QueryFilters/store/QueryFiltersStoreModule.js +1 -3
- package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +6 -0
- package/src/modules/Userinfo/classes/ApplicationsAccess.js +4 -0
- package/dist/img/sprite/widget-avg-hold.svg +0 -3
- package/dist/img/sprite/widget-avg-talk.svg +0 -8
- package/dist/img/sprite/widget-handles.svg +0 -4
- package/dist/img/sprite/widget-inbound.svg +0 -6
- package/dist/img/sprite/widget-missed.svg +0 -5
- package/dist/img/sprite/widget-occupancy.svg +0 -5
- package/dist/img/sprite/widget-utilization.svg +0 -6
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ const AdminSections = Object.freeze({
|
|
|
10
10
|
FLOW: 'flow', // scope: flow
|
|
11
11
|
DIALPLAN: 'dialplan', // scope: acr_routing
|
|
12
12
|
GATEWAYS: 'gateways', // scope: gateways
|
|
13
|
+
CHATPLAN: 'chatplan', // scope: acr_routing
|
|
13
14
|
CHAT_GATEWAYS: 'chat-gateways', // scope: chats
|
|
14
15
|
|
|
15
16
|
// LOOKUPS
|
package/src/locale/en/en.js
CHANGED
|
@@ -112,6 +112,7 @@ export default {
|
|
|
112
112
|
[AdminSections.FLOW]: 'Flow',
|
|
113
113
|
[AdminSections.DIALPLAN]: 'Dialplan',
|
|
114
114
|
[AdminSections.GATEWAYS]: 'Gateways',
|
|
115
|
+
[AdminSections.CHATPLAN]: 'Chatplan',
|
|
115
116
|
[AdminSections.CHAT_GATEWAYS]: 'Chat gateways',
|
|
116
117
|
[AdminSections.SKILLS]: 'Agent skills',
|
|
117
118
|
[AdminSections.BUCKETS]: 'Buckets',
|
package/src/locale/ru/ru.js
CHANGED
|
@@ -112,6 +112,7 @@ export default {
|
|
|
112
112
|
[AdminSections.FLOW]: 'Схемы звонка',
|
|
113
113
|
[AdminSections.DIALPLAN]: 'Исходящая маршрутизация',
|
|
114
114
|
[AdminSections.GATEWAYS]: 'Шлюзы',
|
|
115
|
+
[AdminSections.CHATPLAN]: 'Правила маршрутизации текстовых сообщений',
|
|
115
116
|
[AdminSections.CHAT_GATEWAYS]: 'Текстовые шлюзы',
|
|
116
117
|
[AdminSections.SKILLS]: 'Навыки оператора',
|
|
117
118
|
[AdminSections.BUCKETS]: 'Корзины',
|
package/src/locale/ua/ua.js
CHANGED
|
@@ -112,6 +112,7 @@ export default {
|
|
|
112
112
|
[AdminSections.FLOW]: 'Схеми дзвінка',
|
|
113
113
|
[AdminSections.DIALPLAN]: 'Правила вихідного набору',
|
|
114
114
|
[AdminSections.GATEWAYS]: 'Шлюзи',
|
|
115
|
+
[AdminSections.CHATPLAN]: 'Правила маршрутизації текстових повідомлень',
|
|
115
116
|
[AdminSections.CHAT_GATEWAYS]: 'Текстові шлюзи',
|
|
116
117
|
[AdminSections.SKILLS]: 'Навички оператора',
|
|
117
118
|
[AdminSections.BUCKETS]: 'Кошики',
|
|
@@ -22,9 +22,7 @@ export default class QueryFiltersStoreModule extends BaseStoreModule {
|
|
|
22
22
|
let newValue = value;
|
|
23
23
|
if (newValue) {
|
|
24
24
|
if (multiple && !Array.isArray(newValue)) newValue = [newValue];
|
|
25
|
-
} else
|
|
26
|
-
newValue = defaultValue;
|
|
27
|
-
}
|
|
25
|
+
} else if (newValue === null || newValue === undefined) newValue = defaultValue;
|
|
28
26
|
context.commit('SET_FILTER', { filter, value: newValue });
|
|
29
27
|
},
|
|
30
28
|
RESET_FILTERS: (context) => {
|
|
@@ -67,6 +67,12 @@ describe('QueryFiltersStoreModule actions', () => {
|
|
|
67
67
|
expect(context.commit)
|
|
68
68
|
.toHaveBeenCalledWith('SET_FILTER', { filter: filter.filter, value: [] });
|
|
69
69
|
});
|
|
70
|
+
it('SET_FILTER: sets "false" value filter', () => {
|
|
71
|
+
const filter = { filter: valueFilter, value: false };
|
|
72
|
+
module.actions.SET_FILTER(context, filter);
|
|
73
|
+
expect(context.commit)
|
|
74
|
+
.toHaveBeenCalledWith('SET_FILTER', { filter: filter.filter, value: false });
|
|
75
|
+
});
|
|
70
76
|
it('calls RESET_FILTERS mutation on RESET_FILTERS action call', () => {
|
|
71
77
|
module.actions.RESET_FILTERS(context);
|
|
72
78
|
expect(context.commit).toHaveBeenCalledWith('RESET_FILTERS');
|
|
@@ -60,6 +60,10 @@ const applicationsAccess = (value = true) => ({
|
|
|
60
60
|
_enabled: value,
|
|
61
61
|
_locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.GATEWAYS}`,
|
|
62
62
|
},
|
|
63
|
+
[AdminSections.CHATPLAN]: {
|
|
64
|
+
_enabled: value,
|
|
65
|
+
_locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.CHATPLAN}`,
|
|
66
|
+
},
|
|
63
67
|
[AdminSections.CHAT_GATEWAYS]: {
|
|
64
68
|
_enabled: value,
|
|
65
69
|
_locale: `WebitelApplications.${WebitelApplications.ADMIN}.sections.${AdminSections.CHAT_GATEWAYS}`,
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M16 30c7.732 0 14-6.268 14-14s-6.268-14-14-14c-7.732 0-14 6.268-14 14s6.268 14 14 14zM13.749 12.2c0.552 0 1 0.448 1 1v5.49c0 0.552-0.448 1-1 1s-1-0.448-1-1v-5.49c0-0.552 0.448-1 1-1zM18.141 12.2c0.552 0 1 0.448 1 1v5.49c0 0.552-0.448 1-1 1s-1-0.448-1-1v-5.49c0-0.552 0.448-1 1-1z"></path>
|
|
3
|
-
</svg>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M10.365 4.828c0.648 0 1.174 0.556 1.174 1.241 0 4.326 2.368 6.471 5.212 8.977 0.028 0.025 0.056 0.050 0.084 0.074 2.772 2.442 5.973 5.262 5.973 10.81 0 0.686-0.526 1.241-1.174 1.241s-1.174-0.556-1.174-1.241c0-4.326-2.368-6.471-5.212-8.977-0.028-0.025-0.056-0.050-0.084-0.074-2.772-2.442-5.973-5.262-5.973-10.81 0-0.686 0.526-1.241 1.174-1.241z"></path>
|
|
3
|
-
<path d="M21.635 4.828c0.648 0 1.174 0.556 1.174 1.241 0 5.548-3.201 8.368-5.973 10.81-0.028 0.025-0.056 0.050-0.084 0.074-2.844 2.506-5.212 4.651-5.212 8.977 0 0.686-0.526 1.241-1.174 1.241s-1.174-0.556-1.174-1.241c0-5.548 3.201-8.368 5.973-10.81 0.028-0.025 0.056-0.050 0.084-0.074 2.844-2.506 5.212-4.651 5.212-8.977 0-0.686 0.526-1.241 1.174-1.241z"></path>
|
|
4
|
-
<path d="M7 5.241c0-0.686 0.526-1.241 1.174-1.241h15.652c0.648 0 1.174 0.556 1.174 1.241s-0.526 1.241-1.174 1.241h-15.652c-0.648 0-1.174-0.556-1.174-1.241z"></path>
|
|
5
|
-
<path d="M7 26.759c0-0.686 0.526-1.241 1.174-1.241h15.652c0.648 0 1.174 0.556 1.174 1.241s-0.526 1.241-1.174 1.241h-15.652c-0.648 0-1.174-0.556-1.174-1.241z"></path>
|
|
6
|
-
<path d="M15.139 12.624c0.239 0.245 0.52 0.533 0.861 0.893 0.341-0.361 0.622-0.648 0.861-0.893 0.859-0.88 1.185-1.214 1.85-2.417h-5.422c0.665 1.203 0.991 1.537 1.85 2.417z"></path>
|
|
7
|
-
<path d="M17.491 23.514c-0.415-0.245-0.901-0.533-1.491-0.893-0.591 0.361-1.077 0.648-1.491 0.893-1.489 0.881-2.053 1.214-3.204 2.417h9.391c-1.151-1.203-1.716-1.536-3.204-2.417z"></path>
|
|
8
|
-
</svg>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M25.201 22.267l-1.067-1.067c-1.067-1.067-2.667-1.067-3.733 0l-0.533 0.533c-0.4 0.4-1.067 0.533-1.6 0.267-1.733-0.8-3.333-1.867-4.8-3.333s-2.533-3.067-3.333-4.8c-0.267-0.533-0.133-1.2 0.267-1.733l0.533-0.533c1.067-1.067 1.067-2.667 0-3.733l-1.067-1.067c-1.067-1.067-2.667-1.067-3.733 0l-0.933 0.933c-0.933 0.933-1.467 2.4-1.067 3.867 0.667 3.467 2.667 7.333 6 10.533 3.2 3.2 7.067 5.333 10.533 6 1.467 0.267 2.8-0.133 3.867-1.2l0.933-0.933c0.667-0.933 0.667-2.667-0.267-3.733z"></path>
|
|
3
|
-
<path d="M28.443 5.658c0.557 0.613 0.512 1.562-0.101 2.119l-4.4 4c-0.566 0.514-1.428 0.521-2.001 0.015l-2.267-2c-0.621-0.548-0.68-1.496-0.132-2.117s1.496-0.68 2.117-0.132l1.259 1.111 3.406-3.096c0.613-0.557 1.562-0.512 2.119 0.101z"></path>
|
|
4
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M25.201 22.267l-1.067-1.067c-1.067-1.067-2.667-1.067-3.733 0l-0.533 0.533c-0.4 0.4-1.067 0.533-1.6 0.267-1.733-0.8-3.333-1.867-4.8-3.333s-2.533-3.067-3.333-4.8c-0.267-0.533-0.133-1.2 0.267-1.733l0.533-0.533c1.067-1.067 1.067-2.667 0-3.733l-1.067-1.067c-1.067-1.067-2.667-1.067-3.733 0l-0.933 0.933c-0.933 0.933-1.467 2.4-1.067 3.867 0.667 3.467 2.667 7.333 6 10.533 3.2 3.2 7.067 5.333 10.533 6 1.467 0.267 2.8-0.133 3.867-1.2l0.933-0.933c0.667-0.933 0.667-2.667-0.267-3.733z"></path>
|
|
3
|
-
<path d="M26.107 13.578c0 0.828-0.672 1.5-1.5 1.5h-5.657c-0.828 0-1.5-0.672-1.5-1.5s0.672-1.5 1.5-1.5h5.657c0.828 0 1.5 0.672 1.5 1.5z"></path>
|
|
4
|
-
<path d="M18.95 15.078c-0.828 0-1.5-0.672-1.5-1.5v-5.657c0-0.828 0.672-1.5 1.5-1.5s1.5 0.672 1.5 1.5v5.657c0 0.828-0.671 1.5-1.5 1.5z"></path>
|
|
5
|
-
<path d="M28.061 4.739c0.586 0.586 0.586 1.536 0 2.121l-7 7c-0.586 0.586-1.535 0.586-2.121 0s-0.586-1.536 0-2.121l7-7c0.586-0.586 1.535-0.586 2.121 0z"></path>
|
|
6
|
-
</svg>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M25.333 22.133l-1.067-1.067c-1.067-1.067-2.667-1.067-3.733 0l-0.533 0.533c-0.4 0.4-1.067 0.533-1.6 0.267-1.733-0.8-3.333-1.867-4.8-3.333s-2.533-3.067-3.333-4.8c-0.267-0.533-0.133-1.2 0.267-1.733l0.533-0.533c1.067-1.067 1.067-2.667 0-3.733l-1.067-1.067c-1.067-1.067-2.667-1.067-3.733 0l-0.933 0.933c-0.933 0.933-1.467 2.4-1.067 3.867 0.667 3.467 2.667 7.333 6 10.533 3.2 3.2 7.067 5.333 10.533 6 1.467 0.267 2.8-0.133 3.867-1.2l0.933-0.933c0.667-0.933 0.667-2.667-0.267-3.733z"></path>
|
|
3
|
-
<path d="M29.061 4.439c0.586 0.586 0.586 1.536 0 2.121l-8 8c-0.586 0.586-1.535 0.586-2.121 0s-0.586-1.536 0-2.121l8-8c0.586-0.586 1.535-0.586 2.121 0z"></path>
|
|
4
|
-
<path d="M18.939 4.439c0.586-0.586 1.535-0.586 2.121 0l8 8c0.586 0.586 0.586 1.536 0 2.121s-1.535 0.586-2.121 0l-8-8c-0.586-0.586-0.586-1.536 0-2.121z"></path>
|
|
5
|
-
</svg>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M6.0705 2.29059C6.0705 1.87637 6.40628 1.54059 6.8205 1.54059H9.14528C9.5595 1.54059 9.89528 1.87637 9.89528 2.29059C9.89528 2.7048 9.5595 3.04059 9.14528 3.04059H6.8205C6.40628 3.04059 6.0705 2.7048 6.0705 2.29059Z" />
|
|
3
|
-
<path d="M8.73288 6.35893C8.73288 5.94472 8.39709 5.60893 7.98288 5.60893C7.56867 5.60893 7.23288 5.94472 7.23288 6.35893V8.68372C7.23288 9.09793 7.56867 9.43372 7.98288 9.43372C8.39709 9.43372 8.73288 9.09793 8.73288 8.68372V6.35893Z" />
|
|
4
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.58331 8.68377C2.58331 5.70167 5.00078 3.28419 7.98289 3.28419C9.20348 3.28419 10.3295 3.6892 11.2338 4.37215L11.5718 4.03418L11.5209 3.9833C11.228 3.69041 11.228 3.21554 11.5209 2.92264C11.8138 2.62975 12.2887 2.62975 12.5816 2.92264L13.744 4.08504C14.0369 4.37793 14.0369 4.8528 13.744 5.1457C13.4511 5.43859 12.9762 5.43859 12.6833 5.1457L12.6325 5.09484L12.2945 5.43281C12.9775 6.33717 13.3825 7.46317 13.3825 8.68377C13.3825 11.6659 10.965 14.0833 7.98289 14.0833C5.00078 14.0833 2.58331 11.6659 2.58331 8.68377ZM7.98289 4.78419C5.82921 4.78419 4.08331 6.53009 4.08331 8.68377C4.08331 10.8374 5.82921 12.5833 7.98289 12.5833C10.1366 12.5833 11.8825 10.8374 11.8825 8.68377C11.8825 6.53009 10.1366 4.78419 7.98289 4.78419Z" />
|
|
5
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.600098 11.1667C0.600098 7.08579 3.93588 3.75 8.01676 3.75C8.43098 3.75 8.76676 4.08579 8.76676 4.5C8.76676 4.91421 8.43098 5.25 8.01676 5.25C4.76431 5.25 2.1001 7.91421 2.1001 11.1667C2.1001 11.5809 1.76431 11.9167 1.3501 11.9167C0.935884 11.9167 0.600098 11.5809 0.600098 11.1667Z" fill="#FF4444"/>
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.78974 5.91421C5.67536 3.0286 10.3929 3.0286 13.2785 5.91421C13.5714 6.20711 13.5714 6.68198 13.2785 6.97487C12.9856 7.26777 12.5107 7.26777 12.2178 6.97487C9.918 4.67504 6.15023 4.67504 3.8504 6.97487C3.55751 7.26777 3.08263 7.26777 2.78974 6.97487C2.49685 6.68198 2.49685 6.20711 2.78974 5.91421Z" fill="#FFC107"/>
|
|
4
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.47 11.1667C15.47 7.08579 12.1342 3.75 8.0533 3.75C7.63909 3.75 7.3033 4.08579 7.3033 4.5C7.3033 4.91421 7.63909 5.25 8.0533 5.25C11.3058 5.25 13.97 7.91421 13.97 11.1667C13.97 11.5809 14.3058 11.9167 14.72 11.9167C15.1342 11.9167 15.47 11.5809 15.47 11.1667Z" fill="#5AAD44"/>
|
|
5
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.0227 6.02472C13.3125 5.72876 13.3075 5.25391 13.0116 4.96412C12.7156 4.67432 12.2408 4.67932 11.951 4.97528L8.95829 8.03163C8.67479 7.89392 8.35647 7.81668 8.02012 7.81668C6.83271 7.81668 5.87012 8.77927 5.87012 9.96668C5.87012 11.1541 6.83271 12.1167 8.02012 12.1167C9.20753 12.1167 10.1701 11.1541 10.1701 9.96668C10.1701 9.66467 10.1078 9.3772 9.99544 9.11642L13.0227 6.02472ZM7.37012 9.96668C7.37012 9.6077 7.66113 9.31668 8.02012 9.31668C8.3791 9.31668 8.67012 9.6077 8.67012 9.96668C8.67012 10.3257 8.3791 10.6167 8.02012 10.6167C7.66113 10.6167 7.37012 10.3257 7.37012 9.96668Z" fill="#ADADAD"/>
|
|
6
|
-
</svg>
|