rez-table-listing-mui 1.3.31 → 1.3.33
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 +5 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/listing/components/common/saved-filter-modal/index.tsx +42 -15
- package/src/listing/components/filter/components/forms/components/Date.tsx +1 -1
- package/src/listing/components/filter/components/forms/components/Dropdown.tsx +2 -135
- package/src/listing/components/filter/components/forms/components/Textfield.tsx +4 -1
- package/src/listing/components/filter/components/forms/index.tsx +105 -57
- package/src/listing/components/filter/components/forms/utils/filter-date-input-resolver.tsx +24 -48
- package/src/listing/components/filter/components/saved-filter.tsx +593 -12
- package/src/listing/components/filter/index.tsx +6 -0
- package/src/listing/components/login/index.tsx +1 -1
- package/src/listing/libs/utils/common.ts +1 -0
- package/src/listing/types/filter.ts +5 -0
- package/src/view/FIlterWrapper.tsx +5 -0
|
@@ -169,6 +169,8 @@ export function TableFilter({
|
|
|
169
169
|
const handleSavedFilterModalSave = () => {
|
|
170
170
|
const selectedId = filterMaster?.saved_filters?.selectedId;
|
|
171
171
|
const selectedName = filterMaster?.saved_filters?.selectedName || "";
|
|
172
|
+
const description = filterMaster?.saved_filters?.description || "";
|
|
173
|
+
|
|
172
174
|
const selectedCode = filterMaster?.saved_filters?.selectedCode;
|
|
173
175
|
|
|
174
176
|
const newFilterMasterState = {
|
|
@@ -178,6 +180,7 @@ export function TableFilter({
|
|
|
178
180
|
selectedId,
|
|
179
181
|
selectedName,
|
|
180
182
|
selectedCode,
|
|
183
|
+
description,
|
|
181
184
|
},
|
|
182
185
|
} as FilterMasterStateProps;
|
|
183
186
|
|
|
@@ -391,6 +394,8 @@ export function TableFilter({
|
|
|
391
394
|
inputValue || filterMaster?.saved_filters?.selectedName;
|
|
392
395
|
const selectedCode =
|
|
393
396
|
filterMaster?.saved_filters?.selectedCode;
|
|
397
|
+
const description =
|
|
398
|
+
inputValue || filterMaster?.saved_filters?.description;
|
|
394
399
|
|
|
395
400
|
const newFilterMasterState = {
|
|
396
401
|
...filterMaster,
|
|
@@ -399,6 +404,7 @@ export function TableFilter({
|
|
|
399
404
|
selectedId,
|
|
400
405
|
selectedName,
|
|
401
406
|
selectedCode,
|
|
407
|
+
description,
|
|
402
408
|
},
|
|
403
409
|
} as FilterMasterStateProps;
|
|
404
410
|
|
|
@@ -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 = "
|
|
12
|
+
const email_id = "kartik.shetty@rezolut.in";
|
|
13
13
|
const email_otp = "123456";
|
|
14
14
|
const sub_domain = "universal";
|
|
15
15
|
|
|
@@ -80,6 +80,7 @@ export function customDebounce<T extends (...args: any[]) => any>(
|
|
|
80
80
|
const ENVIRONMENT = "uat";
|
|
81
81
|
export const ENTITY_TYPE = "LEAD";
|
|
82
82
|
export const MAPPED_ENTITY_TYPE = "LYPR"; // LAP OR LYPR
|
|
83
|
+
export const USER_ID = 226;
|
|
83
84
|
|
|
84
85
|
const environments = {
|
|
85
86
|
adm_dev: "http://localhost:4010/api",
|
|
@@ -17,6 +17,10 @@ export interface FilterOperationListProps {
|
|
|
17
17
|
value: string;
|
|
18
18
|
is_shared: boolean;
|
|
19
19
|
is_editable: boolean;
|
|
20
|
+
is_owner: boolean;
|
|
21
|
+
created_by: string;
|
|
22
|
+
user_id: number;
|
|
23
|
+
description: string | null;
|
|
20
24
|
}
|
|
21
25
|
|
|
22
26
|
export interface FilterSharedListProps {
|
|
@@ -301,6 +305,7 @@ export interface FilterMasterStateProps {
|
|
|
301
305
|
selectedId: string;
|
|
302
306
|
selectedName: string;
|
|
303
307
|
selectedCode?: string;
|
|
308
|
+
description?: string;
|
|
304
309
|
is_shared?: boolean;
|
|
305
310
|
is_editable?: boolean;
|
|
306
311
|
};
|
|
@@ -89,6 +89,7 @@ const CraftTableFilterWrapper = ({
|
|
|
89
89
|
const quickFilter = filters.map((f: any) => ({ ...f }));
|
|
90
90
|
const shareWithTeam = filterMaster?.saved_filters?.is_shared ?? false;
|
|
91
91
|
const allowTeamEdit = filterMaster?.saved_filters?.is_editable ?? false;
|
|
92
|
+
const description = filterMaster?.saved_filters?.description ?? "";
|
|
92
93
|
|
|
93
94
|
const payload = {
|
|
94
95
|
name,
|
|
@@ -96,6 +97,7 @@ const CraftTableFilterWrapper = ({
|
|
|
96
97
|
mapped_entity_type: ENTITY_TYPE, // For that entity type
|
|
97
98
|
status: "ACTIVE",
|
|
98
99
|
entity_type: "SFM", // FIXED entity type
|
|
100
|
+
description: description,
|
|
99
101
|
filterDetails: quickFilter,
|
|
100
102
|
is_shared: shareWithTeam,
|
|
101
103
|
is_editable: allowTeamEdit,
|
|
@@ -115,6 +117,7 @@ const CraftTableFilterWrapper = ({
|
|
|
115
117
|
...prev?.saved_filters,
|
|
116
118
|
selectedId: newFilterId.toString(),
|
|
117
119
|
selectedName: name,
|
|
120
|
+
description: description,
|
|
118
121
|
is_shared: shareWithTeam,
|
|
119
122
|
is_editable: allowTeamEdit,
|
|
120
123
|
},
|
|
@@ -135,6 +138,7 @@ const CraftTableFilterWrapper = ({
|
|
|
135
138
|
}));
|
|
136
139
|
const shareWithTeam = filterMaster?.saved_filters?.is_shared ?? false;
|
|
137
140
|
const allowTeamEdit = filterMaster?.saved_filters?.is_editable ?? false;
|
|
141
|
+
const description = filterMaster?.saved_filters?.description ?? "";
|
|
138
142
|
|
|
139
143
|
const payload = {
|
|
140
144
|
name: filterMaster?.saved_filters?.selectedName, // Name of the filter
|
|
@@ -142,6 +146,7 @@ const CraftTableFilterWrapper = ({
|
|
|
142
146
|
id: filterMaster?.saved_filters?.selectedId,
|
|
143
147
|
mapped_entity_type: ENTITY_TYPE,
|
|
144
148
|
status: "ACTIVE",
|
|
149
|
+
description: description,
|
|
145
150
|
entity_type: "SFM",
|
|
146
151
|
filterDetails: quickFilter,
|
|
147
152
|
is_shared: shareWithTeam, // Now true/false from state
|