@webitel/ui-sdk 25.4.36 → 25.4.38
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/CHANGELOG.md +381 -237
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +8800 -8425
- package/dist/ui-sdk.umd.cjs +20 -17
- package/package.json +42 -37
- package/src/api/clients/casePriorities/casePriorities.js +13 -3
- package/src/api/clients/caseSources/caseSources.js +13 -24
- package/src/api/clients/slas/slas.js +16 -26
- package/src/api/clients//321/201ontacts/contacts.js +1 -0
- package/src/api/transformers/skipIf/skipIf.ts +8 -3
- package/src/api/websocket/WebSocketClientController.js +21 -14
- package/src/api/websocket/config.js +5 -4
- package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-1.vue +2 -2
- package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-2.vue +4 -4
- package/src/components/on-demand/wt-navigation-menu/components/wt-navigation-menu.vue +5 -5
- package/src/components/on-demand/wt-navigation-menu/css/_nav-menu.scss +5 -5
- package/src/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue +1 -1
- package/src/components/on-demand/wt-selection-popup/wt-selection-popup.vue +3 -3
- package/src/components/on-demand/wt-start-page/components/start-page-card.vue +6 -6
- package/src/components/on-demand/wt-start-page/components/start-page-logo.vue +1 -1
- package/src/components/on-demand/wt-start-page/components/wt-start-page.vue +2 -2
- package/src/components/transitions/wt-expand-transition.vue +1 -1
- package/src/components/wt-action-bar/wt-action-bar.vue +1 -1
- package/src/components/wt-app-header/wt-app-header.vue +4 -4
- package/src/components/wt-app-header/wt-app-navigator.vue +14 -14
- package/src/components/wt-app-header/wt-header-actions.vue +13 -13
- package/src/components/wt-avatar/wt-avatar.vue +4 -4
- package/src/components/wt-badge/wt-badge.vue +1 -1
- package/src/components/wt-button/wt-button.vue +18 -18
- package/src/components/wt-button-select/wt-button-select.vue +4 -4
- package/src/components/wt-checkbox/wt-checkbox.vue +4 -4
- package/src/components/wt-chip/wt-chip.scss +9 -9
- package/src/components/wt-confirm-dialog/wt-confirm-dialog.vue +2 -2
- package/src/components/wt-context-menu/wt-context-menu.vue +4 -4
- package/src/components/wt-datepicker/wt-datepicker.vue +4 -4
- package/src/components/wt-divider/wt-divider.vue +11 -11
- package/src/components/wt-dual-panel/wt-dual-panel.vue +11 -11
- package/src/components/wt-dummy/wt-dummy.vue +2 -2
- package/src/components/wt-empty/wt-empty.vue +9 -9
- package/src/components/wt-error-page/wt-error-page.vue +4 -4
- package/src/components/wt-expansion-panel/wt-expansion-panel.vue +4 -4
- package/src/components/wt-headline/wt-headline.vue +4 -4
- package/src/components/wt-headline-nav/wt-headline-nav.vue +4 -4
- package/src/components/wt-icon/wt-icon.vue +2 -2
- package/src/components/wt-icon-action/wt-icon-action.vue +1 -1
- package/src/components/wt-icon-btn/wt-icon-btn.vue +1 -1
- package/src/components/wt-image/wt-image.vue +1 -1
- package/src/components/wt-indicator/wt-indicator.vue +2 -2
- package/src/components/wt-input/wt-input.vue +10 -10
- package/src/components/wt-input-info/wt-input-info.vue +1 -1
- package/src/components/wt-item-link/wt-item-link.vue +1 -1
- package/src/components/wt-label/wt-label.vue +3 -3
- package/src/components/wt-load-bar/wt-load-bar.vue +5 -5
- package/src/components/wt-loader/_internals/wt-loader--md.vue +5 -5
- package/src/components/wt-loader/_internals/wt-loader--sm.vue +1 -1
- package/src/components/wt-logo/wt-logo.vue +13 -4
- package/src/components/wt-navigation-bar/types/WtNavigationBar.d.ts +8 -9
- package/src/components/wt-navigation-bar/wt-navigation-bar.vue +17 -17
- package/src/components/wt-notification/wt-notification.vue +7 -7
- package/src/components/wt-notifications-bar/wt-notifications-bar.vue +2 -2
- package/src/components/wt-page-wrapper/wt-page-wrapper.vue +4 -4
- package/src/components/wt-player/wt-player.vue +6 -6
- package/src/components/wt-popup/wt-popup.vue +18 -18
- package/src/components/wt-progress-bar/wt-progress-bar.vue +6 -6
- package/src/components/wt-radio/wt-radio.vue +3 -3
- package/src/components/wt-rounded-action/wt-rounded-action.vue +3 -3
- package/src/components/wt-search-bar/wt-search-bar.vue +9 -9
- package/src/components/wt-select/_multiselect.scss +18 -18
- package/src/components/wt-select/wt-select.vue +3 -3
- package/src/components/wt-slider/wt-slider.vue +12 -12
- package/src/components/wt-status-select/wt-status-select.vue +4 -4
- package/src/components/wt-stepper/wt-stepper.vue +2 -2
- package/src/components/wt-switcher/wt-switcher.vue +8 -8
- package/src/components/wt-table/wt-table.vue +5 -5
- package/src/components/wt-table-actions/wt-table-actions.vue +1 -1
- package/src/components/wt-table-column-select/wt-table-column-select.vue +4 -4
- package/src/components/wt-tabs/wt-tabs.vue +9 -9
- package/src/components/wt-tags-input/wt-tags-input.vue +8 -8
- package/src/components/wt-textarea/wt-textarea.vue +11 -11
- package/src/components/wt-time-input/wt-time-input.vue +6 -6
- package/src/components/wt-timepicker/wt-timepicker.vue +1 -1
- package/src/components/wt-tooltip/wt-tooltip.vue +4 -4
- package/src/components/wt-tree/types/WtTreeMode.js +2 -2
- package/src/components/wt-tree/wt-tree.vue +9 -9
- package/src/components/wt-tree-line/_variables.scss +0 -1
- package/src/components/wt-tree-line/types/wt-tree-nested-icons.ts +3 -3
- package/src/components/wt-tree-line/wt-tree-line.vue +2 -2
- package/src/components/wt-tree-table/wt-tree-table.vue +3 -3
- package/src/components/wt-tree-table-row/wt-tree-table-row.vue +1 -1
- package/src/composables/useAccessControl/v2/createUserAccessControl.ts +7 -4
- package/src/composables/useAccessControl/v2/types/CreateUserAccessControl.d.ts +6 -4
- package/src/composables/useWtTable/useWtTable.js +20 -19
- package/src/css/main.scss +6 -6
- package/src/css/pages/card-page.scss +6 -6
- package/src/css/pages/table-page.scss +5 -5
- package/src/enums/ComponentSize/ComponentSize.js +9 -9
- package/src/enums/CrudAction/CrudAction.js +4 -4
- package/src/enums/WebitelApplications/AdminSections.js +37 -37
- package/src/enums/WebitelApplications/AuditorSections.js +1 -1
- package/src/enums/WebitelApplications/CrmSections.enum.js +2 -1
- package/src/enums/WebitelApplications/CrmSections.js +12 -12
- package/src/enums/WebitelApplications/CrmSections.ts +13 -13
- package/src/enums/WebitelApplications/SupervisorSections.js +3 -3
- package/src/enums/WebitelApplications/WtApplication.js +7 -7
- package/src/enums/index.js +17 -1
- package/src/locale/ru/ru.js +2 -1
- package/src/locale/ua/ua.js +2 -1
- package/src/mixins/validationMixin/useValidation.js +3 -1
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +1 -1
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue +1 -1
- package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +3 -3
- package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +4 -4
- package/src/modules/AuditForm/components/audit-form-question.vue +2 -2
- package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +1 -1
- package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +1 -1
- package/src/modules/Filters/v2/filter-presets/components/_shared/input-fields/preset-description-field.vue +3 -7
- package/src/modules/Filters/v2/filter-presets/components/_shared/input-fields/preset-name-field.vue +3 -6
- package/src/modules/Filters/v2/filter-presets/components/_shared/preset-filters-preview.vue +8 -15
- package/src/modules/Filters/v2/filter-presets/components/apply-preset/apply-preset-action.vue +55 -49
- package/src/modules/Filters/v2/filter-presets/components/apply-preset/preset-preview.vue +39 -27
- package/src/modules/Filters/v2/filter-presets/components/save-preset/overwrite-preset-popup.vue +3 -1
- package/src/modules/Filters/v2/filter-presets/components/save-preset/save-preset-action.vue +40 -24
- package/src/modules/Filters/v2/filter-presets/components/save-preset/save-preset-popup.vue +2 -2
- package/src/modules/Filters/v2/filter-presets/index.ts +3 -8
- package/src/modules/Filters/v2/filter-presets/stores/createFilterPresetsStore.ts +11 -9
- package/src/modules/Filters/v2/filter-presets/stores/headers/headers.ts +21 -21
- package/src/modules/Filters/v2/filters/components/config/dynamic-filter-config-form.vue +2 -2
- package/src/modules/Filters/v2/filters/components/dynamic-filter-add-action.vue +3 -3
- package/src/modules/Filters/v2/filters/components/dynamic-filter-panel-wrapper.vue +10 -7
- package/src/modules/Filters/v2/filters/components/filter-options/_shared/composables/booleanFilterToolkit.ts +30 -24
- package/src/modules/Filters/v2/filters/components/filter-options/_shared/composables/useFromToSecToPreviewTime.ts +28 -28
- package/src/modules/Filters/v2/filters/components/filter-options/_shared/date-time-filter/date-time-filter-value-field.vue +9 -6
- package/src/modules/Filters/v2/filters/components/filter-options/_shared/has-options/has-option-filter-value-field.vue +2 -2
- package/src/modules/Filters/v2/filters/components/filter-options/agent/agent-filter-value-preview.vue +4 -6
- package/src/modules/Filters/v2/filters/components/filter-options/amd-result/amd-result-filter-value-preview.vue +0 -2
- package/src/modules/Filters/v2/filters/components/filter-options/assignee/assignee-filter-value-preview.vue +8 -13
- package/src/modules/Filters/v2/filters/components/filter-options/author/author-filter-value-preview.vue +4 -6
- package/src/modules/Filters/v2/filters/components/filter-options/cause/cause-filter-value-preview.vue +0 -1
- package/src/modules/Filters/v2/filters/components/filter-options/close-reason-groups-case/close-reason-groups-case-filter-value-field.vue +7 -4
- package/src/modules/Filters/v2/filters/components/filter-options/close-reason-groups-case/close-reason-groups-case-filter-value-preview.vue +6 -7
- package/src/modules/Filters/v2/filters/components/filter-options/close-reason-groups-case/config.js +2 -1
- package/src/modules/Filters/v2/filters/components/filter-options/contact/contact-filter-value-preview.vue +4 -6
- package/src/modules/Filters/v2/filters/components/filter-options/contact-group/contact-group-filter-value-preview.vue +5 -10
- package/src/modules/Filters/v2/filters/components/filter-options/created-at-from/created-at-from-filter-value-preview.vue +1 -1
- package/src/modules/Filters/v2/filters/components/filter-options/created-at-to/created-at-to-filter-value-preview.vue +1 -1
- package/src/modules/Filters/v2/filters/components/filter-options/direction/direction-filter-value-preview.vue +1 -1
- package/src/modules/Filters/v2/filters/components/filter-options/gateway/gateway-filter-value-preview.vue +4 -6
- package/src/modules/Filters/v2/filters/components/filter-options/grantee/grantee-filter-value-preview.vue +4 -6
- package/src/modules/Filters/v2/filters/components/filter-options/has-attachment/has-attachment-filter-value-preview.vue +3 -1
- package/src/modules/Filters/v2/filters/components/filter-options/has-file/has-file-filter-value-field.vue +1 -1
- package/src/modules/Filters/v2/filters/components/filter-options/has-file/has-file-filter-value-preview.vue +2 -4
- package/src/modules/Filters/v2/filters/components/filter-options/has-rating/has-rating-filter-value-field.vue +2 -2
- package/src/modules/Filters/v2/filters/components/filter-options/has-rating/has-rating-filter-value-preview.vue +2 -4
- package/src/modules/Filters/v2/filters/components/filter-options/has-transcription/has-transcription-filter-value-field.vue +2 -3
- package/src/modules/Filters/v2/filters/components/filter-options/has-transcription/has-transcription-filter-value-preview.vue +2 -4
- package/src/modules/Filters/v2/filters/components/filter-options/impacted/impacted-filter-value-preview.vue +4 -6
- package/src/modules/Filters/v2/filters/components/filter-options/index.ts +48 -44
- package/src/modules/Filters/v2/filters/components/filter-options/priority-case/config.js +1 -2
- package/src/modules/Filters/v2/filters/components/filter-options/priority-case/priority-case-filter-value-preview.vue +4 -6
- package/src/modules/Filters/v2/filters/components/filter-options/queue/queue-filter-value-preview.vue +4 -6
- package/src/modules/Filters/v2/filters/components/filter-options/rated-by/rated-by-filter-value-preview.vue +4 -6
- package/src/modules/Filters/v2/filters/components/filter-options/reporter/reporter-filter-value-preview.vue +4 -6
- package/src/modules/Filters/v2/filters/components/filter-options/score/score-from-to-filter-value-field.vue +1 -1
- package/src/modules/Filters/v2/filters/components/filter-options/service-case/service-case-filter-value-field.vue +5 -5
- package/src/modules/Filters/v2/filters/components/filter-options/sla/sla-filter-value-preview.vue +4 -6
- package/src/modules/Filters/v2/filters/components/filter-options/source-case/config.js +1 -2
- package/src/modules/Filters/v2/filters/components/filter-options/source-case/source-case-filter-value-preview.vue +4 -6
- package/src/modules/Filters/v2/filters/components/filter-options/status-case/config.js +2 -1
- package/src/modules/Filters/v2/filters/components/filter-options/status-case/status-case-filter-value-field.vue +7 -4
- package/src/modules/Filters/v2/filters/components/filter-options/talk-duration/TalkDurationFilter.d.ts +2 -2
- package/src/modules/Filters/v2/filters/components/filter-options/team/team-filter-value-preview.vue +4 -6
- package/src/modules/Filters/v2/filters/components/filter-options/total-duration/TotalDurationFilter.d.ts +2 -2
- package/src/modules/Filters/v2/filters/components/filter-options/user/user-filter-value-preview.vue +4 -6
- package/src/modules/Filters/v2/filters/components/filter-options/variable/variable-filter-value-field.vue +1 -2
- package/src/modules/Filters/v2/filters/components/preview/dynamic-filter-preview.vue +4 -6
- package/src/modules/Filters/v2/filters/enums/FilterOption.ts +40 -40
- package/src/modules/ObjectPermissions/_internals/components/permissions-role-row.vue +1 -1
- package/src/modules/ObjectPermissions/components/permissions-tab.vue +56 -57
- package/src/modules/TableComponentModule/composables/useTableEmpty.js +1 -1
- package/src/modules/Userinfo/v2/stores/__tests__/accessStore.spec.ts +16 -16
- package/src/scripts/compareSize.js +9 -9
- package/src/scripts/prettifyFileSize.js +0 -1
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<p
|
|
4
|
-
|
|
5
|
-
>{{ t('reusable.unassigned') }}</p>
|
|
6
|
-
<ul
|
|
7
|
-
v-if="localValue"
|
|
8
|
-
>
|
|
3
|
+
<p v-if="props.value.unassigned">{{ t('reusable.unassigned') }}</p>
|
|
4
|
+
<ul v-if="localValue">
|
|
9
5
|
<li
|
|
10
6
|
v-for="({ name }, index) of localValue"
|
|
11
7
|
:key="index"
|
|
@@ -17,24 +13,23 @@
|
|
|
17
13
|
</template>
|
|
18
14
|
|
|
19
15
|
<script lang="ts" setup>
|
|
20
|
-
import {searchMethod} from './config.js';
|
|
21
|
-
import {ref} from 'vue';
|
|
22
|
-
import {useI18n} from
|
|
16
|
+
import { searchMethod } from './config.js';
|
|
17
|
+
import { ref } from 'vue';
|
|
18
|
+
import { useI18n } from 'vue-i18n';
|
|
23
19
|
|
|
24
20
|
const props = defineProps<{
|
|
25
21
|
value: number[];
|
|
26
22
|
}>();
|
|
27
23
|
|
|
28
24
|
const localValue = ref([]);
|
|
29
|
-
const {t} = useI18n();
|
|
25
|
+
const { t } = useI18n();
|
|
30
26
|
|
|
31
27
|
const getLocalValue = async () => {
|
|
32
|
-
const {items} = await searchMethod({id: props.value.list});
|
|
28
|
+
const { items } = await searchMethod({ id: props.value.list });
|
|
33
29
|
localValue.value = items;
|
|
34
30
|
};
|
|
35
31
|
|
|
36
32
|
getLocalValue();
|
|
37
33
|
</script>
|
|
38
34
|
|
|
39
|
-
<style lang="scss" scoped>
|
|
40
|
-
</style>
|
|
35
|
+
<style lang="scss" scoped></style>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ul
|
|
3
|
-
v-if="localValue">
|
|
2
|
+
<ul v-if="localValue">
|
|
4
3
|
<li
|
|
5
4
|
v-for="({ name }, index) of localValue"
|
|
6
5
|
:key="index"
|
|
@@ -12,7 +11,7 @@
|
|
|
12
11
|
|
|
13
12
|
<script lang="ts" setup>
|
|
14
13
|
import { searchMethod } from './config.js';
|
|
15
|
-
import {ref} from 'vue';
|
|
14
|
+
import { ref } from 'vue';
|
|
16
15
|
|
|
17
16
|
const props = defineProps<{
|
|
18
17
|
value: number[];
|
|
@@ -21,12 +20,11 @@ const props = defineProps<{
|
|
|
21
20
|
const localValue = ref([]);
|
|
22
21
|
|
|
23
22
|
const getLocalValue = async () => {
|
|
24
|
-
const { items } = await searchMethod({id: props.value});
|
|
23
|
+
const { items } = await searchMethod({ id: props.value });
|
|
25
24
|
localValue.value = items;
|
|
26
25
|
};
|
|
27
26
|
|
|
28
27
|
getLocalValue();
|
|
29
28
|
</script>
|
|
30
29
|
|
|
31
|
-
<style lang="scss" scoped>
|
|
32
|
-
</style>
|
|
30
|
+
<style lang="scss" scoped></style>
|
|
@@ -31,11 +31,14 @@
|
|
|
31
31
|
<script lang="ts" setup>
|
|
32
32
|
import { useVuelidate } from '@vuelidate/core';
|
|
33
33
|
import { required } from '@vuelidate/validators';
|
|
34
|
-
import {computed, onMounted, ref, watch} from 'vue';
|
|
34
|
+
import { computed, onMounted, ref, watch } from 'vue';
|
|
35
35
|
import { useI18n } from 'vue-i18n';
|
|
36
36
|
|
|
37
37
|
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
38
|
-
import {
|
|
38
|
+
import {
|
|
39
|
+
caseCloseReasonsSearchMethod,
|
|
40
|
+
caseCloseReasonsGroupsSearchMethod,
|
|
41
|
+
} from './config.js';
|
|
39
42
|
|
|
40
43
|
type ModelValue = {
|
|
41
44
|
selection: string;
|
|
@@ -57,13 +60,13 @@ const getConditionList = (params) => {
|
|
|
57
60
|
};
|
|
58
61
|
|
|
59
62
|
const initModel = () => {
|
|
60
|
-
if(!model.value) {
|
|
63
|
+
if (!model.value) {
|
|
61
64
|
model.value = {
|
|
62
65
|
selection: '',
|
|
63
66
|
conditions: '',
|
|
64
67
|
};
|
|
65
68
|
}
|
|
66
|
-
}
|
|
69
|
+
};
|
|
67
70
|
onMounted(() => initModel());
|
|
68
71
|
|
|
69
72
|
const v$ = useVuelidate(
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ul
|
|
3
|
-
v-if="localValue">
|
|
2
|
+
<ul v-if="localValue">
|
|
4
3
|
<li
|
|
5
4
|
v-for="({ name }, index) of localValue"
|
|
6
5
|
:key="index"
|
|
@@ -11,8 +10,8 @@
|
|
|
11
10
|
</template>
|
|
12
11
|
|
|
13
12
|
<script lang="ts" setup>
|
|
14
|
-
import { caseCloseReasonsSearchMethod } from './config'
|
|
15
|
-
import {ref} from 'vue';
|
|
13
|
+
import { caseCloseReasonsSearchMethod } from './config';
|
|
14
|
+
import { ref } from 'vue';
|
|
16
15
|
|
|
17
16
|
const props = defineProps<{
|
|
18
17
|
value: number[];
|
|
@@ -23,12 +22,12 @@ const localValue = ref([]);
|
|
|
23
22
|
const getLocalValue = async () => {
|
|
24
23
|
const { items } = await caseCloseReasonsSearchMethod({
|
|
25
24
|
parentId: props.value?.selection,
|
|
26
|
-
id: props.value?.conditions
|
|
25
|
+
id: props.value?.conditions,
|
|
26
|
+
});
|
|
27
27
|
localValue.value = items;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
getLocalValue();
|
|
31
31
|
</script>
|
|
32
32
|
|
|
33
|
-
<style lang="scss" scoped>
|
|
34
|
-
</style>
|
|
33
|
+
<style lang="scss" scoped></style>
|
package/src/modules/Filters/v2/filters/components/filter-options/close-reason-groups-case/config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import CaseCloseReasonGroupsAPI from '../../../../../../../api/clients/caseCloseReasonGroups/caseCloseReasonGroups.js';
|
|
2
2
|
import CaseCloseReasonsAPI from '../../../../../../../api/clients/caseCloseReasons/caseCloseReasons.js';
|
|
3
3
|
|
|
4
|
-
export const caseCloseReasonsGroupsSearchMethod =
|
|
4
|
+
export const caseCloseReasonsGroupsSearchMethod =
|
|
5
|
+
CaseCloseReasonGroupsAPI.getLookup;
|
|
5
6
|
export const caseCloseReasonsSearchMethod = CaseCloseReasonsAPI.getLookup;
|
|
6
7
|
export const localePath = '';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ul
|
|
3
|
-
v-if="localValue">
|
|
2
|
+
<ul v-if="localValue">
|
|
4
3
|
<li
|
|
5
4
|
v-for="({ name }, index) of localValue"
|
|
6
5
|
:key="index"
|
|
@@ -12,7 +11,7 @@
|
|
|
12
11
|
|
|
13
12
|
<script lang="ts" setup>
|
|
14
13
|
import { searchMethod } from './config.js';
|
|
15
|
-
import {ref} from 'vue';
|
|
14
|
+
import { ref } from 'vue';
|
|
16
15
|
|
|
17
16
|
const props = defineProps<{
|
|
18
17
|
value: number[];
|
|
@@ -21,12 +20,11 @@ const props = defineProps<{
|
|
|
21
20
|
const localValue = ref([]);
|
|
22
21
|
|
|
23
22
|
const getLocalValue = async () => {
|
|
24
|
-
const { items } = await searchMethod({id: props.value});
|
|
23
|
+
const { items } = await searchMethod({ id: props.value });
|
|
25
24
|
localValue.value = items;
|
|
26
25
|
};
|
|
27
26
|
|
|
28
27
|
getLocalValue();
|
|
29
28
|
</script>
|
|
30
29
|
|
|
31
|
-
<style lang="scss" scoped>
|
|
32
|
-
</style>
|
|
30
|
+
<style lang="scss" scoped></style>
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<p
|
|
4
|
-
|
|
5
|
-
>{{ t('reusable.unassigned') }}</p>
|
|
6
|
-
<ul
|
|
7
|
-
v-if="localValue"
|
|
8
|
-
>
|
|
3
|
+
<p v-if="props.value.unassigned">{{ t('reusable.unassigned') }}</p>
|
|
4
|
+
<ul v-if="localValue">
|
|
9
5
|
<li
|
|
10
6
|
v-for="({ name }, index) of localValue"
|
|
11
7
|
:key="index"
|
|
@@ -20,14 +16,14 @@
|
|
|
20
16
|
import { ref } from 'vue';
|
|
21
17
|
|
|
22
18
|
import { searchMethod } from './config.js';
|
|
23
|
-
import {useI18n} from
|
|
19
|
+
import { useI18n } from 'vue-i18n';
|
|
24
20
|
|
|
25
21
|
const props = defineProps<{
|
|
26
22
|
value: number[];
|
|
27
23
|
}>();
|
|
28
24
|
|
|
29
25
|
const localValue = ref([]);
|
|
30
|
-
const {t} = useI18n();
|
|
26
|
+
const { t } = useI18n();
|
|
31
27
|
|
|
32
28
|
const getLocalValue = async () => {
|
|
33
29
|
const { items } = await searchMethod({
|
|
@@ -39,5 +35,4 @@ const getLocalValue = async () => {
|
|
|
39
35
|
getLocalValue();
|
|
40
36
|
</script>
|
|
41
37
|
|
|
42
|
-
<style lang="scss" scoped>
|
|
43
|
-
</style>
|
|
38
|
+
<style lang="scss" scoped></style>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ul
|
|
3
|
-
v-if="localValue">
|
|
2
|
+
<ul v-if="localValue">
|
|
4
3
|
<li
|
|
5
4
|
v-for="({ name }, index) of localValue"
|
|
6
5
|
:key="index"
|
|
@@ -12,7 +11,7 @@
|
|
|
12
11
|
|
|
13
12
|
<script lang="ts" setup>
|
|
14
13
|
import { searchMethod } from './config.js';
|
|
15
|
-
import {ref} from 'vue';
|
|
14
|
+
import { ref } from 'vue';
|
|
16
15
|
|
|
17
16
|
const props = defineProps<{
|
|
18
17
|
value: number[];
|
|
@@ -21,12 +20,11 @@ const props = defineProps<{
|
|
|
21
20
|
const localValue = ref([]);
|
|
22
21
|
|
|
23
22
|
const getLocalValue = async () => {
|
|
24
|
-
const { items } = await searchMethod({id: props.value});
|
|
23
|
+
const { items } = await searchMethod({ id: props.value });
|
|
25
24
|
localValue.value = items;
|
|
26
25
|
};
|
|
27
26
|
|
|
28
27
|
getLocalValue();
|
|
29
28
|
</script>
|
|
30
29
|
|
|
31
|
-
<style lang="scss" scoped>
|
|
32
|
-
</style>
|
|
30
|
+
<style lang="scss" scoped></style>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ul
|
|
3
|
-
v-if="localValue">
|
|
2
|
+
<ul v-if="localValue">
|
|
4
3
|
<li
|
|
5
4
|
v-for="({ name }, index) of localValue"
|
|
6
5
|
:key="index"
|
|
@@ -12,7 +11,7 @@
|
|
|
12
11
|
|
|
13
12
|
<script lang="ts" setup>
|
|
14
13
|
import { searchMethod } from './config.js';
|
|
15
|
-
import {ref} from 'vue';
|
|
14
|
+
import { ref } from 'vue';
|
|
16
15
|
|
|
17
16
|
const props = defineProps<{
|
|
18
17
|
value: number[];
|
|
@@ -21,12 +20,11 @@ const props = defineProps<{
|
|
|
21
20
|
const localValue = ref([]);
|
|
22
21
|
|
|
23
22
|
const getLocalValue = async () => {
|
|
24
|
-
const { items } = await searchMethod({ids: props.value});
|
|
23
|
+
const { items } = await searchMethod({ ids: props.value });
|
|
25
24
|
localValue.value = items;
|
|
26
25
|
};
|
|
27
26
|
|
|
28
27
|
getLocalValue();
|
|
29
28
|
</script>
|
|
30
29
|
|
|
31
|
-
<style lang="scss" scoped>
|
|
32
|
-
</style>
|
|
30
|
+
<style lang="scss" scoped></style>
|
|
@@ -14,7 +14,9 @@ const props = defineProps<{
|
|
|
14
14
|
const { t } = useI18n();
|
|
15
15
|
|
|
16
16
|
const localeValue = computed(() => {
|
|
17
|
-
const match = BooleanOptions.find(
|
|
17
|
+
const match = BooleanOptions.find(
|
|
18
|
+
(el) => el.value === props.value.toString(),
|
|
19
|
+
);
|
|
18
20
|
return match ? t(match.locale) : '';
|
|
19
21
|
});
|
|
20
22
|
</script>
|
|
@@ -11,7 +11,7 @@ import { watch } from 'vue';
|
|
|
11
11
|
|
|
12
12
|
import { useBooleanFilterValueValidation } from '../_shared/composables/booleanFilterToolkit';
|
|
13
13
|
import HasOptionFilterValueField from '../_shared/has-options/has-option-filter-value-field.vue';
|
|
14
|
-
import {BooleanFilterModelValue} from
|
|
14
|
+
import { BooleanFilterModelValue } from '../_shared/types/BooleanFilter';
|
|
15
15
|
|
|
16
16
|
const model = defineModel<BooleanFilterModelValue>();
|
|
17
17
|
|
|
@@ -3,15 +3,13 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script lang="ts" setup>
|
|
6
|
-
import {usePrettifyBooleanValuePreview} from
|
|
6
|
+
import { usePrettifyBooleanValuePreview } from '../_shared/composables/booleanFilterToolkit';
|
|
7
7
|
|
|
8
8
|
const props = defineProps<{
|
|
9
9
|
value: boolean;
|
|
10
10
|
}>();
|
|
11
11
|
|
|
12
|
-
const {
|
|
13
|
-
localeValue,
|
|
14
|
-
} = usePrettifyBooleanValuePreview(props.value);
|
|
12
|
+
const { localeValue } = usePrettifyBooleanValuePreview(props.value);
|
|
15
13
|
</script>
|
|
16
14
|
|
|
17
15
|
<style lang="scss" scoped></style>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
import { watch } from 'vue';
|
|
11
11
|
|
|
12
|
-
import {useBooleanFilterValueValidation} from
|
|
12
|
+
import { useBooleanFilterValueValidation } from '../_shared/composables/booleanFilterToolkit';
|
|
13
13
|
import HasOptionFilterValueField from '../_shared/has-options/has-option-filter-value-field.vue';
|
|
14
|
-
import {BooleanFilterModelValue} from
|
|
14
|
+
import { BooleanFilterModelValue } from '../_shared/types/BooleanFilter';
|
|
15
15
|
|
|
16
16
|
const model = defineModel<BooleanFilterModelValue>();
|
|
17
17
|
|
|
@@ -3,15 +3,13 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script lang="ts" setup>
|
|
6
|
-
import {usePrettifyBooleanValuePreview} from
|
|
6
|
+
import { usePrettifyBooleanValuePreview } from '../_shared/composables/booleanFilterToolkit';
|
|
7
7
|
|
|
8
8
|
const props = defineProps<{
|
|
9
9
|
value: boolean;
|
|
10
10
|
}>();
|
|
11
11
|
|
|
12
|
-
const {
|
|
13
|
-
localeValue,
|
|
14
|
-
} = usePrettifyBooleanValuePreview(props.value);
|
|
12
|
+
const { localeValue } = usePrettifyBooleanValuePreview(props.value);
|
|
15
13
|
</script>
|
|
16
14
|
|
|
17
15
|
<style lang="scss" scoped></style>
|
|
@@ -9,15 +9,14 @@
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
import { watch } from 'vue';
|
|
11
11
|
|
|
12
|
-
import {useBooleanFilterValueValidation} from
|
|
12
|
+
import { useBooleanFilterValueValidation } from '../_shared/composables/booleanFilterToolkit';
|
|
13
13
|
import HasOptionFilterValueField from '../_shared/has-options/has-option-filter-value-field.vue';
|
|
14
|
-
import {BooleanFilterModelValue} from
|
|
14
|
+
import { BooleanFilterModelValue } from '../_shared/types/BooleanFilter';
|
|
15
15
|
|
|
16
16
|
const model = defineModel<BooleanFilterModelValue>();
|
|
17
17
|
|
|
18
18
|
const { v$ } = useBooleanFilterValueValidation<BooleanFilterModelValue>(model);
|
|
19
19
|
|
|
20
|
-
|
|
21
20
|
const emit = defineEmits<{
|
|
22
21
|
'update:invalid': [boolean];
|
|
23
22
|
}>();
|
|
@@ -3,15 +3,13 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script lang="ts" setup>
|
|
6
|
-
import {usePrettifyBooleanValuePreview} from
|
|
6
|
+
import { usePrettifyBooleanValuePreview } from '../_shared/composables/booleanFilterToolkit';
|
|
7
7
|
|
|
8
8
|
const props = defineProps<{
|
|
9
9
|
value: boolean;
|
|
10
10
|
}>();
|
|
11
11
|
|
|
12
|
-
const {
|
|
13
|
-
localeValue,
|
|
14
|
-
} = usePrettifyBooleanValuePreview(props.value);
|
|
12
|
+
const { localeValue } = usePrettifyBooleanValuePreview(props.value);
|
|
15
13
|
</script>
|
|
16
14
|
|
|
17
15
|
<style lang="scss" scoped></style>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ul
|
|
3
|
-
v-if="localValue">
|
|
2
|
+
<ul v-if="localValue">
|
|
4
3
|
<li
|
|
5
4
|
v-for="({ name }, index) of localValue"
|
|
6
5
|
:key="index"
|
|
@@ -12,7 +11,7 @@
|
|
|
12
11
|
|
|
13
12
|
<script lang="ts" setup>
|
|
14
13
|
import { searchMethod } from './config.js';
|
|
15
|
-
import {ref} from 'vue';
|
|
14
|
+
import { ref } from 'vue';
|
|
16
15
|
|
|
17
16
|
const props = defineProps<{
|
|
18
17
|
value: number[];
|
|
@@ -21,12 +20,11 @@ const props = defineProps<{
|
|
|
21
20
|
const localValue = ref([]);
|
|
22
21
|
|
|
23
22
|
const getLocalValue = async () => {
|
|
24
|
-
const { items } = await searchMethod({id: props.value});
|
|
23
|
+
const { items } = await searchMethod({ id: props.value });
|
|
25
24
|
localValue.value = items;
|
|
26
25
|
};
|
|
27
26
|
|
|
28
27
|
getLocalValue();
|
|
29
28
|
</script>
|
|
30
29
|
|
|
31
|
-
<style lang="scss" scoped>
|
|
32
|
-
</style>
|
|
30
|
+
<style lang="scss" scoped></style>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {Component} from
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
2
|
|
|
3
3
|
import ActualReactionTimeFilter from './actual-reaction-time/actual-reaction-time-filter-value-field.vue';
|
|
4
4
|
import ActualReactionTimeFilterPreview from './actual-reaction-time/actual-reaction-time-filter-value-preview.vue';
|
|
@@ -26,7 +26,7 @@ import CreatedAtToFilter from './created-at-to/created-at-to-filter-value-field.
|
|
|
26
26
|
import CreatedAtToFilterPreview from './created-at-to/created-at-to-filter-value-preview.vue';
|
|
27
27
|
import DirectionFilter from './direction/direction-filter-value-field.vue';
|
|
28
28
|
import DirectionFilterPreview from './direction/direction-filter-value-preview.vue';
|
|
29
|
-
import {FilterOption} from
|
|
29
|
+
import { FilterOption } from '../../enums/FilterOption';
|
|
30
30
|
import GatewayFilter from './gateway/gateway-filter-value-field.vue';
|
|
31
31
|
import GatewayFilterPreview from './gateway/gateway-filter-value-preview.vue';
|
|
32
32
|
import GranteeFilter from './grantee/grantee-filter-value-field.vue';
|
|
@@ -161,49 +161,53 @@ export {
|
|
|
161
161
|
VariableFilterPreview,
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
export const FilterOptionToValueComponentMap: Record<FilterOption, Component> =
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
164
|
+
export const FilterOptionToValueComponentMap: Record<FilterOption, Component> =
|
|
165
|
+
{
|
|
166
|
+
[FilterOption.Agent]: AgentFilter,
|
|
167
|
+
[FilterOption.AmdResult]: AmdResultFilter,
|
|
168
|
+
[FilterOption.Contact]: ContactFilter,
|
|
169
|
+
[FilterOption.Direction]: DirectionFilter,
|
|
170
|
+
[FilterOption.Rated]: HasRatingFilterValueField,
|
|
171
|
+
[FilterOption.Gateway]: GatewayFilter,
|
|
172
|
+
[FilterOption.Grantee]: GranteeFilter,
|
|
173
|
+
[FilterOption.Cause]: CauseFilter,
|
|
174
|
+
[FilterOption.Queue]: QueueFilter,
|
|
175
|
+
[FilterOption.RatedBy]: RatedByFilter,
|
|
176
|
+
[FilterOption.HasFile]: HasFileFilter,
|
|
177
|
+
[FilterOption.Score]: ScoreFilter,
|
|
178
|
+
[FilterOption.Tag]: TagFilter,
|
|
179
|
+
[FilterOption.TalkDuration]: TalkDurationFilter,
|
|
180
|
+
[FilterOption.Team]: TeamFilter,
|
|
181
|
+
[FilterOption.TotalDuration]: TotalDurationFilter,
|
|
182
|
+
[FilterOption.HasTranscription]: HasTranscriptionFilter,
|
|
183
|
+
[FilterOption.User]: UserFilter,
|
|
184
|
+
[FilterOption.Variable]: VariableFilter,
|
|
185
|
+
[FilterOption.CreatedAtFrom]: CreatedAtFromFilter,
|
|
186
|
+
[FilterOption.CreatedAtTo]: CreatedAtToFilter,
|
|
187
|
+
[FilterOption.Status]: CaseStatusFilter,
|
|
188
|
+
[FilterOption.Source]: CaseSourceFilter,
|
|
189
|
+
[FilterOption.Service]: CaseServiceFilter,
|
|
190
|
+
[FilterOption.Author]: AuthorFilter,
|
|
191
|
+
[FilterOption.Reporter]: ReporterFilter,
|
|
192
|
+
[FilterOption.Impacted]: ImpactedFilter,
|
|
193
|
+
[FilterOption.Assignee]: AssigneeFilter,
|
|
194
|
+
[FilterOption.ContactGroup]: ContactGroupFilter,
|
|
195
|
+
[FilterOption.Priority]: CasePriorityFilter,
|
|
196
|
+
[FilterOption.CloseReasonGroups]: CloseReasonGroupsCaseFilter,
|
|
197
|
+
[FilterOption.Rating]: RatingFromToFilter,
|
|
198
|
+
[FilterOption.Sla]: SlaFilter,
|
|
199
|
+
[FilterOption.SlaCondition]: SlaConditionFilter,
|
|
200
|
+
[FilterOption.ReactionTime]: ReactionTimeFilter,
|
|
201
|
+
[FilterOption.ResolutionTime]: ResolutionTimeFilter,
|
|
202
|
+
[FilterOption.ActualReactionTime]: ActualReactionTimeFilter,
|
|
203
|
+
[FilterOption.ActualResolutionTime]: ActualResolutionTimeFilter,
|
|
204
|
+
[FilterOption.HasAttachment]: HasAttachmentFilter,
|
|
205
|
+
};
|
|
205
206
|
|
|
206
|
-
export const FilterOptionToPreviewComponentMap: Record<
|
|
207
|
+
export const FilterOptionToPreviewComponentMap: Record<
|
|
208
|
+
FilterOption,
|
|
209
|
+
Component
|
|
210
|
+
> = {
|
|
207
211
|
[FilterOption.Agent]: AgentFilterPreview,
|
|
208
212
|
[FilterOption.AmdResult]: AmdResultFilterPreview,
|
|
209
213
|
[FilterOption.Contact]: ContactFilterPreview,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import CasePrioritiesAPI
|
|
2
|
-
from '../../../../../../../api/clients/casePriorities/casePriorities.js';
|
|
1
|
+
import CasePrioritiesAPI from '../../../../../../../api/clients/casePriorities/casePriorities.js';
|
|
3
2
|
|
|
4
3
|
export const searchMethod = CasePrioritiesAPI.getLookup;
|
|
5
4
|
export const localePath = '';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ul
|
|
3
|
-
v-if="localValue">
|
|
2
|
+
<ul v-if="localValue">
|
|
4
3
|
<li
|
|
5
4
|
v-for="({ name }, index) of localValue"
|
|
6
5
|
:key="index"
|
|
@@ -12,7 +11,7 @@
|
|
|
12
11
|
|
|
13
12
|
<script lang="ts" setup>
|
|
14
13
|
import { searchMethod } from './config.js';
|
|
15
|
-
import {ref} from 'vue';
|
|
14
|
+
import { ref } from 'vue';
|
|
16
15
|
|
|
17
16
|
const props = defineProps<{
|
|
18
17
|
value: number[];
|
|
@@ -21,12 +20,11 @@ const props = defineProps<{
|
|
|
21
20
|
const localValue = ref([]);
|
|
22
21
|
|
|
23
22
|
const getLocalValue = async () => {
|
|
24
|
-
const { items } = await searchMethod({id: props.value});
|
|
23
|
+
const { items } = await searchMethod({ id: props.value });
|
|
25
24
|
localValue.value = items;
|
|
26
25
|
};
|
|
27
26
|
|
|
28
27
|
getLocalValue();
|
|
29
28
|
</script>
|
|
30
29
|
|
|
31
|
-
<style lang="scss" scoped>
|
|
32
|
-
</style>
|
|
30
|
+
<style lang="scss" scoped></style>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ul
|
|
3
|
-
v-if="localValue">
|
|
2
|
+
<ul v-if="localValue">
|
|
4
3
|
<li
|
|
5
4
|
v-for="({ name }, index) of localValue"
|
|
6
5
|
:key="index"
|
|
@@ -12,7 +11,7 @@
|
|
|
12
11
|
|
|
13
12
|
<script lang="ts" setup>
|
|
14
13
|
import { searchMethod } from './config.js';
|
|
15
|
-
import {ref} from 'vue';
|
|
14
|
+
import { ref } from 'vue';
|
|
16
15
|
|
|
17
16
|
const props = defineProps<{
|
|
18
17
|
value: number[];
|
|
@@ -21,12 +20,11 @@ const props = defineProps<{
|
|
|
21
20
|
const localValue = ref([]);
|
|
22
21
|
|
|
23
22
|
const getLocalValue = async () => {
|
|
24
|
-
const { items } = await searchMethod({id: props.value});
|
|
23
|
+
const { items } = await searchMethod({ id: props.value });
|
|
25
24
|
localValue.value = items;
|
|
26
25
|
};
|
|
27
26
|
|
|
28
27
|
getLocalValue();
|
|
29
28
|
</script>
|
|
30
29
|
|
|
31
|
-
<style lang="scss" scoped>
|
|
32
|
-
</style>
|
|
30
|
+
<style lang="scss" scoped></style>
|