@processmaker/modeler 1.39.17 → 1.39.19
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 +1717 -1211
- package/dist/modeler.common.js.map +1 -1
- package/dist/modeler.umd.js +1717 -1211
- 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 +94 -27
- package/src/components/modeler/Selection.vue +42 -15
- package/src/components/nodes/association/AssociationFlow.js +27 -0
- package/src/components/nodes/association/associationConfig.js +15 -0
- package/src/components/nodes/association/index.js +19 -12
- package/src/components/nodes/dataInputAssociation/DataInputAssociation.js +30 -0
- package/src/components/nodes/dataInputAssociation/index.js +17 -0
- package/src/components/nodes/dataOutputAssociation/index.js +15 -0
- package/src/components/nodes/genericFlow/DataOutputAssociation.js +1 -1
- package/src/components/nodes/genericFlow/genericFlow.vue +0 -10
- 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/cloneSelection.js +1 -1
- package/src/mixins/linkConfig.js +35 -17
- package/src/mixins/poolLaneCrownConfig.js +0 -2
- package/src/multiplayer/multiplayer.js +139 -80
- 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
|
+
/***/ 45932:
|
|
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-68f84c00]{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
|
+
/***/ 38084:
|
|
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__(45932);
|
|
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("6e2f0c81", content, true, {"sourceMap":false,"shadowMode":false});
|
|
26457
26457
|
|
|
26458
26458
|
/***/ }),
|
|
26459
26459
|
|
|
@@ -28357,8 +28357,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28357
28357
|
var config_namespaceObject = {};
|
|
28358
28358
|
__webpack_require__.r(config_namespaceObject);
|
|
28359
28359
|
__webpack_require__.d(config_namespaceObject, {
|
|
28360
|
-
bpmnType: function() { return
|
|
28361
|
-
definition: function() { return
|
|
28360
|
+
bpmnType: function() { return config_bpmnType; },
|
|
28361
|
+
definition: function() { return config_definition; },
|
|
28362
28362
|
diagram: function() { return config_diagram; },
|
|
28363
28363
|
id: function() { return config_id; }
|
|
28364
28364
|
});
|
|
@@ -28367,9 +28367,9 @@ __webpack_require__.d(config_namespaceObject, {
|
|
|
28367
28367
|
var dataInputAssociation_config_namespaceObject = {};
|
|
28368
28368
|
__webpack_require__.r(dataInputAssociation_config_namespaceObject);
|
|
28369
28369
|
__webpack_require__.d(dataInputAssociation_config_namespaceObject, {
|
|
28370
|
-
bpmnType: function() { return
|
|
28371
|
-
definition: function() { return
|
|
28372
|
-
diagram: function() { return
|
|
28370
|
+
bpmnType: function() { return dataInputAssociation_config_bpmnType; },
|
|
28371
|
+
definition: function() { return dataInputAssociation_config_definition; },
|
|
28372
|
+
diagram: function() { return dataInputAssociation_config_diagram; },
|
|
28373
28373
|
id: function() { return dataInputAssociation_config_id; }
|
|
28374
28374
|
});
|
|
28375
28375
|
|
|
@@ -28408,41 +28408,6 @@ if (typeof window !== 'undefined') {
|
|
|
28408
28408
|
// Indicate to webpack that this file can be concatenated
|
|
28409
28409
|
/* harmony default export */ var setPublicPath = (null);
|
|
28410
28410
|
|
|
28411
|
-
;// 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/association/association.vue?vue&type=template&id=4ea32ce6&
|
|
28412
|
-
var render = function render() {
|
|
28413
|
-
var _vm = this,
|
|
28414
|
-
_c = _vm._self._c;
|
|
28415
|
-
return _c('crown-config', _vm._g({
|
|
28416
|
-
attrs: {
|
|
28417
|
-
"highlighted": _vm.highlighted,
|
|
28418
|
-
"paper": _vm.paper,
|
|
28419
|
-
"graph": _vm.graph,
|
|
28420
|
-
"shape": _vm.shape,
|
|
28421
|
-
"node": _vm.node,
|
|
28422
|
-
"nodeRegistry": _vm.nodeRegistry,
|
|
28423
|
-
"moddle": _vm.moddle,
|
|
28424
|
-
"collaboration": _vm.collaboration,
|
|
28425
|
-
"process-node": _vm.processNode,
|
|
28426
|
-
"plane-elements": _vm.planeElements,
|
|
28427
|
-
"is-rendering": _vm.isRendering
|
|
28428
|
-
}
|
|
28429
|
-
}, _vm.$listeners));
|
|
28430
|
-
};
|
|
28431
|
-
var staticRenderFns = [];
|
|
28432
|
-
|
|
28433
|
-
// EXTERNAL MODULE: external "jointjs"
|
|
28434
|
-
var external_jointjs_ = __webpack_require__(22811);
|
|
28435
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
28436
|
-
function _arrayLikeToArray(arr, len) {
|
|
28437
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
28438
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
28439
|
-
return arr2;
|
|
28440
|
-
}
|
|
28441
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
28442
|
-
|
|
28443
|
-
function _arrayWithoutHoles(arr) {
|
|
28444
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
28445
|
-
}
|
|
28446
28411
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
|
|
28447
28412
|
var es_symbol = __webpack_require__(82526);
|
|
28448
28413
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
|
|
@@ -28457,60 +28422,6 @@ var es_array_iterator = __webpack_require__(66992);
|
|
|
28457
28422
|
var es_string_iterator = __webpack_require__(78783);
|
|
28458
28423
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
|
|
28459
28424
|
var web_dom_collections_iterator = __webpack_require__(33948);
|
|
28460
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
28461
|
-
var es_array_from = __webpack_require__(91038);
|
|
28462
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
28463
|
-
|
|
28464
|
-
|
|
28465
|
-
|
|
28466
|
-
|
|
28467
|
-
|
|
28468
|
-
|
|
28469
|
-
|
|
28470
|
-
|
|
28471
|
-
function _iterableToArray(iter) {
|
|
28472
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
28473
|
-
}
|
|
28474
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
28475
|
-
var es_array_slice = __webpack_require__(47042);
|
|
28476
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
28477
|
-
var es_function_name = __webpack_require__(68309);
|
|
28478
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
28479
|
-
var es_regexp_exec = __webpack_require__(74916);
|
|
28480
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js
|
|
28481
|
-
var es_regexp_test = __webpack_require__(77601);
|
|
28482
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
28483
|
-
|
|
28484
|
-
|
|
28485
|
-
|
|
28486
|
-
|
|
28487
|
-
|
|
28488
|
-
|
|
28489
|
-
|
|
28490
|
-
|
|
28491
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
28492
|
-
if (!o) return;
|
|
28493
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
28494
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
28495
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
28496
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
28497
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
28498
|
-
}
|
|
28499
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
28500
|
-
var es_error_cause = __webpack_require__(21703);
|
|
28501
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
28502
|
-
|
|
28503
|
-
function _nonIterableSpread() {
|
|
28504
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
28505
|
-
}
|
|
28506
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
28507
|
-
|
|
28508
|
-
|
|
28509
|
-
|
|
28510
|
-
|
|
28511
|
-
function _toConsumableArray(arr) {
|
|
28512
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
28513
|
-
}
|
|
28514
28425
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.async-iterator.js
|
|
28515
28426
|
var es_symbol_async_iterator = __webpack_require__(72443);
|
|
28516
28427
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.to-string-tag.js
|
|
@@ -28521,16 +28432,22 @@ var es_json_to_string_tag = __webpack_require__(73706);
|
|
|
28521
28432
|
var es_math_to_string_tag = __webpack_require__(10408);
|
|
28522
28433
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-prototype-of.js
|
|
28523
28434
|
var es_object_get_prototype_of = __webpack_require__(30489);
|
|
28435
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
28436
|
+
var es_error_cause = __webpack_require__(21703);
|
|
28524
28437
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
28525
28438
|
var es_array_push = __webpack_require__(57658);
|
|
28526
28439
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
28527
28440
|
var web_dom_collections_for_each = __webpack_require__(54747);
|
|
28441
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
28442
|
+
var es_function_name = __webpack_require__(68309);
|
|
28528
28443
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.set-prototype-of.js
|
|
28529
28444
|
var es_object_set_prototype_of = __webpack_require__(68304);
|
|
28530
28445
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.proto.js
|
|
28531
28446
|
var es_object_proto = __webpack_require__(67987);
|
|
28532
28447
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
28533
28448
|
var es_promise = __webpack_require__(88674);
|
|
28449
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
28450
|
+
var es_array_slice = __webpack_require__(47042);
|
|
28534
28451
|
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
28535
28452
|
|
|
28536
28453
|
|
|
@@ -28907,16 +28824,454 @@ function _asyncToGenerator(fn) {
|
|
|
28907
28824
|
});
|
|
28908
28825
|
};
|
|
28909
28826
|
}
|
|
28827
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
28828
|
+
|
|
28829
|
+
function _classCallCheck(instance, Constructor) {
|
|
28830
|
+
if (!(instance instanceof Constructor)) {
|
|
28831
|
+
throw new TypeError("Cannot call a class as a function");
|
|
28832
|
+
}
|
|
28833
|
+
}
|
|
28834
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.to-primitive.js
|
|
28835
|
+
var es_symbol_to_primitive = __webpack_require__(96649);
|
|
28836
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.date.to-primitive.js
|
|
28837
|
+
var es_date_to_primitive = __webpack_require__(96078);
|
|
28838
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
28839
|
+
var es_number_constructor = __webpack_require__(9653);
|
|
28840
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
28841
|
+
|
|
28842
|
+
|
|
28843
|
+
|
|
28844
|
+
|
|
28845
|
+
|
|
28846
|
+
|
|
28847
|
+
|
|
28848
|
+
|
|
28849
|
+
function _toPrimitive(input, hint) {
|
|
28850
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
28851
|
+
var prim = input[Symbol.toPrimitive];
|
|
28852
|
+
if (prim !== undefined) {
|
|
28853
|
+
var res = prim.call(input, hint || "default");
|
|
28854
|
+
if (_typeof(res) !== "object") return res;
|
|
28855
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
28856
|
+
}
|
|
28857
|
+
return (hint === "string" ? String : Number)(input);
|
|
28858
|
+
}
|
|
28859
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
28860
|
+
|
|
28861
|
+
|
|
28862
|
+
function _toPropertyKey(arg) {
|
|
28863
|
+
var key = _toPrimitive(arg, "string");
|
|
28864
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
28865
|
+
}
|
|
28866
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
28867
|
+
|
|
28868
|
+
function _defineProperties(target, props) {
|
|
28869
|
+
for (var i = 0; i < props.length; i++) {
|
|
28870
|
+
var descriptor = props[i];
|
|
28871
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
28872
|
+
descriptor.configurable = true;
|
|
28873
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
28874
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
28875
|
+
}
|
|
28876
|
+
}
|
|
28877
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
28878
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
28879
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
28880
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
28881
|
+
writable: false
|
|
28882
|
+
});
|
|
28883
|
+
return Constructor;
|
|
28884
|
+
}
|
|
28885
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js
|
|
28886
|
+
|
|
28887
|
+
function _checkPrivateRedeclaration(obj, privateCollection) {
|
|
28888
|
+
if (privateCollection.has(obj)) {
|
|
28889
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
28890
|
+
}
|
|
28891
|
+
}
|
|
28892
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js
|
|
28893
|
+
|
|
28894
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
28895
|
+
_checkPrivateRedeclaration(obj, privateMap);
|
|
28896
|
+
privateMap.set(obj, value);
|
|
28897
|
+
}
|
|
28898
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
28899
|
+
|
|
28900
|
+
function _defineProperty(obj, key, value) {
|
|
28901
|
+
key = _toPropertyKey(key);
|
|
28902
|
+
if (key in obj) {
|
|
28903
|
+
Object.defineProperty(obj, key, {
|
|
28904
|
+
value: value,
|
|
28905
|
+
enumerable: true,
|
|
28906
|
+
configurable: true,
|
|
28907
|
+
writable: true
|
|
28908
|
+
});
|
|
28909
|
+
} else {
|
|
28910
|
+
obj[key] = value;
|
|
28911
|
+
}
|
|
28912
|
+
return obj;
|
|
28913
|
+
}
|
|
28914
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js
|
|
28915
|
+
function _classApplyDescriptorGet(receiver, descriptor) {
|
|
28916
|
+
if (descriptor.get) {
|
|
28917
|
+
return descriptor.get.call(receiver);
|
|
28918
|
+
}
|
|
28919
|
+
return descriptor.value;
|
|
28920
|
+
}
|
|
28921
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js
|
|
28922
|
+
|
|
28923
|
+
function _classExtractFieldDescriptor(receiver, privateMap, action) {
|
|
28924
|
+
if (!privateMap.has(receiver)) {
|
|
28925
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
28926
|
+
}
|
|
28927
|
+
return privateMap.get(receiver);
|
|
28928
|
+
}
|
|
28929
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js
|
|
28930
|
+
|
|
28931
|
+
|
|
28932
|
+
function _classPrivateFieldGet(receiver, privateMap) {
|
|
28933
|
+
var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get");
|
|
28934
|
+
return _classApplyDescriptorGet(receiver, descriptor);
|
|
28935
|
+
}
|
|
28936
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js
|
|
28937
|
+
|
|
28938
|
+
function _classCheckPrivateStaticAccess(receiver, classConstructor) {
|
|
28939
|
+
if (receiver !== classConstructor) {
|
|
28940
|
+
throw new TypeError("Private static access of wrong provenance");
|
|
28941
|
+
}
|
|
28942
|
+
}
|
|
28943
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js
|
|
28944
|
+
|
|
28945
|
+
function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
|
|
28946
|
+
if (descriptor === undefined) {
|
|
28947
|
+
throw new TypeError("attempted to " + action + " private static field before its declaration");
|
|
28948
|
+
}
|
|
28949
|
+
}
|
|
28950
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js
|
|
28951
|
+
|
|
28952
|
+
|
|
28953
|
+
|
|
28954
|
+
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
|
|
28955
|
+
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
28956
|
+
_classCheckPrivateStaticFieldDescriptor(descriptor, "get");
|
|
28957
|
+
return _classApplyDescriptorGet(receiver, descriptor);
|
|
28958
|
+
}
|
|
28959
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js
|
|
28960
|
+
|
|
28961
|
+
function _classApplyDescriptorSet(receiver, descriptor, value) {
|
|
28962
|
+
if (descriptor.set) {
|
|
28963
|
+
descriptor.set.call(receiver, value);
|
|
28964
|
+
} else {
|
|
28965
|
+
if (!descriptor.writable) {
|
|
28966
|
+
throw new TypeError("attempted to set read only private field");
|
|
28967
|
+
}
|
|
28968
|
+
descriptor.value = value;
|
|
28969
|
+
}
|
|
28970
|
+
}
|
|
28971
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js
|
|
28972
|
+
|
|
28973
|
+
|
|
28974
|
+
|
|
28975
|
+
function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
|
|
28976
|
+
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
28977
|
+
_classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
|
28978
|
+
_classApplyDescriptorSet(receiver, descriptor, value);
|
|
28979
|
+
return value;
|
|
28980
|
+
}
|
|
28910
28981
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
28911
28982
|
var es_array_find = __webpack_require__(69826);
|
|
28912
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.
|
|
28913
|
-
var
|
|
28983
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-names.js
|
|
28984
|
+
var es_object_get_own_property_names = __webpack_require__(36210);
|
|
28985
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
28986
|
+
var es_regexp_exec = __webpack_require__(74916);
|
|
28987
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
|
28988
|
+
var es_string_match = __webpack_require__(4723);
|
|
28989
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.constructor.js
|
|
28990
|
+
var es_regexp_constructor = __webpack_require__(24603);
|
|
28991
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.dot-all.js
|
|
28992
|
+
var es_regexp_dot_all = __webpack_require__(28450);
|
|
28993
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.sticky.js
|
|
28994
|
+
var es_regexp_sticky = __webpack_require__(88386);
|
|
28995
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
28996
|
+
var es_regexp_to_string = __webpack_require__(39714);
|
|
28997
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.weak-map.js
|
|
28998
|
+
var es_weak_map = __webpack_require__(4129);
|
|
28999
|
+
;// CONCATENATED MODULE: ./src/NodeIdGenerator.js
|
|
29000
|
+
|
|
29001
|
+
|
|
29002
|
+
|
|
29003
|
+
|
|
29004
|
+
|
|
29005
|
+
|
|
29006
|
+
|
|
29007
|
+
|
|
29008
|
+
|
|
29009
|
+
|
|
29010
|
+
|
|
29011
|
+
|
|
29012
|
+
|
|
29013
|
+
|
|
29014
|
+
|
|
29015
|
+
|
|
29016
|
+
|
|
29017
|
+
|
|
29018
|
+
|
|
29019
|
+
|
|
29020
|
+
|
|
29021
|
+
|
|
29022
|
+
var _generateDefinitionId = /*#__PURE__*/new WeakMap();
|
|
29023
|
+
var _generateDiagramId = /*#__PURE__*/new WeakMap();
|
|
29024
|
+
var _generateProcessId = /*#__PURE__*/new WeakMap();
|
|
29025
|
+
var NodeIdGenerator = /*#__PURE__*/function () {
|
|
29026
|
+
function NodeIdGenerator(definitions) {
|
|
29027
|
+
_classCallCheck(this, NodeIdGenerator);
|
|
29028
|
+
_classPrivateFieldInitSpec(this, _generateDefinitionId, {
|
|
29029
|
+
writable: true,
|
|
29030
|
+
value: function value() {
|
|
29031
|
+
var _NodeIdGenerator$coun3, _NodeIdGenerator$coun4;
|
|
29032
|
+
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
29033
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun4 = _NodeIdGenerator$coun3++, _NodeIdGenerator$coun3)), _NodeIdGenerator$coun4;
|
|
29034
|
+
return id;
|
|
29035
|
+
}
|
|
29036
|
+
});
|
|
29037
|
+
_classPrivateFieldInitSpec(this, _generateDiagramId, {
|
|
29038
|
+
writable: true,
|
|
29039
|
+
value: function value() {
|
|
29040
|
+
var _NodeIdGenerator$diag3, _NodeIdGenerator$diag4;
|
|
29041
|
+
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter) + '_di';
|
|
29042
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag4 = _NodeIdGenerator$diag3++, _NodeIdGenerator$diag3)), _NodeIdGenerator$diag4;
|
|
29043
|
+
return id;
|
|
29044
|
+
}
|
|
29045
|
+
});
|
|
29046
|
+
_classPrivateFieldInitSpec(this, _generateProcessId, {
|
|
29047
|
+
writable: true,
|
|
29048
|
+
value: function value() {
|
|
29049
|
+
var _NodeIdGenerator$proc, _NodeIdGenerator$proc2;
|
|
29050
|
+
var id = NodeIdGenerator.processPrefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _processCounter);
|
|
29051
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _processCounter, (_NodeIdGenerator$proc = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _processCounter), _NodeIdGenerator$proc2 = _NodeIdGenerator$proc++, _NodeIdGenerator$proc)), _NodeIdGenerator$proc2;
|
|
29052
|
+
return id;
|
|
29053
|
+
}
|
|
29054
|
+
});
|
|
29055
|
+
this.definitions = definitions;
|
|
29056
|
+
this.refreshLastIdCounter();
|
|
29057
|
+
this.refreshLastDiagramIdCounter();
|
|
29058
|
+
this.refreshLastProcessIdCounter();
|
|
29059
|
+
}
|
|
29060
|
+
_createClass(NodeIdGenerator, [{
|
|
29061
|
+
key: "findById",
|
|
29062
|
+
value: function findById(id) {
|
|
29063
|
+
var _this = this;
|
|
29064
|
+
var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.definitions.rootElements;
|
|
29065
|
+
var walked = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
29066
|
+
if (walked.indexOf(root) > -1) return;
|
|
29067
|
+
var found;
|
|
29068
|
+
if (root instanceof Array) {
|
|
29069
|
+
walked.push(root);
|
|
29070
|
+
root.find(function (item) {
|
|
29071
|
+
return found = _this.findById(id, item, walked);
|
|
29072
|
+
});
|
|
29073
|
+
} else if (root instanceof Object && root.$type) {
|
|
29074
|
+
walked.push(root);
|
|
29075
|
+
if (root.id === id) return root;
|
|
29076
|
+
Object.getOwnPropertyNames(root).find(function (key) {
|
|
29077
|
+
return found = !(root[key] instanceof Function) && key.substring(0, 1) !== '$' && _this.findById(id, root[key], walked);
|
|
29078
|
+
});
|
|
29079
|
+
}
|
|
29080
|
+
return found;
|
|
29081
|
+
}
|
|
29082
|
+
}, {
|
|
29083
|
+
key: "matchIds",
|
|
29084
|
+
value: function matchIds(idRegex, root) {
|
|
29085
|
+
var _this2 = this;
|
|
29086
|
+
var walked = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
29087
|
+
var lastIdCounter = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
29088
|
+
if (walked.indexOf(root) > -1) return lastIdCounter;
|
|
29089
|
+
if (root instanceof Array) {
|
|
29090
|
+
walked.push(root);
|
|
29091
|
+
root.forEach(function (item) {
|
|
29092
|
+
return lastIdCounter = _this2.matchIds(idRegex, item, walked, lastIdCounter);
|
|
29093
|
+
});
|
|
29094
|
+
} else if (root instanceof Object) {
|
|
29095
|
+
walked.push(root);
|
|
29096
|
+
if (root.id) {
|
|
29097
|
+
var match = String(root.id).match(idRegex);
|
|
29098
|
+
var idCounter = match ? parseInt(match[1]) : 0;
|
|
29099
|
+
if (idCounter > lastIdCounter) {
|
|
29100
|
+
lastIdCounter = idCounter;
|
|
29101
|
+
}
|
|
29102
|
+
}
|
|
29103
|
+
Object.getOwnPropertyNames(root).forEach(function (key) {
|
|
29104
|
+
if (!(root[key] instanceof Function) && key.substring(0, 1) !== '$') {
|
|
29105
|
+
lastIdCounter = _this2.matchIds(idRegex, root[key], walked, lastIdCounter);
|
|
29106
|
+
}
|
|
29107
|
+
});
|
|
29108
|
+
}
|
|
29109
|
+
return lastIdCounter;
|
|
29110
|
+
}
|
|
29111
|
+
}, {
|
|
29112
|
+
key: "refreshLastIdCounter",
|
|
29113
|
+
value: function refreshLastIdCounter() {
|
|
29114
|
+
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.prefix, "(\\d+)$")), this.definitions.rootElements);
|
|
29115
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, lastIdCounter + 1);
|
|
29116
|
+
}
|
|
29117
|
+
}, {
|
|
29118
|
+
key: "getCounter",
|
|
29119
|
+
value: function getCounter() {
|
|
29120
|
+
this.refreshLastIdCounter();
|
|
29121
|
+
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
29122
|
+
}
|
|
29123
|
+
}, {
|
|
29124
|
+
key: "getDefinitionNumber",
|
|
29125
|
+
value: function getDefinitionNumber() {
|
|
29126
|
+
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
29127
|
+
}
|
|
29128
|
+
}, {
|
|
29129
|
+
key: "updateCounters",
|
|
29130
|
+
value: function updateCounters() {
|
|
29131
|
+
var _NodeIdGenerator$coun, _NodeIdGenerator$coun2, _NodeIdGenerator$diag, _NodeIdGenerator$diag2;
|
|
29132
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun2 = _NodeIdGenerator$coun++, _NodeIdGenerator$coun)), _NodeIdGenerator$coun2;
|
|
29133
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag2 = _NodeIdGenerator$diag++, _NodeIdGenerator$diag)), _NodeIdGenerator$diag2;
|
|
29134
|
+
}
|
|
29135
|
+
}, {
|
|
29136
|
+
key: "refreshLastDiagramIdCounter",
|
|
29137
|
+
value: function refreshLastDiagramIdCounter() {
|
|
29138
|
+
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.prefix, "(\\d+)_di$")), this.definitions.diagrams);
|
|
29139
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, lastIdCounter + 1);
|
|
29140
|
+
}
|
|
29141
|
+
}, {
|
|
29142
|
+
key: "refreshLastProcessIdCounter",
|
|
29143
|
+
value: function refreshLastProcessIdCounter() {
|
|
29144
|
+
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.processPrefix, "(\\d+)$")), this.definitions.rootElements);
|
|
29145
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _processCounter, lastIdCounter + 1);
|
|
29146
|
+
}
|
|
29147
|
+
}, {
|
|
29148
|
+
key: "generate",
|
|
29149
|
+
value: function generate() {
|
|
29150
|
+
var definitionId = _classPrivateFieldGet(this, _generateDefinitionId).call(this);
|
|
29151
|
+
var diagramId = _classPrivateFieldGet(this, _generateDiagramId).call(this);
|
|
29152
|
+
return [definitionId, diagramId];
|
|
29153
|
+
}
|
|
29154
|
+
}, {
|
|
29155
|
+
key: "generateProcessId",
|
|
29156
|
+
value: function generateProcessId() {
|
|
29157
|
+
return _classPrivateFieldGet(this, _generateProcessId).call(this);
|
|
29158
|
+
}
|
|
29159
|
+
}]);
|
|
29160
|
+
return NodeIdGenerator;
|
|
29161
|
+
}(); // Singleton instance
|
|
29162
|
+
_defineProperty(NodeIdGenerator, "prefix", 'node_');
|
|
29163
|
+
_defineProperty(NodeIdGenerator, "processPrefix", 'Process_');
|
|
29164
|
+
var _counter = {
|
|
29165
|
+
writable: true,
|
|
29166
|
+
value: 1
|
|
29167
|
+
};
|
|
29168
|
+
var _diagramCounter = {
|
|
29169
|
+
writable: true,
|
|
29170
|
+
value: 1
|
|
29171
|
+
};
|
|
29172
|
+
var _processCounter = {
|
|
29173
|
+
writable: true,
|
|
29174
|
+
value: 1
|
|
29175
|
+
};
|
|
29176
|
+
|
|
29177
|
+
var singleton = null;
|
|
29178
|
+
function getNodeIdGenerator(definitions) {
|
|
29179
|
+
if (!singleton) {
|
|
29180
|
+
singleton = new NodeIdGenerator(definitions);
|
|
29181
|
+
}
|
|
29182
|
+
return singleton;
|
|
29183
|
+
}
|
|
29184
|
+
;// 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/association/association.vue?vue&type=template&id=4ea32ce6&
|
|
29185
|
+
var render = function render() {
|
|
29186
|
+
var _vm = this,
|
|
29187
|
+
_c = _vm._self._c;
|
|
29188
|
+
return _c('crown-config', _vm._g({
|
|
29189
|
+
attrs: {
|
|
29190
|
+
"highlighted": _vm.highlighted,
|
|
29191
|
+
"paper": _vm.paper,
|
|
29192
|
+
"graph": _vm.graph,
|
|
29193
|
+
"shape": _vm.shape,
|
|
29194
|
+
"node": _vm.node,
|
|
29195
|
+
"nodeRegistry": _vm.nodeRegistry,
|
|
29196
|
+
"moddle": _vm.moddle,
|
|
29197
|
+
"collaboration": _vm.collaboration,
|
|
29198
|
+
"process-node": _vm.processNode,
|
|
29199
|
+
"plane-elements": _vm.planeElements,
|
|
29200
|
+
"is-rendering": _vm.isRendering
|
|
29201
|
+
}
|
|
29202
|
+
}, _vm.$listeners));
|
|
29203
|
+
};
|
|
29204
|
+
var staticRenderFns = [];
|
|
29205
|
+
|
|
29206
|
+
// EXTERNAL MODULE: external "jointjs"
|
|
29207
|
+
var external_jointjs_ = __webpack_require__(22811);
|
|
29208
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
29209
|
+
function _arrayLikeToArray(arr, len) {
|
|
29210
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
29211
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
29212
|
+
return arr2;
|
|
29213
|
+
}
|
|
29214
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
29215
|
+
|
|
29216
|
+
function _arrayWithoutHoles(arr) {
|
|
29217
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
29218
|
+
}
|
|
29219
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
29220
|
+
var es_array_from = __webpack_require__(91038);
|
|
29221
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
29222
|
+
|
|
29223
|
+
|
|
29224
|
+
|
|
29225
|
+
|
|
29226
|
+
|
|
29227
|
+
|
|
29228
|
+
|
|
29229
|
+
|
|
29230
|
+
function _iterableToArray(iter) {
|
|
29231
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
29232
|
+
}
|
|
29233
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js
|
|
29234
|
+
var es_regexp_test = __webpack_require__(77601);
|
|
29235
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
29236
|
+
|
|
29237
|
+
|
|
29238
|
+
|
|
29239
|
+
|
|
29240
|
+
|
|
29241
|
+
|
|
29242
|
+
|
|
29243
|
+
|
|
29244
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
29245
|
+
if (!o) return;
|
|
29246
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
29247
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
29248
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
29249
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
29250
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
29251
|
+
}
|
|
29252
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
29253
|
+
|
|
29254
|
+
function _nonIterableSpread() {
|
|
29255
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
29256
|
+
}
|
|
29257
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
29258
|
+
|
|
29259
|
+
|
|
29260
|
+
|
|
29261
|
+
|
|
29262
|
+
function _toConsumableArray(arr) {
|
|
29263
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
29264
|
+
}
|
|
28914
29265
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
28915
29266
|
var es_array_concat = __webpack_require__(92222);
|
|
28916
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
28917
|
-
var es_array_sort = __webpack_require__(2707);
|
|
28918
29267
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.to-json.js
|
|
28919
29268
|
var web_url_to_json = __webpack_require__(83753);
|
|
29269
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
29270
|
+
var es_array_map = __webpack_require__(21249);
|
|
29271
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
29272
|
+
var es_array_sort = __webpack_require__(2707);
|
|
29273
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
29274
|
+
var es_array_includes = __webpack_require__(26699);
|
|
28920
29275
|
// EXTERNAL MODULE: ./node_modules/lodash/get.js
|
|
28921
29276
|
var get = __webpack_require__(27361);
|
|
28922
29277
|
var get_default = /*#__PURE__*/__webpack_require__.n(get);
|
|
@@ -30199,54 +30554,6 @@ function getDefaultIconColor(node) {
|
|
|
30199
30554
|
var es_object_values = __webpack_require__(26833);
|
|
30200
30555
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
30201
30556
|
var es_array_filter = __webpack_require__(57327);
|
|
30202
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.to-primitive.js
|
|
30203
|
-
var es_symbol_to_primitive = __webpack_require__(96649);
|
|
30204
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.date.to-primitive.js
|
|
30205
|
-
var es_date_to_primitive = __webpack_require__(96078);
|
|
30206
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
30207
|
-
var es_number_constructor = __webpack_require__(9653);
|
|
30208
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
30209
|
-
|
|
30210
|
-
|
|
30211
|
-
|
|
30212
|
-
|
|
30213
|
-
|
|
30214
|
-
|
|
30215
|
-
|
|
30216
|
-
|
|
30217
|
-
function _toPrimitive(input, hint) {
|
|
30218
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
30219
|
-
var prim = input[Symbol.toPrimitive];
|
|
30220
|
-
if (prim !== undefined) {
|
|
30221
|
-
var res = prim.call(input, hint || "default");
|
|
30222
|
-
if (_typeof(res) !== "object") return res;
|
|
30223
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
30224
|
-
}
|
|
30225
|
-
return (hint === "string" ? String : Number)(input);
|
|
30226
|
-
}
|
|
30227
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
30228
|
-
|
|
30229
|
-
|
|
30230
|
-
function _toPropertyKey(arg) {
|
|
30231
|
-
var key = _toPrimitive(arg, "string");
|
|
30232
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
30233
|
-
}
|
|
30234
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
30235
|
-
|
|
30236
|
-
function _defineProperty(obj, key, value) {
|
|
30237
|
-
key = _toPropertyKey(key);
|
|
30238
|
-
if (key in obj) {
|
|
30239
|
-
Object.defineProperty(obj, key, {
|
|
30240
|
-
value: value,
|
|
30241
|
-
enumerable: true,
|
|
30242
|
-
configurable: true,
|
|
30243
|
-
writable: true
|
|
30244
|
-
});
|
|
30245
|
-
} else {
|
|
30246
|
-
obj[key] = value;
|
|
30247
|
-
}
|
|
30248
|
-
return obj;
|
|
30249
|
-
}
|
|
30250
30557
|
;// CONCATENATED MODULE: ./src/mixins/portsConfig.js
|
|
30251
30558
|
|
|
30252
30559
|
|
|
@@ -30543,8 +30850,6 @@ function _slicedToArray(arr, i) {
|
|
|
30543
30850
|
var es_object_has_own = __webpack_require__(46314);
|
|
30544
30851
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.entries.js
|
|
30545
30852
|
var es_object_entries = __webpack_require__(69720);
|
|
30546
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
30547
|
-
var es_array_includes = __webpack_require__(26699);
|
|
30548
30853
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
30549
30854
|
var es_string_includes = __webpack_require__(32023);
|
|
30550
30855
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
@@ -32003,6 +32308,7 @@ var COLOR_COMPLETED_FILL = '#D6FFE6';
|
|
|
32003
32308
|
|
|
32004
32309
|
|
|
32005
32310
|
|
|
32311
|
+
|
|
32006
32312
|
var endpoints = {
|
|
32007
32313
|
source: 'source',
|
|
32008
32314
|
target: 'target'
|
|
@@ -32014,6 +32320,7 @@ function isPoint(item) {
|
|
|
32014
32320
|
props: ['highlighted', 'paper', 'paperManager', 'isCompleted', 'isIdle'],
|
|
32015
32321
|
data: function data() {
|
|
32016
32322
|
return {
|
|
32323
|
+
linkView: null,
|
|
32017
32324
|
sourceShape: null,
|
|
32018
32325
|
target: null,
|
|
32019
32326
|
listeningToMouseup: false,
|
|
@@ -32169,20 +32476,37 @@ function isPoint(item) {
|
|
|
32169
32476
|
storeWaypoints: function storeWaypoints() {
|
|
32170
32477
|
var _this4 = this;
|
|
32171
32478
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32479
|
+
var nodeType, sourceRefId, targetRefId, changes;
|
|
32172
32480
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32173
32481
|
while (1) switch (_context.prev = _context.next) {
|
|
32174
32482
|
case 0:
|
|
32175
32483
|
if (!(_this4.highlighted && !_this4.listeningToMouseleave)) {
|
|
32176
|
-
_context.next =
|
|
32484
|
+
_context.next = 7;
|
|
32177
32485
|
break;
|
|
32178
32486
|
}
|
|
32179
32487
|
_this4.updateWaypoints();
|
|
32180
32488
|
_context.next = 4;
|
|
32181
32489
|
return _this4.$nextTick();
|
|
32182
32490
|
case 4:
|
|
32491
|
+
if (_this4.$parent.isMultiplayer && _this4.linkView) {
|
|
32492
|
+
// update waypoints in multiplayer mode
|
|
32493
|
+
nodeType = _this4.linkView.model.component.node.type;
|
|
32494
|
+
sourceRefId = _this4.linkView.sourceView.model.component.node.definition.id;
|
|
32495
|
+
targetRefId = _this4.linkView.targetView.model.component.node.definition.id;
|
|
32496
|
+
changes = [{
|
|
32497
|
+
id: _this4.linkView.model.component.node.definition.id,
|
|
32498
|
+
properties: {
|
|
32499
|
+
type: nodeType,
|
|
32500
|
+
waypoint: [_this4.linkView.sourceAnchor.toJSON()].concat(_toConsumableArray(_this4.shape.vertices()), [_this4.linkView.targetAnchor.toJSON()]),
|
|
32501
|
+
sourceRefId: sourceRefId,
|
|
32502
|
+
targetRefId: targetRefId
|
|
32503
|
+
}
|
|
32504
|
+
}];
|
|
32505
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-updateNodes', changes);
|
|
32506
|
+
}
|
|
32183
32507
|
_this4.listeningToMouseleave = true;
|
|
32184
32508
|
_this4.$emit('save-state');
|
|
32185
|
-
case
|
|
32509
|
+
case 7:
|
|
32186
32510
|
case "end":
|
|
32187
32511
|
return _context.stop();
|
|
32188
32512
|
}
|
|
@@ -32201,8 +32525,8 @@ function isPoint(item) {
|
|
|
32201
32525
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32202
32526
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32203
32527
|
case 0:
|
|
32204
|
-
if (!(options && options.ui)) {
|
|
32205
|
-
_context2.next =
|
|
32528
|
+
if (!(options !== null && options !== void 0 && options.ui)) {
|
|
32529
|
+
_context2.next = 8;
|
|
32206
32530
|
break;
|
|
32207
32531
|
}
|
|
32208
32532
|
_context2.next = 3;
|
|
@@ -32211,9 +32535,10 @@ function isPoint(item) {
|
|
|
32211
32535
|
_context2.next = 5;
|
|
32212
32536
|
return _this5.waitForUpdateWaypoints();
|
|
32213
32537
|
case 5:
|
|
32214
|
-
|
|
32538
|
+
_this5.listeningToMouseleave = false;
|
|
32539
|
+
_context2.next = 8;
|
|
32215
32540
|
return _this5.storeWaypoints();
|
|
32216
|
-
case
|
|
32541
|
+
case 8:
|
|
32217
32542
|
case "end":
|
|
32218
32543
|
return _context2.stop();
|
|
32219
32544
|
}
|
|
@@ -32226,7 +32551,7 @@ function isPoint(item) {
|
|
|
32226
32551
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32227
32552
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32228
32553
|
case 0:
|
|
32229
|
-
if (!(options && options.ui)) {
|
|
32554
|
+
if (!(options !== null && options !== void 0 && options.ui)) {
|
|
32230
32555
|
_context3.next = 6;
|
|
32231
32556
|
break;
|
|
32232
32557
|
}
|
|
@@ -32245,9 +32570,9 @@ function isPoint(item) {
|
|
|
32245
32570
|
},
|
|
32246
32571
|
updateWaypoints: function updateWaypoints() {
|
|
32247
32572
|
var _this7 = this;
|
|
32248
|
-
|
|
32249
|
-
var start = linkView.sourceAnchor;
|
|
32250
|
-
var end = linkView.targetAnchor;
|
|
32573
|
+
this.linkView = this.shape.findView(this.paper);
|
|
32574
|
+
var start = this.linkView.sourceAnchor;
|
|
32575
|
+
var end = this.linkView.targetAnchor;
|
|
32251
32576
|
this.node.diagram.waypoint = [start].concat(_toConsumableArray(this.shape.vertices()), [end]).map(function (point) {
|
|
32252
32577
|
return _this7.moddle.create('dc:Point', point);
|
|
32253
32578
|
});
|
|
@@ -32292,18 +32617,8 @@ function isPoint(item) {
|
|
|
32292
32617
|
if (_this8.updateDefinitionLinks) {
|
|
32293
32618
|
_this8.updateDefinitionLinks();
|
|
32294
32619
|
}
|
|
32295
|
-
if (_this8.
|
|
32296
|
-
|
|
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
|
-
}
|
|
32620
|
+
if (_this8.linkView && ['processmaker-modeler-association', 'processmaker-modeler-data-input-association'].includes(_this8.shape.component.node.type)) {
|
|
32621
|
+
_this8.$parent.multiplayerHook(_this8.shape.component.node, false);
|
|
32307
32622
|
}
|
|
32308
32623
|
_this8.$emit('save-state');
|
|
32309
32624
|
});
|
|
@@ -32461,11 +32776,25 @@ function isPoint(item) {
|
|
|
32461
32776
|
;// CONCATENATED MODULE: ./src/assets/association-head.svg
|
|
32462
32777
|
var association_head_namespaceObject = __webpack_require__.p + "img/association-head.0b14da7b.svg";
|
|
32463
32778
|
;// CONCATENATED MODULE: ./src/components/nodes/association/associationConfig.js
|
|
32779
|
+
var associationConfig_id = 'processmaker-modeler-association';
|
|
32780
|
+
var bpmnType = 'bpmn:Association';
|
|
32464
32781
|
var direction = {
|
|
32465
32782
|
none: 'None',
|
|
32466
32783
|
one: 'One',
|
|
32467
32784
|
both: 'Both'
|
|
32468
32785
|
};
|
|
32786
|
+
function definition(moddle) {
|
|
32787
|
+
return moddle.create(bpmnType, {
|
|
32788
|
+
associationDirection: direction.none,
|
|
32789
|
+
targetRef: {
|
|
32790
|
+
x: undefined,
|
|
32791
|
+
y: undefined
|
|
32792
|
+
}
|
|
32793
|
+
});
|
|
32794
|
+
}
|
|
32795
|
+
function associationConfig_diagram(moddle) {
|
|
32796
|
+
return moddle.create('bpmndi:BPMNEdge');
|
|
32797
|
+
}
|
|
32469
32798
|
;// 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/crownConfig/crownConfig.vue?vue&type=template&id=1e4b9bf1&
|
|
32470
32799
|
var crownConfigvue_type_template_id_1e4b9bf1_render = function render() {
|
|
32471
32800
|
var _vm = this,
|
|
@@ -32878,8 +33207,8 @@ var external_lodash_ = __webpack_require__(50467);
|
|
|
32878
33207
|
var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_);
|
|
32879
33208
|
;// CONCATENATED MODULE: ./src/components/nodes/dataOutputAssociation/config.js
|
|
32880
33209
|
var config_id = 'processmaker-modeler-data-output-association';
|
|
32881
|
-
var
|
|
32882
|
-
function
|
|
33210
|
+
var config_bpmnType = 'bpmn:DataOutputAssociation';
|
|
33211
|
+
function config_definition(moddle) {
|
|
32883
33212
|
return moddle.create('bpmn:DataOutputAssociation', {
|
|
32884
33213
|
targetRef: {
|
|
32885
33214
|
x: undefined,
|
|
@@ -32892,8 +33221,8 @@ function config_diagram(moddle) {
|
|
|
32892
33221
|
}
|
|
32893
33222
|
;// CONCATENATED MODULE: ./src/components/nodes/dataInputAssociation/config.js
|
|
32894
33223
|
var dataInputAssociation_config_id = 'processmaker-modeler-data-input-association';
|
|
32895
|
-
var
|
|
32896
|
-
function
|
|
33224
|
+
var dataInputAssociation_config_bpmnType = 'bpmn:DataInputAssociation';
|
|
33225
|
+
function dataInputAssociation_config_definition(moddle) {
|
|
32897
33226
|
return moddle.create('bpmn:DataInputAssociation', {
|
|
32898
33227
|
targetRef: {
|
|
32899
33228
|
x: undefined,
|
|
@@ -32901,7 +33230,7 @@ function config_definition(moddle) {
|
|
|
32901
33230
|
}
|
|
32902
33231
|
});
|
|
32903
33232
|
}
|
|
32904
|
-
function
|
|
33233
|
+
function dataInputAssociation_config_diagram(moddle) {
|
|
32905
33234
|
return moddle.create('bpmndi:BPMNEdge');
|
|
32906
33235
|
}
|
|
32907
33236
|
;// CONCATENATED MODULE: ./src/components/crown/utils.js
|
|
@@ -32981,19 +33310,21 @@ function removeBoundaryEvents(graph, node, removeNode) {
|
|
|
32981
33310
|
var nodeShape = graph.getCells().find(function (el) {
|
|
32982
33311
|
return el.component && el.component.node === node;
|
|
32983
33312
|
});
|
|
32984
|
-
nodeShape
|
|
32985
|
-
|
|
32986
|
-
|
|
32987
|
-
|
|
32988
|
-
|
|
32989
|
-
|
|
32990
|
-
|
|
33313
|
+
if (nodeShape) {
|
|
33314
|
+
nodeShape.getEmbeddedCells({
|
|
33315
|
+
deep: true
|
|
33316
|
+
}).filter(function (cell) {
|
|
33317
|
+
return cell.component && cell.component.node.isBpmnType('bpmn:BoundaryEvent');
|
|
33318
|
+
}).forEach(function (boundaryEventShape) {
|
|
33319
|
+
graph.getConnectedLinks(boundaryEventShape).forEach(function (shape) {
|
|
33320
|
+
return removeNode(shape.component.node);
|
|
33321
|
+
});
|
|
33322
|
+
removeNode(boundaryEventShape.component.node);
|
|
32991
33323
|
});
|
|
32992
|
-
|
|
32993
|
-
});
|
|
33324
|
+
}
|
|
32994
33325
|
}
|
|
32995
33326
|
function removeOutgoingAndIncomingRefsToFlow(node) {
|
|
32996
|
-
if (node.isBpmnType(
|
|
33327
|
+
if (node.isBpmnType(config_bpmnType, dataInputAssociation_config_bpmnType)) {
|
|
32997
33328
|
return;
|
|
32998
33329
|
}
|
|
32999
33330
|
|
|
@@ -33300,32 +33631,6 @@ function _objectSpread2(target) {
|
|
|
33300
33631
|
}
|
|
33301
33632
|
return target;
|
|
33302
33633
|
}
|
|
33303
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
33304
|
-
|
|
33305
|
-
function _classCallCheck(instance, Constructor) {
|
|
33306
|
-
if (!(instance instanceof Constructor)) {
|
|
33307
|
-
throw new TypeError("Cannot call a class as a function");
|
|
33308
|
-
}
|
|
33309
|
-
}
|
|
33310
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
33311
|
-
|
|
33312
|
-
function _defineProperties(target, props) {
|
|
33313
|
-
for (var i = 0; i < props.length; i++) {
|
|
33314
|
-
var descriptor = props[i];
|
|
33315
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
33316
|
-
descriptor.configurable = true;
|
|
33317
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33318
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
33319
|
-
}
|
|
33320
|
-
}
|
|
33321
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
33322
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
33323
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
33324
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
33325
|
-
writable: false
|
|
33326
|
-
});
|
|
33327
|
-
return Constructor;
|
|
33328
|
-
}
|
|
33329
33634
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
33330
33635
|
var es_string_replace = __webpack_require__(15306);
|
|
33331
33636
|
;// CONCATENATED MODULE: ./src/components/nodes/baseStartEvent/defaultNames.js
|
|
@@ -36302,24 +36607,51 @@ var idConfigSettings = {
|
|
|
36302
36607
|
validation: 'required|regex:/^[_A-Za-z][-._A-Za-z0-9]*$/'
|
|
36303
36608
|
};
|
|
36304
36609
|
/* harmony default export */ var inspectors_idConfigSettings = (idConfigSettings);
|
|
36610
|
+
;// CONCATENATED MODULE: ./src/components/nodes/association/AssociationFlow.js
|
|
36611
|
+
|
|
36612
|
+
|
|
36613
|
+
|
|
36614
|
+
|
|
36615
|
+
|
|
36616
|
+
var AssociationFlow = /*#__PURE__*/function () {
|
|
36617
|
+
function AssociationFlow(nodeRegistry, moddle, paper) {
|
|
36618
|
+
_classCallCheck(this, AssociationFlow);
|
|
36619
|
+
this.nodeRegistry = nodeRegistry;
|
|
36620
|
+
this.moddle = moddle;
|
|
36621
|
+
this.paper = paper;
|
|
36622
|
+
}
|
|
36623
|
+
_createClass(AssociationFlow, [{
|
|
36624
|
+
key: "makeFlowNode",
|
|
36625
|
+
value: function makeFlowNode(sourceShape, targetShape, waypoint) {
|
|
36626
|
+
var _this = this;
|
|
36627
|
+
var diagram = associationConfig_diagram(this.moddle);
|
|
36628
|
+
var associationFlow = definition(this.moddle);
|
|
36629
|
+
associationFlow.set('sourceRef', sourceShape.component.node.definition);
|
|
36630
|
+
associationFlow.set('targetRef', targetShape.component.node.definition);
|
|
36631
|
+
diagram.waypoint = waypoint.map(function (point) {
|
|
36632
|
+
return _this.moddle.create('dc:Point', point);
|
|
36633
|
+
});
|
|
36634
|
+
var node = new Node(associationConfig_id, associationFlow, diagram);
|
|
36635
|
+
return node;
|
|
36636
|
+
}
|
|
36637
|
+
}]);
|
|
36638
|
+
return AssociationFlow;
|
|
36639
|
+
}();
|
|
36305
36640
|
;// CONCATENATED MODULE: ./src/components/nodes/association/index.js
|
|
36306
36641
|
|
|
36307
36642
|
|
|
36308
36643
|
|
|
36309
|
-
|
|
36644
|
+
|
|
36645
|
+
|
|
36646
|
+
|
|
36647
|
+
|
|
36310
36648
|
/* harmony default export */ var nodes_association = ({
|
|
36311
|
-
id:
|
|
36649
|
+
id: associationConfig_id,
|
|
36312
36650
|
component: association,
|
|
36313
|
-
bpmnType:
|
|
36651
|
+
bpmnType: bpmnType,
|
|
36314
36652
|
control: false,
|
|
36315
|
-
definition:
|
|
36316
|
-
|
|
36317
|
-
associationDirection: "".concat(direction.none)
|
|
36318
|
-
});
|
|
36319
|
-
},
|
|
36320
|
-
diagram: function diagram(moddle) {
|
|
36321
|
-
return moddle.create('bpmndi:BPMNEdge');
|
|
36322
|
-
},
|
|
36653
|
+
definition: definition,
|
|
36654
|
+
diagram: associationConfig_diagram,
|
|
36323
36655
|
inspectorConfig: [{
|
|
36324
36656
|
name: 'Data Association',
|
|
36325
36657
|
items: [{
|
|
@@ -36353,7 +36685,30 @@ var association_id = 'processmaker-modeler-association';
|
|
|
36353
36685
|
}
|
|
36354
36686
|
}]
|
|
36355
36687
|
}]
|
|
36356
|
-
}]
|
|
36688
|
+
}],
|
|
36689
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
36690
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36691
|
+
var paper, sourceElem, targetElem, flow, actualFlow, nodeIdIterator;
|
|
36692
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
36693
|
+
while (1) switch (_context.prev = _context.next) {
|
|
36694
|
+
case 0:
|
|
36695
|
+
paper = modeler.paper;
|
|
36696
|
+
sourceElem = modeler.getElementByNodeId(data.sourceRefId);
|
|
36697
|
+
targetElem = modeler.getElementByNodeId(data.targetRefId);
|
|
36698
|
+
if (sourceElem && targetElem) {
|
|
36699
|
+
flow = new AssociationFlow(modeler.nodeRegistry, modeler.moddle, paper);
|
|
36700
|
+
actualFlow = flow.makeFlowNode(sourceElem, targetElem, data.waypoint); // add Nodes
|
|
36701
|
+
modeler.addNode(actualFlow, data.id, true);
|
|
36702
|
+
nodeIdIterator = getNodeIdGenerator(modeler.definitions);
|
|
36703
|
+
nodeIdIterator.updateCounters();
|
|
36704
|
+
}
|
|
36705
|
+
case 4:
|
|
36706
|
+
case "end":
|
|
36707
|
+
return _context.stop();
|
|
36708
|
+
}
|
|
36709
|
+
}, _callee);
|
|
36710
|
+
}))();
|
|
36711
|
+
}
|
|
36357
36712
|
});
|
|
36358
36713
|
;// 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/endEvent/endEvent.vue?vue&type=template&id=5b9ad491&
|
|
36359
36714
|
var endEventvue_type_template_id_5b9ad491_render = function render() {
|
|
@@ -38415,6 +38770,10 @@ var sequenceFlow_component = normalizeComponent(
|
|
|
38415
38770
|
|
|
38416
38771
|
|
|
38417
38772
|
|
|
38773
|
+
|
|
38774
|
+
|
|
38775
|
+
|
|
38776
|
+
|
|
38418
38777
|
var sequenceFlow_id = 'processmaker-modeler-sequence-flow';
|
|
38419
38778
|
/* harmony default export */ var nodes_sequenceFlow = ({
|
|
38420
38779
|
id: sequenceFlow_id,
|
|
@@ -38489,7 +38848,30 @@ var sequenceFlow_id = 'processmaker-modeler-sequence-flow';
|
|
|
38489
38848
|
})
|
|
38490
38849
|
}]
|
|
38491
38850
|
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
38492
|
-
}]
|
|
38851
|
+
}],
|
|
38852
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
38853
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
38854
|
+
var paper, sourceElem, targetElem, flow, actualFlow, nodeIdereator;
|
|
38855
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
38856
|
+
while (1) switch (_context.prev = _context.next) {
|
|
38857
|
+
case 0:
|
|
38858
|
+
paper = modeler.paper;
|
|
38859
|
+
sourceElem = modeler.getElementByNodeId(data.sourceRefId);
|
|
38860
|
+
targetElem = modeler.getElementByNodeId(data.targetRefId);
|
|
38861
|
+
if (sourceElem && targetElem) {
|
|
38862
|
+
flow = new SequenceFlow(modeler.nodeRegistry, modeler.moddle, paper);
|
|
38863
|
+
actualFlow = flow.makeFlowNode(sourceElem, targetElem, data.waypoint); // add Nodes
|
|
38864
|
+
modeler.addNode(actualFlow, data.id, true);
|
|
38865
|
+
nodeIdereator = getNodeIdGenerator(modeler.definitions);
|
|
38866
|
+
nodeIdereator.updateCounters();
|
|
38867
|
+
}
|
|
38868
|
+
case 4:
|
|
38869
|
+
case "end":
|
|
38870
|
+
return _context.stop();
|
|
38871
|
+
}
|
|
38872
|
+
}, _callee);
|
|
38873
|
+
}))();
|
|
38874
|
+
}
|
|
38493
38875
|
});
|
|
38494
38876
|
;// 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
38877
|
var messageFlowvue_type_template_id_2025c58d_render = function render() {
|
|
@@ -38673,6 +39055,10 @@ var messageFlow_config_id = 'processmaker-modeler-message-flow';
|
|
|
38673
39055
|
|
|
38674
39056
|
|
|
38675
39057
|
|
|
39058
|
+
|
|
39059
|
+
|
|
39060
|
+
|
|
39061
|
+
|
|
38676
39062
|
/* harmony default export */ var nodes_messageFlow = ({
|
|
38677
39063
|
id: messageFlow_config_id,
|
|
38678
39064
|
component: messageFlow,
|
|
@@ -38702,7 +39088,30 @@ var messageFlow_config_id = 'processmaker-modeler-message-flow';
|
|
|
38702
39088
|
config: inspectors_nameConfigSettings
|
|
38703
39089
|
}]
|
|
38704
39090
|
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
38705
|
-
}]
|
|
39091
|
+
}],
|
|
39092
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
39093
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
39094
|
+
var paper, sourceElem, targetElem, flow, actualFlow, nodeIdereator;
|
|
39095
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
39096
|
+
while (1) switch (_context.prev = _context.next) {
|
|
39097
|
+
case 0:
|
|
39098
|
+
paper = modeler.paper;
|
|
39099
|
+
sourceElem = modeler.getElementByNodeId(data.sourceRefId);
|
|
39100
|
+
targetElem = modeler.getElementByNodeId(data.targetRefId);
|
|
39101
|
+
if (sourceElem && targetElem) {
|
|
39102
|
+
flow = new MessageFlow(modeler.nodeRegistry, modeler.moddle, paper);
|
|
39103
|
+
actualFlow = flow.makeFlowNode(sourceElem, targetElem, data.waypoint); // add Nodes
|
|
39104
|
+
modeler.addNode(actualFlow, data.id, true);
|
|
39105
|
+
nodeIdereator = getNodeIdGenerator(modeler.definitions);
|
|
39106
|
+
nodeIdereator.updateCounters();
|
|
39107
|
+
}
|
|
39108
|
+
case 4:
|
|
39109
|
+
case "end":
|
|
39110
|
+
return _context.stop();
|
|
39111
|
+
}
|
|
39112
|
+
}, _callee);
|
|
39113
|
+
}))();
|
|
39114
|
+
}
|
|
38706
39115
|
});
|
|
38707
39116
|
// EXTERNAL MODULE: ./node_modules/svg-inline-loader/index.js!./src/assets/message-end-event.svg
|
|
38708
39117
|
var message_end_event = __webpack_require__(18256);
|
|
@@ -39016,8 +39425,6 @@ var MessageSelectvue_type_template_id_395d11da_scoped_true_staticRenderFns = [];
|
|
|
39016
39425
|
|
|
39017
39426
|
;// CONCATENATED MODULE: ./src/components/inspectors/MessageSelect.vue?vue&type=template&id=395d11da&scoped=true&
|
|
39018
39427
|
|
|
39019
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
|
39020
|
-
var es_string_match = __webpack_require__(4723);
|
|
39021
39428
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
|
|
39022
39429
|
var es_array_find_index = __webpack_require__(34553);
|
|
39023
39430
|
;// 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 +44354,6 @@ var LoopCharacteristics_component = normalizeComponent(
|
|
|
43947
44354
|
/* harmony default export */ var LoopCharacteristics = (LoopCharacteristics_component.exports);
|
|
43948
44355
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
43949
44356
|
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
44357
|
;// CONCATENATED MODULE: ./src/NodeInspector.js
|
|
44228
44358
|
|
|
44229
44359
|
|
|
@@ -45480,8 +45610,8 @@ var textAnnotation_id = 'processmaker-modeler-text-annotation';
|
|
|
45480
45610
|
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
45481
45611
|
}]
|
|
45482
45612
|
});
|
|
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
|
|
45613
|
+
;// 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&
|
|
45614
|
+
var poolvue_type_template_id_fbed1670_render = function render() {
|
|
45485
45615
|
var _vm = this,
|
|
45486
45616
|
_c = _vm._self._c;
|
|
45487
45617
|
return _c('crown-config', _vm._g({
|
|
@@ -45534,7 +45664,7 @@ var poolvue_type_template_id_294eae13_render = function render() {
|
|
|
45534
45664
|
}
|
|
45535
45665
|
})], 1);
|
|
45536
45666
|
};
|
|
45537
|
-
var
|
|
45667
|
+
var poolvue_type_template_id_fbed1670_staticRenderFns = [];
|
|
45538
45668
|
|
|
45539
45669
|
;// CONCATENATED MODULE: ./src/assets/highlight-shape.svg
|
|
45540
45670
|
var highlight_shape_namespaceObject = __webpack_require__.p + "img/highlight-shape.5f7b1ba9.svg";
|
|
@@ -46180,176 +46310,6 @@ var poolLane_component = normalizeComponent(
|
|
|
46180
46310
|
)
|
|
46181
46311
|
|
|
46182
46312
|
/* 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
46313
|
;// CONCATENATED MODULE: ./src/components/nodes/pool/poolShape.js
|
|
46354
46314
|
|
|
46355
46315
|
|
|
@@ -46758,6 +46718,227 @@ function configurePool(collaboration, node, graph) {
|
|
|
46758
46718
|
function elementShouldHaveFlowNodeRef(element) {
|
|
46759
46719
|
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
46720
|
}
|
|
46721
|
+
;// CONCATENATED MODULE: ./src/components/nodes/poolLane/index.js
|
|
46722
|
+
|
|
46723
|
+
|
|
46724
|
+
|
|
46725
|
+
|
|
46726
|
+
|
|
46727
|
+
|
|
46728
|
+
|
|
46729
|
+
|
|
46730
|
+
|
|
46731
|
+
|
|
46732
|
+
|
|
46733
|
+
|
|
46734
|
+
|
|
46735
|
+
|
|
46736
|
+
|
|
46737
|
+
/* harmony default export */ var nodes_poolLane = ({
|
|
46738
|
+
id: poolLane_config_id,
|
|
46739
|
+
component: poolLane,
|
|
46740
|
+
bpmnType: 'bpmn:Lane',
|
|
46741
|
+
control: false,
|
|
46742
|
+
category: 'BPMN',
|
|
46743
|
+
label: 'Lane',
|
|
46744
|
+
definition: function definition(moddle) {
|
|
46745
|
+
return moddle.create('bpmn:Lane', {
|
|
46746
|
+
name: ''
|
|
46747
|
+
});
|
|
46748
|
+
},
|
|
46749
|
+
diagram: function diagram(moddle) {
|
|
46750
|
+
return moddle.create('bpmndi:BPMNShape', {
|
|
46751
|
+
bounds: moddle.create('dc:Bounds', {
|
|
46752
|
+
height: 150,
|
|
46753
|
+
width: 600,
|
|
46754
|
+
x: null,
|
|
46755
|
+
y: null
|
|
46756
|
+
})
|
|
46757
|
+
});
|
|
46758
|
+
},
|
|
46759
|
+
inspectorConfig: [{
|
|
46760
|
+
name: 'Lane',
|
|
46761
|
+
items: [{
|
|
46762
|
+
component: 'FormAccordion',
|
|
46763
|
+
container: true,
|
|
46764
|
+
config: {
|
|
46765
|
+
initiallyOpen: true,
|
|
46766
|
+
label: 'Properties',
|
|
46767
|
+
icon: 'cog',
|
|
46768
|
+
name: 'inspector-accordion-pool-lane'
|
|
46769
|
+
},
|
|
46770
|
+
items: [{
|
|
46771
|
+
component: 'FormInput',
|
|
46772
|
+
config: inspectors_nameConfigSettings
|
|
46773
|
+
}]
|
|
46774
|
+
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
46775
|
+
}],
|
|
46776
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
46777
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
46778
|
+
var pool, definition, nodeIdereator, diagram, node;
|
|
46779
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
46780
|
+
while (1) switch (_context.prev = _context.next) {
|
|
46781
|
+
case 0:
|
|
46782
|
+
pool = modeler.getElementByNodeId(data.poolId);
|
|
46783
|
+
definition = modeler.moddle.create('bpmn:Lane', {
|
|
46784
|
+
name: data.name
|
|
46785
|
+
});
|
|
46786
|
+
if (!pool.component.laneSet && pool.component.createLaneSet) {
|
|
46787
|
+
pool.component.createLaneSet([data.laneSetId]);
|
|
46788
|
+
/* If there are currently elements in the pool, add them to the first lane */
|
|
46789
|
+
pool.component.shape.getEmbeddedCells().filter(function (element) {
|
|
46790
|
+
return elementShouldHaveFlowNodeRef(element);
|
|
46791
|
+
}).forEach(function (element) {
|
|
46792
|
+
definition.get('flowNodeRef').push(element.component.node.definition);
|
|
46793
|
+
});
|
|
46794
|
+
nodeIdereator = getNodeIdGenerator(modeler.definitions);
|
|
46795
|
+
nodeIdereator.updateCounters();
|
|
46796
|
+
}
|
|
46797
|
+
diagram = modeler.moddle.create('bpmndi:BPMNShape', {
|
|
46798
|
+
bounds: modeler.moddle.create('dc:Bounds', {
|
|
46799
|
+
height: data.height,
|
|
46800
|
+
width: data.width,
|
|
46801
|
+
x: data.x,
|
|
46802
|
+
y: data.y
|
|
46803
|
+
})
|
|
46804
|
+
});
|
|
46805
|
+
node = new Node(data.type, definition, diagram);
|
|
46806
|
+
_context.next = 7;
|
|
46807
|
+
return modeler.addNode(node, data.id, true);
|
|
46808
|
+
case 7:
|
|
46809
|
+
modeler.setShapeStacking(pool.component.shape);
|
|
46810
|
+
case 8:
|
|
46811
|
+
case "end":
|
|
46812
|
+
return _context.stop();
|
|
46813
|
+
}
|
|
46814
|
+
}, _callee);
|
|
46815
|
+
}))();
|
|
46816
|
+
}
|
|
46817
|
+
});
|
|
46818
|
+
;// 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&
|
|
46819
|
+
var addLaneAboveButtonvue_type_template_id_fc69b4f4_render = function render() {
|
|
46820
|
+
var _vm = this,
|
|
46821
|
+
_c = _vm._self._c;
|
|
46822
|
+
return _c('crown-button', _vm._g({
|
|
46823
|
+
attrs: {
|
|
46824
|
+
"id": "lane-above-button",
|
|
46825
|
+
"aria-label": "Add lane above icon",
|
|
46826
|
+
"width": 25
|
|
46827
|
+
}
|
|
46828
|
+
}, _vm.$listeners), [_c('font-awesome-icon', {
|
|
46829
|
+
attrs: {
|
|
46830
|
+
"icon": ['fpm', 'fa-lane-above']
|
|
46831
|
+
}
|
|
46832
|
+
})], 1);
|
|
46833
|
+
};
|
|
46834
|
+
var addLaneAboveButtonvue_type_template_id_fc69b4f4_staticRenderFns = [];
|
|
46835
|
+
|
|
46836
|
+
;// CONCATENATED MODULE: ./src/assets/lane-above.svg
|
|
46837
|
+
var lane_above_namespaceObject = __webpack_require__.p + "img/lane-above.37ee2b80.svg";
|
|
46838
|
+
;// 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&
|
|
46839
|
+
|
|
46840
|
+
|
|
46841
|
+
|
|
46842
|
+
|
|
46843
|
+
|
|
46844
|
+
/* harmony default export */ var addLaneAboveButtonvue_type_script_lang_js_ = ({
|
|
46845
|
+
components: {
|
|
46846
|
+
CrownButton: crownButton,
|
|
46847
|
+
FontAwesomeIcon: vue_fontawesome_.FontAwesomeIcon
|
|
46848
|
+
},
|
|
46849
|
+
data: function data() {
|
|
46850
|
+
return {
|
|
46851
|
+
laneAboveIcon: lane_above_namespaceObject
|
|
46852
|
+
};
|
|
46853
|
+
},
|
|
46854
|
+
created: function created() {
|
|
46855
|
+
fontawesome_svg_core_.library.add(faLaneAbove);
|
|
46856
|
+
}
|
|
46857
|
+
});
|
|
46858
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneAboveButton.vue?vue&type=script&lang=js&
|
|
46859
|
+
/* harmony default export */ var crownButtons_addLaneAboveButtonvue_type_script_lang_js_ = (addLaneAboveButtonvue_type_script_lang_js_);
|
|
46860
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneAboveButton.vue
|
|
46861
|
+
|
|
46862
|
+
|
|
46863
|
+
|
|
46864
|
+
|
|
46865
|
+
|
|
46866
|
+
/* normalize component */
|
|
46867
|
+
;
|
|
46868
|
+
var addLaneAboveButton_component = normalizeComponent(
|
|
46869
|
+
crownButtons_addLaneAboveButtonvue_type_script_lang_js_,
|
|
46870
|
+
addLaneAboveButtonvue_type_template_id_fc69b4f4_render,
|
|
46871
|
+
addLaneAboveButtonvue_type_template_id_fc69b4f4_staticRenderFns,
|
|
46872
|
+
false,
|
|
46873
|
+
null,
|
|
46874
|
+
null,
|
|
46875
|
+
null
|
|
46876
|
+
|
|
46877
|
+
)
|
|
46878
|
+
|
|
46879
|
+
/* harmony default export */ var addLaneAboveButton = (addLaneAboveButton_component.exports);
|
|
46880
|
+
;// 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&
|
|
46881
|
+
var addLaneBelowButtonvue_type_template_id_4b1af748_render = function render() {
|
|
46882
|
+
var _vm = this,
|
|
46883
|
+
_c = _vm._self._c;
|
|
46884
|
+
return _c('crown-button', _vm._g({
|
|
46885
|
+
attrs: {
|
|
46886
|
+
"id": "lane-below-button",
|
|
46887
|
+
"aria-label": "Add lane below icon",
|
|
46888
|
+
"width": 25
|
|
46889
|
+
}
|
|
46890
|
+
}, _vm.$listeners), [_c('font-awesome-icon', {
|
|
46891
|
+
attrs: {
|
|
46892
|
+
"icon": ['fpm', 'fa-lane-below']
|
|
46893
|
+
}
|
|
46894
|
+
})], 1);
|
|
46895
|
+
};
|
|
46896
|
+
var addLaneBelowButtonvue_type_template_id_4b1af748_staticRenderFns = [];
|
|
46897
|
+
|
|
46898
|
+
;// CONCATENATED MODULE: ./src/assets/lane-below.svg
|
|
46899
|
+
var lane_below_namespaceObject = __webpack_require__.p + "img/lane-below.22169670.svg";
|
|
46900
|
+
;// 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&
|
|
46901
|
+
|
|
46902
|
+
|
|
46903
|
+
|
|
46904
|
+
|
|
46905
|
+
|
|
46906
|
+
/* harmony default export */ var addLaneBelowButtonvue_type_script_lang_js_ = ({
|
|
46907
|
+
components: {
|
|
46908
|
+
CrownButton: crownButton,
|
|
46909
|
+
FontAwesomeIcon: vue_fontawesome_.FontAwesomeIcon
|
|
46910
|
+
},
|
|
46911
|
+
data: function data() {
|
|
46912
|
+
return {
|
|
46913
|
+
laneBelowIcon: lane_below_namespaceObject
|
|
46914
|
+
};
|
|
46915
|
+
},
|
|
46916
|
+
created: function created() {
|
|
46917
|
+
fontawesome_svg_core_.library.add(faLaneBelow);
|
|
46918
|
+
}
|
|
46919
|
+
});
|
|
46920
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneBelowButton.vue?vue&type=script&lang=js&
|
|
46921
|
+
/* harmony default export */ var crownButtons_addLaneBelowButtonvue_type_script_lang_js_ = (addLaneBelowButtonvue_type_script_lang_js_);
|
|
46922
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneBelowButton.vue
|
|
46923
|
+
|
|
46924
|
+
|
|
46925
|
+
|
|
46926
|
+
|
|
46927
|
+
|
|
46928
|
+
/* normalize component */
|
|
46929
|
+
;
|
|
46930
|
+
var addLaneBelowButton_component = normalizeComponent(
|
|
46931
|
+
crownButtons_addLaneBelowButtonvue_type_script_lang_js_,
|
|
46932
|
+
addLaneBelowButtonvue_type_template_id_4b1af748_render,
|
|
46933
|
+
addLaneBelowButtonvue_type_template_id_4b1af748_staticRenderFns,
|
|
46934
|
+
false,
|
|
46935
|
+
null,
|
|
46936
|
+
null,
|
|
46937
|
+
null
|
|
46938
|
+
|
|
46939
|
+
)
|
|
46940
|
+
|
|
46941
|
+
/* harmony default export */ var addLaneBelowButton = (addLaneBelowButton_component.exports);
|
|
46761
46942
|
;// 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
46943
|
|
|
46763
46944
|
|
|
@@ -46872,6 +47053,26 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
46872
47053
|
pull_default()(this.containingProcess.get('flowElements'), elementDefinition);
|
|
46873
47054
|
toPool.component.containingProcess.get('flowElements').push(elementDefinition);
|
|
46874
47055
|
},
|
|
47056
|
+
moveElementRemote: function moveElementRemote(element, toPool) {
|
|
47057
|
+
var elementDefinition = element.component.node.definition;
|
|
47058
|
+
if (this.laneSet) {
|
|
47059
|
+
/* Remove references to the element from the current Lane */
|
|
47060
|
+
var containingLane = this.laneSet.get('lanes').find(function (lane) {
|
|
47061
|
+
return lane.get('flowNodeRef').includes(elementDefinition);
|
|
47062
|
+
});
|
|
47063
|
+
pull_default()(containingLane.get('flowNodeRef'), elementDefinition);
|
|
47064
|
+
}
|
|
47065
|
+
|
|
47066
|
+
/* Remove references to the element from the current process */
|
|
47067
|
+
pull_default()(this.containingProcess.get('flowElements'), elementDefinition);
|
|
47068
|
+
element.component.node.pool = toPool;
|
|
47069
|
+
this.shape.unembed(element);
|
|
47070
|
+
toPool.component.shape.embed(element);
|
|
47071
|
+
if (element.component.node.type !== poolLane_config_id && toPool.component.laneSet) {
|
|
47072
|
+
toPool.component.updateLaneChildren();
|
|
47073
|
+
}
|
|
47074
|
+
this.$emit('set-shape-stacking', element.component.shape);
|
|
47075
|
+
},
|
|
46875
47076
|
moveElement: function moveElement(element, toPool) {
|
|
46876
47077
|
var elementDefinition = element.component.node.definition;
|
|
46877
47078
|
if (this.laneSet) {
|
|
@@ -46891,12 +47092,14 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
46891
47092
|
toPool.component.addToPool(element);
|
|
46892
47093
|
},
|
|
46893
47094
|
addLane: function addLane() {
|
|
46894
|
-
var
|
|
47095
|
+
var _arguments = arguments,
|
|
47096
|
+
_this3 = this;
|
|
46895
47097
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
46896
|
-
var lanes, definition;
|
|
47098
|
+
var emitMultiplayer, lanes, definition;
|
|
46897
47099
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
46898
47100
|
while (1) switch (_context.prev = _context.next) {
|
|
46899
47101
|
case 0:
|
|
47102
|
+
emitMultiplayer = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : true;
|
|
46900
47103
|
/* A Lane element must be contained in a LaneSet element.
|
|
46901
47104
|
* Get the current laneSet element or create a new one. */
|
|
46902
47105
|
lanes = [];
|
|
@@ -46912,39 +47115,60 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
46912
47115
|
lanes.push(_this3.pushNewLane(definition));
|
|
46913
47116
|
}
|
|
46914
47117
|
lanes.push(_this3.pushNewLane());
|
|
46915
|
-
_context.next =
|
|
46916
|
-
return Promise.all(lanes)
|
|
46917
|
-
|
|
47118
|
+
_context.next = 6;
|
|
47119
|
+
return Promise.all(lanes).then(function (val) {
|
|
47120
|
+
if (emitMultiplayer && _this3.$parent.isMultiplayer) {
|
|
47121
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-addLanes', val);
|
|
47122
|
+
}
|
|
47123
|
+
});
|
|
47124
|
+
case 6:
|
|
46918
47125
|
_this3.$emit('set-shape-stacking', _this3.shape);
|
|
46919
47126
|
_this3.graph.getLinks().forEach(function (link) {
|
|
46920
47127
|
_this3.$emit('set-shape-stacking', link);
|
|
46921
47128
|
});
|
|
46922
47129
|
_this3.$emit('save-state');
|
|
46923
|
-
case
|
|
47130
|
+
case 9:
|
|
46924
47131
|
case "end":
|
|
46925
47132
|
return _context.stop();
|
|
46926
47133
|
}
|
|
46927
47134
|
}, _callee);
|
|
46928
47135
|
}))();
|
|
46929
47136
|
},
|
|
46930
|
-
createLaneSet: function createLaneSet() {
|
|
47137
|
+
createLaneSet: function createLaneSet(id) {
|
|
46931
47138
|
var laneSet = this.moddle.create('bpmn:LaneSet');
|
|
46932
47139
|
this.laneSet = laneSet;
|
|
46933
47140
|
var generator = this.nodeIdGenerator;
|
|
46934
|
-
var
|
|
46935
|
-
|
|
46936
|
-
laneSetId =
|
|
47141
|
+
var _ref2 = id !== null && id !== void 0 ? id : generator.generate(),
|
|
47142
|
+
_ref3 = _slicedToArray(_ref2, 1),
|
|
47143
|
+
laneSetId = _ref3[0];
|
|
46937
47144
|
this.laneSet.set('id', laneSetId);
|
|
46938
47145
|
this.containingProcess.get('laneSets').push(laneSet);
|
|
46939
47146
|
},
|
|
46940
47147
|
pushNewLane: function pushNewLane() {
|
|
46941
|
-
var
|
|
46942
|
-
|
|
46943
|
-
|
|
46944
|
-
|
|
46945
|
-
|
|
46946
|
-
|
|
46947
|
-
|
|
47148
|
+
var _arguments2 = arguments,
|
|
47149
|
+
_this4 = this;
|
|
47150
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
47151
|
+
var definition, diagram, node;
|
|
47152
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
47153
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
47154
|
+
case 0:
|
|
47155
|
+
definition = _arguments2.length > 0 && _arguments2[0] !== undefined ? _arguments2[0] : nodes_poolLane.definition(_this4.moddle, _this4.$t);
|
|
47156
|
+
definition.set('color', _this4.node.definition.get('color'));
|
|
47157
|
+
_this4.$emit('set-pool-target', _this4.shape);
|
|
47158
|
+
diagram = nodes_poolLane.diagram(_this4.moddle);
|
|
47159
|
+
diagram.bounds.width = _this4.shape.getBBox().width;
|
|
47160
|
+
node = new Node(nodes_poolLane.id, definition, diagram);
|
|
47161
|
+
_this4.$emit('add-node', node);
|
|
47162
|
+
_context2.next = 9;
|
|
47163
|
+
return _this4.$nextTick();
|
|
47164
|
+
case 9:
|
|
47165
|
+
return _context2.abrupt("return", node);
|
|
47166
|
+
case 10:
|
|
47167
|
+
case "end":
|
|
47168
|
+
return _context2.stop();
|
|
47169
|
+
}
|
|
47170
|
+
}, _callee2);
|
|
47171
|
+
}))();
|
|
46948
47172
|
},
|
|
46949
47173
|
addToPool: function addToPool(element) {
|
|
46950
47174
|
if (element.component.node.isBpmnType('bpmn:BoundaryEvent')) {
|
|
@@ -47097,11 +47321,11 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47097
47321
|
});
|
|
47098
47322
|
},
|
|
47099
47323
|
resizeLanes: function resizeLanes() {
|
|
47100
|
-
var
|
|
47324
|
+
var _this5 = this;
|
|
47101
47325
|
this.sortedLanes().forEach(function (laneShape, index, lanes) {
|
|
47102
|
-
var
|
|
47103
|
-
width =
|
|
47104
|
-
height =
|
|
47326
|
+
var _this5$shape$get = _this5.shape.get('size'),
|
|
47327
|
+
width = _this5$shape$get.width,
|
|
47328
|
+
height = _this5$shape$get.height;
|
|
47105
47329
|
var _laneShape$get = laneShape.get('size'),
|
|
47106
47330
|
laneHeight = _laneShape$get.height;
|
|
47107
47331
|
var _laneShape$position = laneShape.position({
|
|
@@ -47131,17 +47355,17 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47131
47355
|
});
|
|
47132
47356
|
},
|
|
47133
47357
|
captureChildren: function captureChildren() {
|
|
47134
|
-
var
|
|
47135
|
-
this.graph.getElements().filter(function (
|
|
47136
|
-
var component =
|
|
47137
|
-
return component && component !==
|
|
47138
|
-
}).forEach(function (
|
|
47139
|
-
var component =
|
|
47358
|
+
var _this6 = this;
|
|
47359
|
+
this.graph.getElements().filter(function (_ref4) {
|
|
47360
|
+
var component = _ref4.component;
|
|
47361
|
+
return component && component !== _this6;
|
|
47362
|
+
}).forEach(function (_ref5) {
|
|
47363
|
+
var component = _ref5.component;
|
|
47140
47364
|
if (component.node.isBpmnType('bpmn:BoundaryEvent')) {
|
|
47141
47365
|
return;
|
|
47142
47366
|
}
|
|
47143
|
-
|
|
47144
|
-
component.node.pool =
|
|
47367
|
+
_this6.shape.embed(component.shape);
|
|
47368
|
+
component.node.pool = _this6.shape;
|
|
47145
47369
|
});
|
|
47146
47370
|
this.$emit('set-shape-stacking', this.shape);
|
|
47147
47371
|
this.resizePool(this.shape);
|
|
@@ -47156,7 +47380,7 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47156
47380
|
});
|
|
47157
47381
|
},
|
|
47158
47382
|
resizePool: function resizePool(pool) {
|
|
47159
|
-
var
|
|
47383
|
+
var _this7 = this;
|
|
47160
47384
|
this.fitEmbeds();
|
|
47161
47385
|
var _this$shape$get = this.shape.get('size'),
|
|
47162
47386
|
width = _this$shape$get.width,
|
|
@@ -47165,7 +47389,7 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47165
47389
|
this.shape.resize( /* Add labelWidth to ensure elements don't overlap with the pool label */
|
|
47166
47390
|
Math.max(width, bounds.width), Math.max(height, bounds.height));
|
|
47167
47391
|
this.shape.getEmbeddedCells().forEach(function (cell) {
|
|
47168
|
-
|
|
47392
|
+
_this7.expandToFitElement(cell, pool);
|
|
47169
47393
|
});
|
|
47170
47394
|
var _this$shape$position = this.shape.position(),
|
|
47171
47395
|
x = _this$shape$position.x,
|
|
@@ -47179,14 +47403,14 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47179
47403
|
this.node.diagram.bounds.height = newHeight;
|
|
47180
47404
|
},
|
|
47181
47405
|
updateLaneChildren: function updateLaneChildren() {
|
|
47182
|
-
var
|
|
47406
|
+
var _this8 = this;
|
|
47183
47407
|
/* Ensure elements in the pool are added to the lanes they are above */
|
|
47184
47408
|
|
|
47185
47409
|
var newLaneRefs = {};
|
|
47186
47410
|
this.shape.getEmbeddedCells().filter(function (element) {
|
|
47187
|
-
return elementShouldHaveFlowNodeRef(element) && element.component.node.pool ===
|
|
47411
|
+
return elementShouldHaveFlowNodeRef(element) && element.component.node.pool === _this8.shape;
|
|
47188
47412
|
}).forEach(function (element) {
|
|
47189
|
-
var lane =
|
|
47413
|
+
var lane = _this8.graph.findModelsUnderElement(element, {
|
|
47190
47414
|
searchBy: 'center'
|
|
47191
47415
|
}).find(function (element) {
|
|
47192
47416
|
return element.component && element.component.node.type === poolLane_config_id;
|
|
@@ -47210,9 +47434,9 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47210
47434
|
return this.collaboration.get('participants').length > 0;
|
|
47211
47435
|
},
|
|
47212
47436
|
setPoolSize: function setPoolSize(pool) {
|
|
47213
|
-
var
|
|
47437
|
+
var _this9 = this;
|
|
47214
47438
|
pool.getEmbeddedCells().forEach(function (cell) {
|
|
47215
|
-
|
|
47439
|
+
_this9.expandToFitElement(cell, pool);
|
|
47216
47440
|
});
|
|
47217
47441
|
var _pool$position = pool.position(),
|
|
47218
47442
|
x = _pool$position.x,
|
|
@@ -47265,8 +47489,8 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47265
47489
|
;
|
|
47266
47490
|
var pool_component = normalizeComponent(
|
|
47267
47491
|
pool_poolvue_type_script_lang_js_,
|
|
47268
|
-
|
|
47269
|
-
|
|
47492
|
+
poolvue_type_template_id_fbed1670_render,
|
|
47493
|
+
poolvue_type_template_id_fbed1670_staticRenderFns,
|
|
47270
47494
|
false,
|
|
47271
47495
|
null,
|
|
47272
47496
|
null,
|
|
@@ -47549,10 +47773,10 @@ var ValidationStatus_component = normalizeComponent(
|
|
|
47549
47773
|
)
|
|
47550
47774
|
|
|
47551
47775
|
/* 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=
|
|
47776
|
+
;// 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=74d45ad8&
|
|
47553
47777
|
|
|
47554
47778
|
|
|
47555
|
-
var
|
|
47779
|
+
var Modelervue_type_template_id_74d45ad8_render = function render() {
|
|
47556
47780
|
var _vm = this,
|
|
47557
47781
|
_c = _vm._self._c;
|
|
47558
47782
|
return _c('span', {
|
|
@@ -47771,9 +47995,9 @@ var Modelervue_type_template_id_7da49550_render = function render() {
|
|
|
47771
47995
|
}
|
|
47772
47996
|
}) : _vm._e()], 2)], 1);
|
|
47773
47997
|
};
|
|
47774
|
-
var
|
|
47998
|
+
var Modelervue_type_template_id_74d45ad8_staticRenderFns = [];
|
|
47775
47999
|
|
|
47776
|
-
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=
|
|
48000
|
+
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=74d45ad8&
|
|
47777
48001
|
|
|
47778
48002
|
;// 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
48003
|
var boundaryEventvue_type_template_id_2979ecac_render = function render() {
|
|
@@ -48365,8 +48589,9 @@ external_vue_default().use(vuex_esm);
|
|
|
48365
48589
|
},
|
|
48366
48590
|
actions: {
|
|
48367
48591
|
getUserPinnedObjects: function getUserPinnedObjects(_ref) {
|
|
48592
|
+
var _window$ProcessMaker, _window$ProcessMaker$;
|
|
48368
48593
|
var commit = _ref.commit;
|
|
48369
|
-
if (
|
|
48594
|
+
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
48595
|
// For standalone version of Modeler
|
|
48371
48596
|
var pinnedNodes = localStorage.pinnedNodes ? JSON.parse(localStorage.pinnedNodes) : [];
|
|
48372
48597
|
pinnedNodes.forEach(function (node) {
|
|
@@ -48386,11 +48611,12 @@ external_vue_default().use(vuex_esm);
|
|
|
48386
48611
|
});
|
|
48387
48612
|
},
|
|
48388
48613
|
addUserPinnedObject: function addUserPinnedObject(_ref3, pinnedNode) {
|
|
48614
|
+
var _window$ProcessMaker2, _window$ProcessMaker3;
|
|
48389
48615
|
var commit = _ref3.commit,
|
|
48390
48616
|
state = _ref3.state;
|
|
48391
48617
|
commit('setPinnedNodes', pinnedNode);
|
|
48392
48618
|
var pinnedNodes = state.pinnedNodeTypes;
|
|
48393
|
-
if (
|
|
48619
|
+
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
48620
|
// For standalone version of Modeler
|
|
48395
48621
|
localStorage.pinnedNodes = JSON.stringify(pinnedNodes);
|
|
48396
48622
|
return;
|
|
@@ -48404,11 +48630,12 @@ external_vue_default().use(vuex_esm);
|
|
|
48404
48630
|
});
|
|
48405
48631
|
},
|
|
48406
48632
|
removeUserPinnedObject: function removeUserPinnedObject(_ref4, nodeToUnpin) {
|
|
48633
|
+
var _window$ProcessMaker4, _window$ProcessMaker5;
|
|
48407
48634
|
var commit = _ref4.commit,
|
|
48408
48635
|
state = _ref4.state;
|
|
48409
48636
|
commit('setUnpinNode', nodeToUnpin);
|
|
48410
48637
|
var pinnedNodes = state.pinnedNodeTypes;
|
|
48411
|
-
if (
|
|
48638
|
+
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
48639
|
// For standalone version of Modeler
|
|
48413
48640
|
localStorage.pinnedNodes = JSON.stringify(pinnedNodes);
|
|
48414
48641
|
return;
|
|
@@ -52068,9 +52295,9 @@ var ValidatePanel_component = normalizeComponent(
|
|
|
52068
52295
|
|
|
52069
52296
|
|
|
52070
52297
|
|
|
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=
|
|
52298
|
+
;// 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
52299
|
|
|
52073
|
-
var
|
|
52300
|
+
var MultiplayerViewUsersvue_type_template_id_7a85ab32_render = function render() {
|
|
52074
52301
|
var _vm = this,
|
|
52075
52302
|
_c = _vm._self._c;
|
|
52076
52303
|
return _c('b-avatar-group', {
|
|
@@ -52086,9 +52313,9 @@ var MultiplayerViewUsersvue_type_template_id_4e79eacd_render = function render()
|
|
|
52086
52313
|
})];
|
|
52087
52314
|
})], 2);
|
|
52088
52315
|
};
|
|
52089
|
-
var
|
|
52316
|
+
var MultiplayerViewUsersvue_type_template_id_7a85ab32_staticRenderFns = [];
|
|
52090
52317
|
|
|
52091
|
-
;// CONCATENATED MODULE: ./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=
|
|
52318
|
+
;// CONCATENATED MODULE: ./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=7a85ab32&
|
|
52092
52319
|
|
|
52093
52320
|
;// 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
52321
|
var Avatarvue_type_template_id_1c50a604_scoped_true_render = function render() {
|
|
@@ -52281,7 +52508,8 @@ var Avatar_component = normalizeComponent(
|
|
|
52281
52508
|
filteredPlayers: function filteredPlayers() {
|
|
52282
52509
|
var allPlayers = (0,external_lodash_.uniqBy)(this.players, 'name');
|
|
52283
52510
|
return allPlayers.filter(function (player) {
|
|
52284
|
-
|
|
52511
|
+
var _window$ProcessMaker$;
|
|
52512
|
+
return player.name.toLowerCase() !== ((_window$ProcessMaker$ = window.ProcessMaker.user) === null || _window$ProcessMaker$ === void 0 ? void 0 : _window$ProcessMaker$.fullName.toLowerCase());
|
|
52285
52513
|
});
|
|
52286
52514
|
}
|
|
52287
52515
|
}
|
|
@@ -52298,8 +52526,8 @@ var Avatar_component = normalizeComponent(
|
|
|
52298
52526
|
;
|
|
52299
52527
|
var MultiplayerViewUsers_component = normalizeComponent(
|
|
52300
52528
|
multiplayerViewUsers_MultiplayerViewUsersvue_type_script_lang_js_,
|
|
52301
|
-
|
|
52302
|
-
|
|
52529
|
+
MultiplayerViewUsersvue_type_template_id_7a85ab32_render,
|
|
52530
|
+
MultiplayerViewUsersvue_type_template_id_7a85ab32_staticRenderFns,
|
|
52303
52531
|
false,
|
|
52304
52532
|
null,
|
|
52305
52533
|
null,
|
|
@@ -52610,7 +52838,7 @@ var ToolBar_component = normalizeComponent(
|
|
|
52610
52838
|
|
|
52611
52839
|
function addNodeToProcess(node, targetProcess) {
|
|
52612
52840
|
var ignoredNodes = function ignoredNodes(node) {
|
|
52613
|
-
return node.isBpmnType('bpmn:MessageFlow',
|
|
52841
|
+
return node.isBpmnType('bpmn:MessageFlow', config_bpmnType, dataInputAssociation_config_bpmnType) || node.isType('processmaker-modeler-pool');
|
|
52614
52842
|
};
|
|
52615
52843
|
if (ignoredNodes(node)) {
|
|
52616
52844
|
return;
|
|
@@ -53323,7 +53551,7 @@ var validTasks = ['bpmn:ServiceTask', 'bpmn:ManualTask', 'bpmn:CallActivity', 'b
|
|
|
53323
53551
|
clonedDataOutputAssociations = [];
|
|
53324
53552
|
var nodes = this.highlightedNodes;
|
|
53325
53553
|
var selector = this.$refs.selector.$el;
|
|
53326
|
-
var flowNodeTypes = [sequenceFlow_id, poolLane_config_id,
|
|
53554
|
+
var flowNodeTypes = [sequenceFlow_id, poolLane_config_id, associationConfig_id, messageFlow_config_id, genericFlow_config_id];
|
|
53327
53555
|
var dataInputAssociationNodeTypes = [dataInputAssociation_config_id];
|
|
53328
53556
|
var dataOutputAssociationNodeTypes = [config_id];
|
|
53329
53557
|
if (typeof selector.getBoundingClientRect === 'function') {
|
|
@@ -54564,8 +54792,8 @@ var RailBottom_component = normalizeComponent(
|
|
|
54564
54792
|
)
|
|
54565
54793
|
|
|
54566
54794
|
/* 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
|
|
54795
|
+
;// 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=1a230de4&
|
|
54796
|
+
var genericFlowvue_type_template_id_1a230de4_render = function render() {
|
|
54569
54797
|
var _vm = this,
|
|
54570
54798
|
_c = _vm._self._c;
|
|
54571
54799
|
return _c('crown-config', _vm._g({
|
|
@@ -54584,7 +54812,7 @@ var genericFlowvue_type_template_id_22431668_render = function render() {
|
|
|
54584
54812
|
}
|
|
54585
54813
|
}, _vm.$listeners));
|
|
54586
54814
|
};
|
|
54587
|
-
var
|
|
54815
|
+
var genericFlowvue_type_template_id_1a230de4_staticRenderFns = [];
|
|
54588
54816
|
|
|
54589
54817
|
;// CONCATENATED MODULE: ./src/components/nodes/genericFlow/DataOutputAssociation.js
|
|
54590
54818
|
|
|
@@ -54611,7 +54839,7 @@ var DataOutputAssociation = /*#__PURE__*/function (_DataAssociation) {
|
|
|
54611
54839
|
value: function makeFlowNode(sourceShape, targetShape, waypoint) {
|
|
54612
54840
|
var _this = this;
|
|
54613
54841
|
var diagram = config_diagram(this.moddle);
|
|
54614
|
-
var dataOutputAssociation =
|
|
54842
|
+
var dataOutputAssociation = config_definition(this.moddle);
|
|
54615
54843
|
dataOutputAssociation.set('sourceRef', sourceShape.component.node.definition);
|
|
54616
54844
|
dataOutputAssociation.set('targetRef', targetShape.component.node.definition);
|
|
54617
54845
|
diagram.waypoint = waypoint.map(function (point) {
|
|
@@ -54753,16 +54981,6 @@ var BpmnFlows = [{
|
|
|
54753
54981
|
var flow = new bpmnFlow.factory(this.nodeRegistry, this.moddle, this.paper);
|
|
54754
54982
|
var genericLink = this.shape.findView(this.paper);
|
|
54755
54983
|
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
54984
|
this.$emit('replace-generic-flow', {
|
|
54767
54985
|
actualFlow: flow.makeFlowNode(this.sourceShape, this.target, waypoint),
|
|
54768
54986
|
genericFlow: this.node,
|
|
@@ -54801,8 +55019,8 @@ var BpmnFlows = [{
|
|
|
54801
55019
|
;
|
|
54802
55020
|
var genericFlow_component = normalizeComponent(
|
|
54803
55021
|
genericFlow_genericFlowvue_type_script_lang_js_,
|
|
54804
|
-
|
|
54805
|
-
|
|
55022
|
+
genericFlowvue_type_template_id_1a230de4_render,
|
|
55023
|
+
genericFlowvue_type_template_id_1a230de4_staticRenderFns,
|
|
54806
55024
|
false,
|
|
54807
55025
|
null,
|
|
54808
55026
|
null,
|
|
@@ -54811,8 +55029,8 @@ var genericFlow_component = normalizeComponent(
|
|
|
54811
55029
|
)
|
|
54812
55030
|
|
|
54813
55031
|
/* 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
|
|
55032
|
+
;// 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=68f84c00&scoped=true&
|
|
55033
|
+
var Selectionvue_type_template_id_68f84c00_scoped_true_render = function render() {
|
|
54816
55034
|
var _vm = this,
|
|
54817
55035
|
_c = _vm._self._c;
|
|
54818
55036
|
return _vm.showLasso && _vm.style ? _c('div', {
|
|
@@ -54842,7 +55060,7 @@ var Selectionvue_type_template_id_423da30e_scoped_true_render = function render(
|
|
|
54842
55060
|
}
|
|
54843
55061
|
}, _vm.$listeners))], 1) : _vm._e();
|
|
54844
55062
|
};
|
|
54845
|
-
var
|
|
55063
|
+
var Selectionvue_type_template_id_68f84c00_scoped_true_staticRenderFns = [];
|
|
54846
55064
|
|
|
54847
55065
|
;// 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
55066
|
|
|
@@ -56209,7 +56427,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56209
56427
|
* Filter the selected elements
|
|
56210
56428
|
*/
|
|
56211
56429
|
filterSelected: function filterSelected() {
|
|
56212
|
-
var flowTypes = [sequenceFlow_id, config_id, dataInputAssociation_config_id,
|
|
56430
|
+
var flowTypes = [sequenceFlow_id, config_id, dataInputAssociation_config_id, associationConfig_id, messageFlow_config_id];
|
|
56213
56431
|
// Get the selected pools IDs
|
|
56214
56432
|
var selectedPoolsIds = this.selected.filter(function (shape) {
|
|
56215
56433
|
return shape.model.component;
|
|
@@ -56349,7 +56567,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56349
56567
|
_this5.overPoolStopDrag();
|
|
56350
56568
|
_this5.updateSelectionBox();
|
|
56351
56569
|
if (_this5.isMultiplayer) {
|
|
56352
|
-
window.ProcessMaker.EventBus.$emit('multiplayer-updateNodes', _this5.getProperties());
|
|
56570
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-updateNodes', _this5.getProperties(_this5.selected));
|
|
56353
56571
|
}
|
|
56354
56572
|
case 9:
|
|
56355
56573
|
case "end":
|
|
@@ -56358,17 +56576,46 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56358
56576
|
}, _callee3);
|
|
56359
56577
|
}))();
|
|
56360
56578
|
},
|
|
56361
|
-
getProperties: function getProperties() {
|
|
56579
|
+
getProperties: function getProperties(shapes) {
|
|
56580
|
+
var _this6 = this;
|
|
56362
56581
|
var changed = [];
|
|
56363
56582
|
var shapesToNotTranslate = ['PoolLane', 'standard.Link', 'processmaker.components.nodes.boundaryEvent.Shape'];
|
|
56364
|
-
|
|
56583
|
+
shapes.filter(function (shape) {
|
|
56365
56584
|
return !shapesToNotTranslate.includes(shape.model.get('type'));
|
|
56366
56585
|
}).forEach(function (shape) {
|
|
56586
|
+
if (shape.model.get('type') === 'processmaker.modeler.bpmn.pool') {
|
|
56587
|
+
var children = shape.model.component.getElementsUnderArea(shape.model, _this6.graph);
|
|
56588
|
+
changed = [].concat(_toConsumableArray(changed), _toConsumableArray(_this6.getContainerProperties(children, changed)));
|
|
56589
|
+
} else {
|
|
56590
|
+
var _node$pool;
|
|
56591
|
+
var node = shape.model.component.node;
|
|
56592
|
+
var defaultData = {
|
|
56593
|
+
id: node.definition.id,
|
|
56594
|
+
properties: {
|
|
56595
|
+
x: shape.model.get('position').x,
|
|
56596
|
+
y: shape.model.get('position').y,
|
|
56597
|
+
height: shape.model.get('size').height,
|
|
56598
|
+
width: shape.model.get('size').width
|
|
56599
|
+
}
|
|
56600
|
+
};
|
|
56601
|
+
if (node !== null && node !== void 0 && (_node$pool = node.pool) !== null && _node$pool !== void 0 && _node$pool.component) {
|
|
56602
|
+
defaultData['poolId'] = node.pool.component.id;
|
|
56603
|
+
}
|
|
56604
|
+
changed.push(defaultData);
|
|
56605
|
+
}
|
|
56606
|
+
});
|
|
56607
|
+
return changed;
|
|
56608
|
+
},
|
|
56609
|
+
getContainerProperties: function getContainerProperties(children) {
|
|
56610
|
+
var changed = [];
|
|
56611
|
+
children.forEach(function (model) {
|
|
56367
56612
|
changed.push({
|
|
56368
|
-
id:
|
|
56613
|
+
id: model.component.node.definition.id,
|
|
56369
56614
|
properties: {
|
|
56370
|
-
|
|
56371
|
-
|
|
56615
|
+
x: model.get('position').x,
|
|
56616
|
+
y: model.get('position').y,
|
|
56617
|
+
height: model.get('size').height,
|
|
56618
|
+
width: model.get('size').width
|
|
56372
56619
|
}
|
|
56373
56620
|
});
|
|
56374
56621
|
});
|
|
@@ -56571,39 +56818,39 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56571
56818
|
* Stop dragging elements that are in a pool
|
|
56572
56819
|
*/
|
|
56573
56820
|
overPoolStopDrag: function overPoolStopDrag() {
|
|
56574
|
-
var
|
|
56821
|
+
var _this7 = this;
|
|
56575
56822
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
56576
56823
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
56577
56824
|
while (1) switch (_context4.prev = _context4.next) {
|
|
56578
56825
|
case 0:
|
|
56579
|
-
if (!
|
|
56826
|
+
if (!_this7.isNotPoolChilds(_this7.selected)) {
|
|
56580
56827
|
_context4.next = 4;
|
|
56581
56828
|
break;
|
|
56582
56829
|
}
|
|
56583
|
-
|
|
56584
|
-
|
|
56830
|
+
_this7.updateFlowsWaypoint();
|
|
56831
|
+
_this7.$emit('save-state');
|
|
56585
56832
|
return _context4.abrupt("return");
|
|
56586
56833
|
case 4:
|
|
56587
|
-
if (
|
|
56588
|
-
|
|
56589
|
-
if (
|
|
56590
|
-
|
|
56591
|
-
|
|
56834
|
+
if (_this7.isOutOfThePool) {
|
|
56835
|
+
_this7.rollbackSelection();
|
|
56836
|
+
if (_this7.invalidPool) {
|
|
56837
|
+
_this7.invalidPool.model.component.shape.attr('body/fill', poolColor);
|
|
56838
|
+
_this7.invalidPool = null;
|
|
56592
56839
|
}
|
|
56593
56840
|
} else {
|
|
56594
|
-
|
|
56595
|
-
if (
|
|
56841
|
+
_this7.updateFlowsWaypoint();
|
|
56842
|
+
if (_this7.newPool) {
|
|
56596
56843
|
/* Remove the shape from its current pool */
|
|
56597
|
-
|
|
56598
|
-
|
|
56599
|
-
|
|
56600
|
-
|
|
56601
|
-
|
|
56602
|
-
|
|
56844
|
+
_this7.moveElements(_this7.selected, _this7.oldPool, _this7.newPool);
|
|
56845
|
+
_this7.moveConectedLinks(_this7.conectedLinks, _this7.oldPool, _this7.newPool);
|
|
56846
|
+
_this7.newPool = null;
|
|
56847
|
+
_this7.oldPool = null;
|
|
56848
|
+
_this7.updateLaneChildren(_this7.selected);
|
|
56849
|
+
_this7.$emit('save-state');
|
|
56603
56850
|
} else {
|
|
56604
|
-
|
|
56605
|
-
|
|
56606
|
-
|
|
56851
|
+
_this7.expandToFitElement(_this7.selected);
|
|
56852
|
+
_this7.updateLaneChildren(_this7.selected);
|
|
56853
|
+
_this7.$emit('save-state');
|
|
56607
56854
|
}
|
|
56608
56855
|
}
|
|
56609
56856
|
case 5:
|
|
@@ -56617,35 +56864,35 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56617
56864
|
* Rollback drag an element outside it's pool parent
|
|
56618
56865
|
*/
|
|
56619
56866
|
rollbackSelection: function rollbackSelection() {
|
|
56620
|
-
var
|
|
56867
|
+
var _this8 = this;
|
|
56621
56868
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
56622
56869
|
var deltaX, deltaY, scale, shapesToNotTranslate;
|
|
56623
56870
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
56624
56871
|
while (1) switch (_context5.prev = _context5.next) {
|
|
56625
56872
|
case 0:
|
|
56626
|
-
deltaX =
|
|
56627
|
-
deltaY =
|
|
56628
|
-
|
|
56629
|
-
|
|
56630
|
-
scale =
|
|
56873
|
+
deltaX = _this8.initialPosition.left - _this8.left;
|
|
56874
|
+
deltaY = _this8.initialPosition.top - _this8.top;
|
|
56875
|
+
_this8.style.left = "".concat(_this8.initialPosition.left, "px");
|
|
56876
|
+
_this8.style.top = "".concat(_this8.initialPosition.top, "px");
|
|
56877
|
+
scale = _this8.paperManager.paper.scale();
|
|
56631
56878
|
shapesToNotTranslate = ['PoolLane', 'standard.Link', 'processmaker.components.nodes.boundaryEvent.Shape'];
|
|
56632
|
-
|
|
56879
|
+
_this8.selected.filter(function (shape) {
|
|
56633
56880
|
return !shapesToNotTranslate.includes(shape.model.get('type'));
|
|
56634
56881
|
}).forEach(function (shape) {
|
|
56635
56882
|
shape.model.translate(deltaX / scale.sx, deltaY / scale.sy);
|
|
56636
56883
|
});
|
|
56637
|
-
|
|
56884
|
+
_this8.isOutOfThePool = false;
|
|
56638
56885
|
_context5.next = 10;
|
|
56639
56886
|
return store.commit('allowSavingElementPosition');
|
|
56640
56887
|
case 10:
|
|
56641
|
-
|
|
56888
|
+
_this8.paperManager.setStateValid();
|
|
56642
56889
|
_context5.next = 13;
|
|
56643
|
-
return
|
|
56890
|
+
return _this8.$nextTick();
|
|
56644
56891
|
case 13:
|
|
56645
56892
|
_context5.next = 15;
|
|
56646
|
-
return
|
|
56893
|
+
return _this8.paperManager.awaitScheduledUpdates();
|
|
56647
56894
|
case 15:
|
|
56648
|
-
|
|
56895
|
+
_this8.updateSelectionBox(true);
|
|
56649
56896
|
case 16:
|
|
56650
56897
|
case "end":
|
|
56651
56898
|
return _context5.stop();
|
|
@@ -56757,9 +57004,9 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56757
57004
|
});
|
|
56758
57005
|
;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=script&lang=js&
|
|
56759
57006
|
/* 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=
|
|
57007
|
+
// 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=68f84c00&prod&scoped=true&lang=css&
|
|
57008
|
+
var Selectionvue_type_style_index_0_id_68f84c00_prod_scoped_true_lang_css_ = __webpack_require__(38084);
|
|
57009
|
+
;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=style&index=0&id=68f84c00&prod&scoped=true&lang=css&
|
|
56763
57010
|
|
|
56764
57011
|
;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue
|
|
56765
57012
|
|
|
@@ -56772,11 +57019,11 @@ var Selectionvue_type_style_index_0_id_423da30e_prod_scoped_true_lang_css_ = __w
|
|
|
56772
57019
|
|
|
56773
57020
|
var Selection_component = normalizeComponent(
|
|
56774
57021
|
modeler_Selectionvue_type_script_lang_js_,
|
|
56775
|
-
|
|
56776
|
-
|
|
57022
|
+
Selectionvue_type_template_id_68f84c00_scoped_true_render,
|
|
57023
|
+
Selectionvue_type_template_id_68f84c00_scoped_true_staticRenderFns,
|
|
56777
57024
|
false,
|
|
56778
57025
|
null,
|
|
56779
|
-
"
|
|
57026
|
+
"68f84c00",
|
|
56780
57027
|
null
|
|
56781
57028
|
|
|
56782
57029
|
)
|
|
@@ -75350,19 +75597,6 @@ var Room = /*#__PURE__*/function () {
|
|
|
75350
75597
|
|
|
75351
75598
|
|
|
75352
75599
|
|
|
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
75600
|
var _nodeIdGenerator = /*#__PURE__*/new WeakMap();
|
|
75367
75601
|
var Multiplayer = /*#__PURE__*/function () {
|
|
75368
75602
|
function Multiplayer(modeler) {
|
|
@@ -75387,22 +75621,25 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75387
75621
|
_createClass(Multiplayer, [{
|
|
75388
75622
|
key: "init",
|
|
75389
75623
|
value: function init() {
|
|
75390
|
-
var
|
|
75624
|
+
var _window$ProcessMaker$,
|
|
75625
|
+
_this = this;
|
|
75391
75626
|
// Get the node id generator
|
|
75392
75627
|
_classPrivateFieldSet(this, _nodeIdGenerator, getNodeIdGenerator(this.modeler.definitions));
|
|
75393
75628
|
// Get the room name from the process id
|
|
75394
|
-
|
|
75629
|
+
var processId = (_window$ProcessMaker$ = window.ProcessMaker.modeler.process.uuid) !== null && _window$ProcessMaker$ !== void 0 ? _window$ProcessMaker$ : window.ProcessMaker.modeler.process.id;
|
|
75630
|
+
this.room = new Room("room-".concat(processId));
|
|
75395
75631
|
|
|
75396
75632
|
// Connect to websocket server
|
|
75397
75633
|
this.clientIO = esm_lookup(window.ProcessMaker.multiplayer.host, {
|
|
75398
75634
|
transports: ['websocket', 'polling']
|
|
75399
75635
|
});
|
|
75400
75636
|
this.clientIO.on('connect', function () {
|
|
75637
|
+
var _window$ProcessMaker$2, _window$ProcessMaker$3;
|
|
75401
75638
|
// Join the room
|
|
75402
75639
|
_this.clientIO.emit('joinRoom', {
|
|
75403
75640
|
roomName: _this.room.getRoom(),
|
|
75404
|
-
clientName: window.ProcessMaker.user.fullName,
|
|
75405
|
-
clientAvatar: window.ProcessMaker.user.avatar
|
|
75641
|
+
clientName: (_window$ProcessMaker$2 = window.ProcessMaker.user) === null || _window$ProcessMaker$2 === void 0 ? void 0 : _window$ProcessMaker$2.fullName,
|
|
75642
|
+
clientAvatar: (_window$ProcessMaker$3 = window.ProcessMaker.user) === null || _window$ProcessMaker$3 === void 0 ? void 0 : _window$ProcessMaker$3.avatar
|
|
75406
75643
|
});
|
|
75407
75644
|
});
|
|
75408
75645
|
this.clientIO.on('clientJoined', function (payload) {
|
|
@@ -75496,14 +75733,14 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75496
75733
|
window.ProcessMaker.EventBus.$on('multiplayer-addFlow', function (data) {
|
|
75497
75734
|
_this.addFlow(data);
|
|
75498
75735
|
});
|
|
75736
|
+
window.ProcessMaker.EventBus.$on('multiplayer-addLanes', function (lanes) {
|
|
75737
|
+
_this.addLaneNodes(lanes);
|
|
75738
|
+
});
|
|
75499
75739
|
}
|
|
75500
75740
|
}, {
|
|
75501
75741
|
key: "addNode",
|
|
75502
75742
|
value: function addNode(data) {
|
|
75503
|
-
// Add the new element to the process
|
|
75504
|
-
this.createShape(data);
|
|
75505
75743
|
// Add the new element to the shared array
|
|
75506
|
-
// this.yArray.push([data]);
|
|
75507
75744
|
var yMapNested = new YMap();
|
|
75508
75745
|
this.doTransact(yMapNested, data);
|
|
75509
75746
|
this.yArray.push([yMapNested]);
|
|
@@ -75515,21 +75752,20 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75515
75752
|
}, {
|
|
75516
75753
|
key: "createShape",
|
|
75517
75754
|
value: function createShape(value) {
|
|
75518
|
-
this.modeler.
|
|
75755
|
+
if (this.modeler.nodeRegistry[value.type] && this.modeler.nodeRegistry[value.type].multiplayerClient) {
|
|
75756
|
+
this.modeler.nodeRegistry[value.type].multiplayerClient(this.modeler, value);
|
|
75757
|
+
} else {
|
|
75758
|
+
this.modeler.addRemoteNode(value);
|
|
75759
|
+
}
|
|
75519
75760
|
_classPrivateFieldGet(this, _nodeIdGenerator).updateCounters();
|
|
75520
75761
|
}
|
|
75521
75762
|
}, {
|
|
75522
75763
|
key: "createRemoteShape",
|
|
75523
75764
|
value: function createRemoteShape(changes) {
|
|
75524
75765
|
var _this2 = this;
|
|
75525
|
-
var flows = ['processmaker-modeler-sequence-flow', 'processmaker-modeler-text-annotation', 'processmaker-modeler-message-flow', 'processmaker-modeler-data-input-association'];
|
|
75526
75766
|
return new Promise(function (resolve) {
|
|
75527
75767
|
changes.map(function (data) {
|
|
75528
|
-
|
|
75529
|
-
_this2.createFlow(data);
|
|
75530
|
-
} else {
|
|
75531
|
-
_this2.createShape(data);
|
|
75532
|
-
}
|
|
75768
|
+
_this2.createShape(data);
|
|
75533
75769
|
});
|
|
75534
75770
|
resolve();
|
|
75535
75771
|
});
|
|
@@ -75538,18 +75774,20 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75538
75774
|
key: "removeNode",
|
|
75539
75775
|
value: function removeNode(data) {
|
|
75540
75776
|
var index = this.getIndex(data.definition.id);
|
|
75541
|
-
|
|
75542
|
-
|
|
75543
|
-
|
|
75544
|
-
|
|
75545
|
-
|
|
75546
|
-
|
|
75547
|
-
|
|
75777
|
+
if (index >= 0) {
|
|
75778
|
+
this.removeShape(data);
|
|
75779
|
+
this.yArray.delete(index, 1); // delete one element
|
|
75780
|
+
// Encode the state as an update and send it to the server
|
|
75781
|
+
var stateUpdate = encodeStateAsUpdate(this.yDoc);
|
|
75782
|
+
// Send the update to the web socket server
|
|
75783
|
+
this.clientIO.emit('removeElement', stateUpdate);
|
|
75784
|
+
}
|
|
75548
75785
|
}
|
|
75549
75786
|
}, {
|
|
75550
75787
|
key: "getIndex",
|
|
75551
75788
|
value: function getIndex(id) {
|
|
75552
75789
|
var index = -1;
|
|
75790
|
+
var found = false;
|
|
75553
75791
|
var _iterator = _createForOfIteratorHelper(this.yArray),
|
|
75554
75792
|
_step;
|
|
75555
75793
|
try {
|
|
@@ -75557,6 +75795,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75557
75795
|
var value = _step.value;
|
|
75558
75796
|
index++;
|
|
75559
75797
|
if (value.get('id') === id) {
|
|
75798
|
+
found = true;
|
|
75560
75799
|
break;
|
|
75561
75800
|
}
|
|
75562
75801
|
}
|
|
@@ -75565,7 +75804,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75565
75804
|
} finally {
|
|
75566
75805
|
_iterator.f();
|
|
75567
75806
|
}
|
|
75568
|
-
return index;
|
|
75807
|
+
return found ? index : -1;
|
|
75569
75808
|
}
|
|
75570
75809
|
}, {
|
|
75571
75810
|
key: "getNodeById",
|
|
@@ -75596,7 +75835,10 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75596
75835
|
data.forEach(function (value) {
|
|
75597
75836
|
var index = _this3.getIndex(value.id);
|
|
75598
75837
|
var nodeToUpdate = _this3.yArray.get(index);
|
|
75599
|
-
|
|
75838
|
+
var updateData = value.poolId ? _objectSpread2(_objectSpread2({}, value.properties), {
|
|
75839
|
+
poolId: value.poolId
|
|
75840
|
+
}) : value.properties;
|
|
75841
|
+
_this3.doTransact(nodeToUpdate, updateData);
|
|
75600
75842
|
});
|
|
75601
75843
|
}
|
|
75602
75844
|
}, {
|
|
@@ -75607,13 +75849,11 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75607
75849
|
var nodeToUpdate = this.yArray.get(index);
|
|
75608
75850
|
// Update the node id in the nodeData
|
|
75609
75851
|
nodeData.id = "node_".concat(_classPrivateFieldGet(this, _nodeIdGenerator).getDefinitionNumber());
|
|
75610
|
-
// Replace the node in the process
|
|
75611
|
-
this.modeler.replaceNodeProcedure(nodeData, true);
|
|
75612
75852
|
// Update the node id generator
|
|
75613
75853
|
_classPrivateFieldGet(this, _nodeIdGenerator).updateCounters();
|
|
75614
75854
|
// Update the node in the shared array
|
|
75615
75855
|
this.yDoc.transact(function () {
|
|
75616
|
-
nodeToUpdate.set('
|
|
75856
|
+
nodeToUpdate.set('type', newControl);
|
|
75617
75857
|
nodeToUpdate.set('id', nodeData.id);
|
|
75618
75858
|
});
|
|
75619
75859
|
|
|
@@ -75627,14 +75867,17 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75627
75867
|
}, {
|
|
75628
75868
|
key: "replaceShape",
|
|
75629
75869
|
value: function replaceShape(updatedNode) {
|
|
75870
|
+
var _this$modeler$paper$l = this.modeler.paper.localToClientPoint(updatedNode),
|
|
75871
|
+
clientX = _this$modeler$paper$l.x,
|
|
75872
|
+
clientY = _this$modeler$paper$l.y;
|
|
75630
75873
|
// Get the node to update
|
|
75631
75874
|
var node = this.getNodeById(updatedNode.oldNodeId);
|
|
75632
75875
|
// Update the node id in the nodeData
|
|
75633
75876
|
var nodeData = {
|
|
75634
|
-
clientX:
|
|
75635
|
-
clientY:
|
|
75877
|
+
clientX: clientX,
|
|
75878
|
+
clientY: clientY,
|
|
75636
75879
|
control: {
|
|
75637
|
-
type: updatedNode.
|
|
75880
|
+
type: updatedNode.type
|
|
75638
75881
|
},
|
|
75639
75882
|
nodeThatWillBeReplaced: node,
|
|
75640
75883
|
id: updatedNode.id
|
|
@@ -75665,37 +75908,85 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75665
75908
|
}
|
|
75666
75909
|
}, {
|
|
75667
75910
|
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
|
-
|
|
75911
|
+
value: function () {
|
|
75912
|
+
var _updateShapes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(data) {
|
|
75913
|
+
var _this4 = this;
|
|
75914
|
+
var paper, element, newPool, sourceElem, targetElem, waypoint, startWaypoint, endWaypoint, newWaypoint;
|
|
75915
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
75916
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
75917
|
+
case 0:
|
|
75918
|
+
paper = this.modeler.paper;
|
|
75919
|
+
element = this.modeler.getElementByNodeId(data.id);
|
|
75920
|
+
newPool = this.modeler.getElementByNodeId(data.poolId);
|
|
75921
|
+
if (!this.modeler.flowTypes.includes(data.type)) {
|
|
75922
|
+
_context2.next = 15;
|
|
75923
|
+
break;
|
|
75924
|
+
}
|
|
75925
|
+
// Update the element's waypoints
|
|
75926
|
+
// Get the source and target elements
|
|
75927
|
+
sourceElem = this.modeler.getElementByNodeId(data.sourceRefId);
|
|
75928
|
+
targetElem = this.modeler.getElementByNodeId(data.targetRefId);
|
|
75929
|
+
waypoint = data.waypoint;
|
|
75930
|
+
startWaypoint = waypoint.shift();
|
|
75931
|
+
endWaypoint = waypoint.pop(); // Update the element's waypoints
|
|
75932
|
+
newWaypoint = waypoint.map(function (point) {
|
|
75933
|
+
return _this4.modeler.moddle.create('dc:Point', point);
|
|
75934
|
+
});
|
|
75935
|
+
element.set('vertices', newWaypoint);
|
|
75936
|
+
|
|
75937
|
+
// Update the element's source anchor
|
|
75938
|
+
element.source(sourceElem, {
|
|
75939
|
+
anchor: function anchor() {
|
|
75940
|
+
return getDefaultAnchorPoint(_this4.getConnectionPoint(sourceElem, startWaypoint), sourceElem.findView(paper));
|
|
75941
|
+
},
|
|
75942
|
+
connectionPoint: {
|
|
75943
|
+
name: 'boundary'
|
|
75944
|
+
}
|
|
75945
|
+
});
|
|
75946
|
+
|
|
75947
|
+
// Update the element's target anchor
|
|
75948
|
+
element.target(targetElem, {
|
|
75949
|
+
anchor: function anchor() {
|
|
75950
|
+
return getDefaultAnchorPoint(_this4.getConnectionPoint(targetElem, endWaypoint), targetElem.findView(paper));
|
|
75951
|
+
},
|
|
75952
|
+
connectionPoint: {
|
|
75953
|
+
name: 'boundary'
|
|
75954
|
+
}
|
|
75955
|
+
});
|
|
75956
|
+
_context2.next = 24;
|
|
75957
|
+
break;
|
|
75958
|
+
case 15:
|
|
75959
|
+
// Update the element's position attribute
|
|
75960
|
+
element.resize( /* Add labelWidth to ensure elements don't overlap with the pool label */
|
|
75961
|
+
data.width, data.height);
|
|
75962
|
+
element.set('position', {
|
|
75963
|
+
x: data.x,
|
|
75964
|
+
y: data.y
|
|
75965
|
+
});
|
|
75966
|
+
// Trigger a rendering of the element on the paper
|
|
75967
|
+
_context2.next = 19;
|
|
75968
|
+
return paper.findViewByModel(element).update();
|
|
75969
|
+
case 19:
|
|
75970
|
+
_context2.next = 21;
|
|
75971
|
+
return element.component.$nextTick();
|
|
75972
|
+
case 21:
|
|
75973
|
+
_context2.next = 23;
|
|
75974
|
+
return this.modeler.paperManager.awaitScheduledUpdates();
|
|
75975
|
+
case 23:
|
|
75976
|
+
if (newPool && element.component.node.pool && element.component.node.pool.component.id !== data.poolId) {
|
|
75977
|
+
element.component.node.pool.component.moveElementRemote(element, newPool);
|
|
75978
|
+
}
|
|
75979
|
+
case 24:
|
|
75980
|
+
case "end":
|
|
75981
|
+
return _context2.stop();
|
|
75690
75982
|
}
|
|
75691
|
-
}
|
|
75692
|
-
}
|
|
75693
|
-
|
|
75694
|
-
|
|
75695
|
-
_iterator2.f();
|
|
75983
|
+
}, _callee2, this);
|
|
75984
|
+
}));
|
|
75985
|
+
function updateShapes(_x2) {
|
|
75986
|
+
return _updateShapes.apply(this, arguments);
|
|
75696
75987
|
}
|
|
75697
|
-
return
|
|
75698
|
-
}
|
|
75988
|
+
return updateShapes;
|
|
75989
|
+
}()
|
|
75699
75990
|
}, {
|
|
75700
75991
|
key: "addFlow",
|
|
75701
75992
|
value: function addFlow(data) {
|
|
@@ -75709,21 +76000,78 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75709
76000
|
_classPrivateFieldGet(this, _nodeIdGenerator).updateCounters();
|
|
75710
76001
|
}
|
|
75711
76002
|
}, {
|
|
75712
|
-
key: "
|
|
75713
|
-
value: function
|
|
75714
|
-
var
|
|
75715
|
-
var
|
|
75716
|
-
|
|
75717
|
-
|
|
75718
|
-
|
|
75719
|
-
|
|
76003
|
+
key: "addLaneNodes",
|
|
76004
|
+
value: function addLaneNodes(lanes) {
|
|
76005
|
+
var _this5 = this;
|
|
76006
|
+
var pool = this.getPool(lanes);
|
|
76007
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-updateNodes', [{
|
|
76008
|
+
id: pool.component.node.definition.id,
|
|
76009
|
+
properties: {
|
|
76010
|
+
x: pool.component.node.diagram.bounds.x,
|
|
76011
|
+
y: pool.component.node.diagram.bounds.y,
|
|
76012
|
+
height: pool.component.node.diagram.bounds.height,
|
|
76013
|
+
width: pool.component.node.diagram.bounds.width,
|
|
76014
|
+
isAddingLaneAbove: pool.isAddingLaneAbove
|
|
76015
|
+
}
|
|
76016
|
+
}]);
|
|
76017
|
+
this.yDoc.transact(function () {
|
|
76018
|
+
lanes.forEach(function (lane) {
|
|
76019
|
+
var yMapNested = new YMap();
|
|
76020
|
+
var data = _this5.prepareLaneData(lane);
|
|
76021
|
+
_this5.doTransact(yMapNested, data);
|
|
76022
|
+
_this5.yArray.push([yMapNested]);
|
|
76023
|
+
var stateUpdate = encodeStateAsUpdate(_this5.yDoc);
|
|
76024
|
+
_this5.clientIO.emit('createElement', stateUpdate);
|
|
75720
76025
|
});
|
|
75721
|
-
|
|
75722
|
-
|
|
75723
|
-
|
|
75724
|
-
|
|
75725
|
-
|
|
76026
|
+
});
|
|
76027
|
+
}
|
|
76028
|
+
}, {
|
|
76029
|
+
key: "prepareLaneData",
|
|
76030
|
+
value: function prepareLaneData(lane) {
|
|
76031
|
+
var data = {
|
|
76032
|
+
type: lane.type,
|
|
76033
|
+
id: lane.definition.id,
|
|
76034
|
+
name: lane.definition.name,
|
|
76035
|
+
x: lane.diagram.bounds.x,
|
|
76036
|
+
y: lane.diagram.bounds.y,
|
|
76037
|
+
width: lane.diagram.bounds.width,
|
|
76038
|
+
height: lane.diagram.bounds.height,
|
|
76039
|
+
poolId: lane.pool.component.node.definition.id,
|
|
76040
|
+
laneSetId: lane.pool.component.laneSet.id
|
|
76041
|
+
};
|
|
76042
|
+
return data;
|
|
76043
|
+
}
|
|
76044
|
+
}, {
|
|
76045
|
+
key: "getPool",
|
|
76046
|
+
value: function getPool(lanes) {
|
|
76047
|
+
if (lanes && lanes.length > 0) {
|
|
76048
|
+
return lanes[0].pool;
|
|
75726
76049
|
}
|
|
76050
|
+
return false;
|
|
76051
|
+
}
|
|
76052
|
+
}, {
|
|
76053
|
+
key: "getConnectionPoint",
|
|
76054
|
+
value: function getConnectionPoint(element, newPosition) {
|
|
76055
|
+
var _element$position = element.position(),
|
|
76056
|
+
elemX = _element$position.x,
|
|
76057
|
+
elemY = _element$position.y;
|
|
76058
|
+
var connectionOffset = {
|
|
76059
|
+
x: newPosition.x - elemX,
|
|
76060
|
+
y: newPosition.y - elemY
|
|
76061
|
+
};
|
|
76062
|
+
var _element$position2 = element.position(),
|
|
76063
|
+
x = _element$position2.x,
|
|
76064
|
+
y = _element$position2.y;
|
|
76065
|
+
var _element$size = element.size(),
|
|
76066
|
+
width = _element$size.width,
|
|
76067
|
+
height = _element$size.height;
|
|
76068
|
+
return connectionOffset ? {
|
|
76069
|
+
x: x + connectionOffset.x,
|
|
76070
|
+
y: y + connectionOffset.y
|
|
76071
|
+
} : {
|
|
76072
|
+
x: x + width / 2,
|
|
76073
|
+
y: y + height / 2
|
|
76074
|
+
};
|
|
75727
76075
|
}
|
|
75728
76076
|
}]);
|
|
75729
76077
|
return Multiplayer;
|
|
@@ -75918,7 +76266,8 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75918
76266
|
inspectorButtonRight: 65,
|
|
75919
76267
|
previewConfigs: [],
|
|
75920
76268
|
multiplayer: null,
|
|
75921
|
-
isMultiplayer: false
|
|
76269
|
+
isMultiplayer: false,
|
|
76270
|
+
flowTypes: ['processmaker-modeler-sequence-flow', 'processmaker-modeler-message-flow', 'processmaker-modeler-data-input-association', 'processmaker-modeler-data-output-association', 'processmaker-modeler-association']
|
|
75922
76271
|
};
|
|
75923
76272
|
},
|
|
75924
76273
|
watch: {
|
|
@@ -76192,6 +76541,12 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
76192
76541
|
return _this4.paper.findViewByModel(shape);
|
|
76193
76542
|
});
|
|
76194
76543
|
},
|
|
76544
|
+
getElementByNodeId: function getElementByNodeId(id) {
|
|
76545
|
+
var cells = this.paper.model.getCells();
|
|
76546
|
+
return cells.find(function (cell) {
|
|
76547
|
+
return cell.component && cell.component.id === id;
|
|
76548
|
+
});
|
|
76549
|
+
},
|
|
76195
76550
|
close: function close() {
|
|
76196
76551
|
var _this5 = this;
|
|
76197
76552
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
@@ -76856,71 +77211,83 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
76856
77211
|
control: control
|
|
76857
77212
|
});
|
|
76858
77213
|
},
|
|
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;
|
|
77214
|
+
addRemoteNode: function addRemoteNode(data) {
|
|
77215
|
+
var _this26 = this;
|
|
76877
77216
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
76878
|
-
var
|
|
77217
|
+
var definition, diagram, newNode;
|
|
76879
77218
|
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
76880
77219
|
while (1) switch (_context13.prev = _context13.next) {
|
|
76881
77220
|
case 0:
|
|
76882
|
-
|
|
76883
|
-
|
|
76884
|
-
|
|
77221
|
+
definition = _this26.nodeRegistry[data.type].definition(_this26.moddle, _this26.$t);
|
|
77222
|
+
diagram = _this26.nodeRegistry[data.type].diagram(_this26.moddle);
|
|
77223
|
+
diagram.bounds.x = data.x;
|
|
77224
|
+
diagram.bounds.y = data.y;
|
|
77225
|
+
newNode = _this26.createNode(data.type, definition, diagram);
|
|
77226
|
+
_context13.next = 7;
|
|
77227
|
+
return _this26.addNode(newNode, data.id, true);
|
|
77228
|
+
case 7:
|
|
77229
|
+
_context13.next = 9;
|
|
77230
|
+
return _this26.$nextTick();
|
|
77231
|
+
case 9:
|
|
77232
|
+
_context13.next = 11;
|
|
77233
|
+
return _this26.paperManager.awaitScheduledUpdates();
|
|
77234
|
+
case 11:
|
|
77235
|
+
if (_this26.autoValidate) {
|
|
77236
|
+
_this26.validateBpmnDiagram();
|
|
77237
|
+
}
|
|
77238
|
+
case 12:
|
|
77239
|
+
case "end":
|
|
77240
|
+
return _context13.stop();
|
|
77241
|
+
}
|
|
77242
|
+
}, _callee13);
|
|
77243
|
+
}))();
|
|
77244
|
+
},
|
|
77245
|
+
handleDrop: function handleDrop(data) {
|
|
77246
|
+
var _this27 = this;
|
|
77247
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
|
|
77248
|
+
var clientX, clientY, control, nodeThatWillBeReplaced, definition, diagram, _this27$paperManager$, x, y, newNode, nodeMigrator;
|
|
77249
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
77250
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
77251
|
+
case 0:
|
|
77252
|
+
clientX = data.clientX, clientY = data.clientY, control = data.control, nodeThatWillBeReplaced = data.nodeThatWillBeReplaced;
|
|
77253
|
+
_this27.validateDropTarget({
|
|
76885
77254
|
clientX: clientX,
|
|
76886
77255
|
clientY: clientY,
|
|
76887
77256
|
control: control
|
|
76888
77257
|
});
|
|
76889
|
-
if (
|
|
76890
|
-
|
|
77258
|
+
if (_this27.allowDrop) {
|
|
77259
|
+
_context14.next = 4;
|
|
76891
77260
|
break;
|
|
76892
77261
|
}
|
|
76893
|
-
return
|
|
76894
|
-
case
|
|
76895
|
-
definition =
|
|
76896
|
-
diagram =
|
|
76897
|
-
|
|
77262
|
+
return _context14.abrupt("return");
|
|
77263
|
+
case 4:
|
|
77264
|
+
definition = _this27.nodeRegistry[control.type].definition(_this27.moddle, _this27.$t);
|
|
77265
|
+
diagram = _this27.nodeRegistry[control.type].diagram(_this27.moddle);
|
|
77266
|
+
_this27$paperManager$ = _this27.paperManager.clientToGridPoint(clientX, clientY), x = _this27$paperManager$.x, y = _this27$paperManager$.y;
|
|
76898
77267
|
diagram.bounds.x = x;
|
|
76899
77268
|
diagram.bounds.y = y;
|
|
76900
|
-
newNode =
|
|
77269
|
+
newNode = _this27.createNode(control.type, definition, diagram);
|
|
76901
77270
|
if (newNode.isBpmnType('bpmn:BoundaryEvent')) {
|
|
76902
|
-
|
|
77271
|
+
_this27.setShapeCenterUnderCursor(diagram);
|
|
76903
77272
|
}
|
|
76904
|
-
|
|
76905
|
-
|
|
76906
|
-
|
|
76907
|
-
|
|
76908
|
-
return _this26.addNode(newNode, id, selected);
|
|
76909
|
-
case 15:
|
|
77273
|
+
_this27.highlightNode(newNode);
|
|
77274
|
+
_context14.next = 14;
|
|
77275
|
+
return _this27.addNode(newNode);
|
|
77276
|
+
case 14:
|
|
76910
77277
|
if (nodeThatWillBeReplaced) {
|
|
76911
|
-
|
|
77278
|
+
_context14.next = 16;
|
|
76912
77279
|
break;
|
|
76913
77280
|
}
|
|
76914
|
-
return
|
|
76915
|
-
case
|
|
76916
|
-
nodeMigrator = new NodeMigrator(nodeThatWillBeReplaced, definition,
|
|
77281
|
+
return _context14.abrupt("return");
|
|
77282
|
+
case 16:
|
|
77283
|
+
nodeMigrator = new NodeMigrator(nodeThatWillBeReplaced, definition, _this27.graph, newNode, _this27.processes, _this27.collaboration);
|
|
76917
77284
|
nodeMigrator.migrate();
|
|
76918
|
-
return
|
|
76919
|
-
case
|
|
77285
|
+
return _context14.abrupt("return", newNode);
|
|
77286
|
+
case 19:
|
|
76920
77287
|
case "end":
|
|
76921
|
-
return
|
|
77288
|
+
return _context14.stop();
|
|
76922
77289
|
}
|
|
76923
|
-
},
|
|
77290
|
+
}, _callee14);
|
|
76924
77291
|
}))();
|
|
76925
77292
|
},
|
|
76926
77293
|
setShapeCenterUnderCursor: function setShapeCenterUnderCursor(diagram) {
|
|
@@ -76928,236 +77295,282 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
76928
77295
|
diagram.bounds.y -= diagram.bounds.height / 2;
|
|
76929
77296
|
},
|
|
76930
77297
|
selectNewNode: function selectNewNode(node) {
|
|
76931
|
-
var
|
|
76932
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77298
|
+
var _this28 = this;
|
|
77299
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
|
|
76933
77300
|
var newNodeComponent, view;
|
|
76934
|
-
return _regeneratorRuntime().wrap(function
|
|
76935
|
-
while (1) switch (
|
|
77301
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
77302
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
76936
77303
|
case 0:
|
|
76937
|
-
|
|
76938
|
-
return
|
|
77304
|
+
_context15.next = 2;
|
|
77305
|
+
return _this28.$nextTick();
|
|
76939
77306
|
case 2:
|
|
76940
|
-
|
|
76941
|
-
return
|
|
77307
|
+
_context15.next = 4;
|
|
77308
|
+
return _this28.paperManager.awaitScheduledUpdates();
|
|
76942
77309
|
case 4:
|
|
76943
|
-
newNodeComponent =
|
|
77310
|
+
newNodeComponent = _this28.$refs.nodeComponent.find(function (component) {
|
|
76944
77311
|
return component.node === node;
|
|
76945
77312
|
});
|
|
76946
77313
|
view = newNodeComponent.shapeView;
|
|
76947
|
-
|
|
76948
|
-
return
|
|
77314
|
+
_context15.next = 8;
|
|
77315
|
+
return _this28.$refs.selector.selectElement(view);
|
|
76949
77316
|
case 8:
|
|
76950
77317
|
case "end":
|
|
76951
|
-
return
|
|
77318
|
+
return _context15.stop();
|
|
76952
77319
|
}
|
|
76953
|
-
},
|
|
77320
|
+
}, _callee15);
|
|
76954
77321
|
}))();
|
|
76955
77322
|
},
|
|
77323
|
+
multiplayerHook: function multiplayerHook(node, fromClient) {
|
|
77324
|
+
var blackList = ['processmaker-modeler-lane', 'processmaker-modeler-generic-flow', 'processmaker-modeler-sequence-flow', 'processmaker-modeler-association', 'processmaker-modeler-data-input-association', 'processmaker-modeler-data-output-association'];
|
|
77325
|
+
if (!this.isMultiplayer) {
|
|
77326
|
+
return;
|
|
77327
|
+
}
|
|
77328
|
+
if (!fromClient) {
|
|
77329
|
+
if (!blackList.includes(node.type) && !this.flowTypes.includes(node.type)) {
|
|
77330
|
+
var _node$pool;
|
|
77331
|
+
var defaultData = {
|
|
77332
|
+
x: node.diagram.bounds.x,
|
|
77333
|
+
y: node.diagram.bounds.y,
|
|
77334
|
+
height: node.diagram.bounds.height,
|
|
77335
|
+
width: node.diagram.bounds.width,
|
|
77336
|
+
type: node.type,
|
|
77337
|
+
id: node.definition.id,
|
|
77338
|
+
isAddingLaneAbove: true
|
|
77339
|
+
};
|
|
77340
|
+
if (node !== null && node !== void 0 && (_node$pool = node.pool) !== null && _node$pool !== void 0 && _node$pool.component) {
|
|
77341
|
+
defaultData['poolId'] = node.pool.component.id;
|
|
77342
|
+
}
|
|
77343
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-addNode', defaultData);
|
|
77344
|
+
}
|
|
77345
|
+
if (this.flowTypes.includes(node.type)) {
|
|
77346
|
+
var _node$definition$sour, _node$definition$targ;
|
|
77347
|
+
var sourceRefId = (_node$definition$sour = node.definition.sourceRef) === null || _node$definition$sour === void 0 ? void 0 : _node$definition$sour.id;
|
|
77348
|
+
var targetRefId = (_node$definition$targ = node.definition.targetRef) === null || _node$definition$targ === void 0 ? void 0 : _node$definition$targ.id;
|
|
77349
|
+
if (node.type === 'processmaker-modeler-data-input-association') {
|
|
77350
|
+
var _node$definition$sour2, _node$definition$targ2, _node$definition$targ3;
|
|
77351
|
+
sourceRefId = Array.isArray(node.definition.sourceRef) && ((_node$definition$sour2 = node.definition.sourceRef[0]) === null || _node$definition$sour2 === void 0 ? void 0 : _node$definition$sour2.id);
|
|
77352
|
+
targetRefId = (_node$definition$targ2 = node.definition.targetRef) === null || _node$definition$targ2 === void 0 ? void 0 : (_node$definition$targ3 = _node$definition$targ2.$parent) === null || _node$definition$targ3 === void 0 ? void 0 : _node$definition$targ3.$parent.get('id');
|
|
77353
|
+
}
|
|
77354
|
+
if (sourceRefId && targetRefId) {
|
|
77355
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-addFlow', {
|
|
77356
|
+
id: node.definition.id,
|
|
77357
|
+
type: node.type,
|
|
77358
|
+
sourceRefId: sourceRefId,
|
|
77359
|
+
targetRefId: targetRefId,
|
|
77360
|
+
waypoint: node.diagram.waypoint
|
|
77361
|
+
});
|
|
77362
|
+
}
|
|
77363
|
+
}
|
|
77364
|
+
}
|
|
77365
|
+
},
|
|
76956
77366
|
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 (
|
|
77367
|
+
var _arguments4 = arguments,
|
|
77368
|
+
_this29 = this;
|
|
77369
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
|
|
77370
|
+
var id, fromClient, targetProcess;
|
|
77371
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
77372
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
76963
77373
|
case 0:
|
|
76964
|
-
id =
|
|
76965
|
-
|
|
77374
|
+
id = _arguments4.length > 1 && _arguments4[1] !== undefined ? _arguments4[1] : null;
|
|
77375
|
+
fromClient = _arguments4.length > 2 && _arguments4[2] !== undefined ? _arguments4[2] : false;
|
|
76966
77376
|
if (!node.pool) {
|
|
76967
|
-
node.pool =
|
|
77377
|
+
node.pool = _this29.poolTarget;
|
|
76968
77378
|
}
|
|
76969
|
-
targetProcess = node.getTargetProcess(
|
|
77379
|
+
targetProcess = node.getTargetProcess(_this29.processes, _this29.processNode);
|
|
76970
77380
|
addNodeToProcess(node, targetProcess);
|
|
76971
|
-
node.setIds(
|
|
76972
|
-
|
|
77381
|
+
node.setIds(_this29.nodeIdGenerator, id);
|
|
77382
|
+
_this29.planeElements.push(node.diagram);
|
|
77383
|
+
// add multiplayer logic as a hook
|
|
77384
|
+
_this29.multiplayerHook(node, fromClient);
|
|
76973
77385
|
store.commit('addNode', node);
|
|
76974
|
-
|
|
77386
|
+
_this29.poolTarget = null;
|
|
76975
77387
|
|
|
76976
77388
|
// add processmaker-modeler-generic-flow
|
|
76977
|
-
if (![sequenceFlow_id, poolLane_config_id,
|
|
76978
|
-
|
|
77389
|
+
if (![sequenceFlow_id, poolLane_config_id, associationConfig_id, messageFlow_config_id, config_id, dataInputAssociation_config_id, genericFlow_config_id].includes(node.type)) {
|
|
77390
|
+
_context16.next = 12;
|
|
76979
77391
|
break;
|
|
76980
77392
|
}
|
|
76981
|
-
return
|
|
76982
|
-
case
|
|
76983
|
-
if (
|
|
77393
|
+
return _context16.abrupt("return");
|
|
77394
|
+
case 12:
|
|
77395
|
+
if (!fromClient) {
|
|
76984
77396
|
// Select the node after it has been added to the store (does not apply to flows)
|
|
76985
|
-
|
|
77397
|
+
_this29.selectNewNode(node);
|
|
76986
77398
|
}
|
|
76987
|
-
return
|
|
77399
|
+
return _context16.abrupt("return", new Promise(function (resolve) {
|
|
76988
77400
|
setTimeout(function () {
|
|
76989
|
-
|
|
77401
|
+
_this29.pushToUndoStack();
|
|
76990
77402
|
resolve();
|
|
76991
77403
|
});
|
|
76992
77404
|
}));
|
|
76993
|
-
case
|
|
77405
|
+
case 14:
|
|
76994
77406
|
case "end":
|
|
76995
|
-
return
|
|
77407
|
+
return _context16.stop();
|
|
76996
77408
|
}
|
|
76997
|
-
},
|
|
77409
|
+
}, _callee16);
|
|
76998
77410
|
}))();
|
|
76999
77411
|
},
|
|
77000
77412
|
addClonedNodes: function addClonedNodes(nodes) {
|
|
77001
|
-
var
|
|
77002
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77003
|
-
return _regeneratorRuntime().wrap(function
|
|
77004
|
-
while (1) switch (
|
|
77413
|
+
var _this30 = this;
|
|
77414
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
|
|
77415
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
77416
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
77005
77417
|
case 0:
|
|
77006
77418
|
nodes.forEach(function (node) {
|
|
77007
77419
|
if (!node.pool) {
|
|
77008
|
-
node.pool =
|
|
77420
|
+
node.pool = _this30.poolTarget;
|
|
77009
77421
|
}
|
|
77010
|
-
var targetProcess = node.getTargetProcess(
|
|
77422
|
+
var targetProcess = node.getTargetProcess(_this30.processes, _this30.processNode);
|
|
77011
77423
|
addNodeToProcess(node, targetProcess);
|
|
77012
|
-
|
|
77424
|
+
_this30.planeElements.push(node.diagram);
|
|
77425
|
+
_this30.multiplayerHook(node, false);
|
|
77013
77426
|
store.commit('addNode', node);
|
|
77014
|
-
|
|
77427
|
+
_this30.poolTarget = null;
|
|
77015
77428
|
});
|
|
77016
77429
|
case 1:
|
|
77017
77430
|
case "end":
|
|
77018
|
-
return
|
|
77431
|
+
return _context17.stop();
|
|
77019
77432
|
}
|
|
77020
|
-
},
|
|
77433
|
+
}, _callee17);
|
|
77021
77434
|
}))();
|
|
77022
77435
|
},
|
|
77023
77436
|
removeNode: function removeNode(node, options) {
|
|
77024
|
-
var
|
|
77025
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77026
|
-
return _regeneratorRuntime().wrap(function
|
|
77027
|
-
while (1) switch (
|
|
77437
|
+
var _this31 = this;
|
|
77438
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
|
|
77439
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
77440
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
77028
77441
|
case 0:
|
|
77029
77442
|
// Check if the node is not replaced
|
|
77030
|
-
if (
|
|
77443
|
+
if (_this31.isMultiplayer && !(options !== null && options !== void 0 && options.isReplaced)) {
|
|
77031
77444
|
// Emit event to server to remove node
|
|
77032
77445
|
window.ProcessMaker.EventBus.$emit('multiplayer-removeNode', node);
|
|
77033
77446
|
}
|
|
77034
|
-
|
|
77447
|
+
_this31.removeNodeProcedure(node, options);
|
|
77035
77448
|
case 2:
|
|
77036
77449
|
case "end":
|
|
77037
|
-
return
|
|
77450
|
+
return _context18.stop();
|
|
77038
77451
|
}
|
|
77039
|
-
},
|
|
77452
|
+
}, _callee18);
|
|
77040
77453
|
}))();
|
|
77041
77454
|
},
|
|
77042
77455
|
removeNodeProcedure: function removeNodeProcedure(node) {
|
|
77043
|
-
var
|
|
77044
|
-
|
|
77045
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77456
|
+
var _arguments5 = arguments,
|
|
77457
|
+
_this32 = this;
|
|
77458
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
|
|
77046
77459
|
var _ref6, _ref6$removeRelations, removeRelationships;
|
|
77047
|
-
return _regeneratorRuntime().wrap(function
|
|
77048
|
-
while (1) switch (
|
|
77460
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
77461
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
77049
77462
|
case 0:
|
|
77050
|
-
_ref6 =
|
|
77463
|
+
_ref6 = _arguments5.length > 1 && _arguments5[1] !== undefined ? _arguments5[1] : {}, _ref6$removeRelations = _ref6.removeRelationships, removeRelationships = _ref6$removeRelations === void 0 ? true : _ref6$removeRelations;
|
|
77051
77464
|
if (node) {
|
|
77052
|
-
|
|
77465
|
+
_context19.next = 3;
|
|
77053
77466
|
break;
|
|
77054
77467
|
}
|
|
77055
|
-
return
|
|
77468
|
+
return _context19.abrupt("return");
|
|
77056
77469
|
case 3:
|
|
77057
77470
|
if (removeRelationships) {
|
|
77058
|
-
removeNodeFlows(node,
|
|
77059
|
-
removeNodeMessageFlows(node,
|
|
77060
|
-
removeNodeAssociations(node,
|
|
77471
|
+
removeNodeFlows(node, _this32);
|
|
77472
|
+
removeNodeMessageFlows(node, _this32);
|
|
77473
|
+
removeNodeAssociations(node, _this32);
|
|
77061
77474
|
}
|
|
77062
77475
|
removeOutgoingAndIncomingRefsToFlow(node);
|
|
77063
|
-
removeBoundaryEvents(
|
|
77476
|
+
removeBoundaryEvents(_this32.graph, node, _this32.removeNode);
|
|
77064
77477
|
removeSourceDefault(node);
|
|
77065
|
-
|
|
77066
|
-
|
|
77478
|
+
_this32.removeNodesFromLane(node);
|
|
77479
|
+
_this32.removeNodesFromPool(node);
|
|
77067
77480
|
store.commit('removeNode', node);
|
|
77068
|
-
store.commit('highlightNode',
|
|
77069
|
-
|
|
77070
|
-
|
|
77071
|
-
return
|
|
77481
|
+
store.commit('highlightNode', _this32.processNode);
|
|
77482
|
+
_this32.$refs.selector.clearSelection();
|
|
77483
|
+
_context19.next = 14;
|
|
77484
|
+
return _this32.$nextTick();
|
|
77072
77485
|
case 14:
|
|
77073
|
-
|
|
77074
|
-
return
|
|
77486
|
+
_context19.next = 16;
|
|
77487
|
+
return _this32.pushToUndoStack();
|
|
77075
77488
|
case 16:
|
|
77076
77489
|
// force to update the processNode property in every delete
|
|
77077
|
-
|
|
77078
|
-
if (
|
|
77079
|
-
|
|
77080
|
-
return diagram.bpmnElement.id ===
|
|
77490
|
+
_this32.processes = _this32.getProcesses();
|
|
77491
|
+
if (_this32.processes && _this32.processes.length > 0) {
|
|
77492
|
+
_this32.processNode = new Node('processmaker-modeler-process', _this32.processes[0], _this32.planeElements.find(function (diagram) {
|
|
77493
|
+
return diagram.bpmnElement.id === _this32.processes[0].id;
|
|
77081
77494
|
}));
|
|
77082
77495
|
}
|
|
77083
77496
|
case 18:
|
|
77084
77497
|
case "end":
|
|
77085
|
-
return
|
|
77498
|
+
return _context19.stop();
|
|
77086
77499
|
}
|
|
77087
|
-
},
|
|
77500
|
+
}, _callee19);
|
|
77088
77501
|
}))();
|
|
77089
77502
|
},
|
|
77090
77503
|
removeNodes: function removeNodes() {
|
|
77091
|
-
var
|
|
77092
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77093
|
-
return _regeneratorRuntime().wrap(function
|
|
77094
|
-
while (1) switch (
|
|
77504
|
+
var _this33 = this;
|
|
77505
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
|
|
77506
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
77507
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
77095
77508
|
case 0:
|
|
77096
|
-
|
|
77097
|
-
return
|
|
77098
|
-
return _regeneratorRuntime().wrap(function
|
|
77099
|
-
while (1) switch (
|
|
77509
|
+
_context22.next = 2;
|
|
77510
|
+
return _this33.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
|
|
77511
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
77512
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
77100
77513
|
case 0:
|
|
77101
|
-
|
|
77102
|
-
return
|
|
77514
|
+
_context21.next = 2;
|
|
77515
|
+
return _this33.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
|
|
77103
77516
|
var waitPromises;
|
|
77104
|
-
return _regeneratorRuntime().wrap(function
|
|
77105
|
-
while (1) switch (
|
|
77517
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
77518
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
77106
77519
|
case 0:
|
|
77107
77520
|
waitPromises = [];
|
|
77108
|
-
|
|
77109
|
-
return waitPromises.push(
|
|
77521
|
+
_this33.highlightedNodes.forEach(function (node) {
|
|
77522
|
+
return waitPromises.push(_this33.removeNode(node, {
|
|
77110
77523
|
removeRelationships: true
|
|
77111
77524
|
}));
|
|
77112
77525
|
});
|
|
77113
|
-
|
|
77526
|
+
_context20.next = 4;
|
|
77114
77527
|
return Promise.all(waitPromises);
|
|
77115
77528
|
case 4:
|
|
77116
77529
|
store.commit('highlightNode');
|
|
77117
77530
|
case 5:
|
|
77118
77531
|
case "end":
|
|
77119
|
-
return
|
|
77532
|
+
return _context20.stop();
|
|
77120
77533
|
}
|
|
77121
|
-
},
|
|
77534
|
+
}, _callee20);
|
|
77122
77535
|
})));
|
|
77123
77536
|
case 2:
|
|
77124
77537
|
case "end":
|
|
77125
|
-
return
|
|
77538
|
+
return _context21.stop();
|
|
77126
77539
|
}
|
|
77127
|
-
},
|
|
77540
|
+
}, _callee21);
|
|
77128
77541
|
})));
|
|
77129
77542
|
case 2:
|
|
77130
77543
|
case "end":
|
|
77131
|
-
return
|
|
77544
|
+
return _context22.stop();
|
|
77132
77545
|
}
|
|
77133
|
-
},
|
|
77546
|
+
}, _callee22);
|
|
77134
77547
|
}))();
|
|
77135
77548
|
},
|
|
77136
77549
|
replaceNode: function replaceNode(_ref9) {
|
|
77137
|
-
var
|
|
77550
|
+
var _this34 = this;
|
|
77138
77551
|
var node = _ref9.node,
|
|
77139
77552
|
typeToReplaceWith = _ref9.typeToReplaceWith;
|
|
77140
|
-
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77141
|
-
return _regeneratorRuntime().wrap(function
|
|
77142
|
-
while (1) switch (
|
|
77553
|
+
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
|
|
77554
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
77555
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
77143
77556
|
case 0:
|
|
77144
|
-
|
|
77145
|
-
return
|
|
77146
|
-
var
|
|
77147
|
-
return _regeneratorRuntime().wrap(function
|
|
77148
|
-
while (1) switch (
|
|
77557
|
+
_context24.next = 2;
|
|
77558
|
+
return _this34.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
|
|
77559
|
+
var _node$diagram$bounds, x, y, nodeData, nodeTypes, newControl;
|
|
77560
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
77561
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
77149
77562
|
case 0:
|
|
77150
|
-
|
|
77563
|
+
_node$diagram$bounds = node.diagram.bounds, x = _node$diagram$bounds.x, y = _node$diagram$bounds.y;
|
|
77151
77564
|
nodeData = {
|
|
77152
|
-
|
|
77153
|
-
|
|
77565
|
+
x: x,
|
|
77566
|
+
y: y,
|
|
77154
77567
|
control: {
|
|
77155
77568
|
type: typeToReplaceWith
|
|
77156
77569
|
},
|
|
77157
77570
|
nodeThatWillBeReplaced: node
|
|
77158
77571
|
};
|
|
77159
|
-
if (!
|
|
77160
|
-
|
|
77572
|
+
if (!_this34.isMultiplayer) {
|
|
77573
|
+
_context23.next = 8;
|
|
77161
77574
|
break;
|
|
77162
77575
|
}
|
|
77163
77576
|
// Get all node types
|
|
@@ -77171,81 +77584,81 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77171
77584
|
if (newControl.length === 1) {
|
|
77172
77585
|
window.ProcessMaker.EventBus.$emit('multiplayer-replaceNode', {
|
|
77173
77586
|
nodeData: nodeData,
|
|
77174
|
-
newControl: newControl[0]
|
|
77587
|
+
newControl: newControl[0].type
|
|
77175
77588
|
});
|
|
77176
77589
|
}
|
|
77177
|
-
|
|
77590
|
+
_context23.next = 10;
|
|
77178
77591
|
break;
|
|
77179
77592
|
case 8:
|
|
77180
|
-
|
|
77181
|
-
return
|
|
77593
|
+
_context23.next = 10;
|
|
77594
|
+
return _this34.replaceNodeProcedure(nodeData, true);
|
|
77182
77595
|
case 10:
|
|
77183
77596
|
case "end":
|
|
77184
|
-
return
|
|
77597
|
+
return _context23.stop();
|
|
77185
77598
|
}
|
|
77186
|
-
},
|
|
77599
|
+
}, _callee23);
|
|
77187
77600
|
})));
|
|
77188
77601
|
case 2:
|
|
77189
77602
|
case "end":
|
|
77190
|
-
return
|
|
77603
|
+
return _context24.stop();
|
|
77191
77604
|
}
|
|
77192
|
-
},
|
|
77605
|
+
}, _callee24);
|
|
77193
77606
|
})));
|
|
77194
77607
|
},
|
|
77195
77608
|
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 (
|
|
77609
|
+
var _arguments6 = arguments,
|
|
77610
|
+
_this35 = this;
|
|
77611
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25() {
|
|
77612
|
+
var isReplaced, _this35$paper$localTo, clientX, clientY, newNode;
|
|
77613
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
|
77614
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
77202
77615
|
case 0:
|
|
77203
|
-
isReplaced =
|
|
77616
|
+
isReplaced = _arguments6.length > 1 && _arguments6[1] !== undefined ? _arguments6[1] : false;
|
|
77204
77617
|
if (isReplaced) {
|
|
77205
77618
|
// Get the clientX and clientY from the node that will be replaced
|
|
77206
|
-
|
|
77619
|
+
_this35$paper$localTo = _this35.paper.localToClientPoint(data.nodeThatWillBeReplaced.diagram.bounds), clientX = _this35$paper$localTo.x, clientY = _this35$paper$localTo.y;
|
|
77207
77620
|
data.clientX = clientX;
|
|
77208
77621
|
data.clientY = clientY;
|
|
77209
77622
|
}
|
|
77210
|
-
|
|
77211
|
-
return
|
|
77623
|
+
_context25.next = 4;
|
|
77624
|
+
return _this35.handleDrop(data);
|
|
77212
77625
|
case 4:
|
|
77213
|
-
newNode =
|
|
77214
|
-
|
|
77215
|
-
return
|
|
77626
|
+
newNode = _context25.sent;
|
|
77627
|
+
_context25.next = 7;
|
|
77628
|
+
return _this35.removeNode(data.nodeThatWillBeReplaced, {
|
|
77216
77629
|
removeRelationships: false,
|
|
77217
77630
|
isReplaced: isReplaced
|
|
77218
77631
|
});
|
|
77219
77632
|
case 7:
|
|
77220
|
-
|
|
77221
|
-
|
|
77633
|
+
_this35.highlightNode(newNode);
|
|
77634
|
+
_this35.selectNewNode(newNode);
|
|
77222
77635
|
case 9:
|
|
77223
77636
|
case "end":
|
|
77224
|
-
return
|
|
77637
|
+
return _context25.stop();
|
|
77225
77638
|
}
|
|
77226
|
-
},
|
|
77639
|
+
}, _callee25);
|
|
77227
77640
|
}))();
|
|
77228
77641
|
},
|
|
77229
77642
|
replaceAiNode: function replaceAiNode(_ref12) {
|
|
77230
|
-
var
|
|
77643
|
+
var _this36 = this;
|
|
77231
77644
|
var node = _ref12.node,
|
|
77232
77645
|
typeToReplaceWith = _ref12.typeToReplaceWith,
|
|
77233
77646
|
assetId = _ref12.assetId,
|
|
77234
77647
|
assetName = _ref12.assetName,
|
|
77235
77648
|
redirectTo = _ref12.redirectTo;
|
|
77236
|
-
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77237
|
-
return _regeneratorRuntime().wrap(function
|
|
77238
|
-
while (1) switch (
|
|
77649
|
+
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27() {
|
|
77650
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context27) {
|
|
77651
|
+
while (1) switch (_context27.prev = _context27.next) {
|
|
77239
77652
|
case 0:
|
|
77240
|
-
|
|
77241
|
-
return
|
|
77242
|
-
var
|
|
77243
|
-
return _regeneratorRuntime().wrap(function
|
|
77244
|
-
while (1) switch (
|
|
77653
|
+
_context27.next = 2;
|
|
77654
|
+
return _this36.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26() {
|
|
77655
|
+
var _this36$paper$localTo, clientX, clientY, newNode;
|
|
77656
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
|
77657
|
+
while (1) switch (_context26.prev = _context26.next) {
|
|
77245
77658
|
case 0:
|
|
77246
|
-
|
|
77247
|
-
|
|
77248
|
-
return
|
|
77659
|
+
_this36$paper$localTo = _this36.paper.localToClientPoint(node.diagram.bounds), clientX = _this36$paper$localTo.x, clientY = _this36$paper$localTo.y;
|
|
77660
|
+
_context26.next = 3;
|
|
77661
|
+
return _this36.handleDrop({
|
|
77249
77662
|
clientX: clientX,
|
|
77250
77663
|
clientY: clientY,
|
|
77251
77664
|
control: {
|
|
@@ -77254,7 +77667,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77254
77667
|
nodeThatWillBeReplaced: node
|
|
77255
77668
|
});
|
|
77256
77669
|
case 3:
|
|
77257
|
-
newNode =
|
|
77670
|
+
newNode = _context26.sent;
|
|
77258
77671
|
if (typeToReplaceWith === 'processmaker-modeler-task') {
|
|
77259
77672
|
newNode.definition.screenRef = assetId;
|
|
77260
77673
|
newNode.definition.name = assetName;
|
|
@@ -77269,95 +77682,98 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77269
77682
|
newNode.definition.config = "{\"calledElement\":\"ProcessId-".concat(assetId, "\",\"processId\":").concat(assetId, ",\"startEvent\":\"node_1\",\"name\":\"").concat(assetName, "\"}");
|
|
77270
77683
|
redirectTo = "".concat(redirectTo, "/").concat(newNode.id);
|
|
77271
77684
|
}
|
|
77272
|
-
|
|
77273
|
-
return
|
|
77685
|
+
_context26.next = 9;
|
|
77686
|
+
return _this36.removeNode(node, {
|
|
77274
77687
|
removeRelationships: false
|
|
77275
77688
|
});
|
|
77276
77689
|
case 9:
|
|
77277
|
-
|
|
77278
|
-
|
|
77279
|
-
|
|
77280
|
-
return
|
|
77690
|
+
_this36.highlightNode(newNode);
|
|
77691
|
+
_this36.selectNewNode(newNode);
|
|
77692
|
+
_context26.next = 13;
|
|
77693
|
+
return _this36.pushToUndoStack();
|
|
77281
77694
|
case 13:
|
|
77282
|
-
|
|
77283
|
-
return
|
|
77695
|
+
_context26.next = 15;
|
|
77696
|
+
return _this36.$nextTick();
|
|
77284
77697
|
case 15:
|
|
77285
|
-
|
|
77698
|
+
_this36.saveBpmn(redirectTo, newNode.id);
|
|
77286
77699
|
case 16:
|
|
77287
77700
|
case "end":
|
|
77288
|
-
return
|
|
77701
|
+
return _context26.stop();
|
|
77289
77702
|
}
|
|
77290
|
-
},
|
|
77703
|
+
}, _callee26);
|
|
77291
77704
|
})));
|
|
77292
77705
|
case 2:
|
|
77293
77706
|
case "end":
|
|
77294
|
-
return
|
|
77707
|
+
return _context27.stop();
|
|
77295
77708
|
}
|
|
77296
|
-
},
|
|
77709
|
+
}, _callee27);
|
|
77297
77710
|
})));
|
|
77298
77711
|
},
|
|
77299
77712
|
replaceGenericFlow: function replaceGenericFlow(_ref15) {
|
|
77300
|
-
var
|
|
77713
|
+
var _this37 = this;
|
|
77301
77714
|
var actualFlow = _ref15.actualFlow,
|
|
77302
77715
|
genericFlow = _ref15.genericFlow,
|
|
77303
77716
|
targetNode = _ref15.targetNode;
|
|
77304
|
-
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77305
|
-
return _regeneratorRuntime().wrap(function
|
|
77306
|
-
while (1) switch (
|
|
77717
|
+
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29() {
|
|
77718
|
+
return _regeneratorRuntime().wrap(function _callee29$(_context29) {
|
|
77719
|
+
while (1) switch (_context29.prev = _context29.next) {
|
|
77307
77720
|
case 0:
|
|
77308
|
-
|
|
77309
|
-
return
|
|
77310
|
-
return _regeneratorRuntime().wrap(function
|
|
77311
|
-
while (1) switch (
|
|
77721
|
+
_context29.next = 2;
|
|
77722
|
+
return _this37.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28() {
|
|
77723
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context28) {
|
|
77724
|
+
while (1) switch (_context28.prev = _context28.next) {
|
|
77312
77725
|
case 0:
|
|
77313
|
-
|
|
77314
|
-
return
|
|
77726
|
+
_context28.next = 2;
|
|
77727
|
+
return _this37.highlightNode(null);
|
|
77315
77728
|
case 2:
|
|
77316
|
-
|
|
77317
|
-
return
|
|
77729
|
+
_context28.next = 4;
|
|
77730
|
+
return _this37.$nextTick();
|
|
77318
77731
|
case 4:
|
|
77319
|
-
|
|
77320
|
-
return _this36.addNode(actualFlow);
|
|
77321
|
-
case 6:
|
|
77322
|
-
_context27.next = 8;
|
|
77732
|
+
_context28.next = 6;
|
|
77323
77733
|
return store.commit('removeNode', genericFlow);
|
|
77734
|
+
case 6:
|
|
77735
|
+
_context28.next = 8;
|
|
77736
|
+
return _this37.$nextTick();
|
|
77324
77737
|
case 8:
|
|
77325
|
-
|
|
77326
|
-
return
|
|
77738
|
+
_context28.next = 10;
|
|
77739
|
+
return _this37.addNode(actualFlow, genericFlow.definition.id);
|
|
77327
77740
|
case 10:
|
|
77328
|
-
|
|
77329
|
-
return
|
|
77741
|
+
_context28.next = 12;
|
|
77742
|
+
return _this37.$nextTick();
|
|
77330
77743
|
case 12:
|
|
77744
|
+
_context28.next = 14;
|
|
77745
|
+
return _this37.highlightNode(targetNode);
|
|
77746
|
+
case 14:
|
|
77331
77747
|
case "end":
|
|
77332
|
-
return
|
|
77748
|
+
return _context28.stop();
|
|
77333
77749
|
}
|
|
77334
|
-
},
|
|
77750
|
+
}, _callee28);
|
|
77335
77751
|
})));
|
|
77336
77752
|
case 2:
|
|
77337
77753
|
case "end":
|
|
77338
|
-
return
|
|
77754
|
+
return _context29.stop();
|
|
77339
77755
|
}
|
|
77340
|
-
},
|
|
77756
|
+
}, _callee29);
|
|
77341
77757
|
})));
|
|
77342
77758
|
},
|
|
77343
77759
|
performSingleUndoRedoTransaction: function performSingleUndoRedoTransaction(cb) {
|
|
77344
|
-
var
|
|
77345
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77346
|
-
return _regeneratorRuntime().wrap(function
|
|
77347
|
-
while (1) switch (
|
|
77760
|
+
var _this38 = this;
|
|
77761
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30() {
|
|
77762
|
+
return _regeneratorRuntime().wrap(function _callee30$(_context30) {
|
|
77763
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
77348
77764
|
case 0:
|
|
77349
77765
|
undoRedoStore.commit('disableSavingState');
|
|
77350
|
-
|
|
77766
|
+
_context30.next = 3;
|
|
77351
77767
|
return cb();
|
|
77352
77768
|
case 3:
|
|
77353
77769
|
undoRedoStore.commit('enableSavingState');
|
|
77354
|
-
|
|
77355
|
-
return
|
|
77770
|
+
_context30.next = 6;
|
|
77771
|
+
return _this38.pushToUndoStack();
|
|
77356
77772
|
case 6:
|
|
77357
77773
|
case "end":
|
|
77358
|
-
return
|
|
77774
|
+
return _context30.stop();
|
|
77359
77775
|
}
|
|
77360
|
-
},
|
|
77776
|
+
}, _callee30);
|
|
77361
77777
|
}))();
|
|
77362
77778
|
},
|
|
77363
77779
|
removeNodesFromLane: function removeNodesFromLane(node) {
|
|
@@ -77370,36 +77786,36 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77370
77786
|
pull_default()(containingLane.get('flowNodeRef'), node.definition);
|
|
77371
77787
|
},
|
|
77372
77788
|
removeNodesFromPool: function removeNodesFromPool(node) {
|
|
77373
|
-
var
|
|
77789
|
+
var _this39 = this;
|
|
77374
77790
|
if (node.type === 'processmaker-modeler-pool' && node.definition.processRef) {
|
|
77375
77791
|
if (node.definition.processRef.artifacts) {
|
|
77376
77792
|
node.definition.processRef.artifacts.forEach(function (artifact) {
|
|
77377
|
-
var nodeToRemove =
|
|
77793
|
+
var nodeToRemove = _this39.nodes.find(function (n) {
|
|
77378
77794
|
return n.definition === artifact;
|
|
77379
77795
|
});
|
|
77380
77796
|
if (nodeToRemove) {
|
|
77381
|
-
|
|
77797
|
+
_this39.removeNode(nodeToRemove);
|
|
77382
77798
|
}
|
|
77383
77799
|
});
|
|
77384
77800
|
}
|
|
77385
77801
|
if (node.definition.processRef.flowElements) {
|
|
77386
77802
|
node.definition.processRef.flowElements.forEach(function (flowElement) {
|
|
77387
|
-
var nodeToRemove =
|
|
77803
|
+
var nodeToRemove = _this39.nodes.find(function (n) {
|
|
77388
77804
|
return n.definition === flowElement;
|
|
77389
77805
|
});
|
|
77390
77806
|
if (nodeToRemove) {
|
|
77391
|
-
|
|
77807
|
+
_this39.removeNode(nodeToRemove);
|
|
77392
77808
|
}
|
|
77393
77809
|
});
|
|
77394
77810
|
}
|
|
77395
77811
|
var laneSets = node.definition.processRef.laneSets;
|
|
77396
77812
|
if (!!laneSets && laneSets.length > 0) {
|
|
77397
77813
|
laneSets[0].lanes.forEach(function (lane) {
|
|
77398
|
-
var nodeToRemove =
|
|
77814
|
+
var nodeToRemove = _this39.nodes.find(function (n) {
|
|
77399
77815
|
return n.definition === lane;
|
|
77400
77816
|
});
|
|
77401
77817
|
if (nodeToRemove) {
|
|
77402
|
-
|
|
77818
|
+
_this39.removeNode(nodeToRemove);
|
|
77403
77819
|
}
|
|
77404
77820
|
});
|
|
77405
77821
|
}
|
|
@@ -77427,13 +77843,13 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77427
77843
|
return shape.component != null;
|
|
77428
77844
|
},
|
|
77429
77845
|
setShapeStacking: function setShapeStacking(shape) {
|
|
77430
|
-
var
|
|
77846
|
+
var _this40 = this;
|
|
77431
77847
|
if (this.isRendering || !shape.component.node.isType('processmaker-modeler-pool') && shape === this.previouslyStackedShape) {
|
|
77432
77848
|
return;
|
|
77433
77849
|
}
|
|
77434
77850
|
this.previouslyStackedShape = shape;
|
|
77435
77851
|
this.paperManager.performAtomicAction(function () {
|
|
77436
|
-
return ensureShapeIsNotCovered(shape,
|
|
77852
|
+
return ensureShapeIsNotCovered(shape, _this40.graph);
|
|
77437
77853
|
});
|
|
77438
77854
|
},
|
|
77439
77855
|
showSavedNotification: function showSavedNotification() {
|
|
@@ -77467,49 +77883,49 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77467
77883
|
return false;
|
|
77468
77884
|
},
|
|
77469
77885
|
pointerDowInShape: function pointerDowInShape(event, element) {
|
|
77470
|
-
var
|
|
77471
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77886
|
+
var _this41 = this;
|
|
77887
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31() {
|
|
77472
77888
|
var x, y, shapeView;
|
|
77473
|
-
return _regeneratorRuntime().wrap(function
|
|
77474
|
-
while (1) switch (
|
|
77889
|
+
return _regeneratorRuntime().wrap(function _callee31$(_context31) {
|
|
77890
|
+
while (1) switch (_context31.prev = _context31.next) {
|
|
77475
77891
|
case 0:
|
|
77476
77892
|
x = event.clientX, y = event.clientY;
|
|
77477
|
-
shapeView =
|
|
77478
|
-
|
|
77479
|
-
|
|
77480
|
-
|
|
77481
|
-
|
|
77893
|
+
shapeView = _this41.paper.findViewByModel(element);
|
|
77894
|
+
_this41.isDragging = false;
|
|
77895
|
+
_this41.isSelecting = false;
|
|
77896
|
+
_this41.isIntoTheSelection = false;
|
|
77897
|
+
_this41.dragStart = {
|
|
77482
77898
|
x: x,
|
|
77483
77899
|
y: y
|
|
77484
77900
|
};
|
|
77485
77901
|
// Verify if is in the selection box
|
|
77486
|
-
if (!
|
|
77487
|
-
|
|
77902
|
+
if (!_this41.isPointInSelection(event)) {
|
|
77903
|
+
_context31.next = 10;
|
|
77488
77904
|
break;
|
|
77489
77905
|
}
|
|
77490
|
-
|
|
77491
|
-
|
|
77906
|
+
_this41.isIntoTheSelection = true;
|
|
77907
|
+
_context31.next = 15;
|
|
77492
77908
|
break;
|
|
77493
77909
|
case 10:
|
|
77494
77910
|
if (event.shiftKey) {
|
|
77495
|
-
|
|
77911
|
+
_context31.next = 15;
|
|
77496
77912
|
break;
|
|
77497
77913
|
}
|
|
77498
|
-
|
|
77499
|
-
return
|
|
77914
|
+
_context31.next = 13;
|
|
77915
|
+
return _this41.$refs.selector.selectElement(shapeView);
|
|
77500
77916
|
case 13:
|
|
77501
|
-
|
|
77502
|
-
return
|
|
77917
|
+
_context31.next = 15;
|
|
77918
|
+
return _this41.$nextTick();
|
|
77503
77919
|
case 15:
|
|
77504
|
-
|
|
77920
|
+
_this41.$refs.selector.startDrag({
|
|
77505
77921
|
clientX: event.clientX,
|
|
77506
77922
|
clientY: event.clientY
|
|
77507
77923
|
});
|
|
77508
77924
|
case 16:
|
|
77509
77925
|
case "end":
|
|
77510
|
-
return
|
|
77926
|
+
return _context31.stop();
|
|
77511
77927
|
}
|
|
77512
|
-
},
|
|
77928
|
+
}, _callee31);
|
|
77513
77929
|
}))();
|
|
77514
77930
|
},
|
|
77515
77931
|
pointerDownHandler: function pointerDownHandler(event) {
|
|
@@ -77630,7 +78046,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77630
78046
|
this.$emit('set-xml-manager', this.xmlManager);
|
|
77631
78047
|
},
|
|
77632
78048
|
mounted: function mounted() {
|
|
77633
|
-
var
|
|
78049
|
+
var _this42 = this;
|
|
77634
78050
|
store.commit('setReadOnly', this.readOnly);
|
|
77635
78051
|
this.graph = new external_jointjs_.dia.Graph();
|
|
77636
78052
|
store.commit('setGraph', this.graph);
|
|
@@ -77649,47 +78065,47 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77649
78065
|
store.commit('setPaper', this.paperManager.paper);
|
|
77650
78066
|
this.paperManager.addEventHandler('element:pointerclick', this.blurFocusedScreenBuilderElement, this);
|
|
77651
78067
|
this.paperManager.addEventHandler('blank:pointerdown', function (event, x, y) {
|
|
77652
|
-
if (
|
|
78068
|
+
if (_this42.isGrabbing) return;
|
|
77653
78069
|
if (store.getters.isReadOnly) {
|
|
77654
|
-
|
|
78070
|
+
_this42.isGrabbing = true;
|
|
77655
78071
|
}
|
|
77656
|
-
var scale =
|
|
77657
|
-
|
|
78072
|
+
var scale = _this42.paperManager.scale;
|
|
78073
|
+
_this42.canvasDragPosition = {
|
|
77658
78074
|
x: x * scale.sx,
|
|
77659
78075
|
y: y * scale.sy
|
|
77660
78076
|
};
|
|
77661
|
-
|
|
77662
|
-
|
|
78077
|
+
_this42.isOverShape = false;
|
|
78078
|
+
_this42.pointerDownHandler(event);
|
|
77663
78079
|
}, this);
|
|
77664
78080
|
this.paperManager.addEventHandler('cell:mouseover element:mouseover', function (_ref19) {
|
|
77665
78081
|
var shape = _ref19.model;
|
|
77666
|
-
if (
|
|
78082
|
+
if (_this42.isBpmnNode(shape) && shape.attr('body/cursor') !== 'default' && !_this42.isGrabbing) {
|
|
77667
78083
|
shape.attr('body/cursor', 'move');
|
|
77668
78084
|
}
|
|
77669
78085
|
// If the user is panning the Paper while hovering an element, ignore the default move cursor
|
|
77670
|
-
if (
|
|
78086
|
+
if (_this42.isGrabbing && _this42.isBpmnNode(shape)) {
|
|
77671
78087
|
shape.attr('body/cursor', 'grabbing');
|
|
77672
78088
|
}
|
|
77673
78089
|
});
|
|
77674
78090
|
this.paperManager.addEventHandler('blank:pointerup', function (event) {
|
|
77675
|
-
|
|
77676
|
-
|
|
77677
|
-
|
|
77678
|
-
|
|
78091
|
+
_this42.isGrabbing = false;
|
|
78092
|
+
_this42.canvasDragPosition = null;
|
|
78093
|
+
_this42.activeNode = null;
|
|
78094
|
+
_this42.pointerUpHandler(event);
|
|
77679
78095
|
}, this);
|
|
77680
78096
|
this.paperManager.addEventHandler('cell:pointerup', function (cellView, event) {
|
|
77681
|
-
|
|
77682
|
-
|
|
77683
|
-
|
|
78097
|
+
_this42.canvasDragPosition = null;
|
|
78098
|
+
_this42.activeNode = null;
|
|
78099
|
+
_this42.pointerUpHandler(event, cellView);
|
|
77684
78100
|
}, this);
|
|
77685
78101
|
this.$refs['paper-container'].addEventListener('mouseenter', function () {
|
|
77686
78102
|
store.commit('setClientLeftPaper', false);
|
|
77687
78103
|
});
|
|
77688
78104
|
this.$el.addEventListener('mousemove', function (event) {
|
|
77689
|
-
|
|
78105
|
+
_this42.pointerMoveHandler(event);
|
|
77690
78106
|
});
|
|
77691
78107
|
this.$refs['paper-container'].addEventListener('mouseleave', function () {
|
|
77692
|
-
|
|
78108
|
+
_this42.paperManager.removeEventHandler('blank:pointermove');
|
|
77693
78109
|
store.commit('setClientLeftPaper', true);
|
|
77694
78110
|
});
|
|
77695
78111
|
this.paperManager.addEventHandler('cell:pointerclick', function (cellView, evt, x, y) {
|
|
@@ -77700,44 +78116,44 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77700
78116
|
});
|
|
77701
78117
|
this.paperManager.addEventHandler('cell:pointerclick', function (_ref20, event) {
|
|
77702
78118
|
var shape = _ref20.model;
|
|
77703
|
-
if (!
|
|
78119
|
+
if (!_this42.isBpmnNode(shape)) {
|
|
77704
78120
|
return;
|
|
77705
78121
|
}
|
|
77706
78122
|
|
|
77707
78123
|
// ignore click event if the user is Grabbing the paper
|
|
77708
|
-
if (
|
|
78124
|
+
if (_this42.isGrabbing) return;
|
|
77709
78125
|
shape.component.$emit('click', event);
|
|
77710
|
-
|
|
78126
|
+
_this42.$emit('click', {
|
|
77711
78127
|
event: event,
|
|
77712
|
-
node:
|
|
78128
|
+
node: _this42.highlightedNode.definition
|
|
77713
78129
|
});
|
|
77714
78130
|
});
|
|
77715
78131
|
this.paperManager.addEventHandler('cell:pointerdown', function (_ref21, event) {
|
|
77716
78132
|
var shape = _ref21.model;
|
|
77717
|
-
if (!
|
|
78133
|
+
if (!_this42.isBpmnNode(shape)) {
|
|
77718
78134
|
return;
|
|
77719
78135
|
}
|
|
77720
78136
|
// If the user is pressing Space (grabbing) and clicking on a Cell, return
|
|
77721
|
-
if (
|
|
78137
|
+
if (_this42.isGrabbing) {
|
|
77722
78138
|
return;
|
|
77723
78139
|
}
|
|
77724
|
-
|
|
77725
|
-
|
|
77726
|
-
|
|
77727
|
-
|
|
78140
|
+
_this42.setShapeStacking(shape);
|
|
78141
|
+
_this42.activeNode = shape.component.node;
|
|
78142
|
+
_this42.isOverShape = true;
|
|
78143
|
+
_this42.pointerDowInShape(event, shape);
|
|
77728
78144
|
});
|
|
77729
78145
|
// If the user is grabbing the paper while he clicked in a cell, move the paper and not the cell
|
|
77730
78146
|
this.paperManager.addEventHandler('cell:pointermove', function (_, event, x, y) {
|
|
77731
|
-
if (
|
|
77732
|
-
if (!
|
|
77733
|
-
var scale =
|
|
77734
|
-
|
|
78147
|
+
if (_this42.isGrabbing) {
|
|
78148
|
+
if (!_this42.canvasDragPosition) {
|
|
78149
|
+
var scale = _this42.paperManager.scale;
|
|
78150
|
+
_this42.canvasDragPosition = {
|
|
77735
78151
|
x: x * scale.sx,
|
|
77736
78152
|
y: y * scale.sy
|
|
77737
78153
|
};
|
|
77738
78154
|
}
|
|
77739
|
-
if (
|
|
77740
|
-
|
|
78155
|
+
if (_this42.canvasDragPosition && !_this42.clientLeftPaper) {
|
|
78156
|
+
_this42.paperManager.translate(event.offsetX - _this42.canvasDragPosition.x, event.offsetY - _this42.canvasDragPosition.y);
|
|
77741
78157
|
}
|
|
77742
78158
|
}
|
|
77743
78159
|
});
|
|
@@ -77748,28 +78164,28 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77748
78164
|
modeler: this,
|
|
77749
78165
|
registerMenuAction: this.registerMenuAction,
|
|
77750
78166
|
loadXML: function () {
|
|
77751
|
-
var _loadXML = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
78167
|
+
var _loadXML = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(xml) {
|
|
77752
78168
|
var multiplayer;
|
|
77753
|
-
return _regeneratorRuntime().wrap(function
|
|
77754
|
-
while (1) switch (
|
|
78169
|
+
return _regeneratorRuntime().wrap(function _callee32$(_context32) {
|
|
78170
|
+
while (1) switch (_context32.prev = _context32.next) {
|
|
77755
78171
|
case 0:
|
|
77756
|
-
|
|
77757
|
-
return
|
|
78172
|
+
_context32.next = 2;
|
|
78173
|
+
return _this42.loadXML(xml);
|
|
77758
78174
|
case 2:
|
|
77759
|
-
|
|
78175
|
+
_context32.next = 4;
|
|
77760
78176
|
return undoRedoStore.dispatch('pushState', xml);
|
|
77761
78177
|
case 4:
|
|
77762
78178
|
try {
|
|
77763
|
-
multiplayer = new Multiplayer(
|
|
78179
|
+
multiplayer = new Multiplayer(_this42);
|
|
77764
78180
|
multiplayer.init();
|
|
77765
78181
|
} catch (error) {
|
|
77766
78182
|
console.warn('Could not initialize multiplayer', error);
|
|
77767
78183
|
}
|
|
77768
78184
|
case 5:
|
|
77769
78185
|
case "end":
|
|
77770
|
-
return
|
|
78186
|
+
return _context32.stop();
|
|
77771
78187
|
}
|
|
77772
|
-
},
|
|
78188
|
+
}, _callee32);
|
|
77773
78189
|
}));
|
|
77774
78190
|
function loadXML(_x) {
|
|
77775
78191
|
return _loadXML.apply(this, arguments);
|
|
@@ -77777,18 +78193,18 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77777
78193
|
return loadXML;
|
|
77778
78194
|
}(),
|
|
77779
78195
|
addWarnings: function addWarnings(warnings) {
|
|
77780
|
-
return
|
|
78196
|
+
return _this42.$emit('warnings', warnings);
|
|
77781
78197
|
},
|
|
77782
78198
|
addBreadcrumbs: function addBreadcrumbs(breadcrumbs) {
|
|
77783
|
-
return
|
|
78199
|
+
return _this42.breadcrumbData.push(breadcrumbs);
|
|
77784
78200
|
}
|
|
77785
78201
|
});
|
|
77786
78202
|
this.$root.$on('replace-ai-node', function (data) {
|
|
77787
|
-
|
|
78203
|
+
_this42.replaceAiNode(data);
|
|
77788
78204
|
});
|
|
77789
78205
|
window.ProcessMaker.EventBus.$on('save-changes', function (redirectUrl) {
|
|
77790
78206
|
if (redirectUrl) {
|
|
77791
|
-
|
|
78207
|
+
_this42.redirect(redirectUrl);
|
|
77792
78208
|
}
|
|
77793
78209
|
});
|
|
77794
78210
|
}
|
|
@@ -77810,8 +78226,8 @@ var modelervue_type_style_index_0_prod_lang_scss_ = __webpack_require__(26695);
|
|
|
77810
78226
|
|
|
77811
78227
|
var Modeler_component = normalizeComponent(
|
|
77812
78228
|
modeler_Modelervue_type_script_lang_js_,
|
|
77813
|
-
|
|
77814
|
-
|
|
78229
|
+
Modelervue_type_template_id_74d45ad8_render,
|
|
78230
|
+
Modelervue_type_template_id_74d45ad8_staticRenderFns,
|
|
77815
78231
|
false,
|
|
77816
78232
|
null,
|
|
77817
78233
|
null,
|
|
@@ -78134,11 +78550,49 @@ var dataInputAssociation_component = normalizeComponent(
|
|
|
78134
78550
|
)
|
|
78135
78551
|
|
|
78136
78552
|
/* harmony default export */ var dataInputAssociation = (dataInputAssociation_component.exports);
|
|
78553
|
+
;// CONCATENATED MODULE: ./src/components/nodes/dataInputAssociation/DataInputAssociation.js
|
|
78554
|
+
|
|
78555
|
+
|
|
78556
|
+
|
|
78557
|
+
|
|
78558
|
+
|
|
78559
|
+
|
|
78560
|
+
var DataInputAssociation = /*#__PURE__*/function () {
|
|
78561
|
+
function DataInputAssociation(nodeRegistry, moddle, paper) {
|
|
78562
|
+
_classCallCheck(this, DataInputAssociation);
|
|
78563
|
+
this.nodeRegistry = nodeRegistry;
|
|
78564
|
+
this.moddle = moddle;
|
|
78565
|
+
this.paper = paper;
|
|
78566
|
+
}
|
|
78567
|
+
_createClass(DataInputAssociation, [{
|
|
78568
|
+
key: "makeFlowNode",
|
|
78569
|
+
value: function makeFlowNode(sourceShape, targetShape, waypoint) {
|
|
78570
|
+
var _this = this;
|
|
78571
|
+
var diagram = dataInputAssociation_config_diagram(this.moddle);
|
|
78572
|
+
var associationFlow = dataInputAssociation_config_definition(this.moddle);
|
|
78573
|
+
|
|
78574
|
+
// When saving the BPMN, if this is not an array the sourceRef is not stored
|
|
78575
|
+
var dataInput = getOrFindDataInput(this.moddle, targetShape.component.node, sourceShape.component.node.definition);
|
|
78576
|
+
associationFlow.set('targetRef', dataInput);
|
|
78577
|
+
associationFlow.set('sourceRef', [sourceShape.component.node.definition]);
|
|
78578
|
+
diagram.waypoint = waypoint.map(function (point) {
|
|
78579
|
+
return _this.moddle.create('dc:Point', point);
|
|
78580
|
+
});
|
|
78581
|
+
var node = new Node(dataInputAssociation_config_id, associationFlow, diagram);
|
|
78582
|
+
return node;
|
|
78583
|
+
}
|
|
78584
|
+
}]);
|
|
78585
|
+
return DataInputAssociation;
|
|
78586
|
+
}();
|
|
78137
78587
|
;// CONCATENATED MODULE: ./src/components/nodes/dataInputAssociation/index.js
|
|
78138
78588
|
|
|
78139
78589
|
|
|
78140
78590
|
|
|
78141
78591
|
|
|
78592
|
+
|
|
78593
|
+
|
|
78594
|
+
|
|
78595
|
+
|
|
78142
78596
|
/* harmony default export */ var nodes_dataInputAssociation = (_objectSpread2(_objectSpread2({}, dataInputAssociation_config_namespaceObject), {}, {
|
|
78143
78597
|
component: dataInputAssociation,
|
|
78144
78598
|
control: false,
|
|
@@ -78158,7 +78612,32 @@ var dataInputAssociation_component = normalizeComponent(
|
|
|
78158
78612
|
config: inspectors_idConfigSettings
|
|
78159
78613
|
}]
|
|
78160
78614
|
}]
|
|
78161
|
-
}]
|
|
78615
|
+
}],
|
|
78616
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
78617
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
78618
|
+
var paper, sourceElem, targetElem, flow, actualFlow, nodeIdIterator;
|
|
78619
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
78620
|
+
while (1) switch (_context.prev = _context.next) {
|
|
78621
|
+
case 0:
|
|
78622
|
+
paper = modeler.paper;
|
|
78623
|
+
sourceElem = modeler.getElementByNodeId(data.sourceRefId);
|
|
78624
|
+
targetElem = modeler.getElementByNodeId(data.targetRefId);
|
|
78625
|
+
if (sourceElem && targetElem) {
|
|
78626
|
+
flow = new DataInputAssociation(modeler.nodeRegistry, modeler.moddle, paper);
|
|
78627
|
+
actualFlow = flow.makeFlowNode(sourceElem, targetElem, data.waypoint);
|
|
78628
|
+
targetElem.component.node.definition.set('dataInputAssociations', [actualFlow.definition]);
|
|
78629
|
+
// add Nodes
|
|
78630
|
+
modeler.addNode(actualFlow, data.id, true);
|
|
78631
|
+
nodeIdIterator = getNodeIdGenerator(modeler.definitions);
|
|
78632
|
+
nodeIdIterator.updateCounters();
|
|
78633
|
+
}
|
|
78634
|
+
case 4:
|
|
78635
|
+
case "end":
|
|
78636
|
+
return _context.stop();
|
|
78637
|
+
}
|
|
78638
|
+
}, _callee);
|
|
78639
|
+
}))();
|
|
78640
|
+
}
|
|
78162
78641
|
}));
|
|
78163
78642
|
;// 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/dataOutputAssociation/dataOutputAssociation.vue?vue&type=template&id=5ce8e93e&
|
|
78164
78643
|
var dataOutputAssociationvue_type_template_id_5ce8e93e_render = function render() {
|
|
@@ -78299,6 +78778,10 @@ var dataOutputAssociation_component = normalizeComponent(
|
|
|
78299
78778
|
|
|
78300
78779
|
|
|
78301
78780
|
|
|
78781
|
+
|
|
78782
|
+
|
|
78783
|
+
|
|
78784
|
+
|
|
78302
78785
|
/* harmony default export */ var nodes_dataOutputAssociation = (_objectSpread2(_objectSpread2({}, config_namespaceObject), {}, {
|
|
78303
78786
|
component: dataOutputAssociation,
|
|
78304
78787
|
control: false,
|
|
@@ -78318,7 +78801,30 @@ var dataOutputAssociation_component = normalizeComponent(
|
|
|
78318
78801
|
config: inspectors_idConfigSettings
|
|
78319
78802
|
}]
|
|
78320
78803
|
}]
|
|
78321
|
-
}]
|
|
78804
|
+
}],
|
|
78805
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
78806
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
78807
|
+
var paper, sourceElem, targetElem, flow, actualFlow, nodeIdIterator;
|
|
78808
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
78809
|
+
while (1) switch (_context.prev = _context.next) {
|
|
78810
|
+
case 0:
|
|
78811
|
+
paper = modeler.paper;
|
|
78812
|
+
sourceElem = modeler.getElementByNodeId(data.sourceRefId);
|
|
78813
|
+
targetElem = modeler.getElementByNodeId(data.targetRefId);
|
|
78814
|
+
if (sourceElem && targetElem) {
|
|
78815
|
+
flow = new DataOutputAssociation(modeler.nodeRegistry, modeler.moddle, paper);
|
|
78816
|
+
actualFlow = flow.makeFlowNode(sourceElem, targetElem, data.waypoint); // add Nodes
|
|
78817
|
+
modeler.addNode(actualFlow, data.id, true);
|
|
78818
|
+
nodeIdIterator = getNodeIdGenerator(modeler.definitions);
|
|
78819
|
+
nodeIdIterator.updateCounters();
|
|
78820
|
+
}
|
|
78821
|
+
case 4:
|
|
78822
|
+
case "end":
|
|
78823
|
+
return _context.stop();
|
|
78824
|
+
}
|
|
78825
|
+
}, _callee);
|
|
78826
|
+
}))();
|
|
78827
|
+
}
|
|
78322
78828
|
}));
|
|
78323
78829
|
;// CONCATENATED MODULE: ./node_modules/@processmaker/processmaker-bpmn-moddle/resources/processmaker.json
|
|
78324
78830
|
var processmaker_namespaceObject = JSON.parse('{"name":"ProcessMaker","uri":"http://processmaker.com/BPMN/2.0/Schema.xsd","prefix":"pm","xml":{"tagAlias":"lowerCase"},"associations":[],"types":[{"name":"BaseElement","extends":["bpmn:BaseElement"],"isAbstract":true,"properties":[{"name":"color","isAttr":true,"type":"String"}]},{"name":"Task","extends":["bpmn:Task"],"properties":[{"name":"screenRef","isAttr":true,"type":"String"},{"name":"allowInterstitial","isAttr":true,"type":"Boolean"},{"name":"interstitialScreenRef","isAttr":true,"type":"String"},{"name":"screenVersion","isAttr":true,"type":"String"},{"name":"dueIn","isAttr":true,"type":"Integer"},{"name":"notifyAfterRouting","isAttr":true,"type":"Boolean"},{"name":"notifyRequestCreator","isAttr":true,"type":"Boolean"},{"name":"assignment","isAttr":true,"type":"String"},{"name":"assignedUsers","isAttr":true,"type":"String"},{"name":"assignedGroups","isAttr":true,"type":"String"},{"name":"assignmentLock","isAttr":true,"type":"Boolean"},{"name":"allowReassignment","isAttr":true,"type":"Boolean"},{"name":"assignmentRules","isAttr":true,"type":"String"},{"name":"config","isAttr":true,"type":"String"},{"name":"customIcon","isAttr":true,"type":"String"},{"name":"validations","isAttr":true,"type":"String"}]},{"name":"ScriptTask","extends":["bpmn:ScriptTask"],"properties":[{"name":"scriptRef","isAttr":true,"type":"String"},{"name":"scriptVersion","isAttr":true,"type":"String"},{"name":"errorHandling","isAttr":true,"type":"String"}]},{"name":"ServiceTask","extends":["bpmn:ServiceTask"],"properties":[{"name":"implementationVersion","isAttr":true,"type":"String"},{"name":"errorHandling","isAttr":true,"type":"String"}]},{"name":"Message","extends":["bpmn:Message"],"properties":[{"name":"payload","isAttr":true,"type":"String"}]},{"name":"EndEvent","extends":["bpmn:EndEvent"],"properties":[{"name":"screenRef","isAttr":true,"type":"String"},{"name":"screenVersion","isAttr":true,"type":"String"}]},{"name":"StartEvent","extends":["bpmn:StartEvent"],"properties":[{"name":"allowInterstitial","isAttr":true,"type":"Boolean"},{"name":"interstitialScreenRef","isAttr":true,"type":"String"},{"name":"assignment","isAttr":true,"type":"String"},{"name":"assignedUsers","isAttr":true,"type":"String"},{"name":"assignedGroups","isAttr":true,"type":"String"},{"name":"config","isAttr":true,"type":"String"},{"name":"validations","isAttr":true,"type":"String"}]},{"name":"IntermediateCatchEvent","extends":["bpmn:IntermediateCatchEvent"],"properties":[{"name":"allowedUsers","isAttr":true,"type":"String"},{"name":"allowedGroups","isAttr":true,"type":"String"},{"name":"config","isAttr":true,"type":"String"},{"name":"whitelist","isAttr":true,"type":"String"},{"name":"validations","isAttr":true,"type":"String"}]},{"name":"MessageEventDefinition","extends":["bpmn:MessageEventDefinition"],"properties":[{"name":"variableName","isAttr":true,"type":"String"}]},{"name":"MessageEventDefinition","extends":["bpmn:MessageEventDefinition"],"properties":[{"name":"variableName","isAttr":true,"type":"String"}]},{"name":"SignalEventDefinition","extends":["bpmn:SignalEventDefinition"],"properties":[{"name":"config","isAttr":true,"type":"String"}]},{"name":"SequenceFlow","extends":["bpmn:SequenceFlow"],"properties":[{"name":"config","isAttr":true,"type":"String"}]},{"name":"CallActivity","extends":["bpmn:CallActivity"],"properties":[{"name":"allowInterstitial","isAttr":true,"type":"Boolean"},{"name":"interstitialScreenRef","isAttr":true,"type":"String"},{"name":"config","isAttr":true,"type":"String"},{"name":"validations","isAttr":true,"type":"String"},{"name":"assignment","isAttr":true,"type":"String"},{"name":"assignedUsers","isAttr":true,"type":"String"},{"name":"assignedGroups","isAttr":true,"type":"String"},{"name":"customIcon","isAttr":true,"type":"String"},{"name":"errorHandling","isAttr":true,"type":"String"}]},{"name":"Signal","extends":["bpmn:Signal"],"properties":[{"name":"config","isAttr":true,"type":"String"},{"name":"detail","isAttr":true,"type":"String"}]}],"emumerations":[]}');
|