@acuteinfo/common-base 1.0.19 → 1.0.21

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 (27) hide show
  1. package/dist/components/common/arrayField/arrayField2.d.ts +0 -1
  2. package/dist/components/common/hidden/hidden.d.ts +1 -0
  3. package/dist/components/context/authContext/authContext.d.ts +7 -0
  4. package/dist/components/custom/getCurrencySymbol.d.ts +1 -1
  5. package/dist/components/dataTable/backdrop.d.ts +1 -1
  6. package/dist/components/dataTable/gridWrapper.d.ts +0 -1
  7. package/dist/components/dataTableStatic/grid.d.ts +1 -2
  8. package/dist/components/dataTableStatic/types.d.ts +0 -1
  9. package/dist/components/detailPopupGridData/GridDetailsWithHeader/detailsGridWithHeader.d.ts +1 -1
  10. package/dist/components/detailPopupGridData/GridDetailsWithHeader/type.d.ts +0 -1
  11. package/dist/components/dynamicForm/formWrapper.d.ts +2 -1
  12. package/dist/components/dynamicForm/types.d.ts +12 -6
  13. package/dist/components/dynamicForm/utils/groupWiserenderer.d.ts +2 -2
  14. package/dist/components/formcomponent/masterDetails/masterDetailsForm.d.ts +4 -2
  15. package/dist/components/report/gridParent.d.ts +2 -1
  16. package/dist/components/report/gridTable.d.ts +1 -2
  17. package/dist/components/report/serverReport/ReportWrapper.d.ts +0 -1
  18. package/dist/components/report/serverReport/serverGridTable.d.ts +0 -1
  19. package/dist/components/report/types.d.ts +121 -1
  20. package/dist/components/tableCellComponents/ButtonRowCell.d.ts +1 -1
  21. package/dist/components/tableCellComponents/deleteRowCell.d.ts +1 -1
  22. package/dist/components/utils/reportExport/ReportExportScreen.d.ts +0 -1
  23. package/dist/index.d.ts +3 -1
  24. package/dist/index.js +1 -1
  25. package/dist/index.js.map +1 -1
  26. package/dist/pages_audit/common/serverGrid/serverGrid.d.ts +0 -1
  27. package/package.json +1 -1
@@ -26,7 +26,6 @@ export interface ArrayField2Props {
26
26
  runExternalFunction?: Boolean;
27
27
  isRemoveButton?: Boolean;
28
28
  onFormDataChange?: any;
29
- authState?: any;
30
29
  }
31
30
  export declare const ArrayField2: FC<ArrayField2Props>;
32
31
  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, }: {
@@ -5,6 +5,7 @@ interface MyGridExtendedProps {
5
5
  GridProps?: GridProps;
6
6
  enableGrid: boolean;
7
7
  setValueOnDependentFieldsChange?: any;
8
+ ignoreInSubmit?: boolean;
8
9
  }
9
10
  export type MyHiddenFieldProps = UseFieldHookProps & MyGridExtendedProps;
10
11
  declare const MyHiddenField: FC<MyHiddenFieldProps>;
@@ -0,0 +1,7 @@
1
+ import { FC, PropsWithChildren } from "react";
2
+ interface AuthContextProps {
3
+ authState: any;
4
+ }
5
+ export declare const AuthContextProvider: FC<PropsWithChildren<AuthContextProps>>;
6
+ export declare const useAuthContext: () => AuthContextProps;
7
+ export {};
@@ -122,4 +122,4 @@ export declare const currencySymbol: {
122
122
  SLL: string;
123
123
  ETB: string;
124
124
  };
125
- export default function getCurrencySymbol(currencyCode: any): any;
125
+ export declare function getCurrencySymbol(currencyCode: any): any;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  export declare const CustomBackdrop: import("react").JSXElementConstructor<Omit<import("@mui/material/Backdrop").BackdropOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
3
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
- }, "onChange" | "onBlur" | "defaultValue" | "children" | "onSubmit" | "ref" | "hidden" | "style" | "onClick" | "id" | "title" | "className" | "classes" | "sx" | "tabIndex" | "color" | "content" | "transitionDuration" | "translate" | "slot" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "exit" | "open" | "in" | "components" | "componentsProps" | "slots" | "slotProps" | "TransitionComponent" | "mountOnEnter" | "unmountOnExit" | "timeout" | "easing" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "enter" | "invisible">, "classes"> & import("@mui/styles").StyledComponentProps<"root"> & object>;
4
+ }, "onChange" | "onBlur" | "defaultValue" | "children" | "ref" | "onSubmit" | "hidden" | "style" | "onClick" | "id" | "title" | "className" | "classes" | "sx" | "tabIndex" | "color" | "content" | "transitionDuration" | "translate" | "slot" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "exit" | "open" | "in" | "components" | "componentsProps" | "slots" | "slotProps" | "TransitionComponent" | "mountOnEnter" | "unmountOnExit" | "timeout" | "easing" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "enter" | "invisible">, "classes"> & import("@mui/styles").StyledComponentProps<"root"> & object>;
@@ -11,7 +11,6 @@ interface GridWrapperPropsType {
11
11
  defaultSortOrder?: any;
12
12
  dataTransformer?: any;
13
13
  autoRefreshInterval?: any;
14
- authState?: any;
15
14
  }
16
15
  export declare const GridWrapper: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<GridWrapperPropsType>>;
17
16
  export {};
@@ -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, controlsAtBottom, actionContextAtBottom, headerToolbarStyle, disableMultipleRowSelect, columnHeaderStyle, variant, defaultSelectedRowId, footerNote, paginationText, searchPlaceholder, enableExport, }: {
2
2
  label: any;
3
3
  dense: any;
4
4
  columns: any;
@@ -38,7 +38,6 @@ export declare const DataGrid: ({ label, dense, columns, data, loading, getRowId
38
38
  defaultFilter: any;
39
39
  isCusrsorFocused: any;
40
40
  onButtonActionHandel: any;
41
- authState: any;
42
41
  controlsAtBottom: any;
43
42
  actionContextAtBottom: any;
44
43
  headerToolbarStyle: any;
@@ -150,7 +150,6 @@ export interface GridWrapperPropTypes {
150
150
  hideFooter?: boolean;
151
151
  autoRefreshInterval?: any;
152
152
  onClickActionEvent?: any;
153
- authState?: any;
154
153
  /**
155
154
  * Sets alwaysAvailable action button at bottom of grid.
156
155
  * @default false
@@ -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, authState, }: 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, }: DetailsGridWithHeaderArguType) => import("react/jsx-runtime").JSX.Element;
@@ -23,5 +23,4 @@ export interface DetailsGridWithHeaderArguType {
23
23
  submitSecondButtonName?: string;
24
24
  submitSecondButtonHide?: boolean;
25
25
  submitSecondLoading?: boolean;
26
- authState?: any;
27
26
  }
@@ -1,2 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare const FormWrapper: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<any>>;
2
+ import { FormWrapperProps } from "./types";
3
+ export declare const FormWrapper: import("react").ForwardRefExoticComponent<FormWrapperProps & import("react").RefAttributes<any>>;
@@ -38,7 +38,7 @@ export interface FormMetaDataType {
38
38
  resetFieldOnUnmount: boolean;
39
39
  validationRun: "onBlur" | "onChange" | "all";
40
40
  render: FormRenderConfigType;
41
- componentProps: ComponentTypeProps;
41
+ componentProps?: ComponentTypeProps;
42
42
  formState?: any;
43
43
  flow?: UserFlowType[];
44
44
  submitAction?: string;
@@ -107,24 +107,30 @@ export type ExtendedFieldMetaDataTypeOptional = {
107
107
  [key: string]: FieldMetaDataTypeOptional;
108
108
  };
109
109
  export interface RenderFunctionType {
110
- (fieldObj: FieldMetaDataType, formRenderConfig: FormRenderConfigType, formName: string, componentProps?: ComponentTypeProps, authState?: any): JSX.Element;
110
+ (fieldObj: FieldMetaDataType, formRenderConfig: FormRenderConfigType, formName: string, componentProps?: ComponentTypeProps): JSX.Element;
111
111
  }
112
112
  export interface FormWrapperProps {
113
113
  metaData: MetaDataType;
114
114
  initialValues?: InitialValuesType;
115
115
  onSubmitHandler: SubmitFnType;
116
116
  hidden?: boolean;
117
- displayMode?: "new" | "view" | "edit";
117
+ displayMode?: "new" | "view" | "edit" | (string & Record<never, never>) | null;
118
118
  hideTitleBar?: boolean;
119
119
  hideDisplayModeInTitle?: boolean;
120
120
  formStyle?: CSSProperties;
121
121
  controlsAtBottom?: boolean;
122
- formState?: any;
122
+ formState?: {
123
+ [key: string]: any;
124
+ };
123
125
  hideHeader?: boolean;
124
126
  onFormDataChange?: any;
125
- subHeaderLabel?: string;
126
- subHeaderLabelStyle?: CSSProperties;
127
127
  setDataOnFieldChange?: (action: string, payload: any) => void;
128
+ defaultActiveStep?: number;
129
+ containerstyle?: CSSProperties;
130
+ onFormButtonClickHandel?: (id: any, dependentFields?: any) => void;
131
+ subHeaderLabel?: string;
132
+ subHeaderLabelStyle?: string;
133
+ children?: ReactNode | Function;
128
134
  }
129
135
  export interface FormProps {
130
136
  fields: GroupWiseRenderedFieldsType;
@@ -1,3 +1,3 @@
1
1
  import { MetaDataType, GroupWiseRenderedFieldsType } from "../types";
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;
2
+ export declare const renderFieldsByGroup: (metaData: MetaDataType, onFormButtonClickHandel?: any, onFormDataChange?: () => void) => GroupWiseRenderedFieldsType;
3
+ export declare const renderValuesByGroup: (metaData: MetaDataType, onFormButtonClickHandel?: any, onFormDataChange?: () => void) => GroupWiseRenderedFieldsType;
@@ -9,7 +9,7 @@ export interface MasterDetailsArgumentType {
9
9
  isError?: boolean;
10
10
  errorObj?: any;
11
11
  handelActionEvent?: any;
12
- formStyle?: any;
12
+ formStyle?: CSSProperties;
13
13
  isNewRow?: boolean | null;
14
14
  isLoading?: boolean;
15
15
  onSubmitData?: Function;
@@ -22,7 +22,9 @@ export interface MasterDetailsArgumentType {
22
22
  hideHeader?: boolean;
23
23
  onFormDataChange?: any;
24
24
  isDetailHide?: boolean;
25
- formState?: any;
25
+ formState?: {
26
+ [key: string]: any;
27
+ };
26
28
  setDataOnFieldChange?: (action: string, payload: any) => void;
27
29
  isDetailRowRequire?: boolean;
28
30
  }
@@ -1,2 +1,3 @@
1
1
  import { FC } from "react";
2
- export declare const ReportGrid: FC<any>;
2
+ import { ReportGridProps } from "./types";
3
+ export declare const ReportGrid: FC<ReportGridProps>;
@@ -31,8 +31,7 @@ interface GridTableType {
31
31
  defaultSortOrder?: any;
32
32
  defaultHiddenColumns?: any;
33
33
  enablePagination?: boolean;
34
- authState?: any;
35
- retrievalComponent?: RetrievalParametersProps;
34
+ retrievalComponent?: React.ComponentType<RetrievalParametersProps>;
36
35
  openDrawerFilter?: boolean;
37
36
  onDoubleClickAction?: Function;
38
37
  }
@@ -7,7 +7,6 @@ type TReportWrapper = {
7
7
  otherAPIRequestPara: any;
8
8
  maxHeight: number;
9
9
  onClickActionEvent: Function;
10
- authState?: any;
11
10
  };
12
11
  export declare const ReportWrapper: React.FC<TReportWrapper>;
13
12
  export {};
@@ -30,7 +30,6 @@ interface GridTableType {
30
30
  defaultSortOrder?: any;
31
31
  defaultHiddenColumns?: any;
32
32
  enablePagination?: boolean;
33
- authState?: any;
34
33
  }
35
34
  export declare const GridTable: FC<GridTableType>;
36
35
  export {};
@@ -1,3 +1,5 @@
1
+ import { currencySymbol } from "components/custom/getCurrencySymbol";
2
+ import { ComponentType } from "react";
1
3
  export interface FilterColumnType {
2
4
  Filter?: any;
3
5
  filterComponentType?: "valueFilter" | "valueDateFilter" | "rangeFilter" | "optionsFilter" | "multiValueFilter";
@@ -11,7 +13,125 @@ export interface RetrievalParametersProps {
11
13
  defaultData: any;
12
14
  retrievalParaValues: Function;
13
15
  metaData?: any;
14
- retrievalType?: String;
16
+ retrievalType?: string;
15
17
  loginState?: any;
16
18
  classes?: any;
17
19
  }
20
+ export interface ReportColumnsType {
21
+ /**
22
+ * Column name to display
23
+ */
24
+ columnName: string;
25
+ /**
26
+ * Unique id matching api key of that columns
27
+ */
28
+ accessor: string;
29
+ /**
30
+ * Column width to set in numbers
31
+ */
32
+ width?: number;
33
+ /**
34
+ * Specify type of cell
35
+ */
36
+ Cell?: ComponentType<any>;
37
+ Filter?: ComponentType<any>;
38
+ /**
39
+ * cell type
40
+ */
41
+ type?: string;
42
+ /**
43
+ * custom column filtering function
44
+ * @param rows all grid row data
45
+ * @param accessor current accessor in array
46
+ * @param inputValue user input value
47
+ * @returns filtered result in array
48
+ */
49
+ filter?: (rows: any, accessor: string[], inputValue: string) => any[];
50
+ /**
51
+ * Displays amount without currency symbol
52
+ */
53
+ isTotalWithoutCurrency?: boolean;
54
+ /**
55
+ * Displays amount with currency symbol
56
+ */
57
+ isTotalWithCurrency?: boolean;
58
+ /**
59
+ * Displays amount with currency symbol
60
+ */
61
+ isVisibleCurrSymbol?: boolean;
62
+ /**
63
+ * Specify currency symbol to display.
64
+ *
65
+ * Either use currency code like INR or specify column accessor to refer for currency code.
66
+ */
67
+ currencyRefColumn?: keyof typeof currencySymbol | (string & Record<never, never>);
68
+ isCurrencyCode?: boolean;
69
+ /**
70
+ * Specify the position of currency symbol
71
+ * @default "start"
72
+ */
73
+ currencySymbolPosition?: "start" | "end";
74
+ /**
75
+ * Specify alignment of cell content
76
+ * @default "left"
77
+ */
78
+ alignment?: "left" | "center" | "right";
79
+ /**
80
+ * Set true to hide column
81
+ */
82
+ isHiddenColumn?: boolean;
83
+ }
84
+ export interface ReportFilterProps {
85
+ accessor: string;
86
+ columnName: string;
87
+ filterComponentType: "rangeFilter" | "valueFilter" | "optionsFilter" | "valueDateFilter" | "multiValueFilter";
88
+ filterProps?: {
89
+ type?: "date" | "amount" | "number" | "value";
90
+ options?: any;
91
+ };
92
+ gridProps: {
93
+ xs?: number;
94
+ sm?: number;
95
+ md?: number;
96
+ lg?: number;
97
+ xl?: number;
98
+ };
99
+ }
100
+ export interface ReportMetaDataType {
101
+ title: string;
102
+ disableGroupBy?: boolean | "Y" | "N";
103
+ hideFooter?: boolean | "Y" | "N";
104
+ hideAmountIn?: boolean | "Y" | "N";
105
+ autoFetch?: boolean;
106
+ filters?: ReportFilterProps[];
107
+ retrievalType?: string;
108
+ columns: ReportColumnsType[];
109
+ groupBy?: string[];
110
+ enableServerSidePagination?: boolean;
111
+ }
112
+ export interface ReportGridProps {
113
+ metaData: any;
114
+ maxHeight?: number;
115
+ initialState?: any;
116
+ title: string;
117
+ options?: any;
118
+ hideFooter?: boolean | "Y" | "N";
119
+ showSerialNoColumn?: boolean | "Y" | "N";
120
+ onClose?: Function | null;
121
+ reportName?: string;
122
+ dataFetcher: Function;
123
+ autoFetch?: boolean;
124
+ hideAmountIn?: boolean | "Y" | "N";
125
+ reportID: string;
126
+ retrievalType?: string;
127
+ onClickActionEvent?: (index: number | string, id: string, data: any, queryFilters: any) => void;
128
+ otherAPIRequestPara?: any;
129
+ hideHeader?: boolean | "Y" | "N";
130
+ hideShowFiltersSwitch?: boolean | "Y" | "N";
131
+ defaultFilter?: any;
132
+ hideStatusBar?: boolean | "Y" | "N";
133
+ retrievalComponent?: React.ComponentType<RetrievalParametersProps>;
134
+ openDrawerFilter?: boolean;
135
+ onDoubleClickAction?: Function;
136
+ enableCaching?: boolean;
137
+ }
@@ -1 +1 @@
1
- export declare const ButtonRowCell: (props: any) => import("react/jsx-runtime").JSX.Element | null;
1
+ export declare const ButtonRowCell: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export declare const DeleteRowButton: (props: any) => import("react/jsx-runtime").JSX.Element | null;
1
+ export declare const DeleteRowButton: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -9,6 +9,5 @@ export type TReportProps = {
9
9
  title: string;
10
10
  pageNumber?: number;
11
11
  totalPageCount?: number;
12
- authState?: any;
13
12
  };
14
13
  export declare const ReportExportScreen: FC<TReportProps>;
package/dist/index.d.ts CHANGED
@@ -23,6 +23,7 @@ export * from "./components/custom/messageBoxWrapper";
23
23
  export * from "./components/custom/popupContext";
24
24
  export * from "./components/custom/popupMessage";
25
25
  export * from "./components/custom/popupReqest";
26
+ export * from "./components/custom/getCurrencySymbol";
26
27
  export * from "./registry/rulesEngine";
27
28
  export * from "./components/formcomponent";
28
29
  export * from "./components/formcomponent/masterDetails/types";
@@ -53,5 +54,6 @@ export * from "./components/report";
53
54
  export * from "./components/report/serverReport/ReportWrapper";
54
55
  export * from "./components/utils/reportExport/context/exportWorkerContext";
55
56
  export * from "./components/customNotistack";
56
- export type { RetrievalParametersProps } from "./components/report/types";
57
+ export * from "./components/report/types";
57
58
  export * from "./components/context/propertiesConfig/customProperties";
59
+ export { AuthContextProvider } from "./components/context/authContext/authContext";