@webitel/ui-sdk 25.4.54 → 25.4.56
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 +23 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +93 -99
- package/dist/ui-sdk.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/components/wt-context-menu/types/WtContextMenu.d.ts +4 -0
- package/src/components/wt-search-bar/types/WtSearchBar.d.ts +17 -0
- package/src/components/wt-search-bar/wt-search-bar.vue +23 -10
- package/src/locale/en/en.js +7 -7
- package/src/modules/Filters/v2/filter-presets/api/PresetQuery.api.ts +0 -123
- package/src/modules/Filters/v2/filter-presets/components/_shared/input-fields/preset-description-field.vue +0 -33
- package/src/modules/Filters/v2/filter-presets/components/_shared/input-fields/preset-name-field.vue +0 -29
- package/src/modules/Filters/v2/filter-presets/components/_shared/preset-filters-preview.vue +0 -45
- package/src/modules/Filters/v2/filter-presets/components/apply-preset/apply-preset-action.vue +0 -234
- package/src/modules/Filters/v2/filter-presets/components/apply-preset/preset-preview.vue +0 -210
- package/src/modules/Filters/v2/filter-presets/components/save-preset/overwrite-preset-popup.vue +0 -64
- package/src/modules/Filters/v2/filter-presets/components/save-preset/save-preset-action.vue +0 -139
- package/src/modules/Filters/v2/filter-presets/components/save-preset/save-preset-popup.vue +0 -136
- package/src/modules/Filters/v2/filter-presets/index.ts +0 -5
- package/src/modules/Filters/v2/filter-presets/stores/createFilterPresetsStore.ts +0 -17
- package/src/modules/Filters/v2/filter-presets/stores/headers/headers.ts +0 -24
- package/src/modules/Filters/v2/filters/classes/Filter.ts +0 -30
- package/src/modules/Filters/v2/filters/classes/FilterStorage.ts +0 -34
- package/src/modules/Filters/v2/filters/classes/FilterStorageOptions.d.ts +0 -6
- package/src/modules/Filters/v2/filters/classes/FiltersManager.ts +0 -189
- package/src/modules/Filters/v2/filters/components/config/dynamic-filter-config-form-label.vue +0 -50
- package/src/modules/Filters/v2/filters/components/config/dynamic-filter-config-form.vue +0 -140
- package/src/modules/Filters/v2/filters/components/config/dynamic-filter-config-view.vue +0 -40
- package/src/modules/Filters/v2/filters/components/dynamic-filter-add-action.vue +0 -54
- package/src/modules/Filters/v2/filters/components/dynamic-filter-panel-wrapper.vue +0 -57
- package/src/modules/Filters/v2/filters/components/dynamic-filter-search.vue +0 -80
- package/src/modules/Filters/v2/filters/components/filter-options/_shared/composables/booleanFilterToolkit.ts +0 -39
- package/src/modules/Filters/v2/filters/components/filter-options/_shared/composables/useFromToSecToPreviewTime.ts +0 -41
- package/src/modules/Filters/v2/filters/components/filter-options/_shared/date-time-filter/date-time-filter-value-field.vue +0 -56
- package/src/modules/Filters/v2/filters/components/filter-options/_shared/durations/duration-filter-value-field.vue +0 -84
- package/src/modules/Filters/v2/filters/components/filter-options/_shared/has-options/has-option-filter-value-field.vue +0 -38
- package/src/modules/Filters/v2/filters/components/filter-options/_shared/types/BooleanFilter.ts +0 -1
- package/src/modules/Filters/v2/filters/components/filter-options/actual-reaction-time/actual-reaction-time-filter-value-field.vue +0 -18
- package/src/modules/Filters/v2/filters/components/filter-options/actual-reaction-time/actual-reaction-time-filter-value-preview.vue +0 -44
- package/src/modules/Filters/v2/filters/components/filter-options/actual-resolution-time/actual-resolution-time-filter-value-field.vue +0 -18
- package/src/modules/Filters/v2/filters/components/filter-options/actual-resolution-time/actual-resolution-time-filter-value-preview.vue +0 -44
- package/src/modules/Filters/v2/filters/components/filter-options/agent/agent-filter-value-field.vue +0 -58
- package/src/modules/Filters/v2/filters/components/filter-options/agent/agent-filter-value-preview.vue +0 -31
- package/src/modules/Filters/v2/filters/components/filter-options/agent/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/amd-result/amd-result-filter-value-field.vue +0 -52
- package/src/modules/Filters/v2/filters/components/filter-options/amd-result/amd-result-filter-value-preview.vue +0 -18
- package/src/modules/Filters/v2/filters/components/filter-options/assignee/assignee-filter-value-field.vue +0 -74
- package/src/modules/Filters/v2/filters/components/filter-options/assignee/assignee-filter-value-preview.vue +0 -36
- package/src/modules/Filters/v2/filters/components/filter-options/assignee/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/author/author-filter-value-field.vue +0 -56
- package/src/modules/Filters/v2/filters/components/filter-options/author/author-filter-value-preview.vue +0 -31
- package/src/modules/Filters/v2/filters/components/filter-options/author/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/cause/cause-filter-value-field.vue +0 -52
- package/src/modules/Filters/v2/filters/components/filter-options/cause/cause-filter-value-preview.vue +0 -18
- package/src/modules/Filters/v2/filters/components/filter-options/close-reason-groups-case/close-reason-groups-case-filter-value-field.vue +0 -102
- package/src/modules/Filters/v2/filters/components/filter-options/close-reason-groups-case/close-reason-groups-case-filter-value-preview.vue +0 -34
- package/src/modules/Filters/v2/filters/components/filter-options/close-reason-groups-case/config.js +0 -7
- package/src/modules/Filters/v2/filters/components/filter-options/contact/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/contact/contact-filter-value-field.vue +0 -56
- package/src/modules/Filters/v2/filters/components/filter-options/contact/contact-filter-value-preview.vue +0 -31
- package/src/modules/Filters/v2/filters/components/filter-options/contact-group/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/contact-group/contact-group-filter-value-field.vue +0 -74
- package/src/modules/Filters/v2/filters/components/filter-options/contact-group/contact-group-filter-value-preview.vue +0 -38
- package/src/modules/Filters/v2/filters/components/filter-options/created-at-from/created-at-from-filter-value-field.vue +0 -24
- package/src/modules/Filters/v2/filters/components/filter-options/created-at-from/created-at-from-filter-value-preview.vue +0 -15
- package/src/modules/Filters/v2/filters/components/filter-options/created-at-to/created-at-to-filter-value-field.vue +0 -24
- package/src/modules/Filters/v2/filters/components/filter-options/created-at-to/created-at-to-filter-value-preview.vue +0 -15
- package/src/modules/Filters/v2/filters/components/filter-options/direction/direction-filter-value-field.vue +0 -51
- package/src/modules/Filters/v2/filters/components/filter-options/direction/direction-filter-value-preview.vue +0 -17
- package/src/modules/Filters/v2/filters/components/filter-options/gateway/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/gateway/gateway-filter-value-field.vue +0 -56
- package/src/modules/Filters/v2/filters/components/filter-options/gateway/gateway-filter-value-preview.vue +0 -31
- package/src/modules/Filters/v2/filters/components/filter-options/grantee/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/grantee/grantee-filter-value-field.vue +0 -56
- package/src/modules/Filters/v2/filters/components/filter-options/grantee/grantee-filter-value-preview.vue +0 -31
- package/src/modules/Filters/v2/filters/components/filter-options/has-attachment/has-attachment-filter-value-field.vue +0 -43
- package/src/modules/Filters/v2/filters/components/filter-options/has-attachment/has-attachment-filter-value-preview.vue +0 -24
- package/src/modules/Filters/v2/filters/components/filter-options/has-file/has-file-filter-value-field.vue +0 -33
- package/src/modules/Filters/v2/filters/components/filter-options/has-file/has-file-filter-value-preview.vue +0 -15
- package/src/modules/Filters/v2/filters/components/filter-options/has-rating/has-rating-filter-value-field.vue +0 -33
- package/src/modules/Filters/v2/filters/components/filter-options/has-rating/has-rating-filter-value-preview.vue +0 -15
- package/src/modules/Filters/v2/filters/components/filter-options/has-transcription/has-transcription-filter-value-field.vue +0 -33
- package/src/modules/Filters/v2/filters/components/filter-options/has-transcription/has-transcription-filter-value-preview.vue +0 -15
- package/src/modules/Filters/v2/filters/components/filter-options/impacted/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/impacted/impacted-filter-value-field.vue +0 -56
- package/src/modules/Filters/v2/filters/components/filter-options/impacted/impacted-filter-value-preview.vue +0 -31
- package/src/modules/Filters/v2/filters/components/filter-options/index.ts +0 -250
- package/src/modules/Filters/v2/filters/components/filter-options/priority-case/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/priority-case/priority-case-filter-value-field.vue +0 -57
- package/src/modules/Filters/v2/filters/components/filter-options/priority-case/priority-case-filter-value-preview.vue +0 -31
- package/src/modules/Filters/v2/filters/components/filter-options/queue/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/queue/queue-filter-value-field.vue +0 -56
- package/src/modules/Filters/v2/filters/components/filter-options/queue/queue-filter-value-preview.vue +0 -31
- package/src/modules/Filters/v2/filters/components/filter-options/rated-by/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/rated-by/rated-by-filter-value-field.vue +0 -56
- package/src/modules/Filters/v2/filters/components/filter-options/rated-by/rated-by-filter-value-preview.vue +0 -31
- package/src/modules/Filters/v2/filters/components/filter-options/rating/rating-from-to-filter-value-field.vue +0 -101
- package/src/modules/Filters/v2/filters/components/filter-options/rating/rating-from-to-filter-value-preview.vue +0 -39
- package/src/modules/Filters/v2/filters/components/filter-options/reaction-time/reaction-time-filter-value-field.vue +0 -18
- package/src/modules/Filters/v2/filters/components/filter-options/reaction-time/reaction-time-filter-value-preview.vue +0 -44
- package/src/modules/Filters/v2/filters/components/filter-options/reporter/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/reporter/reporter-filter-value-field.vue +0 -56
- package/src/modules/Filters/v2/filters/components/filter-options/reporter/reporter-filter-value-preview.vue +0 -31
- package/src/modules/Filters/v2/filters/components/filter-options/resolution-time/resolution-time-filter-value-field.vue +0 -18
- package/src/modules/Filters/v2/filters/components/filter-options/resolution-time/resolution-time-filter-value-preview.vue +0 -44
- package/src/modules/Filters/v2/filters/components/filter-options/score/score-from-to-filter-value-field.vue +0 -100
- package/src/modules/Filters/v2/filters/components/filter-options/score/score-from-to-filter-value-preview.vue +0 -39
- package/src/modules/Filters/v2/filters/components/filter-options/service-case/config.js +0 -6
- package/src/modules/Filters/v2/filters/components/filter-options/service-case/service-case-filter-value-field.vue +0 -82
- package/src/modules/Filters/v2/filters/components/filter-options/service-case/service-case-filter-value-preview.vue +0 -34
- package/src/modules/Filters/v2/filters/components/filter-options/sla/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/sla/sla-filter-value-field.vue +0 -57
- package/src/modules/Filters/v2/filters/components/filter-options/sla/sla-filter-value-preview.vue +0 -31
- package/src/modules/Filters/v2/filters/components/filter-options/sla-condition/config.js +0 -6
- package/src/modules/Filters/v2/filters/components/filter-options/sla-condition/sla-condition-filter-value-field.vue +0 -98
- package/src/modules/Filters/v2/filters/components/filter-options/sla-condition/sla-condition-filter-value-preview.vue +0 -37
- package/src/modules/Filters/v2/filters/components/filter-options/source-case/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/source-case/source-case-filter-value-field.vue +0 -57
- package/src/modules/Filters/v2/filters/components/filter-options/source-case/source-case-filter-value-preview.vue +0 -31
- package/src/modules/Filters/v2/filters/components/filter-options/status-case/config.js +0 -7
- package/src/modules/Filters/v2/filters/components/filter-options/status-case/status-case-filter-value-field.vue +0 -102
- package/src/modules/Filters/v2/filters/components/filter-options/status-case/status-case-filter-value-preview.vue +0 -37
- package/src/modules/Filters/v2/filters/components/filter-options/tag/tag-filter-value-field.vue +0 -52
- package/src/modules/Filters/v2/filters/components/filter-options/tag/tag-filter-value-preview.vue +0 -38
- package/src/modules/Filters/v2/filters/components/filter-options/talk-duration/TalkDurationFilter.d.ts +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/talk-duration/talk-duration-filter-value-field.vue +0 -19
- package/src/modules/Filters/v2/filters/components/filter-options/talk-duration/talk-duration-filter-value-preview.vue +0 -44
- package/src/modules/Filters/v2/filters/components/filter-options/team/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/team/team-filter-value-field.vue +0 -56
- package/src/modules/Filters/v2/filters/components/filter-options/team/team-filter-value-preview.vue +0 -31
- package/src/modules/Filters/v2/filters/components/filter-options/total-duration/TotalDurationFilter.d.ts +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/total-duration/total-duration-filter-value-field.vue +0 -19
- package/src/modules/Filters/v2/filters/components/filter-options/total-duration/total-duration-filter-value-preview.vue +0 -44
- package/src/modules/Filters/v2/filters/components/filter-options/user/config.js +0 -4
- package/src/modules/Filters/v2/filters/components/filter-options/user/user-filter-value-field.vue +0 -56
- package/src/modules/Filters/v2/filters/components/filter-options/user/user-filter-value-preview.vue +0 -31
- package/src/modules/Filters/v2/filters/components/filter-options/variable/variable-filter-value-field.vue +0 -50
- package/src/modules/Filters/v2/filters/components/filter-options/variable/variable-filter-value-preview.vue +0 -39
- package/src/modules/Filters/v2/filters/components/preview/dynamic-filter-preview-info.vue +0 -35
- package/src/modules/Filters/v2/filters/components/preview/dynamic-filter-preview.vue +0 -76
- package/src/modules/Filters/v2/filters/components/table-filters-panel.vue +0 -87
- package/src/modules/Filters/v2/filters/createTableFiltersStore.ts +0 -81
- package/src/modules/Filters/v2/filters/enums/FilterOption.ts +0 -43
- package/src/modules/Filters/v2/filters/enums/amd-result-options.ts +0 -38
- package/src/modules/Filters/v2/filters/enums/boolean-options.ts +0 -16
- package/src/modules/Filters/v2/filters/enums/direction-options.ts +0 -20
- package/src/modules/Filters/v2/filters/enums/hangup-cause-options.ts +0 -265
- package/src/modules/Filters/v2/filters/enums/tag-options.ts +0 -8
- package/src/modules/Filters/v2/filters/index.ts +0 -29
- package/src/modules/Filters/v2/filters/scripts/utils.ts +0 -31
- package/src/modules/Filters/v2/filters/types/Filter.d.ts +0 -46
- package/src/modules/Filters/v2/filters/types/FilterSearch.d.ts +0 -10
- package/src/modules/Filters/v2/filters/types/FiltersManager.d.ts +0 -76
- package/src/modules/Filters/v2/headers/createTableHeadersStore.ts +0 -140
- package/src/modules/Filters/v2/index.ts +0 -0
- package/src/modules/Filters/v2/pagination/createTablePaginationStore.ts +0 -64
- package/src/modules/Filters/v2/persist/PersistedStorage.types.ts +0 -51
- package/src/modules/Filters/v2/persist/useLocalStoragePersistedStorage.ts +0 -37
- package/src/modules/Filters/v2/persist/usePersistedStorage.ts +0 -151
- package/src/modules/Filters/v2/persist/useRoutePersistedStorage.ts +0 -41
- package/src/modules/Filters/v2/table/createTableStore.store.ts +0 -206
- package/src/modules/Filters/v2/types/tableStore.types.ts +0 -61
package/src/modules/Filters/v2/filters/components/filter-options/cause/cause-filter-value-field.vue
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<wt-select
|
|
3
|
-
:clearable="false"
|
|
4
|
-
:label="t('webitelUI.filters.filterValue')"
|
|
5
|
-
:options="HangupCauseOptions"
|
|
6
|
-
:value="model"
|
|
7
|
-
:v="v$.model"
|
|
8
|
-
multiple
|
|
9
|
-
track-by="value"
|
|
10
|
-
use-value-from-options-by-prop="value"
|
|
11
|
-
@input="model = $event"
|
|
12
|
-
/>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script lang="ts" setup>
|
|
16
|
-
import { useVuelidate } from '@vuelidate/core';
|
|
17
|
-
import { required } from '@vuelidate/validators';
|
|
18
|
-
import { computed, watch } from 'vue';
|
|
19
|
-
import { useI18n } from 'vue-i18n';
|
|
20
|
-
|
|
21
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
22
|
-
import { HangupCauseOptions } from '../../../enums/hangup-cause-options';
|
|
23
|
-
|
|
24
|
-
const model = defineModel<string>();
|
|
25
|
-
const { t } = useI18n();
|
|
26
|
-
|
|
27
|
-
const v$ = useVuelidate(
|
|
28
|
-
computed(() => ({
|
|
29
|
-
model: {
|
|
30
|
-
required,
|
|
31
|
-
},
|
|
32
|
-
})),
|
|
33
|
-
{ model },
|
|
34
|
-
{ $autoDirty: true },
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
v$.value.$touch();
|
|
38
|
-
|
|
39
|
-
const emit = defineEmits<{
|
|
40
|
-
'update:invalid': [boolean];
|
|
41
|
-
}>();
|
|
42
|
-
|
|
43
|
-
watch(
|
|
44
|
-
() => v$.value.$invalid,
|
|
45
|
-
(invalid) => {
|
|
46
|
-
emit('update:invalid', invalid);
|
|
47
|
-
},
|
|
48
|
-
{ immediate: true },
|
|
49
|
-
);
|
|
50
|
-
</script>
|
|
51
|
-
|
|
52
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ul>
|
|
3
|
-
<li
|
|
4
|
-
v-for="(hangupCause, index) of props.value"
|
|
5
|
-
:key="index"
|
|
6
|
-
>
|
|
7
|
-
{{ hangupCause }}
|
|
8
|
-
</li>
|
|
9
|
-
</ul>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script lang="ts" setup>
|
|
13
|
-
const props = defineProps<{
|
|
14
|
-
value: number[];
|
|
15
|
-
}>();
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<wt-select
|
|
4
|
-
:clearable="false"
|
|
5
|
-
:label="t('cases.reason')"
|
|
6
|
-
:search-method="caseCloseReasonsGroupsSearchMethod"
|
|
7
|
-
:v="v$.model.selection"
|
|
8
|
-
:value="model?.selection"
|
|
9
|
-
track-by="id"
|
|
10
|
-
use-value-from-options-by-prop="id"
|
|
11
|
-
@input="updateSelected"
|
|
12
|
-
/>
|
|
13
|
-
|
|
14
|
-
<wt-select
|
|
15
|
-
v-if="model?.selection"
|
|
16
|
-
:key="model.selection"
|
|
17
|
-
:clearable="false"
|
|
18
|
-
:disabled="!model.selection"
|
|
19
|
-
:label="t('webitelUI.filters.filterValue')"
|
|
20
|
-
:search-method="getConditionList"
|
|
21
|
-
:v="v$.model.conditions"
|
|
22
|
-
:value="model.conditions"
|
|
23
|
-
multiple
|
|
24
|
-
track-by="id"
|
|
25
|
-
use-value-from-options-by-prop="id"
|
|
26
|
-
@input="model.conditions = $event"
|
|
27
|
-
/>
|
|
28
|
-
</div>
|
|
29
|
-
</template>
|
|
30
|
-
|
|
31
|
-
<script lang="ts" setup>
|
|
32
|
-
import { useVuelidate } from '@vuelidate/core';
|
|
33
|
-
import { required } from '@vuelidate/validators';
|
|
34
|
-
import { computed, onMounted, ref, watch } from 'vue';
|
|
35
|
-
import { useI18n } from 'vue-i18n';
|
|
36
|
-
|
|
37
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
38
|
-
import {
|
|
39
|
-
caseCloseReasonsGroupsSearchMethod,
|
|
40
|
-
caseCloseReasonsSearchMethod,
|
|
41
|
-
} from './config.js';
|
|
42
|
-
|
|
43
|
-
type ModelValue = {
|
|
44
|
-
selection: string;
|
|
45
|
-
conditions: string;
|
|
46
|
-
};
|
|
47
|
-
const model = defineModel<ModelValue>();
|
|
48
|
-
const { t } = useI18n();
|
|
49
|
-
|
|
50
|
-
const updateSelected = (value) => {
|
|
51
|
-
model.value.selection = value;
|
|
52
|
-
model.value.conditions = '';
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
const getConditionList = (params) => {
|
|
56
|
-
return caseCloseReasonsSearchMethod({
|
|
57
|
-
parentId: model.value.selection,
|
|
58
|
-
...params,
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
const initModel = () => {
|
|
63
|
-
if (!model.value) {
|
|
64
|
-
model.value = {
|
|
65
|
-
selection: '',
|
|
66
|
-
conditions: '',
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
onMounted(() => initModel());
|
|
71
|
-
|
|
72
|
-
const v$ = useVuelidate(
|
|
73
|
-
computed(() => ({
|
|
74
|
-
model: {
|
|
75
|
-
selection: {
|
|
76
|
-
required,
|
|
77
|
-
},
|
|
78
|
-
conditions: {
|
|
79
|
-
required,
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
})),
|
|
83
|
-
{ model },
|
|
84
|
-
{ $autoDirty: true },
|
|
85
|
-
);
|
|
86
|
-
|
|
87
|
-
v$.value.$touch();
|
|
88
|
-
|
|
89
|
-
const emit = defineEmits<{
|
|
90
|
-
'update:invalid': [boolean];
|
|
91
|
-
}>();
|
|
92
|
-
|
|
93
|
-
watch(
|
|
94
|
-
() => v$.value.$invalid,
|
|
95
|
-
(invalid) => {
|
|
96
|
-
emit('update:invalid', invalid);
|
|
97
|
-
},
|
|
98
|
-
{ immediate: true },
|
|
99
|
-
);
|
|
100
|
-
</script>
|
|
101
|
-
|
|
102
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ul v-if="localValue">
|
|
3
|
-
<li
|
|
4
|
-
v-for="({ name }, index) of localValue"
|
|
5
|
-
:key="index"
|
|
6
|
-
>
|
|
7
|
-
{{ name }}
|
|
8
|
-
</li>
|
|
9
|
-
</ul>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script lang="ts" setup>
|
|
13
|
-
import { ref } from 'vue';
|
|
14
|
-
|
|
15
|
-
import { caseCloseReasonsSearchMethod } from './config';
|
|
16
|
-
|
|
17
|
-
const props = defineProps<{
|
|
18
|
-
value: number[];
|
|
19
|
-
}>();
|
|
20
|
-
|
|
21
|
-
const localValue = ref([]);
|
|
22
|
-
|
|
23
|
-
const getLocalValue = async () => {
|
|
24
|
-
const { items } = await caseCloseReasonsSearchMethod({
|
|
25
|
-
parentId: props.value?.selection,
|
|
26
|
-
id: props.value?.conditions,
|
|
27
|
-
});
|
|
28
|
-
localValue.value = items;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
getLocalValue();
|
|
32
|
-
</script>
|
|
33
|
-
|
|
34
|
-
<style lang="scss" scoped></style>
|
package/src/modules/Filters/v2/filters/components/filter-options/close-reason-groups-case/config.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import CaseCloseReasonGroupsAPI from '../../../../../../../api/clients/caseCloseReasonGroups/caseCloseReasonGroups.js';
|
|
2
|
-
import CaseCloseReasonsAPI from '../../../../../../../api/clients/caseCloseReasons/caseCloseReasons.js';
|
|
3
|
-
|
|
4
|
-
export const caseCloseReasonsGroupsSearchMethod =
|
|
5
|
-
CaseCloseReasonGroupsAPI.getLookup;
|
|
6
|
-
export const caseCloseReasonsSearchMethod = CaseCloseReasonsAPI.getLookup;
|
|
7
|
-
export const localePath = '';
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<wt-select
|
|
3
|
-
:close-on-select="false"
|
|
4
|
-
:label="t('webitelUI.filters.filterValue')"
|
|
5
|
-
:search-method="searchMethod"
|
|
6
|
-
:value="model"
|
|
7
|
-
:v="v$.model"
|
|
8
|
-
multiple
|
|
9
|
-
use-value-from-options-by-prop="id"
|
|
10
|
-
@input="handleInput"
|
|
11
|
-
/>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script lang="ts" setup>
|
|
15
|
-
import { useVuelidate } from '@vuelidate/core';
|
|
16
|
-
import { required } from '@vuelidate/validators';
|
|
17
|
-
import { computed, watch } from 'vue';
|
|
18
|
-
import { useI18n } from 'vue-i18n';
|
|
19
|
-
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
|
-
import { searchMethod } from './config.js';
|
|
22
|
-
|
|
23
|
-
type ModelValue = number[];
|
|
24
|
-
|
|
25
|
-
const model = defineModel<ModelValue>();
|
|
26
|
-
|
|
27
|
-
const emit = defineEmits<{
|
|
28
|
-
'update:invalid': [boolean];
|
|
29
|
-
}>();
|
|
30
|
-
const { t } = useI18n();
|
|
31
|
-
|
|
32
|
-
const v$ = useVuelidate(
|
|
33
|
-
computed(() => ({
|
|
34
|
-
model: {
|
|
35
|
-
required,
|
|
36
|
-
},
|
|
37
|
-
})),
|
|
38
|
-
{ model },
|
|
39
|
-
{ $autoDirty: true },
|
|
40
|
-
);
|
|
41
|
-
v$.value.$touch();
|
|
42
|
-
|
|
43
|
-
watch(
|
|
44
|
-
() => v$.value.$invalid,
|
|
45
|
-
(invalid) => {
|
|
46
|
-
emit('update:invalid', invalid);
|
|
47
|
-
},
|
|
48
|
-
{ immediate: true },
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
const handleInput = (value: ModelValue) => {
|
|
52
|
-
model.value = value;
|
|
53
|
-
};
|
|
54
|
-
</script>
|
|
55
|
-
|
|
56
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ul v-if="localValue">
|
|
3
|
-
<li
|
|
4
|
-
v-for="({ name }, index) of localValue"
|
|
5
|
-
:key="index"
|
|
6
|
-
>
|
|
7
|
-
{{ name }}
|
|
8
|
-
</li>
|
|
9
|
-
</ul>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script lang="ts" setup>
|
|
13
|
-
import { ref } from 'vue';
|
|
14
|
-
|
|
15
|
-
import { searchMethod } from './config.js';
|
|
16
|
-
|
|
17
|
-
const props = defineProps<{
|
|
18
|
-
value: number[];
|
|
19
|
-
}>();
|
|
20
|
-
|
|
21
|
-
const localValue = ref([]);
|
|
22
|
-
|
|
23
|
-
const getLocalValue = async () => {
|
|
24
|
-
const { items } = await searchMethod({ id: props.value });
|
|
25
|
-
localValue.value = items;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
getLocalValue();
|
|
29
|
-
</script>
|
|
30
|
-
|
|
31
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<wt-select
|
|
3
|
-
:close-on-select="false"
|
|
4
|
-
:label="t('webitelUI.filters.filterValue')"
|
|
5
|
-
:search-method="searchMethod"
|
|
6
|
-
:v="v$.model.list"
|
|
7
|
-
:value="model?.list"
|
|
8
|
-
multiple
|
|
9
|
-
track-by="id"
|
|
10
|
-
use-value-from-options-by-prop="id"
|
|
11
|
-
@input="model.list = $event"
|
|
12
|
-
/>
|
|
13
|
-
<wt-checkbox
|
|
14
|
-
:label="t('reusable.showUnassigned')"
|
|
15
|
-
:selected="model?.unassigned"
|
|
16
|
-
:v="v$.model.unassigned"
|
|
17
|
-
@change="model.unassigned = $event"
|
|
18
|
-
/>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script lang="ts" setup>
|
|
22
|
-
import { useVuelidate } from '@vuelidate/core';
|
|
23
|
-
import { requiredIf } from '@vuelidate/validators';
|
|
24
|
-
import { computed, onMounted, watch } from 'vue';
|
|
25
|
-
import { useI18n } from 'vue-i18n';
|
|
26
|
-
|
|
27
|
-
import WtCheckbox from '../../../../../../../components/wt-checkbox/wt-checkbox.vue';
|
|
28
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
29
|
-
import { searchMethod } from './config.js';
|
|
30
|
-
|
|
31
|
-
type ModelValue = {
|
|
32
|
-
list: string[];
|
|
33
|
-
unassigned: boolean;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
const model = defineModel<ModelValue>();
|
|
37
|
-
|
|
38
|
-
const emit = defineEmits<{
|
|
39
|
-
'update:invalid': [boolean];
|
|
40
|
-
}>();
|
|
41
|
-
const { t } = useI18n();
|
|
42
|
-
|
|
43
|
-
const initModel = () => {
|
|
44
|
-
if (!model.value) {
|
|
45
|
-
model.value = {
|
|
46
|
-
list: [],
|
|
47
|
-
unassigned: false,
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
onMounted(() => initModel());
|
|
52
|
-
|
|
53
|
-
const v$ = useVuelidate(
|
|
54
|
-
computed(() => ({
|
|
55
|
-
model: {
|
|
56
|
-
list: { required: requiredIf(() => !model.value.unassigned) },
|
|
57
|
-
unassigned: { required: requiredIf(() => !model.value.list.length) },
|
|
58
|
-
},
|
|
59
|
-
})),
|
|
60
|
-
{ model },
|
|
61
|
-
{ $autoDirty: true },
|
|
62
|
-
);
|
|
63
|
-
v$.value.$touch();
|
|
64
|
-
|
|
65
|
-
watch(
|
|
66
|
-
() => v$.value.$invalid,
|
|
67
|
-
(invalid) => {
|
|
68
|
-
emit('update:invalid', invalid);
|
|
69
|
-
},
|
|
70
|
-
{ immediate: true },
|
|
71
|
-
);
|
|
72
|
-
</script>
|
|
73
|
-
|
|
74
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<p v-if="props.value.unassigned">{{ t('reusable.unassigned') }}</p>
|
|
4
|
-
<ul v-if="localValue">
|
|
5
|
-
<li
|
|
6
|
-
v-for="({ name }, index) of localValue"
|
|
7
|
-
:key="index"
|
|
8
|
-
>
|
|
9
|
-
{{ name }}
|
|
10
|
-
</li>
|
|
11
|
-
</ul>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script lang="ts" setup>
|
|
16
|
-
import { ref } from 'vue';
|
|
17
|
-
import { useI18n } from 'vue-i18n';
|
|
18
|
-
|
|
19
|
-
import { searchMethod } from './config.js';
|
|
20
|
-
|
|
21
|
-
const props = defineProps<{
|
|
22
|
-
value: number[];
|
|
23
|
-
}>();
|
|
24
|
-
|
|
25
|
-
const localValue = ref([]);
|
|
26
|
-
const { t } = useI18n();
|
|
27
|
-
|
|
28
|
-
const getLocalValue = async () => {
|
|
29
|
-
const { items } = await searchMethod({
|
|
30
|
-
id: props.value.list,
|
|
31
|
-
});
|
|
32
|
-
localValue.value = items;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
getLocalValue();
|
|
36
|
-
</script>
|
|
37
|
-
|
|
38
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<wt-datepicker
|
|
3
|
-
v-if="model"
|
|
4
|
-
:value="model"
|
|
5
|
-
:label="`${t('webitelUI.filters.filterValue')}`"
|
|
6
|
-
mode="datetime"
|
|
7
|
-
@input="model = $event"
|
|
8
|
-
/>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script lang="ts" setup>
|
|
12
|
-
import { startOfToday } from 'date-fns';
|
|
13
|
-
import { useI18n } from 'vue-i18n';
|
|
14
|
-
|
|
15
|
-
const model = defineModel<number>();
|
|
16
|
-
|
|
17
|
-
const { t } = useI18n();
|
|
18
|
-
|
|
19
|
-
if (!model.value) {
|
|
20
|
-
model.value = startOfToday().getTime();
|
|
21
|
-
}
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>{{ date }}</div>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script lang="ts" setup>
|
|
6
|
-
import { ref } from 'vue';
|
|
7
|
-
|
|
8
|
-
const props = defineProps<{
|
|
9
|
-
value: number[];
|
|
10
|
-
}>();
|
|
11
|
-
|
|
12
|
-
const date = ref(new Date(+props.value).toLocaleString());
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<wt-datepicker
|
|
3
|
-
v-if="model"
|
|
4
|
-
:label="`${t('webitelUI.filters.filterValue')}`"
|
|
5
|
-
:value="model"
|
|
6
|
-
mode="datetime"
|
|
7
|
-
@input="model = $event"
|
|
8
|
-
/>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script lang="ts" setup>
|
|
12
|
-
import { endOfToday } from 'date-fns';
|
|
13
|
-
import { useI18n } from 'vue-i18n';
|
|
14
|
-
|
|
15
|
-
const model = defineModel<number>();
|
|
16
|
-
|
|
17
|
-
const { t } = useI18n();
|
|
18
|
-
|
|
19
|
-
if (!model.value) {
|
|
20
|
-
model.value = endOfToday().getTime();
|
|
21
|
-
}
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>{{ date }}</div>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script lang="ts" setup>
|
|
6
|
-
import { ref } from 'vue';
|
|
7
|
-
|
|
8
|
-
const props = defineProps<{
|
|
9
|
-
value: number[];
|
|
10
|
-
}>();
|
|
11
|
-
|
|
12
|
-
const date = ref(new Date(+props.value).toLocaleString());
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<wt-select
|
|
3
|
-
:clearable="false"
|
|
4
|
-
:label="t('webitelUI.filters.filterValue')"
|
|
5
|
-
:options="DirectionOptions"
|
|
6
|
-
:value="model"
|
|
7
|
-
:v="v$.model"
|
|
8
|
-
track-by="value"
|
|
9
|
-
use-value-from-options-by-prop="value"
|
|
10
|
-
@input="model = $event"
|
|
11
|
-
/>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script lang="ts" setup>
|
|
15
|
-
import { useVuelidate } from '@vuelidate/core';
|
|
16
|
-
import { required } from '@vuelidate/validators';
|
|
17
|
-
import { computed, watch } from 'vue';
|
|
18
|
-
import { useI18n } from 'vue-i18n';
|
|
19
|
-
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
|
-
import { DirectionOptions } from '../../../enums/direction-options';
|
|
22
|
-
|
|
23
|
-
const model = defineModel<string>();
|
|
24
|
-
const { t } = useI18n();
|
|
25
|
-
|
|
26
|
-
const v$ = useVuelidate(
|
|
27
|
-
computed(() => ({
|
|
28
|
-
model: {
|
|
29
|
-
required,
|
|
30
|
-
},
|
|
31
|
-
})),
|
|
32
|
-
{ model },
|
|
33
|
-
{ $autoDirty: true },
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
v$.value.$touch();
|
|
37
|
-
|
|
38
|
-
const emit = defineEmits<{
|
|
39
|
-
'update:invalid': [boolean];
|
|
40
|
-
}>();
|
|
41
|
-
|
|
42
|
-
watch(
|
|
43
|
-
() => v$.value.$invalid,
|
|
44
|
-
(invalid) => {
|
|
45
|
-
emit('update:invalid', invalid);
|
|
46
|
-
},
|
|
47
|
-
{ immediate: true },
|
|
48
|
-
);
|
|
49
|
-
</script>
|
|
50
|
-
|
|
51
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
{{ t(`calls.direction.${value}`) }}
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script lang="ts" setup>
|
|
8
|
-
import { useI18n } from 'vue-i18n';
|
|
9
|
-
|
|
10
|
-
const props = defineProps<{
|
|
11
|
-
value: number[];
|
|
12
|
-
}>();
|
|
13
|
-
|
|
14
|
-
const { t } = useI18n();
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<wt-select
|
|
3
|
-
:close-on-select="false"
|
|
4
|
-
:label="t('webitelUI.filters.filterValue')"
|
|
5
|
-
:search-method="searchMethod"
|
|
6
|
-
:value="model"
|
|
7
|
-
:v="v$.model"
|
|
8
|
-
multiple
|
|
9
|
-
use-value-from-options-by-prop="id"
|
|
10
|
-
@input="handleInput"
|
|
11
|
-
/>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script lang="ts" setup>
|
|
15
|
-
import { useVuelidate } from '@vuelidate/core';
|
|
16
|
-
import { required } from '@vuelidate/validators';
|
|
17
|
-
import { computed, watch } from 'vue';
|
|
18
|
-
import { useI18n } from 'vue-i18n';
|
|
19
|
-
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
|
-
import { searchMethod } from './config.js';
|
|
22
|
-
|
|
23
|
-
type ModelValue = number[];
|
|
24
|
-
|
|
25
|
-
const model = defineModel<ModelValue>();
|
|
26
|
-
|
|
27
|
-
const emit = defineEmits<{
|
|
28
|
-
'update:invalid': [boolean];
|
|
29
|
-
}>();
|
|
30
|
-
const { t } = useI18n();
|
|
31
|
-
|
|
32
|
-
const v$ = useVuelidate(
|
|
33
|
-
computed(() => ({
|
|
34
|
-
model: {
|
|
35
|
-
required,
|
|
36
|
-
},
|
|
37
|
-
})),
|
|
38
|
-
{ model },
|
|
39
|
-
{ $autoDirty: true },
|
|
40
|
-
);
|
|
41
|
-
v$.value.$touch();
|
|
42
|
-
|
|
43
|
-
watch(
|
|
44
|
-
() => v$.value.$invalid,
|
|
45
|
-
(invalid) => {
|
|
46
|
-
emit('update:invalid', invalid);
|
|
47
|
-
},
|
|
48
|
-
{ immediate: true },
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
const handleInput = (value: ModelValue) => {
|
|
52
|
-
model.value = value;
|
|
53
|
-
};
|
|
54
|
-
</script>
|
|
55
|
-
|
|
56
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ul v-if="localValue">
|
|
3
|
-
<li
|
|
4
|
-
v-for="({ name }, index) of localValue"
|
|
5
|
-
:key="index"
|
|
6
|
-
>
|
|
7
|
-
{{ name }}
|
|
8
|
-
</li>
|
|
9
|
-
</ul>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script lang="ts" setup>
|
|
13
|
-
import { ref } from 'vue';
|
|
14
|
-
|
|
15
|
-
import { searchMethod } from './config.js';
|
|
16
|
-
|
|
17
|
-
const props = defineProps<{
|
|
18
|
-
value: number[];
|
|
19
|
-
}>();
|
|
20
|
-
|
|
21
|
-
const localValue = ref([]);
|
|
22
|
-
|
|
23
|
-
const getLocalValue = async () => {
|
|
24
|
-
const { items } = await searchMethod({ id: props.value });
|
|
25
|
-
localValue.value = items;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
getLocalValue();
|
|
29
|
-
</script>
|
|
30
|
-
|
|
31
|
-
<style lang="scss" scoped></style>
|