@acuteinfo/common-base 1.2.38-beta.7 → 1.2.38-beta.9
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/arrayField/arrayField2.d.ts +1 -0
- package/dist/components/common/autocomplete/autocomplete.d.ts +1 -0
- package/dist/components/common/printButton/printButton.d.ts +8 -1
- package/dist/components/common/types.d.ts +2 -0
- package/dist/components/common/utils/optionsFetcher.d.ts +2 -0
- package/dist/components/context/propertiesConfig/customProperties.d.ts +5 -0
- package/dist/components/dataTable/backdrop.d.ts +1 -1
- package/dist/components/dataTable/headerCellWrapper.d.ts +5 -0
- package/dist/components/dataTable/styledComponents/slider.d.ts +1 -1
- package/dist/components/dataTable/types.d.ts +2 -0
- package/dist/components/dataTableStatic/types.d.ts +3 -0
- package/dist/components/dataTableStatic/utils/attachCombineValidationFns.d.ts +1 -0
- package/dist/components/dataTableStatic/utils/attachYupSchema.d.ts +1 -0
- package/dist/components/dynamicForm/simpleForm.d.ts +6 -3
- package/dist/components/dynamicForm/types.d.ts +7 -0
- package/dist/components/dynamicForm/utils/constructINITValues.d.ts +1 -1
- package/dist/components/dynamicForm/utils/extendedFieldTypes.d.ts +1 -1
- package/dist/components/formcomponent/masterDetails/masterDetailsForm.d.ts +1 -0
- package/dist/components/report/components/dateCell.d.ts +1 -1
- package/dist/components/report/components/footerCell.d.ts +3 -1
- package/dist/components/report/gridTable.d.ts +2 -1
- package/dist/components/report/types.d.ts +6 -1
- package/dist/components/styledComponent/inputLabel/inputLabel.d.ts +1 -1
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/packages/form/src/atoms.d.ts +16 -50
- package/dist/packages/form/src/field.d.ts +2 -40
- package/dist/packages/form/src/fieldArray.d.ts +4 -5
- package/dist/packages/form/src/fieldArrayStepper.d.ts +4 -5
- package/dist/packages/form/src/form.d.ts +2 -17
- package/dist/packages/form/src/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { RESET } from "jotai/utils";
|
|
2
|
-
import { FormAtomType, FormFieldAtomType, FormArrayFieldRowsAtomType, FormFieldRegisterSelectorAttributes, FormFieldRegistryAtomType, DependentValuesType, SubscritionFieldsType } from "./types";
|
|
3
|
-
type FieldWithResetType = string | typeof RESET;
|
|
4
1
|
export declare const atomKeys: {
|
|
5
2
|
formAtom: string;
|
|
6
3
|
formFieldAtom: string;
|
|
@@ -20,50 +17,19 @@ export declare const atomKeys: {
|
|
|
20
17
|
formFieldsErrorWatcherAddSelector: string;
|
|
21
18
|
formFieldsErrorWatcherRemoveSelector: string;
|
|
22
19
|
};
|
|
23
|
-
export declare const formAtom:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export declare const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export declare const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export declare const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export declare const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
export declare const
|
|
39
|
-
init: string[];
|
|
40
|
-
}>;
|
|
41
|
-
export declare const formFieldExcludeAddSelector: import("jotai-family").AtomFamily<string, import("jotai/vanilla").WritableAtom<null, [FieldWithResetType], void> & {
|
|
42
|
-
init: null;
|
|
43
|
-
}>;
|
|
44
|
-
export declare const formFieldExcludeRemoveSelector: import("jotai-family").AtomFamily<string, import("jotai/vanilla").WritableAtom<null, [FieldWithResetType], void> & {
|
|
45
|
-
init: null;
|
|
46
|
-
}>;
|
|
47
|
-
export declare const formFieldRegistryAtom: import("jotai-family").AtomFamily<string, import("jotai/vanilla").WritableAtom<FormFieldRegistryAtomType, [typeof RESET | FormFieldRegistryAtomType | ((prev: FormFieldRegistryAtomType) => typeof RESET | FormFieldRegistryAtomType)], void> & {
|
|
48
|
-
init: FormFieldRegistryAtomType;
|
|
49
|
-
}>;
|
|
50
|
-
export declare const formFieldRegisterSelector: import("jotai-family").AtomFamily<string, import("jotai/vanilla").WritableAtom<null, [FormFieldRegisterSelectorAttributes | typeof RESET], void> & {
|
|
51
|
-
init: null;
|
|
52
|
-
}>;
|
|
53
|
-
export declare const formFieldUnregisterSelector: import("jotai-family").AtomFamily<string, import("jotai/vanilla").WritableAtom<null, [FieldWithResetType], void> & {
|
|
54
|
-
init: null;
|
|
55
|
-
}>;
|
|
56
|
-
export declare const formArrayFieldRowsAtom: import("jotai-family").AtomFamily<string, import("jotai/vanilla").WritableAtom<FormArrayFieldRowsAtomType, [FormArrayFieldRowsAtomType | typeof RESET | ((prev: FormArrayFieldRowsAtomType) => FormArrayFieldRowsAtomType | typeof RESET)], void> & {
|
|
57
|
-
init: FormArrayFieldRowsAtomType;
|
|
58
|
-
}>;
|
|
59
|
-
export declare const formArrayFieldRegistryAtom: import("jotai-family").AtomFamily<string, import("jotai/vanilla").WritableAtom<string[], [string[] | typeof RESET | ((prev: string[]) => string[] | typeof RESET)], void> & {
|
|
60
|
-
init: string[];
|
|
61
|
-
}>;
|
|
62
|
-
export declare const formArrayFieldRegisterSelector: import("jotai-family").AtomFamily<string, import("jotai/vanilla").WritableAtom<null, [FieldWithResetType], void> & {
|
|
63
|
-
init: null;
|
|
64
|
-
}>;
|
|
65
|
-
export declare const formArrayFieldUnregisterSelector: import("jotai-family").AtomFamily<string, import("jotai/vanilla").WritableAtom<null, [FieldWithResetType], void> & {
|
|
66
|
-
init: null;
|
|
67
|
-
}>;
|
|
68
|
-
export declare const subscribeToFormFieldsSelector: import("jotai-family").AtomFamily<SubscritionFieldsType, import("jotai/vanilla").Atom<DependentValuesType>>;
|
|
69
|
-
export {};
|
|
20
|
+
export declare const formAtom: any;
|
|
21
|
+
export declare const formFieldAtom: any;
|
|
22
|
+
export declare const formFieldsErrorWatcherAtom: any;
|
|
23
|
+
export declare const formFieldsErrorWatcherAddSelector: any;
|
|
24
|
+
export declare const formFieldsErrorWatcherRemoveSelector: any;
|
|
25
|
+
export declare const formFieldsExcludedAtom: any;
|
|
26
|
+
export declare const formFieldExcludeAddSelector: any;
|
|
27
|
+
export declare const formFieldExcludeRemoveSelector: any;
|
|
28
|
+
export declare const formFieldRegistryAtom: any;
|
|
29
|
+
export declare const formFieldRegisterSelector: any;
|
|
30
|
+
export declare const formFieldUnregisterSelector: any;
|
|
31
|
+
export declare const formArrayFieldRowsAtom: any;
|
|
32
|
+
export declare const formArrayFieldRegistryAtom: any;
|
|
33
|
+
export declare const formArrayFieldRegisterSelector: any;
|
|
34
|
+
export declare const formArrayFieldUnregisterSelector: any;
|
|
35
|
+
export declare const subscribeToFormFieldsSelector: any;
|
|
@@ -1,42 +1,4 @@
|
|
|
1
|
-
import { UseFieldHookProps,
|
|
2
|
-
export declare const useField: ({ fieldKey, name, dependentFields, validate, validationRun, shouldExclude, isReadOnly, postValidationSetCrossFieldValues, runPostValidationHookAlways, runValidationOnDependentFieldsChange, skipValueUpdateFromCrossFieldWhenReadOnly, runExternalFunction, onFormDataChange, txtTransform, AlwaysRunPostValidationSetCrossFieldValues, componentType, runPostValidationForInitValue, dependentFieldDebounceDelay, }: UseFieldHookProps) =>
|
|
3
|
-
formState: any;
|
|
4
|
-
whenToRunValidation: ("onChange" | "onBlur" | "all") | undefined;
|
|
5
|
-
isSubmitting: boolean;
|
|
6
|
-
handleChange: (eventOrTextValue: React.ChangeEvent<any> | Date | string | number | boolean | any[], displayValue?: Date | string | number | boolean | any[], isTransformedValue?: boolean, toMerge?: {}, ignoreUpdate?: boolean) => void;
|
|
7
|
-
handleBlur: (_?: {}, toMerge?: {}) => Promise<void>;
|
|
8
|
-
setTouched: () => void;
|
|
9
|
-
setValue: (val: any, displayValue: any, alwaysRun?: boolean, mergeObj?: Record<string, string>) => void;
|
|
10
|
-
setValueAsCB: (val: any) => void;
|
|
11
|
-
setErrorAsCB: (val: any) => void;
|
|
12
|
-
setIncomingMessage: (value: any) => void;
|
|
13
|
-
setFilteredOptions: (obj: Record<string, any>[]) => void;
|
|
14
|
-
runValidation: (mergeObj: any, alwaysRun?: boolean, touchAndValidate?: boolean) => void;
|
|
15
|
-
dependentValues: DependentValuesType;
|
|
16
|
-
handleOptionValueExtraData: (data: any) => void;
|
|
17
|
-
validationAPIResult: string;
|
|
18
|
-
setDisplayValue: (displayValue: any) => void;
|
|
19
|
-
setIgnoreInSubmit: (val: boolean) => void;
|
|
20
|
-
error: string;
|
|
21
|
-
initialValues: InitialValuesType | undefined;
|
|
22
|
-
fieldKey: string;
|
|
23
|
-
name: string;
|
|
24
|
-
value: any;
|
|
25
|
-
displayValue: any;
|
|
26
|
-
touched: boolean;
|
|
27
|
-
validationRunning: boolean;
|
|
28
|
-
excluded: boolean;
|
|
29
|
-
readOnly: boolean;
|
|
30
|
-
validate?: typeof ValidateFnType | import("./types").EmptyFnType | null | undefined;
|
|
31
|
-
incomingMessage?: any;
|
|
32
|
-
dependentFields?: string | string[] | undefined;
|
|
33
|
-
skipValueUpdateFromCrossFieldWhenReadOnly: boolean;
|
|
34
|
-
optionData?: any;
|
|
35
|
-
ignoreInSubmit?: boolean | undefined;
|
|
36
|
-
componentType?: string | undefined;
|
|
37
|
-
prevValue?: any;
|
|
38
|
-
dynamicCurrency?: string | undefined;
|
|
39
|
-
filteredOptions?: Record<string, any>[] | undefined;
|
|
40
|
-
};
|
|
1
|
+
import { UseFieldHookProps, 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, isCurrencyField, }: UseFieldHookProps) => any;
|
|
41
3
|
export declare const transformDependentFieldsState: (dependentValues: DependentValuesType) => {};
|
|
42
4
|
export declare const extractDependentFields: (input: any) => any[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { UseFieldArrayHookProps, RenderFn } from "./types";
|
|
3
2
|
export declare const useFieldArray: ({ arrayFieldName, template, shouldExclude, dependentFields, getFixedRowsCount, }: UseFieldArrayHookProps) => {
|
|
4
|
-
fieldRows:
|
|
3
|
+
fieldRows: any;
|
|
5
4
|
templateFieldNames: string[];
|
|
6
5
|
clearFieldArray: () => void;
|
|
7
6
|
getAllRowsValues: () => any;
|
|
@@ -12,9 +11,9 @@ export declare const useFieldArray: ({ arrayFieldName, template, shouldExclude,
|
|
|
12
11
|
remove: (index: number) => void;
|
|
13
12
|
swap: (indexA: number, indexB: number) => void;
|
|
14
13
|
move: (from: number, to: number) => void;
|
|
15
|
-
renderRows: (renderFn: RenderFn) =>
|
|
16
|
-
excluded:
|
|
17
|
-
isSubmitting:
|
|
14
|
+
renderRows: (renderFn: RenderFn) => any;
|
|
15
|
+
excluded: any;
|
|
16
|
+
isSubmitting: any;
|
|
18
17
|
formState: any;
|
|
19
18
|
formName: string;
|
|
20
19
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { UseFieldArrayHookProps, RenderFn } from "./types";
|
|
3
2
|
export declare const useFieldArray: ({ arrayFieldName, template, shouldExclude, dependentFields, getFixedRowsCount, }: UseFieldArrayHookProps) => {
|
|
4
|
-
fieldRows:
|
|
3
|
+
fieldRows: any;
|
|
5
4
|
templateFieldNames: string[];
|
|
6
5
|
clearFieldArray: () => void;
|
|
7
6
|
getAllRowsValues: () => any;
|
|
@@ -10,9 +9,9 @@ export declare const useFieldArray: ({ arrayFieldName, template, shouldExclude,
|
|
|
10
9
|
insert: (index: number) => void;
|
|
11
10
|
pop: () => void;
|
|
12
11
|
remove: (index: number) => void;
|
|
13
|
-
renderRows: (renderFn: RenderFn) =>
|
|
14
|
-
excluded:
|
|
15
|
-
isSubmitting:
|
|
12
|
+
renderRows: (renderFn: RenderFn) => any;
|
|
13
|
+
excluded: any;
|
|
14
|
+
isSubmitting: any;
|
|
16
15
|
formState: any;
|
|
17
16
|
formName: string;
|
|
18
17
|
};
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const useForm: ({ onSubmit, readOnly }: UseFormHookProps) => {
|
|
4
|
-
submitAttempt: number;
|
|
5
|
-
isSubmitting: boolean;
|
|
6
|
-
submitSuccessful: boolean;
|
|
7
|
-
serverSentError: string;
|
|
8
|
-
serverSentErrorDetail: string;
|
|
9
|
-
handleSubmit: (e: import("react").FormEvent<any>, actionFlag?: String | undefined, isValidate?: boolean | undefined, optionalData?: any) => Promise<any>;
|
|
10
|
-
handleSubmitPartial: (fields: string[]) => Promise<boolean>;
|
|
11
|
-
handleReset: (e: React.FormEvent<any>) => void;
|
|
12
|
-
handleResetPartial: (fields: string[]) => void;
|
|
13
|
-
handleClear: (e: any) => void;
|
|
14
|
-
handleClearPartial: (fields: string[]) => void;
|
|
15
|
-
getFieldData: () => Promise<{}>;
|
|
16
|
-
setFieldData: (fieldsValueObj?: FieldsErrorObjType | undefined) => void;
|
|
17
|
-
};
|
|
1
|
+
import { UseFormHookProps } from "./types";
|
|
2
|
+
export declare const useForm: ({ onSubmit, readOnly }: UseFormHookProps) => any;
|
|
@@ -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;
|