@acuteinfo/common-base 1.2.50 → 1.2.52

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.
@@ -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, }: {
@@ -38,6 +38,7 @@ interface MySelectExtendedProps {
38
38
  defaultValueKey?: string;
39
39
  runPostValidationForInitValue?: boolean;
40
40
  filterOptionsCb?: (options: any, dep: any, fs: any) => OptionsProps[];
41
+ focusScopeId?: string;
41
42
  }
42
43
  export type MySelectAllProps = Merge<MySelectProps, MySelectExtendedProps>;
43
44
  declare const MySelect: FC<MySelectAllProps>;
@@ -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;
26
+ disableMultipleRowSelect?: boolean;
25
27
  }
26
28
  export declare const GridWrapper: React.ForwardRefExoticComponent<GridWrapperPropsType & React.RefAttributes<any>>;
27
29
  export {};
@@ -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;
@@ -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;