@acuteinfo/common-base 1.2.48 → 1.2.50
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/datetime/datePicker.d.ts +1 -0
- package/dist/components/common/datetime/datetimePicker.d.ts +1 -0
- package/dist/components/common/divider/divider.d.ts +1 -0
- package/dist/components/common/formbutton/formbutton.d.ts +1 -0
- package/dist/components/common/hidden/hidden.d.ts +1 -0
- package/dist/components/common/select/select.d.ts +1 -0
- package/dist/components/common/textField/textField.d.ts +1 -0
- package/dist/components/common/typograhpy/typography.d.ts +1 -0
- package/dist/components/dataTableStatic/types.d.ts +10 -0
- package/dist/components/dataTableStatic/utils/attachCombineValidationFns.d.ts +1 -0
- package/dist/components/dataTableStatic/utils/attachYupSchema.d.ts +1 -0
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/packages/form/src/field.d.ts +1 -1
- package/package.json +1 -1
|
@@ -39,6 +39,7 @@ interface AutoCompleteExtendedProps {
|
|
|
39
39
|
listBoxMinWidth?: number | string;
|
|
40
40
|
listBoxMaxWidth?: number | string;
|
|
41
41
|
setValueOnDependentFieldsChange?: any;
|
|
42
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any, valueObj: any) => string | undefined;
|
|
42
43
|
optionsGridColDef?: Record<string, Partial<GridColumnType>>;
|
|
43
44
|
runPostValidationForInitValue?: boolean;
|
|
44
45
|
skipInitialDefaultValueKeyValidation?: boolean;
|
|
@@ -23,6 +23,7 @@ interface MyGridExtendedProps {
|
|
|
23
23
|
placeholder?: string;
|
|
24
24
|
} | null | undefined;
|
|
25
25
|
runPostValidationForInitValue?: boolean;
|
|
26
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any, valueObj: any) => string | undefined;
|
|
26
27
|
}
|
|
27
28
|
export type MyDataPickerAllProps = Merge<Merge<KeyboardDatePickerPropsSubset, MyGridExtendedProps>, UseFieldHookProps>;
|
|
28
29
|
export declare const MyDatePicker: FC<MyDataPickerAllProps>;
|
|
@@ -18,6 +18,7 @@ interface MyGridExtendedProps {
|
|
|
18
18
|
disablePast?: boolean;
|
|
19
19
|
disableFuture?: boolean;
|
|
20
20
|
runPostValidationForInitValue?: boolean;
|
|
21
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any, valueObj: any) => string | undefined;
|
|
21
22
|
}
|
|
22
23
|
export type MyDateTimePickerAllProps = Merge<Merge<KeyboardDateTimePickerPropsSubset, MyGridExtendedProps>, UseFieldHookProps>;
|
|
23
24
|
export declare const MyDateTimePicker: FC<MyDateTimePickerAllProps>;
|
|
@@ -5,6 +5,7 @@ import { GridProps, DividerProps } from "@mui/material";
|
|
|
5
5
|
interface MyGridExtendedProps {
|
|
6
6
|
GridProps?: GridProps;
|
|
7
7
|
setValueOnDependentFieldsChange?: any;
|
|
8
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any) => string | undefined;
|
|
8
9
|
label?: string;
|
|
9
10
|
DividerProps?: DividerProps;
|
|
10
11
|
componentType?: string;
|
|
@@ -18,6 +18,7 @@ interface MyButtonExtendedProps {
|
|
|
18
18
|
endsIcon?: keyof typeof Icons;
|
|
19
19
|
rotateIcon?: string;
|
|
20
20
|
setValueOnDependentFieldsChange?: any;
|
|
21
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any) => string | undefined;
|
|
21
22
|
onFormButtonClickHandel?: any;
|
|
22
23
|
ignoreInSubmit?: (dependentValues: any, formState: any, object: {
|
|
23
24
|
isSubmitting?: boolean;
|
|
@@ -5,6 +5,7 @@ interface MyGridExtendedProps {
|
|
|
5
5
|
GridProps?: GridProps;
|
|
6
6
|
enableGrid: boolean;
|
|
7
7
|
setValueOnDependentFieldsChange?: any;
|
|
8
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any) => string | undefined;
|
|
8
9
|
ignoreInSubmit?: (dependentValues: any, formState: any) => boolean | boolean;
|
|
9
10
|
runPostValidationForInitValue?: boolean;
|
|
10
11
|
}
|
|
@@ -16,6 +16,7 @@ interface extendedFieldProps extends UseFieldHookProps {
|
|
|
16
16
|
defaultOptionLabel?: string;
|
|
17
17
|
enableDefaultOption?: boolean;
|
|
18
18
|
setValueOnDependentFieldsChange?: any;
|
|
19
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any, valueObj: any) => string | undefined;
|
|
19
20
|
}
|
|
20
21
|
type MySelectProps = Merge<TextFieldProps, extendedFieldProps>;
|
|
21
22
|
interface MySelectExtendedProps {
|
|
@@ -15,6 +15,7 @@ interface MyGridExtendedProps {
|
|
|
15
15
|
CircularProgressProps?: CircularProgressProps;
|
|
16
16
|
enableGrid: boolean;
|
|
17
17
|
setValueOnDependentFieldsChange?: any;
|
|
18
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any, valueObj: any) => string | undefined;
|
|
18
19
|
setColor?: any;
|
|
19
20
|
showMaxLength?: boolean;
|
|
20
21
|
allowToggleVisiblity?: boolean;
|
|
@@ -8,6 +8,7 @@ export interface AllTypographyProps {
|
|
|
8
8
|
label: string;
|
|
9
9
|
fieldKey: string;
|
|
10
10
|
setValueOnDependentFieldsChange?: Function;
|
|
11
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any) => string | undefined;
|
|
11
12
|
componentType?: string;
|
|
12
13
|
}
|
|
13
14
|
export type MyTypographyAllProps = UseFieldHookProps & AllTypographyProps;
|
|
@@ -24,6 +24,16 @@ export interface GridColumnType {
|
|
|
24
24
|
isVisible?: boolean;
|
|
25
25
|
validation?: any;
|
|
26
26
|
showTooltip?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Custom tooltip value shown on hover.
|
|
29
|
+
*
|
|
30
|
+
* If a string is provided, it must be a valid row accessor.
|
|
31
|
+
*
|
|
32
|
+
* If a function is provided, it receives the grid row object and returns a string conditionally.
|
|
33
|
+
*
|
|
34
|
+
* Note: Works if componentType is **default**
|
|
35
|
+
*/
|
|
36
|
+
customTooltipValue?: string | ((row: any) => string);
|
|
27
37
|
tooltipPlacement?: "top-start" | "top" | "top-end" | "left-start" | "left" | "left-end" | "right-start" | "right" | "right-end" | "bottom-start" | "bottom" | "bottom-end";
|
|
28
38
|
schemaValidation?: GridYupSchemaMetaDataType;
|
|
29
39
|
options?: any;
|
|
@@ -17,6 +17,7 @@ export declare const attachcombinedValidationFns: (columns: GridColumnType[], au
|
|
|
17
17
|
dateFormat?: string | undefined;
|
|
18
18
|
isVisible?: boolean | undefined;
|
|
19
19
|
showTooltip?: boolean | undefined;
|
|
20
|
+
customTooltipValue?: string | ((row: any) => string) | undefined;
|
|
20
21
|
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
21
22
|
options?: any;
|
|
22
23
|
isPassword?: boolean | undefined;
|
|
@@ -17,6 +17,7 @@ export declare const attachYupSchemaValidator: (columns: GridColumnType[]) => {
|
|
|
17
17
|
isVisible?: boolean | undefined;
|
|
18
18
|
validation?: any;
|
|
19
19
|
showTooltip?: boolean | undefined;
|
|
20
|
+
customTooltipValue?: string | ((row: any) => string) | undefined;
|
|
20
21
|
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
21
22
|
options?: any;
|
|
22
23
|
isPassword?: boolean | undefined;
|