rez-table-listing-mui 1.3.3 → 1.3.5

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
@@ -60,21 +60,42 @@ interface FilterComponentOptionsMainFilterOptions {
60
60
  showSaveButton?: boolean;
61
61
  showClearAllButton?: boolean;
62
62
  }
63
+ type ButtonConfig = {
64
+ primary: string;
65
+ secondary: string;
66
+ };
67
+ type ModalConfig = {
68
+ title?: string;
69
+ description?: string;
70
+ button?: ButtonConfig;
71
+ isInputField?: boolean;
72
+ };
73
+ type RecordFilterComponentProps = {
74
+ save: ModalConfig;
75
+ edit: ModalConfig;
76
+ delete: ModalConfig;
77
+ };
63
78
  type FilterComponentOptions = {
64
79
  showMainHeader?: boolean;
80
+ mainHeaderTitle?: string;
65
81
  showTabs?: true;
66
82
  showMainFilter?: boolean;
67
83
  showSavedFilter?: boolean;
68
84
  showAttributesFilter?: boolean;
85
+ isRuleEngine?: boolean;
69
86
  tabOptions?: {
70
87
  mainFilter?: FilterComponentOptionsMainFilterOptions;
71
88
  };
89
+ recordFilterComponentProps?: RecordFilterComponentProps;
72
90
  } | {
73
91
  showMainHeader?: boolean;
92
+ mainHeaderTitle?: string;
74
93
  showTabs?: false;
94
+ isRuleEngine?: boolean;
75
95
  tabOptions?: {
76
96
  mainFilter?: FilterComponentOptionsMainFilterOptions;
77
97
  };
98
+ recordFilterComponentProps?: RecordFilterComponentProps;
78
99
  };
79
100
  interface FilterDrawerProps {
80
101
  tableStates: CraftTableOptionsProps;
@@ -121,8 +142,8 @@ interface FilterStateProps {
121
142
  filter_operator: string;
122
143
  filter_value: string | string[];
123
144
  id: string | number;
124
- name: string | undefined;
125
- data_type: FilterInputDataTypes | undefined;
145
+ filter_attribute_name: string | undefined;
146
+ filter_attribute_data_type: FilterInputDataTypes | undefined;
126
147
  attribute_key?: string;
127
148
  dropdown_list?: {
128
149
  label?: string;
@@ -134,6 +155,7 @@ interface FilterStateProps {
134
155
  };
135
156
  filter_entity_type?: string;
136
157
  filter_entity_name?: string;
158
+ datasource_list?: string | null;
137
159
  }
138
160
  interface createSavedFilterPayload {
139
161
  name: string;
@@ -144,7 +166,7 @@ interface createSavedFilterPayload {
144
166
  mapped_entity_type: string;
145
167
  status?: string;
146
168
  entity_type: string;
147
- filterDetails: FilterDetail[];
169
+ filterDetails: FilterStateProps[];
148
170
  }
149
171
  interface deleteSavedFilterPayload {
150
172
  name: string;
@@ -161,17 +183,7 @@ interface updateSavedFilterPayload {
161
183
  status?: string;
162
184
  entity_type: string;
163
185
  mapped_entity_type: string;
164
- filterDetails: FilterDetail[];
165
- }
166
- interface FilterDetail {
167
- filter_attribute: string;
168
- filter_operator: string;
169
- filter_value: string | string[];
170
- }
171
- interface FilterDetail {
172
- filter_attribute: string;
173
- filter_operator: string;
174
- filter_value: string | string[];
186
+ filterDetails: FilterStateProps[];
175
187
  }
176
188
  interface FilterFormComponentProps {
177
189
  columnsData: FilterColumnsDataProps;
@@ -227,6 +239,7 @@ interface FilterDataMainFilterEntityWiseCriteriaProps {
227
239
  name: string;
228
240
  attribute_key: string;
229
241
  element_type: FilterInputDataTypes;
242
+ datasource_list: any;
230
243
  }
231
244
  interface FilterDataProps {
232
245
  mainFilter?: {