@acuteinfo/common-base 1.0.21 → 1.0.22

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,4 @@
1
1
  /// <reference types="react" />
2
2
  export declare const StickyTableHead: import("react").JSXElementConstructor<Omit<import("@mui/material/TableHead").TableHeadOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & {
3
3
  ref?: ((instance: HTMLTableSectionElement | null) => void) | import("react").RefObject<HTMLTableSectionElement> | null | undefined;
4
- }, "children" | "style" | "className" | "classes" | "sx">, "classes"> & import("@mui/styles").StyledComponentProps<"root"> & object>;
4
+ }, "className" | "style" | "classes" | "children" | "sx">, "classes"> & import("@mui/styles").StyledComponentProps<"root"> & object>;
@@ -4,7 +4,7 @@ export declare const attachCellComponentsToMetaData: (columns: GridColumnType[])
4
4
  columnName: string;
5
5
  accessor: string;
6
6
  sequence: number;
7
- alignment?: "left" | "right" | "center" | undefined;
7
+ alignment?: "center" | "left" | "right" | undefined;
8
8
  TableCellProps?: any;
9
9
  disableSortBy?: boolean | undefined;
10
10
  width?: number | undefined;
@@ -4,7 +4,7 @@ export declare const sortColumnsBySequence: (columns: GridColumnType[]) => {
4
4
  accessor: string;
5
5
  componentType: import("../../tableCellComponents").CellComponentType;
6
6
  Cell?: any;
7
- alignment?: "left" | "right" | "center" | undefined;
7
+ alignment?: "center" | "left" | "right" | undefined;
8
8
  TableCellProps?: any;
9
9
  disableSortBy?: boolean | undefined;
10
10
  width?: number | undefined;
@@ -7,7 +7,7 @@ export declare const attachcombinedValidationFns: (columns: GridColumnType[]) =>
7
7
  sequence: number;
8
8
  componentType: import("../../tableCellComponents").CellComponentType;
9
9
  Cell?: any;
10
- alignment?: "left" | "right" | "center" | undefined;
10
+ alignment?: "center" | "left" | "right" | undefined;
11
11
  TableCellProps?: any;
12
12
  width?: number | undefined;
13
13
  maxWidth?: number | undefined;
@@ -6,7 +6,7 @@ export declare const attachYupSchemaValidator: (columns: GridColumnType[]) => {
6
6
  sequence: number;
7
7
  componentType: import("../../tableCellComponents").CellComponentType;
8
8
  Cell?: any;
9
- alignment?: "left" | "right" | "center" | undefined;
9
+ alignment?: "center" | "left" | "right" | undefined;
10
10
  TableCellProps?: any;
11
11
  width?: number | undefined;
12
12
  maxWidth?: number | undefined;
@@ -7,7 +7,7 @@ export interface DetailsGridWithHeaderArguType {
7
7
  data: any;
8
8
  HeaderMetaData: FilterFormMetaType;
9
9
  HeaderData: any;
10
- ClickEventManage: Function;
10
+ ClickEventManage: (data: any, visibleColumn: any) => void;
11
11
  isLoading?: boolean;
12
12
  isError?: boolean;
13
13
  ErrorMessage?: string;
@@ -19,7 +19,7 @@ export interface DetailsGridWithHeaderArguType {
19
19
  refID?: any;
20
20
  onSubmit?: Function;
21
21
  children?: any;
22
- submitSecondAction?: any;
22
+ submitSecondAction?: (data: any, visibleColumn: any) => void;
23
23
  submitSecondButtonName?: string;
24
24
  submitSecondButtonHide?: boolean;
25
25
  submitSecondLoading?: boolean;
@@ -1,2 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare const FormComponentView: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<any>>;
2
+ import { FormComponentViewProps } from "./type";
3
+ export declare const FormComponentView: import("react").ForwardRefExoticComponent<FormComponentViewProps & import("react").RefAttributes<any>>;
@@ -1,3 +1,4 @@
1
+ import { SxProps } from "@mui/material";
1
2
  import { OptionsProps, OptionsFn } from "components/common/types";
2
3
  import { NumericFormatProps } from "react-number-format";
3
4
  export interface FiltergridConfig {
@@ -50,3 +51,23 @@ export interface FilterFormMetaType {
50
51
  initialData?: any;
51
52
  initialVisibleColumnData?: any;
52
53
  }
54
+ export interface FormComponentViewProps {
55
+ finalMetaData: FilterFormMetaType;
56
+ onAction: (data: any, visibleColumn: any) => void;
57
+ loading: boolean;
58
+ data: any;
59
+ submitSecondButtonHide?: boolean;
60
+ submitSecondButtonName?: string;
61
+ submitSecondLoading?: boolean;
62
+ submitSecondAction?: (data: any, visibleColumn: any) => void;
63
+ submitSecondValidtion?: boolean;
64
+ onFieldAction?: (name: string, value: any) => void;
65
+ propStyles?: {
66
+ titleStyle?: SxProps;
67
+ toolbarStyles?: SxProps;
68
+ IconButtonStyle?: {
69
+ variant: "default" | "error" | "info" | "inherit" | "primary" | "secondary" | "success" | "warning";
70
+ };
71
+ paperStyle?: SxProps;
72
+ };
73
+ }
@@ -80,6 +80,10 @@ export interface ReportColumnsType {
80
80
  * Set true to hide column
81
81
  */
82
82
  isHiddenColumn?: boolean;
83
+ isDisplayValueTotal?: boolean;
84
+ DisplayValueLabel?: {
85
+ [key: string]: any;
86
+ };
83
87
  }
84
88
  export interface ReportFilterProps {
85
89
  accessor: string;