camunda-bpmn-js 2.3.1 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/properties-panel.css +40 -12
- package/dist/base-modeler.development.js +173 -250
- package/dist/base-modeler.production.min.js +31 -33
- package/dist/base-navigated-viewer.development.js +52 -33
- package/dist/base-navigated-viewer.production.min.js +1 -1
- package/dist/base-viewer.development.js +52 -33
- package/dist/base-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +867 -460
- package/dist/camunda-cloud-modeler.production.min.js +32 -34
- package/dist/camunda-cloud-navigated-viewer.development.js +119 -99
- package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-viewer.development.js +119 -99
- package/dist/camunda-cloud-viewer.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +591 -346
- package/dist/camunda-platform-modeler.production.min.js +31 -33
- package/dist/camunda-platform-navigated-viewer.development.js +52 -33
- package/dist/camunda-platform-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-platform-viewer.development.js +52 -33
- package/dist/camunda-platform-viewer.production.min.js +1 -1
- package/lib/camunda-cloud/util/commonModules.js +1 -1
- package/package.json +9 -10
|
@@ -4783,7 +4783,29 @@
|
|
|
4783
4783
|
|
|
4784
4784
|
var intersect = findPathIntersections;
|
|
4785
4785
|
|
|
4786
|
-
var intersectPaths = intersect;
|
|
4786
|
+
var intersectPaths = /*@__PURE__*/getDefaultExportFromCjs(intersect);
|
|
4787
|
+
|
|
4788
|
+
/**
|
|
4789
|
+
* Checks whether a value is an instance of Connection.
|
|
4790
|
+
*
|
|
4791
|
+
* @param {any} value
|
|
4792
|
+
*
|
|
4793
|
+
* @return {boolean}
|
|
4794
|
+
*/
|
|
4795
|
+
function isConnection$1(value) {
|
|
4796
|
+
return isObject(value) && has$1(value, 'waypoints');
|
|
4797
|
+
}
|
|
4798
|
+
|
|
4799
|
+
/**
|
|
4800
|
+
* Checks whether a value is an instance of Label.
|
|
4801
|
+
*
|
|
4802
|
+
* @param {any} value
|
|
4803
|
+
*
|
|
4804
|
+
* @return {boolean}
|
|
4805
|
+
*/
|
|
4806
|
+
function isLabel$1(value) {
|
|
4807
|
+
return isObject(value) && has$1(value, 'labelTarget');
|
|
4808
|
+
}
|
|
4787
4809
|
|
|
4788
4810
|
/**
|
|
4789
4811
|
* @typedef {import('../core/Types').ElementLike} Element
|
|
@@ -4939,7 +4961,7 @@
|
|
|
4939
4961
|
* @return {Point}
|
|
4940
4962
|
*/
|
|
4941
4963
|
function getMid(element) {
|
|
4942
|
-
if (isConnection$
|
|
4964
|
+
if (isConnection$1(element)) {
|
|
4943
4965
|
return getConnectionMid(element);
|
|
4944
4966
|
}
|
|
4945
4967
|
|
|
@@ -5079,10 +5101,6 @@
|
|
|
5079
5101
|
return Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2));
|
|
5080
5102
|
}
|
|
5081
5103
|
|
|
5082
|
-
function isConnection$g(element) {
|
|
5083
|
-
return !!element.waypoints;
|
|
5084
|
-
}
|
|
5085
|
-
|
|
5086
5104
|
/**
|
|
5087
5105
|
* @typedef {import('./Types').ConnectionLike} ConnectionLike
|
|
5088
5106
|
* @typedef {import('./Types').RootLike} RootLike
|
|
@@ -6826,11 +6844,7 @@
|
|
|
6826
6844
|
}
|
|
6827
6845
|
};
|
|
6828
6846
|
|
|
6829
|
-
var
|
|
6830
|
-
var objectRefs = {
|
|
6831
|
-
get exports(){ return objectRefsExports; },
|
|
6832
|
-
set exports(v){ objectRefsExports = v; },
|
|
6833
|
-
};
|
|
6847
|
+
var objectRefs = {exports: {}};
|
|
6834
6848
|
|
|
6835
6849
|
var collection = {};
|
|
6836
6850
|
|
|
@@ -7144,12 +7158,11 @@
|
|
|
7144
7158
|
|
|
7145
7159
|
var refs = Refs$1;
|
|
7146
7160
|
|
|
7147
|
-
|
|
7148
|
-
module.exports = refs;
|
|
7161
|
+
objectRefs.exports = refs;
|
|
7149
7162
|
|
|
7150
|
-
|
|
7151
|
-
} (objectRefs));
|
|
7163
|
+
objectRefs.exports.Collection = collection;
|
|
7152
7164
|
|
|
7165
|
+
var objectRefsExports = objectRefs.exports;
|
|
7153
7166
|
var Refs = /*@__PURE__*/getDefaultExportFromCjs(objectRefsExports);
|
|
7154
7167
|
|
|
7155
7168
|
var parentRefs = new Refs({ name: 'children', enumerable: true, collection: true }, { name: 'parent' }),
|
|
@@ -7391,6 +7404,7 @@
|
|
|
7391
7404
|
*
|
|
7392
7405
|
* @return {Root}
|
|
7393
7406
|
*/
|
|
7407
|
+
|
|
7394
7408
|
/**
|
|
7395
7409
|
* Creates a connection.
|
|
7396
7410
|
*
|
|
@@ -7414,6 +7428,7 @@
|
|
|
7414
7428
|
*
|
|
7415
7429
|
* @return {Connection}
|
|
7416
7430
|
*/
|
|
7431
|
+
|
|
7417
7432
|
/**
|
|
7418
7433
|
* Creates a shape.
|
|
7419
7434
|
*
|
|
@@ -7437,6 +7452,7 @@
|
|
|
7437
7452
|
*
|
|
7438
7453
|
* @return {Shape}
|
|
7439
7454
|
*/
|
|
7455
|
+
|
|
7440
7456
|
/**
|
|
7441
7457
|
* Creates a label.
|
|
7442
7458
|
*
|
|
@@ -7456,6 +7472,7 @@
|
|
|
7456
7472
|
*
|
|
7457
7473
|
* @param {'label'} type
|
|
7458
7474
|
* @param {Object} [attrs]
|
|
7475
|
+
*
|
|
7459
7476
|
* @return {Label}
|
|
7460
7477
|
*/
|
|
7461
7478
|
function create(type, attrs) {
|
|
@@ -7470,6 +7487,7 @@
|
|
|
7470
7487
|
* Checks whether an object is a model instance.
|
|
7471
7488
|
*
|
|
7472
7489
|
* @param {any} obj
|
|
7490
|
+
*
|
|
7473
7491
|
* @return {boolean}
|
|
7474
7492
|
*/
|
|
7475
7493
|
function isModelElement(obj) {
|
|
@@ -18171,7 +18189,7 @@
|
|
|
18171
18189
|
* @return {boolean}
|
|
18172
18190
|
*/
|
|
18173
18191
|
function hasExternalLabel(element) {
|
|
18174
|
-
return isLabel$
|
|
18192
|
+
return isLabel$1(element.label);
|
|
18175
18193
|
}
|
|
18176
18194
|
|
|
18177
18195
|
/**
|
|
@@ -18295,19 +18313,10 @@
|
|
|
18295
18313
|
}
|
|
18296
18314
|
|
|
18297
18315
|
/**
|
|
18298
|
-
* @param {
|
|
18316
|
+
* @param {ModdleElement} semantic
|
|
18299
18317
|
*
|
|
18300
|
-
* @
|
|
18301
|
-
*/
|
|
18302
|
-
function isLabel$6(element) {
|
|
18303
|
-
return element && !!element.labelTarget;
|
|
18304
|
-
}
|
|
18305
|
-
|
|
18306
|
-
|
|
18307
|
-
/**
|
|
18308
|
-
* @typedef { import('../model').DiagramElement } DiagramElement
|
|
18318
|
+
* @returns {string}
|
|
18309
18319
|
*/
|
|
18310
|
-
|
|
18311
18320
|
function getLabelAttr(semantic) {
|
|
18312
18321
|
if (
|
|
18313
18322
|
is$5(semantic, 'bpmn:FlowElement') ||
|
|
@@ -18330,6 +18339,11 @@
|
|
|
18330
18339
|
}
|
|
18331
18340
|
}
|
|
18332
18341
|
|
|
18342
|
+
/**
|
|
18343
|
+
* @param {ModdleElement} semantic
|
|
18344
|
+
*
|
|
18345
|
+
* @returns {string}
|
|
18346
|
+
*/
|
|
18333
18347
|
function getCategoryValue(semantic) {
|
|
18334
18348
|
var categoryValueRef = semantic['categoryValueRef'];
|
|
18335
18349
|
|
|
@@ -18342,9 +18356,9 @@
|
|
|
18342
18356
|
}
|
|
18343
18357
|
|
|
18344
18358
|
/**
|
|
18345
|
-
* @param {
|
|
18359
|
+
* @param {Element} element
|
|
18346
18360
|
*
|
|
18347
|
-
* @return {string}
|
|
18361
|
+
* @return {string}
|
|
18348
18362
|
*/
|
|
18349
18363
|
function getLabel(element) {
|
|
18350
18364
|
var semantic = element.businessObject,
|
|
@@ -18363,10 +18377,10 @@
|
|
|
18363
18377
|
|
|
18364
18378
|
|
|
18365
18379
|
/**
|
|
18366
|
-
* @param {
|
|
18380
|
+
* @param {Element} element
|
|
18367
18381
|
* @param {string} text
|
|
18368
18382
|
*
|
|
18369
|
-
* @return {
|
|
18383
|
+
* @return {Element}
|
|
18370
18384
|
*/
|
|
18371
18385
|
function setLabel(element, text) {
|
|
18372
18386
|
var semantic = element.businessObject,
|
|
@@ -18588,7 +18602,7 @@
|
|
|
18588
18602
|
*/
|
|
18589
18603
|
|
|
18590
18604
|
/**
|
|
18591
|
-
* @typedef { import('../model').
|
|
18605
|
+
* @typedef { import('../model/Types').Element } Element
|
|
18592
18606
|
*/
|
|
18593
18607
|
|
|
18594
18608
|
/**
|
|
@@ -18954,8 +18968,8 @@
|
|
|
18954
18968
|
}
|
|
18955
18969
|
|
|
18956
18970
|
function as(type) {
|
|
18957
|
-
return function(parentGfx, element) {
|
|
18958
|
-
return renderer(type)(parentGfx, element);
|
|
18971
|
+
return function(parentGfx, element, options) {
|
|
18972
|
+
return renderer(type)(parentGfx, element, options);
|
|
18959
18973
|
};
|
|
18960
18974
|
}
|
|
18961
18975
|
|
|
@@ -19094,7 +19108,7 @@
|
|
|
19094
19108
|
|
|
19095
19109
|
return drawCircle(parentGfx, element.width, element.height, attrs);
|
|
19096
19110
|
},
|
|
19097
|
-
'bpmn:StartEvent': function(parentGfx, element) {
|
|
19111
|
+
'bpmn:StartEvent': function(parentGfx, element, options) {
|
|
19098
19112
|
var attrs = {
|
|
19099
19113
|
fill: getFillColor(element, defaultFillColor),
|
|
19100
19114
|
stroke: getStrokeColor$1(element, defaultStrokeColor)
|
|
@@ -19112,7 +19126,9 @@
|
|
|
19112
19126
|
|
|
19113
19127
|
var circle = renderer('bpmn:Event')(parentGfx, element, attrs);
|
|
19114
19128
|
|
|
19115
|
-
|
|
19129
|
+
if (!options || options.renderIcon !== false) {
|
|
19130
|
+
renderEventContent(element, parentGfx);
|
|
19131
|
+
}
|
|
19116
19132
|
|
|
19117
19133
|
return circle;
|
|
19118
19134
|
},
|
|
@@ -19365,14 +19381,16 @@
|
|
|
19365
19381
|
stroke: getStrokeColor$1(event, defaultStrokeColor)
|
|
19366
19382
|
});
|
|
19367
19383
|
},
|
|
19368
|
-
'bpmn:EndEvent': function(parentGfx, element) {
|
|
19384
|
+
'bpmn:EndEvent': function(parentGfx, element, options) {
|
|
19369
19385
|
var circle = renderer('bpmn:Event')(parentGfx, element, {
|
|
19370
19386
|
strokeWidth: 4,
|
|
19371
19387
|
fill: getFillColor(element, defaultFillColor),
|
|
19372
19388
|
stroke: getStrokeColor$1(element, defaultStrokeColor)
|
|
19373
19389
|
});
|
|
19374
19390
|
|
|
19375
|
-
|
|
19391
|
+
if (!options || options.renderIcon !== false) {
|
|
19392
|
+
renderEventContent(element, parentGfx);
|
|
19393
|
+
}
|
|
19376
19394
|
|
|
19377
19395
|
return circle;
|
|
19378
19396
|
},
|
|
@@ -19385,7 +19403,7 @@
|
|
|
19385
19403
|
|
|
19386
19404
|
return circle;
|
|
19387
19405
|
},
|
|
19388
|
-
'bpmn:IntermediateEvent': function(parentGfx, element) {
|
|
19406
|
+
'bpmn:IntermediateEvent': function(parentGfx, element, options) {
|
|
19389
19407
|
var outer = renderer('bpmn:Event')(parentGfx, element, {
|
|
19390
19408
|
strokeWidth: 1.5,
|
|
19391
19409
|
fill: getFillColor(element, defaultFillColor),
|
|
@@ -19399,7 +19417,9 @@
|
|
|
19399
19417
|
stroke: getStrokeColor$1(element, defaultStrokeColor)
|
|
19400
19418
|
});
|
|
19401
19419
|
|
|
19402
|
-
|
|
19420
|
+
if (!options || options.renderIcon !== false) {
|
|
19421
|
+
renderEventContent(element, parentGfx);
|
|
19422
|
+
}
|
|
19403
19423
|
|
|
19404
19424
|
return outer;
|
|
19405
19425
|
},
|
|
@@ -20117,7 +20137,7 @@
|
|
|
20117
20137
|
|
|
20118
20138
|
return elementStore;
|
|
20119
20139
|
},
|
|
20120
|
-
'bpmn:BoundaryEvent': function(parentGfx, element) {
|
|
20140
|
+
'bpmn:BoundaryEvent': function(parentGfx, element, options) {
|
|
20121
20141
|
|
|
20122
20142
|
var semantic = getBusinessObject$1(element),
|
|
20123
20143
|
cancel = semantic.cancelActivity;
|
|
@@ -20148,7 +20168,9 @@
|
|
|
20148
20168
|
|
|
20149
20169
|
/* inner path */ drawCircle(parentGfx, element.width, element.height, INNER_OUTER_DIST, innerAttrs);
|
|
20150
20170
|
|
|
20151
|
-
|
|
20171
|
+
if (!options || options.renderIcon !== false) {
|
|
20172
|
+
renderEventContent(element, parentGfx);
|
|
20173
|
+
}
|
|
20152
20174
|
|
|
20153
20175
|
return outer;
|
|
20154
20176
|
},
|
|
@@ -20429,7 +20451,7 @@
|
|
|
20429
20451
|
|
|
20430
20452
|
|
|
20431
20453
|
/**
|
|
20432
|
-
* @param {
|
|
20454
|
+
* @param {Element} element
|
|
20433
20455
|
*
|
|
20434
20456
|
* @return {boolean}
|
|
20435
20457
|
*/
|
|
@@ -20441,7 +20463,7 @@
|
|
|
20441
20463
|
* Draw shape into parentGfx.
|
|
20442
20464
|
*
|
|
20443
20465
|
* @param {SVGElement} parentGfx
|
|
20444
|
-
* @param {
|
|
20466
|
+
* @param {Element} element
|
|
20445
20467
|
*
|
|
20446
20468
|
* @return {SVGElement} mainGfx
|
|
20447
20469
|
*/
|
|
@@ -20457,7 +20479,7 @@
|
|
|
20457
20479
|
* Draw connection into parentGfx.
|
|
20458
20480
|
*
|
|
20459
20481
|
* @param {SVGElement} parentGfx
|
|
20460
|
-
* @param {
|
|
20482
|
+
* @param {Element} element
|
|
20461
20483
|
*
|
|
20462
20484
|
* @return {SVGElement} mainGfx
|
|
20463
20485
|
*/
|
|
@@ -20472,7 +20494,7 @@
|
|
|
20472
20494
|
/**
|
|
20473
20495
|
* Get shape path.
|
|
20474
20496
|
*
|
|
20475
|
-
* @param {
|
|
20497
|
+
* @param {Element} element
|
|
20476
20498
|
*
|
|
20477
20499
|
* @return {string} path
|
|
20478
20500
|
*/
|
|
@@ -26189,11 +26211,7 @@
|
|
|
26189
26211
|
NavigatedViewer.prototype._navigationModules
|
|
26190
26212
|
);
|
|
26191
26213
|
|
|
26192
|
-
var
|
|
26193
|
-
var hammer = {
|
|
26194
|
-
get exports(){ return hammerExports; },
|
|
26195
|
-
set exports(v){ hammerExports = v; },
|
|
26196
|
-
};
|
|
26214
|
+
var hammer = {exports: {}};
|
|
26197
26215
|
|
|
26198
26216
|
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
26199
26217
|
* http://hammerjs.github.io/
|
|
@@ -28838,10 +28856,11 @@
|
|
|
28838
28856
|
window[exportName] = Hammer;
|
|
28839
28857
|
}
|
|
28840
28858
|
|
|
28841
|
-
})(window, document, 'Hammer');
|
|
28859
|
+
})(window, document, 'Hammer');
|
|
28842
28860
|
} (hammer));
|
|
28843
28861
|
|
|
28844
|
-
var
|
|
28862
|
+
var hammerExports = hammer.exports;
|
|
28863
|
+
var Hammer = /*@__PURE__*/getDefaultExportFromCjs(hammerExports);
|
|
28845
28864
|
|
|
28846
28865
|
/**
|
|
28847
28866
|
* @typedef {import('didi').Injector} Injector
|
|
@@ -30985,7 +31004,7 @@
|
|
|
30985
31004
|
let element = closest(event.delegateTarget || event.target, '.entry', true);
|
|
30986
31005
|
let entryId = attr$1(element, DATA_REF);
|
|
30987
31006
|
|
|
30988
|
-
entry = this._getEntry(entryId);
|
|
31007
|
+
entry = { id: entryId, ...this._getEntry(entryId) };
|
|
30989
31008
|
}
|
|
30990
31009
|
|
|
30991
31010
|
const handler = entry.action;
|
|
@@ -31958,7 +31977,7 @@
|
|
|
31958
31977
|
y: sourceTrbl.top - 50 - element.height / 2
|
|
31959
31978
|
};
|
|
31960
31979
|
|
|
31961
|
-
if (isConnection$
|
|
31980
|
+
if (isConnection$1(source)) {
|
|
31962
31981
|
position = getMid(source);
|
|
31963
31982
|
position.x += 100;
|
|
31964
31983
|
position.y -= 50;
|
|
@@ -32003,10 +32022,6 @@
|
|
|
32003
32022
|
return findFreePosition(source, element, position, generateGetNextPosition(nextPositionDirection));
|
|
32004
32023
|
}
|
|
32005
32024
|
|
|
32006
|
-
function isConnection$f(element) {
|
|
32007
|
-
return !!element.waypoints;
|
|
32008
|
-
}
|
|
32009
|
-
|
|
32010
32025
|
/**
|
|
32011
32026
|
* @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
|
|
32012
32027
|
*/
|
|
@@ -32444,7 +32459,7 @@
|
|
|
32444
32459
|
|
|
32445
32460
|
forEach$1(elements, function(element) {
|
|
32446
32461
|
|
|
32447
|
-
if (is$5(element, 'bpmn:Lane') || isLabel$
|
|
32462
|
+
if (is$5(element, 'bpmn:Lane') || isLabel$1(element)) {
|
|
32448
32463
|
canResize = false;
|
|
32449
32464
|
return;
|
|
32450
32465
|
}
|
|
@@ -35458,7 +35473,7 @@
|
|
|
35458
35473
|
hoverMid = hover && getSnapPoint(hover, event);
|
|
35459
35474
|
|
|
35460
35475
|
// only snap on connections, elements can have multiple connect endpoints
|
|
35461
|
-
if (!isConnection$
|
|
35476
|
+
if (!isConnection$1(hover) || !hoverMid || !hoverMid.x || !hoverMid.y) {
|
|
35462
35477
|
return;
|
|
35463
35478
|
}
|
|
35464
35479
|
|
|
@@ -35510,13 +35525,6 @@
|
|
|
35510
35525
|
|
|
35511
35526
|
BendpointSnapping.$inject = [ 'eventBus' ];
|
|
35512
35527
|
|
|
35513
|
-
|
|
35514
|
-
// helpers //////////////////////
|
|
35515
|
-
|
|
35516
|
-
function isConnection$e(element) {
|
|
35517
|
-
return element && !!element.waypoints;
|
|
35518
|
-
}
|
|
35519
|
-
|
|
35520
35528
|
/**
|
|
35521
35529
|
* @type { import('didi').ModuleDeclaration }
|
|
35522
35530
|
*/
|
|
@@ -37043,11 +37051,11 @@
|
|
|
37043
37051
|
elements = filter(elements, function(element) {
|
|
37044
37052
|
var labelTarget = element.labelTarget;
|
|
37045
37053
|
|
|
37046
|
-
return !element.parent && !(isLabel$
|
|
37054
|
+
return !element.parent && !(isLabel$1(element) && elements.indexOf(labelTarget) !== -1);
|
|
37047
37055
|
});
|
|
37048
37056
|
|
|
37049
37057
|
var shape = find$1(elements, function(element) {
|
|
37050
|
-
return !isConnection$
|
|
37058
|
+
return !isConnection$1(element);
|
|
37051
37059
|
});
|
|
37052
37060
|
|
|
37053
37061
|
var attach = false,
|
|
@@ -37202,7 +37210,7 @@
|
|
|
37202
37210
|
|
|
37203
37211
|
// update shape
|
|
37204
37212
|
shape = find$1(elements, function(element) {
|
|
37205
|
-
return !isConnection$
|
|
37213
|
+
return !isConnection$1(element);
|
|
37206
37214
|
});
|
|
37207
37215
|
}
|
|
37208
37216
|
|
|
@@ -37243,7 +37251,7 @@
|
|
|
37243
37251
|
}
|
|
37244
37252
|
|
|
37245
37253
|
var shape = find$1(elements, function(element) {
|
|
37246
|
-
return !isConnection$
|
|
37254
|
+
return !isConnection$1(element);
|
|
37247
37255
|
});
|
|
37248
37256
|
|
|
37249
37257
|
if (!shape) {
|
|
@@ -37277,7 +37285,7 @@
|
|
|
37277
37285
|
|
|
37278
37286
|
// center elements around cursor
|
|
37279
37287
|
forEach$1(elements, function(element) {
|
|
37280
|
-
if (isConnection$
|
|
37288
|
+
if (isConnection$1(element)) {
|
|
37281
37289
|
element.waypoints = map$2(element.waypoints, function(waypoint) {
|
|
37282
37290
|
return {
|
|
37283
37291
|
x: waypoint.x - bbox.x - bbox.width / 2,
|
|
@@ -37339,16 +37347,8 @@
|
|
|
37339
37347
|
}
|
|
37340
37348
|
}
|
|
37341
37349
|
|
|
37342
|
-
function isConnection$d(element) {
|
|
37343
|
-
return !!element.waypoints;
|
|
37344
|
-
}
|
|
37345
|
-
|
|
37346
37350
|
function isSingleShape(elements) {
|
|
37347
|
-
return elements && elements.length === 1 && !isConnection$
|
|
37348
|
-
}
|
|
37349
|
-
|
|
37350
|
-
function isLabel$5(element) {
|
|
37351
|
-
return !!element.labelTarget;
|
|
37351
|
+
return elements && elements.length === 1 && !isConnection$1(elements[ 0 ]);
|
|
37352
37352
|
}
|
|
37353
37353
|
|
|
37354
37354
|
/**
|
|
@@ -37681,7 +37681,7 @@
|
|
|
37681
37681
|
}
|
|
37682
37682
|
|
|
37683
37683
|
// connections (priority = 3)
|
|
37684
|
-
if (isConnection$
|
|
37684
|
+
if (isConnection$1(element)) {
|
|
37685
37685
|
descriptor.priority = 3;
|
|
37686
37686
|
|
|
37687
37687
|
descriptor.source = element.source.id;
|
|
@@ -37691,7 +37691,7 @@
|
|
|
37691
37691
|
}
|
|
37692
37692
|
|
|
37693
37693
|
// labels (priority = 4)
|
|
37694
|
-
if (isLabel$
|
|
37694
|
+
if (isLabel$1(element)) {
|
|
37695
37695
|
descriptor.priority = 4;
|
|
37696
37696
|
|
|
37697
37697
|
descriptor.labelTarget = element.labelTarget.id;
|
|
@@ -37824,7 +37824,7 @@
|
|
|
37824
37824
|
|
|
37825
37825
|
// center elements around cursor
|
|
37826
37826
|
forEach$1(elements, function(element) {
|
|
37827
|
-
if (isConnection$
|
|
37827
|
+
if (isConnection$1(element)) {
|
|
37828
37828
|
element.waypoints = map$2(element.waypoints, function(waypoint) {
|
|
37829
37829
|
return {
|
|
37830
37830
|
x: waypoint.x - bbox.x - bbox.width / 2,
|
|
@@ -37877,7 +37877,7 @@
|
|
|
37877
37877
|
|
|
37878
37878
|
var element;
|
|
37879
37879
|
|
|
37880
|
-
if (isConnection$
|
|
37880
|
+
if (isConnection$1(attrs)) {
|
|
37881
37881
|
attrs.source = cache[ descriptor.source ];
|
|
37882
37882
|
attrs.target = cache[ descriptor.target ];
|
|
37883
37883
|
|
|
@@ -37888,7 +37888,7 @@
|
|
|
37888
37888
|
return;
|
|
37889
37889
|
}
|
|
37890
37890
|
|
|
37891
|
-
if (isLabel$
|
|
37891
|
+
if (isLabel$1(attrs)) {
|
|
37892
37892
|
attrs.labelTarget = cache[ attrs.labelTarget ];
|
|
37893
37893
|
|
|
37894
37894
|
element = cache[ descriptor.id ] = self.createLabel(attrs);
|
|
@@ -37943,7 +37943,7 @@
|
|
|
37943
37943
|
source,
|
|
37944
37944
|
target;
|
|
37945
37945
|
|
|
37946
|
-
if (isConnection$
|
|
37946
|
+
if (isConnection$1(element)) {
|
|
37947
37947
|
source = find$1(elements, matchPattern({ id: element.source.id }));
|
|
37948
37948
|
target = find$1(elements, matchPattern({ id: element.target.id }));
|
|
37949
37949
|
|
|
@@ -37952,7 +37952,7 @@
|
|
|
37952
37952
|
}
|
|
37953
37953
|
}
|
|
37954
37954
|
|
|
37955
|
-
if (isLabel$
|
|
37955
|
+
if (isLabel$1(element)) {
|
|
37956
37956
|
labelTarget = find$1(elements, matchPattern({ id: element.labelTarget.id }));
|
|
37957
37957
|
|
|
37958
37958
|
if (!labelTarget) {
|
|
@@ -38045,7 +38045,7 @@
|
|
|
38045
38045
|
eachElement$2(parents, function(element, _index, depth) {
|
|
38046
38046
|
|
|
38047
38047
|
// do NOT add external labels directly
|
|
38048
|
-
if (isLabel$
|
|
38048
|
+
if (isLabel$1(element)) {
|
|
38049
38049
|
return;
|
|
38050
38050
|
}
|
|
38051
38051
|
|
|
@@ -38143,14 +38143,6 @@
|
|
|
38143
38143
|
return !!element.host;
|
|
38144
38144
|
}
|
|
38145
38145
|
|
|
38146
|
-
function isConnection$c(element) {
|
|
38147
|
-
return !!element.waypoints;
|
|
38148
|
-
}
|
|
38149
|
-
|
|
38150
|
-
function isLabel$4(element) {
|
|
38151
|
-
return !!element.labelTarget;
|
|
38152
|
-
}
|
|
38153
|
-
|
|
38154
38146
|
function copyWaypoints$1(element) {
|
|
38155
38147
|
return map$2(element.waypoints, function(waypoint) {
|
|
38156
38148
|
|
|
@@ -38234,7 +38226,7 @@
|
|
|
38234
38226
|
|
|
38235
38227
|
// do not copy business object + di for labels;
|
|
38236
38228
|
// will be pulled from the referenced label target
|
|
38237
|
-
if (isLabel$
|
|
38229
|
+
if (isLabel$1(element)) {
|
|
38238
38230
|
return descriptor;
|
|
38239
38231
|
}
|
|
38240
38232
|
|
|
@@ -38302,7 +38294,7 @@
|
|
|
38302
38294
|
di = descriptor.di;
|
|
38303
38295
|
|
|
38304
38296
|
// wire existing di + businessObject for external label
|
|
38305
|
-
if (isLabel$
|
|
38297
|
+
if (isLabel$1(descriptor)) {
|
|
38306
38298
|
descriptor.businessObject = getBusinessObject$1(cache[ descriptor.labelTarget ]);
|
|
38307
38299
|
descriptor.di = getDi(cache[ descriptor.labelTarget ]);
|
|
38308
38300
|
|
|
@@ -44383,7 +44375,7 @@
|
|
|
44383
44375
|
ResizeHandles.prototype.addResizer = function(element) {
|
|
44384
44376
|
var self = this;
|
|
44385
44377
|
|
|
44386
|
-
if (isConnection$
|
|
44378
|
+
if (isConnection$1(element) || !this._resize.canResize({ shape: element })) {
|
|
44387
44379
|
return;
|
|
44388
44380
|
}
|
|
44389
44381
|
|
|
@@ -44435,10 +44427,6 @@
|
|
|
44435
44427
|
return offset;
|
|
44436
44428
|
}
|
|
44437
44429
|
|
|
44438
|
-
function isConnection$b(element) {
|
|
44439
|
-
return !!element.waypoints;
|
|
44440
|
-
}
|
|
44441
|
-
|
|
44442
44430
|
/**
|
|
44443
44431
|
* @type { import('didi').ModuleDeclaration }
|
|
44444
44432
|
*/
|
|
@@ -44798,7 +44786,7 @@
|
|
|
44798
44786
|
// external label not yet created
|
|
44799
44787
|
if (isLabelExternal(target)
|
|
44800
44788
|
&& !hasExternalLabel(target)
|
|
44801
|
-
&& !isLabel$
|
|
44789
|
+
&& !isLabel$1(target)) {
|
|
44802
44790
|
|
|
44803
44791
|
var externalLabelMid = getExternalLabelMid(element);
|
|
44804
44792
|
|
|
@@ -45475,7 +45463,7 @@
|
|
|
45475
45463
|
}
|
|
45476
45464
|
|
|
45477
45465
|
function shouldReplace$1(shape, host) {
|
|
45478
|
-
return !isLabel$
|
|
45466
|
+
return !isLabel$1(shape) &&
|
|
45479
45467
|
isAny(shape, [ 'bpmn:IntermediateThrowEvent', 'bpmn:IntermediateCatchEvent' ]) && !!host;
|
|
45480
45468
|
}
|
|
45481
45469
|
|
|
@@ -45652,8 +45640,8 @@
|
|
|
45652
45640
|
// ignore connections, groups and labels
|
|
45653
45641
|
var children = rootElement.children.filter(function(element) {
|
|
45654
45642
|
return !is$5(element, 'bpmn:Group') &&
|
|
45655
|
-
!isLabel$
|
|
45656
|
-
!isConnection$
|
|
45643
|
+
!isLabel$1(element) &&
|
|
45644
|
+
!isConnection$1(element);
|
|
45657
45645
|
});
|
|
45658
45646
|
|
|
45659
45647
|
// ensure for available children to calculate bounds
|
|
@@ -45824,10 +45812,6 @@
|
|
|
45824
45812
|
};
|
|
45825
45813
|
}
|
|
45826
45814
|
|
|
45827
|
-
function isConnection$a(element) {
|
|
45828
|
-
return !!element.waypoints;
|
|
45829
|
-
}
|
|
45830
|
-
|
|
45831
45815
|
function findParticipant(elements) {
|
|
45832
45816
|
return find$1(elements, function(element) {
|
|
45833
45817
|
return is$5(element, 'bpmn:Participant');
|
|
@@ -46432,7 +46416,7 @@
|
|
|
46432
46416
|
}
|
|
46433
46417
|
|
|
46434
46418
|
function shouldReplace(shape, host) {
|
|
46435
|
-
return !isLabel$
|
|
46419
|
+
return !isLabel$1(shape) && is$5(shape, 'bpmn:BoundaryEvent') && !host;
|
|
46436
46420
|
}
|
|
46437
46421
|
|
|
46438
46422
|
function includes$6(array, item) {
|
|
@@ -48139,7 +48123,7 @@
|
|
|
48139
48123
|
|
|
48140
48124
|
var element = context.shape || context.connection;
|
|
48141
48125
|
|
|
48142
|
-
if (isLabel$
|
|
48126
|
+
if (isLabel$1(element) || !isLabelExternal(element)) {
|
|
48143
48127
|
return;
|
|
48144
48128
|
}
|
|
48145
48129
|
|
|
@@ -50678,7 +50662,7 @@
|
|
|
50678
50662
|
shape = context.shape,
|
|
50679
50663
|
shapeBo = shape.businessObject;
|
|
50680
50664
|
|
|
50681
|
-
if (isLabel$
|
|
50665
|
+
if (isLabel$1(shape)) {
|
|
50682
50666
|
return;
|
|
50683
50667
|
}
|
|
50684
50668
|
|
|
@@ -51127,12 +51111,12 @@
|
|
|
51127
51111
|
position = context.position,
|
|
51128
51112
|
target = context.target;
|
|
51129
51113
|
|
|
51130
|
-
if (isConnection$
|
|
51114
|
+
if (isConnection$1(target) && !canInsert(elements, target)) {
|
|
51131
51115
|
return false;
|
|
51132
51116
|
}
|
|
51133
51117
|
|
|
51134
51118
|
return every(elements, function(element) {
|
|
51135
|
-
if (isConnection$
|
|
51119
|
+
if (isConnection$1(element)) {
|
|
51136
51120
|
return canConnect(element.source, element.target, element);
|
|
51137
51121
|
}
|
|
51138
51122
|
|
|
@@ -51241,7 +51225,7 @@
|
|
|
51241
51225
|
* @return {boolean}
|
|
51242
51226
|
*/
|
|
51243
51227
|
function nonExistingOrLabel(element) {
|
|
51244
|
-
return !element || isLabel$
|
|
51228
|
+
return !element || isLabel$1(element);
|
|
51245
51229
|
}
|
|
51246
51230
|
|
|
51247
51231
|
function isSame$1(a, b) {
|
|
@@ -51475,15 +51459,6 @@
|
|
|
51475
51459
|
);
|
|
51476
51460
|
}
|
|
51477
51461
|
|
|
51478
|
-
/**
|
|
51479
|
-
* @param {Element} element
|
|
51480
|
-
*
|
|
51481
|
-
* @return {boolean}
|
|
51482
|
-
*/
|
|
51483
|
-
function isConnection$9(element) {
|
|
51484
|
-
return element.waypoints;
|
|
51485
|
-
}
|
|
51486
|
-
|
|
51487
51462
|
/**
|
|
51488
51463
|
* @param {Element} element
|
|
51489
51464
|
*
|
|
@@ -51574,7 +51549,7 @@
|
|
|
51574
51549
|
function canDrop(element, target) {
|
|
51575
51550
|
|
|
51576
51551
|
// can move labels and groups everywhere
|
|
51577
|
-
if (isLabel$
|
|
51552
|
+
if (isLabel$1(element) || isGroup(element)) {
|
|
51578
51553
|
return true;
|
|
51579
51554
|
}
|
|
51580
51555
|
|
|
@@ -51664,7 +51639,7 @@
|
|
|
51664
51639
|
* @return {boolean}
|
|
51665
51640
|
*/
|
|
51666
51641
|
function isBoundaryEvent(element) {
|
|
51667
|
-
return !isLabel$
|
|
51642
|
+
return !isLabel$1(element) && is$5(element, 'bpmn:BoundaryEvent');
|
|
51668
51643
|
}
|
|
51669
51644
|
|
|
51670
51645
|
/**
|
|
@@ -51773,7 +51748,7 @@
|
|
|
51773
51748
|
var element = elements[0];
|
|
51774
51749
|
|
|
51775
51750
|
// do not attach labels
|
|
51776
|
-
if (isLabel$
|
|
51751
|
+
if (isLabel$1(element)) {
|
|
51777
51752
|
return false;
|
|
51778
51753
|
}
|
|
51779
51754
|
|
|
@@ -51945,7 +51920,7 @@
|
|
|
51945
51920
|
return false;
|
|
51946
51921
|
}
|
|
51947
51922
|
|
|
51948
|
-
if (isLabel$
|
|
51923
|
+
if (isLabel$1(shape) || isGroup(shape)) {
|
|
51949
51924
|
return true;
|
|
51950
51925
|
}
|
|
51951
51926
|
|
|
@@ -52126,7 +52101,7 @@
|
|
|
52126
52101
|
// return true if shape can be inserted into connection parent
|
|
52127
52102
|
return (
|
|
52128
52103
|
isAny(connection, [ 'bpmn:SequenceFlow', 'bpmn:MessageFlow' ]) &&
|
|
52129
|
-
!isLabel$
|
|
52104
|
+
!isLabel$1(connection) &&
|
|
52130
52105
|
is$5(shape, 'bpmn:FlowNode') &&
|
|
52131
52106
|
!is$5(shape, 'bpmn:BoundaryEvent') &&
|
|
52132
52107
|
canDrop(shape, connection.parent));
|
|
@@ -52149,7 +52124,7 @@
|
|
|
52149
52124
|
* @return {boolean}
|
|
52150
52125
|
*/
|
|
52151
52126
|
function canCopy(elements, element) {
|
|
52152
|
-
if (isLabel$
|
|
52127
|
+
if (isLabel$1(element)) {
|
|
52153
52128
|
return true;
|
|
52154
52129
|
}
|
|
52155
52130
|
|
|
@@ -53057,12 +53032,12 @@
|
|
|
53057
53032
|
}
|
|
53058
53033
|
|
|
53059
53034
|
forEach$1(elements, function(element) {
|
|
53060
|
-
if (!element.parent || isLabel$
|
|
53035
|
+
if (!element.parent || isLabel$1(element)) {
|
|
53061
53036
|
return;
|
|
53062
53037
|
}
|
|
53063
53038
|
|
|
53064
53039
|
// handle connections separately
|
|
53065
|
-
if (isConnection$
|
|
53040
|
+
if (isConnection$1(element)) {
|
|
53066
53041
|
connections.push(element);
|
|
53067
53042
|
|
|
53068
53043
|
return;
|
|
@@ -53233,15 +53208,15 @@
|
|
|
53233
53208
|
|
|
53234
53209
|
// find children that are not moving or resizing
|
|
53235
53210
|
var nonMovingResizingChildren = filter(children, function(child) {
|
|
53236
|
-
return !isConnection$
|
|
53237
|
-
!isLabel$
|
|
53211
|
+
return !isConnection$1(child) &&
|
|
53212
|
+
!isLabel$1(child) &&
|
|
53238
53213
|
!includes$3(movingShapes, child) &&
|
|
53239
53214
|
!includes$3(resizingShapes, child);
|
|
53240
53215
|
});
|
|
53241
53216
|
|
|
53242
53217
|
// find children that are moving
|
|
53243
53218
|
var movingChildren = filter(children, function(child) {
|
|
53244
|
-
return !isConnection$
|
|
53219
|
+
return !isConnection$1(child) && !isLabel$1(child) && includes$3(movingShapes, child);
|
|
53245
53220
|
});
|
|
53246
53221
|
|
|
53247
53222
|
var minOrMax,
|
|
@@ -53375,14 +53350,6 @@
|
|
|
53375
53350
|
return !!element.host;
|
|
53376
53351
|
}
|
|
53377
53352
|
|
|
53378
|
-
function isConnection$8(element) {
|
|
53379
|
-
return !!element.waypoints;
|
|
53380
|
-
}
|
|
53381
|
-
|
|
53382
|
-
function isLabel$3(element) {
|
|
53383
|
-
return !!element.labelTarget;
|
|
53384
|
-
}
|
|
53385
|
-
|
|
53386
53353
|
var MARKER_DRAGGING$1 = 'djs-dragging',
|
|
53387
53354
|
MARKER_RESIZING = 'djs-resizing';
|
|
53388
53355
|
|
|
@@ -53541,7 +53508,7 @@
|
|
|
53541
53508
|
});
|
|
53542
53509
|
});
|
|
53543
53510
|
|
|
53544
|
-
return isConnection$
|
|
53511
|
+
return isConnection$1(element)
|
|
53545
53512
|
&& (sourceIsMoving || sourceIsResizing)
|
|
53546
53513
|
&& (targetIsMoving || targetIsResizing);
|
|
53547
53514
|
});
|
|
@@ -53671,16 +53638,6 @@
|
|
|
53671
53638
|
'previewSupport'
|
|
53672
53639
|
];
|
|
53673
53640
|
|
|
53674
|
-
|
|
53675
|
-
// helpers //////////////////////
|
|
53676
|
-
|
|
53677
|
-
/**
|
|
53678
|
-
* Checks if an element is a connection.
|
|
53679
|
-
*/
|
|
53680
|
-
function isConnection$7(element) {
|
|
53681
|
-
return element.waypoints;
|
|
53682
|
-
}
|
|
53683
|
-
|
|
53684
53641
|
/**
|
|
53685
53642
|
* @type { import('didi').ModuleDeclaration }
|
|
53686
53643
|
*/
|
|
@@ -55720,7 +55677,7 @@
|
|
|
55720
55677
|
BpmnUpdater.prototype.updateParent = function(element, oldParent) {
|
|
55721
55678
|
|
|
55722
55679
|
// do not update BPMN 2.0 label parent
|
|
55723
|
-
if (isLabel$
|
|
55680
|
+
if (isLabel$1(element)) {
|
|
55724
55681
|
return;
|
|
55725
55682
|
}
|
|
55726
55683
|
|
|
@@ -55785,7 +55742,7 @@
|
|
|
55785
55742
|
});
|
|
55786
55743
|
}
|
|
55787
55744
|
|
|
55788
|
-
var target = isLabel$
|
|
55745
|
+
var target = isLabel$1(shape) ? this._getLabel(di) : di;
|
|
55789
55746
|
|
|
55790
55747
|
var bounds = target.bounds;
|
|
55791
55748
|
|
|
@@ -56846,7 +56803,7 @@
|
|
|
56846
56803
|
|
|
56847
56804
|
// center elements around position
|
|
56848
56805
|
forEach$1(elements, function(element) {
|
|
56849
|
-
if (isConnection$
|
|
56806
|
+
if (isConnection$1(element)) {
|
|
56850
56807
|
element.waypoints = map$2(element.waypoints, function(waypoint) {
|
|
56851
56808
|
return {
|
|
56852
56809
|
x: round$3(waypoint.x - bbox.x - bbox.width / 2 + position.x),
|
|
@@ -56866,7 +56823,7 @@
|
|
|
56866
56823
|
var cache = {};
|
|
56867
56824
|
|
|
56868
56825
|
forEach$1(elements, function(element) {
|
|
56869
|
-
if (isConnection$
|
|
56826
|
+
if (isConnection$1(element)) {
|
|
56870
56827
|
cache[ element.id ] = isNumber(parentIndex) ?
|
|
56871
56828
|
modeling.createConnection(
|
|
56872
56829
|
cache[ element.source.id ],
|
|
@@ -56893,6 +56850,10 @@
|
|
|
56893
56850
|
createShapeHints.autoResize = false;
|
|
56894
56851
|
}
|
|
56895
56852
|
|
|
56853
|
+
if (isLabel$1(element)) {
|
|
56854
|
+
createShapeHints = omit(createShapeHints, [ 'attach' ]);
|
|
56855
|
+
}
|
|
56856
|
+
|
|
56896
56857
|
cache[ element.id ] = isNumber(parentIndex) ?
|
|
56897
56858
|
modeling.createShape(
|
|
56898
56859
|
element,
|
|
@@ -56910,13 +56871,7 @@
|
|
|
56910
56871
|
});
|
|
56911
56872
|
|
|
56912
56873
|
context.elements = values(cache);
|
|
56913
|
-
};
|
|
56914
|
-
|
|
56915
|
-
// helpers //////////
|
|
56916
|
-
|
|
56917
|
-
function isConnection$6(element) {
|
|
56918
|
-
return !!element.waypoints;
|
|
56919
|
-
}
|
|
56874
|
+
};
|
|
56920
56875
|
|
|
56921
56876
|
/**
|
|
56922
56877
|
* @typedef {import('../../../model/Types').Element} Element
|
|
@@ -57239,7 +57194,7 @@
|
|
|
57239
57194
|
|
|
57240
57195
|
// remove child shapes and connections
|
|
57241
57196
|
saveClear(shape.children, function(child) {
|
|
57242
|
-
if (isConnection$
|
|
57197
|
+
if (isConnection$1(child)) {
|
|
57243
57198
|
modeling.removeConnection(child, { nested: true });
|
|
57244
57199
|
} else {
|
|
57245
57200
|
modeling.removeShape(child, { nested: true });
|
|
@@ -57287,10 +57242,6 @@
|
|
|
57287
57242
|
return shape;
|
|
57288
57243
|
};
|
|
57289
57244
|
|
|
57290
|
-
function isConnection$5(element) {
|
|
57291
|
-
return element.waypoints;
|
|
57292
|
-
}
|
|
57293
|
-
|
|
57294
57245
|
/**
|
|
57295
57246
|
* @typedef {import('../Modeling').default} Modeling
|
|
57296
57247
|
*/
|
|
@@ -60421,13 +60372,13 @@
|
|
|
60421
60372
|
}
|
|
60422
60373
|
|
|
60423
60374
|
forEach$1(elements, function(element) {
|
|
60424
|
-
var assignedDi = isConnection$
|
|
60375
|
+
var assignedDi = isConnection$1(element) ? pick(di, [ 'border-color' ]) : di,
|
|
60425
60376
|
elementDi = getDi(element);
|
|
60426
60377
|
|
|
60427
60378
|
// TODO @barmac: remove once we drop bpmn.io properties
|
|
60428
60379
|
ensureLegacySupport(assignedDi);
|
|
60429
60380
|
|
|
60430
|
-
if (isLabel$
|
|
60381
|
+
if (isLabel$1(element)) {
|
|
60431
60382
|
|
|
60432
60383
|
// set label colors as bpmndi:BPMNLabel#color
|
|
60433
60384
|
self._commandStack.execute('element.updateModdleProperties', {
|
|
@@ -60487,10 +60438,6 @@
|
|
|
60487
60438
|
return /^#[0-9a-fA-F]{6}$/.test(context.fillStyle) ? context.fillStyle : null;
|
|
60488
60439
|
}
|
|
60489
60440
|
|
|
60490
|
-
function isConnection$4(element) {
|
|
60491
|
-
return !!element.waypoints;
|
|
60492
|
-
}
|
|
60493
|
-
|
|
60494
60441
|
/**
|
|
60495
60442
|
* Add legacy properties if required.
|
|
60496
60443
|
*
|
|
@@ -60553,7 +60500,7 @@
|
|
|
60553
60500
|
businessObject = element.businessObject,
|
|
60554
60501
|
newLabel = ctx.newLabel;
|
|
60555
60502
|
|
|
60556
|
-
if (!isLabel$
|
|
60503
|
+
if (!isLabel$1(element)
|
|
60557
60504
|
&& isLabelExternal(element)
|
|
60558
60505
|
&& !hasExternalLabel(element)
|
|
60559
60506
|
&& !isEmptyText(newLabel)) {
|
|
@@ -60593,11 +60540,11 @@
|
|
|
60593
60540
|
hints = ctx.hints || {};
|
|
60594
60541
|
|
|
60595
60542
|
// ignore internal labels for elements except text annotations
|
|
60596
|
-
if (!isLabel$
|
|
60543
|
+
if (!isLabel$1(label) && !is$5(label, 'bpmn:TextAnnotation')) {
|
|
60597
60544
|
return;
|
|
60598
60545
|
}
|
|
60599
60546
|
|
|
60600
|
-
if (isLabel$
|
|
60547
|
+
if (isLabel$1(label) && isEmptyText(newLabel)) {
|
|
60601
60548
|
|
|
60602
60549
|
if (hints.removeShape !== false) {
|
|
60603
60550
|
modeling.removeShape(label, { unsetLabel: false });
|
|
@@ -62706,7 +62653,7 @@
|
|
|
62706
62653
|
|
|
62707
62654
|
var filteredElements = filter(elements, function(element) {
|
|
62708
62655
|
|
|
62709
|
-
if (!isConnection$
|
|
62656
|
+
if (!isConnection$1(element)) {
|
|
62710
62657
|
return true;
|
|
62711
62658
|
} else {
|
|
62712
62659
|
|
|
@@ -62724,13 +62671,6 @@
|
|
|
62724
62671
|
return size(groupBy(elements, function(e) { return e.parent && e.parent.id; })) !== 1;
|
|
62725
62672
|
}
|
|
62726
62673
|
|
|
62727
|
-
/**
|
|
62728
|
-
* Checks if an element is a connection.
|
|
62729
|
-
*/
|
|
62730
|
-
function isConnection$3(element) {
|
|
62731
|
-
return element.waypoints;
|
|
62732
|
-
}
|
|
62733
|
-
|
|
62734
62674
|
/**
|
|
62735
62675
|
* @type { import('didi').ModuleDeclaration }
|
|
62736
62676
|
*/
|
|
@@ -64787,7 +64727,7 @@
|
|
|
64787
64727
|
});
|
|
64788
64728
|
|
|
64789
64729
|
// snap labels to mid only
|
|
64790
|
-
if (isLabel$
|
|
64730
|
+
if (isLabel$1(shape)) {
|
|
64791
64731
|
return snapContext;
|
|
64792
64732
|
}
|
|
64793
64733
|
|
|
@@ -64810,9 +64750,9 @@
|
|
|
64810
64750
|
forEach$1(snapTargets, function(snapTarget) {
|
|
64811
64751
|
|
|
64812
64752
|
// handle labels
|
|
64813
|
-
if (isLabel$
|
|
64753
|
+
if (isLabel$1(snapTarget)) {
|
|
64814
64754
|
|
|
64815
|
-
if (isLabel$
|
|
64755
|
+
if (isLabel$1(shape)) {
|
|
64816
64756
|
snapPoints.add('mid', mid$2(snapTarget));
|
|
64817
64757
|
}
|
|
64818
64758
|
|
|
@@ -64820,7 +64760,7 @@
|
|
|
64820
64760
|
}
|
|
64821
64761
|
|
|
64822
64762
|
// handle connections
|
|
64823
|
-
if (isConnection$
|
|
64763
|
+
if (isConnection$1(snapTarget)) {
|
|
64824
64764
|
|
|
64825
64765
|
// ignore single segment connections
|
|
64826
64766
|
if (snapTarget.waypoints.length < 3) {
|
|
@@ -64861,16 +64801,8 @@
|
|
|
64861
64801
|
|
|
64862
64802
|
// helpers //////////
|
|
64863
64803
|
|
|
64864
|
-
function isConnection$2(element) {
|
|
64865
|
-
return !!element.waypoints;
|
|
64866
|
-
}
|
|
64867
|
-
|
|
64868
64804
|
function isHidden$1(element) {
|
|
64869
64805
|
return !!element.hidden;
|
|
64870
|
-
}
|
|
64871
|
-
|
|
64872
|
-
function isLabel$2(element) {
|
|
64873
|
-
return !!element.labelTarget;
|
|
64874
64806
|
}
|
|
64875
64807
|
|
|
64876
64808
|
/**
|
|
@@ -65279,18 +65211,10 @@
|
|
|
65279
65211
|
return element.host === host;
|
|
65280
65212
|
}
|
|
65281
65213
|
|
|
65282
|
-
function isConnection$1(element) {
|
|
65283
|
-
return !!element.waypoints;
|
|
65284
|
-
}
|
|
65285
|
-
|
|
65286
65214
|
function isHidden(element) {
|
|
65287
65215
|
return !!element.hidden;
|
|
65288
65216
|
}
|
|
65289
65217
|
|
|
65290
|
-
function isLabel$1(element) {
|
|
65291
|
-
return !!element.labelTarget;
|
|
65292
|
-
}
|
|
65293
|
-
|
|
65294
65218
|
function isHorizontal(direction) {
|
|
65295
65219
|
return direction === 'n' || direction === 's';
|
|
65296
65220
|
}
|
|
@@ -67820,11 +67744,7 @@
|
|
|
67820
67744
|
|
|
67821
67745
|
var t$1,u,r,o$2=0,i$2=[],c=n$1.__b,f=n$1.__r,e$1=n$1.diffed,a$1=n$1.__c,v=n$1.unmount;function m(t,r){n$1.__h&&n$1.__h(u,t,o$2||r),o$2=0;var i=u.__H||(u.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function l$1(n){return o$2=1,p$1(w$1,n)}function p$1(n,r,o){var i=m(t$1++,2);return i.t=n,i.__c||(i.__=[o?o(r):w$1(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}));}],i.__c=u),i.__}function y(r,o){var i=m(t$1++,3);!n$1.__s&&k$1(i.__H,o)&&(i.__=r,i.__H=o,u.__H.__h.push(i));}function h(r,o){var i=m(t$1++,4);!n$1.__s&&k$1(i.__H,o)&&(i.__=r,i.__H=o,u.__h.push(i));}function s(n){return o$2=5,d(function(){return {current:n}},[])}function _(n,t,u){o$2=6,h(function(){"function"==typeof n?n(t()):n&&(n.current=t());},null==u?u:u.concat(n));}function d(n,u){var r=m(t$1++,7);return k$1(r.__H,u)&&(r.__=n(),r.__H=u,r.__h=n),r.__}function A$1(n,t){return o$2=8,d(function(){return n},t)}function F$1(n){var r=u.context[n.__c],o=m(t$1++,9);return o.__c=n,r?(null==o.__&&(o.__=!0,r.sub(u)),r.props.value):n.__}function T$1(t,u){n$1.useDebugValue&&n$1.useDebugValue(u?u(t):t);}function x$1(){i$2.forEach(function(t){if(t.__P)try{t.__H.__h.forEach(g$1),t.__H.__h.forEach(j$1),t.__H.__h=[];}catch(u){t.__H.__h=[],n$1.__e(u,t.__v);}}),i$2=[];}n$1.__b=function(n){u=null,c&&c(n);},n$1.__r=function(n){f&&f(n),t$1=0;var r=(u=n.__c).__H;r&&(r.__h.forEach(g$1),r.__h.forEach(j$1),r.__h=[]);},n$1.diffed=function(t){e$1&&e$1(t);var o=t.__c;o&&o.__H&&o.__H.__h.length&&(1!==i$2.push(o)&&r===n$1.requestAnimationFrame||((r=n$1.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),b&&cancelAnimationFrame(t),setTimeout(n);},r=setTimeout(u,100);b&&(t=requestAnimationFrame(u));})(x$1)),u=void 0;},n$1.__c=function(t,u){u.some(function(t){try{t.__h.forEach(g$1),t.__h=t.__h.filter(function(n){return !n.__||j$1(n)});}catch(r){u.some(function(n){n.__h&&(n.__h=[]);}),u=[],n$1.__e(r,t.__v);}}),a$1&&a$1(t,u);},n$1.unmount=function(t){v&&v(t);var u=t.__c;if(u&&u.__H)try{u.__H.__.forEach(g$1);}catch(t){n$1.__e(t,u.__v);}};var b="function"==typeof requestAnimationFrame;function g$1(n){var t=u;"function"==typeof n.__c&&n.__c(),u=t;}function j$1(n){var t=u;n.__c=n.__(),u=t;}function k$1(n,t){return !n||n.length!==t.length||t.some(function(t,u){return t!==n[u]})}function w$1(n,t){return "function"==typeof t?t(n):t}
|
|
67822
67746
|
|
|
67823
|
-
var
|
|
67824
|
-
var classnames$1 = {
|
|
67825
|
-
get exports(){ return classnamesExports; },
|
|
67826
|
-
set exports(v){ classnamesExports = v; },
|
|
67827
|
-
};
|
|
67747
|
+
var classnames$1 = {exports: {}};
|
|
67828
67748
|
|
|
67829
67749
|
/*!
|
|
67830
67750
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -67879,10 +67799,11 @@
|
|
|
67879
67799
|
} else {
|
|
67880
67800
|
window.classNames = classNames;
|
|
67881
67801
|
}
|
|
67882
|
-
}());
|
|
67802
|
+
}());
|
|
67883
67803
|
} (classnames$1));
|
|
67884
67804
|
|
|
67885
|
-
var
|
|
67805
|
+
var classnamesExports = classnames$1.exports;
|
|
67806
|
+
var classnames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
67886
67807
|
|
|
67887
67808
|
function C$1(n,t){for(var e in t)n[e]=t[e];return n}function S(n,t){for(var e in n)if("__source"!==e&&!(e in t))return !0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return !0;return !1}function E(n){this.props=n;}function g(n,t){function e(n){var e=this.props.ref,r=e==n.ref;return !r&&e&&(e.call?e(null):e.current=null),t?!t(this.props,n)||!r:S(this.props,n)}function r(t){return this.shouldComponentUpdate=e,a$2(n,t)}return r.displayName="Memo("+(n.displayName||n.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(E.prototype=new p$2).isPureReactComponent=!0,E.prototype.shouldComponentUpdate=function(n,t){return S(this.props,n)||S(this.state,t)};var w=n$1.__b;n$1.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),w&&w(n);};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function x(n){function t(t,e){var r=C$1({},t);return delete r.ref,n(r,(e=t.ref||e)&&("object"!=typeof e||"current"in e)?e:null)}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var N=function(n,t){return null==n?null:w$2(w$2(n).map(t))},k={map:N,forEach:N,count:function(n){return n?w$2(n).length:0},only:function(n){var t=w$2(n);if(1!==t.length)throw "Children.only";return t[0]},toArray:w$2},A=n$1.__e;n$1.__e=function(n,t,e){if(n.then)for(var r,u=t;u=u.__;)if((r=u.__c)&&r.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),r.__c(n,t);A(n,t,e);};var O=n$1.unmount;function L(){this.__u=0,this.t=null,this.__b=null;}function U(n){var t=n.__.__c;return t&&t.__e&&t.__e(n)}function D(n){var t,e,r;function u(u){if(t||(t=n()).then(function(n){e=n.default||n;},function(n){r=n;}),r)throw r;if(!e)throw t;return a$2(e,u)}return u.displayName="Lazy",u.__f=!0,u}function F(){this.u=null,this.o=null;}n$1.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),O&&O(n);},(L.prototype=new p$2).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=U(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l());};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__e){var n=r.state.__e;r.__v.__k[0]=function n(t,e,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(n,n.__c.__P,n.__c.__O);}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate();}},f=!0===t.__h;r.__u++||f||r.setState({__e:r.__b=r.__v.__k[0]}),n.then(i,i);},L.prototype.componentWillUnmount=function(){this.t=[];},L.prototype.render=function(n,t){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function n(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),t.__c.__H=null),null!=(t=C$1({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return n(t,e,r)})),t}(this.__b,e,r.__O=r.__P);}this.__b=null;}var u=t.__e&&a$2(y$1,null,n.fallback);return u&&(u.__h=null),[a$2(y$1,null,t.__e?null:n.children),u]};var M=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2];}};function T(n){return this.getChildContext=function(){return n.context},n.children}function j(n){var t=this,e=n.i;t.componentWillUnmount=function(){N$1(null,t.l),t.l=null,t.i=null;},t.i&&t.i!==e&&t.componentWillUnmount(),n.__v?(t.l||(t.i=e,t.l={nodeType:1,parentNode:e,childNodes:[],appendChild:function(n){this.childNodes.push(n),t.i.appendChild(n);},insertBefore:function(n,e){this.childNodes.push(n),t.i.appendChild(n);},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.i.removeChild(n);}}),N$1(a$2(T,{context:t.context},n.__v),t.l)):t.l&&t.componentWillUnmount();}function I(n,t){return a$2(j,{__v:n,i:t})}(F.prototype=new p$2).__e=function(n){var t=this,e=U(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),M(t,n,r)):u();};e?e(o):o();}},F.prototype.render=function(n){this.u=null,this.o=new Map;var t=w$2(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},F.prototype.componentDidUpdate=F.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){M(n,e,t);});};var W="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,P=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,V=function(n){return ("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(n)};function z(n,t,e){return null==t.__k&&(t.textContent=""),N$1(n,t),"function"==typeof e&&e(),n?n.__c:null}function B(n,t,e){return O$1(n,t),"function"==typeof e&&e(),n?n.__c:null}p$2.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(p$2.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(t){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:t});}});});var H=n$1.event;function Z(){}function Y(){return this.cancelBubble}function $(){return this.defaultPrevented}n$1.event=function(n){return H&&(n=H(n)),n.persist=Z,n.isPropagationStopped=Y,n.isDefaultPrevented=$,n.nativeEvent=n};var q,G={configurable:!0,get:function(){return this.class}},J=n$1.vnode;n$1.vnode=function(n){var t=n.type,e=n.props,r=e;if("string"==typeof t){for(var u in r={},e){var o=e[u];"value"===u&&"defaultValue"in e&&null==o||("defaultValue"===u&&"value"in e&&null==e.value?u="value":"download"===u&&!0===o?o="":/ondoubleclick/i.test(u)?u="ondblclick":/^onchange(textarea|input)/i.test(u+t)&&!V(e.type)?u="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(u)?u=u.toLowerCase():P.test(u)?u=u.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),r[u]=o);}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=w$2(e.children).forEach(function(n){n.props.selected=-1!=r.value.indexOf(n.props.value);})),"select"==t&&null!=r.defaultValue&&(r.value=w$2(e.children).forEach(function(n){n.props.selected=r.multiple?-1!=r.defaultValue.indexOf(n.props.value):r.defaultValue==n.props.value;})),n.props=r;}t&&e.class!=e.className&&(G.enumerable="className"in e,null!=e.className&&(r.class=e.className),Object.defineProperty(r,"className",G)),n.$$typeof=W,J&&J(n);};var K=n$1.__r;n$1.__r=function(n){K&&K(n),q=n.__c;};var Q={ReactCurrentDispatcher:{current:{readContext:function(n){return q.__n[n.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):function(){return Date.now()};function fn(n){return a$2.bind(null,n)}function cn(n){return !!n&&n.$$typeof===W}function an(n){return cn(n)?S$1.apply(null,arguments):n}function sn(n){return !!n.__k&&(N$1(null,n),!0)}function hn(n){return n&&(n.base||1===n.nodeType&&n)||null}var pn=function(n,t){return n(t)};var React = {useState:l$1,useReducer:p$1,useEffect:y,useLayoutEffect:h,useRef:s,useImperativeHandle:_,useMemo:d,useCallback:A$1,useContext:F$1,useDebugValue:T$1,version:"16.8.0",Children:k,render:z,hydrate:B,unmountComponentAtNode:sn,createPortal:I,createElement:a$2,createContext:q$1,createFactory:fn,cloneElement:an,createRef:h$1,Fragment:y$1,isValidElement:cn,findDOMNode:hn,Component:p$2,PureComponent:E,memo:g,forwardRef:x,unstable_batchedUpdates:pn,StrictMode:y$1,Suspense:L,SuspenseList:F,lazy:D,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Q};
|
|
67888
67809
|
|
|
@@ -97437,11 +97358,7 @@
|
|
|
97437
97358
|
zeebe.getVariablesForElement = getVariablesForElement;
|
|
97438
97359
|
zeebe.getVariablesForScope = getVariablesForScope$1;
|
|
97439
97360
|
|
|
97440
|
-
var
|
|
97441
|
-
var arrayMove$1 = {
|
|
97442
|
-
get exports(){ return arrayMoveExports; },
|
|
97443
|
-
set exports(v){ arrayMoveExports = v; },
|
|
97444
|
-
};
|
|
97361
|
+
var arrayMove$1 = {exports: {}};
|
|
97445
97362
|
|
|
97446
97363
|
const arrayMoveMutate = (array, from, to) => {
|
|
97447
97364
|
const startIndex = from < 0 ? array.length + from : from;
|
|
@@ -97461,7 +97378,7 @@
|
|
|
97461
97378
|
};
|
|
97462
97379
|
|
|
97463
97380
|
arrayMove$1.exports = arrayMove;
|
|
97464
|
-
|
|
97381
|
+
arrayMove$1.exports.mutate = arrayMoveMutate;
|
|
97465
97382
|
|
|
97466
97383
|
var dist = {};
|
|
97467
97384
|
|
|
@@ -99887,7 +99804,7 @@
|
|
|
99887
99804
|
eventBus.fire('propertiesPanel.layoutChanged', {
|
|
99888
99805
|
layout: newLayout
|
|
99889
99806
|
});
|
|
99890
|
-
}, [eventBus
|
|
99807
|
+
}, [eventBus]);
|
|
99891
99808
|
|
|
99892
99809
|
// React to external layout changes
|
|
99893
99810
|
y(() => {
|
|
@@ -100214,17 +100131,17 @@
|
|
|
100214
100131
|
function getLinkEventDefinition(element) {
|
|
100215
100132
|
return getEventDefinition$1(element, 'bpmn:LinkEventDefinition');
|
|
100216
100133
|
}
|
|
100217
|
-
function getSignalEventDefinition(element) {
|
|
100134
|
+
function getSignalEventDefinition$1(element) {
|
|
100218
100135
|
return getEventDefinition$1(element, 'bpmn:SignalEventDefinition');
|
|
100219
100136
|
}
|
|
100220
100137
|
function isLinkSupported(element) {
|
|
100221
100138
|
return isAny(element, ['bpmn:IntermediateThrowEvent', 'bpmn:IntermediateCatchEvent']) && !!getLinkEventDefinition(element);
|
|
100222
100139
|
}
|
|
100223
|
-
function isSignalSupported(element) {
|
|
100224
|
-
return is$5(element, 'bpmn:Event') && !!getSignalEventDefinition(element);
|
|
100140
|
+
function isSignalSupported$1(element) {
|
|
100141
|
+
return is$5(element, 'bpmn:Event') && !!getSignalEventDefinition$1(element);
|
|
100225
100142
|
}
|
|
100226
|
-
function getSignal(element) {
|
|
100227
|
-
const signalEventDefinition = getSignalEventDefinition(element);
|
|
100143
|
+
function getSignal$1(element) {
|
|
100144
|
+
const signalEventDefinition = getSignalEventDefinition$1(element);
|
|
100228
100145
|
return signalEventDefinition && signalEventDefinition.get('signalRef');
|
|
100229
100146
|
}
|
|
100230
100147
|
function getEscalationEventDefinition(element) {
|
|
@@ -101777,24 +101694,24 @@
|
|
|
101777
101694
|
return is$5(element, 'bpmn:Participant') && element.businessObject.get('processRef');
|
|
101778
101695
|
}
|
|
101779
101696
|
|
|
101780
|
-
const EMPTY_OPTION$3 = '';
|
|
101781
|
-
const CREATE_NEW_OPTION$2 = 'create-new';
|
|
101782
|
-
|
|
101783
101697
|
/**
|
|
101784
101698
|
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
101785
101699
|
*/
|
|
101786
101700
|
|
|
101701
|
+
const EMPTY_OPTION$3 = '';
|
|
101702
|
+
const CREATE_NEW_OPTION$2 = 'create-new';
|
|
101703
|
+
|
|
101787
101704
|
/**
|
|
101788
|
-
* @returns {
|
|
101705
|
+
* @returns {Entry[]}
|
|
101789
101706
|
*/
|
|
101790
|
-
function SignalProps(props) {
|
|
101707
|
+
function SignalProps$1(props) {
|
|
101791
101708
|
const {
|
|
101792
101709
|
element
|
|
101793
101710
|
} = props;
|
|
101794
|
-
if (!isSignalSupported(element)) {
|
|
101711
|
+
if (!isSignalSupported$1(element)) {
|
|
101795
101712
|
return [];
|
|
101796
101713
|
}
|
|
101797
|
-
const signal = getSignal(element);
|
|
101714
|
+
const signal = getSignal$1(element);
|
|
101798
101715
|
let entries = [{
|
|
101799
101716
|
id: 'signalRef',
|
|
101800
101717
|
component: SignalRef,
|
|
@@ -101803,7 +101720,7 @@
|
|
|
101803
101720
|
if (signal) {
|
|
101804
101721
|
entries = [...entries, {
|
|
101805
101722
|
id: 'signalName',
|
|
101806
|
-
component: SignalName,
|
|
101723
|
+
component: SignalName$1,
|
|
101807
101724
|
isEdited: isEdited$1
|
|
101808
101725
|
}];
|
|
101809
101726
|
}
|
|
@@ -101816,9 +101733,9 @@
|
|
|
101816
101733
|
const bpmnFactory = useService('bpmnFactory');
|
|
101817
101734
|
const commandStack = useService('commandStack');
|
|
101818
101735
|
const translate = useService('translate');
|
|
101819
|
-
const signalEventDefinition = getSignalEventDefinition(element);
|
|
101736
|
+
const signalEventDefinition = getSignalEventDefinition$1(element);
|
|
101820
101737
|
const getValue = () => {
|
|
101821
|
-
const signal = getSignal(element);
|
|
101738
|
+
const signal = getSignal$1(element);
|
|
101822
101739
|
if (signal) {
|
|
101823
101740
|
return signal.get('id');
|
|
101824
101741
|
}
|
|
@@ -101892,14 +101809,14 @@
|
|
|
101892
101809
|
getOptions
|
|
101893
101810
|
});
|
|
101894
101811
|
}
|
|
101895
|
-
function SignalName(props) {
|
|
101812
|
+
function SignalName$1(props) {
|
|
101896
101813
|
const {
|
|
101897
101814
|
element
|
|
101898
101815
|
} = props;
|
|
101899
101816
|
const commandStack = useService('commandStack');
|
|
101900
101817
|
const translate = useService('translate');
|
|
101901
101818
|
const debounce = useService('debounceInput');
|
|
101902
|
-
const signal = getSignal(element);
|
|
101819
|
+
const signal = getSignal$1(element);
|
|
101903
101820
|
const getValue = () => {
|
|
101904
101821
|
return signal.get('name');
|
|
101905
101822
|
};
|
|
@@ -102277,7 +102194,7 @@
|
|
|
102277
102194
|
id: 'signal',
|
|
102278
102195
|
label: translate('Signal'),
|
|
102279
102196
|
component: Group,
|
|
102280
|
-
entries: [...SignalProps({
|
|
102197
|
+
entries: [...SignalProps$1({
|
|
102281
102198
|
element
|
|
102282
102199
|
})]
|
|
102283
102200
|
};
|
|
@@ -103353,7 +103270,11 @@
|
|
|
103353
103270
|
}
|
|
103354
103271
|
|
|
103355
103272
|
function unlinkTemplate$1(element, injector) {
|
|
103356
|
-
const modeling = injector.get('modeling')
|
|
103273
|
+
const modeling = injector.get('modeling'),
|
|
103274
|
+
eventBus = injector.get('eventBus');
|
|
103275
|
+
eventBus.fire('elementTemplates.unlink', {
|
|
103276
|
+
element
|
|
103277
|
+
});
|
|
103357
103278
|
modeling.updateProperties(element, {
|
|
103358
103279
|
'camunda:modelerTemplate': null,
|
|
103359
103280
|
'camunda:modelerTemplateVersion': null
|
|
@@ -103361,7 +103282,11 @@
|
|
|
103361
103282
|
}
|
|
103362
103283
|
|
|
103363
103284
|
function unlinkTemplate(element, injector) {
|
|
103364
|
-
const modeling = injector.get('modeling')
|
|
103285
|
+
const modeling = injector.get('modeling'),
|
|
103286
|
+
eventBus = injector.get('eventBus');
|
|
103287
|
+
eventBus.fire('elementTemplates.unlink', {
|
|
103288
|
+
element
|
|
103289
|
+
});
|
|
103365
103290
|
|
|
103366
103291
|
// remove template attributes
|
|
103367
103292
|
modeling.updateProperties(element, {
|
|
@@ -103746,7 +103671,7 @@
|
|
|
103746
103671
|
}
|
|
103747
103672
|
|
|
103748
103673
|
/**
|
|
103749
|
-
*
|
|
103674
|
+
* Unlink referenced element when template is unlinked.
|
|
103750
103675
|
*/
|
|
103751
103676
|
_handlePropertiesUpdate(context) {
|
|
103752
103677
|
const {
|
|
@@ -103762,11 +103687,9 @@
|
|
|
103762
103687
|
const bo = getBusinessObject$1(element);
|
|
103763
103688
|
const message = findMessage(bo);
|
|
103764
103689
|
if (message && getTemplateId$1(message)) {
|
|
103765
|
-
|
|
103766
|
-
|
|
103767
|
-
'messageRef': undefined
|
|
103690
|
+
this._modeling.updateModdleProperties(element, message, {
|
|
103691
|
+
[TEMPLATE_ID_ATTR$1]: null
|
|
103768
103692
|
});
|
|
103769
|
-
this._removeRootElement(message);
|
|
103770
103693
|
}
|
|
103771
103694
|
}
|
|
103772
103695
|
|