@smart-factor/gem-ui-components 0.0.123 → 0.0.125
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/components/TableComponents/ContextMenu/ContextMenuItem.d.ts +1 -0
- package/dist/components/TableComponents/TableCustomToolbar/TableCustomToolbar.d.ts +1 -0
- package/dist/components/TableComponents/TableExportButton/TableExportButton.d.ts +1 -0
- package/dist/components/TableComponents/TableWithPagination/TableWithPagination.d.ts +1 -1
- package/dist/components/TableComponents/TableWithPagination/types.d.ts +1 -0
- package/dist/main.js +622 -614
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MenuItemProps } from '@mui/material';
|
|
2
2
|
type ContextMenuItemLinkProps = MenuItemProps & {
|
|
3
3
|
to: string;
|
|
4
|
+
onClick?: () => void;
|
|
4
5
|
};
|
|
5
6
|
type ContextMenuItemProps = MenuItemProps | ContextMenuItemLinkProps;
|
|
6
7
|
export declare function ContextMenuItem(props: ContextMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,7 @@ interface TableCustomToolbarProps {
|
|
|
4
4
|
gridApiRef: React.MutableRefObject<GridApiPro>;
|
|
5
5
|
exportDataAsExcel?: (gridApiRef: React.MutableRefObject<GridApiPro>) => void;
|
|
6
6
|
isFilterActive: boolean;
|
|
7
|
+
onExport?: (type: 'CSV' | 'EXCEL' | 'PRINT') => void;
|
|
7
8
|
}
|
|
8
9
|
export declare const TableCustomToolbar: FC<TableCustomToolbarProps>;
|
|
9
10
|
export {};
|
|
@@ -3,6 +3,7 @@ import { GridApiPro } from '@mui/x-data-grid-pro';
|
|
|
3
3
|
interface TableExportButtonProps {
|
|
4
4
|
gridApiRef: React.MutableRefObject<GridApiPro>;
|
|
5
5
|
exportDataAsExcel?: (gridApiRef: React.MutableRefObject<GridApiPro>) => void;
|
|
6
|
+
onExport?: (type: 'CSV' | 'EXCEL' | 'PRINT') => void;
|
|
6
7
|
}
|
|
7
8
|
export declare const TableExportButton: FC<TableExportButtonProps>;
|
|
8
9
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
2
|
import { TableWithPaginationProps } from './types';
|
|
3
|
-
export declare const TableWithPagination: <T extends GridValidRowModel>({ rowsData, paginationAndSortState, setPaginationAndSortState, isLoading, columns, offset, tableKey, filterModel, onFilterModelChange, pinnedColumns, exportDataAsExcel, showPaginationFirstAndLastButtons, getRowId, getDetailPanelContent, getDetailPanelHeight, }: TableWithPaginationProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const TableWithPagination: <T extends GridValidRowModel>({ rowsData, paginationAndSortState, setPaginationAndSortState, isLoading, columns, offset, tableKey, filterModel, onFilterModelChange, pinnedColumns, exportDataAsExcel, showPaginationFirstAndLastButtons, getRowId, getDetailPanelContent, getDetailPanelHeight, onExport, }: TableWithPaginationProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -46,6 +46,7 @@ export interface TableWithPaginationProps<T extends GridValidRowModel> {
|
|
|
46
46
|
filterModel?: GridFilterModel;
|
|
47
47
|
onFilterModelChange?: (model: GridFilterModel, details: GridCallbackDetails<'filter'>) => void;
|
|
48
48
|
exportDataAsExcel?: (gridApiRef: React.MutableRefObject<GridApiPro>) => void;
|
|
49
|
+
onExport?: (type: 'CSV' | 'EXCEL' | 'PRINT') => void;
|
|
49
50
|
showPaginationFirstAndLastButtons?: boolean;
|
|
50
51
|
getRowId?: (row: T) => string;
|
|
51
52
|
getDetailPanelContent?: (params: GridRowParams<T>) => React.ReactNode;
|