@acuteinfo/common-base 1.2.38-beta.1 → 1.2.38-beta.10
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 +1 -1
- package/dist/components/common/arrayField/arrayField2.d.ts +2 -0
- package/dist/components/common/autocomplete/autocomplete.d.ts +3 -0
- package/dist/components/common/datetime/datePicker.d.ts +2 -0
- package/dist/components/common/datetime/datetimePicker.d.ts +2 -0
- package/dist/components/common/datetime/timePicker.d.ts +1 -0
- package/dist/components/common/divider/divider.d.ts +1 -0
- package/dist/components/common/formbutton/formbutton.d.ts +1 -0
- package/dist/components/common/hidden/hidden.d.ts +1 -0
- package/dist/components/common/printButton/printButton.d.ts +8 -1
- package/dist/components/common/select/select.d.ts +2 -0
- package/dist/components/common/textField/textField.d.ts +3 -1
- package/dist/components/common/types.d.ts +2 -0
- package/dist/components/common/typograhpy/typography.d.ts +1 -0
- package/dist/components/common/utils/optionsFetcher.d.ts +2 -0
- package/dist/components/context/propertiesConfig/customProperties.d.ts +5 -0
- package/dist/components/custom/Remarks.d.ts +19 -17
- package/dist/components/dataTable/atoms/index.d.ts +1 -11
- package/dist/components/dataTable/components/useCheckbox.d.ts +1 -1
- package/dist/components/dataTable/gridWrapper.d.ts +5 -0
- 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 +6 -0
- package/dist/components/dataTable/utils/attachAlignmentProps.d.ts +2 -0
- package/dist/components/dataTable/utils/attachCellComponentsToMetaData.d.ts +1 -0
- package/dist/components/dataTable/utils/sortColumnBySequence.d.ts +1 -0
- package/dist/components/dataTableStatic/types.d.ts +18 -0
- package/dist/components/dataTableStatic/utils/attachCombineValidationFns.d.ts +4 -0
- package/dist/components/dataTableStatic/utils/attachYupSchema.d.ts +4 -0
- package/dist/components/dynamicForm/simpleForm.d.ts +6 -3
- package/dist/components/dynamicForm/types.d.ts +8 -1
- package/dist/components/dynamicForm/typesFields.d.ts +2 -1
- package/dist/components/dynamicForm/utils/constructINITValues.d.ts +1 -1
- package/dist/components/dynamicForm/utils/extendedFieldTypes.d.ts +1 -1
- package/dist/components/dynamicForm/utils/groupWiserenderer.d.ts +2 -2
- package/dist/components/formcomponent/masterDetails/masterDetailsForm.d.ts +4 -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/filterComponent/filterComponent.d.ts +2 -1
- package/dist/components/report/gridTable.d.ts +14 -1
- package/dist/components/report/serverReport/ReportWrapper.d.ts +8 -0
- package/dist/components/report/serverReport/serverGridTable.d.ts +13 -0
- package/dist/components/report/types.d.ts +18 -1
- package/dist/components/styledComponent/button/button.d.ts +7 -0
- package/dist/components/utils/utilFunctions/function.d.ts +16 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +19 -19
- package/dist/index.js.map +1 -1
- package/dist/packages/form/src/atoms.d.ts +49 -16
- package/dist/packages/form/src/field.d.ts +5 -3
- package/dist/packages/form/src/fieldArrayStepper.d.ts +0 -1
- package/dist/packages/form/src/form.d.ts +3 -1
- package/dist/packages/form/src/observer.d.ts +1 -1
- package/dist/packages/form/src/types.d.ts +5 -0
- package/dist/pages_audit/common/serverGrid/serverGrid.d.ts +5 -0
- package/package.json +5 -4
- package/rollup.config.mjs +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ArrayField2Props } from "./arrayField2";
|
|
3
3
|
export declare const ArrayFieldStepper: import("react").NamedExoticComponent<ArrayField2Props>;
|
|
4
|
-
export declare const ArrayFieldRow: import("react").MemoExoticComponent<({ row, classes, formState, getAllRowsValues, removeFn, rowIndex, totalRows, fields, currentMetaToObj, componentProps, t, arrayFieldName, isRemoveButton, removeRowFn, disagreeButtonName, agreeButtonName, errorTitle, hideRemoveIconOnSingleRecord, onFormButtonClickHandel, onFormDataChange, isSubmitting, fixedRows, onRowRemove, selectedRowIndex, setSelectedRowIndex, enableEnterToFocus, }: any) => import("react/jsx-runtime").JSX.Element>;
|
|
4
|
+
export declare const ArrayFieldRow: import("react").MemoExoticComponent<({ row, classes, formState, getAllRowsValues, removeFn, rowIndex, totalRows, fields, currentMetaToObj, componentProps, t, arrayFieldName, isRemoveButton, removeRowFn, disagreeButtonName, agreeButtonName, errorTitle, hideRemoveIconOnSingleRecord, onFormButtonClickHandel, onFormDataChange, isSubmitting, fixedRows, onRowRemove, selectedRowIndex, setSelectedRowIndex, enableEnterToFocus, focusScopeId, }: any) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -30,6 +30,8 @@ export interface ArrayField2Props {
|
|
|
30
30
|
noRecordMessage?: string;
|
|
31
31
|
hideRemoveIconOnSingleRecord?: boolean;
|
|
32
32
|
enableEnterToFocus?: boolean;
|
|
33
|
+
focusScopeId?: string;
|
|
34
|
+
formState?: any;
|
|
33
35
|
}
|
|
34
36
|
export declare const ArrayField2: FC<ArrayField2Props>;
|
|
35
37
|
export declare const ArrayFieldRow: ({ row, getAllRowsValues, fieldKey, oneRow, classes, removeFn, rowIndex, removeRowFn, totalRows, isSubmitting, formState, formName, arrayFieldIDName, arrayFieldName, fixedRows, isDisplayCount, isCustomStyle, disagreeButtonName, agreeButtonName, errorTitle, displayCountName, isRemoveButton, selectedRowIndex, setSelectedRowIndex, hideRemoveIconOnSingleRecord, enableEnterToFocus, }: {
|
|
@@ -39,10 +39,13 @@ interface AutoCompleteExtendedProps {
|
|
|
39
39
|
listBoxMinWidth?: number | string;
|
|
40
40
|
listBoxMaxWidth?: number | string;
|
|
41
41
|
setValueOnDependentFieldsChange?: any;
|
|
42
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any, valueObj: any) => string | undefined;
|
|
42
43
|
optionsGridColDef?: Record<string, Partial<GridColumnType>>;
|
|
43
44
|
runPostValidationForInitValue?: boolean;
|
|
44
45
|
skipInitialDefaultValueKeyValidation?: boolean;
|
|
45
46
|
filterOptionsCb: (options: any, dep: any, fs: any) => OptionsProps[];
|
|
47
|
+
setColor?: (value: any, dependentFields: any, formState: any) => string;
|
|
48
|
+
customLabelKey?: string;
|
|
46
49
|
}
|
|
47
50
|
type MyAutocompleteProps = Merge<AutocompleteProps<OptionsProps, true, true, true>, AutoCompleteExtendedProps>;
|
|
48
51
|
export type MyAllAutocompleteProps = Merge<MyAutocompleteProps, UseFieldHookProps>;
|
|
@@ -23,6 +23,8 @@ interface MyGridExtendedProps {
|
|
|
23
23
|
placeholder?: string;
|
|
24
24
|
} | null | undefined;
|
|
25
25
|
runPostValidationForInitValue?: boolean;
|
|
26
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any, valueObj: any) => string | undefined;
|
|
27
|
+
setColor?: (value: any, dependentFields: any, formState: any) => string;
|
|
26
28
|
}
|
|
27
29
|
export type MyDataPickerAllProps = Merge<Merge<KeyboardDatePickerPropsSubset, MyGridExtendedProps>, UseFieldHookProps>;
|
|
28
30
|
export declare const MyDatePicker: FC<MyDataPickerAllProps>;
|
|
@@ -18,6 +18,8 @@ interface MyGridExtendedProps {
|
|
|
18
18
|
disablePast?: boolean;
|
|
19
19
|
disableFuture?: boolean;
|
|
20
20
|
runPostValidationForInitValue?: boolean;
|
|
21
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any, valueObj: any) => string | undefined;
|
|
22
|
+
setColor?: (value: any, dependentFields: any, formState: any) => string;
|
|
21
23
|
}
|
|
22
24
|
export type MyDateTimePickerAllProps = Merge<Merge<KeyboardDateTimePickerPropsSubset, MyGridExtendedProps>, UseFieldHookProps>;
|
|
23
25
|
export declare const MyDateTimePicker: FC<MyDateTimePickerAllProps>;
|
|
@@ -13,6 +13,7 @@ interface MyGridExtendedProps {
|
|
|
13
13
|
label: string;
|
|
14
14
|
placeholder?: string;
|
|
15
15
|
} | null | undefined;
|
|
16
|
+
setColor?: (value: any, dependentFields: any, formState: any) => string;
|
|
16
17
|
}
|
|
17
18
|
export type MyTimeTimePickerAllProps = Merge<Merge<KeyboardTimePickerPropsSubset, MyGridExtendedProps>, UseFieldHookProps>;
|
|
18
19
|
export declare const MyTimePicker: FC<MyTimeTimePickerAllProps>;
|
|
@@ -5,6 +5,7 @@ import { GridProps, DividerProps } from "@mui/material";
|
|
|
5
5
|
interface MyGridExtendedProps {
|
|
6
6
|
GridProps?: GridProps;
|
|
7
7
|
setValueOnDependentFieldsChange?: any;
|
|
8
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any) => string | undefined;
|
|
8
9
|
label?: string;
|
|
9
10
|
DividerProps?: DividerProps;
|
|
10
11
|
componentType?: string;
|
|
@@ -18,6 +18,7 @@ interface MyButtonExtendedProps {
|
|
|
18
18
|
endsIcon?: keyof typeof Icons;
|
|
19
19
|
rotateIcon?: string;
|
|
20
20
|
setValueOnDependentFieldsChange?: any;
|
|
21
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any) => string | undefined;
|
|
21
22
|
onFormButtonClickHandel?: any;
|
|
22
23
|
ignoreInSubmit?: (dependentValues: any, formState: any, object: {
|
|
23
24
|
isSubmitting?: boolean;
|
|
@@ -5,6 +5,7 @@ interface MyGridExtendedProps {
|
|
|
5
5
|
GridProps?: GridProps;
|
|
6
6
|
enableGrid: boolean;
|
|
7
7
|
setValueOnDependentFieldsChange?: any;
|
|
8
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any) => string | undefined;
|
|
8
9
|
ignoreInSubmit?: (dependentValues: any, formState: any) => boolean | boolean;
|
|
9
10
|
runPostValidationForInitValue?: boolean;
|
|
10
11
|
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { IReactToPrintProps } from "react-to-print";
|
|
2
2
|
export interface DefaultChieldData {
|
|
3
3
|
buttonText?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Enable keyboard shortcut (Alt+S) when button text contains "save"
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
8
|
+
enableShortcut?: boolean;
|
|
9
|
+
shortcut?: "alt" | "ctrl" | "shift" | "meta";
|
|
10
|
+
eventKey?: string;
|
|
4
11
|
}
|
|
5
12
|
type PrintAllProps = Merge<DefaultChieldData, IReactToPrintProps>;
|
|
6
|
-
export declare const PrintButton: ({ content, buttonText, ...other }: PrintAllProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const PrintButton: ({ content, buttonText, enableShortcut, shortcut, eventKey, ...other }: PrintAllProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
14
|
export type Merge<A, B> = {
|
|
8
15
|
[K in keyof A]: K extends keyof B ? B[K] : A[K];
|
|
9
16
|
} & B extends infer O ? {
|
|
@@ -16,6 +16,7 @@ interface extendedFieldProps extends UseFieldHookProps {
|
|
|
16
16
|
defaultOptionLabel?: string;
|
|
17
17
|
enableDefaultOption?: boolean;
|
|
18
18
|
setValueOnDependentFieldsChange?: any;
|
|
19
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any, valueObj: any) => string | undefined;
|
|
19
20
|
}
|
|
20
21
|
type MySelectProps = Merge<TextFieldProps, extendedFieldProps>;
|
|
21
22
|
interface MySelectExtendedProps {
|
|
@@ -37,6 +38,7 @@ interface MySelectExtendedProps {
|
|
|
37
38
|
defaultValueKey?: string;
|
|
38
39
|
runPostValidationForInitValue?: boolean;
|
|
39
40
|
filterOptionsCb?: (options: any, dep: any, fs: any) => OptionsProps[];
|
|
41
|
+
focusScopeId?: string;
|
|
40
42
|
}
|
|
41
43
|
export type MySelectAllProps = Merge<MySelectProps, MySelectExtendedProps>;
|
|
42
44
|
declare const MySelect: FC<MySelectAllProps>;
|
|
@@ -15,7 +15,8 @@ interface MyGridExtendedProps {
|
|
|
15
15
|
CircularProgressProps?: CircularProgressProps;
|
|
16
16
|
enableGrid: boolean;
|
|
17
17
|
setValueOnDependentFieldsChange?: any;
|
|
18
|
-
|
|
18
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any, valueObj: any) => string | undefined;
|
|
19
|
+
setColor?: (value: any, dependentFields: any, formState: any) => string;
|
|
19
20
|
showMaxLength?: boolean;
|
|
20
21
|
allowToggleVisiblity?: boolean;
|
|
21
22
|
startsIcon?: keyof typeof Icons;
|
|
@@ -42,6 +43,7 @@ interface MyGridExtendedProps {
|
|
|
42
43
|
addHandleKeyDownFromExtendedType?: boolean;
|
|
43
44
|
runPostValidationForInitValue?: boolean;
|
|
44
45
|
isCurrencyField?: boolean;
|
|
46
|
+
allowEmojiIcons?: boolean;
|
|
45
47
|
}
|
|
46
48
|
type MyTextFieldAllProps = Merge<TextFieldProps, MyGridExtendedProps>;
|
|
47
49
|
export type MyTextFieldProps = UseFieldHookProps & MyTextFieldAllProps;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DependentValuesType } from "packages/form";
|
|
2
|
+
import { CSSProperties } from "react";
|
|
2
3
|
export type Merge<A, B> = {
|
|
3
4
|
[K in keyof A]: K extends keyof B ? B[K] : A[K];
|
|
4
5
|
} & B extends infer O ? {
|
|
@@ -12,6 +13,7 @@ export interface OptionsProps {
|
|
|
12
13
|
label: string;
|
|
13
14
|
value: any;
|
|
14
15
|
disabled?: boolean;
|
|
16
|
+
style?: CSSProperties;
|
|
15
17
|
}
|
|
16
18
|
export interface dependentOptionsFn {
|
|
17
19
|
(optionsFn?: DependentValuesType, formName?: string): OptionsProps[] | Promise<OptionsProps[]>;
|
|
@@ -8,6 +8,7 @@ export interface AllTypographyProps {
|
|
|
8
8
|
label: string;
|
|
9
9
|
fieldKey: string;
|
|
10
10
|
setValueOnDependentFieldsChange?: Function;
|
|
11
|
+
setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any) => string | undefined;
|
|
11
12
|
componentType?: string;
|
|
12
13
|
}
|
|
13
14
|
export type MyTypographyAllProps = UseFieldHookProps & AllTypographyProps;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const useOptionsFetcher: (formState: any, options: any, setOptions: any, handleChangeInterceptor: any, dependentValues: any, incomingMessage: any, runValidation: any, whenToRunValidation: any, optionsKey: any, disableCaching: any, setIncomingMessage: any, skipDefaultOption: any, defaultOptionLabel: any, enableDefaultOption: any, setGridProps?: Function | undefined) => {
|
|
2
2
|
loadingOptions: boolean;
|
|
3
|
+
queryError?: boolean | undefined;
|
|
4
|
+
refetchOptions?: Function | undefined;
|
|
3
5
|
};
|
|
4
6
|
/****** ---- */
|
|
5
7
|
export declare const useOptionsFetcherSimple: (options: any, setOptions: any, _optionsKey: any, disableCaching: any, optionsProps: any, skipDefaultOption: any, defaultOptionLabel: any, enableDefaultOption: any) => {
|
|
@@ -118,6 +118,11 @@ export interface CustomProperties {
|
|
|
118
118
|
* @default false
|
|
119
119
|
*/
|
|
120
120
|
enableEnterToFocus?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Refetches options of autocomplete when online
|
|
123
|
+
* @default true
|
|
124
|
+
*/
|
|
125
|
+
refetchOptionsWhenOnline?: boolean;
|
|
121
126
|
}
|
|
122
127
|
interface ContextProps {
|
|
123
128
|
config?: CustomProperties;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface RemarksAPIWrapperProps {
|
|
2
2
|
TitleText: any;
|
|
3
3
|
onActionNo: any;
|
|
4
4
|
onActionYes: any;
|
|
5
|
-
isRequired?: boolean
|
|
6
|
-
isEntertoSubmit?: boolean
|
|
7
|
-
AcceptbuttonLabelText?: string
|
|
8
|
-
CanceltbuttonLabelText?: string
|
|
9
|
-
isLoading?: boolean
|
|
10
|
-
open?: boolean
|
|
11
|
-
label?: string
|
|
12
|
-
placeholder?: string
|
|
13
|
-
defaultValue?: string
|
|
14
|
-
rows
|
|
15
|
-
customRequiredMessage?: string
|
|
16
|
-
maxLength?: number
|
|
17
|
-
showMaxLength?: boolean
|
|
18
|
-
enableEnterToFocus?:
|
|
19
|
-
focusScopeId?: string
|
|
20
|
-
|
|
5
|
+
isRequired?: boolean;
|
|
6
|
+
isEntertoSubmit?: boolean;
|
|
7
|
+
AcceptbuttonLabelText?: string;
|
|
8
|
+
CanceltbuttonLabelText?: string;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
label?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
rows?: any;
|
|
15
|
+
customRequiredMessage?: string;
|
|
16
|
+
maxLength?: number;
|
|
17
|
+
showMaxLength?: boolean;
|
|
18
|
+
enableEnterToFocus?: boolean;
|
|
19
|
+
focusScopeId?: string;
|
|
20
|
+
preventSpecialChars?: string | (() => string | null) | null;
|
|
21
|
+
}
|
|
22
|
+
export declare const RemarksAPIWrapper: ({ TitleText, onActionNo, onActionYes, isRequired, isEntertoSubmit, AcceptbuttonLabelText, CanceltbuttonLabelText, isLoading, open, label, placeholder, defaultValue, rows, customRequiredMessage, maxLength, showMaxLength, enableEnterToFocus, focusScopeId, preventSpecialChars, }: RemarksAPIWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
accessor: string;
|
|
3
|
-
condition: string;
|
|
4
|
-
value: any[] | any;
|
|
5
|
-
}
|
|
6
|
-
export interface SubscriptionType {
|
|
7
|
-
[key: string]: string[] | string | undefined;
|
|
8
|
-
}
|
|
9
|
-
export declare const filterAtom: (param: string) => import("recoil").RecoilState<QueryType | null>;
|
|
10
|
-
export declare const filtersAtom: (param: string) => import("recoil").RecoilState<QueryType[] | null>;
|
|
11
|
-
export declare const subscribeToFilterChange: (param: SubscriptionType) => import("recoil").RecoilValueReadOnly<QueryType[]>;
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useCheckboxColumn: (
|
|
1
|
+
export declare const useCheckboxColumn: (allowRowSelection: any, setContextMenuSelectedRowId: any) => (hooks: any) => void;
|
|
@@ -19,6 +19,11 @@ interface GridWrapperPropsType {
|
|
|
19
19
|
headerToolbarStyle?: SxProps;
|
|
20
20
|
enableEnterToFocus?: boolean;
|
|
21
21
|
focusScopeId?: string;
|
|
22
|
+
onClickActionEvent?: any;
|
|
23
|
+
handleClickAction?: (event: any, data: any) => void;
|
|
24
|
+
onDataChange?: (data: any[]) => void;
|
|
25
|
+
defaultSelectedRowId?: string | ((gridData: any) => string | null);
|
|
26
|
+
disableMultipleRowSelect?: boolean;
|
|
22
27
|
}
|
|
23
28
|
export declare const GridWrapper: React.ForwardRefExoticComponent<GridWrapperPropsType & React.RefAttributes<any>>;
|
|
24
29
|
export {};
|
|
@@ -5,6 +5,11 @@ interface HeaderCellProps {
|
|
|
5
5
|
rows?: any[];
|
|
6
6
|
loading?: boolean;
|
|
7
7
|
children?: React.ReactNode | any;
|
|
8
|
+
pinnedOffsets?: {
|
|
9
|
+
leftMap: Record<string, number>;
|
|
10
|
+
rightMap: Record<string, number>;
|
|
11
|
+
};
|
|
12
|
+
visibleColumns?: any[];
|
|
8
13
|
}
|
|
9
14
|
export declare const HeaderCellWrapper: React.FC<HeaderCellProps>;
|
|
10
15
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledSlider: import("react").JSXElementConstructor<Omit<import("@mui/material/Slider").SliderOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
4
|
-
}, "onChange" | "value" | "
|
|
4
|
+
}, "onChange" | "value" | "defaultValue" | "name" | "color" | "scale" | "size" | "style" | "disabled" | "classes" | "className" | "sx" | "track" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "components" | "componentsProps" | "slotProps" | "slots" | "step" | "max" | "min" | "orientation" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "marks" | "onChangeCommitted" | "shiftStep" | "valueLabelDisplay" | "valueLabelFormat">, "classes"> & import("@mui/styles").StyledComponentProps<"root" | "active" | "track" | "rail" | "thumb" | "valueLabel"> & object>;
|
|
@@ -17,6 +17,7 @@ export interface GridColumnType {
|
|
|
17
17
|
sortDescFirst?: boolean;
|
|
18
18
|
dateFormat?: string;
|
|
19
19
|
actions?: string[] | string;
|
|
20
|
+
disableSorting?: boolean;
|
|
20
21
|
}
|
|
21
22
|
export interface FilterColumnType {
|
|
22
23
|
Filter?: any;
|
|
@@ -43,6 +44,8 @@ export interface GridConfigType {
|
|
|
43
44
|
maxWidth?: number;
|
|
44
45
|
minWidth?: number;
|
|
45
46
|
};
|
|
47
|
+
showUserCode?: boolean;
|
|
48
|
+
setScreenCode?: boolean;
|
|
46
49
|
}
|
|
47
50
|
export interface HeaderFilterType {
|
|
48
51
|
accessor: string;
|
|
@@ -101,6 +104,9 @@ export interface ActionTypes {
|
|
|
101
104
|
* Sets button background color.
|
|
102
105
|
*/
|
|
103
106
|
actionBackground?: string;
|
|
107
|
+
enableShortcut?: boolean;
|
|
108
|
+
shortcut?: "alt" | "ctrl" | "shift" | "meta";
|
|
109
|
+
eventKey?: string;
|
|
104
110
|
}
|
|
105
111
|
export interface RenderActionType {
|
|
106
112
|
actions: ActionTypes[];
|
|
@@ -14,6 +14,7 @@ export declare const attachAlignmentProps: (columns: GridColumnType[]) => ({
|
|
|
14
14
|
sortDescFirst?: boolean | undefined;
|
|
15
15
|
dateFormat?: string | undefined;
|
|
16
16
|
actions?: string | string[] | undefined;
|
|
17
|
+
disableSorting?: boolean | undefined;
|
|
17
18
|
} | {
|
|
18
19
|
cellHeaderAlignment: string;
|
|
19
20
|
TableCellProps: {
|
|
@@ -32,4 +33,5 @@ export declare const attachAlignmentProps: (columns: GridColumnType[]) => ({
|
|
|
32
33
|
sortDescFirst?: boolean | undefined;
|
|
33
34
|
dateFormat?: string | undefined;
|
|
34
35
|
actions?: string | string[] | undefined;
|
|
36
|
+
disableSorting?: boolean | undefined;
|
|
35
37
|
})[];
|
|
@@ -24,6 +24,16 @@ export interface GridColumnType {
|
|
|
24
24
|
isVisible?: boolean;
|
|
25
25
|
validation?: any;
|
|
26
26
|
showTooltip?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Custom tooltip value shown on hover.
|
|
29
|
+
*
|
|
30
|
+
* If a string is provided, it must be a valid row accessor.
|
|
31
|
+
*
|
|
32
|
+
* If a function is provided, it receives the grid row object and returns a string conditionally.
|
|
33
|
+
*
|
|
34
|
+
* Note: Works if componentType is **default**
|
|
35
|
+
*/
|
|
36
|
+
customTooltipValue?: string | ((row: any) => string);
|
|
27
37
|
tooltipPlacement?: "top-start" | "top" | "top-end" | "left-start" | "left" | "left-end" | "right-start" | "right" | "right-end" | "bottom-start" | "bottom" | "bottom-end";
|
|
28
38
|
schemaValidation?: GridYupSchemaMetaDataType;
|
|
29
39
|
options?: any;
|
|
@@ -155,6 +165,12 @@ export interface GridColumnType {
|
|
|
155
165
|
icon: ReactNode;
|
|
156
166
|
tooltip?: string;
|
|
157
167
|
};
|
|
168
|
+
disableSortBy?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* prevent input characters in editableTextfield
|
|
171
|
+
*/
|
|
172
|
+
preventSpecialChars?: string | Function | null;
|
|
173
|
+
pinColumn?: "left" | "right";
|
|
158
174
|
}
|
|
159
175
|
export interface GridConfigType {
|
|
160
176
|
dense?: boolean;
|
|
@@ -201,6 +217,8 @@ export interface GridConfigType {
|
|
|
201
217
|
* Set false to prevent auto fetch api for server grid
|
|
202
218
|
*/
|
|
203
219
|
autoFetch?: boolean;
|
|
220
|
+
showUserCode?: boolean;
|
|
221
|
+
setScreenCode?: boolean;
|
|
204
222
|
}
|
|
205
223
|
export interface GridMetaDataType {
|
|
206
224
|
columns: GridColumnType[];
|
|
@@ -17,6 +17,7 @@ export declare const attachcombinedValidationFns: (columns: GridColumnType[], au
|
|
|
17
17
|
dateFormat?: string | undefined;
|
|
18
18
|
isVisible?: boolean | undefined;
|
|
19
19
|
showTooltip?: boolean | undefined;
|
|
20
|
+
customTooltipValue?: string | ((row: any) => string) | undefined;
|
|
20
21
|
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
21
22
|
options?: any;
|
|
22
23
|
isPassword?: boolean | undefined;
|
|
@@ -84,4 +85,7 @@ export declare const attachcombinedValidationFns: (columns: GridColumnType[], au
|
|
|
84
85
|
icon: import("react").ReactNode;
|
|
85
86
|
tooltip?: string | undefined;
|
|
86
87
|
} | undefined;
|
|
88
|
+
disableSortBy?: boolean | undefined;
|
|
89
|
+
preventSpecialChars?: string | Function | null | undefined;
|
|
90
|
+
pinColumn?: "left" | "right" | undefined;
|
|
87
91
|
}[];
|
|
@@ -17,6 +17,7 @@ export declare const attachYupSchemaValidator: (columns: GridColumnType[]) => {
|
|
|
17
17
|
isVisible?: boolean | undefined;
|
|
18
18
|
validation?: any;
|
|
19
19
|
showTooltip?: boolean | undefined;
|
|
20
|
+
customTooltipValue?: string | ((row: any) => string) | undefined;
|
|
20
21
|
tooltipPlacement?: "bottom" | "left" | "right" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
21
22
|
options?: any;
|
|
22
23
|
isPassword?: boolean | undefined;
|
|
@@ -84,4 +85,7 @@ export declare const attachYupSchemaValidator: (columns: GridColumnType[]) => {
|
|
|
84
85
|
icon: import("react").ReactNode;
|
|
85
86
|
tooltip?: string | undefined;
|
|
86
87
|
} | undefined;
|
|
88
|
+
disableSortBy?: boolean | undefined;
|
|
89
|
+
preventSpecialChars?: string | Function | null | undefined;
|
|
90
|
+
pinColumn?: "left" | "right" | undefined;
|
|
87
91
|
}[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import { FormProps } from "./types";
|
|
3
3
|
export declare const SimpleForm: FC<FormProps>;
|
|
4
|
-
export declare const SimpleFormWrapper: ({ fields, formRenderConfig, formName, formStyle, hidden, formDisplayLabel, displayMode, hideDisplayModeInTitle, wrapperChild, serverSentError, serverSentErrorDetail, isSubmitting, classes, handleSubmit, controlsAtBottom, hideHeader, containerstyle, subHeaderLabel, subHeaderLabelStyle, formHeaderStyle, }: {
|
|
4
|
+
export declare const SimpleFormWrapper: ({ fields, formRenderConfig, formName, formStyle, hidden, formDisplayLabel, displayMode, hideDisplayModeInTitle, wrapperChild, serverSentError, serverSentErrorDetail, isSubmitting, classes, handleSubmit, controlsAtBottom, hideHeader, containerstyle, subHeaderLabel, subHeaderLabelStyle, formHeaderStyle, validationRunning, }: {
|
|
5
5
|
fields: any;
|
|
6
6
|
formRenderConfig: any;
|
|
7
7
|
formName: any;
|
|
@@ -22,14 +22,16 @@ export declare const SimpleFormWrapper: ({ fields, formRenderConfig, formName, f
|
|
|
22
22
|
subHeaderLabel: any;
|
|
23
23
|
subHeaderLabelStyle: any;
|
|
24
24
|
formHeaderStyle: any;
|
|
25
|
+
validationRunning: any;
|
|
25
26
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export declare const BottomControl: ({ wrapperChild, isSubmitting, handleSubmit, classes, }: {
|
|
27
|
+
export declare const BottomControl: ({ wrapperChild, isSubmitting, handleSubmit, classes, validationRunning, }: {
|
|
27
28
|
wrapperChild: any;
|
|
28
29
|
isSubmitting: any;
|
|
29
30
|
handleSubmit: any;
|
|
30
31
|
classes: any;
|
|
32
|
+
validationRunning: any;
|
|
31
33
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
export declare const SimpleFormTitle: ({ formDisplayLabel, displayMode, hideDisplayModeInTitle, wrapperChild, serverSentError, serverSentErrorDetail, isSubmitting, classes, handleSubmit, controlsAtBottom, subHeaderLabel, subHeaderLabelStyle, formHeaderStyle, }: {
|
|
34
|
+
export declare const SimpleFormTitle: ({ formDisplayLabel, displayMode, hideDisplayModeInTitle, wrapperChild, serverSentError, serverSentErrorDetail, isSubmitting, classes, handleSubmit, controlsAtBottom, subHeaderLabel, subHeaderLabelStyle, formHeaderStyle, validationRunning, }: {
|
|
33
35
|
formDisplayLabel: any;
|
|
34
36
|
displayMode: any;
|
|
35
37
|
hideDisplayModeInTitle: any;
|
|
@@ -43,4 +45,5 @@ export declare const SimpleFormTitle: ({ formDisplayLabel, displayMode, hideDisp
|
|
|
43
45
|
subHeaderLabel: any;
|
|
44
46
|
subHeaderLabelStyle: any;
|
|
45
47
|
formHeaderStyle: any;
|
|
48
|
+
validationRunning: any;
|
|
46
49
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -41,6 +41,7 @@ export interface FormMetaDataType {
|
|
|
41
41
|
* @default false
|
|
42
42
|
*/
|
|
43
43
|
showUserCode?: boolean;
|
|
44
|
+
setScreenCode?: boolean;
|
|
44
45
|
resetFieldOnUnmount: boolean;
|
|
45
46
|
validationRun: "onBlur" | "onChange" | "all";
|
|
46
47
|
render: FormRenderConfigType;
|
|
@@ -113,7 +114,7 @@ export type ExtendedFieldMetaDataTypeOptional = {
|
|
|
113
114
|
[key: string]: FieldMetaDataTypeOptional;
|
|
114
115
|
};
|
|
115
116
|
export interface RenderFunctionType {
|
|
116
|
-
(fieldObj: FieldMetaDataType, formRenderConfig: FormRenderConfigType, formName: string, componentProps?: ComponentTypeProps): JSX.Element;
|
|
117
|
+
(fieldObj: FieldMetaDataType, formRenderConfig: FormRenderConfigType, formName: string, componentProps?: ComponentTypeProps, focusScopeId?: string): JSX.Element;
|
|
117
118
|
}
|
|
118
119
|
export interface FormWrapperProps {
|
|
119
120
|
metaData: MetaDataType;
|
|
@@ -141,6 +142,12 @@ export interface FormWrapperProps {
|
|
|
141
142
|
formHeaderStyle?: SxProps;
|
|
142
143
|
enableEnterToFocus?: boolean;
|
|
143
144
|
focusScopeId?: string;
|
|
145
|
+
/**
|
|
146
|
+
* callback to receive running validation of any form field.
|
|
147
|
+
* @param validationRunning for application of custom prop
|
|
148
|
+
* @returns
|
|
149
|
+
*/
|
|
150
|
+
setValidationRunning?: (validationRunning: boolean) => void;
|
|
144
151
|
}
|
|
145
152
|
export interface FormProps {
|
|
146
153
|
fields: GroupWiseRenderedFieldsType;
|
|
@@ -14,7 +14,7 @@ import { AutocompleteProps } from "../../components/common/autocomplete";
|
|
|
14
14
|
import { NumberFormatProps } from "../../components/derived/numberFormat";
|
|
15
15
|
import { PasswordFieldProps } from "../../components/derived/passwordField";
|
|
16
16
|
import { InputMaskProps } from "../../components/derived/inputMask";
|
|
17
|
-
import { ValidateFnType, shouldExcludeFnType } from "../../packages/form";
|
|
17
|
+
import { ValidateFnType, shouldExcludeFnType, showTooltipFnType } from "../../packages/form";
|
|
18
18
|
import { CustomRuleType } from "../../components/utils";
|
|
19
19
|
import { ArrayField2Props } from "../../components/common/arrayField";
|
|
20
20
|
import { TextareaAutosizeFieldProps } from "../../components/common/textarea";
|
|
@@ -39,6 +39,7 @@ export interface FieldMetaData<T> {
|
|
|
39
39
|
validate?: typeof ValidateFnType | CustomRuleType | string;
|
|
40
40
|
shouldExclude?: typeof shouldExcludeFnType | CustomRuleType | Boolean | string;
|
|
41
41
|
isReadOnly?: typeof shouldExcludeFnType | CustomRuleType | Boolean | string;
|
|
42
|
+
showTooltip?: typeof showTooltipFnType | CustomRuleType | string;
|
|
42
43
|
onFormButtonClickHandel?: any;
|
|
43
44
|
FormatProps?: any;
|
|
44
45
|
StartAdornment?: keyof typeof currencySymbol | (string & Record<never, never>);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InitialValuesType } from "packages/form";
|
|
2
2
|
import { FieldMetaDataType } from "../types";
|
|
3
|
-
export declare const constructInitialValue: (fields: FieldMetaDataType[], initialValues?: InitialValuesType, formState?: any, authState?: any) => {};
|
|
3
|
+
export declare const constructInitialValue: (fields: FieldMetaDataType[], initialValues?: InitialValuesType, formState?: any, authState?: any, decimalCount?: number) => {};
|
|
4
4
|
export declare const constructPreviousValues: (fields: FieldMetaDataType[], previousValues?: InitialValuesType) => {};
|
|
5
5
|
export declare const constructInitialValuesForArrayFields: (fields: FieldMetaDataType[], formState?: any, authState?: any) => {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CustomProperties } from "components/context/propertiesConfig/customProperties";
|
|
2
2
|
import { MetaDataType, ExtendedFieldMetaDataTypeOptional } from "../types";
|
|
3
|
-
export declare const extendFieldTypes: (metaData: MetaDataType, extendedTypes: ExtendedFieldMetaDataTypeOptional, lanTranslate?: any, authState?: any, customParameters?: CustomProperties) => MetaDataType;
|
|
3
|
+
export declare const extendFieldTypes: (metaData: MetaDataType, extendedTypes: ExtendedFieldMetaDataTypeOptional, lanTranslate?: any, authState?: any, customParameters?: CustomProperties, formState?: any) => MetaDataType;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MetaDataType, GroupWiseRenderedFieldsType } from "../types";
|
|
2
|
-
export declare const renderFieldsByGroup: (metaData: MetaDataType, onFormButtonClickHandel?: any, onFormDataChange?: () => void) => GroupWiseRenderedFieldsType;
|
|
3
|
-
export declare const renderValuesByGroup: (metaData: MetaDataType, onFormButtonClickHandel?: any, onFormDataChange?: () => void) => GroupWiseRenderedFieldsType;
|
|
2
|
+
export declare const renderFieldsByGroup: (metaData: MetaDataType, onFormButtonClickHandel?: any, onFormDataChange?: () => void, focusScopeId?: string) => GroupWiseRenderedFieldsType;
|
|
3
|
+
export declare const renderValuesByGroup: (metaData: MetaDataType, onFormButtonClickHandel?: any, onFormDataChange?: () => void, focusScopeId?: string) => GroupWiseRenderedFieldsType;
|
|
@@ -36,5 +36,9 @@ export interface MasterDetailsArgumentType {
|
|
|
36
36
|
formHeaderStyle?: SxProps;
|
|
37
37
|
enableEnterToFocus?: boolean;
|
|
38
38
|
focusScopeId?: string;
|
|
39
|
+
handleClickAction?: (event: any, data: any) => void;
|
|
40
|
+
defaultSelectedRowId?: string;
|
|
41
|
+
disableMultipleRowSelect?: boolean;
|
|
42
|
+
setValidationRunning?: (validationRunning: boolean) => void;
|
|
39
43
|
}
|
|
40
44
|
export declare const MasterDetailsForm: import("react").ForwardRefExoticComponent<MasterDetailsArgumentType & import("react").RefAttributes<any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const DateCell: (props: any) => string | import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare const DateCell: (props: any) => string | import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare const FooterCell: ({ rows, column: { id: columnName, isTotalWithoutCurrency, isTotalWithCurrency, currencyRefColumn, isCurrencyCode, currencySymbolPosition, }, loading, }: {
|
|
1
|
+
export declare const FooterCell: ({ rows, column: { id: columnName, isTotalWithoutCurrency, isTotalWithCurrency, currencyRefColumn, isCurrencyCode, currencySymbolPosition, }, loading, data, ...others }: {
|
|
2
|
+
[x: string]: any;
|
|
2
3
|
rows: any;
|
|
3
4
|
column: {
|
|
4
5
|
id: any;
|
|
@@ -9,6 +10,7 @@ export declare const FooterCell: ({ rows, column: { id: columnName, isTotalWitho
|
|
|
9
10
|
currencySymbolPosition?: string | undefined;
|
|
10
11
|
};
|
|
11
12
|
loading: any;
|
|
13
|
+
data: any;
|
|
12
14
|
}) => string;
|
|
13
15
|
export declare const FooterCell1: ({ rows, column: { id: columnName, isDisplayValueTotal, currencyRefColumn, isCurrencyCode, DisplayValueLabel, }, }: {
|
|
14
16
|
rows: any;
|
|
@@ -4,7 +4,7 @@ export declare const useFilterState: (reducer: any) => {
|
|
|
4
4
|
dispatch: (action: any) => void;
|
|
5
5
|
filterState: import("react").MutableRefObject<object>;
|
|
6
6
|
};
|
|
7
|
-
export declare const FilterComponent: ({ setQueryFilters, filterMeta, filterData, retrievalType, isOpenRetrievalDefault, setShowFilters, setAllFilters, retrievalComponent, }: {
|
|
7
|
+
export declare const FilterComponent: ({ setQueryFilters, filterMeta, filterData, retrievalType, isOpenRetrievalDefault, setShowFilters, setAllFilters, retrievalComponent, retrieveDataShortCut, }: {
|
|
8
8
|
setQueryFilters: any;
|
|
9
9
|
filterMeta: any;
|
|
10
10
|
filterData: any;
|
|
@@ -13,4 +13,5 @@ export declare const FilterComponent: ({ setQueryFilters, filterMeta, filterData
|
|
|
13
13
|
setShowFilters?: ((param?: boolean) => void) | undefined;
|
|
14
14
|
setAllFilters?: ((param: any) => void) | undefined;
|
|
15
15
|
retrievalComponent: any;
|
|
16
|
+
retrieveDataShortCut: any;
|
|
16
17
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -49,12 +49,25 @@ interface GridTableType {
|
|
|
49
49
|
actions?: {
|
|
50
50
|
buttonStyle?: SxProps;
|
|
51
51
|
buttonName: ReactNode;
|
|
52
|
-
callback: (event: any, originalData: any, rows: any) => void;
|
|
52
|
+
callback: (event: any, originalData: any, rows: any, nonGroupedRawRows: any) => void;
|
|
53
|
+
enableShortcut?: boolean;
|
|
54
|
+
shortcut?: "alt" | "ctrl" | "shift" | "meta";
|
|
55
|
+
eventKey?: string;
|
|
56
|
+
hidden?: boolean;
|
|
57
|
+
disabled?: boolean;
|
|
53
58
|
}[];
|
|
54
59
|
getReportData?: (filters: any[], queryFilters: any, globalFilter: string | undefined, originalData: any, filteredData: any) => void;
|
|
55
60
|
disableFilters?: boolean;
|
|
56
61
|
headerToolbarStyle?: SxProps;
|
|
57
62
|
enableEnterToFocus?: boolean;
|
|
63
|
+
expandAllGroupedRows?: boolean;
|
|
64
|
+
retrieveDataShortCut?: {
|
|
65
|
+
enableShortcut?: boolean;
|
|
66
|
+
shortcut?: "alt" | "ctrl" | "shift" | "meta";
|
|
67
|
+
eventKey?: string;
|
|
68
|
+
};
|
|
69
|
+
footerNote?: string;
|
|
70
|
+
footerNoteStyles?: SxProps;
|
|
58
71
|
}
|
|
59
72
|
export declare const GridTable: FC<GridTableType>;
|
|
60
73
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SxProps } from "@mui/material";
|
|
3
|
+
import { RetrievalParametersProps } from "../types";
|
|
3
4
|
type TReportWrapper = {
|
|
4
5
|
reportID: string;
|
|
5
6
|
reportName: string;
|
|
@@ -15,6 +16,13 @@ type TReportWrapper = {
|
|
|
15
16
|
headerToolbarStyle?: SxProps;
|
|
16
17
|
enableEnterToFocus?: boolean;
|
|
17
18
|
focusScopeId?: string;
|
|
19
|
+
retrievalComponent?: React.ComponentType<RetrievalParametersProps>;
|
|
20
|
+
title?: string;
|
|
21
|
+
retrieveDataShortCut?: {
|
|
22
|
+
enableShortcut?: boolean;
|
|
23
|
+
shortcut?: "alt" | "ctrl" | "shift" | "meta";
|
|
24
|
+
eventKey?: string;
|
|
25
|
+
};
|
|
18
26
|
};
|
|
19
27
|
export declare const ReportWrapper: React.FC<TReportWrapper>;
|
|
20
28
|
export {};
|