@acuteinfo/common-base 1.2.37 → 1.2.38

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 (26) hide show
  1. package/dist/components/common/arrayField/arrayField2.d.ts +3 -1
  2. package/dist/components/context/propertiesConfig/customProperties.d.ts +5 -0
  3. package/dist/components/custom/Remarks.d.ts +3 -1
  4. package/dist/components/custom/advanceFilter.d.ts +2 -1
  5. package/dist/components/custom/popupContext.d.ts +3 -0
  6. package/dist/components/custom/popupMessage.d.ts +3 -1
  7. package/dist/components/custom/popupReqest.d.ts +3 -1
  8. package/dist/components/dataTable/gridWrapper.d.ts +2 -0
  9. package/dist/components/dataTableStatic/grid.d.ts +2 -1
  10. package/dist/components/dataTableStatic/types.d.ts +2 -0
  11. package/dist/components/detailPopupGridData/GridDetailsWithHeader/detailsGridWithHeader.d.ts +1 -1
  12. package/dist/components/detailPopupGridData/GridDetailsWithHeader/type.d.ts +2 -0
  13. package/dist/components/dynamicForm/types.d.ts +2 -0
  14. package/dist/components/formcomponent/filterform/type.d.ts +2 -0
  15. package/dist/components/formcomponent/masterDetails/masterDetailsForm.d.ts +2 -0
  16. package/dist/components/report/gridTable.d.ts +1 -0
  17. package/dist/components/report/serverReport/ReportWrapper.d.ts +2 -0
  18. package/dist/components/report/serverReport/serverGridTable.d.ts +1 -0
  19. package/dist/components/report/types.d.ts +2 -0
  20. package/dist/components/utils/reportExport/ReportExportScreen.d.ts +1 -0
  21. package/dist/components/utils/reportExport/exportFunctions/metaData.d.ts +181 -2
  22. package/dist/components/utils/utilFunctions/function.d.ts +14 -0
  23. package/dist/index.js +13 -13
  24. package/dist/index.js.map +1 -1
  25. package/dist/pages_audit/common/serverGrid/serverGrid.d.ts +4 -0
  26. package/package.json +1 -1
@@ -29,9 +29,10 @@ export interface ArrayField2Props {
29
29
  changeRowOrder?: boolean;
30
30
  noRecordMessage?: string;
31
31
  hideRemoveIconOnSingleRecord?: boolean;
32
+ enableEnterToFocus?: boolean;
32
33
  }
33
34
  export declare const ArrayField2: FC<ArrayField2Props>;
34
- 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, selectedRowIndex, setSelectedRowIndex, hideRemoveIconOnSingleRecord, }: {
35
+ 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, selectedRowIndex, setSelectedRowIndex, hideRemoveIconOnSingleRecord, enableEnterToFocus, }: {
35
36
  row: any;
36
37
  getAllRowsValues: any;
37
38
  fieldKey: any;
@@ -57,4 +58,5 @@ export declare const ArrayFieldRow: ({ row, getAllRowsValues, fieldKey, oneRow,
57
58
  selectedRowIndex: any;
58
59
  setSelectedRowIndex: any;
59
60
  hideRemoveIconOnSingleRecord: any;
61
+ enableEnterToFocus: any;
60
62
  }) => import("react/jsx-runtime").JSX.Element;
@@ -113,6 +113,11 @@ export interface CustomProperties {
113
113
  * @default false
114
114
  */
115
115
  disableColumnFilters?: boolean;
116
+ /**
117
+ * Set true to enable focus to next/previous field on pressing enter/shift+enter keys
118
+ * @default false
119
+ */
120
+ enableEnterToFocus?: boolean;
116
121
  }
117
122
  interface ContextProps {
118
123
  config?: CustomProperties;
@@ -1,4 +1,4 @@
1
- export declare const RemarksAPIWrapper: ({ TitleText, onActionNo, onActionYes, isRequired, isEntertoSubmit, AcceptbuttonLabelText, CanceltbuttonLabelText, isLoading, open, label, placeholder, defaultValue, rows, customRequiredMessage, maxLength, showMaxLength, }: {
1
+ export declare const RemarksAPIWrapper: ({ TitleText, onActionNo, onActionYes, isRequired, isEntertoSubmit, AcceptbuttonLabelText, CanceltbuttonLabelText, isLoading, open, label, placeholder, defaultValue, rows, customRequiredMessage, maxLength, showMaxLength, enableEnterToFocus, focusScopeId, }: {
2
2
  TitleText: any;
3
3
  onActionNo: any;
4
4
  onActionYes: any;
@@ -15,4 +15,6 @@ export declare const RemarksAPIWrapper: ({ TitleText, onActionNo, onActionYes, i
15
15
  customRequiredMessage?: string | undefined;
16
16
  maxLength?: number | undefined;
17
17
  showMaxLength?: boolean | undefined;
18
+ enableEnterToFocus?: undefined;
19
+ focusScopeId?: string | undefined;
18
20
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
- export declare const AdvanceFilter: ({ column, filters }: {
1
+ export declare const AdvanceFilter: ({ column, filters, enableEnterToFocus }: {
2
2
  column: any;
3
3
  filters: any;
4
+ enableEnterToFocus: any;
4
5
  }) => import("react/jsx-runtime").JSX.Element | null;
@@ -8,6 +8,8 @@ type TMessageBoxParams = {
8
8
  buttonNames?: TButtonName[];
9
9
  defFocusBtnName?: string;
10
10
  loadingBtnName?: string[];
11
+ enableEnterToFocus?: boolean;
12
+ focusScopeId?: string;
11
13
  };
12
14
  type TPopupContextType = {
13
15
  MessageBox: (params: TMessageBoxParams) => Promise<TButtonName> | any;
@@ -29,6 +31,7 @@ interface ProvidrerProps {
29
31
  ERROR?: IconConfigType;
30
32
  CONFIRM?: IconConfigType;
31
33
  };
34
+ enableEnterToFocus?: boolean;
32
35
  };
33
36
  }
34
37
  export declare const PopupContextProvider: React.FC<React.PropsWithChildren<ProvidrerProps>>;
@@ -1,4 +1,4 @@
1
- export declare const PopupMessageAPIWrapper: ({ MessageTitle, Message, onActionYes, onActionNo, rows, open, loading, }: {
1
+ export declare const PopupMessageAPIWrapper: ({ MessageTitle, Message, onActionYes, onActionNo, rows, open, loading, enableEnterToFocus, focusScopeId, }: {
2
2
  MessageTitle: any;
3
3
  Message: any;
4
4
  onActionYes: any;
@@ -6,4 +6,6 @@ export declare const PopupMessageAPIWrapper: ({ MessageTitle, Message, onActionY
6
6
  rows: any;
7
7
  open?: boolean | undefined;
8
8
  loading?: boolean | undefined;
9
+ enableEnterToFocus?: undefined;
10
+ focusScopeId?: string | undefined;
9
11
  }) => import("react/jsx-runtime").JSX.Element;
@@ -10,6 +10,8 @@ interface PopupRequestProps {
10
10
  defFocusBtnName?: string;
11
11
  loadingBtnName?: string;
12
12
  messageBoxConfig?: any;
13
+ enableEnterToFocus?: boolean;
14
+ focusScopeId?: string;
13
15
  }
14
- export declare const PopupRequestWrapper: ({ MessageTitle, Message, onClickButton, buttonNames, rows, open, loading, icon, defFocusBtnName, loadingBtnName, messageBoxConfig, }: PopupRequestProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const PopupRequestWrapper: ({ MessageTitle, Message, onClickButton, buttonNames, rows, open, loading, icon, defFocusBtnName, loadingBtnName, messageBoxConfig, enableEnterToFocus, focusScopeId, }: PopupRequestProps) => import("react/jsx-runtime").JSX.Element;
15
17
  export {};
@@ -17,6 +17,8 @@ interface GridWrapperPropsType {
17
17
  variant?: "standard" | "contained" | "outlined";
18
18
  autoFetch?: boolean;
19
19
  headerToolbarStyle?: SxProps;
20
+ enableEnterToFocus?: boolean;
21
+ focusScopeId?: string;
20
22
  }
21
23
  export declare const GridWrapper: React.ForwardRefExoticComponent<GridWrapperPropsType & React.RefAttributes<any>>;
22
24
  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, occupiedHeight, gridProps, pageSizes, defaultPageSize, enablePagination, allowRowSelection, hideNoDataFound, refetchData, hiddenFlag, autoRefreshInterval, allowFilter, filterMeta, allowColumnHiding, defaultFilter, isCusrsorFocused, onButtonActionHandel, controlsAtBottom, actionContextAtBottom, headerToolbarStyle, disableMultipleRowSelect, columnHeaderStyle, variant, enablePaginationInput, defaultSelectedRowId, footerNote, footerNoteStyles, paginationText, searchPlaceholder, enableExport, subGridLabel, hideActionBar, finalMetaData, externalExportState, onExportModalClose, enablePdfPrint, reportTemplateCode, enablePivot, handleClickAction, RenderSubHeader, subHeaderComponentProps, gridPaperProps, }: {
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, occupiedHeight, gridProps, pageSizes, defaultPageSize, enablePagination, allowRowSelection, hideNoDataFound, refetchData, hiddenFlag, autoRefreshInterval, allowFilter, filterMeta, allowColumnHiding, defaultFilter, isCusrsorFocused, onButtonActionHandel, controlsAtBottom, actionContextAtBottom, headerToolbarStyle, disableMultipleRowSelect, columnHeaderStyle, variant, enablePaginationInput, defaultSelectedRowId, footerNote, footerNoteStyles, paginationText, searchPlaceholder, enableExport, subGridLabel, hideActionBar, finalMetaData, externalExportState, onExportModalClose, enablePdfPrint, reportTemplateCode, enablePivot, handleClickAction, RenderSubHeader, subHeaderComponentProps, gridPaperProps, enableEnterToFocus, }: {
2
2
  label: any;
3
3
  dense: any;
4
4
  columns: any;
@@ -64,4 +64,5 @@ export declare const DataGrid: ({ label, dense, columns, data, loading, getRowId
64
64
  RenderSubHeader: any;
65
65
  subHeaderComponentProps: any;
66
66
  gridPaperProps: any;
67
+ enableEnterToFocus: any;
67
68
  }) => import("react/jsx-runtime").JSX.Element;
@@ -211,6 +211,8 @@ export interface GridMetaDataType {
211
211
  lanTranslate?: any;
212
212
  }
213
213
  export interface GridWrapperPropTypes {
214
+ focusScopeId?: string;
215
+ enableEnterToFocus?: boolean;
214
216
  finalMetaData: GridMetaDataType;
215
217
  data: any;
216
218
  setData: any;
@@ -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, onFieldAction, formComponentPropStyles, dialogProps, }: 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, onFieldAction, formComponentPropStyles, dialogProps, enableEnterToFocus, focusScopeId, }: DetailsGridWithHeaderArguType) => import("react/jsx-runtime").JSX.Element;
@@ -35,4 +35,6 @@ export interface DetailsGridWithHeaderArguType {
35
35
  paperStyle?: SxProps;
36
36
  };
37
37
  dialogProps?: Optional<DialogProps>;
38
+ enableEnterToFocus?: boolean;
39
+ focusScopeId?: string;
38
40
  }
@@ -134,6 +134,8 @@ export interface FormWrapperProps {
134
134
  subHeaderLabelStyle?: SxProps;
135
135
  children?: ReactNode | Function;
136
136
  formHeaderStyle?: SxProps;
137
+ enableEnterToFocus?: boolean;
138
+ focusScopeId?: string;
137
139
  }
138
140
  export interface FormProps {
139
141
  fields: GroupWiseRenderedFieldsType;
@@ -77,4 +77,6 @@ export interface FormComponentViewProps {
77
77
  };
78
78
  paperStyle?: SxProps;
79
79
  };
80
+ enableEnterToFocus?: boolean;
81
+ focusScopeId?: string;
80
82
  }
@@ -34,5 +34,7 @@ export interface MasterDetailsArgumentType {
34
34
  headerToolbarStyle?: SxProps;
35
35
  refetchData?: any;
36
36
  formHeaderStyle?: SxProps;
37
+ enableEnterToFocus?: boolean;
38
+ focusScopeId?: string;
37
39
  }
38
40
  export declare const MasterDetailsForm: import("react").ForwardRefExoticComponent<MasterDetailsArgumentType & import("react").RefAttributes<any>>;
@@ -54,6 +54,7 @@ interface GridTableType {
54
54
  getReportData?: (filters: any[], queryFilters: any, globalFilter: string | undefined, originalData: any, filteredData: any) => void;
55
55
  disableFilters?: boolean;
56
56
  headerToolbarStyle?: SxProps;
57
+ enableEnterToFocus?: boolean;
57
58
  }
58
59
  export declare const GridTable: FC<GridTableType>;
59
60
  export {};
@@ -13,6 +13,8 @@ type TReportWrapper = {
13
13
  disableFilters?: boolean;
14
14
  options?: Record<PropertyKey, any>;
15
15
  headerToolbarStyle?: SxProps;
16
+ enableEnterToFocus?: boolean;
17
+ focusScopeId?: string;
16
18
  };
17
19
  export declare const ReportWrapper: React.FC<TReportWrapper>;
18
20
  export {};
@@ -45,6 +45,7 @@ interface GridTableType {
45
45
  defaultFilter?: any;
46
46
  disableFilters?: boolean;
47
47
  headerToolbarStyle?: SxProps;
48
+ enableEnterToFocus?: boolean;
48
49
  }
49
50
  export declare const GridTable: FC<GridTableType>;
50
51
  export {};
@@ -209,4 +209,6 @@ export interface ReportGridProps {
209
209
  */
210
210
  disableFilters?: boolean;
211
211
  headerToolbarStyle?: SxProps;
212
+ enableEnterToFocus?: boolean;
213
+ focusScopeId?: string;
212
214
  }
@@ -11,5 +11,6 @@ export type TReportProps = {
11
11
  totalPageCount?: number;
12
12
  enablePdfPrint?: boolean;
13
13
  reportTemplateCode?: string;
14
+ enableEnterToFocus?: boolean;
14
15
  };
15
16
  export declare const ReportExportScreen: FC<TReportProps>;
@@ -1,2 +1,181 @@
1
- import { MetaDataType } from "components/dynamicForm";
2
- export declare const exportReportFormMetaData: MetaDataType;
1
+ export declare const exportReportFormMetaData: {
2
+ form: {
3
+ name: string;
4
+ label: string;
5
+ resetFieldOnUnmount: boolean;
6
+ validationRun: string;
7
+ submitAction: string;
8
+ render: {
9
+ ordering: string;
10
+ renderType: string;
11
+ gridConfig: {
12
+ item: {
13
+ xs: number;
14
+ sm: number;
15
+ md: number;
16
+ };
17
+ container: {
18
+ direction: string;
19
+ spacing: number;
20
+ };
21
+ };
22
+ };
23
+ componentProps: {
24
+ textField: {
25
+ fullWidth: boolean;
26
+ };
27
+ select: {
28
+ fullWidth: boolean;
29
+ };
30
+ datePicker: {
31
+ fullWidth: boolean;
32
+ };
33
+ numberFormat: {
34
+ fullWidth: boolean;
35
+ };
36
+ inputMask: {
37
+ fullWidth: boolean;
38
+ };
39
+ datetimePicker: {
40
+ fullWidth: boolean;
41
+ };
42
+ };
43
+ };
44
+ fields: ({
45
+ render: {
46
+ componentType: string;
47
+ };
48
+ name: string;
49
+ label: string;
50
+ placeholder: string;
51
+ runPostValidationForInitValue: boolean;
52
+ options: never[];
53
+ isFieldFocused: boolean;
54
+ validationRun: string;
55
+ postValidationSetCrossFieldValues: (curr: any, formState: any) => Promise<{
56
+ EXPORT_TYPE?: undefined;
57
+ SHOW_HEADER?: undefined;
58
+ PAGE_SIZE?: undefined;
59
+ ORIENTATION?: undefined;
60
+ } | {
61
+ EXPORT_TYPE: {
62
+ value: any;
63
+ };
64
+ SHOW_HEADER: {
65
+ value: any;
66
+ };
67
+ PAGE_SIZE: {
68
+ value: any;
69
+ };
70
+ ORIENTATION: {
71
+ value: any;
72
+ };
73
+ }>;
74
+ shouldExclude: (_: any, __: any, formState: any) => boolean;
75
+ GridProps: {
76
+ xs: number;
77
+ md: number;
78
+ sm: number;
79
+ };
80
+ required?: undefined;
81
+ defaultValue?: undefined;
82
+ defaultOptionLabel?: undefined;
83
+ schemaValidation?: undefined;
84
+ dependentFields?: undefined;
85
+ ignoreInSubmit?: undefined;
86
+ fullWidth?: undefined;
87
+ } | {
88
+ render: {
89
+ componentType: string;
90
+ };
91
+ name: string;
92
+ label: string;
93
+ required: boolean;
94
+ defaultValue: string;
95
+ defaultOptionLabel: string;
96
+ options: {
97
+ label: string;
98
+ value: string;
99
+ }[];
100
+ validationRun: string;
101
+ postValidationSetCrossFieldValues: (current: any, formState: any) => {};
102
+ schemaValidation: {
103
+ type: string;
104
+ rules: {
105
+ name: string;
106
+ params: string[];
107
+ }[];
108
+ };
109
+ GridProps: {
110
+ xs: number;
111
+ md: number;
112
+ sm: number;
113
+ };
114
+ placeholder?: undefined;
115
+ runPostValidationForInitValue?: undefined;
116
+ isFieldFocused?: undefined;
117
+ shouldExclude?: undefined;
118
+ dependentFields?: undefined;
119
+ ignoreInSubmit?: undefined;
120
+ fullWidth?: undefined;
121
+ } | {
122
+ render: {
123
+ componentType: string;
124
+ };
125
+ name: string;
126
+ label: string;
127
+ defaultValue: string;
128
+ defaultOptionLabel: string;
129
+ dependentFields: string[];
130
+ ignoreInSubmit: (dependentFields: any) => boolean;
131
+ shouldExclude: (_: any, dependentFieldsValues: any, __: any) => boolean;
132
+ options: {
133
+ label: string;
134
+ value: string;
135
+ }[];
136
+ required: boolean;
137
+ schemaValidation: {
138
+ type: string;
139
+ rules: {
140
+ name: string;
141
+ params: string[];
142
+ }[];
143
+ };
144
+ GridProps: {
145
+ xs: number;
146
+ md: number;
147
+ sm: number;
148
+ };
149
+ placeholder?: undefined;
150
+ runPostValidationForInitValue?: undefined;
151
+ isFieldFocused?: undefined;
152
+ validationRun?: undefined;
153
+ postValidationSetCrossFieldValues?: undefined;
154
+ fullWidth?: undefined;
155
+ } | {
156
+ render: {
157
+ componentType: string;
158
+ };
159
+ name: string;
160
+ label: string;
161
+ defaultValue: boolean;
162
+ GridProps: {
163
+ xs: number;
164
+ md: number;
165
+ sm: number;
166
+ };
167
+ fullWidth: boolean;
168
+ dependentFields: string[];
169
+ ignoreInSubmit: (dependentFields: any) => boolean;
170
+ shouldExclude: (_: any, dependentFieldsValues: any, __: any) => boolean;
171
+ placeholder?: undefined;
172
+ runPostValidationForInitValue?: undefined;
173
+ options?: undefined;
174
+ isFieldFocused?: undefined;
175
+ validationRun?: undefined;
176
+ postValidationSetCrossFieldValues?: undefined;
177
+ required?: undefined;
178
+ defaultOptionLabel?: undefined;
179
+ schemaValidation?: undefined;
180
+ })[];
181
+ };
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export declare const GetMaxCdForDetails: (data: any, keys: any) => number;
2
3
  export declare const GetMaxDisplaySequenceCd: (data: any, keys: any) => number;
3
4
  export declare const base64toBlob: (b64Data: any, contentType?: string, sliceSize?: number) => Blob;
@@ -59,3 +60,16 @@ export declare const getDynamicLabel: (path: string, data: any, setScreenCode?:
59
60
  * @returns css variable value in string
60
61
  */
61
62
  export declare const getCssVariable: (variableName: string) => string;
63
+ /**
64
+ * Enables Enter-to-focus navigation within a form or a scoped group.
65
+ * If `scopeId` is provided, the function searches all elements with
66
+ * `data-scope-id="<scopeId>"` and cycles focus within them.
67
+ * Otherwise, focus is cycled inside the current container only.
68
+ *
69
+ * Moves forward on Enter and backward on Shift+Enter.
70
+ *
71
+ * @param event React keyboard event (Enter key triggers navigation)
72
+ * @param scopeId Optional ID used to target elements with `data-scope-id`
73
+ * @returns void
74
+ */
75
+ export declare const handleEnterToFocus: (event: React.KeyboardEvent<HTMLElement>, scopeId?: string) => void;