@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 CHANGED
@@ -7,5 +7,5 @@ custom/
7
7
  custom/FiltersArea.vue
8
8
  custom/tsconfig.json
9
9
 
10
- sent 13,013 bytes received 58 bytes 26,142.00 bytes/sec
11
- total size is 12,798 speedup is 0.98
10
+ sent 13,120 bytes received 58 bytes 26,356.00 bytes/sec
11
+ total size is 12,908 speedup is 0.98
@@ -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-4 w-full">
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-4 w-full">
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/quick-filters",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",