@acuteinfo/common-base 1.0.15 → 1.0.17

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 (40) hide show
  1. package/dist/components/common/arrayField/arrayField2.d.ts +21 -2
  2. package/dist/components/common/arrayField/style.d.ts +1 -1
  3. package/dist/components/context/propertiesConfig/customProperties.d.ts +6 -1
  4. package/dist/components/dataTable/columnVisibility.d.ts +4 -1
  5. package/dist/components/dataTable/gridWrapper.d.ts +1 -2
  6. package/dist/components/dataTable/types.d.ts +28 -1
  7. package/dist/components/dataTable/utils/attachAlignmentProps.d.ts +20 -2
  8. package/dist/components/dataTable/utils/attachCellComponentsToMetaData.d.ts +1 -1
  9. package/dist/components/dataTable/utils/sortColumnBySequence.d.ts +1 -1
  10. package/dist/components/dataTableStatic/grid.d.ts +1 -1
  11. package/dist/components/dataTableStatic/types.d.ts +20 -5
  12. package/dist/components/dataTableStatic/utils/attachCombineValidationFns.d.ts +6 -3
  13. package/dist/components/dataTableStatic/utils/attachYupSchema.d.ts +6 -3
  14. package/dist/components/detailPopupGridData/GridDetailsWithHeader/detailsGridWithHeader.d.ts +1 -1
  15. package/dist/components/detailPopupGridData/GridDetailsWithHeader/type.d.ts +1 -0
  16. package/dist/components/dynamicForm/formWrapper.d.ts +1 -2
  17. package/dist/components/dynamicForm/simpleForm.d.ts +6 -2
  18. package/dist/components/dynamicForm/stepperForm/style.d.ts +8 -0
  19. package/dist/components/dynamicForm/style.d.ts +1 -1
  20. package/dist/components/dynamicForm/types.d.ts +9 -5
  21. package/dist/components/dynamicForm/typesFields.d.ts +8 -0
  22. package/dist/components/dynamicForm/utils/extendedFieldTypes.d.ts +2 -1
  23. package/dist/components/dynamicForm/utils/groupWiserenderer.d.ts +2 -2
  24. package/dist/components/formcomponent/filterform/filterForm.d.ts +2 -20
  25. package/dist/components/formcomponent/filterform/formMeta.d.ts +2 -12
  26. package/dist/components/formcomponent/filterform/type.d.ts +4 -0
  27. package/dist/components/formcomponent/masterDetails/masterDetailsForm.d.ts +2 -0
  28. package/dist/components/report/components/footerCell.d.ts +3 -1
  29. package/dist/components/report/gridTable.d.ts +1 -2
  30. package/dist/components/report/serverReport/ReportWrapper.d.ts +1 -2
  31. package/dist/components/report/serverReport/serverGridTable.d.ts +1 -2
  32. package/dist/components/utils/reportExport/ReportExportScreen.d.ts +1 -2
  33. package/dist/components/utils/utilFunctions/function.d.ts +1 -1
  34. package/dist/index.d.ts +2 -0
  35. package/dist/index.js +1 -1
  36. package/dist/index.js.map +1 -1
  37. package/dist/packages/form/src/field.d.ts +1 -1
  38. package/dist/packages/form/src/types.d.ts +2 -2
  39. package/dist/pages_audit/common/serverGrid/serverGrid.d.ts +1 -2
  40. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { FC } from "react";
2
- import { GridProps } from "@mui/material/Grid";
2
+ import { GridProps } from "@mui/material";
3
3
  import { FieldMetaDataType } from "components/dynamicForm/";
4
4
  export interface ArrayField2Props {
5
5
  fieldKey: string;
@@ -15,11 +15,23 @@ export interface ArrayField2Props {
15
15
  dependentFields?: string | string[];
16
16
  shouldExclude?: any;
17
17
  fixedRows?: boolean;
18
+ isDisplayCount?: boolean;
19
+ isCustomStyle?: any;
18
20
  getFixedRowsCount?: any;
21
+ onFormButtonClickHandel?: any;
22
+ disagreeButtonName: any;
23
+ agreeButtonName: any;
24
+ errorTitle: string;
25
+ displayCountName: string;
26
+ runExternalFunction?: Boolean;
27
+ isRemoveButton?: Boolean;
28
+ onFormDataChange?: any;
29
+ authState?: any;
19
30
  }
20
31
  export declare const ArrayField2: FC<ArrayField2Props>;
21
- export declare const ArrayFieldRow: ({ row, fieldKey, oneRow, classes, removeFn, rowIndex, removeRowFn, totalRows, isSubmitting, formState, formName, arrayFieldIDName, arrayFieldName, fixedRows, }: {
32
+ export declare const ArrayFieldRow: ({ row, getAllRowsValues, fieldKey, oneRow, classes, removeFn, rowIndex, removeRowFn, totalRows, isSubmitting, formState, formName, arrayFieldIDName, arrayFieldName, fixedRows, isDisplayCount, isCustomStyle, disagreeButtonName, agreeButtonName, errorTitle, displayCountName, isRemoveButton, }: {
22
33
  row: any;
34
+ getAllRowsValues: any;
23
35
  fieldKey: any;
24
36
  oneRow: any;
25
37
  classes: any;
@@ -33,4 +45,11 @@ export declare const ArrayFieldRow: ({ row, fieldKey, oneRow, classes, removeFn,
33
45
  arrayFieldIDName: any;
34
46
  arrayFieldName: any;
35
47
  fixedRows: any;
48
+ isDisplayCount?: boolean | undefined;
49
+ isCustomStyle?: boolean | undefined;
50
+ disagreeButtonName: any;
51
+ agreeButtonName: any;
52
+ errorTitle: any;
53
+ displayCountName: any;
54
+ isRemoveButton: any;
36
55
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"arrayRowContainer" | "arrayRowRemoveBtn" | "arrayRowCard" | "arrayRowCardContent" | "arrayRowCount">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"arrayRowContainer" | "newArrayRowContainer" | "newSecondArrayRowContainer" | "arrayRowRemoveBtn" | "arrayRowCard" | "arrayRowCardContent" | "arrayRowCount" | "arrayRowCountCustomStyle" | "arrayRowCountFixedRows" | "arrayScreenRowCount" | "newArrayRowCardContent">;
@@ -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,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,6 +1,5 @@
1
1
  import React from "react";
2
2
  import { GridMetaDataType, ActionTypes } from "./types";
3
- import { AuthStateType } from "components/types";
4
3
  interface GridWrapperPropsType {
5
4
  gridCode: any;
6
5
  getGridData: any;
@@ -12,7 +11,7 @@ interface GridWrapperPropsType {
12
11
  defaultSortOrder?: any;
13
12
  dataTransformer?: any;
14
13
  autoRefreshInterval?: any;
15
- authState?: AuthStateType;
14
+ authState?: any;
16
15
  }
17
16
  export declare const GridWrapper: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<GridWrapperPropsType>>;
18
17
  export {};
@@ -1,12 +1,13 @@
1
1
  import { CellComponentType } from "components/tableCellComponents";
2
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,7 +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
+ */
76
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;
77
104
  }
78
105
  export interface RenderActionType {
79
106
  actions: ActionTypes[];
@@ -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,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, controlsAtBottom, actionContextAtBottom, headerToolbarStyle, disableMultipleRowSelect, columnHeaderStyle, variant, defaultSelectedRowId, footerNote, paginationText, searchPlaceholder, enableExport }: {
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;
@@ -1,14 +1,17 @@
1
1
  import { SxProps } from "@mui/material";
2
2
  import { ActionTypes } from "components/dataTable/types";
3
3
  import { CellComponentType } from "components/tableCellComponents";
4
- import { AuthStateType } from "components/types";
5
4
  export interface GridColumnType {
6
5
  columnName: string;
7
6
  accessor: string;
8
7
  sequence: number;
9
8
  componentType: CellComponentType;
10
9
  Cell?: any;
11
- alignment?: string;
10
+ /**
11
+ * Specify the alignment of grid column header and cell
12
+ * @default "left"
13
+ */
14
+ alignment?: "left" | "right" | "center";
12
15
  TableCellProps?: any;
13
16
  width?: number;
14
17
  maxWidth?: number;
@@ -56,6 +59,8 @@ export interface GridColumnType {
56
59
  setValueFUNC?: Function;
57
60
  isAutoFocus?: boolean;
58
61
  isVisibleInNew?: boolean;
62
+ currencyRefColumn?: string;
63
+ isCurrencyCode?: boolean;
59
64
  /**
60
65
  * Accepts boolean value to hide dropdown and cross icons from autocomplete
61
66
  * @default false
@@ -67,19 +72,26 @@ export interface GridColumnType {
67
72
  * @param original current grid row data
68
73
  * @returns string
69
74
  */
70
- setButtonName?: (value: string | undefined, original: any) => string;
75
+ setButtonName?: (value: string | undefined, original: any) => string | undefined;
71
76
  /**
72
77
  * Function to exclude component conditionally
73
78
  * @param value value of component if exists
74
79
  * @param original current grid row data
80
+ * @param data array of all row data
81
+ * @param index current row index
75
82
  * @returns boolean
76
83
  */
77
- shouldExclude?: (value: string | undefined, original: any) => boolean;
84
+ shouldExclude?: (value: string | undefined, original: any, data?: any, index?: number) => boolean;
78
85
  /**
79
86
  * Sets currency symbol position to start or end for currency component in grid
80
87
  * @default "start"
81
88
  */
82
89
  currencySymbolPosition?: "start" | "end";
90
+ /**
91
+ * Set true to show only delete icon for DeleteRowCell
92
+ * @default false
93
+ */
94
+ showDeleteIconOnly?: boolean;
83
95
  }
84
96
  export interface GridConfigType {
85
97
  dense?: boolean;
@@ -109,6 +121,9 @@ export interface GridConfigType {
109
121
  allowColumnHiding?: boolean;
110
122
  isCusrsorFocused?: boolean;
111
123
  hiddenFlag?: string;
124
+ searchPlaceholder?: string;
125
+ paginationText?: any;
126
+ footerNote?: any;
112
127
  }
113
128
  export interface GridMetaDataType {
114
129
  columns: GridColumnType[];
@@ -135,7 +150,7 @@ export interface GridWrapperPropTypes {
135
150
  hideFooter?: boolean;
136
151
  autoRefreshInterval?: any;
137
152
  onClickActionEvent?: any;
138
- authState?: AuthStateType;
153
+ authState?: any;
139
154
  /**
140
155
  * Sets alwaysAvailable action button at bottom of grid.
141
156
  * @default false
@@ -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,11 @@ 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;
58
- shouldExclude?: ((value: string | undefined, original: any) => boolean) | undefined;
59
+ setButtonName?: ((value: string | undefined, original: any) => string | undefined) | undefined;
60
+ shouldExclude?: ((value: string | undefined, original: any, data?: any, index?: number | undefined) => boolean) | undefined;
59
61
  currencySymbolPosition?: "end" | "start" | undefined;
62
+ showDeleteIconOnly?: boolean | undefined;
60
63
  }[];
@@ -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,11 @@ 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;
58
- shouldExclude?: ((value: string | undefined, original: any) => boolean) | undefined;
59
+ setButtonName?: ((value: string | undefined, original: any) => string | undefined) | undefined;
60
+ shouldExclude?: ((value: string | undefined, original: any, data?: any, index?: number | undefined) => boolean) | undefined;
59
61
  currencySymbolPosition?: "end" | "start" | undefined;
62
+ showDeleteIconOnly?: boolean | undefined;
60
63
  }[];
@@ -1,3 +1,3 @@
1
1
  import { DetailsGridWithHeaderArguType } from "./type";
2
2
  export declare const useDialogStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "topScrollPaper" | "topPaperScrollBody">;
3
- export declare const DetailsGridWithHeader: ({ metadata, ClosedEventCall, data, HeaderMetaData, HeaderData, ClickEventManage, children, isLoading, isError, ErrorMessage, actions, setData, setCurrentAction, mode, isEditableForm, refID, onSubmit, submitSecondAction, submitSecondButtonName, submitSecondButtonHide, submitSecondLoading, }: DetailsGridWithHeaderArguType) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const DetailsGridWithHeader: ({ metadata, ClosedEventCall, data, HeaderMetaData, HeaderData, ClickEventManage, children, isLoading, isError, ErrorMessage, actions, setData, setCurrentAction, mode, isEditableForm, refID, onSubmit, submitSecondAction, submitSecondButtonName, submitSecondButtonHide, submitSecondLoading, authState, }: DetailsGridWithHeaderArguType) => import("react/jsx-runtime").JSX.Element;
@@ -23,4 +23,5 @@ export interface DetailsGridWithHeaderArguType {
23
23
  submitSecondButtonName?: string;
24
24
  submitSecondButtonHide?: boolean;
25
25
  submitSecondLoading?: boolean;
26
+ authState?: any;
26
27
  }
@@ -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" | "stepper" | "subTitle" | "tabsSubmitBtn" | "backBtn" | "buttonProgress" | "buttonWrapper" | "stepperLabel" | "formControlLabelSpacer">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "form" | "label" | "submit" | "subTitle" | "tabsSubmitBtn" | "backBtn" | "buttonProgress" | "buttonWrapper" | "stepper" | "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
  }>;
@@ -106,7 +107,7 @@ export type ExtendedFieldMetaDataTypeOptional = {
106
107
  [key: string]: FieldMetaDataTypeOptional;
107
108
  };
108
109
  export interface RenderFunctionType {
109
- (fieldObj: FieldMetaDataType, formRenderConfig: FormRenderConfigType, formName: string, componentProps?: ComponentTypeProps): JSX.Element;
110
+ (fieldObj: FieldMetaDataType, formRenderConfig: FormRenderConfigType, formName: string, componentProps?: ComponentTypeProps, authState?: any): JSX.Element;
110
111
  }
111
112
  export interface FormWrapperProps {
112
113
  metaData: MetaDataType;
@@ -116,11 +117,14 @@ export interface FormWrapperProps {
116
117
  displayMode?: "new" | "view" | "edit";
117
118
  hideTitleBar?: boolean;
118
119
  hideDisplayModeInTitle?: boolean;
119
- formStyle?: any;
120
+ formStyle?: CSSProperties;
120
121
  controlsAtBottom?: boolean;
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,3 +1,3 @@
1
1
  import { MetaDataType, GroupWiseRenderedFieldsType } from "../types";
2
- export declare const renderFieldsByGroup: (metaData: MetaDataType, onFormButtonClickHandel?: any, onFormDataChange?: () => void) => GroupWiseRenderedFieldsType;
3
- export declare const renderValuesByGroup: (metaData: MetaDataType, onFormButtonClickHandel?: any, onFormDataChange?: () => void) => GroupWiseRenderedFieldsType;
2
+ export declare const renderFieldsByGroup: (metaData: MetaDataType, onFormButtonClickHandel?: any, onFormDataChange?: () => void, authState?: any) => GroupWiseRenderedFieldsType;
3
+ export declare const renderValuesByGroup: (metaData: MetaDataType, onFormButtonClickHandel?: any, onFormDataChange?: () => void, authState?: any) => GroupWiseRenderedFieldsType;
@@ -1,20 +1,2 @@
1
- export declare const FilterFormComponents: ({ dense, title, allowColumnHiding, fields: oldfielddata, initialDataValue, initialVisibleColumnData, submitButtonHide, submitButtonName, submitSecondButtonHide, submitSecondButtonName, submitSecondLoading, submitSecondAction, submitSecondValidtion, hideHeader, isDisplayOnly, onAction, loading, onFieldAction, }: {
2
- dense: any;
3
- title: any;
4
- allowColumnHiding: any;
5
- fields: any;
6
- initialDataValue: any;
7
- initialVisibleColumnData: any;
8
- submitButtonHide: any;
9
- submitButtonName: any;
10
- submitSecondButtonHide?: boolean | undefined;
11
- submitSecondButtonName?: string | undefined;
12
- submitSecondLoading?: boolean | undefined;
13
- submitSecondAction?: ((arg1: any, arg2: any) => void) | undefined;
14
- submitSecondValidtion?: boolean | undefined;
15
- hideHeader: any;
16
- isDisplayOnly: any;
17
- onAction: any;
18
- loading: any;
19
- onFieldAction?: ((name: any, value: any) => void) | undefined;
20
- }) => import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare const FilterFormComponents: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<any>>;
@@ -1,12 +1,2 @@
1
- export declare const FormComponentView: ({ finalMetaData, onAction, loading, data, submitSecondButtonHide, submitSecondButtonName, submitSecondLoading, submitSecondAction, submitSecondValidtion, onFieldAction, }: {
2
- finalMetaData: any;
3
- onAction: any;
4
- loading: any;
5
- data: any;
6
- submitSecondButtonHide?: boolean | undefined;
7
- submitSecondButtonName?: string | undefined;
8
- submitSecondLoading?: boolean | undefined;
9
- submitSecondAction?: ((arg1: any, arg2: any) => void) | undefined;
10
- submitSecondValidtion?: boolean | undefined;
11
- onFieldAction?: ((name: any, value: any) => void) | undefined;
12
- }) => import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare const FormComponentView: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<any>>;
@@ -8,6 +8,7 @@ export interface FiltergridConfig {
8
8
  HideHeader?: boolean;
9
9
  submitButtonHide?: boolean;
10
10
  isDisplayOnly?: boolean;
11
+ validationRun?: string;
11
12
  }
12
13
  export interface FilterFormFieldType {
13
14
  accessor?: string;
@@ -39,6 +40,9 @@ export interface FilterFormFieldType {
39
40
  maxLength?: number;
40
41
  showMaxLength?: boolean;
41
42
  externalFunctionCall?: "onChange" | "onBlur" | "all";
43
+ onBlurHandler?: Function;
44
+ required?: boolean;
45
+ value?: any;
42
46
  }
43
47
  export interface FilterFormMetaType {
44
48
  gridConfig: FiltergridConfig;
@@ -23,5 +23,7 @@ export interface MasterDetailsArgumentType {
23
23
  onFormDataChange?: any;
24
24
  isDetailHide?: boolean;
25
25
  formState?: any;
26
+ setDataOnFieldChange?: (action: string, payload: any) => void;
27
+ isDetailRowRequire?: boolean;
26
28
  }
27
29
  export declare const MasterDetailsForm: import("react").ForwardRefExoticComponent<MasterDetailsArgumentType & import("react").RefAttributes<any>>;
@@ -1,4 +1,4 @@
1
- export declare const FooterCell: ({ rows, column: { id: columnName, isTotalWithoutCurrency, isTotalWithCurrency, currencyRefColumn, isCurrencyCode, }, }: {
1
+ export declare const FooterCell: ({ rows, column: { id: columnName, isTotalWithoutCurrency, isTotalWithCurrency, currencyRefColumn, isCurrencyCode, currencySymbolPosition, }, loading, }: {
2
2
  rows: any;
3
3
  column: {
4
4
  id: any;
@@ -6,7 +6,9 @@ export declare const FooterCell: ({ rows, column: { id: columnName, isTotalWitho
6
6
  isTotalWithCurrency?: boolean | undefined;
7
7
  currencyRefColumn: any;
8
8
  isCurrencyCode: any;
9
+ currencySymbolPosition?: string | undefined;
9
10
  };
11
+ loading: any;
10
12
  }) => string;
11
13
  export declare const FooterCell1: ({ rows, column: { id: columnName, isDisplayValueTotal, currencyRefColumn, isCurrencyCode, DisplayValueLabel, }, }: {
12
14
  rows: any;
@@ -1,5 +1,4 @@
1
1
  import { FC } from "react";
2
- import { AuthStateType } from "components/types";
3
2
  import { RetrievalParametersProps } from "./types";
4
3
  interface GridTableType {
5
4
  columns: any;
@@ -32,7 +31,7 @@ interface GridTableType {
32
31
  defaultSortOrder?: any;
33
32
  defaultHiddenColumns?: any;
34
33
  enablePagination?: boolean;
35
- authState?: AuthStateType;
34
+ authState?: any;
36
35
  retrievalComponent?: RetrievalParametersProps;
37
36
  openDrawerFilter?: boolean;
38
37
  onDoubleClickAction?: Function;
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import { AuthStateType } from "components/types";
3
2
  type TReportWrapper = {
4
3
  reportID: string;
5
4
  reportName: string;
@@ -8,7 +7,7 @@ type TReportWrapper = {
8
7
  otherAPIRequestPara: any;
9
8
  maxHeight: number;
10
9
  onClickActionEvent: Function;
11
- authState?: AuthStateType;
10
+ authState?: any;
12
11
  };
13
12
  export declare const ReportWrapper: React.FC<TReportWrapper>;
14
13
  export {};
@@ -1,5 +1,4 @@
1
1
  import { FC } from "react";
2
- import { AuthStateType } from "components/types";
3
2
  interface GridTableType {
4
3
  columns: any;
5
4
  defaultColumn: any;
@@ -31,7 +30,7 @@ interface GridTableType {
31
30
  defaultSortOrder?: any;
32
31
  defaultHiddenColumns?: any;
33
32
  enablePagination?: boolean;
34
- authState?: AuthStateType;
33
+ authState?: any;
35
34
  }
36
35
  export declare const GridTable: FC<GridTableType>;
37
36
  export {};