@acuteinfo/common-base 1.0.46 → 1.0.48
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/arrayField/arrayField2.d.ts +4 -1
- package/dist/components/context/propertiesConfig/customProperties.d.ts +16 -0
- package/dist/components/custom/Remarks.d.ts +2 -1
- package/dist/components/custom/getCurrencySymbol.d.ts +2 -1
- package/dist/components/custom/popupContext.d.ts +1 -1
- package/dist/components/fileUpload/fileUpload.d.ts +2 -1
- package/dist/components/fileUpload/type.d.ts +1 -0
- package/dist/components/report/types.d.ts +10 -1
- package/dist/components/styledComponent/button/button.d.ts +5 -0
- package/dist/components/tableCellComponents/footerCell.d.ts +2 -1
- package/dist/components/utils/utilFunctions/function.d.ts +6 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/packages/form/src/field.d.ts +1 -1
- package/package.json +1 -1
|
@@ -27,9 +27,11 @@ export interface ArrayField2Props {
|
|
|
27
27
|
isRemoveButton?: boolean;
|
|
28
28
|
onFormDataChange?: any;
|
|
29
29
|
changeRowOrder?: boolean;
|
|
30
|
+
noRecordMessage?: string;
|
|
31
|
+
hideRemoveIconOnSingleRecord?: boolean;
|
|
30
32
|
}
|
|
31
33
|
export declare const ArrayField2: FC<ArrayField2Props>;
|
|
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, selectedRowIndex, setSelectedRowIndex, }: {
|
|
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 }: {
|
|
33
35
|
row: any;
|
|
34
36
|
getAllRowsValues: any;
|
|
35
37
|
fieldKey: any;
|
|
@@ -54,4 +56,5 @@ export declare const ArrayFieldRow: ({ row, getAllRowsValues, fieldKey, oneRow,
|
|
|
54
56
|
isRemoveButton: any;
|
|
55
57
|
selectedRowIndex: any;
|
|
56
58
|
setSelectedRowIndex: any;
|
|
59
|
+
hideRemoveIconOnSingleRecord: any;
|
|
57
60
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -53,9 +53,25 @@ export interface CustomProperties {
|
|
|
53
53
|
* Accepts Field MetaData object for additional form fields
|
|
54
54
|
*/
|
|
55
55
|
customExtendedTypes?: ExtendedFieldMetaDataTypeOptional;
|
|
56
|
+
/**
|
|
57
|
+
* UI Configuration for gridwrapper
|
|
58
|
+
*/
|
|
56
59
|
defaultGridConfig?: {
|
|
60
|
+
/**
|
|
61
|
+
* Specify the grid style to appear
|
|
62
|
+
* @default "standard"
|
|
63
|
+
*/
|
|
57
64
|
variant?: "standard" | "contained" | "outlined";
|
|
65
|
+
/**
|
|
66
|
+
* Set false to hide pagination input box for page jump
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
58
69
|
enablePaginationInput?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Set true to enable background color for action buttons. Css variable `--primary-bg` will applied as background.
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
isContainedActionButton?: boolean;
|
|
59
75
|
};
|
|
60
76
|
}
|
|
61
77
|
interface ContextProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const RemarksAPIWrapper: ({ TitleText, onActionNo, onActionYes, isRequired, isEntertoSubmit, AcceptbuttonLabelText, CanceltbuttonLabelText, isLoading, open, label, defaultValue, rows, }: {
|
|
1
|
+
export declare const RemarksAPIWrapper: ({ TitleText, onActionNo, onActionYes, isRequired, isEntertoSubmit, AcceptbuttonLabelText, CanceltbuttonLabelText, isLoading, open, label, defaultValue, rows, customRequiredMessage }: {
|
|
2
2
|
TitleText: any;
|
|
3
3
|
onActionNo: any;
|
|
4
4
|
onActionYes: any;
|
|
@@ -11,4 +11,5 @@ export declare const RemarksAPIWrapper: ({ TitleText, onActionNo, onActionYes, i
|
|
|
11
11
|
label?: string | undefined;
|
|
12
12
|
defaultValue?: string | undefined;
|
|
13
13
|
rows: any;
|
|
14
|
+
customRequiredMessage?: string | undefined;
|
|
14
15
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -121,5 +121,6 @@ export declare const currencySymbol: {
|
|
|
121
121
|
SOS: string;
|
|
122
122
|
SLL: string;
|
|
123
123
|
ETB: string;
|
|
124
|
+
MMK: string;
|
|
124
125
|
};
|
|
125
|
-
export declare function getCurrencySymbol(currencyCode: any): any;
|
|
126
|
+
export declare function getCurrencySymbol(currencyCode: any, sendCodeBack?: boolean): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
type TIcon = "INFO" | "ERROR" | "WARNING" | "SUCCESS";
|
|
2
|
+
type TIcon = "INFO" | "ERROR" | "WARNING" | "SUCCESS" | "CONFIRM";
|
|
3
3
|
type TButtonName = "Ok" | "Cancel" | "Yes" | "No" | "Close" | "Accept" | "Decline" | (string & Record<never, never>);
|
|
4
4
|
type TMessageBoxParams = {
|
|
5
5
|
messageTitle: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GridColumnType } from "components/dataTableStatic";
|
|
2
|
-
export declare const FileUploadControl: ({ additionalColumns, editableFileName, onClose, onUpload, dataChangedRef, allowedExtensions, maxAllowedSize, gridProps, defaultFileData, onUpdateFileData, }: {
|
|
2
|
+
export declare const FileUploadControl: ({ additionalColumns, editableFileName, onClose, onUpload, dataChangedRef, allowedExtensions, maxAllowedSize, gridProps, defaultFileData, onUpdateFileData, allowMultipleFilesSelection }: {
|
|
3
3
|
additionalColumns?: GridColumnType[] | undefined;
|
|
4
4
|
editableFileName?: boolean | undefined;
|
|
5
5
|
onClose?: any;
|
|
@@ -10,4 +10,5 @@ export declare const FileUploadControl: ({ additionalColumns, editableFileName,
|
|
|
10
10
|
gridProps?: any;
|
|
11
11
|
defaultFileData?: any;
|
|
12
12
|
onUpdateFileData?: Function | undefined;
|
|
13
|
+
allowMultipleFilesSelection?: boolean | undefined;
|
|
13
14
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -84,8 +84,17 @@ export interface ReportColumnsType {
|
|
|
84
84
|
DisplayValueLabel?: {
|
|
85
85
|
[key: string]: any;
|
|
86
86
|
};
|
|
87
|
-
color?: (value: string) => string;
|
|
87
|
+
color?: string | ((value: string) => string);
|
|
88
88
|
TableCellProps?: any;
|
|
89
|
+
/**
|
|
90
|
+
* Show column name for ButtonRowCell
|
|
91
|
+
* @default false
|
|
92
|
+
*/
|
|
93
|
+
showColumnName?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Specify format for date columns
|
|
96
|
+
*/
|
|
97
|
+
format?: string;
|
|
89
98
|
}
|
|
90
99
|
export interface ReportFilterProps {
|
|
91
100
|
accessor: string;
|
|
@@ -6,6 +6,11 @@ interface AdditionalProps {
|
|
|
6
6
|
endicon?: keyof typeof Icons;
|
|
7
7
|
rotateIcon?: string;
|
|
8
8
|
textColor?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Set false to remove box shadow
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
elevate?: boolean;
|
|
9
14
|
}
|
|
10
15
|
type GradientButtonProps = AdditionalProps & ButtonProps;
|
|
11
16
|
declare const GradientButton: import("react").ForwardRefExoticComponent<Omit<GradientButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const FooterCell: ({ rows, column: { id: columnName, isDisplayTotal, totalDecimalCount, isSelectedTotal, setFooterValue, footerLabel, footerIsMultivalue, }, }: {
|
|
1
|
+
export declare const FooterCell: ({ rows, column: { id: columnName, isDisplayTotal, totalDecimalCount, isSelectedTotal, setFooterValue, footerLabel, footerIsMultivalue, Cell }, }: {
|
|
2
2
|
rows: any;
|
|
3
3
|
column: {
|
|
4
4
|
id: any;
|
|
@@ -8,5 +8,6 @@ export declare const FooterCell: ({ rows, column: { id: columnName, isDisplayTot
|
|
|
8
8
|
setFooterValue: any;
|
|
9
9
|
footerLabel?: string | undefined;
|
|
10
10
|
footerIsMultivalue?: boolean | undefined;
|
|
11
|
+
Cell: any;
|
|
11
12
|
};
|
|
12
13
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -29,7 +29,12 @@ export declare const transformDetailDataForDML: (input1: any, input2: any, keysT
|
|
|
29
29
|
* @returns string | Date | any
|
|
30
30
|
*/
|
|
31
31
|
export declare const getParsedDate: (dateString: string | Date, isStringRequired?: boolean, requiredFormat?: string[]) => string | Date | any;
|
|
32
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Function to uncompress api data
|
|
34
|
+
* @param base64Data zipped data in base64 string
|
|
35
|
+
* @returns uncompressed api JSON Data
|
|
36
|
+
*/
|
|
37
|
+
export declare const uncompressApiResponse: (base64Data: string) => any;
|
|
33
38
|
export declare const getPadAccountNumber: (accountNo: any, optionData: any) => any;
|
|
34
39
|
export declare const getDependetFieldDataArrayField: (inputData: any) => {};
|
|
35
40
|
/**
|