@webitel/ui-sdk 25.4.55 → 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 +14 -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/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
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="date-time-filter-value-field">
|
|
3
|
-
<wt-datepicker
|
|
4
|
-
:label="`${t('webitelUI.filters.createdAtFrom')}:`"
|
|
5
|
-
:value="model?.from"
|
|
6
|
-
class="date-time-filter-value-field__picker"
|
|
7
|
-
mode="datetime"
|
|
8
|
-
@input="handleInput('from', $event)"
|
|
9
|
-
/>
|
|
10
|
-
|
|
11
|
-
<wt-datepicker
|
|
12
|
-
:label="`${t('webitelUI.filters.createdAtTo')}:`"
|
|
13
|
-
:value="model?.to"
|
|
14
|
-
class="date-time-filter-value-field__picker"
|
|
15
|
-
mode="datetime"
|
|
16
|
-
@input="handleInput('to', $event)"
|
|
17
|
-
/>
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script lang="ts" setup>
|
|
22
|
-
import { endOfToday, startOfToday } from 'date-fns';
|
|
23
|
-
import { onMounted } from 'vue';
|
|
24
|
-
import { useI18n } from 'vue-i18n';
|
|
25
|
-
|
|
26
|
-
type ModelValue = {
|
|
27
|
-
from: number;
|
|
28
|
-
to: number;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const model = defineModel<ModelValue>();
|
|
32
|
-
const { t } = useI18n();
|
|
33
|
-
|
|
34
|
-
const handleInput = (key: keyof ModelValue, value: number) => {
|
|
35
|
-
model.value = { ...model.value, [key]: value };
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
const initModel = () => {
|
|
39
|
-
if (!model.value) {
|
|
40
|
-
model.value = {
|
|
41
|
-
from: startOfToday().getTime(),
|
|
42
|
-
to: endOfToday().getTime(),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
onMounted(() => initModel());
|
|
48
|
-
</script>
|
|
49
|
-
|
|
50
|
-
<style lang="scss" scoped>
|
|
51
|
-
.date-time-filter-value-field {
|
|
52
|
-
display: flex;
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
grid-gap: var(--spacing-xs);
|
|
55
|
-
}
|
|
56
|
-
</style>
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="duration-filter">
|
|
3
|
-
<wt-timepicker
|
|
4
|
-
v-if="model"
|
|
5
|
-
:label="t('reusable.from')"
|
|
6
|
-
:value="model.from"
|
|
7
|
-
:v="v$.model?.from"
|
|
8
|
-
format="mm:ss"
|
|
9
|
-
@input="handleInput('from', $event)"
|
|
10
|
-
/>
|
|
11
|
-
<wt-timepicker
|
|
12
|
-
v-if="model"
|
|
13
|
-
:label="t('reusable.to')"
|
|
14
|
-
:value="model.to"
|
|
15
|
-
:v="v$.model?.to"
|
|
16
|
-
format="mm:ss"
|
|
17
|
-
@input="handleInput('to', $event)"
|
|
18
|
-
/>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script lang="ts" setup>
|
|
23
|
-
import { useVuelidate } from '@vuelidate/core';
|
|
24
|
-
import { computed, watch } from 'vue';
|
|
25
|
-
import { useI18n } from 'vue-i18n';
|
|
26
|
-
|
|
27
|
-
const { t } = useI18n();
|
|
28
|
-
|
|
29
|
-
type ModelValue = {
|
|
30
|
-
from: number;
|
|
31
|
-
to: number;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
const model = defineModel<ModelValue>();
|
|
35
|
-
|
|
36
|
-
const emit = defineEmits<{
|
|
37
|
-
'update:invalid': [boolean];
|
|
38
|
-
}>();
|
|
39
|
-
|
|
40
|
-
if (!model.value) {
|
|
41
|
-
model.value = {
|
|
42
|
-
from: 0,
|
|
43
|
-
to: 0,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const isValueEmpty = () => {
|
|
48
|
-
return !!model?.value?.to || !!model?.value?.from;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
const v$ = useVuelidate(
|
|
52
|
-
computed(() => ({
|
|
53
|
-
model: {
|
|
54
|
-
from: {
|
|
55
|
-
required: isValueEmpty,
|
|
56
|
-
},
|
|
57
|
-
to: {
|
|
58
|
-
required: isValueEmpty,
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
})),
|
|
62
|
-
{ model },
|
|
63
|
-
{ $autoDirty: true },
|
|
64
|
-
);
|
|
65
|
-
v$.value.$touch();
|
|
66
|
-
|
|
67
|
-
const handleInput = (key: keyof ModelValue, value: number) => {
|
|
68
|
-
const newValue = { ...model.value };
|
|
69
|
-
newValue[key] = value;
|
|
70
|
-
model.value = newValue;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
watch(
|
|
74
|
-
() => v$.value.$invalid,
|
|
75
|
-
(invalid) => {
|
|
76
|
-
emit('update:invalid', invalid);
|
|
77
|
-
},
|
|
78
|
-
{ immediate: true },
|
|
79
|
-
);
|
|
80
|
-
</script>
|
|
81
|
-
|
|
82
|
-
<style lang="scss" scoped>
|
|
83
|
-
//.duration-filter {}
|
|
84
|
-
</style>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<wt-select
|
|
3
|
-
v-bind="attrs"
|
|
4
|
-
:clearable="false"
|
|
5
|
-
:options="BooleanOptions"
|
|
6
|
-
:value="strModel"
|
|
7
|
-
:label="t('webitelUI.filters.filterValue')"
|
|
8
|
-
class="has-option-filter-value-field"
|
|
9
|
-
track-by="value"
|
|
10
|
-
use-value-from-options-by-prop="value"
|
|
11
|
-
@input="strModel = $event"
|
|
12
|
-
/>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script lang="ts" setup>
|
|
16
|
-
import { computed, useAttrs } from 'vue';
|
|
17
|
-
import { useI18n } from 'vue-i18n';
|
|
18
|
-
|
|
19
|
-
import WtSelect from '../../../../../../../../components/wt-select/wt-select.vue';
|
|
20
|
-
import { BooleanOptions } from '../../../../enums/boolean-options';
|
|
21
|
-
|
|
22
|
-
const model = defineModel<boolean | null>();
|
|
23
|
-
|
|
24
|
-
const attrs = useAttrs();
|
|
25
|
-
|
|
26
|
-
const { t } = useI18n();
|
|
27
|
-
|
|
28
|
-
const strModel = computed({
|
|
29
|
-
get: () => {
|
|
30
|
-
return typeof model.value === 'boolean' ? String(model.value) : model.value;
|
|
31
|
-
},
|
|
32
|
-
set: (value: string) => {
|
|
33
|
-
model.value = value === 'true';
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
</script>
|
|
37
|
-
|
|
38
|
-
<style lang="scss" scoped></style>
|
package/src/modules/Filters/v2/filters/components/filter-options/_shared/types/BooleanFilter.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type BooleanFilterModelValue = boolean;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<date-time-filter-value-field
|
|
3
|
-
:model-value="model"
|
|
4
|
-
@update:model-value="model = $event"
|
|
5
|
-
/>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script lang="ts" setup>
|
|
9
|
-
import DateTimeFilterValueField from '../_shared/date-time-filter/date-time-filter-value-field.vue';
|
|
10
|
-
|
|
11
|
-
type ModelValue = {
|
|
12
|
-
from: number;
|
|
13
|
-
to: number;
|
|
14
|
-
};
|
|
15
|
-
const model = defineModel<ModelValue>();
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="actual-reaction-time-filter-value-preview">
|
|
3
|
-
<div v-if="props.value.from">
|
|
4
|
-
<p class="actual-reaction-time-filter-value-preview__title">
|
|
5
|
-
{{ t('reusable.from') }}
|
|
6
|
-
</p>
|
|
7
|
-
|
|
8
|
-
<span>{{ convertTimestampToDate(props.value.from) }}</span>
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
|
-
<div v-if="props.value.to">
|
|
12
|
-
<p class="actual-reaction-time-filter-value-preview__title">
|
|
13
|
-
{{ t('reusable.to') }}
|
|
14
|
-
</p>
|
|
15
|
-
|
|
16
|
-
<span>{{ convertTimestampToDate(props.value.to) }}</span>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script lang="ts" setup>
|
|
22
|
-
import { format } from 'date-fns';
|
|
23
|
-
import { useI18n } from 'vue-i18n';
|
|
24
|
-
|
|
25
|
-
const props = defineProps<{
|
|
26
|
-
value: number[];
|
|
27
|
-
}>();
|
|
28
|
-
|
|
29
|
-
const { t } = useI18n();
|
|
30
|
-
|
|
31
|
-
function convertTimestampToDate(value) {
|
|
32
|
-
return format(new Date(value), 'dd.MM.yyyy HH:mm');
|
|
33
|
-
}
|
|
34
|
-
</script>
|
|
35
|
-
|
|
36
|
-
<style lang="scss" scoped>
|
|
37
|
-
@use '@webitel/styleguide/typography' as *;
|
|
38
|
-
|
|
39
|
-
.actual-reaction-time-filter-value-preview {
|
|
40
|
-
&__title {
|
|
41
|
-
@extend %typo-subtitle-1;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
</style>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<date-time-filter-value-field
|
|
3
|
-
:model-value="model"
|
|
4
|
-
@update:model-value="model = $event"
|
|
5
|
-
/>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script lang="ts" setup>
|
|
9
|
-
import DateTimeFilterValueField from '../_shared/date-time-filter/date-time-filter-value-field.vue';
|
|
10
|
-
|
|
11
|
-
type ModelValue = {
|
|
12
|
-
from: number;
|
|
13
|
-
to: number;
|
|
14
|
-
};
|
|
15
|
-
const model = defineModel<ModelValue>();
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="actual-resolution-time-filter-value-preview">
|
|
3
|
-
<div v-if="props.value.from">
|
|
4
|
-
<p class="actual-resolution-time-filter-value-preview__title">
|
|
5
|
-
{{ t('reusable.from') }}
|
|
6
|
-
</p>
|
|
7
|
-
|
|
8
|
-
<span>{{ convertTimestampToDate(props.value.from) }}</span>
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
|
-
<div v-if="props.value.to">
|
|
12
|
-
<p class="actual-resolution-time-filter-value-preview__title">
|
|
13
|
-
{{ t('reusable.to') }}
|
|
14
|
-
</p>
|
|
15
|
-
|
|
16
|
-
<span>{{ convertTimestampToDate(props.value.to) }}</span>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script lang="ts" setup>
|
|
22
|
-
import { format } from 'date-fns';
|
|
23
|
-
import { useI18n } from 'vue-i18n';
|
|
24
|
-
|
|
25
|
-
const props = defineProps<{
|
|
26
|
-
value: number[];
|
|
27
|
-
}>();
|
|
28
|
-
|
|
29
|
-
const { t } = useI18n();
|
|
30
|
-
|
|
31
|
-
function convertTimestampToDate(value) {
|
|
32
|
-
return format(new Date(value), 'dd.MM.yyyy HH:mm');
|
|
33
|
-
}
|
|
34
|
-
</script>
|
|
35
|
-
|
|
36
|
-
<style lang="scss" scoped>
|
|
37
|
-
@use '@webitel/styleguide/typography' as *;
|
|
38
|
-
|
|
39
|
-
.actual-resolution-time-filter-value-preview {
|
|
40
|
-
&__title {
|
|
41
|
-
@extend %typo-subtitle-1;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
</style>
|
package/src/modules/Filters/v2/filters/components/filter-options/agent/agent-filter-value-field.vue
DELETED
|
@@ -1,58 +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
|
-
|
|
31
|
-
const { t } = useI18n();
|
|
32
|
-
|
|
33
|
-
const v$ = useVuelidate(
|
|
34
|
-
computed(() => ({
|
|
35
|
-
model: {
|
|
36
|
-
required,
|
|
37
|
-
},
|
|
38
|
-
})),
|
|
39
|
-
{ model },
|
|
40
|
-
{ $autoDirty: true },
|
|
41
|
-
);
|
|
42
|
-
|
|
43
|
-
v$.value.$touch();
|
|
44
|
-
|
|
45
|
-
watch(
|
|
46
|
-
() => v$.value.$invalid,
|
|
47
|
-
(invalid) => {
|
|
48
|
-
emit('update:invalid', invalid);
|
|
49
|
-
},
|
|
50
|
-
{ immediate: true },
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
const handleInput = (value: ModelValue) => {
|
|
54
|
-
model.value = value;
|
|
55
|
-
};
|
|
56
|
-
</script>
|
|
57
|
-
|
|
58
|
-
<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,52 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<wt-select
|
|
3
|
-
:clearable="false"
|
|
4
|
-
:label="t('webitelUI.filters.filterValue')"
|
|
5
|
-
:options="AmdResultOptions"
|
|
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 { AmdResultOptions } from '../../../enums/amd-result-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="(result, index) of props.value"
|
|
5
|
-
:key="index"
|
|
6
|
-
>
|
|
7
|
-
{{ result }}
|
|
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,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,36 +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({ id: props.value.list });
|
|
30
|
-
localValue.value = items;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
getLocalValue();
|
|
34
|
-
</script>
|
|
35
|
-
|
|
36
|
-
<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
|
-
:v="v$.model"
|
|
7
|
-
:value="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>
|