@acuteinfo/common-base 1.0.84 → 1.0.86

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;
@@ -1,4 +1,4 @@
1
- export declare const DataGrid: ({ label, dense, columns, data, loading, getRowId, defaultColumn, allowColumnReordering, disableSorting, defaultHiddenColumns, defaultSortOrder, defaultGroupBy, multipleActions, singleActions, doubleClickAction, alwaysAvailableAction, setGridAction, updateGridData, hideFooter, hideHeader, disableGlobalFilter, disableGroupBy, disableLoader, containerHeight, gridProps, pageSizes, defaultPageSize, enablePagination, allowRowSelection, hideNoDataFound, refetchData, hiddenFlag, autoRefreshInterval, allowFilter, filterMeta, allowColumnHiding, defaultFilter, isCusrsorFocused, onButtonActionHandel, controlsAtBottom, actionContextAtBottom, headerToolbarStyle, disableMultipleRowSelect, columnHeaderStyle, variant, enablePaginationInput, defaultSelectedRowId, footerNote, paginationText, searchPlaceholder, enableExport, subGridLabel, hideActionBar, finalMetaData, externalExportState, onExportModalClose, enablePdfPrint, }: {
1
+ export declare const DataGrid: ({ label, dense, columns, data, loading, getRowId, defaultColumn, allowColumnReordering, disableSorting, defaultHiddenColumns, defaultSortOrder, defaultGroupBy, multipleActions, singleActions, doubleClickAction, alwaysAvailableAction, setGridAction, updateGridData, hideFooter, hideHeader, disableGlobalFilter, disableGroupBy, disableLoader, containerHeight, gridProps, pageSizes, defaultPageSize, enablePagination, allowRowSelection, hideNoDataFound, refetchData, hiddenFlag, autoRefreshInterval, allowFilter, filterMeta, allowColumnHiding, defaultFilter, isCusrsorFocused, onButtonActionHandel, controlsAtBottom, actionContextAtBottom, headerToolbarStyle, disableMultipleRowSelect, columnHeaderStyle, variant, enablePaginationInput, defaultSelectedRowId, footerNote, paginationText, searchPlaceholder, enableExport, subGridLabel, hideActionBar, finalMetaData, externalExportState, onExportModalClose, enablePdfPrint, hideActionToolbar }: {
2
2
  label: any;
3
3
  dense: any;
4
4
  columns: any;
@@ -56,4 +56,5 @@ export declare const DataGrid: ({ label, dense, columns, data, loading, getRowId
56
56
  externalExportState: any;
57
57
  onExportModalClose: any;
58
58
  enablePdfPrint: any;
59
+ hideActionToolbar: any;
59
60
  }) => import("react/jsx-runtime").JSX.Element;
@@ -258,6 +258,7 @@ export interface GridWrapperPropTypes {
258
258
  * @returns void
259
259
  */
260
260
  onExportModalClose?: () => void;
261
+ hideActionToolbar?: boolean;
261
262
  }
262
263
  export interface GridYupSchemaMetaDataType {
263
264
  type: "string" | "number" | "boolean" | "date";