@acuteinfo/common-base 1.0.14 → 1.0.15

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.
@@ -27,6 +27,7 @@ interface AutoCompleteExtendedProps {
27
27
  disableAdornment?: boolean;
28
28
  ignoreInSubmit?: boolean;
29
29
  textFieldStyle?: SxProps;
30
+ setFieldLabel?: (dependentFields?: any, value?: any) => string | null | undefined;
30
31
  }
31
32
  type MyAutocompleteProps = Merge<AutocompleteProps<OptionsProps, true, true, true>, AutoCompleteExtendedProps>;
32
33
  export type MyAllAutocompleteProps = Merge<MyAutocompleteProps, UseFieldHookProps>;
@@ -17,6 +17,7 @@ interface MyCheckboxExtendedProps {
17
17
  GridProps?: GridProps;
18
18
  enableGrid: boolean;
19
19
  ignoreInSubmit?: boolean;
20
+ setFieldLabel?: (dependentFields?: any, value?: any) => string | null | undefined;
20
21
  }
21
22
  export type MyCheckboxAllProps = Merge<MyCheckboxMixedProps, MyCheckboxExtendedProps>;
22
23
  declare const MyCheckbox: FC<MyCheckboxAllProps>;
@@ -29,6 +29,8 @@ interface MySelectExtendedProps {
29
29
  alwaysRun?: boolean;
30
30
  touchAndValidate?: boolean;
31
31
  };
32
+ setFieldLabel?: (dependentFields?: any, value?: any) => string | null | undefined;
33
+ label?: string;
32
34
  }
33
35
  export type MySelectAllProps = Merge<MySelectProps, MySelectExtendedProps>;
34
36
  declare const MySelect: FC<MySelectAllProps>;
@@ -28,6 +28,8 @@ interface MyGridExtendedProps {
28
28
  touchAndValidate?: any;
29
29
  };
30
30
  ignoreInSubmit?: boolean;
31
+ setFieldLabel?: (dependentFields?: any, value?: any) => string | null | undefined;
32
+ label?: string;
31
33
  }
32
34
  type MyTextFieldAllProps = Merge<TextFieldProps, MyGridExtendedProps>;
33
35
  export type MyTextFieldProps = UseFieldHookProps & MyTextFieldAllProps;
@@ -1,4 +1,4 @@
1
- export declare const RemarksAPIWrapper: ({ TitleText, onActionNo, onActionYes, isRequired, isEntertoSubmit, AcceptbuttonLabelText, CanceltbuttonLabelText, isLoading, open, rows, }: {
1
+ export declare const RemarksAPIWrapper: ({ TitleText, onActionNo, onActionYes, isRequired, isEntertoSubmit, AcceptbuttonLabelText, CanceltbuttonLabelText, isLoading, open, label, defaultValue, rows, }: {
2
2
  TitleText: any;
3
3
  onActionNo: any;
4
4
  onActionYes: any;
@@ -8,5 +8,7 @@ export declare const RemarksAPIWrapper: ({ TitleText, onActionNo, onActionYes, i
8
8
  CanceltbuttonLabelText?: string | undefined;
9
9
  isLoading?: boolean | undefined;
10
10
  open?: boolean | undefined;
11
+ label?: string | undefined;
12
+ defaultValue?: string | undefined;
11
13
  rows: any;
12
14
  }) => import("react/jsx-runtime").JSX.Element;
@@ -6,6 +6,8 @@ type TMessageBoxParams = {
6
6
  message: string;
7
7
  icon?: TIcon;
8
8
  buttonNames?: TButtonName[];
9
+ defFocusBtnName?: string;
10
+ loadingBtnName?: string[];
9
11
  };
10
12
  type TPopupContextType = {
11
13
  MessageBox: (params: TMessageBoxParams) => Promise<TButtonName> | any;
@@ -1,4 +1,4 @@
1
- export declare const PopupRequestWrapper: ({ MessageTitle, Message, onClickButton, buttonNames, rows, open, loading, icon, }: {
1
+ export declare const PopupRequestWrapper: ({ MessageTitle, Message, onClickButton, buttonNames, rows, open, loading, icon, defFocusBtnName, loadingBtnName, }: {
2
2
  MessageTitle: any;
3
3
  Message: any;
4
4
  onClickButton: any;
@@ -7,4 +7,6 @@ export declare const PopupRequestWrapper: ({ MessageTitle, Message, onClickButto
7
7
  open?: boolean | undefined;
8
8
  loading?: boolean | undefined;
9
9
  icon?: string | undefined;
10
+ defFocusBtnName?: string | undefined;
11
+ loadingBtnName?: string | undefined;
10
12
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { CellComponentType } from "components/tableCellComponents";
2
- import { ReactNode } from "react";
2
+ import { CSSProperties, ReactNode } from "react";
3
3
  export interface GridColumnType {
4
4
  columnName: string;
5
5
  accessor: string;
@@ -73,6 +73,7 @@ export interface ActionTypes {
73
73
  alwaysAvailable?: boolean;
74
74
  shouldExclude?: any;
75
75
  isNodataThenShow?: boolean;
76
+ onEnterSubmit?: boolean;
76
77
  }
77
78
  export interface RenderActionType {
78
79
  actions: ActionTypes[];
@@ -80,6 +81,9 @@ export interface RenderActionType {
80
81
  selectedRows: any;
81
82
  buttonTextColor?: string;
82
83
  filteredRows?: any;
84
+ buttonBackground?: string;
85
+ style?: CSSProperties;
86
+ submitButtonRef?: any;
83
87
  }
84
88
  export interface TableActionType {
85
89
  selectedFlatRows: any;
@@ -93,6 +97,7 @@ export interface TableActionType {
93
97
  dense?: boolean;
94
98
  handleClose?: any;
95
99
  authState?: any;
100
+ submitButtonRef?: any;
96
101
  }
97
102
  export interface GridContextType {
98
103
  gridCode: any;
@@ -1,5 +1,6 @@
1
- export declare const GlobalFilter: ({ preGlobalFilteredRows, globalFilter, setGlobalFilter, }: {
1
+ export declare const GlobalFilter: ({ preGlobalFilteredRows, globalFilter, setGlobalFilter, searchPlaceholder, }: {
2
2
  preGlobalFilteredRows: any;
3
3
  globalFilter: any;
4
4
  setGlobalFilter: any;
5
+ searchPlaceholder: any;
5
6
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare const DataGrid: ({ label, dense, columns, data, loading, getRowId, defaultColumn, allowColumnReordering, disableSorting, defaultHiddenColumns, defaultSortOrder, defaultGroupBy, multipleActions, singleActions, doubleClickAction, alwaysAvailableAction, setGridAction, updateGridData, hideFooter, hideHeader, disableGlobalFilter, disableGroupBy, disableLoader, containerHeight, gridProps, pageSizes, defaultPageSize, enablePagination, allowRowSelection, hideNoDataFound, refetchData, hiddenFlag, autoRefreshInterval, allowFilter, filterMeta, allowColumnHiding, defaultFilter, isCusrsorFocused, onButtonActionHandel, authState, }: {
1
+ export declare const DataGrid: ({ label, dense, columns, data, loading, getRowId, defaultColumn, allowColumnReordering, disableSorting, defaultHiddenColumns, defaultSortOrder, defaultGroupBy, multipleActions, singleActions, doubleClickAction, alwaysAvailableAction, setGridAction, updateGridData, hideFooter, hideHeader, disableGlobalFilter, disableGroupBy, disableLoader, containerHeight, gridProps, pageSizes, defaultPageSize, enablePagination, allowRowSelection, hideNoDataFound, refetchData, hiddenFlag, autoRefreshInterval, allowFilter, filterMeta, allowColumnHiding, defaultFilter, isCusrsorFocused, onButtonActionHandel, authState, controlsAtBottom, actionContextAtBottom, headerToolbarStyle, disableMultipleRowSelect, columnHeaderStyle, variant, defaultSelectedRowId, footerNote, paginationText, searchPlaceholder, enableExport }: {
2
2
  label: any;
3
3
  dense: any;
4
4
  columns: any;
@@ -39,4 +39,15 @@ export declare const DataGrid: ({ label, dense, columns, data, loading, getRowId
39
39
  isCusrsorFocused: any;
40
40
  onButtonActionHandel: any;
41
41
  authState: any;
42
+ controlsAtBottom: any;
43
+ actionContextAtBottom: any;
44
+ headerToolbarStyle: any;
45
+ disableMultipleRowSelect: any;
46
+ columnHeaderStyle: any;
47
+ variant: any;
48
+ defaultSelectedRowId: any;
49
+ footerNote: any;
50
+ paginationText: any;
51
+ searchPlaceholder: any;
52
+ enableExport: any;
42
53
  }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"outlinedClass">;
@@ -1,3 +1,4 @@
1
+ import { SxProps } from "@mui/material";
1
2
  import { ActionTypes } from "components/dataTable/types";
2
3
  import { CellComponentType } from "components/tableCellComponents";
3
4
  import { AuthStateType } from "components/types";
@@ -135,6 +136,45 @@ export interface GridWrapperPropTypes {
135
136
  autoRefreshInterval?: any;
136
137
  onClickActionEvent?: any;
137
138
  authState?: AuthStateType;
139
+ /**
140
+ * Sets alwaysAvailable action button at bottom of grid.
141
+ * @default false
142
+ */
143
+ controlsAtBottom?: boolean;
144
+ /**
145
+ * Sets action buttons in context menu of grid row at bottom of grid.
146
+ * @default false
147
+ */
148
+ actionContextAtBottom?: boolean;
149
+ /**
150
+ * Define styling for grid header toolbar.
151
+ * - Accepts Mui's `sx` properties.
152
+ */
153
+ headerToolbarStyle?: SxProps;
154
+ /**
155
+ * Disables multiple row selection on grid
156
+ * @default false
157
+ */
158
+ disableMultipleRowSelect?: boolean;
159
+ /**
160
+ * Defined stylined for grid column header.
161
+ * Accepts Mui's `sx` properties.
162
+ */
163
+ columnHeaderStyle?: SxProps;
164
+ /**
165
+ * Defines different types of grid styles
166
+ * @default "standard"
167
+ */
168
+ variant?: "standard" | "contained" | "outlined";
169
+ /**
170
+ * Row Id to be selected by default
171
+ */
172
+ defaultSelectedRowId?: string;
173
+ /**
174
+ * Show export button for grid data export
175
+ * @default false
176
+ */
177
+ enableExport?: boolean;
138
178
  }
139
179
  export interface GridYupSchemaMetaDataType {
140
180
  type: "string" | "number" | "boolean" | "date";
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "form" | "label" | "submit" | "subTitle" | "tabsSubmitBtn" | "backBtn" | "buttonProgress" | "buttonWrapper" | "stepper" | "stepperLabel" | "formControlLabelSpacer">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "form" | "label" | "submit" | "stepper" | "subTitle" | "tabsSubmitBtn" | "backBtn" | "buttonProgress" | "buttonWrapper" | "stepperLabel" | "formControlLabelSpacer">;
@@ -1,9 +1,9 @@
1
- export declare const FooterCell: ({ rows, column: { id: columnName, isNumberTotal, isDisplayTotal, currencyRefColumn, isCurrencyCode, }, }: {
1
+ export declare const FooterCell: ({ rows, column: { id: columnName, isTotalWithoutCurrency, isTotalWithCurrency, currencyRefColumn, isCurrencyCode, }, }: {
2
2
  rows: any;
3
3
  column: {
4
4
  id: any;
5
- isNumberTotal?: boolean | undefined;
6
- isDisplayTotal?: boolean | undefined;
5
+ isTotalWithoutCurrency?: boolean | undefined;
6
+ isTotalWithCurrency?: boolean | undefined;
7
7
  currencyRefColumn: any;
8
8
  isCurrencyCode: any;
9
9
  };
@@ -5,4 +5,5 @@ export * from "./dateCell";
5
5
  export * from "./numberCell";
6
6
  export * from "./numberFooterCell";
7
7
  export * from "./dateTimeCell";
8
+ export * from "./timeCell";
8
9
  export * from "../../tableCellComponents/ButtonRowCell";
@@ -0,0 +1 @@
1
+ export declare const TimeCell: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -35,6 +35,7 @@ interface GridTableType {
35
35
  authState?: AuthStateType;
36
36
  retrievalComponent?: RetrievalParametersProps;
37
37
  openDrawerFilter?: boolean;
38
+ onDoubleClickAction?: Function;
38
39
  }
39
40
  export declare const GridTable: FC<GridTableType>;
40
41
  export {};
@@ -15,3 +15,8 @@ export declare const CreateDetailsRequestData: (reqData: any) => {
15
15
  };
16
16
  export declare const ObjectMappingKeys: (data: any, ...keys: any[]) => any;
17
17
  export declare const StringtoUnicode: (str: any) => any;
18
+ export declare const ProcessDetailsData: (newData: any, oldData: any) => {
19
+ isNewRow: any[];
20
+ isDeleteRow: any[];
21
+ isUpdatedRow: any[];
22
+ };
@@ -21,5 +21,14 @@ export declare const transformDetailDataForDML: (input1: any, input2: any, keysT
21
21
  isUpdatedRow: any[];
22
22
  isDeleteRow: any[];
23
23
  };
24
+ /**
25
+ * Returns date or string by comparing with various date formats
26
+ * @param dateString date object or date string
27
+ * @param isStringRequired if true the dateString is sent as is. By default parsed to Date.
28
+ * @param requiredFormat array of date formats to compare with.
29
+ * @returns string | Date | any
30
+ */
24
31
  export declare const getParsedDate: (dateString: string | Date, isStringRequired?: boolean, requiredFormat?: string[]) => string | Date | any;
25
32
  export declare const uncompressApiResponse: (base64Data: any) => any;
33
+ export declare const getPadAccountNumber: (accountNo: any, optionData: any) => any;
34
+ export declare const getDependetFieldDataArrayField: (inputData: any) => {};