@acuteinfo/common-base 1.2.74 → 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 ? {
@@ -1 +1 @@
1
- export declare const DateCell: (props: any) => string | import("react/jsx-runtime").JSX.Element;
1
+ export declare const DateCell: (props: any) => string | import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,5 @@
1
- export declare const FooterCell: ({ rows, column: { id: columnName, isTotalWithoutCurrency, isTotalWithCurrency, currencyRefColumn, isCurrencyCode, currencySymbolPosition, }, loading, }: {
1
+ export declare const FooterCell: ({ rows, column: { id: columnName, isTotalWithoutCurrency, isTotalWithCurrency, currencyRefColumn, isCurrencyCode, currencySymbolPosition, }, loading, data, ...others }: {
2
+ [x: string]: any;
2
3
  rows: any;
3
4
  column: {
4
5
  id: any;
@@ -9,6 +10,7 @@ export declare const FooterCell: ({ rows, column: { id: columnName, isTotalWitho
9
10
  currencySymbolPosition?: string | undefined;
10
11
  };
11
12
  loading: any;
13
+ data: any;
12
14
  }) => string;
13
15
  export declare const FooterCell1: ({ rows, column: { id: columnName, isDisplayValueTotal, currencyRefColumn, isCurrencyCode, DisplayValueLabel, }, }: {
14
16
  rows: any;
@@ -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;
@@ -58,6 +58,7 @@ interface GridTableType {
58
58
  disableFilters?: boolean;
59
59
  headerToolbarStyle?: SxProps;
60
60
  enableEnterToFocus?: boolean;
61
+ expandAllGroupedRows?: boolean;
61
62
  }
62
63
  export declare const GridTable: FC<GridTableType>;
63
64
  export {};
@@ -101,6 +101,9 @@ export interface ReportColumnsType {
101
101
  * @default false
102
102
  */
103
103
  disableFilters?: boolean;
104
+ canUngroup?: boolean;
105
+ isGroupSum?: boolean;
106
+ customAggregation?: (rows: any, config: any) => string;
104
107
  }
105
108
  export interface ReportFilterProps {
106
109
  accessor: string;
@@ -149,6 +152,7 @@ export interface ReportMetaDataType {
149
152
  * @default false
150
153
  */
151
154
  disableFilters?: boolean;
155
+ expandAllGroupedRows?: boolean;
152
156
  }
153
157
  export interface ReportGridProps {
154
158
  metaData: any;
@@ -191,7 +195,7 @@ export interface ReportGridProps {
191
195
  actions?: {
192
196
  buttonStyle?: SxProps;
193
197
  buttonName: ReactNode;
194
- callback: (event: any, originalData: any, rows: any) => void;
198
+ callback: (event: any, originalData: any, rows: any, nonGroupedRawRows: any) => void;
195
199
  }[];
196
200
  /**
197
201
  * The callback function to extract out current report data.
@@ -211,4 +215,5 @@ export interface ReportGridProps {
211
215
  headerToolbarStyle?: SxProps;
212
216
  enableEnterToFocus?: boolean;
213
217
  focusScopeId?: string;
218
+ expandAllGroupedRows?: boolean;
214
219
  }