@webitel/ui-sdk 25.8.65 → 25.8.67
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.css +1 -1
- package/dist/ui-sdk.js +774 -755
- package/dist/ui-sdk.umd.cjs +3 -3
- package/package.json +1 -1
- package/src/components/on-demand/wt-navigation-menu/components/wt-navigation-menu.vue +48 -33
- package/src/locale/en/en.js +19 -0
- package/src/locale/es/es.js +19 -0
- package/src/locale/kz/kz.js +19 -0
- package/src/locale/pl/pl.js +19 -0
- package/src/locale/ro/ro.js +19 -0
- package/src/locale/ru/ru.js +19 -0
- package/src/locale/uk/uk.js +19 -0
- package/src/locale/uz/uz.js +19 -0
- package/src/locale/vi/vi.js +19 -0
- package/src/modules/CSVExport/XLSExport.js +6 -2
- package/src/modules/Userinfo/classes/ApplicationsAccess.js +3 -3
- package/types/locale/en/en.d.ts +23 -0
- package/types/locale/es/es.d.ts +23 -0
- package/types/locale/i18n.d.ts +189 -0
- package/types/locale/index.d.ts +189 -0
- package/types/locale/kz/kz.d.ts +23 -0
- package/types/locale/pl/pl.d.ts +23 -0
- package/types/locale/ro/ro.d.ts +23 -0
- package/types/locale/ru/ru.d.ts +23 -0
- package/types/locale/uk/uk.d.ts +23 -0
- package/types/locale/uz/uz.d.ts +23 -0
- package/types/locale/vi/vi.d.ts +23 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "25.8.
|
|
3
|
+
"version": "25.8.67",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
|
|
@@ -1,27 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section class="wt-navigation-menu">
|
|
3
3
|
<article class="wt-navigation-menu__wrapper">
|
|
4
|
-
<nav-menu-lvl-1
|
|
5
|
-
:categories="
|
|
6
|
-
:icons="icons"
|
|
7
|
-
:selected="selected"
|
|
8
|
-
@select="select"
|
|
9
|
-
>
|
|
10
|
-
<nav-menu-lvl-2
|
|
11
|
-
:categories="subcategories"
|
|
12
|
-
class="wt-navigation-menu__categories--display"
|
|
13
|
-
/>
|
|
4
|
+
<nav-menu-lvl-1 :categories="categoriesArray" :icons="icons" :selected="selected" @select="select">
|
|
5
|
+
<nav-menu-lvl-2 :categories="activeSubcategories" class="wt-navigation-menu__categories--display" />
|
|
14
6
|
</nav-menu-lvl-1>
|
|
15
|
-
<nav-menu-lvl-2
|
|
16
|
-
:categories="subcategories"
|
|
17
|
-
class="wt-navigation-menu__categories--hidden"
|
|
18
|
-
/>
|
|
7
|
+
<nav-menu-lvl-2 :categories="activeSubcategories" class="wt-navigation-menu__categories--hidden" />
|
|
19
8
|
</article>
|
|
20
9
|
</section>
|
|
21
10
|
</template>
|
|
22
11
|
|
|
23
12
|
<script setup>
|
|
24
|
-
import { computed,
|
|
13
|
+
import { computed, ref } from 'vue';
|
|
25
14
|
|
|
26
15
|
import NavMenuLvl1 from './_internals/nav-menu-lvl-1.vue';
|
|
27
16
|
import NavMenuLvl2 from './_internals/nav-menu-lvl-2.vue';
|
|
@@ -44,33 +33,59 @@ const props = defineProps({
|
|
|
44
33
|
},
|
|
45
34
|
});
|
|
46
35
|
|
|
47
|
-
const selectedId = ref(
|
|
36
|
+
const selectedId = ref('');
|
|
48
37
|
|
|
38
|
+
// Create a map of categories by their value/id
|
|
49
39
|
const categories = computed(() => {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
40
|
+
const categoryMap = new Map();
|
|
41
|
+
props.nav.forEach((navItem) => {
|
|
42
|
+
categoryMap.set(navItem.value, {
|
|
43
|
+
...navItem,
|
|
44
|
+
name: navItem.name,
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
return categoryMap;
|
|
54
48
|
});
|
|
55
49
|
|
|
50
|
+
// Create a map of subcategories by parent category id
|
|
56
51
|
const subcategories = computed(() => {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
52
|
+
const subcategoryMap = new Map();
|
|
53
|
+
props.nav.forEach((navItem) => {
|
|
54
|
+
if (navItem.subNav) {
|
|
55
|
+
const subNavWithRoutes = navItem.subNav.map((subNav) => {
|
|
56
|
+
const route = navItem.route
|
|
57
|
+
? `${navItem.route}/${subNav.route}`
|
|
58
|
+
: subNav.route;
|
|
59
|
+
return {
|
|
60
|
+
...subNav,
|
|
61
|
+
name: subNav.name,
|
|
62
|
+
route,
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
subcategoryMap.set(navItem.value, subNavWithRoutes);
|
|
66
|
+
} else {
|
|
67
|
+
subcategoryMap.set(navItem.value, []);
|
|
68
|
+
}
|
|
69
69
|
});
|
|
70
|
+
return subcategoryMap;
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
// Array of categories for the lvl-1 component (filtered to exclude empty categories)
|
|
74
|
+
const categoriesArray = computed(() => {
|
|
75
|
+
return Array.from(categories.value.values()).filter((category) => {
|
|
76
|
+
const subcats = subcategories.value.get(category.value);
|
|
77
|
+
return subcats && subcats.length > 0;
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
// Active subcategories based on selectedId
|
|
82
|
+
const activeSubcategories = computed(() => {
|
|
83
|
+
return subcategories.value.get(selected.value?.value) || [];
|
|
70
84
|
});
|
|
71
85
|
|
|
86
|
+
// Selected category based on selectedId
|
|
72
87
|
const selected = computed(() => {
|
|
73
|
-
return
|
|
88
|
+
return categories.value.get(selectedId.value) || categoriesArray.value[0];
|
|
74
89
|
});
|
|
75
90
|
|
|
76
91
|
function select(category) {
|
package/src/locale/en/en.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
AuditorSections,
|
|
12
12
|
ChatGatewayProvider,
|
|
13
13
|
CrmSections,
|
|
14
|
+
CrmSections as CrmSectionsNew,
|
|
14
15
|
IconAction,
|
|
15
16
|
QueueType,
|
|
16
17
|
RelativeDatetimeValue,
|
|
@@ -162,6 +163,9 @@ export default {
|
|
|
162
163
|
list: 'List | Lists',
|
|
163
164
|
contact: 'Contact | Contacts',
|
|
164
165
|
case: 'Case | Cases',
|
|
166
|
+
customLookup: {
|
|
167
|
+
customLookup: 'Custom lookup | Custom lookups',
|
|
168
|
+
},
|
|
165
169
|
calendar: 'Calendar | Calendars',
|
|
166
170
|
direction: 'Direction',
|
|
167
171
|
gateway: 'Gateway | Gateways',
|
|
@@ -175,6 +179,9 @@ export default {
|
|
|
175
179
|
transcription: 'Transcription',
|
|
176
180
|
attachment: 'Attachment | Attachments',
|
|
177
181
|
owner: 'Owner | Owners',
|
|
182
|
+
customization: {
|
|
183
|
+
customization: 'Customization | Customizations',
|
|
184
|
+
},
|
|
178
185
|
queue: {
|
|
179
186
|
queue: 'Queue | Queues',
|
|
180
187
|
type: {
|
|
@@ -269,6 +276,18 @@ export default {
|
|
|
269
276
|
},
|
|
270
277
|
// describes Webitel FRONTEND applications + their navs
|
|
271
278
|
WebitelApplications: {
|
|
279
|
+
overrideApplicationsAccess: {
|
|
280
|
+
[WebitelApplications.CRM]: {
|
|
281
|
+
sections: {
|
|
282
|
+
[CrmSectionsNew.CasesExtensions]: ({ linked }) =>
|
|
283
|
+
linked('objects.customization.customization') + ': ' + linked('objects.case'),
|
|
284
|
+
[CrmSectionsNew.ContactsExtensions]: ({ linked }) =>
|
|
285
|
+
linked('objects.customization.customization') + ': ' + linked('objects.contact'),
|
|
286
|
+
[CrmSectionsNew.CustomLookups]: ({ linked }) =>
|
|
287
|
+
linked('objects.customization.customization') + ': ' + linked('objects.customLookup'),
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
},
|
|
272
291
|
[WebitelApplications.AGENT]: { name: 'Agent Workspace' },
|
|
273
292
|
[WebitelApplications.AUDIT]: {
|
|
274
293
|
name: 'Audit',
|
package/src/locale/es/es.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
AuditorSections,
|
|
12
12
|
ChatGatewayProvider,
|
|
13
13
|
CrmSections,
|
|
14
|
+
CrmSections as CrmSectionsNew,
|
|
14
15
|
IconAction,
|
|
15
16
|
QueueType,
|
|
16
17
|
RelativeDatetimeValue,
|
|
@@ -157,6 +158,9 @@ export default {
|
|
|
157
158
|
list: 'Lista | Listas',
|
|
158
159
|
contact: 'Contacto | Contactos',
|
|
159
160
|
case: 'Caso | Casos',
|
|
161
|
+
customLookup: {
|
|
162
|
+
customLookup: 'Búsqueda personalizada | Búsquedas personalizadas',
|
|
163
|
+
},
|
|
160
164
|
calendar: 'Calendario | Calendarios',
|
|
161
165
|
direction: 'Dirección',
|
|
162
166
|
gateway: 'Gateway | Gateways',
|
|
@@ -170,6 +174,9 @@ export default {
|
|
|
170
174
|
transcription: 'Transcripción',
|
|
171
175
|
attachment: 'Adjunto | Adjuntos',
|
|
172
176
|
owner: 'Propietario | Propietarios',
|
|
177
|
+
customization: {
|
|
178
|
+
customization: 'Personalización | Personalizaciones',
|
|
179
|
+
},
|
|
173
180
|
queue: {
|
|
174
181
|
queue: 'Cola | Colas',
|
|
175
182
|
type: {
|
|
@@ -263,6 +270,18 @@ export default {
|
|
|
263
270
|
actualResolutionTime: 'Tiempo de resolución real',
|
|
264
271
|
},
|
|
265
272
|
WebitelApplications: {
|
|
273
|
+
overrideApplicationsAccess: {
|
|
274
|
+
[WebitelApplications.CRM]: {
|
|
275
|
+
sections: {
|
|
276
|
+
[CrmSectionsNew.CasesExtensions]: ({ linked }) =>
|
|
277
|
+
linked('objects.customization.customization') + ': ' + linked('objects.case'),
|
|
278
|
+
[CrmSectionsNew.ContactsExtensions]: ({ linked }) =>
|
|
279
|
+
linked('objects.customization.customization') + ': ' + linked('objects.contact'),
|
|
280
|
+
[CrmSectionsNew.CustomLookups]: ({ linked }) =>
|
|
281
|
+
linked('objects.customization.customization') + ': ' + linked('objects.customLookup'),
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
},
|
|
266
285
|
[WebitelApplications.AGENT]: { name: 'Espacio de trabajo del agente' },
|
|
267
286
|
[WebitelApplications.AUDIT]: {
|
|
268
287
|
name: 'Auditoría',
|
package/src/locale/kz/kz.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
AuditorSections,
|
|
12
12
|
ChatGatewayProvider,
|
|
13
13
|
CrmSections,
|
|
14
|
+
CrmSections as CrmSectionsNew,
|
|
14
15
|
IconAction,
|
|
15
16
|
QueueType,
|
|
16
17
|
RelativeDatetimeValue,
|
|
@@ -175,6 +176,12 @@ export default {
|
|
|
175
176
|
transcription: 'Транскрипция',
|
|
176
177
|
attachment: 'Тіркеме | Тіркемелер',
|
|
177
178
|
owner: 'Ие | Иелер',
|
|
179
|
+
customization: {
|
|
180
|
+
customization: 'Жекелендіру | Жекелендірулер',
|
|
181
|
+
},
|
|
182
|
+
customLookup: {
|
|
183
|
+
customLookup: 'Жекелендіру | Жекелендірулер',
|
|
184
|
+
},
|
|
178
185
|
queue: {
|
|
179
186
|
queue: 'Кезек | Кезектер',
|
|
180
187
|
type: {
|
|
@@ -269,6 +276,18 @@ export default {
|
|
|
269
276
|
},
|
|
270
277
|
// describes Webitel FRONTEND applications + their navs
|
|
271
278
|
WebitelApplications: {
|
|
279
|
+
overrideApplicationsAccess: {
|
|
280
|
+
[WebitelApplications.CRM]: {
|
|
281
|
+
sections: {
|
|
282
|
+
[CrmSectionsNew.CasesExtensions]: ({ linked }) =>
|
|
283
|
+
linked('objects.customization.customization') + ': ' + linked('objects.case'),
|
|
284
|
+
[CrmSectionsNew.ContactsExtensions]: ({ linked }) =>
|
|
285
|
+
linked('objects.customization.customization') + ': ' + linked('objects.contact'),
|
|
286
|
+
[CrmSectionsNew.CustomLookups]: ({ linked }) =>
|
|
287
|
+
linked('objects.customization.customization') + ': ' + linked('objects.customLookup'),
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
},
|
|
272
291
|
[WebitelApplications.AGENT]: { name: 'Оператор жұмыс орны' },
|
|
273
292
|
[WebitelApplications.AUDIT]: {
|
|
274
293
|
name: 'Аудит',
|
package/src/locale/pl/pl.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
AuditorSections,
|
|
12
12
|
ChatGatewayProvider,
|
|
13
13
|
CrmSections,
|
|
14
|
+
CrmSections as CrmSectionsNew,
|
|
14
15
|
IconAction,
|
|
15
16
|
QueueType,
|
|
16
17
|
RelativeDatetimeValue,
|
|
@@ -175,6 +176,12 @@ export default {
|
|
|
175
176
|
transcription: 'Transkrypcja',
|
|
176
177
|
attachment: 'Załącznik | Załączniki',
|
|
177
178
|
owner: 'Właściciel | Właściciele',
|
|
179
|
+
customization: {
|
|
180
|
+
customization: 'Dostosowanie | Dostosowania',
|
|
181
|
+
},
|
|
182
|
+
customLookup: {
|
|
183
|
+
customLookup: 'Dostosowanie | Dostosowania',
|
|
184
|
+
},
|
|
178
185
|
queue: {
|
|
179
186
|
queue: 'Kolejka | Kolejki',
|
|
180
187
|
type: {
|
|
@@ -269,6 +276,18 @@ export default {
|
|
|
269
276
|
},
|
|
270
277
|
// describes Webitel FRONTEND applications + their navs
|
|
271
278
|
WebitelApplications: {
|
|
279
|
+
overrideApplicationsAccess: {
|
|
280
|
+
[WebitelApplications.CRM]: {
|
|
281
|
+
sections: {
|
|
282
|
+
[CrmSectionsNew.CasesExtensions]: ({ linked }) =>
|
|
283
|
+
linked('objects.customization.customization') + ': ' + linked('objects.case'),
|
|
284
|
+
[CrmSectionsNew.ContactsExtensions]: ({ linked }) =>
|
|
285
|
+
linked('objects.customization.customization') + ': ' + linked('objects.contact'),
|
|
286
|
+
[CrmSectionsNew.CustomLookups]: ({ linked }) =>
|
|
287
|
+
linked('objects.customization.customization') + ': ' + linked('objects.customLookup'),
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
},
|
|
272
291
|
[WebitelApplications.AGENT]: { name: 'Panel Agenta' },
|
|
273
292
|
[WebitelApplications.AUDIT]: {
|
|
274
293
|
name: 'Audyt',
|
package/src/locale/ro/ro.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
AuditorSections,
|
|
12
12
|
ChatGatewayProvider,
|
|
13
13
|
CrmSections,
|
|
14
|
+
CrmSections as CrmSectionsNew,
|
|
14
15
|
IconAction,
|
|
15
16
|
QueueType,
|
|
16
17
|
RelativeDatetimeValue,
|
|
@@ -175,6 +176,12 @@ export default {
|
|
|
175
176
|
transcription: 'Transcriere',
|
|
176
177
|
attachment: 'Atașament | Atașamente',
|
|
177
178
|
owner: 'Proprietar | Proprietari',
|
|
179
|
+
customization: {
|
|
180
|
+
customization: 'Personalizare | Personalizări',
|
|
181
|
+
},
|
|
182
|
+
customLookup: {
|
|
183
|
+
customLookup: 'Personalizare | Personalizări',
|
|
184
|
+
},
|
|
178
185
|
queue: {
|
|
179
186
|
queue: 'Coadă | Cozi',
|
|
180
187
|
type: {
|
|
@@ -269,6 +276,18 @@ export default {
|
|
|
269
276
|
},
|
|
270
277
|
// describes Webitel FRONTEND applications + their navs
|
|
271
278
|
WebitelApplications: {
|
|
279
|
+
overrideApplicationsAccess: {
|
|
280
|
+
[WebitelApplications.CRM]: {
|
|
281
|
+
sections: {
|
|
282
|
+
[CrmSectionsNew.CasesExtensions]: ({ linked }) =>
|
|
283
|
+
linked('objects.customization.customization') + ': ' + linked('objects.case'),
|
|
284
|
+
[CrmSectionsNew.ContactsExtensions]: ({ linked }) =>
|
|
285
|
+
linked('objects.customization.customization') + ': ' + linked('objects.contact'),
|
|
286
|
+
[CrmSectionsNew.CustomLookups]: ({ linked }) =>
|
|
287
|
+
linked('objects.customization.customization') + ': ' + linked('objects.customLookup'),
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
},
|
|
272
291
|
[WebitelApplications.AGENT]: { name: 'Spațiu Agent' },
|
|
273
292
|
[WebitelApplications.AUDIT]: {
|
|
274
293
|
name: 'Audit',
|
package/src/locale/ru/ru.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
AuditorSections,
|
|
12
12
|
ChatGatewayProvider,
|
|
13
13
|
CrmSections,
|
|
14
|
+
CrmSections as CrmSectionsNew,
|
|
14
15
|
IconAction,
|
|
15
16
|
QueueType,
|
|
16
17
|
RelativeDatetimeValue,
|
|
@@ -174,6 +175,12 @@ export default {
|
|
|
174
175
|
transcription: 'Транскрипция',
|
|
175
176
|
attachment: 'Вложение | Вложения',
|
|
176
177
|
owner: 'Владелец | Владельцы',
|
|
178
|
+
customization: {
|
|
179
|
+
customization: 'Персонализация | Персонализации',
|
|
180
|
+
},
|
|
181
|
+
customLookup: {
|
|
182
|
+
customLookup: 'Пользовательский справочник | Пользовательские справочники',
|
|
183
|
+
},
|
|
177
184
|
queue: {
|
|
178
185
|
queue: 'Очередь | Очереди',
|
|
179
186
|
type: {
|
|
@@ -268,6 +275,18 @@ export default {
|
|
|
268
275
|
},
|
|
269
276
|
// describes Webitel FRONTEND applications + their navs
|
|
270
277
|
WebitelApplications: {
|
|
278
|
+
overrideApplicationsAccess: {
|
|
279
|
+
[WebitelApplications.CRM]: {
|
|
280
|
+
sections: {
|
|
281
|
+
[CrmSectionsNew.CasesExtensions]: ({ linked }) =>
|
|
282
|
+
linked('objects.customization.customization') + ': ' + linked('objects.case'),
|
|
283
|
+
[CrmSectionsNew.ContactsExtensions]: ({ linked }) =>
|
|
284
|
+
linked('objects.customization.customization') + ': ' + linked('objects.contact'),
|
|
285
|
+
[CrmSectionsNew.CustomLookups]: ({ linked }) =>
|
|
286
|
+
linked('objects.customization.customization') + ': ' + linked('objects.customLookup'),
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
},
|
|
271
290
|
[WebitelApplications.AGENT]: { name: 'Agent Workspace' },
|
|
272
291
|
[WebitelApplications.AUDIT]: {
|
|
273
292
|
name: 'Audit',
|
package/src/locale/uk/uk.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
AuditorSections,
|
|
12
12
|
ChatGatewayProvider,
|
|
13
13
|
CrmSections,
|
|
14
|
+
CrmSections as CrmSectionsNew,
|
|
14
15
|
IconAction,
|
|
15
16
|
QueueType,
|
|
16
17
|
RelativeDatetimeValue,
|
|
@@ -174,6 +175,12 @@ export default {
|
|
|
174
175
|
transcription: 'Транскрипція',
|
|
175
176
|
attachment: 'Вкладення | Вкладення',
|
|
176
177
|
owner: 'Власник | Власники',
|
|
178
|
+
customization: {
|
|
179
|
+
customization: 'Персоналізація | Персоналізації',
|
|
180
|
+
},
|
|
181
|
+
customLookup: {
|
|
182
|
+
customLookup: 'Користувацький довідник | Користувацькі довідники',
|
|
183
|
+
},
|
|
177
184
|
queue: {
|
|
178
185
|
queue: 'Черга | Черги',
|
|
179
186
|
type: {
|
|
@@ -268,6 +275,18 @@ export default {
|
|
|
268
275
|
},
|
|
269
276
|
// describes Webitel FRONTEND applications + their navs
|
|
270
277
|
WebitelApplications: {
|
|
278
|
+
overrideApplicationsAccess: {
|
|
279
|
+
[WebitelApplications.CRM]: {
|
|
280
|
+
sections: {
|
|
281
|
+
[CrmSectionsNew.CasesExtensions]: ({ linked }) =>
|
|
282
|
+
linked('objects.customization.customization') + ': ' + linked('objects.case'),
|
|
283
|
+
[CrmSectionsNew.ContactsExtensions]: ({ linked }) =>
|
|
284
|
+
linked('objects.customization.customization') + ': ' + linked('objects.contact'),
|
|
285
|
+
[CrmSectionsNew.CustomLookups]: ({ linked }) =>
|
|
286
|
+
linked('objects.customization.customization') + ': ' + linked('objects.customLookup'),
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
},
|
|
271
290
|
[WebitelApplications.AGENT]: { name: 'Agent Workspace' },
|
|
272
291
|
[WebitelApplications.AUDIT]: {
|
|
273
292
|
name: 'Audit',
|
package/src/locale/uz/uz.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
AuditorSections,
|
|
12
12
|
ChatGatewayProvider,
|
|
13
13
|
CrmSections,
|
|
14
|
+
CrmSections as CrmSectionsNew,
|
|
14
15
|
IconAction,
|
|
15
16
|
QueueType,
|
|
16
17
|
RelativeDatetimeValue,
|
|
@@ -175,6 +176,12 @@ export default {
|
|
|
175
176
|
transcription: 'Transkriptsiya',
|
|
176
177
|
attachment: 'Ilova | Ilovalar',
|
|
177
178
|
owner: 'Egasi | Egalari',
|
|
179
|
+
customization: {
|
|
180
|
+
customization: 'Maxsuslash | Maxsuslashlar',
|
|
181
|
+
},
|
|
182
|
+
customLookup: {
|
|
183
|
+
customLookup: 'Maxsuslash | Maxsuslashlar',
|
|
184
|
+
},
|
|
178
185
|
queue: {
|
|
179
186
|
queue: 'Navbat | Navbatlar',
|
|
180
187
|
type: {
|
|
@@ -268,6 +275,18 @@ export default {
|
|
|
268
275
|
actualResolutionTime: 'Haqiqiy hal qilish vaqti',
|
|
269
276
|
},
|
|
270
277
|
WebitelApplications: {
|
|
278
|
+
overrideApplicationsAccess: {
|
|
279
|
+
[WebitelApplications.CRM]: {
|
|
280
|
+
sections: {
|
|
281
|
+
[CrmSectionsNew.CasesExtensions]: ({ linked }) =>
|
|
282
|
+
linked('objects.customization.customization') + ': ' + linked('objects.case'),
|
|
283
|
+
[CrmSectionsNew.ContactsExtensions]: ({ linked }) =>
|
|
284
|
+
linked('objects.customization.customization') + ': ' + linked('objects.contact'),
|
|
285
|
+
[CrmSectionsNew.CustomLookups]: ({ linked }) =>
|
|
286
|
+
linked('objects.customization.customization') + ': ' + linked('objects.customLookup'),
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
},
|
|
271
290
|
[WebitelApplications.AGENT]: { name: 'Agent ish joyi' },
|
|
272
291
|
[WebitelApplications.AUDIT]: {
|
|
273
292
|
name: 'Audit',
|
package/src/locale/vi/vi.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
AuditorSections,
|
|
12
12
|
ChatGatewayProvider,
|
|
13
13
|
CrmSections,
|
|
14
|
+
CrmSections as CrmSectionsNew,
|
|
14
15
|
IconAction,
|
|
15
16
|
QueueType,
|
|
16
17
|
RelativeDatetimeValue,
|
|
@@ -175,6 +176,12 @@ export default {
|
|
|
175
176
|
transcription: 'Bản ghi',
|
|
176
177
|
attachment: 'Tệp đính kèm | Các tệp đính kèm',
|
|
177
178
|
owner: 'Chủ sở hữu | Các chủ sở hữu',
|
|
179
|
+
customization: {
|
|
180
|
+
customization: 'Tùy chỉnh | Các tùy chỉnh',
|
|
181
|
+
},
|
|
182
|
+
customLookup: {
|
|
183
|
+
customLookup: 'Tùy chỉnh | Các tùy chỉnh',
|
|
184
|
+
},
|
|
178
185
|
queue: {
|
|
179
186
|
queue: 'Hàng chờ | Hàng chờ',
|
|
180
187
|
type: {
|
|
@@ -269,6 +276,18 @@ export default {
|
|
|
269
276
|
},
|
|
270
277
|
// describes Webitel FRONTEND applications + their navs
|
|
271
278
|
WebitelApplications: {
|
|
279
|
+
overrideApplicationsAccess: {
|
|
280
|
+
[WebitelApplications.CRM]: {
|
|
281
|
+
sections: {
|
|
282
|
+
[CrmSectionsNew.CasesExtensions]: ({ linked }) =>
|
|
283
|
+
linked('objects.customization.customization') + ': ' + linked('objects.case'),
|
|
284
|
+
[CrmSectionsNew.ContactsExtensions]: ({ linked }) =>
|
|
285
|
+
linked('objects.customization.customization') + ': ' + linked('objects.contact'),
|
|
286
|
+
[CrmSectionsNew.CustomLookups]: ({ linked }) =>
|
|
287
|
+
linked('objects.customization.customization') + ': ' + linked('objects.customLookup'),
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
},
|
|
272
291
|
[WebitelApplications.AGENT]: {
|
|
273
292
|
name: 'Không gian làm việc của tổng đài viên',
|
|
274
293
|
},
|
|
@@ -22,9 +22,13 @@ export default class XLSExport {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// NOTE: if the value is an object with a name property, extract the name to display it in the EXEL file
|
|
25
|
+
// If no name property exists, stringify the object to show full structure
|
|
25
26
|
extractNameFromObject(value) {
|
|
26
|
-
if (value && typeof value === 'object'
|
|
27
|
-
|
|
27
|
+
if (value && typeof value === 'object') {
|
|
28
|
+
if (Array.isArray(value)) {
|
|
29
|
+
return value.map((item) => this.extractNameFromObject(item)).join(' | ');
|
|
30
|
+
}
|
|
31
|
+
return value.name || JSON.stringify(value);
|
|
28
32
|
}
|
|
29
33
|
return value;
|
|
30
34
|
}
|
|
@@ -243,15 +243,15 @@ const applicationsAccess = (value = true) => ({
|
|
|
243
243
|
},
|
|
244
244
|
[CrmSectionsNew.CasesExtensions]: {
|
|
245
245
|
_enabled: value,
|
|
246
|
-
_locale: `WebitelApplications.${WebitelApplications.CRM}.sections.${CrmSectionsNew.CasesExtensions}`,
|
|
246
|
+
_locale: `WebitelApplications.overrideApplicationsAccess.${WebitelApplications.CRM}.sections.${CrmSectionsNew.CasesExtensions}`,
|
|
247
247
|
},
|
|
248
248
|
[CrmSectionsNew.ContactsExtensions]: {
|
|
249
249
|
_enabled: value,
|
|
250
|
-
_locale: `WebitelApplications.${WebitelApplications.CRM}.sections.${CrmSectionsNew.ContactsExtensions}`,
|
|
250
|
+
_locale: `WebitelApplications.overrideApplicationsAccess.${WebitelApplications.CRM}.sections.${CrmSectionsNew.ContactsExtensions}`,
|
|
251
251
|
},
|
|
252
252
|
[CrmSectionsNew.CustomLookups]: {
|
|
253
253
|
_enabled: value,
|
|
254
|
-
_locale: `WebitelApplications.${WebitelApplications.CRM}.sections.${CrmSectionsNew.CustomLookups}`,
|
|
254
|
+
_locale: `WebitelApplications.overrideApplicationsAccess.${WebitelApplications.CRM}.sections.${CrmSectionsNew.CustomLookups}`,
|
|
255
255
|
},
|
|
256
256
|
},
|
|
257
257
|
});
|
package/types/locale/en/en.d.ts
CHANGED
|
@@ -142,6 +142,10 @@ declare namespace _default {
|
|
|
142
142
|
export { contact_1 as contact };
|
|
143
143
|
let _case: string;
|
|
144
144
|
export { _case as case };
|
|
145
|
+
export namespace customLookup {
|
|
146
|
+
let customLookup_1: string;
|
|
147
|
+
export { customLookup_1 as customLookup };
|
|
148
|
+
}
|
|
145
149
|
export let calendar: string;
|
|
146
150
|
export let direction: string;
|
|
147
151
|
export let gateway: string;
|
|
@@ -155,6 +159,10 @@ declare namespace _default {
|
|
|
155
159
|
export let transcription: string;
|
|
156
160
|
export let attachment: string;
|
|
157
161
|
export let owner: string;
|
|
162
|
+
export namespace customization {
|
|
163
|
+
let customization_1: string;
|
|
164
|
+
export { customization_1 as customization };
|
|
165
|
+
}
|
|
158
166
|
export namespace queue {
|
|
159
167
|
let queue_1: string;
|
|
160
168
|
export { queue_1 as queue };
|
|
@@ -474,6 +482,21 @@ declare namespace _default {
|
|
|
474
482
|
activeCalls?: undefined;
|
|
475
483
|
};
|
|
476
484
|
};
|
|
485
|
+
overrideApplicationsAccess: {
|
|
486
|
+
[x: number]: {
|
|
487
|
+
sections: {
|
|
488
|
+
"ext-cases": ({ linked }: {
|
|
489
|
+
linked: any;
|
|
490
|
+
}) => string;
|
|
491
|
+
"ext-contacts": ({ linked }: {
|
|
492
|
+
linked: any;
|
|
493
|
+
}) => string;
|
|
494
|
+
"custom-lookups": ({ linked }: {
|
|
495
|
+
linked: any;
|
|
496
|
+
}) => string;
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
};
|
|
477
500
|
};
|
|
478
501
|
export namespace validation {
|
|
479
502
|
let required_1: string;
|
package/types/locale/es/es.d.ts
CHANGED
|
@@ -142,6 +142,10 @@ declare namespace _default {
|
|
|
142
142
|
export { contact_1 as contact };
|
|
143
143
|
let _case: string;
|
|
144
144
|
export { _case as case };
|
|
145
|
+
export namespace customLookup {
|
|
146
|
+
let customLookup_1: string;
|
|
147
|
+
export { customLookup_1 as customLookup };
|
|
148
|
+
}
|
|
145
149
|
export let calendar: string;
|
|
146
150
|
export let direction: string;
|
|
147
151
|
export let gateway: string;
|
|
@@ -155,6 +159,10 @@ declare namespace _default {
|
|
|
155
159
|
export let transcription: string;
|
|
156
160
|
export let attachment: string;
|
|
157
161
|
export let owner: string;
|
|
162
|
+
export namespace customization {
|
|
163
|
+
let customization_1: string;
|
|
164
|
+
export { customization_1 as customization };
|
|
165
|
+
}
|
|
158
166
|
export namespace queue {
|
|
159
167
|
let queue_1: string;
|
|
160
168
|
export { queue_1 as queue };
|
|
@@ -474,6 +482,21 @@ declare namespace _default {
|
|
|
474
482
|
activeCalls?: undefined;
|
|
475
483
|
};
|
|
476
484
|
};
|
|
485
|
+
overrideApplicationsAccess: {
|
|
486
|
+
[x: number]: {
|
|
487
|
+
sections: {
|
|
488
|
+
"ext-cases": ({ linked }: {
|
|
489
|
+
linked: any;
|
|
490
|
+
}) => string;
|
|
491
|
+
"ext-contacts": ({ linked }: {
|
|
492
|
+
linked: any;
|
|
493
|
+
}) => string;
|
|
494
|
+
"custom-lookups": ({ linked }: {
|
|
495
|
+
linked: any;
|
|
496
|
+
}) => string;
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
};
|
|
477
500
|
};
|
|
478
501
|
export namespace validation {
|
|
479
502
|
let required_1: string;
|