@acuteinfo/common-base 1.0.16 → 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 (27) 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/dataTable/gridWrapper.d.ts +1 -2
  4. package/dist/components/dataTableStatic/types.d.ts +12 -3
  5. package/dist/components/dataTableStatic/utils/attachCombineValidationFns.d.ts +2 -1
  6. package/dist/components/dataTableStatic/utils/attachYupSchema.d.ts +2 -1
  7. package/dist/components/detailPopupGridData/GridDetailsWithHeader/detailsGridWithHeader.d.ts +1 -1
  8. package/dist/components/detailPopupGridData/GridDetailsWithHeader/type.d.ts +1 -0
  9. package/dist/components/dynamicForm/simpleForm.d.ts +2 -2
  10. package/dist/components/dynamicForm/style.d.ts +1 -1
  11. package/dist/components/dynamicForm/types.d.ts +2 -2
  12. package/dist/components/dynamicForm/utils/groupWiserenderer.d.ts +2 -2
  13. package/dist/components/formcomponent/filterform/filterForm.d.ts +2 -20
  14. package/dist/components/formcomponent/filterform/formMeta.d.ts +2 -12
  15. package/dist/components/formcomponent/filterform/type.d.ts +4 -0
  16. package/dist/components/formcomponent/masterDetails/masterDetailsForm.d.ts +2 -0
  17. package/dist/components/report/components/footerCell.d.ts +3 -1
  18. package/dist/components/report/gridTable.d.ts +1 -2
  19. package/dist/components/report/serverReport/ReportWrapper.d.ts +1 -2
  20. package/dist/components/report/serverReport/serverGridTable.d.ts +1 -2
  21. package/dist/components/utils/reportExport/ReportExportScreen.d.ts +1 -2
  22. package/dist/components/utils/utilFunctions/function.d.ts +1 -1
  23. package/dist/index.d.ts +1 -0
  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 +1 -2
  27. 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,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,7 +1,6 @@
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;
@@ -78,14 +77,21 @@ export interface GridColumnType {
78
77
  * Function to exclude component conditionally
79
78
  * @param value value of component if exists
80
79
  * @param original current grid row data
80
+ * @param data array of all row data
81
+ * @param index current row index
81
82
  * @returns boolean
82
83
  */
83
- shouldExclude?: (value: string | undefined, original: any) => boolean;
84
+ shouldExclude?: (value: string | undefined, original: any, data?: any, index?: number) => boolean;
84
85
  /**
85
86
  * Sets currency symbol position to start or end for currency component in grid
86
87
  * @default "start"
87
88
  */
88
89
  currencySymbolPosition?: "start" | "end";
90
+ /**
91
+ * Set true to show only delete icon for DeleteRowCell
92
+ * @default false
93
+ */
94
+ showDeleteIconOnly?: boolean;
89
95
  }
90
96
  export interface GridConfigType {
91
97
  dense?: boolean;
@@ -115,6 +121,9 @@ export interface GridConfigType {
115
121
  allowColumnHiding?: boolean;
116
122
  isCusrsorFocused?: boolean;
117
123
  hiddenFlag?: string;
124
+ searchPlaceholder?: string;
125
+ paginationText?: any;
126
+ footerNote?: any;
118
127
  }
119
128
  export interface GridMetaDataType {
120
129
  columns: GridColumnType[];
@@ -141,7 +150,7 @@ export interface GridWrapperPropTypes {
141
150
  hideFooter?: boolean;
142
151
  autoRefreshInterval?: any;
143
152
  onClickActionEvent?: any;
144
- authState?: AuthStateType;
153
+ authState?: any;
145
154
  /**
146
155
  * Sets alwaysAvailable action button at bottom of grid.
147
156
  * @default false
@@ -57,6 +57,7 @@ export declare const attachcombinedValidationFns: (columns: GridColumnType[]) =>
57
57
  isCurrencyCode?: boolean | undefined;
58
58
  disableAdornment?: boolean | undefined;
59
59
  setButtonName?: ((value: string | undefined, original: any) => string | undefined) | undefined;
60
- shouldExclude?: ((value: string | undefined, original: any) => boolean) | undefined;
60
+ shouldExclude?: ((value: string | undefined, original: any, data?: any, index?: number | undefined) => boolean) | undefined;
61
61
  currencySymbolPosition?: "end" | "start" | undefined;
62
+ showDeleteIconOnly?: boolean | undefined;
62
63
  }[];
@@ -57,6 +57,7 @@ export declare const attachYupSchemaValidator: (columns: GridColumnType[]) => {
57
57
  isCurrencyCode?: boolean | undefined;
58
58
  disableAdornment?: boolean | undefined;
59
59
  setButtonName?: ((value: string | undefined, original: any) => string | undefined) | undefined;
60
- shouldExclude?: ((value: string | undefined, original: any) => boolean) | undefined;
60
+ shouldExclude?: ((value: string | undefined, original: any, data?: any, index?: number | undefined) => boolean) | undefined;
61
61
  currencySymbolPosition?: "end" | "start" | undefined;
62
+ showDeleteIconOnly?: boolean | undefined;
62
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,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, subHeaderLabel, subHeaderLabelStyle }: {
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;
@@ -28,7 +28,7 @@ export declare const BottomControl: ({ wrapperChild, isSubmitting, handleSubmit,
28
28
  handleSubmit: any;
29
29
  classes: any;
30
30
  }) => import("react/jsx-runtime").JSX.Element;
31
- export declare const SimpleFormTitle: ({ formDisplayLabel, displayMode, hideDisplayModeInTitle, wrapperChild, serverSentError, serverSentErrorDetail, isSubmitting, classes, handleSubmit, controlsAtBottom, subHeaderLabel, subHeaderLabelStyle }: {
31
+ export declare const SimpleFormTitle: ({ formDisplayLabel, displayMode, hideDisplayModeInTitle, wrapperChild, serverSentError, serverSentErrorDetail, isSubmitting, classes, handleSubmit, controlsAtBottom, subHeaderLabel, subHeaderLabelStyle, }: {
32
32
  formDisplayLabel: any;
33
33
  displayMode: any;
34
34
  hideDisplayModeInTitle: any;
@@ -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">;
@@ -107,7 +107,7 @@ export type ExtendedFieldMetaDataTypeOptional = {
107
107
  [key: string]: FieldMetaDataTypeOptional;
108
108
  };
109
109
  export interface RenderFunctionType {
110
- (fieldObj: FieldMetaDataType, formRenderConfig: FormRenderConfigType, formName: string, componentProps?: ComponentTypeProps): JSX.Element;
110
+ (fieldObj: FieldMetaDataType, formRenderConfig: FormRenderConfigType, formName: string, componentProps?: ComponentTypeProps, authState?: any): JSX.Element;
111
111
  }
112
112
  export interface FormWrapperProps {
113
113
  metaData: MetaDataType;
@@ -117,7 +117,7 @@ export interface FormWrapperProps {
117
117
  displayMode?: "new" | "view" | "edit";
118
118
  hideTitleBar?: boolean;
119
119
  hideDisplayModeInTitle?: boolean;
120
- formStyle?: any;
120
+ formStyle?: CSSProperties;
121
121
  controlsAtBottom?: boolean;
122
122
  formState?: any;
123
123
  hideHeader?: boolean;
@@ -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 {};
@@ -1,5 +1,4 @@
1
1
  import { FC } from "react";
2
- import { AuthStateType } from "components/types";
3
2
  export type TReportProps = {
4
3
  globalFilter?: string;
5
4
  filters?: any[];
@@ -10,6 +9,6 @@ export type TReportProps = {
10
9
  title: string;
11
10
  pageNumber?: number;
12
11
  totalPageCount?: number;
13
- authState?: AuthStateType;
12
+ authState?: any;
14
13
  };
15
14
  export declare const ReportExportScreen: FC<TReportProps>;
@@ -6,7 +6,7 @@ export declare const ChangeJsonValue: (data: any, obj: any) => any;
6
6
  export declare const convertBlobToBase64: (blob: any) => Promise<any>;
7
7
  export declare const getAuthorizeTokenText: (token: any, token_type: any) => string;
8
8
  export declare const getCurrentDateinLong: () => number;
9
- export declare const ValidatePassword: (pwd: any) => string;
9
+ export declare const ValidatePassword: (pwd: any) => "" | "Password is Required" | "Password must be 8-16 characters long, containing at least one uppercase letter, one lowercase letter, one number, and one special character, with no spaces allowed." | "Password must be between 8 and 16 characters long.";
10
10
  export declare const GetAllChieldMenuData: (data: any, isCheckUserCode?: boolean) => any;
11
11
  export declare const transformBlobData: (data: any) => any;
12
12
  export declare const transformDetailsData: (newData: any, oldData: any) => {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import "regenerator-runtime/runtime";
2
2
  import "buffer";
3
3
  import "./components/tableCellComponents";
4
+ export { formatCurrency } from "./components/tableCellComponents/currencyRowCellRenderer";
4
5
  export * from "./cache";
5
6
  export * from "./components/dataTableStatic";
6
7
  export * from "./components/tableCellComponents";