@adminforth/quick-filters 1.2.2 → 1.2.3
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/build.log +2 -2
- package/custom/FiltersArea.vue +5 -2
- package/dist/custom/FiltersArea.vue +5 -2
- package/package.json +1 -1
package/build.log
CHANGED
package/custom/FiltersArea.vue
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
{{ isExpanded ? 'Hide filters' : 'Show filters' }}
|
|
9
9
|
</p>
|
|
10
10
|
</div>
|
|
11
|
-
<div v-if="isExpanded" class="md:grid md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-6 gap-
|
|
11
|
+
<div v-if="isExpanded" class="md:grid md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-6 gap-2 w-full">
|
|
12
12
|
<div class="flex flex-col" v-for="c in columnsWithFilter" :key="c">
|
|
13
13
|
<div class="min-w-48">
|
|
14
|
-
<p class="dark:text-gray-400">{{ c.label }}</p>
|
|
14
|
+
<p class="dark:text-gray-400 text-sm">{{ c.label }}</p>
|
|
15
15
|
<Select
|
|
16
16
|
:teleportToBody="true"
|
|
17
17
|
v-if="c.foreignResource"
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
}"
|
|
28
28
|
@update:modelValue="onFilterInput[c.name]({ column: c, operator: c.filterOptions.multiselect ? 'in' : 'eq', value: c.filterOptions.multiselect ? ($event.length ? $event : undefined) : $event || undefined })"
|
|
29
29
|
:modelValue="filtersStore.filters.find(f => f.field === c.name && f.operator === (c.filterOptions.multiselect ? 'in' : 'eq'))?.value || (c.filterOptions.multiselect ? [] : '')"
|
|
30
|
+
:teleportToTop="true"
|
|
30
31
|
>
|
|
31
32
|
<template #extra-item v-if="columnLoadingState[c.name]?.loading">
|
|
32
33
|
<div class="text-center text-gray-400 dark:text-gray-300 py-2 flex items-center justify-center gap-2">
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
:modelValue="filtersStore.filters.find(f => f.field === c.name && f.operator === (c.filterOptions.multiselect ? 'in' : 'eq'))?.value !== undefined
|
|
51
52
|
? filtersStore.filters.find(f => f.field === c.name && f.operator === (c.filterOptions.multiselect ? 'in' : 'eq'))?.value
|
|
52
53
|
: (c.filterOptions.multiselect ? [] : '')"
|
|
54
|
+
:teleportToTop="true"
|
|
53
55
|
/>
|
|
54
56
|
|
|
55
57
|
<Select
|
|
@@ -60,6 +62,7 @@
|
|
|
60
62
|
:options="c.enum"
|
|
61
63
|
@update:modelValue="onFilterInput[c.name]({ column: c, operator: c.filterOptions.multiselect ? 'in' : 'eq', value: c.filterOptions.multiselect ? ($event.length ? $event : undefined) : $event || undefined })"
|
|
62
64
|
:modelValue="filtersStore.filters.find(f => f.field === c.name && f.operator === (c.filterOptions.multiselect ? 'in' : 'eq'))?.value || (c.filterOptions.multiselect ? [] : '')"
|
|
65
|
+
:teleportToTop="true"
|
|
63
66
|
/>
|
|
64
67
|
|
|
65
68
|
<Input
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
{{ isExpanded ? 'Hide filters' : 'Show filters' }}
|
|
9
9
|
</p>
|
|
10
10
|
</div>
|
|
11
|
-
<div v-if="isExpanded" class="md:grid md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-6 gap-
|
|
11
|
+
<div v-if="isExpanded" class="md:grid md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-6 gap-2 w-full">
|
|
12
12
|
<div class="flex flex-col" v-for="c in columnsWithFilter" :key="c">
|
|
13
13
|
<div class="min-w-48">
|
|
14
|
-
<p class="dark:text-gray-400">{{ c.label }}</p>
|
|
14
|
+
<p class="dark:text-gray-400 text-sm">{{ c.label }}</p>
|
|
15
15
|
<Select
|
|
16
16
|
:teleportToBody="true"
|
|
17
17
|
v-if="c.foreignResource"
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
}"
|
|
28
28
|
@update:modelValue="onFilterInput[c.name]({ column: c, operator: c.filterOptions.multiselect ? 'in' : 'eq', value: c.filterOptions.multiselect ? ($event.length ? $event : undefined) : $event || undefined })"
|
|
29
29
|
:modelValue="filtersStore.filters.find(f => f.field === c.name && f.operator === (c.filterOptions.multiselect ? 'in' : 'eq'))?.value || (c.filterOptions.multiselect ? [] : '')"
|
|
30
|
+
:teleportToTop="true"
|
|
30
31
|
>
|
|
31
32
|
<template #extra-item v-if="columnLoadingState[c.name]?.loading">
|
|
32
33
|
<div class="text-center text-gray-400 dark:text-gray-300 py-2 flex items-center justify-center gap-2">
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
:modelValue="filtersStore.filters.find(f => f.field === c.name && f.operator === (c.filterOptions.multiselect ? 'in' : 'eq'))?.value !== undefined
|
|
51
52
|
? filtersStore.filters.find(f => f.field === c.name && f.operator === (c.filterOptions.multiselect ? 'in' : 'eq'))?.value
|
|
52
53
|
: (c.filterOptions.multiselect ? [] : '')"
|
|
54
|
+
:teleportToTop="true"
|
|
53
55
|
/>
|
|
54
56
|
|
|
55
57
|
<Select
|
|
@@ -60,6 +62,7 @@
|
|
|
60
62
|
:options="c.enum"
|
|
61
63
|
@update:modelValue="onFilterInput[c.name]({ column: c, operator: c.filterOptions.multiselect ? 'in' : 'eq', value: c.filterOptions.multiselect ? ($event.length ? $event : undefined) : $event || undefined })"
|
|
62
64
|
:modelValue="filtersStore.filters.find(f => f.field === c.name && f.operator === (c.filterOptions.multiselect ? 'in' : 'eq'))?.value || (c.filterOptions.multiselect ? [] : '')"
|
|
65
|
+
:teleportToTop="true"
|
|
63
66
|
/>
|
|
64
67
|
|
|
65
68
|
<Input
|