@webitel/ui-sdk 26.8.137 → 26.8.139
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/clients-Bk3DA6vL.js +42471 -0
- package/dist/{components-Ce88bKcR.js → components-Bzxyigqb.js} +13 -13
- package/dist/{convertDuration-y5tRHrgE.js → convertDuration-CIPonKKW.js} +1 -1
- package/dist/{enums-CLu6QDOc.js → enums-CKer6GJR.js} +0 -1
- package/dist/ui-sdk.js +3 -3
- package/dist/ui-sdk.umd.cjs +540 -540
- package/dist/{useValidation-BO5PKJ7c.js → useValidation-B1EJdGM4.js} +1 -1
- package/dist/{utils-DVfDViCh.js → utils-DQQQIpjz.js} +1 -1
- package/dist/{wt-action-bar-RruYJ0y6.js → wt-action-bar-CJiWenUy.js} +2 -2
- package/dist/{wt-badge-LyfZxvmI.js → wt-badge-B3NI2a3-.js} +1 -1
- package/dist/{wt-button-COHcpvhY.js → wt-button-DSs8WAg-.js} +2 -2
- package/dist/{wt-chat-emoji-DtTLoivU.js → wt-chat-emoji-DqLArBt8.js} +4 -4
- package/dist/{wt-datepicker-D5ARLEeQ.js → wt-datepicker-Cx8yPH4d.js} +2 -2
- package/dist/{wt-display-chip-items-xqv8mCRj.js → wt-display-chip-items-CYABNzDH.js} +2 -2
- package/dist/{wt-dual-panel-BRgwCFK_.js → wt-dual-panel-BHfOeLJZ.js} +1 -1
- package/dist/{wt-expansion-card-JQxugKar.js → wt-expansion-card-CNkGLQvo.js} +1 -1
- package/dist/{wt-expansion-panel-BHxaV6pi.js → wt-expansion-panel-CGFamfkt.js} +1 -1
- package/dist/{wt-icon-CgzRk5RS.js → wt-icon-Cr_aDKIX.js} +1 -1
- package/dist/{wt-icon-action-DqN65BiE.js → wt-icon-action-DnDFrScL.js} +1 -1
- package/dist/{wt-icon-btn-DwwaYWSw.js → wt-icon-btn-Dy4odu2Q.js} +1 -1
- package/dist/{wt-notifications-bar-BlybO6wl.js → wt-notifications-bar-BDtvykT7.js} +2 -2
- package/dist/{wt-player-CVj1a9-l.js → wt-player-BjnujOrP.js} +3 -3
- package/dist/{wt-screen-recordings-action-DKCrbDdO.js → wt-screen-recordings-action-CHlh4sNO.js} +1 -1
- package/dist/{wt-search-bar-DpsACKmt.js → wt-search-bar-Bp9M1oCq.js} +1 -1
- package/dist/{wt-send-message-popup-DyK3nhp5.js → wt-send-message-popup-B6VaAW53.js} +3 -3
- package/dist/{wt-status-select-CwrK_Q9v.js → wt-status-select-DItpCCVE.js} +2 -2
- package/dist/{wt-table-C_Vk3v8K.js → wt-table-ByNazLN3.js} +3 -3
- package/dist/{wt-timepicker-DhXZ0OI8.js → wt-timepicker-BW0HmFJI.js} +2 -2
- package/dist/{wt-toast-CrvaF-UL.js → wt-toast-CAoQkSuJ.js} +2 -2
- package/dist/{wt-tree-table-BqV7-6Pz.js → wt-tree-table-Rf2Jq-39.js} +1 -1
- package/dist/{wt-type-extension-value-input-C18U_aE9.js → wt-type-extension-value-input-DAPDUmhp.js} +24 -24
- package/dist/{wt-vidstack-player-BFiQRCBc.js → wt-vidstack-player-DSgFPUrJ.js} +5 -5
- package/package.json +4 -4
- package/src/enums/WebitelApplications/AdminSections.ts +0 -1
- package/src/locale/en/en.js +2 -2
- package/src/locale/es/es.js +2 -2
- package/src/locale/kz/kz.js +2 -2
- package/src/locale/pl/pl.js +2 -2
- package/src/locale/ro/ro.js +2 -2
- package/src/locale/ru/ru.js +2 -2
- package/src/locale/uk/uk.js +2 -2
- package/src/locale/uz/uz.js +2 -2
- package/src/locale/vi/vi.js +2 -2
- package/src/modules/SaveCopy/composables/useSaveCopy.ts +29 -0
- package/src/modules/SaveCopy/index.ts +1 -0
- package/src/modules/Userinfo/classes/ApplicationsAccess.ts +6 -6
- package/src/modules/Userinfo/classes/__tests__/ApplicationsAccess.spec.ts +2 -9
- package/src/modules/Userinfo/mappings/__tests__/mappings.spec.ts +10 -12
- package/src/modules/Userinfo/mappings/mappings.ts +2 -2
- package/types/.tsbuildinfo +1 -1
- package/types/enums/WebitelApplications/AdminSections.d.ts +0 -1
- package/types/locale/en/en.d.ts +2 -2
- package/types/locale/es/es.d.ts +4 -5
- package/types/locale/i18n.d.ts +18 -18
- package/types/locale/index.d.ts +18 -18
- package/types/locale/kz/kz.d.ts +4 -5
- package/types/locale/pl/pl.d.ts +4 -5
- package/types/locale/ro/ro.d.ts +4 -5
- package/types/locale/ru/ru.d.ts +4 -5
- package/types/locale/uk/uk.d.ts +4 -5
- package/types/locale/uz/uz.d.ts +4 -5
- package/types/locale/vi/vi.d.ts +4 -5
- package/types/modules/SaveCopy/composables/useSaveCopy.d.ts +7 -0
- package/types/modules/SaveCopy/index.d.ts +1 -0
- package/dist/clients-C7QyOTHe.js +0 -42456
- package/src/modules/SaveCopyPopup/components/save-copy-popup.vue +0 -73
- package/src/modules/SaveCopyPopup/composables/useSaveCopyPopup.ts +0 -37
- package/src/modules/SaveCopyPopup/index.ts +0 -2
- package/types/modules/SaveCopyPopup/components/save-copy-popup.vue.d.ts +0 -14
- package/types/modules/SaveCopyPopup/composables/useSaveCopyPopup.d.ts +0 -10
- package/types/modules/SaveCopyPopup/index.d.ts +0 -2
|
@@ -7,8 +7,9 @@ const wfmSections = [
|
|
|
7
7
|
WfmSections.Agents,
|
|
8
8
|
WfmSections.Schedules,
|
|
9
9
|
WfmSections.ForecastCalculation,
|
|
10
|
-
WfmSections.PauseTemplates,
|
|
11
10
|
WfmSections.ShiftTemplates,
|
|
11
|
+
WfmSections.PauseTemplates,
|
|
12
|
+
WfmSections.WorkingConditions,
|
|
12
13
|
];
|
|
13
14
|
|
|
14
15
|
describe('ApplicationsAccess', () => {
|
|
@@ -27,14 +28,6 @@ describe('ApplicationsAccess', () => {
|
|
|
27
28
|
});
|
|
28
29
|
});
|
|
29
30
|
|
|
30
|
-
it('does not include lookups that are not moved to WFM yet', () => {
|
|
31
|
-
const { access } = new ApplicationsAccess();
|
|
32
|
-
|
|
33
|
-
expect(
|
|
34
|
-
access[WtApplication.Wfm][WfmSections.WorkingConditions],
|
|
35
|
-
).toBeUndefined();
|
|
36
|
-
});
|
|
37
|
-
|
|
38
31
|
it('restores WFM as disabled when it is missing from saved access', () => {
|
|
39
32
|
const { access } = new ApplicationsAccess({
|
|
40
33
|
access: {
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { describe, expect, it } from 'vitest';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
AdminSections,
|
|
5
|
-
WfmSections,
|
|
6
|
-
WtApplication,
|
|
7
|
-
WtObject,
|
|
8
|
-
} from '../../../../enums';
|
|
3
|
+
import { WfmSections, WtApplication, WtObject } from '../../../../enums';
|
|
9
4
|
import { castWtObjectToUiSection } from '../../scripts/utils';
|
|
10
5
|
|
|
11
6
|
describe('mapWtObjectToUiSection', () => {
|
|
@@ -15,12 +10,6 @@ describe('mapWtObjectToUiSection', () => {
|
|
|
15
10
|
);
|
|
16
11
|
});
|
|
17
12
|
|
|
18
|
-
it('keeps Admin mapping for lookups that are not moved to WFM yet', () => {
|
|
19
|
-
expect(
|
|
20
|
-
castWtObjectToUiSection(WtApplication.Admin, WtObject.WorkingCondition),
|
|
21
|
-
).toBe(AdminSections.WorkingConditions);
|
|
22
|
-
});
|
|
23
|
-
|
|
24
13
|
it('maps shift templates to WFM only', () => {
|
|
25
14
|
expect(
|
|
26
15
|
castWtObjectToUiSection(WtApplication.Wfm, WtObject.ShiftTemplate),
|
|
@@ -38,4 +27,13 @@ describe('mapWtObjectToUiSection', () => {
|
|
|
38
27
|
castWtObjectToUiSection(WtApplication.Admin, WtObject.PauseTemplate),
|
|
39
28
|
).toBeUndefined();
|
|
40
29
|
});
|
|
30
|
+
|
|
31
|
+
it('maps working conditions to WFM only', () => {
|
|
32
|
+
expect(
|
|
33
|
+
castWtObjectToUiSection(WtApplication.Wfm, WtObject.WorkingCondition),
|
|
34
|
+
).toBe(WfmSections.WorkingConditions);
|
|
35
|
+
expect(
|
|
36
|
+
castWtObjectToUiSection(WtApplication.Admin, WtObject.WorkingCondition),
|
|
37
|
+
).toBeUndefined();
|
|
38
|
+
});
|
|
41
39
|
});
|
|
@@ -241,7 +241,6 @@ export const mapWtObjectToUiSection: Partial<
|
|
|
241
241
|
[WtObject.ChangeLog]: AdminSections.Changelogs,
|
|
242
242
|
[WtObject.Configuration]: AdminSections.Configuration,
|
|
243
243
|
[WtObject.GlobalVariable]: AdminSections.GlobalVariables,
|
|
244
|
-
[WtObject.WorkingCondition]: AdminSections.WorkingConditions,
|
|
245
244
|
[WtObject.Member]: AdminSections.Members,
|
|
246
245
|
[WtObject.QuickReply]: AdminSections.QuickReplies,
|
|
247
246
|
[WtObject.ActivityType]: AdminSections.ActivityTypes,
|
|
@@ -277,8 +276,9 @@ export const mapWtObjectToUiSection: Partial<
|
|
|
277
276
|
// Wfm sections
|
|
278
277
|
[WtApplication.Wfm]: {
|
|
279
278
|
[WtObject.Agent]: WfmSections.Agents,
|
|
280
|
-
[WtObject.PauseTemplate]: WfmSections.PauseTemplates,
|
|
281
279
|
[WtObject.ShiftTemplate]: WfmSections.ShiftTemplates,
|
|
280
|
+
[WtObject.PauseTemplate]: WfmSections.PauseTemplates,
|
|
281
|
+
[WtObject.WorkingCondition]: WfmSections.WorkingConditions,
|
|
282
282
|
},
|
|
283
283
|
};
|
|
284
284
|
|