rez-table-listing-mui 1.2.13 → 1.2.14

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.
Files changed (112) hide show
  1. package/dist/index.d.ts +116 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.mjs +1 -1
  5. package/dist/index.mjs.map +1 -1
  6. package/package.json +1 -1
  7. package/src/App.tsx +47 -405
  8. package/src/index.ts +10 -9
  9. package/src/kanban/components/LeadCard.tsx +130 -0
  10. package/src/kanban/constants/kanban-constants.ts +249 -0
  11. package/src/kanban/hooks/hooks.ts +16 -0
  12. package/src/kanban/index.tsx +331 -0
  13. package/src/kanban/services/service.ts +11 -0
  14. package/src/kanban/styles/styles.tsx +256 -0
  15. package/src/kanban/types/types.ts +132 -0
  16. package/src/{components → listing/components}/column-visibility-modal/column-list-item.tsx +1 -1
  17. package/src/{components → listing/components}/column-visibility-modal/index.tsx +1 -1
  18. package/src/{components → listing/components}/filter/components/forms/components/Filter-criteria.tsx +1 -1
  19. package/src/{components → listing/components}/filter/components/forms/index.tsx +1 -1
  20. package/src/{components → listing/components}/filter/components/saved-filter.tsx +2 -2
  21. package/src/{components → listing/components}/filter/components/search/index.tsx +1 -1
  22. package/src/{components → listing/components}/filter/components/tabs/index.tsx +1 -1
  23. package/src/{components → listing/components}/index-table.tsx +1 -1
  24. package/src/{components → listing/components}/pagination/default/index.tsx +1 -1
  25. package/src/{components → listing/components}/search/index.tsx +1 -1
  26. package/src/{components → listing/components}/sorting-modal.tsx/index.tsx +1 -1
  27. package/src/{components → listing/components}/sorting-modal.tsx/sorting-item.tsx +1 -1
  28. package/src/{components → listing/components}/table-change-layout.tsx +1 -1
  29. package/src/{components → listing/components}/table-head-dnd-cell.tsx +6 -6
  30. package/src/{components → listing/components}/table-head-pin.tsx +1 -1
  31. package/src/{components → listing/components}/table-head-popover.tsx +1 -1
  32. package/src/{components → listing/components}/table-head.tsx +6 -6
  33. package/src/{components → listing/components}/table-settings/common/listing-values.tsx +1 -1
  34. package/src/{components → listing/components}/table-settings/components/sorting.tsx +1 -1
  35. package/src/{components → listing/components}/tabs/index.tsx +1 -1
  36. package/src/{components → listing/components}/topbar/index.tsx +7 -7
  37. package/src/{components → listing/components}/viewmore/index.tsx +1 -1
  38. package/src/{libs → listing/libs}/hooks/useDefaultColumns.tsx +1 -0
  39. package/src/{libs → listing/libs}/utils/common.ts +1 -1
  40. package/src/view/KanbanView.tsx +16 -0
  41. package/src/view/ListingView.tsx +423 -0
  42. /package/src/{components → listing/components}/column-visibility-modal/index.scss +0 -0
  43. /package/src/{components → listing/components}/common/confirm-modal/index.tsx +0 -0
  44. /package/src/{components → listing/components}/common/index.scss +0 -0
  45. /package/src/{components → listing/components}/common/index.tsx +0 -0
  46. /package/src/{components → listing/components}/common/loader/loader.tsx +0 -0
  47. /package/src/{components → listing/components}/dropdown/index.scss +0 -0
  48. /package/src/{components → listing/components}/dropdown/index.tsx +0 -0
  49. /package/src/{components → listing/components}/filter/components/attributes-filter.tsx +0 -0
  50. /package/src/{components → listing/components}/filter/components/forms/components/Date.tsx +0 -0
  51. /package/src/{components → listing/components}/filter/components/forms/components/Dropdown.tsx +0 -0
  52. /package/src/{components → listing/components}/filter/components/forms/components/Multi-Select.tsx +0 -0
  53. /package/src/{components → listing/components}/filter/components/forms/components/Select.tsx +0 -0
  54. /package/src/{components → listing/components}/filter/components/forms/components/Textfield.tsx +0 -0
  55. /package/src/{components → listing/components}/filter/components/forms/components/styles.tsx +0 -0
  56. /package/src/{components → listing/components}/filter/components/main-filter.tsx +0 -0
  57. /package/src/{components → listing/components}/filter/components/saved-edit-filter.tsx +0 -0
  58. /package/src/{components → listing/components}/filter/components/tabs/custom-tab-panel.tsx +0 -0
  59. /package/src/{components → listing/components}/filter/index.tsx +0 -0
  60. /package/src/{components → listing/components}/filter/style.ts +0 -0
  61. /package/src/{components → listing/components}/index.scss +0 -0
  62. /package/src/{components → listing/components}/inputs/checkbox/index.tsx +0 -0
  63. /package/src/{components → listing/components}/inputs/index.scss +0 -0
  64. /package/src/{components → listing/components}/inputs/switch.tsx +0 -0
  65. /package/src/{components → listing/components}/login/index.tsx +0 -0
  66. /package/src/{components → listing/components}/nestedcomponent/index.scss +0 -0
  67. /package/src/{components → listing/components}/nestedcomponent/index.tsx +0 -0
  68. /package/src/{components → listing/components}/pagination/default/index.scss +0 -0
  69. /package/src/{components → listing/components}/search/style.ts +0 -0
  70. /package/src/{components → listing/components}/table-body-dnd-cell.tsx +0 -0
  71. /package/src/{components → listing/components}/table-body.tsx +0 -0
  72. /package/src/{components → listing/components}/table-dnd.tsx +0 -0
  73. /package/src/{components → listing/components}/table-settings/common/draggable-listitem.tsx +0 -0
  74. /package/src/{components → listing/components}/table-settings/common/info-alert.tsx +0 -0
  75. /package/src/{components → listing/components}/table-settings/components/column.tsx +0 -0
  76. /package/src/{components → listing/components}/table-settings/components/custom-button.tsx +0 -0
  77. /package/src/{components → listing/components}/table-settings/components/custom-dialog.tsx +0 -0
  78. /package/src/{components → listing/components}/table-settings/components/quick-tab.tsx +0 -0
  79. /package/src/{components → listing/components}/table-settings/components/toggle-button-switch.tsx +0 -0
  80. /package/src/{components → listing/components}/table-settings/constants.ts +0 -0
  81. /package/src/{components → listing/components}/table-settings/index.tsx +0 -0
  82. /package/src/{components → listing/components}/table-settings/style.ts +0 -0
  83. /package/src/{components → listing/components}/table-settings/tabs/horizontal/index.tsx +0 -0
  84. /package/src/{components → listing/components}/table-settings/tabs/styles.ts +0 -0
  85. /package/src/{components → listing/components}/table-settings/tabs/vertical/custom-tab-panel.tsx +0 -0
  86. /package/src/{components → listing/components}/table-settings/tabs/vertical/index.tsx +0 -0
  87. /package/src/{components → listing/components}/table.tsx +0 -0
  88. /package/src/{components → listing/components}/tabs/index.scss +0 -0
  89. /package/src/{components → listing/components}/tabs/styles.ts +0 -0
  90. /package/src/{components → listing/components}/topbar/index.scss +0 -0
  91. /package/src/{components → listing/components}/viewmore/index.scss +0 -0
  92. /package/src/{libs → listing/libs}/hooks/useCraftTable.tsx +0 -0
  93. /package/src/{libs → listing/libs}/hooks/useCraftTableFilterSettings.tsx +0 -0
  94. /package/src/{libs → listing/libs}/hooks/useElementWidth.tsx +0 -0
  95. /package/src/{libs → listing/libs}/hooks/useEntityTableAPI.tsx +0 -0
  96. /package/src/{libs → listing/libs}/hooks/useEntityTableHooks.ts +0 -0
  97. /package/src/{libs → listing/libs}/hooks/useFullScreen.tsx +0 -0
  98. /package/src/{libs → listing/libs}/hooks/useOutsideClick.tsx +0 -0
  99. /package/src/{libs → listing/libs}/utils/Data-format.ts +0 -0
  100. /package/src/{libs → listing/libs}/utils/amount-format.ts +0 -0
  101. /package/src/{libs → listing/libs}/utils/apiColumn.ts +0 -0
  102. /package/src/{libs → listing/libs}/utils/date-format.ts +0 -0
  103. /package/src/{libs → listing/libs}/utils/debounce.ts +0 -0
  104. /package/src/{libs → listing/libs}/utils/make-data.ts +0 -0
  105. /package/src/{libs → listing/libs}/utils/make-hierar-data.ts +0 -0
  106. /package/src/{libs → listing/libs}/utils/make-nested-data.ts +0 -0
  107. /package/src/{libs → listing/libs}/utils/rows-data.ts +0 -0
  108. /package/src/{types → listing/types}/common.ts +0 -0
  109. /package/src/{types → listing/types}/filter-settings.ts +0 -0
  110. /package/src/{types → listing/types}/filter.ts +0 -0
  111. /package/src/{types → listing/types}/table-options.ts +0 -0
  112. /package/src/{types → listing/types}/table.ts +0 -0
@@ -0,0 +1,256 @@
1
+ import { Theme } from "@emotion/react";
2
+ import { SxProps } from "@mui/material";
3
+
4
+ interface KanbanStyles {
5
+ syncingStyle: SxProps<Theme>;
6
+ topHeader: SxProps<Theme>;
7
+ laneHeader: SxProps<Theme>;
8
+ badge: SxProps<Theme>;
9
+ swimlaneWrapperStyle: SxProps<Theme>;
10
+ columnStyle: SxProps<Theme>;
11
+ stageStyle: SxProps<Theme>;
12
+ stageBadge: SxProps<Theme>;
13
+ cardContainer: SxProps<Theme>;
14
+ cardContent: SxProps<Theme>;
15
+ cardHeaderStyle: SxProps<Theme>;
16
+ cardAvatar: SxProps<Theme>;
17
+ statusStyle: SxProps<Theme>;
18
+ codeStyle: SxProps<Theme>;
19
+ nameIconContainer: SxProps<Theme>;
20
+ leadName: SxProps<Theme>;
21
+ iconStyle: SxProps<Theme>;
22
+ leadOwnerStyle: SxProps<Theme>;
23
+ calendarIcon: SxProps<Theme>;
24
+ dateStyle: SxProps<Theme>;
25
+ subSectionAccordion: SxProps<Theme>;
26
+ subSectionCountContainer: SxProps<Theme>;
27
+ cardsContainer: SxProps<Theme>;
28
+ settingStyle: SxProps<Theme>;
29
+ swimLaneAccordionStyle: SxProps<Theme>;
30
+ subSectionHeaderContainer: SxProps<Theme>;
31
+ }
32
+
33
+ export const kanbanStyles: KanbanStyles = {
34
+ syncingStyle: {
35
+ display: "flex",
36
+ flexDirection: "row",
37
+ gap: "8px",
38
+ width: "100%",
39
+ },
40
+ topHeader: {
41
+ display: "flex",
42
+ alignItems: "center",
43
+ gap: 1,
44
+ px: 1,
45
+ pt: 2,
46
+ bgcolor: "white",
47
+ width: "fit-content",
48
+ position: "sticky", // Add sticky positioning
49
+ top: 0, // Stick to the top of the viewport
50
+ right: 0,
51
+ zIndex: 1100, // Ensure it stays above other content
52
+ },
53
+ laneHeader: {
54
+ flex: 1, // Equal width distribution
55
+ minWidth: "263px",
56
+ maxWidth: "263px",
57
+ display: "flex",
58
+ fontWeight: 700,
59
+ fontSize: "16px",
60
+ borderRadius: "6px",
61
+ alignItems: "center",
62
+ justifyContent: "center",
63
+ py: "8px",
64
+ px: "12px",
65
+ position: "relative",
66
+ },
67
+ badge: {
68
+ position: "absolute",
69
+ top: "-12px",
70
+ left: "8px",
71
+ px: 1,
72
+ color: "white",
73
+ borderRadius: "8px",
74
+ },
75
+ swimlaneWrapperStyle: {
76
+ flexDirection: "row-reverse",
77
+ bgcolor: "white",
78
+ minHeight: 44, // overall height
79
+ px: 2,
80
+ py: 0, // remove vertical padding
81
+ "&.Mui-expanded": {
82
+ minHeight: 44,
83
+ },
84
+ "& .MuiAccordionSummary-content": {
85
+ margin: "8px 0", // reduced vertical spacing
86
+ display: "flex",
87
+ alignItems: "center",
88
+ justifyContent: "flex-start",
89
+ gap: 5,
90
+ "&.Mui-expanded": {
91
+ margin: "8px 0", // maintain same margin when expanded
92
+ },
93
+ },
94
+ "& .MuiAccordionSummary-expandIconWrapper": {
95
+ mr: 0, // reduce gap between icon and content
96
+ },
97
+ },
98
+ columnStyle: {
99
+ flex: 1, // Equal width distribution
100
+ p: "12px",
101
+ // px: "2px",
102
+ minHeight: "500px",
103
+ // borderRight: "1px solid #e0e0e0",
104
+
105
+ borderRadius: "6px",
106
+ minWidth: "263px",
107
+ maxWidth: "263px",
108
+ },
109
+ stageStyle: {
110
+ mb: 2,
111
+ bgcolor: "#f9fafb",
112
+ borderTopLeftRadius: "8px !important",
113
+ borderBottomLeftRadius: "8px !important",
114
+ borderTopRightRadius: "8px !important",
115
+ // borderRadius: 2,
116
+ overflow: "hidden",
117
+ boxShadow: "none",
118
+ "&:before": { display: "none" }, // remove default divider line
119
+ },
120
+ stageBadge: {
121
+ "& .MuiBadge-badge": {
122
+ color: "black",
123
+ fontWeight: "bold",
124
+ fontSize: "0.75rem",
125
+ },
126
+ },
127
+ cardContainer: {
128
+ borderRadius: 2,
129
+ bgcolor: "#fff",
130
+ position: "relative",
131
+
132
+ boxShadow:
133
+ "0px 1.36px 2.72px rgba(23, 23, 23, 0.06), 0px 2.72px 5.44px rgba(23, 23, 23, 0.1)",
134
+ border: "none", // explicitly remove border
135
+ },
136
+ cardContent: {
137
+ p: "12px !important",
138
+ display: "flex",
139
+ flexDirection: "column",
140
+ gap: "4px",
141
+ },
142
+ cardHeaderStyle: {
143
+ display: "flex",
144
+ justifyContent: "space-between",
145
+ alignItems: "flex-start",
146
+ // mb: 1,
147
+ },
148
+ cardAvatar: {
149
+ width: "18px",
150
+ height: "18px",
151
+ fontSize: "12px",
152
+ fontWeight: 600,
153
+ bgcolor: "#e5e7eb",
154
+ color: "#374151",
155
+ mr: 1,
156
+ },
157
+ statusStyle: {
158
+ height: 20,
159
+ fontSize: "0.6875rem",
160
+
161
+ fontWeight: 500,
162
+ },
163
+ codeStyle: {
164
+ fontSize: "12px",
165
+ color: "#6b7280",
166
+ fontWeight: 500,
167
+ mb: 0.5,
168
+ cursor: "pointer",
169
+ },
170
+ nameIconContainer: {
171
+ display: "flex",
172
+ justifyContent: "space-between",
173
+ alignItems: "flex-start",
174
+ borderBottom: "1px solid #e5e7eb",
175
+ pb: 2,
176
+ },
177
+ leadName: {
178
+ fontSize: "15px",
179
+ fontWeight: 500,
180
+ color: "#1f2937",
181
+ lineHeight: 1.3,
182
+ },
183
+ iconStyle: {
184
+ color: "#6b7280",
185
+ bgcolor: "#f3f4f6",
186
+ borderRadius: "50%",
187
+ width: "20px",
188
+ height: "20px",
189
+ p: 0.6,
190
+ },
191
+ leadOwnerStyle: {
192
+ fontSize: "12px",
193
+ color: "#374151",
194
+ fontWeight: 500,
195
+ },
196
+ calendarIcon: {
197
+ width: "14px",
198
+ height: "14px",
199
+ color: "#7b7a79",
200
+ mr: 0.5,
201
+ },
202
+ dateStyle: {
203
+ fontSize: "12px",
204
+ color: "#7b7a79",
205
+
206
+ fontWeight: 500,
207
+ },
208
+ subSectionAccordion: {
209
+ height: "52px", // fixed height
210
+ minHeight: "52px", // prevent auto-expansion
211
+ "&.Mui-expanded": {
212
+ minHeight: "52px", // fix expanded state height
213
+ height: "52px",
214
+ },
215
+ border: "1px solid #e2e8f0",
216
+ borderTopRightRadius: "8px",
217
+ px: 2,
218
+ },
219
+ subSectionCountContainer: {
220
+ // px: 1,
221
+ color: "white",
222
+ height: "26px",
223
+ width: "26px !important",
224
+ fontSize: "10px",
225
+ fontWeight: "bold",
226
+ display: "flex",
227
+ alignItems: "center",
228
+ justifyContent: "center",
229
+ borderRadius: "50%",
230
+ },
231
+ cardsContainer: {
232
+ px: 1,
233
+ gap: "12px",
234
+ display: "flex",
235
+ flexDirection: "column",
236
+ p: "8px",
237
+ },
238
+ settingStyle: {
239
+ bgcolor: "#f8fafc",
240
+ width: "56px",
241
+ height: "41px",
242
+ borderRadius: "6px",
243
+ border: "1px solid #e2e8f0",
244
+ },
245
+ swimLaneAccordionStyle: {
246
+ mb: 1,
247
+ "&:before": { display: "none" },
248
+ py: 0,
249
+ boxShadow: "none",
250
+ },
251
+ subSectionHeaderContainer: {
252
+ display: "flex",
253
+ alignItems: "center",
254
+ gap: "8px",
255
+ },
256
+ };
@@ -0,0 +1,132 @@
1
+ export interface LeadCardProps {
2
+ key: string | number;
3
+ lead: LeadData;
4
+ }
5
+
6
+ export interface LeadData {
7
+ id: string | number;
8
+ entity_type: string;
9
+ name: string | null;
10
+ status: string;
11
+ parent_type: string | null;
12
+ parent_id: string | null;
13
+ primary_email: string | null;
14
+ primary_mobile: string | null;
15
+ code: string;
16
+ created_by: string;
17
+ created_date: string;
18
+ modified_by: string | null;
19
+ modified_date: string | null;
20
+ enterprise_id: number;
21
+ organization_id: number;
22
+ appcode: string | null;
23
+ level_id: string;
24
+ level_type: string;
25
+ campus: string | null;
26
+ first_name: string | null;
27
+ last_name: string | null;
28
+ relationship_student: string | null;
29
+ phone_number: string | null;
30
+ email: string | null;
31
+ pin_code: string | null;
32
+ first_name_std: string | null;
33
+ last_name_std: string | null;
34
+ gender: string | null;
35
+ academic_year: string | null;
36
+ curr_grade: string | null;
37
+ source: string | null;
38
+ stage: string | null;
39
+ lead_owner: string | null;
40
+ lead_owner_name: string | null;
41
+ profile: {
42
+ signedUrl: string;
43
+ fileName: string;
44
+ id: string | number;
45
+ };
46
+ lead_source: string | null;
47
+ school_code: string | null;
48
+ source_details: string | null;
49
+ lead_status: string;
50
+ assigned_counselor: string | null;
51
+ lead_priority: string | null;
52
+ lead_score: string | null;
53
+ conversion_probability: string | null;
54
+ expected_admission_year: string | null;
55
+ budget_range: string | null;
56
+ enrollment_timeline: string | null;
57
+ lead_temperature: string | null;
58
+ utm_source: string | null;
59
+ student_first_name: string;
60
+ student_middle_name: string;
61
+ student_last_name: string;
62
+ student_gender: string;
63
+ student_age: string | null;
64
+ current_grade: string;
65
+ admission_grade: string;
66
+ current_school: string | null;
67
+ number_input: string | null;
68
+ current_board: string | null;
69
+ special_needs: string | null;
70
+ special_needs_details: string | null;
71
+ previous_school_reason: string | null;
72
+ academic_performance: string | null;
73
+ interested_academic_year: string | null;
74
+ father_salutation: string | null;
75
+ father_first_name: string | null;
76
+ father_last_name: string | null;
77
+ father_mobile: string | null;
78
+ father_email: string | null;
79
+ father_qualification: string | null;
80
+ father_occupation: string | null;
81
+ father_designation: string | null;
82
+ father_company: string | null;
83
+ father_annual_income: string | null;
84
+ father_office_address: string | null;
85
+ mother_salutation: string | null;
86
+ mother_first_name: string | null;
87
+ mother_last_name: string | null;
88
+ mother_email: string | null;
89
+ mother_mobile: string | null;
90
+ mother_qualification: string | null;
91
+ mother_designation: string | null;
92
+ mother_company: string | null;
93
+ mother_annual_income: string | null;
94
+ mother_office_address: string | null;
95
+ mother_occupation: string | null;
96
+ how_did_you_hear: string | null;
97
+ specific_requirements: string | null;
98
+ parent_questions: string | null;
99
+ special_requirements: string | null;
100
+ comments: string | null;
101
+ lead_reasons: string | null;
102
+ referral_source: string | null;
103
+ campaign_code: string | null;
104
+ DOB: string | null;
105
+ date: string | null;
106
+ enquiry_date: string;
107
+ student_dob: string | null;
108
+ date_input: string | null;
109
+ sub_lane_id: number;
110
+ }
111
+
112
+ export interface Lane {
113
+ id: string;
114
+ name: string;
115
+ color: string | null;
116
+ darkColor: string | null;
117
+ }
118
+
119
+ export interface SwimLane {
120
+ id: string;
121
+ name: string;
122
+ sub_lanes: SubLane[];
123
+ count: number | string;
124
+ }
125
+
126
+ export interface SubLane {
127
+ id: number;
128
+ name: string;
129
+ color: string;
130
+ lane_id: number | string;
131
+ expanded: boolean;
132
+ }
@@ -4,7 +4,7 @@ import {
4
4
  DragandDrogIcon,
5
5
  VisibilityIcon,
6
6
  VisibilityOffIcon,
7
- } from "../../assets/svg";
7
+ } from "../../../assets/svg";
8
8
  import { CSS } from "@dnd-kit/utilities";
9
9
  import { camelCaseToTitle } from "../../types/common";
10
10
 
@@ -18,7 +18,7 @@ import { Popover, IconButton, Typography, Box } from "@mui/material";
18
18
  import { Table } from "@tanstack/react-table";
19
19
  import DraggableColumn from "./column-list-item";
20
20
  import "./index.scss";
21
- import { CloseIcon } from "../../assets/svg";
21
+ import { CloseIcon } from "../../../assets/svg";
22
22
 
23
23
  interface ColumnToggleProps<T> {
24
24
  anchorEl: HTMLElement | null;
@@ -8,7 +8,7 @@ import {
8
8
  ListItemText,
9
9
  } from "@mui/material";
10
10
  import { useRef } from "react";
11
- import { AddIcon } from "../../../../../assets/svg";
11
+ import { AddIcon } from "../../../../../../assets/svg";
12
12
  import {
13
13
  FilterColumnsDataProps,
14
14
  FilterColumnsListProps,
@@ -6,7 +6,7 @@ import {
6
6
  TextField,
7
7
  Typography,
8
8
  } from "@mui/material";
9
- import { CloseIcon, DeleteIcon } from "../../../../assets/svg";
9
+ import { CloseIcon, DeleteIcon } from "../../../../../assets/svg";
10
10
  import {
11
11
  FilterColumnsDataProps,
12
12
  FilterDropdownDataProps,
@@ -13,10 +13,10 @@ import {
13
13
  Typography,
14
14
  } from "@mui/material";
15
15
  import CustomSearch from "./search";
16
- import { DeleteIcon, EditIcon } from "../../../assets/svg";
16
+ import { DeleteIcon, EditIcon } from "../../../../assets/svg";
17
17
  import SavedFilterEditComponent from "./saved-edit-filter";
18
18
  import { filterStyles } from "../style";
19
- import { CheckBox } from "../../../assets/svg";
19
+ import { CheckBox } from "../../../../assets/svg";
20
20
 
21
21
  const SavedFilter = ({
22
22
  columnsData,
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from "react";
2
2
  import { TextField, InputAdornment, IconButton } from "@mui/material";
3
3
  import SearchIcon from "@mui/icons-material/Search";
4
- import { CloseIcon } from "../../../../assets/svg";
4
+ import { CloseIcon } from "../../../../../assets/svg";
5
5
 
6
6
  interface SearchInputProps {
7
7
  value: string;
@@ -1,6 +1,6 @@
1
1
  import { useState } from "react";
2
2
  import { Tabs, Tab, TabsProps, Box } from "@mui/material";
3
- import { CheckBox, CrossBox } from "../../../../assets/svg";
3
+ import { CheckBox, CrossBox } from "../../../../../assets/svg";
4
4
 
5
5
  export interface TabItem {
6
6
  label: string;
@@ -15,7 +15,7 @@ import {
15
15
  TopbarOptionsProps,
16
16
  } from "../types/table";
17
17
  import { CraftTableFeatureProps } from "../types/table-options";
18
- import { LoaderAnimation } from "../assets/svg";
18
+ import { LoaderAnimation } from "../../assets/svg";
19
19
  import Topbar from "./topbar";
20
20
  import DefaultPagination from "./pagination/default";
21
21
  import TableDND from "./table-dnd";
@@ -4,7 +4,7 @@ import {
4
4
  TableLastPageIcon,
5
5
  // TableNextPageIcon,
6
6
  // TablePreviousPageIcon,
7
- } from "../../../assets/svg";
7
+ } from "../../../../assets/svg";
8
8
  import TablePreviousPageIcon from "@mui/icons-material/NavigateBeforeRounded";
9
9
  import TableNextPageIcon from "@mui/icons-material/NavigateNextRounded";
10
10
  import "./index.scss";
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useRef, useEffect, useCallback } from "react";
2
- import { SearchIcon } from "../../assets/svg";
2
+ import { SearchIcon } from "../../../assets/svg";
3
3
  import useOutsideClick from "../../libs/hooks/useOutsideClick";
4
4
  import { customDebounce } from "../../libs/utils/debounce";
5
5
  import { Box, IconButton, InputAdornment, TextField } from "@mui/material";
@@ -23,7 +23,7 @@ import {
23
23
  verticalListSortingStrategy,
24
24
  } from "@dnd-kit/sortable";
25
25
  import SortableItem from "./sorting-item";
26
- import { AddIcon, CloseIcon } from "../../assets/svg";
26
+ import { AddIcon, CloseIcon } from "../../../assets/svg";
27
27
 
28
28
  interface SortItem {
29
29
  id: string;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { useSortable } from "@dnd-kit/sortable";
3
3
  import { CSS } from "@dnd-kit/utilities";
4
- import { DragHandleIcon } from "../../assets/svg";
4
+ import { DragHandleIcon } from "../../../assets/svg";
5
5
 
6
6
  const SortableItem = ({
7
7
  id,
@@ -7,7 +7,7 @@ import {
7
7
  ListIcon,
8
8
  TableIcon,
9
9
  TimeLineIcon,
10
- } from "../assets/svg";
10
+ } from "../../assets/svg";
11
11
  import { Box, Typography, ButtonBase, Grid, IconButton } from "@mui/material";
12
12
 
13
13
  interface LayoutSelectorProps {
@@ -2,7 +2,7 @@ import { flexRender } from "@tanstack/react-table";
2
2
  import { useSortable } from "@dnd-kit/sortable";
3
3
  import { CSSProperties, useState } from "react";
4
4
  import { CSS } from "@dnd-kit/utilities";
5
- import { DownArrow, DragHandleIcon, UpArrow } from "../assets/svg";
5
+ import { DownArrow, DragHandleIcon, UpArrow } from "../../assets/svg";
6
6
  import {
7
7
  getColumnAlignment,
8
8
  getColumnPinningStyles,
@@ -52,11 +52,11 @@ function DraggableTableHeader<T>({
52
52
  style?: CSSProperties;
53
53
  } = {
54
54
  className: "ts__content",
55
- // style: {
56
- // justifyContent: getColumnAlignment(
57
- // (header?.column?.columnDef?.meta as align)?.align
58
- // ),
59
- // },
55
+ style: {
56
+ justifyContent: getColumnAlignment(
57
+ (header?.column?.columnDef?.meta as align)?.align
58
+ ),
59
+ },
60
60
  };
61
61
 
62
62
  // if (header.column.getCanSort()) {
@@ -1,4 +1,4 @@
1
- import { IconPinOffOutline } from "../assets/svg";
1
+ import { IconPinOffOutline } from "../../assets/svg";
2
2
  import { TableHeaderProps } from "../types/table";
3
3
 
4
4
  function TableHeadPin<T>({ header }: TableHeaderProps<T>) {
@@ -13,7 +13,7 @@ import {
13
13
  HideIcon,
14
14
  IconPinOffOutline,
15
15
  IconPinOutline,
16
- } from "../assets/svg";
16
+ } from "../../assets/svg";
17
17
  import { CraftTableOptionsProps } from "../types/table-options";
18
18
 
19
19
  type Props<T> = {
@@ -3,7 +3,7 @@ import {
3
3
  CraftTableFeatureProps,
4
4
  CraftTableOptionsProps,
5
5
  } from "../types/table-options";
6
- import { DownArrow, UpArrow } from "../assets/svg";
6
+ import { DownArrow, UpArrow } from "../../assets/svg";
7
7
  import { CSSProperties, useState } from "react";
8
8
  import {
9
9
  getColumnAlignment,
@@ -75,11 +75,11 @@ function TableHead<T>({
75
75
  style?: CSSProperties;
76
76
  } = {
77
77
  className: "ts__content",
78
- // style: {
79
- // justifyContent: getColumnAlignment(
80
- // (header?.column?.columnDef?.meta as align)?.align
81
- // ),
82
- // },
78
+ style: {
79
+ justifyContent: getColumnAlignment(
80
+ (header?.column?.columnDef?.meta as align)?.align
81
+ ),
82
+ },
83
83
  };
84
84
 
85
85
  // if (header.column.getCanSort()) {
@@ -15,7 +15,7 @@ import { useDroppable } from "@dnd-kit/core";
15
15
  import DraggableListItem from "./draggable-listitem.tsx";
16
16
  import { listingValuesStyles } from "../style.ts";
17
17
  import Loader from "../../common/loader/loader.tsx";
18
- import { ClosedEyeIcon, EyeIcon } from "../../../assets/svg.tsx";
18
+ import { ClosedEyeIcon, EyeIcon } from "../../../../assets/svg.tsx";
19
19
  import InfoAlert from "./info-alert.tsx";
20
20
  import React from "react";
21
21
  ``;
@@ -28,7 +28,7 @@ import {
28
28
  SortableContext,
29
29
  verticalListSortingStrategy,
30
30
  } from "@dnd-kit/sortable";
31
- import { AddIcon, CloseIcon } from "../../../assets/svg";
31
+ import { AddIcon, CloseIcon } from "../../../../assets/svg";
32
32
 
33
33
  const Sorting = ({
34
34
  filterSettingStates,
@@ -5,7 +5,7 @@ import SettingsOutlinedIcon from "@mui/icons-material/SettingsOutlined";
5
5
  import { settingsOptionsProps } from "../../types/table";
6
6
  import { tableTabsStyles } from "./styles";
7
7
  import { useMemo } from "react";
8
- import { SettingIcon } from "../../assets/svg";
8
+ import { SettingIcon } from "../../../assets/svg";
9
9
 
10
10
  interface TabDataProps {
11
11
  tab_value: string | null;
@@ -4,16 +4,16 @@ import {
4
4
  SortingIcon,
5
5
  FilterationIcon,
6
6
  HideColumnIcon,
7
- } from "../../assets/svg";
7
+ } from "../../../assets/svg.tsx";
8
8
  import { Popover } from "@mui/material";
9
- import LayoutSelector from "../table-change-layout";
10
- import useOutsideClick from "../../libs/hooks/useOutsideClick";
9
+ import LayoutSelector from "../table-change-layout.tsx";
10
+ import useOutsideClick from "../../libs/hooks/useOutsideClick.tsx";
11
11
  import { Table } from "@tanstack/react-table";
12
- import { TopbarOptionsProps } from "../../types/table";
12
+ import { TopbarOptionsProps } from "../../types/table.ts";
13
13
  import "./index.scss";
14
- import ViewMore from "../viewmore";
15
- import { useFullscreenPopoverContainer } from "../../libs/hooks/useFullScreen";
16
- import SortPopover from "../sorting-modal.tsx";
14
+ import ViewMore from "../viewmore/index.tsx";
15
+ import { useFullscreenPopoverContainer } from "../../libs/hooks/useFullScreen.tsx";
16
+ import SortPopover from "../sorting-modal.tsx/index.tsx";
17
17
  import ColumnToggle from "../column-visibility-modal/index.tsx";
18
18
  import { CraftTableOptionsProps } from "../../types/table-options.ts";
19
19
  import { TableSearch } from "../search/index.tsx";
@@ -8,7 +8,7 @@ import {
8
8
  IconButton,
9
9
  Switch as MUISwitch,
10
10
  } from "@mui/material";
11
- import { CloseIcon, ViewMoreIcon } from "../../assets/svg";
11
+ import { CloseIcon, ViewMoreIcon } from "../../../assets/svg";
12
12
  import { useFullscreenPopoverContainer } from "../../libs/hooks/useFullScreen";
13
13
  import { CraftTableOptionsProps } from "../../types/table-options";
14
14
 
@@ -97,6 +97,7 @@ export const useDefaultColumns = () => {
97
97
  label: "Status",
98
98
  type: "custom",
99
99
  propName: "renderStatus",
100
+ align: "right",
100
101
  },
101
102
  },
102
103
  {
@@ -77,7 +77,7 @@ export function customDebounce<T extends (...args: any[]) => any>(
77
77
  }
78
78
 
79
79
  //ENTITY TYPE
80
- const ENVIRONMENT = "uat";
80
+ const ENVIRONMENT = "crm_dev";
81
81
  export const ENTITY_TYPE = "UPR";
82
82
 
83
83
  const environments = {