@webitel/ui-datalist 1.0.6 → 1.0.8
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/package.json +2 -2
- package/src/filters/classes/FiltersManager.ts +1 -1
- package/src/filters/components/filter-options/case-assignee/case-assignee-filter-value-preview.vue +36 -0
- package/src/filters/components/filter-options/{assignee → case-assignee}/config.js +0 -1
- package/src/filters/components/filter-options/case-author/case-author-filter-value-preview.vue +16 -0
- package/src/filters/components/filter-options/{author → case-author}/config.js +0 -1
- package/src/filters/components/filter-options/case-close-reason-groups/case-close-reason-groups-filter-value-preview.vue +15 -0
- package/src/filters/components/filter-options/{close-reason-groups-case → case-close-reason-groups}/config.js +0 -1
- package/src/filters/components/filter-options/case-impacted/case-impacted-filter-value-preview.vue +15 -0
- package/src/filters/components/filter-options/{reporter → case-impacted}/config.js +0 -1
- package/src/filters/components/filter-options/case-priority/case-priority-filter-value-preview.vue +15 -0
- package/src/filters/components/filter-options/{priority-case → case-priority}/config.js +0 -1
- package/src/filters/components/filter-options/case-reporter/case-reporter-filter-value-preview.vue +15 -0
- package/src/filters/components/filter-options/{impacted → case-reporter}/config.js +0 -1
- package/src/filters/components/filter-options/case-service/case-service-filter-value-preview.vue +18 -0
- package/src/filters/components/filter-options/{service-case → case-service}/config.js +1 -2
- package/src/filters/components/filter-options/case-sla/case-sla-filter-value-preview.vue +15 -0
- package/src/filters/components/filter-options/{sla → case-sla}/config.js +0 -1
- package/src/filters/components/filter-options/case-sla-condition/case-sla-condition-filter-value-preview.vue +15 -0
- package/src/filters/components/filter-options/{sla-condition → case-sla-condition}/config.js +0 -1
- package/src/filters/components/filter-options/case-source/case-source-filter-value-preview.vue +15 -0
- package/src/filters/components/filter-options/{source-case → case-source}/config.js +0 -1
- package/src/filters/components/filter-options/case-status/case-status-filter-value-preview.vue +15 -0
- package/src/filters/components/filter-options/{status-case → case-status}/config.js +0 -1
- package/src/filters/components/filter-options/contact/config.js +0 -1
- package/src/filters/components/filter-options/contact-group/config.js +0 -1
- package/src/filters/components/filter-options/contact-group/contact-group-filter-value-preview.vue +20 -22
- package/src/filters/components/filter-options/gateway/config.js +0 -1
- package/src/filters/components/filter-options/grantee/config.js +0 -1
- package/src/filters/components/filter-options/index.ts +184 -149
- package/src/filters/components/filter-options/queue/config.js +0 -1
- package/src/filters/components/filter-options/rated-by/config.js +0 -1
- package/src/filters/components/filter-options/team/config.js +0 -1
- package/src/filters/components/filter-options/user/config.js +0 -1
- package/src/filters/components/preview/dynamic-filter-preview.vue +3 -2
- package/src/filters/components/search-bar/dynamic-filter-search.vue +123 -0
- package/src/filters/components/search-bar/types/DynamicFilterSearch.d.ts +5 -0
- package/src/filters/enums/FilterOption.ts +3 -3
- package/src/filters/index.ts +1 -1
- package/src/filters/components/dynamic-filter-search.vue +0 -60
- package/src/filters/components/filter-options/assignee/assignee-filter-value-preview.vue +0 -36
- package/src/filters/components/filter-options/author/author-filter-value-preview.vue +0 -31
- package/src/filters/components/filter-options/close-reason-groups-case/close-reason-groups-case-filter-value-preview.vue +0 -34
- package/src/filters/components/filter-options/impacted/impacted-filter-value-preview.vue +0 -31
- package/src/filters/components/filter-options/priority-case/priority-case-filter-value-preview.vue +0 -31
- package/src/filters/components/filter-options/reporter/reporter-filter-value-preview.vue +0 -31
- package/src/filters/components/filter-options/service-case/service-case-filter-value-preview.vue +0 -34
- package/src/filters/components/filter-options/sla/sla-filter-value-preview.vue +0 -31
- package/src/filters/components/filter-options/sla-condition/sla-condition-filter-value-preview.vue +0 -37
- package/src/filters/components/filter-options/source-case/source-case-filter-value-preview.vue +0 -31
- package/src/filters/components/filter-options/status-case/status-case-filter-value-preview.vue +0 -37
- /package/src/filters/components/filter-options/{direction/direction-filter-value-field.vue → call-direction/call-direction-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{direction/direction-filter-value-preview.vue → call-direction/call-direction-filter-value-preview.vue} +0 -0
- /package/src/filters/components/filter-options/{actual-reaction-time/actual-reaction-time-filter-value-field.vue → case-actual-reaction-time/case-actual-reaction-time-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{actual-reaction-time/actual-reaction-time-filter-value-preview.vue → case-actual-reaction-time/case-actual-reaction-time-filter-value-preview.vue} +0 -0
- /package/src/filters/components/filter-options/{actual-resolution-time/actual-resolution-time-filter-value-field.vue → case-actual-resolution-time/case-actual-resolution-time-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{actual-resolution-time/actual-resolution-time-filter-value-preview.vue → case-actual-resolution-time/case-actual-resolution-time-filter-value-preview.vue} +0 -0
- /package/src/filters/components/filter-options/{assignee/assignee-filter-value-field.vue → case-assignee/case-assignee-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{author/author-filter-value-field.vue → case-author/case-author-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{close-reason-groups-case/close-reason-groups-case-filter-value-field.vue → case-close-reason-groups/case-close-reason-groups-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{impacted/impacted-filter-value-field.vue → case-impacted/case-impacted-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{priority-case/priority-case-filter-value-field.vue → case-priority/case-priority-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{reaction-time/reaction-time-filter-value-field.vue → case-reaction-time/case-reaction-time-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{reaction-time/reaction-time-filter-value-preview.vue → case-reaction-time/case-reaction-time-filter-value-preview.vue} +0 -0
- /package/src/filters/components/filter-options/{reporter/reporter-filter-value-field.vue → case-reporter/case-reporter-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{resolution-time/resolution-time-filter-value-field.vue → case-resolution-time/case-resolution-time-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{resolution-time/resolution-time-filter-value-preview.vue → case-resolution-time/case-resolution-time-filter-value-preview.vue} +0 -0
- /package/src/filters/components/filter-options/{service-case/service-case-filter-value-field.vue → case-service/case-service-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{sla/sla-filter-value-field.vue → case-sla/case-sla-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{sla-condition/sla-condition-filter-value-field.vue → case-sla-condition/case-sla-condition-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{source-case/source-case-filter-value-field.vue → case-source/case-source-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{status-case/status-case-filter-value-field.vue → case-status/case-status-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{cause/cause-filter-value-field.vue → hangup-cause/hangup-cause-filter-value-field.vue} +0 -0
- /package/src/filters/components/filter-options/{cause/cause-filter-value-preview.vue → hangup-cause/hangup-cause-filter-value-preview.vue} +0 -0
package/src/filters/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Filter } from './classes/Filter.ts';
|
|
2
2
|
import { createFiltersManager } from './classes/FiltersManager';
|
|
3
|
-
import DynamicFilterSearchComponent from './components/dynamic-filter-search.vue';
|
|
3
|
+
import DynamicFilterSearchComponent from './components/search-bar/dynamic-filter-search.vue';
|
|
4
4
|
import TableFiltersPanelComponent from './components/table-filters-panel.vue';
|
|
5
5
|
import { FilterOption } from './enums/FilterOption';
|
|
6
6
|
import type {
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<wt-search-bar
|
|
3
|
-
:placeholder="t('reusable.search')"
|
|
4
|
-
:search-mode="props.searchMode"
|
|
5
|
-
:search-mode-options="searchModeOptions"
|
|
6
|
-
:value="model"
|
|
7
|
-
@input="model = $event"
|
|
8
|
-
@search="handleSearch"
|
|
9
|
-
@update:search-mode="onSearchModeChange($event.value)"
|
|
10
|
-
>
|
|
11
|
-
<template
|
|
12
|
-
v-if="props.showTextSearchIcon"
|
|
13
|
-
#search-icon
|
|
14
|
-
>
|
|
15
|
-
<wt-icon icon="stt-search" />
|
|
16
|
-
</template>
|
|
17
|
-
</wt-search-bar>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script lang="ts" setup>
|
|
21
|
-
import { WtSearchBar } from '@webitel/ui-sdk/components';
|
|
22
|
-
import { computed } from 'vue';
|
|
23
|
-
import { useI18n } from 'vue-i18n';
|
|
24
|
-
|
|
25
|
-
type ModelValue = string;
|
|
26
|
-
const model = defineModel<ModelValue>();
|
|
27
|
-
|
|
28
|
-
const props = defineProps<{
|
|
29
|
-
searchMode: string;
|
|
30
|
-
searchModeOptions: Record<string, string>;
|
|
31
|
-
showTextSearchIcon?: boolean;
|
|
32
|
-
}>();
|
|
33
|
-
|
|
34
|
-
const emit = defineEmits<{
|
|
35
|
-
'update:search-mode': [string];
|
|
36
|
-
'handle-search': [string];
|
|
37
|
-
}>();
|
|
38
|
-
|
|
39
|
-
const { t } = useI18n();
|
|
40
|
-
|
|
41
|
-
const onSearchModeChange = (value: string) => {
|
|
42
|
-
emit('update:search-mode', value);
|
|
43
|
-
model.value = '';
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const handleSearch = () => {
|
|
47
|
-
emit('handle-search', model.value);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const searchModeOptions = computed(() =>
|
|
51
|
-
Object.values(props.searchModeOptions).map((mode) => {
|
|
52
|
-
return {
|
|
53
|
-
value: mode,
|
|
54
|
-
text: t(`filters.search.${mode}`),
|
|
55
|
-
};
|
|
56
|
-
}),
|
|
57
|
-
);
|
|
58
|
-
</script>
|
|
59
|
-
|
|
60
|
-
<style 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 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 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 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 scoped></style>
|
package/src/filters/components/filter-options/priority-case/priority-case-filter-value-preview.vue
DELETED
|
@@ -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 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 scoped></style>
|
package/src/filters/components/filter-options/service-case/service-case-filter-value-preview.vue
DELETED
|
@@ -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 { servicesSearchMethod } 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 servicesSearchMethod({
|
|
25
|
-
id: props.value,
|
|
26
|
-
fields: ['id', 'name'],
|
|
27
|
-
});
|
|
28
|
-
localValue.value = items;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
getLocalValue();
|
|
32
|
-
</script>
|
|
33
|
-
|
|
34
|
-
<style 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 scoped></style>
|
package/src/filters/components/filter-options/sla-condition/sla-condition-filter-value-preview.vue
DELETED
|
@@ -1,37 +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 { slasConditionsSearchMethod } from './config.js';
|
|
16
|
-
|
|
17
|
-
const props = defineProps<{
|
|
18
|
-
value: {
|
|
19
|
-
selection: string;
|
|
20
|
-
conditions: string;
|
|
21
|
-
};
|
|
22
|
-
}>();
|
|
23
|
-
|
|
24
|
-
const localValue = ref([]);
|
|
25
|
-
|
|
26
|
-
const getLocalValue = async () => {
|
|
27
|
-
const { items } = await slasConditionsSearchMethod({
|
|
28
|
-
parentId: props.value?.selection,
|
|
29
|
-
id: props.value?.conditions,
|
|
30
|
-
});
|
|
31
|
-
localValue.value = items;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
getLocalValue();
|
|
35
|
-
</script>
|
|
36
|
-
|
|
37
|
-
<style scoped></style>
|
package/src/filters/components/filter-options/source-case/source-case-filter-value-preview.vue
DELETED
|
@@ -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 scoped></style>
|
package/src/filters/components/filter-options/status-case/status-case-filter-value-preview.vue
DELETED
|
@@ -1,37 +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 { caseStatusConditionsSearchMethod } from './config.js';
|
|
16
|
-
|
|
17
|
-
const props = defineProps<{
|
|
18
|
-
value: {
|
|
19
|
-
selection: string;
|
|
20
|
-
conditions: string;
|
|
21
|
-
};
|
|
22
|
-
}>();
|
|
23
|
-
|
|
24
|
-
const localValue = ref([]);
|
|
25
|
-
|
|
26
|
-
const getLocalValue = async () => {
|
|
27
|
-
const { items } = await caseStatusConditionsSearchMethod({
|
|
28
|
-
parentId: props.value?.selection,
|
|
29
|
-
id: props.value?.conditions,
|
|
30
|
-
});
|
|
31
|
-
localValue.value = items;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
getLocalValue();
|
|
35
|
-
</script>
|
|
36
|
-
|
|
37
|
-
<style scoped></style>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|