@acuteinfo/common-base 1.2.38-beta.7 → 1.2.38-beta.8

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, dependentFieldDebounceDelay, }: UseFieldHookProps) => {
2
+ export declare const useField: ({ fieldKey, name, dependentFields, validate, validationRun, shouldExclude, isReadOnly, postValidationSetCrossFieldValues, runPostValidationHookAlways, runValidationOnDependentFieldsChange, skipValueUpdateFromCrossFieldWhenReadOnly, runExternalFunction, onFormDataChange, txtTransform, AlwaysRunPostValidationSetCrossFieldValues, componentType, runPostValidationForInitValue, dependentFieldDebounceDelay, isCurrencyField, }: UseFieldHookProps) => {
3
3
  formState: any;
4
4
  whenToRunValidation: ("onChange" | "onBlur" | "all") | undefined;
5
5
  isSubmitting: boolean;
@@ -6,6 +6,7 @@ export declare const useForm: ({ onSubmit, readOnly }: UseFormHookProps) => {
6
6
  submitSuccessful: boolean;
7
7
  serverSentError: string;
8
8
  serverSentErrorDetail: string;
9
+ validationRunning?: boolean | undefined;
9
10
  handleSubmit: (e: import("react").FormEvent<any>, actionFlag?: String | undefined, isValidate?: boolean | undefined, optionalData?: any) => Promise<any>;
10
11
  handleSubmitPartial: (fields: string[]) => Promise<boolean>;
11
12
  handleReset: (e: React.FormEvent<any>) => void;
@@ -40,6 +40,7 @@ export interface FormAtomType {
40
40
  submitSuccessful: boolean;
41
41
  serverSentError: string;
42
42
  serverSentErrorDetail: string;
43
+ validationRunning?: boolean;
43
44
  }
44
45
  export interface FormFieldAtomType {
45
46
  fieldKey: string;
@@ -103,6 +104,7 @@ export interface UseFieldHookProps {
103
104
  componentType?: string;
104
105
  runPostValidationForInitValue?: boolean;
105
106
  dependentFieldDebounceDelay?: number;
107
+ isCurrencyField?: boolean;
106
108
  }
107
109
  export interface UseFieldArrayHookProps {
108
110
  arrayFieldName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acuteinfo/common-base",
3
- "version": "1.2.38-beta.7",
3
+ "version": "1.2.38-beta.8",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "react",