@contrail/document-generation 2.0.45 → 2.0.46
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.
|
@@ -134,7 +134,7 @@ class BoardDocumentGenerator {
|
|
|
134
134
|
static findDeepestSubgroups(group, subgroups, totalDepth, currentDepth, stopAtSecondary) {
|
|
135
135
|
if (currentDepth === totalDepth && group.subGroups.length > 0) {
|
|
136
136
|
if (!group.isSecondaryGroup &&
|
|
137
|
-
group.subGroups.filter(subgroup => subgroup.name === group.subGroups[0].name).length > 1) {
|
|
137
|
+
group.subGroups.filter((subgroup) => subgroup.name === group.subGroups[0].name).length > 1) {
|
|
138
138
|
subgroups.push(group.subGroups[0]);
|
|
139
139
|
}
|
|
140
140
|
else {
|
|
@@ -50,10 +50,8 @@ class DocumentPropertyUtil {
|
|
|
50
50
|
}
|
|
51
51
|
static generatePropertyTextElement(model, property, options, formatter, position, isComponent = false) {
|
|
52
52
|
var _a;
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
const modelKey = `${rootSlug}.${slug}`;
|
|
56
|
-
const value = util_1.ObjectUtil.getBySlugs(model, rootSlug, slug);
|
|
53
|
+
const modelKey = `${util_1.StringUtil.convertToCamelCase(property.typeRootSlug)}.${property.propertyDefinition.slug}`;
|
|
54
|
+
const value = util_1.ObjectUtil.getByPath(model, modelKey);
|
|
57
55
|
let display = formatter.formatValueForProperty(value, property.propertyDefinition);
|
|
58
56
|
if (!isComponent) {
|
|
59
57
|
const height = text_util_1.TextUtil.getHeightByTextWidth(display, property, options.size.width);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrail/document-generation",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.46",
|
|
4
4
|
"description": "Utilities for automatic generation of documents.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"@contrail/data-grouping": "^1.0.24",
|
|
46
46
|
"@contrail/documents": "^1.0.103",
|
|
47
47
|
"@contrail/types": "^3.0.27",
|
|
48
|
-
"@contrail/util": "^1.0.
|
|
48
|
+
"@contrail/util": "^1.0.63"
|
|
49
49
|
}
|
|
50
50
|
}
|