@headless-adminapp/app 1.4.19 → 1.4.20
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ColumnCondition } from '@headless-adminapp/core/experience/view';
|
|
2
|
-
export declare function useGridColumnFilter(): readonly [Partial<Record<string, ColumnCondition>>, (columnName: string, value: ColumnCondition | undefined) => void];
|
|
2
|
+
export declare function useGridColumnFilter(): readonly [Partial<Record<string, ColumnCondition>>, (columnName: string, value: ColumnCondition | undefined) => void, (columnFilters: Partial<Record<string, ColumnCondition>>) => void];
|
|
@@ -15,5 +15,10 @@ function useGridColumnFilter() {
|
|
|
15
15
|
},
|
|
16
16
|
}));
|
|
17
17
|
}, [setValue]);
|
|
18
|
-
|
|
18
|
+
const replaceColumnFilters = (0, react_1.useCallback)((columnFilters) => {
|
|
19
|
+
setValue({
|
|
20
|
+
columnFilters,
|
|
21
|
+
});
|
|
22
|
+
}, [setValue]);
|
|
23
|
+
return [columnFilters, setColumnFilter, replaceColumnFilters];
|
|
19
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@headless-adminapp/app",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"uuid": "11.0.3",
|
|
39
39
|
"yup": "^1.4.0"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "be1677e04dcd2ac91082078c0b59f81b0799d469"
|
|
42
42
|
}
|