@processmaker/modeler 1.46.4 → 1.46.6
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 +358 -329
- package/dist/modeler.common.js.map +1 -1
- package/dist/modeler.umd.js +358 -329
- package/dist/modeler.umd.js.map +1 -1
- package/dist/modeler.umd.min.js +3 -3
- package/dist/modeler.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/modeler/Modeler.vue +4 -4
- package/src/components/railBottom/RailBottom.vue +1 -0
- package/src/mixins/linkConfig.js +21 -0
- package/src/multiplayer/multiplayer.js +4 -0
package/dist/modeler.umd.js
CHANGED
|
@@ -13616,7 +13616,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".control-list[data-v-317b8b6e]{margin:
|
|
|
13616
13616
|
|
|
13617
13617
|
/***/ }),
|
|
13618
13618
|
|
|
13619
|
-
/***/
|
|
13619
|
+
/***/ 29218:
|
|
13620
13620
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
13621
13621
|
|
|
13622
13622
|
"use strict";
|
|
@@ -13630,7 +13630,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13630
13630
|
|
|
13631
13631
|
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()));
|
|
13632
13632
|
// Module
|
|
13633
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".rail-container[data-v-
|
|
13633
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".rail-container[data-v-1acea7b8]{bottom:20px;left:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;height:48px;max-height:48px;z-index:2}.rail-container[data-v-1acea7b8],.rail-left[data-v-1acea7b8]{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex}.rail-left[data-v-1acea7b8]{width:auto;padding:0 35px}.rail-center[data-v-1acea7b8]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-column-gap:22px;-moz-column-gap:22px;column-gap:22px;width:100%;padding-right:5px;overflow-x:hidden}.hidden-opacity[data-v-1acea7b8]{opacity:0;visibility:hidden;position:absolute;pointer-events:none}", ""]);
|
|
13634
13634
|
// Exports
|
|
13635
13635
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
13636
13636
|
|
|
@@ -27237,19 +27237,19 @@ var update = add("0671e30a", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
27237
27237
|
|
|
27238
27238
|
/***/ }),
|
|
27239
27239
|
|
|
27240
|
-
/***/
|
|
27240
|
+
/***/ 42565:
|
|
27241
27241
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
27242
27242
|
|
|
27243
27243
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
27244
27244
|
|
|
27245
27245
|
// load the styles
|
|
27246
|
-
var content = __webpack_require__(
|
|
27246
|
+
var content = __webpack_require__(29218);
|
|
27247
27247
|
if(content.__esModule) content = content.default;
|
|
27248
27248
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
27249
27249
|
if(content.locals) module.exports = content.locals;
|
|
27250
27250
|
// add the styles to the DOM
|
|
27251
27251
|
var add = (__webpack_require__(54402)/* ["default"] */ .Z)
|
|
27252
|
-
var update = add("
|
|
27252
|
+
var update = add("67cca51c", content, true, {"sourceMap":false,"shadowMode":false});
|
|
27253
27253
|
|
|
27254
27254
|
/***/ }),
|
|
27255
27255
|
|
|
@@ -28754,8 +28754,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28754
28754
|
var config_namespaceObject = {};
|
|
28755
28755
|
__webpack_require__.r(config_namespaceObject);
|
|
28756
28756
|
__webpack_require__.d(config_namespaceObject, {
|
|
28757
|
-
bpmnType: function() { return
|
|
28758
|
-
definition: function() { return
|
|
28757
|
+
bpmnType: function() { return bpmnType; },
|
|
28758
|
+
definition: function() { return definition; },
|
|
28759
28759
|
diagram: function() { return config_diagram; },
|
|
28760
28760
|
id: function() { return config_id; }
|
|
28761
28761
|
});
|
|
@@ -28764,8 +28764,8 @@ __webpack_require__.d(config_namespaceObject, {
|
|
|
28764
28764
|
var dataInputAssociation_config_namespaceObject = {};
|
|
28765
28765
|
__webpack_require__.r(dataInputAssociation_config_namespaceObject);
|
|
28766
28766
|
__webpack_require__.d(dataInputAssociation_config_namespaceObject, {
|
|
28767
|
-
bpmnType: function() { return
|
|
28768
|
-
definition: function() { return
|
|
28767
|
+
bpmnType: function() { return config_bpmnType; },
|
|
28768
|
+
definition: function() { return config_definition; },
|
|
28769
28769
|
diagram: function() { return dataInputAssociation_config_diagram; },
|
|
28770
28770
|
id: function() { return dataInputAssociation_config_id; }
|
|
28771
28771
|
});
|
|
@@ -32683,6 +32683,288 @@ function removeRef(state, ref, callBack) {
|
|
|
32683
32683
|
}
|
|
32684
32684
|
}
|
|
32685
32685
|
}));
|
|
32686
|
+
// EXTERNAL MODULE: external "lodash"
|
|
32687
|
+
var external_lodash_ = __webpack_require__(50467);
|
|
32688
|
+
var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_);
|
|
32689
|
+
;// CONCATENATED MODULE: ./src/components/nodes/dataOutputAssociation/config.js
|
|
32690
|
+
var config_id = 'processmaker-modeler-data-output-association';
|
|
32691
|
+
var bpmnType = 'bpmn:DataOutputAssociation';
|
|
32692
|
+
function definition(moddle) {
|
|
32693
|
+
return moddle.create('bpmn:DataOutputAssociation', {
|
|
32694
|
+
targetRef: {
|
|
32695
|
+
x: undefined,
|
|
32696
|
+
y: undefined
|
|
32697
|
+
}
|
|
32698
|
+
});
|
|
32699
|
+
}
|
|
32700
|
+
function config_diagram(moddle) {
|
|
32701
|
+
return moddle.create('bpmndi:BPMNEdge');
|
|
32702
|
+
}
|
|
32703
|
+
;// CONCATENATED MODULE: ./src/components/nodes/dataInputAssociation/config.js
|
|
32704
|
+
var dataInputAssociation_config_id = 'processmaker-modeler-data-input-association';
|
|
32705
|
+
var config_bpmnType = 'bpmn:DataInputAssociation';
|
|
32706
|
+
function config_definition(moddle) {
|
|
32707
|
+
return moddle.create('bpmn:DataInputAssociation', {
|
|
32708
|
+
targetRef: {
|
|
32709
|
+
x: undefined,
|
|
32710
|
+
y: undefined
|
|
32711
|
+
}
|
|
32712
|
+
});
|
|
32713
|
+
}
|
|
32714
|
+
function dataInputAssociation_config_diagram(moddle) {
|
|
32715
|
+
return moddle.create('bpmndi:BPMNEdge');
|
|
32716
|
+
}
|
|
32717
|
+
;// CONCATENATED MODULE: ./src/components/crown/utils.js
|
|
32718
|
+
|
|
32719
|
+
|
|
32720
|
+
|
|
32721
|
+
|
|
32722
|
+
|
|
32723
|
+
|
|
32724
|
+
|
|
32725
|
+
|
|
32726
|
+
|
|
32727
|
+
function removeFlows(graph, shape) {
|
|
32728
|
+
var _this = this;
|
|
32729
|
+
var linkShapes = graph.getConnectedLinks(shape);
|
|
32730
|
+
linkShapes.forEach(function (shape) {
|
|
32731
|
+
return _this.$emit('remove-node', shape.component.node);
|
|
32732
|
+
});
|
|
32733
|
+
}
|
|
32734
|
+
|
|
32735
|
+
// Remove the incoming and outgoing flows of a node
|
|
32736
|
+
function removeNodeFlows(node, modeler) {
|
|
32737
|
+
if (node.definition.incoming) {
|
|
32738
|
+
node.definition.incoming.forEach(function (flow) {
|
|
32739
|
+
var node = modeler.nodes.find(function (node) {
|
|
32740
|
+
return node.definition === flow;
|
|
32741
|
+
});
|
|
32742
|
+
modeler.removeNode(node);
|
|
32743
|
+
});
|
|
32744
|
+
}
|
|
32745
|
+
if (node.definition.outgoing) {
|
|
32746
|
+
node.definition.outgoing.forEach(function (flow) {
|
|
32747
|
+
var node = modeler.nodes.find(function (node) {
|
|
32748
|
+
return node.definition === flow;
|
|
32749
|
+
});
|
|
32750
|
+
modeler.removeNode(node);
|
|
32751
|
+
});
|
|
32752
|
+
}
|
|
32753
|
+
}
|
|
32754
|
+
// Remove the associations of a node
|
|
32755
|
+
function removeNodeMessageFlows(node, modeler) {
|
|
32756
|
+
var linkedMessages = modeler.nodes.filter(function (n) {
|
|
32757
|
+
if (n.definition.sourceRef) {
|
|
32758
|
+
if (n.definition.sourceRef === node.definition) {
|
|
32759
|
+
return true;
|
|
32760
|
+
}
|
|
32761
|
+
}
|
|
32762
|
+
if (n.definition.targetRef) {
|
|
32763
|
+
if (n.definition.targetRef === node.definition) {
|
|
32764
|
+
return true;
|
|
32765
|
+
}
|
|
32766
|
+
}
|
|
32767
|
+
});
|
|
32768
|
+
linkedMessages.forEach(function (messageFlow) {
|
|
32769
|
+
modeler.removeNode(messageFlow);
|
|
32770
|
+
});
|
|
32771
|
+
}
|
|
32772
|
+
// Remove the associations of a node
|
|
32773
|
+
function removeNodeAssociations(node, modeler) {
|
|
32774
|
+
var linkedAssociations = modeler.nodes.filter(function (n) {
|
|
32775
|
+
if (n.definition.sourceRef) {
|
|
32776
|
+
if (n.definition.sourceRef === node.definition) {
|
|
32777
|
+
return true;
|
|
32778
|
+
}
|
|
32779
|
+
}
|
|
32780
|
+
if (n.definition.targetRef) {
|
|
32781
|
+
if (n.definition.targetRef === node.definition) {
|
|
32782
|
+
return true;
|
|
32783
|
+
}
|
|
32784
|
+
}
|
|
32785
|
+
});
|
|
32786
|
+
linkedAssociations.forEach(function (association) {
|
|
32787
|
+
modeler.removeNode(association);
|
|
32788
|
+
});
|
|
32789
|
+
}
|
|
32790
|
+
function removeBoundaryEvents(graph, node, removeNode) {
|
|
32791
|
+
var nodeShape = graph.getCells().find(function (el) {
|
|
32792
|
+
return el.component && el.component.node === node;
|
|
32793
|
+
});
|
|
32794
|
+
if (nodeShape) {
|
|
32795
|
+
nodeShape.getEmbeddedCells({
|
|
32796
|
+
deep: true
|
|
32797
|
+
}).filter(function (cell) {
|
|
32798
|
+
return cell.component && cell.component.node.isBpmnType('bpmn:BoundaryEvent');
|
|
32799
|
+
}).forEach(function (boundaryEventShape) {
|
|
32800
|
+
graph.getConnectedLinks(boundaryEventShape).forEach(function (shape) {
|
|
32801
|
+
return removeNode(shape.component.node);
|
|
32802
|
+
});
|
|
32803
|
+
removeNode(boundaryEventShape.component.node);
|
|
32804
|
+
});
|
|
32805
|
+
}
|
|
32806
|
+
}
|
|
32807
|
+
function removeOutgoingAndIncomingRefsToFlow(node) {
|
|
32808
|
+
if (node.isBpmnType(bpmnType, config_bpmnType)) {
|
|
32809
|
+
return;
|
|
32810
|
+
}
|
|
32811
|
+
|
|
32812
|
+
/* Modify source and target refs to remove incoming and outgoing properties pointing to this link */
|
|
32813
|
+
var _node$definition = node.definition,
|
|
32814
|
+
sourceRef = _node$definition.sourceRef,
|
|
32815
|
+
targetRef = _node$definition.targetRef;
|
|
32816
|
+
if (sourceRef) {
|
|
32817
|
+
(0,external_lodash_.pull)(sourceRef.get('outgoing'), node.definition);
|
|
32818
|
+
}
|
|
32819
|
+
|
|
32820
|
+
/* If targetRef is defined, it could be a point or another element.
|
|
32821
|
+
* If targetRef has an id, that means it's an element and the reference to it
|
|
32822
|
+
* can be safely removed. */
|
|
32823
|
+
if (targetRef && targetRef.id) {
|
|
32824
|
+
(0,external_lodash_.pull)(targetRef.get('incoming'), node.definition);
|
|
32825
|
+
}
|
|
32826
|
+
}
|
|
32827
|
+
function removeSourceDefault(node) {
|
|
32828
|
+
var defaultId = (0,external_lodash_.get)(node, 'definition.sourceRef.default.id', null);
|
|
32829
|
+
if (defaultId && defaultId === node.id) {
|
|
32830
|
+
// unset this node as the source's default
|
|
32831
|
+
node.definition.sourceRef.set('default', null);
|
|
32832
|
+
}
|
|
32833
|
+
}
|
|
32834
|
+
function getOrFindDataInput(moddle, task, sourceNode) {
|
|
32835
|
+
if (sourceNode.$type !== 'bpmn:DataObjectReference' && sourceNode.$type !== 'bpmn:DataStoreReference') {
|
|
32836
|
+
throw 'Source node must be a DataObjectReference or bpmn:DataStoreReference, got ' + sourceNode.$type;
|
|
32837
|
+
}
|
|
32838
|
+
var sourceNodeId = sourceNode.id;
|
|
32839
|
+
var dataInputId = "data_input_".concat(sourceNodeId);
|
|
32840
|
+
// Check if ioSpecification exists
|
|
32841
|
+
if (!task.definition.ioSpecification) {
|
|
32842
|
+
task.definition.ioSpecification = moddle.create('bpmn:InputOutputSpecification', {
|
|
32843
|
+
dataInputs: [],
|
|
32844
|
+
dataOutputs: [],
|
|
32845
|
+
inputSets: [],
|
|
32846
|
+
outputSets: []
|
|
32847
|
+
});
|
|
32848
|
+
task.definition.ioSpecification.$parent = task.definition;
|
|
32849
|
+
}
|
|
32850
|
+
// Check if dataInput exists
|
|
32851
|
+
if (!task.definition.ioSpecification.dataInputs) {
|
|
32852
|
+
task.definition.ioSpecification.set('dataInputs', []);
|
|
32853
|
+
}
|
|
32854
|
+
var dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
|
|
32855
|
+
return input.id === dataInputId;
|
|
32856
|
+
});
|
|
32857
|
+
if (!dataInput) {
|
|
32858
|
+
task.definition.ioSpecification.dataInputs.push(moddle.create('bpmn:DataInput', {
|
|
32859
|
+
id: dataInputId,
|
|
32860
|
+
isCollection: 'false',
|
|
32861
|
+
name: sourceNode.name
|
|
32862
|
+
}));
|
|
32863
|
+
task.definition.ioSpecification.dataInputs[task.definition.ioSpecification.dataInputs.length - 1].$parent = task.definition.ioSpecification;
|
|
32864
|
+
task.definition.ioSpecification.set('dataInputs', task.definition.ioSpecification.dataInputs);
|
|
32865
|
+
}
|
|
32866
|
+
dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
|
|
32867
|
+
return input.id === dataInputId;
|
|
32868
|
+
});
|
|
32869
|
+
// Check if outputSet exists
|
|
32870
|
+
if (!task.definition.ioSpecification.outputSets) {
|
|
32871
|
+
task.definition.ioSpecification.set('outputSets', [moddle.create('bpmn:OutputSet', {
|
|
32872
|
+
dataOutputRefs: []
|
|
32873
|
+
})]);
|
|
32874
|
+
}
|
|
32875
|
+
var outputSet = task.definition.ioSpecification.outputSets[0];
|
|
32876
|
+
if (!outputSet) {
|
|
32877
|
+
task.definition.ioSpecification.set('outputSets', [moddle.create('bpmn:OutputSet', {
|
|
32878
|
+
dataOutputRefs: []
|
|
32879
|
+
})]);
|
|
32880
|
+
}
|
|
32881
|
+
outputSet = task.definition.ioSpecification.outputSets[0];
|
|
32882
|
+
// Check if inputSet exists
|
|
32883
|
+
if (!task.definition.ioSpecification.inputSets) {
|
|
32884
|
+
task.definition.ioSpecification.set('inputSets', [moddle.create('bpmn:InputSet', {
|
|
32885
|
+
dataInputRefs: []
|
|
32886
|
+
})]);
|
|
32887
|
+
}
|
|
32888
|
+
var inputSet = task.definition.ioSpecification.inputSets[0];
|
|
32889
|
+
if (!inputSet) {
|
|
32890
|
+
task.definition.ioSpecification.set('inputSets', [moddle.create('bpmn:InputSet', {
|
|
32891
|
+
dataInputRefs: []
|
|
32892
|
+
})]);
|
|
32893
|
+
}
|
|
32894
|
+
inputSet = task.definition.ioSpecification.inputSets[0];
|
|
32895
|
+
// Check if dataInputRef exists
|
|
32896
|
+
var dataInputRef = inputSet.get('dataInputRefs').find(function (ref) {
|
|
32897
|
+
return ref.id === dataInputId;
|
|
32898
|
+
});
|
|
32899
|
+
if (!dataInputRef) {
|
|
32900
|
+
inputSet.dataInputRefs.push(dataInput);
|
|
32901
|
+
}
|
|
32902
|
+
return dataInput;
|
|
32903
|
+
}
|
|
32904
|
+
function findIOSpecificationOwner(ioSpec, modeler) {
|
|
32905
|
+
var owner = ioSpec.$parent;
|
|
32906
|
+
if (!owner) {
|
|
32907
|
+
var _modeler$nodes$find;
|
|
32908
|
+
return (_modeler$nodes$find = modeler.nodes.find(function (node) {
|
|
32909
|
+
var _node$definition$ioSp;
|
|
32910
|
+
return node.definition.ioSpecification === ioSpec || ((_node$definition$ioSp = node.definition.ioSpecification) === null || _node$definition$ioSp === void 0 ? void 0 : _node$definition$ioSp.id) === ioSpec.id;
|
|
32911
|
+
})) === null || _modeler$nodes$find === void 0 ? void 0 : _modeler$nodes$find.definition;
|
|
32912
|
+
}
|
|
32913
|
+
return owner;
|
|
32914
|
+
}
|
|
32915
|
+
function removeDataInput(task, sourceNode) {
|
|
32916
|
+
if (sourceNode.$type !== 'bpmn:DataObjectReference' && sourceNode.$type !== 'bpmn:DataStoreReference') {
|
|
32917
|
+
throw 'Source node must be a DataObjectReference or bpmn:DataStoreReference, got ' + sourceNode.$type;
|
|
32918
|
+
}
|
|
32919
|
+
var sourceNodeId = sourceNode.id;
|
|
32920
|
+
var dataInputId = "data_input_".concat(sourceNodeId);
|
|
32921
|
+
// Check if ioSpecification exists
|
|
32922
|
+
if (!task.definition.ioSpecification) {
|
|
32923
|
+
return;
|
|
32924
|
+
}
|
|
32925
|
+
// Check if dataInput exists
|
|
32926
|
+
if (!task.definition.ioSpecification.dataInputs) {
|
|
32927
|
+
return;
|
|
32928
|
+
}
|
|
32929
|
+
var dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
|
|
32930
|
+
return input.id === dataInputId;
|
|
32931
|
+
});
|
|
32932
|
+
if (!dataInput) {
|
|
32933
|
+
return;
|
|
32934
|
+
}
|
|
32935
|
+
// remove dataInput from dataInputs
|
|
32936
|
+
(0,external_lodash_.pull)(task.definition.ioSpecification.dataInputs, dataInput);
|
|
32937
|
+
// Check if inputSet exists
|
|
32938
|
+
if (!task.definition.ioSpecification.inputSets) {
|
|
32939
|
+
return;
|
|
32940
|
+
}
|
|
32941
|
+
var inputSet = task.definition.ioSpecification.inputSets[0];
|
|
32942
|
+
if (!inputSet) {
|
|
32943
|
+
return;
|
|
32944
|
+
}
|
|
32945
|
+
// Check if dataInputRef exists
|
|
32946
|
+
var dataInputRef = inputSet.dataInputRefs.find(function (ref) {
|
|
32947
|
+
return ref.id === dataInputId;
|
|
32948
|
+
});
|
|
32949
|
+
if (dataInputRef) {
|
|
32950
|
+
(0,external_lodash_.pull)(inputSet.dataInputRefs, dataInputRef);
|
|
32951
|
+
}
|
|
32952
|
+
// Remove inputSets if it is empty (without any dataInputRefs)
|
|
32953
|
+
if (inputSet.dataInputRefs.length === 0) {
|
|
32954
|
+
delete task.definition.ioSpecification.inputSets;
|
|
32955
|
+
}
|
|
32956
|
+
// Remove outputSets if it is empty (without any dataOutputRefs)
|
|
32957
|
+
if (task.definition.ioSpecification.outputSets) {
|
|
32958
|
+
var outputSet = task.definition.ioSpecification.outputSets[0];
|
|
32959
|
+
if (outputSet && (!outputSet.dataOutputRefs || outputSet.dataOutputRefs.length === 0)) {
|
|
32960
|
+
delete task.definition.ioSpecification.outputSets;
|
|
32961
|
+
}
|
|
32962
|
+
}
|
|
32963
|
+
// Remove ioSpecification if it is empty (without outputSets and inputSets)
|
|
32964
|
+
if (!task.definition.ioSpecification.inputSets && !task.definition.ioSpecification.outputSets) {
|
|
32965
|
+
delete task.definition.ioSpecification;
|
|
32966
|
+
}
|
|
32967
|
+
}
|
|
32686
32968
|
;// CONCATENATED MODULE: ./src/components/highlightColors.js
|
|
32687
32969
|
var COLOR_DEFAULT = '#5096db';
|
|
32688
32970
|
var COLOR_ERROR = '#FF0000';
|
|
@@ -32709,6 +32991,10 @@ var COLOR_COMPLETED_FILL = '#D6FFE6';
|
|
|
32709
32991
|
|
|
32710
32992
|
|
|
32711
32993
|
|
|
32994
|
+
|
|
32995
|
+
|
|
32996
|
+
|
|
32997
|
+
|
|
32712
32998
|
|
|
32713
32999
|
|
|
32714
33000
|
|
|
@@ -32945,7 +33231,7 @@ function isPoint(item) {
|
|
|
32945
33231
|
pointerUpHandler: function pointerUpHandler() {
|
|
32946
33232
|
var _this5 = this;
|
|
32947
33233
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32948
|
-
var targetChanged, _this5$isValid, targetNode, targetConfig, isValid;
|
|
33234
|
+
var targetChanged, _this5$isValid, targetNode, targetConfig, isValid, _this5$node$diagram$w, waypoint;
|
|
32949
33235
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32950
33236
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32951
33237
|
case 0:
|
|
@@ -32958,7 +33244,7 @@ function isPoint(item) {
|
|
|
32958
33244
|
// Check if the target shape has changed.
|
|
32959
33245
|
targetChanged = _this5.target.id !== _this5.currentTarget.id;
|
|
32960
33246
|
if (!targetChanged) {
|
|
32961
|
-
_context2.next =
|
|
33247
|
+
_context2.next = 24;
|
|
32962
33248
|
break;
|
|
32963
33249
|
}
|
|
32964
33250
|
// Disable the 'onChange' event to prevent redundant processing.
|
|
@@ -32972,9 +33258,10 @@ function isPoint(item) {
|
|
|
32972
33258
|
targetConfig: targetConfig
|
|
32973
33259
|
}); // If the flow is valid, update the target and related information.
|
|
32974
33260
|
if (!isValid) {
|
|
32975
|
-
_context2.next =
|
|
33261
|
+
_context2.next = 21;
|
|
32976
33262
|
break;
|
|
32977
33263
|
}
|
|
33264
|
+
removeOutgoingAndIncomingRefsToFlow(_this5.node);
|
|
32978
33265
|
_this5.setTarget(_this5.currentTarget);
|
|
32979
33266
|
_this5.target = _this5.currentTarget;
|
|
32980
33267
|
// Optionally update definition links.
|
|
@@ -32983,21 +33270,36 @@ function isPoint(item) {
|
|
|
32983
33270
|
}
|
|
32984
33271
|
_this5.listeningToMouseleave = true;
|
|
32985
33272
|
// Store waypoints asynchronously.
|
|
32986
|
-
_context2.next =
|
|
33273
|
+
_context2.next = 16;
|
|
32987
33274
|
return _this5.storeWaypoints();
|
|
32988
|
-
case
|
|
32989
|
-
|
|
33275
|
+
case 16:
|
|
33276
|
+
waypoint = [];
|
|
33277
|
+
(_this5$node$diagram$w = _this5.node.diagram.waypoint) === null || _this5$node$diagram$w === void 0 || _this5$node$diagram$w.forEach(function (point) {
|
|
33278
|
+
waypoint.push({
|
|
33279
|
+
x: point.x,
|
|
33280
|
+
y: point.y
|
|
33281
|
+
});
|
|
33282
|
+
});
|
|
33283
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-updateFlows', [{
|
|
33284
|
+
id: _this5.node.definition.id,
|
|
33285
|
+
type: _this5.node.type,
|
|
33286
|
+
name: _this5.node.definition.name,
|
|
33287
|
+
waypoint: waypoint,
|
|
33288
|
+
sourceRefId: _this5.node.definition.sourceRef.id,
|
|
33289
|
+
targetRefId: _this5.node.definition.targetRef.id
|
|
33290
|
+
}]);
|
|
33291
|
+
_context2.next = 22;
|
|
32990
33292
|
break;
|
|
32991
|
-
case
|
|
33293
|
+
case 21:
|
|
32992
33294
|
// If the flow is not valid, revert to the previous target.
|
|
32993
33295
|
_this5.setTarget(_this5.target);
|
|
32994
|
-
case
|
|
32995
|
-
_context2.next =
|
|
33296
|
+
case 22:
|
|
33297
|
+
_context2.next = 25;
|
|
32996
33298
|
break;
|
|
32997
|
-
case
|
|
33299
|
+
case 24:
|
|
32998
33300
|
// the target was not changed, set the target with the anchor offset.
|
|
32999
33301
|
_this5.setTarget(_this5.target, _this5.getAnchorOffset());
|
|
33000
|
-
case
|
|
33302
|
+
case 25:
|
|
33001
33303
|
case "end":
|
|
33002
33304
|
return _context2.stop();
|
|
33003
33305
|
}
|
|
@@ -33308,14 +33610,14 @@ function isPoint(item) {
|
|
|
33308
33610
|
var association_head_namespaceObject = __webpack_require__.p + "img/association-head.0b14da7b.svg";
|
|
33309
33611
|
;// CONCATENATED MODULE: ./src/components/nodes/association/associationConfig.js
|
|
33310
33612
|
var associationConfig_id = 'processmaker-modeler-association';
|
|
33311
|
-
var
|
|
33613
|
+
var associationConfig_bpmnType = 'bpmn:Association';
|
|
33312
33614
|
var direction = {
|
|
33313
33615
|
none: 'None',
|
|
33314
33616
|
one: 'One',
|
|
33315
33617
|
both: 'Both'
|
|
33316
33618
|
};
|
|
33317
|
-
function
|
|
33318
|
-
return moddle.create(
|
|
33619
|
+
function associationConfig_definition(moddle) {
|
|
33620
|
+
return moddle.create(associationConfig_bpmnType, {
|
|
33319
33621
|
associationDirection: direction.none,
|
|
33320
33622
|
targetRef: {
|
|
33321
33623
|
x: undefined,
|
|
@@ -33758,288 +34060,6 @@ var deleteButtonvue_type_template_id_59648d83_render = function render() {
|
|
|
33758
34060
|
};
|
|
33759
34061
|
var deleteButtonvue_type_template_id_59648d83_staticRenderFns = [];
|
|
33760
34062
|
|
|
33761
|
-
// EXTERNAL MODULE: external "lodash"
|
|
33762
|
-
var external_lodash_ = __webpack_require__(50467);
|
|
33763
|
-
var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_);
|
|
33764
|
-
;// CONCATENATED MODULE: ./src/components/nodes/dataOutputAssociation/config.js
|
|
33765
|
-
var config_id = 'processmaker-modeler-data-output-association';
|
|
33766
|
-
var config_bpmnType = 'bpmn:DataOutputAssociation';
|
|
33767
|
-
function config_definition(moddle) {
|
|
33768
|
-
return moddle.create('bpmn:DataOutputAssociation', {
|
|
33769
|
-
targetRef: {
|
|
33770
|
-
x: undefined,
|
|
33771
|
-
y: undefined
|
|
33772
|
-
}
|
|
33773
|
-
});
|
|
33774
|
-
}
|
|
33775
|
-
function config_diagram(moddle) {
|
|
33776
|
-
return moddle.create('bpmndi:BPMNEdge');
|
|
33777
|
-
}
|
|
33778
|
-
;// CONCATENATED MODULE: ./src/components/nodes/dataInputAssociation/config.js
|
|
33779
|
-
var dataInputAssociation_config_id = 'processmaker-modeler-data-input-association';
|
|
33780
|
-
var dataInputAssociation_config_bpmnType = 'bpmn:DataInputAssociation';
|
|
33781
|
-
function dataInputAssociation_config_definition(moddle) {
|
|
33782
|
-
return moddle.create('bpmn:DataInputAssociation', {
|
|
33783
|
-
targetRef: {
|
|
33784
|
-
x: undefined,
|
|
33785
|
-
y: undefined
|
|
33786
|
-
}
|
|
33787
|
-
});
|
|
33788
|
-
}
|
|
33789
|
-
function dataInputAssociation_config_diagram(moddle) {
|
|
33790
|
-
return moddle.create('bpmndi:BPMNEdge');
|
|
33791
|
-
}
|
|
33792
|
-
;// CONCATENATED MODULE: ./src/components/crown/utils.js
|
|
33793
|
-
|
|
33794
|
-
|
|
33795
|
-
|
|
33796
|
-
|
|
33797
|
-
|
|
33798
|
-
|
|
33799
|
-
|
|
33800
|
-
|
|
33801
|
-
|
|
33802
|
-
function removeFlows(graph, shape) {
|
|
33803
|
-
var _this = this;
|
|
33804
|
-
var linkShapes = graph.getConnectedLinks(shape);
|
|
33805
|
-
linkShapes.forEach(function (shape) {
|
|
33806
|
-
return _this.$emit('remove-node', shape.component.node);
|
|
33807
|
-
});
|
|
33808
|
-
}
|
|
33809
|
-
|
|
33810
|
-
// Remove the incoming and outgoing flows of a node
|
|
33811
|
-
function removeNodeFlows(node, modeler) {
|
|
33812
|
-
if (node.definition.incoming) {
|
|
33813
|
-
node.definition.incoming.forEach(function (flow) {
|
|
33814
|
-
var node = modeler.nodes.find(function (node) {
|
|
33815
|
-
return node.definition === flow;
|
|
33816
|
-
});
|
|
33817
|
-
modeler.removeNode(node);
|
|
33818
|
-
});
|
|
33819
|
-
}
|
|
33820
|
-
if (node.definition.outgoing) {
|
|
33821
|
-
node.definition.outgoing.forEach(function (flow) {
|
|
33822
|
-
var node = modeler.nodes.find(function (node) {
|
|
33823
|
-
return node.definition === flow;
|
|
33824
|
-
});
|
|
33825
|
-
modeler.removeNode(node);
|
|
33826
|
-
});
|
|
33827
|
-
}
|
|
33828
|
-
}
|
|
33829
|
-
// Remove the associations of a node
|
|
33830
|
-
function removeNodeMessageFlows(node, modeler) {
|
|
33831
|
-
var linkedMessages = modeler.nodes.filter(function (n) {
|
|
33832
|
-
if (n.definition.sourceRef) {
|
|
33833
|
-
if (n.definition.sourceRef === node.definition) {
|
|
33834
|
-
return true;
|
|
33835
|
-
}
|
|
33836
|
-
}
|
|
33837
|
-
if (n.definition.targetRef) {
|
|
33838
|
-
if (n.definition.targetRef === node.definition) {
|
|
33839
|
-
return true;
|
|
33840
|
-
}
|
|
33841
|
-
}
|
|
33842
|
-
});
|
|
33843
|
-
linkedMessages.forEach(function (messageFlow) {
|
|
33844
|
-
modeler.removeNode(messageFlow);
|
|
33845
|
-
});
|
|
33846
|
-
}
|
|
33847
|
-
// Remove the associations of a node
|
|
33848
|
-
function removeNodeAssociations(node, modeler) {
|
|
33849
|
-
var linkedAssociations = modeler.nodes.filter(function (n) {
|
|
33850
|
-
if (n.definition.sourceRef) {
|
|
33851
|
-
if (n.definition.sourceRef === node.definition) {
|
|
33852
|
-
return true;
|
|
33853
|
-
}
|
|
33854
|
-
}
|
|
33855
|
-
if (n.definition.targetRef) {
|
|
33856
|
-
if (n.definition.targetRef === node.definition) {
|
|
33857
|
-
return true;
|
|
33858
|
-
}
|
|
33859
|
-
}
|
|
33860
|
-
});
|
|
33861
|
-
linkedAssociations.forEach(function (association) {
|
|
33862
|
-
modeler.removeNode(association);
|
|
33863
|
-
});
|
|
33864
|
-
}
|
|
33865
|
-
function removeBoundaryEvents(graph, node, removeNode) {
|
|
33866
|
-
var nodeShape = graph.getCells().find(function (el) {
|
|
33867
|
-
return el.component && el.component.node === node;
|
|
33868
|
-
});
|
|
33869
|
-
if (nodeShape) {
|
|
33870
|
-
nodeShape.getEmbeddedCells({
|
|
33871
|
-
deep: true
|
|
33872
|
-
}).filter(function (cell) {
|
|
33873
|
-
return cell.component && cell.component.node.isBpmnType('bpmn:BoundaryEvent');
|
|
33874
|
-
}).forEach(function (boundaryEventShape) {
|
|
33875
|
-
graph.getConnectedLinks(boundaryEventShape).forEach(function (shape) {
|
|
33876
|
-
return removeNode(shape.component.node);
|
|
33877
|
-
});
|
|
33878
|
-
removeNode(boundaryEventShape.component.node);
|
|
33879
|
-
});
|
|
33880
|
-
}
|
|
33881
|
-
}
|
|
33882
|
-
function removeOutgoingAndIncomingRefsToFlow(node) {
|
|
33883
|
-
if (node.isBpmnType(config_bpmnType, dataInputAssociation_config_bpmnType)) {
|
|
33884
|
-
return;
|
|
33885
|
-
}
|
|
33886
|
-
|
|
33887
|
-
/* Modify source and target refs to remove incoming and outgoing properties pointing to this link */
|
|
33888
|
-
var _node$definition = node.definition,
|
|
33889
|
-
sourceRef = _node$definition.sourceRef,
|
|
33890
|
-
targetRef = _node$definition.targetRef;
|
|
33891
|
-
if (sourceRef) {
|
|
33892
|
-
(0,external_lodash_.pull)(sourceRef.get('outgoing'), node.definition);
|
|
33893
|
-
}
|
|
33894
|
-
|
|
33895
|
-
/* If targetRef is defined, it could be a point or another element.
|
|
33896
|
-
* If targetRef has an id, that means it's an element and the reference to it
|
|
33897
|
-
* can be safely removed. */
|
|
33898
|
-
if (targetRef && targetRef.id) {
|
|
33899
|
-
(0,external_lodash_.pull)(targetRef.get('incoming'), node.definition);
|
|
33900
|
-
}
|
|
33901
|
-
}
|
|
33902
|
-
function removeSourceDefault(node) {
|
|
33903
|
-
var defaultId = (0,external_lodash_.get)(node, 'definition.sourceRef.default.id', null);
|
|
33904
|
-
if (defaultId && defaultId === node.id) {
|
|
33905
|
-
// unset this node as the source's default
|
|
33906
|
-
node.definition.sourceRef.set('default', null);
|
|
33907
|
-
}
|
|
33908
|
-
}
|
|
33909
|
-
function getOrFindDataInput(moddle, task, sourceNode) {
|
|
33910
|
-
if (sourceNode.$type !== 'bpmn:DataObjectReference' && sourceNode.$type !== 'bpmn:DataStoreReference') {
|
|
33911
|
-
throw 'Source node must be a DataObjectReference or bpmn:DataStoreReference, got ' + sourceNode.$type;
|
|
33912
|
-
}
|
|
33913
|
-
var sourceNodeId = sourceNode.id;
|
|
33914
|
-
var dataInputId = "data_input_".concat(sourceNodeId);
|
|
33915
|
-
// Check if ioSpecification exists
|
|
33916
|
-
if (!task.definition.ioSpecification) {
|
|
33917
|
-
task.definition.ioSpecification = moddle.create('bpmn:InputOutputSpecification', {
|
|
33918
|
-
dataInputs: [],
|
|
33919
|
-
dataOutputs: [],
|
|
33920
|
-
inputSets: [],
|
|
33921
|
-
outputSets: []
|
|
33922
|
-
});
|
|
33923
|
-
task.definition.ioSpecification.$parent = task.definition;
|
|
33924
|
-
}
|
|
33925
|
-
// Check if dataInput exists
|
|
33926
|
-
if (!task.definition.ioSpecification.dataInputs) {
|
|
33927
|
-
task.definition.ioSpecification.set('dataInputs', []);
|
|
33928
|
-
}
|
|
33929
|
-
var dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
|
|
33930
|
-
return input.id === dataInputId;
|
|
33931
|
-
});
|
|
33932
|
-
if (!dataInput) {
|
|
33933
|
-
task.definition.ioSpecification.dataInputs.push(moddle.create('bpmn:DataInput', {
|
|
33934
|
-
id: dataInputId,
|
|
33935
|
-
isCollection: 'false',
|
|
33936
|
-
name: sourceNode.name
|
|
33937
|
-
}));
|
|
33938
|
-
task.definition.ioSpecification.dataInputs[task.definition.ioSpecification.dataInputs.length - 1].$parent = task.definition.ioSpecification;
|
|
33939
|
-
task.definition.ioSpecification.set('dataInputs', task.definition.ioSpecification.dataInputs);
|
|
33940
|
-
}
|
|
33941
|
-
dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
|
|
33942
|
-
return input.id === dataInputId;
|
|
33943
|
-
});
|
|
33944
|
-
// Check if outputSet exists
|
|
33945
|
-
if (!task.definition.ioSpecification.outputSets) {
|
|
33946
|
-
task.definition.ioSpecification.set('outputSets', [moddle.create('bpmn:OutputSet', {
|
|
33947
|
-
dataOutputRefs: []
|
|
33948
|
-
})]);
|
|
33949
|
-
}
|
|
33950
|
-
var outputSet = task.definition.ioSpecification.outputSets[0];
|
|
33951
|
-
if (!outputSet) {
|
|
33952
|
-
task.definition.ioSpecification.set('outputSets', [moddle.create('bpmn:OutputSet', {
|
|
33953
|
-
dataOutputRefs: []
|
|
33954
|
-
})]);
|
|
33955
|
-
}
|
|
33956
|
-
outputSet = task.definition.ioSpecification.outputSets[0];
|
|
33957
|
-
// Check if inputSet exists
|
|
33958
|
-
if (!task.definition.ioSpecification.inputSets) {
|
|
33959
|
-
task.definition.ioSpecification.set('inputSets', [moddle.create('bpmn:InputSet', {
|
|
33960
|
-
dataInputRefs: []
|
|
33961
|
-
})]);
|
|
33962
|
-
}
|
|
33963
|
-
var inputSet = task.definition.ioSpecification.inputSets[0];
|
|
33964
|
-
if (!inputSet) {
|
|
33965
|
-
task.definition.ioSpecification.set('inputSets', [moddle.create('bpmn:InputSet', {
|
|
33966
|
-
dataInputRefs: []
|
|
33967
|
-
})]);
|
|
33968
|
-
}
|
|
33969
|
-
inputSet = task.definition.ioSpecification.inputSets[0];
|
|
33970
|
-
// Check if dataInputRef exists
|
|
33971
|
-
var dataInputRef = inputSet.get('dataInputRefs').find(function (ref) {
|
|
33972
|
-
return ref.id === dataInputId;
|
|
33973
|
-
});
|
|
33974
|
-
if (!dataInputRef) {
|
|
33975
|
-
inputSet.dataInputRefs.push(dataInput);
|
|
33976
|
-
}
|
|
33977
|
-
return dataInput;
|
|
33978
|
-
}
|
|
33979
|
-
function findIOSpecificationOwner(ioSpec, modeler) {
|
|
33980
|
-
var owner = ioSpec.$parent;
|
|
33981
|
-
if (!owner) {
|
|
33982
|
-
var _modeler$nodes$find;
|
|
33983
|
-
return (_modeler$nodes$find = modeler.nodes.find(function (node) {
|
|
33984
|
-
var _node$definition$ioSp;
|
|
33985
|
-
return node.definition.ioSpecification === ioSpec || ((_node$definition$ioSp = node.definition.ioSpecification) === null || _node$definition$ioSp === void 0 ? void 0 : _node$definition$ioSp.id) === ioSpec.id;
|
|
33986
|
-
})) === null || _modeler$nodes$find === void 0 ? void 0 : _modeler$nodes$find.definition;
|
|
33987
|
-
}
|
|
33988
|
-
return owner;
|
|
33989
|
-
}
|
|
33990
|
-
function removeDataInput(task, sourceNode) {
|
|
33991
|
-
if (sourceNode.$type !== 'bpmn:DataObjectReference' && sourceNode.$type !== 'bpmn:DataStoreReference') {
|
|
33992
|
-
throw 'Source node must be a DataObjectReference or bpmn:DataStoreReference, got ' + sourceNode.$type;
|
|
33993
|
-
}
|
|
33994
|
-
var sourceNodeId = sourceNode.id;
|
|
33995
|
-
var dataInputId = "data_input_".concat(sourceNodeId);
|
|
33996
|
-
// Check if ioSpecification exists
|
|
33997
|
-
if (!task.definition.ioSpecification) {
|
|
33998
|
-
return;
|
|
33999
|
-
}
|
|
34000
|
-
// Check if dataInput exists
|
|
34001
|
-
if (!task.definition.ioSpecification.dataInputs) {
|
|
34002
|
-
return;
|
|
34003
|
-
}
|
|
34004
|
-
var dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
|
|
34005
|
-
return input.id === dataInputId;
|
|
34006
|
-
});
|
|
34007
|
-
if (!dataInput) {
|
|
34008
|
-
return;
|
|
34009
|
-
}
|
|
34010
|
-
// remove dataInput from dataInputs
|
|
34011
|
-
(0,external_lodash_.pull)(task.definition.ioSpecification.dataInputs, dataInput);
|
|
34012
|
-
// Check if inputSet exists
|
|
34013
|
-
if (!task.definition.ioSpecification.inputSets) {
|
|
34014
|
-
return;
|
|
34015
|
-
}
|
|
34016
|
-
var inputSet = task.definition.ioSpecification.inputSets[0];
|
|
34017
|
-
if (!inputSet) {
|
|
34018
|
-
return;
|
|
34019
|
-
}
|
|
34020
|
-
// Check if dataInputRef exists
|
|
34021
|
-
var dataInputRef = inputSet.dataInputRefs.find(function (ref) {
|
|
34022
|
-
return ref.id === dataInputId;
|
|
34023
|
-
});
|
|
34024
|
-
if (dataInputRef) {
|
|
34025
|
-
(0,external_lodash_.pull)(inputSet.dataInputRefs, dataInputRef);
|
|
34026
|
-
}
|
|
34027
|
-
// Remove inputSets if it is empty (without any dataInputRefs)
|
|
34028
|
-
if (inputSet.dataInputRefs.length === 0) {
|
|
34029
|
-
delete task.definition.ioSpecification.inputSets;
|
|
34030
|
-
}
|
|
34031
|
-
// Remove outputSets if it is empty (without any dataOutputRefs)
|
|
34032
|
-
if (task.definition.ioSpecification.outputSets) {
|
|
34033
|
-
var outputSet = task.definition.ioSpecification.outputSets[0];
|
|
34034
|
-
if (outputSet && (!outputSet.dataOutputRefs || outputSet.dataOutputRefs.length === 0)) {
|
|
34035
|
-
delete task.definition.ioSpecification.outputSets;
|
|
34036
|
-
}
|
|
34037
|
-
}
|
|
34038
|
-
// Remove ioSpecification if it is empty (without outputSets and inputSets)
|
|
34039
|
-
if (!task.definition.ioSpecification.inputSets && !task.definition.ioSpecification.outputSets) {
|
|
34040
|
-
delete task.definition.ioSpecification;
|
|
34041
|
-
}
|
|
34042
|
-
}
|
|
34043
34063
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/deleteButton.vue?vue&type=script&lang=js&
|
|
34044
34064
|
|
|
34045
34065
|
|
|
@@ -37191,7 +37211,7 @@ var AssociationFlow = /*#__PURE__*/function () {
|
|
|
37191
37211
|
value: function makeFlowNode(sourceShape, targetShape, waypoint) {
|
|
37192
37212
|
var _this = this;
|
|
37193
37213
|
var diagram = associationConfig_diagram(this.moddle);
|
|
37194
|
-
var associationFlow =
|
|
37214
|
+
var associationFlow = associationConfig_definition(this.moddle);
|
|
37195
37215
|
associationFlow.set('sourceRef', sourceShape.component.node.definition);
|
|
37196
37216
|
associationFlow.set('targetRef', targetShape.component.node.definition);
|
|
37197
37217
|
diagram.waypoint = waypoint.map(function (point) {
|
|
@@ -37214,9 +37234,9 @@ var AssociationFlow = /*#__PURE__*/function () {
|
|
|
37214
37234
|
/* harmony default export */ var nodes_association = ({
|
|
37215
37235
|
id: associationConfig_id,
|
|
37216
37236
|
component: association,
|
|
37217
|
-
bpmnType:
|
|
37237
|
+
bpmnType: associationConfig_bpmnType,
|
|
37218
37238
|
control: false,
|
|
37219
|
-
definition:
|
|
37239
|
+
definition: associationConfig_definition,
|
|
37220
37240
|
diagram: associationConfig_diagram,
|
|
37221
37241
|
inspectorConfig: [{
|
|
37222
37242
|
name: 'Data Association',
|
|
@@ -48556,10 +48576,10 @@ var ValidationStatus_component = normalizeComponent(
|
|
|
48556
48576
|
)
|
|
48557
48577
|
|
|
48558
48578
|
/* harmony default export */ var ValidationStatus = (ValidationStatus_component.exports);
|
|
48559
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Modeler.vue?vue&type=template&id=
|
|
48579
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Modeler.vue?vue&type=template&id=0eb1d90b&
|
|
48560
48580
|
|
|
48561
48581
|
|
|
48562
|
-
var
|
|
48582
|
+
var Modelervue_type_template_id_0eb1d90b_render = function render() {
|
|
48563
48583
|
var _vm = this,
|
|
48564
48584
|
_c = _vm._self._c;
|
|
48565
48585
|
return _c('span', {
|
|
@@ -48851,9 +48871,9 @@ var Modelervue_type_template_id_6560a0bb_render = function render() {
|
|
|
48851
48871
|
});
|
|
48852
48872
|
})], 2)], 1);
|
|
48853
48873
|
};
|
|
48854
|
-
var
|
|
48874
|
+
var Modelervue_type_template_id_0eb1d90b_staticRenderFns = [];
|
|
48855
48875
|
|
|
48856
|
-
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=
|
|
48876
|
+
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=0eb1d90b&
|
|
48857
48877
|
|
|
48858
48878
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/boundaryEvent/boundaryEvent.vue?vue&type=template&id=728530a2&
|
|
48859
48879
|
var boundaryEventvue_type_template_id_728530a2_render = function render() {
|
|
@@ -54464,7 +54484,7 @@ var ToolBar_component = normalizeComponent(
|
|
|
54464
54484
|
|
|
54465
54485
|
function addNodeToProcess(node, targetProcess) {
|
|
54466
54486
|
var ignoredNodes = function ignoredNodes(node) {
|
|
54467
|
-
return node.isBpmnType('bpmn:MessageFlow',
|
|
54487
|
+
return node.isBpmnType('bpmn:MessageFlow', bpmnType, config_bpmnType) || node.isType('processmaker-modeler-pool');
|
|
54468
54488
|
};
|
|
54469
54489
|
if (ignoredNodes(node)) {
|
|
54470
54490
|
return;
|
|
@@ -55795,8 +55815,8 @@ var ALLOWED_ALTERNATE_TYPES = ['processmaker-modeler-task', 'processmaker-modele
|
|
|
55795
55815
|
}
|
|
55796
55816
|
}
|
|
55797
55817
|
});
|
|
55798
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/railBottom/RailBottom.vue?vue&type=template&id=
|
|
55799
|
-
var
|
|
55818
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/railBottom/RailBottom.vue?vue&type=template&id=1acea7b8&scoped=true&
|
|
55819
|
+
var RailBottomvue_type_template_id_1acea7b8_scoped_true_render = function render() {
|
|
55800
55820
|
var _vm = this,
|
|
55801
55821
|
_c = _vm._self._c;
|
|
55802
55822
|
return _c('div', {
|
|
@@ -55826,6 +55846,12 @@ var RailBottomvue_type_template_id_2a9e260d_scoped_true_render = function render
|
|
|
55826
55846
|
"paper-manager": _vm.paperManager
|
|
55827
55847
|
}
|
|
55828
55848
|
}), _c('PanControl', {
|
|
55849
|
+
directives: [{
|
|
55850
|
+
name: "show",
|
|
55851
|
+
rawName: "v-show",
|
|
55852
|
+
value: _vm.showComponent,
|
|
55853
|
+
expression: "showComponent"
|
|
55854
|
+
}],
|
|
55829
55855
|
attrs: {
|
|
55830
55856
|
"pan-mode": _vm.panMode
|
|
55831
55857
|
},
|
|
@@ -55877,7 +55903,7 @@ var RailBottomvue_type_template_id_2a9e260d_scoped_true_render = function render
|
|
|
55877
55903
|
}
|
|
55878
55904
|
})], 1)]);
|
|
55879
55905
|
};
|
|
55880
|
-
var
|
|
55906
|
+
var RailBottomvue_type_template_id_1acea7b8_scoped_true_staticRenderFns = [];
|
|
55881
55907
|
|
|
55882
55908
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/railBottom/miniPaperControl/MiniPaperControl.vue?vue&type=template&id=c47d089c&scoped=true&
|
|
55883
55909
|
var MiniPaperControlvue_type_template_id_c47d089c_scoped_true_render = function render() {
|
|
@@ -56983,9 +57009,9 @@ var Controls_component = normalizeComponent(
|
|
|
56983
57009
|
});
|
|
56984
57010
|
;// CONCATENATED MODULE: ./src/components/railBottom/RailBottom.vue?vue&type=script&lang=js&
|
|
56985
57011
|
/* harmony default export */ var railBottom_RailBottomvue_type_script_lang_js_ = (RailBottomvue_type_script_lang_js_);
|
|
56986
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.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-65.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./src/components/railBottom/railBottom.scss?vue&type=style&index=0&id=
|
|
56987
|
-
var
|
|
56988
|
-
;// CONCATENATED MODULE: ./src/components/railBottom/railBottom.scss?vue&type=style&index=0&id=
|
|
57012
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-65.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65.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-65.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65.use[4]!./src/components/railBottom/railBottom.scss?vue&type=style&index=0&id=1acea7b8&prod&lang=scss&scoped=true&
|
|
57013
|
+
var railBottomvue_type_style_index_0_id_1acea7b8_prod_lang_scss_scoped_true_ = __webpack_require__(42565);
|
|
57014
|
+
;// CONCATENATED MODULE: ./src/components/railBottom/railBottom.scss?vue&type=style&index=0&id=1acea7b8&prod&lang=scss&scoped=true&
|
|
56989
57015
|
|
|
56990
57016
|
;// CONCATENATED MODULE: ./src/components/railBottom/RailBottom.vue
|
|
56991
57017
|
|
|
@@ -56998,11 +57024,11 @@ var railBottomvue_type_style_index_0_id_2a9e260d_prod_lang_scss_scoped_true_ = _
|
|
|
56998
57024
|
|
|
56999
57025
|
var RailBottom_component = normalizeComponent(
|
|
57000
57026
|
railBottom_RailBottomvue_type_script_lang_js_,
|
|
57001
|
-
|
|
57002
|
-
|
|
57027
|
+
RailBottomvue_type_template_id_1acea7b8_scoped_true_render,
|
|
57028
|
+
RailBottomvue_type_template_id_1acea7b8_scoped_true_staticRenderFns,
|
|
57003
57029
|
false,
|
|
57004
57030
|
null,
|
|
57005
|
-
"
|
|
57031
|
+
"1acea7b8",
|
|
57006
57032
|
null
|
|
57007
57033
|
|
|
57008
57034
|
)
|
|
@@ -57055,7 +57081,7 @@ var DataOutputAssociation = /*#__PURE__*/function (_DataAssociation) {
|
|
|
57055
57081
|
value: function makeFlowNode(sourceShape, targetShape, waypoint) {
|
|
57056
57082
|
var _this = this;
|
|
57057
57083
|
var diagram = config_diagram(this.moddle);
|
|
57058
|
-
var dataOutputAssociation =
|
|
57084
|
+
var dataOutputAssociation = definition(this.moddle);
|
|
57059
57085
|
dataOutputAssociation.set('sourceRef', sourceShape.component.node.definition);
|
|
57060
57086
|
dataOutputAssociation.set('targetRef', targetShape.component.node.definition);
|
|
57061
57087
|
diagram.waypoint = waypoint.map(function (point) {
|
|
@@ -78141,6 +78167,7 @@ var ColorUtil = /*#__PURE__*/function () {
|
|
|
78141
78167
|
|
|
78142
78168
|
|
|
78143
78169
|
|
|
78170
|
+
|
|
78144
78171
|
|
|
78145
78172
|
|
|
78146
78173
|
var _nodeIdGenerator = /*#__PURE__*/new WeakMap();
|
|
@@ -79091,6 +79118,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
79091
79118
|
var remount = false;
|
|
79092
79119
|
var flow = this.getNodeById(data.id);
|
|
79093
79120
|
if (flow && data.sourceRefId) {
|
|
79121
|
+
removeOutgoingAndIncomingRefsToFlow(flow);
|
|
79094
79122
|
var sourceRef = this.getNodeById(data.sourceRefId);
|
|
79095
79123
|
var outgoing = sourceRef.definition.get('outgoing').find(function (element) {
|
|
79096
79124
|
return element.id === flow.definition.id;
|
|
@@ -81595,6 +81623,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
81595
81623
|
localStorage.promptSessionId = response.data.promptSessionId;
|
|
81596
81624
|
}).catch(function (error) {
|
|
81597
81625
|
var _error$response;
|
|
81626
|
+
console.log('error');
|
|
81598
81627
|
var errorMsg = ((_error$response = error.response) === null || _error$response === void 0 || (_error$response = _error$response.data) === null || _error$response === void 0 ? void 0 : _error$response.message) || error.message;
|
|
81599
81628
|
_this47.loading = false;
|
|
81600
81629
|
if (error.response.status === 404) {
|
|
@@ -81672,7 +81701,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
81672
81701
|
subscribeToProgress: function subscribeToProgress() {
|
|
81673
81702
|
var _window$ProcessMaker9,
|
|
81674
81703
|
_this49 = this;
|
|
81675
|
-
var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker9 = window.ProcessMaker) === null || _window$ProcessMaker9 === void 0 || (_window$ProcessMaker9 = _window$ProcessMaker9.
|
|
81704
|
+
var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker9 = window.ProcessMaker) === null || _window$ProcessMaker9 === void 0 || (_window$ProcessMaker9 = _window$ProcessMaker9.user) === null || _window$ProcessMaker9 === void 0 ? void 0 : _window$ProcessMaker9.id);
|
|
81676
81705
|
var streamProgressEvent = '.ProcessMaker\\Package\\PackageAi\\Events\\GenerateArtifactsProgressEvent';
|
|
81677
81706
|
if (!window.Echo) {
|
|
81678
81707
|
return;
|
|
@@ -81717,7 +81746,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
81717
81746
|
subscribeToGenerationCompleted: function subscribeToGenerationCompleted() {
|
|
81718
81747
|
var _window$ProcessMaker10,
|
|
81719
81748
|
_this50 = this;
|
|
81720
|
-
var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker10 = window.ProcessMaker) === null || _window$ProcessMaker10 === void 0 || (_window$ProcessMaker10 = _window$ProcessMaker10.
|
|
81749
|
+
var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker10 = window.ProcessMaker) === null || _window$ProcessMaker10 === void 0 || (_window$ProcessMaker10 = _window$ProcessMaker10.user) === null || _window$ProcessMaker10 === void 0 ? void 0 : _window$ProcessMaker10.id);
|
|
81721
81750
|
var streamCompletedEvent = '.ProcessMaker\\Package\\PackageAi\\Events\\GenerateArtifactsCompletedEvent';
|
|
81722
81751
|
window.Echo.private(channel).listen(streamCompletedEvent, function (response) {
|
|
81723
81752
|
if (response.data) {
|
|
@@ -81729,7 +81758,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
81729
81758
|
subscribeToErrors: function subscribeToErrors() {
|
|
81730
81759
|
var _window$ProcessMaker11,
|
|
81731
81760
|
_this51 = this;
|
|
81732
|
-
var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker11 = window.ProcessMaker) === null || _window$ProcessMaker11 === void 0 || (_window$ProcessMaker11 = _window$ProcessMaker11.
|
|
81761
|
+
var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker11 = window.ProcessMaker) === null || _window$ProcessMaker11 === void 0 || (_window$ProcessMaker11 = _window$ProcessMaker11.user) === null || _window$ProcessMaker11 === void 0 ? void 0 : _window$ProcessMaker11.id);
|
|
81733
81762
|
var streamProgressEvent = '.ProcessMaker\\Package\\PackageAi\\Events\\GenerateArtifactsErrorEvent';
|
|
81734
81763
|
window.Echo.private(channel).listen(streamProgressEvent, function () {
|
|
81735
81764
|
// Output error
|
|
@@ -81841,8 +81870,8 @@ var modelervue_type_style_index_0_prod_lang_scss_ = __webpack_require__(26695);
|
|
|
81841
81870
|
|
|
81842
81871
|
var Modeler_component = normalizeComponent(
|
|
81843
81872
|
modeler_Modelervue_type_script_lang_js_,
|
|
81844
|
-
|
|
81845
|
-
|
|
81873
|
+
Modelervue_type_template_id_0eb1d90b_render,
|
|
81874
|
+
Modelervue_type_template_id_0eb1d90b_staticRenderFns,
|
|
81846
81875
|
false,
|
|
81847
81876
|
null,
|
|
81848
81877
|
null,
|
|
@@ -82184,7 +82213,7 @@ var DataInputAssociation = /*#__PURE__*/function () {
|
|
|
82184
82213
|
value: function makeFlowNode(sourceShape, targetShape, waypoint) {
|
|
82185
82214
|
var _this = this;
|
|
82186
82215
|
var diagram = dataInputAssociation_config_diagram(this.moddle);
|
|
82187
|
-
var associationFlow =
|
|
82216
|
+
var associationFlow = config_definition(this.moddle);
|
|
82188
82217
|
|
|
82189
82218
|
// When saving the BPMN, if this is not an array the sourceRef is not stored
|
|
82190
82219
|
var dataInput = getOrFindDataInput(this.moddle, targetShape.component.node, sourceShape.component.node.definition);
|