bpmn-js 11.3.0 → 11.3.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-modeler v11.3.0
2
+ * bpmn-js - bpmn-modeler v11.3.1
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: 2023-02-07
11
+ * Date: 2023-02-08
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -20760,7 +20760,7 @@
20760
20760
  return isPrimaryButton(event) || isAuxiliaryButton(event);
20761
20761
  }
20762
20762
 
20763
- var LOW_PRIORITY$q = 500;
20763
+ var LOW_PRIORITY$r = 500;
20764
20764
 
20765
20765
 
20766
20766
  /**
@@ -20955,7 +20955,7 @@
20955
20955
  eventBus.on([
20956
20956
  'shape.changed',
20957
20957
  'connection.changed'
20958
- ], LOW_PRIORITY$q, function(event) {
20958
+ ], LOW_PRIORITY$r, function(event) {
20959
20959
 
20960
20960
  var element = event.element,
20961
20961
  gfx = event.gfx;
@@ -20963,7 +20963,7 @@
20963
20963
  eventBus.fire('interactionEvents.updateHit', { element: element, gfx: gfx });
20964
20964
  });
20965
20965
 
20966
- eventBus.on('interactionEvents.createHit', LOW_PRIORITY$q, function(event) {
20966
+ eventBus.on('interactionEvents.createHit', LOW_PRIORITY$r, function(event) {
20967
20967
  var element = event.element,
20968
20968
  gfx = event.gfx;
20969
20969
 
@@ -21240,7 +21240,7 @@
21240
21240
  interactionEvents: [ 'type', InteractionEvents ]
21241
21241
  };
21242
21242
 
21243
- var LOW_PRIORITY$p = 500;
21243
+ var LOW_PRIORITY$q = 500;
21244
21244
 
21245
21245
 
21246
21246
  /**
@@ -21279,7 +21279,7 @@
21279
21279
 
21280
21280
  // A low priortity is necessary, because outlines of labels have to be updated
21281
21281
  // after the label bounds have been updated in the renderer.
21282
- eventBus.on([ 'shape.added', 'shape.changed' ], LOW_PRIORITY$p, function(event) {
21282
+ eventBus.on([ 'shape.added', 'shape.changed' ], LOW_PRIORITY$q, function(event) {
21283
21283
  var element = event.element,
21284
21284
  gfx = event.gfx;
21285
21285
 
@@ -21725,7 +21725,7 @@
21725
21725
  // document wide unique overlay ids
21726
21726
  var ids$1 = new IdGenerator('ov');
21727
21727
 
21728
- var LOW_PRIORITY$o = 500;
21728
+ var LOW_PRIORITY$p = 500;
21729
21729
 
21730
21730
 
21731
21731
  /**
@@ -22297,7 +22297,7 @@
22297
22297
 
22298
22298
  // move integration
22299
22299
 
22300
- eventBus.on('element.changed', LOW_PRIORITY$o, function(e) {
22300
+ eventBus.on('element.changed', LOW_PRIORITY$p, function(e) {
22301
22301
  var element = e.element;
22302
22302
 
22303
22303
  var container = self._getOverlayContainer(element, true);
@@ -23257,7 +23257,7 @@
23257
23257
  return true;
23258
23258
  }
23259
23259
 
23260
- var LOW_PRIORITY$n = 250;
23260
+ var LOW_PRIORITY$o = 250;
23261
23261
  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>';
23262
23262
 
23263
23263
  var EMPTY_MARKER = 'bjs-drilldown-empty';
@@ -23274,7 +23274,7 @@
23274
23274
 
23275
23275
  var self = this;
23276
23276
 
23277
- this.executed('shape.toggleCollapse', LOW_PRIORITY$n, function(context) {
23277
+ this.executed('shape.toggleCollapse', LOW_PRIORITY$o, function(context) {
23278
23278
  var shape = context.shape;
23279
23279
 
23280
23280
  // Add overlay to the collapsed shape
@@ -23286,7 +23286,7 @@
23286
23286
  }, true);
23287
23287
 
23288
23288
 
23289
- this.reverted('shape.toggleCollapse', LOW_PRIORITY$n, function(context) {
23289
+ this.reverted('shape.toggleCollapse', LOW_PRIORITY$o, function(context) {
23290
23290
  var shape = context.shape;
23291
23291
 
23292
23292
  // Add overlay to the collapsed shape
@@ -23298,7 +23298,7 @@
23298
23298
  }, true);
23299
23299
 
23300
23300
 
23301
- this.executed([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY$n,
23301
+ this.executed([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY$o,
23302
23302
  function(context) {
23303
23303
  var oldParent = context.oldParent,
23304
23304
  newParent = context.newParent || context.parent,
@@ -23315,7 +23315,7 @@
23315
23315
  }, true);
23316
23316
 
23317
23317
 
23318
- this.reverted([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY$n,
23318
+ this.reverted([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY$o,
23319
23319
  function(context) {
23320
23320
  var oldParent = context.oldParent,
23321
23321
  newParent = context.newParent || context.parent,
@@ -23768,7 +23768,7 @@
23768
23768
  return target && (matches(target, 'input, textarea') || target.contentEditable === 'true');
23769
23769
  }
23770
23770
 
23771
- var LOW_PRIORITY$m = 500;
23771
+ var LOW_PRIORITY$n = 500;
23772
23772
 
23773
23773
 
23774
23774
  /**
@@ -23784,7 +23784,7 @@
23784
23784
 
23785
23785
  var self = this;
23786
23786
 
23787
- eventBus.on('editorActions.init', LOW_PRIORITY$m, function(event) {
23787
+ eventBus.on('editorActions.init', LOW_PRIORITY$n, function(event) {
23788
23788
 
23789
23789
  var editorActions = event.editorActions;
23790
23790
 
@@ -29265,14 +29265,14 @@
29265
29265
 
29266
29266
  var ICONS$1 = icons$1;
29267
29267
 
29268
- var LOW_PRIORITY$l = 900;
29268
+ var LOW_PRIORITY$m = 900;
29269
29269
 
29270
29270
  /**
29271
29271
  * A provider for align elements context pad button
29272
29272
  */
29273
29273
  function AlignElementsContextPadProvider(contextPad, popupMenu, translate, canvas) {
29274
29274
 
29275
- contextPad.registerProvider(LOW_PRIORITY$l, this);
29275
+ contextPad.registerProvider(LOW_PRIORITY$m, this);
29276
29276
 
29277
29277
  this._contextPad = contextPad;
29278
29278
  this._popupMenu = popupMenu;
@@ -29826,7 +29826,7 @@
29826
29826
  return true;
29827
29827
  }
29828
29828
 
29829
- var LOW_PRIORITY$k = 100;
29829
+ var LOW_PRIORITY$l = 100;
29830
29830
 
29831
29831
 
29832
29832
  /**
@@ -29838,7 +29838,7 @@
29838
29838
  */
29839
29839
  function AutoPlace$1(eventBus, modeling, canvas) {
29840
29840
 
29841
- eventBus.on('autoPlace', LOW_PRIORITY$k, function(context) {
29841
+ eventBus.on('autoPlace', LOW_PRIORITY$l, function(context) {
29842
29842
  var shape = context.shape,
29843
29843
  source = context.source;
29844
29844
 
@@ -33550,7 +33550,7 @@
33550
33550
  }
33551
33551
 
33552
33552
  var HIGH_PRIORITY$h = 1100,
33553
- LOW_PRIORITY$j = 900;
33553
+ LOW_PRIORITY$k = 900;
33554
33554
 
33555
33555
  var MARKER_OK$3 = 'connect-ok',
33556
33556
  MARKER_NOT_OK$3 = 'connect-not-ok';
@@ -33594,7 +33594,7 @@
33594
33594
  });
33595
33595
  });
33596
33596
 
33597
- eventBus.on('connect.hover', LOW_PRIORITY$j, function(event) {
33597
+ eventBus.on('connect.hover', LOW_PRIORITY$k, function(event) {
33598
33598
  var context = event.context,
33599
33599
  hover = event.hover,
33600
33600
  canExecute = context.canExecute;
@@ -35152,7 +35152,7 @@
35152
35152
  return !!element.labelTarget;
35153
35153
  }
35154
35154
 
35155
- var LOW_PRIORITY$i = 750;
35155
+ var LOW_PRIORITY$j = 750;
35156
35156
 
35157
35157
 
35158
35158
  function CreatePreview(
@@ -35197,7 +35197,7 @@
35197
35197
  return dragGroup;
35198
35198
  }
35199
35199
 
35200
- eventBus.on('create.move', LOW_PRIORITY$i, function(event) {
35200
+ eventBus.on('create.move', LOW_PRIORITY$j, function(event) {
35201
35201
 
35202
35202
  var hover = event.hover,
35203
35203
  context = event.context,
@@ -35979,7 +35979,7 @@
35979
35979
  });
35980
35980
  }
35981
35981
 
35982
- var LOW_PRIORITY$h = 750;
35982
+ var LOW_PRIORITY$i = 750;
35983
35983
 
35984
35984
 
35985
35985
  function BpmnCopyPaste(bpmnFactory, eventBus, moddleCopy) {
@@ -35990,7 +35990,7 @@
35990
35990
  return moddleCopy.copyElement(bo, targetBo, null, clone);
35991
35991
  }
35992
35992
 
35993
- eventBus.on('copyPaste.copyElement', LOW_PRIORITY$h, function(context) {
35993
+ eventBus.on('copyPaste.copyElement', LOW_PRIORITY$i, function(context) {
35994
35994
  var descriptor = context.descriptor,
35995
35995
  element = context.element,
35996
35996
  businessObject = getBusinessObject(element);
@@ -36087,7 +36087,7 @@
36087
36087
 
36088
36088
  // copy + paste processRef with participant
36089
36089
 
36090
- eventBus.on('copyPaste.copyElement', LOW_PRIORITY$h, function(context) {
36090
+ eventBus.on('copyPaste.copyElement', LOW_PRIORITY$i, function(context) {
36091
36091
  var descriptor = context.descriptor,
36092
36092
  element = context.element;
36093
36093
 
@@ -36113,7 +36113,7 @@
36113
36113
 
36114
36114
  // resolve references
36115
36115
 
36116
- eventBus.on('copyPaste.pasteElement', LOW_PRIORITY$h, function(context) {
36116
+ eventBus.on('copyPaste.pasteElement', LOW_PRIORITY$i, function(context) {
36117
36117
  var cache = context.cache,
36118
36118
  descriptor = context.descriptor;
36119
36119
 
@@ -40373,12 +40373,13 @@
40373
40373
  * A palette provider for the create elements menu.
40374
40374
  */
40375
40375
  function CreatePaletteProvider(palette, translate, popupMenu, canvas, mouse) {
40376
+
40376
40377
  this._translate = translate;
40377
40378
  this._popupMenu = popupMenu;
40378
40379
  this._canvas = canvas;
40379
40380
  this._mouse = mouse;
40380
40381
 
40381
- palette.registerProvider(this);
40382
+ palette.registerProvider(800,this);
40382
40383
  }
40383
40384
 
40384
40385
  CreatePaletteProvider.$inject = [
@@ -40391,8 +40392,7 @@
40391
40392
 
40392
40393
 
40393
40394
  CreatePaletteProvider.prototype.getPaletteEntries = function(element) {
40394
- const actions = {},
40395
- translate = this._translate,
40395
+ const translate = this._translate,
40396
40396
  popupMenu = this._popupMenu,
40397
40397
  canvas = this._canvas,
40398
40398
  mouse = this._mouse;
@@ -40415,7 +40415,7 @@
40415
40415
  };
40416
40416
  };
40417
40417
 
40418
- assign$1(actions, {
40418
+ return {
40419
40419
  'create': {
40420
40420
  group: 'create',
40421
40421
  imageUrl: createIcon,
@@ -40433,10 +40433,8 @@
40433
40433
  });
40434
40434
  }
40435
40435
  }
40436
- },
40437
- });
40438
-
40439
- return actions;
40436
+ }
40437
+ };
40440
40438
  };
40441
40439
 
40442
40440
  /**
@@ -40757,16 +40755,18 @@
40757
40755
  return true;
40758
40756
  };
40759
40757
 
40758
+ var LOW_PRIORITY$h = 900;
40759
+
40760
40760
  /**
40761
40761
  * A provider for align elements context pad button
40762
40762
  */
40763
40763
  function AppendContextPadProvider(contextPad, popupMenu, translate, canvas) {
40764
+ contextPad.registerProvider(LOW_PRIORITY$h, this);
40765
+
40764
40766
  this._contextPad = contextPad;
40765
40767
  this._popupMenu = popupMenu;
40766
40768
  this._translate = translate;
40767
40769
  this._canvas = canvas;
40768
-
40769
- contextPad.registerProvider(this);
40770
40770
  }
40771
40771
 
40772
40772
  AppendContextPadProvider.$inject = [
@@ -40783,7 +40783,7 @@
40783
40783
 
40784
40784
  if (!popupMenu.isEmpty(element, 'bpmn-append')) {
40785
40785
 
40786
- // Replace menu entry
40786
+ // append menu entry
40787
40787
  return {
40788
40788
  'append': {
40789
40789
  group: 'model',