@acuteinfo/common-base 1.0.103 → 1.0.105
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { SxProps } from "@mui/material";
|
|
2
3
|
import { RetrievalParametersProps } from "./types";
|
|
3
4
|
interface GridTableType {
|
|
4
5
|
columns: any;
|
|
@@ -37,6 +38,11 @@ interface GridTableType {
|
|
|
37
38
|
enablePdfPrint?: boolean;
|
|
38
39
|
reportTemplateCode?: string;
|
|
39
40
|
enablePivot?: boolean;
|
|
41
|
+
actions?: {
|
|
42
|
+
buttonStyle?: SxProps;
|
|
43
|
+
buttonName: ReactNode;
|
|
44
|
+
callback: (event: any, originalData: any, rows: any) => void;
|
|
45
|
+
}[];
|
|
40
46
|
}
|
|
41
47
|
export declare const GridTable: FC<GridTableType>;
|
|
42
48
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { SxProps } from "@mui/material";
|
|
1
2
|
import { currencySymbol } from "components/custom/getCurrencySymbol";
|
|
2
|
-
import { ComponentType } from "react";
|
|
3
|
+
import { ComponentType, ReactNode } from "react";
|
|
3
4
|
export interface FilterColumnType {
|
|
4
5
|
Filter?: any;
|
|
5
6
|
filterComponentType?: "valueFilter" | "valueDateFilter" | "rangeFilter" | "optionsFilter" | "multiValueFilter";
|
|
@@ -165,4 +166,12 @@ export interface ReportGridProps {
|
|
|
165
166
|
* @default false
|
|
166
167
|
*/
|
|
167
168
|
enablePivot?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Dynamic buttons to display in header of grid.
|
|
171
|
+
*/
|
|
172
|
+
actions?: {
|
|
173
|
+
buttonStyle?: SxProps;
|
|
174
|
+
buttonName: ReactNode;
|
|
175
|
+
callback: (event: any, originalData: any, rows: any) => void;
|
|
176
|
+
}[];
|
|
168
177
|
}
|