@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.umd.js
CHANGED
|
@@ -12828,7 +12828,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".weekday[data-v-4ae18478]{padding:.75e
|
|
|
12828
12828
|
|
|
12829
12829
|
/***/ }),
|
|
12830
12830
|
|
|
12831
|
-
/***/
|
|
12831
|
+
/***/ 80201:
|
|
12832
12832
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12833
12833
|
|
|
12834
12834
|
"use strict";
|
|
@@ -12842,7 +12842,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12842
12842
|
|
|
12843
12843
|
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()));
|
|
12844
12844
|
// Module
|
|
12845
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".box[data-v-
|
|
12845
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".box[data-v-1d953204]{border:1px solid #5faaee;position:absolute;pointer-events:none}", ""]);
|
|
12846
12846
|
// Exports
|
|
12847
12847
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
12848
12848
|
|
|
@@ -26441,19 +26441,19 @@ var update = add("a84bfd8c", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
26441
26441
|
|
|
26442
26442
|
/***/ }),
|
|
26443
26443
|
|
|
26444
|
-
/***/
|
|
26444
|
+
/***/ 67491:
|
|
26445
26445
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
26446
26446
|
|
|
26447
26447
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
26448
26448
|
|
|
26449
26449
|
// load the styles
|
|
26450
|
-
var content = __webpack_require__(
|
|
26450
|
+
var content = __webpack_require__(80201);
|
|
26451
26451
|
if(content.__esModule) content = content.default;
|
|
26452
26452
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
26453
26453
|
if(content.locals) module.exports = content.locals;
|
|
26454
26454
|
// add the styles to the DOM
|
|
26455
26455
|
var add = (__webpack_require__(54402)/* ["default"] */ .Z)
|
|
26456
|
-
var update = add("
|
|
26456
|
+
var update = add("347f5550", content, true, {"sourceMap":false,"shadowMode":false});
|
|
26457
26457
|
|
|
26458
26458
|
/***/ }),
|
|
26459
26459
|
|
|
@@ -28915,8 +28915,6 @@ var es_array_map = __webpack_require__(21249);
|
|
|
28915
28915
|
var es_array_concat = __webpack_require__(92222);
|
|
28916
28916
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
28917
28917
|
var es_array_sort = __webpack_require__(2707);
|
|
28918
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.to-json.js
|
|
28919
|
-
var web_url_to_json = __webpack_require__(83753);
|
|
28920
28918
|
// EXTERNAL MODULE: ./node_modules/lodash/get.js
|
|
28921
28919
|
var get = __webpack_require__(27361);
|
|
28922
28920
|
var get_default = /*#__PURE__*/__webpack_require__.n(get);
|
|
@@ -32002,7 +32000,6 @@ var COLOR_COMPLETED_FILL = '#D6FFE6';
|
|
|
32002
32000
|
|
|
32003
32001
|
|
|
32004
32002
|
|
|
32005
|
-
|
|
32006
32003
|
var endpoints = {
|
|
32007
32004
|
source: 'source',
|
|
32008
32005
|
target: 'target'
|
|
@@ -32292,19 +32289,6 @@ function isPoint(item) {
|
|
|
32292
32289
|
if (_this8.updateDefinitionLinks) {
|
|
32293
32290
|
_this8.updateDefinitionLinks();
|
|
32294
32291
|
}
|
|
32295
|
-
if (_this8.shape.component.node.type === 'processmaker-modeler-data-input-association') {
|
|
32296
|
-
if (_this8.$parent.isMultiplayer) {
|
|
32297
|
-
var genericLink = _this8.shape.findView(_this8.paper);
|
|
32298
|
-
var waypoint = [genericLink.sourceAnchor.toJSON(), genericLink.targetAnchor.toJSON()];
|
|
32299
|
-
window.ProcessMaker.EventBus.$emit('multiplayer-addFlow', {
|
|
32300
|
-
type: _this8.shape.component.node.type,
|
|
32301
|
-
id: "node_".concat(_this8.$parent.nodeIdGenerator.getDefinitionNumber()),
|
|
32302
|
-
sourceRefId: _this8.sourceNode.definition.id,
|
|
32303
|
-
targetRefId: _this8.targetNode.definition.id,
|
|
32304
|
-
waypoint: waypoint
|
|
32305
|
-
});
|
|
32306
|
-
}
|
|
32307
|
-
}
|
|
32308
32292
|
_this8.$emit('save-state');
|
|
32309
32293
|
});
|
|
32310
32294
|
this.shape.listenToOnce(this.paper, 'cell:mouseleave', function () {
|
|
@@ -32981,16 +32965,18 @@ function removeBoundaryEvents(graph, node, removeNode) {
|
|
|
32981
32965
|
var nodeShape = graph.getCells().find(function (el) {
|
|
32982
32966
|
return el.component && el.component.node === node;
|
|
32983
32967
|
});
|
|
32984
|
-
nodeShape
|
|
32985
|
-
|
|
32986
|
-
|
|
32987
|
-
|
|
32988
|
-
|
|
32989
|
-
|
|
32990
|
-
|
|
32968
|
+
if (nodeShape) {
|
|
32969
|
+
nodeShape.getEmbeddedCells({
|
|
32970
|
+
deep: true
|
|
32971
|
+
}).filter(function (cell) {
|
|
32972
|
+
return cell.component && cell.component.node.isBpmnType('bpmn:BoundaryEvent');
|
|
32973
|
+
}).forEach(function (boundaryEventShape) {
|
|
32974
|
+
graph.getConnectedLinks(boundaryEventShape).forEach(function (shape) {
|
|
32975
|
+
return removeNode(shape.component.node);
|
|
32976
|
+
});
|
|
32977
|
+
removeNode(boundaryEventShape.component.node);
|
|
32991
32978
|
});
|
|
32992
|
-
|
|
32993
|
-
});
|
|
32979
|
+
}
|
|
32994
32980
|
}
|
|
32995
32981
|
function removeOutgoingAndIncomingRefsToFlow(node) {
|
|
32996
32982
|
if (node.isBpmnType(bpmnType, config_bpmnType)) {
|
|
@@ -38404,6 +38390,285 @@ var sequenceFlow_component = normalizeComponent(
|
|
|
38404
38390
|
)
|
|
38405
38391
|
|
|
38406
38392
|
/* harmony default export */ var sequenceFlow = (sequenceFlow_component.exports);
|
|
38393
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js
|
|
38394
|
+
|
|
38395
|
+
function _checkPrivateRedeclaration(obj, privateCollection) {
|
|
38396
|
+
if (privateCollection.has(obj)) {
|
|
38397
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
38398
|
+
}
|
|
38399
|
+
}
|
|
38400
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js
|
|
38401
|
+
|
|
38402
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
38403
|
+
_checkPrivateRedeclaration(obj, privateMap);
|
|
38404
|
+
privateMap.set(obj, value);
|
|
38405
|
+
}
|
|
38406
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js
|
|
38407
|
+
function _classApplyDescriptorGet(receiver, descriptor) {
|
|
38408
|
+
if (descriptor.get) {
|
|
38409
|
+
return descriptor.get.call(receiver);
|
|
38410
|
+
}
|
|
38411
|
+
return descriptor.value;
|
|
38412
|
+
}
|
|
38413
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js
|
|
38414
|
+
|
|
38415
|
+
function _classExtractFieldDescriptor(receiver, privateMap, action) {
|
|
38416
|
+
if (!privateMap.has(receiver)) {
|
|
38417
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
38418
|
+
}
|
|
38419
|
+
return privateMap.get(receiver);
|
|
38420
|
+
}
|
|
38421
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js
|
|
38422
|
+
|
|
38423
|
+
|
|
38424
|
+
function _classPrivateFieldGet(receiver, privateMap) {
|
|
38425
|
+
var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get");
|
|
38426
|
+
return _classApplyDescriptorGet(receiver, descriptor);
|
|
38427
|
+
}
|
|
38428
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js
|
|
38429
|
+
|
|
38430
|
+
function _classCheckPrivateStaticAccess(receiver, classConstructor) {
|
|
38431
|
+
if (receiver !== classConstructor) {
|
|
38432
|
+
throw new TypeError("Private static access of wrong provenance");
|
|
38433
|
+
}
|
|
38434
|
+
}
|
|
38435
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js
|
|
38436
|
+
|
|
38437
|
+
function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
|
|
38438
|
+
if (descriptor === undefined) {
|
|
38439
|
+
throw new TypeError("attempted to " + action + " private static field before its declaration");
|
|
38440
|
+
}
|
|
38441
|
+
}
|
|
38442
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js
|
|
38443
|
+
|
|
38444
|
+
|
|
38445
|
+
|
|
38446
|
+
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
|
|
38447
|
+
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
38448
|
+
_classCheckPrivateStaticFieldDescriptor(descriptor, "get");
|
|
38449
|
+
return _classApplyDescriptorGet(receiver, descriptor);
|
|
38450
|
+
}
|
|
38451
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js
|
|
38452
|
+
|
|
38453
|
+
function _classApplyDescriptorSet(receiver, descriptor, value) {
|
|
38454
|
+
if (descriptor.set) {
|
|
38455
|
+
descriptor.set.call(receiver, value);
|
|
38456
|
+
} else {
|
|
38457
|
+
if (!descriptor.writable) {
|
|
38458
|
+
throw new TypeError("attempted to set read only private field");
|
|
38459
|
+
}
|
|
38460
|
+
descriptor.value = value;
|
|
38461
|
+
}
|
|
38462
|
+
}
|
|
38463
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js
|
|
38464
|
+
|
|
38465
|
+
|
|
38466
|
+
|
|
38467
|
+
function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
|
|
38468
|
+
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
38469
|
+
_classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
|
38470
|
+
_classApplyDescriptorSet(receiver, descriptor, value);
|
|
38471
|
+
return value;
|
|
38472
|
+
}
|
|
38473
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-names.js
|
|
38474
|
+
var es_object_get_own_property_names = __webpack_require__(36210);
|
|
38475
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
|
38476
|
+
var es_string_match = __webpack_require__(4723);
|
|
38477
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.constructor.js
|
|
38478
|
+
var es_regexp_constructor = __webpack_require__(24603);
|
|
38479
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.dot-all.js
|
|
38480
|
+
var es_regexp_dot_all = __webpack_require__(28450);
|
|
38481
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.sticky.js
|
|
38482
|
+
var es_regexp_sticky = __webpack_require__(88386);
|
|
38483
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
38484
|
+
var es_regexp_to_string = __webpack_require__(39714);
|
|
38485
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.weak-map.js
|
|
38486
|
+
var es_weak_map = __webpack_require__(4129);
|
|
38487
|
+
;// CONCATENATED MODULE: ./src/NodeIdGenerator.js
|
|
38488
|
+
|
|
38489
|
+
|
|
38490
|
+
|
|
38491
|
+
|
|
38492
|
+
|
|
38493
|
+
|
|
38494
|
+
|
|
38495
|
+
|
|
38496
|
+
|
|
38497
|
+
|
|
38498
|
+
|
|
38499
|
+
|
|
38500
|
+
|
|
38501
|
+
|
|
38502
|
+
|
|
38503
|
+
|
|
38504
|
+
|
|
38505
|
+
|
|
38506
|
+
|
|
38507
|
+
|
|
38508
|
+
|
|
38509
|
+
|
|
38510
|
+
var _generateDefinitionId = /*#__PURE__*/new WeakMap();
|
|
38511
|
+
var _generateDiagramId = /*#__PURE__*/new WeakMap();
|
|
38512
|
+
var _generateProcessId = /*#__PURE__*/new WeakMap();
|
|
38513
|
+
var NodeIdGenerator = /*#__PURE__*/function () {
|
|
38514
|
+
function NodeIdGenerator(definitions) {
|
|
38515
|
+
_classCallCheck(this, NodeIdGenerator);
|
|
38516
|
+
_classPrivateFieldInitSpec(this, _generateDefinitionId, {
|
|
38517
|
+
writable: true,
|
|
38518
|
+
value: function value() {
|
|
38519
|
+
var _NodeIdGenerator$coun3, _NodeIdGenerator$coun4;
|
|
38520
|
+
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
38521
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun4 = _NodeIdGenerator$coun3++, _NodeIdGenerator$coun3)), _NodeIdGenerator$coun4;
|
|
38522
|
+
return id;
|
|
38523
|
+
}
|
|
38524
|
+
});
|
|
38525
|
+
_classPrivateFieldInitSpec(this, _generateDiagramId, {
|
|
38526
|
+
writable: true,
|
|
38527
|
+
value: function value() {
|
|
38528
|
+
var _NodeIdGenerator$diag3, _NodeIdGenerator$diag4;
|
|
38529
|
+
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter) + '_di';
|
|
38530
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag4 = _NodeIdGenerator$diag3++, _NodeIdGenerator$diag3)), _NodeIdGenerator$diag4;
|
|
38531
|
+
return id;
|
|
38532
|
+
}
|
|
38533
|
+
});
|
|
38534
|
+
_classPrivateFieldInitSpec(this, _generateProcessId, {
|
|
38535
|
+
writable: true,
|
|
38536
|
+
value: function value() {
|
|
38537
|
+
var _NodeIdGenerator$proc, _NodeIdGenerator$proc2;
|
|
38538
|
+
var id = NodeIdGenerator.processPrefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _processCounter);
|
|
38539
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _processCounter, (_NodeIdGenerator$proc = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _processCounter), _NodeIdGenerator$proc2 = _NodeIdGenerator$proc++, _NodeIdGenerator$proc)), _NodeIdGenerator$proc2;
|
|
38540
|
+
return id;
|
|
38541
|
+
}
|
|
38542
|
+
});
|
|
38543
|
+
this.definitions = definitions;
|
|
38544
|
+
this.refreshLastIdCounter();
|
|
38545
|
+
this.refreshLastDiagramIdCounter();
|
|
38546
|
+
this.refreshLastProcessIdCounter();
|
|
38547
|
+
}
|
|
38548
|
+
_createClass(NodeIdGenerator, [{
|
|
38549
|
+
key: "findById",
|
|
38550
|
+
value: function findById(id) {
|
|
38551
|
+
var _this = this;
|
|
38552
|
+
var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.definitions.rootElements;
|
|
38553
|
+
var walked = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
38554
|
+
if (walked.indexOf(root) > -1) return;
|
|
38555
|
+
var found;
|
|
38556
|
+
if (root instanceof Array) {
|
|
38557
|
+
walked.push(root);
|
|
38558
|
+
root.find(function (item) {
|
|
38559
|
+
return found = _this.findById(id, item, walked);
|
|
38560
|
+
});
|
|
38561
|
+
} else if (root instanceof Object && root.$type) {
|
|
38562
|
+
walked.push(root);
|
|
38563
|
+
if (root.id === id) return root;
|
|
38564
|
+
Object.getOwnPropertyNames(root).find(function (key) {
|
|
38565
|
+
return found = !(root[key] instanceof Function) && key.substring(0, 1) !== '$' && _this.findById(id, root[key], walked);
|
|
38566
|
+
});
|
|
38567
|
+
}
|
|
38568
|
+
return found;
|
|
38569
|
+
}
|
|
38570
|
+
}, {
|
|
38571
|
+
key: "matchIds",
|
|
38572
|
+
value: function matchIds(idRegex, root) {
|
|
38573
|
+
var _this2 = this;
|
|
38574
|
+
var walked = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
38575
|
+
var lastIdCounter = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
38576
|
+
if (walked.indexOf(root) > -1) return lastIdCounter;
|
|
38577
|
+
if (root instanceof Array) {
|
|
38578
|
+
walked.push(root);
|
|
38579
|
+
root.forEach(function (item) {
|
|
38580
|
+
return lastIdCounter = _this2.matchIds(idRegex, item, walked, lastIdCounter);
|
|
38581
|
+
});
|
|
38582
|
+
} else if (root instanceof Object) {
|
|
38583
|
+
walked.push(root);
|
|
38584
|
+
if (root.id) {
|
|
38585
|
+
var match = String(root.id).match(idRegex);
|
|
38586
|
+
var idCounter = match ? parseInt(match[1]) : 0;
|
|
38587
|
+
if (idCounter > lastIdCounter) {
|
|
38588
|
+
lastIdCounter = idCounter;
|
|
38589
|
+
}
|
|
38590
|
+
}
|
|
38591
|
+
Object.getOwnPropertyNames(root).forEach(function (key) {
|
|
38592
|
+
if (!(root[key] instanceof Function) && key.substring(0, 1) !== '$') {
|
|
38593
|
+
lastIdCounter = _this2.matchIds(idRegex, root[key], walked, lastIdCounter);
|
|
38594
|
+
}
|
|
38595
|
+
});
|
|
38596
|
+
}
|
|
38597
|
+
return lastIdCounter;
|
|
38598
|
+
}
|
|
38599
|
+
}, {
|
|
38600
|
+
key: "refreshLastIdCounter",
|
|
38601
|
+
value: function refreshLastIdCounter() {
|
|
38602
|
+
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.prefix, "(\\d+)$")), this.definitions.rootElements);
|
|
38603
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, lastIdCounter + 1);
|
|
38604
|
+
}
|
|
38605
|
+
}, {
|
|
38606
|
+
key: "getCounter",
|
|
38607
|
+
value: function getCounter() {
|
|
38608
|
+
this.refreshLastIdCounter();
|
|
38609
|
+
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
38610
|
+
}
|
|
38611
|
+
}, {
|
|
38612
|
+
key: "getDefinitionNumber",
|
|
38613
|
+
value: function getDefinitionNumber() {
|
|
38614
|
+
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
38615
|
+
}
|
|
38616
|
+
}, {
|
|
38617
|
+
key: "updateCounters",
|
|
38618
|
+
value: function updateCounters() {
|
|
38619
|
+
var _NodeIdGenerator$coun, _NodeIdGenerator$coun2, _NodeIdGenerator$diag, _NodeIdGenerator$diag2;
|
|
38620
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun2 = _NodeIdGenerator$coun++, _NodeIdGenerator$coun)), _NodeIdGenerator$coun2;
|
|
38621
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag2 = _NodeIdGenerator$diag++, _NodeIdGenerator$diag)), _NodeIdGenerator$diag2;
|
|
38622
|
+
}
|
|
38623
|
+
}, {
|
|
38624
|
+
key: "refreshLastDiagramIdCounter",
|
|
38625
|
+
value: function refreshLastDiagramIdCounter() {
|
|
38626
|
+
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.prefix, "(\\d+)_di$")), this.definitions.diagrams);
|
|
38627
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, lastIdCounter + 1);
|
|
38628
|
+
}
|
|
38629
|
+
}, {
|
|
38630
|
+
key: "refreshLastProcessIdCounter",
|
|
38631
|
+
value: function refreshLastProcessIdCounter() {
|
|
38632
|
+
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.processPrefix, "(\\d+)$")), this.definitions.rootElements);
|
|
38633
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _processCounter, lastIdCounter + 1);
|
|
38634
|
+
}
|
|
38635
|
+
}, {
|
|
38636
|
+
key: "generate",
|
|
38637
|
+
value: function generate() {
|
|
38638
|
+
var definitionId = _classPrivateFieldGet(this, _generateDefinitionId).call(this);
|
|
38639
|
+
var diagramId = _classPrivateFieldGet(this, _generateDiagramId).call(this);
|
|
38640
|
+
return [definitionId, diagramId];
|
|
38641
|
+
}
|
|
38642
|
+
}, {
|
|
38643
|
+
key: "generateProcessId",
|
|
38644
|
+
value: function generateProcessId() {
|
|
38645
|
+
return _classPrivateFieldGet(this, _generateProcessId).call(this);
|
|
38646
|
+
}
|
|
38647
|
+
}]);
|
|
38648
|
+
return NodeIdGenerator;
|
|
38649
|
+
}(); // Singleton instance
|
|
38650
|
+
_defineProperty(NodeIdGenerator, "prefix", 'node_');
|
|
38651
|
+
_defineProperty(NodeIdGenerator, "processPrefix", 'Process_');
|
|
38652
|
+
var _counter = {
|
|
38653
|
+
writable: true,
|
|
38654
|
+
value: 1
|
|
38655
|
+
};
|
|
38656
|
+
var _diagramCounter = {
|
|
38657
|
+
writable: true,
|
|
38658
|
+
value: 1
|
|
38659
|
+
};
|
|
38660
|
+
var _processCounter = {
|
|
38661
|
+
writable: true,
|
|
38662
|
+
value: 1
|
|
38663
|
+
};
|
|
38664
|
+
|
|
38665
|
+
var singleton = null;
|
|
38666
|
+
function getNodeIdGenerator(definitions) {
|
|
38667
|
+
if (!singleton) {
|
|
38668
|
+
singleton = new NodeIdGenerator(definitions);
|
|
38669
|
+
}
|
|
38670
|
+
return singleton;
|
|
38671
|
+
}
|
|
38407
38672
|
;// CONCATENATED MODULE: ./src/components/nodes/sequenceFlow/index.js
|
|
38408
38673
|
|
|
38409
38674
|
|
|
@@ -38415,6 +38680,10 @@ var sequenceFlow_component = normalizeComponent(
|
|
|
38415
38680
|
|
|
38416
38681
|
|
|
38417
38682
|
|
|
38683
|
+
|
|
38684
|
+
|
|
38685
|
+
|
|
38686
|
+
|
|
38418
38687
|
var sequenceFlow_id = 'processmaker-modeler-sequence-flow';
|
|
38419
38688
|
/* harmony default export */ var nodes_sequenceFlow = ({
|
|
38420
38689
|
id: sequenceFlow_id,
|
|
@@ -38489,7 +38758,30 @@ var sequenceFlow_id = 'processmaker-modeler-sequence-flow';
|
|
|
38489
38758
|
})
|
|
38490
38759
|
}]
|
|
38491
38760
|
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
38492
|
-
}]
|
|
38761
|
+
}],
|
|
38762
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
38763
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
38764
|
+
var paper, sourceElem, targetElem, flow, actualFlow, nodeIdereator;
|
|
38765
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
38766
|
+
while (1) switch (_context.prev = _context.next) {
|
|
38767
|
+
case 0:
|
|
38768
|
+
paper = modeler.paper;
|
|
38769
|
+
sourceElem = modeler.getElementByNodeId(data.sourceRefId);
|
|
38770
|
+
targetElem = modeler.getElementByNodeId(data.targetRefId);
|
|
38771
|
+
if (sourceElem && targetElem) {
|
|
38772
|
+
flow = new SequenceFlow(modeler.nodeRegistry, modeler.moddle, paper);
|
|
38773
|
+
actualFlow = flow.makeFlowNode(sourceElem, targetElem, data.waypoint); // add Nodes
|
|
38774
|
+
modeler.addNode(actualFlow, data.id, true);
|
|
38775
|
+
nodeIdereator = getNodeIdGenerator(modeler.definitions);
|
|
38776
|
+
nodeIdereator.updateCounters();
|
|
38777
|
+
}
|
|
38778
|
+
case 4:
|
|
38779
|
+
case "end":
|
|
38780
|
+
return _context.stop();
|
|
38781
|
+
}
|
|
38782
|
+
}, _callee);
|
|
38783
|
+
}))();
|
|
38784
|
+
}
|
|
38493
38785
|
});
|
|
38494
38786
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
38495
38787
|
var messageFlowvue_type_template_id_2025c58d_render = function render() {
|
|
@@ -38673,6 +38965,10 @@ var messageFlow_config_id = 'processmaker-modeler-message-flow';
|
|
|
38673
38965
|
|
|
38674
38966
|
|
|
38675
38967
|
|
|
38968
|
+
|
|
38969
|
+
|
|
38970
|
+
|
|
38971
|
+
|
|
38676
38972
|
/* harmony default export */ var nodes_messageFlow = ({
|
|
38677
38973
|
id: messageFlow_config_id,
|
|
38678
38974
|
component: messageFlow,
|
|
@@ -38702,7 +38998,30 @@ var messageFlow_config_id = 'processmaker-modeler-message-flow';
|
|
|
38702
38998
|
config: inspectors_nameConfigSettings
|
|
38703
38999
|
}]
|
|
38704
39000
|
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
38705
|
-
}]
|
|
39001
|
+
}],
|
|
39002
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
39003
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
39004
|
+
var paper, sourceElem, targetElem, flow, actualFlow, nodeIdereator;
|
|
39005
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
39006
|
+
while (1) switch (_context.prev = _context.next) {
|
|
39007
|
+
case 0:
|
|
39008
|
+
paper = modeler.paper;
|
|
39009
|
+
sourceElem = modeler.getElementByNodeId(data.sourceRefId);
|
|
39010
|
+
targetElem = modeler.getElementByNodeId(data.targetRefId);
|
|
39011
|
+
if (sourceElem && targetElem) {
|
|
39012
|
+
flow = new MessageFlow(modeler.nodeRegistry, modeler.moddle, paper);
|
|
39013
|
+
actualFlow = flow.makeFlowNode(sourceElem, targetElem, data.waypoint); // add Nodes
|
|
39014
|
+
modeler.addNode(actualFlow, data.id, true);
|
|
39015
|
+
nodeIdereator = getNodeIdGenerator(modeler.definitions);
|
|
39016
|
+
nodeIdereator.updateCounters();
|
|
39017
|
+
}
|
|
39018
|
+
case 4:
|
|
39019
|
+
case "end":
|
|
39020
|
+
return _context.stop();
|
|
39021
|
+
}
|
|
39022
|
+
}, _callee);
|
|
39023
|
+
}))();
|
|
39024
|
+
}
|
|
38706
39025
|
});
|
|
38707
39026
|
// EXTERNAL MODULE: ./node_modules/svg-inline-loader/index.js!./src/assets/message-end-event.svg
|
|
38708
39027
|
var message_end_event = __webpack_require__(18256);
|
|
@@ -39016,8 +39335,6 @@ var MessageSelectvue_type_template_id_395d11da_scoped_true_staticRenderFns = [];
|
|
|
39016
39335
|
|
|
39017
39336
|
;// CONCATENATED MODULE: ./src/components/inspectors/MessageSelect.vue?vue&type=template&id=395d11da&scoped=true&
|
|
39018
39337
|
|
|
39019
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
|
39020
|
-
var es_string_match = __webpack_require__(4723);
|
|
39021
39338
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
|
|
39022
39339
|
var es_array_find_index = __webpack_require__(34553);
|
|
39023
39340
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
@@ -43947,283 +44264,6 @@ var LoopCharacteristics_component = normalizeComponent(
|
|
|
43947
44264
|
/* harmony default export */ var LoopCharacteristics = (LoopCharacteristics_component.exports);
|
|
43948
44265
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
43949
44266
|
var es_object_assign = __webpack_require__(19601);
|
|
43950
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-names.js
|
|
43951
|
-
var es_object_get_own_property_names = __webpack_require__(36210);
|
|
43952
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js
|
|
43953
|
-
|
|
43954
|
-
function _checkPrivateRedeclaration(obj, privateCollection) {
|
|
43955
|
-
if (privateCollection.has(obj)) {
|
|
43956
|
-
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
43957
|
-
}
|
|
43958
|
-
}
|
|
43959
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js
|
|
43960
|
-
|
|
43961
|
-
function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
43962
|
-
_checkPrivateRedeclaration(obj, privateMap);
|
|
43963
|
-
privateMap.set(obj, value);
|
|
43964
|
-
}
|
|
43965
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js
|
|
43966
|
-
function _classApplyDescriptorGet(receiver, descriptor) {
|
|
43967
|
-
if (descriptor.get) {
|
|
43968
|
-
return descriptor.get.call(receiver);
|
|
43969
|
-
}
|
|
43970
|
-
return descriptor.value;
|
|
43971
|
-
}
|
|
43972
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js
|
|
43973
|
-
|
|
43974
|
-
function _classExtractFieldDescriptor(receiver, privateMap, action) {
|
|
43975
|
-
if (!privateMap.has(receiver)) {
|
|
43976
|
-
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
43977
|
-
}
|
|
43978
|
-
return privateMap.get(receiver);
|
|
43979
|
-
}
|
|
43980
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js
|
|
43981
|
-
|
|
43982
|
-
|
|
43983
|
-
function _classPrivateFieldGet(receiver, privateMap) {
|
|
43984
|
-
var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get");
|
|
43985
|
-
return _classApplyDescriptorGet(receiver, descriptor);
|
|
43986
|
-
}
|
|
43987
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js
|
|
43988
|
-
|
|
43989
|
-
function _classCheckPrivateStaticAccess(receiver, classConstructor) {
|
|
43990
|
-
if (receiver !== classConstructor) {
|
|
43991
|
-
throw new TypeError("Private static access of wrong provenance");
|
|
43992
|
-
}
|
|
43993
|
-
}
|
|
43994
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js
|
|
43995
|
-
|
|
43996
|
-
function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
|
|
43997
|
-
if (descriptor === undefined) {
|
|
43998
|
-
throw new TypeError("attempted to " + action + " private static field before its declaration");
|
|
43999
|
-
}
|
|
44000
|
-
}
|
|
44001
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js
|
|
44002
|
-
|
|
44003
|
-
|
|
44004
|
-
|
|
44005
|
-
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
|
|
44006
|
-
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
44007
|
-
_classCheckPrivateStaticFieldDescriptor(descriptor, "get");
|
|
44008
|
-
return _classApplyDescriptorGet(receiver, descriptor);
|
|
44009
|
-
}
|
|
44010
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js
|
|
44011
|
-
|
|
44012
|
-
function _classApplyDescriptorSet(receiver, descriptor, value) {
|
|
44013
|
-
if (descriptor.set) {
|
|
44014
|
-
descriptor.set.call(receiver, value);
|
|
44015
|
-
} else {
|
|
44016
|
-
if (!descriptor.writable) {
|
|
44017
|
-
throw new TypeError("attempted to set read only private field");
|
|
44018
|
-
}
|
|
44019
|
-
descriptor.value = value;
|
|
44020
|
-
}
|
|
44021
|
-
}
|
|
44022
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js
|
|
44023
|
-
|
|
44024
|
-
|
|
44025
|
-
|
|
44026
|
-
function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
|
|
44027
|
-
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
44028
|
-
_classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
|
44029
|
-
_classApplyDescriptorSet(receiver, descriptor, value);
|
|
44030
|
-
return value;
|
|
44031
|
-
}
|
|
44032
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.constructor.js
|
|
44033
|
-
var es_regexp_constructor = __webpack_require__(24603);
|
|
44034
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.dot-all.js
|
|
44035
|
-
var es_regexp_dot_all = __webpack_require__(28450);
|
|
44036
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.sticky.js
|
|
44037
|
-
var es_regexp_sticky = __webpack_require__(88386);
|
|
44038
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
44039
|
-
var es_regexp_to_string = __webpack_require__(39714);
|
|
44040
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.weak-map.js
|
|
44041
|
-
var es_weak_map = __webpack_require__(4129);
|
|
44042
|
-
;// CONCATENATED MODULE: ./src/NodeIdGenerator.js
|
|
44043
|
-
|
|
44044
|
-
|
|
44045
|
-
|
|
44046
|
-
|
|
44047
|
-
|
|
44048
|
-
|
|
44049
|
-
|
|
44050
|
-
|
|
44051
|
-
|
|
44052
|
-
|
|
44053
|
-
|
|
44054
|
-
|
|
44055
|
-
|
|
44056
|
-
|
|
44057
|
-
|
|
44058
|
-
|
|
44059
|
-
|
|
44060
|
-
|
|
44061
|
-
|
|
44062
|
-
|
|
44063
|
-
|
|
44064
|
-
|
|
44065
|
-
var _generateDefinitionId = /*#__PURE__*/new WeakMap();
|
|
44066
|
-
var _generateDiagramId = /*#__PURE__*/new WeakMap();
|
|
44067
|
-
var _generateProcessId = /*#__PURE__*/new WeakMap();
|
|
44068
|
-
var NodeIdGenerator = /*#__PURE__*/function () {
|
|
44069
|
-
function NodeIdGenerator(definitions) {
|
|
44070
|
-
_classCallCheck(this, NodeIdGenerator);
|
|
44071
|
-
_classPrivateFieldInitSpec(this, _generateDefinitionId, {
|
|
44072
|
-
writable: true,
|
|
44073
|
-
value: function value() {
|
|
44074
|
-
var _NodeIdGenerator$coun3, _NodeIdGenerator$coun4;
|
|
44075
|
-
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
44076
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun4 = _NodeIdGenerator$coun3++, _NodeIdGenerator$coun3)), _NodeIdGenerator$coun4;
|
|
44077
|
-
return id;
|
|
44078
|
-
}
|
|
44079
|
-
});
|
|
44080
|
-
_classPrivateFieldInitSpec(this, _generateDiagramId, {
|
|
44081
|
-
writable: true,
|
|
44082
|
-
value: function value() {
|
|
44083
|
-
var _NodeIdGenerator$diag3, _NodeIdGenerator$diag4;
|
|
44084
|
-
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter) + '_di';
|
|
44085
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag4 = _NodeIdGenerator$diag3++, _NodeIdGenerator$diag3)), _NodeIdGenerator$diag4;
|
|
44086
|
-
return id;
|
|
44087
|
-
}
|
|
44088
|
-
});
|
|
44089
|
-
_classPrivateFieldInitSpec(this, _generateProcessId, {
|
|
44090
|
-
writable: true,
|
|
44091
|
-
value: function value() {
|
|
44092
|
-
var _NodeIdGenerator$proc, _NodeIdGenerator$proc2;
|
|
44093
|
-
var id = NodeIdGenerator.processPrefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _processCounter);
|
|
44094
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _processCounter, (_NodeIdGenerator$proc = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _processCounter), _NodeIdGenerator$proc2 = _NodeIdGenerator$proc++, _NodeIdGenerator$proc)), _NodeIdGenerator$proc2;
|
|
44095
|
-
return id;
|
|
44096
|
-
}
|
|
44097
|
-
});
|
|
44098
|
-
this.definitions = definitions;
|
|
44099
|
-
this.refreshLastIdCounter();
|
|
44100
|
-
this.refreshLastDiagramIdCounter();
|
|
44101
|
-
this.refreshLastProcessIdCounter();
|
|
44102
|
-
}
|
|
44103
|
-
_createClass(NodeIdGenerator, [{
|
|
44104
|
-
key: "findById",
|
|
44105
|
-
value: function findById(id) {
|
|
44106
|
-
var _this = this;
|
|
44107
|
-
var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.definitions.rootElements;
|
|
44108
|
-
var walked = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
44109
|
-
if (walked.indexOf(root) > -1) return;
|
|
44110
|
-
var found;
|
|
44111
|
-
if (root instanceof Array) {
|
|
44112
|
-
walked.push(root);
|
|
44113
|
-
root.find(function (item) {
|
|
44114
|
-
return found = _this.findById(id, item, walked);
|
|
44115
|
-
});
|
|
44116
|
-
} else if (root instanceof Object && root.$type) {
|
|
44117
|
-
walked.push(root);
|
|
44118
|
-
if (root.id === id) return root;
|
|
44119
|
-
Object.getOwnPropertyNames(root).find(function (key) {
|
|
44120
|
-
return found = !(root[key] instanceof Function) && key.substring(0, 1) !== '$' && _this.findById(id, root[key], walked);
|
|
44121
|
-
});
|
|
44122
|
-
}
|
|
44123
|
-
return found;
|
|
44124
|
-
}
|
|
44125
|
-
}, {
|
|
44126
|
-
key: "matchIds",
|
|
44127
|
-
value: function matchIds(idRegex, root) {
|
|
44128
|
-
var _this2 = this;
|
|
44129
|
-
var walked = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
44130
|
-
var lastIdCounter = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
44131
|
-
if (walked.indexOf(root) > -1) return lastIdCounter;
|
|
44132
|
-
if (root instanceof Array) {
|
|
44133
|
-
walked.push(root);
|
|
44134
|
-
root.forEach(function (item) {
|
|
44135
|
-
return lastIdCounter = _this2.matchIds(idRegex, item, walked, lastIdCounter);
|
|
44136
|
-
});
|
|
44137
|
-
} else if (root instanceof Object) {
|
|
44138
|
-
walked.push(root);
|
|
44139
|
-
if (root.id) {
|
|
44140
|
-
var match = String(root.id).match(idRegex);
|
|
44141
|
-
var idCounter = match ? parseInt(match[1]) : 0;
|
|
44142
|
-
if (idCounter > lastIdCounter) {
|
|
44143
|
-
lastIdCounter = idCounter;
|
|
44144
|
-
}
|
|
44145
|
-
}
|
|
44146
|
-
Object.getOwnPropertyNames(root).forEach(function (key) {
|
|
44147
|
-
if (!(root[key] instanceof Function) && key.substring(0, 1) !== '$') {
|
|
44148
|
-
lastIdCounter = _this2.matchIds(idRegex, root[key], walked, lastIdCounter);
|
|
44149
|
-
}
|
|
44150
|
-
});
|
|
44151
|
-
}
|
|
44152
|
-
return lastIdCounter;
|
|
44153
|
-
}
|
|
44154
|
-
}, {
|
|
44155
|
-
key: "refreshLastIdCounter",
|
|
44156
|
-
value: function refreshLastIdCounter() {
|
|
44157
|
-
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.prefix, "(\\d+)$")), this.definitions.rootElements);
|
|
44158
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, lastIdCounter + 1);
|
|
44159
|
-
}
|
|
44160
|
-
}, {
|
|
44161
|
-
key: "getCounter",
|
|
44162
|
-
value: function getCounter() {
|
|
44163
|
-
this.refreshLastIdCounter();
|
|
44164
|
-
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
44165
|
-
}
|
|
44166
|
-
}, {
|
|
44167
|
-
key: "getDefinitionNumber",
|
|
44168
|
-
value: function getDefinitionNumber() {
|
|
44169
|
-
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
44170
|
-
}
|
|
44171
|
-
}, {
|
|
44172
|
-
key: "updateCounters",
|
|
44173
|
-
value: function updateCounters() {
|
|
44174
|
-
var _NodeIdGenerator$coun, _NodeIdGenerator$coun2, _NodeIdGenerator$diag, _NodeIdGenerator$diag2;
|
|
44175
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun2 = _NodeIdGenerator$coun++, _NodeIdGenerator$coun)), _NodeIdGenerator$coun2;
|
|
44176
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag2 = _NodeIdGenerator$diag++, _NodeIdGenerator$diag)), _NodeIdGenerator$diag2;
|
|
44177
|
-
}
|
|
44178
|
-
}, {
|
|
44179
|
-
key: "refreshLastDiagramIdCounter",
|
|
44180
|
-
value: function refreshLastDiagramIdCounter() {
|
|
44181
|
-
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.prefix, "(\\d+)_di$")), this.definitions.diagrams);
|
|
44182
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, lastIdCounter + 1);
|
|
44183
|
-
}
|
|
44184
|
-
}, {
|
|
44185
|
-
key: "refreshLastProcessIdCounter",
|
|
44186
|
-
value: function refreshLastProcessIdCounter() {
|
|
44187
|
-
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.processPrefix, "(\\d+)$")), this.definitions.rootElements);
|
|
44188
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _processCounter, lastIdCounter + 1);
|
|
44189
|
-
}
|
|
44190
|
-
}, {
|
|
44191
|
-
key: "generate",
|
|
44192
|
-
value: function generate() {
|
|
44193
|
-
var definitionId = _classPrivateFieldGet(this, _generateDefinitionId).call(this);
|
|
44194
|
-
var diagramId = _classPrivateFieldGet(this, _generateDiagramId).call(this);
|
|
44195
|
-
return [definitionId, diagramId];
|
|
44196
|
-
}
|
|
44197
|
-
}, {
|
|
44198
|
-
key: "generateProcessId",
|
|
44199
|
-
value: function generateProcessId() {
|
|
44200
|
-
return _classPrivateFieldGet(this, _generateProcessId).call(this);
|
|
44201
|
-
}
|
|
44202
|
-
}]);
|
|
44203
|
-
return NodeIdGenerator;
|
|
44204
|
-
}(); // Singleton instance
|
|
44205
|
-
_defineProperty(NodeIdGenerator, "prefix", 'node_');
|
|
44206
|
-
_defineProperty(NodeIdGenerator, "processPrefix", 'Process_');
|
|
44207
|
-
var _counter = {
|
|
44208
|
-
writable: true,
|
|
44209
|
-
value: 1
|
|
44210
|
-
};
|
|
44211
|
-
var _diagramCounter = {
|
|
44212
|
-
writable: true,
|
|
44213
|
-
value: 1
|
|
44214
|
-
};
|
|
44215
|
-
var _processCounter = {
|
|
44216
|
-
writable: true,
|
|
44217
|
-
value: 1
|
|
44218
|
-
};
|
|
44219
|
-
|
|
44220
|
-
var singleton = null;
|
|
44221
|
-
function getNodeIdGenerator(definitions) {
|
|
44222
|
-
if (!singleton) {
|
|
44223
|
-
singleton = new NodeIdGenerator(definitions);
|
|
44224
|
-
}
|
|
44225
|
-
return singleton;
|
|
44226
|
-
}
|
|
44227
44267
|
;// CONCATENATED MODULE: ./src/NodeInspector.js
|
|
44228
44268
|
|
|
44229
44269
|
|
|
@@ -45480,8 +45520,8 @@ var textAnnotation_id = 'processmaker-modeler-text-annotation';
|
|
|
45480
45520
|
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
45481
45521
|
}]
|
|
45482
45522
|
});
|
|
45483
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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=
|
|
45484
|
-
var
|
|
45523
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
45524
|
+
var poolvue_type_template_id_fbed1670_render = function render() {
|
|
45485
45525
|
var _vm = this,
|
|
45486
45526
|
_c = _vm._self._c;
|
|
45487
45527
|
return _c('crown-config', _vm._g({
|
|
@@ -45534,7 +45574,7 @@ var poolvue_type_template_id_294eae13_render = function render() {
|
|
|
45534
45574
|
}
|
|
45535
45575
|
})], 1);
|
|
45536
45576
|
};
|
|
45537
|
-
var
|
|
45577
|
+
var poolvue_type_template_id_fbed1670_staticRenderFns = [];
|
|
45538
45578
|
|
|
45539
45579
|
;// CONCATENATED MODULE: ./src/assets/highlight-shape.svg
|
|
45540
45580
|
var highlight_shape_namespaceObject = __webpack_require__.p + "img/highlight-shape.5f7b1ba9.svg";
|
|
@@ -46180,176 +46220,6 @@ var poolLane_component = normalizeComponent(
|
|
|
46180
46220
|
)
|
|
46181
46221
|
|
|
46182
46222
|
/* harmony default export */ var poolLane = (poolLane_component.exports);
|
|
46183
|
-
;// CONCATENATED MODULE: ./src/components/nodes/poolLane/index.js
|
|
46184
|
-
|
|
46185
|
-
|
|
46186
|
-
|
|
46187
|
-
|
|
46188
|
-
|
|
46189
|
-
/* harmony default export */ var nodes_poolLane = ({
|
|
46190
|
-
id: poolLane_config_id,
|
|
46191
|
-
component: poolLane,
|
|
46192
|
-
bpmnType: 'bpmn:Lane',
|
|
46193
|
-
control: false,
|
|
46194
|
-
category: 'BPMN',
|
|
46195
|
-
label: 'Lane',
|
|
46196
|
-
definition: function definition(moddle) {
|
|
46197
|
-
return moddle.create('bpmn:Lane', {
|
|
46198
|
-
name: ''
|
|
46199
|
-
});
|
|
46200
|
-
},
|
|
46201
|
-
diagram: function diagram(moddle) {
|
|
46202
|
-
return moddle.create('bpmndi:BPMNShape', {
|
|
46203
|
-
bounds: moddle.create('dc:Bounds', {
|
|
46204
|
-
height: 150,
|
|
46205
|
-
width: 600,
|
|
46206
|
-
x: null,
|
|
46207
|
-
y: null
|
|
46208
|
-
})
|
|
46209
|
-
});
|
|
46210
|
-
},
|
|
46211
|
-
inspectorConfig: [{
|
|
46212
|
-
name: 'Lane',
|
|
46213
|
-
items: [{
|
|
46214
|
-
component: 'FormAccordion',
|
|
46215
|
-
container: true,
|
|
46216
|
-
config: {
|
|
46217
|
-
initiallyOpen: true,
|
|
46218
|
-
label: 'Properties',
|
|
46219
|
-
icon: 'cog',
|
|
46220
|
-
name: 'inspector-accordion-pool-lane'
|
|
46221
|
-
},
|
|
46222
|
-
items: [{
|
|
46223
|
-
component: 'FormInput',
|
|
46224
|
-
config: inspectors_nameConfigSettings
|
|
46225
|
-
}]
|
|
46226
|
-
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
46227
|
-
}]
|
|
46228
|
-
});
|
|
46229
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
46230
|
-
var addLaneAboveButtonvue_type_template_id_fc69b4f4_render = function render() {
|
|
46231
|
-
var _vm = this,
|
|
46232
|
-
_c = _vm._self._c;
|
|
46233
|
-
return _c('crown-button', _vm._g({
|
|
46234
|
-
attrs: {
|
|
46235
|
-
"id": "lane-above-button",
|
|
46236
|
-
"aria-label": "Add lane above icon",
|
|
46237
|
-
"width": 25
|
|
46238
|
-
}
|
|
46239
|
-
}, _vm.$listeners), [_c('font-awesome-icon', {
|
|
46240
|
-
attrs: {
|
|
46241
|
-
"icon": ['fpm', 'fa-lane-above']
|
|
46242
|
-
}
|
|
46243
|
-
})], 1);
|
|
46244
|
-
};
|
|
46245
|
-
var addLaneAboveButtonvue_type_template_id_fc69b4f4_staticRenderFns = [];
|
|
46246
|
-
|
|
46247
|
-
;// CONCATENATED MODULE: ./src/assets/lane-above.svg
|
|
46248
|
-
var lane_above_namespaceObject = __webpack_require__.p + "img/lane-above.37ee2b80.svg";
|
|
46249
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
46250
|
-
|
|
46251
|
-
|
|
46252
|
-
|
|
46253
|
-
|
|
46254
|
-
|
|
46255
|
-
/* harmony default export */ var addLaneAboveButtonvue_type_script_lang_js_ = ({
|
|
46256
|
-
components: {
|
|
46257
|
-
CrownButton: crownButton,
|
|
46258
|
-
FontAwesomeIcon: vue_fontawesome_.FontAwesomeIcon
|
|
46259
|
-
},
|
|
46260
|
-
data: function data() {
|
|
46261
|
-
return {
|
|
46262
|
-
laneAboveIcon: lane_above_namespaceObject
|
|
46263
|
-
};
|
|
46264
|
-
},
|
|
46265
|
-
created: function created() {
|
|
46266
|
-
fontawesome_svg_core_.library.add(faLaneAbove);
|
|
46267
|
-
}
|
|
46268
|
-
});
|
|
46269
|
-
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneAboveButton.vue?vue&type=script&lang=js&
|
|
46270
|
-
/* harmony default export */ var crownButtons_addLaneAboveButtonvue_type_script_lang_js_ = (addLaneAboveButtonvue_type_script_lang_js_);
|
|
46271
|
-
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneAboveButton.vue
|
|
46272
|
-
|
|
46273
|
-
|
|
46274
|
-
|
|
46275
|
-
|
|
46276
|
-
|
|
46277
|
-
/* normalize component */
|
|
46278
|
-
;
|
|
46279
|
-
var addLaneAboveButton_component = normalizeComponent(
|
|
46280
|
-
crownButtons_addLaneAboveButtonvue_type_script_lang_js_,
|
|
46281
|
-
addLaneAboveButtonvue_type_template_id_fc69b4f4_render,
|
|
46282
|
-
addLaneAboveButtonvue_type_template_id_fc69b4f4_staticRenderFns,
|
|
46283
|
-
false,
|
|
46284
|
-
null,
|
|
46285
|
-
null,
|
|
46286
|
-
null
|
|
46287
|
-
|
|
46288
|
-
)
|
|
46289
|
-
|
|
46290
|
-
/* harmony default export */ var addLaneAboveButton = (addLaneAboveButton_component.exports);
|
|
46291
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
46292
|
-
var addLaneBelowButtonvue_type_template_id_4b1af748_render = function render() {
|
|
46293
|
-
var _vm = this,
|
|
46294
|
-
_c = _vm._self._c;
|
|
46295
|
-
return _c('crown-button', _vm._g({
|
|
46296
|
-
attrs: {
|
|
46297
|
-
"id": "lane-below-button",
|
|
46298
|
-
"aria-label": "Add lane below icon",
|
|
46299
|
-
"width": 25
|
|
46300
|
-
}
|
|
46301
|
-
}, _vm.$listeners), [_c('font-awesome-icon', {
|
|
46302
|
-
attrs: {
|
|
46303
|
-
"icon": ['fpm', 'fa-lane-below']
|
|
46304
|
-
}
|
|
46305
|
-
})], 1);
|
|
46306
|
-
};
|
|
46307
|
-
var addLaneBelowButtonvue_type_template_id_4b1af748_staticRenderFns = [];
|
|
46308
|
-
|
|
46309
|
-
;// CONCATENATED MODULE: ./src/assets/lane-below.svg
|
|
46310
|
-
var lane_below_namespaceObject = __webpack_require__.p + "img/lane-below.22169670.svg";
|
|
46311
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
46312
|
-
|
|
46313
|
-
|
|
46314
|
-
|
|
46315
|
-
|
|
46316
|
-
|
|
46317
|
-
/* harmony default export */ var addLaneBelowButtonvue_type_script_lang_js_ = ({
|
|
46318
|
-
components: {
|
|
46319
|
-
CrownButton: crownButton,
|
|
46320
|
-
FontAwesomeIcon: vue_fontawesome_.FontAwesomeIcon
|
|
46321
|
-
},
|
|
46322
|
-
data: function data() {
|
|
46323
|
-
return {
|
|
46324
|
-
laneBelowIcon: lane_below_namespaceObject
|
|
46325
|
-
};
|
|
46326
|
-
},
|
|
46327
|
-
created: function created() {
|
|
46328
|
-
fontawesome_svg_core_.library.add(faLaneBelow);
|
|
46329
|
-
}
|
|
46330
|
-
});
|
|
46331
|
-
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneBelowButton.vue?vue&type=script&lang=js&
|
|
46332
|
-
/* harmony default export */ var crownButtons_addLaneBelowButtonvue_type_script_lang_js_ = (addLaneBelowButtonvue_type_script_lang_js_);
|
|
46333
|
-
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneBelowButton.vue
|
|
46334
|
-
|
|
46335
|
-
|
|
46336
|
-
|
|
46337
|
-
|
|
46338
|
-
|
|
46339
|
-
/* normalize component */
|
|
46340
|
-
;
|
|
46341
|
-
var addLaneBelowButton_component = normalizeComponent(
|
|
46342
|
-
crownButtons_addLaneBelowButtonvue_type_script_lang_js_,
|
|
46343
|
-
addLaneBelowButtonvue_type_template_id_4b1af748_render,
|
|
46344
|
-
addLaneBelowButtonvue_type_template_id_4b1af748_staticRenderFns,
|
|
46345
|
-
false,
|
|
46346
|
-
null,
|
|
46347
|
-
null,
|
|
46348
|
-
null
|
|
46349
|
-
|
|
46350
|
-
)
|
|
46351
|
-
|
|
46352
|
-
/* harmony default export */ var addLaneBelowButton = (addLaneBelowButton_component.exports);
|
|
46353
46223
|
;// CONCATENATED MODULE: ./src/components/nodes/pool/poolShape.js
|
|
46354
46224
|
|
|
46355
46225
|
|
|
@@ -46758,6 +46628,227 @@ function configurePool(collaboration, node, graph) {
|
|
|
46758
46628
|
function elementShouldHaveFlowNodeRef(element) {
|
|
46759
46629
|
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;
|
|
46760
46630
|
}
|
|
46631
|
+
;// CONCATENATED MODULE: ./src/components/nodes/poolLane/index.js
|
|
46632
|
+
|
|
46633
|
+
|
|
46634
|
+
|
|
46635
|
+
|
|
46636
|
+
|
|
46637
|
+
|
|
46638
|
+
|
|
46639
|
+
|
|
46640
|
+
|
|
46641
|
+
|
|
46642
|
+
|
|
46643
|
+
|
|
46644
|
+
|
|
46645
|
+
|
|
46646
|
+
|
|
46647
|
+
/* harmony default export */ var nodes_poolLane = ({
|
|
46648
|
+
id: poolLane_config_id,
|
|
46649
|
+
component: poolLane,
|
|
46650
|
+
bpmnType: 'bpmn:Lane',
|
|
46651
|
+
control: false,
|
|
46652
|
+
category: 'BPMN',
|
|
46653
|
+
label: 'Lane',
|
|
46654
|
+
definition: function definition(moddle) {
|
|
46655
|
+
return moddle.create('bpmn:Lane', {
|
|
46656
|
+
name: ''
|
|
46657
|
+
});
|
|
46658
|
+
},
|
|
46659
|
+
diagram: function diagram(moddle) {
|
|
46660
|
+
return moddle.create('bpmndi:BPMNShape', {
|
|
46661
|
+
bounds: moddle.create('dc:Bounds', {
|
|
46662
|
+
height: 150,
|
|
46663
|
+
width: 600,
|
|
46664
|
+
x: null,
|
|
46665
|
+
y: null
|
|
46666
|
+
})
|
|
46667
|
+
});
|
|
46668
|
+
},
|
|
46669
|
+
inspectorConfig: [{
|
|
46670
|
+
name: 'Lane',
|
|
46671
|
+
items: [{
|
|
46672
|
+
component: 'FormAccordion',
|
|
46673
|
+
container: true,
|
|
46674
|
+
config: {
|
|
46675
|
+
initiallyOpen: true,
|
|
46676
|
+
label: 'Properties',
|
|
46677
|
+
icon: 'cog',
|
|
46678
|
+
name: 'inspector-accordion-pool-lane'
|
|
46679
|
+
},
|
|
46680
|
+
items: [{
|
|
46681
|
+
component: 'FormInput',
|
|
46682
|
+
config: inspectors_nameConfigSettings
|
|
46683
|
+
}]
|
|
46684
|
+
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
46685
|
+
}],
|
|
46686
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
46687
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
46688
|
+
var pool, definition, nodeIdereator, diagram, node;
|
|
46689
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
46690
|
+
while (1) switch (_context.prev = _context.next) {
|
|
46691
|
+
case 0:
|
|
46692
|
+
pool = modeler.getElementByNodeId(data.poolId);
|
|
46693
|
+
definition = modeler.moddle.create('bpmn:Lane', {
|
|
46694
|
+
name: data.name
|
|
46695
|
+
});
|
|
46696
|
+
if (!pool.component.laneSet && pool.component.createLaneSet) {
|
|
46697
|
+
pool.component.createLaneSet([data.laneSetId]);
|
|
46698
|
+
/* If there are currently elements in the pool, add them to the first lane */
|
|
46699
|
+
pool.component.shape.getEmbeddedCells().filter(function (element) {
|
|
46700
|
+
return elementShouldHaveFlowNodeRef(element);
|
|
46701
|
+
}).forEach(function (element) {
|
|
46702
|
+
definition.get('flowNodeRef').push(element.component.node.definition);
|
|
46703
|
+
});
|
|
46704
|
+
nodeIdereator = getNodeIdGenerator(modeler.definitions);
|
|
46705
|
+
nodeIdereator.updateCounters();
|
|
46706
|
+
}
|
|
46707
|
+
diagram = modeler.moddle.create('bpmndi:BPMNShape', {
|
|
46708
|
+
bounds: modeler.moddle.create('dc:Bounds', {
|
|
46709
|
+
height: data.height,
|
|
46710
|
+
width: data.width,
|
|
46711
|
+
x: data.x,
|
|
46712
|
+
y: data.y
|
|
46713
|
+
})
|
|
46714
|
+
});
|
|
46715
|
+
node = new Node(data.type, definition, diagram);
|
|
46716
|
+
_context.next = 7;
|
|
46717
|
+
return modeler.addNode(node, data.id, true);
|
|
46718
|
+
case 7:
|
|
46719
|
+
modeler.setShapeStacking(pool.component.shape);
|
|
46720
|
+
case 8:
|
|
46721
|
+
case "end":
|
|
46722
|
+
return _context.stop();
|
|
46723
|
+
}
|
|
46724
|
+
}, _callee);
|
|
46725
|
+
}))();
|
|
46726
|
+
}
|
|
46727
|
+
});
|
|
46728
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
46729
|
+
var addLaneAboveButtonvue_type_template_id_fc69b4f4_render = function render() {
|
|
46730
|
+
var _vm = this,
|
|
46731
|
+
_c = _vm._self._c;
|
|
46732
|
+
return _c('crown-button', _vm._g({
|
|
46733
|
+
attrs: {
|
|
46734
|
+
"id": "lane-above-button",
|
|
46735
|
+
"aria-label": "Add lane above icon",
|
|
46736
|
+
"width": 25
|
|
46737
|
+
}
|
|
46738
|
+
}, _vm.$listeners), [_c('font-awesome-icon', {
|
|
46739
|
+
attrs: {
|
|
46740
|
+
"icon": ['fpm', 'fa-lane-above']
|
|
46741
|
+
}
|
|
46742
|
+
})], 1);
|
|
46743
|
+
};
|
|
46744
|
+
var addLaneAboveButtonvue_type_template_id_fc69b4f4_staticRenderFns = [];
|
|
46745
|
+
|
|
46746
|
+
;// CONCATENATED MODULE: ./src/assets/lane-above.svg
|
|
46747
|
+
var lane_above_namespaceObject = __webpack_require__.p + "img/lane-above.37ee2b80.svg";
|
|
46748
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
46749
|
+
|
|
46750
|
+
|
|
46751
|
+
|
|
46752
|
+
|
|
46753
|
+
|
|
46754
|
+
/* harmony default export */ var addLaneAboveButtonvue_type_script_lang_js_ = ({
|
|
46755
|
+
components: {
|
|
46756
|
+
CrownButton: crownButton,
|
|
46757
|
+
FontAwesomeIcon: vue_fontawesome_.FontAwesomeIcon
|
|
46758
|
+
},
|
|
46759
|
+
data: function data() {
|
|
46760
|
+
return {
|
|
46761
|
+
laneAboveIcon: lane_above_namespaceObject
|
|
46762
|
+
};
|
|
46763
|
+
},
|
|
46764
|
+
created: function created() {
|
|
46765
|
+
fontawesome_svg_core_.library.add(faLaneAbove);
|
|
46766
|
+
}
|
|
46767
|
+
});
|
|
46768
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneAboveButton.vue?vue&type=script&lang=js&
|
|
46769
|
+
/* harmony default export */ var crownButtons_addLaneAboveButtonvue_type_script_lang_js_ = (addLaneAboveButtonvue_type_script_lang_js_);
|
|
46770
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneAboveButton.vue
|
|
46771
|
+
|
|
46772
|
+
|
|
46773
|
+
|
|
46774
|
+
|
|
46775
|
+
|
|
46776
|
+
/* normalize component */
|
|
46777
|
+
;
|
|
46778
|
+
var addLaneAboveButton_component = normalizeComponent(
|
|
46779
|
+
crownButtons_addLaneAboveButtonvue_type_script_lang_js_,
|
|
46780
|
+
addLaneAboveButtonvue_type_template_id_fc69b4f4_render,
|
|
46781
|
+
addLaneAboveButtonvue_type_template_id_fc69b4f4_staticRenderFns,
|
|
46782
|
+
false,
|
|
46783
|
+
null,
|
|
46784
|
+
null,
|
|
46785
|
+
null
|
|
46786
|
+
|
|
46787
|
+
)
|
|
46788
|
+
|
|
46789
|
+
/* harmony default export */ var addLaneAboveButton = (addLaneAboveButton_component.exports);
|
|
46790
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
46791
|
+
var addLaneBelowButtonvue_type_template_id_4b1af748_render = function render() {
|
|
46792
|
+
var _vm = this,
|
|
46793
|
+
_c = _vm._self._c;
|
|
46794
|
+
return _c('crown-button', _vm._g({
|
|
46795
|
+
attrs: {
|
|
46796
|
+
"id": "lane-below-button",
|
|
46797
|
+
"aria-label": "Add lane below icon",
|
|
46798
|
+
"width": 25
|
|
46799
|
+
}
|
|
46800
|
+
}, _vm.$listeners), [_c('font-awesome-icon', {
|
|
46801
|
+
attrs: {
|
|
46802
|
+
"icon": ['fpm', 'fa-lane-below']
|
|
46803
|
+
}
|
|
46804
|
+
})], 1);
|
|
46805
|
+
};
|
|
46806
|
+
var addLaneBelowButtonvue_type_template_id_4b1af748_staticRenderFns = [];
|
|
46807
|
+
|
|
46808
|
+
;// CONCATENATED MODULE: ./src/assets/lane-below.svg
|
|
46809
|
+
var lane_below_namespaceObject = __webpack_require__.p + "img/lane-below.22169670.svg";
|
|
46810
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
46811
|
+
|
|
46812
|
+
|
|
46813
|
+
|
|
46814
|
+
|
|
46815
|
+
|
|
46816
|
+
/* harmony default export */ var addLaneBelowButtonvue_type_script_lang_js_ = ({
|
|
46817
|
+
components: {
|
|
46818
|
+
CrownButton: crownButton,
|
|
46819
|
+
FontAwesomeIcon: vue_fontawesome_.FontAwesomeIcon
|
|
46820
|
+
},
|
|
46821
|
+
data: function data() {
|
|
46822
|
+
return {
|
|
46823
|
+
laneBelowIcon: lane_below_namespaceObject
|
|
46824
|
+
};
|
|
46825
|
+
},
|
|
46826
|
+
created: function created() {
|
|
46827
|
+
fontawesome_svg_core_.library.add(faLaneBelow);
|
|
46828
|
+
}
|
|
46829
|
+
});
|
|
46830
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneBelowButton.vue?vue&type=script&lang=js&
|
|
46831
|
+
/* harmony default export */ var crownButtons_addLaneBelowButtonvue_type_script_lang_js_ = (addLaneBelowButtonvue_type_script_lang_js_);
|
|
46832
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneBelowButton.vue
|
|
46833
|
+
|
|
46834
|
+
|
|
46835
|
+
|
|
46836
|
+
|
|
46837
|
+
|
|
46838
|
+
/* normalize component */
|
|
46839
|
+
;
|
|
46840
|
+
var addLaneBelowButton_component = normalizeComponent(
|
|
46841
|
+
crownButtons_addLaneBelowButtonvue_type_script_lang_js_,
|
|
46842
|
+
addLaneBelowButtonvue_type_template_id_4b1af748_render,
|
|
46843
|
+
addLaneBelowButtonvue_type_template_id_4b1af748_staticRenderFns,
|
|
46844
|
+
false,
|
|
46845
|
+
null,
|
|
46846
|
+
null,
|
|
46847
|
+
null
|
|
46848
|
+
|
|
46849
|
+
)
|
|
46850
|
+
|
|
46851
|
+
/* harmony default export */ var addLaneBelowButton = (addLaneBelowButton_component.exports);
|
|
46761
46852
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
46762
46853
|
|
|
46763
46854
|
|
|
@@ -46872,6 +46963,26 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
46872
46963
|
pull_default()(this.containingProcess.get('flowElements'), elementDefinition);
|
|
46873
46964
|
toPool.component.containingProcess.get('flowElements').push(elementDefinition);
|
|
46874
46965
|
},
|
|
46966
|
+
moveElementRemote: function moveElementRemote(element, toPool) {
|
|
46967
|
+
var elementDefinition = element.component.node.definition;
|
|
46968
|
+
if (this.laneSet) {
|
|
46969
|
+
/* Remove references to the element from the current Lane */
|
|
46970
|
+
var containingLane = this.laneSet.get('lanes').find(function (lane) {
|
|
46971
|
+
return lane.get('flowNodeRef').includes(elementDefinition);
|
|
46972
|
+
});
|
|
46973
|
+
pull_default()(containingLane.get('flowNodeRef'), elementDefinition);
|
|
46974
|
+
}
|
|
46975
|
+
|
|
46976
|
+
/* Remove references to the element from the current process */
|
|
46977
|
+
pull_default()(this.containingProcess.get('flowElements'), elementDefinition);
|
|
46978
|
+
element.component.node.pool = toPool;
|
|
46979
|
+
this.shape.unembed(element);
|
|
46980
|
+
toPool.component.shape.embed(element);
|
|
46981
|
+
if (element.component.node.type !== poolLane_config_id && toPool.component.laneSet) {
|
|
46982
|
+
toPool.component.updateLaneChildren();
|
|
46983
|
+
}
|
|
46984
|
+
this.$emit('set-shape-stacking', element.component.shape);
|
|
46985
|
+
},
|
|
46875
46986
|
moveElement: function moveElement(element, toPool) {
|
|
46876
46987
|
var elementDefinition = element.component.node.definition;
|
|
46877
46988
|
if (this.laneSet) {
|
|
@@ -46891,12 +47002,14 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
46891
47002
|
toPool.component.addToPool(element);
|
|
46892
47003
|
},
|
|
46893
47004
|
addLane: function addLane() {
|
|
46894
|
-
var
|
|
47005
|
+
var _arguments = arguments,
|
|
47006
|
+
_this3 = this;
|
|
46895
47007
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
46896
|
-
var lanes, definition;
|
|
47008
|
+
var emitMultiplayer, lanes, definition;
|
|
46897
47009
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
46898
47010
|
while (1) switch (_context.prev = _context.next) {
|
|
46899
47011
|
case 0:
|
|
47012
|
+
emitMultiplayer = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : true;
|
|
46900
47013
|
/* A Lane element must be contained in a LaneSet element.
|
|
46901
47014
|
* Get the current laneSet element or create a new one. */
|
|
46902
47015
|
lanes = [];
|
|
@@ -46912,39 +47025,60 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
46912
47025
|
lanes.push(_this3.pushNewLane(definition));
|
|
46913
47026
|
}
|
|
46914
47027
|
lanes.push(_this3.pushNewLane());
|
|
46915
|
-
_context.next =
|
|
46916
|
-
return Promise.all(lanes)
|
|
46917
|
-
|
|
47028
|
+
_context.next = 6;
|
|
47029
|
+
return Promise.all(lanes).then(function (val) {
|
|
47030
|
+
if (emitMultiplayer && _this3.$parent.isMultiplayer) {
|
|
47031
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-addLanes', val);
|
|
47032
|
+
}
|
|
47033
|
+
});
|
|
47034
|
+
case 6:
|
|
46918
47035
|
_this3.$emit('set-shape-stacking', _this3.shape);
|
|
46919
47036
|
_this3.graph.getLinks().forEach(function (link) {
|
|
46920
47037
|
_this3.$emit('set-shape-stacking', link);
|
|
46921
47038
|
});
|
|
46922
47039
|
_this3.$emit('save-state');
|
|
46923
|
-
case
|
|
47040
|
+
case 9:
|
|
46924
47041
|
case "end":
|
|
46925
47042
|
return _context.stop();
|
|
46926
47043
|
}
|
|
46927
47044
|
}, _callee);
|
|
46928
47045
|
}))();
|
|
46929
47046
|
},
|
|
46930
|
-
createLaneSet: function createLaneSet() {
|
|
47047
|
+
createLaneSet: function createLaneSet(id) {
|
|
46931
47048
|
var laneSet = this.moddle.create('bpmn:LaneSet');
|
|
46932
47049
|
this.laneSet = laneSet;
|
|
46933
47050
|
var generator = this.nodeIdGenerator;
|
|
46934
|
-
var
|
|
46935
|
-
|
|
46936
|
-
laneSetId =
|
|
47051
|
+
var _ref2 = id !== null && id !== void 0 ? id : generator.generate(),
|
|
47052
|
+
_ref3 = _slicedToArray(_ref2, 1),
|
|
47053
|
+
laneSetId = _ref3[0];
|
|
46937
47054
|
this.laneSet.set('id', laneSetId);
|
|
46938
47055
|
this.containingProcess.get('laneSets').push(laneSet);
|
|
46939
47056
|
},
|
|
46940
47057
|
pushNewLane: function pushNewLane() {
|
|
46941
|
-
var
|
|
46942
|
-
|
|
46943
|
-
|
|
46944
|
-
|
|
46945
|
-
|
|
46946
|
-
|
|
46947
|
-
|
|
47058
|
+
var _arguments2 = arguments,
|
|
47059
|
+
_this4 = this;
|
|
47060
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
47061
|
+
var definition, diagram, node;
|
|
47062
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
47063
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
47064
|
+
case 0:
|
|
47065
|
+
definition = _arguments2.length > 0 && _arguments2[0] !== undefined ? _arguments2[0] : nodes_poolLane.definition(_this4.moddle, _this4.$t);
|
|
47066
|
+
definition.set('color', _this4.node.definition.get('color'));
|
|
47067
|
+
_this4.$emit('set-pool-target', _this4.shape);
|
|
47068
|
+
diagram = nodes_poolLane.diagram(_this4.moddle);
|
|
47069
|
+
diagram.bounds.width = _this4.shape.getBBox().width;
|
|
47070
|
+
node = new Node(nodes_poolLane.id, definition, diagram);
|
|
47071
|
+
_this4.$emit('add-node', node);
|
|
47072
|
+
_context2.next = 9;
|
|
47073
|
+
return _this4.$nextTick();
|
|
47074
|
+
case 9:
|
|
47075
|
+
return _context2.abrupt("return", node);
|
|
47076
|
+
case 10:
|
|
47077
|
+
case "end":
|
|
47078
|
+
return _context2.stop();
|
|
47079
|
+
}
|
|
47080
|
+
}, _callee2);
|
|
47081
|
+
}))();
|
|
46948
47082
|
},
|
|
46949
47083
|
addToPool: function addToPool(element) {
|
|
46950
47084
|
if (element.component.node.isBpmnType('bpmn:BoundaryEvent')) {
|
|
@@ -47097,11 +47231,11 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47097
47231
|
});
|
|
47098
47232
|
},
|
|
47099
47233
|
resizeLanes: function resizeLanes() {
|
|
47100
|
-
var
|
|
47234
|
+
var _this5 = this;
|
|
47101
47235
|
this.sortedLanes().forEach(function (laneShape, index, lanes) {
|
|
47102
|
-
var
|
|
47103
|
-
width =
|
|
47104
|
-
height =
|
|
47236
|
+
var _this5$shape$get = _this5.shape.get('size'),
|
|
47237
|
+
width = _this5$shape$get.width,
|
|
47238
|
+
height = _this5$shape$get.height;
|
|
47105
47239
|
var _laneShape$get = laneShape.get('size'),
|
|
47106
47240
|
laneHeight = _laneShape$get.height;
|
|
47107
47241
|
var _laneShape$position = laneShape.position({
|
|
@@ -47131,17 +47265,17 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47131
47265
|
});
|
|
47132
47266
|
},
|
|
47133
47267
|
captureChildren: function captureChildren() {
|
|
47134
|
-
var
|
|
47135
|
-
this.graph.getElements().filter(function (
|
|
47136
|
-
var component =
|
|
47137
|
-
return component && component !==
|
|
47138
|
-
}).forEach(function (
|
|
47139
|
-
var component =
|
|
47268
|
+
var _this6 = this;
|
|
47269
|
+
this.graph.getElements().filter(function (_ref4) {
|
|
47270
|
+
var component = _ref4.component;
|
|
47271
|
+
return component && component !== _this6;
|
|
47272
|
+
}).forEach(function (_ref5) {
|
|
47273
|
+
var component = _ref5.component;
|
|
47140
47274
|
if (component.node.isBpmnType('bpmn:BoundaryEvent')) {
|
|
47141
47275
|
return;
|
|
47142
47276
|
}
|
|
47143
|
-
|
|
47144
|
-
component.node.pool =
|
|
47277
|
+
_this6.shape.embed(component.shape);
|
|
47278
|
+
component.node.pool = _this6.shape;
|
|
47145
47279
|
});
|
|
47146
47280
|
this.$emit('set-shape-stacking', this.shape);
|
|
47147
47281
|
this.resizePool(this.shape);
|
|
@@ -47156,7 +47290,7 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47156
47290
|
});
|
|
47157
47291
|
},
|
|
47158
47292
|
resizePool: function resizePool(pool) {
|
|
47159
|
-
var
|
|
47293
|
+
var _this7 = this;
|
|
47160
47294
|
this.fitEmbeds();
|
|
47161
47295
|
var _this$shape$get = this.shape.get('size'),
|
|
47162
47296
|
width = _this$shape$get.width,
|
|
@@ -47165,7 +47299,7 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47165
47299
|
this.shape.resize( /* Add labelWidth to ensure elements don't overlap with the pool label */
|
|
47166
47300
|
Math.max(width, bounds.width), Math.max(height, bounds.height));
|
|
47167
47301
|
this.shape.getEmbeddedCells().forEach(function (cell) {
|
|
47168
|
-
|
|
47302
|
+
_this7.expandToFitElement(cell, pool);
|
|
47169
47303
|
});
|
|
47170
47304
|
var _this$shape$position = this.shape.position(),
|
|
47171
47305
|
x = _this$shape$position.x,
|
|
@@ -47179,14 +47313,14 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47179
47313
|
this.node.diagram.bounds.height = newHeight;
|
|
47180
47314
|
},
|
|
47181
47315
|
updateLaneChildren: function updateLaneChildren() {
|
|
47182
|
-
var
|
|
47316
|
+
var _this8 = this;
|
|
47183
47317
|
/* Ensure elements in the pool are added to the lanes they are above */
|
|
47184
47318
|
|
|
47185
47319
|
var newLaneRefs = {};
|
|
47186
47320
|
this.shape.getEmbeddedCells().filter(function (element) {
|
|
47187
|
-
return elementShouldHaveFlowNodeRef(element) && element.component.node.pool ===
|
|
47321
|
+
return elementShouldHaveFlowNodeRef(element) && element.component.node.pool === _this8.shape;
|
|
47188
47322
|
}).forEach(function (element) {
|
|
47189
|
-
var lane =
|
|
47323
|
+
var lane = _this8.graph.findModelsUnderElement(element, {
|
|
47190
47324
|
searchBy: 'center'
|
|
47191
47325
|
}).find(function (element) {
|
|
47192
47326
|
return element.component && element.component.node.type === poolLane_config_id;
|
|
@@ -47210,9 +47344,9 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47210
47344
|
return this.collaboration.get('participants').length > 0;
|
|
47211
47345
|
},
|
|
47212
47346
|
setPoolSize: function setPoolSize(pool) {
|
|
47213
|
-
var
|
|
47347
|
+
var _this9 = this;
|
|
47214
47348
|
pool.getEmbeddedCells().forEach(function (cell) {
|
|
47215
|
-
|
|
47349
|
+
_this9.expandToFitElement(cell, pool);
|
|
47216
47350
|
});
|
|
47217
47351
|
var _pool$position = pool.position(),
|
|
47218
47352
|
x = _pool$position.x,
|
|
@@ -47265,8 +47399,8 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47265
47399
|
;
|
|
47266
47400
|
var pool_component = normalizeComponent(
|
|
47267
47401
|
pool_poolvue_type_script_lang_js_,
|
|
47268
|
-
|
|
47269
|
-
|
|
47402
|
+
poolvue_type_template_id_fbed1670_render,
|
|
47403
|
+
poolvue_type_template_id_fbed1670_staticRenderFns,
|
|
47270
47404
|
false,
|
|
47271
47405
|
null,
|
|
47272
47406
|
null,
|
|
@@ -47549,10 +47683,10 @@ var ValidationStatus_component = normalizeComponent(
|
|
|
47549
47683
|
)
|
|
47550
47684
|
|
|
47551
47685
|
/* harmony default export */ var ValidationStatus = (ValidationStatus_component.exports);
|
|
47552
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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=
|
|
47686
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
47553
47687
|
|
|
47554
47688
|
|
|
47555
|
-
var
|
|
47689
|
+
var Modelervue_type_template_id_95ee0562_render = function render() {
|
|
47556
47690
|
var _vm = this,
|
|
47557
47691
|
_c = _vm._self._c;
|
|
47558
47692
|
return _c('span', {
|
|
@@ -47771,9 +47905,9 @@ var Modelervue_type_template_id_7da49550_render = function render() {
|
|
|
47771
47905
|
}
|
|
47772
47906
|
}) : _vm._e()], 2)], 1);
|
|
47773
47907
|
};
|
|
47774
|
-
var
|
|
47908
|
+
var Modelervue_type_template_id_95ee0562_staticRenderFns = [];
|
|
47775
47909
|
|
|
47776
|
-
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=
|
|
47910
|
+
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=95ee0562&
|
|
47777
47911
|
|
|
47778
47912
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
47779
47913
|
var boundaryEventvue_type_template_id_2979ecac_render = function render() {
|
|
@@ -48365,8 +48499,9 @@ external_vue_default().use(vuex_esm);
|
|
|
48365
48499
|
},
|
|
48366
48500
|
actions: {
|
|
48367
48501
|
getUserPinnedObjects: function getUserPinnedObjects(_ref) {
|
|
48502
|
+
var _window$ProcessMaker, _window$ProcessMaker$;
|
|
48368
48503
|
var commit = _ref.commit;
|
|
48369
|
-
if (
|
|
48504
|
+
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') {
|
|
48370
48505
|
// For standalone version of Modeler
|
|
48371
48506
|
var pinnedNodes = localStorage.pinnedNodes ? JSON.parse(localStorage.pinnedNodes) : [];
|
|
48372
48507
|
pinnedNodes.forEach(function (node) {
|
|
@@ -48386,11 +48521,12 @@ external_vue_default().use(vuex_esm);
|
|
|
48386
48521
|
});
|
|
48387
48522
|
},
|
|
48388
48523
|
addUserPinnedObject: function addUserPinnedObject(_ref3, pinnedNode) {
|
|
48524
|
+
var _window$ProcessMaker2, _window$ProcessMaker3;
|
|
48389
48525
|
var commit = _ref3.commit,
|
|
48390
48526
|
state = _ref3.state;
|
|
48391
48527
|
commit('setPinnedNodes', pinnedNode);
|
|
48392
48528
|
var pinnedNodes = state.pinnedNodeTypes;
|
|
48393
|
-
if (
|
|
48529
|
+
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') {
|
|
48394
48530
|
// For standalone version of Modeler
|
|
48395
48531
|
localStorage.pinnedNodes = JSON.stringify(pinnedNodes);
|
|
48396
48532
|
return;
|
|
@@ -48404,11 +48540,12 @@ external_vue_default().use(vuex_esm);
|
|
|
48404
48540
|
});
|
|
48405
48541
|
},
|
|
48406
48542
|
removeUserPinnedObject: function removeUserPinnedObject(_ref4, nodeToUnpin) {
|
|
48543
|
+
var _window$ProcessMaker4, _window$ProcessMaker5;
|
|
48407
48544
|
var commit = _ref4.commit,
|
|
48408
48545
|
state = _ref4.state;
|
|
48409
48546
|
commit('setUnpinNode', nodeToUnpin);
|
|
48410
48547
|
var pinnedNodes = state.pinnedNodeTypes;
|
|
48411
|
-
if (
|
|
48548
|
+
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') {
|
|
48412
48549
|
// For standalone version of Modeler
|
|
48413
48550
|
localStorage.pinnedNodes = JSON.stringify(pinnedNodes);
|
|
48414
48551
|
return;
|
|
@@ -52068,9 +52205,9 @@ var ValidatePanel_component = normalizeComponent(
|
|
|
52068
52205
|
|
|
52069
52206
|
|
|
52070
52207
|
|
|
52071
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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=
|
|
52208
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
52072
52209
|
|
|
52073
|
-
var
|
|
52210
|
+
var MultiplayerViewUsersvue_type_template_id_7a85ab32_render = function render() {
|
|
52074
52211
|
var _vm = this,
|
|
52075
52212
|
_c = _vm._self._c;
|
|
52076
52213
|
return _c('b-avatar-group', {
|
|
@@ -52086,9 +52223,9 @@ var MultiplayerViewUsersvue_type_template_id_4e79eacd_render = function render()
|
|
|
52086
52223
|
})];
|
|
52087
52224
|
})], 2);
|
|
52088
52225
|
};
|
|
52089
|
-
var
|
|
52226
|
+
var MultiplayerViewUsersvue_type_template_id_7a85ab32_staticRenderFns = [];
|
|
52090
52227
|
|
|
52091
|
-
;// CONCATENATED MODULE: ./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=
|
|
52228
|
+
;// CONCATENATED MODULE: ./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=7a85ab32&
|
|
52092
52229
|
|
|
52093
52230
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
52094
52231
|
var Avatarvue_type_template_id_1c50a604_scoped_true_render = function render() {
|
|
@@ -52281,7 +52418,8 @@ var Avatar_component = normalizeComponent(
|
|
|
52281
52418
|
filteredPlayers: function filteredPlayers() {
|
|
52282
52419
|
var allPlayers = (0,external_lodash_.uniqBy)(this.players, 'name');
|
|
52283
52420
|
return allPlayers.filter(function (player) {
|
|
52284
|
-
|
|
52421
|
+
var _window$ProcessMaker$;
|
|
52422
|
+
return player.name.toLowerCase() !== ((_window$ProcessMaker$ = window.ProcessMaker.user) === null || _window$ProcessMaker$ === void 0 ? void 0 : _window$ProcessMaker$.fullName.toLowerCase());
|
|
52285
52423
|
});
|
|
52286
52424
|
}
|
|
52287
52425
|
}
|
|
@@ -52298,8 +52436,8 @@ var Avatar_component = normalizeComponent(
|
|
|
52298
52436
|
;
|
|
52299
52437
|
var MultiplayerViewUsers_component = normalizeComponent(
|
|
52300
52438
|
multiplayerViewUsers_MultiplayerViewUsersvue_type_script_lang_js_,
|
|
52301
|
-
|
|
52302
|
-
|
|
52439
|
+
MultiplayerViewUsersvue_type_template_id_7a85ab32_render,
|
|
52440
|
+
MultiplayerViewUsersvue_type_template_id_7a85ab32_staticRenderFns,
|
|
52303
52441
|
false,
|
|
52304
52442
|
null,
|
|
52305
52443
|
null,
|
|
@@ -54564,8 +54702,8 @@ var RailBottom_component = normalizeComponent(
|
|
|
54564
54702
|
)
|
|
54565
54703
|
|
|
54566
54704
|
/* harmony default export */ var RailBottom = (RailBottom_component.exports);
|
|
54567
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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=
|
|
54568
|
-
var
|
|
54705
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
54706
|
+
var genericFlowvue_type_template_id_4a213ae8_render = function render() {
|
|
54569
54707
|
var _vm = this,
|
|
54570
54708
|
_c = _vm._self._c;
|
|
54571
54709
|
return _c('crown-config', _vm._g({
|
|
@@ -54584,8 +54722,10 @@ var genericFlowvue_type_template_id_22431668_render = function render() {
|
|
|
54584
54722
|
}
|
|
54585
54723
|
}, _vm.$listeners));
|
|
54586
54724
|
};
|
|
54587
|
-
var
|
|
54725
|
+
var genericFlowvue_type_template_id_4a213ae8_staticRenderFns = [];
|
|
54588
54726
|
|
|
54727
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.to-json.js
|
|
54728
|
+
var web_url_to_json = __webpack_require__(83753);
|
|
54589
54729
|
;// CONCATENATED MODULE: ./src/components/nodes/genericFlow/DataOutputAssociation.js
|
|
54590
54730
|
|
|
54591
54731
|
|
|
@@ -54753,16 +54893,6 @@ var BpmnFlows = [{
|
|
|
54753
54893
|
var flow = new bpmnFlow.factory(this.nodeRegistry, this.moddle, this.paper);
|
|
54754
54894
|
var genericLink = this.shape.findView(this.paper);
|
|
54755
54895
|
var waypoint = [genericLink.sourceAnchor.toJSON(), genericLink.targetAnchor.toJSON()];
|
|
54756
|
-
// Multiplayer hook
|
|
54757
|
-
if (this.$parent.isMultiplayer) {
|
|
54758
|
-
window.ProcessMaker.EventBus.$emit('multiplayer-addFlow', {
|
|
54759
|
-
type: bpmnFlow.type,
|
|
54760
|
-
id: "node_".concat(this.$parent.nodeIdGenerator.getDefinitionNumber()),
|
|
54761
|
-
sourceRefId: this.sourceNode.definition.id,
|
|
54762
|
-
targetRefId: this.targetNode.definition.id,
|
|
54763
|
-
waypoint: waypoint
|
|
54764
|
-
});
|
|
54765
|
-
}
|
|
54766
54896
|
this.$emit('replace-generic-flow', {
|
|
54767
54897
|
actualFlow: flow.makeFlowNode(this.sourceShape, this.target, waypoint),
|
|
54768
54898
|
genericFlow: this.node,
|
|
@@ -54801,8 +54931,8 @@ var BpmnFlows = [{
|
|
|
54801
54931
|
;
|
|
54802
54932
|
var genericFlow_component = normalizeComponent(
|
|
54803
54933
|
genericFlow_genericFlowvue_type_script_lang_js_,
|
|
54804
|
-
|
|
54805
|
-
|
|
54934
|
+
genericFlowvue_type_template_id_4a213ae8_render,
|
|
54935
|
+
genericFlowvue_type_template_id_4a213ae8_staticRenderFns,
|
|
54806
54936
|
false,
|
|
54807
54937
|
null,
|
|
54808
54938
|
null,
|
|
@@ -54811,8 +54941,8 @@ var genericFlow_component = normalizeComponent(
|
|
|
54811
54941
|
)
|
|
54812
54942
|
|
|
54813
54943
|
/* harmony default export */ var genericFlow = (genericFlow_component.exports);
|
|
54814
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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=
|
|
54815
|
-
var
|
|
54944
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
54945
|
+
var Selectionvue_type_template_id_1d953204_scoped_true_render = function render() {
|
|
54816
54946
|
var _vm = this,
|
|
54817
54947
|
_c = _vm._self._c;
|
|
54818
54948
|
return _vm.showLasso && _vm.style ? _c('div', {
|
|
@@ -54842,7 +54972,7 @@ var Selectionvue_type_template_id_423da30e_scoped_true_render = function render(
|
|
|
54842
54972
|
}
|
|
54843
54973
|
}, _vm.$listeners))], 1) : _vm._e();
|
|
54844
54974
|
};
|
|
54845
|
-
var
|
|
54975
|
+
var Selectionvue_type_template_id_1d953204_scoped_true_staticRenderFns = [];
|
|
54846
54976
|
|
|
54847
54977
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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&
|
|
54848
54978
|
|
|
@@ -56349,7 +56479,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56349
56479
|
_this5.overPoolStopDrag();
|
|
56350
56480
|
_this5.updateSelectionBox();
|
|
56351
56481
|
if (_this5.isMultiplayer) {
|
|
56352
|
-
window.ProcessMaker.EventBus.$emit('multiplayer-updateNodes', _this5.getProperties());
|
|
56482
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-updateNodes', _this5.getProperties(_this5.selected));
|
|
56353
56483
|
}
|
|
56354
56484
|
case 9:
|
|
56355
56485
|
case "end":
|
|
@@ -56358,17 +56488,46 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56358
56488
|
}, _callee3);
|
|
56359
56489
|
}))();
|
|
56360
56490
|
},
|
|
56361
|
-
getProperties: function getProperties() {
|
|
56491
|
+
getProperties: function getProperties(shapes) {
|
|
56492
|
+
var _this6 = this;
|
|
56362
56493
|
var changed = [];
|
|
56363
56494
|
var shapesToNotTranslate = ['PoolLane', 'standard.Link', 'processmaker.components.nodes.boundaryEvent.Shape'];
|
|
56364
|
-
|
|
56495
|
+
shapes.filter(function (shape) {
|
|
56365
56496
|
return !shapesToNotTranslate.includes(shape.model.get('type'));
|
|
56366
56497
|
}).forEach(function (shape) {
|
|
56498
|
+
if (shape.model.get('type') === 'processmaker.modeler.bpmn.pool') {
|
|
56499
|
+
var children = shape.model.component.getElementsUnderArea(shape.model, _this6.graph);
|
|
56500
|
+
changed = [].concat(_toConsumableArray(changed), _toConsumableArray(_this6.getContainerProperties(children, changed)));
|
|
56501
|
+
} else {
|
|
56502
|
+
var _node$pool;
|
|
56503
|
+
var node = shape.model.component.node;
|
|
56504
|
+
var defaultData = {
|
|
56505
|
+
id: node.definition.id,
|
|
56506
|
+
properties: {
|
|
56507
|
+
x: shape.model.get('position').x,
|
|
56508
|
+
y: shape.model.get('position').y,
|
|
56509
|
+
height: shape.model.get('size').height,
|
|
56510
|
+
width: shape.model.get('size').width
|
|
56511
|
+
}
|
|
56512
|
+
};
|
|
56513
|
+
if (node !== null && node !== void 0 && (_node$pool = node.pool) !== null && _node$pool !== void 0 && _node$pool.component) {
|
|
56514
|
+
defaultData['poolId'] = node.pool.component.id;
|
|
56515
|
+
}
|
|
56516
|
+
changed.push(defaultData);
|
|
56517
|
+
}
|
|
56518
|
+
});
|
|
56519
|
+
return changed;
|
|
56520
|
+
},
|
|
56521
|
+
getContainerProperties: function getContainerProperties(children) {
|
|
56522
|
+
var changed = [];
|
|
56523
|
+
children.forEach(function (model) {
|
|
56367
56524
|
changed.push({
|
|
56368
|
-
id:
|
|
56525
|
+
id: model.component.node.definition.id,
|
|
56369
56526
|
properties: {
|
|
56370
|
-
|
|
56371
|
-
|
|
56527
|
+
x: model.get('position').x,
|
|
56528
|
+
y: model.get('position').y,
|
|
56529
|
+
height: model.get('size').height,
|
|
56530
|
+
width: model.get('size').width
|
|
56372
56531
|
}
|
|
56373
56532
|
});
|
|
56374
56533
|
});
|
|
@@ -56571,39 +56730,39 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56571
56730
|
* Stop dragging elements that are in a pool
|
|
56572
56731
|
*/
|
|
56573
56732
|
overPoolStopDrag: function overPoolStopDrag() {
|
|
56574
|
-
var
|
|
56733
|
+
var _this7 = this;
|
|
56575
56734
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
56576
56735
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
56577
56736
|
while (1) switch (_context4.prev = _context4.next) {
|
|
56578
56737
|
case 0:
|
|
56579
|
-
if (!
|
|
56738
|
+
if (!_this7.isNotPoolChilds(_this7.selected)) {
|
|
56580
56739
|
_context4.next = 4;
|
|
56581
56740
|
break;
|
|
56582
56741
|
}
|
|
56583
|
-
|
|
56584
|
-
|
|
56742
|
+
_this7.updateFlowsWaypoint();
|
|
56743
|
+
_this7.$emit('save-state');
|
|
56585
56744
|
return _context4.abrupt("return");
|
|
56586
56745
|
case 4:
|
|
56587
|
-
if (
|
|
56588
|
-
|
|
56589
|
-
if (
|
|
56590
|
-
|
|
56591
|
-
|
|
56746
|
+
if (_this7.isOutOfThePool) {
|
|
56747
|
+
_this7.rollbackSelection();
|
|
56748
|
+
if (_this7.invalidPool) {
|
|
56749
|
+
_this7.invalidPool.model.component.shape.attr('body/fill', poolColor);
|
|
56750
|
+
_this7.invalidPool = null;
|
|
56592
56751
|
}
|
|
56593
56752
|
} else {
|
|
56594
|
-
|
|
56595
|
-
if (
|
|
56753
|
+
_this7.updateFlowsWaypoint();
|
|
56754
|
+
if (_this7.newPool) {
|
|
56596
56755
|
/* Remove the shape from its current pool */
|
|
56597
|
-
|
|
56598
|
-
|
|
56599
|
-
|
|
56600
|
-
|
|
56601
|
-
|
|
56602
|
-
|
|
56756
|
+
_this7.moveElements(_this7.selected, _this7.oldPool, _this7.newPool);
|
|
56757
|
+
_this7.moveConectedLinks(_this7.conectedLinks, _this7.oldPool, _this7.newPool);
|
|
56758
|
+
_this7.newPool = null;
|
|
56759
|
+
_this7.oldPool = null;
|
|
56760
|
+
_this7.updateLaneChildren(_this7.selected);
|
|
56761
|
+
_this7.$emit('save-state');
|
|
56603
56762
|
} else {
|
|
56604
|
-
|
|
56605
|
-
|
|
56606
|
-
|
|
56763
|
+
_this7.expandToFitElement(_this7.selected);
|
|
56764
|
+
_this7.updateLaneChildren(_this7.selected);
|
|
56765
|
+
_this7.$emit('save-state');
|
|
56607
56766
|
}
|
|
56608
56767
|
}
|
|
56609
56768
|
case 5:
|
|
@@ -56617,35 +56776,35 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56617
56776
|
* Rollback drag an element outside it's pool parent
|
|
56618
56777
|
*/
|
|
56619
56778
|
rollbackSelection: function rollbackSelection() {
|
|
56620
|
-
var
|
|
56779
|
+
var _this8 = this;
|
|
56621
56780
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
56622
56781
|
var deltaX, deltaY, scale, shapesToNotTranslate;
|
|
56623
56782
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
56624
56783
|
while (1) switch (_context5.prev = _context5.next) {
|
|
56625
56784
|
case 0:
|
|
56626
|
-
deltaX =
|
|
56627
|
-
deltaY =
|
|
56628
|
-
|
|
56629
|
-
|
|
56630
|
-
scale =
|
|
56785
|
+
deltaX = _this8.initialPosition.left - _this8.left;
|
|
56786
|
+
deltaY = _this8.initialPosition.top - _this8.top;
|
|
56787
|
+
_this8.style.left = "".concat(_this8.initialPosition.left, "px");
|
|
56788
|
+
_this8.style.top = "".concat(_this8.initialPosition.top, "px");
|
|
56789
|
+
scale = _this8.paperManager.paper.scale();
|
|
56631
56790
|
shapesToNotTranslate = ['PoolLane', 'standard.Link', 'processmaker.components.nodes.boundaryEvent.Shape'];
|
|
56632
|
-
|
|
56791
|
+
_this8.selected.filter(function (shape) {
|
|
56633
56792
|
return !shapesToNotTranslate.includes(shape.model.get('type'));
|
|
56634
56793
|
}).forEach(function (shape) {
|
|
56635
56794
|
shape.model.translate(deltaX / scale.sx, deltaY / scale.sy);
|
|
56636
56795
|
});
|
|
56637
|
-
|
|
56796
|
+
_this8.isOutOfThePool = false;
|
|
56638
56797
|
_context5.next = 10;
|
|
56639
56798
|
return store.commit('allowSavingElementPosition');
|
|
56640
56799
|
case 10:
|
|
56641
|
-
|
|
56800
|
+
_this8.paperManager.setStateValid();
|
|
56642
56801
|
_context5.next = 13;
|
|
56643
|
-
return
|
|
56802
|
+
return _this8.$nextTick();
|
|
56644
56803
|
case 13:
|
|
56645
56804
|
_context5.next = 15;
|
|
56646
|
-
return
|
|
56805
|
+
return _this8.paperManager.awaitScheduledUpdates();
|
|
56647
56806
|
case 15:
|
|
56648
|
-
|
|
56807
|
+
_this8.updateSelectionBox(true);
|
|
56649
56808
|
case 16:
|
|
56650
56809
|
case "end":
|
|
56651
56810
|
return _context5.stop();
|
|
@@ -56757,9 +56916,9 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56757
56916
|
});
|
|
56758
56917
|
;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=script&lang=js&
|
|
56759
56918
|
/* harmony default export */ var modeler_Selectionvue_type_script_lang_js_ = (Selectionvue_type_script_lang_js_);
|
|
56760
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-55.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-55.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-55.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-55.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=
|
|
56761
|
-
var
|
|
56762
|
-
;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=style&index=0&id=
|
|
56919
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-55.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-55.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-55.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-55.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&
|
|
56920
|
+
var Selectionvue_type_style_index_0_id_1d953204_prod_scoped_true_lang_css_ = __webpack_require__(67491);
|
|
56921
|
+
;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=style&index=0&id=1d953204&prod&scoped=true&lang=css&
|
|
56763
56922
|
|
|
56764
56923
|
;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue
|
|
56765
56924
|
|
|
@@ -56772,11 +56931,11 @@ var Selectionvue_type_style_index_0_id_423da30e_prod_scoped_true_lang_css_ = __w
|
|
|
56772
56931
|
|
|
56773
56932
|
var Selection_component = normalizeComponent(
|
|
56774
56933
|
modeler_Selectionvue_type_script_lang_js_,
|
|
56775
|
-
|
|
56776
|
-
|
|
56934
|
+
Selectionvue_type_template_id_1d953204_scoped_true_render,
|
|
56935
|
+
Selectionvue_type_template_id_1d953204_scoped_true_staticRenderFns,
|
|
56777
56936
|
false,
|
|
56778
56937
|
null,
|
|
56779
|
-
"
|
|
56938
|
+
"1d953204",
|
|
56780
56939
|
null
|
|
56781
56940
|
|
|
56782
56941
|
)
|
|
@@ -75347,22 +75506,6 @@ var Room = /*#__PURE__*/function () {
|
|
|
75347
75506
|
|
|
75348
75507
|
|
|
75349
75508
|
|
|
75350
|
-
|
|
75351
|
-
|
|
75352
|
-
|
|
75353
|
-
var multiplayer_BpmnFlows = [{
|
|
75354
|
-
type: 'processmaker-modeler-text-annotation',
|
|
75355
|
-
factory: DataOutputAssociation
|
|
75356
|
-
}, {
|
|
75357
|
-
type: 'processmaker-modeler-sequence-flow',
|
|
75358
|
-
factory: SequenceFlow
|
|
75359
|
-
}, {
|
|
75360
|
-
type: 'processmaker-modeler-message-flow',
|
|
75361
|
-
factory: MessageFlow
|
|
75362
|
-
}, {
|
|
75363
|
-
type: 'processmaker-modeler-data-input-association',
|
|
75364
|
-
factory: DataOutputAssociation
|
|
75365
|
-
}];
|
|
75366
75509
|
var _nodeIdGenerator = /*#__PURE__*/new WeakMap();
|
|
75367
75510
|
var Multiplayer = /*#__PURE__*/function () {
|
|
75368
75511
|
function Multiplayer(modeler) {
|
|
@@ -75387,22 +75530,25 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75387
75530
|
_createClass(Multiplayer, [{
|
|
75388
75531
|
key: "init",
|
|
75389
75532
|
value: function init() {
|
|
75390
|
-
var
|
|
75533
|
+
var _window$ProcessMaker$,
|
|
75534
|
+
_this = this;
|
|
75391
75535
|
// Get the node id generator
|
|
75392
75536
|
_classPrivateFieldSet(this, _nodeIdGenerator, getNodeIdGenerator(this.modeler.definitions));
|
|
75393
75537
|
// Get the room name from the process id
|
|
75394
|
-
|
|
75538
|
+
var processId = (_window$ProcessMaker$ = window.ProcessMaker.modeler.process.uuid) !== null && _window$ProcessMaker$ !== void 0 ? _window$ProcessMaker$ : window.ProcessMaker.modeler.process.id;
|
|
75539
|
+
this.room = new Room("room-".concat(processId));
|
|
75395
75540
|
|
|
75396
75541
|
// Connect to websocket server
|
|
75397
75542
|
this.clientIO = esm_lookup(window.ProcessMaker.multiplayer.host, {
|
|
75398
75543
|
transports: ['websocket', 'polling']
|
|
75399
75544
|
});
|
|
75400
75545
|
this.clientIO.on('connect', function () {
|
|
75546
|
+
var _window$ProcessMaker$2, _window$ProcessMaker$3;
|
|
75401
75547
|
// Join the room
|
|
75402
75548
|
_this.clientIO.emit('joinRoom', {
|
|
75403
75549
|
roomName: _this.room.getRoom(),
|
|
75404
|
-
clientName: window.ProcessMaker.user.fullName,
|
|
75405
|
-
clientAvatar: window.ProcessMaker.user.avatar
|
|
75550
|
+
clientName: (_window$ProcessMaker$2 = window.ProcessMaker.user) === null || _window$ProcessMaker$2 === void 0 ? void 0 : _window$ProcessMaker$2.fullName,
|
|
75551
|
+
clientAvatar: (_window$ProcessMaker$3 = window.ProcessMaker.user) === null || _window$ProcessMaker$3 === void 0 ? void 0 : _window$ProcessMaker$3.avatar
|
|
75406
75552
|
});
|
|
75407
75553
|
});
|
|
75408
75554
|
this.clientIO.on('clientJoined', function (payload) {
|
|
@@ -75496,14 +75642,14 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75496
75642
|
window.ProcessMaker.EventBus.$on('multiplayer-addFlow', function (data) {
|
|
75497
75643
|
_this.addFlow(data);
|
|
75498
75644
|
});
|
|
75645
|
+
window.ProcessMaker.EventBus.$on('multiplayer-addLanes', function (lanes) {
|
|
75646
|
+
_this.addLaneNodes(lanes);
|
|
75647
|
+
});
|
|
75499
75648
|
}
|
|
75500
75649
|
}, {
|
|
75501
75650
|
key: "addNode",
|
|
75502
75651
|
value: function addNode(data) {
|
|
75503
|
-
// Add the new element to the process
|
|
75504
|
-
this.createShape(data);
|
|
75505
75652
|
// Add the new element to the shared array
|
|
75506
|
-
// this.yArray.push([data]);
|
|
75507
75653
|
var yMapNested = new YMap();
|
|
75508
75654
|
this.doTransact(yMapNested, data);
|
|
75509
75655
|
this.yArray.push([yMapNested]);
|
|
@@ -75515,21 +75661,20 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75515
75661
|
}, {
|
|
75516
75662
|
key: "createShape",
|
|
75517
75663
|
value: function createShape(value) {
|
|
75518
|
-
this.modeler.
|
|
75664
|
+
if (this.modeler.nodeRegistry[value.type] && this.modeler.nodeRegistry[value.type].multiplayerClient) {
|
|
75665
|
+
this.modeler.nodeRegistry[value.type].multiplayerClient(this.modeler, value);
|
|
75666
|
+
} else {
|
|
75667
|
+
this.modeler.addRemoteNode(value);
|
|
75668
|
+
}
|
|
75519
75669
|
_classPrivateFieldGet(this, _nodeIdGenerator).updateCounters();
|
|
75520
75670
|
}
|
|
75521
75671
|
}, {
|
|
75522
75672
|
key: "createRemoteShape",
|
|
75523
75673
|
value: function createRemoteShape(changes) {
|
|
75524
75674
|
var _this2 = this;
|
|
75525
|
-
var flows = ['processmaker-modeler-sequence-flow', 'processmaker-modeler-text-annotation', 'processmaker-modeler-message-flow', 'processmaker-modeler-data-input-association'];
|
|
75526
75675
|
return new Promise(function (resolve) {
|
|
75527
75676
|
changes.map(function (data) {
|
|
75528
|
-
|
|
75529
|
-
_this2.createFlow(data);
|
|
75530
|
-
} else {
|
|
75531
|
-
_this2.createShape(data);
|
|
75532
|
-
}
|
|
75677
|
+
_this2.createShape(data);
|
|
75533
75678
|
});
|
|
75534
75679
|
resolve();
|
|
75535
75680
|
});
|
|
@@ -75538,18 +75683,20 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75538
75683
|
key: "removeNode",
|
|
75539
75684
|
value: function removeNode(data) {
|
|
75540
75685
|
var index = this.getIndex(data.definition.id);
|
|
75541
|
-
|
|
75542
|
-
|
|
75543
|
-
|
|
75544
|
-
|
|
75545
|
-
|
|
75546
|
-
|
|
75547
|
-
|
|
75686
|
+
if (index >= 0) {
|
|
75687
|
+
this.removeShape(data);
|
|
75688
|
+
this.yArray.delete(index, 1); // delete one element
|
|
75689
|
+
// Encode the state as an update and send it to the server
|
|
75690
|
+
var stateUpdate = encodeStateAsUpdate(this.yDoc);
|
|
75691
|
+
// Send the update to the web socket server
|
|
75692
|
+
this.clientIO.emit('removeElement', stateUpdate);
|
|
75693
|
+
}
|
|
75548
75694
|
}
|
|
75549
75695
|
}, {
|
|
75550
75696
|
key: "getIndex",
|
|
75551
75697
|
value: function getIndex(id) {
|
|
75552
75698
|
var index = -1;
|
|
75699
|
+
var found = false;
|
|
75553
75700
|
var _iterator = _createForOfIteratorHelper(this.yArray),
|
|
75554
75701
|
_step;
|
|
75555
75702
|
try {
|
|
@@ -75557,6 +75704,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75557
75704
|
var value = _step.value;
|
|
75558
75705
|
index++;
|
|
75559
75706
|
if (value.get('id') === id) {
|
|
75707
|
+
found = true;
|
|
75560
75708
|
break;
|
|
75561
75709
|
}
|
|
75562
75710
|
}
|
|
@@ -75565,7 +75713,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75565
75713
|
} finally {
|
|
75566
75714
|
_iterator.f();
|
|
75567
75715
|
}
|
|
75568
|
-
return index;
|
|
75716
|
+
return found ? index : -1;
|
|
75569
75717
|
}
|
|
75570
75718
|
}, {
|
|
75571
75719
|
key: "getNodeById",
|
|
@@ -75596,7 +75744,10 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75596
75744
|
data.forEach(function (value) {
|
|
75597
75745
|
var index = _this3.getIndex(value.id);
|
|
75598
75746
|
var nodeToUpdate = _this3.yArray.get(index);
|
|
75599
|
-
|
|
75747
|
+
var updateData = value.poolId ? _objectSpread2(_objectSpread2({}, value.properties), {
|
|
75748
|
+
poolId: value.poolId
|
|
75749
|
+
}) : value.properties;
|
|
75750
|
+
_this3.doTransact(nodeToUpdate, updateData);
|
|
75600
75751
|
});
|
|
75601
75752
|
}
|
|
75602
75753
|
}, {
|
|
@@ -75607,13 +75758,11 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75607
75758
|
var nodeToUpdate = this.yArray.get(index);
|
|
75608
75759
|
// Update the node id in the nodeData
|
|
75609
75760
|
nodeData.id = "node_".concat(_classPrivateFieldGet(this, _nodeIdGenerator).getDefinitionNumber());
|
|
75610
|
-
// Replace the node in the process
|
|
75611
|
-
this.modeler.replaceNodeProcedure(nodeData, true);
|
|
75612
75761
|
// Update the node id generator
|
|
75613
75762
|
_classPrivateFieldGet(this, _nodeIdGenerator).updateCounters();
|
|
75614
75763
|
// Update the node in the shared array
|
|
75615
75764
|
this.yDoc.transact(function () {
|
|
75616
|
-
nodeToUpdate.set('
|
|
75765
|
+
nodeToUpdate.set('type', newControl);
|
|
75617
75766
|
nodeToUpdate.set('id', nodeData.id);
|
|
75618
75767
|
});
|
|
75619
75768
|
|
|
@@ -75627,14 +75776,17 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75627
75776
|
}, {
|
|
75628
75777
|
key: "replaceShape",
|
|
75629
75778
|
value: function replaceShape(updatedNode) {
|
|
75779
|
+
var _this$modeler$paper$l = this.modeler.paper.localToClientPoint(updatedNode),
|
|
75780
|
+
clientX = _this$modeler$paper$l.x,
|
|
75781
|
+
clientY = _this$modeler$paper$l.y;
|
|
75630
75782
|
// Get the node to update
|
|
75631
75783
|
var node = this.getNodeById(updatedNode.oldNodeId);
|
|
75632
75784
|
// Update the node id in the nodeData
|
|
75633
75785
|
var nodeData = {
|
|
75634
|
-
clientX:
|
|
75635
|
-
clientY:
|
|
75786
|
+
clientX: clientX,
|
|
75787
|
+
clientY: clientY,
|
|
75636
75788
|
control: {
|
|
75637
|
-
type: updatedNode.
|
|
75789
|
+
type: updatedNode.type
|
|
75638
75790
|
},
|
|
75639
75791
|
nodeThatWillBeReplaced: node,
|
|
75640
75792
|
id: updatedNode.id
|
|
@@ -75665,37 +75817,45 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75665
75817
|
}
|
|
75666
75818
|
}, {
|
|
75667
75819
|
key: "updateShapes",
|
|
75668
|
-
value: function
|
|
75669
|
-
var
|
|
75670
|
-
|
|
75671
|
-
|
|
75672
|
-
|
|
75673
|
-
|
|
75674
|
-
|
|
75675
|
-
|
|
75676
|
-
|
|
75677
|
-
|
|
75678
|
-
|
|
75679
|
-
|
|
75680
|
-
|
|
75681
|
-
|
|
75682
|
-
|
|
75683
|
-
|
|
75684
|
-
|
|
75685
|
-
|
|
75686
|
-
|
|
75687
|
-
|
|
75688
|
-
|
|
75689
|
-
|
|
75820
|
+
value: function () {
|
|
75821
|
+
var _updateShapes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(data) {
|
|
75822
|
+
var paper, element, newPool;
|
|
75823
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
75824
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
75825
|
+
case 0:
|
|
75826
|
+
paper = this.modeler.paper;
|
|
75827
|
+
element = this.modeler.getElementByNodeId(data.id);
|
|
75828
|
+
newPool = this.modeler.getElementByNodeId(data.poolId); // Update the element's position attribute
|
|
75829
|
+
element.resize( /* Add labelWidth to ensure elements don't overlap with the pool label */
|
|
75830
|
+
data.width, data.height);
|
|
75831
|
+
element.set('position', {
|
|
75832
|
+
x: data.x,
|
|
75833
|
+
y: data.y
|
|
75834
|
+
});
|
|
75835
|
+
// Trigger a rendering of the element on the paper
|
|
75836
|
+
_context2.next = 7;
|
|
75837
|
+
return paper.findViewByModel(element).update();
|
|
75838
|
+
case 7:
|
|
75839
|
+
_context2.next = 9;
|
|
75840
|
+
return element.component.$nextTick();
|
|
75841
|
+
case 9:
|
|
75842
|
+
_context2.next = 11;
|
|
75843
|
+
return this.modeler.paperManager.awaitScheduledUpdates();
|
|
75844
|
+
case 11:
|
|
75845
|
+
if (newPool && element.component.node.pool && element.component.node.pool.component.id !== data.poolId) {
|
|
75846
|
+
element.component.node.pool.component.moveElementRemote(element, newPool);
|
|
75847
|
+
}
|
|
75848
|
+
case 12:
|
|
75849
|
+
case "end":
|
|
75850
|
+
return _context2.stop();
|
|
75690
75851
|
}
|
|
75691
|
-
}
|
|
75692
|
-
}
|
|
75693
|
-
|
|
75694
|
-
|
|
75695
|
-
_iterator2.f();
|
|
75852
|
+
}, _callee2, this);
|
|
75853
|
+
}));
|
|
75854
|
+
function updateShapes(_x2) {
|
|
75855
|
+
return _updateShapes.apply(this, arguments);
|
|
75696
75856
|
}
|
|
75697
|
-
return
|
|
75698
|
-
}
|
|
75857
|
+
return updateShapes;
|
|
75858
|
+
}()
|
|
75699
75859
|
}, {
|
|
75700
75860
|
key: "addFlow",
|
|
75701
75861
|
value: function addFlow(data) {
|
|
@@ -75709,21 +75869,54 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75709
75869
|
_classPrivateFieldGet(this, _nodeIdGenerator).updateCounters();
|
|
75710
75870
|
}
|
|
75711
75871
|
}, {
|
|
75712
|
-
key: "
|
|
75713
|
-
value: function
|
|
75714
|
-
var
|
|
75715
|
-
var
|
|
75716
|
-
|
|
75717
|
-
|
|
75718
|
-
|
|
75719
|
-
|
|
75872
|
+
key: "addLaneNodes",
|
|
75873
|
+
value: function addLaneNodes(lanes) {
|
|
75874
|
+
var _this4 = this;
|
|
75875
|
+
var pool = this.getPool(lanes);
|
|
75876
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-updateNodes', [{
|
|
75877
|
+
id: pool.component.node.definition.id,
|
|
75878
|
+
properties: {
|
|
75879
|
+
x: pool.component.node.diagram.bounds.x,
|
|
75880
|
+
y: pool.component.node.diagram.bounds.y,
|
|
75881
|
+
height: pool.component.node.diagram.bounds.height,
|
|
75882
|
+
width: pool.component.node.diagram.bounds.width,
|
|
75883
|
+
isAddingLaneAbove: pool.isAddingLaneAbove
|
|
75884
|
+
}
|
|
75885
|
+
}]);
|
|
75886
|
+
this.yDoc.transact(function () {
|
|
75887
|
+
lanes.forEach(function (lane) {
|
|
75888
|
+
var yMapNested = new YMap();
|
|
75889
|
+
var data = _this4.prepareLaneData(lane);
|
|
75890
|
+
_this4.doTransact(yMapNested, data);
|
|
75891
|
+
_this4.yArray.push([yMapNested]);
|
|
75892
|
+
var stateUpdate = encodeStateAsUpdate(_this4.yDoc);
|
|
75893
|
+
_this4.clientIO.emit('createElement', stateUpdate);
|
|
75720
75894
|
});
|
|
75721
|
-
|
|
75722
|
-
|
|
75723
|
-
|
|
75724
|
-
|
|
75725
|
-
|
|
75895
|
+
});
|
|
75896
|
+
}
|
|
75897
|
+
}, {
|
|
75898
|
+
key: "prepareLaneData",
|
|
75899
|
+
value: function prepareLaneData(lane) {
|
|
75900
|
+
var data = {
|
|
75901
|
+
type: lane.type,
|
|
75902
|
+
id: lane.definition.id,
|
|
75903
|
+
name: lane.definition.name,
|
|
75904
|
+
x: lane.diagram.bounds.x,
|
|
75905
|
+
y: lane.diagram.bounds.y,
|
|
75906
|
+
width: lane.diagram.bounds.width,
|
|
75907
|
+
height: lane.diagram.bounds.height,
|
|
75908
|
+
poolId: lane.pool.component.node.definition.id,
|
|
75909
|
+
laneSetId: lane.pool.component.laneSet.id
|
|
75910
|
+
};
|
|
75911
|
+
return data;
|
|
75912
|
+
}
|
|
75913
|
+
}, {
|
|
75914
|
+
key: "getPool",
|
|
75915
|
+
value: function getPool(lanes) {
|
|
75916
|
+
if (lanes && lanes.length > 0) {
|
|
75917
|
+
return lanes[0].pool;
|
|
75726
75918
|
}
|
|
75919
|
+
return false;
|
|
75727
75920
|
}
|
|
75728
75921
|
}]);
|
|
75729
75922
|
return Multiplayer;
|
|
@@ -76192,6 +76385,12 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
76192
76385
|
return _this4.paper.findViewByModel(shape);
|
|
76193
76386
|
});
|
|
76194
76387
|
},
|
|
76388
|
+
getElementByNodeId: function getElementByNodeId(id) {
|
|
76389
|
+
var cells = this.paper.model.getCells();
|
|
76390
|
+
return cells.find(function (cell) {
|
|
76391
|
+
return cell.component && cell.component.id === id;
|
|
76392
|
+
});
|
|
76393
|
+
},
|
|
76195
76394
|
close: function close() {
|
|
76196
76395
|
var _this5 = this;
|
|
76197
76396
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
@@ -76856,71 +77055,83 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
76856
77055
|
control: control
|
|
76857
77056
|
});
|
|
76858
77057
|
},
|
|
76859
|
-
|
|
76860
|
-
var
|
|
76861
|
-
clientY = data.clientY,
|
|
76862
|
-
control = data.control;
|
|
76863
|
-
if (this.isMultiplayer) {
|
|
76864
|
-
window.ProcessMaker.EventBus.$emit('multiplayer-addNode', {
|
|
76865
|
-
clientX: clientX,
|
|
76866
|
-
clientY: clientY,
|
|
76867
|
-
control: control,
|
|
76868
|
-
id: "node_".concat(this.nodeIdGenerator.getDefinitionNumber())
|
|
76869
|
-
});
|
|
76870
|
-
} else {
|
|
76871
|
-
this.handleDropProcedure(data);
|
|
76872
|
-
}
|
|
76873
|
-
},
|
|
76874
|
-
handleDropProcedure: function handleDropProcedure(data) {
|
|
76875
|
-
var _arguments4 = arguments,
|
|
76876
|
-
_this26 = this;
|
|
77058
|
+
addRemoteNode: function addRemoteNode(data) {
|
|
77059
|
+
var _this26 = this;
|
|
76877
77060
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
76878
|
-
var
|
|
77061
|
+
var definition, diagram, newNode;
|
|
76879
77062
|
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
76880
77063
|
while (1) switch (_context13.prev = _context13.next) {
|
|
76881
77064
|
case 0:
|
|
76882
|
-
|
|
76883
|
-
|
|
76884
|
-
|
|
77065
|
+
definition = _this26.nodeRegistry[data.type].definition(_this26.moddle, _this26.$t);
|
|
77066
|
+
diagram = _this26.nodeRegistry[data.type].diagram(_this26.moddle);
|
|
77067
|
+
diagram.bounds.x = data.x;
|
|
77068
|
+
diagram.bounds.y = data.y;
|
|
77069
|
+
newNode = _this26.createNode(data.type, definition, diagram);
|
|
77070
|
+
_context13.next = 7;
|
|
77071
|
+
return _this26.addNode(newNode, data.id, true);
|
|
77072
|
+
case 7:
|
|
77073
|
+
_context13.next = 9;
|
|
77074
|
+
return _this26.$nextTick();
|
|
77075
|
+
case 9:
|
|
77076
|
+
_context13.next = 11;
|
|
77077
|
+
return _this26.paperManager.awaitScheduledUpdates();
|
|
77078
|
+
case 11:
|
|
77079
|
+
if (_this26.autoValidate) {
|
|
77080
|
+
_this26.validateBpmnDiagram();
|
|
77081
|
+
}
|
|
77082
|
+
case 12:
|
|
77083
|
+
case "end":
|
|
77084
|
+
return _context13.stop();
|
|
77085
|
+
}
|
|
77086
|
+
}, _callee13);
|
|
77087
|
+
}))();
|
|
77088
|
+
},
|
|
77089
|
+
handleDrop: function handleDrop(data) {
|
|
77090
|
+
var _this27 = this;
|
|
77091
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
|
|
77092
|
+
var clientX, clientY, control, nodeThatWillBeReplaced, definition, diagram, _this27$paperManager$, x, y, newNode, nodeMigrator;
|
|
77093
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
77094
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
77095
|
+
case 0:
|
|
77096
|
+
clientX = data.clientX, clientY = data.clientY, control = data.control, nodeThatWillBeReplaced = data.nodeThatWillBeReplaced;
|
|
77097
|
+
_this27.validateDropTarget({
|
|
76885
77098
|
clientX: clientX,
|
|
76886
77099
|
clientY: clientY,
|
|
76887
77100
|
control: control
|
|
76888
77101
|
});
|
|
76889
|
-
if (
|
|
76890
|
-
|
|
77102
|
+
if (_this27.allowDrop) {
|
|
77103
|
+
_context14.next = 4;
|
|
76891
77104
|
break;
|
|
76892
77105
|
}
|
|
76893
|
-
return
|
|
76894
|
-
case
|
|
76895
|
-
definition =
|
|
76896
|
-
diagram =
|
|
76897
|
-
|
|
77106
|
+
return _context14.abrupt("return");
|
|
77107
|
+
case 4:
|
|
77108
|
+
definition = _this27.nodeRegistry[control.type].definition(_this27.moddle, _this27.$t);
|
|
77109
|
+
diagram = _this27.nodeRegistry[control.type].diagram(_this27.moddle);
|
|
77110
|
+
_this27$paperManager$ = _this27.paperManager.clientToGridPoint(clientX, clientY), x = _this27$paperManager$.x, y = _this27$paperManager$.y;
|
|
76898
77111
|
diagram.bounds.x = x;
|
|
76899
77112
|
diagram.bounds.y = y;
|
|
76900
|
-
newNode =
|
|
77113
|
+
newNode = _this27.createNode(control.type, definition, diagram);
|
|
76901
77114
|
if (newNode.isBpmnType('bpmn:BoundaryEvent')) {
|
|
76902
|
-
|
|
77115
|
+
_this27.setShapeCenterUnderCursor(diagram);
|
|
76903
77116
|
}
|
|
76904
|
-
|
|
76905
|
-
|
|
76906
|
-
|
|
76907
|
-
|
|
76908
|
-
return _this26.addNode(newNode, id, selected);
|
|
76909
|
-
case 15:
|
|
77117
|
+
_this27.highlightNode(newNode);
|
|
77118
|
+
_context14.next = 14;
|
|
77119
|
+
return _this27.addNode(newNode);
|
|
77120
|
+
case 14:
|
|
76910
77121
|
if (nodeThatWillBeReplaced) {
|
|
76911
|
-
|
|
77122
|
+
_context14.next = 16;
|
|
76912
77123
|
break;
|
|
76913
77124
|
}
|
|
76914
|
-
return
|
|
76915
|
-
case
|
|
76916
|
-
nodeMigrator = new NodeMigrator(nodeThatWillBeReplaced, definition,
|
|
77125
|
+
return _context14.abrupt("return");
|
|
77126
|
+
case 16:
|
|
77127
|
+
nodeMigrator = new NodeMigrator(nodeThatWillBeReplaced, definition, _this27.graph, newNode, _this27.processes, _this27.collaboration);
|
|
76917
77128
|
nodeMigrator.migrate();
|
|
76918
|
-
return
|
|
76919
|
-
case
|
|
77129
|
+
return _context14.abrupt("return", newNode);
|
|
77130
|
+
case 19:
|
|
76920
77131
|
case "end":
|
|
76921
|
-
return
|
|
77132
|
+
return _context14.stop();
|
|
76922
77133
|
}
|
|
76923
|
-
},
|
|
77134
|
+
}, _callee14);
|
|
76924
77135
|
}))();
|
|
76925
77136
|
},
|
|
76926
77137
|
setShapeCenterUnderCursor: function setShapeCenterUnderCursor(diagram) {
|
|
@@ -76928,236 +77139,273 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
76928
77139
|
diagram.bounds.y -= diagram.bounds.height / 2;
|
|
76929
77140
|
},
|
|
76930
77141
|
selectNewNode: function selectNewNode(node) {
|
|
76931
|
-
var
|
|
76932
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77142
|
+
var _this28 = this;
|
|
77143
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
|
|
76933
77144
|
var newNodeComponent, view;
|
|
76934
|
-
return _regeneratorRuntime().wrap(function
|
|
76935
|
-
while (1) switch (
|
|
77145
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
77146
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
76936
77147
|
case 0:
|
|
76937
|
-
|
|
76938
|
-
return
|
|
77148
|
+
_context15.next = 2;
|
|
77149
|
+
return _this28.$nextTick();
|
|
76939
77150
|
case 2:
|
|
76940
|
-
|
|
76941
|
-
return
|
|
77151
|
+
_context15.next = 4;
|
|
77152
|
+
return _this28.paperManager.awaitScheduledUpdates();
|
|
76942
77153
|
case 4:
|
|
76943
|
-
newNodeComponent =
|
|
77154
|
+
newNodeComponent = _this28.$refs.nodeComponent.find(function (component) {
|
|
76944
77155
|
return component.node === node;
|
|
76945
77156
|
});
|
|
76946
77157
|
view = newNodeComponent.shapeView;
|
|
76947
|
-
|
|
76948
|
-
return
|
|
77158
|
+
_context15.next = 8;
|
|
77159
|
+
return _this28.$refs.selector.selectElement(view);
|
|
76949
77160
|
case 8:
|
|
76950
77161
|
case "end":
|
|
76951
|
-
return
|
|
77162
|
+
return _context15.stop();
|
|
76952
77163
|
}
|
|
76953
|
-
},
|
|
77164
|
+
}, _callee15);
|
|
76954
77165
|
}))();
|
|
76955
77166
|
},
|
|
77167
|
+
multiplayerHook: function multiplayerHook(node, fromClient) {
|
|
77168
|
+
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'];
|
|
77169
|
+
var flowTypes = ['processmaker-modeler-sequence-flow', 'processmaker-modeler-message-flow'];
|
|
77170
|
+
if (!this.isMultiplayer) {
|
|
77171
|
+
return;
|
|
77172
|
+
}
|
|
77173
|
+
if (!fromClient) {
|
|
77174
|
+
if (!blackList.includes(node.type) && !flowTypes.includes(node.type)) {
|
|
77175
|
+
var _node$pool;
|
|
77176
|
+
var defaultData = {
|
|
77177
|
+
x: node.diagram.bounds.x,
|
|
77178
|
+
y: node.diagram.bounds.y,
|
|
77179
|
+
height: node.diagram.bounds.height,
|
|
77180
|
+
width: node.diagram.bounds.width,
|
|
77181
|
+
type: node.type,
|
|
77182
|
+
id: node.definition.id,
|
|
77183
|
+
isAddingLaneAbove: true
|
|
77184
|
+
};
|
|
77185
|
+
if (node !== null && node !== void 0 && (_node$pool = node.pool) !== null && _node$pool !== void 0 && _node$pool.component) {
|
|
77186
|
+
defaultData['poolId'] = node.pool.component.id;
|
|
77187
|
+
}
|
|
77188
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-addNode', defaultData);
|
|
77189
|
+
}
|
|
77190
|
+
if (flowTypes.includes(node.type)) {
|
|
77191
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-addFlow', {
|
|
77192
|
+
id: node.definition.id,
|
|
77193
|
+
type: node.type,
|
|
77194
|
+
sourceRefId: node.definition.sourceRef.id,
|
|
77195
|
+
targetRefId: node.definition.targetRef.id,
|
|
77196
|
+
waypoint: node.diagram.waypoint
|
|
77197
|
+
});
|
|
77198
|
+
}
|
|
77199
|
+
}
|
|
77200
|
+
},
|
|
76956
77201
|
addNode: function addNode(node) {
|
|
76957
|
-
var
|
|
76958
|
-
|
|
76959
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
76960
|
-
var id,
|
|
76961
|
-
return _regeneratorRuntime().wrap(function
|
|
76962
|
-
while (1) switch (
|
|
77202
|
+
var _arguments4 = arguments,
|
|
77203
|
+
_this29 = this;
|
|
77204
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
|
|
77205
|
+
var id, fromClient, targetProcess;
|
|
77206
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
77207
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
76963
77208
|
case 0:
|
|
76964
|
-
id =
|
|
76965
|
-
|
|
77209
|
+
id = _arguments4.length > 1 && _arguments4[1] !== undefined ? _arguments4[1] : null;
|
|
77210
|
+
fromClient = _arguments4.length > 2 && _arguments4[2] !== undefined ? _arguments4[2] : false;
|
|
76966
77211
|
if (!node.pool) {
|
|
76967
|
-
node.pool =
|
|
77212
|
+
node.pool = _this29.poolTarget;
|
|
76968
77213
|
}
|
|
76969
|
-
targetProcess = node.getTargetProcess(
|
|
77214
|
+
targetProcess = node.getTargetProcess(_this29.processes, _this29.processNode);
|
|
76970
77215
|
addNodeToProcess(node, targetProcess);
|
|
76971
|
-
node.setIds(
|
|
76972
|
-
|
|
77216
|
+
node.setIds(_this29.nodeIdGenerator, id);
|
|
77217
|
+
_this29.planeElements.push(node.diagram);
|
|
77218
|
+
// add multiplayer logic as a hook
|
|
77219
|
+
_this29.multiplayerHook(node, fromClient);
|
|
76973
77220
|
store.commit('addNode', node);
|
|
76974
|
-
|
|
77221
|
+
_this29.poolTarget = null;
|
|
76975
77222
|
|
|
76976
77223
|
// add processmaker-modeler-generic-flow
|
|
76977
77224
|
if (![sequenceFlow_id, poolLane_config_id, association_id, messageFlow_config_id, config_id, dataInputAssociation_config_id, genericFlow_config_id].includes(node.type)) {
|
|
76978
|
-
|
|
77225
|
+
_context16.next = 12;
|
|
76979
77226
|
break;
|
|
76980
77227
|
}
|
|
76981
|
-
return
|
|
76982
|
-
case
|
|
76983
|
-
if (
|
|
77228
|
+
return _context16.abrupt("return");
|
|
77229
|
+
case 12:
|
|
77230
|
+
if (!fromClient) {
|
|
76984
77231
|
// Select the node after it has been added to the store (does not apply to flows)
|
|
76985
|
-
|
|
77232
|
+
_this29.selectNewNode(node);
|
|
76986
77233
|
}
|
|
76987
|
-
return
|
|
77234
|
+
return _context16.abrupt("return", new Promise(function (resolve) {
|
|
76988
77235
|
setTimeout(function () {
|
|
76989
|
-
|
|
77236
|
+
_this29.pushToUndoStack();
|
|
76990
77237
|
resolve();
|
|
76991
77238
|
});
|
|
76992
77239
|
}));
|
|
76993
|
-
case
|
|
77240
|
+
case 14:
|
|
76994
77241
|
case "end":
|
|
76995
|
-
return
|
|
77242
|
+
return _context16.stop();
|
|
76996
77243
|
}
|
|
76997
|
-
},
|
|
77244
|
+
}, _callee16);
|
|
76998
77245
|
}))();
|
|
76999
77246
|
},
|
|
77000
77247
|
addClonedNodes: function addClonedNodes(nodes) {
|
|
77001
|
-
var
|
|
77002
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77003
|
-
return _regeneratorRuntime().wrap(function
|
|
77004
|
-
while (1) switch (
|
|
77248
|
+
var _this30 = this;
|
|
77249
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
|
|
77250
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
77251
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
77005
77252
|
case 0:
|
|
77006
77253
|
nodes.forEach(function (node) {
|
|
77007
77254
|
if (!node.pool) {
|
|
77008
|
-
node.pool =
|
|
77255
|
+
node.pool = _this30.poolTarget;
|
|
77009
77256
|
}
|
|
77010
|
-
var targetProcess = node.getTargetProcess(
|
|
77257
|
+
var targetProcess = node.getTargetProcess(_this30.processes, _this30.processNode);
|
|
77011
77258
|
addNodeToProcess(node, targetProcess);
|
|
77012
|
-
|
|
77259
|
+
_this30.planeElements.push(node.diagram);
|
|
77260
|
+
_this30.multiplayerHook(node, false);
|
|
77013
77261
|
store.commit('addNode', node);
|
|
77014
|
-
|
|
77262
|
+
_this30.poolTarget = null;
|
|
77015
77263
|
});
|
|
77016
77264
|
case 1:
|
|
77017
77265
|
case "end":
|
|
77018
|
-
return
|
|
77266
|
+
return _context17.stop();
|
|
77019
77267
|
}
|
|
77020
|
-
},
|
|
77268
|
+
}, _callee17);
|
|
77021
77269
|
}))();
|
|
77022
77270
|
},
|
|
77023
77271
|
removeNode: function removeNode(node, options) {
|
|
77024
|
-
var
|
|
77025
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77026
|
-
return _regeneratorRuntime().wrap(function
|
|
77027
|
-
while (1) switch (
|
|
77272
|
+
var _this31 = this;
|
|
77273
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
|
|
77274
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
77275
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
77028
77276
|
case 0:
|
|
77029
77277
|
// Check if the node is not replaced
|
|
77030
|
-
if (
|
|
77278
|
+
if (_this31.isMultiplayer && !(options !== null && options !== void 0 && options.isReplaced)) {
|
|
77031
77279
|
// Emit event to server to remove node
|
|
77032
77280
|
window.ProcessMaker.EventBus.$emit('multiplayer-removeNode', node);
|
|
77033
77281
|
}
|
|
77034
|
-
|
|
77282
|
+
_this31.removeNodeProcedure(node, options);
|
|
77035
77283
|
case 2:
|
|
77036
77284
|
case "end":
|
|
77037
|
-
return
|
|
77285
|
+
return _context18.stop();
|
|
77038
77286
|
}
|
|
77039
|
-
},
|
|
77287
|
+
}, _callee18);
|
|
77040
77288
|
}))();
|
|
77041
77289
|
},
|
|
77042
77290
|
removeNodeProcedure: function removeNodeProcedure(node) {
|
|
77043
|
-
var
|
|
77044
|
-
|
|
77045
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77291
|
+
var _arguments5 = arguments,
|
|
77292
|
+
_this32 = this;
|
|
77293
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
|
|
77046
77294
|
var _ref6, _ref6$removeRelations, removeRelationships;
|
|
77047
|
-
return _regeneratorRuntime().wrap(function
|
|
77048
|
-
while (1) switch (
|
|
77295
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
77296
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
77049
77297
|
case 0:
|
|
77050
|
-
_ref6 =
|
|
77298
|
+
_ref6 = _arguments5.length > 1 && _arguments5[1] !== undefined ? _arguments5[1] : {}, _ref6$removeRelations = _ref6.removeRelationships, removeRelationships = _ref6$removeRelations === void 0 ? true : _ref6$removeRelations;
|
|
77051
77299
|
if (node) {
|
|
77052
|
-
|
|
77300
|
+
_context19.next = 3;
|
|
77053
77301
|
break;
|
|
77054
77302
|
}
|
|
77055
|
-
return
|
|
77303
|
+
return _context19.abrupt("return");
|
|
77056
77304
|
case 3:
|
|
77057
77305
|
if (removeRelationships) {
|
|
77058
|
-
removeNodeFlows(node,
|
|
77059
|
-
removeNodeMessageFlows(node,
|
|
77060
|
-
removeNodeAssociations(node,
|
|
77306
|
+
removeNodeFlows(node, _this32);
|
|
77307
|
+
removeNodeMessageFlows(node, _this32);
|
|
77308
|
+
removeNodeAssociations(node, _this32);
|
|
77061
77309
|
}
|
|
77062
77310
|
removeOutgoingAndIncomingRefsToFlow(node);
|
|
77063
|
-
removeBoundaryEvents(
|
|
77311
|
+
removeBoundaryEvents(_this32.graph, node, _this32.removeNode);
|
|
77064
77312
|
removeSourceDefault(node);
|
|
77065
|
-
|
|
77066
|
-
|
|
77313
|
+
_this32.removeNodesFromLane(node);
|
|
77314
|
+
_this32.removeNodesFromPool(node);
|
|
77067
77315
|
store.commit('removeNode', node);
|
|
77068
|
-
store.commit('highlightNode',
|
|
77069
|
-
|
|
77070
|
-
|
|
77071
|
-
return
|
|
77316
|
+
store.commit('highlightNode', _this32.processNode);
|
|
77317
|
+
_this32.$refs.selector.clearSelection();
|
|
77318
|
+
_context19.next = 14;
|
|
77319
|
+
return _this32.$nextTick();
|
|
77072
77320
|
case 14:
|
|
77073
|
-
|
|
77074
|
-
return
|
|
77321
|
+
_context19.next = 16;
|
|
77322
|
+
return _this32.pushToUndoStack();
|
|
77075
77323
|
case 16:
|
|
77076
77324
|
// force to update the processNode property in every delete
|
|
77077
|
-
|
|
77078
|
-
if (
|
|
77079
|
-
|
|
77080
|
-
return diagram.bpmnElement.id ===
|
|
77325
|
+
_this32.processes = _this32.getProcesses();
|
|
77326
|
+
if (_this32.processes && _this32.processes.length > 0) {
|
|
77327
|
+
_this32.processNode = new Node('processmaker-modeler-process', _this32.processes[0], _this32.planeElements.find(function (diagram) {
|
|
77328
|
+
return diagram.bpmnElement.id === _this32.processes[0].id;
|
|
77081
77329
|
}));
|
|
77082
77330
|
}
|
|
77083
77331
|
case 18:
|
|
77084
77332
|
case "end":
|
|
77085
|
-
return
|
|
77333
|
+
return _context19.stop();
|
|
77086
77334
|
}
|
|
77087
|
-
},
|
|
77335
|
+
}, _callee19);
|
|
77088
77336
|
}))();
|
|
77089
77337
|
},
|
|
77090
77338
|
removeNodes: function removeNodes() {
|
|
77091
|
-
var
|
|
77092
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77093
|
-
return _regeneratorRuntime().wrap(function
|
|
77094
|
-
while (1) switch (
|
|
77339
|
+
var _this33 = this;
|
|
77340
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
|
|
77341
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
77342
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
77095
77343
|
case 0:
|
|
77096
|
-
|
|
77097
|
-
return
|
|
77098
|
-
return _regeneratorRuntime().wrap(function
|
|
77099
|
-
while (1) switch (
|
|
77344
|
+
_context22.next = 2;
|
|
77345
|
+
return _this33.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
|
|
77346
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
77347
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
77100
77348
|
case 0:
|
|
77101
|
-
|
|
77102
|
-
return
|
|
77349
|
+
_context21.next = 2;
|
|
77350
|
+
return _this33.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
|
|
77103
77351
|
var waitPromises;
|
|
77104
|
-
return _regeneratorRuntime().wrap(function
|
|
77105
|
-
while (1) switch (
|
|
77352
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
77353
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
77106
77354
|
case 0:
|
|
77107
77355
|
waitPromises = [];
|
|
77108
|
-
|
|
77109
|
-
return waitPromises.push(
|
|
77356
|
+
_this33.highlightedNodes.forEach(function (node) {
|
|
77357
|
+
return waitPromises.push(_this33.removeNode(node, {
|
|
77110
77358
|
removeRelationships: true
|
|
77111
77359
|
}));
|
|
77112
77360
|
});
|
|
77113
|
-
|
|
77361
|
+
_context20.next = 4;
|
|
77114
77362
|
return Promise.all(waitPromises);
|
|
77115
77363
|
case 4:
|
|
77116
77364
|
store.commit('highlightNode');
|
|
77117
77365
|
case 5:
|
|
77118
77366
|
case "end":
|
|
77119
|
-
return
|
|
77367
|
+
return _context20.stop();
|
|
77120
77368
|
}
|
|
77121
|
-
},
|
|
77369
|
+
}, _callee20);
|
|
77122
77370
|
})));
|
|
77123
77371
|
case 2:
|
|
77124
77372
|
case "end":
|
|
77125
|
-
return
|
|
77373
|
+
return _context21.stop();
|
|
77126
77374
|
}
|
|
77127
|
-
},
|
|
77375
|
+
}, _callee21);
|
|
77128
77376
|
})));
|
|
77129
77377
|
case 2:
|
|
77130
77378
|
case "end":
|
|
77131
|
-
return
|
|
77379
|
+
return _context22.stop();
|
|
77132
77380
|
}
|
|
77133
|
-
},
|
|
77381
|
+
}, _callee22);
|
|
77134
77382
|
}))();
|
|
77135
77383
|
},
|
|
77136
77384
|
replaceNode: function replaceNode(_ref9) {
|
|
77137
|
-
var
|
|
77385
|
+
var _this34 = this;
|
|
77138
77386
|
var node = _ref9.node,
|
|
77139
77387
|
typeToReplaceWith = _ref9.typeToReplaceWith;
|
|
77140
|
-
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77141
|
-
return _regeneratorRuntime().wrap(function
|
|
77142
|
-
while (1) switch (
|
|
77388
|
+
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
|
|
77389
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
77390
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
77143
77391
|
case 0:
|
|
77144
|
-
|
|
77145
|
-
return
|
|
77146
|
-
var
|
|
77147
|
-
return _regeneratorRuntime().wrap(function
|
|
77148
|
-
while (1) switch (
|
|
77392
|
+
_context24.next = 2;
|
|
77393
|
+
return _this34.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
|
|
77394
|
+
var _node$diagram$bounds, x, y, nodeData, nodeTypes, newControl;
|
|
77395
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
77396
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
77149
77397
|
case 0:
|
|
77150
|
-
|
|
77398
|
+
_node$diagram$bounds = node.diagram.bounds, x = _node$diagram$bounds.x, y = _node$diagram$bounds.y;
|
|
77151
77399
|
nodeData = {
|
|
77152
|
-
|
|
77153
|
-
|
|
77400
|
+
x: x,
|
|
77401
|
+
y: y,
|
|
77154
77402
|
control: {
|
|
77155
77403
|
type: typeToReplaceWith
|
|
77156
77404
|
},
|
|
77157
77405
|
nodeThatWillBeReplaced: node
|
|
77158
77406
|
};
|
|
77159
|
-
if (!
|
|
77160
|
-
|
|
77407
|
+
if (!_this34.isMultiplayer) {
|
|
77408
|
+
_context23.next = 8;
|
|
77161
77409
|
break;
|
|
77162
77410
|
}
|
|
77163
77411
|
// Get all node types
|
|
@@ -77171,81 +77419,81 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77171
77419
|
if (newControl.length === 1) {
|
|
77172
77420
|
window.ProcessMaker.EventBus.$emit('multiplayer-replaceNode', {
|
|
77173
77421
|
nodeData: nodeData,
|
|
77174
|
-
newControl: newControl[0]
|
|
77422
|
+
newControl: newControl[0].type
|
|
77175
77423
|
});
|
|
77176
77424
|
}
|
|
77177
|
-
|
|
77425
|
+
_context23.next = 10;
|
|
77178
77426
|
break;
|
|
77179
77427
|
case 8:
|
|
77180
|
-
|
|
77181
|
-
return
|
|
77428
|
+
_context23.next = 10;
|
|
77429
|
+
return _this34.replaceNodeProcedure(nodeData, true);
|
|
77182
77430
|
case 10:
|
|
77183
77431
|
case "end":
|
|
77184
|
-
return
|
|
77432
|
+
return _context23.stop();
|
|
77185
77433
|
}
|
|
77186
|
-
},
|
|
77434
|
+
}, _callee23);
|
|
77187
77435
|
})));
|
|
77188
77436
|
case 2:
|
|
77189
77437
|
case "end":
|
|
77190
|
-
return
|
|
77438
|
+
return _context24.stop();
|
|
77191
77439
|
}
|
|
77192
|
-
},
|
|
77440
|
+
}, _callee24);
|
|
77193
77441
|
})));
|
|
77194
77442
|
},
|
|
77195
77443
|
replaceNodeProcedure: function replaceNodeProcedure(data) {
|
|
77196
|
-
var
|
|
77197
|
-
|
|
77198
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77199
|
-
var isReplaced,
|
|
77200
|
-
return _regeneratorRuntime().wrap(function
|
|
77201
|
-
while (1) switch (
|
|
77444
|
+
var _arguments6 = arguments,
|
|
77445
|
+
_this35 = this;
|
|
77446
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25() {
|
|
77447
|
+
var isReplaced, _this35$paper$localTo, clientX, clientY, newNode;
|
|
77448
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
|
77449
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
77202
77450
|
case 0:
|
|
77203
|
-
isReplaced =
|
|
77451
|
+
isReplaced = _arguments6.length > 1 && _arguments6[1] !== undefined ? _arguments6[1] : false;
|
|
77204
77452
|
if (isReplaced) {
|
|
77205
77453
|
// Get the clientX and clientY from the node that will be replaced
|
|
77206
|
-
|
|
77454
|
+
_this35$paper$localTo = _this35.paper.localToClientPoint(data.nodeThatWillBeReplaced.diagram.bounds), clientX = _this35$paper$localTo.x, clientY = _this35$paper$localTo.y;
|
|
77207
77455
|
data.clientX = clientX;
|
|
77208
77456
|
data.clientY = clientY;
|
|
77209
77457
|
}
|
|
77210
|
-
|
|
77211
|
-
return
|
|
77458
|
+
_context25.next = 4;
|
|
77459
|
+
return _this35.handleDrop(data);
|
|
77212
77460
|
case 4:
|
|
77213
|
-
newNode =
|
|
77214
|
-
|
|
77215
|
-
return
|
|
77461
|
+
newNode = _context25.sent;
|
|
77462
|
+
_context25.next = 7;
|
|
77463
|
+
return _this35.removeNode(data.nodeThatWillBeReplaced, {
|
|
77216
77464
|
removeRelationships: false,
|
|
77217
77465
|
isReplaced: isReplaced
|
|
77218
77466
|
});
|
|
77219
77467
|
case 7:
|
|
77220
|
-
|
|
77221
|
-
|
|
77468
|
+
_this35.highlightNode(newNode);
|
|
77469
|
+
_this35.selectNewNode(newNode);
|
|
77222
77470
|
case 9:
|
|
77223
77471
|
case "end":
|
|
77224
|
-
return
|
|
77472
|
+
return _context25.stop();
|
|
77225
77473
|
}
|
|
77226
|
-
},
|
|
77474
|
+
}, _callee25);
|
|
77227
77475
|
}))();
|
|
77228
77476
|
},
|
|
77229
77477
|
replaceAiNode: function replaceAiNode(_ref12) {
|
|
77230
|
-
var
|
|
77478
|
+
var _this36 = this;
|
|
77231
77479
|
var node = _ref12.node,
|
|
77232
77480
|
typeToReplaceWith = _ref12.typeToReplaceWith,
|
|
77233
77481
|
assetId = _ref12.assetId,
|
|
77234
77482
|
assetName = _ref12.assetName,
|
|
77235
77483
|
redirectTo = _ref12.redirectTo;
|
|
77236
|
-
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77237
|
-
return _regeneratorRuntime().wrap(function
|
|
77238
|
-
while (1) switch (
|
|
77484
|
+
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27() {
|
|
77485
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context27) {
|
|
77486
|
+
while (1) switch (_context27.prev = _context27.next) {
|
|
77239
77487
|
case 0:
|
|
77240
|
-
|
|
77241
|
-
return
|
|
77242
|
-
var
|
|
77243
|
-
return _regeneratorRuntime().wrap(function
|
|
77244
|
-
while (1) switch (
|
|
77488
|
+
_context27.next = 2;
|
|
77489
|
+
return _this36.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26() {
|
|
77490
|
+
var _this36$paper$localTo, clientX, clientY, newNode;
|
|
77491
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
|
77492
|
+
while (1) switch (_context26.prev = _context26.next) {
|
|
77245
77493
|
case 0:
|
|
77246
|
-
|
|
77247
|
-
|
|
77248
|
-
return
|
|
77494
|
+
_this36$paper$localTo = _this36.paper.localToClientPoint(node.diagram.bounds), clientX = _this36$paper$localTo.x, clientY = _this36$paper$localTo.y;
|
|
77495
|
+
_context26.next = 3;
|
|
77496
|
+
return _this36.handleDrop({
|
|
77249
77497
|
clientX: clientX,
|
|
77250
77498
|
clientY: clientY,
|
|
77251
77499
|
control: {
|
|
@@ -77254,7 +77502,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77254
77502
|
nodeThatWillBeReplaced: node
|
|
77255
77503
|
});
|
|
77256
77504
|
case 3:
|
|
77257
|
-
newNode =
|
|
77505
|
+
newNode = _context26.sent;
|
|
77258
77506
|
if (typeToReplaceWith === 'processmaker-modeler-task') {
|
|
77259
77507
|
newNode.definition.screenRef = assetId;
|
|
77260
77508
|
newNode.definition.name = assetName;
|
|
@@ -77269,95 +77517,95 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77269
77517
|
newNode.definition.config = "{\"calledElement\":\"ProcessId-".concat(assetId, "\",\"processId\":").concat(assetId, ",\"startEvent\":\"node_1\",\"name\":\"").concat(assetName, "\"}");
|
|
77270
77518
|
redirectTo = "".concat(redirectTo, "/").concat(newNode.id);
|
|
77271
77519
|
}
|
|
77272
|
-
|
|
77273
|
-
return
|
|
77520
|
+
_context26.next = 9;
|
|
77521
|
+
return _this36.removeNode(node, {
|
|
77274
77522
|
removeRelationships: false
|
|
77275
77523
|
});
|
|
77276
77524
|
case 9:
|
|
77277
|
-
|
|
77278
|
-
|
|
77279
|
-
|
|
77280
|
-
return
|
|
77525
|
+
_this36.highlightNode(newNode);
|
|
77526
|
+
_this36.selectNewNode(newNode);
|
|
77527
|
+
_context26.next = 13;
|
|
77528
|
+
return _this36.pushToUndoStack();
|
|
77281
77529
|
case 13:
|
|
77282
|
-
|
|
77283
|
-
return
|
|
77530
|
+
_context26.next = 15;
|
|
77531
|
+
return _this36.$nextTick();
|
|
77284
77532
|
case 15:
|
|
77285
|
-
|
|
77533
|
+
_this36.saveBpmn(redirectTo, newNode.id);
|
|
77286
77534
|
case 16:
|
|
77287
77535
|
case "end":
|
|
77288
|
-
return
|
|
77536
|
+
return _context26.stop();
|
|
77289
77537
|
}
|
|
77290
|
-
},
|
|
77538
|
+
}, _callee26);
|
|
77291
77539
|
})));
|
|
77292
77540
|
case 2:
|
|
77293
77541
|
case "end":
|
|
77294
|
-
return
|
|
77542
|
+
return _context27.stop();
|
|
77295
77543
|
}
|
|
77296
|
-
},
|
|
77544
|
+
}, _callee27);
|
|
77297
77545
|
})));
|
|
77298
77546
|
},
|
|
77299
77547
|
replaceGenericFlow: function replaceGenericFlow(_ref15) {
|
|
77300
|
-
var
|
|
77548
|
+
var _this37 = this;
|
|
77301
77549
|
var actualFlow = _ref15.actualFlow,
|
|
77302
77550
|
genericFlow = _ref15.genericFlow,
|
|
77303
77551
|
targetNode = _ref15.targetNode;
|
|
77304
|
-
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77305
|
-
return _regeneratorRuntime().wrap(function
|
|
77306
|
-
while (1) switch (
|
|
77552
|
+
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29() {
|
|
77553
|
+
return _regeneratorRuntime().wrap(function _callee29$(_context29) {
|
|
77554
|
+
while (1) switch (_context29.prev = _context29.next) {
|
|
77307
77555
|
case 0:
|
|
77308
|
-
|
|
77309
|
-
return
|
|
77310
|
-
return _regeneratorRuntime().wrap(function
|
|
77311
|
-
while (1) switch (
|
|
77556
|
+
_context29.next = 2;
|
|
77557
|
+
return _this37.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28() {
|
|
77558
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context28) {
|
|
77559
|
+
while (1) switch (_context28.prev = _context28.next) {
|
|
77312
77560
|
case 0:
|
|
77313
|
-
|
|
77314
|
-
return
|
|
77561
|
+
_context28.next = 2;
|
|
77562
|
+
return _this37.highlightNode(null);
|
|
77315
77563
|
case 2:
|
|
77316
|
-
|
|
77317
|
-
return
|
|
77564
|
+
_context28.next = 4;
|
|
77565
|
+
return _this37.$nextTick();
|
|
77318
77566
|
case 4:
|
|
77319
|
-
|
|
77320
|
-
return
|
|
77567
|
+
_context28.next = 6;
|
|
77568
|
+
return _this37.addNode(actualFlow);
|
|
77321
77569
|
case 6:
|
|
77322
|
-
|
|
77570
|
+
_context28.next = 8;
|
|
77323
77571
|
return store.commit('removeNode', genericFlow);
|
|
77324
77572
|
case 8:
|
|
77325
|
-
|
|
77326
|
-
return
|
|
77573
|
+
_context28.next = 10;
|
|
77574
|
+
return _this37.$nextTick();
|
|
77327
77575
|
case 10:
|
|
77328
|
-
|
|
77329
|
-
return
|
|
77576
|
+
_context28.next = 12;
|
|
77577
|
+
return _this37.highlightNode(targetNode);
|
|
77330
77578
|
case 12:
|
|
77331
77579
|
case "end":
|
|
77332
|
-
return
|
|
77580
|
+
return _context28.stop();
|
|
77333
77581
|
}
|
|
77334
|
-
},
|
|
77582
|
+
}, _callee28);
|
|
77335
77583
|
})));
|
|
77336
77584
|
case 2:
|
|
77337
77585
|
case "end":
|
|
77338
|
-
return
|
|
77586
|
+
return _context29.stop();
|
|
77339
77587
|
}
|
|
77340
|
-
},
|
|
77588
|
+
}, _callee29);
|
|
77341
77589
|
})));
|
|
77342
77590
|
},
|
|
77343
77591
|
performSingleUndoRedoTransaction: function performSingleUndoRedoTransaction(cb) {
|
|
77344
|
-
var
|
|
77345
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77346
|
-
return _regeneratorRuntime().wrap(function
|
|
77347
|
-
while (1) switch (
|
|
77592
|
+
var _this38 = this;
|
|
77593
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30() {
|
|
77594
|
+
return _regeneratorRuntime().wrap(function _callee30$(_context30) {
|
|
77595
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
77348
77596
|
case 0:
|
|
77349
77597
|
undoRedoStore.commit('disableSavingState');
|
|
77350
|
-
|
|
77598
|
+
_context30.next = 3;
|
|
77351
77599
|
return cb();
|
|
77352
77600
|
case 3:
|
|
77353
77601
|
undoRedoStore.commit('enableSavingState');
|
|
77354
|
-
|
|
77355
|
-
return
|
|
77602
|
+
_context30.next = 6;
|
|
77603
|
+
return _this38.pushToUndoStack();
|
|
77356
77604
|
case 6:
|
|
77357
77605
|
case "end":
|
|
77358
|
-
return
|
|
77606
|
+
return _context30.stop();
|
|
77359
77607
|
}
|
|
77360
|
-
},
|
|
77608
|
+
}, _callee30);
|
|
77361
77609
|
}))();
|
|
77362
77610
|
},
|
|
77363
77611
|
removeNodesFromLane: function removeNodesFromLane(node) {
|
|
@@ -77370,36 +77618,36 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77370
77618
|
pull_default()(containingLane.get('flowNodeRef'), node.definition);
|
|
77371
77619
|
},
|
|
77372
77620
|
removeNodesFromPool: function removeNodesFromPool(node) {
|
|
77373
|
-
var
|
|
77621
|
+
var _this39 = this;
|
|
77374
77622
|
if (node.type === 'processmaker-modeler-pool' && node.definition.processRef) {
|
|
77375
77623
|
if (node.definition.processRef.artifacts) {
|
|
77376
77624
|
node.definition.processRef.artifacts.forEach(function (artifact) {
|
|
77377
|
-
var nodeToRemove =
|
|
77625
|
+
var nodeToRemove = _this39.nodes.find(function (n) {
|
|
77378
77626
|
return n.definition === artifact;
|
|
77379
77627
|
});
|
|
77380
77628
|
if (nodeToRemove) {
|
|
77381
|
-
|
|
77629
|
+
_this39.removeNode(nodeToRemove);
|
|
77382
77630
|
}
|
|
77383
77631
|
});
|
|
77384
77632
|
}
|
|
77385
77633
|
if (node.definition.processRef.flowElements) {
|
|
77386
77634
|
node.definition.processRef.flowElements.forEach(function (flowElement) {
|
|
77387
|
-
var nodeToRemove =
|
|
77635
|
+
var nodeToRemove = _this39.nodes.find(function (n) {
|
|
77388
77636
|
return n.definition === flowElement;
|
|
77389
77637
|
});
|
|
77390
77638
|
if (nodeToRemove) {
|
|
77391
|
-
|
|
77639
|
+
_this39.removeNode(nodeToRemove);
|
|
77392
77640
|
}
|
|
77393
77641
|
});
|
|
77394
77642
|
}
|
|
77395
77643
|
var laneSets = node.definition.processRef.laneSets;
|
|
77396
77644
|
if (!!laneSets && laneSets.length > 0) {
|
|
77397
77645
|
laneSets[0].lanes.forEach(function (lane) {
|
|
77398
|
-
var nodeToRemove =
|
|
77646
|
+
var nodeToRemove = _this39.nodes.find(function (n) {
|
|
77399
77647
|
return n.definition === lane;
|
|
77400
77648
|
});
|
|
77401
77649
|
if (nodeToRemove) {
|
|
77402
|
-
|
|
77650
|
+
_this39.removeNode(nodeToRemove);
|
|
77403
77651
|
}
|
|
77404
77652
|
});
|
|
77405
77653
|
}
|
|
@@ -77427,13 +77675,13 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77427
77675
|
return shape.component != null;
|
|
77428
77676
|
},
|
|
77429
77677
|
setShapeStacking: function setShapeStacking(shape) {
|
|
77430
|
-
var
|
|
77678
|
+
var _this40 = this;
|
|
77431
77679
|
if (this.isRendering || !shape.component.node.isType('processmaker-modeler-pool') && shape === this.previouslyStackedShape) {
|
|
77432
77680
|
return;
|
|
77433
77681
|
}
|
|
77434
77682
|
this.previouslyStackedShape = shape;
|
|
77435
77683
|
this.paperManager.performAtomicAction(function () {
|
|
77436
|
-
return ensureShapeIsNotCovered(shape,
|
|
77684
|
+
return ensureShapeIsNotCovered(shape, _this40.graph);
|
|
77437
77685
|
});
|
|
77438
77686
|
},
|
|
77439
77687
|
showSavedNotification: function showSavedNotification() {
|
|
@@ -77467,49 +77715,49 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77467
77715
|
return false;
|
|
77468
77716
|
},
|
|
77469
77717
|
pointerDowInShape: function pointerDowInShape(event, element) {
|
|
77470
|
-
var
|
|
77471
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77718
|
+
var _this41 = this;
|
|
77719
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31() {
|
|
77472
77720
|
var x, y, shapeView;
|
|
77473
|
-
return _regeneratorRuntime().wrap(function
|
|
77474
|
-
while (1) switch (
|
|
77721
|
+
return _regeneratorRuntime().wrap(function _callee31$(_context31) {
|
|
77722
|
+
while (1) switch (_context31.prev = _context31.next) {
|
|
77475
77723
|
case 0:
|
|
77476
77724
|
x = event.clientX, y = event.clientY;
|
|
77477
|
-
shapeView =
|
|
77478
|
-
|
|
77479
|
-
|
|
77480
|
-
|
|
77481
|
-
|
|
77725
|
+
shapeView = _this41.paper.findViewByModel(element);
|
|
77726
|
+
_this41.isDragging = false;
|
|
77727
|
+
_this41.isSelecting = false;
|
|
77728
|
+
_this41.isIntoTheSelection = false;
|
|
77729
|
+
_this41.dragStart = {
|
|
77482
77730
|
x: x,
|
|
77483
77731
|
y: y
|
|
77484
77732
|
};
|
|
77485
77733
|
// Verify if is in the selection box
|
|
77486
|
-
if (!
|
|
77487
|
-
|
|
77734
|
+
if (!_this41.isPointInSelection(event)) {
|
|
77735
|
+
_context31.next = 10;
|
|
77488
77736
|
break;
|
|
77489
77737
|
}
|
|
77490
|
-
|
|
77491
|
-
|
|
77738
|
+
_this41.isIntoTheSelection = true;
|
|
77739
|
+
_context31.next = 15;
|
|
77492
77740
|
break;
|
|
77493
77741
|
case 10:
|
|
77494
77742
|
if (event.shiftKey) {
|
|
77495
|
-
|
|
77743
|
+
_context31.next = 15;
|
|
77496
77744
|
break;
|
|
77497
77745
|
}
|
|
77498
|
-
|
|
77499
|
-
return
|
|
77746
|
+
_context31.next = 13;
|
|
77747
|
+
return _this41.$refs.selector.selectElement(shapeView);
|
|
77500
77748
|
case 13:
|
|
77501
|
-
|
|
77502
|
-
return
|
|
77749
|
+
_context31.next = 15;
|
|
77750
|
+
return _this41.$nextTick();
|
|
77503
77751
|
case 15:
|
|
77504
|
-
|
|
77752
|
+
_this41.$refs.selector.startDrag({
|
|
77505
77753
|
clientX: event.clientX,
|
|
77506
77754
|
clientY: event.clientY
|
|
77507
77755
|
});
|
|
77508
77756
|
case 16:
|
|
77509
77757
|
case "end":
|
|
77510
|
-
return
|
|
77758
|
+
return _context31.stop();
|
|
77511
77759
|
}
|
|
77512
|
-
},
|
|
77760
|
+
}, _callee31);
|
|
77513
77761
|
}))();
|
|
77514
77762
|
},
|
|
77515
77763
|
pointerDownHandler: function pointerDownHandler(event) {
|
|
@@ -77630,7 +77878,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77630
77878
|
this.$emit('set-xml-manager', this.xmlManager);
|
|
77631
77879
|
},
|
|
77632
77880
|
mounted: function mounted() {
|
|
77633
|
-
var
|
|
77881
|
+
var _this42 = this;
|
|
77634
77882
|
store.commit('setReadOnly', this.readOnly);
|
|
77635
77883
|
this.graph = new external_jointjs_.dia.Graph();
|
|
77636
77884
|
store.commit('setGraph', this.graph);
|
|
@@ -77649,47 +77897,47 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77649
77897
|
store.commit('setPaper', this.paperManager.paper);
|
|
77650
77898
|
this.paperManager.addEventHandler('element:pointerclick', this.blurFocusedScreenBuilderElement, this);
|
|
77651
77899
|
this.paperManager.addEventHandler('blank:pointerdown', function (event, x, y) {
|
|
77652
|
-
if (
|
|
77900
|
+
if (_this42.isGrabbing) return;
|
|
77653
77901
|
if (store.getters.isReadOnly) {
|
|
77654
|
-
|
|
77902
|
+
_this42.isGrabbing = true;
|
|
77655
77903
|
}
|
|
77656
|
-
var scale =
|
|
77657
|
-
|
|
77904
|
+
var scale = _this42.paperManager.scale;
|
|
77905
|
+
_this42.canvasDragPosition = {
|
|
77658
77906
|
x: x * scale.sx,
|
|
77659
77907
|
y: y * scale.sy
|
|
77660
77908
|
};
|
|
77661
|
-
|
|
77662
|
-
|
|
77909
|
+
_this42.isOverShape = false;
|
|
77910
|
+
_this42.pointerDownHandler(event);
|
|
77663
77911
|
}, this);
|
|
77664
77912
|
this.paperManager.addEventHandler('cell:mouseover element:mouseover', function (_ref19) {
|
|
77665
77913
|
var shape = _ref19.model;
|
|
77666
|
-
if (
|
|
77914
|
+
if (_this42.isBpmnNode(shape) && shape.attr('body/cursor') !== 'default' && !_this42.isGrabbing) {
|
|
77667
77915
|
shape.attr('body/cursor', 'move');
|
|
77668
77916
|
}
|
|
77669
77917
|
// If the user is panning the Paper while hovering an element, ignore the default move cursor
|
|
77670
|
-
if (
|
|
77918
|
+
if (_this42.isGrabbing && _this42.isBpmnNode(shape)) {
|
|
77671
77919
|
shape.attr('body/cursor', 'grabbing');
|
|
77672
77920
|
}
|
|
77673
77921
|
});
|
|
77674
77922
|
this.paperManager.addEventHandler('blank:pointerup', function (event) {
|
|
77675
|
-
|
|
77676
|
-
|
|
77677
|
-
|
|
77678
|
-
|
|
77923
|
+
_this42.isGrabbing = false;
|
|
77924
|
+
_this42.canvasDragPosition = null;
|
|
77925
|
+
_this42.activeNode = null;
|
|
77926
|
+
_this42.pointerUpHandler(event);
|
|
77679
77927
|
}, this);
|
|
77680
77928
|
this.paperManager.addEventHandler('cell:pointerup', function (cellView, event) {
|
|
77681
|
-
|
|
77682
|
-
|
|
77683
|
-
|
|
77929
|
+
_this42.canvasDragPosition = null;
|
|
77930
|
+
_this42.activeNode = null;
|
|
77931
|
+
_this42.pointerUpHandler(event, cellView);
|
|
77684
77932
|
}, this);
|
|
77685
77933
|
this.$refs['paper-container'].addEventListener('mouseenter', function () {
|
|
77686
77934
|
store.commit('setClientLeftPaper', false);
|
|
77687
77935
|
});
|
|
77688
77936
|
this.$el.addEventListener('mousemove', function (event) {
|
|
77689
|
-
|
|
77937
|
+
_this42.pointerMoveHandler(event);
|
|
77690
77938
|
});
|
|
77691
77939
|
this.$refs['paper-container'].addEventListener('mouseleave', function () {
|
|
77692
|
-
|
|
77940
|
+
_this42.paperManager.removeEventHandler('blank:pointermove');
|
|
77693
77941
|
store.commit('setClientLeftPaper', true);
|
|
77694
77942
|
});
|
|
77695
77943
|
this.paperManager.addEventHandler('cell:pointerclick', function (cellView, evt, x, y) {
|
|
@@ -77700,44 +77948,44 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77700
77948
|
});
|
|
77701
77949
|
this.paperManager.addEventHandler('cell:pointerclick', function (_ref20, event) {
|
|
77702
77950
|
var shape = _ref20.model;
|
|
77703
|
-
if (!
|
|
77951
|
+
if (!_this42.isBpmnNode(shape)) {
|
|
77704
77952
|
return;
|
|
77705
77953
|
}
|
|
77706
77954
|
|
|
77707
77955
|
// ignore click event if the user is Grabbing the paper
|
|
77708
|
-
if (
|
|
77956
|
+
if (_this42.isGrabbing) return;
|
|
77709
77957
|
shape.component.$emit('click', event);
|
|
77710
|
-
|
|
77958
|
+
_this42.$emit('click', {
|
|
77711
77959
|
event: event,
|
|
77712
|
-
node:
|
|
77960
|
+
node: _this42.highlightedNode.definition
|
|
77713
77961
|
});
|
|
77714
77962
|
});
|
|
77715
77963
|
this.paperManager.addEventHandler('cell:pointerdown', function (_ref21, event) {
|
|
77716
77964
|
var shape = _ref21.model;
|
|
77717
|
-
if (!
|
|
77965
|
+
if (!_this42.isBpmnNode(shape)) {
|
|
77718
77966
|
return;
|
|
77719
77967
|
}
|
|
77720
77968
|
// If the user is pressing Space (grabbing) and clicking on a Cell, return
|
|
77721
|
-
if (
|
|
77969
|
+
if (_this42.isGrabbing) {
|
|
77722
77970
|
return;
|
|
77723
77971
|
}
|
|
77724
|
-
|
|
77725
|
-
|
|
77726
|
-
|
|
77727
|
-
|
|
77972
|
+
_this42.setShapeStacking(shape);
|
|
77973
|
+
_this42.activeNode = shape.component.node;
|
|
77974
|
+
_this42.isOverShape = true;
|
|
77975
|
+
_this42.pointerDowInShape(event, shape);
|
|
77728
77976
|
});
|
|
77729
77977
|
// If the user is grabbing the paper while he clicked in a cell, move the paper and not the cell
|
|
77730
77978
|
this.paperManager.addEventHandler('cell:pointermove', function (_, event, x, y) {
|
|
77731
|
-
if (
|
|
77732
|
-
if (!
|
|
77733
|
-
var scale =
|
|
77734
|
-
|
|
77979
|
+
if (_this42.isGrabbing) {
|
|
77980
|
+
if (!_this42.canvasDragPosition) {
|
|
77981
|
+
var scale = _this42.paperManager.scale;
|
|
77982
|
+
_this42.canvasDragPosition = {
|
|
77735
77983
|
x: x * scale.sx,
|
|
77736
77984
|
y: y * scale.sy
|
|
77737
77985
|
};
|
|
77738
77986
|
}
|
|
77739
|
-
if (
|
|
77740
|
-
|
|
77987
|
+
if (_this42.canvasDragPosition && !_this42.clientLeftPaper) {
|
|
77988
|
+
_this42.paperManager.translate(event.offsetX - _this42.canvasDragPosition.x, event.offsetY - _this42.canvasDragPosition.y);
|
|
77741
77989
|
}
|
|
77742
77990
|
}
|
|
77743
77991
|
});
|
|
@@ -77748,28 +77996,28 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77748
77996
|
modeler: this,
|
|
77749
77997
|
registerMenuAction: this.registerMenuAction,
|
|
77750
77998
|
loadXML: function () {
|
|
77751
|
-
var _loadXML = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77999
|
+
var _loadXML = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(xml) {
|
|
77752
78000
|
var multiplayer;
|
|
77753
|
-
return _regeneratorRuntime().wrap(function
|
|
77754
|
-
while (1) switch (
|
|
78001
|
+
return _regeneratorRuntime().wrap(function _callee32$(_context32) {
|
|
78002
|
+
while (1) switch (_context32.prev = _context32.next) {
|
|
77755
78003
|
case 0:
|
|
77756
|
-
|
|
77757
|
-
return
|
|
78004
|
+
_context32.next = 2;
|
|
78005
|
+
return _this42.loadXML(xml);
|
|
77758
78006
|
case 2:
|
|
77759
|
-
|
|
78007
|
+
_context32.next = 4;
|
|
77760
78008
|
return undoRedoStore.dispatch('pushState', xml);
|
|
77761
78009
|
case 4:
|
|
77762
78010
|
try {
|
|
77763
|
-
multiplayer = new Multiplayer(
|
|
78011
|
+
multiplayer = new Multiplayer(_this42);
|
|
77764
78012
|
multiplayer.init();
|
|
77765
78013
|
} catch (error) {
|
|
77766
78014
|
console.warn('Could not initialize multiplayer', error);
|
|
77767
78015
|
}
|
|
77768
78016
|
case 5:
|
|
77769
78017
|
case "end":
|
|
77770
|
-
return
|
|
78018
|
+
return _context32.stop();
|
|
77771
78019
|
}
|
|
77772
|
-
},
|
|
78020
|
+
}, _callee32);
|
|
77773
78021
|
}));
|
|
77774
78022
|
function loadXML(_x) {
|
|
77775
78023
|
return _loadXML.apply(this, arguments);
|
|
@@ -77777,18 +78025,18 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77777
78025
|
return loadXML;
|
|
77778
78026
|
}(),
|
|
77779
78027
|
addWarnings: function addWarnings(warnings) {
|
|
77780
|
-
return
|
|
78028
|
+
return _this42.$emit('warnings', warnings);
|
|
77781
78029
|
},
|
|
77782
78030
|
addBreadcrumbs: function addBreadcrumbs(breadcrumbs) {
|
|
77783
|
-
return
|
|
78031
|
+
return _this42.breadcrumbData.push(breadcrumbs);
|
|
77784
78032
|
}
|
|
77785
78033
|
});
|
|
77786
78034
|
this.$root.$on('replace-ai-node', function (data) {
|
|
77787
|
-
|
|
78035
|
+
_this42.replaceAiNode(data);
|
|
77788
78036
|
});
|
|
77789
78037
|
window.ProcessMaker.EventBus.$on('save-changes', function (redirectUrl) {
|
|
77790
78038
|
if (redirectUrl) {
|
|
77791
|
-
|
|
78039
|
+
_this42.redirect(redirectUrl);
|
|
77792
78040
|
}
|
|
77793
78041
|
});
|
|
77794
78042
|
}
|
|
@@ -77810,8 +78058,8 @@ var modelervue_type_style_index_0_prod_lang_scss_ = __webpack_require__(26695);
|
|
|
77810
78058
|
|
|
77811
78059
|
var Modeler_component = normalizeComponent(
|
|
77812
78060
|
modeler_Modelervue_type_script_lang_js_,
|
|
77813
|
-
|
|
77814
|
-
|
|
78061
|
+
Modelervue_type_template_id_95ee0562_render,
|
|
78062
|
+
Modelervue_type_template_id_95ee0562_staticRenderFns,
|
|
77815
78063
|
false,
|
|
77816
78064
|
null,
|
|
77817
78065
|
null,
|