@espresso-lab/mantine-data-table 1.9.41 → 1.9.43
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/DataTable/DataTableInner.d.ts +6 -1
- package/dist/Hooks/useApi.d.ts +1 -1
- package/dist/index.es.js +2570 -2565
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +9 -9
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -86,6 +86,11 @@ export interface DataTableProps<T extends BaseEntity> {
|
|
|
86
86
|
onRecordIdsChange: (recordIds: string[]) => void;
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
+
onRowClick?: (params: {
|
|
90
|
+
record: T;
|
|
91
|
+
index: number;
|
|
92
|
+
event: React.MouseEvent;
|
|
93
|
+
}) => void;
|
|
89
94
|
}
|
|
90
|
-
export declare function DataTableInner<T extends BaseEntity>({ title, queryKey, connectedQueryKeys, apiPath, buttons, fields, selection, pagination, filters, actions, steps, defaultSort, onSortChange, createButtonText, queryParams, tabs, defaultTab, activeTab: controlledActiveTab, onActiveTabChange, canUpdate, canDelete, showRefresh, rowExpansion, }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
95
|
+
export declare function DataTableInner<T extends BaseEntity>({ title, queryKey, connectedQueryKeys, apiPath, buttons, fields, selection, pagination, filters, actions, steps, defaultSort, onSortChange, createButtonText, queryParams, tabs, defaultTab, activeTab: controlledActiveTab, onActiveTabChange, canUpdate, canDelete, showRefresh, rowExpansion, onRowClick, }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
91
96
|
export {};
|
package/dist/Hooks/useApi.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ export declare function getAll<T extends BaseEntity>(path: string): Promise<T[]>
|
|
|
112
112
|
export declare function getOne<T extends BaseEntity>(path: string, id: string | number): Promise<T>;
|
|
113
113
|
export declare function deleteOne(path: string, id: string | number): Promise<void>;
|
|
114
114
|
export declare function createOne<C, T extends BaseEntity>(path: string, item: C): Promise<T>;
|
|
115
|
-
export declare function api<R, U>(method: "GET" | "POST" | "PUT" | "DELETE", path: string, payload?: U): Promise<R>;
|
|
115
|
+
export declare function api<R, U>(method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH", path: string, payload?: U): Promise<R>;
|
|
116
116
|
export declare function updateOne<T extends BaseEntity>(path: string, item: AtLeast<T, "id">): Promise<T>;
|
|
117
117
|
export declare function useGetOne<T extends BaseEntity>(apiPath: string, queryKey: Array<string | number>, id?: string | number): import('@tanstack/react-query').UseQueryResult<import('@tanstack/query-core').NoInfer<T>, Error>;
|
|
118
118
|
export declare function useGetAll<T extends BaseEntity>(apiPath: string, queryKey: Array<string | number>, enabled?: boolean): import('@tanstack/react-query').UseQueryResult<T[], Error>;
|