camunda-bpmn-js 3.10.0 → 3.10.1

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.
@@ -32860,7 +32860,7 @@
32860
32860
  * @typedef {import('../../core/EventBus').default} EventBus
32861
32861
  */
32862
32862
 
32863
- var HIGH_PRIORITY$r = 1500;
32863
+ var HIGH_PRIORITY$q = 1500;
32864
32864
 
32865
32865
 
32866
32866
  /**
@@ -32928,7 +32928,7 @@
32928
32928
  */
32929
32929
  eventBus.on('drag.start', function(event) {
32930
32930
 
32931
- eventBus.once('drag.move', HIGH_PRIORITY$r, function(event) {
32931
+ eventBus.once('drag.move', HIGH_PRIORITY$q, function(event) {
32932
32932
 
32933
32933
  ensureHover(event);
32934
32934
 
@@ -32959,7 +32959,7 @@
32959
32959
  hover = event.element;
32960
32960
  });
32961
32961
 
32962
- eventBus.on('element.hover', HIGH_PRIORITY$r, function(event) {
32962
+ eventBus.on('element.hover', HIGH_PRIORITY$q, function(event) {
32963
32963
 
32964
32964
  // (3) am I on an element still?
32965
32965
  if (hover) {
@@ -34911,7 +34911,7 @@
34911
34911
  MARKER_CONNECT_UPDATING$1 = 'djs-updating',
34912
34912
  MARKER_DRAGGER = 'djs-dragging';
34913
34913
 
34914
- var HIGH_PRIORITY$q = 1100;
34914
+ var HIGH_PRIORITY$p = 1100;
34915
34915
 
34916
34916
  /**
34917
34917
  * Preview connection while moving bendpoints.
@@ -34979,7 +34979,7 @@
34979
34979
  eventBus.on([
34980
34980
  'bendpoint.move.out',
34981
34981
  'bendpoint.move.cleanup'
34982
- ], HIGH_PRIORITY$q, function(event) {
34982
+ ], HIGH_PRIORITY$p, function(event) {
34983
34983
  var context = event.context,
34984
34984
  hover = context.hover,
34985
34985
  target = context.target;
@@ -35065,7 +35065,7 @@
35065
35065
  eventBus.on([
35066
35066
  'bendpoint.move.end',
35067
35067
  'bendpoint.move.cancel'
35068
- ], HIGH_PRIORITY$q, function(event) {
35068
+ ], HIGH_PRIORITY$p, function(event) {
35069
35069
  var context = event.context,
35070
35070
  connection = context.connection,
35071
35071
  draggerGfx = context.draggerGfx,
@@ -36081,7 +36081,7 @@
36081
36081
  * @typedef {import('../../core/EventBus').default} EventBus
36082
36082
  */
36083
36083
 
36084
- var HIGH_PRIORITY$p = 1100,
36084
+ var HIGH_PRIORITY$o = 1100,
36085
36085
  LOW_PRIORITY$m = 900;
36086
36086
 
36087
36087
  var MARKER_OK$3 = 'connect-ok',
@@ -36142,7 +36142,7 @@
36142
36142
  eventBus.on([
36143
36143
  'connect.out',
36144
36144
  'connect.cleanup'
36145
- ], HIGH_PRIORITY$p, function(event) {
36145
+ ], HIGH_PRIORITY$o, function(event) {
36146
36146
  var hover = event.hover;
36147
36147
 
36148
36148
  if (hover) {
@@ -37468,7 +37468,7 @@
37468
37468
 
37469
37469
  var PARTICIPANT_BORDER_WIDTH = 30;
37470
37470
 
37471
- var HIGH_PRIORITY$o = 2000;
37471
+ var HIGH_PRIORITY$n = 2000;
37472
37472
 
37473
37473
 
37474
37474
  /**
@@ -37485,7 +37485,7 @@
37485
37485
  eventBus.on([
37486
37486
  'create.start',
37487
37487
  'shape.move.start'
37488
- ], HIGH_PRIORITY$o, function(event) {
37488
+ ], HIGH_PRIORITY$n, function(event) {
37489
37489
  var context = event.context,
37490
37490
  shape = context.shape,
37491
37491
  rootElement = canvas.getRootElement();
@@ -37520,7 +37520,7 @@
37520
37520
  });
37521
37521
 
37522
37522
  // force hovering process when creating first participant
37523
- eventBus.on('create.start', HIGH_PRIORITY$o, function(event) {
37523
+ eventBus.on('create.start', HIGH_PRIORITY$n, function(event) {
37524
37524
  var context = event.context,
37525
37525
  shape = context.shape,
37526
37526
  rootElement = canvas.getRootElement(),
@@ -37532,7 +37532,7 @@
37532
37532
  }
37533
37533
 
37534
37534
  if (is$6(shape, 'bpmn:Participant') && is$6(rootElement, 'bpmn:Process')) {
37535
- eventBus.on('element.hover', HIGH_PRIORITY$o, ensureHoveringProcess);
37535
+ eventBus.on('element.hover', HIGH_PRIORITY$n, ensureHoveringProcess);
37536
37536
 
37537
37537
  eventBus.once('create.cleanup', function() {
37538
37538
  eventBus.off('element.hover', ensureHoveringProcess);
@@ -37553,7 +37553,7 @@
37553
37553
 
37554
37554
  // when creating mutliple elements through `elements.create` parent must be set to collaboration
37555
37555
  // and passed to `shape.create` as hint
37556
- this.preExecute('elements.create', HIGH_PRIORITY$o, function(context) {
37556
+ this.preExecute('elements.create', HIGH_PRIORITY$n, function(context) {
37557
37557
  var elements = context.elements,
37558
37558
  parent = context.parent,
37559
37559
  participant = findParticipant(elements),
@@ -38975,7 +38975,7 @@
38975
38975
  * @typedef {import('diagram-js/lib/core/Canvas').default} Canvas
38976
38976
  */
38977
38977
 
38978
- var HIGH_PRIORITY$n = 1500;
38978
+ var HIGH_PRIORITY$m = 1500;
38979
38979
  var HIGHEST_PRIORITY = 2000;
38980
38980
 
38981
38981
 
@@ -38997,7 +38997,7 @@
38997
38997
  'shape.move.move',
38998
38998
  'shape.move.out',
38999
38999
  'shape.move.end'
39000
- ], HIGH_PRIORITY$n, function(event) {
39000
+ ], HIGH_PRIORITY$m, function(event) {
39001
39001
  var context = event.context,
39002
39002
  shape = context.shape || event.shape,
39003
39003
  hover = event.hover;
@@ -39028,7 +39028,7 @@
39028
39028
  'global-connect.out',
39029
39029
  'global-connect.end',
39030
39030
  'global-connect.cleanup'
39031
- ], HIGH_PRIORITY$n, function(event) {
39031
+ ], HIGH_PRIORITY$m, function(event) {
39032
39032
  var hover = event.hover;
39033
39033
 
39034
39034
  // ensure connections start/end on bpmn:Participant,
@@ -39042,7 +39042,7 @@
39042
39042
 
39043
39043
  eventBus.on([
39044
39044
  'bendpoint.move.hover'
39045
- ], HIGH_PRIORITY$n, function(event) {
39045
+ ], HIGH_PRIORITY$m, function(event) {
39046
39046
  var context = event.context,
39047
39047
  hover = event.hover,
39048
39048
  type = context.type;
@@ -39058,7 +39058,7 @@
39058
39058
 
39059
39059
  eventBus.on([
39060
39060
  'connect.start'
39061
- ], HIGH_PRIORITY$n, function(event) {
39061
+ ], HIGH_PRIORITY$m, function(event) {
39062
39062
  var context = event.context,
39063
39063
  start = context.start;
39064
39064
 
@@ -41508,7 +41508,7 @@
41508
41508
  'selection'
41509
41509
  ];
41510
41510
 
41511
- var HIGH_PRIORITY$m = 1500;
41511
+ var HIGH_PRIORITY$l = 1500;
41512
41512
 
41513
41513
  /**
41514
41514
  * @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
@@ -41551,7 +41551,7 @@
41551
41551
  * @param {EventBus} eventBus
41552
41552
  */
41553
41553
  function ResizeBehavior$1(eventBus) {
41554
- eventBus.on('resize.start', HIGH_PRIORITY$m, function(event) {
41554
+ eventBus.on('resize.start', HIGH_PRIORITY$l, function(event) {
41555
41555
  var context = event.context,
41556
41556
  shape = context.shape,
41557
41557
  direction = context.direction,
@@ -42094,7 +42094,7 @@
42094
42094
  */
42095
42095
 
42096
42096
  var LOW_PRIORITY$h = 400;
42097
- var HIGH_PRIORITY$l = 600;
42097
+ var HIGH_PRIORITY$k = 600;
42098
42098
 
42099
42099
  var DEFAULT_POSITION = {
42100
42100
  x: 180,
@@ -42381,7 +42381,7 @@
42381
42381
  }, true);
42382
42382
 
42383
42383
  // move elements between planes
42384
- this.postExecuted('shape.toggleCollapse', HIGH_PRIORITY$l, function(context) {
42384
+ this.postExecuted('shape.toggleCollapse', HIGH_PRIORITY$k, function(context) {
42385
42385
  var shape = context.shape;
42386
42386
 
42387
42387
  if (!is$6(shape, 'bpmn:SubProcess')) {
@@ -43029,7 +43029,7 @@
43029
43029
  */
43030
43030
 
43031
43031
  var LOW_PRIORITY$f = 500,
43032
- HIGH_PRIORITY$k = 5000;
43032
+ HIGH_PRIORITY$j = 5000;
43033
43033
 
43034
43034
 
43035
43035
  /**
@@ -43103,7 +43103,7 @@
43103
43103
 
43104
43104
  // listen to a lot of stuff to group lane updates
43105
43105
 
43106
- this.preExecute(laneRefUpdateEvents, HIGH_PRIORITY$k, function(event) {
43106
+ this.preExecute(laneRefUpdateEvents, HIGH_PRIORITY$j, function(event) {
43107
43107
  initContext();
43108
43108
  });
43109
43109
 
@@ -43395,7 +43395,7 @@
43395
43395
  }
43396
43396
 
43397
43397
  if (element.host) {
43398
- return canAttach$1(element, element.host, null, position);
43398
+ return canAttach(element, element.host, null, position);
43399
43399
  }
43400
43400
 
43401
43401
  return canCreate(element, target, null);
@@ -43408,7 +43408,7 @@
43408
43408
  shapes = context.shapes,
43409
43409
  position = context.position;
43410
43410
 
43411
- return canAttach$1(shapes, target, null, position) ||
43411
+ return canAttach(shapes, target, null, position) ||
43412
43412
  canReplace(shapes, target, position) ||
43413
43413
  canMove(shapes, target) ||
43414
43414
  canInsert(shapes, target);
@@ -43425,7 +43425,7 @@
43425
43425
 
43426
43426
  this.addRule('shape.attach', function(context) {
43427
43427
 
43428
- return canAttach$1(
43428
+ return canAttach(
43429
43429
  context.shape,
43430
43430
  context.target,
43431
43431
  null,
@@ -43451,7 +43451,7 @@
43451
43451
 
43452
43452
  BpmnRules.prototype.canMove = canMove;
43453
43453
 
43454
- BpmnRules.prototype.canAttach = canAttach$1;
43454
+ BpmnRules.prototype.canAttach = canAttach;
43455
43455
 
43456
43456
  BpmnRules.prototype.canReplace = canReplace;
43457
43457
 
@@ -44008,7 +44008,7 @@
44008
44008
  *
44009
44009
  * @return {boolean | 'attach'}
44010
44010
  */
44011
- function canAttach$1(elements, target, source, position) {
44011
+ function canAttach(elements, target, source, position) {
44012
44012
 
44013
44013
  if (!Array.isArray(elements)) {
44014
44014
  elements = [ elements ];
@@ -44144,7 +44144,7 @@
44144
44144
  });
44145
44145
  }
44146
44146
 
44147
- if (is$6(element, 'bpmn:BoundaryEvent') && canAttach$1(element, target, null, position)) {
44147
+ if (is$6(element, 'bpmn:BoundaryEvent') && canAttach(element, target, null, position)) {
44148
44148
  canExecute.replacements.push({
44149
44149
  oldElementId: element.id,
44150
44150
  newElementType: 'bpmn:BoundaryEvent'
@@ -44431,7 +44431,7 @@
44431
44431
  * @typedef {import('diagram-js/lib/core/Canvas').default} Canvas
44432
44432
  */
44433
44433
 
44434
- var HIGH_PRIORITY$j = 2000;
44434
+ var HIGH_PRIORITY$i = 2000;
44435
44435
 
44436
44436
  /**
44437
44437
  * @param {EventBus} eventBus
@@ -44439,7 +44439,7 @@
44439
44439
  */
44440
44440
  function BpmnDiOrdering(eventBus, canvas) {
44441
44441
 
44442
- eventBus.on('saveXML.start', HIGH_PRIORITY$j, orderDi);
44442
+ eventBus.on('saveXML.start', HIGH_PRIORITY$i, orderDi);
44443
44443
 
44444
44444
  function orderDi() {
44445
44445
  var rootElements = canvas.getRootElements();
@@ -44806,7 +44806,7 @@
44806
44806
 
44807
44807
  var PREFIX = 'create';
44808
44808
 
44809
- var HIGH_PRIORITY$i = 2000;
44809
+ var HIGH_PRIORITY$h = 2000;
44810
44810
 
44811
44811
 
44812
44812
  /**
@@ -45034,7 +45034,7 @@
45034
45034
  eventBus.on('create.init', function() {
45035
45035
  eventBus.on('elements.changed', cancel);
45036
45036
 
45037
- eventBus.once([ 'create.cancel', 'create.end' ], HIGH_PRIORITY$i, function() {
45037
+ eventBus.once([ 'create.cancel', 'create.end' ], HIGH_PRIORITY$h, function() {
45038
45038
  eventBus.off('elements.changed', cancel);
45039
45039
  });
45040
45040
  });
@@ -47174,7 +47174,7 @@
47174
47174
  e: 'right'
47175
47175
  };
47176
47176
 
47177
- var HIGH_PRIORITY$h = 1500;
47177
+ var HIGH_PRIORITY$g = 1500;
47178
47178
 
47179
47179
  var DIRECTION_TO_OPPOSITE = {
47180
47180
  n: 's',
@@ -47223,7 +47223,7 @@
47223
47223
  });
47224
47224
  });
47225
47225
 
47226
- eventBus.on('spaceTool.move', HIGH_PRIORITY$h , function(event) {
47226
+ eventBus.on('spaceTool.move', HIGH_PRIORITY$g , function(event) {
47227
47227
  var context = event.context,
47228
47228
  initialized = context.initialized;
47229
47229
 
@@ -48712,7 +48712,7 @@
48712
48712
  }
48713
48713
 
48714
48714
  var LOW_PRIORITY$a = 250,
48715
- HIGH_PRIORITY$g = 1400;
48715
+ HIGH_PRIORITY$f = 1400;
48716
48716
 
48717
48717
  /**
48718
48718
  * @typedef {import('../../model/Types').Element} Element
@@ -48739,7 +48739,7 @@
48739
48739
 
48740
48740
  // remove labels from the collection that are being
48741
48741
  // moved with other elements anyway
48742
- eventBus.on('shape.move.start', HIGH_PRIORITY$g, function(e) {
48742
+ eventBus.on('shape.move.start', HIGH_PRIORITY$f, function(e) {
48743
48743
 
48744
48744
  var context = e.context,
48745
48745
  shapes = context.shapes,
@@ -48778,7 +48778,7 @@
48778
48778
  });
48779
48779
 
48780
48780
  // add all labels to move closure
48781
- this.preExecuted('elements.move', HIGH_PRIORITY$g, function(e) {
48781
+ this.preExecuted('elements.move', HIGH_PRIORITY$f, function(e) {
48782
48782
  var context = e.context,
48783
48783
  closure = context.closure,
48784
48784
  enclosedElements = closure.enclosedElements;
@@ -48894,7 +48894,7 @@
48894
48894
  */
48895
48895
 
48896
48896
  var LOW_PRIORITY$9 = 251,
48897
- HIGH_PRIORITY$f = 1401;
48897
+ HIGH_PRIORITY$e = 1401;
48898
48898
 
48899
48899
  var MARKER_ATTACH$1 = 'attach-ok';
48900
48900
 
@@ -48923,7 +48923,7 @@
48923
48923
 
48924
48924
  // remove all the attached elements from the shapes to be validated
48925
48925
  // add all the attached shapes to the overall list of moved shapes
48926
- eventBus.on('shape.move.start', HIGH_PRIORITY$f, function(e) {
48926
+ eventBus.on('shape.move.start', HIGH_PRIORITY$e, function(e) {
48927
48927
 
48928
48928
  var context = e.context,
48929
48929
  shapes = context.shapes,
@@ -48976,7 +48976,7 @@
48976
48976
  });
48977
48977
 
48978
48978
  // add all attachers to move closure
48979
- this.preExecuted('elements.move', HIGH_PRIORITY$f, function(e) {
48979
+ this.preExecuted('elements.move', HIGH_PRIORITY$e, function(e) {
48980
48980
  var context = e.context,
48981
48981
  closure = context.closure,
48982
48982
  shapes = context.shapes,
@@ -60624,7 +60624,7 @@
60624
60624
  * @typedef {import('../../grid-snapping/GridSnapping').default} GridSnapping
60625
60625
  */
60626
60626
 
60627
- var HIGH_PRIORITY$e = 2000;
60627
+ var HIGH_PRIORITY$d = 2000;
60628
60628
 
60629
60629
  /**
60630
60630
  * Integrates space tool with grid snapping.
@@ -60636,7 +60636,7 @@
60636
60636
  eventBus.on([
60637
60637
  'spaceTool.move',
60638
60638
  'spaceTool.end'
60639
- ], HIGH_PRIORITY$e, function(event) {
60639
+ ], HIGH_PRIORITY$d, function(event) {
60640
60640
  var context = event.context;
60641
60641
 
60642
60642
  if (!context.initialized) {
@@ -60695,14 +60695,14 @@
60695
60695
  * @typedef {import('diagram-js/lib/util/Types').Axis} Axis
60696
60696
  */
60697
60697
 
60698
- var HIGH_PRIORITY$d = 2000;
60698
+ var HIGH_PRIORITY$c = 2000;
60699
60699
 
60700
60700
  /**
60701
60701
  * @param {EventBus} eventBus
60702
60702
  * @param {GridSnapping} gridSnapping
60703
60703
  */
60704
60704
  function GridSnappingAutoPlaceBehavior(eventBus, gridSnapping) {
60705
- eventBus.on('autoPlace', HIGH_PRIORITY$d, function(context) {
60705
+ eventBus.on('autoPlace', HIGH_PRIORITY$c, function(context) {
60706
60706
  var source = context.source,
60707
60707
  sourceMid = getMid(source),
60708
60708
  shape = context.shape;
@@ -60811,7 +60811,7 @@
60811
60811
  * @typedef {import('diagram-js/lib/util/Types').Point} Point
60812
60812
  */
60813
60813
 
60814
- var HIGH_PRIORITY$c = 3000;
60814
+ var HIGH_PRIORITY$b = 3000;
60815
60815
 
60816
60816
 
60817
60817
  /**
@@ -60831,7 +60831,7 @@
60831
60831
  this.postExecuted([
60832
60832
  'connection.create',
60833
60833
  'connection.layout'
60834
- ], HIGH_PRIORITY$c, function(event) {
60834
+ ], HIGH_PRIORITY$b, function(event) {
60835
60835
  var context = event.context,
60836
60836
  connection = context.connection,
60837
60837
  hints = context.hints || {},
@@ -62060,7 +62060,7 @@
62060
62060
  * } } DirectEditingContext
62061
62061
  */
62062
62062
 
62063
- var HIGH_PRIORITY$b = 2000;
62063
+ var HIGH_PRIORITY$a = 2000;
62064
62064
 
62065
62065
  /**
62066
62066
  * @param {EventBus} eventBus
@@ -62105,7 +62105,7 @@
62105
62105
  eventBus.on([
62106
62106
  'shape.remove',
62107
62107
  'connection.remove'
62108
- ], HIGH_PRIORITY$b, function(event) {
62108
+ ], HIGH_PRIORITY$a, function(event) {
62109
62109
 
62110
62110
  if (directEditing.isActive(event.element)) {
62111
62111
  directEditing.cancel();
@@ -63077,7 +63077,7 @@
63077
63077
 
63078
63078
  var LOW_PRIORITY$5 = 500,
63079
63079
  MEDIUM_PRIORITY = 1250,
63080
- HIGH_PRIORITY$a = 1500;
63080
+ HIGH_PRIORITY$9 = 1500;
63081
63081
 
63082
63082
  var round$2 = Math.round;
63083
63083
 
@@ -63127,7 +63127,7 @@
63127
63127
  // * validatedShapes: a list of shapes that are being checked
63128
63128
  // against the rules before and during move
63129
63129
  //
63130
- eventBus.on('shape.move.start', HIGH_PRIORITY$a, function(event) {
63130
+ eventBus.on('shape.move.start', HIGH_PRIORITY$9, function(event) {
63131
63131
 
63132
63132
  var context = event.context,
63133
63133
  shape = event.shape,
@@ -64556,7 +64556,7 @@
64556
64556
  * @typedef {import('../tool-manager/ToolManager').default} ToolManager
64557
64557
  */
64558
64558
 
64559
- var HIGH_PRIORITY$9 = 1500;
64559
+ var HIGH_PRIORITY$8 = 1500;
64560
64560
  var HAND_CURSOR = 'grab';
64561
64561
 
64562
64562
  /**
@@ -64582,7 +64582,7 @@
64582
64582
  dragging: 'hand.move'
64583
64583
  });
64584
64584
 
64585
- eventBus.on('element.mousedown', HIGH_PRIORITY$9, function(event) {
64585
+ eventBus.on('element.mousedown', HIGH_PRIORITY$8, function(event) {
64586
64586
 
64587
64587
  if (!hasPrimaryModifier(event)) {
64588
64588
  return;
@@ -64593,7 +64593,7 @@
64593
64593
  return false;
64594
64594
  });
64595
64595
 
64596
- keyboard && keyboard.addListener(HIGH_PRIORITY$9, function(e) {
64596
+ keyboard && keyboard.addListener(HIGH_PRIORITY$8, function(e) {
64597
64597
  if (!isSpace$1(e.keyEvent) || self.isActive()) {
64598
64598
  return;
64599
64599
  }
@@ -64603,7 +64603,7 @@
64603
64603
  self.activateMove(mouseEvent, !!mouseEvent);
64604
64604
  }, 'keyboard.keydown');
64605
64605
 
64606
- keyboard && keyboard.addListener(HIGH_PRIORITY$9, function(e) {
64606
+ keyboard && keyboard.addListener(HIGH_PRIORITY$8, function(e) {
64607
64607
  if (!isSpace$1(e.keyEvent) || !self.isActive()) {
64608
64608
  return;
64609
64609
  }
@@ -65899,7 +65899,7 @@
65899
65899
  * @typedef {import('../../model/Types').Shape} Shape
65900
65900
  */
65901
65901
 
65902
- var HIGH_PRIORITY$8 = 1500;
65902
+ var HIGH_PRIORITY$7 = 1500;
65903
65903
 
65904
65904
 
65905
65905
  /**
@@ -65912,7 +65912,7 @@
65912
65912
  injector.invoke(CreateMoveSnapping, this);
65913
65913
 
65914
65914
  // creating first participant
65915
- eventBus.on([ 'create.move', 'create.end' ], HIGH_PRIORITY$8, setSnappedIfConstrained);
65915
+ eventBus.on([ 'create.move', 'create.end' ], HIGH_PRIORITY$7, setSnappedIfConstrained);
65916
65916
 
65917
65917
  // snap boundary events
65918
65918
  eventBus.on([
@@ -65920,7 +65920,7 @@
65920
65920
  'create.end',
65921
65921
  'shape.move.move',
65922
65922
  'shape.move.end'
65923
- ], HIGH_PRIORITY$8, function(event) {
65923
+ ], HIGH_PRIORITY$7, function(event) {
65924
65924
  var context = event.context,
65925
65925
  canExecute = context.canExecute,
65926
65926
  target = context.target;
@@ -121259,7 +121259,7 @@
121259
121259
  });
121260
121260
  }
121261
121261
 
121262
- const HIGH_PRIORITY$7 = 5000;
121262
+ const HIGH_PRIORITY$6 = 5000;
121263
121263
 
121264
121264
 
121265
121265
  /**
@@ -121275,7 +121275,7 @@
121275
121275
  /**
121276
121276
  * Remove zeebe:CalledDecision if zeebe:TaskDefinition is about to be added.
121277
121277
  */
121278
- this.preExecute('element.updateModdleProperties' , HIGH_PRIORITY$7, function(context) {
121278
+ this.preExecute('element.updateModdleProperties' , HIGH_PRIORITY$6, function(context) {
121279
121279
  const {
121280
121280
  element,
121281
121281
  moddleElement,
@@ -121306,7 +121306,7 @@
121306
121306
  /**
121307
121307
  * Remove zeebe:TaskDefinition and zeebe:TaskHeaders if zeebe:CalledDecision is about to be added.
121308
121308
  */
121309
- this.preExecute('element.updateModdleProperties', HIGH_PRIORITY$7, function(context) {
121309
+ this.preExecute('element.updateModdleProperties', HIGH_PRIORITY$6, function(context) {
121310
121310
  const {
121311
121311
  element,
121312
121312
  moddleElement,
@@ -121900,7 +121900,7 @@
121900
121900
  }
121901
121901
  }
121902
121902
 
121903
- const HIGH_PRIORITY$6 = 5000;
121903
+ const HIGH_PRIORITY$5 = 5000;
121904
121904
 
121905
121905
 
121906
121906
  /**
@@ -121914,7 +121914,7 @@
121914
121914
  * Add zeebe:CalledElement extension element with zeebe:propagateAllChildVariables attribute = false
121915
121915
  * when creating bpmn:CallActivity.
121916
121916
  */
121917
- this.postExecuted('shape.create', HIGH_PRIORITY$6, function(context) {
121917
+ this.postExecuted('shape.create', HIGH_PRIORITY$5, function(context) {
121918
121918
  const { shape } = context;
121919
121919
 
121920
121920
  if (!is$6(shape, 'bpmn:CallActivity')) {
@@ -122277,7 +122277,7 @@
122277
122277
  && !properties.values.find(value => is$6(value, type));
122278
122278
  }
122279
122279
 
122280
- const HIGH_PRIORITY$5 = 5000;
122280
+ const HIGH_PRIORITY$4 = 5000;
122281
122281
 
122282
122282
 
122283
122283
  /**
@@ -122288,7 +122288,7 @@
122288
122288
  constructor(commandStack, eventBus) {
122289
122289
  super(eventBus);
122290
122290
 
122291
- this.postExecuted('element.updateModdleProperties' , HIGH_PRIORITY$5, function(context) {
122291
+ this.postExecuted('element.updateModdleProperties' , HIGH_PRIORITY$4, function(context) {
122292
122292
  const {
122293
122293
  element,
122294
122294
  moddleElement
@@ -122320,7 +122320,7 @@
122320
122320
  'eventBus'
122321
122321
  ];
122322
122322
 
122323
- const HIGH_PRIORITY$4 = 5000;
122323
+ const HIGH_PRIORITY$3 = 5000;
122324
122324
 
122325
122325
 
122326
122326
  /**
@@ -122331,7 +122331,7 @@
122331
122331
  constructor(commandStack, eventBus) {
122332
122332
  super(eventBus);
122333
122333
 
122334
- this.postExecuted('element.updateModdleProperties' , HIGH_PRIORITY$4, function(context) {
122334
+ this.postExecuted('element.updateModdleProperties' , HIGH_PRIORITY$3, function(context) {
122335
122335
  const {
122336
122336
  element,
122337
122337
  moddleElement
@@ -122362,7 +122362,7 @@
122362
122362
  'eventBus'
122363
122363
  ];
122364
122364
 
122365
- const HIGH_PRIORITY$3 = 5000;
122365
+ const HIGH_PRIORITY$2 = 5000;
122366
122366
 
122367
122367
 
122368
122368
  /**
@@ -122380,7 +122380,7 @@
122380
122380
  * Remove zeebe:Output elements if zeebe:propagateAllChildVariables is set to true.
122381
122381
  * Remove zeebe:IoMapping extension element if empty.
122382
122382
  */
122383
- this.postExecute('element.updateModdleProperties' , HIGH_PRIORITY$3, function(context) {
122383
+ this.postExecute('element.updateModdleProperties' , HIGH_PRIORITY$2, function(context) {
122384
122384
  const {
122385
122385
  element,
122386
122386
  moddleElement,
@@ -122420,7 +122420,7 @@
122420
122420
  * Set zeebe:propagateAllChildVariables of zeebe:CalledElement to false if
122421
122421
  * zeebe:Output or zeebe:IoMapping with zeebe:Output is added.
122422
122422
  */
122423
- this.preExecute('element.updateModdleProperties' , HIGH_PRIORITY$3, function(context) {
122423
+ this.preExecute('element.updateModdleProperties' , HIGH_PRIORITY$2, function(context) {
122424
122424
  const {
122425
122425
  element,
122426
122426
  moddleElement,
@@ -122504,149 +122504,6 @@
122504
122504
  updatePropagateAllChildVariablesBehavior: [ 'type', UpdatePropagateAllChildVariablesBehavior ]
122505
122505
  };
122506
122506
 
122507
- /**
122508
- * @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
122509
- *
122510
- * @typedef {import('bpmn-js/lib/model/Types').Element} Element
122511
- * @typedef {import('bpmn-js/lib/model/Types').Shape} Shape
122512
- *
122513
- * @typedef {import('diagram-js/lib/util/Types').Point} Point
122514
- */
122515
-
122516
- const HIGH_PRIORITY$2 = 5000;
122517
-
122518
- /**
122519
- * Zeebe rule provider that allows to create boundary events with catch events
122520
- *
122521
- * See {@link CustomRules} for the default implementation
122522
- * of BPMN 2.0 modeling rules provided by bpmn-js.
122523
- */
122524
- class CustomRules extends BpmnRules {
122525
-
122526
- /**
122527
- * @param {EventBus} eventBus
122528
- */
122529
- constructor(eventBus) {
122530
- super(eventBus);
122531
- }
122532
-
122533
- init() {
122534
- super.init();
122535
-
122536
- this.addRule('shape.attach', HIGH_PRIORITY$2,(context) => {
122537
- return canAttach(
122538
- context.shape,
122539
- context.target,
122540
- null,
122541
- context.position);
122542
- });
122543
- }
122544
- }
122545
-
122546
- CustomRules.$inject = [ 'eventBus' ];
122547
-
122548
- /**
122549
- * Zeebe-specific rule that allows attaching intermediate events.
122550
- *
122551
- * @param {Element} elements
122552
- * @param {Shape} target
122553
- * @param {Element} source
122554
- * @param {Point} position
122555
- *
122556
- * @return {boolean|'attach'}
122557
- */
122558
- function canAttach(elements, target, source, position) {
122559
- function isBoundaryEvent(element) {
122560
- return !isLabel$2(element) && is$6(element, 'bpmn:BoundaryEvent');
122561
- }
122562
-
122563
- /**
122564
- * In Zeebe we treat IntermediateCatchEvents as boundary events too,
122565
- * this must be reflected in the rules.
122566
- */
122567
- function isBoundaryCandidate(element) {
122568
- return isBoundaryEvent(element) || (
122569
- (
122570
- is$6(element, 'bpmn:IntermediateCatchEvent') ||
122571
- is$6(element, 'bpmn:IntermediateThrowEvent')
122572
- ) && !element.parent
122573
- );
122574
- }
122575
-
122576
- function isForCompensation(e) {
122577
- return getBusinessObject$2(e).isForCompensation;
122578
- }
122579
-
122580
- function isReceiveTaskAfterEventBasedGateway(element) {
122581
- return (
122582
- is$6(element, 'bpmn:ReceiveTask') &&
122583
- find$2(element.incoming, function(incoming) {
122584
- return is$6(incoming.source, 'bpmn:EventBasedGateway');
122585
- })
122586
- );
122587
- }
122588
-
122589
- if (!Array.isArray(elements)) {
122590
- elements = [ elements ];
122591
- }
122592
-
122593
- // disallow appending as boundary event
122594
- if (source) {
122595
- return false;
122596
- }
122597
-
122598
- // only (re-)attach one element at a time
122599
- if (elements.length !== 1) {
122600
- return false;
122601
- }
122602
-
122603
- const element = elements[0];
122604
-
122605
- // do not attach labels
122606
- if (isLabel$2(element)) {
122607
- return false;
122608
- }
122609
-
122610
- // only handle boundary events
122611
- if (!isBoundaryCandidate(element)) {
122612
- return false;
122613
- }
122614
-
122615
- // allow default move operation
122616
- if (!target) {
122617
- return true;
122618
- }
122619
-
122620
- // disallow drop on event sub processes
122621
- if (isEventSubProcess(target)) {
122622
- return false;
122623
- }
122624
-
122625
- // only allow drop on non compensation activities
122626
- if (!is$6(target, 'bpmn:Activity') || isForCompensation(target)) {
122627
- return false;
122628
- }
122629
-
122630
- // only attach to subprocess border
122631
- if (position && !getBoundaryAttachment(position, target)) {
122632
- return false;
122633
- }
122634
-
122635
- // do not attach on receive tasks after event based gateways
122636
- if (isReceiveTaskAfterEventBasedGateway(target)) {
122637
- return false;
122638
- }
122639
-
122640
- return 'attach';
122641
- }
122642
-
122643
- CustomRules.canAttach = canAttach;
122644
-
122645
- var rulesModule = {
122646
- __init__: [ 'bpmnRules' ],
122647
- bpmnRules: [ 'type', CustomRules ]
122648
- };
122649
-
122650
122507
  // Unique ID creation requires a high quality random # generator. In the browser we therefore
122651
122508
  // require the crypto API and do not support built-in fallback to lower quality random number
122652
122509
  // generators (like Math.random()).
@@ -148547,7 +148404,6 @@
148547
148404
  Modeler.prototype._camundaCloudModules = [
148548
148405
  ...commonModules,
148549
148406
  behaviorsModule,
148550
- rulesModule,
148551
148407
  index$1$2,
148552
148408
  index$1$1,
148553
148409
  index$1,