@acuteinfo/common-base 1.0.83 → 1.0.84
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/agGridTable/types.d.ts +12 -7
- package/dist/components/agGridTable/utils/transformAgGridMetadata.d.ts +2 -2
- package/dist/components/dynamicForm/utils/constructINITValues.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ColDef, ICellEditorParams } from "ag-grid-community";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { GridYupSchemaMetaDataType } from "components/dataTableStatic";
|
|
3
|
+
export interface AgGridMetaData extends Partial<ColDef> {
|
|
4
|
+
accessor?: string;
|
|
5
|
+
columnName?: string;
|
|
5
6
|
componentType?: ColDef["cellEditor"];
|
|
6
7
|
displayComponentType?: ColDef["cellRenderer"];
|
|
7
|
-
FormatProps?:
|
|
8
|
+
FormatProps?: Record<string, any>;
|
|
8
9
|
className?: string;
|
|
9
10
|
headerTooltip?: string;
|
|
10
11
|
shouldExclude?: (params: any) => boolean;
|
|
@@ -12,13 +13,17 @@ export interface CustomColumnMeta extends Partial<ColDef> {
|
|
|
12
13
|
isVisible?: boolean;
|
|
13
14
|
isReadOnly?: boolean | ((params: any) => boolean);
|
|
14
15
|
options?: any;
|
|
16
|
+
alignment?: "left" | "center" | "right";
|
|
17
|
+
schemaValidation?: GridYupSchemaMetaDataType;
|
|
18
|
+
validate?: (params: ICellEditorParams) => string;
|
|
19
|
+
name?: string;
|
|
15
20
|
__EDIT__?: {
|
|
16
|
-
isReadOnly?: boolean;
|
|
21
|
+
isReadOnly?: boolean | ((params: any) => boolean);
|
|
17
22
|
};
|
|
18
23
|
__VIEW__?: {
|
|
19
|
-
isReadOnly?: boolean;
|
|
24
|
+
isReadOnly?: boolean | ((params: any) => boolean);
|
|
20
25
|
};
|
|
21
26
|
__NEW__?: {
|
|
22
|
-
isReadOnly?: boolean;
|
|
27
|
+
isReadOnly?: boolean | ((params: any) => boolean);
|
|
23
28
|
};
|
|
24
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ColDef } from "ag-grid-community";
|
|
2
|
-
import {
|
|
3
|
-
declare function transformToAgGridColumn(metaData: (
|
|
2
|
+
import { AgGridMetaData } from "../types";
|
|
3
|
+
declare function transformToAgGridColumn(metaData: (AgGridMetaData | ColDef)[], i18n: any): ColDef[];
|
|
4
4
|
export default transformToAgGridColumn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InitialValuesType } from "packages/form";
|
|
2
2
|
import { FieldMetaDataType } from "../types";
|
|
3
3
|
export declare const constructInitialValue: (fields: FieldMetaDataType[], initialValues?: InitialValuesType) => {};
|
|
4
|
-
export declare const constructInitialValuesForArrayFields: (fields: FieldMetaDataType[]) => {};
|
|
4
|
+
export declare const constructInitialValuesForArrayFields: (fields: FieldMetaDataType[], formState?: any, authState?: any) => {};
|
package/dist/index.d.ts
CHANGED
|
@@ -60,3 +60,4 @@ export * from "./components/context/propertiesConfig/customProperties";
|
|
|
60
60
|
export { AuthContextProvider } from "./components/context/authContext/authContext";
|
|
61
61
|
export { AgGridTableWrapper } from "./components/agGridTable";
|
|
62
62
|
export { getAgGridSRNo, customCellAggFunc, parseDate, findLastDisplayColumn, findFirstDisplayColumn, getGridRowData, removeExistingRowData, dynamicRowHeight, displayNumber, lessThanDate, setErrorMessage, handleDeleteButtonClick, } from "./components/agGridTable/utils/helper";
|
|
63
|
+
export type { AgGridMetaData } from "./components/agGridTable/types";
|