@acuteinfo/common-base 1.0.13 → 1.0.15
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.
- package/dist/components/common/autocomplete/autocomplete.d.ts +1 -0
- package/dist/components/common/checkbox/checkbox.d.ts +1 -0
- package/dist/components/common/select/select.d.ts +2 -0
- package/dist/components/common/textField/textField.d.ts +2 -0
- package/dist/components/context/propertiesConfig/customProperties.d.ts +4 -3
- package/dist/components/custom/Remarks.d.ts +3 -1
- package/dist/components/custom/popupContext.d.ts +2 -0
- package/dist/components/custom/popupReqest.d.ts +3 -1
- package/dist/components/dataTable/types.d.ts +6 -1
- package/dist/components/dataTableStatic/components/filters/globalFilter.d.ts +2 -1
- package/dist/components/dataTableStatic/grid.d.ts +12 -1
- package/dist/components/dataTableStatic/style.d.ts +1 -0
- package/dist/components/dataTableStatic/types.d.ts +45 -0
- package/dist/components/dataTableStatic/utils/attachCombineValidationFns.d.ts +1 -0
- package/dist/components/dataTableStatic/utils/attachYupSchema.d.ts +1 -0
- package/dist/components/dynamicForm/style.d.ts +1 -1
- package/dist/components/report/components/footerCell.d.ts +3 -3
- package/dist/components/report/components/index.d.ts +1 -0
- package/dist/components/report/components/timeCell.d.ts +1 -0
- package/dist/components/report/gridTable.d.ts +1 -0
- package/dist/components/tableCellComponents/currencyRowCellRenderer.d.ts +1 -0
- package/dist/components/utils/checkObjectAllKeyisEmpty.d.ts +5 -0
- package/dist/components/utils/utilFunctions/function.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ interface AutoCompleteExtendedProps {
|
|
|
27
27
|
disableAdornment?: boolean;
|
|
28
28
|
ignoreInSubmit?: boolean;
|
|
29
29
|
textFieldStyle?: SxProps;
|
|
30
|
+
setFieldLabel?: (dependentFields?: any, value?: any) => string | null | undefined;
|
|
30
31
|
}
|
|
31
32
|
type MyAutocompleteProps = Merge<AutocompleteProps<OptionsProps, true, true, true>, AutoCompleteExtendedProps>;
|
|
32
33
|
export type MyAllAutocompleteProps = Merge<MyAutocompleteProps, UseFieldHookProps>;
|
|
@@ -17,6 +17,7 @@ interface MyCheckboxExtendedProps {
|
|
|
17
17
|
GridProps?: GridProps;
|
|
18
18
|
enableGrid: boolean;
|
|
19
19
|
ignoreInSubmit?: boolean;
|
|
20
|
+
setFieldLabel?: (dependentFields?: any, value?: any) => string | null | undefined;
|
|
20
21
|
}
|
|
21
22
|
export type MyCheckboxAllProps = Merge<MyCheckboxMixedProps, MyCheckboxExtendedProps>;
|
|
22
23
|
declare const MyCheckbox: FC<MyCheckboxAllProps>;
|
|
@@ -29,6 +29,8 @@ interface MySelectExtendedProps {
|
|
|
29
29
|
alwaysRun?: boolean;
|
|
30
30
|
touchAndValidate?: boolean;
|
|
31
31
|
};
|
|
32
|
+
setFieldLabel?: (dependentFields?: any, value?: any) => string | null | undefined;
|
|
33
|
+
label?: string;
|
|
32
34
|
}
|
|
33
35
|
export type MySelectAllProps = Merge<MySelectProps, MySelectExtendedProps>;
|
|
34
36
|
declare const MySelect: FC<MySelectAllProps>;
|
|
@@ -28,6 +28,8 @@ interface MyGridExtendedProps {
|
|
|
28
28
|
touchAndValidate?: any;
|
|
29
29
|
};
|
|
30
30
|
ignoreInSubmit?: boolean;
|
|
31
|
+
setFieldLabel?: (dependentFields?: any, value?: any) => string | null | undefined;
|
|
32
|
+
label?: string;
|
|
31
33
|
}
|
|
32
34
|
type MyTextFieldAllProps = Merge<TextFieldProps, MyGridExtendedProps>;
|
|
33
35
|
export type MyTextFieldProps = UseFieldHookProps & MyTextFieldAllProps;
|
|
@@ -14,9 +14,10 @@ interface CustomProperties {
|
|
|
14
14
|
dynamicAmountSymbol?: keyof typeof currencySymbol;
|
|
15
15
|
/**
|
|
16
16
|
* sets default amount group style for amount fields
|
|
17
|
+
* works for form fields
|
|
17
18
|
* @default "lakh"
|
|
18
19
|
*/
|
|
19
|
-
dynamicAmountGroupStyle?:
|
|
20
|
+
dynamicAmountGroupStyle?: "lakh" | "thousand" | "wan" | "none";
|
|
20
21
|
/**
|
|
21
22
|
* sets default currency format for gridWrapper
|
|
22
23
|
* @default "en-IN"
|
|
@@ -28,7 +29,7 @@ interface CustomProperties {
|
|
|
28
29
|
*/
|
|
29
30
|
decimalCount?: number;
|
|
30
31
|
/**
|
|
31
|
-
* sets default
|
|
32
|
+
* sets default date format for datePicker fields
|
|
32
33
|
* @default "dd/MM/yyyy"
|
|
33
34
|
*/
|
|
34
35
|
commonDateFormat?: string;
|
|
@@ -52,5 +53,5 @@ interface ContextProps {
|
|
|
52
53
|
config?: CustomProperties;
|
|
53
54
|
}
|
|
54
55
|
export declare const CustomPropertiesConfigurationProvider: FC<PropsWithChildren<ContextProps>>;
|
|
55
|
-
export declare const
|
|
56
|
+
export declare const usePropertiesConfigContext: () => CustomProperties;
|
|
56
57
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const RemarksAPIWrapper: ({ TitleText, onActionNo, onActionYes, isRequired, isEntertoSubmit, AcceptbuttonLabelText, CanceltbuttonLabelText, isLoading, open, rows, }: {
|
|
1
|
+
export declare const RemarksAPIWrapper: ({ TitleText, onActionNo, onActionYes, isRequired, isEntertoSubmit, AcceptbuttonLabelText, CanceltbuttonLabelText, isLoading, open, label, defaultValue, rows, }: {
|
|
2
2
|
TitleText: any;
|
|
3
3
|
onActionNo: any;
|
|
4
4
|
onActionYes: any;
|
|
@@ -8,5 +8,7 @@ export declare const RemarksAPIWrapper: ({ TitleText, onActionNo, onActionYes, i
|
|
|
8
8
|
CanceltbuttonLabelText?: string | undefined;
|
|
9
9
|
isLoading?: boolean | undefined;
|
|
10
10
|
open?: boolean | undefined;
|
|
11
|
+
label?: string | undefined;
|
|
12
|
+
defaultValue?: string | undefined;
|
|
11
13
|
rows: any;
|
|
12
14
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const PopupRequestWrapper: ({ MessageTitle, Message, onClickButton, buttonNames, rows, open, loading, icon, }: {
|
|
1
|
+
export declare const PopupRequestWrapper: ({ MessageTitle, Message, onClickButton, buttonNames, rows, open, loading, icon, defFocusBtnName, loadingBtnName, }: {
|
|
2
2
|
MessageTitle: any;
|
|
3
3
|
Message: any;
|
|
4
4
|
onClickButton: any;
|
|
@@ -7,4 +7,6 @@ export declare const PopupRequestWrapper: ({ MessageTitle, Message, onClickButto
|
|
|
7
7
|
open?: boolean | undefined;
|
|
8
8
|
loading?: boolean | undefined;
|
|
9
9
|
icon?: string | undefined;
|
|
10
|
+
defFocusBtnName?: string | undefined;
|
|
11
|
+
loadingBtnName?: string | undefined;
|
|
10
12
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CellComponentType } from "components/tableCellComponents";
|
|
2
|
-
import { ReactNode } from "react";
|
|
2
|
+
import { CSSProperties, ReactNode } from "react";
|
|
3
3
|
export interface GridColumnType {
|
|
4
4
|
columnName: string;
|
|
5
5
|
accessor: string;
|
|
@@ -73,6 +73,7 @@ export interface ActionTypes {
|
|
|
73
73
|
alwaysAvailable?: boolean;
|
|
74
74
|
shouldExclude?: any;
|
|
75
75
|
isNodataThenShow?: boolean;
|
|
76
|
+
onEnterSubmit?: boolean;
|
|
76
77
|
}
|
|
77
78
|
export interface RenderActionType {
|
|
78
79
|
actions: ActionTypes[];
|
|
@@ -80,6 +81,9 @@ export interface RenderActionType {
|
|
|
80
81
|
selectedRows: any;
|
|
81
82
|
buttonTextColor?: string;
|
|
82
83
|
filteredRows?: any;
|
|
84
|
+
buttonBackground?: string;
|
|
85
|
+
style?: CSSProperties;
|
|
86
|
+
submitButtonRef?: any;
|
|
83
87
|
}
|
|
84
88
|
export interface TableActionType {
|
|
85
89
|
selectedFlatRows: any;
|
|
@@ -93,6 +97,7 @@ export interface TableActionType {
|
|
|
93
97
|
dense?: boolean;
|
|
94
98
|
handleClose?: any;
|
|
95
99
|
authState?: any;
|
|
100
|
+
submitButtonRef?: any;
|
|
96
101
|
}
|
|
97
102
|
export interface GridContextType {
|
|
98
103
|
gridCode: any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare const GlobalFilter: ({ preGlobalFilteredRows, globalFilter, setGlobalFilter, }: {
|
|
1
|
+
export declare const GlobalFilter: ({ preGlobalFilteredRows, globalFilter, setGlobalFilter, searchPlaceholder, }: {
|
|
2
2
|
preGlobalFilteredRows: any;
|
|
3
3
|
globalFilter: any;
|
|
4
4
|
setGlobalFilter: any;
|
|
5
|
+
searchPlaceholder: any;
|
|
5
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const DataGrid: ({ label, dense, columns, data, loading, getRowId, defaultColumn, allowColumnReordering, disableSorting, defaultHiddenColumns, defaultSortOrder, defaultGroupBy, multipleActions, singleActions, doubleClickAction, alwaysAvailableAction, setGridAction, updateGridData, hideFooter, hideHeader, disableGlobalFilter, disableGroupBy, disableLoader, containerHeight, gridProps, pageSizes, defaultPageSize, enablePagination, allowRowSelection, hideNoDataFound, refetchData, hiddenFlag, autoRefreshInterval, allowFilter, filterMeta, allowColumnHiding, defaultFilter, isCusrsorFocused, onButtonActionHandel, authState, }: {
|
|
1
|
+
export declare const DataGrid: ({ label, dense, columns, data, loading, getRowId, defaultColumn, allowColumnReordering, disableSorting, defaultHiddenColumns, defaultSortOrder, defaultGroupBy, multipleActions, singleActions, doubleClickAction, alwaysAvailableAction, setGridAction, updateGridData, hideFooter, hideHeader, disableGlobalFilter, disableGroupBy, disableLoader, containerHeight, gridProps, pageSizes, defaultPageSize, enablePagination, allowRowSelection, hideNoDataFound, refetchData, hiddenFlag, autoRefreshInterval, allowFilter, filterMeta, allowColumnHiding, defaultFilter, isCusrsorFocused, onButtonActionHandel, authState, controlsAtBottom, actionContextAtBottom, headerToolbarStyle, disableMultipleRowSelect, columnHeaderStyle, variant, defaultSelectedRowId, footerNote, paginationText, searchPlaceholder, enableExport }: {
|
|
2
2
|
label: any;
|
|
3
3
|
dense: any;
|
|
4
4
|
columns: any;
|
|
@@ -39,4 +39,15 @@ export declare const DataGrid: ({ label, dense, columns, data, loading, getRowId
|
|
|
39
39
|
isCusrsorFocused: any;
|
|
40
40
|
onButtonActionHandel: any;
|
|
41
41
|
authState: any;
|
|
42
|
+
controlsAtBottom: any;
|
|
43
|
+
actionContextAtBottom: any;
|
|
44
|
+
headerToolbarStyle: any;
|
|
45
|
+
disableMultipleRowSelect: any;
|
|
46
|
+
columnHeaderStyle: any;
|
|
47
|
+
variant: any;
|
|
48
|
+
defaultSelectedRowId: any;
|
|
49
|
+
footerNote: any;
|
|
50
|
+
paginationText: any;
|
|
51
|
+
searchPlaceholder: any;
|
|
52
|
+
enableExport: any;
|
|
42
53
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"outlinedClass">;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SxProps } from "@mui/material";
|
|
1
2
|
import { ActionTypes } from "components/dataTable/types";
|
|
2
3
|
import { CellComponentType } from "components/tableCellComponents";
|
|
3
4
|
import { AuthStateType } from "components/types";
|
|
@@ -74,6 +75,11 @@ export interface GridColumnType {
|
|
|
74
75
|
* @returns boolean
|
|
75
76
|
*/
|
|
76
77
|
shouldExclude?: (value: string | undefined, original: any) => boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Sets currency symbol position to start or end for currency component in grid
|
|
80
|
+
* @default "start"
|
|
81
|
+
*/
|
|
82
|
+
currencySymbolPosition?: "start" | "end";
|
|
77
83
|
}
|
|
78
84
|
export interface GridConfigType {
|
|
79
85
|
dense?: boolean;
|
|
@@ -130,6 +136,45 @@ export interface GridWrapperPropTypes {
|
|
|
130
136
|
autoRefreshInterval?: any;
|
|
131
137
|
onClickActionEvent?: any;
|
|
132
138
|
authState?: AuthStateType;
|
|
139
|
+
/**
|
|
140
|
+
* Sets alwaysAvailable action button at bottom of grid.
|
|
141
|
+
* @default false
|
|
142
|
+
*/
|
|
143
|
+
controlsAtBottom?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Sets action buttons in context menu of grid row at bottom of grid.
|
|
146
|
+
* @default false
|
|
147
|
+
*/
|
|
148
|
+
actionContextAtBottom?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Define styling for grid header toolbar.
|
|
151
|
+
* - Accepts Mui's `sx` properties.
|
|
152
|
+
*/
|
|
153
|
+
headerToolbarStyle?: SxProps;
|
|
154
|
+
/**
|
|
155
|
+
* Disables multiple row selection on grid
|
|
156
|
+
* @default false
|
|
157
|
+
*/
|
|
158
|
+
disableMultipleRowSelect?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Defined stylined for grid column header.
|
|
161
|
+
* Accepts Mui's `sx` properties.
|
|
162
|
+
*/
|
|
163
|
+
columnHeaderStyle?: SxProps;
|
|
164
|
+
/**
|
|
165
|
+
* Defines different types of grid styles
|
|
166
|
+
* @default "standard"
|
|
167
|
+
*/
|
|
168
|
+
variant?: "standard" | "contained" | "outlined";
|
|
169
|
+
/**
|
|
170
|
+
* Row Id to be selected by default
|
|
171
|
+
*/
|
|
172
|
+
defaultSelectedRowId?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Show export button for grid data export
|
|
175
|
+
* @default false
|
|
176
|
+
*/
|
|
177
|
+
enableExport?: boolean;
|
|
133
178
|
}
|
|
134
179
|
export interface GridYupSchemaMetaDataType {
|
|
135
180
|
type: "string" | "number" | "boolean" | "date";
|
|
@@ -56,4 +56,5 @@ export declare const attachcombinedValidationFns: (columns: GridColumnType[]) =>
|
|
|
56
56
|
disableAdornment?: boolean | undefined;
|
|
57
57
|
setButtonName?: ((value: string | undefined, original: any) => string) | undefined;
|
|
58
58
|
shouldExclude?: ((value: string | undefined, original: any) => boolean) | undefined;
|
|
59
|
+
currencySymbolPosition?: "end" | "start" | undefined;
|
|
59
60
|
}[];
|
|
@@ -56,4 +56,5 @@ export declare const attachYupSchemaValidator: (columns: GridColumnType[]) => {
|
|
|
56
56
|
disableAdornment?: boolean | undefined;
|
|
57
57
|
setButtonName?: ((value: string | undefined, original: any) => string) | undefined;
|
|
58
58
|
shouldExclude?: ((value: string | undefined, original: any) => boolean) | undefined;
|
|
59
|
+
currencySymbolPosition?: "end" | "start" | undefined;
|
|
59
60
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "form" | "label" | "submit" | "subTitle" | "tabsSubmitBtn" | "backBtn" | "buttonProgress" | "buttonWrapper" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "form" | "label" | "submit" | "stepper" | "subTitle" | "tabsSubmitBtn" | "backBtn" | "buttonProgress" | "buttonWrapper" | "stepperLabel" | "formControlLabelSpacer">;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const FooterCell: ({ rows, column: { id: columnName,
|
|
1
|
+
export declare const FooterCell: ({ rows, column: { id: columnName, isTotalWithoutCurrency, isTotalWithCurrency, currencyRefColumn, isCurrencyCode, }, }: {
|
|
2
2
|
rows: any;
|
|
3
3
|
column: {
|
|
4
4
|
id: any;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
isTotalWithoutCurrency?: boolean | undefined;
|
|
6
|
+
isTotalWithCurrency?: boolean | undefined;
|
|
7
7
|
currencyRefColumn: any;
|
|
8
8
|
isCurrencyCode: any;
|
|
9
9
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TimeCell: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,3 +15,8 @@ export declare const CreateDetailsRequestData: (reqData: any) => {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const ObjectMappingKeys: (data: any, ...keys: any[]) => any;
|
|
17
17
|
export declare const StringtoUnicode: (str: any) => any;
|
|
18
|
+
export declare const ProcessDetailsData: (newData: any, oldData: any) => {
|
|
19
|
+
isNewRow: any[];
|
|
20
|
+
isDeleteRow: any[];
|
|
21
|
+
isUpdatedRow: any[];
|
|
22
|
+
};
|
|
@@ -21,5 +21,14 @@ export declare const transformDetailDataForDML: (input1: any, input2: any, keysT
|
|
|
21
21
|
isUpdatedRow: any[];
|
|
22
22
|
isDeleteRow: any[];
|
|
23
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Returns date or string by comparing with various date formats
|
|
26
|
+
* @param dateString date object or date string
|
|
27
|
+
* @param isStringRequired if true the dateString is sent as is. By default parsed to Date.
|
|
28
|
+
* @param requiredFormat array of date formats to compare with.
|
|
29
|
+
* @returns string | Date | any
|
|
30
|
+
*/
|
|
24
31
|
export declare const getParsedDate: (dateString: string | Date, isStringRequired?: boolean, requiredFormat?: string[]) => string | Date | any;
|
|
25
32
|
export declare const uncompressApiResponse: (base64Data: any) => any;
|
|
33
|
+
export declare const getPadAccountNumber: (accountNo: any, optionData: any) => any;
|
|
34
|
+
export declare const getDependetFieldDataArrayField: (inputData: any) => {};
|