bpmn-js 11.2.0 → 11.3.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/bpmn-modeler.development.js +143 -114
- package/dist/bpmn-modeler.production.min.js +14 -14
- package/dist/bpmn-navigated-viewer.development.js +24 -8
- package/dist/bpmn-navigated-viewer.production.min.js +2 -2
- package/dist/bpmn-viewer.development.js +24 -8
- package/dist/bpmn-viewer.production.min.js +2 -2
- package/lib/BaseModeler.js +6 -2
- package/lib/BaseViewer.js +16 -4
- package/lib/Modeler.js +6 -2
- package/lib/Viewer.js +6 -2
- package/lib/features/create-append-anything/AppendContextPadProvider.js +2 -2
- package/lib/features/create-append-anything/AppendMenuProvider.js +3 -1
- package/lib/features/create-append-anything/CreateMenuProvider.js +3 -1
- package/lib/features/create-append-anything/CreatePaletteProvider.js +1 -2
- package/lib/features/create-append-anything/util/OptionsUtil.js +26 -21
- package/lib/features/replace/ReplaceOptions.js +16 -16
- package/lib/icons/dist/append.svg +1 -0
- package/lib/icons/dist/connect-context-pad.svg +1 -0
- package/lib/icons/dist/connect-palette.svg +1 -0
- package/lib/{features/palette → icons}/dist/create.svg +0 -0
- package/package.json +3 -3
- package/lib/features/align-elements/dist/align-bottom-tool.svg +0 -1
- package/lib/features/align-elements/dist/align-horizontal-center-tool.svg +0 -1
- package/lib/features/align-elements/dist/align-left-tool.svg +0 -1
- package/lib/features/align-elements/dist/align-right-tool.svg +0 -1
- package/lib/features/align-elements/dist/align-tool.svg +0 -1
- package/lib/features/align-elements/dist/align-top-tool.svg +0 -1
- package/lib/features/align-elements/dist/align-vertical-center-tool.svg +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-modeler v11.
|
|
2
|
+
* bpmn-js - bpmn-modeler v11.3.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-02-
|
|
11
|
+
* Date: 2023-02-07
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -16293,6 +16293,11 @@
|
|
|
16293
16293
|
* @see http://bpmn.io/license for more information.
|
|
16294
16294
|
*/
|
|
16295
16295
|
|
|
16296
|
+
|
|
16297
|
+
/**
|
|
16298
|
+
* @typedef { import('didi').ModuleDeclaration } Module
|
|
16299
|
+
*/
|
|
16300
|
+
|
|
16296
16301
|
/**
|
|
16297
16302
|
* A base viewer for BPMN 2.0 diagrams.
|
|
16298
16303
|
*
|
|
@@ -16304,8 +16309,8 @@
|
|
|
16304
16309
|
* @param {string|number} [options.width] the width of the viewer
|
|
16305
16310
|
* @param {string|number} [options.height] the height of the viewer
|
|
16306
16311
|
* @param {Object} [options.moddleExtensions] extension packages to provide
|
|
16307
|
-
* @param {
|
|
16308
|
-
* @param {
|
|
16312
|
+
* @param {Module[]} [options.modules] a list of modules to override the default modules
|
|
16313
|
+
* @param {Module[]} [options.additionalModules] a list of modules to use with the default modules
|
|
16309
16314
|
*/
|
|
16310
16315
|
function BaseViewer(options) {
|
|
16311
16316
|
|
|
@@ -16734,7 +16739,14 @@
|
|
|
16734
16739
|
this._definitions = definitions;
|
|
16735
16740
|
};
|
|
16736
16741
|
|
|
16737
|
-
|
|
16742
|
+
/**
|
|
16743
|
+
* Return modules to instantiate with.
|
|
16744
|
+
*
|
|
16745
|
+
* @param {any} options the instance got created with
|
|
16746
|
+
*
|
|
16747
|
+
* @return {Module[]}
|
|
16748
|
+
*/
|
|
16749
|
+
BaseViewer.prototype.getModules = function(options) {
|
|
16738
16750
|
return this._modules;
|
|
16739
16751
|
};
|
|
16740
16752
|
|
|
@@ -16840,7 +16852,7 @@
|
|
|
16840
16852
|
|
|
16841
16853
|
BaseViewer.prototype._init = function(container, moddle, options) {
|
|
16842
16854
|
|
|
16843
|
-
const baseModules = options.modules || this.getModules(),
|
|
16855
|
+
const baseModules = options.modules || this.getModules(options),
|
|
16844
16856
|
additionalModules = options.additionalModules || [],
|
|
16845
16857
|
staticModules = [
|
|
16846
16858
|
{
|
|
@@ -16995,6 +17007,10 @@
|
|
|
16995
17007
|
|
|
16996
17008
|
/* </project-logo> */
|
|
16997
17009
|
|
|
17010
|
+
/**
|
|
17011
|
+
* @typedef { import('didi').ModuleDeclaration } Module
|
|
17012
|
+
*/
|
|
17013
|
+
|
|
16998
17014
|
/**
|
|
16999
17015
|
* A base modeler for BPMN 2.0 diagrams.
|
|
17000
17016
|
*
|
|
@@ -17005,8 +17021,8 @@
|
|
|
17005
17021
|
* @param {string|number} [options.width] the width of the viewer
|
|
17006
17022
|
* @param {string|number} [options.height] the height of the viewer
|
|
17007
17023
|
* @param {Object} [options.moddleExtensions] extension packages to provide
|
|
17008
|
-
* @param {
|
|
17009
|
-
* @param {
|
|
17024
|
+
* @param {Module[]} [options.modules] a list of modules to override the default modules
|
|
17025
|
+
* @param {Module[]} [options.additionalModules] a list of modules to use with the default modules
|
|
17010
17026
|
*/
|
|
17011
17027
|
function BaseModeler(options) {
|
|
17012
17028
|
BaseViewer.call(this, options);
|
|
@@ -20744,7 +20760,7 @@
|
|
|
20744
20760
|
return isPrimaryButton(event) || isAuxiliaryButton(event);
|
|
20745
20761
|
}
|
|
20746
20762
|
|
|
20747
|
-
var LOW_PRIORITY$
|
|
20763
|
+
var LOW_PRIORITY$q = 500;
|
|
20748
20764
|
|
|
20749
20765
|
|
|
20750
20766
|
/**
|
|
@@ -20939,7 +20955,7 @@
|
|
|
20939
20955
|
eventBus.on([
|
|
20940
20956
|
'shape.changed',
|
|
20941
20957
|
'connection.changed'
|
|
20942
|
-
], LOW_PRIORITY$
|
|
20958
|
+
], LOW_PRIORITY$q, function(event) {
|
|
20943
20959
|
|
|
20944
20960
|
var element = event.element,
|
|
20945
20961
|
gfx = event.gfx;
|
|
@@ -20947,7 +20963,7 @@
|
|
|
20947
20963
|
eventBus.fire('interactionEvents.updateHit', { element: element, gfx: gfx });
|
|
20948
20964
|
});
|
|
20949
20965
|
|
|
20950
|
-
eventBus.on('interactionEvents.createHit', LOW_PRIORITY$
|
|
20966
|
+
eventBus.on('interactionEvents.createHit', LOW_PRIORITY$q, function(event) {
|
|
20951
20967
|
var element = event.element,
|
|
20952
20968
|
gfx = event.gfx;
|
|
20953
20969
|
|
|
@@ -21224,7 +21240,7 @@
|
|
|
21224
21240
|
interactionEvents: [ 'type', InteractionEvents ]
|
|
21225
21241
|
};
|
|
21226
21242
|
|
|
21227
|
-
var LOW_PRIORITY$
|
|
21243
|
+
var LOW_PRIORITY$p = 500;
|
|
21228
21244
|
|
|
21229
21245
|
|
|
21230
21246
|
/**
|
|
@@ -21263,7 +21279,7 @@
|
|
|
21263
21279
|
|
|
21264
21280
|
// A low priortity is necessary, because outlines of labels have to be updated
|
|
21265
21281
|
// after the label bounds have been updated in the renderer.
|
|
21266
|
-
eventBus.on([ 'shape.added', 'shape.changed' ], LOW_PRIORITY$
|
|
21282
|
+
eventBus.on([ 'shape.added', 'shape.changed' ], LOW_PRIORITY$p, function(event) {
|
|
21267
21283
|
var element = event.element,
|
|
21268
21284
|
gfx = event.gfx;
|
|
21269
21285
|
|
|
@@ -21709,7 +21725,7 @@
|
|
|
21709
21725
|
// document wide unique overlay ids
|
|
21710
21726
|
var ids$1 = new IdGenerator('ov');
|
|
21711
21727
|
|
|
21712
|
-
var LOW_PRIORITY$
|
|
21728
|
+
var LOW_PRIORITY$o = 500;
|
|
21713
21729
|
|
|
21714
21730
|
|
|
21715
21731
|
/**
|
|
@@ -22281,7 +22297,7 @@
|
|
|
22281
22297
|
|
|
22282
22298
|
// move integration
|
|
22283
22299
|
|
|
22284
|
-
eventBus.on('element.changed', LOW_PRIORITY$
|
|
22300
|
+
eventBus.on('element.changed', LOW_PRIORITY$o, function(e) {
|
|
22285
22301
|
var element = e.element;
|
|
22286
22302
|
|
|
22287
22303
|
var container = self._getOverlayContainer(element, true);
|
|
@@ -23241,7 +23257,7 @@
|
|
|
23241
23257
|
return true;
|
|
23242
23258
|
}
|
|
23243
23259
|
|
|
23244
|
-
var LOW_PRIORITY$
|
|
23260
|
+
var LOW_PRIORITY$n = 250;
|
|
23245
23261
|
var ARROW_DOWN_SVG = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg>';
|
|
23246
23262
|
|
|
23247
23263
|
var EMPTY_MARKER = 'bjs-drilldown-empty';
|
|
@@ -23258,7 +23274,7 @@
|
|
|
23258
23274
|
|
|
23259
23275
|
var self = this;
|
|
23260
23276
|
|
|
23261
|
-
this.executed('shape.toggleCollapse', LOW_PRIORITY$
|
|
23277
|
+
this.executed('shape.toggleCollapse', LOW_PRIORITY$n, function(context) {
|
|
23262
23278
|
var shape = context.shape;
|
|
23263
23279
|
|
|
23264
23280
|
// Add overlay to the collapsed shape
|
|
@@ -23270,7 +23286,7 @@
|
|
|
23270
23286
|
}, true);
|
|
23271
23287
|
|
|
23272
23288
|
|
|
23273
|
-
this.reverted('shape.toggleCollapse', LOW_PRIORITY$
|
|
23289
|
+
this.reverted('shape.toggleCollapse', LOW_PRIORITY$n, function(context) {
|
|
23274
23290
|
var shape = context.shape;
|
|
23275
23291
|
|
|
23276
23292
|
// Add overlay to the collapsed shape
|
|
@@ -23282,7 +23298,7 @@
|
|
|
23282
23298
|
}, true);
|
|
23283
23299
|
|
|
23284
23300
|
|
|
23285
|
-
this.executed([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY$
|
|
23301
|
+
this.executed([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY$n,
|
|
23286
23302
|
function(context) {
|
|
23287
23303
|
var oldParent = context.oldParent,
|
|
23288
23304
|
newParent = context.newParent || context.parent,
|
|
@@ -23299,7 +23315,7 @@
|
|
|
23299
23315
|
}, true);
|
|
23300
23316
|
|
|
23301
23317
|
|
|
23302
|
-
this.reverted([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY$
|
|
23318
|
+
this.reverted([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY$n,
|
|
23303
23319
|
function(context) {
|
|
23304
23320
|
var oldParent = context.oldParent,
|
|
23305
23321
|
newParent = context.newParent || context.parent,
|
|
@@ -23425,6 +23441,10 @@
|
|
|
23425
23441
|
subprocessCompatibility: [ 'type', SubprocessCompatibility ]
|
|
23426
23442
|
};
|
|
23427
23443
|
|
|
23444
|
+
/**
|
|
23445
|
+
* @typedef { import('didi').ModuleDeclaration } Module
|
|
23446
|
+
*/
|
|
23447
|
+
|
|
23428
23448
|
/**
|
|
23429
23449
|
* A viewer for BPMN 2.0 diagrams.
|
|
23430
23450
|
*
|
|
@@ -23469,8 +23489,8 @@
|
|
|
23469
23489
|
* @param {string|number} [options.width] the width of the viewer
|
|
23470
23490
|
* @param {string|number} [options.height] the height of the viewer
|
|
23471
23491
|
* @param {Object} [options.moddleExtensions] extension packages to provide
|
|
23472
|
-
* @param {
|
|
23473
|
-
* @param {
|
|
23492
|
+
* @param {Module[]} [options.modules] a list of modules to override the default modules
|
|
23493
|
+
* @param {Module[]} [options.additionalModules] a list of modules to use with the default modules
|
|
23474
23494
|
*/
|
|
23475
23495
|
function Viewer(options) {
|
|
23476
23496
|
BaseViewer.call(this, options);
|
|
@@ -23748,7 +23768,7 @@
|
|
|
23748
23768
|
return target && (matches(target, 'input, textarea') || target.contentEditable === 'true');
|
|
23749
23769
|
}
|
|
23750
23770
|
|
|
23751
|
-
var LOW_PRIORITY$
|
|
23771
|
+
var LOW_PRIORITY$m = 500;
|
|
23752
23772
|
|
|
23753
23773
|
|
|
23754
23774
|
/**
|
|
@@ -23764,7 +23784,7 @@
|
|
|
23764
23784
|
|
|
23765
23785
|
var self = this;
|
|
23766
23786
|
|
|
23767
|
-
eventBus.on('editorActions.init', LOW_PRIORITY$
|
|
23787
|
+
eventBus.on('editorActions.init', LOW_PRIORITY$m, function(event) {
|
|
23768
23788
|
|
|
23769
23789
|
var editorActions = event.editorActions;
|
|
23770
23790
|
|
|
@@ -28426,36 +28446,15 @@
|
|
|
28426
28446
|
|
|
28427
28447
|
const [ value, setValue ] = p('');
|
|
28428
28448
|
|
|
28429
|
-
const
|
|
28430
|
-
const [ selectedEntry, setSelectedEntry ] = p(entries[0]);
|
|
28431
|
-
|
|
28432
|
-
h(() => {
|
|
28433
|
-
onOpened();
|
|
28434
|
-
|
|
28435
|
-
return () => {
|
|
28436
|
-
onClosed();
|
|
28437
|
-
};
|
|
28438
|
-
}, []);
|
|
28449
|
+
const filterEntries = T((originalEntries, value) => {
|
|
28439
28450
|
|
|
28440
|
-
const updateEntries = T((newEntries) => {
|
|
28441
|
-
|
|
28442
|
-
// select first entry if non is selected
|
|
28443
|
-
if (!selectedEntry || !newEntries.includes(selectedEntry)) {
|
|
28444
|
-
setSelectedEntry(newEntries[0]);
|
|
28445
|
-
}
|
|
28446
|
-
|
|
28447
|
-
setEntries(newEntries);
|
|
28448
|
-
}, [ selectedEntry, setEntries, setSelectedEntry ]);
|
|
28449
|
-
|
|
28450
|
-
// filter entries on value change
|
|
28451
|
-
h(() => {
|
|
28452
28451
|
if (!searchable) {
|
|
28453
|
-
return;
|
|
28452
|
+
return originalEntries;
|
|
28454
28453
|
}
|
|
28455
28454
|
|
|
28456
28455
|
const filter = entry => {
|
|
28457
28456
|
if (!value) {
|
|
28458
|
-
return
|
|
28457
|
+
return (entry.rank || 0) >= 0;
|
|
28459
28458
|
}
|
|
28460
28459
|
|
|
28461
28460
|
const search = [
|
|
@@ -28472,10 +28471,26 @@
|
|
|
28472
28471
|
.every(term => search.includes(term));
|
|
28473
28472
|
};
|
|
28474
28473
|
|
|
28475
|
-
|
|
28474
|
+
return originalEntries.filter(filter);
|
|
28475
|
+
}, [ searchable ]);
|
|
28476
|
+
|
|
28477
|
+
const [ entries, setEntries ] = p(filterEntries(originalEntries, value));
|
|
28478
|
+
const [ selectedEntry, setSelectedEntry ] = p(entries[0]);
|
|
28476
28479
|
|
|
28477
|
-
|
|
28478
|
-
|
|
28480
|
+
const updateEntries = T((newEntries) => {
|
|
28481
|
+
|
|
28482
|
+
// select first entry if non is selected
|
|
28483
|
+
if (!selectedEntry || !newEntries.includes(selectedEntry)) {
|
|
28484
|
+
setSelectedEntry(newEntries[0]);
|
|
28485
|
+
}
|
|
28486
|
+
|
|
28487
|
+
setEntries(newEntries);
|
|
28488
|
+
}, [ selectedEntry, setEntries, setSelectedEntry ]);
|
|
28489
|
+
|
|
28490
|
+
// filter entries on value change
|
|
28491
|
+
h(() => {
|
|
28492
|
+
updateEntries(filterEntries(originalEntries, value));
|
|
28493
|
+
}, [ value, originalEntries ]);
|
|
28479
28494
|
|
|
28480
28495
|
// register global <Escape> handler
|
|
28481
28496
|
h(() => {
|
|
@@ -28521,10 +28536,6 @@
|
|
|
28521
28536
|
return onSelect(event, selectedEntry);
|
|
28522
28537
|
}
|
|
28523
28538
|
|
|
28524
|
-
if (event.key === 'Escape') {
|
|
28525
|
-
return onClose();
|
|
28526
|
-
}
|
|
28527
|
-
|
|
28528
28539
|
// ARROW_UP or SHIFT + TAB navigation
|
|
28529
28540
|
if (event.key === 'ArrowUp' || (event.key === 'Tab' && event.shiftKey)) {
|
|
28530
28541
|
keyboardSelect(-1);
|
|
@@ -28546,6 +28557,14 @@
|
|
|
28546
28557
|
}
|
|
28547
28558
|
}, [ setValue ]);
|
|
28548
28559
|
|
|
28560
|
+
h(() => {
|
|
28561
|
+
onOpened();
|
|
28562
|
+
|
|
28563
|
+
return () => {
|
|
28564
|
+
onClosed();
|
|
28565
|
+
};
|
|
28566
|
+
}, []);
|
|
28567
|
+
|
|
28549
28568
|
const displayHeader = F(() => title || headerEntries.length > 0, [ title, headerEntries ]);
|
|
28550
28569
|
|
|
28551
28570
|
return m$1`
|
|
@@ -29246,14 +29265,14 @@
|
|
|
29246
29265
|
|
|
29247
29266
|
var ICONS$1 = icons$1;
|
|
29248
29267
|
|
|
29249
|
-
var LOW_PRIORITY$
|
|
29268
|
+
var LOW_PRIORITY$l = 900;
|
|
29250
29269
|
|
|
29251
29270
|
/**
|
|
29252
29271
|
* A provider for align elements context pad button
|
|
29253
29272
|
*/
|
|
29254
29273
|
function AlignElementsContextPadProvider(contextPad, popupMenu, translate, canvas) {
|
|
29255
29274
|
|
|
29256
|
-
contextPad.registerProvider(LOW_PRIORITY$
|
|
29275
|
+
contextPad.registerProvider(LOW_PRIORITY$l, this);
|
|
29257
29276
|
|
|
29258
29277
|
this._contextPad = contextPad;
|
|
29259
29278
|
this._popupMenu = popupMenu;
|
|
@@ -29807,7 +29826,7 @@
|
|
|
29807
29826
|
return true;
|
|
29808
29827
|
}
|
|
29809
29828
|
|
|
29810
|
-
var LOW_PRIORITY$
|
|
29829
|
+
var LOW_PRIORITY$k = 100;
|
|
29811
29830
|
|
|
29812
29831
|
|
|
29813
29832
|
/**
|
|
@@ -29819,7 +29838,7 @@
|
|
|
29819
29838
|
*/
|
|
29820
29839
|
function AutoPlace$1(eventBus, modeling, canvas) {
|
|
29821
29840
|
|
|
29822
|
-
eventBus.on('autoPlace', LOW_PRIORITY$
|
|
29841
|
+
eventBus.on('autoPlace', LOW_PRIORITY$k, function(context) {
|
|
29823
29842
|
var shape = context.shape,
|
|
29824
29843
|
source = context.source;
|
|
29825
29844
|
|
|
@@ -33531,7 +33550,7 @@
|
|
|
33531
33550
|
}
|
|
33532
33551
|
|
|
33533
33552
|
var HIGH_PRIORITY$h = 1100,
|
|
33534
|
-
LOW_PRIORITY$
|
|
33553
|
+
LOW_PRIORITY$j = 900;
|
|
33535
33554
|
|
|
33536
33555
|
var MARKER_OK$3 = 'connect-ok',
|
|
33537
33556
|
MARKER_NOT_OK$3 = 'connect-not-ok';
|
|
@@ -33575,7 +33594,7 @@
|
|
|
33575
33594
|
});
|
|
33576
33595
|
});
|
|
33577
33596
|
|
|
33578
|
-
eventBus.on('connect.hover', LOW_PRIORITY$
|
|
33597
|
+
eventBus.on('connect.hover', LOW_PRIORITY$j, function(event) {
|
|
33579
33598
|
var context = event.context,
|
|
33580
33599
|
hover = event.hover,
|
|
33581
33600
|
canExecute = context.canExecute;
|
|
@@ -35133,7 +35152,7 @@
|
|
|
35133
35152
|
return !!element.labelTarget;
|
|
35134
35153
|
}
|
|
35135
35154
|
|
|
35136
|
-
var LOW_PRIORITY$
|
|
35155
|
+
var LOW_PRIORITY$i = 750;
|
|
35137
35156
|
|
|
35138
35157
|
|
|
35139
35158
|
function CreatePreview(
|
|
@@ -35178,7 +35197,7 @@
|
|
|
35178
35197
|
return dragGroup;
|
|
35179
35198
|
}
|
|
35180
35199
|
|
|
35181
|
-
eventBus.on('create.move', LOW_PRIORITY$
|
|
35200
|
+
eventBus.on('create.move', LOW_PRIORITY$i, function(event) {
|
|
35182
35201
|
|
|
35183
35202
|
var hover = event.hover,
|
|
35184
35203
|
context = event.context,
|
|
@@ -35960,7 +35979,7 @@
|
|
|
35960
35979
|
});
|
|
35961
35980
|
}
|
|
35962
35981
|
|
|
35963
|
-
var LOW_PRIORITY$
|
|
35982
|
+
var LOW_PRIORITY$h = 750;
|
|
35964
35983
|
|
|
35965
35984
|
|
|
35966
35985
|
function BpmnCopyPaste(bpmnFactory, eventBus, moddleCopy) {
|
|
@@ -35971,7 +35990,7 @@
|
|
|
35971
35990
|
return moddleCopy.copyElement(bo, targetBo, null, clone);
|
|
35972
35991
|
}
|
|
35973
35992
|
|
|
35974
|
-
eventBus.on('copyPaste.copyElement', LOW_PRIORITY$
|
|
35993
|
+
eventBus.on('copyPaste.copyElement', LOW_PRIORITY$h, function(context) {
|
|
35975
35994
|
var descriptor = context.descriptor,
|
|
35976
35995
|
element = context.element,
|
|
35977
35996
|
businessObject = getBusinessObject(element);
|
|
@@ -36068,7 +36087,7 @@
|
|
|
36068
36087
|
|
|
36069
36088
|
// copy + paste processRef with participant
|
|
36070
36089
|
|
|
36071
|
-
eventBus.on('copyPaste.copyElement', LOW_PRIORITY$
|
|
36090
|
+
eventBus.on('copyPaste.copyElement', LOW_PRIORITY$h, function(context) {
|
|
36072
36091
|
var descriptor = context.descriptor,
|
|
36073
36092
|
element = context.element;
|
|
36074
36093
|
|
|
@@ -36094,7 +36113,7 @@
|
|
|
36094
36113
|
|
|
36095
36114
|
// resolve references
|
|
36096
36115
|
|
|
36097
|
-
eventBus.on('copyPaste.pasteElement', LOW_PRIORITY$
|
|
36116
|
+
eventBus.on('copyPaste.pasteElement', LOW_PRIORITY$h, function(context) {
|
|
36098
36117
|
var cache = context.cache,
|
|
36099
36118
|
descriptor = context.descriptor;
|
|
36100
36119
|
|
|
@@ -37282,6 +37301,22 @@
|
|
|
37282
37301
|
type: 'bpmn:Task'
|
|
37283
37302
|
}
|
|
37284
37303
|
},
|
|
37304
|
+
{
|
|
37305
|
+
label: 'User Task',
|
|
37306
|
+
actionName: 'replace-with-user-task',
|
|
37307
|
+
className: 'bpmn-icon-user',
|
|
37308
|
+
target: {
|
|
37309
|
+
type: 'bpmn:UserTask'
|
|
37310
|
+
}
|
|
37311
|
+
},
|
|
37312
|
+
{
|
|
37313
|
+
label: 'Service Task',
|
|
37314
|
+
actionName: 'replace-with-service-task',
|
|
37315
|
+
className: 'bpmn-icon-service',
|
|
37316
|
+
target: {
|
|
37317
|
+
type: 'bpmn:ServiceTask'
|
|
37318
|
+
}
|
|
37319
|
+
},
|
|
37285
37320
|
{
|
|
37286
37321
|
label: 'Send Task',
|
|
37287
37322
|
actionName: 'replace-with-send-task',
|
|
@@ -37298,14 +37333,6 @@
|
|
|
37298
37333
|
type: 'bpmn:ReceiveTask'
|
|
37299
37334
|
}
|
|
37300
37335
|
},
|
|
37301
|
-
{
|
|
37302
|
-
label: 'User Task',
|
|
37303
|
-
actionName: 'replace-with-user-task',
|
|
37304
|
-
className: 'bpmn-icon-user',
|
|
37305
|
-
target: {
|
|
37306
|
-
type: 'bpmn:UserTask'
|
|
37307
|
-
}
|
|
37308
|
-
},
|
|
37309
37336
|
{
|
|
37310
37337
|
label: 'Manual Task',
|
|
37311
37338
|
actionName: 'replace-with-manual-task',
|
|
@@ -37322,14 +37349,6 @@
|
|
|
37322
37349
|
type: 'bpmn:BusinessRuleTask'
|
|
37323
37350
|
}
|
|
37324
37351
|
},
|
|
37325
|
-
{
|
|
37326
|
-
label: 'Service Task',
|
|
37327
|
-
actionName: 'replace-with-service-task',
|
|
37328
|
-
className: 'bpmn-icon-service',
|
|
37329
|
-
target: {
|
|
37330
|
-
type: 'bpmn:ServiceTask'
|
|
37331
|
-
}
|
|
37332
|
-
},
|
|
37333
37352
|
{
|
|
37334
37353
|
label: 'Script Task',
|
|
37335
37354
|
actionName: 'replace-with-script-task',
|
|
@@ -40030,7 +40049,8 @@
|
|
|
40030
40049
|
className: 'bpmn-icon-gateway-or',
|
|
40031
40050
|
target: {
|
|
40032
40051
|
type: 'bpmn:InclusiveGateway'
|
|
40033
|
-
}
|
|
40052
|
+
},
|
|
40053
|
+
rank: -1
|
|
40034
40054
|
},
|
|
40035
40055
|
{
|
|
40036
40056
|
label: 'Complex Gateway',
|
|
@@ -40038,7 +40058,8 @@
|
|
|
40038
40058
|
className: 'bpmn-icon-gateway-complex',
|
|
40039
40059
|
target: {
|
|
40040
40060
|
type: 'bpmn:ComplexGateway'
|
|
40041
|
-
}
|
|
40061
|
+
},
|
|
40062
|
+
rank: -1
|
|
40042
40063
|
},
|
|
40043
40064
|
{
|
|
40044
40065
|
label: 'Event based Gateway',
|
|
@@ -40104,13 +40125,30 @@
|
|
|
40104
40125
|
type: 'bpmn:Task'
|
|
40105
40126
|
}
|
|
40106
40127
|
},
|
|
40128
|
+
{
|
|
40129
|
+
label: 'User Task',
|
|
40130
|
+
actionName: 'user-task',
|
|
40131
|
+
className: 'bpmn-icon-user',
|
|
40132
|
+
target: {
|
|
40133
|
+
type: 'bpmn:UserTask'
|
|
40134
|
+
}
|
|
40135
|
+
},
|
|
40136
|
+
{
|
|
40137
|
+
label: 'Service Task',
|
|
40138
|
+
actionName: 'service-task',
|
|
40139
|
+
className: 'bpmn-icon-service',
|
|
40140
|
+
target: {
|
|
40141
|
+
type: 'bpmn:ServiceTask'
|
|
40142
|
+
}
|
|
40143
|
+
},
|
|
40107
40144
|
{
|
|
40108
40145
|
label: 'Send Task',
|
|
40109
40146
|
actionName: 'send-task',
|
|
40110
40147
|
className: 'bpmn-icon-send',
|
|
40111
40148
|
target: {
|
|
40112
40149
|
type: 'bpmn:SendTask'
|
|
40113
|
-
}
|
|
40150
|
+
},
|
|
40151
|
+
rank: -1
|
|
40114
40152
|
},
|
|
40115
40153
|
{
|
|
40116
40154
|
label: 'Receive Task',
|
|
@@ -40118,15 +40156,8 @@
|
|
|
40118
40156
|
className: 'bpmn-icon-receive',
|
|
40119
40157
|
target: {
|
|
40120
40158
|
type: 'bpmn:ReceiveTask'
|
|
40121
|
-
}
|
|
40122
|
-
|
|
40123
|
-
{
|
|
40124
|
-
label: 'User Task',
|
|
40125
|
-
actionName: 'user-task',
|
|
40126
|
-
className: 'bpmn-icon-user',
|
|
40127
|
-
target: {
|
|
40128
|
-
type: 'bpmn:UserTask'
|
|
40129
|
-
}
|
|
40159
|
+
},
|
|
40160
|
+
rank: -1
|
|
40130
40161
|
},
|
|
40131
40162
|
{
|
|
40132
40163
|
label: 'Manual Task',
|
|
@@ -40134,7 +40165,8 @@
|
|
|
40134
40165
|
className: 'bpmn-icon-manual',
|
|
40135
40166
|
target: {
|
|
40136
40167
|
type: 'bpmn:ManualTask'
|
|
40137
|
-
}
|
|
40168
|
+
},
|
|
40169
|
+
rank: -1
|
|
40138
40170
|
},
|
|
40139
40171
|
{
|
|
40140
40172
|
label: 'Business Rule Task',
|
|
@@ -40144,14 +40176,6 @@
|
|
|
40144
40176
|
type: 'bpmn:BusinessRuleTask'
|
|
40145
40177
|
}
|
|
40146
40178
|
},
|
|
40147
|
-
{
|
|
40148
|
-
label: 'Service Task',
|
|
40149
|
-
actionName: 'service-task',
|
|
40150
|
-
className: 'bpmn-icon-service',
|
|
40151
|
-
target: {
|
|
40152
|
-
type: 'bpmn:ServiceTask'
|
|
40153
|
-
}
|
|
40154
|
-
},
|
|
40155
40179
|
{
|
|
40156
40180
|
label: 'Script Task',
|
|
40157
40181
|
actionName: 'script-task',
|
|
@@ -40278,7 +40302,8 @@
|
|
|
40278
40302
|
target,
|
|
40279
40303
|
description,
|
|
40280
40304
|
group,
|
|
40281
|
-
search
|
|
40305
|
+
search,
|
|
40306
|
+
rank
|
|
40282
40307
|
} = option;
|
|
40283
40308
|
|
|
40284
40309
|
const targetAction = this._createEntryAction(target);
|
|
@@ -40292,6 +40317,7 @@
|
|
|
40292
40317
|
name: this._translate(group.name)
|
|
40293
40318
|
},
|
|
40294
40319
|
search,
|
|
40320
|
+
rank,
|
|
40295
40321
|
action: {
|
|
40296
40322
|
click: targetAction,
|
|
40297
40323
|
dragstart: targetAction
|
|
@@ -40347,13 +40373,12 @@
|
|
|
40347
40373
|
* A palette provider for the create elements menu.
|
|
40348
40374
|
*/
|
|
40349
40375
|
function CreatePaletteProvider(palette, translate, popupMenu, canvas, mouse) {
|
|
40350
|
-
|
|
40351
40376
|
this._translate = translate;
|
|
40352
40377
|
this._popupMenu = popupMenu;
|
|
40353
40378
|
this._canvas = canvas;
|
|
40354
40379
|
this._mouse = mouse;
|
|
40355
40380
|
|
|
40356
|
-
palette.registerProvider(
|
|
40381
|
+
palette.registerProvider(this);
|
|
40357
40382
|
}
|
|
40358
40383
|
|
|
40359
40384
|
CreatePaletteProvider.$inject = [
|
|
@@ -40622,7 +40647,8 @@
|
|
|
40622
40647
|
target,
|
|
40623
40648
|
description,
|
|
40624
40649
|
group,
|
|
40625
|
-
search
|
|
40650
|
+
search,
|
|
40651
|
+
rank
|
|
40626
40652
|
} = option;
|
|
40627
40653
|
|
|
40628
40654
|
entries[`append-${actionName}`] = {
|
|
@@ -40631,6 +40657,7 @@
|
|
|
40631
40657
|
description,
|
|
40632
40658
|
group,
|
|
40633
40659
|
search,
|
|
40660
|
+
rank,
|
|
40634
40661
|
action: this._createEntryAction(element, target)
|
|
40635
40662
|
};
|
|
40636
40663
|
});
|
|
@@ -40730,18 +40757,16 @@
|
|
|
40730
40757
|
return true;
|
|
40731
40758
|
};
|
|
40732
40759
|
|
|
40733
|
-
var LOW_PRIORITY$h = 900;
|
|
40734
|
-
|
|
40735
40760
|
/**
|
|
40736
40761
|
* A provider for align elements context pad button
|
|
40737
40762
|
*/
|
|
40738
40763
|
function AppendContextPadProvider(contextPad, popupMenu, translate, canvas) {
|
|
40739
|
-
contextPad.registerProvider(LOW_PRIORITY$h, this);
|
|
40740
|
-
|
|
40741
40764
|
this._contextPad = contextPad;
|
|
40742
40765
|
this._popupMenu = popupMenu;
|
|
40743
40766
|
this._translate = translate;
|
|
40744
40767
|
this._canvas = canvas;
|
|
40768
|
+
|
|
40769
|
+
contextPad.registerProvider(this);
|
|
40745
40770
|
}
|
|
40746
40771
|
|
|
40747
40772
|
AppendContextPadProvider.$inject = [
|
|
@@ -62576,6 +62601,10 @@
|
|
|
62576
62601
|
'</bpmn:definitions>';
|
|
62577
62602
|
|
|
62578
62603
|
|
|
62604
|
+
/**
|
|
62605
|
+
* @typedef { import('didi').ModuleDeclaration } Module
|
|
62606
|
+
*/
|
|
62607
|
+
|
|
62579
62608
|
/**
|
|
62580
62609
|
* A modeler for BPMN 2.0 diagrams.
|
|
62581
62610
|
*
|
|
@@ -62645,8 +62674,8 @@
|
|
|
62645
62674
|
* @param {string|number} [options.width] the width of the viewer
|
|
62646
62675
|
* @param {string|number} [options.height] the height of the viewer
|
|
62647
62676
|
* @param {Object} [options.moddleExtensions] extension packages to provide
|
|
62648
|
-
* @param {
|
|
62649
|
-
* @param {
|
|
62677
|
+
* @param {Module[]} [options.modules] a list of modules to override the default modules
|
|
62678
|
+
* @param {Module[]} [options.additionalModules] a list of modules to use with the default modules
|
|
62650
62679
|
*/
|
|
62651
62680
|
function Modeler(options) {
|
|
62652
62681
|
BaseModeler.call(this, options);
|