@one-paragon/angular-utilities 2.6.0 → 2.6.1
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.
|
@@ -4555,9 +4555,12 @@ let tbGroupBy = (data, groupByDatas, level = 1, metaData, parentGroupName) => {
|
|
|
4555
4555
|
const remainingGroupByDatas = groupByDatas.slice(1);
|
|
4556
4556
|
const hasChildrenGroups = !!remainingGroupByDatas.length;
|
|
4557
4557
|
if (hasChildrenGroups) {
|
|
4558
|
+
//update the group with children groups and related data
|
|
4558
4559
|
//group the children by iterating over each group and grouping it by the next keys
|
|
4559
4560
|
const groupOfGroups = groupedDataArr.map((group) => {
|
|
4560
4561
|
const children = group.children;
|
|
4562
|
+
const groups = tbGroupBy(children, remainingGroupByDatas, level + 1, metaData, group.groupName);
|
|
4563
|
+
groups.forEach(g => g.parent = group);
|
|
4561
4564
|
const groupGroup = {
|
|
4562
4565
|
groupName: group.groupName,
|
|
4563
4566
|
groupHeaderDisplay: group.groupHeaderDisplay,
|