bpmn-js 17.4.0 → 17.5.0

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 v17.4.0
2
+ * bpmn-js - bpmn-modeler v17.5.0
3
3
  *
4
4
  * Copyright (c) 2014-present, camunda Services GmbH
5
5
  *
@@ -16254,8 +16254,6 @@
16254
16254
  }
16255
16255
 
16256
16256
  /**
16257
- * @typedef {import('diagram-js/lib/i18n/translate/translate').default} Translate
16258
- *
16259
16257
  * @typedef {import('../model/Types').ModdleElement} ModdleElement
16260
16258
  */
16261
16259
 
@@ -16288,9 +16286,8 @@
16288
16286
 
16289
16287
  /**
16290
16288
  * @param {Record<'element' | 'root' | 'error', Function>} handler
16291
- * @param {Translate} translate
16292
16289
  */
16293
- function BpmnTreeWalker(handler, translate) {
16290
+ function BpmnTreeWalker(handler) {
16294
16291
 
16295
16292
  // list of containers already walked
16296
16293
  var handledElements = {};
@@ -16324,7 +16321,7 @@
16324
16321
  // avoid multiple rendering of elements
16325
16322
  if (gfx) {
16326
16323
  throw new Error(
16327
- translate('already rendered {element}', { element: elementToString(element) })
16324
+ 'already rendered ${ elementToString(element) }'
16328
16325
  );
16329
16326
  }
16330
16327
 
@@ -16344,11 +16341,10 @@
16344
16341
  handled(element);
16345
16342
 
16346
16343
  return gfx;
16347
- } catch (e) {
16348
- logError(e.message, { element: element, error: e });
16344
+ } catch (error) {
16345
+ logError(error.message, { element, error });
16349
16346
 
16350
- console.error(translate('failed to import {element}', { element: elementToString(element) }));
16351
- console.error(e);
16347
+ console.error(`failed to import ${ elementToString(element) }`, error);
16352
16348
  }
16353
16349
  }
16354
16350
 
@@ -16364,9 +16360,7 @@
16364
16360
  if (bpmnElement) {
16365
16361
  if (diMap[bpmnElement.id]) {
16366
16362
  logError(
16367
- translate('multiple DI elements defined for {element}', {
16368
- element: elementToString(bpmnElement)
16369
- }),
16363
+ `multiple DI elements defined for ${ elementToString(bpmnElement) }`,
16370
16364
  { element: bpmnElement }
16371
16365
  );
16372
16366
  } else {
@@ -16376,9 +16370,7 @@
16376
16370
  }
16377
16371
  } else {
16378
16372
  logError(
16379
- translate('no bpmnElement referenced in {element}', {
16380
- element: elementToString(di)
16381
- }),
16373
+ `no bpmnElement referenced in ${ elementToString(di) }`,
16382
16374
  { element: di }
16383
16375
  );
16384
16376
  }
@@ -16416,7 +16408,7 @@
16416
16408
  var diagrams = definitions.diagrams;
16417
16409
 
16418
16410
  if (diagram && diagrams.indexOf(diagram) === -1) {
16419
- throw new Error(translate('diagram not part of bpmn:Definitions'));
16411
+ throw new Error('diagram not part of <bpmn:Definitions />');
16420
16412
  }
16421
16413
 
16422
16414
  if (!diagram && diagrams && diagrams.length) {
@@ -16425,7 +16417,7 @@
16425
16417
 
16426
16418
  // no diagram -> nothing to import
16427
16419
  if (!diagram) {
16428
- throw new Error(translate('no diagram to display'));
16420
+ throw new Error('no diagram to display');
16429
16421
  }
16430
16422
 
16431
16423
  // load DI from selected diagram only
@@ -16436,10 +16428,9 @@
16436
16428
  var plane = diagram.plane;
16437
16429
 
16438
16430
  if (!plane) {
16439
- throw new Error(translate(
16440
- 'no plane for {element}',
16441
- { element: elementToString(diagram) }
16442
- ));
16431
+ throw new Error(
16432
+ `no plane for ${ elementToString(diagram) }`
16433
+ );
16443
16434
  }
16444
16435
 
16445
16436
  var rootElement = plane.bpmnElement;
@@ -16450,14 +16441,11 @@
16450
16441
  rootElement = findDisplayCandidate(definitions);
16451
16442
 
16452
16443
  if (!rootElement) {
16453
- throw new Error(translate('no process or collaboration to display'));
16444
+ throw new Error('no process or collaboration to display');
16454
16445
  } else {
16455
16446
 
16456
16447
  logError(
16457
- translate('correcting missing bpmnElement on {plane} to {rootElement}', {
16458
- plane: elementToString(plane),
16459
- rootElement: elementToString(rootElement)
16460
- })
16448
+ `correcting missing bpmnElement on ${ elementToString(plane) } to ${ elementToString(rootElement) }`
16461
16449
  );
16462
16450
 
16463
16451
  // correct DI on the fly
@@ -16478,10 +16466,7 @@
16478
16466
  handleUnhandledProcesses(definitions.rootElements, ctx);
16479
16467
  } else {
16480
16468
  throw new Error(
16481
- translate('unsupported bpmnElement for {plane}: {rootElement}', {
16482
- plane: elementToString(plane),
16483
- rootElement: elementToString(rootElement)
16484
- })
16469
+ `unsupported bpmnElement for ${ elementToString(plane) }: ${ elementToString(rootElement) }`
16485
16470
  );
16486
16471
  }
16487
16472
 
@@ -16643,28 +16628,28 @@
16643
16628
  }
16644
16629
 
16645
16630
  function handleFlowElements(flowElements, context) {
16646
- forEach$1(flowElements, function(e) {
16647
- if (is$2(e, 'bpmn:SequenceFlow')) {
16631
+ forEach$1(flowElements, function(flowElement) {
16632
+ if (is$2(flowElement, 'bpmn:SequenceFlow')) {
16648
16633
  deferred.push(function() {
16649
- handleSequenceFlow(e, context);
16634
+ handleSequenceFlow(flowElement, context);
16650
16635
  });
16651
- } else if (is$2(e, 'bpmn:BoundaryEvent')) {
16636
+ } else if (is$2(flowElement, 'bpmn:BoundaryEvent')) {
16652
16637
  deferred.unshift(function() {
16653
- handleFlowNode(e, context);
16638
+ handleFlowNode(flowElement, context);
16654
16639
  });
16655
- } else if (is$2(e, 'bpmn:FlowNode')) {
16656
- handleFlowNode(e, context);
16657
- } else if (is$2(e, 'bpmn:DataObject')) ; else if (is$2(e, 'bpmn:DataStoreReference')) {
16658
- handleDataElement(e, context);
16659
- } else if (is$2(e, 'bpmn:DataObjectReference')) {
16660
- handleDataElement(e, context);
16640
+ } else if (is$2(flowElement, 'bpmn:FlowNode')) {
16641
+ handleFlowNode(flowElement, context);
16642
+ } else if (is$2(flowElement, 'bpmn:DataObject')) ; else if (is$2(flowElement, 'bpmn:DataStoreReference')) {
16643
+ handleDataElement(flowElement, context);
16644
+ } else if (is$2(flowElement, 'bpmn:DataObjectReference')) {
16645
+ handleDataElement(flowElement, context);
16661
16646
  } else {
16662
16647
  logError(
16663
- translate('unrecognized flowElement {element} in context {context}', {
16664
- element: elementToString(e),
16665
- context: (context ? elementToString(context.businessObject) : 'null')
16666
- }),
16667
- { element: e, context: context }
16648
+ `unrecognized flowElement ${ elementToString(flowElement) } in context ${ elementToString(context && context.businessObject) }`,
16649
+ {
16650
+ element: flowElement,
16651
+ context
16652
+ }
16668
16653
  );
16669
16654
  }
16670
16655
  });
@@ -16787,7 +16772,6 @@
16787
16772
 
16788
16773
  var importer,
16789
16774
  eventBus,
16790
- translate,
16791
16775
  canvas;
16792
16776
 
16793
16777
  var error,
@@ -16817,7 +16801,7 @@
16817
16801
  }
16818
16802
  };
16819
16803
 
16820
- var walker = new BpmnTreeWalker(visitor, translate);
16804
+ var walker = new BpmnTreeWalker(visitor);
16821
16805
 
16822
16806
 
16823
16807
  bpmnDiagram = bpmnDiagram || (definitions.diagrams && definitions.diagrams[0]);
@@ -16825,7 +16809,7 @@
16825
16809
  var diagramsToImport = getDiagramsToImport(definitions, bpmnDiagram);
16826
16810
 
16827
16811
  if (!diagramsToImport) {
16828
- throw new Error(translate('no diagram to display'));
16812
+ throw new Error('no diagram to display');
16829
16813
  }
16830
16814
 
16831
16815
  // traverse BPMN 2.0 document model,
@@ -16848,7 +16832,6 @@
16848
16832
  try {
16849
16833
  importer = diagram.get('bpmnImporter');
16850
16834
  eventBus = diagram.get('eventBus');
16851
- translate = diagram.get('translate');
16852
16835
  canvas = diagram.get('canvas');
16853
16836
 
16854
16837
  eventBus.fire('import.render.start', { definitions: definitions });
@@ -21875,7 +21858,6 @@
21875
21858
  * @typedef {import('diagram-js/lib/core/Canvas').default} Canvas
21876
21859
  * @typedef {import('diagram-js/lib/core/ElementRegistry').default} ElementRegistry
21877
21860
  * @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
21878
- * @typedef {import('diagram-js/lib/i18n/translate/translate').default} Translate
21879
21861
  *
21880
21862
  * @typedef {import('../features/modeling/ElementFactory').default} ElementFactory
21881
21863
  * @typedef {import('../draw/TextRenderer').default} TextRenderer
@@ -21917,12 +21899,10 @@
21917
21899
  });
21918
21900
  }
21919
21901
 
21920
- function notYetDrawn(translate, semantic, refSemantic, property) {
21921
- return new Error(translate('element {element} referenced by {referenced}#{property} not yet drawn', {
21922
- element: elementToString(refSemantic),
21923
- referenced: elementToString(semantic),
21924
- property: property
21925
- }));
21902
+ function notYetDrawn(semantic, refSemantic, property) {
21903
+ return new Error(
21904
+ `element ${ elementToString(refSemantic) } referenced by ${ elementToString(semantic) }#${ property } not yet drawn`
21905
+ );
21926
21906
  }
21927
21907
 
21928
21908
 
@@ -21933,18 +21913,16 @@
21933
21913
  * @param {Canvas} canvas
21934
21914
  * @param {ElementFactory} elementFactory
21935
21915
  * @param {ElementRegistry} elementRegistry
21936
- * @param {Function} translate
21937
21916
  * @param {TextRenderer} textRenderer
21938
21917
  */
21939
21918
  function BpmnImporter(
21940
21919
  eventBus, canvas, elementFactory,
21941
- elementRegistry, translate, textRenderer) {
21920
+ elementRegistry, textRenderer) {
21942
21921
 
21943
21922
  this._eventBus = eventBus;
21944
21923
  this._canvas = canvas;
21945
21924
  this._elementFactory = elementFactory;
21946
21925
  this._elementRegistry = elementRegistry;
21947
- this._translate = translate;
21948
21926
  this._textRenderer = textRenderer;
21949
21927
  }
21950
21928
 
@@ -21953,7 +21931,6 @@
21953
21931
  'canvas',
21954
21932
  'elementFactory',
21955
21933
  'elementRegistry',
21956
- 'translate',
21957
21934
  'textRenderer'
21958
21935
  ];
21959
21936
 
@@ -21970,7 +21947,6 @@
21970
21947
  */
21971
21948
  BpmnImporter.prototype.add = function(semantic, di, parentElement) {
21972
21949
  var element,
21973
- translate = this._translate,
21974
21950
  hidden;
21975
21951
 
21976
21952
  var parentIndex;
@@ -22056,10 +22032,9 @@
22056
22032
 
22057
22033
  this._canvas.addConnection(element, parentElement, parentIndex);
22058
22034
  } else {
22059
- throw new Error(translate('unknown di {di} for element {semantic}', {
22060
- di: elementToString(di),
22061
- semantic: elementToString(semantic)
22062
- }));
22035
+ throw new Error(
22036
+ `unknown di ${ elementToString(di) } for element ${ elementToString(semantic) }`
22037
+ );
22063
22038
  }
22064
22039
 
22065
22040
  // (optional) LABEL
@@ -22067,7 +22042,6 @@
22067
22042
  this.addLabel(semantic, di, element);
22068
22043
  }
22069
22044
 
22070
-
22071
22045
  this._eventBus.fire('bpmnElement.added', { element: element });
22072
22046
 
22073
22047
  return element;
@@ -22081,20 +22055,19 @@
22081
22055
  * @param {Shape} boundaryElement
22082
22056
  */
22083
22057
  BpmnImporter.prototype._attachBoundary = function(boundarySemantic, boundaryElement) {
22084
- var translate = this._translate;
22085
22058
  var hostSemantic = boundarySemantic.attachedToRef;
22086
22059
 
22087
22060
  if (!hostSemantic) {
22088
- throw new Error(translate('missing {semantic}#attachedToRef', {
22089
- semantic: elementToString(boundarySemantic)
22090
- }));
22061
+ throw new Error(
22062
+ `missing ${ elementToString(boundarySemantic) }#attachedToRef`
22063
+ );
22091
22064
  }
22092
22065
 
22093
22066
  var host = this._elementRegistry.get(hostSemantic.id),
22094
22067
  attachers = host && host.attachers;
22095
22068
 
22096
22069
  if (!host) {
22097
- throw notYetDrawn(translate, boundarySemantic, hostSemantic, 'attachedToRef');
22070
+ throw notYetDrawn(boundarySemantic, hostSemantic, 'attachedToRef');
22098
22071
  }
22099
22072
 
22100
22073
  // wire element.host <> host.attachers
@@ -22160,8 +22133,7 @@
22160
22133
 
22161
22134
  var element,
22162
22135
  refSemantic,
22163
- type = semantic.$type,
22164
- translate = this._translate;
22136
+ type = semantic.$type;
22165
22137
 
22166
22138
  refSemantic = semantic[side + 'Ref'];
22167
22139
 
@@ -22184,12 +22156,11 @@
22184
22156
  }
22185
22157
 
22186
22158
  if (refSemantic) {
22187
- throw notYetDrawn(translate, semantic, refSemantic, side + 'Ref');
22159
+ throw notYetDrawn(semantic, refSemantic, side + 'Ref');
22188
22160
  } else {
22189
- throw new Error(translate('{semantic}#{side} Ref not specified', {
22190
- semantic: elementToString(semantic),
22191
- side: side
22192
- }));
22161
+ throw new Error(
22162
+ `${ elementToString(semantic) }#${ side } Ref not specified`
22163
+ );
22193
22164
  }
22194
22165
  };
22195
22166
 
@@ -40760,7 +40731,6 @@
40760
40731
  /**
40761
40732
  * @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
40762
40733
  * @typedef {import('../Modeling').default} Modeling
40763
- * @typedef {import('diagram-js/lib/i18n/translate/translate').default} Translate
40764
40734
  */
40765
40735
 
40766
40736
  var LOW_PRIORITY$c = 500,
@@ -40772,9 +40742,8 @@
40772
40742
  *
40773
40743
  * @param {EventBus} eventBus
40774
40744
  * @param {Modeling} modeling
40775
- * @param {Translate} translate
40776
40745
  */
40777
- function UpdateFlowNodeRefsBehavior(eventBus, modeling, translate) {
40746
+ function UpdateFlowNodeRefsBehavior(eventBus, modeling) {
40778
40747
 
40779
40748
  CommandInterceptor.call(this, eventBus);
40780
40749
 
@@ -40797,7 +40766,7 @@
40797
40766
 
40798
40767
  function getContext() {
40799
40768
  if (!context) {
40800
- throw new Error(translate('out of bounds release'));
40769
+ throw new Error('out of bounds release');
40801
40770
  }
40802
40771
 
40803
40772
  return context;
@@ -40806,7 +40775,7 @@
40806
40775
  function releaseContext() {
40807
40776
 
40808
40777
  if (!context) {
40809
- throw new Error(translate('out of bounds release'));
40778
+ throw new Error('out of bounds release');
40810
40779
  }
40811
40780
 
40812
40781
  var triggerUpdate = context.leave();
@@ -40878,8 +40847,7 @@
40878
40847
 
40879
40848
  UpdateFlowNodeRefsBehavior.$inject = [
40880
40849
  'eventBus',
40881
- 'modeling' ,
40882
- 'translate'
40850
+ 'modeling'
40883
40851
  ];
40884
40852
 
40885
40853
  e$2(UpdateFlowNodeRefsBehavior, CommandInterceptor);
@@ -42329,7 +42297,6 @@
42329
42297
  /**
42330
42298
  * @typedef {import('diagram-js/lib/core/Canvas').default} Canvas
42331
42299
  * @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
42332
- * @typedef {import('diagram-js/i18n/translate/translate').default} Translate
42333
42300
  */
42334
42301
 
42335
42302
  /**
@@ -42337,9 +42304,8 @@
42337
42304
  *
42338
42305
  * @param {EventBus} eventBus
42339
42306
  * @param {Canvas} canvas
42340
- * @param {Translate} translate
42341
42307
  */
42342
- function BpmnOrderingProvider(eventBus, canvas, translate) {
42308
+ function BpmnOrderingProvider(eventBus, canvas) {
42343
42309
 
42344
42310
  OrderingProvider.call(this, eventBus);
42345
42311
 
@@ -42503,14 +42469,11 @@
42503
42469
  };
42504
42470
  }
42505
42471
 
42506
- BpmnOrderingProvider.$inject = [ 'eventBus', 'canvas', 'translate' ];
42472
+ BpmnOrderingProvider.$inject = [ 'eventBus', 'canvas' ];
42507
42473
 
42508
42474
  e$2(BpmnOrderingProvider, OrderingProvider);
42509
42475
 
42510
42476
  var OrderingModule = {
42511
- __depends__: [
42512
- TranslateModule
42513
- ],
42514
42477
  __init__: [ 'bpmnOrderingProvider' ],
42515
42478
  bpmnOrderingProvider: [ 'type', BpmnOrderingProvider ]
42516
42479
  };
@@ -47161,7 +47124,6 @@
47161
47124
  * @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
47162
47125
  * @typedef {import('./BpmnFactory').default} BpmnFactory
47163
47126
  * @typedef {import('diagram-js/lib/layout/CroppingConnectionDocking').default} CroppingConnectionDocking
47164
- * @typedef {import('diagram-js/lib/i18n/translate/translate').default} Translate
47165
47127
  *
47166
47128
  * @typedef {import('../../model/Types').Connection} Connection
47167
47129
  * @typedef {import('../../model/Types').Element} Element
@@ -47177,24 +47139,20 @@
47177
47139
  * @param {EventBus} eventBus
47178
47140
  * @param {BpmnFactory} bpmnFactory
47179
47141
  * @param {CroppingConnectionDocking} connectionDocking
47180
- * @param {Translate} translate
47181
47142
  */
47182
47143
  function BpmnUpdater(
47183
47144
  eventBus,
47184
47145
  bpmnFactory,
47185
- connectionDocking,
47186
- translate
47146
+ connectionDocking
47187
47147
  ) {
47188
47148
 
47189
47149
  CommandInterceptor.call(this, eventBus);
47190
47150
 
47191
47151
  this._bpmnFactory = bpmnFactory;
47192
- this._translate = translate;
47193
47152
 
47194
47153
  var self = this;
47195
47154
 
47196
47155
 
47197
-
47198
47156
  // connection cropping //////////////////////
47199
47157
 
47200
47158
  // crop connection ends during create/update
@@ -47449,8 +47407,7 @@
47449
47407
  BpmnUpdater.$inject = [
47450
47408
  'eventBus',
47451
47409
  'bpmnFactory',
47452
- 'connectionDocking',
47453
- 'translate'
47410
+ 'connectionDocking'
47454
47411
  ];
47455
47412
 
47456
47413
 
@@ -47689,8 +47646,7 @@
47689
47646
  */
47690
47647
  BpmnUpdater.prototype.updateSemanticParent = function(businessObject, newParent, visualParent) {
47691
47648
 
47692
- var containment,
47693
- translate = this._translate;
47649
+ var containment;
47694
47650
 
47695
47651
  if (businessObject.$parent === newParent) {
47696
47652
  return;
@@ -47795,13 +47751,7 @@
47795
47751
  }
47796
47752
 
47797
47753
  if (!containment) {
47798
- throw new Error(translate(
47799
- 'no parent for {element} in {parent}',
47800
- {
47801
- element: businessObject.id,
47802
- parent: newParent.id
47803
- }
47804
- ));
47754
+ throw new Error(`no parent for <${ businessObject.id }> in <${ newParent.id }>`);
47805
47755
  }
47806
47756
 
47807
47757
  var children;
@@ -47978,8 +47928,6 @@
47978
47928
  }
47979
47929
 
47980
47930
  /**
47981
- * @typedef {import('diagram-js/lib/i18n/translate/translate').default} Translate
47982
- *
47983
47931
  * @typedef {import('diagram-js/lib/util/Types').Dimensions} Dimensions
47984
47932
  *
47985
47933
  * @typedef {import('./BpmnFactory').default} BpmnFactory
@@ -48006,22 +47954,19 @@
48006
47954
  *
48007
47955
  * @param {BpmnFactory} bpmnFactory
48008
47956
  * @param {Moddle} moddle
48009
- * @param {Translate} translate
48010
47957
  */
48011
- function ElementFactory(bpmnFactory, moddle, translate) {
47958
+ function ElementFactory(bpmnFactory, moddle) {
48012
47959
  ElementFactory$1.call(this);
48013
47960
 
48014
47961
  this._bpmnFactory = bpmnFactory;
48015
47962
  this._moddle = moddle;
48016
- this._translate = translate;
48017
47963
  }
48018
47964
 
48019
47965
  e$2(ElementFactory, ElementFactory$1);
48020
47966
 
48021
47967
  ElementFactory.$inject = [
48022
47968
  'bpmnFactory',
48023
- 'moddle',
48024
- 'translate'
47969
+ 'moddle'
48025
47970
  ];
48026
47971
 
48027
47972
  ElementFactory.prototype._baseCreate = ElementFactory$1.prototype.create;
@@ -48099,17 +48044,17 @@
48099
48044
  * @return {T}
48100
48045
  */
48101
48046
  ElementFactory.prototype.createElement = function(elementType, attrs) {
48102
- var size,
48103
- translate = this._translate;
48104
48047
 
48105
48048
  attrs = assign$1({}, attrs || {});
48106
48049
 
48050
+ var size;
48051
+
48107
48052
  var businessObject = attrs.businessObject,
48108
48053
  di = attrs.di;
48109
48054
 
48110
48055
  if (!businessObject) {
48111
48056
  if (!attrs.type) {
48112
- throw new Error(translate('no shape type specified'));
48057
+ throw new Error('no shape type specified');
48113
48058
  }
48114
48059
 
48115
48060
  businessObject = this._bpmnFactory.create(attrs.type);
@@ -51207,7 +51152,6 @@
51207
51152
  *
51208
51153
  * @typedef {import('diagram-js/lib/core/ElementRegistry').default} ElementRegistry
51209
51154
  * @typedef {import('../../../model/Types').Moddle} Moddle
51210
- * @typedef {import('diagram-js/lib/i18n/translate/translate').default} Translate
51211
51155
  * @typedef {import('../Modeling').default} Modeling
51212
51156
  * @typedef {import('../../../draw/TextRenderer').default} TextRenderer
51213
51157
  *
@@ -51236,17 +51180,15 @@
51236
51180
  *
51237
51181
  * @param {ElementRegistry} elementRegistry
51238
51182
  * @param {Moddle} moddle
51239
- * @param {Translate} translate
51240
51183
  * @param {Modeling} modeling
51241
51184
  * @param {TextRenderer} textRenderer
51242
51185
  */
51243
51186
  function UpdatePropertiesHandler(
51244
- elementRegistry, moddle, translate,
51187
+ elementRegistry, moddle,
51245
51188
  modeling, textRenderer) {
51246
51189
 
51247
51190
  this._elementRegistry = elementRegistry;
51248
51191
  this._moddle = moddle;
51249
- this._translate = translate;
51250
51192
  this._modeling = modeling;
51251
51193
  this._textRenderer = textRenderer;
51252
51194
  }
@@ -51254,7 +51196,6 @@
51254
51196
  UpdatePropertiesHandler.$inject = [
51255
51197
  'elementRegistry',
51256
51198
  'moddle',
51257
- 'translate',
51258
51199
  'modeling',
51259
51200
  'textRenderer'
51260
51201
  ];
@@ -51275,11 +51216,10 @@
51275
51216
  UpdatePropertiesHandler.prototype.execute = function(context) {
51276
51217
 
51277
51218
  var element = context.element,
51278
- changed = [ element ],
51279
- translate = this._translate;
51219
+ changed = [ element ];
51280
51220
 
51281
51221
  if (!element) {
51282
- throw new Error(translate('element required'));
51222
+ throw new Error('element required');
51283
51223
  }
51284
51224
 
51285
51225
  var elementRegistry = this._elementRegistry,
@@ -51729,7 +51669,6 @@
51729
51669
  * @typedef {import('diagram-js/lib/command/CommandHandler').default} CommandHandler
51730
51670
  *
51731
51671
  * @typedef {import('../Modeling').default} Modeling
51732
- * @typedef {import('diagram-js/lib/i18n/translate/translate').default} Translate
51733
51672
  */
51734
51673
 
51735
51674
  /**
@@ -51739,23 +51678,19 @@
51739
51678
  * @implements {CommandHandler}
51740
51679
  *
51741
51680
  * @param {Modeling} modeling
51742
- * @param {Translate} translate
51743
51681
  */
51744
- function SplitLaneHandler(modeling, translate) {
51682
+ function SplitLaneHandler(modeling) {
51745
51683
  this._modeling = modeling;
51746
- this._translate = translate;
51747
51684
  }
51748
51685
 
51749
51686
  SplitLaneHandler.$inject = [
51750
- 'modeling',
51751
- 'translate'
51687
+ 'modeling'
51752
51688
  ];
51753
51689
 
51754
51690
 
51755
51691
  SplitLaneHandler.prototype.preExecute = function(context) {
51756
51692
 
51757
- var modeling = this._modeling,
51758
- translate = this._translate;
51693
+ var modeling = this._modeling;
51759
51694
 
51760
51695
  var shape = context.shape,
51761
51696
  newLanesCount = context.count;
@@ -51764,7 +51699,7 @@
51764
51699
  existingLanesCount = childLanes.length;
51765
51700
 
51766
51701
  if (existingLanesCount > newLanesCount) {
51767
- throw new Error(translate('more than {count} child lanes', { count: newLanesCount }));
51702
+ throw new Error(`more than <${newLanesCount}> child lanes`);
51768
51703
  }
51769
51704
 
51770
51705
  var isHorizontalLane = isHorizontal$3(shape);
@@ -60127,6 +60062,13 @@
60127
60062
  assign$1(context, bounds);
60128
60063
 
60129
60064
  var options = {};
60065
+ var style = context.style || {};
60066
+
60067
+ // Remove background and border
60068
+ assign$1(style, {
60069
+ backgroundColor: null,
60070
+ border: null
60071
+ });
60130
60072
 
60131
60073
  // tasks
60132
60074
  if (
@@ -60148,6 +60090,12 @@
60148
60090
  assign$1(options, {
60149
60091
  autoResize: true
60150
60092
  });
60093
+
60094
+ // keep background and border for external labels
60095
+ assign$1(style, {
60096
+ backgroundColor: '#ffffff',
60097
+ border: '1px solid #ccc'
60098
+ });
60151
60099
  }
60152
60100
 
60153
60101
  // text annotations
@@ -60156,10 +60104,17 @@
60156
60104
  resizable: true,
60157
60105
  autoResize: true
60158
60106
  });
60107
+
60108
+ // keep background and border for text annotations
60109
+ assign$1(style, {
60110
+ backgroundColor: '#ffffff',
60111
+ border: '1px solid #ccc'
60112
+ });
60159
60113
  }
60160
60114
 
60161
60115
  assign$1(context, {
60162
- options: options
60116
+ options: options,
60117
+ style: style
60163
60118
  });
60164
60119
 
60165
60120
  return context;