@acuteinfo/common-base 1.0.26 → 1.0.27

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,12 +23,13 @@ export interface ArrayField2Props {
23
23
  agreeButtonName: any;
24
24
  errorTitle: string;
25
25
  displayCountName: string;
26
- runExternalFunction?: Boolean;
27
- isRemoveButton?: Boolean;
26
+ runExternalFunction?: boolean;
27
+ isRemoveButton?: boolean;
28
28
  onFormDataChange?: any;
29
+ changeRowOrder?: boolean;
29
30
  }
30
31
  export declare const ArrayField2: FC<ArrayField2Props>;
31
- 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, }: {
32
+ 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, }: {
32
33
  row: any;
33
34
  getAllRowsValues: any;
34
35
  fieldKey: any;
@@ -51,4 +52,6 @@ export declare const ArrayFieldRow: ({ row, getAllRowsValues, fieldKey, oneRow,
51
52
  errorTitle: any;
52
53
  displayCountName: any;
53
54
  isRemoveButton: any;
55
+ selectedRowIndex: any;
56
+ setSelectedRowIndex: any;
54
57
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"arrayRowContainer" | "newArrayRowContainer" | "newSecondArrayRowContainer" | "arrayRowRemoveBtn" | "arrayRowCard" | "arrayRowCardContent" | "arrayRowCount" | "arrayRowCountCustomStyle" | "arrayRowCountFixedRows" | "arrayScreenRowCount" | "newArrayRowCardContent">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"arrayRowContainer" | "newArrayRowContainer" | "newSecondArrayRowContainer" | "arrayRowRemoveBtn" | "arrayRowCard" | "arrayRowCardContent" | "arrayRowCount" | "arrayRowCountCustomStyle" | "arrayRowCountFixedRows" | "arrayScreenRowCount" | "newArrayRowCardContent" | "arrayFieldSelected" | "arrayFieldUnselected">;
@@ -25,7 +25,10 @@ interface AutoCompleteExtendedProps {
25
25
  _optionsKey?: string;
26
26
  disableCaching?: boolean;
27
27
  disableAdornment?: boolean;
28
- ignoreInSubmit?: boolean;
28
+ ignoreInSubmit?: (dependentValues: any, object: {
29
+ isSubmitting?: boolean;
30
+ value?: string;
31
+ }) => boolean | boolean;
29
32
  textFieldStyle?: SxProps;
30
33
  setFieldLabel?: (dependentFields?: any, value?: any) => string | null | undefined;
31
34
  }
@@ -16,7 +16,10 @@ interface MyCheckboxExtendedProps {
16
16
  FormHelperTextProps?: FormHelperTextProps;
17
17
  GridProps?: GridProps;
18
18
  enableGrid: boolean;
19
- ignoreInSubmit?: boolean;
19
+ ignoreInSubmit?: (dependentValues: any, object: {
20
+ isSubmitting?: boolean;
21
+ value?: string;
22
+ }) => boolean | boolean;
20
23
  setFieldLabel?: (dependentFields?: any, value?: any) => string | null | undefined;
21
24
  }
22
25
  export type MyCheckboxAllProps = Merge<MyCheckboxMixedProps, MyCheckboxExtendedProps>;
@@ -9,12 +9,16 @@ interface MyGridExtendedProps {
9
9
  GridProps?: GridProps;
10
10
  disableTimestamp?: boolean;
11
11
  enableGrid: boolean;
12
- ignoreInSubmit?: boolean;
13
12
  disablePast?: boolean;
14
13
  disableFuture?: boolean;
15
14
  isWorkingDate?: boolean;
16
15
  isMaxWorkingDate?: boolean;
17
16
  isMinWorkingDate?: boolean;
17
+ ignoreInSubmit?: (dependentValues: any, object: {
18
+ isSubmitting?: boolean;
19
+ value?: string;
20
+ }) => boolean | boolean;
21
+ setFieldLabel?: (dependentFields?: any, value?: any) => string | null | undefined;
18
22
  }
19
23
  export type MyDataPickerAllProps = Merge<Merge<KeyboardDatePickerPropsSubset, MyGridExtendedProps>, UseFieldHookProps>;
20
24
  export declare const MyDatePicker: FC<MyDataPickerAllProps>;
@@ -7,7 +7,11 @@ type KeyboardDateTimePickerPropsSubset = Omit<DateTimePickerProps<any>, "onChang
7
7
  interface MyGridExtendedProps {
8
8
  GridProps?: GridProps;
9
9
  enableGrid: boolean;
10
- ignoreInSubmit?: boolean;
10
+ ignoreInSubmit?: (dependentValues: any, object: {
11
+ isSubmitting?: boolean;
12
+ value?: string;
13
+ }) => boolean | boolean;
14
+ setFieldLabel?: (dependentFields?: any, value?: any) => string | null | undefined;
11
15
  disablePast?: boolean;
12
16
  disableFuture?: boolean;
13
17
  }
@@ -24,7 +24,10 @@ interface MySelectExtendedProps {
24
24
  CircularProgressProps?: CircularProgressProps;
25
25
  GridProps?: GridProps;
26
26
  enableGrid: boolean;
27
- ignoreInSubmit?: boolean;
27
+ ignoreInSubmit?: (dependentValues: any, object: {
28
+ isSubmitting?: boolean;
29
+ value?: string;
30
+ }) => boolean | boolean;
28
31
  AlwaysRunPostValidationSetCrossFieldValues?: {
29
32
  alwaysRun?: boolean;
30
33
  touchAndValidate?: boolean;
@@ -27,7 +27,10 @@ interface MyGridExtendedProps {
27
27
  alwaysRun?: any;
28
28
  touchAndValidate?: any;
29
29
  };
30
- ignoreInSubmit?: boolean;
30
+ ignoreInSubmit?: (dependentValues: any, object: {
31
+ isSubmitting?: boolean;
32
+ value?: string;
33
+ }) => boolean | boolean;
31
34
  setFieldLabel?: (dependentFields?: any, value?: any) => string | null | undefined;
32
35
  label?: string;
33
36
  }
@@ -66,6 +66,9 @@ export interface GridColumnType {
66
66
  isVisibleInNew?: boolean;
67
67
  currencyRefColumn?: string;
68
68
  isCurrencyCode?: boolean;
69
+ isSelectedTotal?: Boolean;
70
+ isDisplayTotal?: Boolean;
71
+ totalDecimalCount?: number;
69
72
  /**
70
73
  * Accepts boolean value to hide dropdown and cross icons from autocomplete
71
74
  * @default false
@@ -1,6 +1,6 @@
1
1
  import { GridColumnType } from "../types";
2
- export declare const combineAndRunValidation: (schemaValidation: any, validation: any) => (value: any, row: any, prev: any, next: any) => Promise<any>;
3
- export declare const attachcombinedValidationFns: (columns: GridColumnType[]) => {
2
+ export declare const combineAndRunValidation: (schemaValidation: any, validation: any, authState: any) => (value: any, row: any, prev: any, next: any) => Promise<any>;
3
+ export declare const attachcombinedValidationFns: (columns: GridColumnType[], authState: any) => {
4
4
  validation: (value: any, row: any, prev: any, next: any) => Promise<any>;
5
5
  columnName: string;
6
6
  accessor: string;
@@ -60,6 +60,9 @@ export declare const attachcombinedValidationFns: (columns: GridColumnType[]) =>
60
60
  isVisibleInNew?: boolean | undefined;
61
61
  currencyRefColumn?: string | undefined;
62
62
  isCurrencyCode?: boolean | undefined;
63
+ isSelectedTotal?: Boolean | undefined;
64
+ isDisplayTotal?: Boolean | undefined;
65
+ totalDecimalCount?: number | undefined;
63
66
  disableAdornment?: boolean | undefined;
64
67
  setButtonName?: ((value: string | undefined, original: any) => string | undefined) | undefined;
65
68
  shouldExclude?: ((value: string | undefined, original: any, data?: any, index?: number | undefined) => boolean) | undefined;
@@ -60,6 +60,9 @@ export declare const attachYupSchemaValidator: (columns: GridColumnType[]) => {
60
60
  isVisibleInNew?: boolean | undefined;
61
61
  currencyRefColumn?: string | undefined;
62
62
  isCurrencyCode?: boolean | undefined;
63
+ isSelectedTotal?: Boolean | undefined;
64
+ isDisplayTotal?: Boolean | undefined;
65
+ totalDecimalCount?: number | undefined;
63
66
  disableAdornment?: boolean | undefined;
64
67
  setButtonName?: ((value: string | undefined, original: any) => string | undefined) | undefined;
65
68
  shouldExclude?: ((value: string | undefined, original: any, data?: any, index?: number | undefined) => boolean) | undefined;
@@ -4,6 +4,7 @@ import { TextFieldPropsOptional, SelectPropsOptional, CheckboxGroupPropsOptional
4
4
  import { Merge } from "../../components/common/types";
5
5
  import { InitialValuesType, SubmitFnType } from "../../packages/form";
6
6
  import { CSSProperties, ReactNode } from "react";
7
+ import { SxProps } from "@mui/material";
7
8
  export interface FormRenderConfigType {
8
9
  ordering: "auto" | "sequence";
9
10
  renderType: "simple" | "tabs" | "stepper" | "accordian";
@@ -129,7 +130,7 @@ export interface FormWrapperProps {
129
130
  containerstyle?: CSSProperties;
130
131
  onFormButtonClickHandel?: (id: any, dependentFields?: any) => void;
131
132
  subHeaderLabel?: string;
132
- subHeaderLabelStyle?: string;
133
+ subHeaderLabelStyle?: SxProps;
133
134
  children?: ReactNode | Function;
134
135
  }
135
136
  export interface FormProps {
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { MasterDetailsMetaData } from "./types";
3
3
  import { CSSProperties } from "@mui/styles/withStyles";
4
+ import { SxProps } from "@mui/material";
4
5
  export interface MasterDetailsArgumentType {
5
6
  metaData: MasterDetailsMetaData;
6
7
  children?: any;
@@ -27,5 +28,7 @@ export interface MasterDetailsArgumentType {
27
28
  };
28
29
  setDataOnFieldChange?: (action: string, payload: any) => void;
29
30
  isDetailRowRequire?: boolean;
31
+ subHeaderLabel?: string;
32
+ subHeaderLabelStyle?: SxProps;
30
33
  }
31
34
  export declare const MasterDetailsForm: import("react").ForwardRefExoticComponent<MasterDetailsArgumentType & import("react").RefAttributes<any>>;