@acuteinfo/common-base 1.2.7 → 1.2.9

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.
@@ -108,6 +108,11 @@ export interface CustomProperties {
108
108
  * *Note: This flag will be removed in future.*
109
109
  */
110
110
  enablePostValidationRun?: boolean;
111
+ /**
112
+ * If true, it will disable column filters in gridWrapper, reportGrid and pagination report grid.
113
+ * @default false
114
+ */
115
+ disableColumnFilters?: boolean;
111
116
  }
112
117
  interface ContextProps {
113
118
  config?: CustomProperties;
@@ -0,0 +1,5 @@
1
+ declare const AmountAdvanced: ({ inputValue, setInputValue }: {
2
+ inputValue: any;
3
+ setInputValue: any;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default AmountAdvanced;
@@ -0,0 +1,6 @@
1
+ declare const AmountRangeAdvanced: ({ amtRange, setAmtRange, setIsError }: {
2
+ amtRange: any;
3
+ setAmtRange: any;
4
+ setIsError: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default AmountRangeAdvanced;
@@ -0,0 +1,7 @@
1
+ declare const DateAdvanced: ({ dateValue, setDateValue, columnFormat, setIsError, }: {
2
+ dateValue: any;
3
+ setDateValue: any;
4
+ columnFormat?: string | undefined;
5
+ setIsError: any;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default DateAdvanced;
@@ -0,0 +1,7 @@
1
+ declare const DateRangeAdvanced: ({ dateRange, setDateRange, columnFormat, setIsError, }: {
2
+ dateRange: any;
3
+ setDateRange: any;
4
+ columnFormat?: string | undefined;
5
+ setIsError: any;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default DateRangeAdvanced;
@@ -0,0 +1,4 @@
1
+ export declare const AdvanceFilter: ({ column, filters }: {
2
+ column: any;
3
+ filters: any;
4
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ export declare const getFormattedDate: (dt: any, columnFormat: any) => string;
2
+ export declare const customFilterFn: (rows: any, id: any, filterValue: any) => any;
3
+ export declare const getRelativeDateRange: (option: any) => Date | Date[] | null;
@@ -1 +1 @@
1
- export declare const DateCell: (props: any) => import("react/jsx-runtime").JSX.Element;
1
+ export declare const DateCell: (props: any) => string | import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export declare const DateTimeCell: (props: any) => import("react/jsx-runtime").JSX.Element;
1
+ export declare const DateTimeCell: (props: any) => string | import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export declare const NumberCell: (props: any) => import("react/jsx-runtime").JSX.Element;
1
+ export declare const NumberCell: (props: any) => string | import("react/jsx-runtime").JSX.Element;
2
2
  export declare const NumberCell2: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- export declare const GlobalFilter: ({ preGlobalFilteredRows, globalFilter, setGlobalFilter, }: {
2
- preGlobalFilteredRows: any;
1
+ export declare const GlobalFilter: ({ globalFilter, setGlobalFilter, rowCount }: {
3
2
  globalFilter: any;
4
3
  setGlobalFilter: any;
4
+ rowCount: any;
5
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -10,7 +10,7 @@ export declare const FilterComponent: ({ setQueryFilters, filterMeta, filterData
10
10
  filterData: any;
11
11
  retrievalType: any;
12
12
  isOpenRetrievalDefault: any;
13
- setShowFilters: any;
14
- setAllFilters: any;
13
+ setShowFilters?: ((param?: boolean) => void) | undefined;
14
+ setAllFilters?: ((param: any) => void) | undefined;
15
15
  retrievalComponent: any;
16
16
  }) => import("react/jsx-runtime").JSX.Element;
@@ -44,6 +44,7 @@ interface GridTableType {
44
44
  callback: (event: any, originalData: any, rows: any) => void;
45
45
  }[];
46
46
  getReportData?: (filters: any[], queryFilters: any, globalFilter: string | undefined, originalData: any, filteredData: any) => void;
47
+ disableFilters?: boolean;
47
48
  }
48
49
  export declare const GridTable: FC<GridTableType>;
49
50
  export {};
@@ -9,6 +9,7 @@ type TReportWrapper = {
9
9
  onClickActionEvent: Function;
10
10
  defaultFilter?: any;
11
11
  onDoubleClickAction?: Function;
12
+ disableFilters?: boolean;
12
13
  };
13
14
  export declare const ReportWrapper: React.FC<TReportWrapper>;
14
15
  export {};
@@ -32,6 +32,8 @@ interface GridTableType {
32
32
  enablePagination?: boolean;
33
33
  enablePdfPrint?: boolean;
34
34
  onDoubleClickAction?: Function;
35
+ defaultFilter?: any;
36
+ disableFilters?: boolean;
35
37
  }
36
38
  export declare const GridTable: FC<GridTableType>;
37
39
  export {};
@@ -96,6 +96,11 @@ export interface ReportColumnsType {
96
96
  * Specify format for date columns
97
97
  */
98
98
  format?: string;
99
+ /**
100
+ * If true, disable column filters
101
+ * @default false
102
+ */
103
+ disableFilters?: boolean;
99
104
  }
100
105
  export interface ReportFilterProps {
101
106
  accessor: string;
@@ -130,6 +135,11 @@ export interface ReportMetaDataType {
130
135
  * @default false
131
136
  */
132
137
  enablePivot?: boolean;
138
+ /**
139
+ * If true, disable all column filters
140
+ * @default false
141
+ */
142
+ disableFilters?: boolean;
133
143
  }
134
144
  export interface ReportGridProps {
135
145
  metaData: any;
@@ -184,4 +194,9 @@ export interface ReportGridProps {
184
194
  * @returns void
185
195
  */
186
196
  getReportData?: (filters: any[], queryFilters: any, globalFilter: string | undefined, originalData: any, filteredData: any) => void;
197
+ /**
198
+ * If true, disable all column filters
199
+ * @default false
200
+ */
201
+ disableFilters?: boolean;
187
202
  }