@acuteinfo/common-base 1.2.75 → 1.2.76
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,9 +1,16 @@
|
|
|
1
1
|
import { IReactToPrintProps } from "react-to-print";
|
|
2
2
|
export interface DefaultChieldData {
|
|
3
3
|
buttonText?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Enable keyboard shortcut (Alt+S) when button text contains "save"
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
8
|
+
enableShortcut?: boolean;
|
|
9
|
+
shortcut?: "alt" | "ctrl" | "shift" | "meta";
|
|
10
|
+
eventKey?: string;
|
|
4
11
|
}
|
|
5
12
|
type PrintAllProps = Merge<DefaultChieldData, IReactToPrintProps>;
|
|
6
|
-
export declare const PrintButton: ({ content, buttonText, ...other }: PrintAllProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const PrintButton: ({ content, buttonText, enableShortcut, shortcut, eventKey, ...other }: PrintAllProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
14
|
export type Merge<A, B> = {
|
|
8
15
|
[K in keyof A]: K extends keyof B ? B[K] : A[K];
|
|
9
16
|
} & B extends infer O ? {
|
|
@@ -49,7 +49,7 @@ interface GridTableType {
|
|
|
49
49
|
actions?: {
|
|
50
50
|
buttonStyle?: SxProps;
|
|
51
51
|
buttonName: ReactNode;
|
|
52
|
-
callback: (event: any, originalData: any, rows: any) => void;
|
|
52
|
+
callback: (event: any, originalData: any, rows: any, nonGroupedRawRows: any) => void;
|
|
53
53
|
enableShortcut?: boolean;
|
|
54
54
|
shortcut?: "alt" | "ctrl" | "shift" | "meta";
|
|
55
55
|
eventKey?: string;
|
|
@@ -195,7 +195,7 @@ export interface ReportGridProps {
|
|
|
195
195
|
actions?: {
|
|
196
196
|
buttonStyle?: SxProps;
|
|
197
197
|
buttonName: ReactNode;
|
|
198
|
-
callback: (event: any, originalData: any, rows: any) => void;
|
|
198
|
+
callback: (event: any, originalData: any, rows: any, nonGroupedRawRows: any) => void;
|
|
199
199
|
}[];
|
|
200
200
|
/**
|
|
201
201
|
* The callback function to extract out current report data.
|