camunda-bpmn-js 0.15.2 → 0.15.3
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/CHANGELOG.md +312 -280
- package/LICENSE +20 -20
- package/README.md +84 -84
- package/dist/assets/base-modeler.css +4 -4
- package/dist/assets/base-navigated-viewer.css +1 -1
- package/dist/assets/base-viewer.css +1 -1
- package/dist/assets/camunda-cloud-modeler.css +1 -1
- package/dist/assets/camunda-platform-modeler.css +1 -1
- package/dist/base-modeler.development.js +37 -34
- package/dist/base-modeler.production.min.js +1 -1
- package/dist/base-navigated-viewer.development.js +7 -4
- package/dist/base-navigated-viewer.production.min.js +1 -1
- package/dist/base-viewer.development.js +7 -4
- package/dist/base-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +367 -364
- package/dist/camunda-cloud-modeler.production.min.js +1 -1
- package/dist/camunda-cloud-navigated-viewer.development.js +42 -39
- package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-viewer.development.js +42 -39
- package/dist/camunda-cloud-viewer.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +68 -65
- package/dist/camunda-platform-modeler.production.min.js +1 -1
- package/dist/camunda-platform-navigated-viewer.development.js +26 -23
- package/dist/camunda-platform-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-platform-viewer.development.js +26 -23
- package/dist/camunda-platform-viewer.production.min.js +1 -1
- package/lib/base/Modeler.js +46 -46
- package/lib/base/NavigatedViewer.js +2 -2
- package/lib/base/Viewer.js +2 -2
- package/lib/camunda-cloud/Modeler.js +68 -68
- package/lib/camunda-cloud/NavigatedViewer.js +34 -34
- package/lib/camunda-cloud/Viewer.js +34 -34
- package/lib/camunda-cloud/features/context-pad/ContextPadOptions.js +15 -15
- package/lib/camunda-cloud/features/context-pad/index.js +6 -6
- package/lib/camunda-cloud/features/drilldown/index.js +3 -3
- package/lib/camunda-cloud/features/palette/PaletteOptions.js +14 -14
- package/lib/camunda-cloud/features/palette/PaletteProvider.js +31 -31
- package/lib/camunda-cloud/features/palette/index.js +6 -6
- package/lib/camunda-cloud/features/popup-menu/ReplaceMenuProvider.js +71 -71
- package/lib/camunda-cloud/features/popup-menu/ReplaceOptions.js +46 -46
- package/lib/camunda-cloud/features/popup-menu/index.js +6 -6
- package/lib/camunda-cloud/features/rules/BpmnRules.js +137 -137
- package/lib/camunda-cloud/features/rules/index.js +5 -5
- package/lib/camunda-cloud/util/commonModules.js +13 -13
- package/lib/camunda-platform/Modeler.js +46 -46
- package/lib/camunda-platform/NavigatedViewer.js +25 -25
- package/lib/camunda-platform/Viewer.js +24 -24
- package/lib/camunda-platform/util/commonModules.js +6 -6
- package/lib/util/ExtensionElementsUtil.js +59 -59
- package/package.json +109 -110
- package/styles/base-modeler.css +4 -4
- package/styles/base-navigated-viewer.css +1 -1
- package/styles/base-viewer.css +1 -1
- package/styles/camunda-cloud-modeler.css +1 -1
- package/styles/camunda-platform-modeler.css +1 -1
- package/util/index.js +39 -39
|
@@ -19597,11 +19597,14 @@
|
|
|
19597
19597
|
helperSvg = create('svg');
|
|
19598
19598
|
|
|
19599
19599
|
attr$1(helperSvg, {
|
|
19600
|
-
id: 'helper-svg'
|
|
19601
|
-
|
|
19602
|
-
|
|
19600
|
+
id: 'helper-svg'
|
|
19601
|
+
});
|
|
19602
|
+
|
|
19603
|
+
assign$1(helperSvg, {
|
|
19603
19604
|
visibility: 'hidden',
|
|
19604
|
-
position: 'fixed'
|
|
19605
|
+
position: 'fixed',
|
|
19606
|
+
width: 0,
|
|
19607
|
+
height: 0
|
|
19605
19608
|
});
|
|
19606
19609
|
|
|
19607
19610
|
document.body.appendChild(helperSvg);
|
|
@@ -76266,36 +76269,36 @@
|
|
|
76266
76269
|
return is$1(parent, 'bpmn:SubProcess') && parent.triggeredByEvent;
|
|
76267
76270
|
}
|
|
76268
76271
|
|
|
76269
|
-
/**
|
|
76270
|
-
*
|
|
76271
|
-
* @param {Object} options
|
|
76272
|
-
*/
|
|
76273
|
-
function Modeler$1(options = {}) {
|
|
76274
|
-
|
|
76275
|
-
this._injectOriginModule(options);
|
|
76276
|
-
|
|
76277
|
-
Modeler.call(this, options);
|
|
76278
|
-
}
|
|
76279
|
-
|
|
76280
|
-
inherits_browser(Modeler$1, Modeler);
|
|
76281
|
-
|
|
76282
|
-
Modeler$1.prototype._injectOriginModule = function(options) {
|
|
76283
|
-
this._modules = [].concat(
|
|
76284
|
-
this._modules,
|
|
76285
|
-
(options && options.disableAdjustOrigin ? diagramOriginModule : alignToOriginModule)
|
|
76286
|
-
);
|
|
76287
|
-
};
|
|
76288
|
-
|
|
76289
|
-
Modeler$1.prototype._extensionModules = [
|
|
76290
|
-
index$1,
|
|
76291
|
-
ExecutableFixModule,
|
|
76292
|
-
index$3,
|
|
76293
|
-
index$2$1
|
|
76294
|
-
];
|
|
76295
|
-
|
|
76296
|
-
Modeler$1.prototype._modules = [].concat(
|
|
76297
|
-
Modeler.prototype._modules,
|
|
76298
|
-
Modeler$1.prototype._extensionModules
|
|
76272
|
+
/**
|
|
76273
|
+
*
|
|
76274
|
+
* @param {Object} options
|
|
76275
|
+
*/
|
|
76276
|
+
function Modeler$1(options = {}) {
|
|
76277
|
+
|
|
76278
|
+
this._injectOriginModule(options);
|
|
76279
|
+
|
|
76280
|
+
Modeler.call(this, options);
|
|
76281
|
+
}
|
|
76282
|
+
|
|
76283
|
+
inherits_browser(Modeler$1, Modeler);
|
|
76284
|
+
|
|
76285
|
+
Modeler$1.prototype._injectOriginModule = function(options) {
|
|
76286
|
+
this._modules = [].concat(
|
|
76287
|
+
this._modules,
|
|
76288
|
+
(options && options.disableAdjustOrigin ? diagramOriginModule : alignToOriginModule)
|
|
76289
|
+
);
|
|
76290
|
+
};
|
|
76291
|
+
|
|
76292
|
+
Modeler$1.prototype._extensionModules = [
|
|
76293
|
+
index$1,
|
|
76294
|
+
ExecutableFixModule,
|
|
76295
|
+
index$3,
|
|
76296
|
+
index$2$1
|
|
76297
|
+
];
|
|
76298
|
+
|
|
76299
|
+
Modeler$1.prototype._modules = [].concat(
|
|
76300
|
+
Modeler.prototype._modules,
|
|
76301
|
+
Modeler$1.prototype._extensionModules
|
|
76299
76302
|
);
|
|
76300
76303
|
|
|
76301
76304
|
var REPLACE_WITH_COLLAPSED = 'replace-with-collapsed-subprocess',
|
|
@@ -77434,68 +77437,68 @@
|
|
|
77434
77437
|
updatePropagateAllChildVariablesBehavior: [ 'type', UpdatePropagateAllChildVariablesBehavior ]
|
|
77435
77438
|
};
|
|
77436
77439
|
|
|
77437
|
-
const PALETTE_OPTIONS = [
|
|
77438
|
-
'hand-tool',
|
|
77439
|
-
'lasso-tool',
|
|
77440
|
-
'space-tool',
|
|
77441
|
-
'global-connect-tool',
|
|
77442
|
-
'tool-separator',
|
|
77443
|
-
'create.start-event',
|
|
77444
|
-
'create.intermediate-event',
|
|
77445
|
-
'create.end-event',
|
|
77446
|
-
'create.exclusive-gateway',
|
|
77447
|
-
'create.task',
|
|
77448
|
-
'create.subprocess-expanded',
|
|
77449
|
-
'create.participant-expanded',
|
|
77450
|
-
'create.group'
|
|
77440
|
+
const PALETTE_OPTIONS = [
|
|
77441
|
+
'hand-tool',
|
|
77442
|
+
'lasso-tool',
|
|
77443
|
+
'space-tool',
|
|
77444
|
+
'global-connect-tool',
|
|
77445
|
+
'tool-separator',
|
|
77446
|
+
'create.start-event',
|
|
77447
|
+
'create.intermediate-event',
|
|
77448
|
+
'create.end-event',
|
|
77449
|
+
'create.exclusive-gateway',
|
|
77450
|
+
'create.task',
|
|
77451
|
+
'create.subprocess-expanded',
|
|
77452
|
+
'create.participant-expanded',
|
|
77453
|
+
'create.group'
|
|
77451
77454
|
];
|
|
77452
77455
|
|
|
77453
|
-
const LOW_PRIORITY$s = 500;
|
|
77454
|
-
class PaletteProvider$1 {
|
|
77455
|
-
|
|
77456
|
-
constructor(palette) {
|
|
77457
|
-
palette.registerProvider(LOW_PRIORITY$s, this);
|
|
77458
|
-
}
|
|
77459
|
-
|
|
77460
|
-
getPaletteEntries(element) {
|
|
77461
|
-
return function(entries) {
|
|
77462
|
-
|
|
77463
|
-
forEach(entries, function(entry, key) {
|
|
77464
|
-
if (!PALETTE_OPTIONS.includes(key)) {
|
|
77465
|
-
delete entries[key];
|
|
77466
|
-
}
|
|
77467
|
-
});
|
|
77468
|
-
|
|
77469
|
-
return entries;
|
|
77470
|
-
};
|
|
77471
|
-
}
|
|
77472
|
-
|
|
77473
|
-
}
|
|
77474
|
-
|
|
77475
|
-
PaletteProvider$1.$inject = [
|
|
77476
|
-
'palette'
|
|
77456
|
+
const LOW_PRIORITY$s = 500;
|
|
77457
|
+
class PaletteProvider$1 {
|
|
77458
|
+
|
|
77459
|
+
constructor(palette) {
|
|
77460
|
+
palette.registerProvider(LOW_PRIORITY$s, this);
|
|
77461
|
+
}
|
|
77462
|
+
|
|
77463
|
+
getPaletteEntries(element) {
|
|
77464
|
+
return function(entries) {
|
|
77465
|
+
|
|
77466
|
+
forEach(entries, function(entry, key) {
|
|
77467
|
+
if (!PALETTE_OPTIONS.includes(key)) {
|
|
77468
|
+
delete entries[key];
|
|
77469
|
+
}
|
|
77470
|
+
});
|
|
77471
|
+
|
|
77472
|
+
return entries;
|
|
77473
|
+
};
|
|
77474
|
+
}
|
|
77475
|
+
|
|
77476
|
+
}
|
|
77477
|
+
|
|
77478
|
+
PaletteProvider$1.$inject = [
|
|
77479
|
+
'palette'
|
|
77477
77480
|
];
|
|
77478
77481
|
|
|
77479
|
-
var paletteModule = {
|
|
77480
|
-
__init__: [ 'zeebePaletteProvider' ],
|
|
77481
|
-
zeebePaletteProvider: [ 'type', PaletteProvider$1 ]
|
|
77482
|
-
};
|
|
77483
|
-
|
|
77484
|
-
const CONTEXT_PAD_ENTRIES = [
|
|
77485
|
-
'append.message-intermediate-event',
|
|
77486
|
-
'append.timer-intermediate-event',
|
|
77487
|
-
'append.append-task',
|
|
77488
|
-
'append.intermediate-event',
|
|
77489
|
-
'append.text-annotation',
|
|
77490
|
-
'append.end-event',
|
|
77491
|
-
'append.gateway',
|
|
77492
|
-
'delete',
|
|
77493
|
-
'connect',
|
|
77494
|
-
'replace',
|
|
77495
|
-
'lane-insert-above',
|
|
77496
|
-
'lane-divide-two',
|
|
77497
|
-
'lane-divide-three',
|
|
77498
|
-
'lane-insert-below'
|
|
77482
|
+
var paletteModule = {
|
|
77483
|
+
__init__: [ 'zeebePaletteProvider' ],
|
|
77484
|
+
zeebePaletteProvider: [ 'type', PaletteProvider$1 ]
|
|
77485
|
+
};
|
|
77486
|
+
|
|
77487
|
+
const CONTEXT_PAD_ENTRIES = [
|
|
77488
|
+
'append.message-intermediate-event',
|
|
77489
|
+
'append.timer-intermediate-event',
|
|
77490
|
+
'append.append-task',
|
|
77491
|
+
'append.intermediate-event',
|
|
77492
|
+
'append.text-annotation',
|
|
77493
|
+
'append.end-event',
|
|
77494
|
+
'append.gateway',
|
|
77495
|
+
'delete',
|
|
77496
|
+
'connect',
|
|
77497
|
+
'replace',
|
|
77498
|
+
'lane-insert-above',
|
|
77499
|
+
'lane-divide-two',
|
|
77500
|
+
'lane-divide-three',
|
|
77501
|
+
'lane-insert-below'
|
|
77499
77502
|
];
|
|
77500
77503
|
|
|
77501
77504
|
const LOW_PRIORITY$t = 500;
|
|
@@ -77536,238 +77539,238 @@
|
|
|
77536
77539
|
'contextPadProvider'
|
|
77537
77540
|
];
|
|
77538
77541
|
|
|
77539
|
-
var contextPadModule = {
|
|
77540
|
-
__init__: [ 'zeebeContextPadProvider' ],
|
|
77541
|
-
zeebeContextPadProvider: [ 'type', ContextPadProvider$1 ],
|
|
77542
|
-
};
|
|
77543
|
-
|
|
77544
|
-
const REPLACE_OPTIONS = [
|
|
77545
|
-
'replace-with-service-task',
|
|
77546
|
-
'replace-with-script-task',
|
|
77547
|
-
'replace-with-send-task',
|
|
77548
|
-
'replace-with-rule-task',
|
|
77549
|
-
'replace-with-message-intermediate-catch',
|
|
77550
|
-
'replace-with-message-intermediate-throw',
|
|
77551
|
-
'replace-with-timer-intermediate-catch',
|
|
77552
|
-
'replace-with-none-start',
|
|
77553
|
-
'replace-with-none-end',
|
|
77554
|
-
'replace-with-conditional-flow',
|
|
77555
|
-
'replace-with-default-flow',
|
|
77556
|
-
'replace-with-sequence-flow',
|
|
77557
|
-
'replace-with-parallel-gateway',
|
|
77558
|
-
'replace-with-exclusive-gateway',
|
|
77559
|
-
'replace-with-collapsed-subprocess',
|
|
77560
|
-
'replace-with-expanded-subprocess',
|
|
77561
|
-
'replace-with-timer-boundary',
|
|
77562
|
-
'replace-with-message-boundary',
|
|
77563
|
-
'replace-with-event-based-gateway',
|
|
77564
|
-
'replace-with-receive-task',
|
|
77565
|
-
'replace-with-task',
|
|
77566
|
-
'replace-with-manual-task',
|
|
77567
|
-
'replace-with-message-start',
|
|
77568
|
-
'replace-with-message-end',
|
|
77569
|
-
'replace-with-timer-start',
|
|
77570
|
-
'replace-with-none-intermediate-throw',
|
|
77571
|
-
'replace-with-none-intermediate-throwing', // only for StartEvent
|
|
77572
|
-
'replace-with-non-interrupting-message-boundary',
|
|
77573
|
-
'replace-with-non-interrupting-timer-boundary',
|
|
77574
|
-
'replace-with-error-boundary',
|
|
77575
|
-
'replace-with-error-end',
|
|
77576
|
-
'replace-with-event-subprocess',
|
|
77577
|
-
'replace-with-subprocess',
|
|
77578
|
-
'replace-with-error-start',
|
|
77579
|
-
'replace-with-non-interrupting-message-start',
|
|
77580
|
-
'replace-with-non-interrupting-timer-start',
|
|
77581
|
-
'replace-with-expanded-pool',
|
|
77582
|
-
'replace-with-collapsed-pool',
|
|
77583
|
-
'replace-with-call-activity',
|
|
77584
|
-
'replace-with-user-task'
|
|
77585
|
-
];
|
|
77586
|
-
|
|
77587
|
-
const HEADER_OPTIONS = [
|
|
77588
|
-
'toggle-parallel-mi',
|
|
77589
|
-
'toggle-sequential-mi'
|
|
77542
|
+
var contextPadModule = {
|
|
77543
|
+
__init__: [ 'zeebeContextPadProvider' ],
|
|
77544
|
+
zeebeContextPadProvider: [ 'type', ContextPadProvider$1 ],
|
|
77545
|
+
};
|
|
77546
|
+
|
|
77547
|
+
const REPLACE_OPTIONS = [
|
|
77548
|
+
'replace-with-service-task',
|
|
77549
|
+
'replace-with-script-task',
|
|
77550
|
+
'replace-with-send-task',
|
|
77551
|
+
'replace-with-rule-task',
|
|
77552
|
+
'replace-with-message-intermediate-catch',
|
|
77553
|
+
'replace-with-message-intermediate-throw',
|
|
77554
|
+
'replace-with-timer-intermediate-catch',
|
|
77555
|
+
'replace-with-none-start',
|
|
77556
|
+
'replace-with-none-end',
|
|
77557
|
+
'replace-with-conditional-flow',
|
|
77558
|
+
'replace-with-default-flow',
|
|
77559
|
+
'replace-with-sequence-flow',
|
|
77560
|
+
'replace-with-parallel-gateway',
|
|
77561
|
+
'replace-with-exclusive-gateway',
|
|
77562
|
+
'replace-with-collapsed-subprocess',
|
|
77563
|
+
'replace-with-expanded-subprocess',
|
|
77564
|
+
'replace-with-timer-boundary',
|
|
77565
|
+
'replace-with-message-boundary',
|
|
77566
|
+
'replace-with-event-based-gateway',
|
|
77567
|
+
'replace-with-receive-task',
|
|
77568
|
+
'replace-with-task',
|
|
77569
|
+
'replace-with-manual-task',
|
|
77570
|
+
'replace-with-message-start',
|
|
77571
|
+
'replace-with-message-end',
|
|
77572
|
+
'replace-with-timer-start',
|
|
77573
|
+
'replace-with-none-intermediate-throw',
|
|
77574
|
+
'replace-with-none-intermediate-throwing', // only for StartEvent
|
|
77575
|
+
'replace-with-non-interrupting-message-boundary',
|
|
77576
|
+
'replace-with-non-interrupting-timer-boundary',
|
|
77577
|
+
'replace-with-error-boundary',
|
|
77578
|
+
'replace-with-error-end',
|
|
77579
|
+
'replace-with-event-subprocess',
|
|
77580
|
+
'replace-with-subprocess',
|
|
77581
|
+
'replace-with-error-start',
|
|
77582
|
+
'replace-with-non-interrupting-message-start',
|
|
77583
|
+
'replace-with-non-interrupting-timer-start',
|
|
77584
|
+
'replace-with-expanded-pool',
|
|
77585
|
+
'replace-with-collapsed-pool',
|
|
77586
|
+
'replace-with-call-activity',
|
|
77587
|
+
'replace-with-user-task'
|
|
77590
77588
|
];
|
|
77591
77589
|
|
|
77592
|
-
|
|
77593
|
-
|
|
77594
|
-
|
|
77595
|
-
popupMenu.registerProvider('bpmn-replace', this);
|
|
77596
|
-
}
|
|
77597
|
-
|
|
77598
|
-
getPopupMenuHeaderEntries(element) {
|
|
77599
|
-
|
|
77600
|
-
return function(entries) {
|
|
77601
|
-
let headerEntries = {};
|
|
77602
|
-
|
|
77603
|
-
if (
|
|
77604
|
-
isAny(element, [
|
|
77605
|
-
'bpmn:Task',
|
|
77606
|
-
'bpmn:ReceiveTask',
|
|
77607
|
-
'bpmn:ServiceTask',
|
|
77608
|
-
'bpmn:SubProcess',
|
|
77609
|
-
'bpmn:CallActivity'
|
|
77610
|
-
]) && !isEventSubProcess(element)
|
|
77611
|
-
) {
|
|
77612
|
-
|
|
77613
|
-
forEach(entries, function(entry, key) {
|
|
77614
|
-
if (HEADER_OPTIONS.includes(key)) {
|
|
77615
|
-
headerEntries = {
|
|
77616
|
-
...headerEntries,
|
|
77617
|
-
[key]: entry
|
|
77618
|
-
};
|
|
77619
|
-
}
|
|
77620
|
-
});
|
|
77621
|
-
|
|
77622
|
-
}
|
|
77623
|
-
|
|
77624
|
-
entries = headerEntries;
|
|
77625
|
-
|
|
77626
|
-
return entries;
|
|
77627
|
-
};
|
|
77628
|
-
}
|
|
77629
|
-
|
|
77630
|
-
getPopupMenuEntries(element) {
|
|
77631
|
-
return function(entries) {
|
|
77632
|
-
|
|
77633
|
-
forEach(entries, function(entry, key) {
|
|
77634
|
-
if (!REPLACE_OPTIONS.includes(key)) {
|
|
77635
|
-
delete entries[key];
|
|
77636
|
-
}
|
|
77637
|
-
});
|
|
77638
|
-
|
|
77639
|
-
return entries;
|
|
77640
|
-
};
|
|
77641
|
-
}
|
|
77642
|
-
}
|
|
77643
|
-
|
|
77644
|
-
ReplaceMenuProvider$1.$inject = [
|
|
77645
|
-
'popupMenu'
|
|
77590
|
+
const HEADER_OPTIONS = [
|
|
77591
|
+
'toggle-parallel-mi',
|
|
77592
|
+
'toggle-sequential-mi'
|
|
77646
77593
|
];
|
|
77647
77594
|
|
|
77648
|
-
|
|
77649
|
-
|
|
77650
|
-
|
|
77595
|
+
class ReplaceMenuProvider$1 {
|
|
77596
|
+
|
|
77597
|
+
constructor(popupMenu) {
|
|
77598
|
+
popupMenu.registerProvider('bpmn-replace', this);
|
|
77599
|
+
}
|
|
77600
|
+
|
|
77601
|
+
getPopupMenuHeaderEntries(element) {
|
|
77602
|
+
|
|
77603
|
+
return function(entries) {
|
|
77604
|
+
let headerEntries = {};
|
|
77605
|
+
|
|
77606
|
+
if (
|
|
77607
|
+
isAny(element, [
|
|
77608
|
+
'bpmn:Task',
|
|
77609
|
+
'bpmn:ReceiveTask',
|
|
77610
|
+
'bpmn:ServiceTask',
|
|
77611
|
+
'bpmn:SubProcess',
|
|
77612
|
+
'bpmn:CallActivity'
|
|
77613
|
+
]) && !isEventSubProcess(element)
|
|
77614
|
+
) {
|
|
77615
|
+
|
|
77616
|
+
forEach(entries, function(entry, key) {
|
|
77617
|
+
if (HEADER_OPTIONS.includes(key)) {
|
|
77618
|
+
headerEntries = {
|
|
77619
|
+
...headerEntries,
|
|
77620
|
+
[key]: entry
|
|
77621
|
+
};
|
|
77622
|
+
}
|
|
77623
|
+
});
|
|
77624
|
+
|
|
77625
|
+
}
|
|
77626
|
+
|
|
77627
|
+
entries = headerEntries;
|
|
77628
|
+
|
|
77629
|
+
return entries;
|
|
77630
|
+
};
|
|
77631
|
+
}
|
|
77632
|
+
|
|
77633
|
+
getPopupMenuEntries(element) {
|
|
77634
|
+
return function(entries) {
|
|
77635
|
+
|
|
77636
|
+
forEach(entries, function(entry, key) {
|
|
77637
|
+
if (!REPLACE_OPTIONS.includes(key)) {
|
|
77638
|
+
delete entries[key];
|
|
77639
|
+
}
|
|
77640
|
+
});
|
|
77641
|
+
|
|
77642
|
+
return entries;
|
|
77643
|
+
};
|
|
77644
|
+
}
|
|
77645
|
+
}
|
|
77646
|
+
|
|
77647
|
+
ReplaceMenuProvider$1.$inject = [
|
|
77648
|
+
'popupMenu'
|
|
77649
|
+
];
|
|
77650
|
+
|
|
77651
|
+
var popupMenuModule = {
|
|
77652
|
+
__init__: [ 'zeebeReplaceMenuProvider' ],
|
|
77653
|
+
zeebeReplaceMenuProvider: [ 'type', ReplaceMenuProvider$1 ]
|
|
77651
77654
|
};
|
|
77652
77655
|
|
|
77653
|
-
const HIGH_PRIORITY$r = 5000;
|
|
77654
|
-
|
|
77655
|
-
/**
|
|
77656
|
-
* Zeebe rule provider that allows to create boundary events with catch events
|
|
77657
|
-
*
|
|
77658
|
-
* See {@link CustomRules} for the default implementation
|
|
77659
|
-
* of BPMN 2.0 modeling rules provided by bpmn-js.
|
|
77660
|
-
*
|
|
77661
|
-
* @param {EventBus} eventBus
|
|
77662
|
-
*/
|
|
77663
|
-
class CustomRules extends BpmnRules {
|
|
77664
|
-
|
|
77665
|
-
constructor(eventBus) {
|
|
77666
|
-
super(eventBus);
|
|
77667
|
-
}
|
|
77668
|
-
|
|
77669
|
-
init() {
|
|
77670
|
-
super.init();
|
|
77671
|
-
this.addRule('shape.attach', HIGH_PRIORITY$r,(context) => {
|
|
77672
|
-
return this.canAttach(
|
|
77673
|
-
context.shape,
|
|
77674
|
-
context.target,
|
|
77675
|
-
null,
|
|
77676
|
-
context.position);
|
|
77677
|
-
});
|
|
77678
|
-
}
|
|
77679
|
-
|
|
77680
|
-
canAttach(elements, target, source, position) {
|
|
77681
|
-
function isBoundaryEvent(element) {
|
|
77682
|
-
return !isLabel(element) && is$1(element, 'bpmn:BoundaryEvent');
|
|
77683
|
-
}
|
|
77684
|
-
|
|
77685
|
-
/**
|
|
77686
|
-
* In Zeebe we treat IntermediateCatchEvents as boundary events too,
|
|
77687
|
-
* this must be reflected in the rules.
|
|
77688
|
-
*/
|
|
77689
|
-
function isBoundaryCandidate(element) {
|
|
77690
|
-
return isBoundaryEvent(element) || (
|
|
77691
|
-
(
|
|
77692
|
-
is$1(element, 'bpmn:IntermediateCatchEvent') ||
|
|
77693
|
-
is$1(element, 'bpmn:IntermediateThrowEvent')
|
|
77694
|
-
) && !element.parent
|
|
77695
|
-
);
|
|
77696
|
-
}
|
|
77697
|
-
|
|
77698
|
-
function isForCompensation(e) {
|
|
77699
|
-
return getBusinessObject(e).isForCompensation;
|
|
77700
|
-
}
|
|
77701
|
-
|
|
77702
|
-
function isReceiveTaskAfterEventBasedGateway(element) {
|
|
77703
|
-
return (
|
|
77704
|
-
is$1(element, 'bpmn:ReceiveTask') &&
|
|
77705
|
-
find(element.incoming, function(incoming) {
|
|
77706
|
-
return is$1(incoming.source, 'bpmn:EventBasedGateway');
|
|
77707
|
-
})
|
|
77708
|
-
);
|
|
77709
|
-
}
|
|
77710
|
-
|
|
77711
|
-
if (!Array.isArray(elements)) {
|
|
77712
|
-
elements = [ elements ];
|
|
77713
|
-
}
|
|
77714
|
-
|
|
77715
|
-
// disallow appending as boundary event
|
|
77716
|
-
if (source) {
|
|
77717
|
-
return false;
|
|
77718
|
-
}
|
|
77719
|
-
|
|
77720
|
-
// only (re-)attach one element at a time
|
|
77721
|
-
if (elements.length !== 1) {
|
|
77722
|
-
return false;
|
|
77723
|
-
}
|
|
77724
|
-
|
|
77725
|
-
const element = elements[0];
|
|
77726
|
-
|
|
77727
|
-
// do not attach labels
|
|
77728
|
-
if (isLabel(element)) {
|
|
77729
|
-
return false;
|
|
77730
|
-
}
|
|
77731
|
-
|
|
77732
|
-
// only handle boundary events
|
|
77733
|
-
if (!isBoundaryCandidate(element)) {
|
|
77734
|
-
return false;
|
|
77735
|
-
}
|
|
77736
|
-
|
|
77737
|
-
// allow default move operation
|
|
77738
|
-
if (!target) {
|
|
77739
|
-
return true;
|
|
77740
|
-
}
|
|
77741
|
-
|
|
77742
|
-
// disallow drop on event sub processes
|
|
77743
|
-
if (isEventSubProcess(target)) {
|
|
77744
|
-
return false;
|
|
77745
|
-
}
|
|
77746
|
-
|
|
77747
|
-
// only allow drop on non compensation activities
|
|
77748
|
-
if (!is$1(target, 'bpmn:Activity') || isForCompensation(target)) {
|
|
77749
|
-
return false;
|
|
77750
|
-
}
|
|
77751
|
-
|
|
77752
|
-
// only attach to subprocess border
|
|
77753
|
-
if (position && !getBoundaryAttachment(position, target)) {
|
|
77754
|
-
return false;
|
|
77755
|
-
}
|
|
77756
|
-
|
|
77757
|
-
// do not attach on receive tasks after event based gateways
|
|
77758
|
-
if (isReceiveTaskAfterEventBasedGateway(target)) {
|
|
77759
|
-
return false;
|
|
77760
|
-
}
|
|
77761
|
-
|
|
77762
|
-
return 'attach';
|
|
77763
|
-
}
|
|
77764
|
-
}
|
|
77765
|
-
|
|
77656
|
+
const HIGH_PRIORITY$r = 5000;
|
|
77657
|
+
|
|
77658
|
+
/**
|
|
77659
|
+
* Zeebe rule provider that allows to create boundary events with catch events
|
|
77660
|
+
*
|
|
77661
|
+
* See {@link CustomRules} for the default implementation
|
|
77662
|
+
* of BPMN 2.0 modeling rules provided by bpmn-js.
|
|
77663
|
+
*
|
|
77664
|
+
* @param {EventBus} eventBus
|
|
77665
|
+
*/
|
|
77666
|
+
class CustomRules extends BpmnRules {
|
|
77667
|
+
|
|
77668
|
+
constructor(eventBus) {
|
|
77669
|
+
super(eventBus);
|
|
77670
|
+
}
|
|
77671
|
+
|
|
77672
|
+
init() {
|
|
77673
|
+
super.init();
|
|
77674
|
+
this.addRule('shape.attach', HIGH_PRIORITY$r,(context) => {
|
|
77675
|
+
return this.canAttach(
|
|
77676
|
+
context.shape,
|
|
77677
|
+
context.target,
|
|
77678
|
+
null,
|
|
77679
|
+
context.position);
|
|
77680
|
+
});
|
|
77681
|
+
}
|
|
77682
|
+
|
|
77683
|
+
canAttach(elements, target, source, position) {
|
|
77684
|
+
function isBoundaryEvent(element) {
|
|
77685
|
+
return !isLabel(element) && is$1(element, 'bpmn:BoundaryEvent');
|
|
77686
|
+
}
|
|
77687
|
+
|
|
77688
|
+
/**
|
|
77689
|
+
* In Zeebe we treat IntermediateCatchEvents as boundary events too,
|
|
77690
|
+
* this must be reflected in the rules.
|
|
77691
|
+
*/
|
|
77692
|
+
function isBoundaryCandidate(element) {
|
|
77693
|
+
return isBoundaryEvent(element) || (
|
|
77694
|
+
(
|
|
77695
|
+
is$1(element, 'bpmn:IntermediateCatchEvent') ||
|
|
77696
|
+
is$1(element, 'bpmn:IntermediateThrowEvent')
|
|
77697
|
+
) && !element.parent
|
|
77698
|
+
);
|
|
77699
|
+
}
|
|
77700
|
+
|
|
77701
|
+
function isForCompensation(e) {
|
|
77702
|
+
return getBusinessObject(e).isForCompensation;
|
|
77703
|
+
}
|
|
77704
|
+
|
|
77705
|
+
function isReceiveTaskAfterEventBasedGateway(element) {
|
|
77706
|
+
return (
|
|
77707
|
+
is$1(element, 'bpmn:ReceiveTask') &&
|
|
77708
|
+
find(element.incoming, function(incoming) {
|
|
77709
|
+
return is$1(incoming.source, 'bpmn:EventBasedGateway');
|
|
77710
|
+
})
|
|
77711
|
+
);
|
|
77712
|
+
}
|
|
77713
|
+
|
|
77714
|
+
if (!Array.isArray(elements)) {
|
|
77715
|
+
elements = [ elements ];
|
|
77716
|
+
}
|
|
77717
|
+
|
|
77718
|
+
// disallow appending as boundary event
|
|
77719
|
+
if (source) {
|
|
77720
|
+
return false;
|
|
77721
|
+
}
|
|
77722
|
+
|
|
77723
|
+
// only (re-)attach one element at a time
|
|
77724
|
+
if (elements.length !== 1) {
|
|
77725
|
+
return false;
|
|
77726
|
+
}
|
|
77727
|
+
|
|
77728
|
+
const element = elements[0];
|
|
77729
|
+
|
|
77730
|
+
// do not attach labels
|
|
77731
|
+
if (isLabel(element)) {
|
|
77732
|
+
return false;
|
|
77733
|
+
}
|
|
77734
|
+
|
|
77735
|
+
// only handle boundary events
|
|
77736
|
+
if (!isBoundaryCandidate(element)) {
|
|
77737
|
+
return false;
|
|
77738
|
+
}
|
|
77739
|
+
|
|
77740
|
+
// allow default move operation
|
|
77741
|
+
if (!target) {
|
|
77742
|
+
return true;
|
|
77743
|
+
}
|
|
77744
|
+
|
|
77745
|
+
// disallow drop on event sub processes
|
|
77746
|
+
if (isEventSubProcess(target)) {
|
|
77747
|
+
return false;
|
|
77748
|
+
}
|
|
77749
|
+
|
|
77750
|
+
// only allow drop on non compensation activities
|
|
77751
|
+
if (!is$1(target, 'bpmn:Activity') || isForCompensation(target)) {
|
|
77752
|
+
return false;
|
|
77753
|
+
}
|
|
77754
|
+
|
|
77755
|
+
// only attach to subprocess border
|
|
77756
|
+
if (position && !getBoundaryAttachment(position, target)) {
|
|
77757
|
+
return false;
|
|
77758
|
+
}
|
|
77759
|
+
|
|
77760
|
+
// do not attach on receive tasks after event based gateways
|
|
77761
|
+
if (isReceiveTaskAfterEventBasedGateway(target)) {
|
|
77762
|
+
return false;
|
|
77763
|
+
}
|
|
77764
|
+
|
|
77765
|
+
return 'attach';
|
|
77766
|
+
}
|
|
77767
|
+
}
|
|
77768
|
+
|
|
77766
77769
|
CustomRules.$inject = [ 'eventBus' ];
|
|
77767
77770
|
|
|
77768
|
-
var rulesModule = {
|
|
77769
|
-
__init__: [ 'bpmnRules' ],
|
|
77770
|
-
bpmnRules: [ 'type', CustomRules ]
|
|
77771
|
+
var rulesModule = {
|
|
77772
|
+
__init__: [ 'bpmnRules' ],
|
|
77773
|
+
bpmnRules: [ 'type', CustomRules ]
|
|
77771
77774
|
};
|
|
77772
77775
|
|
|
77773
77776
|
var isFunction$2 = require$$0.isFunction,
|
|
@@ -78213,8 +78216,8 @@
|
|
|
78213
78216
|
elementTemplatesIconsRenderer: [ 'type', IconsRenderer ]
|
|
78214
78217
|
};
|
|
78215
78218
|
|
|
78216
|
-
var drilldownModule = {
|
|
78217
|
-
drilldownOverlayBehavior: [ 'value', null ],
|
|
78219
|
+
var drilldownModule = {
|
|
78220
|
+
drilldownOverlayBehavior: [ 'value', null ],
|
|
78218
78221
|
};
|
|
78219
78222
|
|
|
78220
78223
|
var name$7 = "zeebe";
|
|
@@ -78581,54 +78584,54 @@
|
|
|
78581
78584
|
types: types$6
|
|
78582
78585
|
};
|
|
78583
78586
|
|
|
78584
|
-
const commonModules = [
|
|
78585
|
-
drilldownModule,
|
|
78586
|
-
iconRendererModule
|
|
78587
|
-
];
|
|
78588
|
-
|
|
78589
|
-
const commonModdleExtensions = {
|
|
78590
|
-
zeebe: zeebeModdle
|
|
78587
|
+
const commonModules = [
|
|
78588
|
+
drilldownModule,
|
|
78589
|
+
iconRendererModule
|
|
78590
|
+
];
|
|
78591
|
+
|
|
78592
|
+
const commonModdleExtensions = {
|
|
78593
|
+
zeebe: zeebeModdle
|
|
78591
78594
|
};
|
|
78592
78595
|
|
|
78593
|
-
/**
|
|
78594
|
-
*
|
|
78595
|
-
* @param {Object} options
|
|
78596
|
-
*/
|
|
78597
|
-
function Modeler$2(options = {}) {
|
|
78598
|
-
|
|
78599
|
-
options = {
|
|
78600
|
-
...options,
|
|
78601
|
-
moddleExtensions: {
|
|
78602
|
-
...commonModdleExtensions,
|
|
78603
|
-
...options.moddleExtensions
|
|
78604
|
-
},
|
|
78605
|
-
propertiesPanel: {
|
|
78606
|
-
description: DescriptionProvider,
|
|
78607
|
-
...options.propertiesPanel
|
|
78608
|
-
}
|
|
78609
|
-
};
|
|
78610
|
-
|
|
78611
|
-
Modeler$1.call(this, options);
|
|
78612
|
-
}
|
|
78613
|
-
|
|
78614
|
-
inherits_browser(Modeler$2, Modeler$1);
|
|
78615
|
-
|
|
78616
|
-
Modeler$2.prototype._camundaCloudModules = [
|
|
78617
|
-
...commonModules,
|
|
78618
|
-
behaviorsModule,
|
|
78619
|
-
contextPadModule,
|
|
78620
|
-
DisabledCollapsedSubprocessPopupProviderModule,
|
|
78621
|
-
paletteModule,
|
|
78622
|
-
popupMenuModule,
|
|
78623
|
-
rulesModule,
|
|
78624
|
-
zeebePropertiesProviderModule,
|
|
78625
|
-
index$1$1,
|
|
78626
|
-
lib
|
|
78627
|
-
];
|
|
78628
|
-
|
|
78629
|
-
Modeler$2.prototype._modules = [].concat(
|
|
78630
|
-
Modeler$1.prototype._modules,
|
|
78631
|
-
Modeler$2.prototype._camundaCloudModules
|
|
78596
|
+
/**
|
|
78597
|
+
*
|
|
78598
|
+
* @param {Object} options
|
|
78599
|
+
*/
|
|
78600
|
+
function Modeler$2(options = {}) {
|
|
78601
|
+
|
|
78602
|
+
options = {
|
|
78603
|
+
...options,
|
|
78604
|
+
moddleExtensions: {
|
|
78605
|
+
...commonModdleExtensions,
|
|
78606
|
+
...options.moddleExtensions
|
|
78607
|
+
},
|
|
78608
|
+
propertiesPanel: {
|
|
78609
|
+
description: DescriptionProvider,
|
|
78610
|
+
...options.propertiesPanel
|
|
78611
|
+
}
|
|
78612
|
+
};
|
|
78613
|
+
|
|
78614
|
+
Modeler$1.call(this, options);
|
|
78615
|
+
}
|
|
78616
|
+
|
|
78617
|
+
inherits_browser(Modeler$2, Modeler$1);
|
|
78618
|
+
|
|
78619
|
+
Modeler$2.prototype._camundaCloudModules = [
|
|
78620
|
+
...commonModules,
|
|
78621
|
+
behaviorsModule,
|
|
78622
|
+
contextPadModule,
|
|
78623
|
+
DisabledCollapsedSubprocessPopupProviderModule,
|
|
78624
|
+
paletteModule,
|
|
78625
|
+
popupMenuModule,
|
|
78626
|
+
rulesModule,
|
|
78627
|
+
zeebePropertiesProviderModule,
|
|
78628
|
+
index$1$1,
|
|
78629
|
+
lib
|
|
78630
|
+
];
|
|
78631
|
+
|
|
78632
|
+
Modeler$2.prototype._modules = [].concat(
|
|
78633
|
+
Modeler$1.prototype._modules,
|
|
78634
|
+
Modeler$2.prototype._camundaCloudModules
|
|
78632
78635
|
);
|
|
78633
78636
|
|
|
78634
78637
|
return Modeler$2;
|