@acuteinfo/common-base 1.2.32 → 1.2.34

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.
@@ -23,7 +23,7 @@ interface AutoCompleteExtendedProps {
23
23
  placeholder?: string;
24
24
  required?: boolean;
25
25
  enableVirtualized?: boolean;
26
- _optionsKey?: string;
26
+ _optionsKey?: string | ((dependentFields: any, formState: any, transformedDependentFields: any, authState: any) => string[]);
27
27
  disableCaching?: boolean;
28
28
  disableAdornment?: boolean;
29
29
  ignoreInSubmit?: (dependentValues: any, formState: any, object: {
@@ -42,6 +42,10 @@ interface AutoCompleteExtendedProps {
42
42
  optionsGridColDef?: Record<string, Partial<GridColumnType>>;
43
43
  runPostValidationForInitValue?: boolean;
44
44
  skipInitialDefaultValueKeyValidation?: boolean;
45
+ optionsKeyConfig?: {
46
+ useFormStateKeys?: boolean;
47
+ useDependentKeys?: boolean;
48
+ } | null;
45
49
  }
46
50
  type MyAutocompleteProps = Merge<AutocompleteProps<OptionsProps, true, true, true>, AutoCompleteExtendedProps>;
47
51
  export type MyAllAutocompleteProps = Merge<MyAutocompleteProps, UseFieldHookProps>;
@@ -8,7 +8,7 @@ import { CircularProgressProps } from "@mui/material/CircularProgress";
8
8
  import { OptionsProps, Merge, dependentOptionsFn } from "../types";
9
9
  interface extendedFieldProps extends UseFieldHookProps {
10
10
  options?: OptionsProps[] | dependentOptionsFn;
11
- _optionsKey?: string;
11
+ _optionsKey?: string | ((dependentFields: any, formState: any, transformedDependentFields: any, authState: any) => string[]);
12
12
  disableCaching?: boolean;
13
13
  multiple?: boolean;
14
14
  showCheckbox?: boolean;
@@ -36,6 +36,10 @@ interface MySelectExtendedProps {
36
36
  label?: string;
37
37
  defaultValueKey?: string;
38
38
  runPostValidationForInitValue?: boolean;
39
+ optionsKeyConfig?: {
40
+ useFormStateKeys?: boolean;
41
+ useDependentKeys?: boolean;
42
+ } | null;
39
43
  }
40
44
  export type MySelectAllProps = Merge<MySelectProps, MySelectExtendedProps>;
41
45
  declare const MySelect: FC<MySelectAllProps>;
@@ -1,4 +1,7 @@
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) => {
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, optionsKeyConfig?: {
2
+ useFormStateKeys?: boolean;
3
+ useDependentKeys?: boolean;
4
+ } | null) => {
2
5
  loadingOptions: boolean;
3
6
  };
4
7
  /****** ---- */
@@ -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, occupiedHeight, gridProps, pageSizes, defaultPageSize, enablePagination, allowRowSelection, hideNoDataFound, refetchData, hiddenFlag, autoRefreshInterval, allowFilter, filterMeta, allowColumnHiding, defaultFilter, isCusrsorFocused, onButtonActionHandel, controlsAtBottom, actionContextAtBottom, headerToolbarStyle, disableMultipleRowSelect, columnHeaderStyle, variant, enablePaginationInput, defaultSelectedRowId, footerNote, footerNoteStyles, paginationText, searchPlaceholder, enableExport, subGridLabel, hideActionBar, finalMetaData, externalExportState, onExportModalClose, enablePdfPrint, reportTemplateCode, enablePivot, handleClickAction, RenderSubHeader, subHeaderComponentProps, }: {
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, occupiedHeight, gridProps, pageSizes, defaultPageSize, enablePagination, allowRowSelection, hideNoDataFound, refetchData, hiddenFlag, autoRefreshInterval, allowFilter, filterMeta, allowColumnHiding, defaultFilter, isCusrsorFocused, onButtonActionHandel, controlsAtBottom, actionContextAtBottom, headerToolbarStyle, disableMultipleRowSelect, columnHeaderStyle, variant, enablePaginationInput, defaultSelectedRowId, footerNote, footerNoteStyles, paginationText, searchPlaceholder, enableExport, subGridLabel, hideActionBar, finalMetaData, externalExportState, onExportModalClose, enablePdfPrint, reportTemplateCode, enablePivot, handleClickAction, RenderSubHeader, subHeaderComponentProps, gridPaperProps, }: {
2
2
  label: any;
3
3
  dense: any;
4
4
  columns: any;
@@ -63,4 +63,5 @@ export declare const DataGrid: ({ label, dense, columns, data, loading, getRowId
63
63
  handleClickAction: any;
64
64
  RenderSubHeader: any;
65
65
  subHeaderComponentProps: any;
66
+ gridPaperProps: any;
66
67
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { SxProps } from "@mui/material";
1
+ import { PaperProps, SxProps } from "@mui/material";
2
2
  import { CustomProperties } from "components/context/propertiesConfig/customProperties";
3
3
  import { currencySymbol } from "components/custom/getCurrencySymbol";
4
4
  import { ActionTypes } from "components/dataTable/types";
@@ -176,6 +176,7 @@ export interface GridConfigType {
176
176
  min: string;
177
177
  max: string;
178
178
  };
179
+ gridPaperProps?: PaperProps;
179
180
  pageSizes?: number[];
180
181
  defaultPageSize?: number;
181
182
  allowRowSelection?: boolean;