@contrail/document-generation 2.1.27 → 2.1.28

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.
@@ -10,6 +10,9 @@ class ComponentGridGenerator {
10
10
  console.warn('WARN: data null in generateComponentGrid');
11
11
  return [];
12
12
  }
13
+ if (data.length === 0) {
14
+ return [];
15
+ }
13
16
  if (!template) {
14
17
  console.warn('WARN: template null in generateComponentGrid');
15
18
  return [];
@@ -72,7 +72,7 @@ class DocumentPropertyUtil {
72
72
  const isColorObjectReference = Boolean(property.propertyDefinition.propertyType === types_1.PropertyType.ObjectReference &&
73
73
  property.propertyDefinition.referencedTypeRootSlug === 'color');
74
74
  if (isComponent && isColorObjectReference) {
75
- documents_1.DocumentElementPropertyBindingHandler.setBackgroundColorBindings(element);
75
+ documents_1.DocumentElementPropertyBindingHandler.clearOrSetColorBindingsOnStyleChange(element, element);
76
76
  delete element.propertyBindings.text;
77
77
  documents_1.DocumentElementPropertyBindingHandler.bindPropertiesToElement(element, model);
78
78
  element.propertyBindings['text'] = modelKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/document-generation",
3
- "version": "2.1.27",
3
+ "version": "2.1.28",
4
4
  "description": "Utilities for automatic generation of documents.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -43,9 +43,9 @@
43
43
  "testEnvironment": "node"
44
44
  },
45
45
  "dependencies": {
46
- "@contrail/data-grouping": "^1.0.24",
46
+ "@contrail/data-grouping": "^1.0.48",
47
47
  "@contrail/document-table": "^1.0.4",
48
- "@contrail/documents": "^1.3.0",
48
+ "@contrail/documents": "^1.2.8",
49
49
  "@contrail/types": "^3.0.95",
50
50
  "@contrail/util": "^1.1.0"
51
51
  }