@acuteinfo/common-base 1.2.38-beta.6 → 1.2.38-beta.8

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.
@@ -31,6 +31,7 @@ export interface ArrayField2Props {
31
31
  hideRemoveIconOnSingleRecord?: boolean;
32
32
  enableEnterToFocus?: boolean;
33
33
  focusScopeId?: string;
34
+ formState?: any;
34
35
  }
35
36
  export declare const ArrayField2: FC<ArrayField2Props>;
36
37
  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, }: {
@@ -45,6 +45,7 @@ interface AutoCompleteExtendedProps {
45
45
  skipInitialDefaultValueKeyValidation?: boolean;
46
46
  filterOptionsCb: (options: any, dep: any, fs: any) => OptionsProps[];
47
47
  setColor?: (value: any, dependentFields: any, formState: any) => string;
48
+ customLabelKey?: string;
48
49
  }
49
50
  type MyAutocompleteProps = Merge<AutocompleteProps<OptionsProps, true, true, true>, AutoCompleteExtendedProps>;
50
51
  export type MyAllAutocompleteProps = Merge<MyAutocompleteProps, UseFieldHookProps>;
@@ -1,4 +1,5 @@
1
1
  import { DependentValuesType } from "packages/form";
2
+ import { CSSProperties } from "react";
2
3
  export type Merge<A, B> = {
3
4
  [K in keyof A]: K extends keyof B ? B[K] : A[K];
4
5
  } & B extends infer O ? {
@@ -12,6 +13,7 @@ export interface OptionsProps {
12
13
  label: string;
13
14
  value: any;
14
15
  disabled?: boolean;
16
+ style?: CSSProperties;
15
17
  }
16
18
  export interface dependentOptionsFn {
17
19
  (optionsFn?: DependentValuesType, formName?: string): OptionsProps[] | Promise<OptionsProps[]>;
@@ -1,5 +1,7 @@
1
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
+ queryError?: boolean | undefined;
4
+ refetchOptions?: Function | undefined;
3
5
  };
4
6
  /****** ---- */
5
7
  export declare const useOptionsFetcherSimple: (options: any, setOptions: any, _optionsKey: any, disableCaching: any, optionsProps: any, skipDefaultOption: any, defaultOptionLabel: any, enableDefaultOption: any) => {
@@ -118,6 +118,11 @@ export interface CustomProperties {
118
118
  * @default false
119
119
  */
120
120
  enableEnterToFocus?: boolean;
121
+ /**
122
+ * Refetches options of autocomplete when online
123
+ * @default true
124
+ */
125
+ refetchOptionsWhenOnline?: boolean;
121
126
  }
122
127
  interface ContextProps {
123
128
  config?: CustomProperties;
@@ -5,6 +5,11 @@ interface HeaderCellProps {
5
5
  rows?: any[];
6
6
  loading?: boolean;
7
7
  children?: React.ReactNode | any;
8
+ pinnedOffsets?: {
9
+ leftMap: Record<string, number>;
10
+ rightMap: Record<string, number>;
11
+ };
12
+ visibleColumns?: any[];
8
13
  }
9
14
  export declare const HeaderCellWrapper: React.FC<HeaderCellProps>;
10
15
  export {};
@@ -44,6 +44,8 @@ export interface GridConfigType {
44
44
  maxWidth?: number;
45
45
  minWidth?: number;
46
46
  };
47
+ showUserCode?: boolean;
48
+ setScreenCode?: boolean;
47
49
  }
48
50
  export interface HeaderFilterType {
49
51
  accessor: string;
@@ -170,6 +170,7 @@ export interface GridColumnType {
170
170
  * prevent input characters in editableTextfield
171
171
  */
172
172
  preventSpecialChars?: string | Function | null;
173
+ pinColumn?: "left" | "right";
173
174
  }
174
175
  export interface GridConfigType {
175
176
  dense?: boolean;
@@ -216,6 +217,8 @@ export interface GridConfigType {
216
217
  * Set false to prevent auto fetch api for server grid
217
218
  */
218
219
  autoFetch?: boolean;
220
+ showUserCode?: boolean;
221
+ setScreenCode?: boolean;
219
222
  }
220
223
  export interface GridMetaDataType {
221
224
  columns: GridColumnType[];
@@ -87,4 +87,5 @@ export declare const attachcombinedValidationFns: (columns: GridColumnType[], au
87
87
  } | undefined;
88
88
  disableSortBy?: boolean | undefined;
89
89
  preventSpecialChars?: string | Function | null | undefined;
90
+ pinColumn?: "left" | "right" | undefined;
90
91
  }[];
@@ -87,4 +87,5 @@ export declare const attachYupSchemaValidator: (columns: GridColumnType[]) => {
87
87
  } | undefined;
88
88
  disableSortBy?: boolean | undefined;
89
89
  preventSpecialChars?: string | Function | null | undefined;
90
+ pinColumn?: "left" | "right" | undefined;
90
91
  }[];
@@ -1,7 +1,7 @@
1
1
  import { FC } from "react";
2
2
  import { FormProps } from "./types";
3
3
  export declare const SimpleForm: FC<FormProps>;
4
- export declare const SimpleFormWrapper: ({ fields, formRenderConfig, formName, formStyle, hidden, formDisplayLabel, displayMode, hideDisplayModeInTitle, wrapperChild, serverSentError, serverSentErrorDetail, isSubmitting, classes, handleSubmit, controlsAtBottom, hideHeader, containerstyle, subHeaderLabel, subHeaderLabelStyle, formHeaderStyle, }: {
4
+ export declare const SimpleFormWrapper: ({ fields, formRenderConfig, formName, formStyle, hidden, formDisplayLabel, displayMode, hideDisplayModeInTitle, wrapperChild, serverSentError, serverSentErrorDetail, isSubmitting, classes, handleSubmit, controlsAtBottom, hideHeader, containerstyle, subHeaderLabel, subHeaderLabelStyle, formHeaderStyle, validationRunning, }: {
5
5
  fields: any;
6
6
  formRenderConfig: any;
7
7
  formName: any;
@@ -22,14 +22,16 @@ export declare const SimpleFormWrapper: ({ fields, formRenderConfig, formName, f
22
22
  subHeaderLabel: any;
23
23
  subHeaderLabelStyle: any;
24
24
  formHeaderStyle: any;
25
+ validationRunning: any;
25
26
  }) => import("react/jsx-runtime").JSX.Element;
26
- export declare const BottomControl: ({ wrapperChild, isSubmitting, handleSubmit, classes, }: {
27
+ export declare const BottomControl: ({ wrapperChild, isSubmitting, handleSubmit, classes, validationRunning, }: {
27
28
  wrapperChild: any;
28
29
  isSubmitting: any;
29
30
  handleSubmit: any;
30
31
  classes: any;
32
+ validationRunning: any;
31
33
  }) => import("react/jsx-runtime").JSX.Element;
32
- export declare const SimpleFormTitle: ({ formDisplayLabel, displayMode, hideDisplayModeInTitle, wrapperChild, serverSentError, serverSentErrorDetail, isSubmitting, classes, handleSubmit, controlsAtBottom, subHeaderLabel, subHeaderLabelStyle, formHeaderStyle, }: {
34
+ export declare const SimpleFormTitle: ({ formDisplayLabel, displayMode, hideDisplayModeInTitle, wrapperChild, serverSentError, serverSentErrorDetail, isSubmitting, classes, handleSubmit, controlsAtBottom, subHeaderLabel, subHeaderLabelStyle, formHeaderStyle, validationRunning, }: {
33
35
  formDisplayLabel: any;
34
36
  displayMode: any;
35
37
  hideDisplayModeInTitle: any;
@@ -43,4 +45,5 @@ export declare const SimpleFormTitle: ({ formDisplayLabel, displayMode, hideDisp
43
45
  subHeaderLabel: any;
44
46
  subHeaderLabelStyle: any;
45
47
  formHeaderStyle: any;
48
+ validationRunning: any;
46
49
  }) => import("react/jsx-runtime").JSX.Element;
@@ -41,6 +41,7 @@ export interface FormMetaDataType {
41
41
  * @default false
42
42
  */
43
43
  showUserCode?: boolean;
44
+ setScreenCode?: boolean;
44
45
  resetFieldOnUnmount: boolean;
45
46
  validationRun: "onBlur" | "onChange" | "all";
46
47
  render: FormRenderConfigType;
@@ -141,6 +142,12 @@ export interface FormWrapperProps {
141
142
  formHeaderStyle?: SxProps;
142
143
  enableEnterToFocus?: boolean;
143
144
  focusScopeId?: string;
145
+ /**
146
+ * callback to receive running validation of any form field.
147
+ * @param validationRunning for application of custom prop
148
+ * @returns
149
+ */
150
+ setValidationRunning?: (validationRunning: boolean) => void;
144
151
  }
145
152
  export interface FormProps {
146
153
  fields: GroupWiseRenderedFieldsType;
@@ -1,5 +1,5 @@
1
1
  import { InitialValuesType } from "packages/form";
2
2
  import { FieldMetaDataType } from "../types";
3
- export declare const constructInitialValue: (fields: FieldMetaDataType[], initialValues?: InitialValuesType, formState?: any, authState?: any) => {};
3
+ export declare const constructInitialValue: (fields: FieldMetaDataType[], initialValues?: InitialValuesType, formState?: any, authState?: any, decimalCount?: number) => {};
4
4
  export declare const constructPreviousValues: (fields: FieldMetaDataType[], previousValues?: InitialValuesType) => {};
5
5
  export declare const constructInitialValuesForArrayFields: (fields: FieldMetaDataType[], formState?: any, authState?: any) => {};
@@ -1,3 +1,3 @@
1
1
  import { CustomProperties } from "components/context/propertiesConfig/customProperties";
2
2
  import { MetaDataType, ExtendedFieldMetaDataTypeOptional } from "../types";
3
- export declare const extendFieldTypes: (metaData: MetaDataType, extendedTypes: ExtendedFieldMetaDataTypeOptional, lanTranslate?: any, authState?: any, customParameters?: CustomProperties) => MetaDataType;
3
+ export declare const extendFieldTypes: (metaData: MetaDataType, extendedTypes: ExtendedFieldMetaDataTypeOptional, lanTranslate?: any, authState?: any, customParameters?: CustomProperties, formState?: any) => MetaDataType;
@@ -39,5 +39,6 @@ export interface MasterDetailsArgumentType {
39
39
  handleClickAction?: (event: any, data: any) => void;
40
40
  defaultSelectedRowId?: string;
41
41
  disableMultipleRowSelect?: boolean;
42
+ setValidationRunning?: (validationRunning: boolean) => void;
42
43
  }
43
44
  export declare const MasterDetailsForm: import("react").ForwardRefExoticComponent<MasterDetailsArgumentType & import("react").RefAttributes<any>>;
@@ -1 +1 @@
1
- export declare const DateCell: (props: any) => string | import("react/jsx-runtime").JSX.Element;
1
+ export declare const DateCell: (props: any) => string | import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,5 @@
1
- export declare const FooterCell: ({ rows, column: { id: columnName, isTotalWithoutCurrency, isTotalWithCurrency, currencyRefColumn, isCurrencyCode, currencySymbolPosition, }, loading, }: {
1
+ export declare const FooterCell: ({ rows, column: { id: columnName, isTotalWithoutCurrency, isTotalWithCurrency, currencyRefColumn, isCurrencyCode, currencySymbolPosition, }, loading, data, ...others }: {
2
+ [x: string]: any;
2
3
  rows: any;
3
4
  column: {
4
5
  id: any;
@@ -9,6 +10,7 @@ export declare const FooterCell: ({ rows, column: { id: columnName, isTotalWitho
9
10
  currencySymbolPosition?: string | undefined;
10
11
  };
11
12
  loading: any;
13
+ data: any;
12
14
  }) => string;
13
15
  export declare const FooterCell1: ({ rows, column: { id: columnName, isDisplayValueTotal, currencyRefColumn, isCurrencyCode, DisplayValueLabel, }, }: {
14
16
  rows: any;
@@ -58,6 +58,7 @@ interface GridTableType {
58
58
  disableFilters?: boolean;
59
59
  headerToolbarStyle?: SxProps;
60
60
  enableEnterToFocus?: boolean;
61
+ expandAllGroupedRows?: boolean;
61
62
  }
62
63
  export declare const GridTable: FC<GridTableType>;
63
64
  export {};
@@ -101,6 +101,9 @@ export interface ReportColumnsType {
101
101
  * @default false
102
102
  */
103
103
  disableFilters?: boolean;
104
+ canUngroup?: boolean;
105
+ isGroupSum?: boolean;
106
+ customAggregation?: (rows: any, config: any) => string;
104
107
  }
105
108
  export interface ReportFilterProps {
106
109
  accessor: string;
@@ -149,6 +152,7 @@ export interface ReportMetaDataType {
149
152
  * @default false
150
153
  */
151
154
  disableFilters?: boolean;
155
+ expandAllGroupedRows?: boolean;
152
156
  }
153
157
  export interface ReportGridProps {
154
158
  metaData: any;
@@ -211,4 +215,5 @@ export interface ReportGridProps {
211
215
  headerToolbarStyle?: SxProps;
212
216
  enableEnterToFocus?: boolean;
213
217
  focusScopeId?: string;
218
+ expandAllGroupedRows?: boolean;
214
219
  }