@contrail/document-generation 1.0.22 → 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.
@@ -62,6 +62,11 @@ function run() {
62
62
  propertyDefinition: itemType.typeProperties.find(p => p.slug === 'baseStyleNumber'),
63
63
  typeRootSlug: 'item',
64
64
  slug: "baseStyleNumber",
65
+ }, {
66
+ propertyDefinition: projectItemType.typeProperties.find(p => p.slug === 'colorwayStatus'),
67
+ slug: "colorwayStatus",
68
+ typeRootSlug: 'project-item',
69
+ includeLabel: true,
65
70
  }]
66
71
  };
67
72
  const PANEL_PROPERTY_TEMPLATE = {
@@ -168,13 +173,13 @@ function run() {
168
173
  };
169
174
  const groupingProperties = [
170
175
  {
171
- property: itemType.typeProperties.find(p => p.slug === 'category'),
172
- scope: 'item',
176
+ propertyDefinition: itemType.typeProperties.find(p => p.slug === 'category'),
177
+ typeRootSlug: 'item',
173
178
  sort: sdk_1.SortOrderOptions.ASC,
174
179
  values: null,
175
180
  }, {
176
- property: itemType.typeProperties.find(p => p.slug === 'name'),
177
- scope: 'item',
181
+ propertyDefinition: itemType.typeProperties.find(p => p.slug === 'name'),
182
+ typeRootSlug: 'item',
178
183
  sort: sdk_1.SortOrderOptions.ASC,
179
184
  values: null,
180
185
  },
package/lib/test-data.js CHANGED
@@ -55,13 +55,13 @@ exports.TEST_GROUP_2 = {
55
55
  exports.TEST_ROOT_GROUP = {
56
56
  depth: 1,
57
57
  groupingProperties: [{
58
- property: {
58
+ propertyDefinition: {
59
59
  slug: 'gender',
60
60
  propertyType: types_1.PropertyType.SingleSelect,
61
61
  label: "Gender",
62
62
  },
63
63
  sort: sdk_1.SortOrderOptions.ASC,
64
- scope: 'item',
64
+ typeRootSlug: 'item',
65
65
  values: null,
66
66
  }],
67
67
  rootGroup: {
@@ -74,13 +74,13 @@ exports.TEST_ROOT_GROUP = {
74
74
  exports.TEST_TWO_LEVEL_ROOT_GROUP = {
75
75
  depth: 2,
76
76
  groupingProperties: [{
77
- property: {
77
+ propertyDefinition: {
78
78
  slug: 'gender',
79
79
  propertyType: types_1.PropertyType.SingleSelect,
80
80
  label: "Gender",
81
81
  },
82
82
  sort: sdk_1.SortOrderOptions.ASC,
83
- scope: 'item',
83
+ typeRootSlug: 'item',
84
84
  values: null,
85
85
  }],
86
86
  rootGroup: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/document-generation",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "Utilities for automatic generation of documents.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "testEnvironment": "node"
43
43
  },
44
44
  "dependencies": {
45
- "@contrail/data-grouping": "^1.0.18",
45
+ "@contrail/data-grouping": "^1.0.20",
46
46
  "@contrail/documents": "^1.0.44",
47
47
  "@contrail/types": "^3.0.27",
48
48
  "@contrail/util": "^1.0.27"