-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVDUSTypes.ts
45 lines (38 loc) · 1.18 KB
/
VDUSTypes.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
type GenericDictionnary = {
[key: string]: any;
}
type VDUSParamSchema = {
name?: string;
default?: any;
type?: "string" | "boolean" | "integer" | "arrayInt" | "arrayString" | "nullBoolean";
}
type VDUSFormSchema = {
[key: string]: VDUSParamSchema;
}
type VDUSDatatableOptions = {
page?: number;
page_size?: number;
ordering?: Array<string>;
}
type VDUSConfiguration = {
prefix?: string;
debounceTime?: number;
serveurDefaultPageSize?: number;
extraQueryParams?: GenericDictionnary;
updateFormFunction?: Function | null;
}
type VuetifySortArraysObject = {
sortBy: Array<string | { key: string; order: 'asc' | 'desc'; }>; // depending if vuetify 2 or 3
sortDesc: Array<boolean>; // not existing in vuetify 3
}
type VuetifyOptions = {
page: number;
itemsPerPage: number;
sortBy: Array<string | { key: string; order: 'asc' | 'desc'; }>; // depending if vuetify 2 or 3
sortDesc: Array<boolean>; // not existing in vuetify 3
groupBy: Array<string>;
groupDesc: Array<boolean>;
multiSort: boolean;
mustSort: boolean;
}
export {GenericDictionnary, VDUSConfiguration, VuetifySortArraysObject, VuetifyOptions, VDUSParamSchema, VDUSFormSchema, VDUSDatatableOptions}