@acuteinfo/common-base 1.2.20 → 1.2.21

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.
@@ -6,6 +6,14 @@ interface GridTableType {
6
6
  defaultColumn: any;
7
7
  data: any;
8
8
  maxHeight: number;
9
+ containerHeight?: {
10
+ min: string;
11
+ max: string;
12
+ };
13
+ occupiedHeight?: {
14
+ min: string;
15
+ max: string;
16
+ };
9
17
  initialState?: any;
10
18
  filterTypes?: any;
11
19
  title?: any;
@@ -4,6 +4,14 @@ interface GridTableType {
4
4
  defaultColumn: any;
5
5
  data: any;
6
6
  maxHeight: number;
7
+ containerHeight?: {
8
+ min: string;
9
+ max: string;
10
+ };
11
+ occupiedHeight?: {
12
+ min: string;
13
+ max: string;
14
+ };
7
15
  filterTypes?: any;
8
16
  title?: any;
9
17
  options?: any;
@@ -1,6 +1,6 @@
1
1
  import { SxProps } from "@mui/material";
2
2
  import { currencySymbol } from "components/custom/getCurrencySymbol";
3
- import { ComponentType, ReactNode } from "react";
3
+ import React, { ComponentType, ReactNode } from "react";
4
4
  export interface FilterColumnType {
5
5
  Filter?: any;
6
6
  filterComponentType?: "valueFilter" | "valueDateFilter" | "rangeFilter" | "optionsFilter" | "multiValueFilter";
@@ -34,7 +34,7 @@ export interface ReportColumnsType {
34
34
  /**
35
35
  * Specify type of cell
36
36
  */
37
- Cell?: ComponentType<any>;
37
+ Cell?: ComponentType<any> | ((props: any) => string | React.ReactElement);
38
38
  Filter?: ComponentType<any>;
39
39
  /**
40
40
  * cell type
@@ -124,6 +124,15 @@ export interface ReportMetaDataType {
124
124
  hideFooter?: boolean | "Y" | "N";
125
125
  hideAmountIn?: boolean | "Y" | "N";
126
126
  autoFetch?: boolean;
127
+ sequenceColumnConfig?: Partial<Omit<ReportColumnsType, "accessor">>;
128
+ containerHeight?: {
129
+ min: string;
130
+ max: string;
131
+ };
132
+ occupiedHeight?: {
133
+ min: string;
134
+ max: string;
135
+ };
127
136
  filters?: ReportFilterProps[];
128
137
  retrievalType?: string;
129
138
  columns: ReportColumnsType[];