infinity-forge 0.19.6 → 0.19.7
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.
|
@@ -40,23 +40,25 @@ type QueryTable<M = any> = {
|
|
|
40
40
|
requireUser?: boolean;
|
|
41
41
|
dynamicFiltersFromApi?: boolean;
|
|
42
42
|
};
|
|
43
|
-
type
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
};
|
|
57
|
-
text?: string;
|
|
43
|
+
type TableActionCreate<T = any> = {
|
|
44
|
+
link?: {
|
|
45
|
+
href: string;
|
|
46
|
+
};
|
|
47
|
+
text?: string;
|
|
48
|
+
icon?: IconsNames;
|
|
49
|
+
} & DynamicFormHandlerProps<T>;
|
|
50
|
+
type TableActionEdit<T = any> = {
|
|
51
|
+
link?: {
|
|
52
|
+
href: (table: {
|
|
53
|
+
[key in keyof T]: string;
|
|
54
|
+
}) => string;
|
|
55
|
+
text: string;
|
|
58
56
|
icon?: IconsNames;
|
|
59
|
-
}
|
|
57
|
+
};
|
|
58
|
+
} & DynamicFormHandlerProps<T>;
|
|
59
|
+
type ActionsTable<T = any> = {
|
|
60
|
+
edit?: TableActionEdit<T>;
|
|
61
|
+
create?: TableActionCreate<T>;
|
|
60
62
|
delete?: (table: {
|
|
61
63
|
[key in keyof T]: T[key];
|
|
62
64
|
}) => void;
|
|
@@ -73,4 +75,4 @@ interface IUseTableProps<T = any, M = any> {
|
|
|
73
75
|
configs: IConfigurationsTable;
|
|
74
76
|
columnsConfiguration: ColumnsConfiguration<T>;
|
|
75
77
|
}
|
|
76
|
-
export type { Column, QueryTable, ActionsTable, IParamsTable, IUseTableProps, IConfigurationsTable, ColumnsConfiguration, };
|
|
78
|
+
export type { Column, QueryTable, ActionsTable, IParamsTable, IUseTableProps, TableActionEdit, TableActionCreate, IConfigurationsTable, ColumnsConfiguration, };
|