@acuteinfo/common-base 1.2.38-beta.2 → 1.2.38-beta.4

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.
Files changed (33) hide show
  1. package/dist/components/common/arrayField/arrayField-stepper.d.ts +1 -1
  2. package/dist/components/common/arrayField/arrayField2.d.ts +1 -0
  3. package/dist/components/common/autocomplete/autocomplete.d.ts +1 -0
  4. package/dist/components/common/datetime/datePicker.d.ts +1 -0
  5. package/dist/components/common/datetime/datetimePicker.d.ts +1 -0
  6. package/dist/components/common/divider/divider.d.ts +1 -0
  7. package/dist/components/common/formbutton/formbutton.d.ts +1 -0
  8. package/dist/components/common/hidden/hidden.d.ts +1 -0
  9. package/dist/components/common/select/select.d.ts +2 -0
  10. package/dist/components/common/textField/textField.d.ts +1 -0
  11. package/dist/components/common/typograhpy/typography.d.ts +1 -0
  12. package/dist/components/dataTable/atoms/index.d.ts +1 -11
  13. package/dist/components/dataTable/components/useCheckbox.d.ts +1 -1
  14. package/dist/components/dataTable/gridWrapper.d.ts +2 -0
  15. package/dist/components/dataTable/styledComponents/slider.d.ts +1 -1
  16. package/dist/components/dataTableStatic/types.d.ts +10 -0
  17. package/dist/components/dataTableStatic/utils/attachCombineValidationFns.d.ts +1 -0
  18. package/dist/components/dataTableStatic/utils/attachYupSchema.d.ts +1 -0
  19. package/dist/components/dynamicForm/types.d.ts +1 -1
  20. package/dist/components/dynamicForm/utils/groupWiserenderer.d.ts +2 -2
  21. package/dist/components/formcomponent/masterDetails/masterDetailsForm.d.ts +3 -0
  22. package/dist/components/report/serverReport/ReportWrapper.d.ts +3 -0
  23. package/dist/components/report/serverReport/serverGridTable.d.ts +6 -0
  24. package/dist/components/utils/utilFunctions/function.d.ts +13 -0
  25. package/dist/index.js +16 -16
  26. package/dist/index.js.map +1 -1
  27. package/dist/packages/form/src/atoms.d.ts +49 -16
  28. package/dist/packages/form/src/field.d.ts +2 -1
  29. package/dist/packages/form/src/fieldArrayStepper.d.ts +0 -1
  30. package/dist/packages/form/src/observer.d.ts +1 -1
  31. package/dist/pages_audit/common/serverGrid/serverGrid.d.ts +2 -0
  32. package/package.json +4 -3
  33. 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,7 @@ export interface ArrayField2Props {
30
30
  noRecordMessage?: string;
31
31
  hideRemoveIconOnSingleRecord?: boolean;
32
32
  enableEnterToFocus?: boolean;
33
+ focusScopeId?: string;
33
34
  }
34
35
  export declare const ArrayField2: FC<ArrayField2Props>;
35
36
  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,6 +39,7 @@ 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;
@@ -23,6 +23,7 @@ interface MyGridExtendedProps {
23
23
  placeholder?: string;
24
24
  } | null | undefined;
25
25
  runPostValidationForInitValue?: boolean;
26
+ setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any, valueObj: any) => string | undefined;
26
27
  }
27
28
  export type MyDataPickerAllProps = Merge<Merge<KeyboardDatePickerPropsSubset, MyGridExtendedProps>, UseFieldHookProps>;
28
29
  export declare const MyDatePicker: FC<MyDataPickerAllProps>;
@@ -18,6 +18,7 @@ interface MyGridExtendedProps {
18
18
  disablePast?: boolean;
19
19
  disableFuture?: boolean;
20
20
  runPostValidationForInitValue?: boolean;
21
+ setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any, valueObj: any) => string | undefined;
21
22
  }
22
23
  export type MyDateTimePickerAllProps = Merge<Merge<KeyboardDateTimePickerPropsSubset, MyGridExtendedProps>, UseFieldHookProps>;
23
24
  export declare const MyDateTimePicker: FC<MyDateTimePickerAllProps>;
@@ -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
  }
@@ -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,6 +15,7 @@ interface MyGridExtendedProps {
15
15
  CircularProgressProps?: CircularProgressProps;
16
16
  enableGrid: boolean;
17
17
  setValueOnDependentFieldsChange?: any;
18
+ setValueOnDependentFieldsValueChange?: (dependentFields: any, formState: any, valueObj: any) => string | undefined;
18
19
  setColor?: any;
19
20
  showMaxLength?: boolean;
20
21
  allowToggleVisiblity?: boolean;
@@ -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,11 +1 @@
1
- export interface QueryType {
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: (visible: any) => (hooks: any) => void;
1
+ export declare const useCheckboxColumn: (allowRowSelection: any, setContextMenuSelectedRowId: any) => (hooks: any) => void;
@@ -22,6 +22,8 @@ interface GridWrapperPropsType {
22
22
  onClickActionEvent?: any;
23
23
  handleClickAction?: (event: any, data: any) => void;
24
24
  onDataChange?: (data: any[]) => void;
25
+ defaultSelectedRowId?: string | ((gridData: any) => string | null);
26
+ disableMultipleRowSelect?: boolean;
25
27
  }
26
28
  export declare const GridWrapper: React.ForwardRefExoticComponent<GridWrapperPropsType & React.RefAttributes<any>>;
27
29
  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" | "name" | "defaultValue" | "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>;
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>;
@@ -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;
@@ -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;
@@ -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;
@@ -113,7 +113,7 @@ export type ExtendedFieldMetaDataTypeOptional = {
113
113
  [key: string]: FieldMetaDataTypeOptional;
114
114
  };
115
115
  export interface RenderFunctionType {
116
- (fieldObj: FieldMetaDataType, formRenderConfig: FormRenderConfigType, formName: string, componentProps?: ComponentTypeProps): JSX.Element;
116
+ (fieldObj: FieldMetaDataType, formRenderConfig: FormRenderConfigType, formName: string, componentProps?: ComponentTypeProps, focusScopeId?: string): JSX.Element;
117
117
  }
118
118
  export interface FormWrapperProps {
119
119
  metaData: 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,8 @@ 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;
39
42
  }
40
43
  export declare const MasterDetailsForm: import("react").ForwardRefExoticComponent<MasterDetailsArgumentType & import("react").RefAttributes<any>>;
@@ -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,8 @@ type TReportWrapper = {
15
16
  headerToolbarStyle?: SxProps;
16
17
  enableEnterToFocus?: boolean;
17
18
  focusScopeId?: string;
19
+ retrievalComponent?: React.ComponentType<RetrievalParametersProps>;
20
+ title?: string;
18
21
  };
19
22
  export declare const ReportWrapper: React.FC<TReportWrapper>;
20
23
  export {};
@@ -1,5 +1,6 @@
1
1
  import { FC } from "react";
2
2
  import { SxProps } from "@mui/material/styles";
3
+ import { RetrievalParametersProps } from "../types";
3
4
  interface GridTableType {
4
5
  columns: any;
5
6
  defaultColumn: any;
@@ -25,6 +26,7 @@ interface GridTableType {
25
26
  filterMeta?: any;
26
27
  queryFilters?: any;
27
28
  hideAmountIn?: boolean;
29
+ retrievalType?: string;
28
30
  onButtonActionHandel?: any;
29
31
  isOpenRetrievalDefault?: boolean;
30
32
  printReferense?: any;
@@ -46,6 +48,10 @@ interface GridTableType {
46
48
  disableFilters?: boolean;
47
49
  headerToolbarStyle?: SxProps;
48
50
  enableEnterToFocus?: boolean;
51
+ retrievalComponent?: React.ComponentType<RetrievalParametersProps>;
52
+ retrievalComponentMeta?: any;
53
+ retrievalFilters?: any;
54
+ setRetrievalFilters?: any;
49
55
  }
50
56
  export declare const GridTable: FC<GridTableType>;
51
57
  export {};
@@ -60,6 +60,18 @@ export declare const getDynamicLabel: (path: string, data: any, setScreenCode?:
60
60
  * @returns css variable value in string
61
61
  */
62
62
  export declare const getCssVariable: (variableName: string) => string;
63
+ /**
64
+ * Enables Enter-to-focus navigation within a form or a scoped group.
65
+ * If `scopeId` is provided, the function searches all elements with
66
+ * `data-scope-id="<scopeId>"` and cycles focus within them.
67
+ * Otherwise, focus is cycled inside the current container only.
68
+ *
69
+ * Moves forward on Enter and backward on Shift+Enter.
70
+ *
71
+ * @param event React keyboard event (Enter key triggers navigation)
72
+ * @param scopeId Optional ID used to target elements with `data-scope-id`
73
+ * @returns void
74
+ */
63
75
  /**
64
76
  * Enables Enter-to-focus navigation within a form or a scoped group.
65
77
  * If `scopeId` is provided, the function searches all elements with
@@ -73,3 +85,4 @@ export declare const getCssVariable: (variableName: string) => string;
73
85
  * @returns void
74
86
  */
75
87
  export declare const handleEnterToFocus: (event: React.KeyboardEvent<HTMLElement>, scopeId?: string) => void;
88
+ export declare const moveToNextField: (isBackward: boolean, scopeId: string | undefined, referenceElement: HTMLElement, fromMenuSelection?: boolean) => void;