rez-table-listing-mui 1.3.33 → 1.3.35

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.
@@ -202,6 +202,7 @@ export function TableFilter({
202
202
  }
203
203
  } else {
204
204
  onSaveFilter && onSaveFilter(selectedName);
205
+ setTabValue(1);
205
206
  }
206
207
 
207
208
  setSavedFilterModalOpen(false);
@@ -215,6 +216,22 @@ export function TableFilter({
215
216
  }
216
217
 
217
218
  setTabValue(newValue);
219
+ if (newValue === 0) {
220
+ setFilterMaster((prev) => {
221
+ if (!prev) return prev;
222
+ return {
223
+ ...prev,
224
+ saved_filters: {
225
+ ...(prev.saved_filters ?? {}),
226
+ selectedId: "",
227
+ selectedName: "",
228
+ description: "",
229
+ is_shared: false,
230
+ is_editable: false,
231
+ },
232
+ };
233
+ });
234
+ }
218
235
 
219
236
  if (tabType === "Filter") {
220
237
  setEditMode(false);
@@ -9,7 +9,7 @@ const LoginButton = () => {
9
9
  setLoading(true);
10
10
  const api_url = "https://api.eth-qa.rezolut.in/api/enrol/auth";
11
11
  // const api_url = "http://localhost:6011/api/auth";
12
- const email_id = "kartik.shetty@rezolut.in";
12
+ const email_id = "shraddha.nandurkar@rezolut.in";
13
13
  const email_otp = "123456";
14
14
  const sub_domain = "universal";
15
15
 
@@ -19,7 +19,7 @@ export interface FilterOperationListProps {
19
19
  is_editable: boolean;
20
20
  is_owner: boolean;
21
21
  created_by: string;
22
- user_id: number;
22
+ // user_id: number;
23
23
  description: string | null;
24
24
  }
25
25
 
@@ -248,6 +248,7 @@ export interface createSavedFilterPayload {
248
248
  enterprise_id?: number;
249
249
  user_id?: number;
250
250
  is_default: boolean;
251
+ description: string | null;
251
252
  mapped_entity_type: string;
252
253
  status?: string;
253
254
  entity_type: string;
@@ -267,6 +268,7 @@ export interface updateSavedFilterPayload {
267
268
  name: string;
268
269
  is_default: boolean;
269
270
  id: string | number;
271
+
270
272
  status?: string;
271
273
  entity_type: string;
272
274
  mapped_entity_type: string;
@@ -308,6 +310,7 @@ export interface FilterMasterStateProps {
308
310
  description?: string;
309
311
  is_shared?: boolean;
310
312
  is_editable?: boolean;
313
+ is_owner?: boolean;
311
314
  };
312
315
  activeFilterTabIndex: number;
313
316
  shared_filters_meta?: Record<string, SavedFilterSharingPreference>;
@@ -280,7 +280,7 @@ function ListingView() {
280
280
  entity_type: MAPPED_ENTITY_TYPE,
281
281
  mapped_entity_type: ENTITY_TYPE,
282
282
  mapped_json: data,
283
- type: "layout",
283
+ type: "filter",
284
284
  };
285
285
 
286
286
  await saveLayoutAPI(payload);