camunda-bpmn-js 2.1.0 → 2.1.1
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.
|
@@ -747,7 +747,7 @@
|
|
|
747
747
|
*
|
|
748
748
|
* @return {Object} the target
|
|
749
749
|
*/
|
|
750
|
-
function assign$
|
|
750
|
+
function assign$2(target, ...others) {
|
|
751
751
|
return Object.assign(target, ...others);
|
|
752
752
|
}
|
|
753
753
|
|
|
@@ -926,7 +926,7 @@
|
|
|
926
926
|
|
|
927
927
|
var index_esm = /*#__PURE__*/Object.freeze({
|
|
928
928
|
__proto__: null,
|
|
929
|
-
assign: assign$
|
|
929
|
+
assign: assign$2,
|
|
930
930
|
bind: bind$2,
|
|
931
931
|
debounce: debounce,
|
|
932
932
|
ensureArray: ensureArray,
|
|
@@ -1063,7 +1063,7 @@
|
|
|
1063
1063
|
*
|
|
1064
1064
|
* @return {Element} the element
|
|
1065
1065
|
*/
|
|
1066
|
-
function assign(element, ...styleSources) {
|
|
1066
|
+
function assign$1(element, ...styleSources) {
|
|
1067
1067
|
const target = element.style;
|
|
1068
1068
|
|
|
1069
1069
|
forEach$1(styleSources, function(style) {
|
|
@@ -1512,7 +1512,7 @@
|
|
|
1512
1512
|
|
|
1513
1513
|
var domify$1 = domify;
|
|
1514
1514
|
|
|
1515
|
-
function query(selector, el) {
|
|
1515
|
+
function query$1(selector, el) {
|
|
1516
1516
|
el = el || document;
|
|
1517
1517
|
|
|
1518
1518
|
return el.querySelector(selector);
|
|
@@ -3243,7 +3243,7 @@
|
|
|
3243
3243
|
// helpers ///////////////////////////////
|
|
3244
3244
|
|
|
3245
3245
|
function copyObject(src1, src2) {
|
|
3246
|
-
return assign$
|
|
3246
|
+
return assign$2({}, src1 || {}, src2 || {});
|
|
3247
3247
|
}
|
|
3248
3248
|
|
|
3249
3249
|
/**
|
|
@@ -3289,9 +3289,9 @@
|
|
|
3289
3289
|
});
|
|
3290
3290
|
|
|
3291
3291
|
if (isFrameElement$1(element)) {
|
|
3292
|
-
attr(rect, assign$
|
|
3292
|
+
attr(rect, assign$2({}, this.FRAME_STYLE, attrs || {}));
|
|
3293
3293
|
} else {
|
|
3294
|
-
attr(rect, assign$
|
|
3294
|
+
attr(rect, assign$2({}, this.SHAPE_STYLE, attrs || {}));
|
|
3295
3295
|
}
|
|
3296
3296
|
|
|
3297
3297
|
append(visuals, rect);
|
|
@@ -3301,7 +3301,7 @@
|
|
|
3301
3301
|
|
|
3302
3302
|
DefaultRenderer.prototype.drawConnection = function drawConnection(visuals, connection, attrs) {
|
|
3303
3303
|
|
|
3304
|
-
var line = createLine(connection.waypoints, assign$
|
|
3304
|
+
var line = createLine(connection.waypoints, assign$2({}, this.CONNECTION_STYLE, attrs || {}));
|
|
3305
3305
|
append(visuals, line);
|
|
3306
3306
|
|
|
3307
3307
|
return line;
|
|
@@ -3377,7 +3377,7 @@
|
|
|
3377
3377
|
this.cls = function(className, traits, additionalAttrs) {
|
|
3378
3378
|
var attrs = this.style(traits, additionalAttrs);
|
|
3379
3379
|
|
|
3380
|
-
return assign$
|
|
3380
|
+
return assign$2(attrs, { 'class': className });
|
|
3381
3381
|
};
|
|
3382
3382
|
|
|
3383
3383
|
/**
|
|
@@ -3396,10 +3396,10 @@
|
|
|
3396
3396
|
}
|
|
3397
3397
|
|
|
3398
3398
|
var attrs = reduce(traits, function(attrs, t) {
|
|
3399
|
-
return assign$
|
|
3399
|
+
return assign$2(attrs, defaultTraits[t] || {});
|
|
3400
3400
|
}, {});
|
|
3401
3401
|
|
|
3402
|
-
return additionalAttrs ? assign$
|
|
3402
|
+
return additionalAttrs ? assign$2(attrs, additionalAttrs) : attrs;
|
|
3403
3403
|
};
|
|
3404
3404
|
|
|
3405
3405
|
this.computeStyle = function(custom, traits, defaultStyles) {
|
|
@@ -3408,7 +3408,7 @@
|
|
|
3408
3408
|
traits = [];
|
|
3409
3409
|
}
|
|
3410
3410
|
|
|
3411
|
-
return self.style(traits || [], assign$
|
|
3411
|
+
return self.style(traits || [], assign$2({}, defaultStyles, custom || {}));
|
|
3412
3412
|
};
|
|
3413
3413
|
}
|
|
3414
3414
|
|
|
@@ -4936,7 +4936,7 @@
|
|
|
4936
4936
|
*/
|
|
4937
4937
|
function createContainer(options) {
|
|
4938
4938
|
|
|
4939
|
-
options = assign$
|
|
4939
|
+
options = assign$2({}, { width: '100%', height: '100%' }, options);
|
|
4940
4940
|
|
|
4941
4941
|
const container = options.container || document.body;
|
|
4942
4942
|
|
|
@@ -4946,7 +4946,7 @@
|
|
|
4946
4946
|
const parent = document.createElement('div');
|
|
4947
4947
|
parent.setAttribute('class', 'djs-container djs-parent');
|
|
4948
4948
|
|
|
4949
|
-
assign(parent, {
|
|
4949
|
+
assign$1(parent, {
|
|
4950
4950
|
position: 'relative',
|
|
4951
4951
|
overflow: 'hidden',
|
|
4952
4952
|
width: ensurePx(options.width),
|
|
@@ -6054,7 +6054,7 @@
|
|
|
6054
6054
|
|
|
6055
6055
|
if (delta) {
|
|
6056
6056
|
this._changeViewbox(function() {
|
|
6057
|
-
delta = assign$
|
|
6057
|
+
delta = assign$2({ dx: 0, dy: 0 }, delta || {});
|
|
6058
6058
|
|
|
6059
6059
|
matrix = this._svg.createSVGMatrix().translate(delta.dx, delta.dy).multiply(matrix);
|
|
6060
6060
|
|
|
@@ -6248,7 +6248,7 @@
|
|
|
6248
6248
|
const currentScale = currentMatrix.a;
|
|
6249
6249
|
|
|
6250
6250
|
if (center) {
|
|
6251
|
-
centerPoint = assign$
|
|
6251
|
+
centerPoint = assign$2(point, center);
|
|
6252
6252
|
|
|
6253
6253
|
// revert applied viewport transformations
|
|
6254
6254
|
originalPoint = centerPoint.matrixTransform(currentMatrix.inverse());
|
|
@@ -7173,7 +7173,7 @@
|
|
|
7173
7173
|
if (!Type) {
|
|
7174
7174
|
throw new Error('unknown type: <' + type + '>');
|
|
7175
7175
|
}
|
|
7176
|
-
return assign$
|
|
7176
|
+
return assign$2(new Type(), attrs);
|
|
7177
7177
|
}
|
|
7178
7178
|
|
|
7179
7179
|
/**
|
|
@@ -7252,7 +7252,7 @@
|
|
|
7252
7252
|
*/
|
|
7253
7253
|
ElementFactory$1.prototype.create = function(type, attrs) {
|
|
7254
7254
|
|
|
7255
|
-
attrs = assign$
|
|
7255
|
+
attrs = assign$2({}, attrs || {});
|
|
7256
7256
|
|
|
7257
7257
|
if (!attrs.id) {
|
|
7258
7258
|
attrs.id = type + '_' + (this._uid++);
|
|
@@ -7773,7 +7773,7 @@
|
|
|
7773
7773
|
};
|
|
7774
7774
|
|
|
7775
7775
|
InternalEvent.prototype.init = function(data) {
|
|
7776
|
-
assign$
|
|
7776
|
+
assign$2(this, data || {});
|
|
7777
7777
|
};
|
|
7778
7778
|
|
|
7779
7779
|
|
|
@@ -8666,7 +8666,7 @@
|
|
|
8666
8666
|
forEach$2(t.properties, bind$2(function(p) {
|
|
8667
8667
|
|
|
8668
8668
|
// clone property to allow extensions
|
|
8669
|
-
p = assign$
|
|
8669
|
+
p = assign$2({}, p, {
|
|
8670
8670
|
name: p.ns.localName,
|
|
8671
8671
|
inherited: inherited
|
|
8672
8672
|
});
|
|
@@ -8726,7 +8726,7 @@
|
|
|
8726
8726
|
Registry.prototype.registerPackage = function(pkg) {
|
|
8727
8727
|
|
|
8728
8728
|
// copy package
|
|
8729
|
-
pkg = assign$
|
|
8729
|
+
pkg = assign$2({}, pkg);
|
|
8730
8730
|
|
|
8731
8731
|
var pkgMap = this.packageMap;
|
|
8732
8732
|
|
|
@@ -8748,11 +8748,11 @@
|
|
|
8748
8748
|
*/
|
|
8749
8749
|
Registry.prototype.registerType = function(type, pkg) {
|
|
8750
8750
|
|
|
8751
|
-
type = assign$
|
|
8751
|
+
type = assign$2({}, type, {
|
|
8752
8752
|
superClass: (type.superClass || []).slice(),
|
|
8753
8753
|
extends: (type.extends || []).slice(),
|
|
8754
8754
|
properties: (type.properties || []).slice(),
|
|
8755
|
-
meta: assign$
|
|
8755
|
+
meta: assign$2((type.meta || {}))
|
|
8756
8756
|
});
|
|
8757
8757
|
|
|
8758
8758
|
var ns = parseName$2(type.name, pkg.prefix),
|
|
@@ -8771,7 +8771,7 @@
|
|
|
8771
8771
|
p.type = parseName$2(p.type, propertyNs.prefix).name;
|
|
8772
8772
|
}
|
|
8773
8773
|
|
|
8774
|
-
assign$
|
|
8774
|
+
assign$2(p, {
|
|
8775
8775
|
ns: propertyNs,
|
|
8776
8776
|
name: propertyName
|
|
8777
8777
|
});
|
|
@@ -8780,7 +8780,7 @@
|
|
|
8780
8780
|
}, this));
|
|
8781
8781
|
|
|
8782
8782
|
// update ns + name
|
|
8783
|
-
assign$
|
|
8783
|
+
assign$2(type, {
|
|
8784
8784
|
ns: ns,
|
|
8785
8785
|
name: name,
|
|
8786
8786
|
propertiesByName: propertiesByName
|
|
@@ -8987,7 +8987,7 @@
|
|
|
8987
8987
|
|
|
8988
8988
|
// use getters for read-only variables to support ES6 proxies
|
|
8989
8989
|
// cf. https://github.com/bpmn-io/internal-docs/issues/386
|
|
8990
|
-
options = assign$
|
|
8990
|
+
options = assign$2({}, options, {
|
|
8991
8991
|
get: function() { return value; }
|
|
8992
8992
|
});
|
|
8993
8993
|
|
|
@@ -10409,7 +10409,7 @@
|
|
|
10409
10409
|
* @property {Boolean} lax
|
|
10410
10410
|
*/
|
|
10411
10411
|
|
|
10412
|
-
assign$
|
|
10412
|
+
assign$2(this, options);
|
|
10413
10413
|
|
|
10414
10414
|
this.elementsById = {};
|
|
10415
10415
|
this.references = [];
|
|
@@ -10715,7 +10715,7 @@
|
|
|
10715
10715
|
|
|
10716
10716
|
elementType = model.getType(elementTypeName);
|
|
10717
10717
|
|
|
10718
|
-
return assign$
|
|
10718
|
+
return assign$2({}, property, {
|
|
10719
10719
|
effectiveType: getModdleDescriptor(elementType).name
|
|
10720
10720
|
});
|
|
10721
10721
|
}
|
|
@@ -10737,7 +10737,7 @@
|
|
|
10737
10737
|
});
|
|
10738
10738
|
|
|
10739
10739
|
if (property) {
|
|
10740
|
-
return assign$
|
|
10740
|
+
return assign$2({}, property, {
|
|
10741
10741
|
effectiveType: getModdleDescriptor(elementType).name
|
|
10742
10742
|
});
|
|
10743
10743
|
}
|
|
@@ -10812,7 +10812,7 @@
|
|
|
10812
10812
|
}
|
|
10813
10813
|
|
|
10814
10814
|
if (propertyDesc.isReference) {
|
|
10815
|
-
assign$
|
|
10815
|
+
assign$2(newElement, {
|
|
10816
10816
|
element: element
|
|
10817
10817
|
});
|
|
10818
10818
|
|
|
@@ -10921,7 +10921,7 @@
|
|
|
10921
10921
|
};
|
|
10922
10922
|
}
|
|
10923
10923
|
|
|
10924
|
-
assign$
|
|
10924
|
+
assign$2(this, { lax: false }, options);
|
|
10925
10925
|
}
|
|
10926
10926
|
|
|
10927
10927
|
/**
|
|
@@ -10976,7 +10976,7 @@
|
|
|
10976
10976
|
var model = this.model,
|
|
10977
10977
|
lax = this.lax;
|
|
10978
10978
|
|
|
10979
|
-
var context = new Context$2(assign$
|
|
10979
|
+
var context = new Context$2(assign$2({}, options, { rootHandler: rootHandler })),
|
|
10980
10980
|
parser = new Parser$1({ proxy: true }),
|
|
10981
10981
|
stack = createStack();
|
|
10982
10982
|
|
|
@@ -11371,14 +11371,14 @@
|
|
|
11371
11371
|
|
|
11372
11372
|
function getElementNs(ns, descriptor) {
|
|
11373
11373
|
if (descriptor.isGeneric) {
|
|
11374
|
-
return assign$
|
|
11374
|
+
return assign$2({ localName: descriptor.ns.localName }, ns);
|
|
11375
11375
|
} else {
|
|
11376
|
-
return assign$
|
|
11376
|
+
return assign$2({ localName: nameToAlias(descriptor.ns.localName, descriptor.$pkg) }, ns);
|
|
11377
11377
|
}
|
|
11378
11378
|
}
|
|
11379
11379
|
|
|
11380
11380
|
function getPropertyNs(ns, descriptor) {
|
|
11381
|
-
return assign$
|
|
11381
|
+
return assign$2({ localName: descriptor.ns.localName }, ns);
|
|
11382
11382
|
}
|
|
11383
11383
|
|
|
11384
11384
|
function getSerializableProperties(element) {
|
|
@@ -11610,7 +11610,7 @@
|
|
|
11610
11610
|
if (this.isLocalNs(effectiveNs)) {
|
|
11611
11611
|
return { localName: ns.localName };
|
|
11612
11612
|
} else {
|
|
11613
|
-
return assign$
|
|
11613
|
+
return assign$2({ localName: ns.localName }, effectiveNs);
|
|
11614
11614
|
}
|
|
11615
11615
|
};
|
|
11616
11616
|
|
|
@@ -12082,7 +12082,7 @@
|
|
|
12082
12082
|
*/
|
|
12083
12083
|
function Writer(options) {
|
|
12084
12084
|
|
|
12085
|
-
options = assign$
|
|
12085
|
+
options = assign$2({ format: false, preamble: true }, options || {});
|
|
12086
12086
|
|
|
12087
12087
|
function toXML(tree, writer) {
|
|
12088
12088
|
var internalWriter = writer || new SavingWriter();
|
|
@@ -12154,7 +12154,7 @@
|
|
|
12154
12154
|
typeName = 'bpmn:Definitions';
|
|
12155
12155
|
}
|
|
12156
12156
|
|
|
12157
|
-
var reader = new Reader(assign$
|
|
12157
|
+
var reader = new Reader(assign$2({ model: this, lax: true }, options));
|
|
12158
12158
|
var rootHandler = reader.handler(typeName);
|
|
12159
12159
|
|
|
12160
12160
|
return reader.fromXML(xmlStr, rootHandler);
|
|
@@ -15841,7 +15841,7 @@
|
|
|
15841
15841
|
};
|
|
15842
15842
|
|
|
15843
15843
|
function simple(additionalPackages, options) {
|
|
15844
|
-
var pks = assign$
|
|
15844
|
+
var pks = assign$2({}, packages, additionalPackages);
|
|
15845
15845
|
|
|
15846
15846
|
return new BpmnModdle(pks, options);
|
|
15847
15847
|
}
|
|
@@ -16708,11 +16708,11 @@
|
|
|
16708
16708
|
function createLightbox() {
|
|
16709
16709
|
lightbox = domify$1(LIGHTBOX_MARKUP);
|
|
16710
16710
|
|
|
16711
|
-
assign(lightbox, LIGHTBOX_STYLES);
|
|
16712
|
-
assign(query('svg', lightbox), LOGO_STYLES);
|
|
16713
|
-
assign(query('.backdrop', lightbox), BACKDROP_STYLES);
|
|
16714
|
-
assign(query('.notice', lightbox), NOTICE_STYLES);
|
|
16715
|
-
assign(query('.link', lightbox), LINK_STYLES, {
|
|
16711
|
+
assign$1(lightbox, LIGHTBOX_STYLES);
|
|
16712
|
+
assign$1(query$1('svg', lightbox), LOGO_STYLES);
|
|
16713
|
+
assign$1(query$1('.backdrop', lightbox), BACKDROP_STYLES);
|
|
16714
|
+
assign$1(query$1('.notice', lightbox), NOTICE_STYLES);
|
|
16715
|
+
assign$1(query$1('.link', lightbox), LINK_STYLES, {
|
|
16716
16716
|
'margin': '15px 20px 15px 10px',
|
|
16717
16717
|
'alignSelf': 'center'
|
|
16718
16718
|
});
|
|
@@ -16769,7 +16769,7 @@
|
|
|
16769
16769
|
/**
|
|
16770
16770
|
* @type {BaseModelerOptions}
|
|
16771
16771
|
*/
|
|
16772
|
-
options = assign$
|
|
16772
|
+
options = assign$2({}, DEFAULT_OPTIONS$1, options);
|
|
16773
16773
|
|
|
16774
16774
|
this._moddle = this._createModdle(options);
|
|
16775
16775
|
|
|
@@ -17129,7 +17129,7 @@
|
|
|
17129
17129
|
const canvas = this.get('canvas');
|
|
17130
17130
|
|
|
17131
17131
|
const contentNode = canvas.getActiveLayer(),
|
|
17132
|
-
defsNode = query('defs', canvas._svg);
|
|
17132
|
+
defsNode = query$1('defs', canvas._svg);
|
|
17133
17133
|
|
|
17134
17134
|
const contents = innerSVG(contentNode),
|
|
17135
17135
|
defs = defsNode ? '<defs>' + innerSVG(defsNode) + '</defs>' : '';
|
|
@@ -17289,7 +17289,7 @@
|
|
|
17289
17289
|
}
|
|
17290
17290
|
|
|
17291
17291
|
if (typeof parentNode === 'string') {
|
|
17292
|
-
parentNode = query(parentNode);
|
|
17292
|
+
parentNode = query$1(parentNode);
|
|
17293
17293
|
}
|
|
17294
17294
|
|
|
17295
17295
|
parentNode.appendChild(this._container);
|
|
@@ -17346,8 +17346,8 @@
|
|
|
17346
17346
|
|
|
17347
17347
|
const diagramModules = [].concat(staticModules, baseModules, additionalModules);
|
|
17348
17348
|
|
|
17349
|
-
const diagramOptions = assign$
|
|
17350
|
-
canvas: assign$
|
|
17349
|
+
const diagramOptions = assign$2(omit(options, [ 'additionalModules' ]), {
|
|
17350
|
+
canvas: assign$2({}, options.canvas, { container: container }),
|
|
17351
17351
|
modules: diagramModules
|
|
17352
17352
|
});
|
|
17353
17353
|
|
|
@@ -17375,7 +17375,7 @@
|
|
|
17375
17375
|
|
|
17376
17376
|
const container = domify$1('<div class="bjs-container"></div>');
|
|
17377
17377
|
|
|
17378
|
-
assign(container, {
|
|
17378
|
+
assign$1(container, {
|
|
17379
17379
|
width: ensureUnit(options.width),
|
|
17380
17380
|
height: ensureUnit(options.height),
|
|
17381
17381
|
position: options.position
|
|
@@ -17385,7 +17385,7 @@
|
|
|
17385
17385
|
};
|
|
17386
17386
|
|
|
17387
17387
|
BaseViewer.prototype._createModdle = function(options) {
|
|
17388
|
-
const moddleOptions = assign$
|
|
17388
|
+
const moddleOptions = assign$2({}, this._moddleExtensions, options.moddleExtensions);
|
|
17389
17389
|
|
|
17390
17390
|
return new simple(moddleOptions);
|
|
17391
17391
|
};
|
|
@@ -17471,8 +17471,8 @@
|
|
|
17471
17471
|
|
|
17472
17472
|
const linkElement = domify$1(linkMarkup);
|
|
17473
17473
|
|
|
17474
|
-
assign(query('svg', linkElement), LOGO_STYLES);
|
|
17475
|
-
assign(linkElement, LINK_STYLES, {
|
|
17474
|
+
assign$1(query$1('svg', linkElement), LOGO_STYLES);
|
|
17475
|
+
assign$1(linkElement, LINK_STYLES, {
|
|
17476
17476
|
position: 'absolute',
|
|
17477
17477
|
bottom: '15px',
|
|
17478
17478
|
right: '15px',
|
|
@@ -17888,7 +17888,7 @@
|
|
|
17888
17888
|
|
|
17889
17889
|
append(marker, element);
|
|
17890
17890
|
|
|
17891
|
-
var defs = query('defs', canvas._svg);
|
|
17891
|
+
var defs = query$1('defs', canvas._svg);
|
|
17892
17892
|
|
|
17893
17893
|
if (!defs) {
|
|
17894
17894
|
defs = create$1('defs');
|
|
@@ -18180,7 +18180,7 @@
|
|
|
18180
18180
|
}
|
|
18181
18181
|
|
|
18182
18182
|
function drawMarker(type, parentGfx, path, attrs) {
|
|
18183
|
-
return drawPath(parentGfx, path, assign$
|
|
18183
|
+
return drawPath(parentGfx, path, assign$2({ 'data-marker': type }, attrs));
|
|
18184
18184
|
}
|
|
18185
18185
|
|
|
18186
18186
|
function renderer(type) {
|
|
@@ -18252,7 +18252,7 @@
|
|
|
18252
18252
|
|
|
18253
18253
|
function renderLabel(parentGfx, label, options) {
|
|
18254
18254
|
|
|
18255
|
-
options = assign$
|
|
18255
|
+
options = assign$2({
|
|
18256
18256
|
size: {
|
|
18257
18257
|
width: 100
|
|
18258
18258
|
}
|
|
@@ -18292,7 +18292,7 @@
|
|
|
18292
18292
|
return renderLabel(parentGfx, getLabel(element), {
|
|
18293
18293
|
box: box,
|
|
18294
18294
|
fitBox: true,
|
|
18295
|
-
style: assign$
|
|
18295
|
+
style: assign$2(
|
|
18296
18296
|
{},
|
|
18297
18297
|
textRenderer.getExternalStyle(),
|
|
18298
18298
|
{
|
|
@@ -19724,7 +19724,7 @@
|
|
|
19724
19724
|
function parsePadding(padding) {
|
|
19725
19725
|
|
|
19726
19726
|
if (isObject$1(padding)) {
|
|
19727
|
-
return assign$
|
|
19727
|
+
return assign$2({ top: 0, left: 0, right: 0, bottom: 0 }, padding);
|
|
19728
19728
|
} else {
|
|
19729
19729
|
return {
|
|
19730
19730
|
top: padding,
|
|
@@ -19890,7 +19890,7 @@
|
|
|
19890
19890
|
id: 'helper-svg'
|
|
19891
19891
|
});
|
|
19892
19892
|
|
|
19893
|
-
assign(helperSvg, {
|
|
19893
|
+
assign$1(helperSvg, {
|
|
19894
19894
|
visibility: 'hidden',
|
|
19895
19895
|
position: 'fixed',
|
|
19896
19896
|
width: 0,
|
|
@@ -19915,7 +19915,7 @@
|
|
|
19915
19915
|
*/
|
|
19916
19916
|
function Text$1(config) {
|
|
19917
19917
|
|
|
19918
|
-
this._config = assign$
|
|
19918
|
+
this._config = assign$2({}, {
|
|
19919
19919
|
size: DEFAULT_LABEL_SIZE$1,
|
|
19920
19920
|
padding: DEFAULT_BOX_PADDING,
|
|
19921
19921
|
style: {},
|
|
@@ -19964,8 +19964,8 @@
|
|
|
19964
19964
|
* @return {Object} { element, dimensions }
|
|
19965
19965
|
*/
|
|
19966
19966
|
Text$1.prototype.layoutText = function(text, options) {
|
|
19967
|
-
var box = assign$
|
|
19968
|
-
style = assign$
|
|
19967
|
+
var box = assign$2({}, this._config.size, options.box),
|
|
19968
|
+
style = assign$2({}, this._config.style, options.style),
|
|
19969
19969
|
align = parseAlign(options.align || this._config.align),
|
|
19970
19970
|
padding = parsePadding(options.padding !== undefined ? options.padding : this._config.padding),
|
|
19971
19971
|
fitBox = options.fitBox || false;
|
|
@@ -20080,7 +20080,7 @@
|
|
|
20080
20080
|
|
|
20081
20081
|
function TextRenderer(config) {
|
|
20082
20082
|
|
|
20083
|
-
var defaultStyle = assign$
|
|
20083
|
+
var defaultStyle = assign$2({
|
|
20084
20084
|
fontFamily: 'Arial, sans-serif',
|
|
20085
20085
|
fontSize: DEFAULT_FONT_SIZE,
|
|
20086
20086
|
fontWeight: 'normal',
|
|
@@ -20089,7 +20089,7 @@
|
|
|
20089
20089
|
|
|
20090
20090
|
var fontSize = parseInt(defaultStyle.fontSize, 10) - 1;
|
|
20091
20091
|
|
|
20092
|
-
var externalStyle = assign$
|
|
20092
|
+
var externalStyle = assign$2({}, defaultStyle, {
|
|
20093
20093
|
fontSize: fontSize
|
|
20094
20094
|
}, config && config.externalStyle || {});
|
|
20095
20095
|
|
|
@@ -20839,7 +20839,7 @@
|
|
|
20839
20839
|
size = DEFAULT_LABEL_SIZE;
|
|
20840
20840
|
}
|
|
20841
20841
|
|
|
20842
|
-
return assign$
|
|
20842
|
+
return assign$2({
|
|
20843
20843
|
x: mid.x - size.width / 2,
|
|
20844
20844
|
y: mid.y - size.height / 2
|
|
20845
20845
|
}, size);
|
|
@@ -20857,7 +20857,7 @@
|
|
|
20857
20857
|
* @return {Object}
|
|
20858
20858
|
*/
|
|
20859
20859
|
function elementData(semantic, di, attrs) {
|
|
20860
|
-
return assign$
|
|
20860
|
+
return assign$2({
|
|
20861
20861
|
id: semantic.id,
|
|
20862
20862
|
type: semantic.$type,
|
|
20863
20863
|
businessObject: semantic,
|
|
@@ -21514,7 +21514,7 @@
|
|
|
21514
21514
|
|
|
21515
21515
|
function createHitStyle(classNames, attrs) {
|
|
21516
21516
|
|
|
21517
|
-
attrs = assign$
|
|
21517
|
+
attrs = assign$2({
|
|
21518
21518
|
stroke: 'white',
|
|
21519
21519
|
strokeWidth: 15
|
|
21520
21520
|
}, attrs || {});
|
|
@@ -21612,7 +21612,7 @@
|
|
|
21612
21612
|
*/
|
|
21613
21613
|
this.createBoxHit = function(gfx, type, attrs) {
|
|
21614
21614
|
|
|
21615
|
-
attrs = assign$
|
|
21615
|
+
attrs = assign$2({
|
|
21616
21616
|
x: 0,
|
|
21617
21617
|
y: 0
|
|
21618
21618
|
}, attrs);
|
|
@@ -21638,7 +21638,7 @@
|
|
|
21638
21638
|
*/
|
|
21639
21639
|
this.updateDefaultHit = function(element, gfx) {
|
|
21640
21640
|
|
|
21641
|
-
var hit = query('.djs-hit', gfx);
|
|
21641
|
+
var hit = query$1('.djs-hit', gfx);
|
|
21642
21642
|
|
|
21643
21643
|
if (!hit) {
|
|
21644
21644
|
return;
|
|
@@ -21786,7 +21786,7 @@
|
|
|
21786
21786
|
function createOutline(gfx, bounds) {
|
|
21787
21787
|
var outline = create$1('rect');
|
|
21788
21788
|
|
|
21789
|
-
attr(outline, assign$
|
|
21789
|
+
attr(outline, assign$2({
|
|
21790
21790
|
x: 10,
|
|
21791
21791
|
y: 10,
|
|
21792
21792
|
rx: 4,
|
|
@@ -21805,7 +21805,7 @@
|
|
|
21805
21805
|
var element = event.element,
|
|
21806
21806
|
gfx = event.gfx;
|
|
21807
21807
|
|
|
21808
|
-
var outline = query('.djs-outline', gfx);
|
|
21808
|
+
var outline = query$1('.djs-outline', gfx);
|
|
21809
21809
|
|
|
21810
21810
|
if (!outline) {
|
|
21811
21811
|
outline = createOutline(gfx);
|
|
@@ -21818,7 +21818,7 @@
|
|
|
21818
21818
|
var element = event.element,
|
|
21819
21819
|
gfx = event.gfx;
|
|
21820
21820
|
|
|
21821
|
-
var outline = query('.djs-outline', gfx);
|
|
21821
|
+
var outline = query$1('.djs-outline', gfx);
|
|
21822
21822
|
|
|
21823
21823
|
if (!outline) {
|
|
21824
21824
|
outline = createOutline(gfx);
|
|
@@ -22090,7 +22090,7 @@
|
|
|
22090
22090
|
|
|
22091
22091
|
var rect = create$1('rect');
|
|
22092
22092
|
|
|
22093
|
-
attr(rect, assign$
|
|
22093
|
+
attr(rect, assign$2({
|
|
22094
22094
|
rx: 3
|
|
22095
22095
|
}, bBox));
|
|
22096
22096
|
|
|
@@ -22358,7 +22358,7 @@
|
|
|
22358
22358
|
/**
|
|
22359
22359
|
* @type {OverlaysConfigDefault}
|
|
22360
22360
|
*/
|
|
22361
|
-
this._overlayDefaults = assign$
|
|
22361
|
+
this._overlayDefaults = assign$2({
|
|
22362
22362
|
|
|
22363
22363
|
// no show constraints
|
|
22364
22364
|
show: null,
|
|
@@ -22479,7 +22479,7 @@
|
|
|
22479
22479
|
|
|
22480
22480
|
var id = this._ids.next();
|
|
22481
22481
|
|
|
22482
|
-
overlay = assign$
|
|
22482
|
+
overlay = assign$2({}, this._overlayDefaults, overlay, {
|
|
22483
22483
|
id: id,
|
|
22484
22484
|
type: type,
|
|
22485
22485
|
element: element,
|
|
@@ -22635,7 +22635,7 @@
|
|
|
22635
22635
|
|
|
22636
22636
|
Overlays.prototype._createOverlayContainer = function(element) {
|
|
22637
22637
|
var html = domify$1('<div class="djs-overlays" />');
|
|
22638
|
-
assign(html, { position: 'absolute' });
|
|
22638
|
+
assign$1(html, { position: 'absolute' });
|
|
22639
22639
|
|
|
22640
22640
|
this._overlayRoot.appendChild(html);
|
|
22641
22641
|
|
|
@@ -22707,7 +22707,7 @@
|
|
|
22707
22707
|
overlayContainer = this._getOverlayContainer(element);
|
|
22708
22708
|
|
|
22709
22709
|
htmlContainer = domify$1('<div class="djs-overlay" data-overlay-id="' + id + '">');
|
|
22710
|
-
assign(htmlContainer, { position: 'absolute' });
|
|
22710
|
+
assign$1(htmlContainer, { position: 'absolute' });
|
|
22711
22711
|
|
|
22712
22712
|
htmlContainer.appendChild(html);
|
|
22713
22713
|
|
|
@@ -22895,7 +22895,7 @@
|
|
|
22895
22895
|
'<div class="djs-overlay-container" />'
|
|
22896
22896
|
);
|
|
22897
22897
|
|
|
22898
|
-
assign(root, {
|
|
22898
|
+
assign$1(root, {
|
|
22899
22899
|
position: 'absolute',
|
|
22900
22900
|
width: 0,
|
|
22901
22901
|
height: 0
|
|
@@ -22907,7 +22907,7 @@
|
|
|
22907
22907
|
}
|
|
22908
22908
|
|
|
22909
22909
|
function setPosition$1(el, x, y) {
|
|
22910
|
-
assign(el, { left: x + 'px', top: y + 'px' });
|
|
22910
|
+
assign$1(el, { left: x + 'px', top: y + 'px' });
|
|
22911
22911
|
}
|
|
22912
22912
|
|
|
22913
22913
|
/**
|
|
@@ -24432,7 +24432,7 @@
|
|
|
24432
24432
|
|
|
24433
24433
|
var self = this;
|
|
24434
24434
|
|
|
24435
|
-
this._config = assign$
|
|
24435
|
+
this._config = assign$2({}, DEFAULT_CONFIG$1, config || {});
|
|
24436
24436
|
|
|
24437
24437
|
keyboard.addListener(arrowsListener);
|
|
24438
24438
|
|
|
@@ -28544,7 +28544,7 @@
|
|
|
28544
28544
|
|
|
28545
28545
|
attr$1(control, 'data-action', id);
|
|
28546
28546
|
|
|
28547
|
-
container = query('[data-group=' + escapeCSS(grouping) + ']', html);
|
|
28547
|
+
container = query$1('[data-group=' + escapeCSS(grouping) + ']', html);
|
|
28548
28548
|
if (!container) {
|
|
28549
28549
|
container = domify$1('<div class="group"></div>');
|
|
28550
28550
|
attr$1(container, 'data-group', grouping);
|
|
@@ -28601,7 +28601,7 @@
|
|
|
28601
28601
|
|
|
28602
28602
|
var position = this._getPosition(target);
|
|
28603
28603
|
|
|
28604
|
-
var overlaysConfig = assign$
|
|
28604
|
+
var overlaysConfig = assign$2({
|
|
28605
28605
|
html: html
|
|
28606
28606
|
}, this._overlaysConfig, position);
|
|
28607
28607
|
|
|
@@ -29827,7 +29827,7 @@
|
|
|
29827
29827
|
var actions = {};
|
|
29828
29828
|
|
|
29829
29829
|
if (this._isAllowed(elements)) {
|
|
29830
|
-
assign$
|
|
29830
|
+
assign$2(actions, this._getEntries(elements));
|
|
29831
29831
|
}
|
|
29832
29832
|
|
|
29833
29833
|
return actions;
|
|
@@ -29849,7 +29849,7 @@
|
|
|
29849
29849
|
click: function(event, elements) {
|
|
29850
29850
|
var position = self._getMenuPosition(elements);
|
|
29851
29851
|
|
|
29852
|
-
assign$
|
|
29852
|
+
assign$2(position, {
|
|
29853
29853
|
cursor: {
|
|
29854
29854
|
x: event.x,
|
|
29855
29855
|
y: event.y
|
|
@@ -29911,7 +29911,7 @@
|
|
|
29911
29911
|
var entries = {};
|
|
29912
29912
|
|
|
29913
29913
|
if (this._isAllowed(elements)) {
|
|
29914
|
-
assign$
|
|
29914
|
+
assign$2(entries, this._getEntries(elements));
|
|
29915
29915
|
}
|
|
29916
29916
|
|
|
29917
29917
|
return entries;
|
|
@@ -30836,7 +30836,7 @@
|
|
|
30836
30836
|
newTrbl.bottom = elementsTrbl.bottom + offset.bottom;
|
|
30837
30837
|
}
|
|
30838
30838
|
|
|
30839
|
-
return asBounds(assign$
|
|
30839
|
+
return asBounds(assign$2({}, targetTrbl, newTrbl));
|
|
30840
30840
|
};
|
|
30841
30841
|
|
|
30842
30842
|
|
|
@@ -31403,7 +31403,7 @@
|
|
|
31403
31403
|
dragContext = dragContext || context;
|
|
31404
31404
|
|
|
31405
31405
|
var event = eventBus.createEvent(
|
|
31406
|
-
assign$
|
|
31406
|
+
assign$2(
|
|
31407
31407
|
{},
|
|
31408
31408
|
dragContext.payload,
|
|
31409
31409
|
dragContext.data,
|
|
@@ -31448,7 +31448,7 @@
|
|
|
31448
31448
|
// fire start event with original
|
|
31449
31449
|
// starting coordinates
|
|
31450
31450
|
|
|
31451
|
-
assign$
|
|
31451
|
+
assign$2(payload, {
|
|
31452
31452
|
x: round$a(localStart.x + displacement.x),
|
|
31453
31453
|
y: round$a(localStart.y + displacement.y),
|
|
31454
31454
|
dx: 0,
|
|
@@ -31483,7 +31483,7 @@
|
|
|
31483
31483
|
if (context.active) {
|
|
31484
31484
|
|
|
31485
31485
|
// update payload with actual coordinates
|
|
31486
|
-
assign$
|
|
31486
|
+
assign$2(payload, {
|
|
31487
31487
|
x: round$a(localCurrent.x + displacement.x),
|
|
31488
31488
|
y: round$a(localCurrent.y + displacement.y),
|
|
31489
31489
|
dx: round$a(localDelta.x),
|
|
@@ -31691,7 +31691,7 @@
|
|
|
31691
31691
|
relativeTo = null;
|
|
31692
31692
|
}
|
|
31693
31693
|
|
|
31694
|
-
options = assign$
|
|
31694
|
+
options = assign$2({}, defaultOptions, options || {});
|
|
31695
31695
|
|
|
31696
31696
|
var data = options.data || {},
|
|
31697
31697
|
originalEvent,
|
|
@@ -31729,7 +31729,7 @@
|
|
|
31729
31729
|
|
|
31730
31730
|
isTouch = isTouchEvent(originalEvent);
|
|
31731
31731
|
|
|
31732
|
-
context = assign$
|
|
31732
|
+
context = assign$2({
|
|
31733
31733
|
prefix: prefix,
|
|
31734
31734
|
data: data,
|
|
31735
31735
|
payload: {},
|
|
@@ -31797,7 +31797,7 @@
|
|
|
31797
31797
|
};
|
|
31798
31798
|
|
|
31799
31799
|
this.setOptions = function(options) {
|
|
31800
|
-
assign$
|
|
31800
|
+
assign$2(defaultOptions, options);
|
|
31801
31801
|
};
|
|
31802
31802
|
}
|
|
31803
31803
|
|
|
@@ -31845,7 +31845,7 @@
|
|
|
31845
31845
|
|
|
31846
31846
|
this._canvas = canvas;
|
|
31847
31847
|
|
|
31848
|
-
this._opts = assign$
|
|
31848
|
+
this._opts = assign$2({
|
|
31849
31849
|
scrollThresholdIn: [ 20, 20, 20, 20 ],
|
|
31850
31850
|
scrollThresholdOut: [ 0, 0, 0, 0 ],
|
|
31851
31851
|
scrollRepeatTimeout: 15,
|
|
@@ -31944,7 +31944,7 @@
|
|
|
31944
31944
|
* @param {Object} options
|
|
31945
31945
|
*/
|
|
31946
31946
|
AutoScroll.prototype.setOptions = function(options) {
|
|
31947
|
-
this._opts = assign$
|
|
31947
|
+
this._opts = assign$2({}, this._opts, options);
|
|
31948
31948
|
};
|
|
31949
31949
|
|
|
31950
31950
|
|
|
@@ -32570,7 +32570,7 @@
|
|
|
32570
32570
|
function getBendpointsContainer(element, create) {
|
|
32571
32571
|
|
|
32572
32572
|
var layer = canvas.getLayer('overlays'),
|
|
32573
|
-
gfx = query('.djs-bendpoints[data-element-id="' + escapeCSS(element.id) + '"]', layer);
|
|
32573
|
+
gfx = query$1('.djs-bendpoints[data-element-id="' + escapeCSS(element.id) + '"]', layer);
|
|
32574
32574
|
|
|
32575
32575
|
if (!gfx && create) {
|
|
32576
32576
|
gfx = create$1('g');
|
|
@@ -32588,7 +32588,7 @@
|
|
|
32588
32588
|
}
|
|
32589
32589
|
|
|
32590
32590
|
function getSegmentDragger(idx, parentGfx) {
|
|
32591
|
-
return query(
|
|
32591
|
+
return query$1(
|
|
32592
32592
|
'.djs-segment-dragger[data-segment-idx="' + idx + '"]',
|
|
32593
32593
|
parentGfx
|
|
32594
32594
|
);
|
|
@@ -32669,7 +32669,7 @@
|
|
|
32669
32669
|
}
|
|
32670
32670
|
|
|
32671
32671
|
function updateFloatingBendpointPosition(parentGfx, intersection) {
|
|
32672
|
-
var floating = query('.floating', parentGfx),
|
|
32672
|
+
var floating = query$1('.floating', parentGfx),
|
|
32673
32673
|
point = intersection.point;
|
|
32674
32674
|
|
|
32675
32675
|
if (!floating) {
|
|
@@ -32841,7 +32841,7 @@
|
|
|
32841
32841
|
// helper /////////////
|
|
32842
32842
|
|
|
32843
32843
|
function getDraggerVisual(draggerGfx) {
|
|
32844
|
-
return query('.djs-visual', draggerGfx);
|
|
32844
|
+
return query$1('.djs-visual', draggerGfx);
|
|
32845
32845
|
}
|
|
32846
32846
|
|
|
32847
32847
|
/**
|
|
@@ -33992,7 +33992,7 @@
|
|
|
33992
33992
|
cy = (y - sy);
|
|
33993
33993
|
|
|
33994
33994
|
// update delta
|
|
33995
|
-
assign$
|
|
33995
|
+
assign$2(event, {
|
|
33996
33996
|
dx: event.dx - cx,
|
|
33997
33997
|
dy: event.dy - cy,
|
|
33998
33998
|
x: sx,
|
|
@@ -34083,7 +34083,7 @@
|
|
|
34083
34083
|
cy = (y - sy);
|
|
34084
34084
|
|
|
34085
34085
|
// update delta
|
|
34086
|
-
assign$
|
|
34086
|
+
assign$2(event, {
|
|
34087
34087
|
dx: event.dx - cx,
|
|
34088
34088
|
dy: event.dy - cy,
|
|
34089
34089
|
x: event.x - cx,
|
|
@@ -34715,7 +34715,7 @@
|
|
|
34715
34715
|
'</div>'
|
|
34716
34716
|
);
|
|
34717
34717
|
|
|
34718
|
-
this.content = query('[contenteditable]', this.parent);
|
|
34718
|
+
this.content = query$1('[contenteditable]', this.parent);
|
|
34719
34719
|
|
|
34720
34720
|
this.keyHandler = options.keyHandler || function() {};
|
|
34721
34721
|
this.resizeHandler = options.resizeHandler || function() {};
|
|
@@ -34772,7 +34772,7 @@
|
|
|
34772
34772
|
'transform'
|
|
34773
34773
|
]);
|
|
34774
34774
|
|
|
34775
|
-
assign$
|
|
34775
|
+
assign$2(parent.style, {
|
|
34776
34776
|
width: bounds.width + 'px',
|
|
34777
34777
|
height: bounds.height + 'px',
|
|
34778
34778
|
maxWidth: bounds.maxWidth + 'px',
|
|
@@ -34803,7 +34803,7 @@
|
|
|
34803
34803
|
'paddingLeft'
|
|
34804
34804
|
]);
|
|
34805
34805
|
|
|
34806
|
-
assign$
|
|
34806
|
+
assign$2(content.style, {
|
|
34807
34807
|
boxSizing: 'border-box',
|
|
34808
34808
|
width: '100%',
|
|
34809
34809
|
outline: 'none',
|
|
@@ -34811,7 +34811,7 @@
|
|
|
34811
34811
|
}, contentStyle);
|
|
34812
34812
|
|
|
34813
34813
|
if (options.centerVertically) {
|
|
34814
|
-
assign$
|
|
34814
|
+
assign$2(content.style, {
|
|
34815
34815
|
position: 'absolute',
|
|
34816
34816
|
top: '50%',
|
|
34817
34817
|
transform: 'translate(0, -50%)'
|
|
@@ -35038,7 +35038,7 @@
|
|
|
35038
35038
|
event.bind(resizeHandle, 'mousedown', onMouseDown);
|
|
35039
35039
|
}
|
|
35040
35040
|
|
|
35041
|
-
assign$
|
|
35041
|
+
assign$2(resizeHandle.style, {
|
|
35042
35042
|
position: 'absolute',
|
|
35043
35043
|
bottom: '0px',
|
|
35044
35044
|
right: '0px',
|
|
@@ -35491,7 +35491,7 @@
|
|
|
35491
35491
|
|
|
35492
35492
|
this._clonedMarkers[ markerId ] = clonedMarker;
|
|
35493
35493
|
|
|
35494
|
-
var defs = query('defs', this._canvas._svg);
|
|
35494
|
+
var defs = query$1('defs', this._canvas._svg);
|
|
35495
35495
|
|
|
35496
35496
|
if (!defs) {
|
|
35497
35497
|
defs = create$1('defs');
|
|
@@ -35521,7 +35521,7 @@
|
|
|
35521
35521
|
function getMarker(node, markerType, parentNode) {
|
|
35522
35522
|
var id = referenceToId(attr(node, markerType));
|
|
35523
35523
|
|
|
35524
|
-
return query('marker#' + id, parentNode || document);
|
|
35524
|
+
return query$1('marker#' + id, parentNode || document);
|
|
35525
35525
|
}
|
|
35526
35526
|
|
|
35527
35527
|
/**
|
|
@@ -35777,7 +35777,7 @@
|
|
|
35777
35777
|
connectionTarget: hints.connectionTarget
|
|
35778
35778
|
});
|
|
35779
35779
|
} else {
|
|
35780
|
-
elements = modeling.createElements(elements, position, target, assign$
|
|
35780
|
+
elements = modeling.createElements(elements, position, target, assign$2({}, hints, {
|
|
35781
35781
|
attach: attach
|
|
35782
35782
|
}));
|
|
35783
35783
|
|
|
@@ -35788,12 +35788,12 @@
|
|
|
35788
35788
|
}
|
|
35789
35789
|
|
|
35790
35790
|
// update elements and shape
|
|
35791
|
-
assign$
|
|
35791
|
+
assign$2(context, {
|
|
35792
35792
|
elements: elements,
|
|
35793
35793
|
shape: shape
|
|
35794
35794
|
});
|
|
35795
35795
|
|
|
35796
|
-
assign$
|
|
35796
|
+
assign$2(event, {
|
|
35797
35797
|
elements: elements,
|
|
35798
35798
|
shape: shape
|
|
35799
35799
|
});
|
|
@@ -35833,7 +35833,7 @@
|
|
|
35833
35833
|
return;
|
|
35834
35834
|
}
|
|
35835
35835
|
|
|
35836
|
-
context = assign$
|
|
35836
|
+
context = assign$2({
|
|
35837
35837
|
elements: elements,
|
|
35838
35838
|
hints: {},
|
|
35839
35839
|
shape: shape
|
|
@@ -35867,7 +35867,7 @@
|
|
|
35867
35867
|
});
|
|
35868
35868
|
}
|
|
35869
35869
|
|
|
35870
|
-
assign$
|
|
35870
|
+
assign$2(element, {
|
|
35871
35871
|
x: element.x - bbox.x - bbox.width / 2,
|
|
35872
35872
|
y: element.y - bbox.y - bbox.height / 2
|
|
35873
35873
|
});
|
|
@@ -36309,7 +36309,7 @@
|
|
|
36309
36309
|
eventBus.on('copyPaste.pasteElements', function(context) {
|
|
36310
36310
|
var hints = context.hints;
|
|
36311
36311
|
|
|
36312
|
-
assign$
|
|
36312
|
+
assign$2(hints, {
|
|
36313
36313
|
createElementsBehavior: false
|
|
36314
36314
|
});
|
|
36315
36315
|
});
|
|
@@ -36431,13 +36431,13 @@
|
|
|
36431
36431
|
});
|
|
36432
36432
|
}
|
|
36433
36433
|
|
|
36434
|
-
assign$
|
|
36434
|
+
assign$2(element, {
|
|
36435
36435
|
x: element.x - bbox.x - bbox.width / 2,
|
|
36436
36436
|
y: element.y - bbox.y - bbox.height / 2
|
|
36437
36437
|
});
|
|
36438
36438
|
});
|
|
36439
36439
|
|
|
36440
|
-
return this._modeling.createElements(elements, position, target, assign$
|
|
36440
|
+
return this._modeling.createElements(elements, position, target, assign$2({}, hints));
|
|
36441
36441
|
};
|
|
36442
36442
|
|
|
36443
36443
|
/**
|
|
@@ -36460,7 +36460,7 @@
|
|
|
36460
36460
|
forEach$2(branch, function(descriptor) {
|
|
36461
36461
|
|
|
36462
36462
|
// remove priority
|
|
36463
|
-
var attrs = assign$
|
|
36463
|
+
var attrs = assign$2({}, omit(descriptor, [ 'priority' ]));
|
|
36464
36464
|
|
|
36465
36465
|
if (cache[ descriptor.parent ]) {
|
|
36466
36466
|
attrs.parent = cache[ descriptor.parent ];
|
|
@@ -36760,7 +36760,7 @@
|
|
|
36760
36760
|
}
|
|
36761
36761
|
|
|
36762
36762
|
function copyWaypoint$1(waypoint) {
|
|
36763
|
-
return assign$
|
|
36763
|
+
return assign$2({}, waypoint);
|
|
36764
36764
|
}
|
|
36765
36765
|
|
|
36766
36766
|
function removeElement(element, elements) {
|
|
@@ -37314,7 +37314,7 @@
|
|
|
37314
37314
|
|
|
37315
37315
|
var newElement = modeling.replaceShape(
|
|
37316
37316
|
oldElement,
|
|
37317
|
-
assign$
|
|
37317
|
+
assign$2(
|
|
37318
37318
|
{},
|
|
37319
37319
|
attrs,
|
|
37320
37320
|
{
|
|
@@ -37475,7 +37475,7 @@
|
|
|
37475
37475
|
copyProps = intersection(elementProps, newElementProps);
|
|
37476
37476
|
|
|
37477
37477
|
// initialize special properties defined in target definition
|
|
37478
|
-
assign$
|
|
37478
|
+
assign$2(newBusinessObject, pick(target, CUSTOM_PROPERTIES));
|
|
37479
37479
|
|
|
37480
37480
|
var properties = filter(copyProps, function(propertyName) {
|
|
37481
37481
|
|
|
@@ -38008,7 +38008,7 @@
|
|
|
38008
38008
|
}
|
|
38009
38009
|
];
|
|
38010
38010
|
|
|
38011
|
-
var GATEWAY$
|
|
38011
|
+
var GATEWAY$2 = [
|
|
38012
38012
|
{
|
|
38013
38013
|
label: 'Exclusive Gateway',
|
|
38014
38014
|
actionName: 'replace-with-exclusive-gateway',
|
|
@@ -38141,7 +38141,7 @@
|
|
|
38141
38141
|
|
|
38142
38142
|
var EVENT_SUB_PROCESS$1 = TRANSACTION$1;
|
|
38143
38143
|
|
|
38144
|
-
var TASK$
|
|
38144
|
+
var TASK$2 = [
|
|
38145
38145
|
{
|
|
38146
38146
|
label: 'Task',
|
|
38147
38147
|
actionName: 'replace-with-task',
|
|
@@ -38515,7 +38515,7 @@
|
|
|
38515
38515
|
}
|
|
38516
38516
|
];
|
|
38517
38517
|
|
|
38518
|
-
var PARTICIPANT$
|
|
38518
|
+
var PARTICIPANT$2 = [
|
|
38519
38519
|
{
|
|
38520
38520
|
label: 'Expanded Pool',
|
|
38521
38521
|
actionName: 'replace-with-expanded-pool',
|
|
@@ -38624,7 +38624,7 @@
|
|
|
38624
38624
|
// expanded/collapsed pools
|
|
38625
38625
|
if (is$8(businessObject, 'bpmn:Participant')) {
|
|
38626
38626
|
|
|
38627
|
-
entries = filter(PARTICIPANT$
|
|
38627
|
+
entries = filter(PARTICIPANT$2, function(entry) {
|
|
38628
38628
|
return isExpanded$1(element) !== entry.target.isExpanded;
|
|
38629
38629
|
});
|
|
38630
38630
|
|
|
@@ -38707,7 +38707,7 @@
|
|
|
38707
38707
|
// gateways
|
|
38708
38708
|
if (is$8(businessObject, 'bpmn:Gateway')) {
|
|
38709
38709
|
|
|
38710
|
-
entries = filter(GATEWAY$
|
|
38710
|
+
entries = filter(GATEWAY$2, differentType);
|
|
38711
38711
|
|
|
38712
38712
|
return this._createEntries(element, entries);
|
|
38713
38713
|
}
|
|
@@ -38739,7 +38739,7 @@
|
|
|
38739
38739
|
// collapsed ad hoc sub processes
|
|
38740
38740
|
if (is$8(businessObject, 'bpmn:AdHocSubProcess') && !isExpanded$1(element)) {
|
|
38741
38741
|
|
|
38742
|
-
entries = filter(TASK$
|
|
38742
|
+
entries = filter(TASK$2, function(entry) {
|
|
38743
38743
|
|
|
38744
38744
|
var target = entry.target;
|
|
38745
38745
|
|
|
@@ -38760,7 +38760,7 @@
|
|
|
38760
38760
|
|
|
38761
38761
|
// flow nodes
|
|
38762
38762
|
if (is$8(businessObject, 'bpmn:FlowNode')) {
|
|
38763
|
-
entries = filter(TASK$
|
|
38763
|
+
entries = filter(TASK$2, differentType);
|
|
38764
38764
|
|
|
38765
38765
|
// collapsed SubProcess can not be replaced with itself
|
|
38766
38766
|
if (is$8(businessObject, 'bpmn:SubProcess') && !isExpanded$1(element)) {
|
|
@@ -39581,7 +39581,7 @@
|
|
|
39581
39581
|
var actions = {};
|
|
39582
39582
|
|
|
39583
39583
|
if (this._isDeleteAllowed(elements)) {
|
|
39584
|
-
assign$
|
|
39584
|
+
assign$2(actions, {
|
|
39585
39585
|
'delete': {
|
|
39586
39586
|
group: 'edit',
|
|
39587
39587
|
className: 'bpmn-icon-trash',
|
|
@@ -39680,7 +39680,7 @@
|
|
|
39680
39680
|
|
|
39681
39681
|
function appendStart(event, element) {
|
|
39682
39682
|
|
|
39683
|
-
var shape = elementFactory.createShape(assign$
|
|
39683
|
+
var shape = elementFactory.createShape(assign$2({ type: type }, options));
|
|
39684
39684
|
create.start(event, shape, {
|
|
39685
39685
|
source: element
|
|
39686
39686
|
});
|
|
@@ -39688,7 +39688,7 @@
|
|
|
39688
39688
|
|
|
39689
39689
|
|
|
39690
39690
|
var append = autoPlace ? function(event, element) {
|
|
39691
|
-
var shape = elementFactory.createShape(assign$
|
|
39691
|
+
var shape = elementFactory.createShape(assign$2({ type: type }, options));
|
|
39692
39692
|
|
|
39693
39693
|
autoPlace.append(element, shape);
|
|
39694
39694
|
} : appendStart;
|
|
@@ -39723,7 +39723,7 @@
|
|
|
39723
39723
|
|
|
39724
39724
|
var childLanes = getChildLanes(element);
|
|
39725
39725
|
|
|
39726
|
-
assign$
|
|
39726
|
+
assign$2(actions, {
|
|
39727
39727
|
'lane-insert-above': {
|
|
39728
39728
|
group: 'lane-insert-above',
|
|
39729
39729
|
className: 'bpmn-icon-lane-insert-above',
|
|
@@ -39739,7 +39739,7 @@
|
|
|
39739
39739
|
if (childLanes.length < 2) {
|
|
39740
39740
|
|
|
39741
39741
|
if (element.height >= 120) {
|
|
39742
|
-
assign$
|
|
39742
|
+
assign$2(actions, {
|
|
39743
39743
|
'lane-divide-two': {
|
|
39744
39744
|
group: 'lane-divide',
|
|
39745
39745
|
className: 'bpmn-icon-lane-divide-two',
|
|
@@ -39752,7 +39752,7 @@
|
|
|
39752
39752
|
}
|
|
39753
39753
|
|
|
39754
39754
|
if (element.height >= 180) {
|
|
39755
|
-
assign$
|
|
39755
|
+
assign$2(actions, {
|
|
39756
39756
|
'lane-divide-three': {
|
|
39757
39757
|
group: 'lane-divide',
|
|
39758
39758
|
className: 'bpmn-icon-lane-divide-three',
|
|
@@ -39765,7 +39765,7 @@
|
|
|
39765
39765
|
}
|
|
39766
39766
|
}
|
|
39767
39767
|
|
|
39768
|
-
assign$
|
|
39768
|
+
assign$2(actions, {
|
|
39769
39769
|
'lane-insert-below': {
|
|
39770
39770
|
group: 'lane-insert-below',
|
|
39771
39771
|
className: 'bpmn-icon-lane-insert-below',
|
|
@@ -39784,7 +39784,7 @@
|
|
|
39784
39784
|
|
|
39785
39785
|
if (is$8(businessObject, 'bpmn:EventBasedGateway')) {
|
|
39786
39786
|
|
|
39787
|
-
assign$
|
|
39787
|
+
assign$2(actions, {
|
|
39788
39788
|
'append.receive-task': appendAction(
|
|
39789
39789
|
'bpmn:ReceiveTask',
|
|
39790
39790
|
'bpmn-icon-receive-task',
|
|
@@ -39819,7 +39819,7 @@
|
|
|
39819
39819
|
|
|
39820
39820
|
if (isEventType(businessObject, 'bpmn:BoundaryEvent', 'bpmn:CompensateEventDefinition')) {
|
|
39821
39821
|
|
|
39822
|
-
assign$
|
|
39822
|
+
assign$2(actions, {
|
|
39823
39823
|
'append.compensation-activity':
|
|
39824
39824
|
appendAction(
|
|
39825
39825
|
'bpmn:Task',
|
|
@@ -39837,7 +39837,7 @@
|
|
|
39837
39837
|
!isEventType(businessObject, 'bpmn:IntermediateThrowEvent', 'bpmn:LinkEventDefinition') &&
|
|
39838
39838
|
!isEventSubProcess(businessObject)) {
|
|
39839
39839
|
|
|
39840
|
-
assign$
|
|
39840
|
+
assign$2(actions, {
|
|
39841
39841
|
'append.end-event': appendAction(
|
|
39842
39842
|
'bpmn:EndEvent',
|
|
39843
39843
|
'bpmn-icon-end-event-none',
|
|
@@ -39865,7 +39865,7 @@
|
|
|
39865
39865
|
if (!popupMenu.isEmpty(element, 'bpmn-replace')) {
|
|
39866
39866
|
|
|
39867
39867
|
// Replace menu entry
|
|
39868
|
-
assign$
|
|
39868
|
+
assign$2(actions, {
|
|
39869
39869
|
'replace': {
|
|
39870
39870
|
group: 'edit',
|
|
39871
39871
|
className: 'bpmn-icon-screw-wrench',
|
|
@@ -39873,7 +39873,7 @@
|
|
|
39873
39873
|
action: {
|
|
39874
39874
|
click: function(event, element) {
|
|
39875
39875
|
|
|
39876
|
-
var position = assign$
|
|
39876
|
+
var position = assign$2(getReplaceMenuPosition(element), {
|
|
39877
39877
|
cursor: { x: event.x, y: event.y }
|
|
39878
39878
|
});
|
|
39879
39879
|
|
|
@@ -39889,7 +39889,7 @@
|
|
|
39889
39889
|
}
|
|
39890
39890
|
|
|
39891
39891
|
if (is$8(businessObject, 'bpmn:SequenceFlow')) {
|
|
39892
|
-
assign$
|
|
39892
|
+
assign$2(actions, {
|
|
39893
39893
|
'append.text-annotation': appendAction(
|
|
39894
39894
|
'bpmn:TextAnnotation',
|
|
39895
39895
|
'bpmn-icon-text-annotation'
|
|
@@ -39905,7 +39905,7 @@
|
|
|
39905
39905
|
'bpmn:DataStoreReference',
|
|
39906
39906
|
])
|
|
39907
39907
|
) {
|
|
39908
|
-
assign$
|
|
39908
|
+
assign$2(actions, {
|
|
39909
39909
|
'append.text-annotation': appendAction(
|
|
39910
39910
|
'bpmn:TextAnnotation',
|
|
39911
39911
|
'bpmn-icon-text-annotation'
|
|
@@ -39930,7 +39930,7 @@
|
|
|
39930
39930
|
}
|
|
39931
39931
|
|
|
39932
39932
|
if (is$8(businessObject, 'bpmn:TextAnnotation')) {
|
|
39933
|
-
assign$
|
|
39933
|
+
assign$2(actions, {
|
|
39934
39934
|
'connect': {
|
|
39935
39935
|
group: 'connect',
|
|
39936
39936
|
className: 'bpmn-icon-connection-multi',
|
|
@@ -39944,7 +39944,7 @@
|
|
|
39944
39944
|
}
|
|
39945
39945
|
|
|
39946
39946
|
if (isAny$1(businessObject, [ 'bpmn:DataObjectReference', 'bpmn:DataStoreReference' ])) {
|
|
39947
|
-
assign$
|
|
39947
|
+
assign$2(actions, {
|
|
39948
39948
|
'connect': {
|
|
39949
39949
|
group: 'connect',
|
|
39950
39950
|
className: 'bpmn-icon-connection-multi',
|
|
@@ -39958,7 +39958,7 @@
|
|
|
39958
39958
|
}
|
|
39959
39959
|
|
|
39960
39960
|
if (is$8(businessObject, 'bpmn:Group')) {
|
|
39961
|
-
assign$
|
|
39961
|
+
assign$2(actions, {
|
|
39962
39962
|
'append.text-annotation': appendAction('bpmn:TextAnnotation', 'bpmn-icon-text-annotation')
|
|
39963
39963
|
});
|
|
39964
39964
|
}
|
|
@@ -39973,7 +39973,7 @@
|
|
|
39973
39973
|
}
|
|
39974
39974
|
|
|
39975
39975
|
if (deleteAllowed) {
|
|
39976
|
-
assign$
|
|
39976
|
+
assign$2(actions, {
|
|
39977
39977
|
'delete': {
|
|
39978
39978
|
group: 'edit',
|
|
39979
39979
|
className: 'bpmn-icon-trash',
|
|
@@ -40323,7 +40323,7 @@
|
|
|
40323
40323
|
var entries = {};
|
|
40324
40324
|
|
|
40325
40325
|
if (this._isAllowed(elements)) {
|
|
40326
|
-
assign$
|
|
40326
|
+
assign$2(entries, this._getEntries(elements));
|
|
40327
40327
|
}
|
|
40328
40328
|
|
|
40329
40329
|
return entries;
|
|
@@ -40638,7 +40638,7 @@
|
|
|
40638
40638
|
return new Error(action + ' ' + message);
|
|
40639
40639
|
}
|
|
40640
40640
|
|
|
40641
|
-
var EditorActionsModule$
|
|
40641
|
+
var EditorActionsModule$2 = {
|
|
40642
40642
|
__init__: [ 'editorActions' ],
|
|
40643
40643
|
editorActions: [ 'type', EditorActions ]
|
|
40644
40644
|
};
|
|
@@ -40815,9 +40815,9 @@
|
|
|
40815
40815
|
|
|
40816
40816
|
};
|
|
40817
40817
|
|
|
40818
|
-
var EditorActionsModule = {
|
|
40818
|
+
var EditorActionsModule$1 = {
|
|
40819
40819
|
__depends__: [
|
|
40820
|
-
EditorActionsModule$
|
|
40820
|
+
EditorActionsModule$2
|
|
40821
40821
|
],
|
|
40822
40822
|
editorActions: [ 'type', BpmnEditorActions ]
|
|
40823
40823
|
};
|
|
@@ -40861,7 +40861,7 @@
|
|
|
40861
40861
|
* @typedef {import('../../core/EventBus').default} EventBus
|
|
40862
40862
|
*/
|
|
40863
40863
|
|
|
40864
|
-
var LOWER_PRIORITY$
|
|
40864
|
+
var LOWER_PRIORITY$3 = 1200;
|
|
40865
40865
|
var LOW_PRIORITY$l = 800;
|
|
40866
40866
|
|
|
40867
40867
|
/**
|
|
@@ -40897,7 +40897,7 @@
|
|
|
40897
40897
|
'resize.end',
|
|
40898
40898
|
'shape.move.move',
|
|
40899
40899
|
'shape.move.end'
|
|
40900
|
-
], LOWER_PRIORITY$
|
|
40900
|
+
], LOWER_PRIORITY$3, function(event) {
|
|
40901
40901
|
var originalEvent = event.originalEvent;
|
|
40902
40902
|
|
|
40903
40903
|
if (!self.active || (originalEvent && isCmd$1(originalEvent))) {
|
|
@@ -40925,7 +40925,7 @@
|
|
|
40925
40925
|
var snapConstraints = getSnapConstraints(event, axis);
|
|
40926
40926
|
|
|
40927
40927
|
if (snapConstraints) {
|
|
40928
|
-
assign$
|
|
40928
|
+
assign$2(options, snapConstraints);
|
|
40929
40929
|
}
|
|
40930
40930
|
|
|
40931
40931
|
if (!isSnapped(event, axis)) {
|
|
@@ -41328,7 +41328,7 @@
|
|
|
41328
41328
|
}
|
|
41329
41329
|
|
|
41330
41330
|
// assign snapped x and width
|
|
41331
|
-
assign$
|
|
41331
|
+
assign$2(newBounds, snappedNewBounds);
|
|
41332
41332
|
|
|
41333
41333
|
return newBounds;
|
|
41334
41334
|
};
|
|
@@ -41372,7 +41372,7 @@
|
|
|
41372
41372
|
}
|
|
41373
41373
|
|
|
41374
41374
|
// assign snapped y and height
|
|
41375
|
-
assign$
|
|
41375
|
+
assign$2(newBounds, snappedNewBounds);
|
|
41376
41376
|
|
|
41377
41377
|
return newBounds;
|
|
41378
41378
|
};
|
|
@@ -41661,8 +41661,8 @@
|
|
|
41661
41661
|
}
|
|
41662
41662
|
|
|
41663
41663
|
if ('x' in snapped || 'y' in snapped) {
|
|
41664
|
-
segmentStart = assign$
|
|
41665
|
-
segmentEnd = assign$
|
|
41664
|
+
segmentStart = assign$2({}, segmentStart, snapped);
|
|
41665
|
+
segmentEnd = assign$2({}, segmentEnd, snapped);
|
|
41666
41666
|
}
|
|
41667
41667
|
|
|
41668
41668
|
return [ segmentStart, segmentEnd ];
|
|
@@ -42068,7 +42068,7 @@
|
|
|
42068
42068
|
|
|
42069
42069
|
var self = this;
|
|
42070
42070
|
|
|
42071
|
-
this._config = assign$
|
|
42071
|
+
this._config = assign$2({}, DEFAULT_CONFIG, config || {});
|
|
42072
42072
|
|
|
42073
42073
|
keyboard.addListener(HIGHER_PRIORITY$4, function(event) {
|
|
42074
42074
|
|
|
@@ -42336,7 +42336,7 @@
|
|
|
42336
42336
|
};
|
|
42337
42337
|
}
|
|
42338
42338
|
|
|
42339
|
-
context = assign$
|
|
42339
|
+
context = assign$2({ shape: shape }, contextOrDirection);
|
|
42340
42340
|
|
|
42341
42341
|
direction = context.direction;
|
|
42342
42342
|
|
|
@@ -42858,7 +42858,7 @@
|
|
|
42858
42858
|
// bounds
|
|
42859
42859
|
var bounds = this.getEditingBBox(element);
|
|
42860
42860
|
|
|
42861
|
-
assign$
|
|
42861
|
+
assign$2(context, bounds);
|
|
42862
42862
|
|
|
42863
42863
|
var options = {};
|
|
42864
42864
|
|
|
@@ -42872,27 +42872,27 @@
|
|
|
42872
42872
|
]) ||
|
|
42873
42873
|
isCollapsedSubProcess(element)
|
|
42874
42874
|
) {
|
|
42875
|
-
assign$
|
|
42875
|
+
assign$2(options, {
|
|
42876
42876
|
centerVertically: true
|
|
42877
42877
|
});
|
|
42878
42878
|
}
|
|
42879
42879
|
|
|
42880
42880
|
// external labels
|
|
42881
42881
|
if (isLabelExternal(element)) {
|
|
42882
|
-
assign$
|
|
42882
|
+
assign$2(options, {
|
|
42883
42883
|
autoResize: true
|
|
42884
42884
|
});
|
|
42885
42885
|
}
|
|
42886
42886
|
|
|
42887
42887
|
// text annotations
|
|
42888
42888
|
if (is$8(element, 'bpmn:TextAnnotation')) {
|
|
42889
|
-
assign$
|
|
42889
|
+
assign$2(options, {
|
|
42890
42890
|
resizable: true,
|
|
42891
42891
|
autoResize: true
|
|
42892
42892
|
});
|
|
42893
42893
|
}
|
|
42894
42894
|
|
|
42895
|
-
assign$
|
|
42895
|
+
assign$2(context, {
|
|
42896
42896
|
options: options
|
|
42897
42897
|
});
|
|
42898
42898
|
|
|
@@ -42942,14 +42942,14 @@
|
|
|
42942
42942
|
// adjust for expanded pools AND lanes
|
|
42943
42943
|
if (is$8(element, 'bpmn:Lane') || isExpandedPool(element)) {
|
|
42944
42944
|
|
|
42945
|
-
assign$
|
|
42945
|
+
assign$2(bounds, {
|
|
42946
42946
|
width: bbox.height,
|
|
42947
42947
|
height: 30 * zoom,
|
|
42948
42948
|
x: bbox.x - bbox.height / 2 + (15 * zoom),
|
|
42949
42949
|
y: mid.y - (30 * zoom) / 2
|
|
42950
42950
|
});
|
|
42951
42951
|
|
|
42952
|
-
assign$
|
|
42952
|
+
assign$2(style, {
|
|
42953
42953
|
fontSize: defaultFontSize + 'px',
|
|
42954
42954
|
lineHeight: defaultLineHeight,
|
|
42955
42955
|
paddingTop: (7 * zoom) + 'px',
|
|
@@ -42967,12 +42967,12 @@
|
|
|
42967
42967
|
isCollapsedPool(element) ||
|
|
42968
42968
|
isCollapsedSubProcess(element)) {
|
|
42969
42969
|
|
|
42970
|
-
assign$
|
|
42970
|
+
assign$2(bounds, {
|
|
42971
42971
|
width: bbox.width,
|
|
42972
42972
|
height: bbox.height
|
|
42973
42973
|
});
|
|
42974
42974
|
|
|
42975
|
-
assign$
|
|
42975
|
+
assign$2(style, {
|
|
42976
42976
|
fontSize: defaultFontSize + 'px',
|
|
42977
42977
|
lineHeight: defaultLineHeight,
|
|
42978
42978
|
paddingTop: (7 * zoom) + 'px',
|
|
@@ -42985,12 +42985,12 @@
|
|
|
42985
42985
|
|
|
42986
42986
|
// internal labels for expanded sub processes
|
|
42987
42987
|
if (isExpandedSubProcess$1(element)) {
|
|
42988
|
-
assign$
|
|
42988
|
+
assign$2(bounds, {
|
|
42989
42989
|
width: bbox.width,
|
|
42990
42990
|
x: bbox.x
|
|
42991
42991
|
});
|
|
42992
42992
|
|
|
42993
|
-
assign$
|
|
42993
|
+
assign$2(style, {
|
|
42994
42994
|
fontSize: defaultFontSize + 'px',
|
|
42995
42995
|
lineHeight: defaultLineHeight,
|
|
42996
42996
|
paddingTop: (7 * zoom) + 'px',
|
|
@@ -43006,14 +43006,14 @@
|
|
|
43006
43006
|
|
|
43007
43007
|
// external labels for events, data elements, gateways, groups and connections
|
|
43008
43008
|
if (target.labelTarget) {
|
|
43009
|
-
assign$
|
|
43009
|
+
assign$2(bounds, {
|
|
43010
43010
|
width: width,
|
|
43011
43011
|
height: bbox.height + paddingTop + paddingBottom,
|
|
43012
43012
|
x: mid.x - width / 2,
|
|
43013
43013
|
y: bbox.y - paddingTop
|
|
43014
43014
|
});
|
|
43015
43015
|
|
|
43016
|
-
assign$
|
|
43016
|
+
assign$2(style, {
|
|
43017
43017
|
fontSize: externalFontSize + 'px',
|
|
43018
43018
|
lineHeight: externalLineHeight,
|
|
43019
43019
|
paddingTop: paddingTop + 'px',
|
|
@@ -43037,14 +43037,14 @@
|
|
|
43037
43037
|
|
|
43038
43038
|
var height = externalFontSize + paddingTop + paddingBottom;
|
|
43039
43039
|
|
|
43040
|
-
assign$
|
|
43040
|
+
assign$2(bounds, {
|
|
43041
43041
|
width: width,
|
|
43042
43042
|
height: height,
|
|
43043
43043
|
x: absoluteBBox.x - width / 2,
|
|
43044
43044
|
y: absoluteBBox.y - height / 2
|
|
43045
43045
|
});
|
|
43046
43046
|
|
|
43047
|
-
assign$
|
|
43047
|
+
assign$2(style, {
|
|
43048
43048
|
fontSize: externalFontSize + 'px',
|
|
43049
43049
|
lineHeight: externalLineHeight,
|
|
43050
43050
|
paddingTop: paddingTop + 'px',
|
|
@@ -43054,14 +43054,14 @@
|
|
|
43054
43054
|
|
|
43055
43055
|
// text annotations
|
|
43056
43056
|
if (is$8(element, 'bpmn:TextAnnotation')) {
|
|
43057
|
-
assign$
|
|
43057
|
+
assign$2(bounds, {
|
|
43058
43058
|
width: bbox.width,
|
|
43059
43059
|
height: bbox.height,
|
|
43060
43060
|
minWidth: 30 * zoom,
|
|
43061
43061
|
minHeight: 10 * zoom
|
|
43062
43062
|
});
|
|
43063
43063
|
|
|
43064
|
-
assign$
|
|
43064
|
+
assign$2(style, {
|
|
43065
43065
|
textAlign: 'left',
|
|
43066
43066
|
paddingTop: (5 * zoom) + 'px',
|
|
43067
43067
|
paddingBottom: (7 * zoom) + 'px',
|
|
@@ -43824,7 +43824,7 @@
|
|
|
43824
43824
|
var participantBounds = getParticipantBounds(shape, childrenBBox);
|
|
43825
43825
|
|
|
43826
43826
|
// assign width and height
|
|
43827
|
-
assign$
|
|
43827
|
+
assign$2(shape, participantBounds);
|
|
43828
43828
|
|
|
43829
43829
|
// assign create constraints
|
|
43830
43830
|
context.createConstraints = getParticipantCreateConstraints(shape, childrenBBox);
|
|
@@ -44740,7 +44740,7 @@
|
|
|
44740
44740
|
}
|
|
44741
44741
|
|
|
44742
44742
|
function copy(obj) {
|
|
44743
|
-
return assign$
|
|
44743
|
+
return assign$2({}, obj);
|
|
44744
44744
|
}
|
|
44745
44745
|
|
|
44746
44746
|
function EventBasedGatewayBehavior(eventBus, modeling) {
|
|
@@ -45024,7 +45024,7 @@
|
|
|
45024
45024
|
return category;
|
|
45025
45025
|
}
|
|
45026
45026
|
|
|
45027
|
-
var LOWER_PRIORITY$
|
|
45027
|
+
var LOWER_PRIORITY$2 = 770;
|
|
45028
45028
|
|
|
45029
45029
|
|
|
45030
45030
|
/**
|
|
@@ -45265,7 +45265,7 @@
|
|
|
45265
45265
|
return moddleCopy.copyElement(bo, targetBo, null, clone);
|
|
45266
45266
|
}
|
|
45267
45267
|
|
|
45268
|
-
eventBus.on('copyPaste.copyElement', LOWER_PRIORITY$
|
|
45268
|
+
eventBus.on('copyPaste.copyElement', LOWER_PRIORITY$2, function(context) {
|
|
45269
45269
|
var descriptor = context.descriptor,
|
|
45270
45270
|
element = context.element;
|
|
45271
45271
|
|
|
@@ -45287,7 +45287,7 @@
|
|
|
45287
45287
|
}
|
|
45288
45288
|
});
|
|
45289
45289
|
|
|
45290
|
-
eventBus.on('copyPaste.pasteElement', LOWER_PRIORITY$
|
|
45290
|
+
eventBus.on('copyPaste.pasteElement', LOWER_PRIORITY$2, function(context) {
|
|
45291
45291
|
var descriptor = context.descriptor,
|
|
45292
45292
|
businessObject = descriptor.businessObject,
|
|
45293
45293
|
categoryValue = descriptor.categoryValue,
|
|
@@ -46202,7 +46202,7 @@
|
|
|
46202
46202
|
element.di = di;
|
|
46203
46203
|
}
|
|
46204
46204
|
|
|
46205
|
-
assign$
|
|
46205
|
+
assign$2(di.label.bounds, {
|
|
46206
46206
|
x: element.x,
|
|
46207
46207
|
y: element.y,
|
|
46208
46208
|
width: element.width,
|
|
@@ -46215,7 +46215,7 @@
|
|
|
46215
46215
|
var context = event.context,
|
|
46216
46216
|
connection = context.connection,
|
|
46217
46217
|
label = connection.label,
|
|
46218
|
-
hints = assign$
|
|
46218
|
+
hints = assign$2({}, context.hints),
|
|
46219
46219
|
newWaypoints = context.newWaypoints || connection.waypoints,
|
|
46220
46220
|
oldWaypoints = context.oldWaypoints;
|
|
46221
46221
|
|
|
@@ -46457,7 +46457,7 @@
|
|
|
46457
46457
|
|
|
46458
46458
|
var context = event.context,
|
|
46459
46459
|
connection = context.connection,
|
|
46460
|
-
hints = assign$
|
|
46460
|
+
hints = assign$2({}, context.hints),
|
|
46461
46461
|
newWaypoints = context.newWaypoints || connection.waypoints,
|
|
46462
46462
|
oldWaypoints = context.oldWaypoints;
|
|
46463
46463
|
|
|
@@ -50527,7 +50527,7 @@
|
|
|
50527
50527
|
|
|
50528
50528
|
var spaceToolConstraints = getSpaceToolConstraints(elements, axis, direction, start, minDimensions);
|
|
50529
50529
|
|
|
50530
|
-
assign$
|
|
50530
|
+
assign$2(
|
|
50531
50531
|
context,
|
|
50532
50532
|
elements,
|
|
50533
50533
|
{
|
|
@@ -51809,7 +51809,7 @@
|
|
|
51809
51809
|
'<div class="djs-tooltip-container" />'
|
|
51810
51810
|
);
|
|
51811
51811
|
|
|
51812
|
-
assign(root, {
|
|
51812
|
+
assign$1(root, {
|
|
51813
51813
|
position: 'absolute',
|
|
51814
51814
|
width: '0',
|
|
51815
51815
|
height: '0'
|
|
@@ -51822,7 +51822,7 @@
|
|
|
51822
51822
|
|
|
51823
51823
|
|
|
51824
51824
|
function setPosition(el, x, y) {
|
|
51825
|
-
assign(el, { left: x + 'px', top: y + 'px' });
|
|
51825
|
+
assign$1(el, { left: x + 'px', top: y + 'px' });
|
|
51826
51826
|
}
|
|
51827
51827
|
|
|
51828
51828
|
function setVisible(el, visible) {
|
|
@@ -51944,7 +51944,7 @@
|
|
|
51944
51944
|
|
|
51945
51945
|
var id = this._ids.next();
|
|
51946
51946
|
|
|
51947
|
-
tooltip = assign$
|
|
51947
|
+
tooltip = assign$2({}, this._tooltipDefaults, tooltip, {
|
|
51948
51948
|
id: id
|
|
51949
51949
|
});
|
|
51950
51950
|
|
|
@@ -52087,7 +52087,7 @@
|
|
|
52087
52087
|
}
|
|
52088
52088
|
|
|
52089
52089
|
htmlContainer = domify$1('<div data-tooltip-id="' + id + '" class="' + tooltipClass + '">');
|
|
52090
|
-
assign(htmlContainer, { position: 'absolute' });
|
|
52090
|
+
assign$1(htmlContainer, { position: 'absolute' });
|
|
52091
52091
|
|
|
52092
52092
|
htmlContainer.appendChild(html);
|
|
52093
52093
|
|
|
@@ -52778,7 +52778,7 @@
|
|
|
52778
52778
|
|
|
52779
52779
|
|
|
52780
52780
|
BpmnFactory.prototype.createDiShape = function(semantic, attrs) {
|
|
52781
|
-
return this.create('bpmndi:BPMNShape', assign$
|
|
52781
|
+
return this.create('bpmndi:BPMNShape', assign$2({
|
|
52782
52782
|
bpmnElement: semantic,
|
|
52783
52783
|
bounds: this.createDiBounds()
|
|
52784
52784
|
}, attrs));
|
|
@@ -52804,14 +52804,14 @@
|
|
|
52804
52804
|
|
|
52805
52805
|
|
|
52806
52806
|
BpmnFactory.prototype.createDiEdge = function(semantic, attrs) {
|
|
52807
|
-
return this.create('bpmndi:BPMNEdge', assign$
|
|
52807
|
+
return this.create('bpmndi:BPMNEdge', assign$2({
|
|
52808
52808
|
bpmnElement: semantic,
|
|
52809
52809
|
waypoint: this.createDiWaypoints([])
|
|
52810
52810
|
}, attrs));
|
|
52811
52811
|
};
|
|
52812
52812
|
|
|
52813
52813
|
BpmnFactory.prototype.createDiPlane = function(semantic, attrs) {
|
|
52814
|
-
return this.create('bpmndi:BPMNPlane', assign$
|
|
52814
|
+
return this.create('bpmndi:BPMNPlane', assign$2({
|
|
52815
52815
|
bpmnElement: semantic
|
|
52816
52816
|
}, attrs));
|
|
52817
52817
|
};
|
|
@@ -53141,7 +53141,7 @@
|
|
|
53141
53141
|
if (embeddedLabelBounds) {
|
|
53142
53142
|
var embeddedLabelBoundsDelta = delta(embeddedLabelBounds, di.get('bounds'));
|
|
53143
53143
|
|
|
53144
|
-
assign$
|
|
53144
|
+
assign$2(embeddedLabelBounds, {
|
|
53145
53145
|
x: shape.x + embeddedLabelBoundsDelta.x,
|
|
53146
53146
|
y: shape.y + embeddedLabelBoundsDelta.y
|
|
53147
53147
|
});
|
|
@@ -53156,7 +53156,7 @@
|
|
|
53156
53156
|
target.set('bounds', bounds);
|
|
53157
53157
|
}
|
|
53158
53158
|
|
|
53159
|
-
assign$
|
|
53159
|
+
assign$2(bounds, {
|
|
53160
53160
|
x: shape.x,
|
|
53161
53161
|
y: shape.y,
|
|
53162
53162
|
width: shape.width,
|
|
@@ -53575,7 +53575,7 @@
|
|
|
53575
53575
|
// and wired via attrs
|
|
53576
53576
|
if (elementType === 'label') {
|
|
53577
53577
|
var di = attrs.di || this._bpmnFactory.createDiLabel();
|
|
53578
|
-
return this.baseCreate(elementType, assign$
|
|
53578
|
+
return this.baseCreate(elementType, assign$2({ type: 'label', di: di }, DEFAULT_LABEL_SIZE, attrs));
|
|
53579
53579
|
}
|
|
53580
53580
|
|
|
53581
53581
|
return this.createBpmnElement(elementType, attrs);
|
|
@@ -53585,7 +53585,7 @@
|
|
|
53585
53585
|
var size,
|
|
53586
53586
|
translate = this._translate;
|
|
53587
53587
|
|
|
53588
|
-
attrs = assign$
|
|
53588
|
+
attrs = assign$2({}, attrs || {});
|
|
53589
53589
|
|
|
53590
53590
|
var businessObject = attrs.businessObject,
|
|
53591
53591
|
di = attrs.di;
|
|
@@ -53601,7 +53601,7 @@
|
|
|
53601
53601
|
}
|
|
53602
53602
|
|
|
53603
53603
|
if (!isModdleDi(di)) {
|
|
53604
|
-
var diAttrs = assign$
|
|
53604
|
+
var diAttrs = assign$2(
|
|
53605
53605
|
{},
|
|
53606
53606
|
di || {},
|
|
53607
53607
|
{ id: businessObject.id + '_di' }
|
|
@@ -53618,7 +53618,7 @@
|
|
|
53618
53618
|
}
|
|
53619
53619
|
|
|
53620
53620
|
if (is$8(businessObject, 'bpmn:Group')) {
|
|
53621
|
-
attrs = assign$
|
|
53621
|
+
attrs = assign$2({
|
|
53622
53622
|
isFrame: true
|
|
53623
53623
|
}, attrs);
|
|
53624
53624
|
}
|
|
@@ -53673,7 +53673,7 @@
|
|
|
53673
53673
|
|
|
53674
53674
|
size = this.getDefaultSize(businessObject, di);
|
|
53675
53675
|
|
|
53676
|
-
attrs = assign$
|
|
53676
|
+
attrs = assign$2({
|
|
53677
53677
|
id: businessObject.id
|
|
53678
53678
|
}, size, attrs, {
|
|
53679
53679
|
businessObject: businessObject,
|
|
@@ -53754,7 +53754,7 @@
|
|
|
53754
53754
|
attrs = { isExpanded: attrs };
|
|
53755
53755
|
}
|
|
53756
53756
|
|
|
53757
|
-
attrs = assign$
|
|
53757
|
+
attrs = assign$2({ type: 'bpmn:Participant' }, attrs || {});
|
|
53758
53758
|
|
|
53759
53759
|
// participants are expanded by default
|
|
53760
53760
|
if (attrs.isExpanded !== false) {
|
|
@@ -54085,7 +54085,7 @@
|
|
|
54085
54085
|
});
|
|
54086
54086
|
}
|
|
54087
54087
|
|
|
54088
|
-
assign$
|
|
54088
|
+
assign$2(element, {
|
|
54089
54089
|
x: round$3(element.x - bbox.x - bbox.width / 2 + position.x),
|
|
54090
54090
|
y: round$3(element.y - bbox.y - bbox.height / 2 + position.y)
|
|
54091
54091
|
});
|
|
@@ -54117,7 +54117,7 @@
|
|
|
54117
54117
|
return;
|
|
54118
54118
|
}
|
|
54119
54119
|
|
|
54120
|
-
var createShapeHints = assign$
|
|
54120
|
+
var createShapeHints = assign$2({}, hints);
|
|
54121
54121
|
|
|
54122
54122
|
if (parents.indexOf(element) === -1) {
|
|
54123
54123
|
createShapeHints.autoResize = false;
|
|
@@ -54200,9 +54200,9 @@
|
|
|
54200
54200
|
|
|
54201
54201
|
// (1) add at event center position _or_ at given bounds
|
|
54202
54202
|
if (positionOrBounds.width !== undefined) {
|
|
54203
|
-
assign$
|
|
54203
|
+
assign$2(shape, positionOrBounds);
|
|
54204
54204
|
} else {
|
|
54205
|
-
assign$
|
|
54205
|
+
assign$2(shape, {
|
|
54206
54206
|
x: positionOrBounds.x - round$2(shape.width / 2),
|
|
54207
54207
|
y: positionOrBounds.y - round$2(shape.height / 2)
|
|
54208
54208
|
});
|
|
@@ -54696,7 +54696,7 @@
|
|
|
54696
54696
|
|
|
54697
54697
|
var oldWaypoints = connection.waypoints;
|
|
54698
54698
|
|
|
54699
|
-
assign$
|
|
54699
|
+
assign$2(context, {
|
|
54700
54700
|
oldWaypoints: oldWaypoints
|
|
54701
54701
|
});
|
|
54702
54702
|
|
|
@@ -54808,7 +54808,7 @@
|
|
|
54808
54808
|
|
|
54809
54809
|
var newClosure = getClosure(elements, !!isTopLevel, this);
|
|
54810
54810
|
|
|
54811
|
-
assign$
|
|
54811
|
+
assign$2(this, newClosure);
|
|
54812
54812
|
|
|
54813
54813
|
return this;
|
|
54814
54814
|
};
|
|
@@ -54985,7 +54985,7 @@
|
|
|
54985
54985
|
add$5(newParent.children, shape, newParentIndex);
|
|
54986
54986
|
|
|
54987
54987
|
// update shape parent + position
|
|
54988
|
-
assign$
|
|
54988
|
+
assign$2(shape, {
|
|
54989
54989
|
parent: newParent,
|
|
54990
54990
|
x: shape.x + delta.x,
|
|
54991
54991
|
y: shape.y + delta.y
|
|
@@ -55033,7 +55033,7 @@
|
|
|
55033
55033
|
add$5(oldParent.children, shape, oldParentIndex);
|
|
55034
55034
|
|
|
55035
55035
|
// revert to old position and parent
|
|
55036
|
-
assign$
|
|
55036
|
+
assign$2(shape, {
|
|
55037
55037
|
parent: oldParent,
|
|
55038
55038
|
x: shape.x - delta.x,
|
|
55039
55039
|
y: shape.y - delta.y
|
|
@@ -55365,7 +55365,7 @@
|
|
|
55365
55365
|
};
|
|
55366
55366
|
|
|
55367
55367
|
// update shape
|
|
55368
|
-
assign$
|
|
55368
|
+
assign$2(shape, {
|
|
55369
55369
|
width: newBounds.width,
|
|
55370
55370
|
height: newBounds.height,
|
|
55371
55371
|
x: newBounds.x,
|
|
@@ -55406,7 +55406,7 @@
|
|
|
55406
55406
|
oldBounds = context.oldBounds;
|
|
55407
55407
|
|
|
55408
55408
|
// restore previous bbox
|
|
55409
|
-
assign$
|
|
55409
|
+
assign$2(shape, {
|
|
55410
55410
|
width: oldBounds.width,
|
|
55411
55411
|
height: oldBounds.height,
|
|
55412
55412
|
x: oldBounds.x,
|
|
@@ -55563,7 +55563,7 @@
|
|
|
55563
55563
|
// helpers //////////
|
|
55564
55564
|
|
|
55565
55565
|
function copyWaypoint(waypoint) {
|
|
55566
|
-
return assign$
|
|
55566
|
+
return assign$2({}, waypoint);
|
|
55567
55567
|
}
|
|
55568
55568
|
|
|
55569
55569
|
function copyWaypoints(connection) {
|
|
@@ -55686,7 +55686,7 @@
|
|
|
55686
55686
|
result[element.id] = element.hidden;
|
|
55687
55687
|
|
|
55688
55688
|
if (element.children) {
|
|
55689
|
-
result = assign$
|
|
55689
|
+
result = assign$2({}, result, getElementsVisibilityRecursive(element.children));
|
|
55690
55690
|
}
|
|
55691
55691
|
});
|
|
55692
55692
|
|
|
@@ -56433,7 +56433,7 @@
|
|
|
56433
56433
|
hints = {};
|
|
56434
56434
|
}
|
|
56435
56435
|
|
|
56436
|
-
this.reconnect(connection, newSource, connection.target, dockingOrPoints, assign$
|
|
56436
|
+
this.reconnect(connection, newSource, connection.target, dockingOrPoints, assign$2(hints, {
|
|
56437
56437
|
docking: 'source'
|
|
56438
56438
|
}));
|
|
56439
56439
|
};
|
|
@@ -56452,7 +56452,7 @@
|
|
|
56452
56452
|
hints = {};
|
|
56453
56453
|
}
|
|
56454
56454
|
|
|
56455
|
-
this.reconnect(connection, connection.source, newTarget, dockingOrPoints, assign$
|
|
56455
|
+
this.reconnect(connection, connection.source, newTarget, dockingOrPoints, assign$2(hints, {
|
|
56456
56456
|
docking: 'target'
|
|
56457
56457
|
}));
|
|
56458
56458
|
};
|
|
@@ -56798,7 +56798,7 @@
|
|
|
56798
56798
|
*/
|
|
56799
56799
|
function unwrapBusinessObjects(properties) {
|
|
56800
56800
|
|
|
56801
|
-
var unwrappedProps = assign$
|
|
56801
|
+
var unwrappedProps = assign$2({}, properties);
|
|
56802
56802
|
|
|
56803
56803
|
referencePropertyNames.forEach(function(name) {
|
|
56804
56804
|
if (name in properties) {
|
|
@@ -57423,12 +57423,12 @@
|
|
|
57423
57423
|
var di = {};
|
|
57424
57424
|
|
|
57425
57425
|
if ('fill' in colors) {
|
|
57426
|
-
assign$
|
|
57426
|
+
assign$2(di, {
|
|
57427
57427
|
'background-color': this._normalizeColor(colors.fill) });
|
|
57428
57428
|
}
|
|
57429
57429
|
|
|
57430
57430
|
if ('stroke' in colors) {
|
|
57431
|
-
assign$
|
|
57431
|
+
assign$2(di, {
|
|
57432
57432
|
'border-color': this._normalizeColor(colors.stroke) });
|
|
57433
57433
|
}
|
|
57434
57434
|
|
|
@@ -58221,7 +58221,7 @@
|
|
|
58221
58221
|
end = getMid(target);
|
|
58222
58222
|
}
|
|
58223
58223
|
|
|
58224
|
-
hints = assign$
|
|
58224
|
+
hints = assign$2({ preferredLayouts: [] }, hints);
|
|
58225
58225
|
waypoints = waypoints || [];
|
|
58226
58226
|
|
|
58227
58227
|
var preferredLayouts = hints.preferredLayouts,
|
|
@@ -58721,7 +58721,7 @@
|
|
|
58721
58721
|
}
|
|
58722
58722
|
|
|
58723
58723
|
if (manhattanOptions) {
|
|
58724
|
-
manhattanOptions = assign$
|
|
58724
|
+
manhattanOptions = assign$2(manhattanOptions, hints);
|
|
58725
58725
|
|
|
58726
58726
|
updatedWaypoints = withoutRedundantPoints(repairConnection(
|
|
58727
58727
|
source,
|
|
@@ -59012,7 +59012,7 @@
|
|
|
59012
59012
|
|
|
59013
59013
|
// use the dockings actual point and
|
|
59014
59014
|
// retain the original docking
|
|
59015
|
-
return assign$
|
|
59015
|
+
return assign$2({ original: docking.point.original || docking.point }, docking.actual);
|
|
59016
59016
|
}
|
|
59017
59017
|
|
|
59018
59018
|
|
|
@@ -59204,7 +59204,7 @@
|
|
|
59204
59204
|
shapes = removeNested(shapes);
|
|
59205
59205
|
|
|
59206
59206
|
// attach shapes to drag context
|
|
59207
|
-
assign$
|
|
59207
|
+
assign$2(context, {
|
|
59208
59208
|
shapes: shapes,
|
|
59209
59209
|
validatedShapes: shapes,
|
|
59210
59210
|
shape: shape
|
|
@@ -59856,7 +59856,7 @@
|
|
|
59856
59856
|
|
|
59857
59857
|
Palette.prototype._update = function() {
|
|
59858
59858
|
|
|
59859
|
-
var entriesContainer = query('.djs-palette-entries', this._container),
|
|
59859
|
+
var entriesContainer = query$1('.djs-palette-entries', this._container),
|
|
59860
59860
|
entries = this._entries = this.getEntries();
|
|
59861
59861
|
|
|
59862
59862
|
clear$1(entriesContainer);
|
|
@@ -59865,7 +59865,7 @@
|
|
|
59865
59865
|
|
|
59866
59866
|
var grouping = entry.group || 'default';
|
|
59867
59867
|
|
|
59868
|
-
var container = query('[data-group=' + escapeCSS(grouping) + ']', entriesContainer);
|
|
59868
|
+
var container = query$1('[data-group=' + escapeCSS(grouping) + ']', entriesContainer);
|
|
59869
59869
|
if (!container) {
|
|
59870
59870
|
container = domify$1('<div class="group"></div>');
|
|
59871
59871
|
attr$1(container, 'data-group', grouping);
|
|
@@ -60018,9 +60018,9 @@
|
|
|
60018
60018
|
toolsContainer;
|
|
60019
60019
|
|
|
60020
60020
|
if (!this._toolsContainer) {
|
|
60021
|
-
entriesContainer = query('.djs-palette-entries', this._container);
|
|
60021
|
+
entriesContainer = query$1('.djs-palette-entries', this._container);
|
|
60022
60022
|
|
|
60023
|
-
this._toolsContainer = query('[data-group=tools]', entriesContainer);
|
|
60023
|
+
this._toolsContainer = query$1('[data-group=tools]', entriesContainer);
|
|
60024
60024
|
}
|
|
60025
60025
|
|
|
60026
60026
|
toolsContainer = this._toolsContainer;
|
|
@@ -60770,7 +60770,7 @@
|
|
|
60770
60770
|
function createAction(type, group, className, title, options) {
|
|
60771
60771
|
|
|
60772
60772
|
function createListener(event) {
|
|
60773
|
-
var shape = elementFactory.createShape(assign$
|
|
60773
|
+
var shape = elementFactory.createShape(assign$2({ type: type }, options));
|
|
60774
60774
|
|
|
60775
60775
|
if (options) {
|
|
60776
60776
|
var di = getDi$1(shape);
|
|
@@ -60819,7 +60819,7 @@
|
|
|
60819
60819
|
create.start(event, elementFactory.createParticipantShape());
|
|
60820
60820
|
}
|
|
60821
60821
|
|
|
60822
|
-
assign$
|
|
60822
|
+
assign$2(actions, {
|
|
60823
60823
|
'hand-tool': {
|
|
60824
60824
|
group: 'tools',
|
|
60825
60825
|
className: 'bpmn-icon-hand-tool',
|
|
@@ -60966,7 +60966,7 @@
|
|
|
60966
60966
|
|
|
60967
60967
|
var element = elementRegistry.get(id);
|
|
60968
60968
|
|
|
60969
|
-
assign$
|
|
60969
|
+
assign$2(newElement, { x: element.x, y: element.y });
|
|
60970
60970
|
|
|
60971
60971
|
// create a temporary shape
|
|
60972
60972
|
var tempShape = elementFactory.createShape(newElement);
|
|
@@ -60974,7 +60974,7 @@
|
|
|
60974
60974
|
canvas.addShape(tempShape, element.parent);
|
|
60975
60975
|
|
|
60976
60976
|
// select the original SVG element related to the element and hide it
|
|
60977
|
-
var gfx = query('[data-element-id="' + escapeCSS(element.id) + '"]', context.dragGroup);
|
|
60977
|
+
var gfx = query$1('[data-element-id="' + escapeCSS(element.id) + '"]', context.dragGroup);
|
|
60978
60978
|
|
|
60979
60979
|
if (gfx) {
|
|
60980
60980
|
attr(gfx, { display: 'none' });
|
|
@@ -61000,7 +61000,7 @@
|
|
|
61000
61000
|
|
|
61001
61001
|
forEach$2(visualReplacements, function(dragger, id) {
|
|
61002
61002
|
|
|
61003
|
-
var originalGfx = query('[data-element-id="' + escapeCSS(id) + '"]', context.dragGroup);
|
|
61003
|
+
var originalGfx = query$1('[data-element-id="' + escapeCSS(id) + '"]', context.dragGroup);
|
|
61004
61004
|
|
|
61005
61005
|
if (originalGfx) {
|
|
61006
61006
|
attr(originalGfx, { display: 'inline' });
|
|
@@ -62182,8 +62182,8 @@
|
|
|
62182
62182
|
|
|
62183
62183
|
// setup elements
|
|
62184
62184
|
this._container = domify$1(SearchPad.BOX_HTML);
|
|
62185
|
-
this._searchInput = query(SearchPad.INPUT_SELECTOR, this._container);
|
|
62186
|
-
this._resultsContainer = query(SearchPad.RESULTS_CONTAINER_SELECTOR, this._container);
|
|
62185
|
+
this._searchInput = query$1(SearchPad.INPUT_SELECTOR, this._container);
|
|
62186
|
+
this._resultsContainer = query$1(SearchPad.RESULTS_CONTAINER_SELECTOR, this._container);
|
|
62187
62187
|
|
|
62188
62188
|
// attach search pad
|
|
62189
62189
|
this._canvas.getContainer().appendChild(this._container);
|
|
@@ -62327,7 +62327,7 @@
|
|
|
62327
62327
|
});
|
|
62328
62328
|
|
|
62329
62329
|
// preselect first result
|
|
62330
|
-
var node = query(SearchPad.RESULT_SELECTOR, this._resultsContainer);
|
|
62330
|
+
var node = query$1(SearchPad.RESULT_SELECTOR, this._resultsContainer);
|
|
62331
62331
|
this._scrollToNode(node);
|
|
62332
62332
|
this._preselect(node);
|
|
62333
62333
|
};
|
|
@@ -62394,7 +62394,7 @@
|
|
|
62394
62394
|
* @return {Element}
|
|
62395
62395
|
*/
|
|
62396
62396
|
SearchPad.prototype._getCurrentResult = function() {
|
|
62397
|
-
return query(SearchPad.RESULT_SELECTED_SELECTOR, this._resultsContainer);
|
|
62397
|
+
return query$1(SearchPad.RESULT_SELECTED_SELECTOR, this._resultsContainer);
|
|
62398
62398
|
};
|
|
62399
62399
|
|
|
62400
62400
|
|
|
@@ -62599,7 +62599,7 @@
|
|
|
62599
62599
|
|
|
62600
62600
|
var html = domify$1('<div class="' + SearchPad.OVERLAY_CLASS + '"></div>');
|
|
62601
62601
|
|
|
62602
|
-
assign(html, styles);
|
|
62602
|
+
assign$1(html, styles);
|
|
62603
62603
|
|
|
62604
62604
|
return {
|
|
62605
62605
|
position: {
|
|
@@ -62950,7 +62950,7 @@
|
|
|
62950
62950
|
CopyPasteModule,
|
|
62951
62951
|
CreateModule,
|
|
62952
62952
|
DistributeElementsModule,
|
|
62953
|
-
EditorActionsModule,
|
|
62953
|
+
EditorActionsModule$1,
|
|
62954
62954
|
GridSnappingModule,
|
|
62955
62955
|
InteractionEventsModule,
|
|
62956
62956
|
KeyboardModule,
|
|
@@ -63200,7 +63200,7 @@
|
|
|
63200
63200
|
};
|
|
63201
63201
|
|
|
63202
63202
|
// init dragging
|
|
63203
|
-
assign$
|
|
63203
|
+
assign$2(self._state, {
|
|
63204
63204
|
cachedViewbox: viewbox,
|
|
63205
63205
|
initialDragPosition: {
|
|
63206
63206
|
x: point.x,
|
|
@@ -63234,7 +63234,7 @@
|
|
|
63234
63234
|
viewportClientRect = self._state.viewportClientRect,
|
|
63235
63235
|
parentClientRect = self._state.parentClientRect;
|
|
63236
63236
|
|
|
63237
|
-
assign$
|
|
63237
|
+
assign$2(self._viewportDom.style, {
|
|
63238
63238
|
top: (point.y - offsetViewportDom.y - parentClientRect.top) + 'px',
|
|
63239
63239
|
left: (point.x - offsetViewportDom.x - parentClientRect.left) + 'px'
|
|
63240
63240
|
});
|
|
@@ -63247,7 +63247,7 @@
|
|
|
63247
63247
|
height: viewportClientRect.height
|
|
63248
63248
|
});
|
|
63249
63249
|
|
|
63250
|
-
assign$
|
|
63250
|
+
assign$2(self._overlay.style, {
|
|
63251
63251
|
clipPath: clipPath
|
|
63252
63252
|
});
|
|
63253
63253
|
|
|
@@ -63277,7 +63277,7 @@
|
|
|
63277
63277
|
self._update();
|
|
63278
63278
|
|
|
63279
63279
|
// end dragging
|
|
63280
|
-
assign$
|
|
63280
|
+
assign$2(self._state, {
|
|
63281
63281
|
cachedViewbox: null,
|
|
63282
63282
|
initialDragPosition: null,
|
|
63283
63283
|
isDragging: false,
|
|
@@ -63588,7 +63588,7 @@
|
|
|
63588
63588
|
height: viewportClientRect.height
|
|
63589
63589
|
};
|
|
63590
63590
|
|
|
63591
|
-
assign$
|
|
63591
|
+
assign$2(this._viewportDom.style, {
|
|
63592
63592
|
top: withoutParentOffset.top + 'px',
|
|
63593
63593
|
left: withoutParentOffset.left + 'px',
|
|
63594
63594
|
width: withoutParentOffset.width + 'px',
|
|
@@ -63598,13 +63598,13 @@
|
|
|
63598
63598
|
// update overlay
|
|
63599
63599
|
var clipPath = getOverlayClipPath(parentClientRect, withoutParentOffset);
|
|
63600
63600
|
|
|
63601
|
-
assign$
|
|
63601
|
+
assign$2(this._overlay.style, {
|
|
63602
63602
|
clipPath: clipPath
|
|
63603
63603
|
});
|
|
63604
63604
|
};
|
|
63605
63605
|
|
|
63606
63606
|
Minimap.prototype.open = function() {
|
|
63607
|
-
assign$
|
|
63607
|
+
assign$2(this._state, { isOpen: true });
|
|
63608
63608
|
|
|
63609
63609
|
classes$1(this._parent).add('open');
|
|
63610
63610
|
|
|
@@ -63618,7 +63618,7 @@
|
|
|
63618
63618
|
};
|
|
63619
63619
|
|
|
63620
63620
|
Minimap.prototype.close = function() {
|
|
63621
|
-
assign$
|
|
63621
|
+
assign$2(this._state, { isOpen: false });
|
|
63622
63622
|
|
|
63623
63623
|
classes$1(this._parent).remove('open');
|
|
63624
63624
|
|
|
@@ -63670,7 +63670,7 @@
|
|
|
63670
63670
|
Minimap.prototype._updateElementId = function(element, newId) {
|
|
63671
63671
|
|
|
63672
63672
|
try {
|
|
63673
|
-
var elementGfx = query('#' + cssEscape(element.id), this._elementsGroup);
|
|
63673
|
+
var elementGfx = query$1('#' + cssEscape(element.id), this._elementsGroup);
|
|
63674
63674
|
|
|
63675
63675
|
if (elementGfx) {
|
|
63676
63676
|
elementGfx.id = newId;
|
|
@@ -63718,7 +63718,7 @@
|
|
|
63718
63718
|
x, y;
|
|
63719
63719
|
|
|
63720
63720
|
var newElementGfx = this._createElement(element);
|
|
63721
|
-
var newElementParentGfx = query('#' + cssEscape(element.parent.id), this._elementsGroup);
|
|
63721
|
+
var newElementParentGfx = query$1('#' + cssEscape(element.parent.id), this._elementsGroup);
|
|
63722
63722
|
|
|
63723
63723
|
if (newElementGfx) {
|
|
63724
63724
|
|
|
@@ -63865,7 +63865,7 @@
|
|
|
63865
63865
|
var aspectRatio = bounds.width / bounds.height;
|
|
63866
63866
|
|
|
63867
63867
|
// assigning to bounds throws exception in IE11
|
|
63868
|
-
var newBounds = assign$
|
|
63868
|
+
var newBounds = assign$2({}, {
|
|
63869
63869
|
x: bounds.x,
|
|
63870
63870
|
y: bounds.y,
|
|
63871
63871
|
width: bounds.width,
|
|
@@ -63878,7 +63878,7 @@
|
|
|
63878
63878
|
var height = newBounds.width * (1 / targetAspectRatio),
|
|
63879
63879
|
y = newBounds.y - ((height - newBounds.height) / 2);
|
|
63880
63880
|
|
|
63881
|
-
assign$
|
|
63881
|
+
assign$2(newBounds, {
|
|
63882
63882
|
y: y,
|
|
63883
63883
|
height: height
|
|
63884
63884
|
});
|
|
@@ -63888,7 +63888,7 @@
|
|
|
63888
63888
|
var width = newBounds.height * targetAspectRatio,
|
|
63889
63889
|
x = newBounds.x - ((width - newBounds.width) / 2);
|
|
63890
63890
|
|
|
63891
|
-
assign$
|
|
63891
|
+
assign$2(newBounds, {
|
|
63892
63892
|
x: x,
|
|
63893
63893
|
width: width
|
|
63894
63894
|
});
|
|
@@ -63914,7 +63914,7 @@
|
|
|
63914
63914
|
* '-g.djs-element // childGfx
|
|
63915
63915
|
*/
|
|
63916
63916
|
function getIndexOfChildInParentChildren(childGfx, parentGfx) {
|
|
63917
|
-
var childrenGroup = query('.djs-children', parentGfx.parentNode);
|
|
63917
|
+
var childrenGroup = query$1('.djs-children', parentGfx.parentNode);
|
|
63918
63918
|
|
|
63919
63919
|
if (!childrenGroup) {
|
|
63920
63920
|
return;
|
|
@@ -63925,7 +63925,7 @@
|
|
|
63925
63925
|
var indexOfChild = -1;
|
|
63926
63926
|
|
|
63927
63927
|
childrenArray.forEach(function(childGroup, index) {
|
|
63928
|
-
if (query('.djs-element', childGroup) === childGfx) {
|
|
63928
|
+
if (query$1('.djs-element', childGroup) === childGfx) {
|
|
63929
63929
|
indexOfChild = index;
|
|
63930
63930
|
}
|
|
63931
63931
|
});
|
|
@@ -63948,7 +63948,7 @@
|
|
|
63948
63948
|
}
|
|
63949
63949
|
|
|
63950
63950
|
function getChildContainer(parentGfx) {
|
|
63951
|
-
var container = query('.children', parentGfx);
|
|
63951
|
+
var container = query$1('.children', parentGfx);
|
|
63952
63952
|
|
|
63953
63953
|
if (!container) {
|
|
63954
63954
|
container = create$1('g', { class: 'children' });
|
|
@@ -64039,7 +64039,7 @@
|
|
|
64039
64039
|
};
|
|
64040
64040
|
}
|
|
64041
64041
|
|
|
64042
|
-
var index$
|
|
64042
|
+
var index$6 = {
|
|
64043
64043
|
__init__: [ 'minimap' ],
|
|
64044
64044
|
minimap: [ 'type', Minimap ]
|
|
64045
64045
|
};
|
|
@@ -64088,7 +64088,7 @@
|
|
|
64088
64088
|
}
|
|
64089
64089
|
|
|
64090
64090
|
Grid.prototype._init = function() {
|
|
64091
|
-
var defs = query('defs', this._canvas._svg);
|
|
64091
|
+
var defs = query$1('defs', this._canvas._svg);
|
|
64092
64092
|
|
|
64093
64093
|
if (!defs) {
|
|
64094
64094
|
defs = create$1('defs');
|
|
@@ -64195,7 +64195,7 @@
|
|
|
64195
64195
|
return Math.trunc(Math.random() * 1000000);
|
|
64196
64196
|
}
|
|
64197
64197
|
|
|
64198
|
-
var index$
|
|
64198
|
+
var index$5 = {
|
|
64199
64199
|
__init__: [ 'grid' ],
|
|
64200
64200
|
grid: [ 'type', Grid ]
|
|
64201
64201
|
};
|
|
@@ -64351,7 +64351,7 @@
|
|
|
64351
64351
|
*/
|
|
64352
64352
|
function applyDefaults(config) {
|
|
64353
64353
|
|
|
64354
|
-
var c = assign$
|
|
64354
|
+
var c = assign$2({}, DEFAULT_OPTIONS, config || {});
|
|
64355
64355
|
|
|
64356
64356
|
if (isNumber$1(c.offset)) {
|
|
64357
64357
|
c.offset = {
|
|
@@ -92266,7 +92266,7 @@
|
|
|
92266
92266
|
}
|
|
92267
92267
|
let observer;
|
|
92268
92268
|
if (ref.current) {
|
|
92269
|
-
const scrollContainer = query(scrollContainerSelector);
|
|
92269
|
+
const scrollContainer = query$1(scrollContainerSelector);
|
|
92270
92270
|
observer = new Observer(entries => {
|
|
92271
92271
|
entries.forEach(entry => {
|
|
92272
92272
|
if (entry.intersectionRatio < 1) {
|
|
@@ -92335,11 +92335,11 @@
|
|
|
92335
92335
|
id,
|
|
92336
92336
|
isEdited
|
|
92337
92337
|
} = entry;
|
|
92338
|
-
const entryNode = query(`[data-entry-id="${id}"]`);
|
|
92338
|
+
const entryNode = query$1(`[data-entry-id="${id}"]`);
|
|
92339
92339
|
if (!isFunction$1(isEdited) || !entryNode) {
|
|
92340
92340
|
return false;
|
|
92341
92341
|
}
|
|
92342
|
-
const inputNode = query('.bio-properties-panel-input', entryNode);
|
|
92342
|
+
const inputNode = query$1('.bio-properties-panel-input', entryNode);
|
|
92343
92343
|
return isEdited(inputNode);
|
|
92344
92344
|
});
|
|
92345
92345
|
setEdited(hasOneEditedEntry);
|
|
@@ -92521,7 +92521,7 @@
|
|
|
92521
92521
|
return get$2(layout, key, defaultValue);
|
|
92522
92522
|
};
|
|
92523
92523
|
const setLayoutForKey = (key, config) => {
|
|
92524
|
-
const newLayout = assign$
|
|
92524
|
+
const newLayout = assign$2({}, layout);
|
|
92525
92525
|
set$2(newLayout, key, config);
|
|
92526
92526
|
setLayout(newLayout);
|
|
92527
92527
|
};
|
|
@@ -92802,8 +92802,8 @@
|
|
|
92802
92802
|
// focus specified entry on auto open
|
|
92803
92803
|
y(() => {
|
|
92804
92804
|
if (autoOpen && autoFocusEntry) {
|
|
92805
|
-
const entry = query(`[data-entry-id="${autoFocusEntry}"]`);
|
|
92806
|
-
const focusableInput = query('.bio-properties-panel-input', entry);
|
|
92805
|
+
const entry = query$1(`[data-entry-id="${autoFocusEntry}"]`);
|
|
92806
|
+
const focusableInput = query$1('.bio-properties-panel-input', entry);
|
|
92807
92807
|
if (focusableInput) {
|
|
92808
92808
|
if (isFunction$1(focusableInput.select)) {
|
|
92809
92809
|
focusableInput.select();
|
|
@@ -93507,11 +93507,11 @@
|
|
|
93507
93507
|
y(() => {
|
|
93508
93508
|
if (newItem && autoFocusEntry) {
|
|
93509
93509
|
// (0) select the parent entry (containing all list items)
|
|
93510
|
-
const entry = query(`[data-entry-id="${id}"]`);
|
|
93510
|
+
const entry = query$1(`[data-entry-id="${id}"]`);
|
|
93511
93511
|
|
|
93512
93512
|
// (1) select the first input or a custom element to be focussed
|
|
93513
93513
|
const selector = typeof autoFocusEntry === 'boolean' ? '.bio-properties-panel-input' : autoFocusEntry;
|
|
93514
|
-
const focusableInput = query(selector, entry);
|
|
93514
|
+
const focusableInput = query$1(selector, entry);
|
|
93515
93515
|
|
|
93516
93516
|
// (2) set focus
|
|
93517
93517
|
if (focusableInput) {
|
|
@@ -94184,7 +94184,7 @@
|
|
|
94184
94184
|
}
|
|
94185
94185
|
debounceInput.$inject = ['config.debounceInput'];
|
|
94186
94186
|
|
|
94187
|
-
var index$
|
|
94187
|
+
var index$4 = {
|
|
94188
94188
|
debounceInput: ['factory', debounceInput]
|
|
94189
94189
|
};
|
|
94190
94190
|
|
|
@@ -97964,7 +97964,7 @@
|
|
|
97964
97964
|
container = container.get(0);
|
|
97965
97965
|
}
|
|
97966
97966
|
if (typeof container === 'string') {
|
|
97967
|
-
container = query(container);
|
|
97967
|
+
container = query$1(container);
|
|
97968
97968
|
}
|
|
97969
97969
|
|
|
97970
97970
|
// (1) detach from old parent
|
|
@@ -98117,7 +98117,7 @@
|
|
|
98117
98117
|
};
|
|
98118
98118
|
|
|
98119
98119
|
var index$3 = {
|
|
98120
|
-
__depends__: [Commands, index$
|
|
98120
|
+
__depends__: [Commands, index$4],
|
|
98121
98121
|
__init__: ['propertiesPanel'],
|
|
98122
98122
|
propertiesPanel: ['type', BpmnPropertiesPanelRenderer]
|
|
98123
98123
|
};
|
|
@@ -98134,8 +98134,8 @@
|
|
|
98134
98134
|
// auto focus specifc other entry when options changed
|
|
98135
98135
|
y(() => {
|
|
98136
98136
|
if (autoFocusEntry && prevOptions && options.length > prevOptions.length) {
|
|
98137
|
-
const entry = query(`[data-entry-id="${autoFocusEntry}"]`);
|
|
98138
|
-
const focusableInput = query('.bio-properties-panel-input', entry);
|
|
98137
|
+
const entry = query$1(`[data-entry-id="${autoFocusEntry}"]`);
|
|
98138
|
+
const focusableInput = query$1('.bio-properties-panel-input', entry);
|
|
98139
98139
|
if (focusableInput) {
|
|
98140
98140
|
focusableInput.select();
|
|
98141
98141
|
}
|
|
@@ -111988,7 +111988,7 @@
|
|
|
111988
111988
|
return scopes;
|
|
111989
111989
|
}
|
|
111990
111990
|
forEach$2(keys(scopes), function (scopeName) {
|
|
111991
|
-
scopesAsArray.push(assign$
|
|
111991
|
+
scopesAsArray.push(assign$2({
|
|
111992
111992
|
type: scopeName
|
|
111993
111993
|
}, scopes[scopeName]));
|
|
111994
111994
|
});
|
|
@@ -112163,7 +112163,7 @@
|
|
|
112163
112163
|
'expression': undefined,
|
|
112164
112164
|
'name': undefined
|
|
112165
112165
|
};
|
|
112166
|
-
const props = assign$
|
|
112166
|
+
const props = assign$2({}, DEFAULT_PROPS);
|
|
112167
112167
|
const {
|
|
112168
112168
|
expression,
|
|
112169
112169
|
name
|
|
@@ -114669,10 +114669,10 @@
|
|
|
114669
114669
|
const CAMUNDA_ERROR_EVENT_DEFINITION_TYPE = 'camunda:errorEventDefinition',
|
|
114670
114670
|
CAMUNDA_INPUT_PARAMETER_TYPE = 'camunda:inputParameter',
|
|
114671
114671
|
CAMUNDA_OUTPUT_PARAMETER_TYPE = 'camunda:outputParameter';
|
|
114672
|
-
const LOWER_PRIORITY = 300;
|
|
114672
|
+
const LOWER_PRIORITY$1 = 300;
|
|
114673
114673
|
class ElementTemplatesPropertiesProvider {
|
|
114674
114674
|
constructor(elementTemplates, propertiesPanel, injector) {
|
|
114675
|
-
propertiesPanel.registerProvider(LOWER_PRIORITY, this);
|
|
114675
|
+
propertiesPanel.registerProvider(LOWER_PRIORITY$1, this);
|
|
114676
114676
|
this._elementTemplates = elementTemplates;
|
|
114677
114677
|
this._injector = injector;
|
|
114678
114678
|
}
|
|
@@ -114872,12 +114872,12 @@
|
|
|
114872
114872
|
: alignToOriginModule,
|
|
114873
114873
|
options.disableGrid
|
|
114874
114874
|
? {}
|
|
114875
|
-
: index$
|
|
114875
|
+
: index$5
|
|
114876
114876
|
];
|
|
114877
114877
|
};
|
|
114878
114878
|
|
|
114879
114879
|
Modeler$1.prototype._extensionModules = [
|
|
114880
|
-
index$
|
|
114880
|
+
index$6,
|
|
114881
114881
|
ExecutableFixModule,
|
|
114882
114882
|
index$3,
|
|
114883
114883
|
index$2
|
|
@@ -119269,6 +119269,18 @@
|
|
|
119269
119269
|
return Number(arg);
|
|
119270
119270
|
}
|
|
119271
119271
|
|
|
119272
|
+
/**
|
|
119273
|
+
* Convenience wrapper for `Object.assign`.
|
|
119274
|
+
*
|
|
119275
|
+
* @param {Object} target
|
|
119276
|
+
* @param {...Object} others
|
|
119277
|
+
*
|
|
119278
|
+
* @return {Object} the target
|
|
119279
|
+
*/
|
|
119280
|
+
function assign(target, ...others) {
|
|
119281
|
+
return Object.assign(target, ...others);
|
|
119282
|
+
}
|
|
119283
|
+
|
|
119272
119284
|
const EVENT_GROUP = {
|
|
119273
119285
|
id: 'events',
|
|
119274
119286
|
name: 'Events'
|
|
@@ -119299,7 +119311,7 @@
|
|
|
119299
119311
|
name: 'Gateways'
|
|
119300
119312
|
};
|
|
119301
119313
|
|
|
119302
|
-
[
|
|
119314
|
+
const NONE_EVENTS = [
|
|
119303
119315
|
{
|
|
119304
119316
|
label: 'Start Event',
|
|
119305
119317
|
actionName: 'none-start-event',
|
|
@@ -119334,7 +119346,7 @@
|
|
|
119334
119346
|
}
|
|
119335
119347
|
].map(option => ({ ...option, group: EVENT_GROUP }));
|
|
119336
119348
|
|
|
119337
|
-
[
|
|
119349
|
+
const TYPED_START_EVENTS = [
|
|
119338
119350
|
{
|
|
119339
119351
|
label: 'Message Start Event',
|
|
119340
119352
|
actionName: 'message-start',
|
|
@@ -119373,7 +119385,7 @@
|
|
|
119373
119385
|
}
|
|
119374
119386
|
].map(option => ({ ...option, group: EVENT_GROUP }));
|
|
119375
119387
|
|
|
119376
|
-
[
|
|
119388
|
+
const TYPED_INTERMEDIATE_EVENT = [
|
|
119377
119389
|
{
|
|
119378
119390
|
label: 'Message Intermediate Catch Event',
|
|
119379
119391
|
actionName: 'message-intermediate-catch',
|
|
@@ -119472,7 +119484,7 @@
|
|
|
119472
119484
|
}
|
|
119473
119485
|
].map(option => ({ ...option, group: EVENT_GROUP }));
|
|
119474
119486
|
|
|
119475
|
-
[
|
|
119487
|
+
const TYPED_BOUNDARY_EVENT = [
|
|
119476
119488
|
{
|
|
119477
119489
|
label: 'Message Boundary Event',
|
|
119478
119490
|
actionName: 'message-boundary',
|
|
@@ -119597,7 +119609,7 @@
|
|
|
119597
119609
|
}
|
|
119598
119610
|
].map(option => ({ ...option, group: EVENT_GROUP }));
|
|
119599
119611
|
|
|
119600
|
-
[
|
|
119612
|
+
const TYPED_END_EVENT = [
|
|
119601
119613
|
{
|
|
119602
119614
|
label: 'Message End Event',
|
|
119603
119615
|
actionName: 'message-end',
|
|
@@ -119663,7 +119675,7 @@
|
|
|
119663
119675
|
}
|
|
119664
119676
|
].map(option => ({ ...option, group: EVENT_GROUP }));
|
|
119665
119677
|
|
|
119666
|
-
[
|
|
119678
|
+
const GATEWAY$1 = [
|
|
119667
119679
|
{
|
|
119668
119680
|
label: 'Exclusive Gateway',
|
|
119669
119681
|
actionName: 'exclusive-gateway',
|
|
@@ -119711,7 +119723,7 @@
|
|
|
119711
119723
|
}
|
|
119712
119724
|
].map(option => ({ ...option, group: GATEWAY_GROUP }));
|
|
119713
119725
|
|
|
119714
|
-
[
|
|
119726
|
+
const SUBPROCESS = [
|
|
119715
119727
|
{
|
|
119716
119728
|
label: 'Transaction',
|
|
119717
119729
|
actionName: 'transaction',
|
|
@@ -119754,7 +119766,7 @@
|
|
|
119754
119766
|
}
|
|
119755
119767
|
].map(option => ({ ...option, group: SUBPROCESS_GROUP }));
|
|
119756
119768
|
|
|
119757
|
-
[
|
|
119769
|
+
const TASK$1 = [
|
|
119758
119770
|
{
|
|
119759
119771
|
label: 'Task',
|
|
119760
119772
|
actionName: 'task',
|
|
@@ -119832,7 +119844,7 @@
|
|
|
119832
119844
|
}
|
|
119833
119845
|
].map(option => ({ ...option, group: TASK_GROUP }));
|
|
119834
119846
|
|
|
119835
|
-
[
|
|
119847
|
+
const DATA_OBJECTS = [
|
|
119836
119848
|
{
|
|
119837
119849
|
label: 'Data Store Reference',
|
|
119838
119850
|
actionName: 'data-store-reference',
|
|
@@ -119851,7 +119863,7 @@
|
|
|
119851
119863
|
}
|
|
119852
119864
|
].map(option => ({ ...option, group: DATA_GROUP }));
|
|
119853
119865
|
|
|
119854
|
-
[
|
|
119866
|
+
const PARTICIPANT$1 = [
|
|
119855
119867
|
{
|
|
119856
119868
|
label: 'Expanded Pool',
|
|
119857
119869
|
search: 'Participant',
|
|
@@ -119874,6 +119886,296 @@
|
|
|
119874
119886
|
}
|
|
119875
119887
|
].map(option => ({ ...option, group: PARTICIPANT_GROUP }));
|
|
119876
119888
|
|
|
119889
|
+
const CREATE_OPTIONS = [
|
|
119890
|
+
...GATEWAY$1,
|
|
119891
|
+
...TASK$1,
|
|
119892
|
+
...SUBPROCESS,
|
|
119893
|
+
...NONE_EVENTS,
|
|
119894
|
+
...TYPED_START_EVENTS,
|
|
119895
|
+
...TYPED_INTERMEDIATE_EVENT,
|
|
119896
|
+
...TYPED_END_EVENT,
|
|
119897
|
+
...TYPED_BOUNDARY_EVENT,
|
|
119898
|
+
...DATA_OBJECTS,
|
|
119899
|
+
...PARTICIPANT$1
|
|
119900
|
+
];
|
|
119901
|
+
|
|
119902
|
+
/**
|
|
119903
|
+
* This module is an append menu provider for the popup menu.
|
|
119904
|
+
*/
|
|
119905
|
+
function AppendMenuProvider(
|
|
119906
|
+
elementFactory, popupMenu,
|
|
119907
|
+
create, autoPlace, rules,
|
|
119908
|
+
mouse, translate
|
|
119909
|
+
) {
|
|
119910
|
+
|
|
119911
|
+
this._elementFactory = elementFactory;
|
|
119912
|
+
this._popupMenu = popupMenu;
|
|
119913
|
+
this._create = create;
|
|
119914
|
+
this._autoPlace = autoPlace;
|
|
119915
|
+
this._rules = rules;
|
|
119916
|
+
this._create = create;
|
|
119917
|
+
this._mouse = mouse;
|
|
119918
|
+
this._translate = translate;
|
|
119919
|
+
|
|
119920
|
+
this.register();
|
|
119921
|
+
}
|
|
119922
|
+
|
|
119923
|
+
AppendMenuProvider.$inject = [
|
|
119924
|
+
'elementFactory',
|
|
119925
|
+
'popupMenu',
|
|
119926
|
+
'create',
|
|
119927
|
+
'autoPlace',
|
|
119928
|
+
'rules',
|
|
119929
|
+
'mouse',
|
|
119930
|
+
'translate'
|
|
119931
|
+
];
|
|
119932
|
+
|
|
119933
|
+
/**
|
|
119934
|
+
* Register append menu provider in the popup menu
|
|
119935
|
+
*/
|
|
119936
|
+
AppendMenuProvider.prototype.register = function() {
|
|
119937
|
+
this._popupMenu.registerProvider('bpmn-append', this);
|
|
119938
|
+
};
|
|
119939
|
+
|
|
119940
|
+
/**
|
|
119941
|
+
* Gets the append options for the given element as menu entries
|
|
119942
|
+
*
|
|
119943
|
+
* @param {djs.model.Base} element
|
|
119944
|
+
*
|
|
119945
|
+
* @return {Array<Object>} a list of menu entry items
|
|
119946
|
+
*/
|
|
119947
|
+
AppendMenuProvider.prototype.getPopupMenuEntries = function(element) {
|
|
119948
|
+
const rules = this._rules;
|
|
119949
|
+
const translate = this._translate;
|
|
119950
|
+
|
|
119951
|
+
const entries = {};
|
|
119952
|
+
|
|
119953
|
+
if (!rules.allowed('shape.append', { element: element })) {
|
|
119954
|
+
return [];
|
|
119955
|
+
}
|
|
119956
|
+
|
|
119957
|
+
// filter out elements with no incoming connections
|
|
119958
|
+
const appendOptions = this._filterEntries(CREATE_OPTIONS);
|
|
119959
|
+
|
|
119960
|
+
// map options to menu entries
|
|
119961
|
+
appendOptions.forEach(option => {
|
|
119962
|
+
const {
|
|
119963
|
+
actionName,
|
|
119964
|
+
className,
|
|
119965
|
+
label,
|
|
119966
|
+
target,
|
|
119967
|
+
description,
|
|
119968
|
+
group,
|
|
119969
|
+
search,
|
|
119970
|
+
rank
|
|
119971
|
+
} = option;
|
|
119972
|
+
|
|
119973
|
+
entries[`append-${actionName}`] = {
|
|
119974
|
+
label: label && translate(label),
|
|
119975
|
+
className,
|
|
119976
|
+
description,
|
|
119977
|
+
group: group && {
|
|
119978
|
+
...group,
|
|
119979
|
+
name: translate(group.name)
|
|
119980
|
+
},
|
|
119981
|
+
search,
|
|
119982
|
+
rank,
|
|
119983
|
+
action: this._createEntryAction(element, target)
|
|
119984
|
+
};
|
|
119985
|
+
});
|
|
119986
|
+
|
|
119987
|
+
return entries;
|
|
119988
|
+
};
|
|
119989
|
+
|
|
119990
|
+
/**
|
|
119991
|
+
* Filter out entries from the options.
|
|
119992
|
+
*
|
|
119993
|
+
* @param {Array<Object>} entries
|
|
119994
|
+
*
|
|
119995
|
+
* @return {Array<Object>} filtered entries
|
|
119996
|
+
*/
|
|
119997
|
+
AppendMenuProvider.prototype._filterEntries = function(entries) {
|
|
119998
|
+
return entries.filter(option => {
|
|
119999
|
+
|
|
120000
|
+
const target = option.target;
|
|
120001
|
+
const {
|
|
120002
|
+
type,
|
|
120003
|
+
eventDefinitionType
|
|
120004
|
+
} = target;
|
|
120005
|
+
|
|
120006
|
+
if ([
|
|
120007
|
+
'bpmn:StartEvent',
|
|
120008
|
+
'bpmn:Participant'
|
|
120009
|
+
].includes(type)) {
|
|
120010
|
+
return false;
|
|
120011
|
+
}
|
|
120012
|
+
|
|
120013
|
+
if (type === 'bpmn:BoundaryEvent' && isUndefined(eventDefinitionType)) {
|
|
120014
|
+
return false;
|
|
120015
|
+
}
|
|
120016
|
+
|
|
120017
|
+
return true;
|
|
120018
|
+
});
|
|
120019
|
+
};
|
|
120020
|
+
|
|
120021
|
+
/**
|
|
120022
|
+
* Create an action for a given target.
|
|
120023
|
+
*
|
|
120024
|
+
* @param {djs.model.Base} element
|
|
120025
|
+
* @param {Object} target
|
|
120026
|
+
*
|
|
120027
|
+
* @return {Object}
|
|
120028
|
+
*/
|
|
120029
|
+
AppendMenuProvider.prototype._createEntryAction = function(element, target) {
|
|
120030
|
+
const elementFactory = this._elementFactory;
|
|
120031
|
+
const autoPlace = this._autoPlace;
|
|
120032
|
+
const create = this._create;
|
|
120033
|
+
const mouse = this._mouse;
|
|
120034
|
+
|
|
120035
|
+
|
|
120036
|
+
const autoPlaceElement = () => {
|
|
120037
|
+
const newElement = elementFactory.create('shape', target);
|
|
120038
|
+
autoPlace.append(element, newElement);
|
|
120039
|
+
};
|
|
120040
|
+
|
|
120041
|
+
const manualPlaceElement = (event) => {
|
|
120042
|
+
const newElement = elementFactory.create('shape', target);
|
|
120043
|
+
|
|
120044
|
+
if (event instanceof KeyboardEvent) {
|
|
120045
|
+
event = mouse.getLastMoveEvent();
|
|
120046
|
+
}
|
|
120047
|
+
|
|
120048
|
+
return create.start(event, newElement, {
|
|
120049
|
+
source: element
|
|
120050
|
+
});
|
|
120051
|
+
};
|
|
120052
|
+
|
|
120053
|
+
return {
|
|
120054
|
+
click: this._canAutoPlaceElement(target) ? autoPlaceElement : manualPlaceElement,
|
|
120055
|
+
dragstart: manualPlaceElement
|
|
120056
|
+
};
|
|
120057
|
+
};
|
|
120058
|
+
|
|
120059
|
+
/**
|
|
120060
|
+
* Check if the element should be auto placed.
|
|
120061
|
+
*
|
|
120062
|
+
* @param {Object} target
|
|
120063
|
+
*
|
|
120064
|
+
* @return {Boolean}
|
|
120065
|
+
*/
|
|
120066
|
+
AppendMenuProvider.prototype._canAutoPlaceElement = (target) => {
|
|
120067
|
+
const { type } = target;
|
|
120068
|
+
|
|
120069
|
+
if (type === 'bpmn:BoundaryEvent') {
|
|
120070
|
+
return false;
|
|
120071
|
+
}
|
|
120072
|
+
|
|
120073
|
+
if (type === 'bpmn:SubProcess' && target.triggeredByEvent) {
|
|
120074
|
+
return false;
|
|
120075
|
+
}
|
|
120076
|
+
|
|
120077
|
+
if (type === 'bpmn:IntermediateCatchEvent' && target.eventDefinitionType === 'bpmn:LinkEventDefinition') {
|
|
120078
|
+
return false;
|
|
120079
|
+
}
|
|
120080
|
+
|
|
120081
|
+
return true;
|
|
120082
|
+
};
|
|
120083
|
+
|
|
120084
|
+
/**
|
|
120085
|
+
* To change the icons, modify the SVGs in `./resources`, execute `npx svgo -f resources --datauri enc -o dist`,
|
|
120086
|
+
* and then replace respective icons with the optimized data URIs in `./dist`.
|
|
120087
|
+
*/
|
|
120088
|
+
const appendIcon = 'data:image/svg+xml,%3Csvg%20width%3D%2222%22%20height%3D%2222%22%20viewBox%3D%220%200%205.82%205.82%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Cpath%20d%3D%22M1.3%203.4c.3%200%20.5-.2.5-.5s-.2-.4-.5-.4c-.2%200-.4.1-.4.4%200%20.3.2.5.4.5zM3%203.4c.2%200%20.4-.2.4-.5s-.2-.4-.4-.4c-.3%200-.5.1-.5.4%200%20.3.2.5.5.5zM4.6%203.4c.2%200%20.4-.2.4-.5s-.2-.4-.4-.4c-.3%200-.5.1-.5.4%200%20.3.2.5.5.5z%22%2F%3E%0A%3C%2Fsvg%3E';
|
|
120089
|
+
const createIcon = 'data:image/svg+xml,%3Csvg%20width%3D%2246%22%20height%3D%2246%22%20viewBox%3D%22-2%20-2%209.82%209.82%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M1.3%203.4c.3%200%20.5-.2.5-.5s-.2-.4-.5-.4c-.2%200-.4.1-.4.4%200%20.3.2.5.4.5zM3%203.4c.2%200%20.4-.2.4-.5s-.2-.4-.4-.4c-.3%200-.5.1-.5.4%200%20.3.2.5.5.5zM4.6%203.4c.2%200%20.4-.2.4-.5s-.2-.4-.4-.4c-.3%200-.5.1-.5.4%200%20.3.2.5.5.5z%22%2F%3E%0A%3C%2Fsvg%3E';
|
|
120090
|
+
|
|
120091
|
+
/**
|
|
120092
|
+
* A provider for append context pad button
|
|
120093
|
+
*/
|
|
120094
|
+
function AppendContextPadProvider(contextPad, popupMenu, translate, canvas) {
|
|
120095
|
+
|
|
120096
|
+
this._contextPad = contextPad;
|
|
120097
|
+
this._popupMenu = popupMenu;
|
|
120098
|
+
this._translate = translate;
|
|
120099
|
+
this._canvas = canvas;
|
|
120100
|
+
|
|
120101
|
+
this.register();
|
|
120102
|
+
}
|
|
120103
|
+
|
|
120104
|
+
AppendContextPadProvider.$inject = [
|
|
120105
|
+
'contextPad',
|
|
120106
|
+
'popupMenu',
|
|
120107
|
+
'translate',
|
|
120108
|
+
'canvas'
|
|
120109
|
+
];
|
|
120110
|
+
|
|
120111
|
+
/**
|
|
120112
|
+
* Register append button provider in the context pad
|
|
120113
|
+
*/
|
|
120114
|
+
AppendContextPadProvider.prototype.register = function() {
|
|
120115
|
+
this._contextPad.registerProvider(this);
|
|
120116
|
+
};
|
|
120117
|
+
|
|
120118
|
+
/**
|
|
120119
|
+
* Gets the append context pad entry
|
|
120120
|
+
*
|
|
120121
|
+
* @param {djs.model.Base} element
|
|
120122
|
+
* @returns {Object} entries
|
|
120123
|
+
*/
|
|
120124
|
+
AppendContextPadProvider.prototype.getContextPadEntries = function(element) {
|
|
120125
|
+
const popupMenu = this._popupMenu;
|
|
120126
|
+
const translate = this._translate;
|
|
120127
|
+
const getAppendMenuPosition = this._getAppendMenuPosition.bind(this);
|
|
120128
|
+
|
|
120129
|
+
if (!popupMenu.isEmpty(element, 'bpmn-append')) {
|
|
120130
|
+
|
|
120131
|
+
// append menu entry
|
|
120132
|
+
return {
|
|
120133
|
+
'append': {
|
|
120134
|
+
group: 'model',
|
|
120135
|
+
imageUrl: appendIcon,
|
|
120136
|
+
title: translate('Append element'),
|
|
120137
|
+
action: {
|
|
120138
|
+
click: function(event, element) {
|
|
120139
|
+
|
|
120140
|
+
const position = assign(getAppendMenuPosition(element), {
|
|
120141
|
+
cursor: { x: event.x, y: event.y }
|
|
120142
|
+
});
|
|
120143
|
+
|
|
120144
|
+
popupMenu.open(element, 'bpmn-append', position, {
|
|
120145
|
+
title: translate('Append element'),
|
|
120146
|
+
width: 300,
|
|
120147
|
+
search: true
|
|
120148
|
+
});
|
|
120149
|
+
}
|
|
120150
|
+
}
|
|
120151
|
+
}
|
|
120152
|
+
};
|
|
120153
|
+
}
|
|
120154
|
+
};
|
|
120155
|
+
|
|
120156
|
+
/**
|
|
120157
|
+
* Calculates the position for the append menu relatively to the element
|
|
120158
|
+
*
|
|
120159
|
+
* @param {djs.model.Base} element
|
|
120160
|
+
* @returns {Object}
|
|
120161
|
+
*/
|
|
120162
|
+
AppendContextPadProvider.prototype._getAppendMenuPosition = function(element) {
|
|
120163
|
+
const contextPad = this._contextPad;
|
|
120164
|
+
|
|
120165
|
+
const X_OFFSET = 5;
|
|
120166
|
+
|
|
120167
|
+
const pad = contextPad.getPad(element).html;
|
|
120168
|
+
|
|
120169
|
+
const padRect = pad.getBoundingClientRect();
|
|
120170
|
+
|
|
120171
|
+
const pos = {
|
|
120172
|
+
x: padRect.right + X_OFFSET,
|
|
120173
|
+
y: padRect.top
|
|
120174
|
+
};
|
|
120175
|
+
|
|
120176
|
+
return pos;
|
|
120177
|
+
};
|
|
120178
|
+
|
|
119877
120179
|
function e(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}));}
|
|
119878
120180
|
|
|
119879
120181
|
/**
|
|
@@ -120223,6 +120525,130 @@
|
|
|
120223
120525
|
return element.waypoints;
|
|
120224
120526
|
}
|
|
120225
120527
|
|
|
120528
|
+
var AppendMenuModule = {
|
|
120529
|
+
__init__: [
|
|
120530
|
+
'appendMenuProvider',
|
|
120531
|
+
'appendContextPadProvider',
|
|
120532
|
+
'appendRules'
|
|
120533
|
+
],
|
|
120534
|
+
appendMenuProvider: [ 'type', AppendMenuProvider ],
|
|
120535
|
+
appendContextPadProvider: [ 'type', AppendContextPadProvider ],
|
|
120536
|
+
appendRules: [ 'type', AppendRules ]
|
|
120537
|
+
};
|
|
120538
|
+
|
|
120539
|
+
/**
|
|
120540
|
+
* This module is a create menu provider for the popup menu.
|
|
120541
|
+
*/
|
|
120542
|
+
function CreateMenuProvider(
|
|
120543
|
+
elementFactory, popupMenu, create,
|
|
120544
|
+
autoPlace, mouse, translate
|
|
120545
|
+
) {
|
|
120546
|
+
this._elementFactory = elementFactory;
|
|
120547
|
+
this._popupMenu = popupMenu;
|
|
120548
|
+
this._create = create;
|
|
120549
|
+
this._autoPlace = autoPlace;
|
|
120550
|
+
this._mouse = mouse;
|
|
120551
|
+
this._translate = translate;
|
|
120552
|
+
|
|
120553
|
+
this.register();
|
|
120554
|
+
}
|
|
120555
|
+
|
|
120556
|
+
CreateMenuProvider.$inject = [
|
|
120557
|
+
'elementFactory',
|
|
120558
|
+
'popupMenu',
|
|
120559
|
+
'create',
|
|
120560
|
+
'autoPlace',
|
|
120561
|
+
'mouse',
|
|
120562
|
+
'translate'
|
|
120563
|
+
];
|
|
120564
|
+
|
|
120565
|
+
/**
|
|
120566
|
+
* Register create menu provider in the popup menu
|
|
120567
|
+
*/
|
|
120568
|
+
CreateMenuProvider.prototype.register = function() {
|
|
120569
|
+
this._popupMenu.registerProvider('bpmn-create', this);
|
|
120570
|
+
};
|
|
120571
|
+
|
|
120572
|
+
/**
|
|
120573
|
+
* Returns the create options as menu entries
|
|
120574
|
+
*
|
|
120575
|
+
* @param {djs.model.Base} element
|
|
120576
|
+
*
|
|
120577
|
+
* @return {Array<Object>} a list of menu entry items
|
|
120578
|
+
*/
|
|
120579
|
+
CreateMenuProvider.prototype.getPopupMenuEntries = function() {
|
|
120580
|
+
|
|
120581
|
+
const entries = {};
|
|
120582
|
+
|
|
120583
|
+
// map options to menu entries
|
|
120584
|
+
CREATE_OPTIONS.forEach(option => {
|
|
120585
|
+
const {
|
|
120586
|
+
actionName,
|
|
120587
|
+
className,
|
|
120588
|
+
label,
|
|
120589
|
+
target,
|
|
120590
|
+
description,
|
|
120591
|
+
group,
|
|
120592
|
+
search,
|
|
120593
|
+
rank
|
|
120594
|
+
} = option;
|
|
120595
|
+
|
|
120596
|
+
const targetAction = this._createEntryAction(target);
|
|
120597
|
+
|
|
120598
|
+
entries[`create-${actionName}`] = {
|
|
120599
|
+
label: label && this._translate(label),
|
|
120600
|
+
className,
|
|
120601
|
+
description,
|
|
120602
|
+
group: group && {
|
|
120603
|
+
...group,
|
|
120604
|
+
name: this._translate(group.name)
|
|
120605
|
+
},
|
|
120606
|
+
search,
|
|
120607
|
+
rank,
|
|
120608
|
+
action: {
|
|
120609
|
+
click: targetAction,
|
|
120610
|
+
dragstart: targetAction
|
|
120611
|
+
}
|
|
120612
|
+
};
|
|
120613
|
+
});
|
|
120614
|
+
|
|
120615
|
+
return entries;
|
|
120616
|
+
};
|
|
120617
|
+
|
|
120618
|
+
/**
|
|
120619
|
+
* Create an action for a given target
|
|
120620
|
+
*
|
|
120621
|
+
* @param {Object} target
|
|
120622
|
+
* @returns {Object}
|
|
120623
|
+
*/
|
|
120624
|
+
CreateMenuProvider.prototype._createEntryAction = function(target) {
|
|
120625
|
+
|
|
120626
|
+
const create = this._create;
|
|
120627
|
+
const mouse = this._mouse;
|
|
120628
|
+
const popupMenu = this._popupMenu;
|
|
120629
|
+
const elementFactory = this._elementFactory;
|
|
120630
|
+
|
|
120631
|
+
let newElement;
|
|
120632
|
+
|
|
120633
|
+
return (event) => {
|
|
120634
|
+
popupMenu.close();
|
|
120635
|
+
|
|
120636
|
+
// create the new element
|
|
120637
|
+
if (target.type === 'bpmn:Participant') {
|
|
120638
|
+
newElement = elementFactory.createParticipantShape(target);
|
|
120639
|
+
} else {
|
|
120640
|
+
newElement = elementFactory.create('shape', target);
|
|
120641
|
+
}
|
|
120642
|
+
|
|
120643
|
+
// use last mouse event if triggered via keyboard
|
|
120644
|
+
if (event instanceof KeyboardEvent) {
|
|
120645
|
+
event = mouse.getLastMoveEvent();
|
|
120646
|
+
}
|
|
120647
|
+
|
|
120648
|
+
return create.start(event, newElement);
|
|
120649
|
+
};
|
|
120650
|
+
};
|
|
120651
|
+
|
|
120226
120652
|
var bugTestDiv;
|
|
120227
120653
|
if (typeof document !== 'undefined') {
|
|
120228
120654
|
bugTestDiv = document.createElement('div');
|
|
@@ -120234,6 +120660,172 @@
|
|
|
120234
120660
|
bugTestDiv = undefined;
|
|
120235
120661
|
}
|
|
120236
120662
|
|
|
120663
|
+
function query(selector, el) {
|
|
120664
|
+
el = el || document;
|
|
120665
|
+
|
|
120666
|
+
return el.querySelector(selector);
|
|
120667
|
+
}
|
|
120668
|
+
|
|
120669
|
+
const LOWER_PRIORITY = 900;
|
|
120670
|
+
|
|
120671
|
+
/**
|
|
120672
|
+
* A palette provider for the create elements menu.
|
|
120673
|
+
*/
|
|
120674
|
+
function CreatePaletteProvider(palette, translate, popupMenu, canvas, mouse) {
|
|
120675
|
+
|
|
120676
|
+
this._palette = palette;
|
|
120677
|
+
this._translate = translate;
|
|
120678
|
+
this._popupMenu = popupMenu;
|
|
120679
|
+
this._canvas = canvas;
|
|
120680
|
+
this._mouse = mouse;
|
|
120681
|
+
|
|
120682
|
+
this.register();
|
|
120683
|
+
}
|
|
120684
|
+
|
|
120685
|
+
CreatePaletteProvider.$inject = [
|
|
120686
|
+
'palette',
|
|
120687
|
+
'translate',
|
|
120688
|
+
'popupMenu',
|
|
120689
|
+
'canvas',
|
|
120690
|
+
'mouse'
|
|
120691
|
+
];
|
|
120692
|
+
|
|
120693
|
+
/**
|
|
120694
|
+
* Register create button provider in the palette
|
|
120695
|
+
*/
|
|
120696
|
+
CreatePaletteProvider.prototype.register = function() {
|
|
120697
|
+
this._palette.registerProvider(LOWER_PRIORITY, this);
|
|
120698
|
+
};
|
|
120699
|
+
|
|
120700
|
+
/**
|
|
120701
|
+
* Gets the palette create entry
|
|
120702
|
+
*
|
|
120703
|
+
* @param {djs.model.Base} element
|
|
120704
|
+
* @returns {Object}
|
|
120705
|
+
*/
|
|
120706
|
+
CreatePaletteProvider.prototype.getPaletteEntries = function(element) {
|
|
120707
|
+
const translate = this._translate,
|
|
120708
|
+
popupMenu = this._popupMenu,
|
|
120709
|
+
canvas = this._canvas,
|
|
120710
|
+
mouse = this._mouse;
|
|
120711
|
+
|
|
120712
|
+
const getPosition = (event) => {
|
|
120713
|
+
const X_OFFSET = 35;
|
|
120714
|
+
const Y_OFFSET = 10;
|
|
120715
|
+
|
|
120716
|
+
if (event instanceof KeyboardEvent) {
|
|
120717
|
+
event = mouse.getLastMoveEvent();
|
|
120718
|
+
return { x: event.x, y: event.y };
|
|
120719
|
+
}
|
|
120720
|
+
|
|
120721
|
+
const target = event && event.target || query('.djs-palette [data-action="create"]');
|
|
120722
|
+
const targetPosition = target.getBoundingClientRect();
|
|
120723
|
+
|
|
120724
|
+
return target && {
|
|
120725
|
+
x: targetPosition.left + targetPosition.width / 2 + X_OFFSET,
|
|
120726
|
+
y: targetPosition.top + targetPosition.height / 2 + Y_OFFSET
|
|
120727
|
+
};
|
|
120728
|
+
};
|
|
120729
|
+
|
|
120730
|
+
return {
|
|
120731
|
+
'create': {
|
|
120732
|
+
group: 'create',
|
|
120733
|
+
imageUrl: createIcon,
|
|
120734
|
+
title: translate('Create element'),
|
|
120735
|
+
action: {
|
|
120736
|
+
click: function(event) {
|
|
120737
|
+
const position = getPosition(event);
|
|
120738
|
+
|
|
120739
|
+
const element = canvas.getRootElement();
|
|
120740
|
+
|
|
120741
|
+
popupMenu.open(element, 'bpmn-create', position, {
|
|
120742
|
+
title: translate('Create element'),
|
|
120743
|
+
width: 300,
|
|
120744
|
+
search: true
|
|
120745
|
+
});
|
|
120746
|
+
}
|
|
120747
|
+
}
|
|
120748
|
+
}
|
|
120749
|
+
};
|
|
120750
|
+
};
|
|
120751
|
+
|
|
120752
|
+
var CreateMenuModule = {
|
|
120753
|
+
__init__: [
|
|
120754
|
+
'createMenuProvider',
|
|
120755
|
+
'createPaletteProvider'
|
|
120756
|
+
],
|
|
120757
|
+
createMenuProvider: [ 'type', CreateMenuProvider ],
|
|
120758
|
+
createPaletteProvider: [ 'type', CreatePaletteProvider ]
|
|
120759
|
+
};
|
|
120760
|
+
|
|
120761
|
+
/**
|
|
120762
|
+
* Registers and executes BPMN specific editor actions.
|
|
120763
|
+
*
|
|
120764
|
+
* @param {Injector} injector
|
|
120765
|
+
*/
|
|
120766
|
+
function CreateAppendEditorActions(injector) {
|
|
120767
|
+
this._injector = injector;
|
|
120768
|
+
|
|
120769
|
+
this.registerActions();
|
|
120770
|
+
}
|
|
120771
|
+
|
|
120772
|
+
CreateAppendEditorActions.$inject = [
|
|
120773
|
+
'injector'
|
|
120774
|
+
];
|
|
120775
|
+
|
|
120776
|
+
/**
|
|
120777
|
+
* Register actions.
|
|
120778
|
+
*
|
|
120779
|
+
* @param {Injector} injector
|
|
120780
|
+
*/
|
|
120781
|
+
CreateAppendEditorActions.prototype.registerActions = function() {
|
|
120782
|
+
const editorActions = this._injector.get('editorActions', false);
|
|
120783
|
+
const selection = this._injector.get('selection', false);
|
|
120784
|
+
const contextPad = this._injector.get('contextPad', false);
|
|
120785
|
+
const palette = this._injector.get('palette', false);
|
|
120786
|
+
const popupMenu = this._injector.get('popupMenu', false);
|
|
120787
|
+
|
|
120788
|
+
const actions = {};
|
|
120789
|
+
|
|
120790
|
+
// append
|
|
120791
|
+
if (selection && contextPad && palette && popupMenu && palette) {
|
|
120792
|
+
assign(actions, {
|
|
120793
|
+
'appendElement': function(event) {
|
|
120794
|
+
const selected = selection && selection.get();
|
|
120795
|
+
|
|
120796
|
+
if (selected.length == 1 && !popupMenu.isEmpty(selected[0], 'bpmn-append')) {
|
|
120797
|
+
contextPad.triggerEntry('append', 'click', event);
|
|
120798
|
+
} else {
|
|
120799
|
+
palette.triggerEntry('create', 'click', event);
|
|
120800
|
+
}
|
|
120801
|
+
}
|
|
120802
|
+
});
|
|
120803
|
+
}
|
|
120804
|
+
|
|
120805
|
+
// create
|
|
120806
|
+
if (palette) {
|
|
120807
|
+
assign(actions, {
|
|
120808
|
+
'createElement': function(event) {
|
|
120809
|
+
palette.triggerEntry('create', 'click', event);
|
|
120810
|
+
} }
|
|
120811
|
+
);
|
|
120812
|
+
}
|
|
120813
|
+
|
|
120814
|
+
editorActions && editorActions.register(actions);
|
|
120815
|
+
|
|
120816
|
+
};
|
|
120817
|
+
|
|
120818
|
+
var EditorActionsModule = {
|
|
120819
|
+
__depends__: [
|
|
120820
|
+
AppendMenuModule,
|
|
120821
|
+
CreateMenuModule
|
|
120822
|
+
],
|
|
120823
|
+
__init__: [
|
|
120824
|
+
'createAppendEditorActions'
|
|
120825
|
+
],
|
|
120826
|
+
createAppendEditorActions: [ 'type', CreateAppendEditorActions ]
|
|
120827
|
+
};
|
|
120828
|
+
|
|
120237
120829
|
var KEYS_COPY = [ 'c', 'C' ];
|
|
120238
120830
|
var KEYS_PASTE = [ 'v', 'V' ];
|
|
120239
120831
|
var KEYS_REDO = [ 'y', 'Y' ];
|
|
@@ -120539,6 +121131,26 @@
|
|
|
120539
121131
|
|
|
120540
121132
|
};
|
|
120541
121133
|
|
|
121134
|
+
var KeyboardBindingsModule = {
|
|
121135
|
+
__depends__: [
|
|
121136
|
+
AppendMenuModule,
|
|
121137
|
+
CreateMenuModule
|
|
121138
|
+
],
|
|
121139
|
+
__init__: [
|
|
121140
|
+
'createAppendKeyboardBindings'
|
|
121141
|
+
],
|
|
121142
|
+
createAppendKeyboardBindings: [ 'type', CreateAppendKeyboardBindings ]
|
|
121143
|
+
};
|
|
121144
|
+
|
|
121145
|
+
var index$1 = {
|
|
121146
|
+
__depends__: [
|
|
121147
|
+
AppendMenuModule,
|
|
121148
|
+
CreateMenuModule,
|
|
121149
|
+
EditorActionsModule,
|
|
121150
|
+
KeyboardBindingsModule
|
|
121151
|
+
],
|
|
121152
|
+
};
|
|
121153
|
+
|
|
120542
121154
|
function isExpanded(element, di) {
|
|
120543
121155
|
|
|
120544
121156
|
if (is(element, 'bpmn:CallActivity')) {
|
|
@@ -121671,6 +122283,7 @@
|
|
|
121671
122283
|
camundaPlatformPropertiesProviderModule,
|
|
121672
122284
|
index,
|
|
121673
122285
|
colorPickerModule,
|
|
122286
|
+
index$1,
|
|
121674
122287
|
CamundaVariableResolverModule,
|
|
121675
122288
|
UnlinkTemplatesModule
|
|
121676
122289
|
];
|