bpmn-js 9.0.3 → 9.0.4

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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,15 @@ All notable changes to [bpmn-js](https://github.com/bpmn-io/bpmn-js) are documen
7
7
 
8
8
  ___Note:__ Yet to be released changes appear here._
9
9
 
10
+ ## 9.0.4
11
+
12
+ * `FIX`: remove `label` property on empty label ([#1637](https://github.com/bpmn-io/bpmn-js/issues/1637))
13
+ * `FIX`: create drilldown overlays on `viewer.open` ([`574a67438`](https://github.com/bpmn-io/bpmn-js/commit/574a674381d6449b509396b6d17c4ca94674ea1c))
14
+ * `FIX`: render data association inside collapsed sub-processes ([#1619](https://github.com/bpmn-io/bpmn-js/issues/1619))
15
+ * `FIX`: preserve multi-instance properties when toggling between parallel and sequential ([#1581](https://github.com/bpmn-io/bpmn-js/issues/1581))
16
+ * `FIX`: correct hanging sequence flow label after collapsing sub-process ([#1617](https://github.com/bpmn-io/bpmn-js/issues/1617))
17
+ * `FIX`: correct start event not added to newly created sub-process ([#1631](https://github.com/bpmn-io/bpmn-js/issues/1631))
18
+
10
19
  ## 9.0.3
11
20
 
12
21
  * `FIX`: submit direct editing result on drilldown ([#1609](https://github.com/bpmn-io/bpmn-js/issues/1609))
@@ -23,20 +32,19 @@ ___Note:__ Yet to be released changes appear here._
23
32
  * `FIX`: support DIs without associated business object ([#1605](https://github.com/bpmn-io/bpmn-js/pull/1605))
24
33
  * `DEPS`: bump to `diagram-js@8.1.2` ([bdf9cf3](https://github.com/bpmn-io/bpmn-js/commit/bdf9cf3e752254a4c8172031d8a493955a9fca9c))
25
34
 
26
-
27
35
  ## 9.0.0
28
36
 
29
37
  * `FEAT`: support drilldown and modeling of collapsed subprocesses ([#1443](https://github.com/bpmn-io/bpmn-js/issues/1443))
30
38
  * `FEAT`: update embedded label bounds when shape is moved ([#1586](https://github.com/bpmn-io/bpmn-js/pull/1586))
31
39
  * `FIX`: create di for embedded labels ([#1579](https://github.com/bpmn-io/bpmn-js/pull/1579))
32
40
  * `CHORE`: expose `BpmnRenderer` extension points ([#1585](https://github.com/bpmn-io/bpmn-js/pull/1585))
33
- * `CHORE`: bump to `diagram-js@8.1.1`
41
+ * `DEPS`: bump to `diagram-js@8.1.1`
34
42
 
35
43
  ### Breaking Changes
36
44
 
37
- * Reworked the link of elements to bpmn DIs. You must access the `di` directly from the diagram element instead of the `businessObject`. [#1472](https://github.com/bpmn-io/bpmn-js/issues/1472)
38
- * Reworked `viewer.open` behavior for single planes. ([#1576](https://github.com/bpmn-io/bpmn-js/pull/1576))
39
- * Reworked import and `BpmnFactory` APIs. [#1472](https://github.com/bpmn-io/bpmn-js/issues/1472)
45
+ * Reworked the link of elements to bpmn DIs. You must access the `di` directly from the diagram element instead of the `businessObject` [#1472](https://github.com/bpmn-io/bpmn-js/issues/1472).
46
+ * Reworked `viewer.open` behavior for single planes ([#1576](https://github.com/bpmn-io/bpmn-js/pull/1576)).
47
+ * Reworked import and `BpmnFactory` APIs [#1472](https://github.com/bpmn-io/bpmn-js/issues/1472).
40
48
  * Added `bpmn-js.css`, which is required to display drilldown overlays correctly.
41
49
 
42
50
  ## 8.10.0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-modeler v9.0.3
2
+ * bpmn-js - bpmn-modeler v9.0.4
3
3
  *
4
4
  * Copyright (c) 2014-present, camunda Services GmbH
5
5
  *
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * Source Code: https://github.com/bpmn-io/bpmn-js
10
10
  *
11
- * Date: 2022-03-14
11
+ * Date: 2022-05-13
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -15783,7 +15783,7 @@
15783
15783
  }
15784
15784
 
15785
15785
  /**
15786
- * Returns all diagrams in the same hirarchy as the requested diagram.
15786
+ * Returns all diagrams in the same hierarchy as the requested diagram.
15787
15787
  * Includes all parent and sub process diagrams.
15788
15788
  *
15789
15789
  * @param {Array} definitions
@@ -22743,7 +22743,7 @@
22743
22743
  collapsedElements.push(bo);
22744
22744
  }
22745
22745
 
22746
- if (is$1(parent, 'bpmn:SubProcess') && parent !== plane.bpmnElement) {
22746
+ if (shouldMoveToPlane(bo, plane)) {
22747
22747
 
22748
22748
  // don't change the array while we iterate over it
22749
22749
  elementsToMove.push({ diElement: diElement, parent: parent });
@@ -22832,7 +22832,7 @@
22832
22832
  SubprocessCompatibility.$inject = [ 'eventBus', 'moddle' ];
22833
22833
 
22834
22834
 
22835
- // helpers
22835
+ // helpers //////////////////////////
22836
22836
 
22837
22837
  function findRootDiagram(element) {
22838
22838
  if (is$1(element, 'bpmndi:BPMNDiagram')) {
@@ -22864,6 +22864,23 @@
22864
22864
  return asBounds(planeTrbl);
22865
22865
  }
22866
22866
 
22867
+ function shouldMoveToPlane(bo, plane) {
22868
+ var parent = bo.$parent;
22869
+
22870
+ // don't move elements that are already on the plane
22871
+ if (!is$1(parent, 'bpmn:SubProcess') || parent === plane.bpmnElement) {
22872
+ return false;
22873
+ }
22874
+
22875
+ // dataAssociations are children of the subprocess but rendered on process level
22876
+ // cf. https://github.com/bpmn-io/bpmn-js/issues/1619
22877
+ if (isAny(bo, ['bpmn:DataInputAssociation', 'bpmn:DataOutputAssociation'])) {
22878
+ return false;
22879
+ }
22880
+
22881
+ return true;
22882
+ }
22883
+
22867
22884
  var LOW_PRIORITY$l = 250;
22868
22885
  var ARROW_DOWN_SVG = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg>';
22869
22886
 
@@ -22939,7 +22956,7 @@
22939
22956
  }, true);
22940
22957
 
22941
22958
 
22942
- eventBus.on('import.done', function() {
22959
+ eventBus.on('import.render.complete', function() {
22943
22960
  elementRegistry.filter(function(e) {
22944
22961
  return self.canDrillDown(e);
22945
22962
  }).map(function(el) {
@@ -36663,16 +36680,16 @@
36663
36680
  var translate = this._translate;
36664
36681
 
36665
36682
  function toggleLoopEntry(event, entry) {
36666
- var loopCharacteristics;
36683
+ var loopCharacteristics = getBusinessObject(element).loopCharacteristics;
36667
36684
 
36668
36685
  if (entry.active) {
36669
36686
  loopCharacteristics = undefined;
36670
36687
  } else {
36671
- loopCharacteristics = self._moddle.create(entry.options.loopCharacteristics);
36672
-
36673
- if (entry.options.isSequential) {
36674
- loopCharacteristics.isSequential = entry.options.isSequential;
36688
+ if (isUndefined$1(entry.options.isSequential) || !loopCharacteristics) {
36689
+ loopCharacteristics = self._moddle.create(entry.options.loopCharacteristics);
36675
36690
  }
36691
+
36692
+ loopCharacteristics.isSequential = entry.options.isSequential;
36676
36693
  }
36677
36694
  self._modeling.updateProperties(element, { loopCharacteristics: loopCharacteristics });
36678
36695
  }
@@ -45465,7 +45482,7 @@
45465
45482
 
45466
45483
  if (
45467
45484
  !is$1(newShape, 'bpmn:SubProcess') ||
45468
- !is$1(oldShape, 'bpmn:Task') ||
45485
+ ! (is$1(oldShape, 'bpmn:Task') || is$1(oldShape, 'bpmn:CallActivity')) ||
45469
45486
  !isExpanded(newShape)
45470
45487
  ) {
45471
45488
  return;
@@ -47202,7 +47219,7 @@
47202
47219
  // render labels always on top
47203
47220
  if (element.labelTarget) {
47204
47221
  return {
47205
- parent: canvas.findRoot(element.labelTarget) || canvas.getRootElement(),
47222
+ parent: canvas.findRoot(newParent) || canvas.getRootElement(),
47206
47223
  index: -1
47207
47224
  };
47208
47225
  }
@@ -54119,7 +54136,7 @@
54119
54136
  }
54120
54137
 
54121
54138
  if (!text && di.label) {
54122
- di.label = null;
54139
+ delete di.label;
54123
54140
  }
54124
54141
  }
54125
54142