@acuteinfo/common-base 1.0.14 → 1.0.16

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.
Files changed (38) hide show
  1. package/dist/components/common/autocomplete/autocomplete.d.ts +1 -0
  2. package/dist/components/common/checkbox/checkbox.d.ts +1 -0
  3. package/dist/components/common/select/select.d.ts +2 -0
  4. package/dist/components/common/textField/textField.d.ts +2 -0
  5. package/dist/components/context/propertiesConfig/customProperties.d.ts +6 -1
  6. package/dist/components/custom/Remarks.d.ts +3 -1
  7. package/dist/components/custom/popupContext.d.ts +2 -0
  8. package/dist/components/custom/popupReqest.d.ts +3 -1
  9. package/dist/components/dataTable/columnVisibility.d.ts +4 -1
  10. package/dist/components/dataTable/types.d.ts +34 -2
  11. package/dist/components/dataTable/utils/attachAlignmentProps.d.ts +20 -2
  12. package/dist/components/dataTable/utils/attachCellComponentsToMetaData.d.ts +1 -1
  13. package/dist/components/dataTable/utils/sortColumnBySequence.d.ts +1 -1
  14. package/dist/components/dataTableStatic/components/filters/globalFilter.d.ts +2 -1
  15. package/dist/components/dataTableStatic/grid.d.ts +12 -1
  16. package/dist/components/dataTableStatic/style.d.ts +1 -0
  17. package/dist/components/dataTableStatic/types.d.ts +48 -2
  18. package/dist/components/dataTableStatic/utils/attachCombineValidationFns.d.ts +4 -2
  19. package/dist/components/dataTableStatic/utils/attachYupSchema.d.ts +4 -2
  20. package/dist/components/dynamicForm/formWrapper.d.ts +1 -2
  21. package/dist/components/dynamicForm/simpleForm.d.ts +6 -2
  22. package/dist/components/dynamicForm/stepperForm/style.d.ts +8 -0
  23. package/dist/components/dynamicForm/style.d.ts +1 -1
  24. package/dist/components/dynamicForm/types.d.ts +7 -3
  25. package/dist/components/dynamicForm/typesFields.d.ts +8 -0
  26. package/dist/components/dynamicForm/utils/extendedFieldTypes.d.ts +2 -1
  27. package/dist/components/report/components/footerCell.d.ts +3 -3
  28. package/dist/components/report/components/index.d.ts +1 -0
  29. package/dist/components/report/components/timeCell.d.ts +1 -0
  30. package/dist/components/report/gridTable.d.ts +1 -0
  31. package/dist/components/utils/checkObjectAllKeyisEmpty.d.ts +5 -0
  32. package/dist/components/utils/utilFunctions/function.d.ts +9 -0
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.js +1 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/packages/form/src/field.d.ts +1 -1
  37. package/dist/packages/form/src/types.d.ts +2 -2
  38. package/package.json +1 -1
@@ -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,6 +1,7 @@
1
1
  import { FC, PropsWithChildren } from "react";
2
2
  import { currencySymbol } from "../../custom/getCurrencySymbol";
3
- interface CustomProperties {
3
+ import { ExtendedFieldMetaDataTypeOptional } from "../../dynamicForm";
4
+ export interface CustomProperties {
4
5
  /**
5
6
  * display _accountNumber field as single field or separated
6
7
  * @default "separated"
@@ -48,6 +49,10 @@ interface CustomProperties {
48
49
  * @default "single"
49
50
  */
50
51
  denoTableType?: "single" | "dual";
52
+ /**
53
+ * Accepts Field MetaData object for additional form fields
54
+ */
55
+ customExtendedTypes?: ExtendedFieldMetaDataTypeOptional;
51
56
  }
52
57
  interface ContextProps {
53
58
  config?: CustomProperties;
@@ -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,8 @@
1
- export declare const ColumnVisibility: ({ visibleColumns, defaultHiddenColumns, classes, }: {
1
+ export declare const ColumnVisibility: ({ visibleColumns, defaultHiddenColumns, classes, IconButtonStyle, }: {
2
2
  visibleColumns: any;
3
3
  defaultHiddenColumns: any;
4
4
  classes: any;
5
+ IconButtonStyle?: {
6
+ variant: null;
7
+ } | undefined;
5
8
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,13 @@
1
1
  import { CellComponentType } from "components/tableCellComponents";
2
- import { ReactNode } from "react";
2
+ import { CSSProperties, ReactNode } from "react";
3
+ import * as Icons from "@mui/icons-material";
3
4
  export interface GridColumnType {
4
5
  columnName: string;
5
6
  accessor: string;
6
7
  sequence: number;
7
8
  componentType: CellComponentType;
8
9
  Cell?: any;
9
- alignment?: string;
10
+ alignment?: "left" | "right" | "center";
10
11
  TableCellProps?: any;
11
12
  disableSortBy?: boolean;
12
13
  width?: number;
@@ -73,6 +74,33 @@ export interface ActionTypes {
73
74
  alwaysAvailable?: boolean;
74
75
  shouldExclude?: any;
75
76
  isNodataThenShow?: boolean;
77
+ /**
78
+ * Action to be triggered on press Enter.
79
+ * @default false
80
+ */
81
+ onEnterSubmit?: boolean;
82
+ /**
83
+ * Accepts Mui's Icon name to show icon at the start of the button
84
+ */
85
+ startsIcon?: keyof typeof Icons;
86
+ /**
87
+ * Accepts Mui's Icon name to show icon at the end of the button
88
+ */
89
+ endsIcon?: keyof typeof Icons;
90
+ /**
91
+ * Accepts css transform value
92
+ *
93
+ * E.g. rotate(45deg), scale(1.5)
94
+ */
95
+ rotateIcon?: string;
96
+ /**
97
+ * Sets button text color.
98
+ */
99
+ actionTextColor?: string;
100
+ /**
101
+ * Sets button background color.
102
+ */
103
+ actionBackground?: string;
76
104
  }
77
105
  export interface RenderActionType {
78
106
  actions: ActionTypes[];
@@ -80,6 +108,9 @@ export interface RenderActionType {
80
108
  selectedRows: any;
81
109
  buttonTextColor?: string;
82
110
  filteredRows?: any;
111
+ buttonBackground?: string;
112
+ style?: CSSProperties;
113
+ submitButtonRef?: any;
83
114
  }
84
115
  export interface TableActionType {
85
116
  selectedFlatRows: any;
@@ -93,6 +124,7 @@ export interface TableActionType {
93
124
  dense?: boolean;
94
125
  handleClose?: any;
95
126
  authState?: any;
127
+ submitButtonRef?: any;
96
128
  }
97
129
  export interface GridContextType {
98
130
  gridCode: any;
@@ -1,5 +1,5 @@
1
1
  import { GridColumnType } from "../types";
2
- export declare const attachAlignmentProps: (columns: GridColumnType[]) => {
2
+ export declare const attachAlignmentProps: (columns: GridColumnType[]) => ({
3
3
  columnName: string;
4
4
  accessor: string;
5
5
  sequence: number;
@@ -14,4 +14,22 @@ export declare const attachAlignmentProps: (columns: GridColumnType[]) => {
14
14
  sortDescFirst?: boolean | undefined;
15
15
  dateFormat?: string | undefined;
16
16
  actions?: string | string[] | undefined;
17
- }[];
17
+ } | {
18
+ cellHeaderAlignment: string;
19
+ TableCellProps: {
20
+ align: string;
21
+ };
22
+ columnName: string;
23
+ accessor: string;
24
+ sequence: number;
25
+ componentType: import("../../tableCellComponents").CellComponentType;
26
+ Cell?: any;
27
+ disableSortBy?: boolean | undefined;
28
+ width?: number | undefined;
29
+ maxWidth?: number | undefined;
30
+ minWidth?: number | undefined;
31
+ isVisible?: boolean | undefined;
32
+ sortDescFirst?: boolean | undefined;
33
+ dateFormat?: string | undefined;
34
+ actions?: string | string[] | undefined;
35
+ })[];
@@ -4,7 +4,7 @@ export declare const attachCellComponentsToMetaData: (columns: GridColumnType[])
4
4
  columnName: string;
5
5
  accessor: string;
6
6
  sequence: number;
7
- alignment?: string | undefined;
7
+ alignment?: "left" | "right" | "center" | 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?: string | undefined;
7
+ alignment?: "left" | "right" | "center" | undefined;
8
8
  TableCellProps?: any;
9
9
  disableSortBy?: boolean | undefined;
10
10
  width?: number | undefined;
@@ -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";
@@ -7,7 +8,11 @@ export interface GridColumnType {
7
8
  sequence: number;
8
9
  componentType: CellComponentType;
9
10
  Cell?: any;
10
- alignment?: string;
11
+ /**
12
+ * Specify the alignment of grid column header and cell
13
+ * @default "left"
14
+ */
15
+ alignment?: "left" | "right" | "center";
11
16
  TableCellProps?: any;
12
17
  width?: number;
13
18
  maxWidth?: number;
@@ -55,6 +60,8 @@ export interface GridColumnType {
55
60
  setValueFUNC?: Function;
56
61
  isAutoFocus?: boolean;
57
62
  isVisibleInNew?: boolean;
63
+ currencyRefColumn?: string;
64
+ isCurrencyCode?: boolean;
58
65
  /**
59
66
  * Accepts boolean value to hide dropdown and cross icons from autocomplete
60
67
  * @default false
@@ -66,7 +73,7 @@ export interface GridColumnType {
66
73
  * @param original current grid row data
67
74
  * @returns string
68
75
  */
69
- setButtonName?: (value: string | undefined, original: any) => string;
76
+ setButtonName?: (value: string | undefined, original: any) => string | undefined;
70
77
  /**
71
78
  * Function to exclude component conditionally
72
79
  * @param value value of component if exists
@@ -135,6 +142,45 @@ export interface GridWrapperPropTypes {
135
142
  autoRefreshInterval?: any;
136
143
  onClickActionEvent?: any;
137
144
  authState?: AuthStateType;
145
+ /**
146
+ * Sets alwaysAvailable action button at bottom of grid.
147
+ * @default false
148
+ */
149
+ controlsAtBottom?: boolean;
150
+ /**
151
+ * Sets action buttons in context menu of grid row at bottom of grid.
152
+ * @default false
153
+ */
154
+ actionContextAtBottom?: boolean;
155
+ /**
156
+ * Define styling for grid header toolbar.
157
+ * - Accepts Mui's `sx` properties.
158
+ */
159
+ headerToolbarStyle?: SxProps;
160
+ /**
161
+ * Disables multiple row selection on grid
162
+ * @default false
163
+ */
164
+ disableMultipleRowSelect?: boolean;
165
+ /**
166
+ * Defined stylined for grid column header.
167
+ * Accepts Mui's `sx` properties.
168
+ */
169
+ columnHeaderStyle?: SxProps;
170
+ /**
171
+ * Defines different types of grid styles
172
+ * @default "standard"
173
+ */
174
+ variant?: "standard" | "contained" | "outlined";
175
+ /**
176
+ * Row Id to be selected by default
177
+ */
178
+ defaultSelectedRowId?: string;
179
+ /**
180
+ * Show export button for grid data export
181
+ * @default false
182
+ */
183
+ enableExport?: boolean;
138
184
  }
139
185
  export interface GridYupSchemaMetaDataType {
140
186
  type: "string" | "number" | "boolean" | "date";
@@ -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?: string | undefined;
10
+ alignment?: "left" | "right" | "center" | undefined;
11
11
  TableCellProps?: any;
12
12
  width?: number | undefined;
13
13
  maxWidth?: number | undefined;
@@ -53,8 +53,10 @@ export declare const attachcombinedValidationFns: (columns: GridColumnType[]) =>
53
53
  setValueFUNC?: Function | undefined;
54
54
  isAutoFocus?: boolean | undefined;
55
55
  isVisibleInNew?: boolean | undefined;
56
+ currencyRefColumn?: string | undefined;
57
+ isCurrencyCode?: boolean | undefined;
56
58
  disableAdornment?: boolean | undefined;
57
- setButtonName?: ((value: string | undefined, original: any) => string) | undefined;
59
+ setButtonName?: ((value: string | undefined, original: any) => string | undefined) | undefined;
58
60
  shouldExclude?: ((value: string | undefined, original: any) => boolean) | undefined;
59
61
  currencySymbolPosition?: "end" | "start" | undefined;
60
62
  }[];
@@ -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?: string | undefined;
9
+ alignment?: "left" | "right" | "center" | undefined;
10
10
  TableCellProps?: any;
11
11
  width?: number | undefined;
12
12
  maxWidth?: number | undefined;
@@ -53,8 +53,10 @@ export declare const attachYupSchemaValidator: (columns: GridColumnType[]) => {
53
53
  setValueFUNC?: Function | undefined;
54
54
  isAutoFocus?: boolean | undefined;
55
55
  isVisibleInNew?: boolean | undefined;
56
+ currencyRefColumn?: string | undefined;
57
+ isCurrencyCode?: boolean | undefined;
56
58
  disableAdornment?: boolean | undefined;
57
- setButtonName?: ((value: string | undefined, original: any) => string) | undefined;
59
+ setButtonName?: ((value: string | undefined, original: any) => string | undefined) | undefined;
58
60
  shouldExclude?: ((value: string | undefined, original: any) => boolean) | undefined;
59
61
  currencySymbolPosition?: "end" | "start" | undefined;
60
62
  }[];
@@ -1,3 +1,2 @@
1
1
  /// <reference types="react" />
2
- import { FormWrapperProps } from "./types";
3
- export declare const FormWrapper: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<FormWrapperProps>>;
2
+ export declare const FormWrapper: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<any>>;
@@ -1,7 +1,7 @@
1
1
  import { FC } from "react";
2
2
  import { FormProps } from "./types";
3
3
  export declare const SimpleForm: FC<FormProps>;
4
- export declare const SimpleFormWrapper: ({ fields, formRenderConfig, formName, formStyle, hidden, formDisplayLabel, displayMode, hideDisplayModeInTitle, wrapperChild, serverSentError, serverSentErrorDetail, isSubmitting, classes, handleSubmit, controlsAtBottom, hideHeader, containerstyle, }: {
4
+ export declare const SimpleFormWrapper: ({ fields, formRenderConfig, formName, formStyle, hidden, formDisplayLabel, displayMode, hideDisplayModeInTitle, wrapperChild, serverSentError, serverSentErrorDetail, isSubmitting, classes, handleSubmit, controlsAtBottom, hideHeader, containerstyle, subHeaderLabel, subHeaderLabelStyle }: {
5
5
  fields: any;
6
6
  formRenderConfig: any;
7
7
  formName: any;
@@ -19,6 +19,8 @@ export declare const SimpleFormWrapper: ({ fields, formRenderConfig, formName, f
19
19
  controlsAtBottom: any;
20
20
  hideHeader: any;
21
21
  containerstyle?: {} | undefined;
22
+ subHeaderLabel: any;
23
+ subHeaderLabelStyle: any;
22
24
  }) => import("react/jsx-runtime").JSX.Element;
23
25
  export declare const BottomControl: ({ wrapperChild, isSubmitting, handleSubmit, classes, }: {
24
26
  wrapperChild: any;
@@ -26,7 +28,7 @@ export declare const BottomControl: ({ wrapperChild, isSubmitting, handleSubmit,
26
28
  handleSubmit: any;
27
29
  classes: any;
28
30
  }) => import("react/jsx-runtime").JSX.Element;
29
- export declare const SimpleFormTitle: ({ formDisplayLabel, displayMode, hideDisplayModeInTitle, wrapperChild, serverSentError, serverSentErrorDetail, isSubmitting, classes, handleSubmit, controlsAtBottom, }: {
31
+ export declare const SimpleFormTitle: ({ formDisplayLabel, displayMode, hideDisplayModeInTitle, wrapperChild, serverSentError, serverSentErrorDetail, isSubmitting, classes, handleSubmit, controlsAtBottom, subHeaderLabel, subHeaderLabelStyle }: {
30
32
  formDisplayLabel: any;
31
33
  displayMode: any;
32
34
  hideDisplayModeInTitle: any;
@@ -37,4 +39,6 @@ export declare const SimpleFormTitle: ({ formDisplayLabel, displayMode, hideDisp
37
39
  classes: any;
38
40
  handleSubmit: any;
39
41
  controlsAtBottom: any;
42
+ subHeaderLabel: any;
43
+ subHeaderLabelStyle: any;
40
44
  }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const ColorlibStepIconRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
3
+ ownerState: {
4
+ completed?: boolean;
5
+ active?: boolean;
6
+ };
7
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
+ export declare const ColorlibConnector: import("@emotion/styled").StyledComponent<import("@mui/material").StepConnectorProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -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
1
  import { GridSize, GridSpacing, GridDirection } from "@mui/material/Grid";
2
- import { AllTextFieldProps, AllSelectFieldProps, AllCheckboxGroupProps, AllCheckboxProps, AllDatePickerProps, AllDateTimePickerProps, AllTimePickerProps, AllRadioProps, AllRatingProps, AllSliderProps, AllSwitchGroupProps, AllSwitchProps, AllNumberFormatProps, AllPasswordFieldProps, AllSpacerProps, AllToggleButtonGroupProps, AllInputMaskProps, AllAutocompleteProps, ArrayFieldProps, AllTextareaAutosizeFieldProps, AllHiddenFieldProps, AllTypographyFieldProps, AllTransferListProps, AllSearchFieldProps, AllVisaversaFieldProps, AllDataTableProps, AllFormButtonProps, AllAccountNumberProps, AllLoginIDProps, DividerPropsOptional, AllDividerProps } from "./typesFields";
2
+ import { AllTextFieldProps, AllSelectFieldProps, AllCheckboxGroupProps, AllCheckboxProps, AllDatePickerProps, AllDateTimePickerProps, AllTimePickerProps, AllRadioProps, AllRatingProps, AllSliderProps, AllSwitchGroupProps, AllSwitchProps, AllNumberFormatProps, AllPasswordFieldProps, AllSpacerProps, AllToggleButtonGroupProps, AllInputMaskProps, AllAutocompleteProps, ArrayFieldProps, AllTextareaAutosizeFieldProps, AllHiddenFieldProps, AllTypographyFieldProps, AllTransferListProps, AllSearchFieldProps, AllVisaversaFieldProps, AllDataTableProps, AllFormButtonProps, AllAccountNumberProps, AllLoginIDProps, DividerPropsOptional, AllDividerProps, CustomAccountProps, CustomReportAccTypeProps } from "./typesFields";
3
3
  import { TextFieldPropsOptional, SelectPropsOptional, CheckboxGroupPropsOptional, CheckboxPropsOptional, DatePickerPropsOptional, DateTimePickerPropsOptional, TimePickerPropsOptional, RadioPropsOptional, RatingPropsOptional, SliderPropsOptional, SwitchPropsOptional, SwitchGroupPropsOptional, NumberFormatPropsOptional, PasswordFieldPropsOptional, ToggleButtonGroupPropsOptional, InputMaskPropsOptional, AutocompletePropsOptional, TextareaAutosizeFieldPropsOptional, SearchFieldPropsOptional, VisaversaFieldPropsOptional, DataTablePropsOptional } from "./typesFields";
4
4
  import { Merge } from "../../components/common/types";
5
5
  import { InitialValuesType, SubmitFnType } from "../../packages/form";
6
- import { ReactNode } from "react";
6
+ import { CSSProperties, ReactNode } from "react";
7
7
  export interface FormRenderConfigType {
8
8
  ordering: "auto" | "sequence";
9
9
  renderType: "simple" | "tabs" | "stepper" | "accordian";
@@ -47,6 +47,7 @@ export interface FormMetaDataType {
47
47
  name: string;
48
48
  label: string;
49
49
  };
50
+ formStyle?: CSSProperties;
50
51
  }
51
52
  export interface ComponentTypeProps {
52
53
  textField?: TextFieldPropsOptional;
@@ -76,7 +77,7 @@ export interface MetaDataType {
76
77
  form: FormMetaDataType;
77
78
  fields: FieldMetaDataType[];
78
79
  }
79
- export type FieldMetaDataTypeX = AllTextFieldProps | AllDividerProps | AllSelectFieldProps | AllCheckboxGroupProps | AllCheckboxProps | AllDatePickerProps | AllDateTimePickerProps | AllTimePickerProps | AllRadioProps | AllRatingProps | AllSliderProps | AllSwitchGroupProps | AllSwitchProps | AllNumberFormatProps | AllPasswordFieldProps | AllToggleButtonGroupProps | AllSpacerProps | AllInputMaskProps | AllAutocompleteProps | AllTextareaAutosizeFieldProps | AllTypographyFieldProps | AllHiddenFieldProps | AllTransferListProps | AllSearchFieldProps | AllVisaversaFieldProps | ArrayFieldProps | AllDataTableProps | AllFormButtonProps | AllAccountNumberProps | AllLoginIDProps;
80
+ export type FieldMetaDataTypeX = AllTextFieldProps | AllDividerProps | AllSelectFieldProps | AllCheckboxGroupProps | AllCheckboxProps | AllDatePickerProps | AllDateTimePickerProps | AllTimePickerProps | AllRadioProps | AllRatingProps | AllSliderProps | AllSwitchGroupProps | AllSwitchProps | AllNumberFormatProps | AllPasswordFieldProps | AllToggleButtonGroupProps | AllSpacerProps | AllInputMaskProps | AllAutocompleteProps | AllTextareaAutosizeFieldProps | AllTypographyFieldProps | AllHiddenFieldProps | AllTransferListProps | AllSearchFieldProps | AllVisaversaFieldProps | ArrayFieldProps | AllDataTableProps | AllFormButtonProps | AllAccountNumberProps | AllLoginIDProps | CustomAccountProps | CustomReportAccTypeProps;
80
81
  export type FieldMetaDataType = Merge<FieldMetaDataTypeX, {
81
82
  template?: FieldMetaDataType[];
82
83
  }>;
@@ -121,6 +122,9 @@ export interface FormWrapperProps {
121
122
  formState?: any;
122
123
  hideHeader?: boolean;
123
124
  onFormDataChange?: any;
125
+ subHeaderLabel?: string;
126
+ subHeaderLabelStyle?: CSSProperties;
127
+ setDataOnFieldChange?: (action: string, payload: any) => void;
124
128
  }
125
129
  export interface FormProps {
126
130
  fields: GroupWiseRenderedFieldsType;
@@ -26,6 +26,7 @@ import { VisaversaProps } from "../../components/common/visaversa";
26
26
  import { DataTableProps } from "../../components/common/dataTable";
27
27
  import { FormButtonProps } from "../../components/common/formbutton";
28
28
  import { DividerProps } from "../../components/common/divider";
29
+ import { currencySymbol } from "components/custom/getCurrencySymbol";
29
30
  export interface FieldRenderProps<T> {
30
31
  componentType: T;
31
32
  group?: number;
@@ -39,6 +40,11 @@ export interface FieldMetaData<T> {
39
40
  shouldExclude?: typeof shouldExcludeFnType | CustomRuleType | Boolean | string;
40
41
  isReadOnly?: typeof shouldExcludeFnType | CustomRuleType | Boolean | string;
41
42
  onFormButtonClickHandel?: any;
43
+ FormatProps?: any;
44
+ StartAdornment?: keyof typeof currencySymbol | (string & Record<never, never>);
45
+ isCurrencyCode?: boolean;
46
+ isCurrencyField?: boolean;
47
+ postValidationSetCrossFieldValues?: any;
42
48
  }
43
49
  export type Omitted<T> = Omit<T, "fieldKey" | "enableGrid">;
44
50
  export type AllAutocompleteProps = Merge<Omitted<AutocompleteProps>, FieldMetaData<"autocomplete">>;
@@ -93,3 +99,5 @@ export type AllLoginIDProps = Merge<Omitted<TextFieldProps>, FieldMetaData<"logi
93
99
  export type DataTablePropsOptional = Optional<AllDataTableProps>;
94
100
  export type AllDividerProps = Merge<Omitted<DividerProps>, FieldMetaData<"divider">>;
95
101
  export type DividerPropsOptional = Optional<AllDividerProps>;
102
+ export type CustomAccountProps = Merge<Omitted<TextFieldProps>, FieldMetaData<"_accountNumber">>;
103
+ export type CustomReportAccTypeProps = Merge<Omitted<SelectProps>, FieldMetaData<"reportAccType">>;
@@ -1,2 +1,3 @@
1
+ import { CustomProperties } from "components/context/propertiesConfig/customProperties";
1
2
  import { MetaDataType, ExtendedFieldMetaDataTypeOptional } from "../types";
2
- export declare const extendFieldTypes: (metaData: MetaDataType, extendedTypes: ExtendedFieldMetaDataTypeOptional, lanTranslate?: any, authState?: any) => MetaDataType;
3
+ export declare const extendFieldTypes: (metaData: MetaDataType, extendedTypes: ExtendedFieldMetaDataTypeOptional, lanTranslate?: any, authState?: any, customParameters?: CustomProperties) => MetaDataType;
@@ -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) => {};
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from "./components/utils";
8
8
  export { useAutoRefresh, AutoRefreshProvider, } from "./components/utils/autoRefresh";
9
9
  export * from "./components/dynamicForm/formWrapper";
10
10
  export * from "./components/dynamicForm/types";
11
+ export * from "./components/dynamicForm/stepperForm/style";
11
12
  export * from "./packages/form";
12
13
  export type { ActionTypes, FilterColumnType, HeaderFilterType, RenderActionType, TableActionType, GridColumnType as DataTableGridColumnType, GridConfigType as DataTableGridConfigType, GridContextType as DataTableGridContextType, GridMetaDataType as DataTableGridMetaDataType, } from "./components/dataTable/types";
13
14
  export { GridWrapper as DataTableGridWrapper } from "./components/dataTable/gridWrapper";