@acuteinfo/common-base 1.0.84 → 1.0.85

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.
@@ -8,6 +8,7 @@ import { UseFieldHookProps } from "packages/form";
8
8
  import { Merge, OptionsProps, dependentOptionsFn } from "../types";
9
9
  import { ChipProps } from "@mui/material/Chip";
10
10
  import { SxProps } from "@mui/material/styles";
11
+ import { GridColumnType } from "components/dataTableStatic";
11
12
  export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"root">;
12
13
  interface AutoCompleteExtendedProps {
13
14
  enableGrid: boolean;
@@ -37,6 +38,7 @@ interface AutoCompleteExtendedProps {
37
38
  defaultValueKey?: string;
38
39
  listBoxMinWidth?: number;
39
40
  setValueOnDependentFieldsChange?: any;
41
+ optionsGridColDef?: Record<string, Partial<GridColumnType>>;
40
42
  }
41
43
  type MyAutocompleteProps = Merge<AutocompleteProps<OptionsProps, true, true, true>, AutoCompleteExtendedProps>;
42
44
  export type MyAllAutocompleteProps = Merge<MyAutocompleteProps, UseFieldHookProps>;
@@ -0,0 +1,6 @@
1
+ declare const OptionsGrid: ({ handleClose, options, optionsGridColDef }: {
2
+ handleClose: any;
3
+ options: any;
4
+ optionsGridColDef: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default OptionsGrid;
@@ -1,4 +1,4 @@
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) => {
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
3
  };
4
4
  /****** ---- */
@@ -85,6 +85,11 @@ export interface CustomProperties {
85
85
  */
86
86
  enablePdfPrint?: boolean;
87
87
  };
88
+ /**
89
+ * Opens options grid on pressing f9 for autocomplete field
90
+ * @default true
91
+ */
92
+ enableOptionsGridForAutocomplete?: boolean;
88
93
  }
89
94
  interface ContextProps {
90
95
  config?: CustomProperties;