@acuteinfo/common-base 1.2.79 → 1.2.81

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, isCurrencyField, }: UseFieldHookProps) => {
2
+ export declare const useField: ({ fieldKey, name, dependentFields, validate, validationRun, shouldExclude, isReadOnly, postValidationSetCrossFieldValues, runPostValidationHookAlways, runValidationOnDependentFieldsChange, skipValueUpdateFromCrossFieldWhenReadOnly, runExternalFunction, onFormDataChange, txtTransform, AlwaysRunPostValidationSetCrossFieldValues, componentType, runPostValidationForInitValue, isCurrencyField, showTooltip, }: UseFieldHookProps) => {
3
3
  formState: any;
4
4
  whenToRunValidation: ("onChange" | "onBlur" | "all") | undefined;
5
5
  isSubmitting: boolean;
@@ -36,6 +36,7 @@ export declare const useField: ({ fieldKey, name, dependentFields, validate, val
36
36
  componentType?: string | undefined;
37
37
  prevValue?: any;
38
38
  filteredOptions?: Record<string, any>[] | undefined;
39
+ tooltip?: any;
39
40
  };
40
41
  export declare const transformDependentFieldsState: (dependentValues: DependentValuesType) => {};
41
42
  export declare const extractDependentFields: (input: any) => any[];
@@ -58,6 +58,7 @@ export interface FormFieldAtomType {
58
58
  componentType?: string;
59
59
  prevValue?: any;
60
60
  filteredOptions?: Record<string, any>[];
61
+ tooltip?: any;
61
62
  }
62
63
  export interface DependentValuesType {
63
64
  [key: string]: FormFieldAtomType;
@@ -99,6 +100,7 @@ export interface UseFieldHookProps {
99
100
  componentType?: string;
100
101
  runPostValidationForInitValue?: boolean;
101
102
  isCurrencyField?: boolean;
103
+ showTooltip?: typeof showTooltipFnType;
102
104
  }
103
105
  export interface UseFieldArrayHookProps {
104
106
  arrayFieldName: string;
@@ -112,6 +114,7 @@ export interface SubscritionFieldsType {
112
114
  }
113
115
  export declare function getFixedRowsCountFnType(fieldData: FormArrayFieldRowsAtomType, dependentFieldsValues: DependentValuesType, formState: any): number;
114
116
  export declare function shouldExcludeFnType(fieldData: FormFieldAtomType, dependentFieldsValues: DependentValuesType, formState: any): Promise<boolean> | boolean;
117
+ export declare function showTooltipFnType(fieldData: FormFieldAtomType, dependentFieldsValues: DependentValuesType, formState: any): Promise<any> | any;
115
118
  export declare function SchemaValidateFnType(fieldData: FormFieldAtomType, formState: any): Promise<any> | any;
116
119
  export declare function ValidateFnType(fieldData: FormFieldAtomType, dependentFieldsValues: DependentValuesType, formState: any): Promise<any> | any;
117
120
  export declare function PostValidationSetCrossFieldValuesFnType(fieldData: FormFieldAtomType, formState: any, authState: any, dependentFieldsState: any): Promise<InitialValuesType | undefined | null> | InitialValuesType | undefined | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acuteinfo/common-base",
3
- "version": "1.2.79",
3
+ "version": "1.2.81",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "react",