@fewangsit/wangsvue-fats 1.0.0-alpha.115 → 1.0.0-alpha.116
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.
|
@@ -24,6 +24,14 @@ export type FilterMatchMode =
|
|
|
24
24
|
| 'BETWEEN'
|
|
25
25
|
| 'DATE_BETWEEN';
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* @param args - The query parameters to be passed to the fetchOptionFn.
|
|
29
|
+
*/
|
|
30
|
+
export type FetchOptionFn =
|
|
31
|
+
| ((args: any) => Option[] | undefined) // Sync function to fetch options
|
|
32
|
+
| ((args: any) => Promise<Option[] | undefined>) // Async function
|
|
33
|
+
| ((args: any) => Promise<AxiosResponse<FetchOptionResponse<any>>>); // The service method handle fetching options
|
|
34
|
+
|
|
27
35
|
// More specific filter field types
|
|
28
36
|
export interface MultiSelectFilterField extends MultiSelectProps {
|
|
29
37
|
type: 'multiselect';
|
|
@@ -37,14 +45,7 @@ export interface MultiSelectFilterField extends MultiSelectProps {
|
|
|
37
45
|
field: string;
|
|
38
46
|
optionField?: string; // @example - actionOptions
|
|
39
47
|
params?: QueryParams; // Additional QueryParams for the fetchOptionFn
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @param args - The query parameters to be passed to the fetchOptionFn.
|
|
43
|
-
*/
|
|
44
|
-
fetchOptionFn?:
|
|
45
|
-
| ((args?: any) => Option[] | undefined) // Sync function to fetch options
|
|
46
|
-
| ((args?: any) => Promise<Option[] | undefined>) // Async function
|
|
47
|
-
| ((args?: any) => Promise<AxiosResponse<FetchOptionResponse<any>>>); // The service method handle fetching options
|
|
48
|
+
fetchOptionFn?: FetchOptionFn;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
export interface DropdownFilterField extends DropdownProps {
|
|
@@ -59,9 +60,7 @@ export interface DropdownFilterField extends DropdownProps {
|
|
|
59
60
|
field: string;
|
|
60
61
|
optionField?: string; // @example - actionOptions
|
|
61
62
|
params?: QueryParams; // Additional QueryParams for the fetchOptionFn
|
|
62
|
-
fetchOptionFn?:
|
|
63
|
-
| ((args?: any) => Option[] | undefined) // Sync function to fetch options
|
|
64
|
-
| ((args?: any) => Promise<Option[]> | undefined); // Async function
|
|
63
|
+
fetchOptionFn?: FetchOptionFn;
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
export interface RangeNumberFilterField extends InputRangeNumberProps {
|