tp-react-elements-dev 1.6.2 → 1.6.3
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function handleDownloadExcelV2(data: any[], fileName: string, ColumnHeaders: any[], selectedColumns?: any[]): void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Theme } from "@emotion/react";
|
|
3
|
+
import { SxProps } from "@mui/material";
|
|
4
|
+
import { MRT_ColumnDef, MRT_TableOptions } from "material-react-table";
|
|
5
|
+
interface MaterialReactTableComponentContainerProps<TData extends Record<string, any>> {
|
|
6
|
+
rows: TData[];
|
|
7
|
+
columns: MRT_ColumnDef<TData>[];
|
|
8
|
+
name: string;
|
|
9
|
+
height?: string;
|
|
10
|
+
sx?: SxProps<Theme>;
|
|
11
|
+
fields?: Omit<MRT_TableOptions<TData>, "data" | "columns"> | any;
|
|
12
|
+
showSkeletons?: boolean;
|
|
13
|
+
headerPreferences?: boolean;
|
|
14
|
+
enableBottomToolbar?: boolean;
|
|
15
|
+
showColumnFilters?: boolean;
|
|
16
|
+
noRecordsMessage?: string;
|
|
17
|
+
enableColumnRefresh?: boolean;
|
|
18
|
+
enableExcelDownload?: boolean;
|
|
19
|
+
enableRowSelection?: boolean;
|
|
20
|
+
ExcelHideColumns?: any[];
|
|
21
|
+
columnVisibilityOptions?: any;
|
|
22
|
+
selectAllText?: string;
|
|
23
|
+
setRowsSelected?: (values: any) => void;
|
|
24
|
+
setTableInstance?: (values: any) => void;
|
|
25
|
+
toolBarComponentProps?: JSX.Element;
|
|
26
|
+
enableStickyFooter?: Boolean;
|
|
27
|
+
ExcelDownloadFooterData?: any | null;
|
|
28
|
+
}
|
|
29
|
+
declare const MaterialReactTableComponentContainer: <TData extends Record<string, any>>({ rows, columns, name, sx, height, showSkeletons, headerPreferences, enableBottomToolbar, showColumnFilters, noRecordsMessage, enableColumnRefresh, enableRowSelection, enableExcelDownload, enableStickyFooter, ExcelHideColumns, columnVisibilityOptions, selectAllText, setRowsSelected, setTableInstance, toolBarComponentProps, ExcelDownloadFooterData, ...fields }: MaterialReactTableComponentContainerProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export default MaterialReactTableComponentContainer;
|
package/dist/index.esm.js
CHANGED
|
@@ -52824,7 +52824,7 @@ const SingleSelectSearchApi = ({ props }) => {
|
|
|
52824
52824
|
});
|
|
52825
52825
|
return () => controller.abort();
|
|
52826
52826
|
// }
|
|
52827
|
-
}, [searchValue, props.getValues(props.item.name), props.item.ApiInstance, (_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.autoFIll]);
|
|
52827
|
+
}, [searchValue, props.getValues(props.item.name), props.item.ApiInstance, (_a = props === null || props === void 0 ? void 0 : props.item) === null || _a === void 0 ? void 0 : _a.autoFIll, props.item.AxiosInstance]);
|
|
52828
52828
|
useEffect(() => {
|
|
52829
52829
|
var _a;
|
|
52830
52830
|
if ((_a = props.item) === null || _a === void 0 ? void 0 : _a.ApiInstanceReferal) {
|