@one-paragon/angular-utilities 2.0.23 → 2.0.24
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.
|
@@ -3776,6 +3776,7 @@ const tbGroupBy = (data, groupByKeys, level = 1, parentGroupName) => {
|
|
|
3776
3776
|
const children = group.children;
|
|
3777
3777
|
const groupGroup = {
|
|
3778
3778
|
groupName: group.groupName,
|
|
3779
|
+
groupHeaderDisplay: group.groupHeaderDisplay,
|
|
3779
3780
|
uniqueName: group.uniqueName,
|
|
3780
3781
|
key: currentKey,
|
|
3781
3782
|
hasTheData: false,
|
|
@@ -3794,11 +3795,11 @@ const tbGroupBy = (data, groupByKeys, level = 1, parentGroupName) => {
|
|
|
3794
3795
|
};
|
|
3795
3796
|
function groupData(groupByKey, groupData, level = 1, parentGroupName) {
|
|
3796
3797
|
const groupedDataDict = supportsGroupBy ? Object.groupBy(groupData, d => d[groupByKey]) : groupBy(groupData, groupByKey);
|
|
3797
|
-
const groupedDataArr = Object.entries(groupedDataDict).map(([
|
|
3798
|
-
const uniqueName = parentGroupName ? `${parentGroupName}-${
|
|
3798
|
+
const groupedDataArr = Object.entries(groupedDataDict).map(([name, groupData]) => {
|
|
3799
|
+
const uniqueName = parentGroupName ? `${parentGroupName}-${name}` : `${name}`;
|
|
3799
3800
|
return {
|
|
3800
3801
|
isGroupHeader: true,
|
|
3801
|
-
groupHeaderDisplay:
|
|
3802
|
+
groupHeaderDisplay: name,
|
|
3802
3803
|
hasTheData: true,
|
|
3803
3804
|
children: groupData,
|
|
3804
3805
|
groupName: `tb_group_${uniqueName}`,
|