fastapi-rtk 0.2.6 → 0.2.8
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/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useContextProps.cjs +1 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineCategorizationLayoutRenderer.cjs +63 -0
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineGroupLayoutRenderer.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.cjs +3 -3
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/renderers/mantineRenderers.cjs +2 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useContextProps.mjs +1 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineCategorizationLayoutRenderer.mjs +63 -0
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineGroupLayoutRenderer.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.mjs +3 -3
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/renderers/mantineRenderers.mjs +2 -0
- package/dist/core/cjs/Tables/NextGenDataGrid/NextGenDataGrid.cjs +1 -2
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/Body.cjs +4 -5
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.cjs +1 -2
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/FilterModeDescription.cjs +2 -2
- package/dist/core/cjs/Tables/NextGenDataGrid/hooks/useColumns/useColumns.cjs +9 -9
- package/dist/core/cjs/Tables/NextGenDataGrid/utils.cjs +0 -3
- package/dist/core/cjs/Wrappers/ApiProvider/ApiProvider.cjs +1 -1
- package/dist/core/cjs/Wrappers/ApiProvider/Contexts/ApiContext.cjs +4 -40
- package/dist/core/cjs/Wrappers/ApiProvider/Contexts/BulkActionsContext.cjs +6 -11
- package/dist/core/cjs/Wrappers/ApiProvider/Contexts/FormContext.cjs +11 -38
- package/dist/core/cjs/Wrappers/Provider/Contexts/AuthContext.cjs +4 -19
- package/dist/core/cjs/Wrappers/Provider/Contexts/InfoContext.cjs +4 -14
- package/dist/core/cjs/Wrappers/Provider/Provider.cjs +1 -1
- package/dist/core/cjs/hooks/api/useApi.cjs +1 -8
- package/dist/core/cjs/hooks/api/useBulkActions.cjs +1 -8
- package/dist/core/cjs/hooks/api/useForms.cjs +4 -8
- package/dist/core/cjs/hooks/auth/useAuth.cjs +1 -4
- package/dist/core/cjs/hooks/auth/useInfo.cjs +1 -4
- package/dist/core/esm/Tables/NextGenDataGrid/NextGenDataGrid.mjs +2 -3
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/Body.mjs +2 -3
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/ColumnHeaderFilterInput/ColumnHeaderFilterInput.mjs +2 -3
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/FilterModeDescription.mjs +2 -2
- package/dist/core/esm/Tables/NextGenDataGrid/hooks/useColumns/useColumns.mjs +5 -5
- package/dist/core/esm/Tables/NextGenDataGrid/utils.mjs +1 -4
- package/dist/core/esm/Wrappers/ApiProvider/ApiProvider.mjs +4 -4
- package/dist/core/esm/Wrappers/ApiProvider/Contexts/ApiContext.mjs +4 -40
- package/dist/core/esm/Wrappers/ApiProvider/Contexts/BulkActionsContext.mjs +6 -11
- package/dist/core/esm/Wrappers/ApiProvider/Contexts/FormContext.mjs +11 -38
- package/dist/core/esm/Wrappers/Provider/Contexts/AuthContext.mjs +4 -19
- package/dist/core/esm/Wrappers/Provider/Contexts/InfoContext.mjs +4 -14
- package/dist/core/esm/Wrappers/Provider/Provider.mjs +3 -3
- package/dist/core/esm/hooks/api/useApi.mjs +2 -9
- package/dist/core/esm/hooks/api/useBulkActions.mjs +2 -9
- package/dist/core/esm/hooks/api/useForms.mjs +5 -9
- package/dist/core/esm/hooks/auth/useAuth.mjs +2 -5
- package/dist/core/esm/hooks/auth/useInfo.mjs +2 -5
- package/dist/core/lib/Tables/NextGenDataGrid/hooks/useData.d.ts +1 -1
- package/dist/core/lib/Tables/NextGenDataGrid/utils.d.ts +0 -1
- package/dist/core/lib/Wrappers/ApiProvider/Contexts/ApiContext.d.ts +4 -131
- package/dist/core/lib/Wrappers/ApiProvider/Contexts/BulkActionsContext.d.ts +4 -27
- package/dist/core/lib/Wrappers/ApiProvider/Contexts/FormContext.d.ts +8 -28
- package/dist/core/lib/Wrappers/Provider/Contexts/AuthContext.d.ts +4 -28
- package/dist/core/lib/Wrappers/Provider/Contexts/InfoContext.d.ts +4 -21
- package/dist/core/lib/hooks/api/useApi.d.ts +415 -61
- package/dist/core/lib/hooks/api/useBulkActions.d.ts +25 -8
- package/dist/core/lib/hooks/api/useForms.d.ts +72 -13
- package/dist/core/lib/hooks/auth/useAuth.d.ts +80 -17
- package/dist/core/lib/hooks/auth/useInfo.d.ts +51 -9
- package/dist/jsonforms/cjs/hooks/useContextProps.cjs +1 -1
- package/dist/jsonforms/cjs/layouts/MantineCategorizationLayoutRenderer.cjs +63 -0
- package/dist/jsonforms/cjs/layouts/MantineGroupLayoutRenderer.cjs +3 -3
- package/dist/jsonforms/cjs/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
- package/dist/jsonforms/cjs/layouts/MantineVerticalLayoutRenderer.cjs +3 -3
- package/dist/jsonforms/cjs/renderers/mantineRenderers.cjs +2 -0
- package/dist/jsonforms/esm/hooks/useContextProps.mjs +1 -1
- package/dist/jsonforms/esm/layouts/MantineCategorizationLayoutRenderer.mjs +63 -0
- package/dist/jsonforms/esm/layouts/MantineGroupLayoutRenderer.mjs +3 -3
- package/dist/jsonforms/esm/layouts/MantineHotizontalLayoutRenderer.mjs +2 -2
- package/dist/jsonforms/esm/layouts/MantineVerticalLayoutRenderer.mjs +3 -3
- package/dist/jsonforms/esm/renderers/mantineRenderers.mjs +2 -0
- package/dist/jsonforms/lib/layouts/MantineCategorizationLayoutRenderer.d.ts +2 -0
- package/dist/jsonforms/lib/renderers/mantineRenderers.d.ts +3 -9
- package/dist/utils/cjs/createSafeContext/createSafeContext.cjs +17 -0
- package/dist/utils/cjs/getByPath/getByPath.cjs +4 -0
- package/dist/utils/cjs/index.cjs +6 -0
- package/dist/utils/cjs/mergeProps/mergeProps.cjs +6 -0
- package/dist/utils/esm/createSafeContext/createSafeContext.mjs +17 -0
- package/dist/utils/esm/getByPath/getByPath.mjs +4 -0
- package/dist/utils/esm/index.mjs +6 -0
- package/dist/utils/esm/mergeProps/mergeProps.mjs +6 -0
- package/dist/utils/lib/createSafeContext/createSafeContext.d.ts +14 -0
- package/dist/utils/lib/createSafeContext/index.d.ts +1 -0
- package/dist/utils/lib/getByPath/getByPath.d.ts +1 -0
- package/dist/utils/lib/getByPath/index.d.ts +1 -0
- package/dist/utils/lib/index.d.ts +3 -0
- package/dist/utils/lib/mergeProps/index.d.ts +1 -0
- package/dist/utils/lib/mergeProps/mergeProps.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,132 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* label: string,
|
|
5
|
-
* name: string,
|
|
6
|
-
* required: boolean,
|
|
7
|
-
* type: string,
|
|
8
|
-
* unique: boolean,
|
|
9
|
-
* count?: number | undefined,
|
|
10
|
-
* values?: {id: number | string, value: string}[] | undefined,
|
|
11
|
-
* }} ColumnInfo
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
|
-
* @typedef {{
|
|
15
|
-
* name: string,
|
|
16
|
-
* operator: string,
|
|
17
|
-
* }} FilterClass
|
|
18
|
-
*/
|
|
19
|
-
/**
|
|
20
|
-
* @typedef {{
|
|
21
|
-
* filters: FilterClass[]
|
|
22
|
-
* label: string
|
|
23
|
-
* schema: ColumnInfo
|
|
24
|
-
* }} Filter
|
|
25
|
-
*/
|
|
26
|
-
export const ApiContext: import('react').Context<{
|
|
27
|
-
path: string;
|
|
28
|
-
/**
|
|
29
|
-
* @type {{count: number, description_columns: Record<string, string>, ids: number[] | string[], label_columns: Record<string, string>, list_columns: string[], list_title: string, order_columns: string[], result: Record<string, any>[], path: string, queryParams: Record<string, any>} | null}
|
|
30
|
-
*/
|
|
31
|
-
data: {
|
|
32
|
-
count: number;
|
|
33
|
-
description_columns: Record<string, string>;
|
|
34
|
-
ids: number[] | string[];
|
|
35
|
-
label_columns: Record<string, string>;
|
|
36
|
-
list_columns: string[];
|
|
37
|
-
list_title: string;
|
|
38
|
-
order_columns: string[];
|
|
39
|
-
result: Record<string, any>[];
|
|
40
|
-
path: string;
|
|
41
|
-
queryParams: Record<string, any>;
|
|
42
|
-
} | null;
|
|
43
|
-
/**
|
|
44
|
-
* @type {{add_columns: ColumnInfo[], add_title: string, add_schema: Record<string, any>, add_uischema: Record<string, any>, edit_columns: ColumnInfo[], edit_title: string, edit_schema: Record<string, any>, edit_uischema: Record<string, any>, filter_options: Record<string, any>, filters: Record<string, Filter>, permissions: string[], relations: string[] | null, path: string} | null}
|
|
45
|
-
*/
|
|
46
|
-
info: {
|
|
47
|
-
add_columns: ColumnInfo[];
|
|
48
|
-
add_title: string;
|
|
49
|
-
add_schema: Record<string, any>;
|
|
50
|
-
add_uischema: Record<string, any>;
|
|
51
|
-
edit_columns: ColumnInfo[];
|
|
52
|
-
edit_title: string;
|
|
53
|
-
edit_schema: Record<string, any>;
|
|
54
|
-
edit_uischema: Record<string, any>;
|
|
55
|
-
filter_options: Record<string, any>;
|
|
56
|
-
filters: Record<string, Filter>;
|
|
57
|
-
permissions: string[];
|
|
58
|
-
relations: string[] | null;
|
|
59
|
-
path: string;
|
|
60
|
-
} | null;
|
|
61
|
-
/**
|
|
62
|
-
* @type {{columns: string[], filters: {col: string, opr: string, value: Any}[], order_column: string | undefined, order_direction: string | undefined, page: number, page_size: number, global_filter: string | undefined} | null}
|
|
63
|
-
*/
|
|
64
|
-
queryParams: {
|
|
65
|
-
columns: string[];
|
|
66
|
-
filters: {
|
|
67
|
-
col: string;
|
|
68
|
-
opr: string;
|
|
69
|
-
value: Any;
|
|
70
|
-
}[];
|
|
71
|
-
order_column: string | undefined;
|
|
72
|
-
order_direction: string | undefined;
|
|
73
|
-
page: number;
|
|
74
|
-
page_size: number;
|
|
75
|
-
global_filter: string | undefined;
|
|
76
|
-
} | null;
|
|
77
|
-
loading: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* @type {{message: string, originalError: Error} | null}
|
|
80
|
-
*/
|
|
81
|
-
error: {
|
|
82
|
-
message: string;
|
|
83
|
-
originalError: Error;
|
|
84
|
-
} | null;
|
|
85
|
-
/**
|
|
86
|
-
* @type {{data: Record<string, Record<string, any>[]>, isEnd: boolean, fetch: () => void}}
|
|
87
|
-
*/
|
|
88
|
-
streaming: {
|
|
89
|
-
data: Record<string, Record<string, any>[]>;
|
|
90
|
-
isEnd: boolean;
|
|
91
|
-
fetch: () => void;
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* @type {{all: string, actions: string}}
|
|
95
|
-
*/
|
|
96
|
-
specialKey: {
|
|
97
|
-
all: string;
|
|
98
|
-
actions: string;
|
|
99
|
-
};
|
|
100
|
-
setQueryParams: (partialQueryParams: any) => any;
|
|
101
|
-
refetch: (options: any) => Promise<any>;
|
|
102
|
-
refetchInfo: (options: any) => Promise<any>;
|
|
103
|
-
getEntry: (id: any) => Promise<{}>;
|
|
104
|
-
addEntry: (item: any) => Promise<{}>;
|
|
105
|
-
updateEntry: (id: any, item: any) => Promise<{}>;
|
|
106
|
-
deleteEntry: (id: any) => Promise<{}>;
|
|
107
|
-
download: (label: any, { export_mode, delimiter, quotechar }?: {}) => Promise<any>;
|
|
108
|
-
upload: (file: any, { delimiter, quotechar }?: {}) => Promise<{}>;
|
|
109
|
-
resetError: () => any;
|
|
1
|
+
export const ApiContextProvider: import('react').ComponentType<{
|
|
2
|
+
value: any;
|
|
3
|
+
children: any;
|
|
110
4
|
}>;
|
|
111
|
-
export
|
|
112
|
-
description: string;
|
|
113
|
-
label: string;
|
|
114
|
-
name: string;
|
|
115
|
-
required: boolean;
|
|
116
|
-
type: string;
|
|
117
|
-
unique: boolean;
|
|
118
|
-
count?: number | undefined;
|
|
119
|
-
values?: {
|
|
120
|
-
id: number | string;
|
|
121
|
-
value: string;
|
|
122
|
-
}[] | undefined;
|
|
123
|
-
};
|
|
124
|
-
export type FilterClass = {
|
|
125
|
-
name: string;
|
|
126
|
-
operator: string;
|
|
127
|
-
};
|
|
128
|
-
export type Filter = {
|
|
129
|
-
filters: FilterClass[];
|
|
130
|
-
label: string;
|
|
131
|
-
schema: ColumnInfo;
|
|
132
|
-
};
|
|
5
|
+
export const useApiProvider: (options?: SafeContextOptions) => any;
|
|
@@ -1,28 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
setSelectedIds: () => any;
|
|
5
|
-
};
|
|
6
|
-
dispatchBulkActions: (handler: any, data: any) => Promise<void>;
|
|
7
|
-
/**
|
|
8
|
-
* @type {{message: string, originalError: Error} | null}
|
|
9
|
-
*/
|
|
10
|
-
error: {
|
|
11
|
-
message: string;
|
|
12
|
-
originalError: Error;
|
|
13
|
-
} | null;
|
|
14
|
-
};
|
|
15
|
-
export const BulkActionsContext: import('react').Context<{
|
|
16
|
-
bulkActions: {
|
|
17
|
-
selectedIds: any[];
|
|
18
|
-
setSelectedIds: () => any;
|
|
19
|
-
};
|
|
20
|
-
dispatchBulkActions: (handler: any, data: any) => Promise<void>;
|
|
21
|
-
/**
|
|
22
|
-
* @type {{message: string, originalError: Error} | null}
|
|
23
|
-
*/
|
|
24
|
-
error: {
|
|
25
|
-
message: string;
|
|
26
|
-
originalError: Error;
|
|
27
|
-
} | null;
|
|
1
|
+
export const BulkActionsContextProvider: import('react').ComponentType<{
|
|
2
|
+
value: any;
|
|
3
|
+
children: any;
|
|
28
4
|
}>;
|
|
5
|
+
export const useBulkActionsProvider: (options?: SafeContextOptions) => any;
|
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
export const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
setOpened: () => never;
|
|
5
|
-
view: number;
|
|
6
|
-
getView: () => never;
|
|
7
|
-
setView: () => never;
|
|
8
|
-
state: any;
|
|
9
|
-
getState: () => never;
|
|
10
|
-
setState: () => never;
|
|
11
|
-
reset: () => never;
|
|
12
|
-
item: any;
|
|
13
|
-
getItem: () => never;
|
|
14
|
-
setItem: () => never;
|
|
1
|
+
export const FormContextAddProvider: import('react').ComponentType<{
|
|
2
|
+
value: any;
|
|
3
|
+
children: any;
|
|
15
4
|
}>;
|
|
16
|
-
export const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
view: number;
|
|
21
|
-
getView: () => never;
|
|
22
|
-
setView: () => never;
|
|
23
|
-
state: any;
|
|
24
|
-
getState: () => never;
|
|
25
|
-
setState: () => never;
|
|
26
|
-
reset: () => never;
|
|
27
|
-
item: any;
|
|
28
|
-
getItem: () => never;
|
|
29
|
-
setItem: () => never;
|
|
5
|
+
export const useFormAddProvider: (options?: SafeContextOptions) => any;
|
|
6
|
+
export const FormContextEditProvider: import('react').ComponentType<{
|
|
7
|
+
value: any;
|
|
8
|
+
children: any;
|
|
30
9
|
}>;
|
|
10
|
+
export const useFormEditProvider: (options?: SafeContextOptions) => any;
|
|
@@ -1,29 +1,5 @@
|
|
|
1
|
-
export const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
user: {
|
|
6
|
-
email: string;
|
|
7
|
-
first_name: string;
|
|
8
|
-
id: number;
|
|
9
|
-
is_active: boolean;
|
|
10
|
-
last_name: string;
|
|
11
|
-
permissions: string[];
|
|
12
|
-
roles: string[];
|
|
13
|
-
username: string;
|
|
14
|
-
} | null;
|
|
15
|
-
loading: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* @type {{message: string, originalError: Error} | null}
|
|
18
|
-
*/
|
|
19
|
-
error: {
|
|
20
|
-
message: string;
|
|
21
|
-
originalError: Error;
|
|
22
|
-
} | null;
|
|
23
|
-
signin: (username: any, password: any) => Promise<any>;
|
|
24
|
-
signout: () => Promise<any>;
|
|
25
|
-
update: (data: any) => Promise<any>;
|
|
26
|
-
resetPassword: (password: any) => Promise<any>;
|
|
27
|
-
oauth_signin: (provider: any, popup: any) => any;
|
|
28
|
-
refetch: () => Promise<any>;
|
|
1
|
+
export const AuthContextProvider: import('react').ComponentType<{
|
|
2
|
+
value: any;
|
|
3
|
+
children: any;
|
|
29
4
|
}>;
|
|
5
|
+
export const useAuthProvider: (options?: SafeContextOptions) => any;
|
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
export const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @type {{icon: string, level: string, name: string, path: string, permission_name: string, type: string}[] | null}
|
|
5
|
-
*/
|
|
6
|
-
info: {
|
|
7
|
-
icon: string;
|
|
8
|
-
level: string;
|
|
9
|
-
name: string;
|
|
10
|
-
path: string;
|
|
11
|
-
permission_name: string;
|
|
12
|
-
type: string;
|
|
13
|
-
}[] | null;
|
|
14
|
-
loading: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* @type {{message: string, originalError: Error} | null}
|
|
17
|
-
*/
|
|
18
|
-
error: {
|
|
19
|
-
message: string;
|
|
20
|
-
originalError: Error;
|
|
21
|
-
} | null;
|
|
1
|
+
export const InfoContextProvider: import('react').ComponentType<{
|
|
2
|
+
value: any;
|
|
3
|
+
children: any;
|
|
22
4
|
}>;
|
|
5
|
+
export const useInfoProvider: (options?: SafeContextOptions) => any;
|