camunda-bpmn-js 1.3.0 → 1.4.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.
- package/dist/base-modeler.development.js +85 -59
- package/dist/base-modeler.production.min.js +2 -2
- package/dist/base-navigated-viewer.development.js +20 -4
- package/dist/base-navigated-viewer.production.min.js +1 -1
- package/dist/base-viewer.development.js +20 -4
- package/dist/base-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +368 -59
- package/dist/camunda-cloud-modeler.production.min.js +3 -3
- package/dist/camunda-cloud-navigated-viewer.development.js +20 -4
- package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-viewer.development.js +20 -4
- package/dist/camunda-cloud-viewer.production.min.js +2 -2
- package/dist/camunda-platform-modeler.development.js +85 -59
- package/dist/camunda-platform-modeler.production.min.js +2 -2
- package/dist/camunda-platform-navigated-viewer.development.js +20 -4
- package/dist/camunda-platform-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-platform-viewer.development.js +20 -4
- package/dist/camunda-platform-viewer.production.min.js +1 -1
- package/lib/camunda-cloud/Modeler.js +2 -0
- package/lib/camunda-cloud/features/create-append-anything/ElementTemplatesAppendProvider.js +162 -0
- package/lib/camunda-cloud/features/create-append-anything/ElementTemplatesCreateProvider.js +114 -0
- package/lib/camunda-cloud/features/create-append-anything/index.js +11 -0
- package/package.json +2 -2
|
@@ -17671,7 +17671,11 @@
|
|
|
17671
17671
|
...shapeStyle({
|
|
17672
17672
|
fill: fill,
|
|
17673
17673
|
stroke: stroke,
|
|
17674
|
-
strokeWidth: 1
|
|
17674
|
+
strokeWidth: 1,
|
|
17675
|
+
|
|
17676
|
+
// fix for safari / chrome / firefox bug not correctly
|
|
17677
|
+
// resetting stroke dash array
|
|
17678
|
+
strokeDasharray: [ 10000, 1 ]
|
|
17675
17679
|
})
|
|
17676
17680
|
});
|
|
17677
17681
|
|
|
@@ -17687,7 +17691,11 @@
|
|
|
17687
17691
|
...shapeStyle({
|
|
17688
17692
|
fill: fill,
|
|
17689
17693
|
stroke: stroke,
|
|
17690
|
-
strokeWidth: 1
|
|
17694
|
+
strokeWidth: 1,
|
|
17695
|
+
|
|
17696
|
+
// fix for safari / chrome / firefox bug not correctly
|
|
17697
|
+
// resetting stroke dash array
|
|
17698
|
+
strokeDasharray: [ 10000, 1 ]
|
|
17691
17699
|
})
|
|
17692
17700
|
});
|
|
17693
17701
|
|
|
@@ -17703,7 +17711,11 @@
|
|
|
17703
17711
|
...lineStyle({
|
|
17704
17712
|
fill: 'none',
|
|
17705
17713
|
stroke: stroke,
|
|
17706
|
-
strokeWidth: 1.5
|
|
17714
|
+
strokeWidth: 1.5,
|
|
17715
|
+
|
|
17716
|
+
// fix for safari / chrome / firefox bug not correctly
|
|
17717
|
+
// resetting stroke dash array
|
|
17718
|
+
strokeDasharray: [ 10000, 1 ]
|
|
17707
17719
|
})
|
|
17708
17720
|
});
|
|
17709
17721
|
|
|
@@ -17720,7 +17732,11 @@
|
|
|
17720
17732
|
...lineStyle({
|
|
17721
17733
|
fill: 'none',
|
|
17722
17734
|
stroke: stroke,
|
|
17723
|
-
strokeWidth: 1.5
|
|
17735
|
+
strokeWidth: 1.5,
|
|
17736
|
+
|
|
17737
|
+
// fix for safari / chrome / firefox bug not correctly
|
|
17738
|
+
// resetting stroke dash array
|
|
17739
|
+
strokeDasharray: [ 10000, 1 ]
|
|
17724
17740
|
})
|
|
17725
17741
|
});
|
|
17726
17742
|
|
|
@@ -20968,7 +20984,7 @@
|
|
|
20968
20984
|
return isPrimaryButton(event) || isAuxiliaryButton(event);
|
|
20969
20985
|
}
|
|
20970
20986
|
|
|
20971
|
-
var LOW_PRIORITY$
|
|
20987
|
+
var LOW_PRIORITY$s = 500;
|
|
20972
20988
|
|
|
20973
20989
|
|
|
20974
20990
|
/**
|
|
@@ -21163,7 +21179,7 @@
|
|
|
21163
21179
|
eventBus.on([
|
|
21164
21180
|
'shape.changed',
|
|
21165
21181
|
'connection.changed'
|
|
21166
|
-
], LOW_PRIORITY$
|
|
21182
|
+
], LOW_PRIORITY$s, function(event) {
|
|
21167
21183
|
|
|
21168
21184
|
var element = event.element,
|
|
21169
21185
|
gfx = event.gfx;
|
|
@@ -21171,7 +21187,7 @@
|
|
|
21171
21187
|
eventBus.fire('interactionEvents.updateHit', { element: element, gfx: gfx });
|
|
21172
21188
|
});
|
|
21173
21189
|
|
|
21174
|
-
eventBus.on('interactionEvents.createHit', LOW_PRIORITY$
|
|
21190
|
+
eventBus.on('interactionEvents.createHit', LOW_PRIORITY$s, function(event) {
|
|
21175
21191
|
var element = event.element,
|
|
21176
21192
|
gfx = event.gfx;
|
|
21177
21193
|
|
|
@@ -21448,7 +21464,7 @@
|
|
|
21448
21464
|
interactionEvents: [ 'type', InteractionEvents ]
|
|
21449
21465
|
};
|
|
21450
21466
|
|
|
21451
|
-
var LOW_PRIORITY$
|
|
21467
|
+
var LOW_PRIORITY$r = 500;
|
|
21452
21468
|
|
|
21453
21469
|
|
|
21454
21470
|
/**
|
|
@@ -21487,7 +21503,7 @@
|
|
|
21487
21503
|
|
|
21488
21504
|
// A low priortity is necessary, because outlines of labels have to be updated
|
|
21489
21505
|
// after the label bounds have been updated in the renderer.
|
|
21490
|
-
eventBus.on([ 'shape.added', 'shape.changed' ], LOW_PRIORITY$
|
|
21506
|
+
eventBus.on([ 'shape.added', 'shape.changed' ], LOW_PRIORITY$r, function(event) {
|
|
21491
21507
|
var element = event.element,
|
|
21492
21508
|
gfx = event.gfx;
|
|
21493
21509
|
|
|
@@ -21933,7 +21949,7 @@
|
|
|
21933
21949
|
// document wide unique overlay ids
|
|
21934
21950
|
var ids$1 = new IdGenerator('ov');
|
|
21935
21951
|
|
|
21936
|
-
var LOW_PRIORITY$
|
|
21952
|
+
var LOW_PRIORITY$q = 500;
|
|
21937
21953
|
|
|
21938
21954
|
|
|
21939
21955
|
/**
|
|
@@ -22505,7 +22521,7 @@
|
|
|
22505
22521
|
|
|
22506
22522
|
// move integration
|
|
22507
22523
|
|
|
22508
|
-
eventBus.on('element.changed', LOW_PRIORITY$
|
|
22524
|
+
eventBus.on('element.changed', LOW_PRIORITY$q, function(e) {
|
|
22509
22525
|
var element = e.element;
|
|
22510
22526
|
|
|
22511
22527
|
var container = self._getOverlayContainer(element, true);
|
|
@@ -23465,7 +23481,7 @@
|
|
|
23465
23481
|
return true;
|
|
23466
23482
|
}
|
|
23467
23483
|
|
|
23468
|
-
var LOW_PRIORITY$
|
|
23484
|
+
var LOW_PRIORITY$p = 250;
|
|
23469
23485
|
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>';
|
|
23470
23486
|
|
|
23471
23487
|
var EMPTY_MARKER = 'bjs-drilldown-empty';
|
|
@@ -23482,7 +23498,7 @@
|
|
|
23482
23498
|
|
|
23483
23499
|
var self = this;
|
|
23484
23500
|
|
|
23485
|
-
this.executed('shape.toggleCollapse', LOW_PRIORITY$
|
|
23501
|
+
this.executed('shape.toggleCollapse', LOW_PRIORITY$p, function(context) {
|
|
23486
23502
|
var shape = context.shape;
|
|
23487
23503
|
|
|
23488
23504
|
// Add overlay to the collapsed shape
|
|
@@ -23494,7 +23510,7 @@
|
|
|
23494
23510
|
}, true);
|
|
23495
23511
|
|
|
23496
23512
|
|
|
23497
|
-
this.reverted('shape.toggleCollapse', LOW_PRIORITY$
|
|
23513
|
+
this.reverted('shape.toggleCollapse', LOW_PRIORITY$p, function(context) {
|
|
23498
23514
|
var shape = context.shape;
|
|
23499
23515
|
|
|
23500
23516
|
// Add overlay to the collapsed shape
|
|
@@ -23506,7 +23522,7 @@
|
|
|
23506
23522
|
}, true);
|
|
23507
23523
|
|
|
23508
23524
|
|
|
23509
|
-
this.executed([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY$
|
|
23525
|
+
this.executed([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY$p,
|
|
23510
23526
|
function(context) {
|
|
23511
23527
|
var oldParent = context.oldParent,
|
|
23512
23528
|
newParent = context.newParent || context.parent,
|
|
@@ -23523,7 +23539,7 @@
|
|
|
23523
23539
|
}, true);
|
|
23524
23540
|
|
|
23525
23541
|
|
|
23526
|
-
this.reverted([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY$
|
|
23542
|
+
this.reverted([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY$p,
|
|
23527
23543
|
function(context) {
|
|
23528
23544
|
var oldParent = context.oldParent,
|
|
23529
23545
|
newParent = context.newParent || context.parent,
|
|
@@ -23976,7 +23992,7 @@
|
|
|
23976
23992
|
return target && (matches(target, 'input, textarea') || target.contentEditable === 'true');
|
|
23977
23993
|
}
|
|
23978
23994
|
|
|
23979
|
-
var LOW_PRIORITY$
|
|
23995
|
+
var LOW_PRIORITY$o = 500;
|
|
23980
23996
|
|
|
23981
23997
|
|
|
23982
23998
|
/**
|
|
@@ -23992,7 +24008,7 @@
|
|
|
23992
24008
|
|
|
23993
24009
|
var self = this;
|
|
23994
24010
|
|
|
23995
|
-
eventBus.on('editorActions.init', LOW_PRIORITY$
|
|
24011
|
+
eventBus.on('editorActions.init', LOW_PRIORITY$o, function(event) {
|
|
23996
24012
|
|
|
23997
24013
|
var editorActions = event.editorActions;
|
|
23998
24014
|
|
|
@@ -29473,14 +29489,14 @@
|
|
|
29473
29489
|
|
|
29474
29490
|
var ICONS$1 = icons$1;
|
|
29475
29491
|
|
|
29476
|
-
var LOW_PRIORITY$
|
|
29492
|
+
var LOW_PRIORITY$n = 900;
|
|
29477
29493
|
|
|
29478
29494
|
/**
|
|
29479
29495
|
* A provider for align elements context pad button
|
|
29480
29496
|
*/
|
|
29481
29497
|
function AlignElementsContextPadProvider(contextPad, popupMenu, translate, canvas) {
|
|
29482
29498
|
|
|
29483
|
-
contextPad.registerProvider(LOW_PRIORITY$
|
|
29499
|
+
contextPad.registerProvider(LOW_PRIORITY$n, this);
|
|
29484
29500
|
|
|
29485
29501
|
this._contextPad = contextPad;
|
|
29486
29502
|
this._popupMenu = popupMenu;
|
|
@@ -30034,7 +30050,7 @@
|
|
|
30034
30050
|
return true;
|
|
30035
30051
|
}
|
|
30036
30052
|
|
|
30037
|
-
var LOW_PRIORITY$
|
|
30053
|
+
var LOW_PRIORITY$m = 100;
|
|
30038
30054
|
|
|
30039
30055
|
|
|
30040
30056
|
/**
|
|
@@ -30046,7 +30062,7 @@
|
|
|
30046
30062
|
*/
|
|
30047
30063
|
function AutoPlace$1(eventBus, modeling, canvas) {
|
|
30048
30064
|
|
|
30049
|
-
eventBus.on('autoPlace', LOW_PRIORITY$
|
|
30065
|
+
eventBus.on('autoPlace', LOW_PRIORITY$m, function(context) {
|
|
30050
30066
|
var shape = context.shape,
|
|
30051
30067
|
source = context.source;
|
|
30052
30068
|
|
|
@@ -33758,7 +33774,7 @@
|
|
|
33758
33774
|
}
|
|
33759
33775
|
|
|
33760
33776
|
var HIGH_PRIORITY$h = 1100,
|
|
33761
|
-
LOW_PRIORITY$
|
|
33777
|
+
LOW_PRIORITY$l = 900;
|
|
33762
33778
|
|
|
33763
33779
|
var MARKER_OK$3 = 'connect-ok',
|
|
33764
33780
|
MARKER_NOT_OK$3 = 'connect-not-ok';
|
|
@@ -33802,7 +33818,7 @@
|
|
|
33802
33818
|
});
|
|
33803
33819
|
});
|
|
33804
33820
|
|
|
33805
|
-
eventBus.on('connect.hover', LOW_PRIORITY$
|
|
33821
|
+
eventBus.on('connect.hover', LOW_PRIORITY$l, function(event) {
|
|
33806
33822
|
var context = event.context,
|
|
33807
33823
|
hover = event.hover,
|
|
33808
33824
|
canExecute = context.canExecute;
|
|
@@ -35360,7 +35376,7 @@
|
|
|
35360
35376
|
return !!element.labelTarget;
|
|
35361
35377
|
}
|
|
35362
35378
|
|
|
35363
|
-
var LOW_PRIORITY$
|
|
35379
|
+
var LOW_PRIORITY$k = 750;
|
|
35364
35380
|
|
|
35365
35381
|
|
|
35366
35382
|
function CreatePreview(
|
|
@@ -35405,7 +35421,7 @@
|
|
|
35405
35421
|
return dragGroup;
|
|
35406
35422
|
}
|
|
35407
35423
|
|
|
35408
|
-
eventBus.on('create.move', LOW_PRIORITY$
|
|
35424
|
+
eventBus.on('create.move', LOW_PRIORITY$k, function(event) {
|
|
35409
35425
|
|
|
35410
35426
|
var hover = event.hover,
|
|
35411
35427
|
context = event.context,
|
|
@@ -36187,7 +36203,7 @@
|
|
|
36187
36203
|
});
|
|
36188
36204
|
}
|
|
36189
36205
|
|
|
36190
|
-
var LOW_PRIORITY$
|
|
36206
|
+
var LOW_PRIORITY$j = 750;
|
|
36191
36207
|
|
|
36192
36208
|
|
|
36193
36209
|
function BpmnCopyPaste(bpmnFactory, eventBus, moddleCopy) {
|
|
@@ -36198,7 +36214,7 @@
|
|
|
36198
36214
|
return moddleCopy.copyElement(bo, targetBo, null, clone);
|
|
36199
36215
|
}
|
|
36200
36216
|
|
|
36201
|
-
eventBus.on('copyPaste.copyElement', LOW_PRIORITY$
|
|
36217
|
+
eventBus.on('copyPaste.copyElement', LOW_PRIORITY$j, function(context) {
|
|
36202
36218
|
var descriptor = context.descriptor,
|
|
36203
36219
|
element = context.element,
|
|
36204
36220
|
businessObject = getBusinessObject$1(element);
|
|
@@ -36295,7 +36311,7 @@
|
|
|
36295
36311
|
|
|
36296
36312
|
// copy + paste processRef with participant
|
|
36297
36313
|
|
|
36298
|
-
eventBus.on('copyPaste.copyElement', LOW_PRIORITY$
|
|
36314
|
+
eventBus.on('copyPaste.copyElement', LOW_PRIORITY$j, function(context) {
|
|
36299
36315
|
var descriptor = context.descriptor,
|
|
36300
36316
|
element = context.element;
|
|
36301
36317
|
|
|
@@ -36321,7 +36337,7 @@
|
|
|
36321
36337
|
|
|
36322
36338
|
// resolve references
|
|
36323
36339
|
|
|
36324
|
-
eventBus.on('copyPaste.pasteElement', LOW_PRIORITY$
|
|
36340
|
+
eventBus.on('copyPaste.pasteElement', LOW_PRIORITY$j, function(context) {
|
|
36325
36341
|
var cache = context.cache,
|
|
36326
36342
|
descriptor = context.descriptor;
|
|
36327
36343
|
|
|
@@ -40581,12 +40597,13 @@
|
|
|
40581
40597
|
* A palette provider for the create elements menu.
|
|
40582
40598
|
*/
|
|
40583
40599
|
function CreatePaletteProvider(palette, translate, popupMenu, canvas, mouse) {
|
|
40600
|
+
|
|
40584
40601
|
this._translate = translate;
|
|
40585
40602
|
this._popupMenu = popupMenu;
|
|
40586
40603
|
this._canvas = canvas;
|
|
40587
40604
|
this._mouse = mouse;
|
|
40588
40605
|
|
|
40589
|
-
palette.registerProvider(this);
|
|
40606
|
+
palette.registerProvider(800,this);
|
|
40590
40607
|
}
|
|
40591
40608
|
|
|
40592
40609
|
CreatePaletteProvider.$inject = [
|
|
@@ -40599,8 +40616,7 @@
|
|
|
40599
40616
|
|
|
40600
40617
|
|
|
40601
40618
|
CreatePaletteProvider.prototype.getPaletteEntries = function(element) {
|
|
40602
|
-
const
|
|
40603
|
-
translate = this._translate,
|
|
40619
|
+
const translate = this._translate,
|
|
40604
40620
|
popupMenu = this._popupMenu,
|
|
40605
40621
|
canvas = this._canvas,
|
|
40606
40622
|
mouse = this._mouse;
|
|
@@ -40623,7 +40639,7 @@
|
|
|
40623
40639
|
};
|
|
40624
40640
|
};
|
|
40625
40641
|
|
|
40626
|
-
|
|
40642
|
+
return {
|
|
40627
40643
|
'create': {
|
|
40628
40644
|
group: 'create',
|
|
40629
40645
|
imageUrl: createIcon,
|
|
@@ -40641,10 +40657,8 @@
|
|
|
40641
40657
|
});
|
|
40642
40658
|
}
|
|
40643
40659
|
}
|
|
40644
|
-
}
|
|
40645
|
-
}
|
|
40646
|
-
|
|
40647
|
-
return actions;
|
|
40660
|
+
}
|
|
40661
|
+
};
|
|
40648
40662
|
};
|
|
40649
40663
|
|
|
40650
40664
|
/**
|
|
@@ -40672,16 +40686,23 @@
|
|
|
40672
40686
|
var selection = this._injector.get('selection', false);
|
|
40673
40687
|
var contextPad = this._injector.get('contextPad', false);
|
|
40674
40688
|
var palette = this._injector.get('palette', false);
|
|
40689
|
+
var popupMenu = this._injector.get('popupMenu', false);
|
|
40675
40690
|
|
|
40676
40691
|
const actions = {};
|
|
40677
40692
|
|
|
40678
40693
|
// append
|
|
40679
|
-
if (selection && contextPad) {
|
|
40694
|
+
if (selection && contextPad && palette && popupMenu && palette) {
|
|
40680
40695
|
assign$1(actions, {
|
|
40681
40696
|
'appendElement': function(event) {
|
|
40682
|
-
|
|
40683
|
-
|
|
40684
|
-
|
|
40697
|
+
const selected = selection && selection.get();
|
|
40698
|
+
|
|
40699
|
+
if (selected.length == 1 && !popupMenu.isEmpty(selected[0], 'bpmn-append')) {
|
|
40700
|
+
contextPad.triggerEntry('append', 'click', event);
|
|
40701
|
+
} else {
|
|
40702
|
+
palette.triggerEntry('create', 'click', event);
|
|
40703
|
+
}
|
|
40704
|
+
}
|
|
40705
|
+
});
|
|
40685
40706
|
}
|
|
40686
40707
|
|
|
40687
40708
|
// create
|
|
@@ -40707,7 +40728,6 @@
|
|
|
40707
40728
|
this._injector = injector;
|
|
40708
40729
|
this._keyboard = this._injector.get('keyboard', false);
|
|
40709
40730
|
this._editorActions = this._injector.get('editorActions', false);
|
|
40710
|
-
this._selection = this._injector.get('selection', false);
|
|
40711
40731
|
|
|
40712
40732
|
if (this._keyboard) {
|
|
40713
40733
|
this._injector.invoke(KeyboardBindings, this);
|
|
@@ -40731,7 +40751,6 @@
|
|
|
40731
40751
|
|
|
40732
40752
|
var keyboard = this._keyboard;
|
|
40733
40753
|
var editorActions = this._editorActions;
|
|
40734
|
-
var selection = this._selection;
|
|
40735
40754
|
|
|
40736
40755
|
// inherit default bindings
|
|
40737
40756
|
KeyboardBindings.prototype.registerBindings.call(this, keyboard, editorActions);
|
|
@@ -40762,12 +40781,7 @@
|
|
|
40762
40781
|
|
|
40763
40782
|
if (keyboard && keyboard.isKey([ 'a', 'A' ], event)) {
|
|
40764
40783
|
|
|
40765
|
-
|
|
40766
|
-
editorActions && editorActions.trigger('appendElement', event);
|
|
40767
|
-
} else {
|
|
40768
|
-
editorActions && editorActions.trigger('createElement', event);
|
|
40769
|
-
}
|
|
40770
|
-
|
|
40784
|
+
editorActions && editorActions.trigger('appendElement', event);
|
|
40771
40785
|
return true;
|
|
40772
40786
|
}
|
|
40773
40787
|
});
|
|
@@ -40799,7 +40813,8 @@
|
|
|
40799
40813
|
create,
|
|
40800
40814
|
autoPlace,
|
|
40801
40815
|
rules,
|
|
40802
|
-
mouse
|
|
40816
|
+
mouse,
|
|
40817
|
+
translate
|
|
40803
40818
|
) {
|
|
40804
40819
|
this._elementFactory = elementFactory;
|
|
40805
40820
|
this._popupMenu = popupMenu;
|
|
@@ -40808,6 +40823,7 @@
|
|
|
40808
40823
|
this._rules = rules;
|
|
40809
40824
|
this._create = create;
|
|
40810
40825
|
this._mouse = mouse;
|
|
40826
|
+
this._translate = translate;
|
|
40811
40827
|
|
|
40812
40828
|
this.register();
|
|
40813
40829
|
}
|
|
@@ -40818,7 +40834,8 @@
|
|
|
40818
40834
|
'create',
|
|
40819
40835
|
'autoPlace',
|
|
40820
40836
|
'rules',
|
|
40821
|
-
'mouse'
|
|
40837
|
+
'mouse',
|
|
40838
|
+
'translate'
|
|
40822
40839
|
];
|
|
40823
40840
|
|
|
40824
40841
|
/**
|
|
@@ -40837,6 +40854,8 @@
|
|
|
40837
40854
|
*/
|
|
40838
40855
|
AppendMenuProvider.prototype.getPopupMenuEntries = function(element) {
|
|
40839
40856
|
const rules = this._rules;
|
|
40857
|
+
const translate = this._translate;
|
|
40858
|
+
|
|
40840
40859
|
const entries = {};
|
|
40841
40860
|
|
|
40842
40861
|
if (!rules.allowed('shape.append', { element: element })) {
|
|
@@ -40860,10 +40879,13 @@
|
|
|
40860
40879
|
} = option;
|
|
40861
40880
|
|
|
40862
40881
|
entries[`append-${actionName}`] = {
|
|
40863
|
-
label,
|
|
40882
|
+
label: label && translate(label),
|
|
40864
40883
|
className,
|
|
40865
40884
|
description,
|
|
40866
|
-
group
|
|
40885
|
+
group: group && {
|
|
40886
|
+
...group,
|
|
40887
|
+
name: translate(group.name)
|
|
40888
|
+
},
|
|
40867
40889
|
search,
|
|
40868
40890
|
rank,
|
|
40869
40891
|
action: this._createEntryAction(element, target)
|
|
@@ -40931,7 +40953,9 @@
|
|
|
40931
40953
|
event = mouse.getLastMoveEvent();
|
|
40932
40954
|
}
|
|
40933
40955
|
|
|
40934
|
-
return create.start(event, newElement
|
|
40956
|
+
return create.start(event, newElement, {
|
|
40957
|
+
source: element
|
|
40958
|
+
});
|
|
40935
40959
|
};
|
|
40936
40960
|
|
|
40937
40961
|
return {
|
|
@@ -40965,16 +40989,18 @@
|
|
|
40965
40989
|
return true;
|
|
40966
40990
|
};
|
|
40967
40991
|
|
|
40992
|
+
var LOW_PRIORITY$i = 900;
|
|
40993
|
+
|
|
40968
40994
|
/**
|
|
40969
40995
|
* A provider for align elements context pad button
|
|
40970
40996
|
*/
|
|
40971
40997
|
function AppendContextPadProvider(contextPad, popupMenu, translate, canvas) {
|
|
40998
|
+
contextPad.registerProvider(LOW_PRIORITY$i, this);
|
|
40999
|
+
|
|
40972
41000
|
this._contextPad = contextPad;
|
|
40973
41001
|
this._popupMenu = popupMenu;
|
|
40974
41002
|
this._translate = translate;
|
|
40975
41003
|
this._canvas = canvas;
|
|
40976
|
-
|
|
40977
|
-
contextPad.registerProvider(this);
|
|
40978
41004
|
}
|
|
40979
41005
|
|
|
40980
41006
|
AppendContextPadProvider.$inject = [
|
|
@@ -40991,7 +41017,7 @@
|
|
|
40991
41017
|
|
|
40992
41018
|
if (!popupMenu.isEmpty(element, 'bpmn-append')) {
|
|
40993
41019
|
|
|
40994
|
-
//
|
|
41020
|
+
// append menu entry
|
|
40995
41021
|
return {
|
|
40996
41022
|
'append': {
|
|
40997
41023
|
group: 'model',
|
|
@@ -43823,7 +43849,7 @@
|
|
|
43823
43849
|
|
|
43824
43850
|
function activateDirectEdit(element, force) {
|
|
43825
43851
|
if (force ||
|
|
43826
|
-
isAny(element, [ 'bpmn:Task', 'bpmn:TextAnnotation' ]) ||
|
|
43852
|
+
isAny(element, [ 'bpmn:Task', 'bpmn:TextAnnotation', 'bpmn:Participant' ]) ||
|
|
43827
43853
|
isCollapsedSubProcess(element)) {
|
|
43828
43854
|
|
|
43829
43855
|
directEditing.activate(element);
|