@megha-ui/react 1.2.252 → 1.2.255

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,12 +615,9 @@ 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
- // If composite grouping is used, the group may carry allKeys to
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
623
  if (group.values) {
@@ -691,10 +688,11 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
691
688
  .split(",")
692
689
  .map((s) => s.trim())
693
690
  .filter((s) => s)
694
- .map((s) => s.split("+").map((k) => k.trim()).filter((k) => k));
695
- const groupedArray = sets.length
696
- ? groupBySets(sortedData, sets)
697
- : [];
691
+ .map((s) => s
692
+ .split("+")
693
+ .map((k) => k.trim())
694
+ .filter((k) => k));
695
+ const groupedArray = sets.length ? groupBySets(sortedData, sets) : [];
698
696
  const flatGroupedArray = flattenGroupedData(groupedArray, 1);
699
697
  setGroupedData(flatGroupedArray);
700
698
  const grouped = flatGroupedArray
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.252",
3
+ "version": "1.2.255",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",