@adminforth/quick-filters 4.0.1 → 4.0.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
|
@@ -10,5 +10,5 @@ custom/UniversalSearchInput.vue
|
|
|
10
10
|
custom/tsconfig.json
|
|
11
11
|
custom/types.ts
|
|
12
12
|
|
|
13
|
-
sent 5,
|
|
14
|
-
total size is 5,
|
|
13
|
+
sent 5,751 bytes received 115 bytes 11,732.00 bytes/sec
|
|
14
|
+
total size is 5,318 speedup is 0.91
|
|
@@ -34,8 +34,8 @@ const selectOptions = props.filter.enum!.map(option => ({
|
|
|
34
34
|
// the filters store is the source of truth: it is restored from the URL and emptied by "clear filters"
|
|
35
35
|
const selected = computed({
|
|
36
36
|
get: () => filtersStore.filters.find(f => f.field === field)?.value ?? null,
|
|
37
|
-
// Select emits undefined when the picked option is clicked again,
|
|
38
|
-
set: (value) => list.
|
|
37
|
+
// Select emits undefined when the picked option is clicked again, setFilter then removes the filter
|
|
38
|
+
set: (value) => list.setFilter({
|
|
39
39
|
field,
|
|
40
40
|
operator: AdminForthFilterOperators.EQ,
|
|
41
41
|
value,
|
|
@@ -34,8 +34,8 @@ const selectOptions = props.filter.enum!.map(option => ({
|
|
|
34
34
|
// the filters store is the source of truth: it is restored from the URL and emptied by "clear filters"
|
|
35
35
|
const selected = computed({
|
|
36
36
|
get: () => filtersStore.filters.find(f => f.field === field)?.value ?? null,
|
|
37
|
-
// Select emits undefined when the picked option is clicked again,
|
|
38
|
-
set: (value) => list.
|
|
37
|
+
// Select emits undefined when the picked option is clicked again, setFilter then removes the filter
|
|
38
|
+
set: (value) => list.setFilter({
|
|
39
39
|
field,
|
|
40
40
|
operator: AdminForthFilterOperators.EQ,
|
|
41
41
|
value,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/quick-filters",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"description": "AdminForth plugin that adds configurable quick filter buttons to resource lists.",
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "latest",
|
|
24
|
-
"adminforth": "^
|
|
24
|
+
"adminforth": "^4.7.3",
|
|
25
25
|
"semantic-release": "^24.2.1",
|
|
26
26
|
"semantic-release-slack-bot": "^4.0.2",
|
|
27
27
|
"typescript": "^5.7.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"adminforth": "^4.
|
|
30
|
+
"adminforth": "^4.7.3"
|
|
31
31
|
},
|
|
32
32
|
"release": {
|
|
33
33
|
"plugins": [
|