@acuteinfo/common-base 1.2.37 → 1.2.38-beta.1
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/arrayField-stepper.d.ts +4 -0
- package/dist/components/common/arrayField/arrayField2.d.ts +3 -1
- package/dist/components/common/arrayField/index.d.ts +1 -0
- package/dist/components/common/arrayField/style.d.ts +1 -1
- package/dist/components/common/textField/textField.d.ts +3 -3
- package/dist/components/context/propertiesConfig/customProperties.d.ts +5 -0
- package/dist/components/custom/Remarks.d.ts +3 -1
- package/dist/components/custom/advanceFilter.d.ts +2 -1
- package/dist/components/custom/popupContext.d.ts +3 -0
- package/dist/components/custom/popupMessage.d.ts +3 -1
- package/dist/components/custom/popupReqest.d.ts +3 -1
- package/dist/components/custom-hooks/useDebouncedValue.d.ts +9 -0
- package/dist/components/dataTable/gridWrapper.d.ts +2 -0
- package/dist/components/dataTableStatic/grid.d.ts +2 -1
- 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/detailPopupGridData/GridDetailsWithHeader/detailsGridWithHeader.d.ts +1 -1
- package/dist/components/detailPopupGridData/GridDetailsWithHeader/type.d.ts +2 -0
- package/dist/components/dynamicForm/types.d.ts +9 -2
- package/dist/components/dynamicForm/typesFields.d.ts +1 -0
- package/dist/components/fileUpload/preView.d.ts +1 -0
- package/dist/components/formcomponent/filterform/type.d.ts +2 -0
- package/dist/components/formcomponent/masterDetails/masterDetailsForm.d.ts +2 -0
- package/dist/components/report/gridTable.d.ts +1 -0
- package/dist/components/report/serverReport/ReportWrapper.d.ts +2 -0
- package/dist/components/report/serverReport/serverGridTable.d.ts +1 -0
- package/dist/components/report/types.d.ts +2 -0
- package/dist/components/utils/reportExport/ReportExportScreen.d.ts +1 -0
- package/dist/components/utils/reportExport/exportFunctions/metaData.d.ts +181 -2
- package/dist/components/utils/utilFunctions/function.d.ts +14 -0
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/packages/form/src/field.d.ts +2 -1
- package/dist/packages/form/src/fieldArrayStepper.d.ts +19 -0
- package/dist/packages/form/src/types.d.ts +6 -0
- package/dist/pages_audit/common/serverGrid/serverGrid.d.ts +4 -0
- package/package.json +2 -2
- package/dist/components/layoutReport/hooks/useDebouncedValue.d.ts +0 -12
|
@@ -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, dependentFieldDebounceDelay, }: UseFieldHookProps) => {
|
|
3
3
|
formState: any;
|
|
4
4
|
whenToRunValidation: ("onChange" | "onBlur" | "all") | undefined;
|
|
5
5
|
isSubmitting: boolean;
|
|
@@ -35,6 +35,7 @@ export declare const useField: ({ fieldKey, name, dependentFields, validate, val
|
|
|
35
35
|
ignoreInSubmit?: boolean | undefined;
|
|
36
36
|
componentType?: string | undefined;
|
|
37
37
|
prevValue?: any;
|
|
38
|
+
dynamicCurrency?: string | undefined;
|
|
38
39
|
filteredOptions?: Record<string, any>[] | undefined;
|
|
39
40
|
};
|
|
40
41
|
export declare const transformDependentFieldsState: (dependentValues: DependentValuesType) => {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { UseFieldArrayHookProps, RenderFn } from "./types";
|
|
3
|
+
export declare const useFieldArray: ({ arrayFieldName, template, shouldExclude, dependentFields, getFixedRowsCount, }: UseFieldArrayHookProps) => {
|
|
4
|
+
fieldRows: import("./types").FormArrayFieldRowsAtomType;
|
|
5
|
+
templateFieldNames: string[];
|
|
6
|
+
clearFieldArray: () => void;
|
|
7
|
+
getAllRowsValues: () => any;
|
|
8
|
+
unshift: () => void;
|
|
9
|
+
push: () => void;
|
|
10
|
+
insert: (index: number) => void;
|
|
11
|
+
pop: () => void;
|
|
12
|
+
remove: (index: number) => void;
|
|
13
|
+
renderRows: (renderFn: RenderFn) => JSX.Element[];
|
|
14
|
+
excluded: boolean;
|
|
15
|
+
isSubmitting: boolean;
|
|
16
|
+
formState: any;
|
|
17
|
+
formName: string;
|
|
18
|
+
isPending: boolean;
|
|
19
|
+
};
|
|
@@ -3,6 +3,7 @@ import { AnyObjectSchema } from "yup";
|
|
|
3
3
|
export interface TemplateFieldRowType {
|
|
4
4
|
fieldIndexKey: string;
|
|
5
5
|
cells: TemplateFieldCellsObjectType;
|
|
6
|
+
isDeleted?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export interface TemplateFieldCellsObjectType {
|
|
8
9
|
[key: string]: TemplateFieldCellType;
|
|
@@ -21,6 +22,9 @@ export interface FormContextType {
|
|
|
21
22
|
validationSchema?: AnyObjectSchema;
|
|
22
23
|
formState: any;
|
|
23
24
|
defaultArrayFieldValues?: InitialValuesType;
|
|
25
|
+
lastValidationValue?: any;
|
|
26
|
+
flagRef?: any;
|
|
27
|
+
setCurrentStepIndexFnRef?: Function | null;
|
|
24
28
|
}
|
|
25
29
|
export type FormFieldRegistryAtomType = string[];
|
|
26
30
|
export interface FormFieldRegisterSelectorAttributes {
|
|
@@ -56,6 +60,7 @@ export interface FormFieldAtomType {
|
|
|
56
60
|
ignoreInSubmit?: boolean;
|
|
57
61
|
componentType?: string;
|
|
58
62
|
prevValue?: any;
|
|
63
|
+
dynamicCurrency?: string;
|
|
59
64
|
filteredOptions?: Record<string, any>[];
|
|
60
65
|
}
|
|
61
66
|
export interface DependentValuesType {
|
|
@@ -97,6 +102,7 @@ export interface UseFieldHookProps {
|
|
|
97
102
|
AlwaysRunPostValidationSetCrossFieldValues?: AlwaysRunPostValidationSetCrossFieldValuesType | ((dependentFields: any) => AlwaysRunPostValidationSetCrossFieldValuesType);
|
|
98
103
|
componentType?: string;
|
|
99
104
|
runPostValidationForInitValue?: boolean;
|
|
105
|
+
dependentFieldDebounceDelay?: number;
|
|
100
106
|
}
|
|
101
107
|
export interface UseFieldArrayHookProps {
|
|
102
108
|
arrayFieldName: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ActionTypes } from "components/dataTable";
|
|
3
|
+
import { SxProps } from "@mui/material";
|
|
3
4
|
interface ServerGridType {
|
|
4
5
|
dataGridKey: string;
|
|
5
6
|
getAPIReqPara?: any;
|
|
@@ -15,6 +16,9 @@ interface ServerGridType {
|
|
|
15
16
|
reportTemplateCode?: string;
|
|
16
17
|
variant?: "standard" | "contained" | "outlined";
|
|
17
18
|
autoFetch?: boolean;
|
|
19
|
+
headerToolbarStyle?: SxProps;
|
|
20
|
+
enableEnterToFocus?: boolean;
|
|
21
|
+
focusScopeId?: string;
|
|
18
22
|
}
|
|
19
23
|
export declare const ServerGrid: import("react").ForwardRefExoticComponent<ServerGridType & import("react").RefAttributes<any>>;
|
|
20
24
|
export declare const ServerGridWrapper: import("react").ForwardRefExoticComponent<ServerGridType & import("react").RefAttributes<any>>;
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A custom hook that returns a debounced version of the input value.
|
|
3
|
-
* The debounced value updates after a specified delay, which is useful
|
|
4
|
-
* for scenarios like search inputs where you want to limit the number
|
|
5
|
-
* of updates or API calls while the user is typing.
|
|
6
|
-
*
|
|
7
|
-
* @param {string} value - The input value that you want to debounce.
|
|
8
|
-
* @param {number} [delay=500] - The amount of time (in milliseconds) to wait
|
|
9
|
-
* before updating the debounced value. Defaults to 500 milliseconds.
|
|
10
|
-
* @returns {string} The debounced value that updates after the specified delay.
|
|
11
|
-
*/
|
|
12
|
-
export declare const useDebouncedValue: (value: string, delay?: number) => string;
|