@acuteinfo/common-base 1.0.45 → 1.0.47
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 +1 -0
- package/dist/components/context/propertiesConfig/customProperties.d.ts +16 -0
- package/dist/components/custom/getCurrencySymbol.d.ts +1 -0
- package/dist/components/custom/popupContext.d.ts +1 -1
- package/dist/components/dataTableStatic/grid.d.ts +1 -1
- package/dist/components/dataTableStatic/types.d.ts +35 -0
- package/dist/components/dataTableStatic/utils/attachCombineValidationFns.d.ts +12 -0
- package/dist/components/dataTableStatic/utils/attachYupSchema.d.ts +12 -0
- package/dist/components/report/types.d.ts +5 -0
- package/dist/components/styledComponent/button/button.d.ts +5 -0
- package/dist/components/tableCellComponents/customIconCellRenderer.d.ts +1 -0
- package/dist/components/tableCellComponents/footerCell.d.ts +4 -1
- package/dist/components/tableCellComponents/index.d.ts +1 -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,6 +27,7 @@ export interface ArrayField2Props {
|
|
|
27
27
|
isRemoveButton?: boolean;
|
|
28
28
|
onFormDataChange?: any;
|
|
29
29
|
changeRowOrder?: boolean;
|
|
30
|
+
noRecordMessage?: string;
|
|
30
31
|
}
|
|
31
32
|
export declare const ArrayField2: FC<ArrayField2Props>;
|
|
32
33
|
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, }: {
|
|
@@ -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,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,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, controlsAtBottom, actionContextAtBottom, headerToolbarStyle, disableMultipleRowSelect, columnHeaderStyle, variant, enablePaginationInput, defaultSelectedRowId, footerNote, paginationText, searchPlaceholder, enableExport, subGridLabel, hideActionBar, finalMetaData }: {
|
|
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, enablePaginationInput, defaultSelectedRowId, footerNote, paginationText, searchPlaceholder, enableExport, subGridLabel, hideActionBar, finalMetaData, }: {
|
|
2
2
|
label: any;
|
|
3
3
|
dense: any;
|
|
4
4
|
columns: any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SxProps } from "@mui/material";
|
|
2
2
|
import { ActionTypes } from "components/dataTable/types";
|
|
3
3
|
import { CellComponentType } from "components/tableCellComponents";
|
|
4
|
+
import { ReactNode } from "react";
|
|
4
5
|
export interface GridColumnType {
|
|
5
6
|
columnName: string;
|
|
6
7
|
accessor: string;
|
|
@@ -105,6 +106,40 @@ export interface GridColumnType {
|
|
|
105
106
|
* @default false
|
|
106
107
|
*/
|
|
107
108
|
enableColumnSelection?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Function to set customized footer value
|
|
111
|
+
* @param total sum of current column
|
|
112
|
+
* @param rows grid data
|
|
113
|
+
* @returns number[] | string[] | string | number
|
|
114
|
+
*/
|
|
115
|
+
setFooterValue?: (total: number, rows: any) => number[] | string[] | string | number;
|
|
116
|
+
/**
|
|
117
|
+
* Set label of footer label for displaying total
|
|
118
|
+
* @default "Total"
|
|
119
|
+
*/
|
|
120
|
+
footerLabel?: string;
|
|
121
|
+
/**
|
|
122
|
+
* For customized footer value having more than one calculation.
|
|
123
|
+
*
|
|
124
|
+
* Need to use setFooterValue function returning multiple values that replaces {0}, {1}, ...{n}
|
|
125
|
+
*
|
|
126
|
+
* For e.g. Sum {0} Average {1}
|
|
127
|
+
*/
|
|
128
|
+
footerIsMultivalue?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Set custom icon and tooltip for customIconCell component on active state
|
|
131
|
+
*/
|
|
132
|
+
activeIcon?: {
|
|
133
|
+
icon: ReactNode;
|
|
134
|
+
tooltip?: string;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Set custom icon and tooltip for customIconCell component on inActive state
|
|
138
|
+
*/
|
|
139
|
+
inActiveIcon?: {
|
|
140
|
+
icon: ReactNode;
|
|
141
|
+
tooltip?: string;
|
|
142
|
+
};
|
|
108
143
|
}
|
|
109
144
|
export interface GridConfigType {
|
|
110
145
|
dense?: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { GridColumnType } from "../types";
|
|
2
3
|
export declare const combineAndRunValidation: (schemaValidation: any, validation: any, authState: any) => (value: any, row: any, prev: any, next: any) => Promise<any>;
|
|
3
4
|
export declare const attachcombinedValidationFns: (columns: GridColumnType[], authState: any) => {
|
|
@@ -69,4 +70,15 @@ export declare const attachcombinedValidationFns: (columns: GridColumnType[], au
|
|
|
69
70
|
currencySymbolPosition?: "end" | "start" | undefined;
|
|
70
71
|
showDeleteIconOnly?: boolean | undefined;
|
|
71
72
|
enableColumnSelection?: boolean | undefined;
|
|
73
|
+
setFooterValue?: ((total: number, rows: any) => string | number | string[] | number[]) | undefined;
|
|
74
|
+
footerLabel?: string | undefined;
|
|
75
|
+
footerIsMultivalue?: boolean | undefined;
|
|
76
|
+
activeIcon?: {
|
|
77
|
+
icon: import("react").ReactNode;
|
|
78
|
+
tooltip?: string | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
inActiveIcon?: {
|
|
81
|
+
icon: import("react").ReactNode;
|
|
82
|
+
tooltip?: string | undefined;
|
|
83
|
+
} | undefined;
|
|
72
84
|
}[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { GridColumnType } from "../types";
|
|
2
3
|
export declare const attachYupSchemaValidator: (columns: GridColumnType[]) => {
|
|
3
4
|
schemaValidation: ((value: number | string | boolean | Date) => Promise<any>) | undefined;
|
|
@@ -69,4 +70,15 @@ export declare const attachYupSchemaValidator: (columns: GridColumnType[]) => {
|
|
|
69
70
|
currencySymbolPosition?: "end" | "start" | undefined;
|
|
70
71
|
showDeleteIconOnly?: boolean | undefined;
|
|
71
72
|
enableColumnSelection?: boolean | undefined;
|
|
73
|
+
setFooterValue?: ((total: number, rows: any) => string | number | string[] | number[]) | undefined;
|
|
74
|
+
footerLabel?: string | undefined;
|
|
75
|
+
footerIsMultivalue?: boolean | undefined;
|
|
76
|
+
activeIcon?: {
|
|
77
|
+
icon: import("react").ReactNode;
|
|
78
|
+
tooltip?: string | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
inActiveIcon?: {
|
|
81
|
+
icon: import("react").ReactNode;
|
|
82
|
+
tooltip?: string | undefined;
|
|
83
|
+
} | undefined;
|
|
72
84
|
}[];
|
|
@@ -86,6 +86,11 @@ export interface ReportColumnsType {
|
|
|
86
86
|
};
|
|
87
87
|
color?: (value: string) => string;
|
|
88
88
|
TableCellProps?: any;
|
|
89
|
+
/**
|
|
90
|
+
* Show column name for ButtonRowCell
|
|
91
|
+
* @default false
|
|
92
|
+
*/
|
|
93
|
+
showColumnName?: boolean;
|
|
89
94
|
}
|
|
90
95
|
export interface ReportFilterProps {
|
|
91
96
|
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>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CustomIconRowCell: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
export declare const FooterCell: ({ rows, column: { id: columnName, isDisplayTotal, totalDecimalCount, isSelectedTotal, }, }: {
|
|
1
|
+
export declare const FooterCell: ({ rows, column: { id: columnName, isDisplayTotal, totalDecimalCount, isSelectedTotal, setFooterValue, footerLabel, footerIsMultivalue, }, }: {
|
|
2
2
|
rows: any;
|
|
3
3
|
column: {
|
|
4
4
|
id: any;
|
|
5
5
|
isDisplayTotal?: boolean | undefined;
|
|
6
6
|
totalDecimalCount: any;
|
|
7
7
|
isSelectedTotal?: boolean | undefined;
|
|
8
|
+
setFooterValue: any;
|
|
9
|
+
footerLabel?: string | undefined;
|
|
10
|
+
footerIsMultivalue?: boolean | undefined;
|
|
8
11
|
};
|
|
9
12
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type CellComponentType = "currency" | "date" | "default" | "icondefault" | "action" | "editableAutocomplete" | "editableSelect" | "editableTextField" | "editableMaskInputField" | "editableNumberFormat" | "dateDiffere" | "deleteRowCell" | "buttonRowCell" | "percentageDiff" | "editableCheckbox" | "editableDatetimePicker" | "editableDatePicker" | "editableNumberFormatLessValidation" | "disableSelect";
|
|
1
|
+
export type CellComponentType = "currency" | "date" | "default" | "icondefault" | "action" | "editableAutocomplete" | "editableSelect" | "editableTextField" | "editableMaskInputField" | "editableNumberFormat" | "dateDiffere" | "deleteRowCell" | "buttonRowCell" | "percentageDiff" | "editableCheckbox" | "editableDatetimePicker" | "editableDatePicker" | "editableNumberFormatLessValidation" | "disableSelect" | "customIconCell";
|
|
@@ -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
|
/**
|