@adminforth/quick-filters 4.0.1 → 4.0.2

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,754 bytes received 115 bytes 11,738.00 bytes/sec
14
- total size is 5,327 speedup is 0.91
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, updateFilter then removes the filter
38
- set: (value) => list.updateFilter({
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,
@@ -52,7 +52,7 @@ watch(appliedTerm, (term) => {
52
52
  });
53
53
 
54
54
  function send(term?: string) {
55
- adminforth?.list?.updateFilter?.({
55
+ adminforth?.list?.setFilter?.({
56
56
  field,
57
57
  operator: AdminForthFilterOperators.EQ,
58
58
  value: term || '',
@@ -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, updateFilter then removes the filter
38
- set: (value) => list.updateFilter({
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,
@@ -52,7 +52,7 @@ watch(appliedTerm, (term) => {
52
52
  });
53
53
 
54
54
  function send(term?: string) {
55
- adminforth?.list?.updateFilter?.({
55
+ adminforth?.list?.setFilter?.({
56
56
  field,
57
57
  operator: AdminForthFilterOperators.EQ,
58
58
  value: term || '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/quick-filters",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -21,7 +21,7 @@
21
21
  "description": "AdminForth plugin that adds configurable quick filter buttons to resource lists.",
22
22
  "devDependencies": {
23
23
  "@types/node": "latest",
24
- "adminforth": "^3.7.1",
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"