camunda-bpmn-js 0.11.1 → 0.11.5

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.
@@ -20,13 +20,20 @@ export default function UpdateInputOutputBehavior(eventBus, modeling) {
20
20
  'properties-panel.update-businessobject-list'
21
21
  ], function(context) {
22
22
  const {
23
- element
23
+ element,
24
+ oldProperties,
25
+ propertyName
24
26
  } = context;
25
27
 
26
28
  const businessObject = getBusinessObject(element);
27
29
  const inputOutput = getInputOutput(businessObject);
28
30
  const extensionElements = businessObject.get('extensionElements');
29
31
 
32
+ // do not apply if inputOutput got recently added
33
+ if (!oldProperties && propertyName === 'values') {
34
+ return;
35
+ }
36
+
30
37
  // remove camunda:inputOutput if there are no input/output parameters anymore
31
38
  if (inputOutput && isEmpty(inputOutput)) {
32
39
  const filtered = extensionElements.values.filter(function(element) {
@@ -20,6 +20,12 @@ export default class UserTaskFormsBehavior extends CommandInterceptor {
20
20
  ], function(context) {
21
21
  const { properties } = context;
22
22
 
23
+ const businessObject = (
24
+ context.moddleElement ||
25
+ context.businessObject ||
26
+ context.element.businessObject
27
+ );
28
+
23
29
  if ('camunda:formKey' in properties) {
24
30
  Object.assign(properties, {
25
31
  'camunda:formRef': undefined,
@@ -37,6 +43,12 @@ export default class UserTaskFormsBehavior extends CommandInterceptor {
37
43
  'camunda:formRefVersion': undefined
38
44
  });
39
45
  }
46
+
47
+ if (!('camunda:formRefBinding' in properties) && isUndefined(businessObject.get('camunda:formRefBinding'))) {
48
+ Object.assign(properties, {
49
+ 'camunda:formRefBinding': 'latest'
50
+ });
51
+ }
40
52
  }
41
53
 
42
54
  if ('camunda:formRefBinding' in properties && properties[ 'camunda:formRefBinding' ] !== 'version') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camunda-bpmn-js",
3
- "version": "0.11.1",
3
+ "version": "0.11.5",
4
4
  "description": "Embeddable Camunda modeling distributions based on bpmn-js",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -40,13 +40,13 @@
40
40
  "license": "MIT",
41
41
  "dependencies": {
42
42
  "@bpmn-io/align-to-origin": "^0.7.0",
43
- "bpmn-js": "^8.7.3",
43
+ "bpmn-js": "^8.8.2",
44
44
  "bpmn-js-disable-collapsed-subprocess": "^0.1.3",
45
45
  "bpmn-js-executable-fix": "^0.1.3",
46
- "bpmn-js-properties-panel": "^0.45.0",
46
+ "bpmn-js-properties-panel": "^0.46.0",
47
47
  "bpmn-js-signavio-compat": "^1.2.3",
48
- "camunda-bpmn-moddle": "^6.1.0",
49
- "diagram-js": "^7.3.0",
48
+ "camunda-bpmn-moddle": "^6.1.1",
49
+ "diagram-js": "^7.5.0",
50
50
  "diagram-js-minimap": "^2.0.4",
51
51
  "diagram-js-origin": "^1.3.2",
52
52
  "inherits": "^2.0.4",