rez-table-listing-mui 1.3.6 → 1.3.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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { SortingState, PaginationState, RowSelectionState, ExpandedState, ColumnPinningState, ColumnDef, Row, Table, ColumnOrderState, Header } from '@tanstack/react-table';
3
3
  import React$1, { Dispatch, SetStateAction } from 'react';
4
+ import { ButtonProps } from '@mui/material';
4
5
 
5
6
  interface onFilterChangeFunctionProps {
6
7
  updatedFilters?: any;
@@ -59,6 +60,10 @@ interface FilterDropdownDataProps {
59
60
  interface FilterComponentOptionsMainFilterOptions {
60
61
  showSaveButton?: boolean;
61
62
  showClearAllButton?: boolean;
63
+ customButtons?: Array<{
64
+ label: string;
65
+ onClick: () => void;
66
+ } & Partial<ButtonProps>>;
62
67
  }
63
68
  type ButtonConfig = {
64
69
  primary: string;
@@ -75,26 +80,26 @@ type RecordFilterComponentProps = {
75
80
  edit: ModalConfig;
76
81
  delete: ModalConfig;
77
82
  };
83
+ interface FilterComponentTabOptions {
84
+ mainFilter?: FilterComponentOptionsMainFilterOptions;
85
+ isSingleFilter?: boolean;
86
+ }
78
87
  type FilterComponentOptions = {
88
+ showTabs?: true;
79
89
  showMainHeader?: boolean;
80
90
  mainHeaderTitle?: string;
81
- showTabs?: true;
82
91
  showMainFilter?: boolean;
83
92
  showSavedFilter?: boolean;
84
93
  showAttributesFilter?: boolean;
85
94
  isRuleEngine?: boolean;
86
- tabOptions?: {
87
- mainFilter?: FilterComponentOptionsMainFilterOptions;
88
- };
95
+ tabOptions?: FilterComponentTabOptions;
89
96
  recordFilterComponentProps?: RecordFilterComponentProps;
90
97
  } | {
98
+ showTabs?: false;
91
99
  showMainHeader?: boolean;
92
100
  mainHeaderTitle?: string;
93
- showTabs?: false;
94
101
  isRuleEngine?: boolean;
95
- tabOptions?: {
96
- mainFilter?: FilterComponentOptionsMainFilterOptions;
97
- };
102
+ tabOptions?: FilterComponentTabOptions;
98
103
  recordFilterComponentProps?: RecordFilterComponentProps;
99
104
  };
100
105
  interface FilterDrawerProps {
@@ -240,6 +245,7 @@ interface FilterDataMainFilterEntityWiseCriteriaProps {
240
245
  attribute_key: string;
241
246
  element_type: FilterInputDataTypes;
242
247
  datasource_list: any;
248
+ data_type: FilterInputDataTypes;
243
249
  }
244
250
  interface FilterDataProps {
245
251
  mainFilter?: {