@contrail/data-grouping 1.0.23 → 1.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.
@@ -75,6 +75,9 @@ class DataGroupGenerator {
|
|
75
75
|
propertyValues: {},
|
76
76
|
name: ''
|
77
77
|
};
|
78
|
+
if (groupingProperty.isSecondaryGroup) {
|
79
|
+
group.isSecondaryGroup = true;
|
80
|
+
}
|
78
81
|
if (groupData.length > 0) {
|
79
82
|
const details = groupData[0];
|
80
83
|
group.propertyValues = Object.assign({}, details);
|
package/lib/interfaces.d.ts
CHANGED
@@ -9,6 +9,7 @@ export interface DataGroup {
|
|
9
9
|
[key: string]: any;
|
10
10
|
};
|
11
11
|
data: Array<any>;
|
12
|
+
isSecondaryGroup?: boolean;
|
12
13
|
}
|
13
14
|
export interface DataGroupStructure {
|
14
15
|
rootGroup: DataGroup;
|
@@ -26,4 +27,5 @@ export interface DataGroupingProperty {
|
|
26
27
|
values?: Array<string>;
|
27
28
|
typeRootSlug: string;
|
28
29
|
sort: string;
|
30
|
+
isSecondaryGroup?: boolean;
|
29
31
|
}
|
package/package.json
CHANGED