@megha-ui/react 1.2.707 → 1.2.709
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.
|
@@ -384,8 +384,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
384
384
|
searchOp,
|
|
385
385
|
]);
|
|
386
386
|
const recalculate = (_summariseKeys) => {
|
|
387
|
-
const filteredData = paginate ? paginatedData : sortedData;
|
|
388
|
-
console.log({ filteredData });
|
|
387
|
+
const filteredData = (paginate && gridGroupBy === "") ? paginatedData : sortedData;
|
|
389
388
|
let newSummariseDetails = summariseDetails;
|
|
390
389
|
Object.keys(_summariseKeys).forEach((_columnKey) => {
|
|
391
390
|
const type = _summariseKeys[_columnKey];
|
|
@@ -398,7 +397,6 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
398
397
|
: [{ groupedKey: "", groupedValue: columnKey }];
|
|
399
398
|
_groupedKeys.forEach((grouped) => {
|
|
400
399
|
const { groupedKey, groupedValue } = grouped;
|
|
401
|
-
console.log({ groupedKey });
|
|
402
400
|
const filterValue = _groupedKeys.length > 1 ? groupedValue : "";
|
|
403
401
|
const filterSegments = filterValue
|
|
404
402
|
? filterValue
|
|
@@ -417,10 +415,8 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
417
415
|
.filter((v) => v);
|
|
418
416
|
if (!filterSegments.length)
|
|
419
417
|
return true;
|
|
420
|
-
console.log({ filterSegments, valueSegments, group });
|
|
421
418
|
return filterSegments.some((segment) => valueSegments.includes(segment));
|
|
422
419
|
};
|
|
423
|
-
console.log({ filterValue });
|
|
424
420
|
const filteredValues = filteredData
|
|
425
421
|
.filter((item) => {
|
|
426
422
|
return filterValue
|
|
@@ -439,7 +435,6 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
439
435
|
});
|
|
440
436
|
let value = "";
|
|
441
437
|
const column = gridColumns.find((item) => item.key === columnKey);
|
|
442
|
-
console.log({ filteredValues });
|
|
443
438
|
const nonEmptyValues = filteredValues
|
|
444
439
|
.filter((item) => item.toString() !== "")
|
|
445
440
|
.sort((a, b) => {
|
package/package.json
CHANGED