rez-table-listing-mui 1.2.15 → 1.2.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez-table-listing-mui",
3
- "version": "1.2.15",
3
+ "version": "1.2.16",
4
4
  "type": "module",
5
5
  "description": "A rez table listing component built on TanStack Table",
6
6
  "main": "dist/index.js",
@@ -6,7 +6,7 @@
6
6
  h3 {
7
7
  color: var(--grey-900);
8
8
  font-size: 2rem;
9
- font-family: "Satoshi", sans-serif;
9
+ font-family: "Satoshi";
10
10
  font-weight: 700;
11
11
  }
12
12
  }
@@ -10,8 +10,6 @@
10
10
  --grey-900: #414042;
11
11
  --filter-width: 24rem;
12
12
 
13
- font-family: "Satoshi", sans-serif;
14
-
15
13
  // set default styles for all elements
16
14
  & * {
17
15
  box-sizing: border-box;
@@ -119,17 +119,13 @@ const ColumnTab = ({ filterSettingStates, columnsData }: ColumnTabProps) => {
119
119
 
120
120
  if (showList || hideList) {
121
121
  const isValidShowList = showList?.length > 0;
122
- console.log("inside show list and hide list if", isValidShowList);
123
122
 
124
123
  if (!isValidShowList) {
125
- console.log("not a valid show list");
126
-
127
124
  const hasColumnError = saveButtonError.messages.some(
128
125
  (message) => message.type === ERROR_CODE
129
126
  );
130
127
 
131
128
  if (!hasColumnError) {
132
- console.log("inside if");
133
129
  setSaveButtonError((prev) => ({
134
130
  ...prev,
135
131
  hasError: true,
@@ -143,7 +139,6 @@ const ColumnTab = ({ filterSettingStates, columnsData }: ColumnTabProps) => {
143
139
  }));
144
140
  }
145
141
  } else {
146
- console.log("inside else");
147
142
  const hasOtherMessages = saveButtonError?.messages?.some(
148
143
  (message) => message.type !== ERROR_CODE
149
144
  );
@@ -58,8 +58,6 @@ const GroupBy = ({
58
58
  const stateToArray =
59
59
  (quickTabStates && Object.entries(quickTabStates)) || [];
60
60
  const isEmptyState = stateToArray.length ? false : true;
61
- console.log("columnsData", columnsData);
62
- console.log("first", columnsData.lanes.map((item: any) => item.name)[0]);
63
61
 
64
62
  if (isEmptyState) {
65
63
  setSettingsData((prev) => ({
@@ -160,7 +158,7 @@ const GroupBy = ({
160
158
  id,
161
159
  label: id?.charAt(0)?.toUpperCase() + id?.slice(1),
162
160
  }));
163
- const hideListValues = (quickTabStates?.hide_list || []).map((id: any) => ({
161
+ const hideListValues = (quickTabStates?.hide_list || [])?.map((id: any) => ({
164
162
  id,
165
163
  label: id?.charAt(0)?.toUpperCase() + id?.slice(1),
166
164
  }));
@@ -375,7 +373,7 @@ const GroupBy = ({
375
373
  return selected;
376
374
  }}
377
375
  >
378
- {LANE_SELECTS.map((lane: any) => (
376
+ {LANE_SELECTS?.map((lane: any) => (
379
377
  <MenuItem key={lane?.key} value={lane?.value}>
380
378
  {lane?.value}
381
379
  </MenuItem>
@@ -408,7 +406,7 @@ const GroupBy = ({
408
406
  return option?.label || selected;
409
407
  }}
410
408
  >
411
- {sortingOptions.map((option) => (
409
+ {sortingOptions?.map((option) => (
412
410
  <MenuItem key={option?.value} value={option?.value}>
413
411
  {option?.label}
414
412
  </MenuItem>
@@ -57,8 +57,6 @@ const Lane = ({
57
57
  const stateToArray =
58
58
  (quickTabStates && Object.entries(quickTabStates)) || [];
59
59
  const isEmptyState = stateToArray.length ? false : true;
60
- console.log("columnsData", columnsData);
61
- console.log("first", columnsData.lanes.map((item: any) => item.name)[0]);
62
60
 
63
61
  if (isEmptyState) {
64
62
  setSettingsData((prev) => ({
@@ -159,7 +157,7 @@ const Lane = ({
159
157
  id,
160
158
  label: id?.charAt(0)?.toUpperCase() + id?.slice(1),
161
159
  }));
162
- const hideListValues = (quickTabStates?.hide_list || []).map((id: any) => ({
160
+ const hideListValues = (quickTabStates?.hide_list || [])?.map((id: any) => ({
163
161
  id,
164
162
  label: id?.charAt(0)?.toUpperCase() + id?.slice(1),
165
163
  }));
@@ -374,7 +372,7 @@ const Lane = ({
374
372
  return selected;
375
373
  }}
376
374
  >
377
- {LANE_SELECTS.map((lane: any) => (
375
+ {LANE_SELECTS?.map((lane: any) => (
378
376
  <MenuItem key={lane?.key} value={lane?.value}>
379
377
  {lane?.value}
380
378
  </MenuItem>
@@ -68,8 +68,6 @@ const Sorting = ({
68
68
  sortby: emptySortBy,
69
69
  },
70
70
  }));
71
-
72
- console.log("sorting is empty");
73
71
  } else if (isEmptyDefault) {
74
72
  setSettingsData((prev) => ({
75
73
  ...prev,
@@ -19,7 +19,7 @@
19
19
  cursor: pointer;
20
20
  color: var(--grey-900);
21
21
  font-size: 0.875rem;
22
- font-family: "Satoshi", sans-serif;
22
+ font-family: "Satoshi";
23
23
  font-weight: 700;
24
24
 
25
25
  .tab__label {
@@ -270,7 +270,6 @@ export const useSaveSettingsDataAPI = (entity_type: string) => {
270
270
  },
271
271
  onError: (error: any) => {
272
272
  const msg = error?.response?.data?.message;
273
- console.log("Error in saving settings tab data", msg, error);
274
273
  },
275
274
  });
276
275