@acuteinfo/common-base 1.2.69 → 1.2.71
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseFieldHookProps, InitialValuesType, ValidateFnType, DependentValuesType } from "./types";
|
|
2
|
-
export declare const useField: ({ fieldKey, name, dependentFields, validate, validationRun, shouldExclude, isReadOnly, postValidationSetCrossFieldValues, runPostValidationHookAlways, runValidationOnDependentFieldsChange, skipValueUpdateFromCrossFieldWhenReadOnly, runExternalFunction, onFormDataChange, txtTransform, AlwaysRunPostValidationSetCrossFieldValues, componentType, runPostValidationForInitValue, }: UseFieldHookProps) => {
|
|
2
|
+
export declare const useField: ({ fieldKey, name, dependentFields, validate, validationRun, shouldExclude, isReadOnly, postValidationSetCrossFieldValues, runPostValidationHookAlways, runValidationOnDependentFieldsChange, skipValueUpdateFromCrossFieldWhenReadOnly, runExternalFunction, onFormDataChange, txtTransform, AlwaysRunPostValidationSetCrossFieldValues, componentType, runPostValidationForInitValue, isCurrencyField, }: UseFieldHookProps) => {
|
|
3
3
|
formState: any;
|
|
4
4
|
whenToRunValidation: ("onChange" | "onBlur" | "all") | undefined;
|
|
5
5
|
isSubmitting: boolean;
|
|
@@ -98,6 +98,7 @@ export interface UseFieldHookProps {
|
|
|
98
98
|
AlwaysRunPostValidationSetCrossFieldValues?: AlwaysRunPostValidationSetCrossFieldValuesType | ((dependentFields: any) => AlwaysRunPostValidationSetCrossFieldValuesType);
|
|
99
99
|
componentType?: string;
|
|
100
100
|
runPostValidationForInitValue?: boolean;
|
|
101
|
+
isCurrencyField?: boolean;
|
|
101
102
|
}
|
|
102
103
|
export interface UseFieldArrayHookProps {
|
|
103
104
|
arrayFieldName: string;
|