@processmaker/modeler 1.39.17 → 1.39.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modeler.common.js +1255 -1007
- package/dist/modeler.common.js.map +1 -1
- package/dist/modeler.umd.js +1255 -1007
- package/dist/modeler.umd.js.map +1 -1
- package/dist/modeler.umd.min.js +4 -4
- package/dist/modeler.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/crown/utils.js +10 -9
- package/src/components/modeler/Modeler.vue +76 -25
- package/src/components/modeler/Selection.vue +40 -13
- package/src/components/nodes/genericFlow/genericFlow.vue +0 -11
- package/src/components/nodes/messageFlow/index.js +16 -0
- package/src/components/nodes/pool/pool.vue +40 -10
- package/src/components/nodes/poolLane/index.js +36 -0
- package/src/components/nodes/sequenceFlow/index.js +15 -0
- package/src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue +1 -1
- package/src/mixins/linkConfig.js +0 -14
- package/src/mixins/poolLaneCrownConfig.js +0 -2
- package/src/multiplayer/multiplayer.js +93 -81
- package/src/nodeTypesStore.js +3 -3
- package/src/setup/globals.js +6 -0
package/dist/modeler.common.js
CHANGED
|
@@ -12818,7 +12818,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".weekday[data-v-4ae18478]{padding:.75e
|
|
|
12818
12818
|
|
|
12819
12819
|
/***/ }),
|
|
12820
12820
|
|
|
12821
|
-
/***/
|
|
12821
|
+
/***/ 67587:
|
|
12822
12822
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12823
12823
|
|
|
12824
12824
|
"use strict";
|
|
@@ -12832,7 +12832,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12832
12832
|
|
|
12833
12833
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
12834
12834
|
// Module
|
|
12835
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".box[data-v-
|
|
12835
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".box[data-v-1d953204]{border:1px solid #5faaee;position:absolute;pointer-events:none}", ""]);
|
|
12836
12836
|
// Exports
|
|
12837
12837
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
12838
12838
|
|
|
@@ -26431,19 +26431,19 @@ var update = add("406dc84a", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
26431
26431
|
|
|
26432
26432
|
/***/ }),
|
|
26433
26433
|
|
|
26434
|
-
/***/
|
|
26434
|
+
/***/ 73717:
|
|
26435
26435
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
26436
26436
|
|
|
26437
26437
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
26438
26438
|
|
|
26439
26439
|
// load the styles
|
|
26440
|
-
var content = __webpack_require__(
|
|
26440
|
+
var content = __webpack_require__(67587);
|
|
26441
26441
|
if(content.__esModule) content = content.default;
|
|
26442
26442
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
26443
26443
|
if(content.locals) module.exports = content.locals;
|
|
26444
26444
|
// add the styles to the DOM
|
|
26445
26445
|
var add = (__webpack_require__(54402)/* ["default"] */ .Z)
|
|
26446
|
-
var update = add("
|
|
26446
|
+
var update = add("1654890f", content, true, {"sourceMap":false,"shadowMode":false});
|
|
26447
26447
|
|
|
26448
26448
|
/***/ }),
|
|
26449
26449
|
|
|
@@ -28817,8 +28817,6 @@ var es_array_map = __webpack_require__(21249);
|
|
|
28817
28817
|
var es_array_concat = __webpack_require__(92222);
|
|
28818
28818
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
28819
28819
|
var es_array_sort = __webpack_require__(2707);
|
|
28820
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.to-json.js
|
|
28821
|
-
var web_url_to_json = __webpack_require__(83753);
|
|
28822
28820
|
// EXTERNAL MODULE: ./node_modules/lodash/get.js
|
|
28823
28821
|
var get = __webpack_require__(27361);
|
|
28824
28822
|
var get_default = /*#__PURE__*/__webpack_require__.n(get);
|
|
@@ -31904,7 +31902,6 @@ var COLOR_COMPLETED_FILL = '#D6FFE6';
|
|
|
31904
31902
|
|
|
31905
31903
|
|
|
31906
31904
|
|
|
31907
|
-
|
|
31908
31905
|
var endpoints = {
|
|
31909
31906
|
source: 'source',
|
|
31910
31907
|
target: 'target'
|
|
@@ -32194,19 +32191,6 @@ function isPoint(item) {
|
|
|
32194
32191
|
if (_this8.updateDefinitionLinks) {
|
|
32195
32192
|
_this8.updateDefinitionLinks();
|
|
32196
32193
|
}
|
|
32197
|
-
if (_this8.shape.component.node.type === 'processmaker-modeler-data-input-association') {
|
|
32198
|
-
if (_this8.$parent.isMultiplayer) {
|
|
32199
|
-
var genericLink = _this8.shape.findView(_this8.paper);
|
|
32200
|
-
var waypoint = [genericLink.sourceAnchor.toJSON(), genericLink.targetAnchor.toJSON()];
|
|
32201
|
-
window.ProcessMaker.EventBus.$emit('multiplayer-addFlow', {
|
|
32202
|
-
type: _this8.shape.component.node.type,
|
|
32203
|
-
id: "node_".concat(_this8.$parent.nodeIdGenerator.getDefinitionNumber()),
|
|
32204
|
-
sourceRefId: _this8.sourceNode.definition.id,
|
|
32205
|
-
targetRefId: _this8.targetNode.definition.id,
|
|
32206
|
-
waypoint: waypoint
|
|
32207
|
-
});
|
|
32208
|
-
}
|
|
32209
|
-
}
|
|
32210
32194
|
_this8.$emit('save-state');
|
|
32211
32195
|
});
|
|
32212
32196
|
this.shape.listenToOnce(this.paper, 'cell:mouseleave', function () {
|
|
@@ -32883,16 +32867,18 @@ function removeBoundaryEvents(graph, node, removeNode) {
|
|
|
32883
32867
|
var nodeShape = graph.getCells().find(function (el) {
|
|
32884
32868
|
return el.component && el.component.node === node;
|
|
32885
32869
|
});
|
|
32886
|
-
nodeShape
|
|
32887
|
-
|
|
32888
|
-
|
|
32889
|
-
|
|
32890
|
-
|
|
32891
|
-
|
|
32892
|
-
|
|
32870
|
+
if (nodeShape) {
|
|
32871
|
+
nodeShape.getEmbeddedCells({
|
|
32872
|
+
deep: true
|
|
32873
|
+
}).filter(function (cell) {
|
|
32874
|
+
return cell.component && cell.component.node.isBpmnType('bpmn:BoundaryEvent');
|
|
32875
|
+
}).forEach(function (boundaryEventShape) {
|
|
32876
|
+
graph.getConnectedLinks(boundaryEventShape).forEach(function (shape) {
|
|
32877
|
+
return removeNode(shape.component.node);
|
|
32878
|
+
});
|
|
32879
|
+
removeNode(boundaryEventShape.component.node);
|
|
32893
32880
|
});
|
|
32894
|
-
|
|
32895
|
-
});
|
|
32881
|
+
}
|
|
32896
32882
|
}
|
|
32897
32883
|
function removeOutgoingAndIncomingRefsToFlow(node) {
|
|
32898
32884
|
if (node.isBpmnType(bpmnType, config_bpmnType)) {
|
|
@@ -38306,6 +38292,285 @@ var sequenceFlow_component = normalizeComponent(
|
|
|
38306
38292
|
)
|
|
38307
38293
|
|
|
38308
38294
|
/* harmony default export */ var sequenceFlow = (sequenceFlow_component.exports);
|
|
38295
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js
|
|
38296
|
+
|
|
38297
|
+
function _checkPrivateRedeclaration(obj, privateCollection) {
|
|
38298
|
+
if (privateCollection.has(obj)) {
|
|
38299
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
38300
|
+
}
|
|
38301
|
+
}
|
|
38302
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js
|
|
38303
|
+
|
|
38304
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
38305
|
+
_checkPrivateRedeclaration(obj, privateMap);
|
|
38306
|
+
privateMap.set(obj, value);
|
|
38307
|
+
}
|
|
38308
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js
|
|
38309
|
+
function _classApplyDescriptorGet(receiver, descriptor) {
|
|
38310
|
+
if (descriptor.get) {
|
|
38311
|
+
return descriptor.get.call(receiver);
|
|
38312
|
+
}
|
|
38313
|
+
return descriptor.value;
|
|
38314
|
+
}
|
|
38315
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js
|
|
38316
|
+
|
|
38317
|
+
function _classExtractFieldDescriptor(receiver, privateMap, action) {
|
|
38318
|
+
if (!privateMap.has(receiver)) {
|
|
38319
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
38320
|
+
}
|
|
38321
|
+
return privateMap.get(receiver);
|
|
38322
|
+
}
|
|
38323
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js
|
|
38324
|
+
|
|
38325
|
+
|
|
38326
|
+
function _classPrivateFieldGet(receiver, privateMap) {
|
|
38327
|
+
var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get");
|
|
38328
|
+
return _classApplyDescriptorGet(receiver, descriptor);
|
|
38329
|
+
}
|
|
38330
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js
|
|
38331
|
+
|
|
38332
|
+
function _classCheckPrivateStaticAccess(receiver, classConstructor) {
|
|
38333
|
+
if (receiver !== classConstructor) {
|
|
38334
|
+
throw new TypeError("Private static access of wrong provenance");
|
|
38335
|
+
}
|
|
38336
|
+
}
|
|
38337
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js
|
|
38338
|
+
|
|
38339
|
+
function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
|
|
38340
|
+
if (descriptor === undefined) {
|
|
38341
|
+
throw new TypeError("attempted to " + action + " private static field before its declaration");
|
|
38342
|
+
}
|
|
38343
|
+
}
|
|
38344
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js
|
|
38345
|
+
|
|
38346
|
+
|
|
38347
|
+
|
|
38348
|
+
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
|
|
38349
|
+
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
38350
|
+
_classCheckPrivateStaticFieldDescriptor(descriptor, "get");
|
|
38351
|
+
return _classApplyDescriptorGet(receiver, descriptor);
|
|
38352
|
+
}
|
|
38353
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js
|
|
38354
|
+
|
|
38355
|
+
function _classApplyDescriptorSet(receiver, descriptor, value) {
|
|
38356
|
+
if (descriptor.set) {
|
|
38357
|
+
descriptor.set.call(receiver, value);
|
|
38358
|
+
} else {
|
|
38359
|
+
if (!descriptor.writable) {
|
|
38360
|
+
throw new TypeError("attempted to set read only private field");
|
|
38361
|
+
}
|
|
38362
|
+
descriptor.value = value;
|
|
38363
|
+
}
|
|
38364
|
+
}
|
|
38365
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js
|
|
38366
|
+
|
|
38367
|
+
|
|
38368
|
+
|
|
38369
|
+
function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
|
|
38370
|
+
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
38371
|
+
_classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
|
38372
|
+
_classApplyDescriptorSet(receiver, descriptor, value);
|
|
38373
|
+
return value;
|
|
38374
|
+
}
|
|
38375
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-names.js
|
|
38376
|
+
var es_object_get_own_property_names = __webpack_require__(36210);
|
|
38377
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
|
38378
|
+
var es_string_match = __webpack_require__(4723);
|
|
38379
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.constructor.js
|
|
38380
|
+
var es_regexp_constructor = __webpack_require__(24603);
|
|
38381
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.dot-all.js
|
|
38382
|
+
var es_regexp_dot_all = __webpack_require__(28450);
|
|
38383
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.sticky.js
|
|
38384
|
+
var es_regexp_sticky = __webpack_require__(88386);
|
|
38385
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
38386
|
+
var es_regexp_to_string = __webpack_require__(39714);
|
|
38387
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.weak-map.js
|
|
38388
|
+
var es_weak_map = __webpack_require__(4129);
|
|
38389
|
+
;// CONCATENATED MODULE: ./src/NodeIdGenerator.js
|
|
38390
|
+
|
|
38391
|
+
|
|
38392
|
+
|
|
38393
|
+
|
|
38394
|
+
|
|
38395
|
+
|
|
38396
|
+
|
|
38397
|
+
|
|
38398
|
+
|
|
38399
|
+
|
|
38400
|
+
|
|
38401
|
+
|
|
38402
|
+
|
|
38403
|
+
|
|
38404
|
+
|
|
38405
|
+
|
|
38406
|
+
|
|
38407
|
+
|
|
38408
|
+
|
|
38409
|
+
|
|
38410
|
+
|
|
38411
|
+
|
|
38412
|
+
var _generateDefinitionId = /*#__PURE__*/new WeakMap();
|
|
38413
|
+
var _generateDiagramId = /*#__PURE__*/new WeakMap();
|
|
38414
|
+
var _generateProcessId = /*#__PURE__*/new WeakMap();
|
|
38415
|
+
var NodeIdGenerator = /*#__PURE__*/function () {
|
|
38416
|
+
function NodeIdGenerator(definitions) {
|
|
38417
|
+
_classCallCheck(this, NodeIdGenerator);
|
|
38418
|
+
_classPrivateFieldInitSpec(this, _generateDefinitionId, {
|
|
38419
|
+
writable: true,
|
|
38420
|
+
value: function value() {
|
|
38421
|
+
var _NodeIdGenerator$coun3, _NodeIdGenerator$coun4;
|
|
38422
|
+
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
38423
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun4 = _NodeIdGenerator$coun3++, _NodeIdGenerator$coun3)), _NodeIdGenerator$coun4;
|
|
38424
|
+
return id;
|
|
38425
|
+
}
|
|
38426
|
+
});
|
|
38427
|
+
_classPrivateFieldInitSpec(this, _generateDiagramId, {
|
|
38428
|
+
writable: true,
|
|
38429
|
+
value: function value() {
|
|
38430
|
+
var _NodeIdGenerator$diag3, _NodeIdGenerator$diag4;
|
|
38431
|
+
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter) + '_di';
|
|
38432
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag4 = _NodeIdGenerator$diag3++, _NodeIdGenerator$diag3)), _NodeIdGenerator$diag4;
|
|
38433
|
+
return id;
|
|
38434
|
+
}
|
|
38435
|
+
});
|
|
38436
|
+
_classPrivateFieldInitSpec(this, _generateProcessId, {
|
|
38437
|
+
writable: true,
|
|
38438
|
+
value: function value() {
|
|
38439
|
+
var _NodeIdGenerator$proc, _NodeIdGenerator$proc2;
|
|
38440
|
+
var id = NodeIdGenerator.processPrefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _processCounter);
|
|
38441
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _processCounter, (_NodeIdGenerator$proc = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _processCounter), _NodeIdGenerator$proc2 = _NodeIdGenerator$proc++, _NodeIdGenerator$proc)), _NodeIdGenerator$proc2;
|
|
38442
|
+
return id;
|
|
38443
|
+
}
|
|
38444
|
+
});
|
|
38445
|
+
this.definitions = definitions;
|
|
38446
|
+
this.refreshLastIdCounter();
|
|
38447
|
+
this.refreshLastDiagramIdCounter();
|
|
38448
|
+
this.refreshLastProcessIdCounter();
|
|
38449
|
+
}
|
|
38450
|
+
_createClass(NodeIdGenerator, [{
|
|
38451
|
+
key: "findById",
|
|
38452
|
+
value: function findById(id) {
|
|
38453
|
+
var _this = this;
|
|
38454
|
+
var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.definitions.rootElements;
|
|
38455
|
+
var walked = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
38456
|
+
if (walked.indexOf(root) > -1) return;
|
|
38457
|
+
var found;
|
|
38458
|
+
if (root instanceof Array) {
|
|
38459
|
+
walked.push(root);
|
|
38460
|
+
root.find(function (item) {
|
|
38461
|
+
return found = _this.findById(id, item, walked);
|
|
38462
|
+
});
|
|
38463
|
+
} else if (root instanceof Object && root.$type) {
|
|
38464
|
+
walked.push(root);
|
|
38465
|
+
if (root.id === id) return root;
|
|
38466
|
+
Object.getOwnPropertyNames(root).find(function (key) {
|
|
38467
|
+
return found = !(root[key] instanceof Function) && key.substring(0, 1) !== '$' && _this.findById(id, root[key], walked);
|
|
38468
|
+
});
|
|
38469
|
+
}
|
|
38470
|
+
return found;
|
|
38471
|
+
}
|
|
38472
|
+
}, {
|
|
38473
|
+
key: "matchIds",
|
|
38474
|
+
value: function matchIds(idRegex, root) {
|
|
38475
|
+
var _this2 = this;
|
|
38476
|
+
var walked = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
38477
|
+
var lastIdCounter = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
38478
|
+
if (walked.indexOf(root) > -1) return lastIdCounter;
|
|
38479
|
+
if (root instanceof Array) {
|
|
38480
|
+
walked.push(root);
|
|
38481
|
+
root.forEach(function (item) {
|
|
38482
|
+
return lastIdCounter = _this2.matchIds(idRegex, item, walked, lastIdCounter);
|
|
38483
|
+
});
|
|
38484
|
+
} else if (root instanceof Object) {
|
|
38485
|
+
walked.push(root);
|
|
38486
|
+
if (root.id) {
|
|
38487
|
+
var match = String(root.id).match(idRegex);
|
|
38488
|
+
var idCounter = match ? parseInt(match[1]) : 0;
|
|
38489
|
+
if (idCounter > lastIdCounter) {
|
|
38490
|
+
lastIdCounter = idCounter;
|
|
38491
|
+
}
|
|
38492
|
+
}
|
|
38493
|
+
Object.getOwnPropertyNames(root).forEach(function (key) {
|
|
38494
|
+
if (!(root[key] instanceof Function) && key.substring(0, 1) !== '$') {
|
|
38495
|
+
lastIdCounter = _this2.matchIds(idRegex, root[key], walked, lastIdCounter);
|
|
38496
|
+
}
|
|
38497
|
+
});
|
|
38498
|
+
}
|
|
38499
|
+
return lastIdCounter;
|
|
38500
|
+
}
|
|
38501
|
+
}, {
|
|
38502
|
+
key: "refreshLastIdCounter",
|
|
38503
|
+
value: function refreshLastIdCounter() {
|
|
38504
|
+
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.prefix, "(\\d+)$")), this.definitions.rootElements);
|
|
38505
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, lastIdCounter + 1);
|
|
38506
|
+
}
|
|
38507
|
+
}, {
|
|
38508
|
+
key: "getCounter",
|
|
38509
|
+
value: function getCounter() {
|
|
38510
|
+
this.refreshLastIdCounter();
|
|
38511
|
+
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
38512
|
+
}
|
|
38513
|
+
}, {
|
|
38514
|
+
key: "getDefinitionNumber",
|
|
38515
|
+
value: function getDefinitionNumber() {
|
|
38516
|
+
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
38517
|
+
}
|
|
38518
|
+
}, {
|
|
38519
|
+
key: "updateCounters",
|
|
38520
|
+
value: function updateCounters() {
|
|
38521
|
+
var _NodeIdGenerator$coun, _NodeIdGenerator$coun2, _NodeIdGenerator$diag, _NodeIdGenerator$diag2;
|
|
38522
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun2 = _NodeIdGenerator$coun++, _NodeIdGenerator$coun)), _NodeIdGenerator$coun2;
|
|
38523
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag2 = _NodeIdGenerator$diag++, _NodeIdGenerator$diag)), _NodeIdGenerator$diag2;
|
|
38524
|
+
}
|
|
38525
|
+
}, {
|
|
38526
|
+
key: "refreshLastDiagramIdCounter",
|
|
38527
|
+
value: function refreshLastDiagramIdCounter() {
|
|
38528
|
+
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.prefix, "(\\d+)_di$")), this.definitions.diagrams);
|
|
38529
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, lastIdCounter + 1);
|
|
38530
|
+
}
|
|
38531
|
+
}, {
|
|
38532
|
+
key: "refreshLastProcessIdCounter",
|
|
38533
|
+
value: function refreshLastProcessIdCounter() {
|
|
38534
|
+
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.processPrefix, "(\\d+)$")), this.definitions.rootElements);
|
|
38535
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _processCounter, lastIdCounter + 1);
|
|
38536
|
+
}
|
|
38537
|
+
}, {
|
|
38538
|
+
key: "generate",
|
|
38539
|
+
value: function generate() {
|
|
38540
|
+
var definitionId = _classPrivateFieldGet(this, _generateDefinitionId).call(this);
|
|
38541
|
+
var diagramId = _classPrivateFieldGet(this, _generateDiagramId).call(this);
|
|
38542
|
+
return [definitionId, diagramId];
|
|
38543
|
+
}
|
|
38544
|
+
}, {
|
|
38545
|
+
key: "generateProcessId",
|
|
38546
|
+
value: function generateProcessId() {
|
|
38547
|
+
return _classPrivateFieldGet(this, _generateProcessId).call(this);
|
|
38548
|
+
}
|
|
38549
|
+
}]);
|
|
38550
|
+
return NodeIdGenerator;
|
|
38551
|
+
}(); // Singleton instance
|
|
38552
|
+
_defineProperty(NodeIdGenerator, "prefix", 'node_');
|
|
38553
|
+
_defineProperty(NodeIdGenerator, "processPrefix", 'Process_');
|
|
38554
|
+
var _counter = {
|
|
38555
|
+
writable: true,
|
|
38556
|
+
value: 1
|
|
38557
|
+
};
|
|
38558
|
+
var _diagramCounter = {
|
|
38559
|
+
writable: true,
|
|
38560
|
+
value: 1
|
|
38561
|
+
};
|
|
38562
|
+
var _processCounter = {
|
|
38563
|
+
writable: true,
|
|
38564
|
+
value: 1
|
|
38565
|
+
};
|
|
38566
|
+
|
|
38567
|
+
var singleton = null;
|
|
38568
|
+
function getNodeIdGenerator(definitions) {
|
|
38569
|
+
if (!singleton) {
|
|
38570
|
+
singleton = new NodeIdGenerator(definitions);
|
|
38571
|
+
}
|
|
38572
|
+
return singleton;
|
|
38573
|
+
}
|
|
38309
38574
|
;// CONCATENATED MODULE: ./src/components/nodes/sequenceFlow/index.js
|
|
38310
38575
|
|
|
38311
38576
|
|
|
@@ -38317,6 +38582,10 @@ var sequenceFlow_component = normalizeComponent(
|
|
|
38317
38582
|
|
|
38318
38583
|
|
|
38319
38584
|
|
|
38585
|
+
|
|
38586
|
+
|
|
38587
|
+
|
|
38588
|
+
|
|
38320
38589
|
var sequenceFlow_id = 'processmaker-modeler-sequence-flow';
|
|
38321
38590
|
/* harmony default export */ var nodes_sequenceFlow = ({
|
|
38322
38591
|
id: sequenceFlow_id,
|
|
@@ -38391,7 +38660,30 @@ var sequenceFlow_id = 'processmaker-modeler-sequence-flow';
|
|
|
38391
38660
|
})
|
|
38392
38661
|
}]
|
|
38393
38662
|
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
38394
|
-
}]
|
|
38663
|
+
}],
|
|
38664
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
38665
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
38666
|
+
var paper, sourceElem, targetElem, flow, actualFlow, nodeIdereator;
|
|
38667
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
38668
|
+
while (1) switch (_context.prev = _context.next) {
|
|
38669
|
+
case 0:
|
|
38670
|
+
paper = modeler.paper;
|
|
38671
|
+
sourceElem = modeler.getElementByNodeId(data.sourceRefId);
|
|
38672
|
+
targetElem = modeler.getElementByNodeId(data.targetRefId);
|
|
38673
|
+
if (sourceElem && targetElem) {
|
|
38674
|
+
flow = new SequenceFlow(modeler.nodeRegistry, modeler.moddle, paper);
|
|
38675
|
+
actualFlow = flow.makeFlowNode(sourceElem, targetElem, data.waypoint); // add Nodes
|
|
38676
|
+
modeler.addNode(actualFlow, data.id, true);
|
|
38677
|
+
nodeIdereator = getNodeIdGenerator(modeler.definitions);
|
|
38678
|
+
nodeIdereator.updateCounters();
|
|
38679
|
+
}
|
|
38680
|
+
case 4:
|
|
38681
|
+
case "end":
|
|
38682
|
+
return _context.stop();
|
|
38683
|
+
}
|
|
38684
|
+
}, _callee);
|
|
38685
|
+
}))();
|
|
38686
|
+
}
|
|
38395
38687
|
});
|
|
38396
38688
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/messageFlow/messageFlow.vue?vue&type=template&id=2025c58d&
|
|
38397
38689
|
var messageFlowvue_type_template_id_2025c58d_render = function render() {
|
|
@@ -38575,6 +38867,10 @@ var messageFlow_config_id = 'processmaker-modeler-message-flow';
|
|
|
38575
38867
|
|
|
38576
38868
|
|
|
38577
38869
|
|
|
38870
|
+
|
|
38871
|
+
|
|
38872
|
+
|
|
38873
|
+
|
|
38578
38874
|
/* harmony default export */ var nodes_messageFlow = ({
|
|
38579
38875
|
id: messageFlow_config_id,
|
|
38580
38876
|
component: messageFlow,
|
|
@@ -38604,7 +38900,30 @@ var messageFlow_config_id = 'processmaker-modeler-message-flow';
|
|
|
38604
38900
|
config: inspectors_nameConfigSettings
|
|
38605
38901
|
}]
|
|
38606
38902
|
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
38607
|
-
}]
|
|
38903
|
+
}],
|
|
38904
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
38905
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
38906
|
+
var paper, sourceElem, targetElem, flow, actualFlow, nodeIdereator;
|
|
38907
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
38908
|
+
while (1) switch (_context.prev = _context.next) {
|
|
38909
|
+
case 0:
|
|
38910
|
+
paper = modeler.paper;
|
|
38911
|
+
sourceElem = modeler.getElementByNodeId(data.sourceRefId);
|
|
38912
|
+
targetElem = modeler.getElementByNodeId(data.targetRefId);
|
|
38913
|
+
if (sourceElem && targetElem) {
|
|
38914
|
+
flow = new MessageFlow(modeler.nodeRegistry, modeler.moddle, paper);
|
|
38915
|
+
actualFlow = flow.makeFlowNode(sourceElem, targetElem, data.waypoint); // add Nodes
|
|
38916
|
+
modeler.addNode(actualFlow, data.id, true);
|
|
38917
|
+
nodeIdereator = getNodeIdGenerator(modeler.definitions);
|
|
38918
|
+
nodeIdereator.updateCounters();
|
|
38919
|
+
}
|
|
38920
|
+
case 4:
|
|
38921
|
+
case "end":
|
|
38922
|
+
return _context.stop();
|
|
38923
|
+
}
|
|
38924
|
+
}, _callee);
|
|
38925
|
+
}))();
|
|
38926
|
+
}
|
|
38608
38927
|
});
|
|
38609
38928
|
// EXTERNAL MODULE: ./node_modules/svg-inline-loader/index.js!./src/assets/message-end-event.svg
|
|
38610
38929
|
var message_end_event = __webpack_require__(18256);
|
|
@@ -38918,8 +39237,6 @@ var MessageSelectvue_type_template_id_395d11da_scoped_true_staticRenderFns = [];
|
|
|
38918
39237
|
|
|
38919
39238
|
;// CONCATENATED MODULE: ./src/components/inspectors/MessageSelect.vue?vue&type=template&id=395d11da&scoped=true&
|
|
38920
39239
|
|
|
38921
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
|
38922
|
-
var es_string_match = __webpack_require__(4723);
|
|
38923
39240
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
|
|
38924
39241
|
var es_array_find_index = __webpack_require__(34553);
|
|
38925
39242
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/inspectors/MessageSelect.vue?vue&type=script&lang=js&
|
|
@@ -43849,283 +44166,6 @@ var LoopCharacteristics_component = normalizeComponent(
|
|
|
43849
44166
|
/* harmony default export */ var LoopCharacteristics = (LoopCharacteristics_component.exports);
|
|
43850
44167
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
43851
44168
|
var es_object_assign = __webpack_require__(19601);
|
|
43852
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-names.js
|
|
43853
|
-
var es_object_get_own_property_names = __webpack_require__(36210);
|
|
43854
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js
|
|
43855
|
-
|
|
43856
|
-
function _checkPrivateRedeclaration(obj, privateCollection) {
|
|
43857
|
-
if (privateCollection.has(obj)) {
|
|
43858
|
-
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
43859
|
-
}
|
|
43860
|
-
}
|
|
43861
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js
|
|
43862
|
-
|
|
43863
|
-
function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
43864
|
-
_checkPrivateRedeclaration(obj, privateMap);
|
|
43865
|
-
privateMap.set(obj, value);
|
|
43866
|
-
}
|
|
43867
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js
|
|
43868
|
-
function _classApplyDescriptorGet(receiver, descriptor) {
|
|
43869
|
-
if (descriptor.get) {
|
|
43870
|
-
return descriptor.get.call(receiver);
|
|
43871
|
-
}
|
|
43872
|
-
return descriptor.value;
|
|
43873
|
-
}
|
|
43874
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js
|
|
43875
|
-
|
|
43876
|
-
function _classExtractFieldDescriptor(receiver, privateMap, action) {
|
|
43877
|
-
if (!privateMap.has(receiver)) {
|
|
43878
|
-
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
43879
|
-
}
|
|
43880
|
-
return privateMap.get(receiver);
|
|
43881
|
-
}
|
|
43882
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js
|
|
43883
|
-
|
|
43884
|
-
|
|
43885
|
-
function _classPrivateFieldGet(receiver, privateMap) {
|
|
43886
|
-
var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get");
|
|
43887
|
-
return _classApplyDescriptorGet(receiver, descriptor);
|
|
43888
|
-
}
|
|
43889
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js
|
|
43890
|
-
|
|
43891
|
-
function _classCheckPrivateStaticAccess(receiver, classConstructor) {
|
|
43892
|
-
if (receiver !== classConstructor) {
|
|
43893
|
-
throw new TypeError("Private static access of wrong provenance");
|
|
43894
|
-
}
|
|
43895
|
-
}
|
|
43896
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js
|
|
43897
|
-
|
|
43898
|
-
function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
|
|
43899
|
-
if (descriptor === undefined) {
|
|
43900
|
-
throw new TypeError("attempted to " + action + " private static field before its declaration");
|
|
43901
|
-
}
|
|
43902
|
-
}
|
|
43903
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js
|
|
43904
|
-
|
|
43905
|
-
|
|
43906
|
-
|
|
43907
|
-
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
|
|
43908
|
-
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
43909
|
-
_classCheckPrivateStaticFieldDescriptor(descriptor, "get");
|
|
43910
|
-
return _classApplyDescriptorGet(receiver, descriptor);
|
|
43911
|
-
}
|
|
43912
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js
|
|
43913
|
-
|
|
43914
|
-
function _classApplyDescriptorSet(receiver, descriptor, value) {
|
|
43915
|
-
if (descriptor.set) {
|
|
43916
|
-
descriptor.set.call(receiver, value);
|
|
43917
|
-
} else {
|
|
43918
|
-
if (!descriptor.writable) {
|
|
43919
|
-
throw new TypeError("attempted to set read only private field");
|
|
43920
|
-
}
|
|
43921
|
-
descriptor.value = value;
|
|
43922
|
-
}
|
|
43923
|
-
}
|
|
43924
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js
|
|
43925
|
-
|
|
43926
|
-
|
|
43927
|
-
|
|
43928
|
-
function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
|
|
43929
|
-
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
43930
|
-
_classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
|
43931
|
-
_classApplyDescriptorSet(receiver, descriptor, value);
|
|
43932
|
-
return value;
|
|
43933
|
-
}
|
|
43934
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.constructor.js
|
|
43935
|
-
var es_regexp_constructor = __webpack_require__(24603);
|
|
43936
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.dot-all.js
|
|
43937
|
-
var es_regexp_dot_all = __webpack_require__(28450);
|
|
43938
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.sticky.js
|
|
43939
|
-
var es_regexp_sticky = __webpack_require__(88386);
|
|
43940
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
43941
|
-
var es_regexp_to_string = __webpack_require__(39714);
|
|
43942
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.weak-map.js
|
|
43943
|
-
var es_weak_map = __webpack_require__(4129);
|
|
43944
|
-
;// CONCATENATED MODULE: ./src/NodeIdGenerator.js
|
|
43945
|
-
|
|
43946
|
-
|
|
43947
|
-
|
|
43948
|
-
|
|
43949
|
-
|
|
43950
|
-
|
|
43951
|
-
|
|
43952
|
-
|
|
43953
|
-
|
|
43954
|
-
|
|
43955
|
-
|
|
43956
|
-
|
|
43957
|
-
|
|
43958
|
-
|
|
43959
|
-
|
|
43960
|
-
|
|
43961
|
-
|
|
43962
|
-
|
|
43963
|
-
|
|
43964
|
-
|
|
43965
|
-
|
|
43966
|
-
|
|
43967
|
-
var _generateDefinitionId = /*#__PURE__*/new WeakMap();
|
|
43968
|
-
var _generateDiagramId = /*#__PURE__*/new WeakMap();
|
|
43969
|
-
var _generateProcessId = /*#__PURE__*/new WeakMap();
|
|
43970
|
-
var NodeIdGenerator = /*#__PURE__*/function () {
|
|
43971
|
-
function NodeIdGenerator(definitions) {
|
|
43972
|
-
_classCallCheck(this, NodeIdGenerator);
|
|
43973
|
-
_classPrivateFieldInitSpec(this, _generateDefinitionId, {
|
|
43974
|
-
writable: true,
|
|
43975
|
-
value: function value() {
|
|
43976
|
-
var _NodeIdGenerator$coun3, _NodeIdGenerator$coun4;
|
|
43977
|
-
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
43978
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun4 = _NodeIdGenerator$coun3++, _NodeIdGenerator$coun3)), _NodeIdGenerator$coun4;
|
|
43979
|
-
return id;
|
|
43980
|
-
}
|
|
43981
|
-
});
|
|
43982
|
-
_classPrivateFieldInitSpec(this, _generateDiagramId, {
|
|
43983
|
-
writable: true,
|
|
43984
|
-
value: function value() {
|
|
43985
|
-
var _NodeIdGenerator$diag3, _NodeIdGenerator$diag4;
|
|
43986
|
-
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter) + '_di';
|
|
43987
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag4 = _NodeIdGenerator$diag3++, _NodeIdGenerator$diag3)), _NodeIdGenerator$diag4;
|
|
43988
|
-
return id;
|
|
43989
|
-
}
|
|
43990
|
-
});
|
|
43991
|
-
_classPrivateFieldInitSpec(this, _generateProcessId, {
|
|
43992
|
-
writable: true,
|
|
43993
|
-
value: function value() {
|
|
43994
|
-
var _NodeIdGenerator$proc, _NodeIdGenerator$proc2;
|
|
43995
|
-
var id = NodeIdGenerator.processPrefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _processCounter);
|
|
43996
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _processCounter, (_NodeIdGenerator$proc = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _processCounter), _NodeIdGenerator$proc2 = _NodeIdGenerator$proc++, _NodeIdGenerator$proc)), _NodeIdGenerator$proc2;
|
|
43997
|
-
return id;
|
|
43998
|
-
}
|
|
43999
|
-
});
|
|
44000
|
-
this.definitions = definitions;
|
|
44001
|
-
this.refreshLastIdCounter();
|
|
44002
|
-
this.refreshLastDiagramIdCounter();
|
|
44003
|
-
this.refreshLastProcessIdCounter();
|
|
44004
|
-
}
|
|
44005
|
-
_createClass(NodeIdGenerator, [{
|
|
44006
|
-
key: "findById",
|
|
44007
|
-
value: function findById(id) {
|
|
44008
|
-
var _this = this;
|
|
44009
|
-
var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.definitions.rootElements;
|
|
44010
|
-
var walked = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
44011
|
-
if (walked.indexOf(root) > -1) return;
|
|
44012
|
-
var found;
|
|
44013
|
-
if (root instanceof Array) {
|
|
44014
|
-
walked.push(root);
|
|
44015
|
-
root.find(function (item) {
|
|
44016
|
-
return found = _this.findById(id, item, walked);
|
|
44017
|
-
});
|
|
44018
|
-
} else if (root instanceof Object && root.$type) {
|
|
44019
|
-
walked.push(root);
|
|
44020
|
-
if (root.id === id) return root;
|
|
44021
|
-
Object.getOwnPropertyNames(root).find(function (key) {
|
|
44022
|
-
return found = !(root[key] instanceof Function) && key.substring(0, 1) !== '$' && _this.findById(id, root[key], walked);
|
|
44023
|
-
});
|
|
44024
|
-
}
|
|
44025
|
-
return found;
|
|
44026
|
-
}
|
|
44027
|
-
}, {
|
|
44028
|
-
key: "matchIds",
|
|
44029
|
-
value: function matchIds(idRegex, root) {
|
|
44030
|
-
var _this2 = this;
|
|
44031
|
-
var walked = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
44032
|
-
var lastIdCounter = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
44033
|
-
if (walked.indexOf(root) > -1) return lastIdCounter;
|
|
44034
|
-
if (root instanceof Array) {
|
|
44035
|
-
walked.push(root);
|
|
44036
|
-
root.forEach(function (item) {
|
|
44037
|
-
return lastIdCounter = _this2.matchIds(idRegex, item, walked, lastIdCounter);
|
|
44038
|
-
});
|
|
44039
|
-
} else if (root instanceof Object) {
|
|
44040
|
-
walked.push(root);
|
|
44041
|
-
if (root.id) {
|
|
44042
|
-
var match = String(root.id).match(idRegex);
|
|
44043
|
-
var idCounter = match ? parseInt(match[1]) : 0;
|
|
44044
|
-
if (idCounter > lastIdCounter) {
|
|
44045
|
-
lastIdCounter = idCounter;
|
|
44046
|
-
}
|
|
44047
|
-
}
|
|
44048
|
-
Object.getOwnPropertyNames(root).forEach(function (key) {
|
|
44049
|
-
if (!(root[key] instanceof Function) && key.substring(0, 1) !== '$') {
|
|
44050
|
-
lastIdCounter = _this2.matchIds(idRegex, root[key], walked, lastIdCounter);
|
|
44051
|
-
}
|
|
44052
|
-
});
|
|
44053
|
-
}
|
|
44054
|
-
return lastIdCounter;
|
|
44055
|
-
}
|
|
44056
|
-
}, {
|
|
44057
|
-
key: "refreshLastIdCounter",
|
|
44058
|
-
value: function refreshLastIdCounter() {
|
|
44059
|
-
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.prefix, "(\\d+)$")), this.definitions.rootElements);
|
|
44060
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, lastIdCounter + 1);
|
|
44061
|
-
}
|
|
44062
|
-
}, {
|
|
44063
|
-
key: "getCounter",
|
|
44064
|
-
value: function getCounter() {
|
|
44065
|
-
this.refreshLastIdCounter();
|
|
44066
|
-
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
44067
|
-
}
|
|
44068
|
-
}, {
|
|
44069
|
-
key: "getDefinitionNumber",
|
|
44070
|
-
value: function getDefinitionNumber() {
|
|
44071
|
-
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
44072
|
-
}
|
|
44073
|
-
}, {
|
|
44074
|
-
key: "updateCounters",
|
|
44075
|
-
value: function updateCounters() {
|
|
44076
|
-
var _NodeIdGenerator$coun, _NodeIdGenerator$coun2, _NodeIdGenerator$diag, _NodeIdGenerator$diag2;
|
|
44077
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun2 = _NodeIdGenerator$coun++, _NodeIdGenerator$coun)), _NodeIdGenerator$coun2;
|
|
44078
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag2 = _NodeIdGenerator$diag++, _NodeIdGenerator$diag)), _NodeIdGenerator$diag2;
|
|
44079
|
-
}
|
|
44080
|
-
}, {
|
|
44081
|
-
key: "refreshLastDiagramIdCounter",
|
|
44082
|
-
value: function refreshLastDiagramIdCounter() {
|
|
44083
|
-
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.prefix, "(\\d+)_di$")), this.definitions.diagrams);
|
|
44084
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, lastIdCounter + 1);
|
|
44085
|
-
}
|
|
44086
|
-
}, {
|
|
44087
|
-
key: "refreshLastProcessIdCounter",
|
|
44088
|
-
value: function refreshLastProcessIdCounter() {
|
|
44089
|
-
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.processPrefix, "(\\d+)$")), this.definitions.rootElements);
|
|
44090
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _processCounter, lastIdCounter + 1);
|
|
44091
|
-
}
|
|
44092
|
-
}, {
|
|
44093
|
-
key: "generate",
|
|
44094
|
-
value: function generate() {
|
|
44095
|
-
var definitionId = _classPrivateFieldGet(this, _generateDefinitionId).call(this);
|
|
44096
|
-
var diagramId = _classPrivateFieldGet(this, _generateDiagramId).call(this);
|
|
44097
|
-
return [definitionId, diagramId];
|
|
44098
|
-
}
|
|
44099
|
-
}, {
|
|
44100
|
-
key: "generateProcessId",
|
|
44101
|
-
value: function generateProcessId() {
|
|
44102
|
-
return _classPrivateFieldGet(this, _generateProcessId).call(this);
|
|
44103
|
-
}
|
|
44104
|
-
}]);
|
|
44105
|
-
return NodeIdGenerator;
|
|
44106
|
-
}(); // Singleton instance
|
|
44107
|
-
_defineProperty(NodeIdGenerator, "prefix", 'node_');
|
|
44108
|
-
_defineProperty(NodeIdGenerator, "processPrefix", 'Process_');
|
|
44109
|
-
var _counter = {
|
|
44110
|
-
writable: true,
|
|
44111
|
-
value: 1
|
|
44112
|
-
};
|
|
44113
|
-
var _diagramCounter = {
|
|
44114
|
-
writable: true,
|
|
44115
|
-
value: 1
|
|
44116
|
-
};
|
|
44117
|
-
var _processCounter = {
|
|
44118
|
-
writable: true,
|
|
44119
|
-
value: 1
|
|
44120
|
-
};
|
|
44121
|
-
|
|
44122
|
-
var singleton = null;
|
|
44123
|
-
function getNodeIdGenerator(definitions) {
|
|
44124
|
-
if (!singleton) {
|
|
44125
|
-
singleton = new NodeIdGenerator(definitions);
|
|
44126
|
-
}
|
|
44127
|
-
return singleton;
|
|
44128
|
-
}
|
|
44129
44169
|
;// CONCATENATED MODULE: ./src/NodeInspector.js
|
|
44130
44170
|
|
|
44131
44171
|
|
|
@@ -45382,8 +45422,8 @@ var textAnnotation_id = 'processmaker-modeler-text-annotation';
|
|
|
45382
45422
|
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
45383
45423
|
}]
|
|
45384
45424
|
});
|
|
45385
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/pool/pool.vue?vue&type=template&id=
|
|
45386
|
-
var
|
|
45425
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/pool/pool.vue?vue&type=template&id=fbed1670&
|
|
45426
|
+
var poolvue_type_template_id_fbed1670_render = function render() {
|
|
45387
45427
|
var _vm = this,
|
|
45388
45428
|
_c = _vm._self._c;
|
|
45389
45429
|
return _c('crown-config', _vm._g({
|
|
@@ -45436,7 +45476,7 @@ var poolvue_type_template_id_294eae13_render = function render() {
|
|
|
45436
45476
|
}
|
|
45437
45477
|
})], 1);
|
|
45438
45478
|
};
|
|
45439
|
-
var
|
|
45479
|
+
var poolvue_type_template_id_fbed1670_staticRenderFns = [];
|
|
45440
45480
|
|
|
45441
45481
|
;// CONCATENATED MODULE: ./src/assets/highlight-shape.svg
|
|
45442
45482
|
var highlight_shape_namespaceObject = __webpack_require__.p + "img/highlight-shape.5f7b1ba9.svg";
|
|
@@ -46082,176 +46122,6 @@ var poolLane_component = normalizeComponent(
|
|
|
46082
46122
|
)
|
|
46083
46123
|
|
|
46084
46124
|
/* harmony default export */ var poolLane = (poolLane_component.exports);
|
|
46085
|
-
;// CONCATENATED MODULE: ./src/components/nodes/poolLane/index.js
|
|
46086
|
-
|
|
46087
|
-
|
|
46088
|
-
|
|
46089
|
-
|
|
46090
|
-
|
|
46091
|
-
/* harmony default export */ var nodes_poolLane = ({
|
|
46092
|
-
id: poolLane_config_id,
|
|
46093
|
-
component: poolLane,
|
|
46094
|
-
bpmnType: 'bpmn:Lane',
|
|
46095
|
-
control: false,
|
|
46096
|
-
category: 'BPMN',
|
|
46097
|
-
label: 'Lane',
|
|
46098
|
-
definition: function definition(moddle) {
|
|
46099
|
-
return moddle.create('bpmn:Lane', {
|
|
46100
|
-
name: ''
|
|
46101
|
-
});
|
|
46102
|
-
},
|
|
46103
|
-
diagram: function diagram(moddle) {
|
|
46104
|
-
return moddle.create('bpmndi:BPMNShape', {
|
|
46105
|
-
bounds: moddle.create('dc:Bounds', {
|
|
46106
|
-
height: 150,
|
|
46107
|
-
width: 600,
|
|
46108
|
-
x: null,
|
|
46109
|
-
y: null
|
|
46110
|
-
})
|
|
46111
|
-
});
|
|
46112
|
-
},
|
|
46113
|
-
inspectorConfig: [{
|
|
46114
|
-
name: 'Lane',
|
|
46115
|
-
items: [{
|
|
46116
|
-
component: 'FormAccordion',
|
|
46117
|
-
container: true,
|
|
46118
|
-
config: {
|
|
46119
|
-
initiallyOpen: true,
|
|
46120
|
-
label: 'Properties',
|
|
46121
|
-
icon: 'cog',
|
|
46122
|
-
name: 'inspector-accordion-pool-lane'
|
|
46123
|
-
},
|
|
46124
|
-
items: [{
|
|
46125
|
-
component: 'FormInput',
|
|
46126
|
-
config: inspectors_nameConfigSettings
|
|
46127
|
-
}]
|
|
46128
|
-
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
46129
|
-
}]
|
|
46130
|
-
});
|
|
46131
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneAboveButton.vue?vue&type=template&id=fc69b4f4&
|
|
46132
|
-
var addLaneAboveButtonvue_type_template_id_fc69b4f4_render = function render() {
|
|
46133
|
-
var _vm = this,
|
|
46134
|
-
_c = _vm._self._c;
|
|
46135
|
-
return _c('crown-button', _vm._g({
|
|
46136
|
-
attrs: {
|
|
46137
|
-
"id": "lane-above-button",
|
|
46138
|
-
"aria-label": "Add lane above icon",
|
|
46139
|
-
"width": 25
|
|
46140
|
-
}
|
|
46141
|
-
}, _vm.$listeners), [_c('font-awesome-icon', {
|
|
46142
|
-
attrs: {
|
|
46143
|
-
"icon": ['fpm', 'fa-lane-above']
|
|
46144
|
-
}
|
|
46145
|
-
})], 1);
|
|
46146
|
-
};
|
|
46147
|
-
var addLaneAboveButtonvue_type_template_id_fc69b4f4_staticRenderFns = [];
|
|
46148
|
-
|
|
46149
|
-
;// CONCATENATED MODULE: ./src/assets/lane-above.svg
|
|
46150
|
-
var lane_above_namespaceObject = __webpack_require__.p + "img/lane-above.37ee2b80.svg";
|
|
46151
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneAboveButton.vue?vue&type=script&lang=js&
|
|
46152
|
-
|
|
46153
|
-
|
|
46154
|
-
|
|
46155
|
-
|
|
46156
|
-
|
|
46157
|
-
/* harmony default export */ var addLaneAboveButtonvue_type_script_lang_js_ = ({
|
|
46158
|
-
components: {
|
|
46159
|
-
CrownButton: crownButton,
|
|
46160
|
-
FontAwesomeIcon: vue_fontawesome_namespaceObject.FontAwesomeIcon
|
|
46161
|
-
},
|
|
46162
|
-
data: function data() {
|
|
46163
|
-
return {
|
|
46164
|
-
laneAboveIcon: lane_above_namespaceObject
|
|
46165
|
-
};
|
|
46166
|
-
},
|
|
46167
|
-
created: function created() {
|
|
46168
|
-
fontawesome_svg_core_namespaceObject.library.add(faLaneAbove);
|
|
46169
|
-
}
|
|
46170
|
-
});
|
|
46171
|
-
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneAboveButton.vue?vue&type=script&lang=js&
|
|
46172
|
-
/* harmony default export */ var crownButtons_addLaneAboveButtonvue_type_script_lang_js_ = (addLaneAboveButtonvue_type_script_lang_js_);
|
|
46173
|
-
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneAboveButton.vue
|
|
46174
|
-
|
|
46175
|
-
|
|
46176
|
-
|
|
46177
|
-
|
|
46178
|
-
|
|
46179
|
-
/* normalize component */
|
|
46180
|
-
;
|
|
46181
|
-
var addLaneAboveButton_component = normalizeComponent(
|
|
46182
|
-
crownButtons_addLaneAboveButtonvue_type_script_lang_js_,
|
|
46183
|
-
addLaneAboveButtonvue_type_template_id_fc69b4f4_render,
|
|
46184
|
-
addLaneAboveButtonvue_type_template_id_fc69b4f4_staticRenderFns,
|
|
46185
|
-
false,
|
|
46186
|
-
null,
|
|
46187
|
-
null,
|
|
46188
|
-
null
|
|
46189
|
-
|
|
46190
|
-
)
|
|
46191
|
-
|
|
46192
|
-
/* harmony default export */ var addLaneAboveButton = (addLaneAboveButton_component.exports);
|
|
46193
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneBelowButton.vue?vue&type=template&id=4b1af748&
|
|
46194
|
-
var addLaneBelowButtonvue_type_template_id_4b1af748_render = function render() {
|
|
46195
|
-
var _vm = this,
|
|
46196
|
-
_c = _vm._self._c;
|
|
46197
|
-
return _c('crown-button', _vm._g({
|
|
46198
|
-
attrs: {
|
|
46199
|
-
"id": "lane-below-button",
|
|
46200
|
-
"aria-label": "Add lane below icon",
|
|
46201
|
-
"width": 25
|
|
46202
|
-
}
|
|
46203
|
-
}, _vm.$listeners), [_c('font-awesome-icon', {
|
|
46204
|
-
attrs: {
|
|
46205
|
-
"icon": ['fpm', 'fa-lane-below']
|
|
46206
|
-
}
|
|
46207
|
-
})], 1);
|
|
46208
|
-
};
|
|
46209
|
-
var addLaneBelowButtonvue_type_template_id_4b1af748_staticRenderFns = [];
|
|
46210
|
-
|
|
46211
|
-
;// CONCATENATED MODULE: ./src/assets/lane-below.svg
|
|
46212
|
-
var lane_below_namespaceObject = __webpack_require__.p + "img/lane-below.22169670.svg";
|
|
46213
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneBelowButton.vue?vue&type=script&lang=js&
|
|
46214
|
-
|
|
46215
|
-
|
|
46216
|
-
|
|
46217
|
-
|
|
46218
|
-
|
|
46219
|
-
/* harmony default export */ var addLaneBelowButtonvue_type_script_lang_js_ = ({
|
|
46220
|
-
components: {
|
|
46221
|
-
CrownButton: crownButton,
|
|
46222
|
-
FontAwesomeIcon: vue_fontawesome_namespaceObject.FontAwesomeIcon
|
|
46223
|
-
},
|
|
46224
|
-
data: function data() {
|
|
46225
|
-
return {
|
|
46226
|
-
laneBelowIcon: lane_below_namespaceObject
|
|
46227
|
-
};
|
|
46228
|
-
},
|
|
46229
|
-
created: function created() {
|
|
46230
|
-
fontawesome_svg_core_namespaceObject.library.add(faLaneBelow);
|
|
46231
|
-
}
|
|
46232
|
-
});
|
|
46233
|
-
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneBelowButton.vue?vue&type=script&lang=js&
|
|
46234
|
-
/* harmony default export */ var crownButtons_addLaneBelowButtonvue_type_script_lang_js_ = (addLaneBelowButtonvue_type_script_lang_js_);
|
|
46235
|
-
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneBelowButton.vue
|
|
46236
|
-
|
|
46237
|
-
|
|
46238
|
-
|
|
46239
|
-
|
|
46240
|
-
|
|
46241
|
-
/* normalize component */
|
|
46242
|
-
;
|
|
46243
|
-
var addLaneBelowButton_component = normalizeComponent(
|
|
46244
|
-
crownButtons_addLaneBelowButtonvue_type_script_lang_js_,
|
|
46245
|
-
addLaneBelowButtonvue_type_template_id_4b1af748_render,
|
|
46246
|
-
addLaneBelowButtonvue_type_template_id_4b1af748_staticRenderFns,
|
|
46247
|
-
false,
|
|
46248
|
-
null,
|
|
46249
|
-
null,
|
|
46250
|
-
null
|
|
46251
|
-
|
|
46252
|
-
)
|
|
46253
|
-
|
|
46254
|
-
/* harmony default export */ var addLaneBelowButton = (addLaneBelowButton_component.exports);
|
|
46255
46125
|
;// CONCATENATED MODULE: ./src/components/nodes/pool/poolShape.js
|
|
46256
46126
|
|
|
46257
46127
|
|
|
@@ -46660,6 +46530,227 @@ function configurePool(collaboration, node, graph) {
|
|
|
46660
46530
|
function elementShouldHaveFlowNodeRef(element) {
|
|
46661
46531
|
return element.component && element.component.node.type !== poolLane_config_id && element.component.node.type !== textAnnotation_id && element.component.node.type !== dataObject_id && element.component.node.type !== dataStore_id;
|
|
46662
46532
|
}
|
|
46533
|
+
;// CONCATENATED MODULE: ./src/components/nodes/poolLane/index.js
|
|
46534
|
+
|
|
46535
|
+
|
|
46536
|
+
|
|
46537
|
+
|
|
46538
|
+
|
|
46539
|
+
|
|
46540
|
+
|
|
46541
|
+
|
|
46542
|
+
|
|
46543
|
+
|
|
46544
|
+
|
|
46545
|
+
|
|
46546
|
+
|
|
46547
|
+
|
|
46548
|
+
|
|
46549
|
+
/* harmony default export */ var nodes_poolLane = ({
|
|
46550
|
+
id: poolLane_config_id,
|
|
46551
|
+
component: poolLane,
|
|
46552
|
+
bpmnType: 'bpmn:Lane',
|
|
46553
|
+
control: false,
|
|
46554
|
+
category: 'BPMN',
|
|
46555
|
+
label: 'Lane',
|
|
46556
|
+
definition: function definition(moddle) {
|
|
46557
|
+
return moddle.create('bpmn:Lane', {
|
|
46558
|
+
name: ''
|
|
46559
|
+
});
|
|
46560
|
+
},
|
|
46561
|
+
diagram: function diagram(moddle) {
|
|
46562
|
+
return moddle.create('bpmndi:BPMNShape', {
|
|
46563
|
+
bounds: moddle.create('dc:Bounds', {
|
|
46564
|
+
height: 150,
|
|
46565
|
+
width: 600,
|
|
46566
|
+
x: null,
|
|
46567
|
+
y: null
|
|
46568
|
+
})
|
|
46569
|
+
});
|
|
46570
|
+
},
|
|
46571
|
+
inspectorConfig: [{
|
|
46572
|
+
name: 'Lane',
|
|
46573
|
+
items: [{
|
|
46574
|
+
component: 'FormAccordion',
|
|
46575
|
+
container: true,
|
|
46576
|
+
config: {
|
|
46577
|
+
initiallyOpen: true,
|
|
46578
|
+
label: 'Properties',
|
|
46579
|
+
icon: 'cog',
|
|
46580
|
+
name: 'inspector-accordion-pool-lane'
|
|
46581
|
+
},
|
|
46582
|
+
items: [{
|
|
46583
|
+
component: 'FormInput',
|
|
46584
|
+
config: inspectors_nameConfigSettings
|
|
46585
|
+
}]
|
|
46586
|
+
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
46587
|
+
}],
|
|
46588
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
46589
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
46590
|
+
var pool, definition, nodeIdereator, diagram, node;
|
|
46591
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
46592
|
+
while (1) switch (_context.prev = _context.next) {
|
|
46593
|
+
case 0:
|
|
46594
|
+
pool = modeler.getElementByNodeId(data.poolId);
|
|
46595
|
+
definition = modeler.moddle.create('bpmn:Lane', {
|
|
46596
|
+
name: data.name
|
|
46597
|
+
});
|
|
46598
|
+
if (!pool.component.laneSet && pool.component.createLaneSet) {
|
|
46599
|
+
pool.component.createLaneSet([data.laneSetId]);
|
|
46600
|
+
/* If there are currently elements in the pool, add them to the first lane */
|
|
46601
|
+
pool.component.shape.getEmbeddedCells().filter(function (element) {
|
|
46602
|
+
return elementShouldHaveFlowNodeRef(element);
|
|
46603
|
+
}).forEach(function (element) {
|
|
46604
|
+
definition.get('flowNodeRef').push(element.component.node.definition);
|
|
46605
|
+
});
|
|
46606
|
+
nodeIdereator = getNodeIdGenerator(modeler.definitions);
|
|
46607
|
+
nodeIdereator.updateCounters();
|
|
46608
|
+
}
|
|
46609
|
+
diagram = modeler.moddle.create('bpmndi:BPMNShape', {
|
|
46610
|
+
bounds: modeler.moddle.create('dc:Bounds', {
|
|
46611
|
+
height: data.height,
|
|
46612
|
+
width: data.width,
|
|
46613
|
+
x: data.x,
|
|
46614
|
+
y: data.y
|
|
46615
|
+
})
|
|
46616
|
+
});
|
|
46617
|
+
node = new Node(data.type, definition, diagram);
|
|
46618
|
+
_context.next = 7;
|
|
46619
|
+
return modeler.addNode(node, data.id, true);
|
|
46620
|
+
case 7:
|
|
46621
|
+
modeler.setShapeStacking(pool.component.shape);
|
|
46622
|
+
case 8:
|
|
46623
|
+
case "end":
|
|
46624
|
+
return _context.stop();
|
|
46625
|
+
}
|
|
46626
|
+
}, _callee);
|
|
46627
|
+
}))();
|
|
46628
|
+
}
|
|
46629
|
+
});
|
|
46630
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneAboveButton.vue?vue&type=template&id=fc69b4f4&
|
|
46631
|
+
var addLaneAboveButtonvue_type_template_id_fc69b4f4_render = function render() {
|
|
46632
|
+
var _vm = this,
|
|
46633
|
+
_c = _vm._self._c;
|
|
46634
|
+
return _c('crown-button', _vm._g({
|
|
46635
|
+
attrs: {
|
|
46636
|
+
"id": "lane-above-button",
|
|
46637
|
+
"aria-label": "Add lane above icon",
|
|
46638
|
+
"width": 25
|
|
46639
|
+
}
|
|
46640
|
+
}, _vm.$listeners), [_c('font-awesome-icon', {
|
|
46641
|
+
attrs: {
|
|
46642
|
+
"icon": ['fpm', 'fa-lane-above']
|
|
46643
|
+
}
|
|
46644
|
+
})], 1);
|
|
46645
|
+
};
|
|
46646
|
+
var addLaneAboveButtonvue_type_template_id_fc69b4f4_staticRenderFns = [];
|
|
46647
|
+
|
|
46648
|
+
;// CONCATENATED MODULE: ./src/assets/lane-above.svg
|
|
46649
|
+
var lane_above_namespaceObject = __webpack_require__.p + "img/lane-above.37ee2b80.svg";
|
|
46650
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneAboveButton.vue?vue&type=script&lang=js&
|
|
46651
|
+
|
|
46652
|
+
|
|
46653
|
+
|
|
46654
|
+
|
|
46655
|
+
|
|
46656
|
+
/* harmony default export */ var addLaneAboveButtonvue_type_script_lang_js_ = ({
|
|
46657
|
+
components: {
|
|
46658
|
+
CrownButton: crownButton,
|
|
46659
|
+
FontAwesomeIcon: vue_fontawesome_namespaceObject.FontAwesomeIcon
|
|
46660
|
+
},
|
|
46661
|
+
data: function data() {
|
|
46662
|
+
return {
|
|
46663
|
+
laneAboveIcon: lane_above_namespaceObject
|
|
46664
|
+
};
|
|
46665
|
+
},
|
|
46666
|
+
created: function created() {
|
|
46667
|
+
fontawesome_svg_core_namespaceObject.library.add(faLaneAbove);
|
|
46668
|
+
}
|
|
46669
|
+
});
|
|
46670
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneAboveButton.vue?vue&type=script&lang=js&
|
|
46671
|
+
/* harmony default export */ var crownButtons_addLaneAboveButtonvue_type_script_lang_js_ = (addLaneAboveButtonvue_type_script_lang_js_);
|
|
46672
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneAboveButton.vue
|
|
46673
|
+
|
|
46674
|
+
|
|
46675
|
+
|
|
46676
|
+
|
|
46677
|
+
|
|
46678
|
+
/* normalize component */
|
|
46679
|
+
;
|
|
46680
|
+
var addLaneAboveButton_component = normalizeComponent(
|
|
46681
|
+
crownButtons_addLaneAboveButtonvue_type_script_lang_js_,
|
|
46682
|
+
addLaneAboveButtonvue_type_template_id_fc69b4f4_render,
|
|
46683
|
+
addLaneAboveButtonvue_type_template_id_fc69b4f4_staticRenderFns,
|
|
46684
|
+
false,
|
|
46685
|
+
null,
|
|
46686
|
+
null,
|
|
46687
|
+
null
|
|
46688
|
+
|
|
46689
|
+
)
|
|
46690
|
+
|
|
46691
|
+
/* harmony default export */ var addLaneAboveButton = (addLaneAboveButton_component.exports);
|
|
46692
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneBelowButton.vue?vue&type=template&id=4b1af748&
|
|
46693
|
+
var addLaneBelowButtonvue_type_template_id_4b1af748_render = function render() {
|
|
46694
|
+
var _vm = this,
|
|
46695
|
+
_c = _vm._self._c;
|
|
46696
|
+
return _c('crown-button', _vm._g({
|
|
46697
|
+
attrs: {
|
|
46698
|
+
"id": "lane-below-button",
|
|
46699
|
+
"aria-label": "Add lane below icon",
|
|
46700
|
+
"width": 25
|
|
46701
|
+
}
|
|
46702
|
+
}, _vm.$listeners), [_c('font-awesome-icon', {
|
|
46703
|
+
attrs: {
|
|
46704
|
+
"icon": ['fpm', 'fa-lane-below']
|
|
46705
|
+
}
|
|
46706
|
+
})], 1);
|
|
46707
|
+
};
|
|
46708
|
+
var addLaneBelowButtonvue_type_template_id_4b1af748_staticRenderFns = [];
|
|
46709
|
+
|
|
46710
|
+
;// CONCATENATED MODULE: ./src/assets/lane-below.svg
|
|
46711
|
+
var lane_below_namespaceObject = __webpack_require__.p + "img/lane-below.22169670.svg";
|
|
46712
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneBelowButton.vue?vue&type=script&lang=js&
|
|
46713
|
+
|
|
46714
|
+
|
|
46715
|
+
|
|
46716
|
+
|
|
46717
|
+
|
|
46718
|
+
/* harmony default export */ var addLaneBelowButtonvue_type_script_lang_js_ = ({
|
|
46719
|
+
components: {
|
|
46720
|
+
CrownButton: crownButton,
|
|
46721
|
+
FontAwesomeIcon: vue_fontawesome_namespaceObject.FontAwesomeIcon
|
|
46722
|
+
},
|
|
46723
|
+
data: function data() {
|
|
46724
|
+
return {
|
|
46725
|
+
laneBelowIcon: lane_below_namespaceObject
|
|
46726
|
+
};
|
|
46727
|
+
},
|
|
46728
|
+
created: function created() {
|
|
46729
|
+
fontawesome_svg_core_namespaceObject.library.add(faLaneBelow);
|
|
46730
|
+
}
|
|
46731
|
+
});
|
|
46732
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneBelowButton.vue?vue&type=script&lang=js&
|
|
46733
|
+
/* harmony default export */ var crownButtons_addLaneBelowButtonvue_type_script_lang_js_ = (addLaneBelowButtonvue_type_script_lang_js_);
|
|
46734
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneBelowButton.vue
|
|
46735
|
+
|
|
46736
|
+
|
|
46737
|
+
|
|
46738
|
+
|
|
46739
|
+
|
|
46740
|
+
/* normalize component */
|
|
46741
|
+
;
|
|
46742
|
+
var addLaneBelowButton_component = normalizeComponent(
|
|
46743
|
+
crownButtons_addLaneBelowButtonvue_type_script_lang_js_,
|
|
46744
|
+
addLaneBelowButtonvue_type_template_id_4b1af748_render,
|
|
46745
|
+
addLaneBelowButtonvue_type_template_id_4b1af748_staticRenderFns,
|
|
46746
|
+
false,
|
|
46747
|
+
null,
|
|
46748
|
+
null,
|
|
46749
|
+
null
|
|
46750
|
+
|
|
46751
|
+
)
|
|
46752
|
+
|
|
46753
|
+
/* harmony default export */ var addLaneBelowButton = (addLaneBelowButton_component.exports);
|
|
46663
46754
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/pool/pool.vue?vue&type=script&lang=js&
|
|
46664
46755
|
|
|
46665
46756
|
|
|
@@ -46774,6 +46865,26 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
46774
46865
|
pull_default()(this.containingProcess.get('flowElements'), elementDefinition);
|
|
46775
46866
|
toPool.component.containingProcess.get('flowElements').push(elementDefinition);
|
|
46776
46867
|
},
|
|
46868
|
+
moveElementRemote: function moveElementRemote(element, toPool) {
|
|
46869
|
+
var elementDefinition = element.component.node.definition;
|
|
46870
|
+
if (this.laneSet) {
|
|
46871
|
+
/* Remove references to the element from the current Lane */
|
|
46872
|
+
var containingLane = this.laneSet.get('lanes').find(function (lane) {
|
|
46873
|
+
return lane.get('flowNodeRef').includes(elementDefinition);
|
|
46874
|
+
});
|
|
46875
|
+
pull_default()(containingLane.get('flowNodeRef'), elementDefinition);
|
|
46876
|
+
}
|
|
46877
|
+
|
|
46878
|
+
/* Remove references to the element from the current process */
|
|
46879
|
+
pull_default()(this.containingProcess.get('flowElements'), elementDefinition);
|
|
46880
|
+
element.component.node.pool = toPool;
|
|
46881
|
+
this.shape.unembed(element);
|
|
46882
|
+
toPool.component.shape.embed(element);
|
|
46883
|
+
if (element.component.node.type !== poolLane_config_id && toPool.component.laneSet) {
|
|
46884
|
+
toPool.component.updateLaneChildren();
|
|
46885
|
+
}
|
|
46886
|
+
this.$emit('set-shape-stacking', element.component.shape);
|
|
46887
|
+
},
|
|
46777
46888
|
moveElement: function moveElement(element, toPool) {
|
|
46778
46889
|
var elementDefinition = element.component.node.definition;
|
|
46779
46890
|
if (this.laneSet) {
|
|
@@ -46793,12 +46904,14 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
46793
46904
|
toPool.component.addToPool(element);
|
|
46794
46905
|
},
|
|
46795
46906
|
addLane: function addLane() {
|
|
46796
|
-
var
|
|
46907
|
+
var _arguments = arguments,
|
|
46908
|
+
_this3 = this;
|
|
46797
46909
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
46798
|
-
var lanes, definition;
|
|
46910
|
+
var emitMultiplayer, lanes, definition;
|
|
46799
46911
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
46800
46912
|
while (1) switch (_context.prev = _context.next) {
|
|
46801
46913
|
case 0:
|
|
46914
|
+
emitMultiplayer = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : true;
|
|
46802
46915
|
/* A Lane element must be contained in a LaneSet element.
|
|
46803
46916
|
* Get the current laneSet element or create a new one. */
|
|
46804
46917
|
lanes = [];
|
|
@@ -46814,39 +46927,60 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
46814
46927
|
lanes.push(_this3.pushNewLane(definition));
|
|
46815
46928
|
}
|
|
46816
46929
|
lanes.push(_this3.pushNewLane());
|
|
46817
|
-
_context.next =
|
|
46818
|
-
return Promise.all(lanes)
|
|
46819
|
-
|
|
46930
|
+
_context.next = 6;
|
|
46931
|
+
return Promise.all(lanes).then(function (val) {
|
|
46932
|
+
if (emitMultiplayer && _this3.$parent.isMultiplayer) {
|
|
46933
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-addLanes', val);
|
|
46934
|
+
}
|
|
46935
|
+
});
|
|
46936
|
+
case 6:
|
|
46820
46937
|
_this3.$emit('set-shape-stacking', _this3.shape);
|
|
46821
46938
|
_this3.graph.getLinks().forEach(function (link) {
|
|
46822
46939
|
_this3.$emit('set-shape-stacking', link);
|
|
46823
46940
|
});
|
|
46824
46941
|
_this3.$emit('save-state');
|
|
46825
|
-
case
|
|
46942
|
+
case 9:
|
|
46826
46943
|
case "end":
|
|
46827
46944
|
return _context.stop();
|
|
46828
46945
|
}
|
|
46829
46946
|
}, _callee);
|
|
46830
46947
|
}))();
|
|
46831
46948
|
},
|
|
46832
|
-
createLaneSet: function createLaneSet() {
|
|
46949
|
+
createLaneSet: function createLaneSet(id) {
|
|
46833
46950
|
var laneSet = this.moddle.create('bpmn:LaneSet');
|
|
46834
46951
|
this.laneSet = laneSet;
|
|
46835
46952
|
var generator = this.nodeIdGenerator;
|
|
46836
|
-
var
|
|
46837
|
-
|
|
46838
|
-
laneSetId =
|
|
46953
|
+
var _ref2 = id !== null && id !== void 0 ? id : generator.generate(),
|
|
46954
|
+
_ref3 = _slicedToArray(_ref2, 1),
|
|
46955
|
+
laneSetId = _ref3[0];
|
|
46839
46956
|
this.laneSet.set('id', laneSetId);
|
|
46840
46957
|
this.containingProcess.get('laneSets').push(laneSet);
|
|
46841
46958
|
},
|
|
46842
46959
|
pushNewLane: function pushNewLane() {
|
|
46843
|
-
var
|
|
46844
|
-
|
|
46845
|
-
|
|
46846
|
-
|
|
46847
|
-
|
|
46848
|
-
|
|
46849
|
-
|
|
46960
|
+
var _arguments2 = arguments,
|
|
46961
|
+
_this4 = this;
|
|
46962
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
46963
|
+
var definition, diagram, node;
|
|
46964
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
46965
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
46966
|
+
case 0:
|
|
46967
|
+
definition = _arguments2.length > 0 && _arguments2[0] !== undefined ? _arguments2[0] : nodes_poolLane.definition(_this4.moddle, _this4.$t);
|
|
46968
|
+
definition.set('color', _this4.node.definition.get('color'));
|
|
46969
|
+
_this4.$emit('set-pool-target', _this4.shape);
|
|
46970
|
+
diagram = nodes_poolLane.diagram(_this4.moddle);
|
|
46971
|
+
diagram.bounds.width = _this4.shape.getBBox().width;
|
|
46972
|
+
node = new Node(nodes_poolLane.id, definition, diagram);
|
|
46973
|
+
_this4.$emit('add-node', node);
|
|
46974
|
+
_context2.next = 9;
|
|
46975
|
+
return _this4.$nextTick();
|
|
46976
|
+
case 9:
|
|
46977
|
+
return _context2.abrupt("return", node);
|
|
46978
|
+
case 10:
|
|
46979
|
+
case "end":
|
|
46980
|
+
return _context2.stop();
|
|
46981
|
+
}
|
|
46982
|
+
}, _callee2);
|
|
46983
|
+
}))();
|
|
46850
46984
|
},
|
|
46851
46985
|
addToPool: function addToPool(element) {
|
|
46852
46986
|
if (element.component.node.isBpmnType('bpmn:BoundaryEvent')) {
|
|
@@ -46999,11 +47133,11 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
46999
47133
|
});
|
|
47000
47134
|
},
|
|
47001
47135
|
resizeLanes: function resizeLanes() {
|
|
47002
|
-
var
|
|
47136
|
+
var _this5 = this;
|
|
47003
47137
|
this.sortedLanes().forEach(function (laneShape, index, lanes) {
|
|
47004
|
-
var
|
|
47005
|
-
width =
|
|
47006
|
-
height =
|
|
47138
|
+
var _this5$shape$get = _this5.shape.get('size'),
|
|
47139
|
+
width = _this5$shape$get.width,
|
|
47140
|
+
height = _this5$shape$get.height;
|
|
47007
47141
|
var _laneShape$get = laneShape.get('size'),
|
|
47008
47142
|
laneHeight = _laneShape$get.height;
|
|
47009
47143
|
var _laneShape$position = laneShape.position({
|
|
@@ -47033,17 +47167,17 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47033
47167
|
});
|
|
47034
47168
|
},
|
|
47035
47169
|
captureChildren: function captureChildren() {
|
|
47036
|
-
var
|
|
47037
|
-
this.graph.getElements().filter(function (
|
|
47038
|
-
var component =
|
|
47039
|
-
return component && component !==
|
|
47040
|
-
}).forEach(function (
|
|
47041
|
-
var component =
|
|
47170
|
+
var _this6 = this;
|
|
47171
|
+
this.graph.getElements().filter(function (_ref4) {
|
|
47172
|
+
var component = _ref4.component;
|
|
47173
|
+
return component && component !== _this6;
|
|
47174
|
+
}).forEach(function (_ref5) {
|
|
47175
|
+
var component = _ref5.component;
|
|
47042
47176
|
if (component.node.isBpmnType('bpmn:BoundaryEvent')) {
|
|
47043
47177
|
return;
|
|
47044
47178
|
}
|
|
47045
|
-
|
|
47046
|
-
component.node.pool =
|
|
47179
|
+
_this6.shape.embed(component.shape);
|
|
47180
|
+
component.node.pool = _this6.shape;
|
|
47047
47181
|
});
|
|
47048
47182
|
this.$emit('set-shape-stacking', this.shape);
|
|
47049
47183
|
this.resizePool(this.shape);
|
|
@@ -47058,7 +47192,7 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47058
47192
|
});
|
|
47059
47193
|
},
|
|
47060
47194
|
resizePool: function resizePool(pool) {
|
|
47061
|
-
var
|
|
47195
|
+
var _this7 = this;
|
|
47062
47196
|
this.fitEmbeds();
|
|
47063
47197
|
var _this$shape$get = this.shape.get('size'),
|
|
47064
47198
|
width = _this$shape$get.width,
|
|
@@ -47067,7 +47201,7 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47067
47201
|
this.shape.resize( /* Add labelWidth to ensure elements don't overlap with the pool label */
|
|
47068
47202
|
Math.max(width, bounds.width), Math.max(height, bounds.height));
|
|
47069
47203
|
this.shape.getEmbeddedCells().forEach(function (cell) {
|
|
47070
|
-
|
|
47204
|
+
_this7.expandToFitElement(cell, pool);
|
|
47071
47205
|
});
|
|
47072
47206
|
var _this$shape$position = this.shape.position(),
|
|
47073
47207
|
x = _this$shape$position.x,
|
|
@@ -47081,14 +47215,14 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47081
47215
|
this.node.diagram.bounds.height = newHeight;
|
|
47082
47216
|
},
|
|
47083
47217
|
updateLaneChildren: function updateLaneChildren() {
|
|
47084
|
-
var
|
|
47218
|
+
var _this8 = this;
|
|
47085
47219
|
/* Ensure elements in the pool are added to the lanes they are above */
|
|
47086
47220
|
|
|
47087
47221
|
var newLaneRefs = {};
|
|
47088
47222
|
this.shape.getEmbeddedCells().filter(function (element) {
|
|
47089
|
-
return elementShouldHaveFlowNodeRef(element) && element.component.node.pool ===
|
|
47223
|
+
return elementShouldHaveFlowNodeRef(element) && element.component.node.pool === _this8.shape;
|
|
47090
47224
|
}).forEach(function (element) {
|
|
47091
|
-
var lane =
|
|
47225
|
+
var lane = _this8.graph.findModelsUnderElement(element, {
|
|
47092
47226
|
searchBy: 'center'
|
|
47093
47227
|
}).find(function (element) {
|
|
47094
47228
|
return element.component && element.component.node.type === poolLane_config_id;
|
|
@@ -47112,9 +47246,9 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47112
47246
|
return this.collaboration.get('participants').length > 0;
|
|
47113
47247
|
},
|
|
47114
47248
|
setPoolSize: function setPoolSize(pool) {
|
|
47115
|
-
var
|
|
47249
|
+
var _this9 = this;
|
|
47116
47250
|
pool.getEmbeddedCells().forEach(function (cell) {
|
|
47117
|
-
|
|
47251
|
+
_this9.expandToFitElement(cell, pool);
|
|
47118
47252
|
});
|
|
47119
47253
|
var _pool$position = pool.position(),
|
|
47120
47254
|
x = _pool$position.x,
|
|
@@ -47167,8 +47301,8 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47167
47301
|
;
|
|
47168
47302
|
var pool_component = normalizeComponent(
|
|
47169
47303
|
pool_poolvue_type_script_lang_js_,
|
|
47170
|
-
|
|
47171
|
-
|
|
47304
|
+
poolvue_type_template_id_fbed1670_render,
|
|
47305
|
+
poolvue_type_template_id_fbed1670_staticRenderFns,
|
|
47172
47306
|
false,
|
|
47173
47307
|
null,
|
|
47174
47308
|
null,
|
|
@@ -47451,10 +47585,10 @@ var ValidationStatus_component = normalizeComponent(
|
|
|
47451
47585
|
)
|
|
47452
47586
|
|
|
47453
47587
|
/* harmony default export */ var ValidationStatus = (ValidationStatus_component.exports);
|
|
47454
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Modeler.vue?vue&type=template&id=
|
|
47588
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Modeler.vue?vue&type=template&id=95ee0562&
|
|
47455
47589
|
|
|
47456
47590
|
|
|
47457
|
-
var
|
|
47591
|
+
var Modelervue_type_template_id_95ee0562_render = function render() {
|
|
47458
47592
|
var _vm = this,
|
|
47459
47593
|
_c = _vm._self._c;
|
|
47460
47594
|
return _c('span', {
|
|
@@ -47673,9 +47807,9 @@ var Modelervue_type_template_id_7da49550_render = function render() {
|
|
|
47673
47807
|
}
|
|
47674
47808
|
}) : _vm._e()], 2)], 1);
|
|
47675
47809
|
};
|
|
47676
|
-
var
|
|
47810
|
+
var Modelervue_type_template_id_95ee0562_staticRenderFns = [];
|
|
47677
47811
|
|
|
47678
|
-
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=
|
|
47812
|
+
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=95ee0562&
|
|
47679
47813
|
|
|
47680
47814
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/boundaryEvent/boundaryEvent.vue?vue&type=template&id=2979ecac&
|
|
47681
47815
|
var boundaryEventvue_type_template_id_2979ecac_render = function render() {
|
|
@@ -48267,8 +48401,9 @@ external_vue_default().use(vuex_esm);
|
|
|
48267
48401
|
},
|
|
48268
48402
|
actions: {
|
|
48269
48403
|
getUserPinnedObjects: function getUserPinnedObjects(_ref) {
|
|
48404
|
+
var _window$ProcessMaker, _window$ProcessMaker$;
|
|
48270
48405
|
var commit = _ref.commit;
|
|
48271
|
-
if (
|
|
48406
|
+
if (((_window$ProcessMaker = window.ProcessMaker) === null || _window$ProcessMaker === void 0 ? void 0 : (_window$ProcessMaker$ = _window$ProcessMaker.user) === null || _window$ProcessMaker$ === void 0 ? void 0 : _window$ProcessMaker$.id) === 'standalone') {
|
|
48272
48407
|
// For standalone version of Modeler
|
|
48273
48408
|
var pinnedNodes = localStorage.pinnedNodes ? JSON.parse(localStorage.pinnedNodes) : [];
|
|
48274
48409
|
pinnedNodes.forEach(function (node) {
|
|
@@ -48288,11 +48423,12 @@ external_vue_default().use(vuex_esm);
|
|
|
48288
48423
|
});
|
|
48289
48424
|
},
|
|
48290
48425
|
addUserPinnedObject: function addUserPinnedObject(_ref3, pinnedNode) {
|
|
48426
|
+
var _window$ProcessMaker2, _window$ProcessMaker3;
|
|
48291
48427
|
var commit = _ref3.commit,
|
|
48292
48428
|
state = _ref3.state;
|
|
48293
48429
|
commit('setPinnedNodes', pinnedNode);
|
|
48294
48430
|
var pinnedNodes = state.pinnedNodeTypes;
|
|
48295
|
-
if (
|
|
48431
|
+
if (((_window$ProcessMaker2 = window.ProcessMaker) === null || _window$ProcessMaker2 === void 0 ? void 0 : (_window$ProcessMaker3 = _window$ProcessMaker2.user) === null || _window$ProcessMaker3 === void 0 ? void 0 : _window$ProcessMaker3.id) === 'standalone') {
|
|
48296
48432
|
// For standalone version of Modeler
|
|
48297
48433
|
localStorage.pinnedNodes = JSON.stringify(pinnedNodes);
|
|
48298
48434
|
return;
|
|
@@ -48306,11 +48442,12 @@ external_vue_default().use(vuex_esm);
|
|
|
48306
48442
|
});
|
|
48307
48443
|
},
|
|
48308
48444
|
removeUserPinnedObject: function removeUserPinnedObject(_ref4, nodeToUnpin) {
|
|
48445
|
+
var _window$ProcessMaker4, _window$ProcessMaker5;
|
|
48309
48446
|
var commit = _ref4.commit,
|
|
48310
48447
|
state = _ref4.state;
|
|
48311
48448
|
commit('setUnpinNode', nodeToUnpin);
|
|
48312
48449
|
var pinnedNodes = state.pinnedNodeTypes;
|
|
48313
|
-
if (
|
|
48450
|
+
if (((_window$ProcessMaker4 = window.ProcessMaker) === null || _window$ProcessMaker4 === void 0 ? void 0 : (_window$ProcessMaker5 = _window$ProcessMaker4.user) === null || _window$ProcessMaker5 === void 0 ? void 0 : _window$ProcessMaker5.id) === 'standalone') {
|
|
48314
48451
|
// For standalone version of Modeler
|
|
48315
48452
|
localStorage.pinnedNodes = JSON.stringify(pinnedNodes);
|
|
48316
48453
|
return;
|
|
@@ -51970,9 +52107,9 @@ var ValidatePanel_component = normalizeComponent(
|
|
|
51970
52107
|
|
|
51971
52108
|
|
|
51972
52109
|
|
|
51973
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=
|
|
52110
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=7a85ab32&
|
|
51974
52111
|
|
|
51975
|
-
var
|
|
52112
|
+
var MultiplayerViewUsersvue_type_template_id_7a85ab32_render = function render() {
|
|
51976
52113
|
var _vm = this,
|
|
51977
52114
|
_c = _vm._self._c;
|
|
51978
52115
|
return _c('b-avatar-group', {
|
|
@@ -51988,9 +52125,9 @@ var MultiplayerViewUsersvue_type_template_id_4e79eacd_render = function render()
|
|
|
51988
52125
|
})];
|
|
51989
52126
|
})], 2);
|
|
51990
52127
|
};
|
|
51991
|
-
var
|
|
52128
|
+
var MultiplayerViewUsersvue_type_template_id_7a85ab32_staticRenderFns = [];
|
|
51992
52129
|
|
|
51993
|
-
;// CONCATENATED MODULE: ./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=
|
|
52130
|
+
;// CONCATENATED MODULE: ./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=7a85ab32&
|
|
51994
52131
|
|
|
51995
52132
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/topRail/multiplayerViewUsers/avatar/Avatar.vue?vue&type=template&id=1c50a604&scoped=true&
|
|
51996
52133
|
var Avatarvue_type_template_id_1c50a604_scoped_true_render = function render() {
|
|
@@ -52183,7 +52320,8 @@ var Avatar_component = normalizeComponent(
|
|
|
52183
52320
|
filteredPlayers: function filteredPlayers() {
|
|
52184
52321
|
var allPlayers = (0,external_lodash_.uniqBy)(this.players, 'name');
|
|
52185
52322
|
return allPlayers.filter(function (player) {
|
|
52186
|
-
|
|
52323
|
+
var _window$ProcessMaker$;
|
|
52324
|
+
return player.name.toLowerCase() !== ((_window$ProcessMaker$ = window.ProcessMaker.user) === null || _window$ProcessMaker$ === void 0 ? void 0 : _window$ProcessMaker$.fullName.toLowerCase());
|
|
52187
52325
|
});
|
|
52188
52326
|
}
|
|
52189
52327
|
}
|
|
@@ -52200,8 +52338,8 @@ var Avatar_component = normalizeComponent(
|
|
|
52200
52338
|
;
|
|
52201
52339
|
var MultiplayerViewUsers_component = normalizeComponent(
|
|
52202
52340
|
multiplayerViewUsers_MultiplayerViewUsersvue_type_script_lang_js_,
|
|
52203
|
-
|
|
52204
|
-
|
|
52341
|
+
MultiplayerViewUsersvue_type_template_id_7a85ab32_render,
|
|
52342
|
+
MultiplayerViewUsersvue_type_template_id_7a85ab32_staticRenderFns,
|
|
52205
52343
|
false,
|
|
52206
52344
|
null,
|
|
52207
52345
|
null,
|
|
@@ -54466,8 +54604,8 @@ var RailBottom_component = normalizeComponent(
|
|
|
54466
54604
|
)
|
|
54467
54605
|
|
|
54468
54606
|
/* harmony default export */ var RailBottom = (RailBottom_component.exports);
|
|
54469
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/genericFlow/genericFlow.vue?vue&type=template&id=
|
|
54470
|
-
var
|
|
54607
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/genericFlow/genericFlow.vue?vue&type=template&id=4a213ae8&
|
|
54608
|
+
var genericFlowvue_type_template_id_4a213ae8_render = function render() {
|
|
54471
54609
|
var _vm = this,
|
|
54472
54610
|
_c = _vm._self._c;
|
|
54473
54611
|
return _c('crown-config', _vm._g({
|
|
@@ -54486,8 +54624,10 @@ var genericFlowvue_type_template_id_22431668_render = function render() {
|
|
|
54486
54624
|
}
|
|
54487
54625
|
}, _vm.$listeners));
|
|
54488
54626
|
};
|
|
54489
|
-
var
|
|
54627
|
+
var genericFlowvue_type_template_id_4a213ae8_staticRenderFns = [];
|
|
54490
54628
|
|
|
54629
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.to-json.js
|
|
54630
|
+
var web_url_to_json = __webpack_require__(83753);
|
|
54491
54631
|
;// CONCATENATED MODULE: ./src/components/nodes/genericFlow/DataOutputAssociation.js
|
|
54492
54632
|
|
|
54493
54633
|
|
|
@@ -54655,16 +54795,6 @@ var BpmnFlows = [{
|
|
|
54655
54795
|
var flow = new bpmnFlow.factory(this.nodeRegistry, this.moddle, this.paper);
|
|
54656
54796
|
var genericLink = this.shape.findView(this.paper);
|
|
54657
54797
|
var waypoint = [genericLink.sourceAnchor.toJSON(), genericLink.targetAnchor.toJSON()];
|
|
54658
|
-
// Multiplayer hook
|
|
54659
|
-
if (this.$parent.isMultiplayer) {
|
|
54660
|
-
window.ProcessMaker.EventBus.$emit('multiplayer-addFlow', {
|
|
54661
|
-
type: bpmnFlow.type,
|
|
54662
|
-
id: "node_".concat(this.$parent.nodeIdGenerator.getDefinitionNumber()),
|
|
54663
|
-
sourceRefId: this.sourceNode.definition.id,
|
|
54664
|
-
targetRefId: this.targetNode.definition.id,
|
|
54665
|
-
waypoint: waypoint
|
|
54666
|
-
});
|
|
54667
|
-
}
|
|
54668
54798
|
this.$emit('replace-generic-flow', {
|
|
54669
54799
|
actualFlow: flow.makeFlowNode(this.sourceShape, this.target, waypoint),
|
|
54670
54800
|
genericFlow: this.node,
|
|
@@ -54703,8 +54833,8 @@ var BpmnFlows = [{
|
|
|
54703
54833
|
;
|
|
54704
54834
|
var genericFlow_component = normalizeComponent(
|
|
54705
54835
|
genericFlow_genericFlowvue_type_script_lang_js_,
|
|
54706
|
-
|
|
54707
|
-
|
|
54836
|
+
genericFlowvue_type_template_id_4a213ae8_render,
|
|
54837
|
+
genericFlowvue_type_template_id_4a213ae8_staticRenderFns,
|
|
54708
54838
|
false,
|
|
54709
54839
|
null,
|
|
54710
54840
|
null,
|
|
@@ -54713,8 +54843,8 @@ var genericFlow_component = normalizeComponent(
|
|
|
54713
54843
|
)
|
|
54714
54844
|
|
|
54715
54845
|
/* harmony default export */ var genericFlow = (genericFlow_component.exports);
|
|
54716
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Selection.vue?vue&type=template&id=
|
|
54717
|
-
var
|
|
54846
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Selection.vue?vue&type=template&id=1d953204&scoped=true&
|
|
54847
|
+
var Selectionvue_type_template_id_1d953204_scoped_true_render = function render() {
|
|
54718
54848
|
var _vm = this,
|
|
54719
54849
|
_c = _vm._self._c;
|
|
54720
54850
|
return _vm.showLasso && _vm.style ? _c('div', {
|
|
@@ -54744,7 +54874,7 @@ var Selectionvue_type_template_id_423da30e_scoped_true_render = function render(
|
|
|
54744
54874
|
}
|
|
54745
54875
|
}, _vm.$listeners))], 1) : _vm._e();
|
|
54746
54876
|
};
|
|
54747
|
-
var
|
|
54877
|
+
var Selectionvue_type_template_id_1d953204_scoped_true_staticRenderFns = [];
|
|
54748
54878
|
|
|
54749
54879
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownMultiselect/crownMultiselect.vue?vue&type=template&id=bcd827ec&scoped=true&
|
|
54750
54880
|
|
|
@@ -56251,7 +56381,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56251
56381
|
_this5.overPoolStopDrag();
|
|
56252
56382
|
_this5.updateSelectionBox();
|
|
56253
56383
|
if (_this5.isMultiplayer) {
|
|
56254
|
-
window.ProcessMaker.EventBus.$emit('multiplayer-updateNodes', _this5.getProperties());
|
|
56384
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-updateNodes', _this5.getProperties(_this5.selected));
|
|
56255
56385
|
}
|
|
56256
56386
|
case 9:
|
|
56257
56387
|
case "end":
|
|
@@ -56260,17 +56390,46 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56260
56390
|
}, _callee3);
|
|
56261
56391
|
}))();
|
|
56262
56392
|
},
|
|
56263
|
-
getProperties: function getProperties() {
|
|
56393
|
+
getProperties: function getProperties(shapes) {
|
|
56394
|
+
var _this6 = this;
|
|
56264
56395
|
var changed = [];
|
|
56265
56396
|
var shapesToNotTranslate = ['PoolLane', 'standard.Link', 'processmaker.components.nodes.boundaryEvent.Shape'];
|
|
56266
|
-
|
|
56397
|
+
shapes.filter(function (shape) {
|
|
56267
56398
|
return !shapesToNotTranslate.includes(shape.model.get('type'));
|
|
56268
56399
|
}).forEach(function (shape) {
|
|
56400
|
+
if (shape.model.get('type') === 'processmaker.modeler.bpmn.pool') {
|
|
56401
|
+
var children = shape.model.component.getElementsUnderArea(shape.model, _this6.graph);
|
|
56402
|
+
changed = [].concat(_toConsumableArray(changed), _toConsumableArray(_this6.getContainerProperties(children, changed)));
|
|
56403
|
+
} else {
|
|
56404
|
+
var _node$pool;
|
|
56405
|
+
var node = shape.model.component.node;
|
|
56406
|
+
var defaultData = {
|
|
56407
|
+
id: node.definition.id,
|
|
56408
|
+
properties: {
|
|
56409
|
+
x: shape.model.get('position').x,
|
|
56410
|
+
y: shape.model.get('position').y,
|
|
56411
|
+
height: shape.model.get('size').height,
|
|
56412
|
+
width: shape.model.get('size').width
|
|
56413
|
+
}
|
|
56414
|
+
};
|
|
56415
|
+
if (node !== null && node !== void 0 && (_node$pool = node.pool) !== null && _node$pool !== void 0 && _node$pool.component) {
|
|
56416
|
+
defaultData['poolId'] = node.pool.component.id;
|
|
56417
|
+
}
|
|
56418
|
+
changed.push(defaultData);
|
|
56419
|
+
}
|
|
56420
|
+
});
|
|
56421
|
+
return changed;
|
|
56422
|
+
},
|
|
56423
|
+
getContainerProperties: function getContainerProperties(children) {
|
|
56424
|
+
var changed = [];
|
|
56425
|
+
children.forEach(function (model) {
|
|
56269
56426
|
changed.push({
|
|
56270
|
-
id:
|
|
56427
|
+
id: model.component.node.definition.id,
|
|
56271
56428
|
properties: {
|
|
56272
|
-
|
|
56273
|
-
|
|
56429
|
+
x: model.get('position').x,
|
|
56430
|
+
y: model.get('position').y,
|
|
56431
|
+
height: model.get('size').height,
|
|
56432
|
+
width: model.get('size').width
|
|
56274
56433
|
}
|
|
56275
56434
|
});
|
|
56276
56435
|
});
|
|
@@ -56473,39 +56632,39 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56473
56632
|
* Stop dragging elements that are in a pool
|
|
56474
56633
|
*/
|
|
56475
56634
|
overPoolStopDrag: function overPoolStopDrag() {
|
|
56476
|
-
var
|
|
56635
|
+
var _this7 = this;
|
|
56477
56636
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
56478
56637
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
56479
56638
|
while (1) switch (_context4.prev = _context4.next) {
|
|
56480
56639
|
case 0:
|
|
56481
|
-
if (!
|
|
56640
|
+
if (!_this7.isNotPoolChilds(_this7.selected)) {
|
|
56482
56641
|
_context4.next = 4;
|
|
56483
56642
|
break;
|
|
56484
56643
|
}
|
|
56485
|
-
|
|
56486
|
-
|
|
56644
|
+
_this7.updateFlowsWaypoint();
|
|
56645
|
+
_this7.$emit('save-state');
|
|
56487
56646
|
return _context4.abrupt("return");
|
|
56488
56647
|
case 4:
|
|
56489
|
-
if (
|
|
56490
|
-
|
|
56491
|
-
if (
|
|
56492
|
-
|
|
56493
|
-
|
|
56648
|
+
if (_this7.isOutOfThePool) {
|
|
56649
|
+
_this7.rollbackSelection();
|
|
56650
|
+
if (_this7.invalidPool) {
|
|
56651
|
+
_this7.invalidPool.model.component.shape.attr('body/fill', poolColor);
|
|
56652
|
+
_this7.invalidPool = null;
|
|
56494
56653
|
}
|
|
56495
56654
|
} else {
|
|
56496
|
-
|
|
56497
|
-
if (
|
|
56655
|
+
_this7.updateFlowsWaypoint();
|
|
56656
|
+
if (_this7.newPool) {
|
|
56498
56657
|
/* Remove the shape from its current pool */
|
|
56499
|
-
|
|
56500
|
-
|
|
56501
|
-
|
|
56502
|
-
|
|
56503
|
-
|
|
56504
|
-
|
|
56658
|
+
_this7.moveElements(_this7.selected, _this7.oldPool, _this7.newPool);
|
|
56659
|
+
_this7.moveConectedLinks(_this7.conectedLinks, _this7.oldPool, _this7.newPool);
|
|
56660
|
+
_this7.newPool = null;
|
|
56661
|
+
_this7.oldPool = null;
|
|
56662
|
+
_this7.updateLaneChildren(_this7.selected);
|
|
56663
|
+
_this7.$emit('save-state');
|
|
56505
56664
|
} else {
|
|
56506
|
-
|
|
56507
|
-
|
|
56508
|
-
|
|
56665
|
+
_this7.expandToFitElement(_this7.selected);
|
|
56666
|
+
_this7.updateLaneChildren(_this7.selected);
|
|
56667
|
+
_this7.$emit('save-state');
|
|
56509
56668
|
}
|
|
56510
56669
|
}
|
|
56511
56670
|
case 5:
|
|
@@ -56519,35 +56678,35 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56519
56678
|
* Rollback drag an element outside it's pool parent
|
|
56520
56679
|
*/
|
|
56521
56680
|
rollbackSelection: function rollbackSelection() {
|
|
56522
|
-
var
|
|
56681
|
+
var _this8 = this;
|
|
56523
56682
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
56524
56683
|
var deltaX, deltaY, scale, shapesToNotTranslate;
|
|
56525
56684
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
56526
56685
|
while (1) switch (_context5.prev = _context5.next) {
|
|
56527
56686
|
case 0:
|
|
56528
|
-
deltaX =
|
|
56529
|
-
deltaY =
|
|
56530
|
-
|
|
56531
|
-
|
|
56532
|
-
scale =
|
|
56687
|
+
deltaX = _this8.initialPosition.left - _this8.left;
|
|
56688
|
+
deltaY = _this8.initialPosition.top - _this8.top;
|
|
56689
|
+
_this8.style.left = "".concat(_this8.initialPosition.left, "px");
|
|
56690
|
+
_this8.style.top = "".concat(_this8.initialPosition.top, "px");
|
|
56691
|
+
scale = _this8.paperManager.paper.scale();
|
|
56533
56692
|
shapesToNotTranslate = ['PoolLane', 'standard.Link', 'processmaker.components.nodes.boundaryEvent.Shape'];
|
|
56534
|
-
|
|
56693
|
+
_this8.selected.filter(function (shape) {
|
|
56535
56694
|
return !shapesToNotTranslate.includes(shape.model.get('type'));
|
|
56536
56695
|
}).forEach(function (shape) {
|
|
56537
56696
|
shape.model.translate(deltaX / scale.sx, deltaY / scale.sy);
|
|
56538
56697
|
});
|
|
56539
|
-
|
|
56698
|
+
_this8.isOutOfThePool = false;
|
|
56540
56699
|
_context5.next = 10;
|
|
56541
56700
|
return store.commit('allowSavingElementPosition');
|
|
56542
56701
|
case 10:
|
|
56543
|
-
|
|
56702
|
+
_this8.paperManager.setStateValid();
|
|
56544
56703
|
_context5.next = 13;
|
|
56545
|
-
return
|
|
56704
|
+
return _this8.$nextTick();
|
|
56546
56705
|
case 13:
|
|
56547
56706
|
_context5.next = 15;
|
|
56548
|
-
return
|
|
56707
|
+
return _this8.paperManager.awaitScheduledUpdates();
|
|
56549
56708
|
case 15:
|
|
56550
|
-
|
|
56709
|
+
_this8.updateSelectionBox(true);
|
|
56551
56710
|
case 16:
|
|
56552
56711
|
case "end":
|
|
56553
56712
|
return _context5.stop();
|
|
@@ -56659,9 +56818,9 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56659
56818
|
});
|
|
56660
56819
|
;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=script&lang=js&
|
|
56661
56820
|
/* harmony default export */ var modeler_Selectionvue_type_script_lang_js_ = (Selectionvue_type_script_lang_js_);
|
|
56662
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Selection.vue?vue&type=style&index=0&id=
|
|
56663
|
-
var
|
|
56664
|
-
;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=style&index=0&id=
|
|
56821
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Selection.vue?vue&type=style&index=0&id=1d953204&prod&scoped=true&lang=css&
|
|
56822
|
+
var Selectionvue_type_style_index_0_id_1d953204_prod_scoped_true_lang_css_ = __webpack_require__(73717);
|
|
56823
|
+
;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=style&index=0&id=1d953204&prod&scoped=true&lang=css&
|
|
56665
56824
|
|
|
56666
56825
|
;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue
|
|
56667
56826
|
|
|
@@ -56674,11 +56833,11 @@ var Selectionvue_type_style_index_0_id_423da30e_prod_scoped_true_lang_css_ = __w
|
|
|
56674
56833
|
|
|
56675
56834
|
var Selection_component = normalizeComponent(
|
|
56676
56835
|
modeler_Selectionvue_type_script_lang_js_,
|
|
56677
|
-
|
|
56678
|
-
|
|
56836
|
+
Selectionvue_type_template_id_1d953204_scoped_true_render,
|
|
56837
|
+
Selectionvue_type_template_id_1d953204_scoped_true_staticRenderFns,
|
|
56679
56838
|
false,
|
|
56680
56839
|
null,
|
|
56681
|
-
"
|
|
56840
|
+
"1d953204",
|
|
56682
56841
|
null
|
|
56683
56842
|
|
|
56684
56843
|
)
|
|
@@ -75249,22 +75408,6 @@ var Room = /*#__PURE__*/function () {
|
|
|
75249
75408
|
|
|
75250
75409
|
|
|
75251
75410
|
|
|
75252
|
-
|
|
75253
|
-
|
|
75254
|
-
|
|
75255
|
-
var multiplayer_BpmnFlows = [{
|
|
75256
|
-
type: 'processmaker-modeler-text-annotation',
|
|
75257
|
-
factory: DataOutputAssociation
|
|
75258
|
-
}, {
|
|
75259
|
-
type: 'processmaker-modeler-sequence-flow',
|
|
75260
|
-
factory: SequenceFlow
|
|
75261
|
-
}, {
|
|
75262
|
-
type: 'processmaker-modeler-message-flow',
|
|
75263
|
-
factory: MessageFlow
|
|
75264
|
-
}, {
|
|
75265
|
-
type: 'processmaker-modeler-data-input-association',
|
|
75266
|
-
factory: DataOutputAssociation
|
|
75267
|
-
}];
|
|
75268
75411
|
var _nodeIdGenerator = /*#__PURE__*/new WeakMap();
|
|
75269
75412
|
var Multiplayer = /*#__PURE__*/function () {
|
|
75270
75413
|
function Multiplayer(modeler) {
|
|
@@ -75289,22 +75432,25 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75289
75432
|
_createClass(Multiplayer, [{
|
|
75290
75433
|
key: "init",
|
|
75291
75434
|
value: function init() {
|
|
75292
|
-
var
|
|
75435
|
+
var _window$ProcessMaker$,
|
|
75436
|
+
_this = this;
|
|
75293
75437
|
// Get the node id generator
|
|
75294
75438
|
_classPrivateFieldSet(this, _nodeIdGenerator, getNodeIdGenerator(this.modeler.definitions));
|
|
75295
75439
|
// Get the room name from the process id
|
|
75296
|
-
|
|
75440
|
+
var processId = (_window$ProcessMaker$ = window.ProcessMaker.modeler.process.uuid) !== null && _window$ProcessMaker$ !== void 0 ? _window$ProcessMaker$ : window.ProcessMaker.modeler.process.id;
|
|
75441
|
+
this.room = new Room("room-".concat(processId));
|
|
75297
75442
|
|
|
75298
75443
|
// Connect to websocket server
|
|
75299
75444
|
this.clientIO = esm_lookup(window.ProcessMaker.multiplayer.host, {
|
|
75300
75445
|
transports: ['websocket', 'polling']
|
|
75301
75446
|
});
|
|
75302
75447
|
this.clientIO.on('connect', function () {
|
|
75448
|
+
var _window$ProcessMaker$2, _window$ProcessMaker$3;
|
|
75303
75449
|
// Join the room
|
|
75304
75450
|
_this.clientIO.emit('joinRoom', {
|
|
75305
75451
|
roomName: _this.room.getRoom(),
|
|
75306
|
-
clientName: window.ProcessMaker.user.fullName,
|
|
75307
|
-
clientAvatar: window.ProcessMaker.user.avatar
|
|
75452
|
+
clientName: (_window$ProcessMaker$2 = window.ProcessMaker.user) === null || _window$ProcessMaker$2 === void 0 ? void 0 : _window$ProcessMaker$2.fullName,
|
|
75453
|
+
clientAvatar: (_window$ProcessMaker$3 = window.ProcessMaker.user) === null || _window$ProcessMaker$3 === void 0 ? void 0 : _window$ProcessMaker$3.avatar
|
|
75308
75454
|
});
|
|
75309
75455
|
});
|
|
75310
75456
|
this.clientIO.on('clientJoined', function (payload) {
|
|
@@ -75398,14 +75544,14 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75398
75544
|
window.ProcessMaker.EventBus.$on('multiplayer-addFlow', function (data) {
|
|
75399
75545
|
_this.addFlow(data);
|
|
75400
75546
|
});
|
|
75547
|
+
window.ProcessMaker.EventBus.$on('multiplayer-addLanes', function (lanes) {
|
|
75548
|
+
_this.addLaneNodes(lanes);
|
|
75549
|
+
});
|
|
75401
75550
|
}
|
|
75402
75551
|
}, {
|
|
75403
75552
|
key: "addNode",
|
|
75404
75553
|
value: function addNode(data) {
|
|
75405
|
-
// Add the new element to the process
|
|
75406
|
-
this.createShape(data);
|
|
75407
75554
|
// Add the new element to the shared array
|
|
75408
|
-
// this.yArray.push([data]);
|
|
75409
75555
|
var yMapNested = new YMap();
|
|
75410
75556
|
this.doTransact(yMapNested, data);
|
|
75411
75557
|
this.yArray.push([yMapNested]);
|
|
@@ -75417,21 +75563,20 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75417
75563
|
}, {
|
|
75418
75564
|
key: "createShape",
|
|
75419
75565
|
value: function createShape(value) {
|
|
75420
|
-
this.modeler.
|
|
75566
|
+
if (this.modeler.nodeRegistry[value.type] && this.modeler.nodeRegistry[value.type].multiplayerClient) {
|
|
75567
|
+
this.modeler.nodeRegistry[value.type].multiplayerClient(this.modeler, value);
|
|
75568
|
+
} else {
|
|
75569
|
+
this.modeler.addRemoteNode(value);
|
|
75570
|
+
}
|
|
75421
75571
|
_classPrivateFieldGet(this, _nodeIdGenerator).updateCounters();
|
|
75422
75572
|
}
|
|
75423
75573
|
}, {
|
|
75424
75574
|
key: "createRemoteShape",
|
|
75425
75575
|
value: function createRemoteShape(changes) {
|
|
75426
75576
|
var _this2 = this;
|
|
75427
|
-
var flows = ['processmaker-modeler-sequence-flow', 'processmaker-modeler-text-annotation', 'processmaker-modeler-message-flow', 'processmaker-modeler-data-input-association'];
|
|
75428
75577
|
return new Promise(function (resolve) {
|
|
75429
75578
|
changes.map(function (data) {
|
|
75430
|
-
|
|
75431
|
-
_this2.createFlow(data);
|
|
75432
|
-
} else {
|
|
75433
|
-
_this2.createShape(data);
|
|
75434
|
-
}
|
|
75579
|
+
_this2.createShape(data);
|
|
75435
75580
|
});
|
|
75436
75581
|
resolve();
|
|
75437
75582
|
});
|
|
@@ -75440,18 +75585,20 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75440
75585
|
key: "removeNode",
|
|
75441
75586
|
value: function removeNode(data) {
|
|
75442
75587
|
var index = this.getIndex(data.definition.id);
|
|
75443
|
-
|
|
75444
|
-
|
|
75445
|
-
|
|
75446
|
-
|
|
75447
|
-
|
|
75448
|
-
|
|
75449
|
-
|
|
75588
|
+
if (index >= 0) {
|
|
75589
|
+
this.removeShape(data);
|
|
75590
|
+
this.yArray.delete(index, 1); // delete one element
|
|
75591
|
+
// Encode the state as an update and send it to the server
|
|
75592
|
+
var stateUpdate = encodeStateAsUpdate(this.yDoc);
|
|
75593
|
+
// Send the update to the web socket server
|
|
75594
|
+
this.clientIO.emit('removeElement', stateUpdate);
|
|
75595
|
+
}
|
|
75450
75596
|
}
|
|
75451
75597
|
}, {
|
|
75452
75598
|
key: "getIndex",
|
|
75453
75599
|
value: function getIndex(id) {
|
|
75454
75600
|
var index = -1;
|
|
75601
|
+
var found = false;
|
|
75455
75602
|
var _iterator = _createForOfIteratorHelper(this.yArray),
|
|
75456
75603
|
_step;
|
|
75457
75604
|
try {
|
|
@@ -75459,6 +75606,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75459
75606
|
var value = _step.value;
|
|
75460
75607
|
index++;
|
|
75461
75608
|
if (value.get('id') === id) {
|
|
75609
|
+
found = true;
|
|
75462
75610
|
break;
|
|
75463
75611
|
}
|
|
75464
75612
|
}
|
|
@@ -75467,7 +75615,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75467
75615
|
} finally {
|
|
75468
75616
|
_iterator.f();
|
|
75469
75617
|
}
|
|
75470
|
-
return index;
|
|
75618
|
+
return found ? index : -1;
|
|
75471
75619
|
}
|
|
75472
75620
|
}, {
|
|
75473
75621
|
key: "getNodeById",
|
|
@@ -75498,7 +75646,10 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75498
75646
|
data.forEach(function (value) {
|
|
75499
75647
|
var index = _this3.getIndex(value.id);
|
|
75500
75648
|
var nodeToUpdate = _this3.yArray.get(index);
|
|
75501
|
-
|
|
75649
|
+
var updateData = value.poolId ? _objectSpread2(_objectSpread2({}, value.properties), {
|
|
75650
|
+
poolId: value.poolId
|
|
75651
|
+
}) : value.properties;
|
|
75652
|
+
_this3.doTransact(nodeToUpdate, updateData);
|
|
75502
75653
|
});
|
|
75503
75654
|
}
|
|
75504
75655
|
}, {
|
|
@@ -75509,13 +75660,11 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75509
75660
|
var nodeToUpdate = this.yArray.get(index);
|
|
75510
75661
|
// Update the node id in the nodeData
|
|
75511
75662
|
nodeData.id = "node_".concat(_classPrivateFieldGet(this, _nodeIdGenerator).getDefinitionNumber());
|
|
75512
|
-
// Replace the node in the process
|
|
75513
|
-
this.modeler.replaceNodeProcedure(nodeData, true);
|
|
75514
75663
|
// Update the node id generator
|
|
75515
75664
|
_classPrivateFieldGet(this, _nodeIdGenerator).updateCounters();
|
|
75516
75665
|
// Update the node in the shared array
|
|
75517
75666
|
this.yDoc.transact(function () {
|
|
75518
|
-
nodeToUpdate.set('
|
|
75667
|
+
nodeToUpdate.set('type', newControl);
|
|
75519
75668
|
nodeToUpdate.set('id', nodeData.id);
|
|
75520
75669
|
});
|
|
75521
75670
|
|
|
@@ -75529,14 +75678,17 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75529
75678
|
}, {
|
|
75530
75679
|
key: "replaceShape",
|
|
75531
75680
|
value: function replaceShape(updatedNode) {
|
|
75681
|
+
var _this$modeler$paper$l = this.modeler.paper.localToClientPoint(updatedNode),
|
|
75682
|
+
clientX = _this$modeler$paper$l.x,
|
|
75683
|
+
clientY = _this$modeler$paper$l.y;
|
|
75532
75684
|
// Get the node to update
|
|
75533
75685
|
var node = this.getNodeById(updatedNode.oldNodeId);
|
|
75534
75686
|
// Update the node id in the nodeData
|
|
75535
75687
|
var nodeData = {
|
|
75536
|
-
clientX:
|
|
75537
|
-
clientY:
|
|
75688
|
+
clientX: clientX,
|
|
75689
|
+
clientY: clientY,
|
|
75538
75690
|
control: {
|
|
75539
|
-
type: updatedNode.
|
|
75691
|
+
type: updatedNode.type
|
|
75540
75692
|
},
|
|
75541
75693
|
nodeThatWillBeReplaced: node,
|
|
75542
75694
|
id: updatedNode.id
|
|
@@ -75567,37 +75719,45 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75567
75719
|
}
|
|
75568
75720
|
}, {
|
|
75569
75721
|
key: "updateShapes",
|
|
75570
|
-
value: function
|
|
75571
|
-
var
|
|
75572
|
-
|
|
75573
|
-
|
|
75574
|
-
|
|
75575
|
-
|
|
75576
|
-
|
|
75577
|
-
|
|
75578
|
-
|
|
75579
|
-
|
|
75580
|
-
|
|
75581
|
-
|
|
75582
|
-
|
|
75583
|
-
|
|
75584
|
-
|
|
75585
|
-
|
|
75586
|
-
|
|
75587
|
-
|
|
75588
|
-
|
|
75589
|
-
|
|
75590
|
-
|
|
75591
|
-
|
|
75722
|
+
value: function () {
|
|
75723
|
+
var _updateShapes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(data) {
|
|
75724
|
+
var paper, element, newPool;
|
|
75725
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
75726
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
75727
|
+
case 0:
|
|
75728
|
+
paper = this.modeler.paper;
|
|
75729
|
+
element = this.modeler.getElementByNodeId(data.id);
|
|
75730
|
+
newPool = this.modeler.getElementByNodeId(data.poolId); // Update the element's position attribute
|
|
75731
|
+
element.resize( /* Add labelWidth to ensure elements don't overlap with the pool label */
|
|
75732
|
+
data.width, data.height);
|
|
75733
|
+
element.set('position', {
|
|
75734
|
+
x: data.x,
|
|
75735
|
+
y: data.y
|
|
75736
|
+
});
|
|
75737
|
+
// Trigger a rendering of the element on the paper
|
|
75738
|
+
_context2.next = 7;
|
|
75739
|
+
return paper.findViewByModel(element).update();
|
|
75740
|
+
case 7:
|
|
75741
|
+
_context2.next = 9;
|
|
75742
|
+
return element.component.$nextTick();
|
|
75743
|
+
case 9:
|
|
75744
|
+
_context2.next = 11;
|
|
75745
|
+
return this.modeler.paperManager.awaitScheduledUpdates();
|
|
75746
|
+
case 11:
|
|
75747
|
+
if (newPool && element.component.node.pool && element.component.node.pool.component.id !== data.poolId) {
|
|
75748
|
+
element.component.node.pool.component.moveElementRemote(element, newPool);
|
|
75749
|
+
}
|
|
75750
|
+
case 12:
|
|
75751
|
+
case "end":
|
|
75752
|
+
return _context2.stop();
|
|
75592
75753
|
}
|
|
75593
|
-
}
|
|
75594
|
-
}
|
|
75595
|
-
|
|
75596
|
-
|
|
75597
|
-
_iterator2.f();
|
|
75754
|
+
}, _callee2, this);
|
|
75755
|
+
}));
|
|
75756
|
+
function updateShapes(_x2) {
|
|
75757
|
+
return _updateShapes.apply(this, arguments);
|
|
75598
75758
|
}
|
|
75599
|
-
return
|
|
75600
|
-
}
|
|
75759
|
+
return updateShapes;
|
|
75760
|
+
}()
|
|
75601
75761
|
}, {
|
|
75602
75762
|
key: "addFlow",
|
|
75603
75763
|
value: function addFlow(data) {
|
|
@@ -75611,21 +75771,54 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75611
75771
|
_classPrivateFieldGet(this, _nodeIdGenerator).updateCounters();
|
|
75612
75772
|
}
|
|
75613
75773
|
}, {
|
|
75614
|
-
key: "
|
|
75615
|
-
value: function
|
|
75616
|
-
var
|
|
75617
|
-
var
|
|
75618
|
-
|
|
75619
|
-
|
|
75620
|
-
|
|
75621
|
-
|
|
75774
|
+
key: "addLaneNodes",
|
|
75775
|
+
value: function addLaneNodes(lanes) {
|
|
75776
|
+
var _this4 = this;
|
|
75777
|
+
var pool = this.getPool(lanes);
|
|
75778
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-updateNodes', [{
|
|
75779
|
+
id: pool.component.node.definition.id,
|
|
75780
|
+
properties: {
|
|
75781
|
+
x: pool.component.node.diagram.bounds.x,
|
|
75782
|
+
y: pool.component.node.diagram.bounds.y,
|
|
75783
|
+
height: pool.component.node.diagram.bounds.height,
|
|
75784
|
+
width: pool.component.node.diagram.bounds.width,
|
|
75785
|
+
isAddingLaneAbove: pool.isAddingLaneAbove
|
|
75786
|
+
}
|
|
75787
|
+
}]);
|
|
75788
|
+
this.yDoc.transact(function () {
|
|
75789
|
+
lanes.forEach(function (lane) {
|
|
75790
|
+
var yMapNested = new YMap();
|
|
75791
|
+
var data = _this4.prepareLaneData(lane);
|
|
75792
|
+
_this4.doTransact(yMapNested, data);
|
|
75793
|
+
_this4.yArray.push([yMapNested]);
|
|
75794
|
+
var stateUpdate = encodeStateAsUpdate(_this4.yDoc);
|
|
75795
|
+
_this4.clientIO.emit('createElement', stateUpdate);
|
|
75622
75796
|
});
|
|
75623
|
-
|
|
75624
|
-
|
|
75625
|
-
|
|
75626
|
-
|
|
75627
|
-
|
|
75797
|
+
});
|
|
75798
|
+
}
|
|
75799
|
+
}, {
|
|
75800
|
+
key: "prepareLaneData",
|
|
75801
|
+
value: function prepareLaneData(lane) {
|
|
75802
|
+
var data = {
|
|
75803
|
+
type: lane.type,
|
|
75804
|
+
id: lane.definition.id,
|
|
75805
|
+
name: lane.definition.name,
|
|
75806
|
+
x: lane.diagram.bounds.x,
|
|
75807
|
+
y: lane.diagram.bounds.y,
|
|
75808
|
+
width: lane.diagram.bounds.width,
|
|
75809
|
+
height: lane.diagram.bounds.height,
|
|
75810
|
+
poolId: lane.pool.component.node.definition.id,
|
|
75811
|
+
laneSetId: lane.pool.component.laneSet.id
|
|
75812
|
+
};
|
|
75813
|
+
return data;
|
|
75814
|
+
}
|
|
75815
|
+
}, {
|
|
75816
|
+
key: "getPool",
|
|
75817
|
+
value: function getPool(lanes) {
|
|
75818
|
+
if (lanes && lanes.length > 0) {
|
|
75819
|
+
return lanes[0].pool;
|
|
75628
75820
|
}
|
|
75821
|
+
return false;
|
|
75629
75822
|
}
|
|
75630
75823
|
}]);
|
|
75631
75824
|
return Multiplayer;
|
|
@@ -76094,6 +76287,12 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
76094
76287
|
return _this4.paper.findViewByModel(shape);
|
|
76095
76288
|
});
|
|
76096
76289
|
},
|
|
76290
|
+
getElementByNodeId: function getElementByNodeId(id) {
|
|
76291
|
+
var cells = this.paper.model.getCells();
|
|
76292
|
+
return cells.find(function (cell) {
|
|
76293
|
+
return cell.component && cell.component.id === id;
|
|
76294
|
+
});
|
|
76295
|
+
},
|
|
76097
76296
|
close: function close() {
|
|
76098
76297
|
var _this5 = this;
|
|
76099
76298
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
@@ -76758,71 +76957,83 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
76758
76957
|
control: control
|
|
76759
76958
|
});
|
|
76760
76959
|
},
|
|
76761
|
-
|
|
76762
|
-
var
|
|
76763
|
-
clientY = data.clientY,
|
|
76764
|
-
control = data.control;
|
|
76765
|
-
if (this.isMultiplayer) {
|
|
76766
|
-
window.ProcessMaker.EventBus.$emit('multiplayer-addNode', {
|
|
76767
|
-
clientX: clientX,
|
|
76768
|
-
clientY: clientY,
|
|
76769
|
-
control: control,
|
|
76770
|
-
id: "node_".concat(this.nodeIdGenerator.getDefinitionNumber())
|
|
76771
|
-
});
|
|
76772
|
-
} else {
|
|
76773
|
-
this.handleDropProcedure(data);
|
|
76774
|
-
}
|
|
76775
|
-
},
|
|
76776
|
-
handleDropProcedure: function handleDropProcedure(data) {
|
|
76777
|
-
var _arguments4 = arguments,
|
|
76778
|
-
_this26 = this;
|
|
76960
|
+
addRemoteNode: function addRemoteNode(data) {
|
|
76961
|
+
var _this26 = this;
|
|
76779
76962
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
76780
|
-
var
|
|
76963
|
+
var definition, diagram, newNode;
|
|
76781
76964
|
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
76782
76965
|
while (1) switch (_context13.prev = _context13.next) {
|
|
76783
76966
|
case 0:
|
|
76784
|
-
|
|
76785
|
-
|
|
76786
|
-
|
|
76967
|
+
definition = _this26.nodeRegistry[data.type].definition(_this26.moddle, _this26.$t);
|
|
76968
|
+
diagram = _this26.nodeRegistry[data.type].diagram(_this26.moddle);
|
|
76969
|
+
diagram.bounds.x = data.x;
|
|
76970
|
+
diagram.bounds.y = data.y;
|
|
76971
|
+
newNode = _this26.createNode(data.type, definition, diagram);
|
|
76972
|
+
_context13.next = 7;
|
|
76973
|
+
return _this26.addNode(newNode, data.id, true);
|
|
76974
|
+
case 7:
|
|
76975
|
+
_context13.next = 9;
|
|
76976
|
+
return _this26.$nextTick();
|
|
76977
|
+
case 9:
|
|
76978
|
+
_context13.next = 11;
|
|
76979
|
+
return _this26.paperManager.awaitScheduledUpdates();
|
|
76980
|
+
case 11:
|
|
76981
|
+
if (_this26.autoValidate) {
|
|
76982
|
+
_this26.validateBpmnDiagram();
|
|
76983
|
+
}
|
|
76984
|
+
case 12:
|
|
76985
|
+
case "end":
|
|
76986
|
+
return _context13.stop();
|
|
76987
|
+
}
|
|
76988
|
+
}, _callee13);
|
|
76989
|
+
}))();
|
|
76990
|
+
},
|
|
76991
|
+
handleDrop: function handleDrop(data) {
|
|
76992
|
+
var _this27 = this;
|
|
76993
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
|
|
76994
|
+
var clientX, clientY, control, nodeThatWillBeReplaced, definition, diagram, _this27$paperManager$, x, y, newNode, nodeMigrator;
|
|
76995
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
76996
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
76997
|
+
case 0:
|
|
76998
|
+
clientX = data.clientX, clientY = data.clientY, control = data.control, nodeThatWillBeReplaced = data.nodeThatWillBeReplaced;
|
|
76999
|
+
_this27.validateDropTarget({
|
|
76787
77000
|
clientX: clientX,
|
|
76788
77001
|
clientY: clientY,
|
|
76789
77002
|
control: control
|
|
76790
77003
|
});
|
|
76791
|
-
if (
|
|
76792
|
-
|
|
77004
|
+
if (_this27.allowDrop) {
|
|
77005
|
+
_context14.next = 4;
|
|
76793
77006
|
break;
|
|
76794
77007
|
}
|
|
76795
|
-
return
|
|
76796
|
-
case
|
|
76797
|
-
definition =
|
|
76798
|
-
diagram =
|
|
76799
|
-
|
|
77008
|
+
return _context14.abrupt("return");
|
|
77009
|
+
case 4:
|
|
77010
|
+
definition = _this27.nodeRegistry[control.type].definition(_this27.moddle, _this27.$t);
|
|
77011
|
+
diagram = _this27.nodeRegistry[control.type].diagram(_this27.moddle);
|
|
77012
|
+
_this27$paperManager$ = _this27.paperManager.clientToGridPoint(clientX, clientY), x = _this27$paperManager$.x, y = _this27$paperManager$.y;
|
|
76800
77013
|
diagram.bounds.x = x;
|
|
76801
77014
|
diagram.bounds.y = y;
|
|
76802
|
-
newNode =
|
|
77015
|
+
newNode = _this27.createNode(control.type, definition, diagram);
|
|
76803
77016
|
if (newNode.isBpmnType('bpmn:BoundaryEvent')) {
|
|
76804
|
-
|
|
77017
|
+
_this27.setShapeCenterUnderCursor(diagram);
|
|
76805
77018
|
}
|
|
76806
|
-
|
|
76807
|
-
|
|
76808
|
-
|
|
76809
|
-
|
|
76810
|
-
return _this26.addNode(newNode, id, selected);
|
|
76811
|
-
case 15:
|
|
77019
|
+
_this27.highlightNode(newNode);
|
|
77020
|
+
_context14.next = 14;
|
|
77021
|
+
return _this27.addNode(newNode);
|
|
77022
|
+
case 14:
|
|
76812
77023
|
if (nodeThatWillBeReplaced) {
|
|
76813
|
-
|
|
77024
|
+
_context14.next = 16;
|
|
76814
77025
|
break;
|
|
76815
77026
|
}
|
|
76816
|
-
return
|
|
76817
|
-
case
|
|
76818
|
-
nodeMigrator = new NodeMigrator(nodeThatWillBeReplaced, definition,
|
|
77027
|
+
return _context14.abrupt("return");
|
|
77028
|
+
case 16:
|
|
77029
|
+
nodeMigrator = new NodeMigrator(nodeThatWillBeReplaced, definition, _this27.graph, newNode, _this27.processes, _this27.collaboration);
|
|
76819
77030
|
nodeMigrator.migrate();
|
|
76820
|
-
return
|
|
76821
|
-
case
|
|
77031
|
+
return _context14.abrupt("return", newNode);
|
|
77032
|
+
case 19:
|
|
76822
77033
|
case "end":
|
|
76823
|
-
return
|
|
77034
|
+
return _context14.stop();
|
|
76824
77035
|
}
|
|
76825
|
-
},
|
|
77036
|
+
}, _callee14);
|
|
76826
77037
|
}))();
|
|
76827
77038
|
},
|
|
76828
77039
|
setShapeCenterUnderCursor: function setShapeCenterUnderCursor(diagram) {
|
|
@@ -76830,236 +77041,273 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
76830
77041
|
diagram.bounds.y -= diagram.bounds.height / 2;
|
|
76831
77042
|
},
|
|
76832
77043
|
selectNewNode: function selectNewNode(node) {
|
|
76833
|
-
var
|
|
76834
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77044
|
+
var _this28 = this;
|
|
77045
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
|
|
76835
77046
|
var newNodeComponent, view;
|
|
76836
|
-
return _regeneratorRuntime().wrap(function
|
|
76837
|
-
while (1) switch (
|
|
77047
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
77048
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
76838
77049
|
case 0:
|
|
76839
|
-
|
|
76840
|
-
return
|
|
77050
|
+
_context15.next = 2;
|
|
77051
|
+
return _this28.$nextTick();
|
|
76841
77052
|
case 2:
|
|
76842
|
-
|
|
76843
|
-
return
|
|
77053
|
+
_context15.next = 4;
|
|
77054
|
+
return _this28.paperManager.awaitScheduledUpdates();
|
|
76844
77055
|
case 4:
|
|
76845
|
-
newNodeComponent =
|
|
77056
|
+
newNodeComponent = _this28.$refs.nodeComponent.find(function (component) {
|
|
76846
77057
|
return component.node === node;
|
|
76847
77058
|
});
|
|
76848
77059
|
view = newNodeComponent.shapeView;
|
|
76849
|
-
|
|
76850
|
-
return
|
|
77060
|
+
_context15.next = 8;
|
|
77061
|
+
return _this28.$refs.selector.selectElement(view);
|
|
76851
77062
|
case 8:
|
|
76852
77063
|
case "end":
|
|
76853
|
-
return
|
|
77064
|
+
return _context15.stop();
|
|
76854
77065
|
}
|
|
76855
|
-
},
|
|
77066
|
+
}, _callee15);
|
|
76856
77067
|
}))();
|
|
76857
77068
|
},
|
|
77069
|
+
multiplayerHook: function multiplayerHook(node, fromClient) {
|
|
77070
|
+
var blackList = ['processmaker-modeler-lane', 'processmaker-modeler-generic-flow', 'processmaker-modeler-sequence-flow', 'processmaker-modeler-association', 'processmaker-modeler-data-input-association', 'processmaker-modeler-data-input-association'];
|
|
77071
|
+
var flowTypes = ['processmaker-modeler-sequence-flow', 'processmaker-modeler-message-flow'];
|
|
77072
|
+
if (!this.isMultiplayer) {
|
|
77073
|
+
return;
|
|
77074
|
+
}
|
|
77075
|
+
if (!fromClient) {
|
|
77076
|
+
if (!blackList.includes(node.type) && !flowTypes.includes(node.type)) {
|
|
77077
|
+
var _node$pool;
|
|
77078
|
+
var defaultData = {
|
|
77079
|
+
x: node.diagram.bounds.x,
|
|
77080
|
+
y: node.diagram.bounds.y,
|
|
77081
|
+
height: node.diagram.bounds.height,
|
|
77082
|
+
width: node.diagram.bounds.width,
|
|
77083
|
+
type: node.type,
|
|
77084
|
+
id: node.definition.id,
|
|
77085
|
+
isAddingLaneAbove: true
|
|
77086
|
+
};
|
|
77087
|
+
if (node !== null && node !== void 0 && (_node$pool = node.pool) !== null && _node$pool !== void 0 && _node$pool.component) {
|
|
77088
|
+
defaultData['poolId'] = node.pool.component.id;
|
|
77089
|
+
}
|
|
77090
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-addNode', defaultData);
|
|
77091
|
+
}
|
|
77092
|
+
if (flowTypes.includes(node.type)) {
|
|
77093
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-addFlow', {
|
|
77094
|
+
id: node.definition.id,
|
|
77095
|
+
type: node.type,
|
|
77096
|
+
sourceRefId: node.definition.sourceRef.id,
|
|
77097
|
+
targetRefId: node.definition.targetRef.id,
|
|
77098
|
+
waypoint: node.diagram.waypoint
|
|
77099
|
+
});
|
|
77100
|
+
}
|
|
77101
|
+
}
|
|
77102
|
+
},
|
|
76858
77103
|
addNode: function addNode(node) {
|
|
76859
|
-
var
|
|
76860
|
-
|
|
76861
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
76862
|
-
var id,
|
|
76863
|
-
return _regeneratorRuntime().wrap(function
|
|
76864
|
-
while (1) switch (
|
|
77104
|
+
var _arguments4 = arguments,
|
|
77105
|
+
_this29 = this;
|
|
77106
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
|
|
77107
|
+
var id, fromClient, targetProcess;
|
|
77108
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
77109
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
76865
77110
|
case 0:
|
|
76866
|
-
id =
|
|
76867
|
-
|
|
77111
|
+
id = _arguments4.length > 1 && _arguments4[1] !== undefined ? _arguments4[1] : null;
|
|
77112
|
+
fromClient = _arguments4.length > 2 && _arguments4[2] !== undefined ? _arguments4[2] : false;
|
|
76868
77113
|
if (!node.pool) {
|
|
76869
|
-
node.pool =
|
|
77114
|
+
node.pool = _this29.poolTarget;
|
|
76870
77115
|
}
|
|
76871
|
-
targetProcess = node.getTargetProcess(
|
|
77116
|
+
targetProcess = node.getTargetProcess(_this29.processes, _this29.processNode);
|
|
76872
77117
|
addNodeToProcess(node, targetProcess);
|
|
76873
|
-
node.setIds(
|
|
76874
|
-
|
|
77118
|
+
node.setIds(_this29.nodeIdGenerator, id);
|
|
77119
|
+
_this29.planeElements.push(node.diagram);
|
|
77120
|
+
// add multiplayer logic as a hook
|
|
77121
|
+
_this29.multiplayerHook(node, fromClient);
|
|
76875
77122
|
store.commit('addNode', node);
|
|
76876
|
-
|
|
77123
|
+
_this29.poolTarget = null;
|
|
76877
77124
|
|
|
76878
77125
|
// add processmaker-modeler-generic-flow
|
|
76879
77126
|
if (![sequenceFlow_id, poolLane_config_id, association_id, messageFlow_config_id, config_id, dataInputAssociation_config_id, genericFlow_config_id].includes(node.type)) {
|
|
76880
|
-
|
|
77127
|
+
_context16.next = 12;
|
|
76881
77128
|
break;
|
|
76882
77129
|
}
|
|
76883
|
-
return
|
|
76884
|
-
case
|
|
76885
|
-
if (
|
|
77130
|
+
return _context16.abrupt("return");
|
|
77131
|
+
case 12:
|
|
77132
|
+
if (!fromClient) {
|
|
76886
77133
|
// Select the node after it has been added to the store (does not apply to flows)
|
|
76887
|
-
|
|
77134
|
+
_this29.selectNewNode(node);
|
|
76888
77135
|
}
|
|
76889
|
-
return
|
|
77136
|
+
return _context16.abrupt("return", new Promise(function (resolve) {
|
|
76890
77137
|
setTimeout(function () {
|
|
76891
|
-
|
|
77138
|
+
_this29.pushToUndoStack();
|
|
76892
77139
|
resolve();
|
|
76893
77140
|
});
|
|
76894
77141
|
}));
|
|
76895
|
-
case
|
|
77142
|
+
case 14:
|
|
76896
77143
|
case "end":
|
|
76897
|
-
return
|
|
77144
|
+
return _context16.stop();
|
|
76898
77145
|
}
|
|
76899
|
-
},
|
|
77146
|
+
}, _callee16);
|
|
76900
77147
|
}))();
|
|
76901
77148
|
},
|
|
76902
77149
|
addClonedNodes: function addClonedNodes(nodes) {
|
|
76903
|
-
var
|
|
76904
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
76905
|
-
return _regeneratorRuntime().wrap(function
|
|
76906
|
-
while (1) switch (
|
|
77150
|
+
var _this30 = this;
|
|
77151
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
|
|
77152
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
77153
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
76907
77154
|
case 0:
|
|
76908
77155
|
nodes.forEach(function (node) {
|
|
76909
77156
|
if (!node.pool) {
|
|
76910
|
-
node.pool =
|
|
77157
|
+
node.pool = _this30.poolTarget;
|
|
76911
77158
|
}
|
|
76912
|
-
var targetProcess = node.getTargetProcess(
|
|
77159
|
+
var targetProcess = node.getTargetProcess(_this30.processes, _this30.processNode);
|
|
76913
77160
|
addNodeToProcess(node, targetProcess);
|
|
76914
|
-
|
|
77161
|
+
_this30.planeElements.push(node.diagram);
|
|
77162
|
+
_this30.multiplayerHook(node, false);
|
|
76915
77163
|
store.commit('addNode', node);
|
|
76916
|
-
|
|
77164
|
+
_this30.poolTarget = null;
|
|
76917
77165
|
});
|
|
76918
77166
|
case 1:
|
|
76919
77167
|
case "end":
|
|
76920
|
-
return
|
|
77168
|
+
return _context17.stop();
|
|
76921
77169
|
}
|
|
76922
|
-
},
|
|
77170
|
+
}, _callee17);
|
|
76923
77171
|
}))();
|
|
76924
77172
|
},
|
|
76925
77173
|
removeNode: function removeNode(node, options) {
|
|
76926
|
-
var
|
|
76927
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
76928
|
-
return _regeneratorRuntime().wrap(function
|
|
76929
|
-
while (1) switch (
|
|
77174
|
+
var _this31 = this;
|
|
77175
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
|
|
77176
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
77177
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
76930
77178
|
case 0:
|
|
76931
77179
|
// Check if the node is not replaced
|
|
76932
|
-
if (
|
|
77180
|
+
if (_this31.isMultiplayer && !(options !== null && options !== void 0 && options.isReplaced)) {
|
|
76933
77181
|
// Emit event to server to remove node
|
|
76934
77182
|
window.ProcessMaker.EventBus.$emit('multiplayer-removeNode', node);
|
|
76935
77183
|
}
|
|
76936
|
-
|
|
77184
|
+
_this31.removeNodeProcedure(node, options);
|
|
76937
77185
|
case 2:
|
|
76938
77186
|
case "end":
|
|
76939
|
-
return
|
|
77187
|
+
return _context18.stop();
|
|
76940
77188
|
}
|
|
76941
|
-
},
|
|
77189
|
+
}, _callee18);
|
|
76942
77190
|
}))();
|
|
76943
77191
|
},
|
|
76944
77192
|
removeNodeProcedure: function removeNodeProcedure(node) {
|
|
76945
|
-
var
|
|
76946
|
-
|
|
76947
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77193
|
+
var _arguments5 = arguments,
|
|
77194
|
+
_this32 = this;
|
|
77195
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
|
|
76948
77196
|
var _ref6, _ref6$removeRelations, removeRelationships;
|
|
76949
|
-
return _regeneratorRuntime().wrap(function
|
|
76950
|
-
while (1) switch (
|
|
77197
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
77198
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
76951
77199
|
case 0:
|
|
76952
|
-
_ref6 =
|
|
77200
|
+
_ref6 = _arguments5.length > 1 && _arguments5[1] !== undefined ? _arguments5[1] : {}, _ref6$removeRelations = _ref6.removeRelationships, removeRelationships = _ref6$removeRelations === void 0 ? true : _ref6$removeRelations;
|
|
76953
77201
|
if (node) {
|
|
76954
|
-
|
|
77202
|
+
_context19.next = 3;
|
|
76955
77203
|
break;
|
|
76956
77204
|
}
|
|
76957
|
-
return
|
|
77205
|
+
return _context19.abrupt("return");
|
|
76958
77206
|
case 3:
|
|
76959
77207
|
if (removeRelationships) {
|
|
76960
|
-
removeNodeFlows(node,
|
|
76961
|
-
removeNodeMessageFlows(node,
|
|
76962
|
-
removeNodeAssociations(node,
|
|
77208
|
+
removeNodeFlows(node, _this32);
|
|
77209
|
+
removeNodeMessageFlows(node, _this32);
|
|
77210
|
+
removeNodeAssociations(node, _this32);
|
|
76963
77211
|
}
|
|
76964
77212
|
removeOutgoingAndIncomingRefsToFlow(node);
|
|
76965
|
-
removeBoundaryEvents(
|
|
77213
|
+
removeBoundaryEvents(_this32.graph, node, _this32.removeNode);
|
|
76966
77214
|
removeSourceDefault(node);
|
|
76967
|
-
|
|
76968
|
-
|
|
77215
|
+
_this32.removeNodesFromLane(node);
|
|
77216
|
+
_this32.removeNodesFromPool(node);
|
|
76969
77217
|
store.commit('removeNode', node);
|
|
76970
|
-
store.commit('highlightNode',
|
|
76971
|
-
|
|
76972
|
-
|
|
76973
|
-
return
|
|
77218
|
+
store.commit('highlightNode', _this32.processNode);
|
|
77219
|
+
_this32.$refs.selector.clearSelection();
|
|
77220
|
+
_context19.next = 14;
|
|
77221
|
+
return _this32.$nextTick();
|
|
76974
77222
|
case 14:
|
|
76975
|
-
|
|
76976
|
-
return
|
|
77223
|
+
_context19.next = 16;
|
|
77224
|
+
return _this32.pushToUndoStack();
|
|
76977
77225
|
case 16:
|
|
76978
77226
|
// force to update the processNode property in every delete
|
|
76979
|
-
|
|
76980
|
-
if (
|
|
76981
|
-
|
|
76982
|
-
return diagram.bpmnElement.id ===
|
|
77227
|
+
_this32.processes = _this32.getProcesses();
|
|
77228
|
+
if (_this32.processes && _this32.processes.length > 0) {
|
|
77229
|
+
_this32.processNode = new Node('processmaker-modeler-process', _this32.processes[0], _this32.planeElements.find(function (diagram) {
|
|
77230
|
+
return diagram.bpmnElement.id === _this32.processes[0].id;
|
|
76983
77231
|
}));
|
|
76984
77232
|
}
|
|
76985
77233
|
case 18:
|
|
76986
77234
|
case "end":
|
|
76987
|
-
return
|
|
77235
|
+
return _context19.stop();
|
|
76988
77236
|
}
|
|
76989
|
-
},
|
|
77237
|
+
}, _callee19);
|
|
76990
77238
|
}))();
|
|
76991
77239
|
},
|
|
76992
77240
|
removeNodes: function removeNodes() {
|
|
76993
|
-
var
|
|
76994
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
76995
|
-
return _regeneratorRuntime().wrap(function
|
|
76996
|
-
while (1) switch (
|
|
77241
|
+
var _this33 = this;
|
|
77242
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
|
|
77243
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
77244
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
76997
77245
|
case 0:
|
|
76998
|
-
|
|
76999
|
-
return
|
|
77000
|
-
return _regeneratorRuntime().wrap(function
|
|
77001
|
-
while (1) switch (
|
|
77246
|
+
_context22.next = 2;
|
|
77247
|
+
return _this33.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
|
|
77248
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
77249
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
77002
77250
|
case 0:
|
|
77003
|
-
|
|
77004
|
-
return
|
|
77251
|
+
_context21.next = 2;
|
|
77252
|
+
return _this33.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
|
|
77005
77253
|
var waitPromises;
|
|
77006
|
-
return _regeneratorRuntime().wrap(function
|
|
77007
|
-
while (1) switch (
|
|
77254
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
77255
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
77008
77256
|
case 0:
|
|
77009
77257
|
waitPromises = [];
|
|
77010
|
-
|
|
77011
|
-
return waitPromises.push(
|
|
77258
|
+
_this33.highlightedNodes.forEach(function (node) {
|
|
77259
|
+
return waitPromises.push(_this33.removeNode(node, {
|
|
77012
77260
|
removeRelationships: true
|
|
77013
77261
|
}));
|
|
77014
77262
|
});
|
|
77015
|
-
|
|
77263
|
+
_context20.next = 4;
|
|
77016
77264
|
return Promise.all(waitPromises);
|
|
77017
77265
|
case 4:
|
|
77018
77266
|
store.commit('highlightNode');
|
|
77019
77267
|
case 5:
|
|
77020
77268
|
case "end":
|
|
77021
|
-
return
|
|
77269
|
+
return _context20.stop();
|
|
77022
77270
|
}
|
|
77023
|
-
},
|
|
77271
|
+
}, _callee20);
|
|
77024
77272
|
})));
|
|
77025
77273
|
case 2:
|
|
77026
77274
|
case "end":
|
|
77027
|
-
return
|
|
77275
|
+
return _context21.stop();
|
|
77028
77276
|
}
|
|
77029
|
-
},
|
|
77277
|
+
}, _callee21);
|
|
77030
77278
|
})));
|
|
77031
77279
|
case 2:
|
|
77032
77280
|
case "end":
|
|
77033
|
-
return
|
|
77281
|
+
return _context22.stop();
|
|
77034
77282
|
}
|
|
77035
|
-
},
|
|
77283
|
+
}, _callee22);
|
|
77036
77284
|
}))();
|
|
77037
77285
|
},
|
|
77038
77286
|
replaceNode: function replaceNode(_ref9) {
|
|
77039
|
-
var
|
|
77287
|
+
var _this34 = this;
|
|
77040
77288
|
var node = _ref9.node,
|
|
77041
77289
|
typeToReplaceWith = _ref9.typeToReplaceWith;
|
|
77042
|
-
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77043
|
-
return _regeneratorRuntime().wrap(function
|
|
77044
|
-
while (1) switch (
|
|
77290
|
+
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
|
|
77291
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
77292
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
77045
77293
|
case 0:
|
|
77046
|
-
|
|
77047
|
-
return
|
|
77048
|
-
var
|
|
77049
|
-
return _regeneratorRuntime().wrap(function
|
|
77050
|
-
while (1) switch (
|
|
77294
|
+
_context24.next = 2;
|
|
77295
|
+
return _this34.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
|
|
77296
|
+
var _node$diagram$bounds, x, y, nodeData, nodeTypes, newControl;
|
|
77297
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
77298
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
77051
77299
|
case 0:
|
|
77052
|
-
|
|
77300
|
+
_node$diagram$bounds = node.diagram.bounds, x = _node$diagram$bounds.x, y = _node$diagram$bounds.y;
|
|
77053
77301
|
nodeData = {
|
|
77054
|
-
|
|
77055
|
-
|
|
77302
|
+
x: x,
|
|
77303
|
+
y: y,
|
|
77056
77304
|
control: {
|
|
77057
77305
|
type: typeToReplaceWith
|
|
77058
77306
|
},
|
|
77059
77307
|
nodeThatWillBeReplaced: node
|
|
77060
77308
|
};
|
|
77061
|
-
if (!
|
|
77062
|
-
|
|
77309
|
+
if (!_this34.isMultiplayer) {
|
|
77310
|
+
_context23.next = 8;
|
|
77063
77311
|
break;
|
|
77064
77312
|
}
|
|
77065
77313
|
// Get all node types
|
|
@@ -77073,81 +77321,81 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77073
77321
|
if (newControl.length === 1) {
|
|
77074
77322
|
window.ProcessMaker.EventBus.$emit('multiplayer-replaceNode', {
|
|
77075
77323
|
nodeData: nodeData,
|
|
77076
|
-
newControl: newControl[0]
|
|
77324
|
+
newControl: newControl[0].type
|
|
77077
77325
|
});
|
|
77078
77326
|
}
|
|
77079
|
-
|
|
77327
|
+
_context23.next = 10;
|
|
77080
77328
|
break;
|
|
77081
77329
|
case 8:
|
|
77082
|
-
|
|
77083
|
-
return
|
|
77330
|
+
_context23.next = 10;
|
|
77331
|
+
return _this34.replaceNodeProcedure(nodeData, true);
|
|
77084
77332
|
case 10:
|
|
77085
77333
|
case "end":
|
|
77086
|
-
return
|
|
77334
|
+
return _context23.stop();
|
|
77087
77335
|
}
|
|
77088
|
-
},
|
|
77336
|
+
}, _callee23);
|
|
77089
77337
|
})));
|
|
77090
77338
|
case 2:
|
|
77091
77339
|
case "end":
|
|
77092
|
-
return
|
|
77340
|
+
return _context24.stop();
|
|
77093
77341
|
}
|
|
77094
|
-
},
|
|
77342
|
+
}, _callee24);
|
|
77095
77343
|
})));
|
|
77096
77344
|
},
|
|
77097
77345
|
replaceNodeProcedure: function replaceNodeProcedure(data) {
|
|
77098
|
-
var
|
|
77099
|
-
|
|
77100
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77101
|
-
var isReplaced,
|
|
77102
|
-
return _regeneratorRuntime().wrap(function
|
|
77103
|
-
while (1) switch (
|
|
77346
|
+
var _arguments6 = arguments,
|
|
77347
|
+
_this35 = this;
|
|
77348
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25() {
|
|
77349
|
+
var isReplaced, _this35$paper$localTo, clientX, clientY, newNode;
|
|
77350
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
|
77351
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
77104
77352
|
case 0:
|
|
77105
|
-
isReplaced =
|
|
77353
|
+
isReplaced = _arguments6.length > 1 && _arguments6[1] !== undefined ? _arguments6[1] : false;
|
|
77106
77354
|
if (isReplaced) {
|
|
77107
77355
|
// Get the clientX and clientY from the node that will be replaced
|
|
77108
|
-
|
|
77356
|
+
_this35$paper$localTo = _this35.paper.localToClientPoint(data.nodeThatWillBeReplaced.diagram.bounds), clientX = _this35$paper$localTo.x, clientY = _this35$paper$localTo.y;
|
|
77109
77357
|
data.clientX = clientX;
|
|
77110
77358
|
data.clientY = clientY;
|
|
77111
77359
|
}
|
|
77112
|
-
|
|
77113
|
-
return
|
|
77360
|
+
_context25.next = 4;
|
|
77361
|
+
return _this35.handleDrop(data);
|
|
77114
77362
|
case 4:
|
|
77115
|
-
newNode =
|
|
77116
|
-
|
|
77117
|
-
return
|
|
77363
|
+
newNode = _context25.sent;
|
|
77364
|
+
_context25.next = 7;
|
|
77365
|
+
return _this35.removeNode(data.nodeThatWillBeReplaced, {
|
|
77118
77366
|
removeRelationships: false,
|
|
77119
77367
|
isReplaced: isReplaced
|
|
77120
77368
|
});
|
|
77121
77369
|
case 7:
|
|
77122
|
-
|
|
77123
|
-
|
|
77370
|
+
_this35.highlightNode(newNode);
|
|
77371
|
+
_this35.selectNewNode(newNode);
|
|
77124
77372
|
case 9:
|
|
77125
77373
|
case "end":
|
|
77126
|
-
return
|
|
77374
|
+
return _context25.stop();
|
|
77127
77375
|
}
|
|
77128
|
-
},
|
|
77376
|
+
}, _callee25);
|
|
77129
77377
|
}))();
|
|
77130
77378
|
},
|
|
77131
77379
|
replaceAiNode: function replaceAiNode(_ref12) {
|
|
77132
|
-
var
|
|
77380
|
+
var _this36 = this;
|
|
77133
77381
|
var node = _ref12.node,
|
|
77134
77382
|
typeToReplaceWith = _ref12.typeToReplaceWith,
|
|
77135
77383
|
assetId = _ref12.assetId,
|
|
77136
77384
|
assetName = _ref12.assetName,
|
|
77137
77385
|
redirectTo = _ref12.redirectTo;
|
|
77138
|
-
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77139
|
-
return _regeneratorRuntime().wrap(function
|
|
77140
|
-
while (1) switch (
|
|
77386
|
+
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27() {
|
|
77387
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context27) {
|
|
77388
|
+
while (1) switch (_context27.prev = _context27.next) {
|
|
77141
77389
|
case 0:
|
|
77142
|
-
|
|
77143
|
-
return
|
|
77144
|
-
var
|
|
77145
|
-
return _regeneratorRuntime().wrap(function
|
|
77146
|
-
while (1) switch (
|
|
77390
|
+
_context27.next = 2;
|
|
77391
|
+
return _this36.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26() {
|
|
77392
|
+
var _this36$paper$localTo, clientX, clientY, newNode;
|
|
77393
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
|
77394
|
+
while (1) switch (_context26.prev = _context26.next) {
|
|
77147
77395
|
case 0:
|
|
77148
|
-
|
|
77149
|
-
|
|
77150
|
-
return
|
|
77396
|
+
_this36$paper$localTo = _this36.paper.localToClientPoint(node.diagram.bounds), clientX = _this36$paper$localTo.x, clientY = _this36$paper$localTo.y;
|
|
77397
|
+
_context26.next = 3;
|
|
77398
|
+
return _this36.handleDrop({
|
|
77151
77399
|
clientX: clientX,
|
|
77152
77400
|
clientY: clientY,
|
|
77153
77401
|
control: {
|
|
@@ -77156,7 +77404,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77156
77404
|
nodeThatWillBeReplaced: node
|
|
77157
77405
|
});
|
|
77158
77406
|
case 3:
|
|
77159
|
-
newNode =
|
|
77407
|
+
newNode = _context26.sent;
|
|
77160
77408
|
if (typeToReplaceWith === 'processmaker-modeler-task') {
|
|
77161
77409
|
newNode.definition.screenRef = assetId;
|
|
77162
77410
|
newNode.definition.name = assetName;
|
|
@@ -77171,95 +77419,95 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77171
77419
|
newNode.definition.config = "{\"calledElement\":\"ProcessId-".concat(assetId, "\",\"processId\":").concat(assetId, ",\"startEvent\":\"node_1\",\"name\":\"").concat(assetName, "\"}");
|
|
77172
77420
|
redirectTo = "".concat(redirectTo, "/").concat(newNode.id);
|
|
77173
77421
|
}
|
|
77174
|
-
|
|
77175
|
-
return
|
|
77422
|
+
_context26.next = 9;
|
|
77423
|
+
return _this36.removeNode(node, {
|
|
77176
77424
|
removeRelationships: false
|
|
77177
77425
|
});
|
|
77178
77426
|
case 9:
|
|
77179
|
-
|
|
77180
|
-
|
|
77181
|
-
|
|
77182
|
-
return
|
|
77427
|
+
_this36.highlightNode(newNode);
|
|
77428
|
+
_this36.selectNewNode(newNode);
|
|
77429
|
+
_context26.next = 13;
|
|
77430
|
+
return _this36.pushToUndoStack();
|
|
77183
77431
|
case 13:
|
|
77184
|
-
|
|
77185
|
-
return
|
|
77432
|
+
_context26.next = 15;
|
|
77433
|
+
return _this36.$nextTick();
|
|
77186
77434
|
case 15:
|
|
77187
|
-
|
|
77435
|
+
_this36.saveBpmn(redirectTo, newNode.id);
|
|
77188
77436
|
case 16:
|
|
77189
77437
|
case "end":
|
|
77190
|
-
return
|
|
77438
|
+
return _context26.stop();
|
|
77191
77439
|
}
|
|
77192
|
-
},
|
|
77440
|
+
}, _callee26);
|
|
77193
77441
|
})));
|
|
77194
77442
|
case 2:
|
|
77195
77443
|
case "end":
|
|
77196
|
-
return
|
|
77444
|
+
return _context27.stop();
|
|
77197
77445
|
}
|
|
77198
|
-
},
|
|
77446
|
+
}, _callee27);
|
|
77199
77447
|
})));
|
|
77200
77448
|
},
|
|
77201
77449
|
replaceGenericFlow: function replaceGenericFlow(_ref15) {
|
|
77202
|
-
var
|
|
77450
|
+
var _this37 = this;
|
|
77203
77451
|
var actualFlow = _ref15.actualFlow,
|
|
77204
77452
|
genericFlow = _ref15.genericFlow,
|
|
77205
77453
|
targetNode = _ref15.targetNode;
|
|
77206
|
-
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77207
|
-
return _regeneratorRuntime().wrap(function
|
|
77208
|
-
while (1) switch (
|
|
77454
|
+
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29() {
|
|
77455
|
+
return _regeneratorRuntime().wrap(function _callee29$(_context29) {
|
|
77456
|
+
while (1) switch (_context29.prev = _context29.next) {
|
|
77209
77457
|
case 0:
|
|
77210
|
-
|
|
77211
|
-
return
|
|
77212
|
-
return _regeneratorRuntime().wrap(function
|
|
77213
|
-
while (1) switch (
|
|
77458
|
+
_context29.next = 2;
|
|
77459
|
+
return _this37.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28() {
|
|
77460
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context28) {
|
|
77461
|
+
while (1) switch (_context28.prev = _context28.next) {
|
|
77214
77462
|
case 0:
|
|
77215
|
-
|
|
77216
|
-
return
|
|
77463
|
+
_context28.next = 2;
|
|
77464
|
+
return _this37.highlightNode(null);
|
|
77217
77465
|
case 2:
|
|
77218
|
-
|
|
77219
|
-
return
|
|
77466
|
+
_context28.next = 4;
|
|
77467
|
+
return _this37.$nextTick();
|
|
77220
77468
|
case 4:
|
|
77221
|
-
|
|
77222
|
-
return
|
|
77469
|
+
_context28.next = 6;
|
|
77470
|
+
return _this37.addNode(actualFlow);
|
|
77223
77471
|
case 6:
|
|
77224
|
-
|
|
77472
|
+
_context28.next = 8;
|
|
77225
77473
|
return store.commit('removeNode', genericFlow);
|
|
77226
77474
|
case 8:
|
|
77227
|
-
|
|
77228
|
-
return
|
|
77475
|
+
_context28.next = 10;
|
|
77476
|
+
return _this37.$nextTick();
|
|
77229
77477
|
case 10:
|
|
77230
|
-
|
|
77231
|
-
return
|
|
77478
|
+
_context28.next = 12;
|
|
77479
|
+
return _this37.highlightNode(targetNode);
|
|
77232
77480
|
case 12:
|
|
77233
77481
|
case "end":
|
|
77234
|
-
return
|
|
77482
|
+
return _context28.stop();
|
|
77235
77483
|
}
|
|
77236
|
-
},
|
|
77484
|
+
}, _callee28);
|
|
77237
77485
|
})));
|
|
77238
77486
|
case 2:
|
|
77239
77487
|
case "end":
|
|
77240
|
-
return
|
|
77488
|
+
return _context29.stop();
|
|
77241
77489
|
}
|
|
77242
|
-
},
|
|
77490
|
+
}, _callee29);
|
|
77243
77491
|
})));
|
|
77244
77492
|
},
|
|
77245
77493
|
performSingleUndoRedoTransaction: function performSingleUndoRedoTransaction(cb) {
|
|
77246
|
-
var
|
|
77247
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77248
|
-
return _regeneratorRuntime().wrap(function
|
|
77249
|
-
while (1) switch (
|
|
77494
|
+
var _this38 = this;
|
|
77495
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30() {
|
|
77496
|
+
return _regeneratorRuntime().wrap(function _callee30$(_context30) {
|
|
77497
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
77250
77498
|
case 0:
|
|
77251
77499
|
undoRedoStore.commit('disableSavingState');
|
|
77252
|
-
|
|
77500
|
+
_context30.next = 3;
|
|
77253
77501
|
return cb();
|
|
77254
77502
|
case 3:
|
|
77255
77503
|
undoRedoStore.commit('enableSavingState');
|
|
77256
|
-
|
|
77257
|
-
return
|
|
77504
|
+
_context30.next = 6;
|
|
77505
|
+
return _this38.pushToUndoStack();
|
|
77258
77506
|
case 6:
|
|
77259
77507
|
case "end":
|
|
77260
|
-
return
|
|
77508
|
+
return _context30.stop();
|
|
77261
77509
|
}
|
|
77262
|
-
},
|
|
77510
|
+
}, _callee30);
|
|
77263
77511
|
}))();
|
|
77264
77512
|
},
|
|
77265
77513
|
removeNodesFromLane: function removeNodesFromLane(node) {
|
|
@@ -77272,36 +77520,36 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77272
77520
|
pull_default()(containingLane.get('flowNodeRef'), node.definition);
|
|
77273
77521
|
},
|
|
77274
77522
|
removeNodesFromPool: function removeNodesFromPool(node) {
|
|
77275
|
-
var
|
|
77523
|
+
var _this39 = this;
|
|
77276
77524
|
if (node.type === 'processmaker-modeler-pool' && node.definition.processRef) {
|
|
77277
77525
|
if (node.definition.processRef.artifacts) {
|
|
77278
77526
|
node.definition.processRef.artifacts.forEach(function (artifact) {
|
|
77279
|
-
var nodeToRemove =
|
|
77527
|
+
var nodeToRemove = _this39.nodes.find(function (n) {
|
|
77280
77528
|
return n.definition === artifact;
|
|
77281
77529
|
});
|
|
77282
77530
|
if (nodeToRemove) {
|
|
77283
|
-
|
|
77531
|
+
_this39.removeNode(nodeToRemove);
|
|
77284
77532
|
}
|
|
77285
77533
|
});
|
|
77286
77534
|
}
|
|
77287
77535
|
if (node.definition.processRef.flowElements) {
|
|
77288
77536
|
node.definition.processRef.flowElements.forEach(function (flowElement) {
|
|
77289
|
-
var nodeToRemove =
|
|
77537
|
+
var nodeToRemove = _this39.nodes.find(function (n) {
|
|
77290
77538
|
return n.definition === flowElement;
|
|
77291
77539
|
});
|
|
77292
77540
|
if (nodeToRemove) {
|
|
77293
|
-
|
|
77541
|
+
_this39.removeNode(nodeToRemove);
|
|
77294
77542
|
}
|
|
77295
77543
|
});
|
|
77296
77544
|
}
|
|
77297
77545
|
var laneSets = node.definition.processRef.laneSets;
|
|
77298
77546
|
if (!!laneSets && laneSets.length > 0) {
|
|
77299
77547
|
laneSets[0].lanes.forEach(function (lane) {
|
|
77300
|
-
var nodeToRemove =
|
|
77548
|
+
var nodeToRemove = _this39.nodes.find(function (n) {
|
|
77301
77549
|
return n.definition === lane;
|
|
77302
77550
|
});
|
|
77303
77551
|
if (nodeToRemove) {
|
|
77304
|
-
|
|
77552
|
+
_this39.removeNode(nodeToRemove);
|
|
77305
77553
|
}
|
|
77306
77554
|
});
|
|
77307
77555
|
}
|
|
@@ -77329,13 +77577,13 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77329
77577
|
return shape.component != null;
|
|
77330
77578
|
},
|
|
77331
77579
|
setShapeStacking: function setShapeStacking(shape) {
|
|
77332
|
-
var
|
|
77580
|
+
var _this40 = this;
|
|
77333
77581
|
if (this.isRendering || !shape.component.node.isType('processmaker-modeler-pool') && shape === this.previouslyStackedShape) {
|
|
77334
77582
|
return;
|
|
77335
77583
|
}
|
|
77336
77584
|
this.previouslyStackedShape = shape;
|
|
77337
77585
|
this.paperManager.performAtomicAction(function () {
|
|
77338
|
-
return ensureShapeIsNotCovered(shape,
|
|
77586
|
+
return ensureShapeIsNotCovered(shape, _this40.graph);
|
|
77339
77587
|
});
|
|
77340
77588
|
},
|
|
77341
77589
|
showSavedNotification: function showSavedNotification() {
|
|
@@ -77369,49 +77617,49 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77369
77617
|
return false;
|
|
77370
77618
|
},
|
|
77371
77619
|
pointerDowInShape: function pointerDowInShape(event, element) {
|
|
77372
|
-
var
|
|
77373
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77620
|
+
var _this41 = this;
|
|
77621
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31() {
|
|
77374
77622
|
var x, y, shapeView;
|
|
77375
|
-
return _regeneratorRuntime().wrap(function
|
|
77376
|
-
while (1) switch (
|
|
77623
|
+
return _regeneratorRuntime().wrap(function _callee31$(_context31) {
|
|
77624
|
+
while (1) switch (_context31.prev = _context31.next) {
|
|
77377
77625
|
case 0:
|
|
77378
77626
|
x = event.clientX, y = event.clientY;
|
|
77379
|
-
shapeView =
|
|
77380
|
-
|
|
77381
|
-
|
|
77382
|
-
|
|
77383
|
-
|
|
77627
|
+
shapeView = _this41.paper.findViewByModel(element);
|
|
77628
|
+
_this41.isDragging = false;
|
|
77629
|
+
_this41.isSelecting = false;
|
|
77630
|
+
_this41.isIntoTheSelection = false;
|
|
77631
|
+
_this41.dragStart = {
|
|
77384
77632
|
x: x,
|
|
77385
77633
|
y: y
|
|
77386
77634
|
};
|
|
77387
77635
|
// Verify if is in the selection box
|
|
77388
|
-
if (!
|
|
77389
|
-
|
|
77636
|
+
if (!_this41.isPointInSelection(event)) {
|
|
77637
|
+
_context31.next = 10;
|
|
77390
77638
|
break;
|
|
77391
77639
|
}
|
|
77392
|
-
|
|
77393
|
-
|
|
77640
|
+
_this41.isIntoTheSelection = true;
|
|
77641
|
+
_context31.next = 15;
|
|
77394
77642
|
break;
|
|
77395
77643
|
case 10:
|
|
77396
77644
|
if (event.shiftKey) {
|
|
77397
|
-
|
|
77645
|
+
_context31.next = 15;
|
|
77398
77646
|
break;
|
|
77399
77647
|
}
|
|
77400
|
-
|
|
77401
|
-
return
|
|
77648
|
+
_context31.next = 13;
|
|
77649
|
+
return _this41.$refs.selector.selectElement(shapeView);
|
|
77402
77650
|
case 13:
|
|
77403
|
-
|
|
77404
|
-
return
|
|
77651
|
+
_context31.next = 15;
|
|
77652
|
+
return _this41.$nextTick();
|
|
77405
77653
|
case 15:
|
|
77406
|
-
|
|
77654
|
+
_this41.$refs.selector.startDrag({
|
|
77407
77655
|
clientX: event.clientX,
|
|
77408
77656
|
clientY: event.clientY
|
|
77409
77657
|
});
|
|
77410
77658
|
case 16:
|
|
77411
77659
|
case "end":
|
|
77412
|
-
return
|
|
77660
|
+
return _context31.stop();
|
|
77413
77661
|
}
|
|
77414
|
-
},
|
|
77662
|
+
}, _callee31);
|
|
77415
77663
|
}))();
|
|
77416
77664
|
},
|
|
77417
77665
|
pointerDownHandler: function pointerDownHandler(event) {
|
|
@@ -77532,7 +77780,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77532
77780
|
this.$emit('set-xml-manager', this.xmlManager);
|
|
77533
77781
|
},
|
|
77534
77782
|
mounted: function mounted() {
|
|
77535
|
-
var
|
|
77783
|
+
var _this42 = this;
|
|
77536
77784
|
store.commit('setReadOnly', this.readOnly);
|
|
77537
77785
|
this.graph = new external_jointjs_namespaceObject.dia.Graph();
|
|
77538
77786
|
store.commit('setGraph', this.graph);
|
|
@@ -77551,47 +77799,47 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77551
77799
|
store.commit('setPaper', this.paperManager.paper);
|
|
77552
77800
|
this.paperManager.addEventHandler('element:pointerclick', this.blurFocusedScreenBuilderElement, this);
|
|
77553
77801
|
this.paperManager.addEventHandler('blank:pointerdown', function (event, x, y) {
|
|
77554
|
-
if (
|
|
77802
|
+
if (_this42.isGrabbing) return;
|
|
77555
77803
|
if (store.getters.isReadOnly) {
|
|
77556
|
-
|
|
77804
|
+
_this42.isGrabbing = true;
|
|
77557
77805
|
}
|
|
77558
|
-
var scale =
|
|
77559
|
-
|
|
77806
|
+
var scale = _this42.paperManager.scale;
|
|
77807
|
+
_this42.canvasDragPosition = {
|
|
77560
77808
|
x: x * scale.sx,
|
|
77561
77809
|
y: y * scale.sy
|
|
77562
77810
|
};
|
|
77563
|
-
|
|
77564
|
-
|
|
77811
|
+
_this42.isOverShape = false;
|
|
77812
|
+
_this42.pointerDownHandler(event);
|
|
77565
77813
|
}, this);
|
|
77566
77814
|
this.paperManager.addEventHandler('cell:mouseover element:mouseover', function (_ref19) {
|
|
77567
77815
|
var shape = _ref19.model;
|
|
77568
|
-
if (
|
|
77816
|
+
if (_this42.isBpmnNode(shape) && shape.attr('body/cursor') !== 'default' && !_this42.isGrabbing) {
|
|
77569
77817
|
shape.attr('body/cursor', 'move');
|
|
77570
77818
|
}
|
|
77571
77819
|
// If the user is panning the Paper while hovering an element, ignore the default move cursor
|
|
77572
|
-
if (
|
|
77820
|
+
if (_this42.isGrabbing && _this42.isBpmnNode(shape)) {
|
|
77573
77821
|
shape.attr('body/cursor', 'grabbing');
|
|
77574
77822
|
}
|
|
77575
77823
|
});
|
|
77576
77824
|
this.paperManager.addEventHandler('blank:pointerup', function (event) {
|
|
77577
|
-
|
|
77578
|
-
|
|
77579
|
-
|
|
77580
|
-
|
|
77825
|
+
_this42.isGrabbing = false;
|
|
77826
|
+
_this42.canvasDragPosition = null;
|
|
77827
|
+
_this42.activeNode = null;
|
|
77828
|
+
_this42.pointerUpHandler(event);
|
|
77581
77829
|
}, this);
|
|
77582
77830
|
this.paperManager.addEventHandler('cell:pointerup', function (cellView, event) {
|
|
77583
|
-
|
|
77584
|
-
|
|
77585
|
-
|
|
77831
|
+
_this42.canvasDragPosition = null;
|
|
77832
|
+
_this42.activeNode = null;
|
|
77833
|
+
_this42.pointerUpHandler(event, cellView);
|
|
77586
77834
|
}, this);
|
|
77587
77835
|
this.$refs['paper-container'].addEventListener('mouseenter', function () {
|
|
77588
77836
|
store.commit('setClientLeftPaper', false);
|
|
77589
77837
|
});
|
|
77590
77838
|
this.$el.addEventListener('mousemove', function (event) {
|
|
77591
|
-
|
|
77839
|
+
_this42.pointerMoveHandler(event);
|
|
77592
77840
|
});
|
|
77593
77841
|
this.$refs['paper-container'].addEventListener('mouseleave', function () {
|
|
77594
|
-
|
|
77842
|
+
_this42.paperManager.removeEventHandler('blank:pointermove');
|
|
77595
77843
|
store.commit('setClientLeftPaper', true);
|
|
77596
77844
|
});
|
|
77597
77845
|
this.paperManager.addEventHandler('cell:pointerclick', function (cellView, evt, x, y) {
|
|
@@ -77602,44 +77850,44 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77602
77850
|
});
|
|
77603
77851
|
this.paperManager.addEventHandler('cell:pointerclick', function (_ref20, event) {
|
|
77604
77852
|
var shape = _ref20.model;
|
|
77605
|
-
if (!
|
|
77853
|
+
if (!_this42.isBpmnNode(shape)) {
|
|
77606
77854
|
return;
|
|
77607
77855
|
}
|
|
77608
77856
|
|
|
77609
77857
|
// ignore click event if the user is Grabbing the paper
|
|
77610
|
-
if (
|
|
77858
|
+
if (_this42.isGrabbing) return;
|
|
77611
77859
|
shape.component.$emit('click', event);
|
|
77612
|
-
|
|
77860
|
+
_this42.$emit('click', {
|
|
77613
77861
|
event: event,
|
|
77614
|
-
node:
|
|
77862
|
+
node: _this42.highlightedNode.definition
|
|
77615
77863
|
});
|
|
77616
77864
|
});
|
|
77617
77865
|
this.paperManager.addEventHandler('cell:pointerdown', function (_ref21, event) {
|
|
77618
77866
|
var shape = _ref21.model;
|
|
77619
|
-
if (!
|
|
77867
|
+
if (!_this42.isBpmnNode(shape)) {
|
|
77620
77868
|
return;
|
|
77621
77869
|
}
|
|
77622
77870
|
// If the user is pressing Space (grabbing) and clicking on a Cell, return
|
|
77623
|
-
if (
|
|
77871
|
+
if (_this42.isGrabbing) {
|
|
77624
77872
|
return;
|
|
77625
77873
|
}
|
|
77626
|
-
|
|
77627
|
-
|
|
77628
|
-
|
|
77629
|
-
|
|
77874
|
+
_this42.setShapeStacking(shape);
|
|
77875
|
+
_this42.activeNode = shape.component.node;
|
|
77876
|
+
_this42.isOverShape = true;
|
|
77877
|
+
_this42.pointerDowInShape(event, shape);
|
|
77630
77878
|
});
|
|
77631
77879
|
// If the user is grabbing the paper while he clicked in a cell, move the paper and not the cell
|
|
77632
77880
|
this.paperManager.addEventHandler('cell:pointermove', function (_, event, x, y) {
|
|
77633
|
-
if (
|
|
77634
|
-
if (!
|
|
77635
|
-
var scale =
|
|
77636
|
-
|
|
77881
|
+
if (_this42.isGrabbing) {
|
|
77882
|
+
if (!_this42.canvasDragPosition) {
|
|
77883
|
+
var scale = _this42.paperManager.scale;
|
|
77884
|
+
_this42.canvasDragPosition = {
|
|
77637
77885
|
x: x * scale.sx,
|
|
77638
77886
|
y: y * scale.sy
|
|
77639
77887
|
};
|
|
77640
77888
|
}
|
|
77641
|
-
if (
|
|
77642
|
-
|
|
77889
|
+
if (_this42.canvasDragPosition && !_this42.clientLeftPaper) {
|
|
77890
|
+
_this42.paperManager.translate(event.offsetX - _this42.canvasDragPosition.x, event.offsetY - _this42.canvasDragPosition.y);
|
|
77643
77891
|
}
|
|
77644
77892
|
}
|
|
77645
77893
|
});
|
|
@@ -77650,28 +77898,28 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77650
77898
|
modeler: this,
|
|
77651
77899
|
registerMenuAction: this.registerMenuAction,
|
|
77652
77900
|
loadXML: function () {
|
|
77653
|
-
var _loadXML = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77901
|
+
var _loadXML = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(xml) {
|
|
77654
77902
|
var multiplayer;
|
|
77655
|
-
return _regeneratorRuntime().wrap(function
|
|
77656
|
-
while (1) switch (
|
|
77903
|
+
return _regeneratorRuntime().wrap(function _callee32$(_context32) {
|
|
77904
|
+
while (1) switch (_context32.prev = _context32.next) {
|
|
77657
77905
|
case 0:
|
|
77658
|
-
|
|
77659
|
-
return
|
|
77906
|
+
_context32.next = 2;
|
|
77907
|
+
return _this42.loadXML(xml);
|
|
77660
77908
|
case 2:
|
|
77661
|
-
|
|
77909
|
+
_context32.next = 4;
|
|
77662
77910
|
return undoRedoStore.dispatch('pushState', xml);
|
|
77663
77911
|
case 4:
|
|
77664
77912
|
try {
|
|
77665
|
-
multiplayer = new Multiplayer(
|
|
77913
|
+
multiplayer = new Multiplayer(_this42);
|
|
77666
77914
|
multiplayer.init();
|
|
77667
77915
|
} catch (error) {
|
|
77668
77916
|
console.warn('Could not initialize multiplayer', error);
|
|
77669
77917
|
}
|
|
77670
77918
|
case 5:
|
|
77671
77919
|
case "end":
|
|
77672
|
-
return
|
|
77920
|
+
return _context32.stop();
|
|
77673
77921
|
}
|
|
77674
|
-
},
|
|
77922
|
+
}, _callee32);
|
|
77675
77923
|
}));
|
|
77676
77924
|
function loadXML(_x) {
|
|
77677
77925
|
return _loadXML.apply(this, arguments);
|
|
@@ -77679,18 +77927,18 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77679
77927
|
return loadXML;
|
|
77680
77928
|
}(),
|
|
77681
77929
|
addWarnings: function addWarnings(warnings) {
|
|
77682
|
-
return
|
|
77930
|
+
return _this42.$emit('warnings', warnings);
|
|
77683
77931
|
},
|
|
77684
77932
|
addBreadcrumbs: function addBreadcrumbs(breadcrumbs) {
|
|
77685
|
-
return
|
|
77933
|
+
return _this42.breadcrumbData.push(breadcrumbs);
|
|
77686
77934
|
}
|
|
77687
77935
|
});
|
|
77688
77936
|
this.$root.$on('replace-ai-node', function (data) {
|
|
77689
|
-
|
|
77937
|
+
_this42.replaceAiNode(data);
|
|
77690
77938
|
});
|
|
77691
77939
|
window.ProcessMaker.EventBus.$on('save-changes', function (redirectUrl) {
|
|
77692
77940
|
if (redirectUrl) {
|
|
77693
|
-
|
|
77941
|
+
_this42.redirect(redirectUrl);
|
|
77694
77942
|
}
|
|
77695
77943
|
});
|
|
77696
77944
|
}
|
|
@@ -77712,8 +77960,8 @@ var modelervue_type_style_index_0_prod_lang_scss_ = __webpack_require__(88242);
|
|
|
77712
77960
|
|
|
77713
77961
|
var Modeler_component = normalizeComponent(
|
|
77714
77962
|
modeler_Modelervue_type_script_lang_js_,
|
|
77715
|
-
|
|
77716
|
-
|
|
77963
|
+
Modelervue_type_template_id_95ee0562_render,
|
|
77964
|
+
Modelervue_type_template_id_95ee0562_staticRenderFns,
|
|
77717
77965
|
false,
|
|
77718
77966
|
null,
|
|
77719
77967
|
null,
|