bpmn-js 15.2.2 → 16.0.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 v15.2.2
2
+ * bpmn-js - bpmn-modeler v16.0.0
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-11-27
11
+ * Date: 2023-12-11
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -2163,7 +2163,7 @@
2163
2163
  }
2164
2164
 
2165
2165
  /**
2166
- * @typedef {import('./index').InjectAnnotated } InjectAnnotated
2166
+ * @typedef {import('./index.js').InjectAnnotated } InjectAnnotated
2167
2167
  */
2168
2168
 
2169
2169
  /**
@@ -2233,9 +2233,9 @@
2233
2233
  }
2234
2234
 
2235
2235
  /**
2236
- * @typedef { import('./index').ModuleDeclaration } ModuleDeclaration
2237
- * @typedef { import('./index').ModuleDefinition } ModuleDefinition
2238
- * @typedef { import('./index').InjectorContext } InjectorContext
2236
+ * @typedef { import('./index.js').ModuleDeclaration } ModuleDeclaration
2237
+ * @typedef { import('./index.js').ModuleDefinition } ModuleDefinition
2238
+ * @typedef { import('./index.js').InjectorContext } InjectorContext
2239
2239
  */
2240
2240
 
2241
2241
  /**
@@ -2338,11 +2338,20 @@
2338
2338
  };
2339
2339
  }
2340
2340
 
2341
- function instantiate(Type) {
2341
+ /**
2342
+ * Instantiate the given type, injecting dependencies.
2343
+ *
2344
+ * @template T
2345
+ *
2346
+ * @param { Function | [...string[], Function ]} type
2347
+ *
2348
+ * @return T
2349
+ */
2350
+ function instantiate(type) {
2342
2351
  const {
2343
2352
  fn,
2344
2353
  dependencies
2345
- } = fnDef(Type);
2354
+ } = fnDef(type);
2346
2355
 
2347
2356
  // instantiate var args constructor
2348
2357
  const Constructor = Function.prototype.bind.apply(fn, [ null ].concat(dependencies));
@@ -2350,6 +2359,17 @@
2350
2359
  return new Constructor();
2351
2360
  }
2352
2361
 
2362
+ /**
2363
+ * Invoke the given function, injecting dependencies. Return the result.
2364
+ *
2365
+ * @template T
2366
+ *
2367
+ * @param { Function | [...string[], Function ]} func
2368
+ * @param { Object } [context]
2369
+ * @param { Object } [locals]
2370
+ *
2371
+ * @return {T} invocation result
2372
+ */
2353
2373
  function invoke(func, context, locals) {
2354
2374
  const {
2355
2375
  fn,
@@ -17751,6 +17771,26 @@
17751
17771
  return true;
17752
17772
  }
17753
17773
 
17774
+ /**
17775
+ * @param {Element} element
17776
+ *
17777
+ * @return {boolean}
17778
+ */
17779
+ function isHorizontal$4(element) {
17780
+
17781
+ if (!is$1(element, 'bpmn:Participant') && !is$1(element, 'bpmn:Lane')) {
17782
+ return undefined;
17783
+ }
17784
+
17785
+ var isHorizontal = getDi(element).isHorizontal;
17786
+
17787
+ if (isHorizontal === undefined) {
17788
+ return true;
17789
+ }
17790
+
17791
+ return isHorizontal;
17792
+ }
17793
+
17754
17794
  /**
17755
17795
  * @param {Element} element
17756
17796
  *
@@ -19289,10 +19329,12 @@
19289
19329
  }
19290
19330
 
19291
19331
  function renderLaneLabel(parentGfx, text, element, attrs = {}) {
19332
+ var isHorizontalLane = isHorizontal$4(element);
19333
+
19292
19334
  var textBox = renderLabel(parentGfx, text, {
19293
19335
  box: {
19294
19336
  height: 30,
19295
- width: getHeight(element, attrs),
19337
+ width: isHorizontalLane ? getHeight(element, attrs) : getWidth(element, attrs),
19296
19338
  },
19297
19339
  align: 'center-middle',
19298
19340
  style: {
@@ -19300,9 +19342,10 @@
19300
19342
  }
19301
19343
  });
19302
19344
 
19303
- var top = -1 * getHeight(element, attrs);
19304
-
19305
- transform(textBox, 0, -top, 270);
19345
+ if (isHorizontalLane) {
19346
+ var top = -1 * getHeight(element, attrs);
19347
+ transform(textBox, 0, -top, 270);
19348
+ }
19306
19349
  }
19307
19350
 
19308
19351
  function renderActivity(parentGfx, element, attrs = {}) {
@@ -20020,12 +20063,13 @@
20020
20063
  var participant = renderLane(parentGfx, element, attrs);
20021
20064
 
20022
20065
  var expandedParticipant = isExpanded(element);
20066
+ var horizontalParticipant = isHorizontal$4(element);
20023
20067
 
20024
20068
  var semantic = getBusinessObject(element),
20025
20069
  name = semantic.get('name');
20026
20070
 
20027
20071
  if (expandedParticipant) {
20028
- drawLine(parentGfx, [
20072
+ var waypoints = horizontalParticipant ? [
20029
20073
  {
20030
20074
  x: 30,
20031
20075
  y: 0
@@ -20034,20 +20078,43 @@
20034
20078
  x: 30,
20035
20079
  y: getHeight(element, attrs)
20036
20080
  }
20037
- ], {
20081
+ ] : [
20082
+ {
20083
+ x: 0,
20084
+ y: 30
20085
+ },
20086
+ {
20087
+ x: getWidth(element, attrs),
20088
+ y: 30
20089
+ }
20090
+ ];
20091
+
20092
+ drawLine(parentGfx, waypoints, {
20038
20093
  stroke: getStrokeColor$1(element, defaultStrokeColor, attrs.stroke),
20039
20094
  strokeWidth: PARTICIPANT_STROKE_WIDTH
20040
20095
  });
20041
20096
 
20042
20097
  renderLaneLabel(parentGfx, name, element, attrs);
20043
20098
  } else {
20044
- renderLabel(parentGfx, name, {
20045
- box: getBounds$1(element, attrs),
20099
+ var bounds = getBounds$1(element, attrs);
20100
+
20101
+ if (!horizontalParticipant) {
20102
+ bounds.height = getWidth(element, attrs);
20103
+ bounds.width = getHeight(element, attrs);
20104
+ }
20105
+
20106
+ var textBox = renderLabel(parentGfx, name, {
20107
+ box: bounds,
20046
20108
  align: 'center-middle',
20047
20109
  style: {
20048
20110
  fill: getLabelColor(element, defaultLabelColor, defaultStrokeColor, attrs.stroke)
20049
20111
  }
20050
20112
  });
20113
+
20114
+ if (!horizontalParticipant) {
20115
+ var top = -1 * getHeight(element, attrs);
20116
+ transform(textBox, 0, -top, 270);
20117
+ }
20051
20118
  }
20052
20119
 
20053
20120
  if (semantic.get('participantMultiplicity')) {
@@ -39426,10 +39493,15 @@
39426
39493
  bo = getBusinessObject(shape),
39427
39494
  di = getDi(shape);
39428
39495
 
39429
- if (isAny(bo, elementTypesToUpdate) && !di.get('isHorizontal')) {
39496
+ if (isAny(bo, elementTypesToUpdate)) {
39497
+ var isHorizontal = di.get('isHorizontal');
39498
+
39499
+ if (isHorizontal === undefined) {
39500
+ isHorizontal = true;
39501
+ }
39430
39502
 
39431
39503
  // set attribute directly to avoid modeling#updateProperty side effects
39432
- di.set('isHorizontal', true);
39504
+ di.set('isHorizontal', isHorizontal);
39433
39505
  }
39434
39506
  });
39435
39507
 
@@ -56818,7 +56890,7 @@
56818
56890
  */
56819
56891
  var START_EVENT = [
56820
56892
  {
56821
- label: 'Start Event',
56893
+ label: 'Start event',
56822
56894
  actionName: 'replace-with-none-start',
56823
56895
  className: 'bpmn-icon-start-event-none',
56824
56896
  target: {
@@ -56826,7 +56898,7 @@
56826
56898
  }
56827
56899
  },
56828
56900
  {
56829
- label: 'Intermediate Throw Event',
56901
+ label: 'Intermediate throw event',
56830
56902
  actionName: 'replace-with-none-intermediate-throwing',
56831
56903
  className: 'bpmn-icon-intermediate-event-none',
56832
56904
  target: {
@@ -56834,7 +56906,7 @@
56834
56906
  }
56835
56907
  },
56836
56908
  {
56837
- label: 'End Event',
56909
+ label: 'End event',
56838
56910
  actionName: 'replace-with-none-end',
56839
56911
  className: 'bpmn-icon-end-event-none',
56840
56912
  target: {
@@ -56842,7 +56914,7 @@
56842
56914
  }
56843
56915
  },
56844
56916
  {
56845
- label: 'Message Start Event',
56917
+ label: 'Message start event',
56846
56918
  actionName: 'replace-with-message-start',
56847
56919
  className: 'bpmn-icon-start-event-message',
56848
56920
  target: {
@@ -56851,7 +56923,7 @@
56851
56923
  }
56852
56924
  },
56853
56925
  {
56854
- label: 'Timer Start Event',
56926
+ label: 'Timer start event',
56855
56927
  actionName: 'replace-with-timer-start',
56856
56928
  className: 'bpmn-icon-start-event-timer',
56857
56929
  target: {
@@ -56860,7 +56932,7 @@
56860
56932
  }
56861
56933
  },
56862
56934
  {
56863
- label: 'Conditional Start Event',
56935
+ label: 'Conditional start event',
56864
56936
  actionName: 'replace-with-conditional-start',
56865
56937
  className: 'bpmn-icon-start-event-condition',
56866
56938
  target: {
@@ -56869,7 +56941,7 @@
56869
56941
  }
56870
56942
  },
56871
56943
  {
56872
- label: 'Signal Start Event',
56944
+ label: 'Signal start event',
56873
56945
  actionName: 'replace-with-signal-start',
56874
56946
  className: 'bpmn-icon-start-event-signal',
56875
56947
  target: {
@@ -56884,7 +56956,7 @@
56884
56956
  */
56885
56957
  var START_EVENT_SUB_PROCESS = [
56886
56958
  {
56887
- label: 'Start Event',
56959
+ label: 'Start event',
56888
56960
  actionName: 'replace-with-none-start',
56889
56961
  className: 'bpmn-icon-start-event-none',
56890
56962
  target: {
@@ -56892,7 +56964,7 @@
56892
56964
  }
56893
56965
  },
56894
56966
  {
56895
- label: 'Intermediate Throw Event',
56967
+ label: 'Intermediate throw event',
56896
56968
  actionName: 'replace-with-none-intermediate-throwing',
56897
56969
  className: 'bpmn-icon-intermediate-event-none',
56898
56970
  target: {
@@ -56900,7 +56972,7 @@
56900
56972
  }
56901
56973
  },
56902
56974
  {
56903
- label: 'End Event',
56975
+ label: 'End event',
56904
56976
  actionName: 'replace-with-none-end',
56905
56977
  className: 'bpmn-icon-end-event-none',
56906
56978
  target: {
@@ -56914,7 +56986,7 @@
56914
56986
  */
56915
56987
  var INTERMEDIATE_EVENT = [
56916
56988
  {
56917
- label: 'Start Event',
56989
+ label: 'Start event',
56918
56990
  actionName: 'replace-with-none-start',
56919
56991
  className: 'bpmn-icon-start-event-none',
56920
56992
  target: {
@@ -56922,7 +56994,7 @@
56922
56994
  }
56923
56995
  },
56924
56996
  {
56925
- label: 'Intermediate Throw Event',
56997
+ label: 'Intermediate throw event',
56926
56998
  actionName: 'replace-with-none-intermediate-throw',
56927
56999
  className: 'bpmn-icon-intermediate-event-none',
56928
57000
  target: {
@@ -56930,7 +57002,7 @@
56930
57002
  }
56931
57003
  },
56932
57004
  {
56933
- label: 'End Event',
57005
+ label: 'End event',
56934
57006
  actionName: 'replace-with-none-end',
56935
57007
  className: 'bpmn-icon-end-event-none',
56936
57008
  target: {
@@ -56938,7 +57010,7 @@
56938
57010
  }
56939
57011
  },
56940
57012
  {
56941
- label: 'Message Intermediate Catch Event',
57013
+ label: 'Message intermediate catch event',
56942
57014
  actionName: 'replace-with-message-intermediate-catch',
56943
57015
  className: 'bpmn-icon-intermediate-event-catch-message',
56944
57016
  target: {
@@ -56947,7 +57019,7 @@
56947
57019
  }
56948
57020
  },
56949
57021
  {
56950
- label: 'Message Intermediate Throw Event',
57022
+ label: 'Message intermediate throw event',
56951
57023
  actionName: 'replace-with-message-intermediate-throw',
56952
57024
  className: 'bpmn-icon-intermediate-event-throw-message',
56953
57025
  target: {
@@ -56956,7 +57028,7 @@
56956
57028
  }
56957
57029
  },
56958
57030
  {
56959
- label: 'Timer Intermediate Catch Event',
57031
+ label: 'Timer intermediate catch event',
56960
57032
  actionName: 'replace-with-timer-intermediate-catch',
56961
57033
  className: 'bpmn-icon-intermediate-event-catch-timer',
56962
57034
  target: {
@@ -56965,7 +57037,7 @@
56965
57037
  }
56966
57038
  },
56967
57039
  {
56968
- label: 'Escalation Intermediate Throw Event',
57040
+ label: 'Escalation intermediate throw event',
56969
57041
  actionName: 'replace-with-escalation-intermediate-throw',
56970
57042
  className: 'bpmn-icon-intermediate-event-throw-escalation',
56971
57043
  target: {
@@ -56974,7 +57046,7 @@
56974
57046
  }
56975
57047
  },
56976
57048
  {
56977
- label: 'Conditional Intermediate Catch Event',
57049
+ label: 'Conditional intermediate catch event',
56978
57050
  actionName: 'replace-with-conditional-intermediate-catch',
56979
57051
  className: 'bpmn-icon-intermediate-event-catch-condition',
56980
57052
  target: {
@@ -56983,7 +57055,7 @@
56983
57055
  }
56984
57056
  },
56985
57057
  {
56986
- label: 'Link Intermediate Catch Event',
57058
+ label: 'Link intermediate catch event',
56987
57059
  actionName: 'replace-with-link-intermediate-catch',
56988
57060
  className: 'bpmn-icon-intermediate-event-catch-link',
56989
57061
  target: {
@@ -56995,7 +57067,7 @@
56995
57067
  }
56996
57068
  },
56997
57069
  {
56998
- label: 'Link Intermediate Throw Event',
57070
+ label: 'Link intermediate throw event',
56999
57071
  actionName: 'replace-with-link-intermediate-throw',
57000
57072
  className: 'bpmn-icon-intermediate-event-throw-link',
57001
57073
  target: {
@@ -57007,7 +57079,7 @@
57007
57079
  }
57008
57080
  },
57009
57081
  {
57010
- label: 'Compensation Intermediate Throw Event',
57082
+ label: 'Compensation intermediate throw event',
57011
57083
  actionName: 'replace-with-compensation-intermediate-throw',
57012
57084
  className: 'bpmn-icon-intermediate-event-throw-compensation',
57013
57085
  target: {
@@ -57016,7 +57088,7 @@
57016
57088
  }
57017
57089
  },
57018
57090
  {
57019
- label: 'Signal Intermediate Catch Event',
57091
+ label: 'Signal intermediate catch event',
57020
57092
  actionName: 'replace-with-signal-intermediate-catch',
57021
57093
  className: 'bpmn-icon-intermediate-event-catch-signal',
57022
57094
  target: {
@@ -57025,7 +57097,7 @@
57025
57097
  }
57026
57098
  },
57027
57099
  {
57028
- label: 'Signal Intermediate Throw Event',
57100
+ label: 'Signal intermediate throw event',
57029
57101
  actionName: 'replace-with-signal-intermediate-throw',
57030
57102
  className: 'bpmn-icon-intermediate-event-throw-signal',
57031
57103
  target: {
@@ -57040,7 +57112,7 @@
57040
57112
  */
57041
57113
  var END_EVENT = [
57042
57114
  {
57043
- label: 'Start Event',
57115
+ label: 'Start event',
57044
57116
  actionName: 'replace-with-none-start',
57045
57117
  className: 'bpmn-icon-start-event-none',
57046
57118
  target: {
@@ -57048,7 +57120,7 @@
57048
57120
  }
57049
57121
  },
57050
57122
  {
57051
- label: 'Intermediate Throw Event',
57123
+ label: 'Intermediate throw event',
57052
57124
  actionName: 'replace-with-none-intermediate-throw',
57053
57125
  className: 'bpmn-icon-intermediate-event-none',
57054
57126
  target: {
@@ -57056,7 +57128,7 @@
57056
57128
  }
57057
57129
  },
57058
57130
  {
57059
- label: 'End Event',
57131
+ label: 'End event',
57060
57132
  actionName: 'replace-with-none-end',
57061
57133
  className: 'bpmn-icon-end-event-none',
57062
57134
  target: {
@@ -57064,7 +57136,7 @@
57064
57136
  }
57065
57137
  },
57066
57138
  {
57067
- label: 'Message End Event',
57139
+ label: 'Message end event',
57068
57140
  actionName: 'replace-with-message-end',
57069
57141
  className: 'bpmn-icon-end-event-message',
57070
57142
  target: {
@@ -57073,7 +57145,7 @@
57073
57145
  }
57074
57146
  },
57075
57147
  {
57076
- label: 'Escalation End Event',
57148
+ label: 'Escalation end event',
57077
57149
  actionName: 'replace-with-escalation-end',
57078
57150
  className: 'bpmn-icon-end-event-escalation',
57079
57151
  target: {
@@ -57082,7 +57154,7 @@
57082
57154
  }
57083
57155
  },
57084
57156
  {
57085
- label: 'Error End Event',
57157
+ label: 'Error end event',
57086
57158
  actionName: 'replace-with-error-end',
57087
57159
  className: 'bpmn-icon-end-event-error',
57088
57160
  target: {
@@ -57091,7 +57163,7 @@
57091
57163
  }
57092
57164
  },
57093
57165
  {
57094
- label: 'Cancel End Event',
57166
+ label: 'Cancel end event',
57095
57167
  actionName: 'replace-with-cancel-end',
57096
57168
  className: 'bpmn-icon-end-event-cancel',
57097
57169
  target: {
@@ -57100,7 +57172,7 @@
57100
57172
  }
57101
57173
  },
57102
57174
  {
57103
- label: 'Compensation End Event',
57175
+ label: 'Compensation end event',
57104
57176
  actionName: 'replace-with-compensation-end',
57105
57177
  className: 'bpmn-icon-end-event-compensation',
57106
57178
  target: {
@@ -57109,7 +57181,7 @@
57109
57181
  }
57110
57182
  },
57111
57183
  {
57112
- label: 'Signal End Event',
57184
+ label: 'Signal end event',
57113
57185
  actionName: 'replace-with-signal-end',
57114
57186
  className: 'bpmn-icon-end-event-signal',
57115
57187
  target: {
@@ -57118,7 +57190,7 @@
57118
57190
  }
57119
57191
  },
57120
57192
  {
57121
- label: 'Terminate End Event',
57193
+ label: 'Terminate end event',
57122
57194
  actionName: 'replace-with-terminate-end',
57123
57195
  className: 'bpmn-icon-end-event-terminate',
57124
57196
  target: {
@@ -57133,7 +57205,7 @@
57133
57205
  */
57134
57206
  var GATEWAY = [
57135
57207
  {
57136
- label: 'Exclusive Gateway',
57208
+ label: 'Exclusive gateway',
57137
57209
  actionName: 'replace-with-exclusive-gateway',
57138
57210
  className: 'bpmn-icon-gateway-xor',
57139
57211
  target: {
@@ -57141,7 +57213,7 @@
57141
57213
  }
57142
57214
  },
57143
57215
  {
57144
- label: 'Parallel Gateway',
57216
+ label: 'Parallel gateway',
57145
57217
  actionName: 'replace-with-parallel-gateway',
57146
57218
  className: 'bpmn-icon-gateway-parallel',
57147
57219
  target: {
@@ -57149,7 +57221,7 @@
57149
57221
  }
57150
57222
  },
57151
57223
  {
57152
- label: 'Inclusive Gateway',
57224
+ label: 'Inclusive gateway',
57153
57225
  actionName: 'replace-with-inclusive-gateway',
57154
57226
  className: 'bpmn-icon-gateway-or',
57155
57227
  target: {
@@ -57157,7 +57229,7 @@
57157
57229
  }
57158
57230
  },
57159
57231
  {
57160
- label: 'Complex Gateway',
57232
+ label: 'Complex gateway',
57161
57233
  actionName: 'replace-with-complex-gateway',
57162
57234
  className: 'bpmn-icon-gateway-complex',
57163
57235
  target: {
@@ -57165,7 +57237,7 @@
57165
57237
  }
57166
57238
  },
57167
57239
  {
57168
- label: 'Event based Gateway',
57240
+ label: 'Event-based gateway',
57169
57241
  actionName: 'replace-with-event-based-gateway',
57170
57242
  className: 'bpmn-icon-gateway-eventbased',
57171
57243
  target: {
@@ -57214,7 +57286,7 @@
57214
57286
  }
57215
57287
  },
57216
57288
  {
57217
- label: 'Event Sub Process',
57289
+ label: 'Event sub-process',
57218
57290
  actionName: 'replace-with-event-subprocess',
57219
57291
  className: 'bpmn-icon-event-subprocess-expanded',
57220
57292
  target: {
@@ -57224,7 +57296,7 @@
57224
57296
  }
57225
57297
  },
57226
57298
  {
57227
- label: 'Sub Process (collapsed)',
57299
+ label: 'Sub-process (collapsed)',
57228
57300
  actionName: 'replace-with-collapsed-subprocess',
57229
57301
  className: 'bpmn-icon-subprocess-collapsed',
57230
57302
  target: {
@@ -57248,7 +57320,7 @@
57248
57320
  }
57249
57321
  },
57250
57322
  {
57251
- label: 'Sub Process',
57323
+ label: 'Sub-process',
57252
57324
  actionName: 'replace-with-subprocess',
57253
57325
  className: 'bpmn-icon-subprocess-expanded',
57254
57326
  target: {
@@ -57257,7 +57329,7 @@
57257
57329
  }
57258
57330
  },
57259
57331
  {
57260
- label: 'Event Sub Process',
57332
+ label: 'Event sub-process',
57261
57333
  actionName: 'replace-with-event-subprocess',
57262
57334
  className: 'bpmn-icon-event-subprocess-expanded',
57263
57335
  target: {
@@ -57286,7 +57358,7 @@
57286
57358
  }
57287
57359
  },
57288
57360
  {
57289
- label: 'User Task',
57361
+ label: 'User task',
57290
57362
  actionName: 'replace-with-user-task',
57291
57363
  className: 'bpmn-icon-user',
57292
57364
  target: {
@@ -57294,7 +57366,7 @@
57294
57366
  }
57295
57367
  },
57296
57368
  {
57297
- label: 'Service Task',
57369
+ label: 'Service task',
57298
57370
  actionName: 'replace-with-service-task',
57299
57371
  className: 'bpmn-icon-service',
57300
57372
  target: {
@@ -57302,7 +57374,7 @@
57302
57374
  }
57303
57375
  },
57304
57376
  {
57305
- label: 'Send Task',
57377
+ label: 'Send task',
57306
57378
  actionName: 'replace-with-send-task',
57307
57379
  className: 'bpmn-icon-send',
57308
57380
  target: {
@@ -57310,7 +57382,7 @@
57310
57382
  }
57311
57383
  },
57312
57384
  {
57313
- label: 'Receive Task',
57385
+ label: 'Receive task',
57314
57386
  actionName: 'replace-with-receive-task',
57315
57387
  className: 'bpmn-icon-receive',
57316
57388
  target: {
@@ -57318,7 +57390,7 @@
57318
57390
  }
57319
57391
  },
57320
57392
  {
57321
- label: 'Manual Task',
57393
+ label: 'Manual task',
57322
57394
  actionName: 'replace-with-manual-task',
57323
57395
  className: 'bpmn-icon-manual',
57324
57396
  target: {
@@ -57326,7 +57398,7 @@
57326
57398
  }
57327
57399
  },
57328
57400
  {
57329
- label: 'Business Rule Task',
57401
+ label: 'Business rule task',
57330
57402
  actionName: 'replace-with-rule-task',
57331
57403
  className: 'bpmn-icon-business-rule',
57332
57404
  target: {
@@ -57334,7 +57406,7 @@
57334
57406
  }
57335
57407
  },
57336
57408
  {
57337
- label: 'Script Task',
57409
+ label: 'Script task',
57338
57410
  actionName: 'replace-with-script-task',
57339
57411
  className: 'bpmn-icon-script',
57340
57412
  target: {
@@ -57342,7 +57414,7 @@
57342
57414
  }
57343
57415
  },
57344
57416
  {
57345
- label: 'Call Activity',
57417
+ label: 'Call activity',
57346
57418
  actionName: 'replace-with-call-activity',
57347
57419
  className: 'bpmn-icon-call-activity',
57348
57420
  target: {
@@ -57350,7 +57422,7 @@
57350
57422
  }
57351
57423
  },
57352
57424
  {
57353
- label: 'Sub Process (collapsed)',
57425
+ label: 'Sub-process (collapsed)',
57354
57426
  actionName: 'replace-with-collapsed-subprocess',
57355
57427
  className: 'bpmn-icon-subprocess-collapsed',
57356
57428
  target: {
@@ -57359,7 +57431,7 @@
57359
57431
  }
57360
57432
  },
57361
57433
  {
57362
- label: 'Sub Process (expanded)',
57434
+ label: 'Sub-process (expanded)',
57363
57435
  actionName: 'replace-with-expanded-subprocess',
57364
57436
  className: 'bpmn-icon-subprocess-expanded',
57365
57437
  target: {
@@ -57374,7 +57446,7 @@
57374
57446
  */
57375
57447
  var DATA_OBJECT_REFERENCE = [
57376
57448
  {
57377
- label: 'Data Store Reference',
57449
+ label: 'Data store reference',
57378
57450
  actionName: 'replace-with-data-store-reference',
57379
57451
  className: 'bpmn-icon-data-store',
57380
57452
  target: {
@@ -57388,7 +57460,7 @@
57388
57460
  */
57389
57461
  var DATA_STORE_REFERENCE = [
57390
57462
  {
57391
- label: 'Data Object Reference',
57463
+ label: 'Data object reference',
57392
57464
  actionName: 'replace-with-data-object-reference',
57393
57465
  className: 'bpmn-icon-data-object',
57394
57466
  target: {
@@ -57402,7 +57474,7 @@
57402
57474
  */
57403
57475
  var BOUNDARY_EVENT = [
57404
57476
  {
57405
- label: 'Message Boundary Event',
57477
+ label: 'Message boundary event',
57406
57478
  actionName: 'replace-with-message-boundary',
57407
57479
  className: 'bpmn-icon-intermediate-event-catch-message',
57408
57480
  target: {
@@ -57412,7 +57484,7 @@
57412
57484
  }
57413
57485
  },
57414
57486
  {
57415
- label: 'Timer Boundary Event',
57487
+ label: 'Timer boundary event',
57416
57488
  actionName: 'replace-with-timer-boundary',
57417
57489
  className: 'bpmn-icon-intermediate-event-catch-timer',
57418
57490
  target: {
@@ -57422,7 +57494,7 @@
57422
57494
  }
57423
57495
  },
57424
57496
  {
57425
- label: 'Escalation Boundary Event',
57497
+ label: 'Escalation boundary event',
57426
57498
  actionName: 'replace-with-escalation-boundary',
57427
57499
  className: 'bpmn-icon-intermediate-event-catch-escalation',
57428
57500
  target: {
@@ -57432,7 +57504,7 @@
57432
57504
  }
57433
57505
  },
57434
57506
  {
57435
- label: 'Conditional Boundary Event',
57507
+ label: 'Conditional boundary event',
57436
57508
  actionName: 'replace-with-conditional-boundary',
57437
57509
  className: 'bpmn-icon-intermediate-event-catch-condition',
57438
57510
  target: {
@@ -57442,7 +57514,7 @@
57442
57514
  }
57443
57515
  },
57444
57516
  {
57445
- label: 'Error Boundary Event',
57517
+ label: 'Error boundary event',
57446
57518
  actionName: 'replace-with-error-boundary',
57447
57519
  className: 'bpmn-icon-intermediate-event-catch-error',
57448
57520
  target: {
@@ -57452,7 +57524,7 @@
57452
57524
  }
57453
57525
  },
57454
57526
  {
57455
- label: 'Cancel Boundary Event',
57527
+ label: 'Cancel boundary event',
57456
57528
  actionName: 'replace-with-cancel-boundary',
57457
57529
  className: 'bpmn-icon-intermediate-event-catch-cancel',
57458
57530
  target: {
@@ -57462,7 +57534,7 @@
57462
57534
  }
57463
57535
  },
57464
57536
  {
57465
- label: 'Signal Boundary Event',
57537
+ label: 'Signal boundary event',
57466
57538
  actionName: 'replace-with-signal-boundary',
57467
57539
  className: 'bpmn-icon-intermediate-event-catch-signal',
57468
57540
  target: {
@@ -57472,7 +57544,7 @@
57472
57544
  }
57473
57545
  },
57474
57546
  {
57475
- label: 'Compensation Boundary Event',
57547
+ label: 'Compensation boundary event',
57476
57548
  actionName: 'replace-with-compensation-boundary',
57477
57549
  className: 'bpmn-icon-intermediate-event-catch-compensation',
57478
57550
  target: {
@@ -57482,7 +57554,7 @@
57482
57554
  }
57483
57555
  },
57484
57556
  {
57485
- label: 'Message Boundary Event (non-interrupting)',
57557
+ label: 'Message boundary event (non-interrupting)',
57486
57558
  actionName: 'replace-with-non-interrupting-message-boundary',
57487
57559
  className: 'bpmn-icon-intermediate-event-catch-non-interrupting-message',
57488
57560
  target: {
@@ -57492,7 +57564,7 @@
57492
57564
  }
57493
57565
  },
57494
57566
  {
57495
- label: 'Timer Boundary Event (non-interrupting)',
57567
+ label: 'Timer boundary event (non-interrupting)',
57496
57568
  actionName: 'replace-with-non-interrupting-timer-boundary',
57497
57569
  className: 'bpmn-icon-intermediate-event-catch-non-interrupting-timer',
57498
57570
  target: {
@@ -57502,7 +57574,7 @@
57502
57574
  }
57503
57575
  },
57504
57576
  {
57505
- label: 'Escalation Boundary Event (non-interrupting)',
57577
+ label: 'Escalation boundary event (non-interrupting)',
57506
57578
  actionName: 'replace-with-non-interrupting-escalation-boundary',
57507
57579
  className: 'bpmn-icon-intermediate-event-catch-non-interrupting-escalation',
57508
57580
  target: {
@@ -57512,7 +57584,7 @@
57512
57584
  }
57513
57585
  },
57514
57586
  {
57515
- label: 'Conditional Boundary Event (non-interrupting)',
57587
+ label: 'Conditional boundary event (non-interrupting)',
57516
57588
  actionName: 'replace-with-non-interrupting-conditional-boundary',
57517
57589
  className: 'bpmn-icon-intermediate-event-catch-non-interrupting-condition',
57518
57590
  target: {
@@ -57522,7 +57594,7 @@
57522
57594
  }
57523
57595
  },
57524
57596
  {
57525
- label: 'Signal Boundary Event (non-interrupting)',
57597
+ label: 'Signal boundary event (non-interrupting)',
57526
57598
  actionName: 'replace-with-non-interrupting-signal-boundary',
57527
57599
  className: 'bpmn-icon-intermediate-event-catch-non-interrupting-signal',
57528
57600
  target: {
@@ -57538,7 +57610,7 @@
57538
57610
  */
57539
57611
  var EVENT_SUB_PROCESS_START_EVENT = [
57540
57612
  {
57541
- label: 'Message Start Event',
57613
+ label: 'Message start event',
57542
57614
  actionName: 'replace-with-message-start',
57543
57615
  className: 'bpmn-icon-start-event-message',
57544
57616
  target: {
@@ -57548,7 +57620,7 @@
57548
57620
  }
57549
57621
  },
57550
57622
  {
57551
- label: 'Timer Start Event',
57623
+ label: 'Timer start event',
57552
57624
  actionName: 'replace-with-timer-start',
57553
57625
  className: 'bpmn-icon-start-event-timer',
57554
57626
  target: {
@@ -57558,7 +57630,7 @@
57558
57630
  }
57559
57631
  },
57560
57632
  {
57561
- label: 'Conditional Start Event',
57633
+ label: 'Conditional start event',
57562
57634
  actionName: 'replace-with-conditional-start',
57563
57635
  className: 'bpmn-icon-start-event-condition',
57564
57636
  target: {
@@ -57568,7 +57640,7 @@
57568
57640
  }
57569
57641
  },
57570
57642
  {
57571
- label: 'Signal Start Event',
57643
+ label: 'Signal start event',
57572
57644
  actionName: 'replace-with-signal-start',
57573
57645
  className: 'bpmn-icon-start-event-signal',
57574
57646
  target: {
@@ -57578,7 +57650,7 @@
57578
57650
  }
57579
57651
  },
57580
57652
  {
57581
- label: 'Error Start Event',
57653
+ label: 'Error start event',
57582
57654
  actionName: 'replace-with-error-start',
57583
57655
  className: 'bpmn-icon-start-event-error',
57584
57656
  target: {
@@ -57588,7 +57660,7 @@
57588
57660
  }
57589
57661
  },
57590
57662
  {
57591
- label: 'Escalation Start Event',
57663
+ label: 'Escalation start event',
57592
57664
  actionName: 'replace-with-escalation-start',
57593
57665
  className: 'bpmn-icon-start-event-escalation',
57594
57666
  target: {
@@ -57598,7 +57670,7 @@
57598
57670
  }
57599
57671
  },
57600
57672
  {
57601
- label: 'Compensation Start Event',
57673
+ label: 'Compensation start event',
57602
57674
  actionName: 'replace-with-compensation-start',
57603
57675
  className: 'bpmn-icon-start-event-compensation',
57604
57676
  target: {
@@ -57608,7 +57680,7 @@
57608
57680
  }
57609
57681
  },
57610
57682
  {
57611
- label: 'Message Start Event (non-interrupting)',
57683
+ label: 'Message start event (non-interrupting)',
57612
57684
  actionName: 'replace-with-non-interrupting-message-start',
57613
57685
  className: 'bpmn-icon-start-event-non-interrupting-message',
57614
57686
  target: {
@@ -57618,7 +57690,7 @@
57618
57690
  }
57619
57691
  },
57620
57692
  {
57621
- label: 'Timer Start Event (non-interrupting)',
57693
+ label: 'Timer start event (non-interrupting)',
57622
57694
  actionName: 'replace-with-non-interrupting-timer-start',
57623
57695
  className: 'bpmn-icon-start-event-non-interrupting-timer',
57624
57696
  target: {
@@ -57628,7 +57700,7 @@
57628
57700
  }
57629
57701
  },
57630
57702
  {
57631
- label: 'Conditional Start Event (non-interrupting)',
57703
+ label: 'Conditional start event (non-interrupting)',
57632
57704
  actionName: 'replace-with-non-interrupting-conditional-start',
57633
57705
  className: 'bpmn-icon-start-event-non-interrupting-condition',
57634
57706
  target: {
@@ -57638,7 +57710,7 @@
57638
57710
  }
57639
57711
  },
57640
57712
  {
57641
- label: 'Signal Start Event (non-interrupting)',
57713
+ label: 'Signal start event (non-interrupting)',
57642
57714
  actionName: 'replace-with-non-interrupting-signal-start',
57643
57715
  className: 'bpmn-icon-start-event-non-interrupting-signal',
57644
57716
  target: {
@@ -57648,7 +57720,7 @@
57648
57720
  }
57649
57721
  },
57650
57722
  {
57651
- label: 'Escalation Start Event (non-interrupting)',
57723
+ label: 'Escalation start event (non-interrupting)',
57652
57724
  actionName: 'replace-with-non-interrupting-escalation-start',
57653
57725
  className: 'bpmn-icon-start-event-non-interrupting-escalation',
57654
57726
  target: {
@@ -57664,17 +57736,17 @@
57664
57736
  */
57665
57737
  var SEQUENCE_FLOW = [
57666
57738
  {
57667
- label: 'Sequence Flow',
57739
+ label: 'Sequence flow',
57668
57740
  actionName: 'replace-with-sequence-flow',
57669
57741
  className: 'bpmn-icon-connection'
57670
57742
  },
57671
57743
  {
57672
- label: 'Default Flow',
57744
+ label: 'Default flow',
57673
57745
  actionName: 'replace-with-default-flow',
57674
57746
  className: 'bpmn-icon-default-flow'
57675
57747
  },
57676
57748
  {
57677
- label: 'Conditional Flow',
57749
+ label: 'Conditional flow',
57678
57750
  actionName: 'replace-with-conditional-flow',
57679
57751
  className: 'bpmn-icon-conditional-flow'
57680
57752
  }
@@ -57685,7 +57757,7 @@
57685
57757
  */
57686
57758
  var PARTICIPANT = [
57687
57759
  {
57688
- label: 'Expanded Pool',
57760
+ label: 'Expanded pool/participant',
57689
57761
  actionName: 'replace-with-expanded-pool',
57690
57762
  className: 'bpmn-icon-participant',
57691
57763
  target: {
@@ -57695,7 +57767,7 @@
57695
57767
  },
57696
57768
  {
57697
57769
  label: function(element) {
57698
- var label = 'Empty Pool';
57770
+ var label = 'Empty pool/participant';
57699
57771
 
57700
57772
  if (element.children && element.children.length) {
57701
57773
  label += ' (removes content)';
@@ -57976,7 +58048,7 @@
57976
58048
  // collapsed sub process cannot be replaced with itself
57977
58049
  if (is$1(businessObject, 'bpmn:SubProcess') && !isExpanded(target)) {
57978
58050
  filteredReplaceOptions = filter(filteredReplaceOptions, function(replaceOption) {
57979
- return replaceOption.label !== 'Sub Process (collapsed)';
58051
+ return replaceOption.label !== 'Sub-process (collapsed)';
57980
58052
  });
57981
58053
  }
57982
58054
 
@@ -58219,7 +58291,7 @@
58219
58291
  return {
58220
58292
  'toggle-parallel-mi' : {
58221
58293
  className: 'bpmn-icon-parallel-mi-marker',
58222
- title: translate('Parallel Multi Instance'),
58294
+ title: translate('Parallel multi-instance'),
58223
58295
  active: isParallel,
58224
58296
  action: toggleLoopEntry,
58225
58297
  options: {
@@ -58229,7 +58301,7 @@
58229
58301
  },
58230
58302
  'toggle-sequential-mi': {
58231
58303
  className: 'bpmn-icon-sequential-mi-marker',
58232
- title: translate('Sequential Multi Instance'),
58304
+ title: translate('Sequential multi-instance'),
58233
58305
  active: isSequential,
58234
58306
  action: toggleLoopEntry,
58235
58307
  options: {
@@ -58317,7 +58389,7 @@
58317
58389
  return {
58318
58390
  'toggle-participant-multiplicity': {
58319
58391
  className: 'bpmn-icon-parallel-mi-marker',
58320
- title: translate('Participant Multiplicity'),
58392
+ title: translate('Participant multiplicity'),
58321
58393
  active: !!participantMultiplicity,
58322
58394
  action: toggleParticipantMultiplicity,
58323
58395
  }
@@ -58376,7 +58448,7 @@
58376
58448
  return {
58377
58449
  'toggle-non-interrupting': {
58378
58450
  imageHtml: icon,
58379
- title: translate('Toggle Non-Interrupting'),
58451
+ title: translate('Toggle non-interrupting'),
58380
58452
  active: isNonInterrupting,
58381
58453
  action: function() {
58382
58454
  self._modeling.updateProperties(element, {
@@ -58602,18 +58674,13 @@
58602
58674
  *
58603
58675
  * @param {string} type
58604
58676
  * @param {string} className
58605
- * @param {string} [title]
58677
+ * @param {string} title
58606
58678
  * @param {Object} [options]
58607
58679
  *
58608
58680
  * @return {ContextPadEntry}
58609
58681
  */
58610
58682
  function appendAction(type, className, title, options) {
58611
58683
 
58612
- if (typeof title !== 'string') {
58613
- options = title;
58614
- title = translate('Append {type}', { type: type.replace(/^bpmn:/, '') });
58615
- }
58616
-
58617
58684
  function appendStart(event, element) {
58618
58685
 
58619
58686
  var shape = elementFactory.createShape(assign$1({ type: type }, options));
@@ -58679,7 +58746,7 @@
58679
58746
  'lane-insert-above': {
58680
58747
  group: 'lane-insert-above',
58681
58748
  className: 'bpmn-icon-lane-insert-above',
58682
- title: translate('Add Lane above'),
58749
+ title: translate('Add lane above'),
58683
58750
  action: {
58684
58751
  click: function(event, element) {
58685
58752
  modeling.addLane(element, 'top');
@@ -58695,7 +58762,7 @@
58695
58762
  'lane-divide-two': {
58696
58763
  group: 'lane-divide',
58697
58764
  className: 'bpmn-icon-lane-divide-two',
58698
- title: translate('Divide into two Lanes'),
58765
+ title: translate('Divide into two lanes'),
58699
58766
  action: {
58700
58767
  click: splitLaneHandler(2)
58701
58768
  }
@@ -58708,7 +58775,7 @@
58708
58775
  'lane-divide-three': {
58709
58776
  group: 'lane-divide',
58710
58777
  className: 'bpmn-icon-lane-divide-three',
58711
- title: translate('Divide into three Lanes'),
58778
+ title: translate('Divide into three lanes'),
58712
58779
  action: {
58713
58780
  click: splitLaneHandler(3)
58714
58781
  }
@@ -58721,7 +58788,7 @@
58721
58788
  'lane-insert-below': {
58722
58789
  group: 'lane-insert-below',
58723
58790
  className: 'bpmn-icon-lane-insert-below',
58724
- title: translate('Add Lane below'),
58791
+ title: translate('Add lane below'),
58725
58792
  action: {
58726
58793
  click: function(event, element) {
58727
58794
  modeling.addLane(element, 'bottom');
@@ -58740,30 +58807,30 @@
58740
58807
  'append.receive-task': appendAction(
58741
58808
  'bpmn:ReceiveTask',
58742
58809
  'bpmn-icon-receive-task',
58743
- translate('Append ReceiveTask')
58810
+ translate('Append receive task')
58744
58811
  ),
58745
58812
  'append.message-intermediate-event': appendAction(
58746
58813
  'bpmn:IntermediateCatchEvent',
58747
58814
  'bpmn-icon-intermediate-event-catch-message',
58748
- translate('Append MessageIntermediateCatchEvent'),
58815
+ translate('Append message intermediate catch event'),
58749
58816
  { eventDefinitionType: 'bpmn:MessageEventDefinition' }
58750
58817
  ),
58751
58818
  'append.timer-intermediate-event': appendAction(
58752
58819
  'bpmn:IntermediateCatchEvent',
58753
58820
  'bpmn-icon-intermediate-event-catch-timer',
58754
- translate('Append TimerIntermediateCatchEvent'),
58821
+ translate('Append timer intermediate catch event'),
58755
58822
  { eventDefinitionType: 'bpmn:TimerEventDefinition' }
58756
58823
  ),
58757
58824
  'append.condition-intermediate-event': appendAction(
58758
58825
  'bpmn:IntermediateCatchEvent',
58759
58826
  'bpmn-icon-intermediate-event-catch-condition',
58760
- translate('Append ConditionIntermediateCatchEvent'),
58827
+ translate('Append conditional intermediate catch event'),
58761
58828
  { eventDefinitionType: 'bpmn:ConditionalEventDefinition' }
58762
58829
  ),
58763
58830
  'append.signal-intermediate-event': appendAction(
58764
58831
  'bpmn:IntermediateCatchEvent',
58765
58832
  'bpmn-icon-intermediate-event-catch-signal',
58766
- translate('Append SignalIntermediateCatchEvent'),
58833
+ translate('Append signal intermediate catch event'),
58767
58834
  { eventDefinitionType: 'bpmn:SignalEventDefinition' }
58768
58835
  )
58769
58836
  });
@@ -58793,22 +58860,22 @@
58793
58860
  'append.end-event': appendAction(
58794
58861
  'bpmn:EndEvent',
58795
58862
  'bpmn-icon-end-event-none',
58796
- translate('Append EndEvent')
58863
+ translate('Append end event')
58797
58864
  ),
58798
58865
  'append.gateway': appendAction(
58799
58866
  'bpmn:ExclusiveGateway',
58800
58867
  'bpmn-icon-gateway-none',
58801
- translate('Append Gateway')
58868
+ translate('Append gateway')
58802
58869
  ),
58803
58870
  'append.append-task': appendAction(
58804
58871
  'bpmn:Task',
58805
58872
  'bpmn-icon-task',
58806
- translate('Append Task')
58873
+ translate('Append task')
58807
58874
  ),
58808
58875
  'append.intermediate-event': appendAction(
58809
58876
  'bpmn:IntermediateThrowEvent',
58810
58877
  'bpmn-icon-intermediate-event-none',
58811
- translate('Append Intermediate/Boundary Event')
58878
+ translate('Append intermediate/boundary event')
58812
58879
  )
58813
58880
  });
58814
58881
  }
@@ -58845,7 +58912,7 @@
58845
58912
  'append.text-annotation': appendAction(
58846
58913
  'bpmn:TextAnnotation',
58847
58914
  'bpmn-icon-text-annotation',
58848
- translate('Append TextAnnotation')
58915
+ translate('Append text annotation')
58849
58916
  )
58850
58917
  });
58851
58918
  }
@@ -58862,7 +58929,7 @@
58862
58929
  'append.text-annotation': appendAction(
58863
58930
  'bpmn:TextAnnotation',
58864
58931
  'bpmn-icon-text-annotation',
58865
- translate('Append TextAnnotation')
58932
+ translate('Append text annotation')
58866
58933
  ),
58867
58934
 
58868
58935
  'connect': {
@@ -58872,8 +58939,8 @@
58872
58939
  'Connect using ' +
58873
58940
  (businessObject.isForCompensation
58874
58941
  ? ''
58875
- : 'Sequence/MessageFlow or ') +
58876
- 'Association'
58942
+ : 'sequence/message flow or ') +
58943
+ 'association'
58877
58944
  ),
58878
58945
  action: {
58879
58946
  click: startConnect,
@@ -58888,7 +58955,7 @@
58888
58955
  'connect': {
58889
58956
  group: 'connect',
58890
58957
  className: 'bpmn-icon-connection-multi',
58891
- title: translate('Connect using Association'),
58958
+ title: translate('Connect using association'),
58892
58959
  action: {
58893
58960
  click: startConnect,
58894
58961
  dragstart: startConnect,
@@ -58902,7 +58969,7 @@
58902
58969
  'connect': {
58903
58970
  group: 'connect',
58904
58971
  className: 'bpmn-icon-connection-multi',
58905
- title: translate('Connect using DataInputAssociation'),
58972
+ title: translate('Connect using data input association'),
58906
58973
  action: {
58907
58974
  click: startConnect,
58908
58975
  dragstart: startConnect
@@ -58916,7 +58983,7 @@
58916
58983
  'append.text-annotation': appendAction(
58917
58984
  'bpmn:TextAnnotation',
58918
58985
  'bpmn-icon-text-annotation',
58919
- translate('Append TextAnnotation')
58986
+ translate('Append text annotation')
58920
58987
  )
58921
58988
  });
58922
58989
  }
@@ -62076,13 +62143,47 @@
62076
62143
 
62077
62144
  // adjust for expanded pools AND lanes
62078
62145
  if (is$1(element, 'bpmn:Lane') || isExpandedPool(element)) {
62146
+ var isHorizontalLane = isHorizontal$4(element);
62079
62147
 
62080
- assign$1(bounds, {
62148
+ var laneBounds = isHorizontalLane ? {
62081
62149
  width: bbox.height,
62082
62150
  height: 30 * zoom,
62083
62151
  x: bbox.x - bbox.height / 2 + (15 * zoom),
62084
62152
  y: mid.y - (30 * zoom) / 2
62153
+ } : {
62154
+ width: bbox.width,
62155
+ height: 30 * zoom
62156
+ };
62157
+
62158
+ assign$1(bounds, laneBounds);
62159
+
62160
+ assign$1(style, {
62161
+ fontSize: defaultFontSize + 'px',
62162
+ lineHeight: defaultLineHeight,
62163
+ paddingTop: (7 * zoom) + 'px',
62164
+ paddingBottom: (7 * zoom) + 'px',
62165
+ paddingLeft: (5 * zoom) + 'px',
62166
+ paddingRight: (5 * zoom) + 'px',
62167
+ transform: isHorizontalLane ? 'rotate(-90deg)' : null
62085
62168
  });
62169
+ }
62170
+
62171
+
62172
+ // internal labels for collapsed participants
62173
+ if (isCollapsedPool(element)) {
62174
+ var isHorizontalPool = isHorizontal$4(element);
62175
+
62176
+ var poolBounds = isHorizontalPool ? {
62177
+ width: bbox.width,
62178
+ height: bbox.height
62179
+ } : {
62180
+ width: bbox.height,
62181
+ height: bbox.width,
62182
+ x: mid.x - bbox.height / 2,
62183
+ y: mid.y - bbox.width / 2
62184
+ };
62185
+
62186
+ assign$1(bounds, poolBounds);
62086
62187
 
62087
62188
  assign$1(style, {
62088
62189
  fontSize: defaultFontSize + 'px',
@@ -62091,15 +62192,14 @@
62091
62192
  paddingBottom: (7 * zoom) + 'px',
62092
62193
  paddingLeft: (5 * zoom) + 'px',
62093
62194
  paddingRight: (5 * zoom) + 'px',
62094
- transform: 'rotate(-90deg)'
62195
+ transform: isHorizontalPool ? null : 'rotate(-90deg)'
62095
62196
  });
62096
62197
  }
62097
62198
 
62098
62199
 
62099
- // internal labels for tasks and collapsed call activities,
62100
- // sub processes and participants
62200
+ // internal labels for tasks and collapsed call activities
62201
+ // and sub processes
62101
62202
  if (isAny(element, [ 'bpmn:Task', 'bpmn:CallActivity' ]) ||
62102
- isCollapsedPool(element) ||
62103
62203
  isCollapsedSubProcess(element)) {
62104
62204
 
62105
62205
  assign$1(bounds, {
@@ -64752,12 +64852,10 @@
64752
64852
  create.start(event, shape);
64753
64853
  }
64754
64854
 
64755
- var shortType = type.replace(/^bpmn:/, '');
64756
-
64757
64855
  return {
64758
64856
  group: group,
64759
64857
  className: className,
64760
- title: title || translate('Create {type}', { type: shortType }),
64858
+ title: title,
64761
64859
  action: {
64762
64860
  dragstart: createListener,
64763
64861
  click: createListener
@@ -64795,7 +64893,7 @@
64795
64893
  'hand-tool': {
64796
64894
  group: 'tools',
64797
64895
  className: 'bpmn-icon-hand-tool',
64798
- title: translate('Activate the hand tool'),
64896
+ title: translate('Activate hand tool'),
64799
64897
  action: {
64800
64898
  click: function(event) {
64801
64899
  handTool.activateHand(event);
@@ -64805,7 +64903,7 @@
64805
64903
  'lasso-tool': {
64806
64904
  group: 'tools',
64807
64905
  className: 'bpmn-icon-lasso-tool',
64808
- title: translate('Activate the lasso tool'),
64906
+ title: translate('Activate lasso tool'),
64809
64907
  action: {
64810
64908
  click: function(event) {
64811
64909
  lassoTool.activateSelection(event);
@@ -64815,7 +64913,7 @@
64815
64913
  'space-tool': {
64816
64914
  group: 'tools',
64817
64915
  className: 'bpmn-icon-space-tool',
64818
- title: translate('Activate the create/remove space tool'),
64916
+ title: translate('Activate create/remove space tool'),
64819
64917
  action: {
64820
64918
  click: function(event) {
64821
64919
  spaceTool.activateSelection(event);
@@ -64825,7 +64923,7 @@
64825
64923
  'global-connect-tool': {
64826
64924
  group: 'tools',
64827
64925
  className: 'bpmn-icon-connection-multi',
64828
- title: translate('Activate the global connect tool'),
64926
+ title: translate('Activate global connect tool'),
64829
64927
  action: {
64830
64928
  click: function(event) {
64831
64929
  globalConnect.start(event);
@@ -64838,36 +64936,36 @@
64838
64936
  },
64839
64937
  'create.start-event': createAction(
64840
64938
  'bpmn:StartEvent', 'event', 'bpmn-icon-start-event-none',
64841
- translate('Create StartEvent')
64939
+ translate('Create start event')
64842
64940
  ),
64843
64941
  'create.intermediate-event': createAction(
64844
64942
  'bpmn:IntermediateThrowEvent', 'event', 'bpmn-icon-intermediate-event-none',
64845
- translate('Create Intermediate/Boundary Event')
64943
+ translate('Create intermediate/boundary event')
64846
64944
  ),
64847
64945
  'create.end-event': createAction(
64848
64946
  'bpmn:EndEvent', 'event', 'bpmn-icon-end-event-none',
64849
- translate('Create EndEvent')
64947
+ translate('Create end event')
64850
64948
  ),
64851
64949
  'create.exclusive-gateway': createAction(
64852
64950
  'bpmn:ExclusiveGateway', 'gateway', 'bpmn-icon-gateway-none',
64853
- translate('Create Gateway')
64951
+ translate('Create gateway')
64854
64952
  ),
64855
64953
  'create.task': createAction(
64856
64954
  'bpmn:Task', 'activity', 'bpmn-icon-task',
64857
- translate('Create Task')
64955
+ translate('Create task')
64858
64956
  ),
64859
64957
  'create.data-object': createAction(
64860
64958
  'bpmn:DataObjectReference', 'data-object', 'bpmn-icon-data-object',
64861
- translate('Create DataObjectReference')
64959
+ translate('Create data object reference')
64862
64960
  ),
64863
64961
  'create.data-store': createAction(
64864
64962
  'bpmn:DataStoreReference', 'data-store', 'bpmn-icon-data-store',
64865
- translate('Create DataStoreReference')
64963
+ translate('Create data store reference')
64866
64964
  ),
64867
64965
  'create.subprocess-expanded': {
64868
64966
  group: 'activity',
64869
64967
  className: 'bpmn-icon-subprocess-expanded',
64870
- title: translate('Create expanded SubProcess'),
64968
+ title: translate('Create expanded sub-process'),
64871
64969
  action: {
64872
64970
  dragstart: createSubprocess,
64873
64971
  click: createSubprocess
@@ -64876,7 +64974,7 @@
64876
64974
  'create.participant-expanded': {
64877
64975
  group: 'collaboration',
64878
64976
  className: 'bpmn-icon-participant',
64879
- title: translate('Create Pool/Participant'),
64977
+ title: translate('Create pool/participant'),
64880
64978
  action: {
64881
64979
  dragstart: createParticipant,
64882
64980
  click: createParticipant
@@ -64884,7 +64982,7 @@
64884
64982
  },
64885
64983
  'create.group': createAction(
64886
64984
  'bpmn:Group', 'artifact', 'bpmn-icon-group',
64887
- translate('Create Group')
64985
+ translate('Create group')
64888
64986
  ),
64889
64987
  });
64890
64988