@megha-ui/react 1.2.253 → 1.2.256
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.
|
@@ -615,15 +615,11 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
615
615
|
const flatArray = [];
|
|
616
616
|
if (groupedData) {
|
|
617
617
|
groupedData.forEach((group) => {
|
|
618
|
+
console.log({ flatArray });
|
|
618
619
|
const _groupedValues = [...groupedValues, group.value].map((item) => item ? item : "row");
|
|
619
|
-
|
|
620
|
-
// indicate the full set of keys for width/alignment purposes
|
|
621
|
-
const currentKeys = (group.allKeys
|
|
622
|
-
? group.allKeys
|
|
623
|
-
: [...parentKeys, group.key]).filter((item) => item);
|
|
620
|
+
const currentKeys = (group.allKeys ? group.allKeys : [...parentKeys, group.key]).filter((item) => item);
|
|
624
621
|
const groupedValue = _groupedValues.join(">");
|
|
625
622
|
const groupedKey = currentKeys.join(">");
|
|
626
|
-
console.log({ groupedValue, group });
|
|
627
623
|
if (group.values) {
|
|
628
624
|
flatArray.push({
|
|
629
625
|
type: "main",
|
|
@@ -692,10 +688,11 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
692
688
|
.split(",")
|
|
693
689
|
.map((s) => s.trim())
|
|
694
690
|
.filter((s) => s)
|
|
695
|
-
.map((s) => s
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
691
|
+
.map((s) => s
|
|
692
|
+
.split("+")
|
|
693
|
+
.map((k) => k.trim())
|
|
694
|
+
.filter((k) => k));
|
|
695
|
+
const groupedArray = sets.length ? groupBySets(sortedData, sets) : [];
|
|
699
696
|
const flatGroupedArray = flattenGroupedData(groupedArray, 1);
|
|
700
697
|
setGroupedData(flatGroupedArray);
|
|
701
698
|
const grouped = flatGroupedArray
|
package/package.json
CHANGED