bpmn-js 9.0.1 → 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 +22 -5
- package/dist/assets/bpmn-js.css +6 -3
- package/dist/bpmn-modeler.development.js +159 -77
- package/dist/bpmn-modeler.production.min.js +4 -4
- package/dist/bpmn-navigated-viewer.development.js +142 -34
- package/dist/bpmn-navigated-viewer.production.min.js +6 -6
- package/dist/bpmn-viewer.development.js +140 -32
- package/dist/bpmn-viewer.production.min.js +6 -6
- package/lib/features/drilldown/DrilldownOverlayBehavior.js +1 -1
- package/lib/features/drilldown/SubprocessCompatibility.js +20 -3
- package/lib/features/label-editing/LabelEditingProvider.js +2 -1
- package/lib/features/label-editing/cmd/UpdateLabelHandler.js +1 -1
- package/lib/features/modeling/behavior/GroupBehavior.js +6 -18
- package/lib/features/modeling/behavior/SubProcessStartEventBehavior.js +1 -1
- package/lib/features/ordering/BpmnOrderingProvider.js +1 -1
- package/lib/features/popup-menu/ReplaceMenuProvider.js +7 -6
- package/lib/import/Importer.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,24 @@ 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
|
+
|
|
19
|
+
## 9.0.3
|
|
20
|
+
|
|
21
|
+
* `FIX`: submit direct editing result on drilldown ([#1609](https://github.com/bpmn-io/bpmn-js/issues/1609))
|
|
22
|
+
* `DEPS`: bump to `diagram-js@8.2.0` ([2bac149](https://github.com/bpmn-io/bpmn-js/commit/2bac1495058601fec203c134b41efe5600e5fc97))
|
|
23
|
+
|
|
24
|
+
## 9.0.2
|
|
25
|
+
|
|
26
|
+
* `FIX`: support modeling of groups in collapsed subporcesses ([#1606](https://github.com/bpmn-io/bpmn-js/issues/1606))
|
|
27
|
+
* `FIX`: override default padding of breadcrumb element ([#1608](https://github.com/bpmn-io/bpmn-js/pull/1608))
|
|
10
28
|
|
|
11
29
|
## 9.0.1
|
|
12
30
|
|
|
@@ -14,20 +32,19 @@ ___Note:__ Yet to be released changes appear here._
|
|
|
14
32
|
* `FIX`: support DIs without associated business object ([#1605](https://github.com/bpmn-io/bpmn-js/pull/1605))
|
|
15
33
|
* `DEPS`: bump to `diagram-js@8.1.2` ([bdf9cf3](https://github.com/bpmn-io/bpmn-js/commit/bdf9cf3e752254a4c8172031d8a493955a9fca9c))
|
|
16
34
|
|
|
17
|
-
|
|
18
35
|
## 9.0.0
|
|
19
36
|
|
|
20
37
|
* `FEAT`: support drilldown and modeling of collapsed subprocesses ([#1443](https://github.com/bpmn-io/bpmn-js/issues/1443))
|
|
21
38
|
* `FEAT`: update embedded label bounds when shape is moved ([#1586](https://github.com/bpmn-io/bpmn-js/pull/1586))
|
|
22
39
|
* `FIX`: create di for embedded labels ([#1579](https://github.com/bpmn-io/bpmn-js/pull/1579))
|
|
23
40
|
* `CHORE`: expose `BpmnRenderer` extension points ([#1585](https://github.com/bpmn-io/bpmn-js/pull/1585))
|
|
24
|
-
* `
|
|
41
|
+
* `DEPS`: bump to `diagram-js@8.1.1`
|
|
25
42
|
|
|
26
43
|
### Breaking Changes
|
|
27
44
|
|
|
28
|
-
* Reworked the link of elements to bpmn DIs. You must access the `di` directly from the diagram element instead of the `businessObject
|
|
29
|
-
* Reworked `viewer.open` behavior for single planes
|
|
30
|
-
* Reworked import and `BpmnFactory` APIs
|
|
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).
|
|
31
48
|
* Added `bpmn-js.css`, which is required to display drilldown overlays correctly.
|
|
32
49
|
|
|
33
50
|
## 8.10.0
|
package/dist/assets/bpmn-js.css
CHANGED
|
@@ -40,7 +40,10 @@
|
|
|
40
40
|
display: none;
|
|
41
41
|
flex-wrap: wrap;
|
|
42
42
|
align-items: center;
|
|
43
|
-
top:
|
|
43
|
+
top: 30px;
|
|
44
|
+
left: 30px;
|
|
45
|
+
padding: 0px;
|
|
46
|
+
margin: 0px;
|
|
44
47
|
font-family: var(--breadcrumbs-font-family);
|
|
45
48
|
font-size: 16px;
|
|
46
49
|
line-height: normal;
|
|
@@ -51,11 +54,11 @@
|
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
.djs-palette-shown .bjs-breadcrumbs {
|
|
54
|
-
left:
|
|
57
|
+
left: 90px;
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
.djs-palette-shown.djs-palette-two-column .bjs-breadcrumbs {
|
|
58
|
-
left:
|
|
61
|
+
left: 140px;
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
.bjs-breadcrumbs li {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-modeler v9.0.
|
|
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-
|
|
11
|
+
* Date: 2022-05-13
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2372,7 +2372,7 @@
|
|
|
2372
2372
|
}
|
|
2373
2373
|
});
|
|
2374
2374
|
|
|
2375
|
-
eventBus.on([ 'render.getShapePath', 'render.getConnectionPath'], renderPriority, function(evt, element) {
|
|
2375
|
+
eventBus.on([ 'render.getShapePath', 'render.getConnectionPath' ], renderPriority, function(evt, element) {
|
|
2376
2376
|
if (self.canRender(element)) {
|
|
2377
2377
|
if (evt.type === 'render.getShapePath') {
|
|
2378
2378
|
return self.getShapePath(element);
|
|
@@ -2684,7 +2684,7 @@
|
|
|
2684
2684
|
|
|
2685
2685
|
stopRecursion = !!stopRecursion;
|
|
2686
2686
|
if (!isArray$2(elements)) {
|
|
2687
|
-
elements = [elements];
|
|
2687
|
+
elements = [ elements ];
|
|
2688
2688
|
}
|
|
2689
2689
|
|
|
2690
2690
|
var minX,
|
|
@@ -2864,11 +2864,11 @@
|
|
|
2864
2864
|
height = shape.height;
|
|
2865
2865
|
|
|
2866
2866
|
var shapePath = [
|
|
2867
|
-
['M', x, y],
|
|
2868
|
-
['l', width, 0],
|
|
2869
|
-
['l', 0, height],
|
|
2870
|
-
['l', -width, 0],
|
|
2871
|
-
['z']
|
|
2867
|
+
[ 'M', x, y ],
|
|
2868
|
+
[ 'l', width, 0 ],
|
|
2869
|
+
[ 'l', 0, height ],
|
|
2870
|
+
[ 'l', -width, 0 ],
|
|
2871
|
+
[ 'z' ]
|
|
2872
2872
|
];
|
|
2873
2873
|
|
|
2874
2874
|
return componentsToPath(shapePath);
|
|
@@ -4594,6 +4594,25 @@
|
|
|
4594
4594
|
return layer.group;
|
|
4595
4595
|
};
|
|
4596
4596
|
|
|
4597
|
+
/**
|
|
4598
|
+
* For a given index, return the number of layers that have a higher index and
|
|
4599
|
+
* are visible.
|
|
4600
|
+
*
|
|
4601
|
+
* This is used to determine the node a layer should be inserted at.
|
|
4602
|
+
*
|
|
4603
|
+
* @param {Number} index
|
|
4604
|
+
* @returns {Number}
|
|
4605
|
+
*/
|
|
4606
|
+
Canvas.prototype._getChildIndex = function(index) {
|
|
4607
|
+
return reduce(this._layers, function(childIndex, layer) {
|
|
4608
|
+
if (layer.visible && index >= layer.index) {
|
|
4609
|
+
childIndex++;
|
|
4610
|
+
}
|
|
4611
|
+
|
|
4612
|
+
return childIndex;
|
|
4613
|
+
}, 0);
|
|
4614
|
+
};
|
|
4615
|
+
|
|
4597
4616
|
/**
|
|
4598
4617
|
* Creates a given layer and returns it.
|
|
4599
4618
|
*
|
|
@@ -4608,19 +4627,80 @@
|
|
|
4608
4627
|
index = UTILITY_LAYER_INDEX;
|
|
4609
4628
|
}
|
|
4610
4629
|
|
|
4611
|
-
var childIndex =
|
|
4612
|
-
if (index >= layer.index) {
|
|
4613
|
-
childIndex++;
|
|
4614
|
-
}
|
|
4615
|
-
|
|
4616
|
-
return childIndex;
|
|
4617
|
-
}, 0);
|
|
4630
|
+
var childIndex = this._getChildIndex(index);
|
|
4618
4631
|
|
|
4619
4632
|
return {
|
|
4620
4633
|
group: createGroup(this._viewport, 'layer-' + name, childIndex),
|
|
4621
|
-
index: index
|
|
4634
|
+
index: index,
|
|
4635
|
+
visible: true
|
|
4622
4636
|
};
|
|
4637
|
+
};
|
|
4638
|
+
|
|
4623
4639
|
|
|
4640
|
+
/**
|
|
4641
|
+
* Shows a given layer.
|
|
4642
|
+
*
|
|
4643
|
+
* @param {String} layer
|
|
4644
|
+
* @returns {SVGElement}
|
|
4645
|
+
*/
|
|
4646
|
+
Canvas.prototype.showLayer = function(name) {
|
|
4647
|
+
|
|
4648
|
+
if (!name) {
|
|
4649
|
+
throw new Error('must specify a name');
|
|
4650
|
+
}
|
|
4651
|
+
|
|
4652
|
+
var layer = this._layers[name];
|
|
4653
|
+
|
|
4654
|
+
if (!layer) {
|
|
4655
|
+
throw new Error('layer <' + name + '> does not exist');
|
|
4656
|
+
}
|
|
4657
|
+
|
|
4658
|
+
var viewport = this._viewport;
|
|
4659
|
+
var group = layer.group;
|
|
4660
|
+
var index = layer.index;
|
|
4661
|
+
|
|
4662
|
+
if (layer.visible) {
|
|
4663
|
+
return group;
|
|
4664
|
+
}
|
|
4665
|
+
|
|
4666
|
+
var childIndex = this._getChildIndex(index);
|
|
4667
|
+
|
|
4668
|
+
viewport.insertBefore(group, viewport.childNodes[childIndex] || null);
|
|
4669
|
+
|
|
4670
|
+
layer.visible = true;
|
|
4671
|
+
|
|
4672
|
+
return group;
|
|
4673
|
+
};
|
|
4674
|
+
|
|
4675
|
+
/**
|
|
4676
|
+
* Hides a given layer.
|
|
4677
|
+
*
|
|
4678
|
+
* @param {String} layer
|
|
4679
|
+
* @returns {SVGElement}
|
|
4680
|
+
*/
|
|
4681
|
+
Canvas.prototype.hideLayer = function(name) {
|
|
4682
|
+
|
|
4683
|
+
if (!name) {
|
|
4684
|
+
throw new Error('must specify a name');
|
|
4685
|
+
}
|
|
4686
|
+
|
|
4687
|
+
var layer = this._layers[name];
|
|
4688
|
+
|
|
4689
|
+
if (!layer) {
|
|
4690
|
+
throw new Error('layer <' + name + '> does not exist');
|
|
4691
|
+
}
|
|
4692
|
+
|
|
4693
|
+
var group = layer.group;
|
|
4694
|
+
|
|
4695
|
+
if (!layer.visible) {
|
|
4696
|
+
return group;
|
|
4697
|
+
}
|
|
4698
|
+
|
|
4699
|
+
remove$1(group);
|
|
4700
|
+
|
|
4701
|
+
layer.visible = false;
|
|
4702
|
+
|
|
4703
|
+
return group;
|
|
4624
4704
|
};
|
|
4625
4705
|
|
|
4626
4706
|
|
|
@@ -4863,7 +4943,7 @@
|
|
|
4863
4943
|
|
|
4864
4944
|
var layer = this.getLayer(layerName, PLANE_LAYER_INDEX);
|
|
4865
4945
|
|
|
4866
|
-
|
|
4946
|
+
this.hideLayer(layerName);
|
|
4867
4947
|
|
|
4868
4948
|
this._addRoot(rootElement, layer);
|
|
4869
4949
|
|
|
@@ -4982,17 +5062,13 @@
|
|
|
4982
5062
|
|
|
4983
5063
|
var currentRoot = this._rootElement;
|
|
4984
5064
|
|
|
4985
|
-
var currentLayer;
|
|
4986
|
-
|
|
4987
5065
|
if (currentRoot) {
|
|
4988
5066
|
|
|
4989
5067
|
// un-associate previous root element <svg>
|
|
4990
5068
|
this._elementRegistry.updateGraphics(currentRoot, null, true);
|
|
4991
5069
|
|
|
4992
5070
|
// hide previous layer
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
attr(currentLayer, 'display', 'none');
|
|
5071
|
+
this.hideLayer(currentRoot.layer);
|
|
4996
5072
|
}
|
|
4997
5073
|
|
|
4998
5074
|
if (rootElement) {
|
|
@@ -5005,7 +5081,7 @@
|
|
|
5005
5081
|
this._elementRegistry.updateGraphics(rootElement, this._svg, true);
|
|
5006
5082
|
|
|
5007
5083
|
// show root layer
|
|
5008
|
-
|
|
5084
|
+
this.showLayer(rootElement.layer);
|
|
5009
5085
|
}
|
|
5010
5086
|
|
|
5011
5087
|
this._rootElement = rootElement;
|
|
@@ -7403,7 +7479,7 @@
|
|
|
7403
7479
|
options = options || {};
|
|
7404
7480
|
|
|
7405
7481
|
var configModule = {
|
|
7406
|
-
'config': ['value', options]
|
|
7482
|
+
'config': [ 'value', options ]
|
|
7407
7483
|
};
|
|
7408
7484
|
|
|
7409
7485
|
var modules = [ configModule, CoreModule$1 ].concat(options.modules || []);
|
|
@@ -15707,7 +15783,7 @@
|
|
|
15707
15783
|
}
|
|
15708
15784
|
|
|
15709
15785
|
/**
|
|
15710
|
-
* Returns all diagrams in the same
|
|
15786
|
+
* Returns all diagrams in the same hierarchy as the requested diagram.
|
|
15711
15787
|
* Includes all parent and sub process diagrams.
|
|
15712
15788
|
*
|
|
15713
15789
|
* @param {Array} definitions
|
|
@@ -20962,7 +21038,7 @@
|
|
|
20962
21038
|
};
|
|
20963
21039
|
|
|
20964
21040
|
|
|
20965
|
-
Outline.$inject = ['eventBus', 'styles', 'elementRegistry'];
|
|
21041
|
+
Outline.$inject = [ 'eventBus', 'styles', 'elementRegistry' ];
|
|
20966
21042
|
|
|
20967
21043
|
var OutlineModule = {
|
|
20968
21044
|
__init__: [ 'outline' ],
|
|
@@ -21992,7 +22068,7 @@
|
|
|
21992
22068
|
];
|
|
21993
22069
|
|
|
21994
22070
|
var ChangeSupportModule = {
|
|
21995
|
-
__init__: [ 'changeSupport'],
|
|
22071
|
+
__init__: [ 'changeSupport' ],
|
|
21996
22072
|
changeSupport: [ 'type', ChangeSupport ]
|
|
21997
22073
|
};
|
|
21998
22074
|
|
|
@@ -22164,7 +22240,7 @@
|
|
|
22164
22240
|
|
|
22165
22241
|
inherits$1(RootElementsBehavior, CommandInterceptor);
|
|
22166
22242
|
|
|
22167
|
-
RootElementsBehavior.$inject = [ 'canvas', 'injector'];
|
|
22243
|
+
RootElementsBehavior.$inject = [ 'canvas', 'injector' ];
|
|
22168
22244
|
|
|
22169
22245
|
var RootElementsModule = {
|
|
22170
22246
|
__init__: [ 'rootElementsBehavior' ],
|
|
@@ -22667,7 +22743,7 @@
|
|
|
22667
22743
|
collapsedElements.push(bo);
|
|
22668
22744
|
}
|
|
22669
22745
|
|
|
22670
|
-
if (
|
|
22746
|
+
if (shouldMoveToPlane(bo, plane)) {
|
|
22671
22747
|
|
|
22672
22748
|
// don't change the array while we iterate over it
|
|
22673
22749
|
elementsToMove.push({ diElement: diElement, parent: parent });
|
|
@@ -22756,7 +22832,7 @@
|
|
|
22756
22832
|
SubprocessCompatibility.$inject = [ 'eventBus', 'moddle' ];
|
|
22757
22833
|
|
|
22758
22834
|
|
|
22759
|
-
// helpers
|
|
22835
|
+
// helpers //////////////////////////
|
|
22760
22836
|
|
|
22761
22837
|
function findRootDiagram(element) {
|
|
22762
22838
|
if (is$1(element, 'bpmndi:BPMNDiagram')) {
|
|
@@ -22788,6 +22864,23 @@
|
|
|
22788
22864
|
return asBounds(planeTrbl);
|
|
22789
22865
|
}
|
|
22790
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
|
+
|
|
22791
22884
|
var LOW_PRIORITY$l = 250;
|
|
22792
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>';
|
|
22793
22886
|
|
|
@@ -22863,7 +22956,7 @@
|
|
|
22863
22956
|
}, true);
|
|
22864
22957
|
|
|
22865
22958
|
|
|
22866
|
-
eventBus.on('import.
|
|
22959
|
+
eventBus.on('import.render.complete', function() {
|
|
22867
22960
|
elementRegistry.filter(function(e) {
|
|
22868
22961
|
return self.canDrillDown(e);
|
|
22869
22962
|
}).map(function(el) {
|
|
@@ -23273,7 +23366,7 @@
|
|
|
23273
23366
|
var KEYCODE_Y = 89;
|
|
23274
23367
|
var KEYCODE_Z = 90;
|
|
23275
23368
|
|
|
23276
|
-
var KEYS_COPY = ['c', 'C', KEYCODE_C ];
|
|
23369
|
+
var KEYS_COPY = [ 'c', 'C', KEYCODE_C ];
|
|
23277
23370
|
var KEYS_PASTE = [ 'v', 'V', KEYCODE_V ];
|
|
23278
23371
|
var KEYS_REDO = [ 'y', 'Y', KEYCODE_Y ];
|
|
23279
23372
|
var KEYS_UNDO = [ 'z', 'Z', KEYCODE_Z ];
|
|
@@ -23429,7 +23522,7 @@
|
|
|
23429
23522
|
|
|
23430
23523
|
var event = context.keyEvent;
|
|
23431
23524
|
|
|
23432
|
-
if (isKey(['Backspace', 'Delete', 'Del' ], event)) {
|
|
23525
|
+
if (isKey([ 'Backspace', 'Delete', 'Del' ], event)) {
|
|
23433
23526
|
editorActions.trigger('removeSelection');
|
|
23434
23527
|
|
|
23435
23528
|
return true;
|
|
@@ -29179,11 +29272,11 @@
|
|
|
29179
29272
|
y = center.y;
|
|
29180
29273
|
|
|
29181
29274
|
return [
|
|
29182
|
-
['M', x, y],
|
|
29183
|
-
['m', 0, -r],
|
|
29184
|
-
['a', r, r, 0, 1, 1, 0, 2 * r],
|
|
29185
|
-
['a', r, r, 0, 1, 1, 0, -2 * r],
|
|
29186
|
-
['z']
|
|
29275
|
+
[ 'M', x, y ],
|
|
29276
|
+
[ 'm', 0, -r ],
|
|
29277
|
+
[ 'a', r, r, 0, 1, 1, 0, 2 * r ],
|
|
29278
|
+
[ 'a', r, r, 0, 1, 1, 0, -2 * r ],
|
|
29279
|
+
[ 'z' ]
|
|
29187
29280
|
];
|
|
29188
29281
|
}
|
|
29189
29282
|
|
|
@@ -30759,7 +30852,7 @@
|
|
|
30759
30852
|
return parent.children || [];
|
|
30760
30853
|
}
|
|
30761
30854
|
|
|
30762
|
-
var abs$5= Math.abs,
|
|
30855
|
+
var abs$5 = Math.abs,
|
|
30763
30856
|
round$6 = Math.round;
|
|
30764
30857
|
|
|
30765
30858
|
var TOLERANCE = 10;
|
|
@@ -36587,16 +36680,16 @@
|
|
|
36587
36680
|
var translate = this._translate;
|
|
36588
36681
|
|
|
36589
36682
|
function toggleLoopEntry(event, entry) {
|
|
36590
|
-
var loopCharacteristics;
|
|
36683
|
+
var loopCharacteristics = getBusinessObject(element).loopCharacteristics;
|
|
36591
36684
|
|
|
36592
36685
|
if (entry.active) {
|
|
36593
36686
|
loopCharacteristics = undefined;
|
|
36594
36687
|
} else {
|
|
36595
|
-
|
|
36596
|
-
|
|
36597
|
-
if (entry.options.isSequential) {
|
|
36598
|
-
loopCharacteristics.isSequential = entry.options.isSequential;
|
|
36688
|
+
if (isUndefined$1(entry.options.isSequential) || !loopCharacteristics) {
|
|
36689
|
+
loopCharacteristics = self._moddle.create(entry.options.loopCharacteristics);
|
|
36599
36690
|
}
|
|
36691
|
+
|
|
36692
|
+
loopCharacteristics.isSequential = entry.options.isSequential;
|
|
36600
36693
|
}
|
|
36601
36694
|
self._modeling.updateProperties(element, { loopCharacteristics: loopCharacteristics });
|
|
36602
36695
|
}
|
|
@@ -40119,7 +40212,8 @@
|
|
|
40119
40212
|
'canvas.viewbox.changing',
|
|
40120
40213
|
'drag.init',
|
|
40121
40214
|
'element.mousedown',
|
|
40122
|
-
'popupMenu.open'
|
|
40215
|
+
'popupMenu.open',
|
|
40216
|
+
'root.set'
|
|
40123
40217
|
], function(event) {
|
|
40124
40218
|
|
|
40125
40219
|
if (directEditing.isActive()) {
|
|
@@ -42337,7 +42431,7 @@
|
|
|
42337
42431
|
*/
|
|
42338
42432
|
function GroupBehavior(
|
|
42339
42433
|
bpmnFactory,
|
|
42340
|
-
|
|
42434
|
+
bpmnjs,
|
|
42341
42435
|
elementRegistry,
|
|
42342
42436
|
eventBus,
|
|
42343
42437
|
injector,
|
|
@@ -42345,18 +42439,6 @@
|
|
|
42345
42439
|
) {
|
|
42346
42440
|
injector.invoke(CommandInterceptor, this);
|
|
42347
42441
|
|
|
42348
|
-
/**
|
|
42349
|
-
* Gets process definitions
|
|
42350
|
-
*
|
|
42351
|
-
* @return {ModdleElement} definitions
|
|
42352
|
-
*/
|
|
42353
|
-
function getDefinitions() {
|
|
42354
|
-
var rootElement = canvas.getRootElement(),
|
|
42355
|
-
businessObject = getBusinessObject(rootElement);
|
|
42356
|
-
|
|
42357
|
-
return businessObject.$parent;
|
|
42358
|
-
}
|
|
42359
|
-
|
|
42360
42442
|
/**
|
|
42361
42443
|
* Removes a referenced category value for a given group shape
|
|
42362
42444
|
*
|
|
@@ -42392,7 +42474,7 @@
|
|
|
42392
42474
|
*/
|
|
42393
42475
|
function removeCategory(category) {
|
|
42394
42476
|
|
|
42395
|
-
var definitions = getDefinitions();
|
|
42477
|
+
var definitions = bpmnjs.getDefinitions();
|
|
42396
42478
|
|
|
42397
42479
|
remove(definitions.get('rootElements'), category);
|
|
42398
42480
|
}
|
|
@@ -42457,7 +42539,7 @@
|
|
|
42457
42539
|
|
|
42458
42540
|
var businessObject = getBusinessObject(shape),
|
|
42459
42541
|
categoryValueRef = businessObject.categoryValueRef,
|
|
42460
|
-
definitions = getDefinitions(),
|
|
42542
|
+
definitions = bpmnjs.getDefinitions(),
|
|
42461
42543
|
category = categoryValueRef ? categoryValueRef.$parent : null;
|
|
42462
42544
|
|
|
42463
42545
|
add(category.get('categoryValue'), categoryValueRef);
|
|
@@ -42475,7 +42557,7 @@
|
|
|
42475
42557
|
|
|
42476
42558
|
if (is$1(businessObject, 'bpmn:Group') && !businessObject.categoryValueRef) {
|
|
42477
42559
|
|
|
42478
|
-
var definitions = getDefinitions(),
|
|
42560
|
+
var definitions = bpmnjs.getDefinitions(),
|
|
42479
42561
|
categoryValue = createCategoryValue(definitions, bpmnFactory);
|
|
42480
42562
|
|
|
42481
42563
|
// link the reference to the Group
|
|
@@ -42503,7 +42585,7 @@
|
|
|
42503
42585
|
categoryValue;
|
|
42504
42586
|
|
|
42505
42587
|
if (is$1(property, 'bpmn:CategoryValue')) {
|
|
42506
|
-
categoryValue = createCategoryValue(getDefinitions(), bpmnFactory);
|
|
42588
|
+
categoryValue = createCategoryValue(bpmnjs.getDefinitions(), bpmnFactory);
|
|
42507
42589
|
|
|
42508
42590
|
// return copy of category
|
|
42509
42591
|
return moddleCopy.copyElement(property, categoryValue);
|
|
@@ -42514,7 +42596,7 @@
|
|
|
42514
42596
|
|
|
42515
42597
|
GroupBehavior.$inject = [
|
|
42516
42598
|
'bpmnFactory',
|
|
42517
|
-
'
|
|
42599
|
+
'bpmnjs',
|
|
42518
42600
|
'elementRegistry',
|
|
42519
42601
|
'eventBus',
|
|
42520
42602
|
'injector',
|
|
@@ -45400,7 +45482,7 @@
|
|
|
45400
45482
|
|
|
45401
45483
|
if (
|
|
45402
45484
|
!is$1(newShape, 'bpmn:SubProcess') ||
|
|
45403
|
-
!is$1(oldShape, 'bpmn:Task') ||
|
|
45485
|
+
! (is$1(oldShape, 'bpmn:Task') || is$1(oldShape, 'bpmn:CallActivity')) ||
|
|
45404
45486
|
!isExpanded(newShape)
|
|
45405
45487
|
) {
|
|
45406
45488
|
return;
|
|
@@ -47137,7 +47219,7 @@
|
|
|
47137
47219
|
// render labels always on top
|
|
47138
47220
|
if (element.labelTarget) {
|
|
47139
47221
|
return {
|
|
47140
|
-
parent: canvas.findRoot(
|
|
47222
|
+
parent: canvas.findRoot(newParent) || canvas.getRootElement(),
|
|
47141
47223
|
index: -1
|
|
47142
47224
|
};
|
|
47143
47225
|
}
|
|
@@ -48258,7 +48340,7 @@
|
|
|
48258
48340
|
}
|
|
48259
48341
|
|
|
48260
48342
|
var LabelSupportModule = {
|
|
48261
|
-
__init__: [ 'labelSupport'],
|
|
48343
|
+
__init__: [ 'labelSupport' ],
|
|
48262
48344
|
labelSupport: [ 'type', LabelSupport ]
|
|
48263
48345
|
};
|
|
48264
48346
|
|
|
@@ -48446,7 +48528,7 @@
|
|
|
48446
48528
|
saveClear(oldShape.attachers, function(attacher) {
|
|
48447
48529
|
var allowed = rules.allowed('elements.move', {
|
|
48448
48530
|
target: newShape,
|
|
48449
|
-
shapes: [attacher]
|
|
48531
|
+
shapes: [ attacher ]
|
|
48450
48532
|
});
|
|
48451
48533
|
|
|
48452
48534
|
if (allowed === 'attach') {
|
|
@@ -49580,7 +49662,7 @@
|
|
|
49580
49662
|
}
|
|
49581
49663
|
|
|
49582
49664
|
var SpaceToolModule = {
|
|
49583
|
-
__init__: ['spaceToolPreview'],
|
|
49665
|
+
__init__: [ 'spaceToolPreview' ],
|
|
49584
49666
|
__depends__: [
|
|
49585
49667
|
DraggingModule,
|
|
49586
49668
|
RulesModule$1,
|
|
@@ -49588,8 +49670,8 @@
|
|
|
49588
49670
|
PreviewSupportModule,
|
|
49589
49671
|
MouseModule
|
|
49590
49672
|
],
|
|
49591
|
-
spaceTool: ['type', SpaceTool ],
|
|
49592
|
-
spaceToolPreview: ['type', SpaceToolPreview ]
|
|
49673
|
+
spaceTool: [ 'type', SpaceTool ],
|
|
49674
|
+
spaceToolPreview: [ 'type', SpaceToolPreview ]
|
|
49593
49675
|
};
|
|
49594
49676
|
|
|
49595
49677
|
function BpmnFactory(moddle) {
|
|
@@ -51709,7 +51791,7 @@
|
|
|
51709
51791
|
newParentIndex = context.newParentIndex,
|
|
51710
51792
|
oldParent = shape.parent;
|
|
51711
51793
|
|
|
51712
|
-
context.oldBounds = pick(shape, [ 'x', 'y', 'width', 'height']);
|
|
51794
|
+
context.oldBounds = pick(shape, [ 'x', 'y', 'width', 'height' ]);
|
|
51713
51795
|
|
|
51714
51796
|
// save old parent in context
|
|
51715
51797
|
context.oldParent = oldParent;
|
|
@@ -52355,7 +52437,7 @@
|
|
|
52355
52437
|
// recursively hide/show children
|
|
52356
52438
|
var result = setHiddenRecursive(children, shape.collapsed);
|
|
52357
52439
|
|
|
52358
|
-
return [shape].concat(result);
|
|
52440
|
+
return [ shape ].concat(result);
|
|
52359
52441
|
};
|
|
52360
52442
|
|
|
52361
52443
|
|
|
@@ -52372,7 +52454,7 @@
|
|
|
52372
52454
|
// retoggle state
|
|
52373
52455
|
shape.collapsed = !shape.collapsed;
|
|
52374
52456
|
|
|
52375
|
-
return [shape].concat(result);
|
|
52457
|
+
return [ shape ].concat(result);
|
|
52376
52458
|
};
|
|
52377
52459
|
|
|
52378
52460
|
|
|
@@ -54054,7 +54136,7 @@
|
|
|
54054
54136
|
}
|
|
54055
54137
|
|
|
54056
54138
|
if (!text && di.label) {
|
|
54057
|
-
di.label
|
|
54139
|
+
delete di.label;
|
|
54058
54140
|
}
|
|
54059
54141
|
}
|
|
54060
54142
|
|
|
@@ -58973,8 +59055,8 @@
|
|
|
58973
59055
|
var h = box.height + offset * 2;
|
|
58974
59056
|
|
|
58975
59057
|
var styles = [
|
|
58976
|
-
'width: '+ w +'px',
|
|
58977
|
-
'height: '+ h + 'px'
|
|
59058
|
+
'width: ' + w + 'px',
|
|
59059
|
+
'height: ' + h + 'px'
|
|
58978
59060
|
].join('; ');
|
|
58979
59061
|
|
|
58980
59062
|
return {
|