@webitel/ui-sdk 26.2.34 → 26.2.36-1
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/{index-C2ecFTNP.js → index-DBheLAHQ.js} +1 -1
- package/dist/{index-D3Ibu6l0.js → index-DUFLSW6-.js} +1 -1
- package/dist/{install-Db0TxApS.js → install-CyiblPDy.js} +6703 -7012
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +291 -291
- package/dist/{vidstack-Bq6c3Bam-jWucP9MZ.js → vidstack-Bq6c3Bam-ZD_prVoQ.js} +2 -2
- package/dist/{vidstack-D2pY00kU-Lj2jSn9b.js → vidstack-D2pY00kU-DJbiUFY5.js} +2 -2
- package/dist/{vidstack-DDXt6fpN-CRgT6GG6.js → vidstack-DDXt6fpN-DwRekVvj.js} +1 -1
- package/dist/{vidstack-D_-9AA6_-CUvYJoX3.js → vidstack-D_-9AA6_-DZGmSuN8.js} +1 -1
- package/dist/{vidstack-DqAw8m9J-BNDvu2NE.js → vidstack-DqAw8m9J-VTWg45v7.js} +1 -1
- package/dist/{vidstack-audio-C-auiH6p.js → vidstack-audio-lGnN1Ycy.js} +2 -2
- package/dist/{vidstack-dash-Qh5uOUSv.js → vidstack-dash-BGZztpZt.js} +3 -3
- package/dist/{vidstack-google-cast-DPSWYfxE.js → vidstack-google-cast-CIssT0Sh.js} +3 -3
- package/dist/{vidstack-hls-Bw4VTjyK.js → vidstack-hls-BLPlktbS.js} +3 -3
- package/dist/{vidstack-video-DSPtX-xc.js → vidstack-video-tsYJg78F.js} +2 -2
- package/dist/{vidstack-vimeo-BkzTyWz4.js → vidstack-vimeo-CKg8F_3s.js} +3 -3
- package/dist/{vidstack-youtube-BLehmJWk.js → vidstack-youtube-DOw42Epm.js} +2 -2
- package/dist/{vuex.esm-bundler-BwCqcKHF.js → vuex.esm-bundler-OmBwq3nP.js} +1 -1
- package/dist/{wt-action-bar-iNCzZ8xG.js → wt-action-bar-CSJ3tu7K.js} +1 -1
- package/dist/{wt-button-select-CojFqNcw.js → wt-button-select-Dc8jKKAz.js} +1 -1
- package/dist/{wt-chat-emoji-BBfK_FnY.js → wt-chat-emoji-DfjSGx0c.js} +1 -1
- package/dist/{wt-confirm-dialog-Dd6P-rBg.js → wt-confirm-dialog-DszD11F6.js} +1 -1
- package/dist/{wt-context-menu-BXE9o3sO.js → wt-context-menu-CiusERRK.js} +1 -1
- package/dist/{wt-copy-action-BwN9Bm29.js → wt-copy-action--tQ6E7Pz.js} +1 -1
- package/dist/{wt-datepicker-51TVQSGt.js → wt-datepicker-CekV-n5F.js} +1 -1
- package/dist/{wt-display-chip-items-DVSf77Ea.js → wt-display-chip-items-D8dNRdDT.js} +1 -1
- package/dist/{wt-dual-panel-DP5p1JGA.js → wt-dual-panel-CRO2SmPU.js} +1 -1
- package/dist/{wt-dummy-D-8rGA0s.js → wt-dummy-DoKHGElq.js} +1 -1
- package/dist/{wt-error-page-DY6owvxv.js → wt-error-page-BZQM-XR3.js} +1 -1
- package/dist/{wt-expansion-panel-iTi-1-NH.js → wt-expansion-panel-BGOjhVL1.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-CmEQZtRS.js → wt-filters-panel-wrapper-7vGMmAbn.js} +1 -1
- package/dist/{wt-galleria-m0M9t1PK.js → wt-galleria-BFeVnHVi.js} +1 -1
- package/dist/{wt-navigation-menu-CzvC8Kde.js → wt-navigation-menu-CfhusFd7.js} +1 -1
- package/dist/{wt-notifications-bar-DvEsXJ2w.js → wt-notifications-bar-B4JPf10L.js} +1 -1
- package/dist/{wt-page-header-CiuKaJT0.js → wt-page-header-BXNc4udR.js} +1 -1
- package/dist/{wt-pagination-Vnui0Fo4.js → wt-pagination-DX-rvjNO.js} +1 -1
- package/dist/{wt-player-BvVULIq6.js → wt-player-9-VydoG3.js} +1 -1
- package/dist/{wt-search-bar-Bfe8tp3d.js → wt-search-bar-CyuTYJIh.js} +1 -1
- package/dist/{wt-selection-popup-C5cykGzu.js → wt-selection-popup-B1jc36eK.js} +1 -1
- package/dist/{wt-start-page-Br1Y_wKQ.js → wt-start-page-Bdpd8uIu.js} +1 -1
- package/dist/{wt-status-select-YgdBATEt.js → wt-status-select-C_P6se9B.js} +1 -1
- package/dist/{wt-stepper-lB2H4HHc.js → wt-stepper-GoQgRNvT.js} +1 -1
- package/dist/{wt-table-CFmAk739.js → wt-table-C7_QDxxw.js} +1 -1
- package/dist/{wt-table-actions-B9B7Ow1P.js → wt-table-actions-F254JhUH.js} +1 -1
- package/dist/{wt-table-column-select-Ch4JiuZf.js → wt-table-column-select-v4DFcmhU.js} +2 -2
- package/dist/{wt-tabs-DGcNz7nC.js → wt-tabs-DKoz5N5p.js} +1 -1
- package/dist/{wt-tags-input-Dhk2CA5x.js → wt-tags-input-Ufhsf9Nx.js} +2 -2
- package/dist/{wt-time-input-VGZ0yy86.js → wt-time-input-CY7a9PNA.js} +1 -1
- package/dist/{wt-timepicker-Cp_pvITs.js → wt-timepicker-ByI7rjOg.js} +1 -1
- package/dist/{wt-tree-BTr_ATYR.js → wt-tree-DZCBTGII.js} +2 -2
- package/dist/{wt-tree-table-DMZfjZfK.js → wt-tree-table-DjE6sTve.js} +1 -1
- package/dist/{wt-type-extension-value-input-wOYyjHoZ.js → wt-type-extension-value-input-_5A6qy3D.js} +2 -2
- package/dist/{wt-vidstack-player-CLPy_JXw.js → wt-vidstack-player-D4597dQD.js} +9 -9
- package/package.json +2 -2
- package/src/components/wt-app-header/__tests__/WtAppNavigator.spec.js +4 -4
- package/src/components/wt-app-header/wt-app-navigator.vue +104 -84
- package/src/components/wt-headline/wt-headline.vue +0 -1
- package/src/components/wt-input-number/wt-input-number.vue +3 -0
- package/src/components/wt-navigation-bar/wt-navigation-bar.vue +11 -12
- package/src/enums/index.ts +1 -3
- package/src/locale/en/en.js +12 -12
- package/src/locale/es/es.js +12 -12
- package/src/locale/kz/kz.js +12 -12
- package/src/locale/pl/pl.js +12 -12
- package/src/locale/ro/ro.js +12 -12
- package/src/locale/ru/ru.js +12 -12
- package/src/locale/uk/uk.js +12 -12
- package/src/locale/uz/uz.js +12 -12
- package/src/locale/vi/vi.js +12 -12
- package/src/modules/CallSession/modules/VideoCall/video-call.vue +45 -15
- package/src/modules/Userinfo/classes/ApplicationsAccess.js +119 -123
- package/src/modules/Userinfo/v2/mappings/mappings.ts +8 -0
- package/src/modules/Userinfo/v2/scripts/utils.ts +13 -1
- package/src/modules/Userinfo/v2/stores/accessStore.ts +15 -9
- package/src/modules/Userinfo/v2/stores/userinfoStore.ts +7 -6
- package/src/modules/Userinfo/v2/types/UserAccess.d.ts +1 -1
- package/types/api/history/index.d.ts +2 -0
- package/types/api/history/transcript/callTranscript.d.ts +15 -0
- package/types/assets/icons/sprite/_index.d.ts +2 -0
- package/types/components/index.d.ts +155 -0
- package/types/components/wt-action-bar/WtActionBarActionsOrder.d.ts +2 -2
- package/types/components/wt-action-bar/wt-action-bar.vue.d.ts +13 -13
- package/types/components/wt-headline-nav/__tests__/wt-headline-nav.spec.d.ts +1 -0
- package/types/components/wt-headline-nav/wt-headline-nav.vue.d.ts +7 -0
- package/types/components/wt-icon/utils/iconsRepository.d.ts +8 -0
- package/types/components/wt-input-number/wt-input-number.vue.d.ts +1 -1
- package/types/components/wt-input-text/wt-input-text.vue.d.ts +1 -1
- package/types/components/wt-loader/_internals/wt-loader--md.vue.d.ts +2 -0
- package/types/components/wt-loader/_internals/wt-loader--sm.vue.d.ts +16 -0
- package/types/components/wt-password/wt-password.vue.d.ts +1 -1
- package/types/components/wt-table/wt-table.vue.d.ts +1 -1
- package/types/components/wt-vidstack-player/components/panels/media-control-panel/components/buttons/fullscreen-button.vue.d.ts +6 -0
- package/types/components/wt-vidstack-player/components/panels/media-control-panel/components/buttons/play-button.vue.d.ts +2 -0
- package/types/components/wt-vidstack-player/components/panels/media-control-panel/components/sliders/time-slider.vue.d.ts +2 -0
- package/types/components/wt-vidstack-player/components/panels/media-control-panel/components/time-group.vue.d.ts +2 -0
- package/types/components/wt-vidstack-player/components/panels/media-control-panel/media-control-panel.vue.d.ts +2 -0
- package/types/components/wt-vidstack-player/components/panels/screen-sharing-control-panel/screen-sharing-control-panel.vue.d.ts +17 -0
- package/types/components/wt-vidstack-player/types/ScreenshotStatus.d.ts +1 -0
- package/types/composables/useInputControl/useInputControl.d.ts +1 -1
- package/types/locale/ua/ua.d.ts +911 -0
- package/types/modules/FilesExport/scripts/generateMediaURL.d.ts +2 -0
- package/types/plugins/primevue/theme/components/avatar/avatar.d.ts +28 -28
- package/types/plugins/primevue/theme/extend/extend.d.ts +5 -0
- package/types/plugins/primevue/theme/extend/spacings/spacings.d.ts +13 -0
- package/types/plugins/primevue/theme/semantic/color-scheme/color-schema.d.ts +1189 -0
- package/types/plugins/primevue/theme/semantic/color-scheme/dark-color.d.ts +162 -0
- package/types/plugins/primevue/theme/semantic/color-scheme/light-color.d.ts +162 -0
- package/types/plugins/primevue/theme/semantic/color-scheme/palette.d.ts +435 -0
- package/types/plugins/primevue/theme/semantic/semantic.d.ts +5 -0
- package/types/scripts/caseConverters.d.ts +1 -1
- package/src/enums/WebitelApplications/AdminSections.enum.js +0 -15
- package/src/enums/WebitelApplications/AuditorSections.enum.js +0 -15
- package/src/enums/WebitelApplications/CrmSections.enum.js +0 -15
- package/src/enums/WebitelApplications/SupervisorSections.enum.js +0 -15
- package/src/enums/WebitelApplications/WebitelApplications.enum.js +0 -15
- package/src/enums/WebitelApplications/WfmSections.enum.js +0 -15
- package/src/enums/WebitelApplications/WtApplication.js +0 -11
package/src/locale/uz/uz.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
QueueType,
|
|
18
18
|
RelativeDatetimeValue,
|
|
19
19
|
SupervisorSections,
|
|
20
|
-
|
|
20
|
+
WtApplication,
|
|
21
21
|
} from '../../enums';
|
|
22
22
|
import { AccessMode } from '../../modules/ObjectPermissions/_internals/enums/AccessMode.enum.js';
|
|
23
23
|
import { snakeToCamel } from '../../scripts';
|
|
@@ -302,9 +302,9 @@ export default {
|
|
|
302
302
|
actualReactionTime: 'Haqiqiy javob vaqti',
|
|
303
303
|
actualResolutionTime: 'Haqiqiy hal qilish vaqti',
|
|
304
304
|
},
|
|
305
|
-
|
|
305
|
+
WtApplication: {
|
|
306
306
|
overrideApplicationsAccess: {
|
|
307
|
-
[
|
|
307
|
+
[WtApplication.Crm]: {
|
|
308
308
|
sections: {
|
|
309
309
|
[CrmSectionsNew.CasesExtensions]: ({ linked }) =>
|
|
310
310
|
linked('objects.customization.customization') +
|
|
@@ -321,16 +321,16 @@ export default {
|
|
|
321
321
|
},
|
|
322
322
|
},
|
|
323
323
|
},
|
|
324
|
-
[
|
|
324
|
+
[WtApplication.Agent]: {
|
|
325
325
|
name: 'Agent ish joyi',
|
|
326
326
|
},
|
|
327
|
-
[
|
|
327
|
+
[WtApplication.Audit]: {
|
|
328
328
|
name: 'Audit',
|
|
329
329
|
sections: {
|
|
330
330
|
[AuditorSections.Scorecards]: 'Baholash jadvallari',
|
|
331
331
|
},
|
|
332
332
|
},
|
|
333
|
-
[
|
|
333
|
+
[WtApplication.Crm]: {
|
|
334
334
|
name: 'CRM',
|
|
335
335
|
sections: {
|
|
336
336
|
[CrmSections.Contacts]: 'Kontaktlar',
|
|
@@ -344,13 +344,13 @@ export default {
|
|
|
344
344
|
[CrmSections.ContactGroups]: 'Kontakt guruhlari',
|
|
345
345
|
},
|
|
346
346
|
},
|
|
347
|
-
[
|
|
347
|
+
[WtApplication.History]: {
|
|
348
348
|
name: "Qo'ng'iroqlar tarixi",
|
|
349
349
|
},
|
|
350
|
-
[
|
|
350
|
+
[WtApplication.Analytics]: {
|
|
351
351
|
name: "Ma'lumotlarni vizualizatsiya qilish",
|
|
352
352
|
},
|
|
353
|
-
[
|
|
353
|
+
[WtApplication.Supervisor]: {
|
|
354
354
|
name: 'Nazoratchi ish joyi',
|
|
355
355
|
sections: {
|
|
356
356
|
[SupervisorSections.Queues]: 'Navbatlar',
|
|
@@ -358,7 +358,7 @@ export default {
|
|
|
358
358
|
[SupervisorSections.ActiveCalls]: "Faol qo'ng'iroqlar",
|
|
359
359
|
},
|
|
360
360
|
},
|
|
361
|
-
[
|
|
361
|
+
[WtApplication.Admin]: {
|
|
362
362
|
name: 'Admin',
|
|
363
363
|
sections: {
|
|
364
364
|
[AdminSections.Users]: 'Foydalanuvchilar',
|
|
@@ -401,10 +401,10 @@ export default {
|
|
|
401
401
|
[AdminSections.QuickReplies]: 'Tezkor javoblar',
|
|
402
402
|
},
|
|
403
403
|
},
|
|
404
|
-
[
|
|
404
|
+
[WtApplication.Wfm]: {
|
|
405
405
|
name: 'WFM',
|
|
406
406
|
},
|
|
407
|
-
[
|
|
407
|
+
[WtApplication.Meet]: {
|
|
408
408
|
theCameraIsTurnedOff: 'Kamera o‘chirilgan',
|
|
409
409
|
},
|
|
410
410
|
},
|
package/src/locale/vi/vi.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
QueueType,
|
|
18
18
|
RelativeDatetimeValue,
|
|
19
19
|
SupervisorSections,
|
|
20
|
-
|
|
20
|
+
WtApplication,
|
|
21
21
|
} from '../../enums';
|
|
22
22
|
import { AccessMode } from '../../modules/ObjectPermissions/_internals/enums/AccessMode.enum.js';
|
|
23
23
|
import { snakeToCamel } from '../../scripts';
|
|
@@ -302,9 +302,9 @@ export default {
|
|
|
302
302
|
actualResolutionTime: 'Thời gian giải quyết thực tế',
|
|
303
303
|
},
|
|
304
304
|
// describes Webitel FRONTEND applications + their navs
|
|
305
|
-
|
|
305
|
+
WtApplication: {
|
|
306
306
|
overrideApplicationsAccess: {
|
|
307
|
-
[
|
|
307
|
+
[WtApplication.Crm]: {
|
|
308
308
|
sections: {
|
|
309
309
|
[CrmSectionsNew.CasesExtensions]: ({ linked }) =>
|
|
310
310
|
linked('objects.customization.customization') +
|
|
@@ -321,16 +321,16 @@ export default {
|
|
|
321
321
|
},
|
|
322
322
|
},
|
|
323
323
|
},
|
|
324
|
-
[
|
|
324
|
+
[WtApplication.Agent]: {
|
|
325
325
|
name: 'Không gian làm việc của tổng đài viên',
|
|
326
326
|
},
|
|
327
|
-
[
|
|
327
|
+
[WtApplication.Audit]: {
|
|
328
328
|
name: 'Kiểm toán',
|
|
329
329
|
sections: {
|
|
330
330
|
[AuditorSections.Scorecards]: 'Bảng điểm',
|
|
331
331
|
},
|
|
332
332
|
},
|
|
333
|
-
[
|
|
333
|
+
[WtApplication.Crm]: {
|
|
334
334
|
name: 'CRM',
|
|
335
335
|
sections: {
|
|
336
336
|
[CrmSections.Contacts]: 'Danh bạ',
|
|
@@ -344,13 +344,13 @@ export default {
|
|
|
344
344
|
[CrmSections.ContactGroups]: 'Nhóm liên hệ',
|
|
345
345
|
},
|
|
346
346
|
},
|
|
347
|
-
[
|
|
347
|
+
[WtApplication.History]: {
|
|
348
348
|
name: 'Lịch sử cuộc gọi',
|
|
349
349
|
},
|
|
350
|
-
[
|
|
350
|
+
[WtApplication.Analytics]: {
|
|
351
351
|
name: 'Công cụ trực quan hóa dữ liệu',
|
|
352
352
|
},
|
|
353
|
-
[
|
|
353
|
+
[WtApplication.Supervisor]: {
|
|
354
354
|
name: 'Không gian làm việc của giám sát viên',
|
|
355
355
|
sections: {
|
|
356
356
|
[SupervisorSections.Queues]: 'Hàng chờ',
|
|
@@ -358,7 +358,7 @@ export default {
|
|
|
358
358
|
[SupervisorSections.ActiveCalls]: 'Cuộc gọi đang diễn ra',
|
|
359
359
|
},
|
|
360
360
|
},
|
|
361
|
-
[
|
|
361
|
+
[WtApplication.Admin]: {
|
|
362
362
|
name: 'Quản trị',
|
|
363
363
|
sections: {
|
|
364
364
|
[AdminSections.Users]: 'Người dùng',
|
|
@@ -401,10 +401,10 @@ export default {
|
|
|
401
401
|
[AdminSections.QuickReplies]: 'Trả lời nhanh',
|
|
402
402
|
},
|
|
403
403
|
},
|
|
404
|
-
[
|
|
404
|
+
[WtApplication.Wfm]: {
|
|
405
405
|
name: 'WFM',
|
|
406
406
|
},
|
|
407
|
-
[
|
|
407
|
+
[WtApplication.Meet]: {
|
|
408
408
|
theCameraIsTurnedOff: 'Camera đã được tắt',
|
|
409
409
|
},
|
|
410
410
|
},
|
|
@@ -12,18 +12,29 @@
|
|
|
12
12
|
@change-size="(payload) => emit('change-size', payload)"
|
|
13
13
|
>
|
|
14
14
|
<template #content="{ size: innerSize }">
|
|
15
|
-
<slot
|
|
15
|
+
<slot
|
|
16
|
+
name="content"
|
|
17
|
+
:size="innerSize"
|
|
18
|
+
/>
|
|
16
19
|
|
|
17
|
-
<slot
|
|
20
|
+
<slot
|
|
21
|
+
v-if="!mainStream"
|
|
22
|
+
name="overlay"
|
|
23
|
+
:size="innerSize"
|
|
24
|
+
>
|
|
18
25
|
<div class="video-call-overlay">
|
|
19
26
|
<div
|
|
20
27
|
v-if="props['receiver:stream'] && !props['receiver:video:enabled']"
|
|
21
28
|
:class="[`video-call-receiver--${innerSize}`, innerSize === 'sm' ? 'typo-body-2' : 'typo-body-1']"
|
|
22
29
|
class="video-call-receiver video-call-receiver--muted"
|
|
23
30
|
>
|
|
24
|
-
<wt-icon
|
|
31
|
+
<wt-icon
|
|
32
|
+
:size="receiverVideoMutedIconSizes[innerSize]"
|
|
33
|
+
icon="video-cam-off--filled"
|
|
34
|
+
/>
|
|
25
35
|
|
|
26
|
-
<span class="video-call-receiver-text">{{ t(`
|
|
36
|
+
<span class="video-call-receiver-text">{{ t(`WtApplication.${WtApplication.Meet}.theCameraIsTurnedOff`)
|
|
37
|
+
}}</span>
|
|
27
38
|
</div>
|
|
28
39
|
</div>
|
|
29
40
|
</slot>
|
|
@@ -44,7 +55,10 @@
|
|
|
44
55
|
:class="`video-call-sender--${innerSize}`"
|
|
45
56
|
class="video-call-sender video-call-sender--muted"
|
|
46
57
|
>
|
|
47
|
-
<wt-icon
|
|
58
|
+
<wt-icon
|
|
59
|
+
:size="senderVideoMutedIconSizes[innerSize]"
|
|
60
|
+
icon="video-cam-off--filled"
|
|
61
|
+
/>
|
|
48
62
|
</div>
|
|
49
63
|
</template>
|
|
50
64
|
|
|
@@ -85,19 +99,22 @@
|
|
|
85
99
|
:actions:settings:pressed="props['actions:settings:pressed']"
|
|
86
100
|
:actions:settings:disabled="props['actions:settings:disabled']"
|
|
87
101
|
:actions:chat:pressed="props['actions:chat:pressed']"
|
|
88
|
-
@[VideoCallAction.
|
|
89
|
-
@[VideoCallAction.
|
|
90
|
-
@[VideoCallAction.Mic]="(payload, options) => emit(
|
|
91
|
-
@[VideoCallAction.Video]="(payload, options) => emit(
|
|
92
|
-
@[VideoCallAction.Settings]="(payload, options) => emit(
|
|
93
|
-
@[VideoCallAction.Chat]="(payload, options) => emit(
|
|
94
|
-
@[VideoCallAction.Hangup]="(payload, options) => emit(
|
|
102
|
+
@[VideoCallAction.Recordings]="(payload, options) => emit(emitKeys[VideoCallAction.Recordings], payload, options)"
|
|
103
|
+
@[VideoCallAction.Screenshot]="(payload, options) => emit(emitKeys[VideoCallAction.Screenshot], payload, options)"
|
|
104
|
+
@[VideoCallAction.Mic]="(payload, options) => emit(emitKeys[VideoCallAction.Mic], payload, options)"
|
|
105
|
+
@[VideoCallAction.Video]="(payload, options) => emit(emitKeys[VideoCallAction.Video], payload, options)"
|
|
106
|
+
@[VideoCallAction.Settings]="(payload, options) => emit(emitKeys[VideoCallAction.Settings], payload, options)"
|
|
107
|
+
@[VideoCallAction.Chat]="(payload, options) => emit(emitKeys[VideoCallAction.Chat], payload, options)"
|
|
108
|
+
@[VideoCallAction.Hangup]="(payload, options) => emit(emitKeys[VideoCallAction.Hangup], payload, options)"
|
|
95
109
|
/>
|
|
96
110
|
</template>
|
|
97
111
|
</wt-vidstack-player>
|
|
98
112
|
</template>
|
|
99
113
|
|
|
100
|
-
<script
|
|
114
|
+
<script
|
|
115
|
+
setup
|
|
116
|
+
lang="ts"
|
|
117
|
+
>
|
|
101
118
|
import { WtVidstackPlayer } from '@webitel/ui-sdk/components';
|
|
102
119
|
import { computed } from 'vue';
|
|
103
120
|
import { useI18n } from 'vue-i18n';
|
|
@@ -108,10 +125,10 @@ import {
|
|
|
108
125
|
ScreenshotBox,
|
|
109
126
|
VideoCallControlsPanel,
|
|
110
127
|
} from '../../../../components/wt-vidstack-player/components';
|
|
111
|
-
import { ComponentSize,
|
|
128
|
+
import { ComponentSize, WtApplication } from '../../../../enums';
|
|
112
129
|
import type { ResultCallbacks } from '../../../../types';
|
|
113
130
|
import type { ScreenshotStatus } from '../../types';
|
|
114
|
-
import
|
|
131
|
+
import { VideoCallAction } from './enums/VideoCallAction.enum';
|
|
115
132
|
|
|
116
133
|
const props = withDefaults(
|
|
117
134
|
defineProps<{
|
|
@@ -192,6 +209,19 @@ const emit = defineEmits<{
|
|
|
192
209
|
(e: `change-size`, size: ComponentSize): void;
|
|
193
210
|
}>();
|
|
194
211
|
|
|
212
|
+
/**
|
|
213
|
+
* dont remove, coz biome reformats VideoCallAction import to "type"
|
|
214
|
+
*/
|
|
215
|
+
const emitKeys = {
|
|
216
|
+
[VideoCallAction.Screenshot]: `action:${VideoCallAction.Screenshot}`,
|
|
217
|
+
[VideoCallAction.Recordings]: `action:${VideoCallAction.Recordings}`,
|
|
218
|
+
[VideoCallAction.Mic]: `action:${VideoCallAction.Mic}`,
|
|
219
|
+
[VideoCallAction.Video]: `action:${VideoCallAction.Video}`,
|
|
220
|
+
[VideoCallAction.Settings]: `action:${VideoCallAction.Settings}`,
|
|
221
|
+
[VideoCallAction.Chat]: `action:${VideoCallAction.Chat}`,
|
|
222
|
+
[VideoCallAction.Hangup]: `action:${VideoCallAction.Hangup}`,
|
|
223
|
+
};
|
|
224
|
+
|
|
195
225
|
const { t } = useI18n();
|
|
196
226
|
|
|
197
227
|
const mainStream = computed(() => {
|
|
@@ -8,251 +8,247 @@ import {
|
|
|
8
8
|
CrmSections as CrmSectionsNew,
|
|
9
9
|
SupervisorSections as SupervisorSectionsNew,
|
|
10
10
|
} from '../../../enums';
|
|
11
|
-
import
|
|
12
|
-
import AuditorSections from '../../../enums/WebitelApplications/AuditorSections.enum.js';
|
|
13
|
-
import CrmSections from '../../../enums/WebitelApplications/CrmSections.enum.js';
|
|
14
|
-
import SupervisorSections from '../../../enums/WebitelApplications/SupervisorSections.enum.js';
|
|
15
|
-
import WebitelApplications from '../../../enums/WebitelApplications/WebitelApplications.enum.js';
|
|
11
|
+
import { WtApplication } from '../../../enums';
|
|
16
12
|
|
|
17
13
|
const applicationsAccess = (value = true) => ({
|
|
18
|
-
[
|
|
14
|
+
[WtApplication.Agent]: {
|
|
19
15
|
_enabled: value,
|
|
20
|
-
_locale: `
|
|
16
|
+
_locale: `WtApplication.${WtApplication.Agent}.name`,
|
|
21
17
|
},
|
|
22
|
-
[
|
|
18
|
+
[WtApplication.History]: {
|
|
23
19
|
_enabled: value,
|
|
24
|
-
_locale: `
|
|
20
|
+
_locale: `WtApplication.${WtApplication.History}.name`,
|
|
25
21
|
},
|
|
26
|
-
[
|
|
22
|
+
[WtApplication.Analytics]: {
|
|
27
23
|
_enabled: value,
|
|
28
|
-
_locale: `
|
|
24
|
+
_locale: `WtApplication.${WtApplication.Analytics}.name`,
|
|
29
25
|
},
|
|
30
|
-
[
|
|
26
|
+
[WtApplication.Supervisor]: {
|
|
31
27
|
_enabled: value,
|
|
32
|
-
_locale: `
|
|
33
|
-
[SupervisorSections.
|
|
28
|
+
_locale: `WtApplication.${WtApplication.Supervisor}.name`,
|
|
29
|
+
[SupervisorSections.Queues]: {
|
|
34
30
|
_enabled: value,
|
|
35
|
-
_locale: `
|
|
31
|
+
_locale: `WtApplication.${WtApplication.Supervisor}.sections.${SupervisorSectionsNew.Queues}`,
|
|
36
32
|
},
|
|
37
|
-
[SupervisorSections.
|
|
33
|
+
[SupervisorSections.Agents]: {
|
|
38
34
|
_enabled: value,
|
|
39
|
-
_locale: `
|
|
35
|
+
_locale: `WtApplication.${WtApplication.Supervisor}.sections.${SupervisorSectionsNew.Agents}`,
|
|
40
36
|
},
|
|
41
|
-
[SupervisorSections.
|
|
37
|
+
[SupervisorSections.ActiveCalls]: {
|
|
42
38
|
_enabled: value,
|
|
43
|
-
_locale: `
|
|
39
|
+
_locale: `WtApplication.${WtApplication.Supervisor}.sections.${SupervisorSectionsNew.ActiveCalls}`,
|
|
44
40
|
},
|
|
45
41
|
},
|
|
46
|
-
[
|
|
42
|
+
[WtApplication.Admin]: {
|
|
47
43
|
_enabled: value,
|
|
48
|
-
_locale: `
|
|
49
|
-
[AdminSections.
|
|
44
|
+
_locale: `WtApplication.${WtApplication.Admin}.name`,
|
|
45
|
+
[AdminSections.License]: {
|
|
50
46
|
_enabled: value,
|
|
51
|
-
_locale: `
|
|
47
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.License}`,
|
|
52
48
|
},
|
|
53
|
-
[AdminSections.
|
|
49
|
+
[AdminSections.Users]: {
|
|
54
50
|
_enabled: value,
|
|
55
|
-
_locale: `
|
|
51
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Users}`,
|
|
56
52
|
},
|
|
57
|
-
[AdminSections.
|
|
53
|
+
[AdminSections.Devices]: {
|
|
58
54
|
_enabled: value,
|
|
59
|
-
_locale: `
|
|
55
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Devices}`,
|
|
60
56
|
},
|
|
61
|
-
[AdminSections.
|
|
57
|
+
[AdminSections.Flow]: {
|
|
62
58
|
_enabled: value,
|
|
63
|
-
_locale: `
|
|
59
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Flow}`,
|
|
64
60
|
},
|
|
65
|
-
[AdminSections.
|
|
61
|
+
[AdminSections.Dialplan]: {
|
|
66
62
|
_enabled: value,
|
|
67
|
-
_locale: `
|
|
63
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Dialplan}`,
|
|
68
64
|
},
|
|
69
|
-
[AdminSections.
|
|
65
|
+
[AdminSections.Gateways]: {
|
|
70
66
|
_enabled: value,
|
|
71
|
-
_locale: `
|
|
67
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Gateways}`,
|
|
72
68
|
},
|
|
73
|
-
[AdminSections.
|
|
69
|
+
[AdminSections.Chatplan]: {
|
|
74
70
|
_enabled: value,
|
|
75
|
-
_locale: `
|
|
71
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Chatplan}`,
|
|
76
72
|
},
|
|
77
|
-
[AdminSections.
|
|
73
|
+
[AdminSections.ChatGateways]: {
|
|
78
74
|
_enabled: value,
|
|
79
|
-
_locale: `
|
|
75
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.ChatGateways}`,
|
|
80
76
|
},
|
|
81
|
-
[AdminSections.
|
|
77
|
+
[AdminSections.Skills]: {
|
|
82
78
|
_enabled: value,
|
|
83
|
-
_locale: `
|
|
79
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Skills}`,
|
|
84
80
|
},
|
|
85
|
-
[AdminSections.
|
|
81
|
+
[AdminSections.Buckets]: {
|
|
86
82
|
_enabled: value,
|
|
87
|
-
_locale: `
|
|
83
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Buckets}`,
|
|
88
84
|
},
|
|
89
|
-
[AdminSections.
|
|
85
|
+
[AdminSections.Blacklist]: {
|
|
90
86
|
_enabled: value,
|
|
91
|
-
_locale: `
|
|
87
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Blacklist}`,
|
|
92
88
|
},
|
|
93
|
-
[AdminSections.
|
|
89
|
+
[AdminSections.Regions]: {
|
|
94
90
|
_enabled: value,
|
|
95
|
-
_locale: `
|
|
91
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Regions}`,
|
|
96
92
|
},
|
|
97
|
-
[AdminSections.
|
|
93
|
+
[AdminSections.Calendars]: {
|
|
98
94
|
_enabled: value,
|
|
99
|
-
_locale: `
|
|
95
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Calendars}`,
|
|
100
96
|
},
|
|
101
|
-
[AdminSections.
|
|
97
|
+
[AdminSections.Communications]: {
|
|
102
98
|
_enabled: value,
|
|
103
|
-
_locale: `
|
|
99
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Communications}`,
|
|
104
100
|
},
|
|
105
|
-
[AdminSections.
|
|
101
|
+
[AdminSections.PauseCause]: {
|
|
106
102
|
_enabled: value,
|
|
107
|
-
_locale: `
|
|
103
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.PauseCause}`,
|
|
108
104
|
},
|
|
109
|
-
[AdminSections.
|
|
105
|
+
[AdminSections.Media]: {
|
|
110
106
|
_enabled: value,
|
|
111
|
-
_locale: `
|
|
107
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Media}`,
|
|
112
108
|
},
|
|
113
|
-
[AdminSections.
|
|
109
|
+
[AdminSections.ShiftTemplates]: {
|
|
114
110
|
_enabled: value,
|
|
115
|
-
_locale: `
|
|
111
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.ShiftTemplates}`,
|
|
116
112
|
},
|
|
117
|
-
[AdminSections.
|
|
113
|
+
[AdminSections.PauseTemplates]: {
|
|
118
114
|
_enabled: value,
|
|
119
|
-
_locale: `
|
|
115
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.PauseTemplates}`,
|
|
120
116
|
},
|
|
121
|
-
[AdminSections.
|
|
117
|
+
[AdminSections.WorkingConditions]: {
|
|
122
118
|
_enabled: value,
|
|
123
|
-
_locale: `
|
|
119
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.WorkingConditions}`,
|
|
124
120
|
},
|
|
125
|
-
[AdminSections.
|
|
121
|
+
[AdminSections.QuickReplies]: {
|
|
126
122
|
_enabled: value,
|
|
127
|
-
_locale: `
|
|
123
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.QuickReplies}`,
|
|
128
124
|
},
|
|
129
|
-
[AdminSections.
|
|
125
|
+
[AdminSections.Agents]: {
|
|
130
126
|
_enabled: value,
|
|
131
|
-
_locale: `
|
|
127
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Agents}`,
|
|
132
128
|
},
|
|
133
|
-
[AdminSections.
|
|
129
|
+
[AdminSections.Teams]: {
|
|
134
130
|
_enabled: value,
|
|
135
|
-
_locale: `
|
|
131
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Teams}`,
|
|
136
132
|
},
|
|
137
|
-
[AdminSections.
|
|
133
|
+
[AdminSections.Resources]: {
|
|
138
134
|
_enabled: value,
|
|
139
|
-
_locale: `
|
|
135
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Resources}`,
|
|
140
136
|
},
|
|
141
|
-
[AdminSections.
|
|
137
|
+
[AdminSections.ResourceGroups]: {
|
|
142
138
|
_enabled: value,
|
|
143
|
-
_locale: `
|
|
139
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.ResourceGroups}`,
|
|
144
140
|
},
|
|
145
|
-
[AdminSections.
|
|
141
|
+
[AdminSections.Queues]: {
|
|
146
142
|
_enabled: value,
|
|
147
|
-
_locale: `
|
|
143
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Queues}`,
|
|
148
144
|
},
|
|
149
|
-
[AdminSections.
|
|
145
|
+
[AdminSections.Storage]: {
|
|
150
146
|
_enabled: value,
|
|
151
|
-
_locale: `
|
|
147
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Storage}`,
|
|
152
148
|
},
|
|
153
|
-
[AdminSections.
|
|
149
|
+
[AdminSections.StoragePolicies]: {
|
|
154
150
|
_enabled: value,
|
|
155
|
-
_locale: `
|
|
151
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.StoragePolicies}`,
|
|
156
152
|
},
|
|
157
|
-
[AdminSections.
|
|
153
|
+
[AdminSections.CognitiveProfiles]: {
|
|
158
154
|
_enabled: value,
|
|
159
|
-
_locale: `
|
|
155
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.CognitiveProfiles}`,
|
|
160
156
|
},
|
|
161
|
-
[AdminSections.
|
|
157
|
+
[AdminSections.EmailProfiles]: {
|
|
162
158
|
_enabled: value,
|
|
163
|
-
_locale: `
|
|
159
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.EmailProfiles}`,
|
|
164
160
|
},
|
|
165
|
-
[AdminSections.
|
|
161
|
+
[AdminSections.SingleSignOn]: {
|
|
166
162
|
_enabled: value,
|
|
167
|
-
_locale: `
|
|
163
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.SingleSignOn}`,
|
|
168
164
|
},
|
|
169
|
-
[AdminSections.
|
|
165
|
+
[AdminSections.ImportCsv]: {
|
|
170
166
|
_enabled: value,
|
|
171
|
-
_locale: `
|
|
167
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.ImportCsv}`,
|
|
172
168
|
},
|
|
173
|
-
[AdminSections.
|
|
169
|
+
[AdminSections.Triggers]: {
|
|
174
170
|
_enabled: value,
|
|
175
|
-
_locale: `
|
|
171
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Triggers}`,
|
|
176
172
|
},
|
|
177
|
-
[AdminSections.
|
|
173
|
+
[AdminSections.Roles]: {
|
|
178
174
|
_enabled: value,
|
|
179
|
-
_locale: `
|
|
175
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Roles}`,
|
|
180
176
|
},
|
|
181
|
-
[AdminSections.
|
|
177
|
+
[AdminSections.Objects]: {
|
|
182
178
|
_enabled: value,
|
|
183
|
-
_locale: `
|
|
179
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Objects}`,
|
|
184
180
|
},
|
|
185
|
-
[AdminSections.
|
|
181
|
+
[AdminSections.Changelogs]: {
|
|
186
182
|
_enabled: value,
|
|
187
|
-
_locale: `
|
|
183
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Changelogs}`,
|
|
188
184
|
},
|
|
189
|
-
[AdminSections.
|
|
185
|
+
[AdminSections.Configuration]: {
|
|
190
186
|
_enabled: value,
|
|
191
|
-
_locale: `
|
|
187
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.Configuration}`,
|
|
192
188
|
},
|
|
193
|
-
[AdminSections.
|
|
189
|
+
[AdminSections.GlobalVariables]: {
|
|
194
190
|
_enabled: value,
|
|
195
|
-
_locale: `
|
|
191
|
+
_locale: `WtApplication.${WtApplication.Admin}.sections.${AdminSectionsNew.GlobalVariables}`,
|
|
196
192
|
},
|
|
197
193
|
},
|
|
198
|
-
[
|
|
194
|
+
[WtApplication.Audit]: {
|
|
199
195
|
_enabled: value,
|
|
200
|
-
_locale: `
|
|
201
|
-
[AuditorSections.
|
|
196
|
+
_locale: `WtApplication.${WtApplication.Audit}.name`,
|
|
197
|
+
[AuditorSections.Scorecards]: {
|
|
202
198
|
_enabled: value,
|
|
203
|
-
_locale: `
|
|
199
|
+
_locale: `WtApplication.${WtApplication.Audit}.sections.${AuditorSectionsNew.Scorecards}`,
|
|
204
200
|
},
|
|
205
201
|
},
|
|
206
|
-
[
|
|
202
|
+
[WtApplication.Crm]: {
|
|
207
203
|
_enabled: value,
|
|
208
|
-
_locale: `
|
|
209
|
-
[CrmSections.
|
|
204
|
+
_locale: `WtApplication.${WtApplication.Crm}.name`,
|
|
205
|
+
[CrmSections.Contacts]: {
|
|
210
206
|
_enabled: value,
|
|
211
|
-
_locale: `
|
|
207
|
+
_locale: `WtApplication.${WtApplication.Crm}.sections.${CrmSectionsNew.Contacts}`,
|
|
212
208
|
},
|
|
213
|
-
[CrmSections.
|
|
209
|
+
[CrmSections.Cases]: {
|
|
214
210
|
_enabled: value,
|
|
215
|
-
_locale: `
|
|
211
|
+
_locale: `WtApplication.${WtApplication.Crm}.sections.${CrmSectionsNew.Cases}`,
|
|
216
212
|
},
|
|
217
|
-
[CrmSections.
|
|
213
|
+
[CrmSections.Slas]: {
|
|
218
214
|
_enabled: value,
|
|
219
|
-
_locale: `
|
|
215
|
+
_locale: `WtApplication.${WtApplication.Crm}.sections.${CrmSectionsNew.Slas}`,
|
|
220
216
|
},
|
|
221
|
-
[CrmSections.
|
|
217
|
+
[CrmSections.Sources]: {
|
|
222
218
|
_enabled: value,
|
|
223
|
-
_locale: `
|
|
219
|
+
_locale: `WtApplication.${WtApplication.Crm}.sections.${CrmSectionsNew.Sources}`,
|
|
224
220
|
},
|
|
225
|
-
[CrmSections.
|
|
221
|
+
[CrmSections.ServiceCatalogs]: {
|
|
226
222
|
_enabled: value,
|
|
227
|
-
_locale: `
|
|
223
|
+
_locale: `WtApplication.${WtApplication.Crm}.sections.${CrmSectionsNew.ServiceCatalogs}`,
|
|
228
224
|
},
|
|
229
|
-
[CrmSections.
|
|
225
|
+
[CrmSections.CloseReasonGroups]: {
|
|
230
226
|
_enabled: value,
|
|
231
|
-
_locale: `
|
|
227
|
+
_locale: `WtApplication.${WtApplication.Crm}.sections.${CrmSectionsNew.CloseReasonGroups}`,
|
|
232
228
|
},
|
|
233
|
-
[CrmSections.
|
|
229
|
+
[CrmSections.ContactGroups]: {
|
|
234
230
|
_enabled: value,
|
|
235
|
-
_locale: `
|
|
231
|
+
_locale: `WtApplication.${WtApplication.Crm}.sections.${CrmSectionsNew.ContactGroups}`,
|
|
236
232
|
},
|
|
237
|
-
[CrmSections.
|
|
233
|
+
[CrmSections.Priorities]: {
|
|
238
234
|
_enabled: value,
|
|
239
|
-
_locale: `
|
|
235
|
+
_locale: `WtApplication.${WtApplication.Crm}.sections.${CrmSectionsNew.Priorities}`,
|
|
240
236
|
},
|
|
241
|
-
[CrmSections.
|
|
237
|
+
[CrmSections.Statuses]: {
|
|
242
238
|
_enabled: value,
|
|
243
|
-
_locale: `
|
|
239
|
+
_locale: `WtApplication.${WtApplication.Crm}.sections.${CrmSectionsNew.Statuses}`,
|
|
244
240
|
},
|
|
245
241
|
[CrmSectionsNew.CasesExtensions]: {
|
|
246
242
|
_enabled: value,
|
|
247
|
-
_locale: `
|
|
243
|
+
_locale: `WtApplication.overrideApplicationsAccess.${WtApplication.Crm}.sections.${CrmSectionsNew.CasesExtensions}`,
|
|
248
244
|
},
|
|
249
245
|
[CrmSectionsNew.ContactsExtensions]: {
|
|
250
246
|
_enabled: value,
|
|
251
|
-
_locale: `
|
|
247
|
+
_locale: `WtApplication.overrideApplicationsAccess.${WtApplication.Crm}.sections.${CrmSectionsNew.ContactsExtensions}`,
|
|
252
248
|
},
|
|
253
249
|
[CrmSectionsNew.CustomLookups]: {
|
|
254
250
|
_enabled: value,
|
|
255
|
-
_locale: `
|
|
251
|
+
_locale: `WtApplication.overrideApplicationsAccess.${WtApplication.Crm}.sections.${CrmSectionsNew.CustomLookups}`,
|
|
256
252
|
},
|
|
257
253
|
},
|
|
258
254
|
});
|
|
@@ -267,7 +263,7 @@ export default class ApplicationsAccess {
|
|
|
267
263
|
},
|
|
268
264
|
) {
|
|
269
265
|
/* if access, deeply merge with falsy values schema
|
|
270
|
-
|
|
266
|
+
if no access, "not configured => full permissions" */
|
|
271
267
|
this.access = access
|
|
272
268
|
? ApplicationsAccess.restore(access)
|
|
273
269
|
: applicationsAccess(value);
|