@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.common.js
CHANGED
|
@@ -12818,7 +12818,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".weekday[data-v-4ae18478]{padding:.75e
|
|
|
12818
12818
|
|
|
12819
12819
|
/***/ }),
|
|
12820
12820
|
|
|
12821
|
-
/***/
|
|
12821
|
+
/***/ 19689:
|
|
12822
12822
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12823
12823
|
|
|
12824
12824
|
"use strict";
|
|
@@ -12832,7 +12832,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12832
12832
|
|
|
12833
12833
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
12834
12834
|
// Module
|
|
12835
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".box[data-v-
|
|
12835
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".box[data-v-68f84c00]{border:1px solid #5faaee;position:absolute;pointer-events:none}", ""]);
|
|
12836
12836
|
// Exports
|
|
12837
12837
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
12838
12838
|
|
|
@@ -26431,19 +26431,19 @@ var update = add("406dc84a", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
26431
26431
|
|
|
26432
26432
|
/***/ }),
|
|
26433
26433
|
|
|
26434
|
-
/***/
|
|
26434
|
+
/***/ 65659:
|
|
26435
26435
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
26436
26436
|
|
|
26437
26437
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
26438
26438
|
|
|
26439
26439
|
// load the styles
|
|
26440
|
-
var content = __webpack_require__(
|
|
26440
|
+
var content = __webpack_require__(19689);
|
|
26441
26441
|
if(content.__esModule) content = content.default;
|
|
26442
26442
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
26443
26443
|
if(content.locals) module.exports = content.locals;
|
|
26444
26444
|
// add the styles to the DOM
|
|
26445
26445
|
var add = (__webpack_require__(54402)/* ["default"] */ .Z)
|
|
26446
|
-
var update = add("
|
|
26446
|
+
var update = add("50044040", content, true, {"sourceMap":false,"shadowMode":false});
|
|
26447
26447
|
|
|
26448
26448
|
/***/ }),
|
|
26449
26449
|
|
|
@@ -28259,8 +28259,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28259
28259
|
var config_namespaceObject = {};
|
|
28260
28260
|
__webpack_require__.r(config_namespaceObject);
|
|
28261
28261
|
__webpack_require__.d(config_namespaceObject, {
|
|
28262
|
-
bpmnType: function() { return
|
|
28263
|
-
definition: function() { return
|
|
28262
|
+
bpmnType: function() { return config_bpmnType; },
|
|
28263
|
+
definition: function() { return config_definition; },
|
|
28264
28264
|
diagram: function() { return config_diagram; },
|
|
28265
28265
|
id: function() { return config_id; }
|
|
28266
28266
|
});
|
|
@@ -28269,9 +28269,9 @@ __webpack_require__.d(config_namespaceObject, {
|
|
|
28269
28269
|
var dataInputAssociation_config_namespaceObject = {};
|
|
28270
28270
|
__webpack_require__.r(dataInputAssociation_config_namespaceObject);
|
|
28271
28271
|
__webpack_require__.d(dataInputAssociation_config_namespaceObject, {
|
|
28272
|
-
bpmnType: function() { return
|
|
28273
|
-
definition: function() { return
|
|
28274
|
-
diagram: function() { return
|
|
28272
|
+
bpmnType: function() { return dataInputAssociation_config_bpmnType; },
|
|
28273
|
+
definition: function() { return dataInputAssociation_config_definition; },
|
|
28274
|
+
diagram: function() { return dataInputAssociation_config_diagram; },
|
|
28275
28275
|
id: function() { return dataInputAssociation_config_id; }
|
|
28276
28276
|
});
|
|
28277
28277
|
|
|
@@ -28310,41 +28310,6 @@ if (typeof window !== 'undefined') {
|
|
|
28310
28310
|
// Indicate to webpack that this file can be concatenated
|
|
28311
28311
|
/* harmony default export */ var setPublicPath = (null);
|
|
28312
28312
|
|
|
28313
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/association/association.vue?vue&type=template&id=4ea32ce6&
|
|
28314
|
-
var render = function render() {
|
|
28315
|
-
var _vm = this,
|
|
28316
|
-
_c = _vm._self._c;
|
|
28317
|
-
return _c('crown-config', _vm._g({
|
|
28318
|
-
attrs: {
|
|
28319
|
-
"highlighted": _vm.highlighted,
|
|
28320
|
-
"paper": _vm.paper,
|
|
28321
|
-
"graph": _vm.graph,
|
|
28322
|
-
"shape": _vm.shape,
|
|
28323
|
-
"node": _vm.node,
|
|
28324
|
-
"nodeRegistry": _vm.nodeRegistry,
|
|
28325
|
-
"moddle": _vm.moddle,
|
|
28326
|
-
"collaboration": _vm.collaboration,
|
|
28327
|
-
"process-node": _vm.processNode,
|
|
28328
|
-
"plane-elements": _vm.planeElements,
|
|
28329
|
-
"is-rendering": _vm.isRendering
|
|
28330
|
-
}
|
|
28331
|
-
}, _vm.$listeners));
|
|
28332
|
-
};
|
|
28333
|
-
var staticRenderFns = [];
|
|
28334
|
-
|
|
28335
|
-
;// CONCATENATED MODULE: external "jointjs"
|
|
28336
|
-
var external_jointjs_namespaceObject = require("jointjs");
|
|
28337
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
28338
|
-
function _arrayLikeToArray(arr, len) {
|
|
28339
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
28340
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
28341
|
-
return arr2;
|
|
28342
|
-
}
|
|
28343
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
28344
|
-
|
|
28345
|
-
function _arrayWithoutHoles(arr) {
|
|
28346
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
28347
|
-
}
|
|
28348
28313
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
|
|
28349
28314
|
var es_symbol = __webpack_require__(82526);
|
|
28350
28315
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
|
|
@@ -28359,60 +28324,6 @@ var es_array_iterator = __webpack_require__(66992);
|
|
|
28359
28324
|
var es_string_iterator = __webpack_require__(78783);
|
|
28360
28325
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
|
|
28361
28326
|
var web_dom_collections_iterator = __webpack_require__(33948);
|
|
28362
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
28363
|
-
var es_array_from = __webpack_require__(91038);
|
|
28364
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
28365
|
-
|
|
28366
|
-
|
|
28367
|
-
|
|
28368
|
-
|
|
28369
|
-
|
|
28370
|
-
|
|
28371
|
-
|
|
28372
|
-
|
|
28373
|
-
function _iterableToArray(iter) {
|
|
28374
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
28375
|
-
}
|
|
28376
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
28377
|
-
var es_array_slice = __webpack_require__(47042);
|
|
28378
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
28379
|
-
var es_function_name = __webpack_require__(68309);
|
|
28380
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
28381
|
-
var es_regexp_exec = __webpack_require__(74916);
|
|
28382
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js
|
|
28383
|
-
var es_regexp_test = __webpack_require__(77601);
|
|
28384
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
28385
|
-
|
|
28386
|
-
|
|
28387
|
-
|
|
28388
|
-
|
|
28389
|
-
|
|
28390
|
-
|
|
28391
|
-
|
|
28392
|
-
|
|
28393
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
28394
|
-
if (!o) return;
|
|
28395
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
28396
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
28397
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
28398
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
28399
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
28400
|
-
}
|
|
28401
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
28402
|
-
var es_error_cause = __webpack_require__(21703);
|
|
28403
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
28404
|
-
|
|
28405
|
-
function _nonIterableSpread() {
|
|
28406
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
28407
|
-
}
|
|
28408
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
28409
|
-
|
|
28410
|
-
|
|
28411
|
-
|
|
28412
|
-
|
|
28413
|
-
function _toConsumableArray(arr) {
|
|
28414
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
28415
|
-
}
|
|
28416
28327
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.async-iterator.js
|
|
28417
28328
|
var es_symbol_async_iterator = __webpack_require__(72443);
|
|
28418
28329
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.to-string-tag.js
|
|
@@ -28423,16 +28334,22 @@ var es_json_to_string_tag = __webpack_require__(73706);
|
|
|
28423
28334
|
var es_math_to_string_tag = __webpack_require__(10408);
|
|
28424
28335
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-prototype-of.js
|
|
28425
28336
|
var es_object_get_prototype_of = __webpack_require__(30489);
|
|
28337
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
28338
|
+
var es_error_cause = __webpack_require__(21703);
|
|
28426
28339
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
28427
28340
|
var es_array_push = __webpack_require__(57658);
|
|
28428
28341
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
28429
28342
|
var web_dom_collections_for_each = __webpack_require__(54747);
|
|
28343
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
28344
|
+
var es_function_name = __webpack_require__(68309);
|
|
28430
28345
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.set-prototype-of.js
|
|
28431
28346
|
var es_object_set_prototype_of = __webpack_require__(68304);
|
|
28432
28347
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.proto.js
|
|
28433
28348
|
var es_object_proto = __webpack_require__(67987);
|
|
28434
28349
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
28435
28350
|
var es_promise = __webpack_require__(88674);
|
|
28351
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
28352
|
+
var es_array_slice = __webpack_require__(47042);
|
|
28436
28353
|
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
28437
28354
|
|
|
28438
28355
|
|
|
@@ -28809,16 +28726,454 @@ function _asyncToGenerator(fn) {
|
|
|
28809
28726
|
});
|
|
28810
28727
|
};
|
|
28811
28728
|
}
|
|
28729
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
28730
|
+
|
|
28731
|
+
function _classCallCheck(instance, Constructor) {
|
|
28732
|
+
if (!(instance instanceof Constructor)) {
|
|
28733
|
+
throw new TypeError("Cannot call a class as a function");
|
|
28734
|
+
}
|
|
28735
|
+
}
|
|
28736
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.to-primitive.js
|
|
28737
|
+
var es_symbol_to_primitive = __webpack_require__(96649);
|
|
28738
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.date.to-primitive.js
|
|
28739
|
+
var es_date_to_primitive = __webpack_require__(96078);
|
|
28740
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
28741
|
+
var es_number_constructor = __webpack_require__(9653);
|
|
28742
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
28743
|
+
|
|
28744
|
+
|
|
28745
|
+
|
|
28746
|
+
|
|
28747
|
+
|
|
28748
|
+
|
|
28749
|
+
|
|
28750
|
+
|
|
28751
|
+
function _toPrimitive(input, hint) {
|
|
28752
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
28753
|
+
var prim = input[Symbol.toPrimitive];
|
|
28754
|
+
if (prim !== undefined) {
|
|
28755
|
+
var res = prim.call(input, hint || "default");
|
|
28756
|
+
if (_typeof(res) !== "object") return res;
|
|
28757
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
28758
|
+
}
|
|
28759
|
+
return (hint === "string" ? String : Number)(input);
|
|
28760
|
+
}
|
|
28761
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
28762
|
+
|
|
28763
|
+
|
|
28764
|
+
function _toPropertyKey(arg) {
|
|
28765
|
+
var key = _toPrimitive(arg, "string");
|
|
28766
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
28767
|
+
}
|
|
28768
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
28769
|
+
|
|
28770
|
+
function _defineProperties(target, props) {
|
|
28771
|
+
for (var i = 0; i < props.length; i++) {
|
|
28772
|
+
var descriptor = props[i];
|
|
28773
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
28774
|
+
descriptor.configurable = true;
|
|
28775
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
28776
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
28777
|
+
}
|
|
28778
|
+
}
|
|
28779
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
28780
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
28781
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
28782
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
28783
|
+
writable: false
|
|
28784
|
+
});
|
|
28785
|
+
return Constructor;
|
|
28786
|
+
}
|
|
28787
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js
|
|
28788
|
+
|
|
28789
|
+
function _checkPrivateRedeclaration(obj, privateCollection) {
|
|
28790
|
+
if (privateCollection.has(obj)) {
|
|
28791
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
28792
|
+
}
|
|
28793
|
+
}
|
|
28794
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js
|
|
28795
|
+
|
|
28796
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
28797
|
+
_checkPrivateRedeclaration(obj, privateMap);
|
|
28798
|
+
privateMap.set(obj, value);
|
|
28799
|
+
}
|
|
28800
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
28801
|
+
|
|
28802
|
+
function _defineProperty(obj, key, value) {
|
|
28803
|
+
key = _toPropertyKey(key);
|
|
28804
|
+
if (key in obj) {
|
|
28805
|
+
Object.defineProperty(obj, key, {
|
|
28806
|
+
value: value,
|
|
28807
|
+
enumerable: true,
|
|
28808
|
+
configurable: true,
|
|
28809
|
+
writable: true
|
|
28810
|
+
});
|
|
28811
|
+
} else {
|
|
28812
|
+
obj[key] = value;
|
|
28813
|
+
}
|
|
28814
|
+
return obj;
|
|
28815
|
+
}
|
|
28816
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js
|
|
28817
|
+
function _classApplyDescriptorGet(receiver, descriptor) {
|
|
28818
|
+
if (descriptor.get) {
|
|
28819
|
+
return descriptor.get.call(receiver);
|
|
28820
|
+
}
|
|
28821
|
+
return descriptor.value;
|
|
28822
|
+
}
|
|
28823
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js
|
|
28824
|
+
|
|
28825
|
+
function _classExtractFieldDescriptor(receiver, privateMap, action) {
|
|
28826
|
+
if (!privateMap.has(receiver)) {
|
|
28827
|
+
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
28828
|
+
}
|
|
28829
|
+
return privateMap.get(receiver);
|
|
28830
|
+
}
|
|
28831
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js
|
|
28832
|
+
|
|
28833
|
+
|
|
28834
|
+
function _classPrivateFieldGet(receiver, privateMap) {
|
|
28835
|
+
var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get");
|
|
28836
|
+
return _classApplyDescriptorGet(receiver, descriptor);
|
|
28837
|
+
}
|
|
28838
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js
|
|
28839
|
+
|
|
28840
|
+
function _classCheckPrivateStaticAccess(receiver, classConstructor) {
|
|
28841
|
+
if (receiver !== classConstructor) {
|
|
28842
|
+
throw new TypeError("Private static access of wrong provenance");
|
|
28843
|
+
}
|
|
28844
|
+
}
|
|
28845
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js
|
|
28846
|
+
|
|
28847
|
+
function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
|
|
28848
|
+
if (descriptor === undefined) {
|
|
28849
|
+
throw new TypeError("attempted to " + action + " private static field before its declaration");
|
|
28850
|
+
}
|
|
28851
|
+
}
|
|
28852
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js
|
|
28853
|
+
|
|
28854
|
+
|
|
28855
|
+
|
|
28856
|
+
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
|
|
28857
|
+
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
28858
|
+
_classCheckPrivateStaticFieldDescriptor(descriptor, "get");
|
|
28859
|
+
return _classApplyDescriptorGet(receiver, descriptor);
|
|
28860
|
+
}
|
|
28861
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js
|
|
28862
|
+
|
|
28863
|
+
function _classApplyDescriptorSet(receiver, descriptor, value) {
|
|
28864
|
+
if (descriptor.set) {
|
|
28865
|
+
descriptor.set.call(receiver, value);
|
|
28866
|
+
} else {
|
|
28867
|
+
if (!descriptor.writable) {
|
|
28868
|
+
throw new TypeError("attempted to set read only private field");
|
|
28869
|
+
}
|
|
28870
|
+
descriptor.value = value;
|
|
28871
|
+
}
|
|
28872
|
+
}
|
|
28873
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js
|
|
28874
|
+
|
|
28875
|
+
|
|
28876
|
+
|
|
28877
|
+
function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
|
|
28878
|
+
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
28879
|
+
_classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
|
28880
|
+
_classApplyDescriptorSet(receiver, descriptor, value);
|
|
28881
|
+
return value;
|
|
28882
|
+
}
|
|
28812
28883
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
28813
28884
|
var es_array_find = __webpack_require__(69826);
|
|
28814
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.
|
|
28815
|
-
var
|
|
28885
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-names.js
|
|
28886
|
+
var es_object_get_own_property_names = __webpack_require__(36210);
|
|
28887
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
28888
|
+
var es_regexp_exec = __webpack_require__(74916);
|
|
28889
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
|
28890
|
+
var es_string_match = __webpack_require__(4723);
|
|
28891
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.constructor.js
|
|
28892
|
+
var es_regexp_constructor = __webpack_require__(24603);
|
|
28893
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.dot-all.js
|
|
28894
|
+
var es_regexp_dot_all = __webpack_require__(28450);
|
|
28895
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.sticky.js
|
|
28896
|
+
var es_regexp_sticky = __webpack_require__(88386);
|
|
28897
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
28898
|
+
var es_regexp_to_string = __webpack_require__(39714);
|
|
28899
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.weak-map.js
|
|
28900
|
+
var es_weak_map = __webpack_require__(4129);
|
|
28901
|
+
;// CONCATENATED MODULE: ./src/NodeIdGenerator.js
|
|
28902
|
+
|
|
28903
|
+
|
|
28904
|
+
|
|
28905
|
+
|
|
28906
|
+
|
|
28907
|
+
|
|
28908
|
+
|
|
28909
|
+
|
|
28910
|
+
|
|
28911
|
+
|
|
28912
|
+
|
|
28913
|
+
|
|
28914
|
+
|
|
28915
|
+
|
|
28916
|
+
|
|
28917
|
+
|
|
28918
|
+
|
|
28919
|
+
|
|
28920
|
+
|
|
28921
|
+
|
|
28922
|
+
|
|
28923
|
+
|
|
28924
|
+
var _generateDefinitionId = /*#__PURE__*/new WeakMap();
|
|
28925
|
+
var _generateDiagramId = /*#__PURE__*/new WeakMap();
|
|
28926
|
+
var _generateProcessId = /*#__PURE__*/new WeakMap();
|
|
28927
|
+
var NodeIdGenerator = /*#__PURE__*/function () {
|
|
28928
|
+
function NodeIdGenerator(definitions) {
|
|
28929
|
+
_classCallCheck(this, NodeIdGenerator);
|
|
28930
|
+
_classPrivateFieldInitSpec(this, _generateDefinitionId, {
|
|
28931
|
+
writable: true,
|
|
28932
|
+
value: function value() {
|
|
28933
|
+
var _NodeIdGenerator$coun3, _NodeIdGenerator$coun4;
|
|
28934
|
+
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
28935
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun4 = _NodeIdGenerator$coun3++, _NodeIdGenerator$coun3)), _NodeIdGenerator$coun4;
|
|
28936
|
+
return id;
|
|
28937
|
+
}
|
|
28938
|
+
});
|
|
28939
|
+
_classPrivateFieldInitSpec(this, _generateDiagramId, {
|
|
28940
|
+
writable: true,
|
|
28941
|
+
value: function value() {
|
|
28942
|
+
var _NodeIdGenerator$diag3, _NodeIdGenerator$diag4;
|
|
28943
|
+
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter) + '_di';
|
|
28944
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag4 = _NodeIdGenerator$diag3++, _NodeIdGenerator$diag3)), _NodeIdGenerator$diag4;
|
|
28945
|
+
return id;
|
|
28946
|
+
}
|
|
28947
|
+
});
|
|
28948
|
+
_classPrivateFieldInitSpec(this, _generateProcessId, {
|
|
28949
|
+
writable: true,
|
|
28950
|
+
value: function value() {
|
|
28951
|
+
var _NodeIdGenerator$proc, _NodeIdGenerator$proc2;
|
|
28952
|
+
var id = NodeIdGenerator.processPrefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _processCounter);
|
|
28953
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _processCounter, (_NodeIdGenerator$proc = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _processCounter), _NodeIdGenerator$proc2 = _NodeIdGenerator$proc++, _NodeIdGenerator$proc)), _NodeIdGenerator$proc2;
|
|
28954
|
+
return id;
|
|
28955
|
+
}
|
|
28956
|
+
});
|
|
28957
|
+
this.definitions = definitions;
|
|
28958
|
+
this.refreshLastIdCounter();
|
|
28959
|
+
this.refreshLastDiagramIdCounter();
|
|
28960
|
+
this.refreshLastProcessIdCounter();
|
|
28961
|
+
}
|
|
28962
|
+
_createClass(NodeIdGenerator, [{
|
|
28963
|
+
key: "findById",
|
|
28964
|
+
value: function findById(id) {
|
|
28965
|
+
var _this = this;
|
|
28966
|
+
var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.definitions.rootElements;
|
|
28967
|
+
var walked = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
28968
|
+
if (walked.indexOf(root) > -1) return;
|
|
28969
|
+
var found;
|
|
28970
|
+
if (root instanceof Array) {
|
|
28971
|
+
walked.push(root);
|
|
28972
|
+
root.find(function (item) {
|
|
28973
|
+
return found = _this.findById(id, item, walked);
|
|
28974
|
+
});
|
|
28975
|
+
} else if (root instanceof Object && root.$type) {
|
|
28976
|
+
walked.push(root);
|
|
28977
|
+
if (root.id === id) return root;
|
|
28978
|
+
Object.getOwnPropertyNames(root).find(function (key) {
|
|
28979
|
+
return found = !(root[key] instanceof Function) && key.substring(0, 1) !== '$' && _this.findById(id, root[key], walked);
|
|
28980
|
+
});
|
|
28981
|
+
}
|
|
28982
|
+
return found;
|
|
28983
|
+
}
|
|
28984
|
+
}, {
|
|
28985
|
+
key: "matchIds",
|
|
28986
|
+
value: function matchIds(idRegex, root) {
|
|
28987
|
+
var _this2 = this;
|
|
28988
|
+
var walked = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
28989
|
+
var lastIdCounter = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
28990
|
+
if (walked.indexOf(root) > -1) return lastIdCounter;
|
|
28991
|
+
if (root instanceof Array) {
|
|
28992
|
+
walked.push(root);
|
|
28993
|
+
root.forEach(function (item) {
|
|
28994
|
+
return lastIdCounter = _this2.matchIds(idRegex, item, walked, lastIdCounter);
|
|
28995
|
+
});
|
|
28996
|
+
} else if (root instanceof Object) {
|
|
28997
|
+
walked.push(root);
|
|
28998
|
+
if (root.id) {
|
|
28999
|
+
var match = String(root.id).match(idRegex);
|
|
29000
|
+
var idCounter = match ? parseInt(match[1]) : 0;
|
|
29001
|
+
if (idCounter > lastIdCounter) {
|
|
29002
|
+
lastIdCounter = idCounter;
|
|
29003
|
+
}
|
|
29004
|
+
}
|
|
29005
|
+
Object.getOwnPropertyNames(root).forEach(function (key) {
|
|
29006
|
+
if (!(root[key] instanceof Function) && key.substring(0, 1) !== '$') {
|
|
29007
|
+
lastIdCounter = _this2.matchIds(idRegex, root[key], walked, lastIdCounter);
|
|
29008
|
+
}
|
|
29009
|
+
});
|
|
29010
|
+
}
|
|
29011
|
+
return lastIdCounter;
|
|
29012
|
+
}
|
|
29013
|
+
}, {
|
|
29014
|
+
key: "refreshLastIdCounter",
|
|
29015
|
+
value: function refreshLastIdCounter() {
|
|
29016
|
+
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.prefix, "(\\d+)$")), this.definitions.rootElements);
|
|
29017
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, lastIdCounter + 1);
|
|
29018
|
+
}
|
|
29019
|
+
}, {
|
|
29020
|
+
key: "getCounter",
|
|
29021
|
+
value: function getCounter() {
|
|
29022
|
+
this.refreshLastIdCounter();
|
|
29023
|
+
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
29024
|
+
}
|
|
29025
|
+
}, {
|
|
29026
|
+
key: "getDefinitionNumber",
|
|
29027
|
+
value: function getDefinitionNumber() {
|
|
29028
|
+
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
29029
|
+
}
|
|
29030
|
+
}, {
|
|
29031
|
+
key: "updateCounters",
|
|
29032
|
+
value: function updateCounters() {
|
|
29033
|
+
var _NodeIdGenerator$coun, _NodeIdGenerator$coun2, _NodeIdGenerator$diag, _NodeIdGenerator$diag2;
|
|
29034
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun2 = _NodeIdGenerator$coun++, _NodeIdGenerator$coun)), _NodeIdGenerator$coun2;
|
|
29035
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag2 = _NodeIdGenerator$diag++, _NodeIdGenerator$diag)), _NodeIdGenerator$diag2;
|
|
29036
|
+
}
|
|
29037
|
+
}, {
|
|
29038
|
+
key: "refreshLastDiagramIdCounter",
|
|
29039
|
+
value: function refreshLastDiagramIdCounter() {
|
|
29040
|
+
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.prefix, "(\\d+)_di$")), this.definitions.diagrams);
|
|
29041
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, lastIdCounter + 1);
|
|
29042
|
+
}
|
|
29043
|
+
}, {
|
|
29044
|
+
key: "refreshLastProcessIdCounter",
|
|
29045
|
+
value: function refreshLastProcessIdCounter() {
|
|
29046
|
+
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.processPrefix, "(\\d+)$")), this.definitions.rootElements);
|
|
29047
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _processCounter, lastIdCounter + 1);
|
|
29048
|
+
}
|
|
29049
|
+
}, {
|
|
29050
|
+
key: "generate",
|
|
29051
|
+
value: function generate() {
|
|
29052
|
+
var definitionId = _classPrivateFieldGet(this, _generateDefinitionId).call(this);
|
|
29053
|
+
var diagramId = _classPrivateFieldGet(this, _generateDiagramId).call(this);
|
|
29054
|
+
return [definitionId, diagramId];
|
|
29055
|
+
}
|
|
29056
|
+
}, {
|
|
29057
|
+
key: "generateProcessId",
|
|
29058
|
+
value: function generateProcessId() {
|
|
29059
|
+
return _classPrivateFieldGet(this, _generateProcessId).call(this);
|
|
29060
|
+
}
|
|
29061
|
+
}]);
|
|
29062
|
+
return NodeIdGenerator;
|
|
29063
|
+
}(); // Singleton instance
|
|
29064
|
+
_defineProperty(NodeIdGenerator, "prefix", 'node_');
|
|
29065
|
+
_defineProperty(NodeIdGenerator, "processPrefix", 'Process_');
|
|
29066
|
+
var _counter = {
|
|
29067
|
+
writable: true,
|
|
29068
|
+
value: 1
|
|
29069
|
+
};
|
|
29070
|
+
var _diagramCounter = {
|
|
29071
|
+
writable: true,
|
|
29072
|
+
value: 1
|
|
29073
|
+
};
|
|
29074
|
+
var _processCounter = {
|
|
29075
|
+
writable: true,
|
|
29076
|
+
value: 1
|
|
29077
|
+
};
|
|
29078
|
+
|
|
29079
|
+
var singleton = null;
|
|
29080
|
+
function getNodeIdGenerator(definitions) {
|
|
29081
|
+
if (!singleton) {
|
|
29082
|
+
singleton = new NodeIdGenerator(definitions);
|
|
29083
|
+
}
|
|
29084
|
+
return singleton;
|
|
29085
|
+
}
|
|
29086
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/association/association.vue?vue&type=template&id=4ea32ce6&
|
|
29087
|
+
var render = function render() {
|
|
29088
|
+
var _vm = this,
|
|
29089
|
+
_c = _vm._self._c;
|
|
29090
|
+
return _c('crown-config', _vm._g({
|
|
29091
|
+
attrs: {
|
|
29092
|
+
"highlighted": _vm.highlighted,
|
|
29093
|
+
"paper": _vm.paper,
|
|
29094
|
+
"graph": _vm.graph,
|
|
29095
|
+
"shape": _vm.shape,
|
|
29096
|
+
"node": _vm.node,
|
|
29097
|
+
"nodeRegistry": _vm.nodeRegistry,
|
|
29098
|
+
"moddle": _vm.moddle,
|
|
29099
|
+
"collaboration": _vm.collaboration,
|
|
29100
|
+
"process-node": _vm.processNode,
|
|
29101
|
+
"plane-elements": _vm.planeElements,
|
|
29102
|
+
"is-rendering": _vm.isRendering
|
|
29103
|
+
}
|
|
29104
|
+
}, _vm.$listeners));
|
|
29105
|
+
};
|
|
29106
|
+
var staticRenderFns = [];
|
|
29107
|
+
|
|
29108
|
+
;// CONCATENATED MODULE: external "jointjs"
|
|
29109
|
+
var external_jointjs_namespaceObject = require("jointjs");
|
|
29110
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
29111
|
+
function _arrayLikeToArray(arr, len) {
|
|
29112
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
29113
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
29114
|
+
return arr2;
|
|
29115
|
+
}
|
|
29116
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
29117
|
+
|
|
29118
|
+
function _arrayWithoutHoles(arr) {
|
|
29119
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
29120
|
+
}
|
|
29121
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
29122
|
+
var es_array_from = __webpack_require__(91038);
|
|
29123
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
29124
|
+
|
|
29125
|
+
|
|
29126
|
+
|
|
29127
|
+
|
|
29128
|
+
|
|
29129
|
+
|
|
29130
|
+
|
|
29131
|
+
|
|
29132
|
+
function _iterableToArray(iter) {
|
|
29133
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
29134
|
+
}
|
|
29135
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js
|
|
29136
|
+
var es_regexp_test = __webpack_require__(77601);
|
|
29137
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
29138
|
+
|
|
29139
|
+
|
|
29140
|
+
|
|
29141
|
+
|
|
29142
|
+
|
|
29143
|
+
|
|
29144
|
+
|
|
29145
|
+
|
|
29146
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
29147
|
+
if (!o) return;
|
|
29148
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
29149
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
29150
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
29151
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
29152
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
29153
|
+
}
|
|
29154
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
29155
|
+
|
|
29156
|
+
function _nonIterableSpread() {
|
|
29157
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
29158
|
+
}
|
|
29159
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
29160
|
+
|
|
29161
|
+
|
|
29162
|
+
|
|
29163
|
+
|
|
29164
|
+
function _toConsumableArray(arr) {
|
|
29165
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
29166
|
+
}
|
|
28816
29167
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
28817
29168
|
var es_array_concat = __webpack_require__(92222);
|
|
28818
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
28819
|
-
var es_array_sort = __webpack_require__(2707);
|
|
28820
29169
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.to-json.js
|
|
28821
29170
|
var web_url_to_json = __webpack_require__(83753);
|
|
29171
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
29172
|
+
var es_array_map = __webpack_require__(21249);
|
|
29173
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
|
|
29174
|
+
var es_array_sort = __webpack_require__(2707);
|
|
29175
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
29176
|
+
var es_array_includes = __webpack_require__(26699);
|
|
28822
29177
|
// EXTERNAL MODULE: ./node_modules/lodash/get.js
|
|
28823
29178
|
var get = __webpack_require__(27361);
|
|
28824
29179
|
var get_default = /*#__PURE__*/__webpack_require__.n(get);
|
|
@@ -30101,54 +30456,6 @@ function getDefaultIconColor(node) {
|
|
|
30101
30456
|
var es_object_values = __webpack_require__(26833);
|
|
30102
30457
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
30103
30458
|
var es_array_filter = __webpack_require__(57327);
|
|
30104
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.to-primitive.js
|
|
30105
|
-
var es_symbol_to_primitive = __webpack_require__(96649);
|
|
30106
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.date.to-primitive.js
|
|
30107
|
-
var es_date_to_primitive = __webpack_require__(96078);
|
|
30108
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
30109
|
-
var es_number_constructor = __webpack_require__(9653);
|
|
30110
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
30111
|
-
|
|
30112
|
-
|
|
30113
|
-
|
|
30114
|
-
|
|
30115
|
-
|
|
30116
|
-
|
|
30117
|
-
|
|
30118
|
-
|
|
30119
|
-
function _toPrimitive(input, hint) {
|
|
30120
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
30121
|
-
var prim = input[Symbol.toPrimitive];
|
|
30122
|
-
if (prim !== undefined) {
|
|
30123
|
-
var res = prim.call(input, hint || "default");
|
|
30124
|
-
if (_typeof(res) !== "object") return res;
|
|
30125
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
30126
|
-
}
|
|
30127
|
-
return (hint === "string" ? String : Number)(input);
|
|
30128
|
-
}
|
|
30129
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
30130
|
-
|
|
30131
|
-
|
|
30132
|
-
function _toPropertyKey(arg) {
|
|
30133
|
-
var key = _toPrimitive(arg, "string");
|
|
30134
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
30135
|
-
}
|
|
30136
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
30137
|
-
|
|
30138
|
-
function _defineProperty(obj, key, value) {
|
|
30139
|
-
key = _toPropertyKey(key);
|
|
30140
|
-
if (key in obj) {
|
|
30141
|
-
Object.defineProperty(obj, key, {
|
|
30142
|
-
value: value,
|
|
30143
|
-
enumerable: true,
|
|
30144
|
-
configurable: true,
|
|
30145
|
-
writable: true
|
|
30146
|
-
});
|
|
30147
|
-
} else {
|
|
30148
|
-
obj[key] = value;
|
|
30149
|
-
}
|
|
30150
|
-
return obj;
|
|
30151
|
-
}
|
|
30152
30459
|
;// CONCATENATED MODULE: ./src/mixins/portsConfig.js
|
|
30153
30460
|
|
|
30154
30461
|
|
|
@@ -30445,8 +30752,6 @@ function _slicedToArray(arr, i) {
|
|
|
30445
30752
|
var es_object_has_own = __webpack_require__(46314);
|
|
30446
30753
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.entries.js
|
|
30447
30754
|
var es_object_entries = __webpack_require__(69720);
|
|
30448
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
30449
|
-
var es_array_includes = __webpack_require__(26699);
|
|
30450
30755
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
30451
30756
|
var es_string_includes = __webpack_require__(32023);
|
|
30452
30757
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
@@ -31905,6 +32210,7 @@ var COLOR_COMPLETED_FILL = '#D6FFE6';
|
|
|
31905
32210
|
|
|
31906
32211
|
|
|
31907
32212
|
|
|
32213
|
+
|
|
31908
32214
|
var endpoints = {
|
|
31909
32215
|
source: 'source',
|
|
31910
32216
|
target: 'target'
|
|
@@ -31916,6 +32222,7 @@ function isPoint(item) {
|
|
|
31916
32222
|
props: ['highlighted', 'paper', 'paperManager', 'isCompleted', 'isIdle'],
|
|
31917
32223
|
data: function data() {
|
|
31918
32224
|
return {
|
|
32225
|
+
linkView: null,
|
|
31919
32226
|
sourceShape: null,
|
|
31920
32227
|
target: null,
|
|
31921
32228
|
listeningToMouseup: false,
|
|
@@ -32071,20 +32378,37 @@ function isPoint(item) {
|
|
|
32071
32378
|
storeWaypoints: function storeWaypoints() {
|
|
32072
32379
|
var _this4 = this;
|
|
32073
32380
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32381
|
+
var nodeType, sourceRefId, targetRefId, changes;
|
|
32074
32382
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32075
32383
|
while (1) switch (_context.prev = _context.next) {
|
|
32076
32384
|
case 0:
|
|
32077
32385
|
if (!(_this4.highlighted && !_this4.listeningToMouseleave)) {
|
|
32078
|
-
_context.next =
|
|
32386
|
+
_context.next = 7;
|
|
32079
32387
|
break;
|
|
32080
32388
|
}
|
|
32081
32389
|
_this4.updateWaypoints();
|
|
32082
32390
|
_context.next = 4;
|
|
32083
32391
|
return _this4.$nextTick();
|
|
32084
32392
|
case 4:
|
|
32393
|
+
if (_this4.$parent.isMultiplayer && _this4.linkView) {
|
|
32394
|
+
// update waypoints in multiplayer mode
|
|
32395
|
+
nodeType = _this4.linkView.model.component.node.type;
|
|
32396
|
+
sourceRefId = _this4.linkView.sourceView.model.component.node.definition.id;
|
|
32397
|
+
targetRefId = _this4.linkView.targetView.model.component.node.definition.id;
|
|
32398
|
+
changes = [{
|
|
32399
|
+
id: _this4.linkView.model.component.node.definition.id,
|
|
32400
|
+
properties: {
|
|
32401
|
+
type: nodeType,
|
|
32402
|
+
waypoint: [_this4.linkView.sourceAnchor.toJSON()].concat(_toConsumableArray(_this4.shape.vertices()), [_this4.linkView.targetAnchor.toJSON()]),
|
|
32403
|
+
sourceRefId: sourceRefId,
|
|
32404
|
+
targetRefId: targetRefId
|
|
32405
|
+
}
|
|
32406
|
+
}];
|
|
32407
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-updateNodes', changes);
|
|
32408
|
+
}
|
|
32085
32409
|
_this4.listeningToMouseleave = true;
|
|
32086
32410
|
_this4.$emit('save-state');
|
|
32087
|
-
case
|
|
32411
|
+
case 7:
|
|
32088
32412
|
case "end":
|
|
32089
32413
|
return _context.stop();
|
|
32090
32414
|
}
|
|
@@ -32103,8 +32427,8 @@ function isPoint(item) {
|
|
|
32103
32427
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32104
32428
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32105
32429
|
case 0:
|
|
32106
|
-
if (!(options && options.ui)) {
|
|
32107
|
-
_context2.next =
|
|
32430
|
+
if (!(options !== null && options !== void 0 && options.ui)) {
|
|
32431
|
+
_context2.next = 8;
|
|
32108
32432
|
break;
|
|
32109
32433
|
}
|
|
32110
32434
|
_context2.next = 3;
|
|
@@ -32113,9 +32437,10 @@ function isPoint(item) {
|
|
|
32113
32437
|
_context2.next = 5;
|
|
32114
32438
|
return _this5.waitForUpdateWaypoints();
|
|
32115
32439
|
case 5:
|
|
32116
|
-
|
|
32440
|
+
_this5.listeningToMouseleave = false;
|
|
32441
|
+
_context2.next = 8;
|
|
32117
32442
|
return _this5.storeWaypoints();
|
|
32118
|
-
case
|
|
32443
|
+
case 8:
|
|
32119
32444
|
case "end":
|
|
32120
32445
|
return _context2.stop();
|
|
32121
32446
|
}
|
|
@@ -32128,7 +32453,7 @@ function isPoint(item) {
|
|
|
32128
32453
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32129
32454
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32130
32455
|
case 0:
|
|
32131
|
-
if (!(options && options.ui)) {
|
|
32456
|
+
if (!(options !== null && options !== void 0 && options.ui)) {
|
|
32132
32457
|
_context3.next = 6;
|
|
32133
32458
|
break;
|
|
32134
32459
|
}
|
|
@@ -32147,9 +32472,9 @@ function isPoint(item) {
|
|
|
32147
32472
|
},
|
|
32148
32473
|
updateWaypoints: function updateWaypoints() {
|
|
32149
32474
|
var _this7 = this;
|
|
32150
|
-
|
|
32151
|
-
var start = linkView.sourceAnchor;
|
|
32152
|
-
var end = linkView.targetAnchor;
|
|
32475
|
+
this.linkView = this.shape.findView(this.paper);
|
|
32476
|
+
var start = this.linkView.sourceAnchor;
|
|
32477
|
+
var end = this.linkView.targetAnchor;
|
|
32153
32478
|
this.node.diagram.waypoint = [start].concat(_toConsumableArray(this.shape.vertices()), [end]).map(function (point) {
|
|
32154
32479
|
return _this7.moddle.create('dc:Point', point);
|
|
32155
32480
|
});
|
|
@@ -32194,18 +32519,8 @@ function isPoint(item) {
|
|
|
32194
32519
|
if (_this8.updateDefinitionLinks) {
|
|
32195
32520
|
_this8.updateDefinitionLinks();
|
|
32196
32521
|
}
|
|
32197
|
-
if (_this8.
|
|
32198
|
-
|
|
32199
|
-
var genericLink = _this8.shape.findView(_this8.paper);
|
|
32200
|
-
var waypoint = [genericLink.sourceAnchor.toJSON(), genericLink.targetAnchor.toJSON()];
|
|
32201
|
-
window.ProcessMaker.EventBus.$emit('multiplayer-addFlow', {
|
|
32202
|
-
type: _this8.shape.component.node.type,
|
|
32203
|
-
id: "node_".concat(_this8.$parent.nodeIdGenerator.getDefinitionNumber()),
|
|
32204
|
-
sourceRefId: _this8.sourceNode.definition.id,
|
|
32205
|
-
targetRefId: _this8.targetNode.definition.id,
|
|
32206
|
-
waypoint: waypoint
|
|
32207
|
-
});
|
|
32208
|
-
}
|
|
32522
|
+
if (_this8.linkView && ['processmaker-modeler-association', 'processmaker-modeler-data-input-association'].includes(_this8.shape.component.node.type)) {
|
|
32523
|
+
_this8.$parent.multiplayerHook(_this8.shape.component.node, false);
|
|
32209
32524
|
}
|
|
32210
32525
|
_this8.$emit('save-state');
|
|
32211
32526
|
});
|
|
@@ -32363,11 +32678,25 @@ function isPoint(item) {
|
|
|
32363
32678
|
;// CONCATENATED MODULE: ./src/assets/association-head.svg
|
|
32364
32679
|
var association_head_namespaceObject = __webpack_require__.p + "img/association-head.0b14da7b.svg";
|
|
32365
32680
|
;// CONCATENATED MODULE: ./src/components/nodes/association/associationConfig.js
|
|
32681
|
+
var associationConfig_id = 'processmaker-modeler-association';
|
|
32682
|
+
var bpmnType = 'bpmn:Association';
|
|
32366
32683
|
var direction = {
|
|
32367
32684
|
none: 'None',
|
|
32368
32685
|
one: 'One',
|
|
32369
32686
|
both: 'Both'
|
|
32370
32687
|
};
|
|
32688
|
+
function definition(moddle) {
|
|
32689
|
+
return moddle.create(bpmnType, {
|
|
32690
|
+
associationDirection: direction.none,
|
|
32691
|
+
targetRef: {
|
|
32692
|
+
x: undefined,
|
|
32693
|
+
y: undefined
|
|
32694
|
+
}
|
|
32695
|
+
});
|
|
32696
|
+
}
|
|
32697
|
+
function associationConfig_diagram(moddle) {
|
|
32698
|
+
return moddle.create('bpmndi:BPMNEdge');
|
|
32699
|
+
}
|
|
32371
32700
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownConfig/crownConfig.vue?vue&type=template&id=1e4b9bf1&
|
|
32372
32701
|
var crownConfigvue_type_template_id_1e4b9bf1_render = function render() {
|
|
32373
32702
|
var _vm = this,
|
|
@@ -32780,8 +33109,8 @@ var external_lodash_ = __webpack_require__(24793);
|
|
|
32780
33109
|
var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_);
|
|
32781
33110
|
;// CONCATENATED MODULE: ./src/components/nodes/dataOutputAssociation/config.js
|
|
32782
33111
|
var config_id = 'processmaker-modeler-data-output-association';
|
|
32783
|
-
var
|
|
32784
|
-
function
|
|
33112
|
+
var config_bpmnType = 'bpmn:DataOutputAssociation';
|
|
33113
|
+
function config_definition(moddle) {
|
|
32785
33114
|
return moddle.create('bpmn:DataOutputAssociation', {
|
|
32786
33115
|
targetRef: {
|
|
32787
33116
|
x: undefined,
|
|
@@ -32794,8 +33123,8 @@ function config_diagram(moddle) {
|
|
|
32794
33123
|
}
|
|
32795
33124
|
;// CONCATENATED MODULE: ./src/components/nodes/dataInputAssociation/config.js
|
|
32796
33125
|
var dataInputAssociation_config_id = 'processmaker-modeler-data-input-association';
|
|
32797
|
-
var
|
|
32798
|
-
function
|
|
33126
|
+
var dataInputAssociation_config_bpmnType = 'bpmn:DataInputAssociation';
|
|
33127
|
+
function dataInputAssociation_config_definition(moddle) {
|
|
32799
33128
|
return moddle.create('bpmn:DataInputAssociation', {
|
|
32800
33129
|
targetRef: {
|
|
32801
33130
|
x: undefined,
|
|
@@ -32803,7 +33132,7 @@ function config_definition(moddle) {
|
|
|
32803
33132
|
}
|
|
32804
33133
|
});
|
|
32805
33134
|
}
|
|
32806
|
-
function
|
|
33135
|
+
function dataInputAssociation_config_diagram(moddle) {
|
|
32807
33136
|
return moddle.create('bpmndi:BPMNEdge');
|
|
32808
33137
|
}
|
|
32809
33138
|
;// CONCATENATED MODULE: ./src/components/crown/utils.js
|
|
@@ -32883,19 +33212,21 @@ function removeBoundaryEvents(graph, node, removeNode) {
|
|
|
32883
33212
|
var nodeShape = graph.getCells().find(function (el) {
|
|
32884
33213
|
return el.component && el.component.node === node;
|
|
32885
33214
|
});
|
|
32886
|
-
nodeShape
|
|
32887
|
-
|
|
32888
|
-
|
|
32889
|
-
|
|
32890
|
-
|
|
32891
|
-
|
|
32892
|
-
|
|
33215
|
+
if (nodeShape) {
|
|
33216
|
+
nodeShape.getEmbeddedCells({
|
|
33217
|
+
deep: true
|
|
33218
|
+
}).filter(function (cell) {
|
|
33219
|
+
return cell.component && cell.component.node.isBpmnType('bpmn:BoundaryEvent');
|
|
33220
|
+
}).forEach(function (boundaryEventShape) {
|
|
33221
|
+
graph.getConnectedLinks(boundaryEventShape).forEach(function (shape) {
|
|
33222
|
+
return removeNode(shape.component.node);
|
|
33223
|
+
});
|
|
33224
|
+
removeNode(boundaryEventShape.component.node);
|
|
32893
33225
|
});
|
|
32894
|
-
|
|
32895
|
-
});
|
|
33226
|
+
}
|
|
32896
33227
|
}
|
|
32897
33228
|
function removeOutgoingAndIncomingRefsToFlow(node) {
|
|
32898
|
-
if (node.isBpmnType(
|
|
33229
|
+
if (node.isBpmnType(config_bpmnType, dataInputAssociation_config_bpmnType)) {
|
|
32899
33230
|
return;
|
|
32900
33231
|
}
|
|
32901
33232
|
|
|
@@ -33202,32 +33533,6 @@ function _objectSpread2(target) {
|
|
|
33202
33533
|
}
|
|
33203
33534
|
return target;
|
|
33204
33535
|
}
|
|
33205
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
33206
|
-
|
|
33207
|
-
function _classCallCheck(instance, Constructor) {
|
|
33208
|
-
if (!(instance instanceof Constructor)) {
|
|
33209
|
-
throw new TypeError("Cannot call a class as a function");
|
|
33210
|
-
}
|
|
33211
|
-
}
|
|
33212
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
33213
|
-
|
|
33214
|
-
function _defineProperties(target, props) {
|
|
33215
|
-
for (var i = 0; i < props.length; i++) {
|
|
33216
|
-
var descriptor = props[i];
|
|
33217
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
33218
|
-
descriptor.configurable = true;
|
|
33219
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33220
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
33221
|
-
}
|
|
33222
|
-
}
|
|
33223
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
33224
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
33225
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
33226
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
33227
|
-
writable: false
|
|
33228
|
-
});
|
|
33229
|
-
return Constructor;
|
|
33230
|
-
}
|
|
33231
33536
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
33232
33537
|
var es_string_replace = __webpack_require__(15306);
|
|
33233
33538
|
;// CONCATENATED MODULE: ./src/components/nodes/baseStartEvent/defaultNames.js
|
|
@@ -36204,24 +36509,51 @@ var idConfigSettings = {
|
|
|
36204
36509
|
validation: 'required|regex:/^[_A-Za-z][-._A-Za-z0-9]*$/'
|
|
36205
36510
|
};
|
|
36206
36511
|
/* harmony default export */ var inspectors_idConfigSettings = (idConfigSettings);
|
|
36512
|
+
;// CONCATENATED MODULE: ./src/components/nodes/association/AssociationFlow.js
|
|
36513
|
+
|
|
36514
|
+
|
|
36515
|
+
|
|
36516
|
+
|
|
36517
|
+
|
|
36518
|
+
var AssociationFlow = /*#__PURE__*/function () {
|
|
36519
|
+
function AssociationFlow(nodeRegistry, moddle, paper) {
|
|
36520
|
+
_classCallCheck(this, AssociationFlow);
|
|
36521
|
+
this.nodeRegistry = nodeRegistry;
|
|
36522
|
+
this.moddle = moddle;
|
|
36523
|
+
this.paper = paper;
|
|
36524
|
+
}
|
|
36525
|
+
_createClass(AssociationFlow, [{
|
|
36526
|
+
key: "makeFlowNode",
|
|
36527
|
+
value: function makeFlowNode(sourceShape, targetShape, waypoint) {
|
|
36528
|
+
var _this = this;
|
|
36529
|
+
var diagram = associationConfig_diagram(this.moddle);
|
|
36530
|
+
var associationFlow = definition(this.moddle);
|
|
36531
|
+
associationFlow.set('sourceRef', sourceShape.component.node.definition);
|
|
36532
|
+
associationFlow.set('targetRef', targetShape.component.node.definition);
|
|
36533
|
+
diagram.waypoint = waypoint.map(function (point) {
|
|
36534
|
+
return _this.moddle.create('dc:Point', point);
|
|
36535
|
+
});
|
|
36536
|
+
var node = new Node(associationConfig_id, associationFlow, diagram);
|
|
36537
|
+
return node;
|
|
36538
|
+
}
|
|
36539
|
+
}]);
|
|
36540
|
+
return AssociationFlow;
|
|
36541
|
+
}();
|
|
36207
36542
|
;// CONCATENATED MODULE: ./src/components/nodes/association/index.js
|
|
36208
36543
|
|
|
36209
36544
|
|
|
36210
36545
|
|
|
36211
|
-
|
|
36546
|
+
|
|
36547
|
+
|
|
36548
|
+
|
|
36549
|
+
|
|
36212
36550
|
/* harmony default export */ var nodes_association = ({
|
|
36213
|
-
id:
|
|
36551
|
+
id: associationConfig_id,
|
|
36214
36552
|
component: association,
|
|
36215
|
-
bpmnType:
|
|
36553
|
+
bpmnType: bpmnType,
|
|
36216
36554
|
control: false,
|
|
36217
|
-
definition:
|
|
36218
|
-
|
|
36219
|
-
associationDirection: "".concat(direction.none)
|
|
36220
|
-
});
|
|
36221
|
-
},
|
|
36222
|
-
diagram: function diagram(moddle) {
|
|
36223
|
-
return moddle.create('bpmndi:BPMNEdge');
|
|
36224
|
-
},
|
|
36555
|
+
definition: definition,
|
|
36556
|
+
diagram: associationConfig_diagram,
|
|
36225
36557
|
inspectorConfig: [{
|
|
36226
36558
|
name: 'Data Association',
|
|
36227
36559
|
items: [{
|
|
@@ -36255,7 +36587,30 @@ var association_id = 'processmaker-modeler-association';
|
|
|
36255
36587
|
}
|
|
36256
36588
|
}]
|
|
36257
36589
|
}]
|
|
36258
|
-
}]
|
|
36590
|
+
}],
|
|
36591
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
36592
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36593
|
+
var paper, sourceElem, targetElem, flow, actualFlow, nodeIdIterator;
|
|
36594
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
36595
|
+
while (1) switch (_context.prev = _context.next) {
|
|
36596
|
+
case 0:
|
|
36597
|
+
paper = modeler.paper;
|
|
36598
|
+
sourceElem = modeler.getElementByNodeId(data.sourceRefId);
|
|
36599
|
+
targetElem = modeler.getElementByNodeId(data.targetRefId);
|
|
36600
|
+
if (sourceElem && targetElem) {
|
|
36601
|
+
flow = new AssociationFlow(modeler.nodeRegistry, modeler.moddle, paper);
|
|
36602
|
+
actualFlow = flow.makeFlowNode(sourceElem, targetElem, data.waypoint); // add Nodes
|
|
36603
|
+
modeler.addNode(actualFlow, data.id, true);
|
|
36604
|
+
nodeIdIterator = getNodeIdGenerator(modeler.definitions);
|
|
36605
|
+
nodeIdIterator.updateCounters();
|
|
36606
|
+
}
|
|
36607
|
+
case 4:
|
|
36608
|
+
case "end":
|
|
36609
|
+
return _context.stop();
|
|
36610
|
+
}
|
|
36611
|
+
}, _callee);
|
|
36612
|
+
}))();
|
|
36613
|
+
}
|
|
36259
36614
|
});
|
|
36260
36615
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/endEvent/endEvent.vue?vue&type=template&id=5b9ad491&
|
|
36261
36616
|
var endEventvue_type_template_id_5b9ad491_render = function render() {
|
|
@@ -38317,6 +38672,10 @@ var sequenceFlow_component = normalizeComponent(
|
|
|
38317
38672
|
|
|
38318
38673
|
|
|
38319
38674
|
|
|
38675
|
+
|
|
38676
|
+
|
|
38677
|
+
|
|
38678
|
+
|
|
38320
38679
|
var sequenceFlow_id = 'processmaker-modeler-sequence-flow';
|
|
38321
38680
|
/* harmony default export */ var nodes_sequenceFlow = ({
|
|
38322
38681
|
id: sequenceFlow_id,
|
|
@@ -38391,7 +38750,30 @@ var sequenceFlow_id = 'processmaker-modeler-sequence-flow';
|
|
|
38391
38750
|
})
|
|
38392
38751
|
}]
|
|
38393
38752
|
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
38394
|
-
}]
|
|
38753
|
+
}],
|
|
38754
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
38755
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
38756
|
+
var paper, sourceElem, targetElem, flow, actualFlow, nodeIdereator;
|
|
38757
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
38758
|
+
while (1) switch (_context.prev = _context.next) {
|
|
38759
|
+
case 0:
|
|
38760
|
+
paper = modeler.paper;
|
|
38761
|
+
sourceElem = modeler.getElementByNodeId(data.sourceRefId);
|
|
38762
|
+
targetElem = modeler.getElementByNodeId(data.targetRefId);
|
|
38763
|
+
if (sourceElem && targetElem) {
|
|
38764
|
+
flow = new SequenceFlow(modeler.nodeRegistry, modeler.moddle, paper);
|
|
38765
|
+
actualFlow = flow.makeFlowNode(sourceElem, targetElem, data.waypoint); // add Nodes
|
|
38766
|
+
modeler.addNode(actualFlow, data.id, true);
|
|
38767
|
+
nodeIdereator = getNodeIdGenerator(modeler.definitions);
|
|
38768
|
+
nodeIdereator.updateCounters();
|
|
38769
|
+
}
|
|
38770
|
+
case 4:
|
|
38771
|
+
case "end":
|
|
38772
|
+
return _context.stop();
|
|
38773
|
+
}
|
|
38774
|
+
}, _callee);
|
|
38775
|
+
}))();
|
|
38776
|
+
}
|
|
38395
38777
|
});
|
|
38396
38778
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/messageFlow/messageFlow.vue?vue&type=template&id=2025c58d&
|
|
38397
38779
|
var messageFlowvue_type_template_id_2025c58d_render = function render() {
|
|
@@ -38575,6 +38957,10 @@ var messageFlow_config_id = 'processmaker-modeler-message-flow';
|
|
|
38575
38957
|
|
|
38576
38958
|
|
|
38577
38959
|
|
|
38960
|
+
|
|
38961
|
+
|
|
38962
|
+
|
|
38963
|
+
|
|
38578
38964
|
/* harmony default export */ var nodes_messageFlow = ({
|
|
38579
38965
|
id: messageFlow_config_id,
|
|
38580
38966
|
component: messageFlow,
|
|
@@ -38604,7 +38990,30 @@ var messageFlow_config_id = 'processmaker-modeler-message-flow';
|
|
|
38604
38990
|
config: inspectors_nameConfigSettings
|
|
38605
38991
|
}]
|
|
38606
38992
|
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
38607
|
-
}]
|
|
38993
|
+
}],
|
|
38994
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
38995
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
38996
|
+
var paper, sourceElem, targetElem, flow, actualFlow, nodeIdereator;
|
|
38997
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
38998
|
+
while (1) switch (_context.prev = _context.next) {
|
|
38999
|
+
case 0:
|
|
39000
|
+
paper = modeler.paper;
|
|
39001
|
+
sourceElem = modeler.getElementByNodeId(data.sourceRefId);
|
|
39002
|
+
targetElem = modeler.getElementByNodeId(data.targetRefId);
|
|
39003
|
+
if (sourceElem && targetElem) {
|
|
39004
|
+
flow = new MessageFlow(modeler.nodeRegistry, modeler.moddle, paper);
|
|
39005
|
+
actualFlow = flow.makeFlowNode(sourceElem, targetElem, data.waypoint); // add Nodes
|
|
39006
|
+
modeler.addNode(actualFlow, data.id, true);
|
|
39007
|
+
nodeIdereator = getNodeIdGenerator(modeler.definitions);
|
|
39008
|
+
nodeIdereator.updateCounters();
|
|
39009
|
+
}
|
|
39010
|
+
case 4:
|
|
39011
|
+
case "end":
|
|
39012
|
+
return _context.stop();
|
|
39013
|
+
}
|
|
39014
|
+
}, _callee);
|
|
39015
|
+
}))();
|
|
39016
|
+
}
|
|
38608
39017
|
});
|
|
38609
39018
|
// EXTERNAL MODULE: ./node_modules/svg-inline-loader/index.js!./src/assets/message-end-event.svg
|
|
38610
39019
|
var message_end_event = __webpack_require__(18256);
|
|
@@ -38918,8 +39327,6 @@ var MessageSelectvue_type_template_id_395d11da_scoped_true_staticRenderFns = [];
|
|
|
38918
39327
|
|
|
38919
39328
|
;// CONCATENATED MODULE: ./src/components/inspectors/MessageSelect.vue?vue&type=template&id=395d11da&scoped=true&
|
|
38920
39329
|
|
|
38921
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
|
38922
|
-
var es_string_match = __webpack_require__(4723);
|
|
38923
39330
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
|
|
38924
39331
|
var es_array_find_index = __webpack_require__(34553);
|
|
38925
39332
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/inspectors/MessageSelect.vue?vue&type=script&lang=js&
|
|
@@ -43849,283 +44256,6 @@ var LoopCharacteristics_component = normalizeComponent(
|
|
|
43849
44256
|
/* harmony default export */ var LoopCharacteristics = (LoopCharacteristics_component.exports);
|
|
43850
44257
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
43851
44258
|
var es_object_assign = __webpack_require__(19601);
|
|
43852
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-names.js
|
|
43853
|
-
var es_object_get_own_property_names = __webpack_require__(36210);
|
|
43854
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js
|
|
43855
|
-
|
|
43856
|
-
function _checkPrivateRedeclaration(obj, privateCollection) {
|
|
43857
|
-
if (privateCollection.has(obj)) {
|
|
43858
|
-
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
43859
|
-
}
|
|
43860
|
-
}
|
|
43861
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js
|
|
43862
|
-
|
|
43863
|
-
function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
|
43864
|
-
_checkPrivateRedeclaration(obj, privateMap);
|
|
43865
|
-
privateMap.set(obj, value);
|
|
43866
|
-
}
|
|
43867
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js
|
|
43868
|
-
function _classApplyDescriptorGet(receiver, descriptor) {
|
|
43869
|
-
if (descriptor.get) {
|
|
43870
|
-
return descriptor.get.call(receiver);
|
|
43871
|
-
}
|
|
43872
|
-
return descriptor.value;
|
|
43873
|
-
}
|
|
43874
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js
|
|
43875
|
-
|
|
43876
|
-
function _classExtractFieldDescriptor(receiver, privateMap, action) {
|
|
43877
|
-
if (!privateMap.has(receiver)) {
|
|
43878
|
-
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
43879
|
-
}
|
|
43880
|
-
return privateMap.get(receiver);
|
|
43881
|
-
}
|
|
43882
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js
|
|
43883
|
-
|
|
43884
|
-
|
|
43885
|
-
function _classPrivateFieldGet(receiver, privateMap) {
|
|
43886
|
-
var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get");
|
|
43887
|
-
return _classApplyDescriptorGet(receiver, descriptor);
|
|
43888
|
-
}
|
|
43889
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js
|
|
43890
|
-
|
|
43891
|
-
function _classCheckPrivateStaticAccess(receiver, classConstructor) {
|
|
43892
|
-
if (receiver !== classConstructor) {
|
|
43893
|
-
throw new TypeError("Private static access of wrong provenance");
|
|
43894
|
-
}
|
|
43895
|
-
}
|
|
43896
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js
|
|
43897
|
-
|
|
43898
|
-
function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
|
|
43899
|
-
if (descriptor === undefined) {
|
|
43900
|
-
throw new TypeError("attempted to " + action + " private static field before its declaration");
|
|
43901
|
-
}
|
|
43902
|
-
}
|
|
43903
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js
|
|
43904
|
-
|
|
43905
|
-
|
|
43906
|
-
|
|
43907
|
-
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
|
|
43908
|
-
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
43909
|
-
_classCheckPrivateStaticFieldDescriptor(descriptor, "get");
|
|
43910
|
-
return _classApplyDescriptorGet(receiver, descriptor);
|
|
43911
|
-
}
|
|
43912
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js
|
|
43913
|
-
|
|
43914
|
-
function _classApplyDescriptorSet(receiver, descriptor, value) {
|
|
43915
|
-
if (descriptor.set) {
|
|
43916
|
-
descriptor.set.call(receiver, value);
|
|
43917
|
-
} else {
|
|
43918
|
-
if (!descriptor.writable) {
|
|
43919
|
-
throw new TypeError("attempted to set read only private field");
|
|
43920
|
-
}
|
|
43921
|
-
descriptor.value = value;
|
|
43922
|
-
}
|
|
43923
|
-
}
|
|
43924
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/babel-preset-app/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js
|
|
43925
|
-
|
|
43926
|
-
|
|
43927
|
-
|
|
43928
|
-
function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
|
|
43929
|
-
_classCheckPrivateStaticAccess(receiver, classConstructor);
|
|
43930
|
-
_classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
|
43931
|
-
_classApplyDescriptorSet(receiver, descriptor, value);
|
|
43932
|
-
return value;
|
|
43933
|
-
}
|
|
43934
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.constructor.js
|
|
43935
|
-
var es_regexp_constructor = __webpack_require__(24603);
|
|
43936
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.dot-all.js
|
|
43937
|
-
var es_regexp_dot_all = __webpack_require__(28450);
|
|
43938
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.sticky.js
|
|
43939
|
-
var es_regexp_sticky = __webpack_require__(88386);
|
|
43940
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
43941
|
-
var es_regexp_to_string = __webpack_require__(39714);
|
|
43942
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.weak-map.js
|
|
43943
|
-
var es_weak_map = __webpack_require__(4129);
|
|
43944
|
-
;// CONCATENATED MODULE: ./src/NodeIdGenerator.js
|
|
43945
|
-
|
|
43946
|
-
|
|
43947
|
-
|
|
43948
|
-
|
|
43949
|
-
|
|
43950
|
-
|
|
43951
|
-
|
|
43952
|
-
|
|
43953
|
-
|
|
43954
|
-
|
|
43955
|
-
|
|
43956
|
-
|
|
43957
|
-
|
|
43958
|
-
|
|
43959
|
-
|
|
43960
|
-
|
|
43961
|
-
|
|
43962
|
-
|
|
43963
|
-
|
|
43964
|
-
|
|
43965
|
-
|
|
43966
|
-
|
|
43967
|
-
var _generateDefinitionId = /*#__PURE__*/new WeakMap();
|
|
43968
|
-
var _generateDiagramId = /*#__PURE__*/new WeakMap();
|
|
43969
|
-
var _generateProcessId = /*#__PURE__*/new WeakMap();
|
|
43970
|
-
var NodeIdGenerator = /*#__PURE__*/function () {
|
|
43971
|
-
function NodeIdGenerator(definitions) {
|
|
43972
|
-
_classCallCheck(this, NodeIdGenerator);
|
|
43973
|
-
_classPrivateFieldInitSpec(this, _generateDefinitionId, {
|
|
43974
|
-
writable: true,
|
|
43975
|
-
value: function value() {
|
|
43976
|
-
var _NodeIdGenerator$coun3, _NodeIdGenerator$coun4;
|
|
43977
|
-
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
43978
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun4 = _NodeIdGenerator$coun3++, _NodeIdGenerator$coun3)), _NodeIdGenerator$coun4;
|
|
43979
|
-
return id;
|
|
43980
|
-
}
|
|
43981
|
-
});
|
|
43982
|
-
_classPrivateFieldInitSpec(this, _generateDiagramId, {
|
|
43983
|
-
writable: true,
|
|
43984
|
-
value: function value() {
|
|
43985
|
-
var _NodeIdGenerator$diag3, _NodeIdGenerator$diag4;
|
|
43986
|
-
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter) + '_di';
|
|
43987
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag4 = _NodeIdGenerator$diag3++, _NodeIdGenerator$diag3)), _NodeIdGenerator$diag4;
|
|
43988
|
-
return id;
|
|
43989
|
-
}
|
|
43990
|
-
});
|
|
43991
|
-
_classPrivateFieldInitSpec(this, _generateProcessId, {
|
|
43992
|
-
writable: true,
|
|
43993
|
-
value: function value() {
|
|
43994
|
-
var _NodeIdGenerator$proc, _NodeIdGenerator$proc2;
|
|
43995
|
-
var id = NodeIdGenerator.processPrefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _processCounter);
|
|
43996
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _processCounter, (_NodeIdGenerator$proc = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _processCounter), _NodeIdGenerator$proc2 = _NodeIdGenerator$proc++, _NodeIdGenerator$proc)), _NodeIdGenerator$proc2;
|
|
43997
|
-
return id;
|
|
43998
|
-
}
|
|
43999
|
-
});
|
|
44000
|
-
this.definitions = definitions;
|
|
44001
|
-
this.refreshLastIdCounter();
|
|
44002
|
-
this.refreshLastDiagramIdCounter();
|
|
44003
|
-
this.refreshLastProcessIdCounter();
|
|
44004
|
-
}
|
|
44005
|
-
_createClass(NodeIdGenerator, [{
|
|
44006
|
-
key: "findById",
|
|
44007
|
-
value: function findById(id) {
|
|
44008
|
-
var _this = this;
|
|
44009
|
-
var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.definitions.rootElements;
|
|
44010
|
-
var walked = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
44011
|
-
if (walked.indexOf(root) > -1) return;
|
|
44012
|
-
var found;
|
|
44013
|
-
if (root instanceof Array) {
|
|
44014
|
-
walked.push(root);
|
|
44015
|
-
root.find(function (item) {
|
|
44016
|
-
return found = _this.findById(id, item, walked);
|
|
44017
|
-
});
|
|
44018
|
-
} else if (root instanceof Object && root.$type) {
|
|
44019
|
-
walked.push(root);
|
|
44020
|
-
if (root.id === id) return root;
|
|
44021
|
-
Object.getOwnPropertyNames(root).find(function (key) {
|
|
44022
|
-
return found = !(root[key] instanceof Function) && key.substring(0, 1) !== '$' && _this.findById(id, root[key], walked);
|
|
44023
|
-
});
|
|
44024
|
-
}
|
|
44025
|
-
return found;
|
|
44026
|
-
}
|
|
44027
|
-
}, {
|
|
44028
|
-
key: "matchIds",
|
|
44029
|
-
value: function matchIds(idRegex, root) {
|
|
44030
|
-
var _this2 = this;
|
|
44031
|
-
var walked = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
44032
|
-
var lastIdCounter = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
44033
|
-
if (walked.indexOf(root) > -1) return lastIdCounter;
|
|
44034
|
-
if (root instanceof Array) {
|
|
44035
|
-
walked.push(root);
|
|
44036
|
-
root.forEach(function (item) {
|
|
44037
|
-
return lastIdCounter = _this2.matchIds(idRegex, item, walked, lastIdCounter);
|
|
44038
|
-
});
|
|
44039
|
-
} else if (root instanceof Object) {
|
|
44040
|
-
walked.push(root);
|
|
44041
|
-
if (root.id) {
|
|
44042
|
-
var match = String(root.id).match(idRegex);
|
|
44043
|
-
var idCounter = match ? parseInt(match[1]) : 0;
|
|
44044
|
-
if (idCounter > lastIdCounter) {
|
|
44045
|
-
lastIdCounter = idCounter;
|
|
44046
|
-
}
|
|
44047
|
-
}
|
|
44048
|
-
Object.getOwnPropertyNames(root).forEach(function (key) {
|
|
44049
|
-
if (!(root[key] instanceof Function) && key.substring(0, 1) !== '$') {
|
|
44050
|
-
lastIdCounter = _this2.matchIds(idRegex, root[key], walked, lastIdCounter);
|
|
44051
|
-
}
|
|
44052
|
-
});
|
|
44053
|
-
}
|
|
44054
|
-
return lastIdCounter;
|
|
44055
|
-
}
|
|
44056
|
-
}, {
|
|
44057
|
-
key: "refreshLastIdCounter",
|
|
44058
|
-
value: function refreshLastIdCounter() {
|
|
44059
|
-
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.prefix, "(\\d+)$")), this.definitions.rootElements);
|
|
44060
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, lastIdCounter + 1);
|
|
44061
|
-
}
|
|
44062
|
-
}, {
|
|
44063
|
-
key: "getCounter",
|
|
44064
|
-
value: function getCounter() {
|
|
44065
|
-
this.refreshLastIdCounter();
|
|
44066
|
-
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
44067
|
-
}
|
|
44068
|
-
}, {
|
|
44069
|
-
key: "getDefinitionNumber",
|
|
44070
|
-
value: function getDefinitionNumber() {
|
|
44071
|
-
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
44072
|
-
}
|
|
44073
|
-
}, {
|
|
44074
|
-
key: "updateCounters",
|
|
44075
|
-
value: function updateCounters() {
|
|
44076
|
-
var _NodeIdGenerator$coun, _NodeIdGenerator$coun2, _NodeIdGenerator$diag, _NodeIdGenerator$diag2;
|
|
44077
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun2 = _NodeIdGenerator$coun++, _NodeIdGenerator$coun)), _NodeIdGenerator$coun2;
|
|
44078
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag2 = _NodeIdGenerator$diag++, _NodeIdGenerator$diag)), _NodeIdGenerator$diag2;
|
|
44079
|
-
}
|
|
44080
|
-
}, {
|
|
44081
|
-
key: "refreshLastDiagramIdCounter",
|
|
44082
|
-
value: function refreshLastDiagramIdCounter() {
|
|
44083
|
-
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.prefix, "(\\d+)_di$")), this.definitions.diagrams);
|
|
44084
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, lastIdCounter + 1);
|
|
44085
|
-
}
|
|
44086
|
-
}, {
|
|
44087
|
-
key: "refreshLastProcessIdCounter",
|
|
44088
|
-
value: function refreshLastProcessIdCounter() {
|
|
44089
|
-
var lastIdCounter = this.matchIds(new RegExp("^".concat(NodeIdGenerator.processPrefix, "(\\d+)$")), this.definitions.rootElements);
|
|
44090
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _processCounter, lastIdCounter + 1);
|
|
44091
|
-
}
|
|
44092
|
-
}, {
|
|
44093
|
-
key: "generate",
|
|
44094
|
-
value: function generate() {
|
|
44095
|
-
var definitionId = _classPrivateFieldGet(this, _generateDefinitionId).call(this);
|
|
44096
|
-
var diagramId = _classPrivateFieldGet(this, _generateDiagramId).call(this);
|
|
44097
|
-
return [definitionId, diagramId];
|
|
44098
|
-
}
|
|
44099
|
-
}, {
|
|
44100
|
-
key: "generateProcessId",
|
|
44101
|
-
value: function generateProcessId() {
|
|
44102
|
-
return _classPrivateFieldGet(this, _generateProcessId).call(this);
|
|
44103
|
-
}
|
|
44104
|
-
}]);
|
|
44105
|
-
return NodeIdGenerator;
|
|
44106
|
-
}(); // Singleton instance
|
|
44107
|
-
_defineProperty(NodeIdGenerator, "prefix", 'node_');
|
|
44108
|
-
_defineProperty(NodeIdGenerator, "processPrefix", 'Process_');
|
|
44109
|
-
var _counter = {
|
|
44110
|
-
writable: true,
|
|
44111
|
-
value: 1
|
|
44112
|
-
};
|
|
44113
|
-
var _diagramCounter = {
|
|
44114
|
-
writable: true,
|
|
44115
|
-
value: 1
|
|
44116
|
-
};
|
|
44117
|
-
var _processCounter = {
|
|
44118
|
-
writable: true,
|
|
44119
|
-
value: 1
|
|
44120
|
-
};
|
|
44121
|
-
|
|
44122
|
-
var singleton = null;
|
|
44123
|
-
function getNodeIdGenerator(definitions) {
|
|
44124
|
-
if (!singleton) {
|
|
44125
|
-
singleton = new NodeIdGenerator(definitions);
|
|
44126
|
-
}
|
|
44127
|
-
return singleton;
|
|
44128
|
-
}
|
|
44129
44259
|
;// CONCATENATED MODULE: ./src/NodeInspector.js
|
|
44130
44260
|
|
|
44131
44261
|
|
|
@@ -45382,8 +45512,8 @@ var textAnnotation_id = 'processmaker-modeler-text-annotation';
|
|
|
45382
45512
|
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
45383
45513
|
}]
|
|
45384
45514
|
});
|
|
45385
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/pool/pool.vue?vue&type=template&id=
|
|
45386
|
-
var
|
|
45515
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/pool/pool.vue?vue&type=template&id=fbed1670&
|
|
45516
|
+
var poolvue_type_template_id_fbed1670_render = function render() {
|
|
45387
45517
|
var _vm = this,
|
|
45388
45518
|
_c = _vm._self._c;
|
|
45389
45519
|
return _c('crown-config', _vm._g({
|
|
@@ -45436,7 +45566,7 @@ var poolvue_type_template_id_294eae13_render = function render() {
|
|
|
45436
45566
|
}
|
|
45437
45567
|
})], 1);
|
|
45438
45568
|
};
|
|
45439
|
-
var
|
|
45569
|
+
var poolvue_type_template_id_fbed1670_staticRenderFns = [];
|
|
45440
45570
|
|
|
45441
45571
|
;// CONCATENATED MODULE: ./src/assets/highlight-shape.svg
|
|
45442
45572
|
var highlight_shape_namespaceObject = __webpack_require__.p + "img/highlight-shape.5f7b1ba9.svg";
|
|
@@ -46082,176 +46212,6 @@ var poolLane_component = normalizeComponent(
|
|
|
46082
46212
|
)
|
|
46083
46213
|
|
|
46084
46214
|
/* harmony default export */ var poolLane = (poolLane_component.exports);
|
|
46085
|
-
;// CONCATENATED MODULE: ./src/components/nodes/poolLane/index.js
|
|
46086
|
-
|
|
46087
|
-
|
|
46088
|
-
|
|
46089
|
-
|
|
46090
|
-
|
|
46091
|
-
/* harmony default export */ var nodes_poolLane = ({
|
|
46092
|
-
id: poolLane_config_id,
|
|
46093
|
-
component: poolLane,
|
|
46094
|
-
bpmnType: 'bpmn:Lane',
|
|
46095
|
-
control: false,
|
|
46096
|
-
category: 'BPMN',
|
|
46097
|
-
label: 'Lane',
|
|
46098
|
-
definition: function definition(moddle) {
|
|
46099
|
-
return moddle.create('bpmn:Lane', {
|
|
46100
|
-
name: ''
|
|
46101
|
-
});
|
|
46102
|
-
},
|
|
46103
|
-
diagram: function diagram(moddle) {
|
|
46104
|
-
return moddle.create('bpmndi:BPMNShape', {
|
|
46105
|
-
bounds: moddle.create('dc:Bounds', {
|
|
46106
|
-
height: 150,
|
|
46107
|
-
width: 600,
|
|
46108
|
-
x: null,
|
|
46109
|
-
y: null
|
|
46110
|
-
})
|
|
46111
|
-
});
|
|
46112
|
-
},
|
|
46113
|
-
inspectorConfig: [{
|
|
46114
|
-
name: 'Lane',
|
|
46115
|
-
items: [{
|
|
46116
|
-
component: 'FormAccordion',
|
|
46117
|
-
container: true,
|
|
46118
|
-
config: {
|
|
46119
|
-
initiallyOpen: true,
|
|
46120
|
-
label: 'Properties',
|
|
46121
|
-
icon: 'cog',
|
|
46122
|
-
name: 'inspector-accordion-pool-lane'
|
|
46123
|
-
},
|
|
46124
|
-
items: [{
|
|
46125
|
-
component: 'FormInput',
|
|
46126
|
-
config: inspectors_nameConfigSettings
|
|
46127
|
-
}]
|
|
46128
|
-
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
46129
|
-
}]
|
|
46130
|
-
});
|
|
46131
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneAboveButton.vue?vue&type=template&id=fc69b4f4&
|
|
46132
|
-
var addLaneAboveButtonvue_type_template_id_fc69b4f4_render = function render() {
|
|
46133
|
-
var _vm = this,
|
|
46134
|
-
_c = _vm._self._c;
|
|
46135
|
-
return _c('crown-button', _vm._g({
|
|
46136
|
-
attrs: {
|
|
46137
|
-
"id": "lane-above-button",
|
|
46138
|
-
"aria-label": "Add lane above icon",
|
|
46139
|
-
"width": 25
|
|
46140
|
-
}
|
|
46141
|
-
}, _vm.$listeners), [_c('font-awesome-icon', {
|
|
46142
|
-
attrs: {
|
|
46143
|
-
"icon": ['fpm', 'fa-lane-above']
|
|
46144
|
-
}
|
|
46145
|
-
})], 1);
|
|
46146
|
-
};
|
|
46147
|
-
var addLaneAboveButtonvue_type_template_id_fc69b4f4_staticRenderFns = [];
|
|
46148
|
-
|
|
46149
|
-
;// CONCATENATED MODULE: ./src/assets/lane-above.svg
|
|
46150
|
-
var lane_above_namespaceObject = __webpack_require__.p + "img/lane-above.37ee2b80.svg";
|
|
46151
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneAboveButton.vue?vue&type=script&lang=js&
|
|
46152
|
-
|
|
46153
|
-
|
|
46154
|
-
|
|
46155
|
-
|
|
46156
|
-
|
|
46157
|
-
/* harmony default export */ var addLaneAboveButtonvue_type_script_lang_js_ = ({
|
|
46158
|
-
components: {
|
|
46159
|
-
CrownButton: crownButton,
|
|
46160
|
-
FontAwesomeIcon: vue_fontawesome_namespaceObject.FontAwesomeIcon
|
|
46161
|
-
},
|
|
46162
|
-
data: function data() {
|
|
46163
|
-
return {
|
|
46164
|
-
laneAboveIcon: lane_above_namespaceObject
|
|
46165
|
-
};
|
|
46166
|
-
},
|
|
46167
|
-
created: function created() {
|
|
46168
|
-
fontawesome_svg_core_namespaceObject.library.add(faLaneAbove);
|
|
46169
|
-
}
|
|
46170
|
-
});
|
|
46171
|
-
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneAboveButton.vue?vue&type=script&lang=js&
|
|
46172
|
-
/* harmony default export */ var crownButtons_addLaneAboveButtonvue_type_script_lang_js_ = (addLaneAboveButtonvue_type_script_lang_js_);
|
|
46173
|
-
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneAboveButton.vue
|
|
46174
|
-
|
|
46175
|
-
|
|
46176
|
-
|
|
46177
|
-
|
|
46178
|
-
|
|
46179
|
-
/* normalize component */
|
|
46180
|
-
;
|
|
46181
|
-
var addLaneAboveButton_component = normalizeComponent(
|
|
46182
|
-
crownButtons_addLaneAboveButtonvue_type_script_lang_js_,
|
|
46183
|
-
addLaneAboveButtonvue_type_template_id_fc69b4f4_render,
|
|
46184
|
-
addLaneAboveButtonvue_type_template_id_fc69b4f4_staticRenderFns,
|
|
46185
|
-
false,
|
|
46186
|
-
null,
|
|
46187
|
-
null,
|
|
46188
|
-
null
|
|
46189
|
-
|
|
46190
|
-
)
|
|
46191
|
-
|
|
46192
|
-
/* harmony default export */ var addLaneAboveButton = (addLaneAboveButton_component.exports);
|
|
46193
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneBelowButton.vue?vue&type=template&id=4b1af748&
|
|
46194
|
-
var addLaneBelowButtonvue_type_template_id_4b1af748_render = function render() {
|
|
46195
|
-
var _vm = this,
|
|
46196
|
-
_c = _vm._self._c;
|
|
46197
|
-
return _c('crown-button', _vm._g({
|
|
46198
|
-
attrs: {
|
|
46199
|
-
"id": "lane-below-button",
|
|
46200
|
-
"aria-label": "Add lane below icon",
|
|
46201
|
-
"width": 25
|
|
46202
|
-
}
|
|
46203
|
-
}, _vm.$listeners), [_c('font-awesome-icon', {
|
|
46204
|
-
attrs: {
|
|
46205
|
-
"icon": ['fpm', 'fa-lane-below']
|
|
46206
|
-
}
|
|
46207
|
-
})], 1);
|
|
46208
|
-
};
|
|
46209
|
-
var addLaneBelowButtonvue_type_template_id_4b1af748_staticRenderFns = [];
|
|
46210
|
-
|
|
46211
|
-
;// CONCATENATED MODULE: ./src/assets/lane-below.svg
|
|
46212
|
-
var lane_below_namespaceObject = __webpack_require__.p + "img/lane-below.22169670.svg";
|
|
46213
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneBelowButton.vue?vue&type=script&lang=js&
|
|
46214
|
-
|
|
46215
|
-
|
|
46216
|
-
|
|
46217
|
-
|
|
46218
|
-
|
|
46219
|
-
/* harmony default export */ var addLaneBelowButtonvue_type_script_lang_js_ = ({
|
|
46220
|
-
components: {
|
|
46221
|
-
CrownButton: crownButton,
|
|
46222
|
-
FontAwesomeIcon: vue_fontawesome_namespaceObject.FontAwesomeIcon
|
|
46223
|
-
},
|
|
46224
|
-
data: function data() {
|
|
46225
|
-
return {
|
|
46226
|
-
laneBelowIcon: lane_below_namespaceObject
|
|
46227
|
-
};
|
|
46228
|
-
},
|
|
46229
|
-
created: function created() {
|
|
46230
|
-
fontawesome_svg_core_namespaceObject.library.add(faLaneBelow);
|
|
46231
|
-
}
|
|
46232
|
-
});
|
|
46233
|
-
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneBelowButton.vue?vue&type=script&lang=js&
|
|
46234
|
-
/* harmony default export */ var crownButtons_addLaneBelowButtonvue_type_script_lang_js_ = (addLaneBelowButtonvue_type_script_lang_js_);
|
|
46235
|
-
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneBelowButton.vue
|
|
46236
|
-
|
|
46237
|
-
|
|
46238
|
-
|
|
46239
|
-
|
|
46240
|
-
|
|
46241
|
-
/* normalize component */
|
|
46242
|
-
;
|
|
46243
|
-
var addLaneBelowButton_component = normalizeComponent(
|
|
46244
|
-
crownButtons_addLaneBelowButtonvue_type_script_lang_js_,
|
|
46245
|
-
addLaneBelowButtonvue_type_template_id_4b1af748_render,
|
|
46246
|
-
addLaneBelowButtonvue_type_template_id_4b1af748_staticRenderFns,
|
|
46247
|
-
false,
|
|
46248
|
-
null,
|
|
46249
|
-
null,
|
|
46250
|
-
null
|
|
46251
|
-
|
|
46252
|
-
)
|
|
46253
|
-
|
|
46254
|
-
/* harmony default export */ var addLaneBelowButton = (addLaneBelowButton_component.exports);
|
|
46255
46215
|
;// CONCATENATED MODULE: ./src/components/nodes/pool/poolShape.js
|
|
46256
46216
|
|
|
46257
46217
|
|
|
@@ -46660,6 +46620,227 @@ function configurePool(collaboration, node, graph) {
|
|
|
46660
46620
|
function elementShouldHaveFlowNodeRef(element) {
|
|
46661
46621
|
return element.component && element.component.node.type !== poolLane_config_id && element.component.node.type !== textAnnotation_id && element.component.node.type !== dataObject_id && element.component.node.type !== dataStore_id;
|
|
46662
46622
|
}
|
|
46623
|
+
;// CONCATENATED MODULE: ./src/components/nodes/poolLane/index.js
|
|
46624
|
+
|
|
46625
|
+
|
|
46626
|
+
|
|
46627
|
+
|
|
46628
|
+
|
|
46629
|
+
|
|
46630
|
+
|
|
46631
|
+
|
|
46632
|
+
|
|
46633
|
+
|
|
46634
|
+
|
|
46635
|
+
|
|
46636
|
+
|
|
46637
|
+
|
|
46638
|
+
|
|
46639
|
+
/* harmony default export */ var nodes_poolLane = ({
|
|
46640
|
+
id: poolLane_config_id,
|
|
46641
|
+
component: poolLane,
|
|
46642
|
+
bpmnType: 'bpmn:Lane',
|
|
46643
|
+
control: false,
|
|
46644
|
+
category: 'BPMN',
|
|
46645
|
+
label: 'Lane',
|
|
46646
|
+
definition: function definition(moddle) {
|
|
46647
|
+
return moddle.create('bpmn:Lane', {
|
|
46648
|
+
name: ''
|
|
46649
|
+
});
|
|
46650
|
+
},
|
|
46651
|
+
diagram: function diagram(moddle) {
|
|
46652
|
+
return moddle.create('bpmndi:BPMNShape', {
|
|
46653
|
+
bounds: moddle.create('dc:Bounds', {
|
|
46654
|
+
height: 150,
|
|
46655
|
+
width: 600,
|
|
46656
|
+
x: null,
|
|
46657
|
+
y: null
|
|
46658
|
+
})
|
|
46659
|
+
});
|
|
46660
|
+
},
|
|
46661
|
+
inspectorConfig: [{
|
|
46662
|
+
name: 'Lane',
|
|
46663
|
+
items: [{
|
|
46664
|
+
component: 'FormAccordion',
|
|
46665
|
+
container: true,
|
|
46666
|
+
config: {
|
|
46667
|
+
initiallyOpen: true,
|
|
46668
|
+
label: 'Properties',
|
|
46669
|
+
icon: 'cog',
|
|
46670
|
+
name: 'inspector-accordion-pool-lane'
|
|
46671
|
+
},
|
|
46672
|
+
items: [{
|
|
46673
|
+
component: 'FormInput',
|
|
46674
|
+
config: inspectors_nameConfigSettings
|
|
46675
|
+
}]
|
|
46676
|
+
}, documentationAccordionConfig, advancedAccordionConfig]
|
|
46677
|
+
}],
|
|
46678
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
46679
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
46680
|
+
var pool, definition, nodeIdereator, diagram, node;
|
|
46681
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
46682
|
+
while (1) switch (_context.prev = _context.next) {
|
|
46683
|
+
case 0:
|
|
46684
|
+
pool = modeler.getElementByNodeId(data.poolId);
|
|
46685
|
+
definition = modeler.moddle.create('bpmn:Lane', {
|
|
46686
|
+
name: data.name
|
|
46687
|
+
});
|
|
46688
|
+
if (!pool.component.laneSet && pool.component.createLaneSet) {
|
|
46689
|
+
pool.component.createLaneSet([data.laneSetId]);
|
|
46690
|
+
/* If there are currently elements in the pool, add them to the first lane */
|
|
46691
|
+
pool.component.shape.getEmbeddedCells().filter(function (element) {
|
|
46692
|
+
return elementShouldHaveFlowNodeRef(element);
|
|
46693
|
+
}).forEach(function (element) {
|
|
46694
|
+
definition.get('flowNodeRef').push(element.component.node.definition);
|
|
46695
|
+
});
|
|
46696
|
+
nodeIdereator = getNodeIdGenerator(modeler.definitions);
|
|
46697
|
+
nodeIdereator.updateCounters();
|
|
46698
|
+
}
|
|
46699
|
+
diagram = modeler.moddle.create('bpmndi:BPMNShape', {
|
|
46700
|
+
bounds: modeler.moddle.create('dc:Bounds', {
|
|
46701
|
+
height: data.height,
|
|
46702
|
+
width: data.width,
|
|
46703
|
+
x: data.x,
|
|
46704
|
+
y: data.y
|
|
46705
|
+
})
|
|
46706
|
+
});
|
|
46707
|
+
node = new Node(data.type, definition, diagram);
|
|
46708
|
+
_context.next = 7;
|
|
46709
|
+
return modeler.addNode(node, data.id, true);
|
|
46710
|
+
case 7:
|
|
46711
|
+
modeler.setShapeStacking(pool.component.shape);
|
|
46712
|
+
case 8:
|
|
46713
|
+
case "end":
|
|
46714
|
+
return _context.stop();
|
|
46715
|
+
}
|
|
46716
|
+
}, _callee);
|
|
46717
|
+
}))();
|
|
46718
|
+
}
|
|
46719
|
+
});
|
|
46720
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneAboveButton.vue?vue&type=template&id=fc69b4f4&
|
|
46721
|
+
var addLaneAboveButtonvue_type_template_id_fc69b4f4_render = function render() {
|
|
46722
|
+
var _vm = this,
|
|
46723
|
+
_c = _vm._self._c;
|
|
46724
|
+
return _c('crown-button', _vm._g({
|
|
46725
|
+
attrs: {
|
|
46726
|
+
"id": "lane-above-button",
|
|
46727
|
+
"aria-label": "Add lane above icon",
|
|
46728
|
+
"width": 25
|
|
46729
|
+
}
|
|
46730
|
+
}, _vm.$listeners), [_c('font-awesome-icon', {
|
|
46731
|
+
attrs: {
|
|
46732
|
+
"icon": ['fpm', 'fa-lane-above']
|
|
46733
|
+
}
|
|
46734
|
+
})], 1);
|
|
46735
|
+
};
|
|
46736
|
+
var addLaneAboveButtonvue_type_template_id_fc69b4f4_staticRenderFns = [];
|
|
46737
|
+
|
|
46738
|
+
;// CONCATENATED MODULE: ./src/assets/lane-above.svg
|
|
46739
|
+
var lane_above_namespaceObject = __webpack_require__.p + "img/lane-above.37ee2b80.svg";
|
|
46740
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneAboveButton.vue?vue&type=script&lang=js&
|
|
46741
|
+
|
|
46742
|
+
|
|
46743
|
+
|
|
46744
|
+
|
|
46745
|
+
|
|
46746
|
+
/* harmony default export */ var addLaneAboveButtonvue_type_script_lang_js_ = ({
|
|
46747
|
+
components: {
|
|
46748
|
+
CrownButton: crownButton,
|
|
46749
|
+
FontAwesomeIcon: vue_fontawesome_namespaceObject.FontAwesomeIcon
|
|
46750
|
+
},
|
|
46751
|
+
data: function data() {
|
|
46752
|
+
return {
|
|
46753
|
+
laneAboveIcon: lane_above_namespaceObject
|
|
46754
|
+
};
|
|
46755
|
+
},
|
|
46756
|
+
created: function created() {
|
|
46757
|
+
fontawesome_svg_core_namespaceObject.library.add(faLaneAbove);
|
|
46758
|
+
}
|
|
46759
|
+
});
|
|
46760
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneAboveButton.vue?vue&type=script&lang=js&
|
|
46761
|
+
/* harmony default export */ var crownButtons_addLaneAboveButtonvue_type_script_lang_js_ = (addLaneAboveButtonvue_type_script_lang_js_);
|
|
46762
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneAboveButton.vue
|
|
46763
|
+
|
|
46764
|
+
|
|
46765
|
+
|
|
46766
|
+
|
|
46767
|
+
|
|
46768
|
+
/* normalize component */
|
|
46769
|
+
;
|
|
46770
|
+
var addLaneAboveButton_component = normalizeComponent(
|
|
46771
|
+
crownButtons_addLaneAboveButtonvue_type_script_lang_js_,
|
|
46772
|
+
addLaneAboveButtonvue_type_template_id_fc69b4f4_render,
|
|
46773
|
+
addLaneAboveButtonvue_type_template_id_fc69b4f4_staticRenderFns,
|
|
46774
|
+
false,
|
|
46775
|
+
null,
|
|
46776
|
+
null,
|
|
46777
|
+
null
|
|
46778
|
+
|
|
46779
|
+
)
|
|
46780
|
+
|
|
46781
|
+
/* harmony default export */ var addLaneAboveButton = (addLaneAboveButton_component.exports);
|
|
46782
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneBelowButton.vue?vue&type=template&id=4b1af748&
|
|
46783
|
+
var addLaneBelowButtonvue_type_template_id_4b1af748_render = function render() {
|
|
46784
|
+
var _vm = this,
|
|
46785
|
+
_c = _vm._self._c;
|
|
46786
|
+
return _c('crown-button', _vm._g({
|
|
46787
|
+
attrs: {
|
|
46788
|
+
"id": "lane-below-button",
|
|
46789
|
+
"aria-label": "Add lane below icon",
|
|
46790
|
+
"width": 25
|
|
46791
|
+
}
|
|
46792
|
+
}, _vm.$listeners), [_c('font-awesome-icon', {
|
|
46793
|
+
attrs: {
|
|
46794
|
+
"icon": ['fpm', 'fa-lane-below']
|
|
46795
|
+
}
|
|
46796
|
+
})], 1);
|
|
46797
|
+
};
|
|
46798
|
+
var addLaneBelowButtonvue_type_template_id_4b1af748_staticRenderFns = [];
|
|
46799
|
+
|
|
46800
|
+
;// CONCATENATED MODULE: ./src/assets/lane-below.svg
|
|
46801
|
+
var lane_below_namespaceObject = __webpack_require__.p + "img/lane-below.22169670.svg";
|
|
46802
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/addLaneBelowButton.vue?vue&type=script&lang=js&
|
|
46803
|
+
|
|
46804
|
+
|
|
46805
|
+
|
|
46806
|
+
|
|
46807
|
+
|
|
46808
|
+
/* harmony default export */ var addLaneBelowButtonvue_type_script_lang_js_ = ({
|
|
46809
|
+
components: {
|
|
46810
|
+
CrownButton: crownButton,
|
|
46811
|
+
FontAwesomeIcon: vue_fontawesome_namespaceObject.FontAwesomeIcon
|
|
46812
|
+
},
|
|
46813
|
+
data: function data() {
|
|
46814
|
+
return {
|
|
46815
|
+
laneBelowIcon: lane_below_namespaceObject
|
|
46816
|
+
};
|
|
46817
|
+
},
|
|
46818
|
+
created: function created() {
|
|
46819
|
+
fontawesome_svg_core_namespaceObject.library.add(faLaneBelow);
|
|
46820
|
+
}
|
|
46821
|
+
});
|
|
46822
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneBelowButton.vue?vue&type=script&lang=js&
|
|
46823
|
+
/* harmony default export */ var crownButtons_addLaneBelowButtonvue_type_script_lang_js_ = (addLaneBelowButtonvue_type_script_lang_js_);
|
|
46824
|
+
;// CONCATENATED MODULE: ./src/components/crown/crownButtons/addLaneBelowButton.vue
|
|
46825
|
+
|
|
46826
|
+
|
|
46827
|
+
|
|
46828
|
+
|
|
46829
|
+
|
|
46830
|
+
/* normalize component */
|
|
46831
|
+
;
|
|
46832
|
+
var addLaneBelowButton_component = normalizeComponent(
|
|
46833
|
+
crownButtons_addLaneBelowButtonvue_type_script_lang_js_,
|
|
46834
|
+
addLaneBelowButtonvue_type_template_id_4b1af748_render,
|
|
46835
|
+
addLaneBelowButtonvue_type_template_id_4b1af748_staticRenderFns,
|
|
46836
|
+
false,
|
|
46837
|
+
null,
|
|
46838
|
+
null,
|
|
46839
|
+
null
|
|
46840
|
+
|
|
46841
|
+
)
|
|
46842
|
+
|
|
46843
|
+
/* harmony default export */ var addLaneBelowButton = (addLaneBelowButton_component.exports);
|
|
46663
46844
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/pool/pool.vue?vue&type=script&lang=js&
|
|
46664
46845
|
|
|
46665
46846
|
|
|
@@ -46774,6 +46955,26 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
46774
46955
|
pull_default()(this.containingProcess.get('flowElements'), elementDefinition);
|
|
46775
46956
|
toPool.component.containingProcess.get('flowElements').push(elementDefinition);
|
|
46776
46957
|
},
|
|
46958
|
+
moveElementRemote: function moveElementRemote(element, toPool) {
|
|
46959
|
+
var elementDefinition = element.component.node.definition;
|
|
46960
|
+
if (this.laneSet) {
|
|
46961
|
+
/* Remove references to the element from the current Lane */
|
|
46962
|
+
var containingLane = this.laneSet.get('lanes').find(function (lane) {
|
|
46963
|
+
return lane.get('flowNodeRef').includes(elementDefinition);
|
|
46964
|
+
});
|
|
46965
|
+
pull_default()(containingLane.get('flowNodeRef'), elementDefinition);
|
|
46966
|
+
}
|
|
46967
|
+
|
|
46968
|
+
/* Remove references to the element from the current process */
|
|
46969
|
+
pull_default()(this.containingProcess.get('flowElements'), elementDefinition);
|
|
46970
|
+
element.component.node.pool = toPool;
|
|
46971
|
+
this.shape.unembed(element);
|
|
46972
|
+
toPool.component.shape.embed(element);
|
|
46973
|
+
if (element.component.node.type !== poolLane_config_id && toPool.component.laneSet) {
|
|
46974
|
+
toPool.component.updateLaneChildren();
|
|
46975
|
+
}
|
|
46976
|
+
this.$emit('set-shape-stacking', element.component.shape);
|
|
46977
|
+
},
|
|
46777
46978
|
moveElement: function moveElement(element, toPool) {
|
|
46778
46979
|
var elementDefinition = element.component.node.definition;
|
|
46779
46980
|
if (this.laneSet) {
|
|
@@ -46793,12 +46994,14 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
46793
46994
|
toPool.component.addToPool(element);
|
|
46794
46995
|
},
|
|
46795
46996
|
addLane: function addLane() {
|
|
46796
|
-
var
|
|
46997
|
+
var _arguments = arguments,
|
|
46998
|
+
_this3 = this;
|
|
46797
46999
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
46798
|
-
var lanes, definition;
|
|
47000
|
+
var emitMultiplayer, lanes, definition;
|
|
46799
47001
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
46800
47002
|
while (1) switch (_context.prev = _context.next) {
|
|
46801
47003
|
case 0:
|
|
47004
|
+
emitMultiplayer = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : true;
|
|
46802
47005
|
/* A Lane element must be contained in a LaneSet element.
|
|
46803
47006
|
* Get the current laneSet element or create a new one. */
|
|
46804
47007
|
lanes = [];
|
|
@@ -46814,39 +47017,60 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
46814
47017
|
lanes.push(_this3.pushNewLane(definition));
|
|
46815
47018
|
}
|
|
46816
47019
|
lanes.push(_this3.pushNewLane());
|
|
46817
|
-
_context.next =
|
|
46818
|
-
return Promise.all(lanes)
|
|
46819
|
-
|
|
47020
|
+
_context.next = 6;
|
|
47021
|
+
return Promise.all(lanes).then(function (val) {
|
|
47022
|
+
if (emitMultiplayer && _this3.$parent.isMultiplayer) {
|
|
47023
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-addLanes', val);
|
|
47024
|
+
}
|
|
47025
|
+
});
|
|
47026
|
+
case 6:
|
|
46820
47027
|
_this3.$emit('set-shape-stacking', _this3.shape);
|
|
46821
47028
|
_this3.graph.getLinks().forEach(function (link) {
|
|
46822
47029
|
_this3.$emit('set-shape-stacking', link);
|
|
46823
47030
|
});
|
|
46824
47031
|
_this3.$emit('save-state');
|
|
46825
|
-
case
|
|
47032
|
+
case 9:
|
|
46826
47033
|
case "end":
|
|
46827
47034
|
return _context.stop();
|
|
46828
47035
|
}
|
|
46829
47036
|
}, _callee);
|
|
46830
47037
|
}))();
|
|
46831
47038
|
},
|
|
46832
|
-
createLaneSet: function createLaneSet() {
|
|
47039
|
+
createLaneSet: function createLaneSet(id) {
|
|
46833
47040
|
var laneSet = this.moddle.create('bpmn:LaneSet');
|
|
46834
47041
|
this.laneSet = laneSet;
|
|
46835
47042
|
var generator = this.nodeIdGenerator;
|
|
46836
|
-
var
|
|
46837
|
-
|
|
46838
|
-
laneSetId =
|
|
47043
|
+
var _ref2 = id !== null && id !== void 0 ? id : generator.generate(),
|
|
47044
|
+
_ref3 = _slicedToArray(_ref2, 1),
|
|
47045
|
+
laneSetId = _ref3[0];
|
|
46839
47046
|
this.laneSet.set('id', laneSetId);
|
|
46840
47047
|
this.containingProcess.get('laneSets').push(laneSet);
|
|
46841
47048
|
},
|
|
46842
47049
|
pushNewLane: function pushNewLane() {
|
|
46843
|
-
var
|
|
46844
|
-
|
|
46845
|
-
|
|
46846
|
-
|
|
46847
|
-
|
|
46848
|
-
|
|
46849
|
-
|
|
47050
|
+
var _arguments2 = arguments,
|
|
47051
|
+
_this4 = this;
|
|
47052
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
47053
|
+
var definition, diagram, node;
|
|
47054
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
47055
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
47056
|
+
case 0:
|
|
47057
|
+
definition = _arguments2.length > 0 && _arguments2[0] !== undefined ? _arguments2[0] : nodes_poolLane.definition(_this4.moddle, _this4.$t);
|
|
47058
|
+
definition.set('color', _this4.node.definition.get('color'));
|
|
47059
|
+
_this4.$emit('set-pool-target', _this4.shape);
|
|
47060
|
+
diagram = nodes_poolLane.diagram(_this4.moddle);
|
|
47061
|
+
diagram.bounds.width = _this4.shape.getBBox().width;
|
|
47062
|
+
node = new Node(nodes_poolLane.id, definition, diagram);
|
|
47063
|
+
_this4.$emit('add-node', node);
|
|
47064
|
+
_context2.next = 9;
|
|
47065
|
+
return _this4.$nextTick();
|
|
47066
|
+
case 9:
|
|
47067
|
+
return _context2.abrupt("return", node);
|
|
47068
|
+
case 10:
|
|
47069
|
+
case "end":
|
|
47070
|
+
return _context2.stop();
|
|
47071
|
+
}
|
|
47072
|
+
}, _callee2);
|
|
47073
|
+
}))();
|
|
46850
47074
|
},
|
|
46851
47075
|
addToPool: function addToPool(element) {
|
|
46852
47076
|
if (element.component.node.isBpmnType('bpmn:BoundaryEvent')) {
|
|
@@ -46999,11 +47223,11 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
46999
47223
|
});
|
|
47000
47224
|
},
|
|
47001
47225
|
resizeLanes: function resizeLanes() {
|
|
47002
|
-
var
|
|
47226
|
+
var _this5 = this;
|
|
47003
47227
|
this.sortedLanes().forEach(function (laneShape, index, lanes) {
|
|
47004
|
-
var
|
|
47005
|
-
width =
|
|
47006
|
-
height =
|
|
47228
|
+
var _this5$shape$get = _this5.shape.get('size'),
|
|
47229
|
+
width = _this5$shape$get.width,
|
|
47230
|
+
height = _this5$shape$get.height;
|
|
47007
47231
|
var _laneShape$get = laneShape.get('size'),
|
|
47008
47232
|
laneHeight = _laneShape$get.height;
|
|
47009
47233
|
var _laneShape$position = laneShape.position({
|
|
@@ -47033,17 +47257,17 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47033
47257
|
});
|
|
47034
47258
|
},
|
|
47035
47259
|
captureChildren: function captureChildren() {
|
|
47036
|
-
var
|
|
47037
|
-
this.graph.getElements().filter(function (
|
|
47038
|
-
var component =
|
|
47039
|
-
return component && component !==
|
|
47040
|
-
}).forEach(function (
|
|
47041
|
-
var component =
|
|
47260
|
+
var _this6 = this;
|
|
47261
|
+
this.graph.getElements().filter(function (_ref4) {
|
|
47262
|
+
var component = _ref4.component;
|
|
47263
|
+
return component && component !== _this6;
|
|
47264
|
+
}).forEach(function (_ref5) {
|
|
47265
|
+
var component = _ref5.component;
|
|
47042
47266
|
if (component.node.isBpmnType('bpmn:BoundaryEvent')) {
|
|
47043
47267
|
return;
|
|
47044
47268
|
}
|
|
47045
|
-
|
|
47046
|
-
component.node.pool =
|
|
47269
|
+
_this6.shape.embed(component.shape);
|
|
47270
|
+
component.node.pool = _this6.shape;
|
|
47047
47271
|
});
|
|
47048
47272
|
this.$emit('set-shape-stacking', this.shape);
|
|
47049
47273
|
this.resizePool(this.shape);
|
|
@@ -47058,7 +47282,7 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47058
47282
|
});
|
|
47059
47283
|
},
|
|
47060
47284
|
resizePool: function resizePool(pool) {
|
|
47061
|
-
var
|
|
47285
|
+
var _this7 = this;
|
|
47062
47286
|
this.fitEmbeds();
|
|
47063
47287
|
var _this$shape$get = this.shape.get('size'),
|
|
47064
47288
|
width = _this$shape$get.width,
|
|
@@ -47067,7 +47291,7 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47067
47291
|
this.shape.resize( /* Add labelWidth to ensure elements don't overlap with the pool label */
|
|
47068
47292
|
Math.max(width, bounds.width), Math.max(height, bounds.height));
|
|
47069
47293
|
this.shape.getEmbeddedCells().forEach(function (cell) {
|
|
47070
|
-
|
|
47294
|
+
_this7.expandToFitElement(cell, pool);
|
|
47071
47295
|
});
|
|
47072
47296
|
var _this$shape$position = this.shape.position(),
|
|
47073
47297
|
x = _this$shape$position.x,
|
|
@@ -47081,14 +47305,14 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47081
47305
|
this.node.diagram.bounds.height = newHeight;
|
|
47082
47306
|
},
|
|
47083
47307
|
updateLaneChildren: function updateLaneChildren() {
|
|
47084
|
-
var
|
|
47308
|
+
var _this8 = this;
|
|
47085
47309
|
/* Ensure elements in the pool are added to the lanes they are above */
|
|
47086
47310
|
|
|
47087
47311
|
var newLaneRefs = {};
|
|
47088
47312
|
this.shape.getEmbeddedCells().filter(function (element) {
|
|
47089
|
-
return elementShouldHaveFlowNodeRef(element) && element.component.node.pool ===
|
|
47313
|
+
return elementShouldHaveFlowNodeRef(element) && element.component.node.pool === _this8.shape;
|
|
47090
47314
|
}).forEach(function (element) {
|
|
47091
|
-
var lane =
|
|
47315
|
+
var lane = _this8.graph.findModelsUnderElement(element, {
|
|
47092
47316
|
searchBy: 'center'
|
|
47093
47317
|
}).find(function (element) {
|
|
47094
47318
|
return element.component && element.component.node.type === poolLane_config_id;
|
|
@@ -47112,9 +47336,9 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47112
47336
|
return this.collaboration.get('participants').length > 0;
|
|
47113
47337
|
},
|
|
47114
47338
|
setPoolSize: function setPoolSize(pool) {
|
|
47115
|
-
var
|
|
47339
|
+
var _this9 = this;
|
|
47116
47340
|
pool.getEmbeddedCells().forEach(function (cell) {
|
|
47117
|
-
|
|
47341
|
+
_this9.expandToFitElement(cell, pool);
|
|
47118
47342
|
});
|
|
47119
47343
|
var _pool$position = pool.position(),
|
|
47120
47344
|
x = _pool$position.x,
|
|
@@ -47167,8 +47391,8 @@ function elementShouldHaveFlowNodeRef(element) {
|
|
|
47167
47391
|
;
|
|
47168
47392
|
var pool_component = normalizeComponent(
|
|
47169
47393
|
pool_poolvue_type_script_lang_js_,
|
|
47170
|
-
|
|
47171
|
-
|
|
47394
|
+
poolvue_type_template_id_fbed1670_render,
|
|
47395
|
+
poolvue_type_template_id_fbed1670_staticRenderFns,
|
|
47172
47396
|
false,
|
|
47173
47397
|
null,
|
|
47174
47398
|
null,
|
|
@@ -47451,10 +47675,10 @@ var ValidationStatus_component = normalizeComponent(
|
|
|
47451
47675
|
)
|
|
47452
47676
|
|
|
47453
47677
|
/* harmony default export */ var ValidationStatus = (ValidationStatus_component.exports);
|
|
47454
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Modeler.vue?vue&type=template&id=
|
|
47678
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Modeler.vue?vue&type=template&id=74d45ad8&
|
|
47455
47679
|
|
|
47456
47680
|
|
|
47457
|
-
var
|
|
47681
|
+
var Modelervue_type_template_id_74d45ad8_render = function render() {
|
|
47458
47682
|
var _vm = this,
|
|
47459
47683
|
_c = _vm._self._c;
|
|
47460
47684
|
return _c('span', {
|
|
@@ -47673,9 +47897,9 @@ var Modelervue_type_template_id_7da49550_render = function render() {
|
|
|
47673
47897
|
}
|
|
47674
47898
|
}) : _vm._e()], 2)], 1);
|
|
47675
47899
|
};
|
|
47676
|
-
var
|
|
47900
|
+
var Modelervue_type_template_id_74d45ad8_staticRenderFns = [];
|
|
47677
47901
|
|
|
47678
|
-
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=
|
|
47902
|
+
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=74d45ad8&
|
|
47679
47903
|
|
|
47680
47904
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/boundaryEvent/boundaryEvent.vue?vue&type=template&id=2979ecac&
|
|
47681
47905
|
var boundaryEventvue_type_template_id_2979ecac_render = function render() {
|
|
@@ -48267,8 +48491,9 @@ external_vue_default().use(vuex_esm);
|
|
|
48267
48491
|
},
|
|
48268
48492
|
actions: {
|
|
48269
48493
|
getUserPinnedObjects: function getUserPinnedObjects(_ref) {
|
|
48494
|
+
var _window$ProcessMaker, _window$ProcessMaker$;
|
|
48270
48495
|
var commit = _ref.commit;
|
|
48271
|
-
if (
|
|
48496
|
+
if (((_window$ProcessMaker = window.ProcessMaker) === null || _window$ProcessMaker === void 0 ? void 0 : (_window$ProcessMaker$ = _window$ProcessMaker.user) === null || _window$ProcessMaker$ === void 0 ? void 0 : _window$ProcessMaker$.id) === 'standalone') {
|
|
48272
48497
|
// For standalone version of Modeler
|
|
48273
48498
|
var pinnedNodes = localStorage.pinnedNodes ? JSON.parse(localStorage.pinnedNodes) : [];
|
|
48274
48499
|
pinnedNodes.forEach(function (node) {
|
|
@@ -48288,11 +48513,12 @@ external_vue_default().use(vuex_esm);
|
|
|
48288
48513
|
});
|
|
48289
48514
|
},
|
|
48290
48515
|
addUserPinnedObject: function addUserPinnedObject(_ref3, pinnedNode) {
|
|
48516
|
+
var _window$ProcessMaker2, _window$ProcessMaker3;
|
|
48291
48517
|
var commit = _ref3.commit,
|
|
48292
48518
|
state = _ref3.state;
|
|
48293
48519
|
commit('setPinnedNodes', pinnedNode);
|
|
48294
48520
|
var pinnedNodes = state.pinnedNodeTypes;
|
|
48295
|
-
if (
|
|
48521
|
+
if (((_window$ProcessMaker2 = window.ProcessMaker) === null || _window$ProcessMaker2 === void 0 ? void 0 : (_window$ProcessMaker3 = _window$ProcessMaker2.user) === null || _window$ProcessMaker3 === void 0 ? void 0 : _window$ProcessMaker3.id) === 'standalone') {
|
|
48296
48522
|
// For standalone version of Modeler
|
|
48297
48523
|
localStorage.pinnedNodes = JSON.stringify(pinnedNodes);
|
|
48298
48524
|
return;
|
|
@@ -48306,11 +48532,12 @@ external_vue_default().use(vuex_esm);
|
|
|
48306
48532
|
});
|
|
48307
48533
|
},
|
|
48308
48534
|
removeUserPinnedObject: function removeUserPinnedObject(_ref4, nodeToUnpin) {
|
|
48535
|
+
var _window$ProcessMaker4, _window$ProcessMaker5;
|
|
48309
48536
|
var commit = _ref4.commit,
|
|
48310
48537
|
state = _ref4.state;
|
|
48311
48538
|
commit('setUnpinNode', nodeToUnpin);
|
|
48312
48539
|
var pinnedNodes = state.pinnedNodeTypes;
|
|
48313
|
-
if (
|
|
48540
|
+
if (((_window$ProcessMaker4 = window.ProcessMaker) === null || _window$ProcessMaker4 === void 0 ? void 0 : (_window$ProcessMaker5 = _window$ProcessMaker4.user) === null || _window$ProcessMaker5 === void 0 ? void 0 : _window$ProcessMaker5.id) === 'standalone') {
|
|
48314
48541
|
// For standalone version of Modeler
|
|
48315
48542
|
localStorage.pinnedNodes = JSON.stringify(pinnedNodes);
|
|
48316
48543
|
return;
|
|
@@ -51970,9 +52197,9 @@ var ValidatePanel_component = normalizeComponent(
|
|
|
51970
52197
|
|
|
51971
52198
|
|
|
51972
52199
|
|
|
51973
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=
|
|
52200
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=7a85ab32&
|
|
51974
52201
|
|
|
51975
|
-
var
|
|
52202
|
+
var MultiplayerViewUsersvue_type_template_id_7a85ab32_render = function render() {
|
|
51976
52203
|
var _vm = this,
|
|
51977
52204
|
_c = _vm._self._c;
|
|
51978
52205
|
return _c('b-avatar-group', {
|
|
@@ -51988,9 +52215,9 @@ var MultiplayerViewUsersvue_type_template_id_4e79eacd_render = function render()
|
|
|
51988
52215
|
})];
|
|
51989
52216
|
})], 2);
|
|
51990
52217
|
};
|
|
51991
|
-
var
|
|
52218
|
+
var MultiplayerViewUsersvue_type_template_id_7a85ab32_staticRenderFns = [];
|
|
51992
52219
|
|
|
51993
|
-
;// CONCATENATED MODULE: ./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=
|
|
52220
|
+
;// CONCATENATED MODULE: ./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=7a85ab32&
|
|
51994
52221
|
|
|
51995
52222
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/topRail/multiplayerViewUsers/avatar/Avatar.vue?vue&type=template&id=1c50a604&scoped=true&
|
|
51996
52223
|
var Avatarvue_type_template_id_1c50a604_scoped_true_render = function render() {
|
|
@@ -52183,7 +52410,8 @@ var Avatar_component = normalizeComponent(
|
|
|
52183
52410
|
filteredPlayers: function filteredPlayers() {
|
|
52184
52411
|
var allPlayers = (0,external_lodash_.uniqBy)(this.players, 'name');
|
|
52185
52412
|
return allPlayers.filter(function (player) {
|
|
52186
|
-
|
|
52413
|
+
var _window$ProcessMaker$;
|
|
52414
|
+
return player.name.toLowerCase() !== ((_window$ProcessMaker$ = window.ProcessMaker.user) === null || _window$ProcessMaker$ === void 0 ? void 0 : _window$ProcessMaker$.fullName.toLowerCase());
|
|
52187
52415
|
});
|
|
52188
52416
|
}
|
|
52189
52417
|
}
|
|
@@ -52200,8 +52428,8 @@ var Avatar_component = normalizeComponent(
|
|
|
52200
52428
|
;
|
|
52201
52429
|
var MultiplayerViewUsers_component = normalizeComponent(
|
|
52202
52430
|
multiplayerViewUsers_MultiplayerViewUsersvue_type_script_lang_js_,
|
|
52203
|
-
|
|
52204
|
-
|
|
52431
|
+
MultiplayerViewUsersvue_type_template_id_7a85ab32_render,
|
|
52432
|
+
MultiplayerViewUsersvue_type_template_id_7a85ab32_staticRenderFns,
|
|
52205
52433
|
false,
|
|
52206
52434
|
null,
|
|
52207
52435
|
null,
|
|
@@ -52512,7 +52740,7 @@ var ToolBar_component = normalizeComponent(
|
|
|
52512
52740
|
|
|
52513
52741
|
function addNodeToProcess(node, targetProcess) {
|
|
52514
52742
|
var ignoredNodes = function ignoredNodes(node) {
|
|
52515
|
-
return node.isBpmnType('bpmn:MessageFlow',
|
|
52743
|
+
return node.isBpmnType('bpmn:MessageFlow', config_bpmnType, dataInputAssociation_config_bpmnType) || node.isType('processmaker-modeler-pool');
|
|
52516
52744
|
};
|
|
52517
52745
|
if (ignoredNodes(node)) {
|
|
52518
52746
|
return;
|
|
@@ -53225,7 +53453,7 @@ var validTasks = ['bpmn:ServiceTask', 'bpmn:ManualTask', 'bpmn:CallActivity', 'b
|
|
|
53225
53453
|
clonedDataOutputAssociations = [];
|
|
53226
53454
|
var nodes = this.highlightedNodes;
|
|
53227
53455
|
var selector = this.$refs.selector.$el;
|
|
53228
|
-
var flowNodeTypes = [sequenceFlow_id, poolLane_config_id,
|
|
53456
|
+
var flowNodeTypes = [sequenceFlow_id, poolLane_config_id, associationConfig_id, messageFlow_config_id, genericFlow_config_id];
|
|
53229
53457
|
var dataInputAssociationNodeTypes = [dataInputAssociation_config_id];
|
|
53230
53458
|
var dataOutputAssociationNodeTypes = [config_id];
|
|
53231
53459
|
if (typeof selector.getBoundingClientRect === 'function') {
|
|
@@ -54466,8 +54694,8 @@ var RailBottom_component = normalizeComponent(
|
|
|
54466
54694
|
)
|
|
54467
54695
|
|
|
54468
54696
|
/* harmony default export */ var RailBottom = (RailBottom_component.exports);
|
|
54469
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/genericFlow/genericFlow.vue?vue&type=template&id=
|
|
54470
|
-
var
|
|
54697
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/genericFlow/genericFlow.vue?vue&type=template&id=1a230de4&
|
|
54698
|
+
var genericFlowvue_type_template_id_1a230de4_render = function render() {
|
|
54471
54699
|
var _vm = this,
|
|
54472
54700
|
_c = _vm._self._c;
|
|
54473
54701
|
return _c('crown-config', _vm._g({
|
|
@@ -54486,7 +54714,7 @@ var genericFlowvue_type_template_id_22431668_render = function render() {
|
|
|
54486
54714
|
}
|
|
54487
54715
|
}, _vm.$listeners));
|
|
54488
54716
|
};
|
|
54489
|
-
var
|
|
54717
|
+
var genericFlowvue_type_template_id_1a230de4_staticRenderFns = [];
|
|
54490
54718
|
|
|
54491
54719
|
;// CONCATENATED MODULE: ./src/components/nodes/genericFlow/DataOutputAssociation.js
|
|
54492
54720
|
|
|
@@ -54513,7 +54741,7 @@ var DataOutputAssociation = /*#__PURE__*/function (_DataAssociation) {
|
|
|
54513
54741
|
value: function makeFlowNode(sourceShape, targetShape, waypoint) {
|
|
54514
54742
|
var _this = this;
|
|
54515
54743
|
var diagram = config_diagram(this.moddle);
|
|
54516
|
-
var dataOutputAssociation =
|
|
54744
|
+
var dataOutputAssociation = config_definition(this.moddle);
|
|
54517
54745
|
dataOutputAssociation.set('sourceRef', sourceShape.component.node.definition);
|
|
54518
54746
|
dataOutputAssociation.set('targetRef', targetShape.component.node.definition);
|
|
54519
54747
|
diagram.waypoint = waypoint.map(function (point) {
|
|
@@ -54655,16 +54883,6 @@ var BpmnFlows = [{
|
|
|
54655
54883
|
var flow = new bpmnFlow.factory(this.nodeRegistry, this.moddle, this.paper);
|
|
54656
54884
|
var genericLink = this.shape.findView(this.paper);
|
|
54657
54885
|
var waypoint = [genericLink.sourceAnchor.toJSON(), genericLink.targetAnchor.toJSON()];
|
|
54658
|
-
// Multiplayer hook
|
|
54659
|
-
if (this.$parent.isMultiplayer) {
|
|
54660
|
-
window.ProcessMaker.EventBus.$emit('multiplayer-addFlow', {
|
|
54661
|
-
type: bpmnFlow.type,
|
|
54662
|
-
id: "node_".concat(this.$parent.nodeIdGenerator.getDefinitionNumber()),
|
|
54663
|
-
sourceRefId: this.sourceNode.definition.id,
|
|
54664
|
-
targetRefId: this.targetNode.definition.id,
|
|
54665
|
-
waypoint: waypoint
|
|
54666
|
-
});
|
|
54667
|
-
}
|
|
54668
54886
|
this.$emit('replace-generic-flow', {
|
|
54669
54887
|
actualFlow: flow.makeFlowNode(this.sourceShape, this.target, waypoint),
|
|
54670
54888
|
genericFlow: this.node,
|
|
@@ -54703,8 +54921,8 @@ var BpmnFlows = [{
|
|
|
54703
54921
|
;
|
|
54704
54922
|
var genericFlow_component = normalizeComponent(
|
|
54705
54923
|
genericFlow_genericFlowvue_type_script_lang_js_,
|
|
54706
|
-
|
|
54707
|
-
|
|
54924
|
+
genericFlowvue_type_template_id_1a230de4_render,
|
|
54925
|
+
genericFlowvue_type_template_id_1a230de4_staticRenderFns,
|
|
54708
54926
|
false,
|
|
54709
54927
|
null,
|
|
54710
54928
|
null,
|
|
@@ -54713,8 +54931,8 @@ var genericFlow_component = normalizeComponent(
|
|
|
54713
54931
|
)
|
|
54714
54932
|
|
|
54715
54933
|
/* harmony default export */ var genericFlow = (genericFlow_component.exports);
|
|
54716
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Selection.vue?vue&type=template&id=
|
|
54717
|
-
var
|
|
54934
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Selection.vue?vue&type=template&id=68f84c00&scoped=true&
|
|
54935
|
+
var Selectionvue_type_template_id_68f84c00_scoped_true_render = function render() {
|
|
54718
54936
|
var _vm = this,
|
|
54719
54937
|
_c = _vm._self._c;
|
|
54720
54938
|
return _vm.showLasso && _vm.style ? _c('div', {
|
|
@@ -54744,7 +54962,7 @@ var Selectionvue_type_template_id_423da30e_scoped_true_render = function render(
|
|
|
54744
54962
|
}
|
|
54745
54963
|
}, _vm.$listeners))], 1) : _vm._e();
|
|
54746
54964
|
};
|
|
54747
|
-
var
|
|
54965
|
+
var Selectionvue_type_template_id_68f84c00_scoped_true_staticRenderFns = [];
|
|
54748
54966
|
|
|
54749
54967
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownMultiselect/crownMultiselect.vue?vue&type=template&id=bcd827ec&scoped=true&
|
|
54750
54968
|
|
|
@@ -56111,7 +56329,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56111
56329
|
* Filter the selected elements
|
|
56112
56330
|
*/
|
|
56113
56331
|
filterSelected: function filterSelected() {
|
|
56114
|
-
var flowTypes = [sequenceFlow_id, config_id, dataInputAssociation_config_id,
|
|
56332
|
+
var flowTypes = [sequenceFlow_id, config_id, dataInputAssociation_config_id, associationConfig_id, messageFlow_config_id];
|
|
56115
56333
|
// Get the selected pools IDs
|
|
56116
56334
|
var selectedPoolsIds = this.selected.filter(function (shape) {
|
|
56117
56335
|
return shape.model.component;
|
|
@@ -56251,7 +56469,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56251
56469
|
_this5.overPoolStopDrag();
|
|
56252
56470
|
_this5.updateSelectionBox();
|
|
56253
56471
|
if (_this5.isMultiplayer) {
|
|
56254
|
-
window.ProcessMaker.EventBus.$emit('multiplayer-updateNodes', _this5.getProperties());
|
|
56472
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-updateNodes', _this5.getProperties(_this5.selected));
|
|
56255
56473
|
}
|
|
56256
56474
|
case 9:
|
|
56257
56475
|
case "end":
|
|
@@ -56260,17 +56478,46 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56260
56478
|
}, _callee3);
|
|
56261
56479
|
}))();
|
|
56262
56480
|
},
|
|
56263
|
-
getProperties: function getProperties() {
|
|
56481
|
+
getProperties: function getProperties(shapes) {
|
|
56482
|
+
var _this6 = this;
|
|
56264
56483
|
var changed = [];
|
|
56265
56484
|
var shapesToNotTranslate = ['PoolLane', 'standard.Link', 'processmaker.components.nodes.boundaryEvent.Shape'];
|
|
56266
|
-
|
|
56485
|
+
shapes.filter(function (shape) {
|
|
56267
56486
|
return !shapesToNotTranslate.includes(shape.model.get('type'));
|
|
56268
56487
|
}).forEach(function (shape) {
|
|
56488
|
+
if (shape.model.get('type') === 'processmaker.modeler.bpmn.pool') {
|
|
56489
|
+
var children = shape.model.component.getElementsUnderArea(shape.model, _this6.graph);
|
|
56490
|
+
changed = [].concat(_toConsumableArray(changed), _toConsumableArray(_this6.getContainerProperties(children, changed)));
|
|
56491
|
+
} else {
|
|
56492
|
+
var _node$pool;
|
|
56493
|
+
var node = shape.model.component.node;
|
|
56494
|
+
var defaultData = {
|
|
56495
|
+
id: node.definition.id,
|
|
56496
|
+
properties: {
|
|
56497
|
+
x: shape.model.get('position').x,
|
|
56498
|
+
y: shape.model.get('position').y,
|
|
56499
|
+
height: shape.model.get('size').height,
|
|
56500
|
+
width: shape.model.get('size').width
|
|
56501
|
+
}
|
|
56502
|
+
};
|
|
56503
|
+
if (node !== null && node !== void 0 && (_node$pool = node.pool) !== null && _node$pool !== void 0 && _node$pool.component) {
|
|
56504
|
+
defaultData['poolId'] = node.pool.component.id;
|
|
56505
|
+
}
|
|
56506
|
+
changed.push(defaultData);
|
|
56507
|
+
}
|
|
56508
|
+
});
|
|
56509
|
+
return changed;
|
|
56510
|
+
},
|
|
56511
|
+
getContainerProperties: function getContainerProperties(children) {
|
|
56512
|
+
var changed = [];
|
|
56513
|
+
children.forEach(function (model) {
|
|
56269
56514
|
changed.push({
|
|
56270
|
-
id:
|
|
56515
|
+
id: model.component.node.definition.id,
|
|
56271
56516
|
properties: {
|
|
56272
|
-
|
|
56273
|
-
|
|
56517
|
+
x: model.get('position').x,
|
|
56518
|
+
y: model.get('position').y,
|
|
56519
|
+
height: model.get('size').height,
|
|
56520
|
+
width: model.get('size').width
|
|
56274
56521
|
}
|
|
56275
56522
|
});
|
|
56276
56523
|
});
|
|
@@ -56473,39 +56720,39 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56473
56720
|
* Stop dragging elements that are in a pool
|
|
56474
56721
|
*/
|
|
56475
56722
|
overPoolStopDrag: function overPoolStopDrag() {
|
|
56476
|
-
var
|
|
56723
|
+
var _this7 = this;
|
|
56477
56724
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
56478
56725
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
56479
56726
|
while (1) switch (_context4.prev = _context4.next) {
|
|
56480
56727
|
case 0:
|
|
56481
|
-
if (!
|
|
56728
|
+
if (!_this7.isNotPoolChilds(_this7.selected)) {
|
|
56482
56729
|
_context4.next = 4;
|
|
56483
56730
|
break;
|
|
56484
56731
|
}
|
|
56485
|
-
|
|
56486
|
-
|
|
56732
|
+
_this7.updateFlowsWaypoint();
|
|
56733
|
+
_this7.$emit('save-state');
|
|
56487
56734
|
return _context4.abrupt("return");
|
|
56488
56735
|
case 4:
|
|
56489
|
-
if (
|
|
56490
|
-
|
|
56491
|
-
if (
|
|
56492
|
-
|
|
56493
|
-
|
|
56736
|
+
if (_this7.isOutOfThePool) {
|
|
56737
|
+
_this7.rollbackSelection();
|
|
56738
|
+
if (_this7.invalidPool) {
|
|
56739
|
+
_this7.invalidPool.model.component.shape.attr('body/fill', poolColor);
|
|
56740
|
+
_this7.invalidPool = null;
|
|
56494
56741
|
}
|
|
56495
56742
|
} else {
|
|
56496
|
-
|
|
56497
|
-
if (
|
|
56743
|
+
_this7.updateFlowsWaypoint();
|
|
56744
|
+
if (_this7.newPool) {
|
|
56498
56745
|
/* Remove the shape from its current pool */
|
|
56499
|
-
|
|
56500
|
-
|
|
56501
|
-
|
|
56502
|
-
|
|
56503
|
-
|
|
56504
|
-
|
|
56746
|
+
_this7.moveElements(_this7.selected, _this7.oldPool, _this7.newPool);
|
|
56747
|
+
_this7.moveConectedLinks(_this7.conectedLinks, _this7.oldPool, _this7.newPool);
|
|
56748
|
+
_this7.newPool = null;
|
|
56749
|
+
_this7.oldPool = null;
|
|
56750
|
+
_this7.updateLaneChildren(_this7.selected);
|
|
56751
|
+
_this7.$emit('save-state');
|
|
56505
56752
|
} else {
|
|
56506
|
-
|
|
56507
|
-
|
|
56508
|
-
|
|
56753
|
+
_this7.expandToFitElement(_this7.selected);
|
|
56754
|
+
_this7.updateLaneChildren(_this7.selected);
|
|
56755
|
+
_this7.$emit('save-state');
|
|
56509
56756
|
}
|
|
56510
56757
|
}
|
|
56511
56758
|
case 5:
|
|
@@ -56519,35 +56766,35 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56519
56766
|
* Rollback drag an element outside it's pool parent
|
|
56520
56767
|
*/
|
|
56521
56768
|
rollbackSelection: function rollbackSelection() {
|
|
56522
|
-
var
|
|
56769
|
+
var _this8 = this;
|
|
56523
56770
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
56524
56771
|
var deltaX, deltaY, scale, shapesToNotTranslate;
|
|
56525
56772
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
56526
56773
|
while (1) switch (_context5.prev = _context5.next) {
|
|
56527
56774
|
case 0:
|
|
56528
|
-
deltaX =
|
|
56529
|
-
deltaY =
|
|
56530
|
-
|
|
56531
|
-
|
|
56532
|
-
scale =
|
|
56775
|
+
deltaX = _this8.initialPosition.left - _this8.left;
|
|
56776
|
+
deltaY = _this8.initialPosition.top - _this8.top;
|
|
56777
|
+
_this8.style.left = "".concat(_this8.initialPosition.left, "px");
|
|
56778
|
+
_this8.style.top = "".concat(_this8.initialPosition.top, "px");
|
|
56779
|
+
scale = _this8.paperManager.paper.scale();
|
|
56533
56780
|
shapesToNotTranslate = ['PoolLane', 'standard.Link', 'processmaker.components.nodes.boundaryEvent.Shape'];
|
|
56534
|
-
|
|
56781
|
+
_this8.selected.filter(function (shape) {
|
|
56535
56782
|
return !shapesToNotTranslate.includes(shape.model.get('type'));
|
|
56536
56783
|
}).forEach(function (shape) {
|
|
56537
56784
|
shape.model.translate(deltaX / scale.sx, deltaY / scale.sy);
|
|
56538
56785
|
});
|
|
56539
|
-
|
|
56786
|
+
_this8.isOutOfThePool = false;
|
|
56540
56787
|
_context5.next = 10;
|
|
56541
56788
|
return store.commit('allowSavingElementPosition');
|
|
56542
56789
|
case 10:
|
|
56543
|
-
|
|
56790
|
+
_this8.paperManager.setStateValid();
|
|
56544
56791
|
_context5.next = 13;
|
|
56545
|
-
return
|
|
56792
|
+
return _this8.$nextTick();
|
|
56546
56793
|
case 13:
|
|
56547
56794
|
_context5.next = 15;
|
|
56548
|
-
return
|
|
56795
|
+
return _this8.paperManager.awaitScheduledUpdates();
|
|
56549
56796
|
case 15:
|
|
56550
|
-
|
|
56797
|
+
_this8.updateSelectionBox(true);
|
|
56551
56798
|
case 16:
|
|
56552
56799
|
case "end":
|
|
56553
56800
|
return _context5.stop();
|
|
@@ -56659,9 +56906,9 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
56659
56906
|
});
|
|
56660
56907
|
;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=script&lang=js&
|
|
56661
56908
|
/* harmony default export */ var modeler_Selectionvue_type_script_lang_js_ = (Selectionvue_type_script_lang_js_);
|
|
56662
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Selection.vue?vue&type=style&index=0&id=
|
|
56663
|
-
var
|
|
56664
|
-
;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=style&index=0&id=
|
|
56909
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Selection.vue?vue&type=style&index=0&id=68f84c00&prod&scoped=true&lang=css&
|
|
56910
|
+
var Selectionvue_type_style_index_0_id_68f84c00_prod_scoped_true_lang_css_ = __webpack_require__(65659);
|
|
56911
|
+
;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=style&index=0&id=68f84c00&prod&scoped=true&lang=css&
|
|
56665
56912
|
|
|
56666
56913
|
;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue
|
|
56667
56914
|
|
|
@@ -56674,11 +56921,11 @@ var Selectionvue_type_style_index_0_id_423da30e_prod_scoped_true_lang_css_ = __w
|
|
|
56674
56921
|
|
|
56675
56922
|
var Selection_component = normalizeComponent(
|
|
56676
56923
|
modeler_Selectionvue_type_script_lang_js_,
|
|
56677
|
-
|
|
56678
|
-
|
|
56924
|
+
Selectionvue_type_template_id_68f84c00_scoped_true_render,
|
|
56925
|
+
Selectionvue_type_template_id_68f84c00_scoped_true_staticRenderFns,
|
|
56679
56926
|
false,
|
|
56680
56927
|
null,
|
|
56681
|
-
"
|
|
56928
|
+
"68f84c00",
|
|
56682
56929
|
null
|
|
56683
56930
|
|
|
56684
56931
|
)
|
|
@@ -75252,19 +75499,6 @@ var Room = /*#__PURE__*/function () {
|
|
|
75252
75499
|
|
|
75253
75500
|
|
|
75254
75501
|
|
|
75255
|
-
var multiplayer_BpmnFlows = [{
|
|
75256
|
-
type: 'processmaker-modeler-text-annotation',
|
|
75257
|
-
factory: DataOutputAssociation
|
|
75258
|
-
}, {
|
|
75259
|
-
type: 'processmaker-modeler-sequence-flow',
|
|
75260
|
-
factory: SequenceFlow
|
|
75261
|
-
}, {
|
|
75262
|
-
type: 'processmaker-modeler-message-flow',
|
|
75263
|
-
factory: MessageFlow
|
|
75264
|
-
}, {
|
|
75265
|
-
type: 'processmaker-modeler-data-input-association',
|
|
75266
|
-
factory: DataOutputAssociation
|
|
75267
|
-
}];
|
|
75268
75502
|
var _nodeIdGenerator = /*#__PURE__*/new WeakMap();
|
|
75269
75503
|
var Multiplayer = /*#__PURE__*/function () {
|
|
75270
75504
|
function Multiplayer(modeler) {
|
|
@@ -75289,22 +75523,25 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75289
75523
|
_createClass(Multiplayer, [{
|
|
75290
75524
|
key: "init",
|
|
75291
75525
|
value: function init() {
|
|
75292
|
-
var
|
|
75526
|
+
var _window$ProcessMaker$,
|
|
75527
|
+
_this = this;
|
|
75293
75528
|
// Get the node id generator
|
|
75294
75529
|
_classPrivateFieldSet(this, _nodeIdGenerator, getNodeIdGenerator(this.modeler.definitions));
|
|
75295
75530
|
// Get the room name from the process id
|
|
75296
|
-
|
|
75531
|
+
var processId = (_window$ProcessMaker$ = window.ProcessMaker.modeler.process.uuid) !== null && _window$ProcessMaker$ !== void 0 ? _window$ProcessMaker$ : window.ProcessMaker.modeler.process.id;
|
|
75532
|
+
this.room = new Room("room-".concat(processId));
|
|
75297
75533
|
|
|
75298
75534
|
// Connect to websocket server
|
|
75299
75535
|
this.clientIO = esm_lookup(window.ProcessMaker.multiplayer.host, {
|
|
75300
75536
|
transports: ['websocket', 'polling']
|
|
75301
75537
|
});
|
|
75302
75538
|
this.clientIO.on('connect', function () {
|
|
75539
|
+
var _window$ProcessMaker$2, _window$ProcessMaker$3;
|
|
75303
75540
|
// Join the room
|
|
75304
75541
|
_this.clientIO.emit('joinRoom', {
|
|
75305
75542
|
roomName: _this.room.getRoom(),
|
|
75306
|
-
clientName: window.ProcessMaker.user.fullName,
|
|
75307
|
-
clientAvatar: window.ProcessMaker.user.avatar
|
|
75543
|
+
clientName: (_window$ProcessMaker$2 = window.ProcessMaker.user) === null || _window$ProcessMaker$2 === void 0 ? void 0 : _window$ProcessMaker$2.fullName,
|
|
75544
|
+
clientAvatar: (_window$ProcessMaker$3 = window.ProcessMaker.user) === null || _window$ProcessMaker$3 === void 0 ? void 0 : _window$ProcessMaker$3.avatar
|
|
75308
75545
|
});
|
|
75309
75546
|
});
|
|
75310
75547
|
this.clientIO.on('clientJoined', function (payload) {
|
|
@@ -75398,14 +75635,14 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75398
75635
|
window.ProcessMaker.EventBus.$on('multiplayer-addFlow', function (data) {
|
|
75399
75636
|
_this.addFlow(data);
|
|
75400
75637
|
});
|
|
75638
|
+
window.ProcessMaker.EventBus.$on('multiplayer-addLanes', function (lanes) {
|
|
75639
|
+
_this.addLaneNodes(lanes);
|
|
75640
|
+
});
|
|
75401
75641
|
}
|
|
75402
75642
|
}, {
|
|
75403
75643
|
key: "addNode",
|
|
75404
75644
|
value: function addNode(data) {
|
|
75405
|
-
// Add the new element to the process
|
|
75406
|
-
this.createShape(data);
|
|
75407
75645
|
// Add the new element to the shared array
|
|
75408
|
-
// this.yArray.push([data]);
|
|
75409
75646
|
var yMapNested = new YMap();
|
|
75410
75647
|
this.doTransact(yMapNested, data);
|
|
75411
75648
|
this.yArray.push([yMapNested]);
|
|
@@ -75417,21 +75654,20 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75417
75654
|
}, {
|
|
75418
75655
|
key: "createShape",
|
|
75419
75656
|
value: function createShape(value) {
|
|
75420
|
-
this.modeler.
|
|
75657
|
+
if (this.modeler.nodeRegistry[value.type] && this.modeler.nodeRegistry[value.type].multiplayerClient) {
|
|
75658
|
+
this.modeler.nodeRegistry[value.type].multiplayerClient(this.modeler, value);
|
|
75659
|
+
} else {
|
|
75660
|
+
this.modeler.addRemoteNode(value);
|
|
75661
|
+
}
|
|
75421
75662
|
_classPrivateFieldGet(this, _nodeIdGenerator).updateCounters();
|
|
75422
75663
|
}
|
|
75423
75664
|
}, {
|
|
75424
75665
|
key: "createRemoteShape",
|
|
75425
75666
|
value: function createRemoteShape(changes) {
|
|
75426
75667
|
var _this2 = this;
|
|
75427
|
-
var flows = ['processmaker-modeler-sequence-flow', 'processmaker-modeler-text-annotation', 'processmaker-modeler-message-flow', 'processmaker-modeler-data-input-association'];
|
|
75428
75668
|
return new Promise(function (resolve) {
|
|
75429
75669
|
changes.map(function (data) {
|
|
75430
|
-
|
|
75431
|
-
_this2.createFlow(data);
|
|
75432
|
-
} else {
|
|
75433
|
-
_this2.createShape(data);
|
|
75434
|
-
}
|
|
75670
|
+
_this2.createShape(data);
|
|
75435
75671
|
});
|
|
75436
75672
|
resolve();
|
|
75437
75673
|
});
|
|
@@ -75440,18 +75676,20 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75440
75676
|
key: "removeNode",
|
|
75441
75677
|
value: function removeNode(data) {
|
|
75442
75678
|
var index = this.getIndex(data.definition.id);
|
|
75443
|
-
|
|
75444
|
-
|
|
75445
|
-
|
|
75446
|
-
|
|
75447
|
-
|
|
75448
|
-
|
|
75449
|
-
|
|
75679
|
+
if (index >= 0) {
|
|
75680
|
+
this.removeShape(data);
|
|
75681
|
+
this.yArray.delete(index, 1); // delete one element
|
|
75682
|
+
// Encode the state as an update and send it to the server
|
|
75683
|
+
var stateUpdate = encodeStateAsUpdate(this.yDoc);
|
|
75684
|
+
// Send the update to the web socket server
|
|
75685
|
+
this.clientIO.emit('removeElement', stateUpdate);
|
|
75686
|
+
}
|
|
75450
75687
|
}
|
|
75451
75688
|
}, {
|
|
75452
75689
|
key: "getIndex",
|
|
75453
75690
|
value: function getIndex(id) {
|
|
75454
75691
|
var index = -1;
|
|
75692
|
+
var found = false;
|
|
75455
75693
|
var _iterator = _createForOfIteratorHelper(this.yArray),
|
|
75456
75694
|
_step;
|
|
75457
75695
|
try {
|
|
@@ -75459,6 +75697,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75459
75697
|
var value = _step.value;
|
|
75460
75698
|
index++;
|
|
75461
75699
|
if (value.get('id') === id) {
|
|
75700
|
+
found = true;
|
|
75462
75701
|
break;
|
|
75463
75702
|
}
|
|
75464
75703
|
}
|
|
@@ -75467,7 +75706,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75467
75706
|
} finally {
|
|
75468
75707
|
_iterator.f();
|
|
75469
75708
|
}
|
|
75470
|
-
return index;
|
|
75709
|
+
return found ? index : -1;
|
|
75471
75710
|
}
|
|
75472
75711
|
}, {
|
|
75473
75712
|
key: "getNodeById",
|
|
@@ -75498,7 +75737,10 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75498
75737
|
data.forEach(function (value) {
|
|
75499
75738
|
var index = _this3.getIndex(value.id);
|
|
75500
75739
|
var nodeToUpdate = _this3.yArray.get(index);
|
|
75501
|
-
|
|
75740
|
+
var updateData = value.poolId ? _objectSpread2(_objectSpread2({}, value.properties), {
|
|
75741
|
+
poolId: value.poolId
|
|
75742
|
+
}) : value.properties;
|
|
75743
|
+
_this3.doTransact(nodeToUpdate, updateData);
|
|
75502
75744
|
});
|
|
75503
75745
|
}
|
|
75504
75746
|
}, {
|
|
@@ -75509,13 +75751,11 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75509
75751
|
var nodeToUpdate = this.yArray.get(index);
|
|
75510
75752
|
// Update the node id in the nodeData
|
|
75511
75753
|
nodeData.id = "node_".concat(_classPrivateFieldGet(this, _nodeIdGenerator).getDefinitionNumber());
|
|
75512
|
-
// Replace the node in the process
|
|
75513
|
-
this.modeler.replaceNodeProcedure(nodeData, true);
|
|
75514
75754
|
// Update the node id generator
|
|
75515
75755
|
_classPrivateFieldGet(this, _nodeIdGenerator).updateCounters();
|
|
75516
75756
|
// Update the node in the shared array
|
|
75517
75757
|
this.yDoc.transact(function () {
|
|
75518
|
-
nodeToUpdate.set('
|
|
75758
|
+
nodeToUpdate.set('type', newControl);
|
|
75519
75759
|
nodeToUpdate.set('id', nodeData.id);
|
|
75520
75760
|
});
|
|
75521
75761
|
|
|
@@ -75529,14 +75769,17 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75529
75769
|
}, {
|
|
75530
75770
|
key: "replaceShape",
|
|
75531
75771
|
value: function replaceShape(updatedNode) {
|
|
75772
|
+
var _this$modeler$paper$l = this.modeler.paper.localToClientPoint(updatedNode),
|
|
75773
|
+
clientX = _this$modeler$paper$l.x,
|
|
75774
|
+
clientY = _this$modeler$paper$l.y;
|
|
75532
75775
|
// Get the node to update
|
|
75533
75776
|
var node = this.getNodeById(updatedNode.oldNodeId);
|
|
75534
75777
|
// Update the node id in the nodeData
|
|
75535
75778
|
var nodeData = {
|
|
75536
|
-
clientX:
|
|
75537
|
-
clientY:
|
|
75779
|
+
clientX: clientX,
|
|
75780
|
+
clientY: clientY,
|
|
75538
75781
|
control: {
|
|
75539
|
-
type: updatedNode.
|
|
75782
|
+
type: updatedNode.type
|
|
75540
75783
|
},
|
|
75541
75784
|
nodeThatWillBeReplaced: node,
|
|
75542
75785
|
id: updatedNode.id
|
|
@@ -75567,37 +75810,85 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75567
75810
|
}
|
|
75568
75811
|
}, {
|
|
75569
75812
|
key: "updateShapes",
|
|
75570
|
-
value: function
|
|
75571
|
-
var
|
|
75572
|
-
|
|
75573
|
-
|
|
75574
|
-
|
|
75575
|
-
|
|
75576
|
-
|
|
75577
|
-
|
|
75578
|
-
|
|
75579
|
-
|
|
75580
|
-
|
|
75581
|
-
|
|
75582
|
-
|
|
75583
|
-
|
|
75584
|
-
|
|
75585
|
-
|
|
75586
|
-
|
|
75587
|
-
|
|
75588
|
-
|
|
75589
|
-
|
|
75590
|
-
|
|
75591
|
-
|
|
75813
|
+
value: function () {
|
|
75814
|
+
var _updateShapes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(data) {
|
|
75815
|
+
var _this4 = this;
|
|
75816
|
+
var paper, element, newPool, sourceElem, targetElem, waypoint, startWaypoint, endWaypoint, newWaypoint;
|
|
75817
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
75818
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
75819
|
+
case 0:
|
|
75820
|
+
paper = this.modeler.paper;
|
|
75821
|
+
element = this.modeler.getElementByNodeId(data.id);
|
|
75822
|
+
newPool = this.modeler.getElementByNodeId(data.poolId);
|
|
75823
|
+
if (!this.modeler.flowTypes.includes(data.type)) {
|
|
75824
|
+
_context2.next = 15;
|
|
75825
|
+
break;
|
|
75826
|
+
}
|
|
75827
|
+
// Update the element's waypoints
|
|
75828
|
+
// Get the source and target elements
|
|
75829
|
+
sourceElem = this.modeler.getElementByNodeId(data.sourceRefId);
|
|
75830
|
+
targetElem = this.modeler.getElementByNodeId(data.targetRefId);
|
|
75831
|
+
waypoint = data.waypoint;
|
|
75832
|
+
startWaypoint = waypoint.shift();
|
|
75833
|
+
endWaypoint = waypoint.pop(); // Update the element's waypoints
|
|
75834
|
+
newWaypoint = waypoint.map(function (point) {
|
|
75835
|
+
return _this4.modeler.moddle.create('dc:Point', point);
|
|
75836
|
+
});
|
|
75837
|
+
element.set('vertices', newWaypoint);
|
|
75838
|
+
|
|
75839
|
+
// Update the element's source anchor
|
|
75840
|
+
element.source(sourceElem, {
|
|
75841
|
+
anchor: function anchor() {
|
|
75842
|
+
return getDefaultAnchorPoint(_this4.getConnectionPoint(sourceElem, startWaypoint), sourceElem.findView(paper));
|
|
75843
|
+
},
|
|
75844
|
+
connectionPoint: {
|
|
75845
|
+
name: 'boundary'
|
|
75846
|
+
}
|
|
75847
|
+
});
|
|
75848
|
+
|
|
75849
|
+
// Update the element's target anchor
|
|
75850
|
+
element.target(targetElem, {
|
|
75851
|
+
anchor: function anchor() {
|
|
75852
|
+
return getDefaultAnchorPoint(_this4.getConnectionPoint(targetElem, endWaypoint), targetElem.findView(paper));
|
|
75853
|
+
},
|
|
75854
|
+
connectionPoint: {
|
|
75855
|
+
name: 'boundary'
|
|
75856
|
+
}
|
|
75857
|
+
});
|
|
75858
|
+
_context2.next = 24;
|
|
75859
|
+
break;
|
|
75860
|
+
case 15:
|
|
75861
|
+
// Update the element's position attribute
|
|
75862
|
+
element.resize( /* Add labelWidth to ensure elements don't overlap with the pool label */
|
|
75863
|
+
data.width, data.height);
|
|
75864
|
+
element.set('position', {
|
|
75865
|
+
x: data.x,
|
|
75866
|
+
y: data.y
|
|
75867
|
+
});
|
|
75868
|
+
// Trigger a rendering of the element on the paper
|
|
75869
|
+
_context2.next = 19;
|
|
75870
|
+
return paper.findViewByModel(element).update();
|
|
75871
|
+
case 19:
|
|
75872
|
+
_context2.next = 21;
|
|
75873
|
+
return element.component.$nextTick();
|
|
75874
|
+
case 21:
|
|
75875
|
+
_context2.next = 23;
|
|
75876
|
+
return this.modeler.paperManager.awaitScheduledUpdates();
|
|
75877
|
+
case 23:
|
|
75878
|
+
if (newPool && element.component.node.pool && element.component.node.pool.component.id !== data.poolId) {
|
|
75879
|
+
element.component.node.pool.component.moveElementRemote(element, newPool);
|
|
75880
|
+
}
|
|
75881
|
+
case 24:
|
|
75882
|
+
case "end":
|
|
75883
|
+
return _context2.stop();
|
|
75592
75884
|
}
|
|
75593
|
-
}
|
|
75594
|
-
}
|
|
75595
|
-
|
|
75596
|
-
|
|
75597
|
-
_iterator2.f();
|
|
75885
|
+
}, _callee2, this);
|
|
75886
|
+
}));
|
|
75887
|
+
function updateShapes(_x2) {
|
|
75888
|
+
return _updateShapes.apply(this, arguments);
|
|
75598
75889
|
}
|
|
75599
|
-
return
|
|
75600
|
-
}
|
|
75890
|
+
return updateShapes;
|
|
75891
|
+
}()
|
|
75601
75892
|
}, {
|
|
75602
75893
|
key: "addFlow",
|
|
75603
75894
|
value: function addFlow(data) {
|
|
@@ -75611,21 +75902,78 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75611
75902
|
_classPrivateFieldGet(this, _nodeIdGenerator).updateCounters();
|
|
75612
75903
|
}
|
|
75613
75904
|
}, {
|
|
75614
|
-
key: "
|
|
75615
|
-
value: function
|
|
75616
|
-
var
|
|
75617
|
-
var
|
|
75618
|
-
|
|
75619
|
-
|
|
75620
|
-
|
|
75621
|
-
|
|
75905
|
+
key: "addLaneNodes",
|
|
75906
|
+
value: function addLaneNodes(lanes) {
|
|
75907
|
+
var _this5 = this;
|
|
75908
|
+
var pool = this.getPool(lanes);
|
|
75909
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-updateNodes', [{
|
|
75910
|
+
id: pool.component.node.definition.id,
|
|
75911
|
+
properties: {
|
|
75912
|
+
x: pool.component.node.diagram.bounds.x,
|
|
75913
|
+
y: pool.component.node.diagram.bounds.y,
|
|
75914
|
+
height: pool.component.node.diagram.bounds.height,
|
|
75915
|
+
width: pool.component.node.diagram.bounds.width,
|
|
75916
|
+
isAddingLaneAbove: pool.isAddingLaneAbove
|
|
75917
|
+
}
|
|
75918
|
+
}]);
|
|
75919
|
+
this.yDoc.transact(function () {
|
|
75920
|
+
lanes.forEach(function (lane) {
|
|
75921
|
+
var yMapNested = new YMap();
|
|
75922
|
+
var data = _this5.prepareLaneData(lane);
|
|
75923
|
+
_this5.doTransact(yMapNested, data);
|
|
75924
|
+
_this5.yArray.push([yMapNested]);
|
|
75925
|
+
var stateUpdate = encodeStateAsUpdate(_this5.yDoc);
|
|
75926
|
+
_this5.clientIO.emit('createElement', stateUpdate);
|
|
75622
75927
|
});
|
|
75623
|
-
|
|
75624
|
-
|
|
75625
|
-
|
|
75626
|
-
|
|
75627
|
-
|
|
75928
|
+
});
|
|
75929
|
+
}
|
|
75930
|
+
}, {
|
|
75931
|
+
key: "prepareLaneData",
|
|
75932
|
+
value: function prepareLaneData(lane) {
|
|
75933
|
+
var data = {
|
|
75934
|
+
type: lane.type,
|
|
75935
|
+
id: lane.definition.id,
|
|
75936
|
+
name: lane.definition.name,
|
|
75937
|
+
x: lane.diagram.bounds.x,
|
|
75938
|
+
y: lane.diagram.bounds.y,
|
|
75939
|
+
width: lane.diagram.bounds.width,
|
|
75940
|
+
height: lane.diagram.bounds.height,
|
|
75941
|
+
poolId: lane.pool.component.node.definition.id,
|
|
75942
|
+
laneSetId: lane.pool.component.laneSet.id
|
|
75943
|
+
};
|
|
75944
|
+
return data;
|
|
75945
|
+
}
|
|
75946
|
+
}, {
|
|
75947
|
+
key: "getPool",
|
|
75948
|
+
value: function getPool(lanes) {
|
|
75949
|
+
if (lanes && lanes.length > 0) {
|
|
75950
|
+
return lanes[0].pool;
|
|
75628
75951
|
}
|
|
75952
|
+
return false;
|
|
75953
|
+
}
|
|
75954
|
+
}, {
|
|
75955
|
+
key: "getConnectionPoint",
|
|
75956
|
+
value: function getConnectionPoint(element, newPosition) {
|
|
75957
|
+
var _element$position = element.position(),
|
|
75958
|
+
elemX = _element$position.x,
|
|
75959
|
+
elemY = _element$position.y;
|
|
75960
|
+
var connectionOffset = {
|
|
75961
|
+
x: newPosition.x - elemX,
|
|
75962
|
+
y: newPosition.y - elemY
|
|
75963
|
+
};
|
|
75964
|
+
var _element$position2 = element.position(),
|
|
75965
|
+
x = _element$position2.x,
|
|
75966
|
+
y = _element$position2.y;
|
|
75967
|
+
var _element$size = element.size(),
|
|
75968
|
+
width = _element$size.width,
|
|
75969
|
+
height = _element$size.height;
|
|
75970
|
+
return connectionOffset ? {
|
|
75971
|
+
x: x + connectionOffset.x,
|
|
75972
|
+
y: y + connectionOffset.y
|
|
75973
|
+
} : {
|
|
75974
|
+
x: x + width / 2,
|
|
75975
|
+
y: y + height / 2
|
|
75976
|
+
};
|
|
75629
75977
|
}
|
|
75630
75978
|
}]);
|
|
75631
75979
|
return Multiplayer;
|
|
@@ -75820,7 +76168,8 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
75820
76168
|
inspectorButtonRight: 65,
|
|
75821
76169
|
previewConfigs: [],
|
|
75822
76170
|
multiplayer: null,
|
|
75823
|
-
isMultiplayer: false
|
|
76171
|
+
isMultiplayer: false,
|
|
76172
|
+
flowTypes: ['processmaker-modeler-sequence-flow', 'processmaker-modeler-message-flow', 'processmaker-modeler-data-input-association', 'processmaker-modeler-data-output-association', 'processmaker-modeler-association']
|
|
75824
76173
|
};
|
|
75825
76174
|
},
|
|
75826
76175
|
watch: {
|
|
@@ -76094,6 +76443,12 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
76094
76443
|
return _this4.paper.findViewByModel(shape);
|
|
76095
76444
|
});
|
|
76096
76445
|
},
|
|
76446
|
+
getElementByNodeId: function getElementByNodeId(id) {
|
|
76447
|
+
var cells = this.paper.model.getCells();
|
|
76448
|
+
return cells.find(function (cell) {
|
|
76449
|
+
return cell.component && cell.component.id === id;
|
|
76450
|
+
});
|
|
76451
|
+
},
|
|
76097
76452
|
close: function close() {
|
|
76098
76453
|
var _this5 = this;
|
|
76099
76454
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
@@ -76758,71 +77113,83 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
76758
77113
|
control: control
|
|
76759
77114
|
});
|
|
76760
77115
|
},
|
|
76761
|
-
|
|
76762
|
-
var
|
|
76763
|
-
clientY = data.clientY,
|
|
76764
|
-
control = data.control;
|
|
76765
|
-
if (this.isMultiplayer) {
|
|
76766
|
-
window.ProcessMaker.EventBus.$emit('multiplayer-addNode', {
|
|
76767
|
-
clientX: clientX,
|
|
76768
|
-
clientY: clientY,
|
|
76769
|
-
control: control,
|
|
76770
|
-
id: "node_".concat(this.nodeIdGenerator.getDefinitionNumber())
|
|
76771
|
-
});
|
|
76772
|
-
} else {
|
|
76773
|
-
this.handleDropProcedure(data);
|
|
76774
|
-
}
|
|
76775
|
-
},
|
|
76776
|
-
handleDropProcedure: function handleDropProcedure(data) {
|
|
76777
|
-
var _arguments4 = arguments,
|
|
76778
|
-
_this26 = this;
|
|
77116
|
+
addRemoteNode: function addRemoteNode(data) {
|
|
77117
|
+
var _this26 = this;
|
|
76779
77118
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
76780
|
-
var
|
|
77119
|
+
var definition, diagram, newNode;
|
|
76781
77120
|
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
76782
77121
|
while (1) switch (_context13.prev = _context13.next) {
|
|
76783
77122
|
case 0:
|
|
76784
|
-
|
|
76785
|
-
|
|
76786
|
-
|
|
77123
|
+
definition = _this26.nodeRegistry[data.type].definition(_this26.moddle, _this26.$t);
|
|
77124
|
+
diagram = _this26.nodeRegistry[data.type].diagram(_this26.moddle);
|
|
77125
|
+
diagram.bounds.x = data.x;
|
|
77126
|
+
diagram.bounds.y = data.y;
|
|
77127
|
+
newNode = _this26.createNode(data.type, definition, diagram);
|
|
77128
|
+
_context13.next = 7;
|
|
77129
|
+
return _this26.addNode(newNode, data.id, true);
|
|
77130
|
+
case 7:
|
|
77131
|
+
_context13.next = 9;
|
|
77132
|
+
return _this26.$nextTick();
|
|
77133
|
+
case 9:
|
|
77134
|
+
_context13.next = 11;
|
|
77135
|
+
return _this26.paperManager.awaitScheduledUpdates();
|
|
77136
|
+
case 11:
|
|
77137
|
+
if (_this26.autoValidate) {
|
|
77138
|
+
_this26.validateBpmnDiagram();
|
|
77139
|
+
}
|
|
77140
|
+
case 12:
|
|
77141
|
+
case "end":
|
|
77142
|
+
return _context13.stop();
|
|
77143
|
+
}
|
|
77144
|
+
}, _callee13);
|
|
77145
|
+
}))();
|
|
77146
|
+
},
|
|
77147
|
+
handleDrop: function handleDrop(data) {
|
|
77148
|
+
var _this27 = this;
|
|
77149
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
|
|
77150
|
+
var clientX, clientY, control, nodeThatWillBeReplaced, definition, diagram, _this27$paperManager$, x, y, newNode, nodeMigrator;
|
|
77151
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
77152
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
77153
|
+
case 0:
|
|
77154
|
+
clientX = data.clientX, clientY = data.clientY, control = data.control, nodeThatWillBeReplaced = data.nodeThatWillBeReplaced;
|
|
77155
|
+
_this27.validateDropTarget({
|
|
76787
77156
|
clientX: clientX,
|
|
76788
77157
|
clientY: clientY,
|
|
76789
77158
|
control: control
|
|
76790
77159
|
});
|
|
76791
|
-
if (
|
|
76792
|
-
|
|
77160
|
+
if (_this27.allowDrop) {
|
|
77161
|
+
_context14.next = 4;
|
|
76793
77162
|
break;
|
|
76794
77163
|
}
|
|
76795
|
-
return
|
|
76796
|
-
case
|
|
76797
|
-
definition =
|
|
76798
|
-
diagram =
|
|
76799
|
-
|
|
77164
|
+
return _context14.abrupt("return");
|
|
77165
|
+
case 4:
|
|
77166
|
+
definition = _this27.nodeRegistry[control.type].definition(_this27.moddle, _this27.$t);
|
|
77167
|
+
diagram = _this27.nodeRegistry[control.type].diagram(_this27.moddle);
|
|
77168
|
+
_this27$paperManager$ = _this27.paperManager.clientToGridPoint(clientX, clientY), x = _this27$paperManager$.x, y = _this27$paperManager$.y;
|
|
76800
77169
|
diagram.bounds.x = x;
|
|
76801
77170
|
diagram.bounds.y = y;
|
|
76802
|
-
newNode =
|
|
77171
|
+
newNode = _this27.createNode(control.type, definition, diagram);
|
|
76803
77172
|
if (newNode.isBpmnType('bpmn:BoundaryEvent')) {
|
|
76804
|
-
|
|
77173
|
+
_this27.setShapeCenterUnderCursor(diagram);
|
|
76805
77174
|
}
|
|
76806
|
-
|
|
76807
|
-
|
|
76808
|
-
|
|
76809
|
-
|
|
76810
|
-
return _this26.addNode(newNode, id, selected);
|
|
76811
|
-
case 15:
|
|
77175
|
+
_this27.highlightNode(newNode);
|
|
77176
|
+
_context14.next = 14;
|
|
77177
|
+
return _this27.addNode(newNode);
|
|
77178
|
+
case 14:
|
|
76812
77179
|
if (nodeThatWillBeReplaced) {
|
|
76813
|
-
|
|
77180
|
+
_context14.next = 16;
|
|
76814
77181
|
break;
|
|
76815
77182
|
}
|
|
76816
|
-
return
|
|
76817
|
-
case
|
|
76818
|
-
nodeMigrator = new NodeMigrator(nodeThatWillBeReplaced, definition,
|
|
77183
|
+
return _context14.abrupt("return");
|
|
77184
|
+
case 16:
|
|
77185
|
+
nodeMigrator = new NodeMigrator(nodeThatWillBeReplaced, definition, _this27.graph, newNode, _this27.processes, _this27.collaboration);
|
|
76819
77186
|
nodeMigrator.migrate();
|
|
76820
|
-
return
|
|
76821
|
-
case
|
|
77187
|
+
return _context14.abrupt("return", newNode);
|
|
77188
|
+
case 19:
|
|
76822
77189
|
case "end":
|
|
76823
|
-
return
|
|
77190
|
+
return _context14.stop();
|
|
76824
77191
|
}
|
|
76825
|
-
},
|
|
77192
|
+
}, _callee14);
|
|
76826
77193
|
}))();
|
|
76827
77194
|
},
|
|
76828
77195
|
setShapeCenterUnderCursor: function setShapeCenterUnderCursor(diagram) {
|
|
@@ -76830,236 +77197,282 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
76830
77197
|
diagram.bounds.y -= diagram.bounds.height / 2;
|
|
76831
77198
|
},
|
|
76832
77199
|
selectNewNode: function selectNewNode(node) {
|
|
76833
|
-
var
|
|
76834
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77200
|
+
var _this28 = this;
|
|
77201
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
|
|
76835
77202
|
var newNodeComponent, view;
|
|
76836
|
-
return _regeneratorRuntime().wrap(function
|
|
76837
|
-
while (1) switch (
|
|
77203
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
77204
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
76838
77205
|
case 0:
|
|
76839
|
-
|
|
76840
|
-
return
|
|
77206
|
+
_context15.next = 2;
|
|
77207
|
+
return _this28.$nextTick();
|
|
76841
77208
|
case 2:
|
|
76842
|
-
|
|
76843
|
-
return
|
|
77209
|
+
_context15.next = 4;
|
|
77210
|
+
return _this28.paperManager.awaitScheduledUpdates();
|
|
76844
77211
|
case 4:
|
|
76845
|
-
newNodeComponent =
|
|
77212
|
+
newNodeComponent = _this28.$refs.nodeComponent.find(function (component) {
|
|
76846
77213
|
return component.node === node;
|
|
76847
77214
|
});
|
|
76848
77215
|
view = newNodeComponent.shapeView;
|
|
76849
|
-
|
|
76850
|
-
return
|
|
77216
|
+
_context15.next = 8;
|
|
77217
|
+
return _this28.$refs.selector.selectElement(view);
|
|
76851
77218
|
case 8:
|
|
76852
77219
|
case "end":
|
|
76853
|
-
return
|
|
77220
|
+
return _context15.stop();
|
|
76854
77221
|
}
|
|
76855
|
-
},
|
|
77222
|
+
}, _callee15);
|
|
76856
77223
|
}))();
|
|
76857
77224
|
},
|
|
77225
|
+
multiplayerHook: function multiplayerHook(node, fromClient) {
|
|
77226
|
+
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'];
|
|
77227
|
+
if (!this.isMultiplayer) {
|
|
77228
|
+
return;
|
|
77229
|
+
}
|
|
77230
|
+
if (!fromClient) {
|
|
77231
|
+
if (!blackList.includes(node.type) && !this.flowTypes.includes(node.type)) {
|
|
77232
|
+
var _node$pool;
|
|
77233
|
+
var defaultData = {
|
|
77234
|
+
x: node.diagram.bounds.x,
|
|
77235
|
+
y: node.diagram.bounds.y,
|
|
77236
|
+
height: node.diagram.bounds.height,
|
|
77237
|
+
width: node.diagram.bounds.width,
|
|
77238
|
+
type: node.type,
|
|
77239
|
+
id: node.definition.id,
|
|
77240
|
+
isAddingLaneAbove: true
|
|
77241
|
+
};
|
|
77242
|
+
if (node !== null && node !== void 0 && (_node$pool = node.pool) !== null && _node$pool !== void 0 && _node$pool.component) {
|
|
77243
|
+
defaultData['poolId'] = node.pool.component.id;
|
|
77244
|
+
}
|
|
77245
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-addNode', defaultData);
|
|
77246
|
+
}
|
|
77247
|
+
if (this.flowTypes.includes(node.type)) {
|
|
77248
|
+
var _node$definition$sour, _node$definition$targ;
|
|
77249
|
+
var sourceRefId = (_node$definition$sour = node.definition.sourceRef) === null || _node$definition$sour === void 0 ? void 0 : _node$definition$sour.id;
|
|
77250
|
+
var targetRefId = (_node$definition$targ = node.definition.targetRef) === null || _node$definition$targ === void 0 ? void 0 : _node$definition$targ.id;
|
|
77251
|
+
if (node.type === 'processmaker-modeler-data-input-association') {
|
|
77252
|
+
var _node$definition$sour2, _node$definition$targ2, _node$definition$targ3;
|
|
77253
|
+
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);
|
|
77254
|
+
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');
|
|
77255
|
+
}
|
|
77256
|
+
if (sourceRefId && targetRefId) {
|
|
77257
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-addFlow', {
|
|
77258
|
+
id: node.definition.id,
|
|
77259
|
+
type: node.type,
|
|
77260
|
+
sourceRefId: sourceRefId,
|
|
77261
|
+
targetRefId: targetRefId,
|
|
77262
|
+
waypoint: node.diagram.waypoint
|
|
77263
|
+
});
|
|
77264
|
+
}
|
|
77265
|
+
}
|
|
77266
|
+
}
|
|
77267
|
+
},
|
|
76858
77268
|
addNode: function addNode(node) {
|
|
76859
|
-
var
|
|
76860
|
-
|
|
76861
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
76862
|
-
var id,
|
|
76863
|
-
return _regeneratorRuntime().wrap(function
|
|
76864
|
-
while (1) switch (
|
|
77269
|
+
var _arguments4 = arguments,
|
|
77270
|
+
_this29 = this;
|
|
77271
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
|
|
77272
|
+
var id, fromClient, targetProcess;
|
|
77273
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
77274
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
76865
77275
|
case 0:
|
|
76866
|
-
id =
|
|
76867
|
-
|
|
77276
|
+
id = _arguments4.length > 1 && _arguments4[1] !== undefined ? _arguments4[1] : null;
|
|
77277
|
+
fromClient = _arguments4.length > 2 && _arguments4[2] !== undefined ? _arguments4[2] : false;
|
|
76868
77278
|
if (!node.pool) {
|
|
76869
|
-
node.pool =
|
|
77279
|
+
node.pool = _this29.poolTarget;
|
|
76870
77280
|
}
|
|
76871
|
-
targetProcess = node.getTargetProcess(
|
|
77281
|
+
targetProcess = node.getTargetProcess(_this29.processes, _this29.processNode);
|
|
76872
77282
|
addNodeToProcess(node, targetProcess);
|
|
76873
|
-
node.setIds(
|
|
76874
|
-
|
|
77283
|
+
node.setIds(_this29.nodeIdGenerator, id);
|
|
77284
|
+
_this29.planeElements.push(node.diagram);
|
|
77285
|
+
// add multiplayer logic as a hook
|
|
77286
|
+
_this29.multiplayerHook(node, fromClient);
|
|
76875
77287
|
store.commit('addNode', node);
|
|
76876
|
-
|
|
77288
|
+
_this29.poolTarget = null;
|
|
76877
77289
|
|
|
76878
77290
|
// add processmaker-modeler-generic-flow
|
|
76879
|
-
if (![sequenceFlow_id, poolLane_config_id,
|
|
76880
|
-
|
|
77291
|
+
if (![sequenceFlow_id, poolLane_config_id, associationConfig_id, messageFlow_config_id, config_id, dataInputAssociation_config_id, genericFlow_config_id].includes(node.type)) {
|
|
77292
|
+
_context16.next = 12;
|
|
76881
77293
|
break;
|
|
76882
77294
|
}
|
|
76883
|
-
return
|
|
76884
|
-
case
|
|
76885
|
-
if (
|
|
77295
|
+
return _context16.abrupt("return");
|
|
77296
|
+
case 12:
|
|
77297
|
+
if (!fromClient) {
|
|
76886
77298
|
// Select the node after it has been added to the store (does not apply to flows)
|
|
76887
|
-
|
|
77299
|
+
_this29.selectNewNode(node);
|
|
76888
77300
|
}
|
|
76889
|
-
return
|
|
77301
|
+
return _context16.abrupt("return", new Promise(function (resolve) {
|
|
76890
77302
|
setTimeout(function () {
|
|
76891
|
-
|
|
77303
|
+
_this29.pushToUndoStack();
|
|
76892
77304
|
resolve();
|
|
76893
77305
|
});
|
|
76894
77306
|
}));
|
|
76895
|
-
case
|
|
77307
|
+
case 14:
|
|
76896
77308
|
case "end":
|
|
76897
|
-
return
|
|
77309
|
+
return _context16.stop();
|
|
76898
77310
|
}
|
|
76899
|
-
},
|
|
77311
|
+
}, _callee16);
|
|
76900
77312
|
}))();
|
|
76901
77313
|
},
|
|
76902
77314
|
addClonedNodes: function addClonedNodes(nodes) {
|
|
76903
|
-
var
|
|
76904
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
76905
|
-
return _regeneratorRuntime().wrap(function
|
|
76906
|
-
while (1) switch (
|
|
77315
|
+
var _this30 = this;
|
|
77316
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
|
|
77317
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
77318
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
76907
77319
|
case 0:
|
|
76908
77320
|
nodes.forEach(function (node) {
|
|
76909
77321
|
if (!node.pool) {
|
|
76910
|
-
node.pool =
|
|
77322
|
+
node.pool = _this30.poolTarget;
|
|
76911
77323
|
}
|
|
76912
|
-
var targetProcess = node.getTargetProcess(
|
|
77324
|
+
var targetProcess = node.getTargetProcess(_this30.processes, _this30.processNode);
|
|
76913
77325
|
addNodeToProcess(node, targetProcess);
|
|
76914
|
-
|
|
77326
|
+
_this30.planeElements.push(node.diagram);
|
|
77327
|
+
_this30.multiplayerHook(node, false);
|
|
76915
77328
|
store.commit('addNode', node);
|
|
76916
|
-
|
|
77329
|
+
_this30.poolTarget = null;
|
|
76917
77330
|
});
|
|
76918
77331
|
case 1:
|
|
76919
77332
|
case "end":
|
|
76920
|
-
return
|
|
77333
|
+
return _context17.stop();
|
|
76921
77334
|
}
|
|
76922
|
-
},
|
|
77335
|
+
}, _callee17);
|
|
76923
77336
|
}))();
|
|
76924
77337
|
},
|
|
76925
77338
|
removeNode: function removeNode(node, options) {
|
|
76926
|
-
var
|
|
76927
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
76928
|
-
return _regeneratorRuntime().wrap(function
|
|
76929
|
-
while (1) switch (
|
|
77339
|
+
var _this31 = this;
|
|
77340
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
|
|
77341
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
77342
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
76930
77343
|
case 0:
|
|
76931
77344
|
// Check if the node is not replaced
|
|
76932
|
-
if (
|
|
77345
|
+
if (_this31.isMultiplayer && !(options !== null && options !== void 0 && options.isReplaced)) {
|
|
76933
77346
|
// Emit event to server to remove node
|
|
76934
77347
|
window.ProcessMaker.EventBus.$emit('multiplayer-removeNode', node);
|
|
76935
77348
|
}
|
|
76936
|
-
|
|
77349
|
+
_this31.removeNodeProcedure(node, options);
|
|
76937
77350
|
case 2:
|
|
76938
77351
|
case "end":
|
|
76939
|
-
return
|
|
77352
|
+
return _context18.stop();
|
|
76940
77353
|
}
|
|
76941
|
-
},
|
|
77354
|
+
}, _callee18);
|
|
76942
77355
|
}))();
|
|
76943
77356
|
},
|
|
76944
77357
|
removeNodeProcedure: function removeNodeProcedure(node) {
|
|
76945
|
-
var
|
|
76946
|
-
|
|
76947
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77358
|
+
var _arguments5 = arguments,
|
|
77359
|
+
_this32 = this;
|
|
77360
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
|
|
76948
77361
|
var _ref6, _ref6$removeRelations, removeRelationships;
|
|
76949
|
-
return _regeneratorRuntime().wrap(function
|
|
76950
|
-
while (1) switch (
|
|
77362
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
77363
|
+
while (1) switch (_context19.prev = _context19.next) {
|
|
76951
77364
|
case 0:
|
|
76952
|
-
_ref6 =
|
|
77365
|
+
_ref6 = _arguments5.length > 1 && _arguments5[1] !== undefined ? _arguments5[1] : {}, _ref6$removeRelations = _ref6.removeRelationships, removeRelationships = _ref6$removeRelations === void 0 ? true : _ref6$removeRelations;
|
|
76953
77366
|
if (node) {
|
|
76954
|
-
|
|
77367
|
+
_context19.next = 3;
|
|
76955
77368
|
break;
|
|
76956
77369
|
}
|
|
76957
|
-
return
|
|
77370
|
+
return _context19.abrupt("return");
|
|
76958
77371
|
case 3:
|
|
76959
77372
|
if (removeRelationships) {
|
|
76960
|
-
removeNodeFlows(node,
|
|
76961
|
-
removeNodeMessageFlows(node,
|
|
76962
|
-
removeNodeAssociations(node,
|
|
77373
|
+
removeNodeFlows(node, _this32);
|
|
77374
|
+
removeNodeMessageFlows(node, _this32);
|
|
77375
|
+
removeNodeAssociations(node, _this32);
|
|
76963
77376
|
}
|
|
76964
77377
|
removeOutgoingAndIncomingRefsToFlow(node);
|
|
76965
|
-
removeBoundaryEvents(
|
|
77378
|
+
removeBoundaryEvents(_this32.graph, node, _this32.removeNode);
|
|
76966
77379
|
removeSourceDefault(node);
|
|
76967
|
-
|
|
76968
|
-
|
|
77380
|
+
_this32.removeNodesFromLane(node);
|
|
77381
|
+
_this32.removeNodesFromPool(node);
|
|
76969
77382
|
store.commit('removeNode', node);
|
|
76970
|
-
store.commit('highlightNode',
|
|
76971
|
-
|
|
76972
|
-
|
|
76973
|
-
return
|
|
77383
|
+
store.commit('highlightNode', _this32.processNode);
|
|
77384
|
+
_this32.$refs.selector.clearSelection();
|
|
77385
|
+
_context19.next = 14;
|
|
77386
|
+
return _this32.$nextTick();
|
|
76974
77387
|
case 14:
|
|
76975
|
-
|
|
76976
|
-
return
|
|
77388
|
+
_context19.next = 16;
|
|
77389
|
+
return _this32.pushToUndoStack();
|
|
76977
77390
|
case 16:
|
|
76978
77391
|
// force to update the processNode property in every delete
|
|
76979
|
-
|
|
76980
|
-
if (
|
|
76981
|
-
|
|
76982
|
-
return diagram.bpmnElement.id ===
|
|
77392
|
+
_this32.processes = _this32.getProcesses();
|
|
77393
|
+
if (_this32.processes && _this32.processes.length > 0) {
|
|
77394
|
+
_this32.processNode = new Node('processmaker-modeler-process', _this32.processes[0], _this32.planeElements.find(function (diagram) {
|
|
77395
|
+
return diagram.bpmnElement.id === _this32.processes[0].id;
|
|
76983
77396
|
}));
|
|
76984
77397
|
}
|
|
76985
77398
|
case 18:
|
|
76986
77399
|
case "end":
|
|
76987
|
-
return
|
|
77400
|
+
return _context19.stop();
|
|
76988
77401
|
}
|
|
76989
|
-
},
|
|
77402
|
+
}, _callee19);
|
|
76990
77403
|
}))();
|
|
76991
77404
|
},
|
|
76992
77405
|
removeNodes: function removeNodes() {
|
|
76993
|
-
var
|
|
76994
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
76995
|
-
return _regeneratorRuntime().wrap(function
|
|
76996
|
-
while (1) switch (
|
|
77406
|
+
var _this33 = this;
|
|
77407
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
|
|
77408
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
77409
|
+
while (1) switch (_context22.prev = _context22.next) {
|
|
76997
77410
|
case 0:
|
|
76998
|
-
|
|
76999
|
-
return
|
|
77000
|
-
return _regeneratorRuntime().wrap(function
|
|
77001
|
-
while (1) switch (
|
|
77411
|
+
_context22.next = 2;
|
|
77412
|
+
return _this33.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
|
|
77413
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
77414
|
+
while (1) switch (_context21.prev = _context21.next) {
|
|
77002
77415
|
case 0:
|
|
77003
|
-
|
|
77004
|
-
return
|
|
77416
|
+
_context21.next = 2;
|
|
77417
|
+
return _this33.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
|
|
77005
77418
|
var waitPromises;
|
|
77006
|
-
return _regeneratorRuntime().wrap(function
|
|
77007
|
-
while (1) switch (
|
|
77419
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
77420
|
+
while (1) switch (_context20.prev = _context20.next) {
|
|
77008
77421
|
case 0:
|
|
77009
77422
|
waitPromises = [];
|
|
77010
|
-
|
|
77011
|
-
return waitPromises.push(
|
|
77423
|
+
_this33.highlightedNodes.forEach(function (node) {
|
|
77424
|
+
return waitPromises.push(_this33.removeNode(node, {
|
|
77012
77425
|
removeRelationships: true
|
|
77013
77426
|
}));
|
|
77014
77427
|
});
|
|
77015
|
-
|
|
77428
|
+
_context20.next = 4;
|
|
77016
77429
|
return Promise.all(waitPromises);
|
|
77017
77430
|
case 4:
|
|
77018
77431
|
store.commit('highlightNode');
|
|
77019
77432
|
case 5:
|
|
77020
77433
|
case "end":
|
|
77021
|
-
return
|
|
77434
|
+
return _context20.stop();
|
|
77022
77435
|
}
|
|
77023
|
-
},
|
|
77436
|
+
}, _callee20);
|
|
77024
77437
|
})));
|
|
77025
77438
|
case 2:
|
|
77026
77439
|
case "end":
|
|
77027
|
-
return
|
|
77440
|
+
return _context21.stop();
|
|
77028
77441
|
}
|
|
77029
|
-
},
|
|
77442
|
+
}, _callee21);
|
|
77030
77443
|
})));
|
|
77031
77444
|
case 2:
|
|
77032
77445
|
case "end":
|
|
77033
|
-
return
|
|
77446
|
+
return _context22.stop();
|
|
77034
77447
|
}
|
|
77035
|
-
},
|
|
77448
|
+
}, _callee22);
|
|
77036
77449
|
}))();
|
|
77037
77450
|
},
|
|
77038
77451
|
replaceNode: function replaceNode(_ref9) {
|
|
77039
|
-
var
|
|
77452
|
+
var _this34 = this;
|
|
77040
77453
|
var node = _ref9.node,
|
|
77041
77454
|
typeToReplaceWith = _ref9.typeToReplaceWith;
|
|
77042
|
-
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77043
|
-
return _regeneratorRuntime().wrap(function
|
|
77044
|
-
while (1) switch (
|
|
77455
|
+
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
|
|
77456
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
77457
|
+
while (1) switch (_context24.prev = _context24.next) {
|
|
77045
77458
|
case 0:
|
|
77046
|
-
|
|
77047
|
-
return
|
|
77048
|
-
var
|
|
77049
|
-
return _regeneratorRuntime().wrap(function
|
|
77050
|
-
while (1) switch (
|
|
77459
|
+
_context24.next = 2;
|
|
77460
|
+
return _this34.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
|
|
77461
|
+
var _node$diagram$bounds, x, y, nodeData, nodeTypes, newControl;
|
|
77462
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
77463
|
+
while (1) switch (_context23.prev = _context23.next) {
|
|
77051
77464
|
case 0:
|
|
77052
|
-
|
|
77465
|
+
_node$diagram$bounds = node.diagram.bounds, x = _node$diagram$bounds.x, y = _node$diagram$bounds.y;
|
|
77053
77466
|
nodeData = {
|
|
77054
|
-
|
|
77055
|
-
|
|
77467
|
+
x: x,
|
|
77468
|
+
y: y,
|
|
77056
77469
|
control: {
|
|
77057
77470
|
type: typeToReplaceWith
|
|
77058
77471
|
},
|
|
77059
77472
|
nodeThatWillBeReplaced: node
|
|
77060
77473
|
};
|
|
77061
|
-
if (!
|
|
77062
|
-
|
|
77474
|
+
if (!_this34.isMultiplayer) {
|
|
77475
|
+
_context23.next = 8;
|
|
77063
77476
|
break;
|
|
77064
77477
|
}
|
|
77065
77478
|
// Get all node types
|
|
@@ -77073,81 +77486,81 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77073
77486
|
if (newControl.length === 1) {
|
|
77074
77487
|
window.ProcessMaker.EventBus.$emit('multiplayer-replaceNode', {
|
|
77075
77488
|
nodeData: nodeData,
|
|
77076
|
-
newControl: newControl[0]
|
|
77489
|
+
newControl: newControl[0].type
|
|
77077
77490
|
});
|
|
77078
77491
|
}
|
|
77079
|
-
|
|
77492
|
+
_context23.next = 10;
|
|
77080
77493
|
break;
|
|
77081
77494
|
case 8:
|
|
77082
|
-
|
|
77083
|
-
return
|
|
77495
|
+
_context23.next = 10;
|
|
77496
|
+
return _this34.replaceNodeProcedure(nodeData, true);
|
|
77084
77497
|
case 10:
|
|
77085
77498
|
case "end":
|
|
77086
|
-
return
|
|
77499
|
+
return _context23.stop();
|
|
77087
77500
|
}
|
|
77088
|
-
},
|
|
77501
|
+
}, _callee23);
|
|
77089
77502
|
})));
|
|
77090
77503
|
case 2:
|
|
77091
77504
|
case "end":
|
|
77092
|
-
return
|
|
77505
|
+
return _context24.stop();
|
|
77093
77506
|
}
|
|
77094
|
-
},
|
|
77507
|
+
}, _callee24);
|
|
77095
77508
|
})));
|
|
77096
77509
|
},
|
|
77097
77510
|
replaceNodeProcedure: function replaceNodeProcedure(data) {
|
|
77098
|
-
var
|
|
77099
|
-
|
|
77100
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77101
|
-
var isReplaced,
|
|
77102
|
-
return _regeneratorRuntime().wrap(function
|
|
77103
|
-
while (1) switch (
|
|
77511
|
+
var _arguments6 = arguments,
|
|
77512
|
+
_this35 = this;
|
|
77513
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25() {
|
|
77514
|
+
var isReplaced, _this35$paper$localTo, clientX, clientY, newNode;
|
|
77515
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
|
77516
|
+
while (1) switch (_context25.prev = _context25.next) {
|
|
77104
77517
|
case 0:
|
|
77105
|
-
isReplaced =
|
|
77518
|
+
isReplaced = _arguments6.length > 1 && _arguments6[1] !== undefined ? _arguments6[1] : false;
|
|
77106
77519
|
if (isReplaced) {
|
|
77107
77520
|
// Get the clientX and clientY from the node that will be replaced
|
|
77108
|
-
|
|
77521
|
+
_this35$paper$localTo = _this35.paper.localToClientPoint(data.nodeThatWillBeReplaced.diagram.bounds), clientX = _this35$paper$localTo.x, clientY = _this35$paper$localTo.y;
|
|
77109
77522
|
data.clientX = clientX;
|
|
77110
77523
|
data.clientY = clientY;
|
|
77111
77524
|
}
|
|
77112
|
-
|
|
77113
|
-
return
|
|
77525
|
+
_context25.next = 4;
|
|
77526
|
+
return _this35.handleDrop(data);
|
|
77114
77527
|
case 4:
|
|
77115
|
-
newNode =
|
|
77116
|
-
|
|
77117
|
-
return
|
|
77528
|
+
newNode = _context25.sent;
|
|
77529
|
+
_context25.next = 7;
|
|
77530
|
+
return _this35.removeNode(data.nodeThatWillBeReplaced, {
|
|
77118
77531
|
removeRelationships: false,
|
|
77119
77532
|
isReplaced: isReplaced
|
|
77120
77533
|
});
|
|
77121
77534
|
case 7:
|
|
77122
|
-
|
|
77123
|
-
|
|
77535
|
+
_this35.highlightNode(newNode);
|
|
77536
|
+
_this35.selectNewNode(newNode);
|
|
77124
77537
|
case 9:
|
|
77125
77538
|
case "end":
|
|
77126
|
-
return
|
|
77539
|
+
return _context25.stop();
|
|
77127
77540
|
}
|
|
77128
|
-
},
|
|
77541
|
+
}, _callee25);
|
|
77129
77542
|
}))();
|
|
77130
77543
|
},
|
|
77131
77544
|
replaceAiNode: function replaceAiNode(_ref12) {
|
|
77132
|
-
var
|
|
77545
|
+
var _this36 = this;
|
|
77133
77546
|
var node = _ref12.node,
|
|
77134
77547
|
typeToReplaceWith = _ref12.typeToReplaceWith,
|
|
77135
77548
|
assetId = _ref12.assetId,
|
|
77136
77549
|
assetName = _ref12.assetName,
|
|
77137
77550
|
redirectTo = _ref12.redirectTo;
|
|
77138
|
-
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77139
|
-
return _regeneratorRuntime().wrap(function
|
|
77140
|
-
while (1) switch (
|
|
77551
|
+
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27() {
|
|
77552
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context27) {
|
|
77553
|
+
while (1) switch (_context27.prev = _context27.next) {
|
|
77141
77554
|
case 0:
|
|
77142
|
-
|
|
77143
|
-
return
|
|
77144
|
-
var
|
|
77145
|
-
return _regeneratorRuntime().wrap(function
|
|
77146
|
-
while (1) switch (
|
|
77555
|
+
_context27.next = 2;
|
|
77556
|
+
return _this36.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26() {
|
|
77557
|
+
var _this36$paper$localTo, clientX, clientY, newNode;
|
|
77558
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
|
77559
|
+
while (1) switch (_context26.prev = _context26.next) {
|
|
77147
77560
|
case 0:
|
|
77148
|
-
|
|
77149
|
-
|
|
77150
|
-
return
|
|
77561
|
+
_this36$paper$localTo = _this36.paper.localToClientPoint(node.diagram.bounds), clientX = _this36$paper$localTo.x, clientY = _this36$paper$localTo.y;
|
|
77562
|
+
_context26.next = 3;
|
|
77563
|
+
return _this36.handleDrop({
|
|
77151
77564
|
clientX: clientX,
|
|
77152
77565
|
clientY: clientY,
|
|
77153
77566
|
control: {
|
|
@@ -77156,7 +77569,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77156
77569
|
nodeThatWillBeReplaced: node
|
|
77157
77570
|
});
|
|
77158
77571
|
case 3:
|
|
77159
|
-
newNode =
|
|
77572
|
+
newNode = _context26.sent;
|
|
77160
77573
|
if (typeToReplaceWith === 'processmaker-modeler-task') {
|
|
77161
77574
|
newNode.definition.screenRef = assetId;
|
|
77162
77575
|
newNode.definition.name = assetName;
|
|
@@ -77171,95 +77584,98 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77171
77584
|
newNode.definition.config = "{\"calledElement\":\"ProcessId-".concat(assetId, "\",\"processId\":").concat(assetId, ",\"startEvent\":\"node_1\",\"name\":\"").concat(assetName, "\"}");
|
|
77172
77585
|
redirectTo = "".concat(redirectTo, "/").concat(newNode.id);
|
|
77173
77586
|
}
|
|
77174
|
-
|
|
77175
|
-
return
|
|
77587
|
+
_context26.next = 9;
|
|
77588
|
+
return _this36.removeNode(node, {
|
|
77176
77589
|
removeRelationships: false
|
|
77177
77590
|
});
|
|
77178
77591
|
case 9:
|
|
77179
|
-
|
|
77180
|
-
|
|
77181
|
-
|
|
77182
|
-
return
|
|
77592
|
+
_this36.highlightNode(newNode);
|
|
77593
|
+
_this36.selectNewNode(newNode);
|
|
77594
|
+
_context26.next = 13;
|
|
77595
|
+
return _this36.pushToUndoStack();
|
|
77183
77596
|
case 13:
|
|
77184
|
-
|
|
77185
|
-
return
|
|
77597
|
+
_context26.next = 15;
|
|
77598
|
+
return _this36.$nextTick();
|
|
77186
77599
|
case 15:
|
|
77187
|
-
|
|
77600
|
+
_this36.saveBpmn(redirectTo, newNode.id);
|
|
77188
77601
|
case 16:
|
|
77189
77602
|
case "end":
|
|
77190
|
-
return
|
|
77603
|
+
return _context26.stop();
|
|
77191
77604
|
}
|
|
77192
|
-
},
|
|
77605
|
+
}, _callee26);
|
|
77193
77606
|
})));
|
|
77194
77607
|
case 2:
|
|
77195
77608
|
case "end":
|
|
77196
|
-
return
|
|
77609
|
+
return _context27.stop();
|
|
77197
77610
|
}
|
|
77198
|
-
},
|
|
77611
|
+
}, _callee27);
|
|
77199
77612
|
})));
|
|
77200
77613
|
},
|
|
77201
77614
|
replaceGenericFlow: function replaceGenericFlow(_ref15) {
|
|
77202
|
-
var
|
|
77615
|
+
var _this37 = this;
|
|
77203
77616
|
var actualFlow = _ref15.actualFlow,
|
|
77204
77617
|
genericFlow = _ref15.genericFlow,
|
|
77205
77618
|
targetNode = _ref15.targetNode;
|
|
77206
|
-
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77207
|
-
return _regeneratorRuntime().wrap(function
|
|
77208
|
-
while (1) switch (
|
|
77619
|
+
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29() {
|
|
77620
|
+
return _regeneratorRuntime().wrap(function _callee29$(_context29) {
|
|
77621
|
+
while (1) switch (_context29.prev = _context29.next) {
|
|
77209
77622
|
case 0:
|
|
77210
|
-
|
|
77211
|
-
return
|
|
77212
|
-
return _regeneratorRuntime().wrap(function
|
|
77213
|
-
while (1) switch (
|
|
77623
|
+
_context29.next = 2;
|
|
77624
|
+
return _this37.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28() {
|
|
77625
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context28) {
|
|
77626
|
+
while (1) switch (_context28.prev = _context28.next) {
|
|
77214
77627
|
case 0:
|
|
77215
|
-
|
|
77216
|
-
return
|
|
77628
|
+
_context28.next = 2;
|
|
77629
|
+
return _this37.highlightNode(null);
|
|
77217
77630
|
case 2:
|
|
77218
|
-
|
|
77219
|
-
return
|
|
77631
|
+
_context28.next = 4;
|
|
77632
|
+
return _this37.$nextTick();
|
|
77220
77633
|
case 4:
|
|
77221
|
-
|
|
77222
|
-
return _this36.addNode(actualFlow);
|
|
77223
|
-
case 6:
|
|
77224
|
-
_context27.next = 8;
|
|
77634
|
+
_context28.next = 6;
|
|
77225
77635
|
return store.commit('removeNode', genericFlow);
|
|
77636
|
+
case 6:
|
|
77637
|
+
_context28.next = 8;
|
|
77638
|
+
return _this37.$nextTick();
|
|
77226
77639
|
case 8:
|
|
77227
|
-
|
|
77228
|
-
return
|
|
77640
|
+
_context28.next = 10;
|
|
77641
|
+
return _this37.addNode(actualFlow, genericFlow.definition.id);
|
|
77229
77642
|
case 10:
|
|
77230
|
-
|
|
77231
|
-
return
|
|
77643
|
+
_context28.next = 12;
|
|
77644
|
+
return _this37.$nextTick();
|
|
77232
77645
|
case 12:
|
|
77646
|
+
_context28.next = 14;
|
|
77647
|
+
return _this37.highlightNode(targetNode);
|
|
77648
|
+
case 14:
|
|
77233
77649
|
case "end":
|
|
77234
|
-
return
|
|
77650
|
+
return _context28.stop();
|
|
77235
77651
|
}
|
|
77236
|
-
},
|
|
77652
|
+
}, _callee28);
|
|
77237
77653
|
})));
|
|
77238
77654
|
case 2:
|
|
77239
77655
|
case "end":
|
|
77240
|
-
return
|
|
77656
|
+
return _context29.stop();
|
|
77241
77657
|
}
|
|
77242
|
-
},
|
|
77658
|
+
}, _callee29);
|
|
77243
77659
|
})));
|
|
77244
77660
|
},
|
|
77245
77661
|
performSingleUndoRedoTransaction: function performSingleUndoRedoTransaction(cb) {
|
|
77246
|
-
var
|
|
77247
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77248
|
-
return _regeneratorRuntime().wrap(function
|
|
77249
|
-
while (1) switch (
|
|
77662
|
+
var _this38 = this;
|
|
77663
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30() {
|
|
77664
|
+
return _regeneratorRuntime().wrap(function _callee30$(_context30) {
|
|
77665
|
+
while (1) switch (_context30.prev = _context30.next) {
|
|
77250
77666
|
case 0:
|
|
77251
77667
|
undoRedoStore.commit('disableSavingState');
|
|
77252
|
-
|
|
77668
|
+
_context30.next = 3;
|
|
77253
77669
|
return cb();
|
|
77254
77670
|
case 3:
|
|
77255
77671
|
undoRedoStore.commit('enableSavingState');
|
|
77256
|
-
|
|
77257
|
-
return
|
|
77672
|
+
_context30.next = 6;
|
|
77673
|
+
return _this38.pushToUndoStack();
|
|
77258
77674
|
case 6:
|
|
77259
77675
|
case "end":
|
|
77260
|
-
return
|
|
77676
|
+
return _context30.stop();
|
|
77261
77677
|
}
|
|
77262
|
-
},
|
|
77678
|
+
}, _callee30);
|
|
77263
77679
|
}))();
|
|
77264
77680
|
},
|
|
77265
77681
|
removeNodesFromLane: function removeNodesFromLane(node) {
|
|
@@ -77272,36 +77688,36 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77272
77688
|
pull_default()(containingLane.get('flowNodeRef'), node.definition);
|
|
77273
77689
|
},
|
|
77274
77690
|
removeNodesFromPool: function removeNodesFromPool(node) {
|
|
77275
|
-
var
|
|
77691
|
+
var _this39 = this;
|
|
77276
77692
|
if (node.type === 'processmaker-modeler-pool' && node.definition.processRef) {
|
|
77277
77693
|
if (node.definition.processRef.artifacts) {
|
|
77278
77694
|
node.definition.processRef.artifacts.forEach(function (artifact) {
|
|
77279
|
-
var nodeToRemove =
|
|
77695
|
+
var nodeToRemove = _this39.nodes.find(function (n) {
|
|
77280
77696
|
return n.definition === artifact;
|
|
77281
77697
|
});
|
|
77282
77698
|
if (nodeToRemove) {
|
|
77283
|
-
|
|
77699
|
+
_this39.removeNode(nodeToRemove);
|
|
77284
77700
|
}
|
|
77285
77701
|
});
|
|
77286
77702
|
}
|
|
77287
77703
|
if (node.definition.processRef.flowElements) {
|
|
77288
77704
|
node.definition.processRef.flowElements.forEach(function (flowElement) {
|
|
77289
|
-
var nodeToRemove =
|
|
77705
|
+
var nodeToRemove = _this39.nodes.find(function (n) {
|
|
77290
77706
|
return n.definition === flowElement;
|
|
77291
77707
|
});
|
|
77292
77708
|
if (nodeToRemove) {
|
|
77293
|
-
|
|
77709
|
+
_this39.removeNode(nodeToRemove);
|
|
77294
77710
|
}
|
|
77295
77711
|
});
|
|
77296
77712
|
}
|
|
77297
77713
|
var laneSets = node.definition.processRef.laneSets;
|
|
77298
77714
|
if (!!laneSets && laneSets.length > 0) {
|
|
77299
77715
|
laneSets[0].lanes.forEach(function (lane) {
|
|
77300
|
-
var nodeToRemove =
|
|
77716
|
+
var nodeToRemove = _this39.nodes.find(function (n) {
|
|
77301
77717
|
return n.definition === lane;
|
|
77302
77718
|
});
|
|
77303
77719
|
if (nodeToRemove) {
|
|
77304
|
-
|
|
77720
|
+
_this39.removeNode(nodeToRemove);
|
|
77305
77721
|
}
|
|
77306
77722
|
});
|
|
77307
77723
|
}
|
|
@@ -77329,13 +77745,13 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77329
77745
|
return shape.component != null;
|
|
77330
77746
|
},
|
|
77331
77747
|
setShapeStacking: function setShapeStacking(shape) {
|
|
77332
|
-
var
|
|
77748
|
+
var _this40 = this;
|
|
77333
77749
|
if (this.isRendering || !shape.component.node.isType('processmaker-modeler-pool') && shape === this.previouslyStackedShape) {
|
|
77334
77750
|
return;
|
|
77335
77751
|
}
|
|
77336
77752
|
this.previouslyStackedShape = shape;
|
|
77337
77753
|
this.paperManager.performAtomicAction(function () {
|
|
77338
|
-
return ensureShapeIsNotCovered(shape,
|
|
77754
|
+
return ensureShapeIsNotCovered(shape, _this40.graph);
|
|
77339
77755
|
});
|
|
77340
77756
|
},
|
|
77341
77757
|
showSavedNotification: function showSavedNotification() {
|
|
@@ -77369,49 +77785,49 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77369
77785
|
return false;
|
|
77370
77786
|
},
|
|
77371
77787
|
pointerDowInShape: function pointerDowInShape(event, element) {
|
|
77372
|
-
var
|
|
77373
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
77788
|
+
var _this41 = this;
|
|
77789
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31() {
|
|
77374
77790
|
var x, y, shapeView;
|
|
77375
|
-
return _regeneratorRuntime().wrap(function
|
|
77376
|
-
while (1) switch (
|
|
77791
|
+
return _regeneratorRuntime().wrap(function _callee31$(_context31) {
|
|
77792
|
+
while (1) switch (_context31.prev = _context31.next) {
|
|
77377
77793
|
case 0:
|
|
77378
77794
|
x = event.clientX, y = event.clientY;
|
|
77379
|
-
shapeView =
|
|
77380
|
-
|
|
77381
|
-
|
|
77382
|
-
|
|
77383
|
-
|
|
77795
|
+
shapeView = _this41.paper.findViewByModel(element);
|
|
77796
|
+
_this41.isDragging = false;
|
|
77797
|
+
_this41.isSelecting = false;
|
|
77798
|
+
_this41.isIntoTheSelection = false;
|
|
77799
|
+
_this41.dragStart = {
|
|
77384
77800
|
x: x,
|
|
77385
77801
|
y: y
|
|
77386
77802
|
};
|
|
77387
77803
|
// Verify if is in the selection box
|
|
77388
|
-
if (!
|
|
77389
|
-
|
|
77804
|
+
if (!_this41.isPointInSelection(event)) {
|
|
77805
|
+
_context31.next = 10;
|
|
77390
77806
|
break;
|
|
77391
77807
|
}
|
|
77392
|
-
|
|
77393
|
-
|
|
77808
|
+
_this41.isIntoTheSelection = true;
|
|
77809
|
+
_context31.next = 15;
|
|
77394
77810
|
break;
|
|
77395
77811
|
case 10:
|
|
77396
77812
|
if (event.shiftKey) {
|
|
77397
|
-
|
|
77813
|
+
_context31.next = 15;
|
|
77398
77814
|
break;
|
|
77399
77815
|
}
|
|
77400
|
-
|
|
77401
|
-
return
|
|
77816
|
+
_context31.next = 13;
|
|
77817
|
+
return _this41.$refs.selector.selectElement(shapeView);
|
|
77402
77818
|
case 13:
|
|
77403
|
-
|
|
77404
|
-
return
|
|
77819
|
+
_context31.next = 15;
|
|
77820
|
+
return _this41.$nextTick();
|
|
77405
77821
|
case 15:
|
|
77406
|
-
|
|
77822
|
+
_this41.$refs.selector.startDrag({
|
|
77407
77823
|
clientX: event.clientX,
|
|
77408
77824
|
clientY: event.clientY
|
|
77409
77825
|
});
|
|
77410
77826
|
case 16:
|
|
77411
77827
|
case "end":
|
|
77412
|
-
return
|
|
77828
|
+
return _context31.stop();
|
|
77413
77829
|
}
|
|
77414
|
-
},
|
|
77830
|
+
}, _callee31);
|
|
77415
77831
|
}))();
|
|
77416
77832
|
},
|
|
77417
77833
|
pointerDownHandler: function pointerDownHandler(event) {
|
|
@@ -77532,7 +77948,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77532
77948
|
this.$emit('set-xml-manager', this.xmlManager);
|
|
77533
77949
|
},
|
|
77534
77950
|
mounted: function mounted() {
|
|
77535
|
-
var
|
|
77951
|
+
var _this42 = this;
|
|
77536
77952
|
store.commit('setReadOnly', this.readOnly);
|
|
77537
77953
|
this.graph = new external_jointjs_namespaceObject.dia.Graph();
|
|
77538
77954
|
store.commit('setGraph', this.graph);
|
|
@@ -77551,47 +77967,47 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77551
77967
|
store.commit('setPaper', this.paperManager.paper);
|
|
77552
77968
|
this.paperManager.addEventHandler('element:pointerclick', this.blurFocusedScreenBuilderElement, this);
|
|
77553
77969
|
this.paperManager.addEventHandler('blank:pointerdown', function (event, x, y) {
|
|
77554
|
-
if (
|
|
77970
|
+
if (_this42.isGrabbing) return;
|
|
77555
77971
|
if (store.getters.isReadOnly) {
|
|
77556
|
-
|
|
77972
|
+
_this42.isGrabbing = true;
|
|
77557
77973
|
}
|
|
77558
|
-
var scale =
|
|
77559
|
-
|
|
77974
|
+
var scale = _this42.paperManager.scale;
|
|
77975
|
+
_this42.canvasDragPosition = {
|
|
77560
77976
|
x: x * scale.sx,
|
|
77561
77977
|
y: y * scale.sy
|
|
77562
77978
|
};
|
|
77563
|
-
|
|
77564
|
-
|
|
77979
|
+
_this42.isOverShape = false;
|
|
77980
|
+
_this42.pointerDownHandler(event);
|
|
77565
77981
|
}, this);
|
|
77566
77982
|
this.paperManager.addEventHandler('cell:mouseover element:mouseover', function (_ref19) {
|
|
77567
77983
|
var shape = _ref19.model;
|
|
77568
|
-
if (
|
|
77984
|
+
if (_this42.isBpmnNode(shape) && shape.attr('body/cursor') !== 'default' && !_this42.isGrabbing) {
|
|
77569
77985
|
shape.attr('body/cursor', 'move');
|
|
77570
77986
|
}
|
|
77571
77987
|
// If the user is panning the Paper while hovering an element, ignore the default move cursor
|
|
77572
|
-
if (
|
|
77988
|
+
if (_this42.isGrabbing && _this42.isBpmnNode(shape)) {
|
|
77573
77989
|
shape.attr('body/cursor', 'grabbing');
|
|
77574
77990
|
}
|
|
77575
77991
|
});
|
|
77576
77992
|
this.paperManager.addEventHandler('blank:pointerup', function (event) {
|
|
77577
|
-
|
|
77578
|
-
|
|
77579
|
-
|
|
77580
|
-
|
|
77993
|
+
_this42.isGrabbing = false;
|
|
77994
|
+
_this42.canvasDragPosition = null;
|
|
77995
|
+
_this42.activeNode = null;
|
|
77996
|
+
_this42.pointerUpHandler(event);
|
|
77581
77997
|
}, this);
|
|
77582
77998
|
this.paperManager.addEventHandler('cell:pointerup', function (cellView, event) {
|
|
77583
|
-
|
|
77584
|
-
|
|
77585
|
-
|
|
77999
|
+
_this42.canvasDragPosition = null;
|
|
78000
|
+
_this42.activeNode = null;
|
|
78001
|
+
_this42.pointerUpHandler(event, cellView);
|
|
77586
78002
|
}, this);
|
|
77587
78003
|
this.$refs['paper-container'].addEventListener('mouseenter', function () {
|
|
77588
78004
|
store.commit('setClientLeftPaper', false);
|
|
77589
78005
|
});
|
|
77590
78006
|
this.$el.addEventListener('mousemove', function (event) {
|
|
77591
|
-
|
|
78007
|
+
_this42.pointerMoveHandler(event);
|
|
77592
78008
|
});
|
|
77593
78009
|
this.$refs['paper-container'].addEventListener('mouseleave', function () {
|
|
77594
|
-
|
|
78010
|
+
_this42.paperManager.removeEventHandler('blank:pointermove');
|
|
77595
78011
|
store.commit('setClientLeftPaper', true);
|
|
77596
78012
|
});
|
|
77597
78013
|
this.paperManager.addEventHandler('cell:pointerclick', function (cellView, evt, x, y) {
|
|
@@ -77602,44 +78018,44 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77602
78018
|
});
|
|
77603
78019
|
this.paperManager.addEventHandler('cell:pointerclick', function (_ref20, event) {
|
|
77604
78020
|
var shape = _ref20.model;
|
|
77605
|
-
if (!
|
|
78021
|
+
if (!_this42.isBpmnNode(shape)) {
|
|
77606
78022
|
return;
|
|
77607
78023
|
}
|
|
77608
78024
|
|
|
77609
78025
|
// ignore click event if the user is Grabbing the paper
|
|
77610
|
-
if (
|
|
78026
|
+
if (_this42.isGrabbing) return;
|
|
77611
78027
|
shape.component.$emit('click', event);
|
|
77612
|
-
|
|
78028
|
+
_this42.$emit('click', {
|
|
77613
78029
|
event: event,
|
|
77614
|
-
node:
|
|
78030
|
+
node: _this42.highlightedNode.definition
|
|
77615
78031
|
});
|
|
77616
78032
|
});
|
|
77617
78033
|
this.paperManager.addEventHandler('cell:pointerdown', function (_ref21, event) {
|
|
77618
78034
|
var shape = _ref21.model;
|
|
77619
|
-
if (!
|
|
78035
|
+
if (!_this42.isBpmnNode(shape)) {
|
|
77620
78036
|
return;
|
|
77621
78037
|
}
|
|
77622
78038
|
// If the user is pressing Space (grabbing) and clicking on a Cell, return
|
|
77623
|
-
if (
|
|
78039
|
+
if (_this42.isGrabbing) {
|
|
77624
78040
|
return;
|
|
77625
78041
|
}
|
|
77626
|
-
|
|
77627
|
-
|
|
77628
|
-
|
|
77629
|
-
|
|
78042
|
+
_this42.setShapeStacking(shape);
|
|
78043
|
+
_this42.activeNode = shape.component.node;
|
|
78044
|
+
_this42.isOverShape = true;
|
|
78045
|
+
_this42.pointerDowInShape(event, shape);
|
|
77630
78046
|
});
|
|
77631
78047
|
// If the user is grabbing the paper while he clicked in a cell, move the paper and not the cell
|
|
77632
78048
|
this.paperManager.addEventHandler('cell:pointermove', function (_, event, x, y) {
|
|
77633
|
-
if (
|
|
77634
|
-
if (!
|
|
77635
|
-
var scale =
|
|
77636
|
-
|
|
78049
|
+
if (_this42.isGrabbing) {
|
|
78050
|
+
if (!_this42.canvasDragPosition) {
|
|
78051
|
+
var scale = _this42.paperManager.scale;
|
|
78052
|
+
_this42.canvasDragPosition = {
|
|
77637
78053
|
x: x * scale.sx,
|
|
77638
78054
|
y: y * scale.sy
|
|
77639
78055
|
};
|
|
77640
78056
|
}
|
|
77641
|
-
if (
|
|
77642
|
-
|
|
78057
|
+
if (_this42.canvasDragPosition && !_this42.clientLeftPaper) {
|
|
78058
|
+
_this42.paperManager.translate(event.offsetX - _this42.canvasDragPosition.x, event.offsetY - _this42.canvasDragPosition.y);
|
|
77643
78059
|
}
|
|
77644
78060
|
}
|
|
77645
78061
|
});
|
|
@@ -77650,28 +78066,28 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77650
78066
|
modeler: this,
|
|
77651
78067
|
registerMenuAction: this.registerMenuAction,
|
|
77652
78068
|
loadXML: function () {
|
|
77653
|
-
var _loadXML = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
78069
|
+
var _loadXML = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(xml) {
|
|
77654
78070
|
var multiplayer;
|
|
77655
|
-
return _regeneratorRuntime().wrap(function
|
|
77656
|
-
while (1) switch (
|
|
78071
|
+
return _regeneratorRuntime().wrap(function _callee32$(_context32) {
|
|
78072
|
+
while (1) switch (_context32.prev = _context32.next) {
|
|
77657
78073
|
case 0:
|
|
77658
|
-
|
|
77659
|
-
return
|
|
78074
|
+
_context32.next = 2;
|
|
78075
|
+
return _this42.loadXML(xml);
|
|
77660
78076
|
case 2:
|
|
77661
|
-
|
|
78077
|
+
_context32.next = 4;
|
|
77662
78078
|
return undoRedoStore.dispatch('pushState', xml);
|
|
77663
78079
|
case 4:
|
|
77664
78080
|
try {
|
|
77665
|
-
multiplayer = new Multiplayer(
|
|
78081
|
+
multiplayer = new Multiplayer(_this42);
|
|
77666
78082
|
multiplayer.init();
|
|
77667
78083
|
} catch (error) {
|
|
77668
78084
|
console.warn('Could not initialize multiplayer', error);
|
|
77669
78085
|
}
|
|
77670
78086
|
case 5:
|
|
77671
78087
|
case "end":
|
|
77672
|
-
return
|
|
78088
|
+
return _context32.stop();
|
|
77673
78089
|
}
|
|
77674
|
-
},
|
|
78090
|
+
}, _callee32);
|
|
77675
78091
|
}));
|
|
77676
78092
|
function loadXML(_x) {
|
|
77677
78093
|
return _loadXML.apply(this, arguments);
|
|
@@ -77679,18 +78095,18 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
77679
78095
|
return loadXML;
|
|
77680
78096
|
}(),
|
|
77681
78097
|
addWarnings: function addWarnings(warnings) {
|
|
77682
|
-
return
|
|
78098
|
+
return _this42.$emit('warnings', warnings);
|
|
77683
78099
|
},
|
|
77684
78100
|
addBreadcrumbs: function addBreadcrumbs(breadcrumbs) {
|
|
77685
|
-
return
|
|
78101
|
+
return _this42.breadcrumbData.push(breadcrumbs);
|
|
77686
78102
|
}
|
|
77687
78103
|
});
|
|
77688
78104
|
this.$root.$on('replace-ai-node', function (data) {
|
|
77689
|
-
|
|
78105
|
+
_this42.replaceAiNode(data);
|
|
77690
78106
|
});
|
|
77691
78107
|
window.ProcessMaker.EventBus.$on('save-changes', function (redirectUrl) {
|
|
77692
78108
|
if (redirectUrl) {
|
|
77693
|
-
|
|
78109
|
+
_this42.redirect(redirectUrl);
|
|
77694
78110
|
}
|
|
77695
78111
|
});
|
|
77696
78112
|
}
|
|
@@ -77712,8 +78128,8 @@ var modelervue_type_style_index_0_prod_lang_scss_ = __webpack_require__(88242);
|
|
|
77712
78128
|
|
|
77713
78129
|
var Modeler_component = normalizeComponent(
|
|
77714
78130
|
modeler_Modelervue_type_script_lang_js_,
|
|
77715
|
-
|
|
77716
|
-
|
|
78131
|
+
Modelervue_type_template_id_74d45ad8_render,
|
|
78132
|
+
Modelervue_type_template_id_74d45ad8_staticRenderFns,
|
|
77717
78133
|
false,
|
|
77718
78134
|
null,
|
|
77719
78135
|
null,
|
|
@@ -78036,11 +78452,49 @@ var dataInputAssociation_component = normalizeComponent(
|
|
|
78036
78452
|
)
|
|
78037
78453
|
|
|
78038
78454
|
/* harmony default export */ var dataInputAssociation = (dataInputAssociation_component.exports);
|
|
78455
|
+
;// CONCATENATED MODULE: ./src/components/nodes/dataInputAssociation/DataInputAssociation.js
|
|
78456
|
+
|
|
78457
|
+
|
|
78458
|
+
|
|
78459
|
+
|
|
78460
|
+
|
|
78461
|
+
|
|
78462
|
+
var DataInputAssociation = /*#__PURE__*/function () {
|
|
78463
|
+
function DataInputAssociation(nodeRegistry, moddle, paper) {
|
|
78464
|
+
_classCallCheck(this, DataInputAssociation);
|
|
78465
|
+
this.nodeRegistry = nodeRegistry;
|
|
78466
|
+
this.moddle = moddle;
|
|
78467
|
+
this.paper = paper;
|
|
78468
|
+
}
|
|
78469
|
+
_createClass(DataInputAssociation, [{
|
|
78470
|
+
key: "makeFlowNode",
|
|
78471
|
+
value: function makeFlowNode(sourceShape, targetShape, waypoint) {
|
|
78472
|
+
var _this = this;
|
|
78473
|
+
var diagram = dataInputAssociation_config_diagram(this.moddle);
|
|
78474
|
+
var associationFlow = dataInputAssociation_config_definition(this.moddle);
|
|
78475
|
+
|
|
78476
|
+
// When saving the BPMN, if this is not an array the sourceRef is not stored
|
|
78477
|
+
var dataInput = getOrFindDataInput(this.moddle, targetShape.component.node, sourceShape.component.node.definition);
|
|
78478
|
+
associationFlow.set('targetRef', dataInput);
|
|
78479
|
+
associationFlow.set('sourceRef', [sourceShape.component.node.definition]);
|
|
78480
|
+
diagram.waypoint = waypoint.map(function (point) {
|
|
78481
|
+
return _this.moddle.create('dc:Point', point);
|
|
78482
|
+
});
|
|
78483
|
+
var node = new Node(dataInputAssociation_config_id, associationFlow, diagram);
|
|
78484
|
+
return node;
|
|
78485
|
+
}
|
|
78486
|
+
}]);
|
|
78487
|
+
return DataInputAssociation;
|
|
78488
|
+
}();
|
|
78039
78489
|
;// CONCATENATED MODULE: ./src/components/nodes/dataInputAssociation/index.js
|
|
78040
78490
|
|
|
78041
78491
|
|
|
78042
78492
|
|
|
78043
78493
|
|
|
78494
|
+
|
|
78495
|
+
|
|
78496
|
+
|
|
78497
|
+
|
|
78044
78498
|
/* harmony default export */ var nodes_dataInputAssociation = (_objectSpread2(_objectSpread2({}, dataInputAssociation_config_namespaceObject), {}, {
|
|
78045
78499
|
component: dataInputAssociation,
|
|
78046
78500
|
control: false,
|
|
@@ -78060,7 +78514,32 @@ var dataInputAssociation_component = normalizeComponent(
|
|
|
78060
78514
|
config: inspectors_idConfigSettings
|
|
78061
78515
|
}]
|
|
78062
78516
|
}]
|
|
78063
|
-
}]
|
|
78517
|
+
}],
|
|
78518
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
78519
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
78520
|
+
var paper, sourceElem, targetElem, flow, actualFlow, nodeIdIterator;
|
|
78521
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
78522
|
+
while (1) switch (_context.prev = _context.next) {
|
|
78523
|
+
case 0:
|
|
78524
|
+
paper = modeler.paper;
|
|
78525
|
+
sourceElem = modeler.getElementByNodeId(data.sourceRefId);
|
|
78526
|
+
targetElem = modeler.getElementByNodeId(data.targetRefId);
|
|
78527
|
+
if (sourceElem && targetElem) {
|
|
78528
|
+
flow = new DataInputAssociation(modeler.nodeRegistry, modeler.moddle, paper);
|
|
78529
|
+
actualFlow = flow.makeFlowNode(sourceElem, targetElem, data.waypoint);
|
|
78530
|
+
targetElem.component.node.definition.set('dataInputAssociations', [actualFlow.definition]);
|
|
78531
|
+
// add Nodes
|
|
78532
|
+
modeler.addNode(actualFlow, data.id, true);
|
|
78533
|
+
nodeIdIterator = getNodeIdGenerator(modeler.definitions);
|
|
78534
|
+
nodeIdIterator.updateCounters();
|
|
78535
|
+
}
|
|
78536
|
+
case 4:
|
|
78537
|
+
case "end":
|
|
78538
|
+
return _context.stop();
|
|
78539
|
+
}
|
|
78540
|
+
}, _callee);
|
|
78541
|
+
}))();
|
|
78542
|
+
}
|
|
78064
78543
|
}));
|
|
78065
78544
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/dataOutputAssociation/dataOutputAssociation.vue?vue&type=template&id=5ce8e93e&
|
|
78066
78545
|
var dataOutputAssociationvue_type_template_id_5ce8e93e_render = function render() {
|
|
@@ -78201,6 +78680,10 @@ var dataOutputAssociation_component = normalizeComponent(
|
|
|
78201
78680
|
|
|
78202
78681
|
|
|
78203
78682
|
|
|
78683
|
+
|
|
78684
|
+
|
|
78685
|
+
|
|
78686
|
+
|
|
78204
78687
|
/* harmony default export */ var nodes_dataOutputAssociation = (_objectSpread2(_objectSpread2({}, config_namespaceObject), {}, {
|
|
78205
78688
|
component: dataOutputAssociation,
|
|
78206
78689
|
control: false,
|
|
@@ -78220,7 +78703,30 @@ var dataOutputAssociation_component = normalizeComponent(
|
|
|
78220
78703
|
config: inspectors_idConfigSettings
|
|
78221
78704
|
}]
|
|
78222
78705
|
}]
|
|
78223
|
-
}]
|
|
78706
|
+
}],
|
|
78707
|
+
multiplayerClient: function multiplayerClient(modeler, data) {
|
|
78708
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
78709
|
+
var paper, sourceElem, targetElem, flow, actualFlow, nodeIdIterator;
|
|
78710
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
78711
|
+
while (1) switch (_context.prev = _context.next) {
|
|
78712
|
+
case 0:
|
|
78713
|
+
paper = modeler.paper;
|
|
78714
|
+
sourceElem = modeler.getElementByNodeId(data.sourceRefId);
|
|
78715
|
+
targetElem = modeler.getElementByNodeId(data.targetRefId);
|
|
78716
|
+
if (sourceElem && targetElem) {
|
|
78717
|
+
flow = new DataOutputAssociation(modeler.nodeRegistry, modeler.moddle, paper);
|
|
78718
|
+
actualFlow = flow.makeFlowNode(sourceElem, targetElem, data.waypoint); // add Nodes
|
|
78719
|
+
modeler.addNode(actualFlow, data.id, true);
|
|
78720
|
+
nodeIdIterator = getNodeIdGenerator(modeler.definitions);
|
|
78721
|
+
nodeIdIterator.updateCounters();
|
|
78722
|
+
}
|
|
78723
|
+
case 4:
|
|
78724
|
+
case "end":
|
|
78725
|
+
return _context.stop();
|
|
78726
|
+
}
|
|
78727
|
+
}, _callee);
|
|
78728
|
+
}))();
|
|
78729
|
+
}
|
|
78224
78730
|
}));
|
|
78225
78731
|
;// CONCATENATED MODULE: ./node_modules/@processmaker/processmaker-bpmn-moddle/resources/processmaker.json
|
|
78226
78732
|
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":[]}');
|