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/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/index.scss +1 -1
- package/src/listing/components/index.scss +0 -2
- package/src/listing/components/table-settings/components/column.tsx +0 -5
- package/src/listing/components/table-settings/components/group-by.tsx +3 -5
- package/src/listing/components/table-settings/components/lane.tsx +2 -4
- package/src/listing/components/table-settings/components/sorting.tsx +0 -2
- package/src/listing/components/tabs/index.scss +1 -1
- package/src/listing/libs/hooks/useEntityTableAPI.tsx +0 -1
package/package.json
CHANGED
|
@@ -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 || [])
|
|
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
|
|
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
|
|
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 || [])
|
|
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
|
|
375
|
+
{LANE_SELECTS?.map((lane: any) => (
|
|
378
376
|
<MenuItem key={lane?.key} value={lane?.value}>
|
|
379
377
|
{lane?.value}
|
|
380
378
|
</MenuItem>
|