rez-table-listing-mui 1.2.18 → 1.2.19
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.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/kanban/index.tsx +24 -21
- package/src/listing/libs/utils/common.ts +1 -1
package/package.json
CHANGED
package/src/kanban/index.tsx
CHANGED
|
@@ -84,7 +84,7 @@ const Kanban = ({
|
|
|
84
84
|
swimLane.sub_lanes
|
|
85
85
|
?.filter((subLane) => subLane.lane_id === laneId)
|
|
86
86
|
?.forEach((subLane) => {
|
|
87
|
-
data
|
|
87
|
+
data?.forEach((lead: any) => {
|
|
88
88
|
if (lead?.stage_id === subLane?.id && !seenLeadIds.has(lead?.id)) {
|
|
89
89
|
seenLeadIds.add(lead.id);
|
|
90
90
|
count++;
|
|
@@ -148,7 +148,7 @@ const Kanban = ({
|
|
|
148
148
|
</Box>
|
|
149
149
|
|
|
150
150
|
<Typography variant="h6" fontWeight="bold" sx={{ px: 2 }}>
|
|
151
|
-
{lane
|
|
151
|
+
{lane?.name}
|
|
152
152
|
</Typography>
|
|
153
153
|
</Box>
|
|
154
154
|
))}
|
|
@@ -193,7 +193,7 @@ const Kanban = ({
|
|
|
193
193
|
>
|
|
194
194
|
{swim_lane?.name} (
|
|
195
195
|
{
|
|
196
|
-
data
|
|
196
|
+
data?.filter(
|
|
197
197
|
(lead: any) => lead?.lead_status_id == swim_lane?.id
|
|
198
198
|
).length
|
|
199
199
|
}
|
|
@@ -212,7 +212,7 @@ const Kanban = ({
|
|
|
212
212
|
sx={{
|
|
213
213
|
...kanbanStyles.columnStyle,
|
|
214
214
|
bgcolor:
|
|
215
|
-
lane
|
|
215
|
+
lane?.color || COLOR_CONSTANTS[index % 4].color,
|
|
216
216
|
}}
|
|
217
217
|
key={lane.id}
|
|
218
218
|
>
|
|
@@ -220,18 +220,18 @@ const Kanban = ({
|
|
|
220
220
|
{swim_lane?.sub_lanes
|
|
221
221
|
?.filter(
|
|
222
222
|
(sub_lane: SubLane) =>
|
|
223
|
-
sub_lane.lane_id.toString() === lane
|
|
223
|
+
sub_lane.lane_id.toString() === lane?.id
|
|
224
224
|
)
|
|
225
225
|
?.map((sub_section: SubLane) => {
|
|
226
|
-
const subLaneKey = `${swim_lane
|
|
226
|
+
const subLaneKey = `${swim_lane?.id}-${lane?.id}-${sub_section?.id}`;
|
|
227
227
|
return (
|
|
228
228
|
<Accordion
|
|
229
229
|
key={sub_section.id}
|
|
230
230
|
expanded={
|
|
231
231
|
data?.filter(
|
|
232
232
|
(lead: any) =>
|
|
233
|
-
lead
|
|
234
|
-
lead
|
|
233
|
+
lead?.stage_id === sub_section?.id &&
|
|
234
|
+
lead?.lead_status_id == swim_lane?.id
|
|
235
235
|
)?.length === 0
|
|
236
236
|
? false
|
|
237
237
|
: subLaneExpanded[subLaneKey] || false
|
|
@@ -261,10 +261,10 @@ const Kanban = ({
|
|
|
261
261
|
display:
|
|
262
262
|
data?.filter(
|
|
263
263
|
(lead: any) =>
|
|
264
|
-
lead
|
|
265
|
-
sub_section
|
|
266
|
-
lead
|
|
267
|
-
swim_lane
|
|
264
|
+
lead?.stage_id ===
|
|
265
|
+
sub_section?.id &&
|
|
266
|
+
lead?.lead_status_id ==
|
|
267
|
+
swim_lane?.id
|
|
268
268
|
)?.length === 0
|
|
269
269
|
? "none"
|
|
270
270
|
: "block",
|
|
@@ -283,15 +283,17 @@ const Kanban = ({
|
|
|
283
283
|
sx={{
|
|
284
284
|
...kanbanStyles.subSectionCountContainer,
|
|
285
285
|
bgcolor:
|
|
286
|
-
lane
|
|
286
|
+
lane?.darkColor ||
|
|
287
287
|
COLOR_CONSTANTS[index % 4]
|
|
288
288
|
.darkColor,
|
|
289
289
|
}}
|
|
290
290
|
>
|
|
291
291
|
{data?.filter(
|
|
292
292
|
(lead: any) =>
|
|
293
|
-
lead
|
|
294
|
-
|
|
293
|
+
lead?.stage_id ===
|
|
294
|
+
sub_section?.id &&
|
|
295
|
+
lead?.lead_status_id ===
|
|
296
|
+
swim_lane?.id
|
|
295
297
|
)?.length || 0}
|
|
296
298
|
</Box>
|
|
297
299
|
<Typography
|
|
@@ -299,7 +301,7 @@ const Kanban = ({
|
|
|
299
301
|
color="#555354"
|
|
300
302
|
fontSize="12px"
|
|
301
303
|
>
|
|
302
|
-
{sub_section
|
|
304
|
+
{sub_section?.name}
|
|
303
305
|
</Typography>
|
|
304
306
|
</Box>
|
|
305
307
|
</AccordionSummary>
|
|
@@ -311,17 +313,18 @@ const Kanban = ({
|
|
|
311
313
|
const leadsForThisSubLane =
|
|
312
314
|
data?.filter(
|
|
313
315
|
(lead: any) =>
|
|
314
|
-
lead
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
lead?.stage_id ===
|
|
317
|
+
sub_section?.id &&
|
|
318
|
+
lead?.lead_status_id ==
|
|
319
|
+
swim_lane?.id &&
|
|
320
|
+
lead?.stage_group_id == lane?.id
|
|
318
321
|
) || [];
|
|
319
322
|
|
|
320
323
|
return leadsForThisSubLane.map(
|
|
321
324
|
(card: any) =>
|
|
322
325
|
(KanbanCardComponent && (
|
|
323
326
|
<KanbanCardComponent
|
|
324
|
-
key={card
|
|
327
|
+
key={card?.id}
|
|
325
328
|
cardData={card}
|
|
326
329
|
/>
|
|
327
330
|
)) ||
|
|
@@ -79,7 +79,7 @@ export function customDebounce<T extends (...args: any[]) => any>(
|
|
|
79
79
|
//ENTITY TYPE
|
|
80
80
|
const ENVIRONMENT = "crm_dev";
|
|
81
81
|
export const ENTITY_TYPE = "LEAD";
|
|
82
|
-
export const MAPPED_ENTITY_TYPE = "
|
|
82
|
+
export const MAPPED_ENTITY_TYPE = "LYPR"; // LAP OR LYPR
|
|
83
83
|
|
|
84
84
|
const environments = {
|
|
85
85
|
adm_dev: "http://localhost:4010/api",
|