@webitel/ui-sdk 26.8.106 → 26.8.108
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/{components-CRmvV0ze.js → components-BwnHoOxc.js} +3 -3
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +381 -381
- package/dist/{wt-chat-emoji-DUYgD7x0.js → wt-chat-emoji-YWk_As-i.js} +1 -1
- package/dist/{wt-display-chip-items-Dm6I2JFC.js → wt-display-chip-items-CM7ukRbx.js} +1 -1
- package/dist/{wt-send-message-popup-afA26_0Q.js → wt-send-message-popup-DpWs6kDO.js} +1 -1
- package/dist/{wt-tree-table-DMK0J0Jx.js → wt-tree-table-B24eT18h.js} +75 -58
- package/dist/{wt-type-extension-value-input-CEX06xVC.js → wt-type-extension-value-input-B2GxgFE7.js} +1 -1
- package/dist/{wt-vidstack-player-1Z1fEhkA.js → wt-vidstack-player-CfRt7lLu.js} +1 -1
- package/package.json +7 -2
- package/src/components/wt-tree-table-row/__tests__/WtTreeTableRow.spec.js +4 -3
- package/src/components/wt-tree-table-row/wt-tree-table-row.vue +45 -2
- package/src/locale/en/en.js +3 -5
- package/src/locale/es/es.js +3 -5
- package/src/locale/kz/kz.js +3 -5
- package/src/locale/pl/pl.js +3 -5
- package/src/locale/ro/ro.js +3 -5
- package/src/locale/ru/ru.js +3 -5
- package/src/locale/uk/uk.js +3 -5
- package/src/locale/uz/uz.js +3 -5
- package/src/locale/vi/vi.js +3 -5
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-activity-type-popup.vue +3 -0
- package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +15 -2
- package/src/modules/AgentStatusSelect/composables/useCCenterModeSwitcher.ts +2 -1
- package/src/modules/AgentStatusSelect/index.ts +1 -0
- package/types/.tsbuildinfo +1 -1
- package/types/modules/AgentStatusSelect/composables/useCCenterModeSwitcher.d.ts +1 -1
- package/types/modules/AgentStatusSelect/index.d.ts +1 -0
|
@@ -89,7 +89,17 @@ const statusSelectKey = ref(0);
|
|
|
89
89
|
|
|
90
90
|
const isPauseCausePopup = ref(false);
|
|
91
91
|
const pauseCauses = ref<EngineForAgentPauseCause[]>([]);
|
|
92
|
-
|
|
92
|
+
|
|
93
|
+
/** Only the shape this component reads off a rejected status change. */
|
|
94
|
+
type StatusChangeError = {
|
|
95
|
+
response?: {
|
|
96
|
+
data?: {
|
|
97
|
+
id?: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const error = ref<StatusChangeError | null>(null);
|
|
93
103
|
|
|
94
104
|
const isActivityTypePopup = ref(false);
|
|
95
105
|
|
|
@@ -167,7 +177,10 @@ async function changeStatus({
|
|
|
167
177
|
emit('changed', statusPayload);
|
|
168
178
|
} catch (err) {
|
|
169
179
|
statusSelectKey.value++;
|
|
170
|
-
|
|
180
|
+
const failure = err as StatusChangeError;
|
|
181
|
+
if (failure?.response?.data?.id === PauseNotAllowedError.id) {
|
|
182
|
+
error.value = failure;
|
|
183
|
+
}
|
|
171
184
|
throw err;
|
|
172
185
|
}
|
|
173
186
|
}
|
|
@@ -15,7 +15,8 @@ export const useCCenterModeSwitcher = ({
|
|
|
15
15
|
callCenterModeChanging.value = false;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
// wt-switcher emits `boolean | undefined`; an absent value reads as off
|
|
19
|
+
async function toggleCallCenterMode(value?: boolean) {
|
|
19
20
|
callCenterModeChanging.value = true;
|
|
20
21
|
if (value) {
|
|
21
22
|
if (activityTypes.value.length <= 1) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as WtCcAgentStatusSelect } from './components/wt-cc-agent-status-select.vue';
|