@processmaker/modeler 1.39.7 → 1.39.8
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 +142 -94
- package/dist/modeler.common.js.map +1 -1
- package/dist/modeler.umd.js +142 -94
- package/dist/modeler.umd.js.map +1 -1
- package/dist/modeler.umd.min.js +1 -1
- package/dist/modeler.umd.min.js.map +1 -1
- package/package.json +4 -2
- package/src/NodeIdGenerator.js +8 -0
- package/src/components/modeler/Modeler.vue +40 -10
- package/src/components/nodes/node.js +2 -3
- package/src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue +1 -1
- package/src/multiplayer/multiplayer.js +48 -0
- package/src/multiplayer/room.js +10 -0
- package/src/setup/globals.js +1 -1
- package/src/setup/initialLoad.js +7 -1
package/dist/modeler.common.js
CHANGED
|
@@ -23564,7 +23564,7 @@ __webpack_require__.d(config_namespaceObject, {
|
|
|
23564
23564
|
bpmnType: function() { return bpmnType; },
|
|
23565
23565
|
definition: function() { return definition; },
|
|
23566
23566
|
diagram: function() { return config_diagram; },
|
|
23567
|
-
id: function() { return
|
|
23567
|
+
id: function() { return config_id; }
|
|
23568
23568
|
});
|
|
23569
23569
|
|
|
23570
23570
|
// NAMESPACE OBJECT: ./src/components/nodes/dataInputAssociation/config.js
|
|
@@ -23574,7 +23574,7 @@ __webpack_require__.d(dataInputAssociation_config_namespaceObject, {
|
|
|
23574
23574
|
bpmnType: function() { return config_bpmnType; },
|
|
23575
23575
|
definition: function() { return config_definition; },
|
|
23576
23576
|
diagram: function() { return diagram; },
|
|
23577
|
-
id: function() { return
|
|
23577
|
+
id: function() { return dataInputAssociation_config_id; }
|
|
23578
23578
|
});
|
|
23579
23579
|
|
|
23580
23580
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
@@ -28054,7 +28054,7 @@ var deleteButtonvue_type_template_id_59648d83_staticRenderFns = [];
|
|
|
28054
28054
|
var external_lodash_namespaceObject = require("lodash");
|
|
28055
28055
|
var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_namespaceObject);
|
|
28056
28056
|
;// CONCATENATED MODULE: ./src/components/nodes/dataOutputAssociation/config.js
|
|
28057
|
-
var
|
|
28057
|
+
var config_id = 'processmaker-modeler-data-output-association';
|
|
28058
28058
|
var bpmnType = 'bpmn:DataOutputAssociation';
|
|
28059
28059
|
function definition(moddle) {
|
|
28060
28060
|
return moddle.create('bpmn:DataOutputAssociation', {
|
|
@@ -28068,7 +28068,7 @@ function config_diagram(moddle) {
|
|
|
28068
28068
|
return moddle.create('bpmndi:BPMNEdge');
|
|
28069
28069
|
}
|
|
28070
28070
|
;// CONCATENATED MODULE: ./src/components/nodes/dataInputAssociation/config.js
|
|
28071
|
-
var
|
|
28071
|
+
var dataInputAssociation_config_id = 'processmaker-modeler-data-input-association';
|
|
28072
28072
|
var config_bpmnType = 'bpmn:DataInputAssociation';
|
|
28073
28073
|
function config_definition(moddle) {
|
|
28074
28074
|
return moddle.create('bpmn:DataInputAssociation', {
|
|
@@ -28645,12 +28645,12 @@ var Node = /*#__PURE__*/function () {
|
|
|
28645
28645
|
}
|
|
28646
28646
|
}, {
|
|
28647
28647
|
key: "setIds",
|
|
28648
|
-
value: function setIds(nodeIdGenerator) {
|
|
28648
|
+
value: function setIds(nodeIdGenerator, id) {
|
|
28649
28649
|
var _this = this;
|
|
28650
|
-
var
|
|
28651
|
-
|
|
28652
|
-
nodeId =
|
|
28653
|
-
diagramId =
|
|
28650
|
+
var _ref = id ? [id + '_di'] : nodeIdGenerator.generate(),
|
|
28651
|
+
_ref2 = _slicedToArray(_ref, 2),
|
|
28652
|
+
nodeId = _ref2[0],
|
|
28653
|
+
diagramId = _ref2[1];
|
|
28654
28654
|
if (!this.id) {
|
|
28655
28655
|
this.id = nodeId;
|
|
28656
28656
|
}
|
|
@@ -28800,8 +28800,8 @@ var Node = /*#__PURE__*/function () {
|
|
|
28800
28800
|
key: "getTargetProcess",
|
|
28801
28801
|
value: function getTargetProcess(processes, processNode) {
|
|
28802
28802
|
var _this4 = this;
|
|
28803
|
-
return this.pool ? processes.find(function (
|
|
28804
|
-
var id =
|
|
28803
|
+
return this.pool ? processes.find(function (_ref3) {
|
|
28804
|
+
var id = _ref3.id;
|
|
28805
28805
|
return id === _this4.pool.component.node.definition.get('processRef').id;
|
|
28806
28806
|
}) : processNode.definition;
|
|
28807
28807
|
}
|
|
@@ -29228,7 +29228,7 @@ function _createSuper(Derived) {
|
|
|
29228
29228
|
};
|
|
29229
29229
|
}
|
|
29230
29230
|
;// CONCATENATED MODULE: ./src/components/nodes/pool/config.js
|
|
29231
|
-
var
|
|
29231
|
+
var id = 'processmaker-modeler-pool';
|
|
29232
29232
|
;// CONCATENATED MODULE: ./src/components/nodes/genericFlow/Flow.js
|
|
29233
29233
|
|
|
29234
29234
|
|
|
@@ -29318,7 +29318,7 @@ var Flow = /*#__PURE__*/function () {
|
|
|
29318
29318
|
key: "shapeIsPool",
|
|
29319
29319
|
value: function shapeIsPool(shape) {
|
|
29320
29320
|
var shapeType = get_default()(shape, 'component.node.type');
|
|
29321
|
-
return shapeType ===
|
|
29321
|
+
return shapeType === id;
|
|
29322
29322
|
}
|
|
29323
29323
|
}]);
|
|
29324
29324
|
return Flow;
|
|
@@ -39159,18 +39159,18 @@ var NodeIdGenerator = /*#__PURE__*/function () {
|
|
|
39159
39159
|
_classPrivateFieldInitSpec(this, _generateDefinitionId, {
|
|
39160
39160
|
writable: true,
|
|
39161
39161
|
value: function value() {
|
|
39162
|
-
var _NodeIdGenerator$
|
|
39162
|
+
var _NodeIdGenerator$coun3, _NodeIdGenerator$coun4;
|
|
39163
39163
|
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
39164
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$
|
|
39164
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun4 = _NodeIdGenerator$coun3++, _NodeIdGenerator$coun3)), _NodeIdGenerator$coun4;
|
|
39165
39165
|
return id;
|
|
39166
39166
|
}
|
|
39167
39167
|
});
|
|
39168
39168
|
_classPrivateFieldInitSpec(this, _generateDiagramId, {
|
|
39169
39169
|
writable: true,
|
|
39170
39170
|
value: function value() {
|
|
39171
|
-
var _NodeIdGenerator$
|
|
39171
|
+
var _NodeIdGenerator$diag3, _NodeIdGenerator$diag4;
|
|
39172
39172
|
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter) + '_di';
|
|
39173
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$
|
|
39173
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag4 = _NodeIdGenerator$diag3++, _NodeIdGenerator$diag3)), _NodeIdGenerator$diag4;
|
|
39174
39174
|
return id;
|
|
39175
39175
|
}
|
|
39176
39176
|
});
|
|
@@ -39251,6 +39251,18 @@ var NodeIdGenerator = /*#__PURE__*/function () {
|
|
|
39251
39251
|
this.refreshLastIdCounter();
|
|
39252
39252
|
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
39253
39253
|
}
|
|
39254
|
+
}, {
|
|
39255
|
+
key: "getDefinitionNumber",
|
|
39256
|
+
value: function getDefinitionNumber() {
|
|
39257
|
+
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
39258
|
+
}
|
|
39259
|
+
}, {
|
|
39260
|
+
key: "updateCounters",
|
|
39261
|
+
value: function updateCounters() {
|
|
39262
|
+
var _NodeIdGenerator$coun, _NodeIdGenerator$coun2, _NodeIdGenerator$diag, _NodeIdGenerator$diag2;
|
|
39263
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun2 = _NodeIdGenerator$coun++, _NodeIdGenerator$coun)), _NodeIdGenerator$coun2;
|
|
39264
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag2 = _NodeIdGenerator$diag++, _NodeIdGenerator$diag)), _NodeIdGenerator$diag2;
|
|
39265
|
+
}
|
|
39254
39266
|
}, {
|
|
39255
39267
|
key: "refreshLastDiagramIdCounter",
|
|
39256
39268
|
value: function refreshLastDiagramIdCounter() {
|
|
@@ -42358,7 +42370,7 @@ var pool_component = normalizeComponent(
|
|
|
42358
42370
|
|
|
42359
42371
|
|
|
42360
42372
|
/* harmony default export */ var nodes_pool = ({
|
|
42361
|
-
id:
|
|
42373
|
+
id: id,
|
|
42362
42374
|
component: pool,
|
|
42363
42375
|
bpmnType: 'bpmn:Participant',
|
|
42364
42376
|
control: true,
|
|
@@ -42625,11 +42637,11 @@ var ValidationStatus_component = normalizeComponent(
|
|
|
42625
42637
|
)
|
|
42626
42638
|
|
|
42627
42639
|
/* harmony default export */ var ValidationStatus = (ValidationStatus_component.exports);
|
|
42628
|
-
;// 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=
|
|
42640
|
+
;// 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=10fee576&
|
|
42629
42641
|
|
|
42630
42642
|
|
|
42631
42643
|
|
|
42632
|
-
var
|
|
42644
|
+
var Modelervue_type_template_id_10fee576_render = function render() {
|
|
42633
42645
|
var _vm = this,
|
|
42634
42646
|
_c = _vm._self._c;
|
|
42635
42647
|
return _c('span', {
|
|
@@ -42856,9 +42868,9 @@ var Modelervue_type_template_id_785a1a64_render = function render() {
|
|
|
42856
42868
|
});
|
|
42857
42869
|
})], 2);
|
|
42858
42870
|
};
|
|
42859
|
-
var
|
|
42871
|
+
var Modelervue_type_template_id_10fee576_staticRenderFns = [];
|
|
42860
42872
|
|
|
42861
|
-
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=
|
|
42873
|
+
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=10fee576&
|
|
42862
42874
|
|
|
42863
42875
|
;// 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&
|
|
42864
42876
|
var boundaryEventvue_type_template_id_2979ecac_render = function render() {
|
|
@@ -45427,11 +45439,11 @@ function isTextAnnotation(bpmnType) {
|
|
|
45427
45439
|
function getPoolUnderPosition(clientX, clientY, paper, graph) {
|
|
45428
45440
|
return graph.findModelsFromPoint(getLocalMousePosition(clientX, clientY, paper)).find(function (_ref) {
|
|
45429
45441
|
var component = _ref.component;
|
|
45430
|
-
return component && component.node.type ===
|
|
45442
|
+
return component && component.node.type === id;
|
|
45431
45443
|
});
|
|
45432
45444
|
}
|
|
45433
45445
|
function isDroppingPool(controlType) {
|
|
45434
|
-
return controlType ===
|
|
45446
|
+
return controlType === id;
|
|
45435
45447
|
}
|
|
45436
45448
|
function noPoolsOnTheGrid(collaboration) {
|
|
45437
45449
|
return !collaboration || collaboration.get('participants').length === 0;
|
|
@@ -46267,7 +46279,7 @@ function getElementPool(shape) {
|
|
|
46267
46279
|
return shape.component.node.pool;
|
|
46268
46280
|
}
|
|
46269
46281
|
function isPool(shape) {
|
|
46270
|
-
return shape.component.node.type ===
|
|
46282
|
+
return shape.component.node.type === id;
|
|
46271
46283
|
}
|
|
46272
46284
|
;// 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/toolbar/ToolBar.vue?vue&type=template&id=a14390d2&
|
|
46273
46285
|
var ToolBarvue_type_template_id_a14390d2_render = function render() {
|
|
@@ -46829,9 +46841,9 @@ var ValidatePanel_component = normalizeComponent(
|
|
|
46829
46841
|
|
|
46830
46842
|
|
|
46831
46843
|
|
|
46832
|
-
;// 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=
|
|
46844
|
+
;// 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=2504b8f1&
|
|
46833
46845
|
|
|
46834
|
-
var
|
|
46846
|
+
var MultiplayerViewUsersvue_type_template_id_2504b8f1_render = function render() {
|
|
46835
46847
|
var _vm = this,
|
|
46836
46848
|
_c = _vm._self._c;
|
|
46837
46849
|
return _c('b-avatar-group', {
|
|
@@ -46847,9 +46859,9 @@ var MultiplayerViewUsersvue_type_template_id_cfdfca9e_render = function render()
|
|
|
46847
46859
|
})];
|
|
46848
46860
|
})], 2);
|
|
46849
46861
|
};
|
|
46850
|
-
var
|
|
46862
|
+
var MultiplayerViewUsersvue_type_template_id_2504b8f1_staticRenderFns = [];
|
|
46851
46863
|
|
|
46852
|
-
;// CONCATENATED MODULE: ./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=
|
|
46864
|
+
;// CONCATENATED MODULE: ./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=2504b8f1&
|
|
46853
46865
|
|
|
46854
46866
|
;// 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&
|
|
46855
46867
|
var Avatarvue_type_template_id_1c50a604_scoped_true_render = function render() {
|
|
@@ -47047,8 +47059,8 @@ var Avatar_component = normalizeComponent(
|
|
|
47047
47059
|
;
|
|
47048
47060
|
var MultiplayerViewUsers_component = normalizeComponent(
|
|
47049
47061
|
multiplayerViewUsers_MultiplayerViewUsersvue_type_script_lang_js_,
|
|
47050
|
-
|
|
47051
|
-
|
|
47062
|
+
MultiplayerViewUsersvue_type_template_id_2504b8f1_render,
|
|
47063
|
+
MultiplayerViewUsersvue_type_template_id_2504b8f1_staticRenderFns,
|
|
47052
47064
|
false,
|
|
47053
47065
|
null,
|
|
47054
47066
|
null,
|
|
@@ -48070,8 +48082,8 @@ var validTasks = ['bpmn:ServiceTask', 'bpmn:ManualTask', 'bpmn:CallActivity', 'b
|
|
|
48070
48082
|
var nodes = this.highlightedNodes;
|
|
48071
48083
|
var selector = this.$refs.selector.$el;
|
|
48072
48084
|
var flowNodeTypes = [sequenceFlow_id, poolLane_config_id, association_id, messageFlow_config_id, genericFlow_config_id];
|
|
48073
|
-
var dataInputAssociationNodeTypes = [
|
|
48074
|
-
var dataOutputAssociationNodeTypes = [
|
|
48085
|
+
var dataInputAssociationNodeTypes = [dataInputAssociation_config_id];
|
|
48086
|
+
var dataOutputAssociationNodeTypes = [config_id];
|
|
48075
48087
|
if (typeof selector.getBoundingClientRect === 'function') {
|
|
48076
48088
|
nodes.forEach(function (node) {
|
|
48077
48089
|
if (flowNodeTypes.includes(node.type)) {
|
|
@@ -49354,7 +49366,7 @@ var DataOutputAssociation = /*#__PURE__*/function (_DataAssociation) {
|
|
|
49354
49366
|
diagram.waypoint = [start, end].map(function (point) {
|
|
49355
49367
|
return _this.moddle.create('dc:Point', point);
|
|
49356
49368
|
});
|
|
49357
|
-
var node = new Node(
|
|
49369
|
+
var node = new Node(config_id, dataOutputAssociation, diagram);
|
|
49358
49370
|
node.dataAssociationProps = {
|
|
49359
49371
|
sourceShape: sourceShape,
|
|
49360
49372
|
targetCoords: {
|
|
@@ -50529,7 +50541,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
50529
50541
|
computed: {
|
|
50530
50542
|
hasPoolsOrLanesSelected: function hasPoolsOrLanesSelected() {
|
|
50531
50543
|
return this.selected.some(function (view) {
|
|
50532
|
-
return view.model.component.node.type ===
|
|
50544
|
+
return view.model.component.node.type === id || view.model.component.node.type === poolLane_config_id;
|
|
50533
50545
|
});
|
|
50534
50546
|
}
|
|
50535
50547
|
},
|
|
@@ -50631,14 +50643,14 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
50631
50643
|
}
|
|
50632
50644
|
// validate if there is a lane previously selected
|
|
50633
50645
|
var pool = this.selected.find(function (shape) {
|
|
50634
|
-
return shape.model.component.node.type ===
|
|
50646
|
+
return shape.model.component.node.type === id;
|
|
50635
50647
|
});
|
|
50636
|
-
if (pool && view.model.component.node.type !==
|
|
50648
|
+
if (pool && view.model.component.node.type !== id) {
|
|
50637
50649
|
this.selected = [view];
|
|
50638
50650
|
return;
|
|
50639
50651
|
}
|
|
50640
50652
|
// validate if the current selection is a pool
|
|
50641
|
-
if (view.model.component && view.model.component.node.type ===
|
|
50653
|
+
if (view.model.component && view.model.component.node.type === id) {
|
|
50642
50654
|
//validate if previous selection are all pools
|
|
50643
50655
|
if (this.hasOnlyPools(this.selected)) {
|
|
50644
50656
|
this.selectOrUnselectShape(view);
|
|
@@ -50820,7 +50832,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
50820
50832
|
shapes.forEach(function (shape) {
|
|
50821
50833
|
var conectedLinks = _this4.graph.getConnectedLinks(shape.model);
|
|
50822
50834
|
// if the shape is a container
|
|
50823
|
-
if (shape.model.component && shape.model.component.node.type ===
|
|
50835
|
+
if (shape.model.component && shape.model.component.node.type === id) {
|
|
50824
50836
|
var area = shape.model.getBBox();
|
|
50825
50837
|
var linksInArea = paper.model.getLinks().filter(function (link) {
|
|
50826
50838
|
var sourcePosition = link.getSourcePoint();
|
|
@@ -50924,7 +50936,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
50924
50936
|
* Filter the selected elements
|
|
50925
50937
|
*/
|
|
50926
50938
|
filterSelected: function filterSelected() {
|
|
50927
|
-
var flowTypes = [sequenceFlow_id,
|
|
50939
|
+
var flowTypes = [sequenceFlow_id, config_id, dataInputAssociation_config_id, association_id, messageFlow_config_id];
|
|
50928
50940
|
// Get the selected pools IDs
|
|
50929
50941
|
var selectedPoolsIds = this.selected.filter(function (shape) {
|
|
50930
50942
|
return shape.model.component;
|
|
@@ -50983,7 +50995,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
50983
50995
|
*/
|
|
50984
50996
|
hasOnlyPools: function hasOnlyPools(selected) {
|
|
50985
50997
|
var shapes = this.selected.filter(function (shape) {
|
|
50986
|
-
return shape.model.component && shape.model.component.node.type ===
|
|
50998
|
+
return shape.model.component && shape.model.component.node.type === id;
|
|
50987
50999
|
});
|
|
50988
51000
|
return shapes && selected.length === shapes.length;
|
|
50989
51001
|
},
|
|
@@ -51200,7 +51212,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
51200
51212
|
if (pool) {
|
|
51201
51213
|
return;
|
|
51202
51214
|
}
|
|
51203
|
-
if (model.getParentCell() && model.getParentCell().component.node.type ===
|
|
51215
|
+
if (model.getParentCell() && model.getParentCell().component.node.type === id) {
|
|
51204
51216
|
pool = model.getParentCell();
|
|
51205
51217
|
}
|
|
51206
51218
|
});
|
|
@@ -51216,11 +51228,11 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
51216
51228
|
if (elements.length > 0) {
|
|
51217
51229
|
var poolInSelection = elements.find(function (_ref2) {
|
|
51218
51230
|
var model = _ref2.model;
|
|
51219
|
-
return model.component && model.component.node.type ===
|
|
51231
|
+
return model.component && model.component.node.type === id;
|
|
51220
51232
|
});
|
|
51221
51233
|
var elementInAPool = elements.find(function (_ref3) {
|
|
51222
51234
|
var model = _ref3.model;
|
|
51223
|
-
return model.getParentCell() && model.getParentCell().component.node.type ===
|
|
51235
|
+
return model.getParentCell() && model.getParentCell().component.node.type === id;
|
|
51224
51236
|
});
|
|
51225
51237
|
return !!poolInSelection || !elementInAPool;
|
|
51226
51238
|
}
|
|
@@ -51236,7 +51248,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
51236
51248
|
var currentPool = this.getPool(this.selected);
|
|
51237
51249
|
var elementsUnderDivArea = this.getShapesFromPoint(event);
|
|
51238
51250
|
var pool = elementsUnderDivArea.find(function (item) {
|
|
51239
|
-
return item.model.component && item.model.component.node.type ===
|
|
51251
|
+
return item.model.component && item.model.component.node.type === id;
|
|
51240
51252
|
});
|
|
51241
51253
|
this.newPool = null;
|
|
51242
51254
|
this.oldPool = null;
|
|
@@ -51357,7 +51369,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
51357
51369
|
var pool = selected.find(function (_ref4) {
|
|
51358
51370
|
var model = _ref4.model;
|
|
51359
51371
|
if (model.getParentCell()) {
|
|
51360
|
-
return model.getParentCell().component.node.type ===
|
|
51372
|
+
return model.getParentCell().component.node.type === id;
|
|
51361
51373
|
}
|
|
51362
51374
|
return false;
|
|
51363
51375
|
}).model.getParentCell();
|
|
@@ -51427,7 +51439,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
51427
51439
|
var pool = selected.find(function (_ref5) {
|
|
51428
51440
|
var model = _ref5.model;
|
|
51429
51441
|
if (model.getParentCell()) {
|
|
51430
|
-
return model.getParentCell().component.node.type ===
|
|
51442
|
+
return model.getParentCell().component.node.type === id;
|
|
51431
51443
|
}
|
|
51432
51444
|
return false;
|
|
51433
51445
|
});
|
|
@@ -51729,7 +51741,9 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
51729
51741
|
dragStart: null,
|
|
51730
51742
|
players: [],
|
|
51731
51743
|
showInspectorButton: true,
|
|
51732
|
-
inspectorButtonRight: 65
|
|
51744
|
+
inspectorButtonRight: 65,
|
|
51745
|
+
multiplayer: null,
|
|
51746
|
+
isMultiplayer: false
|
|
51733
51747
|
};
|
|
51734
51748
|
},
|
|
51735
51749
|
watch: {
|
|
@@ -51868,7 +51882,7 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
51868
51882
|
},
|
|
51869
51883
|
copyElement: function copyElement() {
|
|
51870
51884
|
// Checking if User selected a single flow and tries to copy it, to deny it.
|
|
51871
|
-
var flows = [sequenceFlow_id,
|
|
51885
|
+
var flows = [sequenceFlow_id, config_id, dataInputAssociation_config_id, genericFlow_config_id, process_id];
|
|
51872
51886
|
var boundaryEvents = [boundaryErrorEvent_id, boundaryConditionalEvent_id, boundaryEscalationEvent_id, boundaryMessageEvent_id, boundarySignalEvent_id, boundaryTimerEvent_id];
|
|
51873
51887
|
if (this.highlightedNodes.length === 1 && (flows.includes(this.highlightedNodes[0].type) || boundaryEvents.includes(this.highlightedNodes[0].type))) return;
|
|
51874
51888
|
store.commit('setCopiedElements', this.cloneNodesSelection());
|
|
@@ -52654,25 +52668,42 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
52654
52668
|
control: control
|
|
52655
52669
|
});
|
|
52656
52670
|
},
|
|
52657
|
-
handleDrop: function handleDrop(
|
|
52658
|
-
var
|
|
52671
|
+
handleDrop: function handleDrop(data) {
|
|
52672
|
+
var clientX = data.clientX,
|
|
52673
|
+
clientY = data.clientY,
|
|
52674
|
+
control = data.control;
|
|
52675
|
+
if (this.isMultiplayer) {
|
|
52676
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-addNode', {
|
|
52677
|
+
clientX: clientX,
|
|
52678
|
+
clientY: clientY,
|
|
52679
|
+
control: control,
|
|
52680
|
+
id: "node_".concat(this.nodeIdGenerator.getDefinitionNumber())
|
|
52681
|
+
});
|
|
52682
|
+
} else {
|
|
52683
|
+
this.handleDropProcedure(data);
|
|
52684
|
+
}
|
|
52685
|
+
},
|
|
52686
|
+
handleDropProcedure: function handleDropProcedure(data) {
|
|
52687
|
+
var _arguments3 = arguments,
|
|
52688
|
+
_this26 = this;
|
|
52659
52689
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
52660
|
-
var clientX, clientY, control, nodeThatWillBeReplaced, definition, diagram, _this26$paperManager$, x, y, newNode, nodeMigrator;
|
|
52690
|
+
var selected, clientX, clientY, control, nodeThatWillBeReplaced, id, definition, diagram, _this26$paperManager$, x, y, newNode, nodeMigrator;
|
|
52661
52691
|
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
52662
52692
|
while (1) switch (_context13.prev = _context13.next) {
|
|
52663
52693
|
case 0:
|
|
52664
|
-
|
|
52694
|
+
selected = _arguments3.length > 1 && _arguments3[1] !== undefined ? _arguments3[1] : true;
|
|
52695
|
+
clientX = data.clientX, clientY = data.clientY, control = data.control, nodeThatWillBeReplaced = data.nodeThatWillBeReplaced, id = data.id;
|
|
52665
52696
|
_this26.validateDropTarget({
|
|
52666
52697
|
clientX: clientX,
|
|
52667
52698
|
clientY: clientY,
|
|
52668
52699
|
control: control
|
|
52669
52700
|
});
|
|
52670
52701
|
if (_this26.allowDrop) {
|
|
52671
|
-
_context13.next =
|
|
52702
|
+
_context13.next = 5;
|
|
52672
52703
|
break;
|
|
52673
52704
|
}
|
|
52674
52705
|
return _context13.abrupt("return");
|
|
52675
|
-
case
|
|
52706
|
+
case 5:
|
|
52676
52707
|
definition = _this26.nodeRegistry[control.type].definition(_this26.moddle, _this26.$t);
|
|
52677
52708
|
diagram = _this26.nodeRegistry[control.type].diagram(_this26.moddle);
|
|
52678
52709
|
_this26$paperManager$ = _this26.paperManager.clientToGridPoint(clientX, clientY), x = _this26$paperManager$.x, y = _this26$paperManager$.y;
|
|
@@ -52682,20 +52713,22 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
52682
52713
|
if (newNode.isBpmnType('bpmn:BoundaryEvent')) {
|
|
52683
52714
|
_this26.setShapeCenterUnderCursor(diagram);
|
|
52684
52715
|
}
|
|
52685
|
-
|
|
52686
|
-
|
|
52687
|
-
|
|
52688
|
-
|
|
52716
|
+
if (selected) {
|
|
52717
|
+
_this26.highlightNode(newNode);
|
|
52718
|
+
}
|
|
52719
|
+
_context13.next = 15;
|
|
52720
|
+
return _this26.addNode(newNode, id, selected);
|
|
52721
|
+
case 15:
|
|
52689
52722
|
if (nodeThatWillBeReplaced) {
|
|
52690
|
-
_context13.next =
|
|
52723
|
+
_context13.next = 17;
|
|
52691
52724
|
break;
|
|
52692
52725
|
}
|
|
52693
52726
|
return _context13.abrupt("return");
|
|
52694
|
-
case
|
|
52727
|
+
case 17:
|
|
52695
52728
|
nodeMigrator = new NodeMigrator(nodeThatWillBeReplaced, definition, _this26.graph, newNode, _this26.processes, _this26.collaboration);
|
|
52696
52729
|
nodeMigrator.migrate();
|
|
52697
52730
|
return _context13.abrupt("return", newNode);
|
|
52698
|
-
case
|
|
52731
|
+
case 20:
|
|
52699
52732
|
case "end":
|
|
52700
52733
|
return _context13.stop();
|
|
52701
52734
|
}
|
|
@@ -52733,38 +52766,43 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
52733
52766
|
}))();
|
|
52734
52767
|
},
|
|
52735
52768
|
addNode: function addNode(node) {
|
|
52736
|
-
var
|
|
52769
|
+
var _arguments4 = arguments,
|
|
52770
|
+
_this28 = this;
|
|
52737
52771
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
|
|
52738
|
-
var targetProcess;
|
|
52772
|
+
var id, selected, targetProcess;
|
|
52739
52773
|
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
52740
52774
|
while (1) switch (_context15.prev = _context15.next) {
|
|
52741
52775
|
case 0:
|
|
52776
|
+
id = _arguments4.length > 1 && _arguments4[1] !== undefined ? _arguments4[1] : null;
|
|
52777
|
+
selected = _arguments4.length > 2 && _arguments4[2] !== undefined ? _arguments4[2] : true;
|
|
52742
52778
|
if (!node.pool) {
|
|
52743
52779
|
node.pool = _this28.poolTarget;
|
|
52744
52780
|
}
|
|
52745
52781
|
targetProcess = node.getTargetProcess(_this28.processes, _this28.processNode);
|
|
52746
52782
|
addNodeToProcess(node, targetProcess);
|
|
52747
|
-
node.setIds(_this28.nodeIdGenerator);
|
|
52783
|
+
node.setIds(_this28.nodeIdGenerator, id);
|
|
52748
52784
|
_this28.planeElements.push(node.diagram);
|
|
52749
52785
|
store.commit('addNode', node);
|
|
52750
52786
|
_this28.poolTarget = null;
|
|
52751
52787
|
|
|
52752
52788
|
// add processmaker-modeler-generic-flow
|
|
52753
|
-
if (![sequenceFlow_id, poolLane_config_id, association_id, messageFlow_config_id,
|
|
52754
|
-
_context15.next =
|
|
52789
|
+
if (![sequenceFlow_id, poolLane_config_id, association_id, messageFlow_config_id, config_id, dataInputAssociation_config_id, genericFlow_config_id].includes(node.type)) {
|
|
52790
|
+
_context15.next = 11;
|
|
52755
52791
|
break;
|
|
52756
52792
|
}
|
|
52757
52793
|
return _context15.abrupt("return");
|
|
52758
|
-
case
|
|
52759
|
-
|
|
52760
|
-
|
|
52794
|
+
case 11:
|
|
52795
|
+
if (selected) {
|
|
52796
|
+
// Select the node after it has been added to the store (does not apply to flows)
|
|
52797
|
+
_this28.selectNewNode(node);
|
|
52798
|
+
}
|
|
52761
52799
|
return _context15.abrupt("return", new Promise(function (resolve) {
|
|
52762
52800
|
setTimeout(function () {
|
|
52763
52801
|
_this28.pushToUndoStack();
|
|
52764
52802
|
resolve();
|
|
52765
52803
|
});
|
|
52766
52804
|
}));
|
|
52767
|
-
case
|
|
52805
|
+
case 13:
|
|
52768
52806
|
case "end":
|
|
52769
52807
|
return _context15.stop();
|
|
52770
52808
|
}
|
|
@@ -52795,14 +52833,14 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
52795
52833
|
}))();
|
|
52796
52834
|
},
|
|
52797
52835
|
removeNode: function removeNode(node) {
|
|
52798
|
-
var
|
|
52836
|
+
var _arguments5 = arguments,
|
|
52799
52837
|
_this30 = this;
|
|
52800
52838
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
|
|
52801
|
-
var
|
|
52839
|
+
var _ref6, _ref6$removeRelations, removeRelationships;
|
|
52802
52840
|
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
52803
52841
|
while (1) switch (_context17.prev = _context17.next) {
|
|
52804
52842
|
case 0:
|
|
52805
|
-
|
|
52843
|
+
_ref6 = _arguments5.length > 1 && _arguments5[1] !== undefined ? _arguments5[1] : {}, _ref6$removeRelations = _ref6.removeRelationships, removeRelationships = _ref6$removeRelations === void 0 ? true : _ref6$removeRelations;
|
|
52806
52844
|
if (node) {
|
|
52807
52845
|
_context17.next = 3;
|
|
52808
52846
|
break;
|
|
@@ -52888,10 +52926,10 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
52888
52926
|
}, _callee20);
|
|
52889
52927
|
}))();
|
|
52890
52928
|
},
|
|
52891
|
-
replaceNode: function replaceNode(
|
|
52929
|
+
replaceNode: function replaceNode(_ref9) {
|
|
52892
52930
|
var _this32 = this;
|
|
52893
|
-
var node =
|
|
52894
|
-
typeToReplaceWith =
|
|
52931
|
+
var node = _ref9.node,
|
|
52932
|
+
typeToReplaceWith = _ref9.typeToReplaceWith;
|
|
52895
52933
|
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
|
|
52896
52934
|
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
52897
52935
|
while (1) switch (_context22.prev = _context22.next) {
|
|
@@ -52904,7 +52942,7 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
52904
52942
|
case 0:
|
|
52905
52943
|
_this32$paper$localTo = _this32.paper.localToClientPoint(node.diagram.bounds), clientX = _this32$paper$localTo.x, clientY = _this32$paper$localTo.y;
|
|
52906
52944
|
_context21.next = 3;
|
|
52907
|
-
return _this32.
|
|
52945
|
+
return _this32.handleDropProcedure({
|
|
52908
52946
|
clientX: clientX,
|
|
52909
52947
|
clientY: clientY,
|
|
52910
52948
|
control: {
|
|
@@ -52934,11 +52972,11 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
52934
52972
|
}, _callee22);
|
|
52935
52973
|
})));
|
|
52936
52974
|
},
|
|
52937
|
-
replaceGenericFlow: function replaceGenericFlow(
|
|
52975
|
+
replaceGenericFlow: function replaceGenericFlow(_ref12) {
|
|
52938
52976
|
var _this33 = this;
|
|
52939
|
-
var actualFlow =
|
|
52940
|
-
genericFlow =
|
|
52941
|
-
targetNode =
|
|
52977
|
+
var actualFlow = _ref12.actualFlow,
|
|
52978
|
+
genericFlow = _ref12.genericFlow,
|
|
52979
|
+
targetNode = _ref12.targetNode;
|
|
52942
52980
|
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
|
|
52943
52981
|
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
52944
52982
|
while (1) switch (_context24.prev = _context24.next) {
|
|
@@ -53051,10 +53089,10 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
53051
53089
|
this.parentHeight = clientHeight + 'px';
|
|
53052
53090
|
this.paperManager.setPaperDimensions(clientWidth, clientHeight);
|
|
53053
53091
|
},
|
|
53054
|
-
validateDropTarget: function validateDropTarget(
|
|
53055
|
-
var clientX =
|
|
53056
|
-
clientY =
|
|
53057
|
-
control =
|
|
53092
|
+
validateDropTarget: function validateDropTarget(_ref15) {
|
|
53093
|
+
var clientX = _ref15.clientX,
|
|
53094
|
+
clientY = _ref15.clientY,
|
|
53095
|
+
control = _ref15.control;
|
|
53058
53096
|
var _getValidationPropert = getValidationProperties(clientX, clientY, control, this.paperManager.paper, this.graph, this.collaboration, this.$refs['paper-container']),
|
|
53059
53097
|
allowDrop = _getValidationPropert.allowDrop,
|
|
53060
53098
|
poolTarget = _getValidationPropert.poolTarget;
|
|
@@ -53214,6 +53252,9 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
53214
53252
|
this.isDragging = false;
|
|
53215
53253
|
this.dragStart = null;
|
|
53216
53254
|
this.isSelecting = false;
|
|
53255
|
+
},
|
|
53256
|
+
enableMultiplayer: function enableMultiplayer() {
|
|
53257
|
+
this.isMultiplayer = true;
|
|
53217
53258
|
}
|
|
53218
53259
|
},
|
|
53219
53260
|
created: function created() {
|
|
@@ -53281,8 +53322,8 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
53281
53322
|
_this38.isOverShape = false;
|
|
53282
53323
|
_this38.pointerDownHandler(event);
|
|
53283
53324
|
}, this);
|
|
53284
|
-
this.paperManager.addEventHandler('cell:mouseover element:mouseover', function (
|
|
53285
|
-
var shape =
|
|
53325
|
+
this.paperManager.addEventHandler('cell:mouseover element:mouseover', function (_ref16) {
|
|
53326
|
+
var shape = _ref16.model;
|
|
53286
53327
|
if (_this38.isBpmnNode(shape) && shape.attr('body/cursor') !== 'default' && !_this38.isGrabbing) {
|
|
53287
53328
|
shape.attr('body/cursor', 'move');
|
|
53288
53329
|
}
|
|
@@ -53318,8 +53359,8 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
53318
53359
|
clickHandler(cellView, evt, x, y);
|
|
53319
53360
|
}
|
|
53320
53361
|
});
|
|
53321
|
-
this.paperManager.addEventHandler('cell:pointerclick', function (
|
|
53322
|
-
var shape =
|
|
53362
|
+
this.paperManager.addEventHandler('cell:pointerclick', function (_ref17, event) {
|
|
53363
|
+
var shape = _ref17.model;
|
|
53323
53364
|
if (!_this38.isBpmnNode(shape)) {
|
|
53324
53365
|
return;
|
|
53325
53366
|
}
|
|
@@ -53332,8 +53373,8 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
53332
53373
|
node: _this38.highlightedNode.definition
|
|
53333
53374
|
});
|
|
53334
53375
|
});
|
|
53335
|
-
this.paperManager.addEventHandler('cell:pointerdown', function (
|
|
53336
|
-
var shape =
|
|
53376
|
+
this.paperManager.addEventHandler('cell:pointerdown', function (_ref18, event) {
|
|
53377
|
+
var shape = _ref18.model;
|
|
53337
53378
|
if (!_this38.isBpmnNode(shape)) {
|
|
53338
53379
|
return;
|
|
53339
53380
|
}
|
|
@@ -53378,6 +53419,13 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
53378
53419
|
_context27.next = 4;
|
|
53379
53420
|
return undoRedoStore.dispatch('pushState', xml);
|
|
53380
53421
|
case 4:
|
|
53422
|
+
if (_this38.isMultiplayer) {
|
|
53423
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-start', {
|
|
53424
|
+
modeler: _this38,
|
|
53425
|
+
callback: _this38.enableMultiplayer
|
|
53426
|
+
});
|
|
53427
|
+
}
|
|
53428
|
+
case 5:
|
|
53381
53429
|
case "end":
|
|
53382
53430
|
return _context27.stop();
|
|
53383
53431
|
}
|
|
@@ -53414,8 +53462,8 @@ var modelervue_type_style_index_0_prod_lang_scss_ = __webpack_require__(88242);
|
|
|
53414
53462
|
|
|
53415
53463
|
var Modeler_component = normalizeComponent(
|
|
53416
53464
|
modeler_Modelervue_type_script_lang_js_,
|
|
53417
|
-
|
|
53418
|
-
|
|
53465
|
+
Modelervue_type_template_id_10fee576_render,
|
|
53466
|
+
Modelervue_type_template_id_10fee576_staticRenderFns,
|
|
53419
53467
|
false,
|
|
53420
53468
|
null,
|
|
53421
53469
|
null,
|