@contrail/data-grouping 1.0.23 → 1.0.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -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);
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/data-grouping",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "Utilities and interfaces for grouping data into hierarchial data structures based on properties.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",