@acuteinfo/common-base 1.0.102 → 1.0.104

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.
@@ -9,6 +9,10 @@ interface MyGridExtendedProps {
9
9
  GridProps?: GridProps;
10
10
  enableGrid: boolean;
11
11
  runPostValidationForInitValue?: boolean;
12
+ setFieldLabel?: (dependentFields?: any, value?: any) => {
13
+ label: string;
14
+ placeholder?: string;
15
+ } | null | undefined;
12
16
  }
13
17
  export type MyTimeTimePickerAllProps = Merge<Merge<KeyboardTimePickerPropsSubset, MyGridExtendedProps>, UseFieldHookProps>;
14
18
  export declare const MyTimePicker: FC<MyTimeTimePickerAllProps>;
@@ -113,6 +113,7 @@ export interface RenderFunctionType {
113
113
  export interface FormWrapperProps {
114
114
  metaData: MetaDataType;
115
115
  initialValues?: InitialValuesType;
116
+ previousValues?: InitialValuesType;
116
117
  onSubmitHandler: SubmitFnType;
117
118
  hidden?: boolean;
118
119
  displayMode?: "new" | "view" | "edit" | (string & Record<never, never>) | null;
@@ -1,4 +1,5 @@
1
1
  import { InitialValuesType } from "packages/form";
2
2
  import { FieldMetaDataType } from "../types";
3
3
  export declare const constructInitialValue: (fields: FieldMetaDataType[], initialValues?: InitialValuesType, formState?: any, authState?: any) => {};
4
+ export declare const constructPreviousValues: (fields: FieldMetaDataType[], previousValues?: InitialValuesType) => {};
4
5
  export declare const constructInitialValuesForArrayFields: (fields: FieldMetaDataType[], formState?: any, authState?: any) => {};
@@ -1,4 +1,5 @@
1
- import { FC } from "react";
1
+ import { FC, ReactNode } from "react";
2
+ import { SxProps } from "@mui/material";
2
3
  import { RetrievalParametersProps } from "./types";
3
4
  interface GridTableType {
4
5
  columns: any;
@@ -37,6 +38,11 @@ interface GridTableType {
37
38
  enablePdfPrint?: boolean;
38
39
  reportTemplateCode?: string;
39
40
  enablePivot?: boolean;
41
+ actions?: {
42
+ buttonStyle?: SxProps;
43
+ buttonName: ReactNode;
44
+ callback: (event: any, originalData: any, rows: any) => void;
45
+ }[];
40
46
  }
41
47
  export declare const GridTable: FC<GridTableType>;
42
48
  export {};
@@ -1,5 +1,6 @@
1
+ import { SxProps } from "@mui/material";
1
2
  import { currencySymbol } from "components/custom/getCurrencySymbol";
2
- import { ComponentType } from "react";
3
+ import { ComponentType, ReactNode } from "react";
3
4
  export interface FilterColumnType {
4
5
  Filter?: any;
5
6
  filterComponentType?: "valueFilter" | "valueDateFilter" | "rangeFilter" | "optionsFilter" | "multiValueFilter";
@@ -165,4 +166,12 @@ export interface ReportGridProps {
165
166
  * @default false
166
167
  */
167
168
  enablePivot?: boolean;
169
+ /**
170
+ * Dynamic buttons to display in header of grid.
171
+ */
172
+ actions?: {
173
+ buttonStyle?: SxProps;
174
+ buttonName: ReactNode;
175
+ callback: (event: any, originalData: any, rows: any) => void;
176
+ }[];
168
177
  }
@@ -0,0 +1,6 @@
1
+ import { TooltipProps } from "@mui/material/Tooltip";
2
+ export declare const HtmlTooltip: import("@emotion/styled").StyledComponent<TooltipProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
3
+ export declare const TooltipTitle: ({ label, value, }: {
4
+ label: string;
5
+ value: string | string[];
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1,2 @@
1
1
  export { default as Tooltip } from "./tooltip";
2
+ export { HtmlTooltip } from "./htmlTooltip";