@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.umd.js
CHANGED
|
@@ -23662,7 +23662,7 @@ __webpack_require__.d(config_namespaceObject, {
|
|
|
23662
23662
|
bpmnType: function() { return bpmnType; },
|
|
23663
23663
|
definition: function() { return definition; },
|
|
23664
23664
|
diagram: function() { return config_diagram; },
|
|
23665
|
-
id: function() { return
|
|
23665
|
+
id: function() { return config_id; }
|
|
23666
23666
|
});
|
|
23667
23667
|
|
|
23668
23668
|
// NAMESPACE OBJECT: ./src/components/nodes/dataInputAssociation/config.js
|
|
@@ -23672,7 +23672,7 @@ __webpack_require__.d(dataInputAssociation_config_namespaceObject, {
|
|
|
23672
23672
|
bpmnType: function() { return config_bpmnType; },
|
|
23673
23673
|
definition: function() { return config_definition; },
|
|
23674
23674
|
diagram: function() { return diagram; },
|
|
23675
|
-
id: function() { return
|
|
23675
|
+
id: function() { return dataInputAssociation_config_id; }
|
|
23676
23676
|
});
|
|
23677
23677
|
|
|
23678
23678
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
@@ -28152,7 +28152,7 @@ var deleteButtonvue_type_template_id_59648d83_staticRenderFns = [];
|
|
|
28152
28152
|
var external_lodash_ = __webpack_require__(50467);
|
|
28153
28153
|
var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_);
|
|
28154
28154
|
;// CONCATENATED MODULE: ./src/components/nodes/dataOutputAssociation/config.js
|
|
28155
|
-
var
|
|
28155
|
+
var config_id = 'processmaker-modeler-data-output-association';
|
|
28156
28156
|
var bpmnType = 'bpmn:DataOutputAssociation';
|
|
28157
28157
|
function definition(moddle) {
|
|
28158
28158
|
return moddle.create('bpmn:DataOutputAssociation', {
|
|
@@ -28166,7 +28166,7 @@ function config_diagram(moddle) {
|
|
|
28166
28166
|
return moddle.create('bpmndi:BPMNEdge');
|
|
28167
28167
|
}
|
|
28168
28168
|
;// CONCATENATED MODULE: ./src/components/nodes/dataInputAssociation/config.js
|
|
28169
|
-
var
|
|
28169
|
+
var dataInputAssociation_config_id = 'processmaker-modeler-data-input-association';
|
|
28170
28170
|
var config_bpmnType = 'bpmn:DataInputAssociation';
|
|
28171
28171
|
function config_definition(moddle) {
|
|
28172
28172
|
return moddle.create('bpmn:DataInputAssociation', {
|
|
@@ -28743,12 +28743,12 @@ var Node = /*#__PURE__*/function () {
|
|
|
28743
28743
|
}
|
|
28744
28744
|
}, {
|
|
28745
28745
|
key: "setIds",
|
|
28746
|
-
value: function setIds(nodeIdGenerator) {
|
|
28746
|
+
value: function setIds(nodeIdGenerator, id) {
|
|
28747
28747
|
var _this = this;
|
|
28748
|
-
var
|
|
28749
|
-
|
|
28750
|
-
nodeId =
|
|
28751
|
-
diagramId =
|
|
28748
|
+
var _ref = id ? [id + '_di'] : nodeIdGenerator.generate(),
|
|
28749
|
+
_ref2 = _slicedToArray(_ref, 2),
|
|
28750
|
+
nodeId = _ref2[0],
|
|
28751
|
+
diagramId = _ref2[1];
|
|
28752
28752
|
if (!this.id) {
|
|
28753
28753
|
this.id = nodeId;
|
|
28754
28754
|
}
|
|
@@ -28898,8 +28898,8 @@ var Node = /*#__PURE__*/function () {
|
|
|
28898
28898
|
key: "getTargetProcess",
|
|
28899
28899
|
value: function getTargetProcess(processes, processNode) {
|
|
28900
28900
|
var _this4 = this;
|
|
28901
|
-
return this.pool ? processes.find(function (
|
|
28902
|
-
var id =
|
|
28901
|
+
return this.pool ? processes.find(function (_ref3) {
|
|
28902
|
+
var id = _ref3.id;
|
|
28903
28903
|
return id === _this4.pool.component.node.definition.get('processRef').id;
|
|
28904
28904
|
}) : processNode.definition;
|
|
28905
28905
|
}
|
|
@@ -29326,7 +29326,7 @@ function _createSuper(Derived) {
|
|
|
29326
29326
|
};
|
|
29327
29327
|
}
|
|
29328
29328
|
;// CONCATENATED MODULE: ./src/components/nodes/pool/config.js
|
|
29329
|
-
var
|
|
29329
|
+
var id = 'processmaker-modeler-pool';
|
|
29330
29330
|
;// CONCATENATED MODULE: ./src/components/nodes/genericFlow/Flow.js
|
|
29331
29331
|
|
|
29332
29332
|
|
|
@@ -29416,7 +29416,7 @@ var Flow = /*#__PURE__*/function () {
|
|
|
29416
29416
|
key: "shapeIsPool",
|
|
29417
29417
|
value: function shapeIsPool(shape) {
|
|
29418
29418
|
var shapeType = get_default()(shape, 'component.node.type');
|
|
29419
|
-
return shapeType ===
|
|
29419
|
+
return shapeType === id;
|
|
29420
29420
|
}
|
|
29421
29421
|
}]);
|
|
29422
29422
|
return Flow;
|
|
@@ -39257,18 +39257,18 @@ var NodeIdGenerator = /*#__PURE__*/function () {
|
|
|
39257
39257
|
_classPrivateFieldInitSpec(this, _generateDefinitionId, {
|
|
39258
39258
|
writable: true,
|
|
39259
39259
|
value: function value() {
|
|
39260
|
-
var _NodeIdGenerator$
|
|
39260
|
+
var _NodeIdGenerator$coun3, _NodeIdGenerator$coun4;
|
|
39261
39261
|
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
39262
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$
|
|
39262
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun4 = _NodeIdGenerator$coun3++, _NodeIdGenerator$coun3)), _NodeIdGenerator$coun4;
|
|
39263
39263
|
return id;
|
|
39264
39264
|
}
|
|
39265
39265
|
});
|
|
39266
39266
|
_classPrivateFieldInitSpec(this, _generateDiagramId, {
|
|
39267
39267
|
writable: true,
|
|
39268
39268
|
value: function value() {
|
|
39269
|
-
var _NodeIdGenerator$
|
|
39269
|
+
var _NodeIdGenerator$diag3, _NodeIdGenerator$diag4;
|
|
39270
39270
|
var id = NodeIdGenerator.prefix + _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter) + '_di';
|
|
39271
|
-
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$
|
|
39271
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag3 = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag4 = _NodeIdGenerator$diag3++, _NodeIdGenerator$diag3)), _NodeIdGenerator$diag4;
|
|
39272
39272
|
return id;
|
|
39273
39273
|
}
|
|
39274
39274
|
});
|
|
@@ -39349,6 +39349,18 @@ var NodeIdGenerator = /*#__PURE__*/function () {
|
|
|
39349
39349
|
this.refreshLastIdCounter();
|
|
39350
39350
|
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
39351
39351
|
}
|
|
39352
|
+
}, {
|
|
39353
|
+
key: "getDefinitionNumber",
|
|
39354
|
+
value: function getDefinitionNumber() {
|
|
39355
|
+
return _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter);
|
|
39356
|
+
}
|
|
39357
|
+
}, {
|
|
39358
|
+
key: "updateCounters",
|
|
39359
|
+
value: function updateCounters() {
|
|
39360
|
+
var _NodeIdGenerator$coun, _NodeIdGenerator$coun2, _NodeIdGenerator$diag, _NodeIdGenerator$diag2;
|
|
39361
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _counter, (_NodeIdGenerator$coun = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _counter), _NodeIdGenerator$coun2 = _NodeIdGenerator$coun++, _NodeIdGenerator$coun)), _NodeIdGenerator$coun2;
|
|
39362
|
+
_classStaticPrivateFieldSpecSet(NodeIdGenerator, NodeIdGenerator, _diagramCounter, (_NodeIdGenerator$diag = _classStaticPrivateFieldSpecGet(NodeIdGenerator, NodeIdGenerator, _diagramCounter), _NodeIdGenerator$diag2 = _NodeIdGenerator$diag++, _NodeIdGenerator$diag)), _NodeIdGenerator$diag2;
|
|
39363
|
+
}
|
|
39352
39364
|
}, {
|
|
39353
39365
|
key: "refreshLastDiagramIdCounter",
|
|
39354
39366
|
value: function refreshLastDiagramIdCounter() {
|
|
@@ -42456,7 +42468,7 @@ var pool_component = normalizeComponent(
|
|
|
42456
42468
|
|
|
42457
42469
|
|
|
42458
42470
|
/* harmony default export */ var nodes_pool = ({
|
|
42459
|
-
id:
|
|
42471
|
+
id: id,
|
|
42460
42472
|
component: pool,
|
|
42461
42473
|
bpmnType: 'bpmn:Participant',
|
|
42462
42474
|
control: true,
|
|
@@ -42723,11 +42735,11 @@ var ValidationStatus_component = normalizeComponent(
|
|
|
42723
42735
|
)
|
|
42724
42736
|
|
|
42725
42737
|
/* harmony default export */ var ValidationStatus = (ValidationStatus_component.exports);
|
|
42726
|
-
;// 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=
|
|
42738
|
+
;// 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=10fee576&
|
|
42727
42739
|
|
|
42728
42740
|
|
|
42729
42741
|
|
|
42730
|
-
var
|
|
42742
|
+
var Modelervue_type_template_id_10fee576_render = function render() {
|
|
42731
42743
|
var _vm = this,
|
|
42732
42744
|
_c = _vm._self._c;
|
|
42733
42745
|
return _c('span', {
|
|
@@ -42954,9 +42966,9 @@ var Modelervue_type_template_id_785a1a64_render = function render() {
|
|
|
42954
42966
|
});
|
|
42955
42967
|
})], 2);
|
|
42956
42968
|
};
|
|
42957
|
-
var
|
|
42969
|
+
var Modelervue_type_template_id_10fee576_staticRenderFns = [];
|
|
42958
42970
|
|
|
42959
|
-
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=
|
|
42971
|
+
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=10fee576&
|
|
42960
42972
|
|
|
42961
42973
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/boundaryEvent/boundaryEvent.vue?vue&type=template&id=2979ecac&
|
|
42962
42974
|
var boundaryEventvue_type_template_id_2979ecac_render = function render() {
|
|
@@ -45525,11 +45537,11 @@ function isTextAnnotation(bpmnType) {
|
|
|
45525
45537
|
function getPoolUnderPosition(clientX, clientY, paper, graph) {
|
|
45526
45538
|
return graph.findModelsFromPoint(getLocalMousePosition(clientX, clientY, paper)).find(function (_ref) {
|
|
45527
45539
|
var component = _ref.component;
|
|
45528
|
-
return component && component.node.type ===
|
|
45540
|
+
return component && component.node.type === id;
|
|
45529
45541
|
});
|
|
45530
45542
|
}
|
|
45531
45543
|
function isDroppingPool(controlType) {
|
|
45532
|
-
return controlType ===
|
|
45544
|
+
return controlType === id;
|
|
45533
45545
|
}
|
|
45534
45546
|
function noPoolsOnTheGrid(collaboration) {
|
|
45535
45547
|
return !collaboration || collaboration.get('participants').length === 0;
|
|
@@ -46365,7 +46377,7 @@ function getElementPool(shape) {
|
|
|
46365
46377
|
return shape.component.node.pool;
|
|
46366
46378
|
}
|
|
46367
46379
|
function isPool(shape) {
|
|
46368
|
-
return shape.component.node.type ===
|
|
46380
|
+
return shape.component.node.type === id;
|
|
46369
46381
|
}
|
|
46370
46382
|
;// 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/toolbar/ToolBar.vue?vue&type=template&id=a14390d2&
|
|
46371
46383
|
var ToolBarvue_type_template_id_a14390d2_render = function render() {
|
|
@@ -46927,9 +46939,9 @@ var ValidatePanel_component = normalizeComponent(
|
|
|
46927
46939
|
|
|
46928
46940
|
|
|
46929
46941
|
|
|
46930
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=
|
|
46942
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=2504b8f1&
|
|
46931
46943
|
|
|
46932
|
-
var
|
|
46944
|
+
var MultiplayerViewUsersvue_type_template_id_2504b8f1_render = function render() {
|
|
46933
46945
|
var _vm = this,
|
|
46934
46946
|
_c = _vm._self._c;
|
|
46935
46947
|
return _c('b-avatar-group', {
|
|
@@ -46945,9 +46957,9 @@ var MultiplayerViewUsersvue_type_template_id_cfdfca9e_render = function render()
|
|
|
46945
46957
|
})];
|
|
46946
46958
|
})], 2);
|
|
46947
46959
|
};
|
|
46948
|
-
var
|
|
46960
|
+
var MultiplayerViewUsersvue_type_template_id_2504b8f1_staticRenderFns = [];
|
|
46949
46961
|
|
|
46950
|
-
;// CONCATENATED MODULE: ./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=
|
|
46962
|
+
;// CONCATENATED MODULE: ./src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue?vue&type=template&id=2504b8f1&
|
|
46951
46963
|
|
|
46952
46964
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/topRail/multiplayerViewUsers/avatar/Avatar.vue?vue&type=template&id=1c50a604&scoped=true&
|
|
46953
46965
|
var Avatarvue_type_template_id_1c50a604_scoped_true_render = function render() {
|
|
@@ -47145,8 +47157,8 @@ var Avatar_component = normalizeComponent(
|
|
|
47145
47157
|
;
|
|
47146
47158
|
var MultiplayerViewUsers_component = normalizeComponent(
|
|
47147
47159
|
multiplayerViewUsers_MultiplayerViewUsersvue_type_script_lang_js_,
|
|
47148
|
-
|
|
47149
|
-
|
|
47160
|
+
MultiplayerViewUsersvue_type_template_id_2504b8f1_render,
|
|
47161
|
+
MultiplayerViewUsersvue_type_template_id_2504b8f1_staticRenderFns,
|
|
47150
47162
|
false,
|
|
47151
47163
|
null,
|
|
47152
47164
|
null,
|
|
@@ -48168,8 +48180,8 @@ var validTasks = ['bpmn:ServiceTask', 'bpmn:ManualTask', 'bpmn:CallActivity', 'b
|
|
|
48168
48180
|
var nodes = this.highlightedNodes;
|
|
48169
48181
|
var selector = this.$refs.selector.$el;
|
|
48170
48182
|
var flowNodeTypes = [sequenceFlow_id, poolLane_config_id, association_id, messageFlow_config_id, genericFlow_config_id];
|
|
48171
|
-
var dataInputAssociationNodeTypes = [
|
|
48172
|
-
var dataOutputAssociationNodeTypes = [
|
|
48183
|
+
var dataInputAssociationNodeTypes = [dataInputAssociation_config_id];
|
|
48184
|
+
var dataOutputAssociationNodeTypes = [config_id];
|
|
48173
48185
|
if (typeof selector.getBoundingClientRect === 'function') {
|
|
48174
48186
|
nodes.forEach(function (node) {
|
|
48175
48187
|
if (flowNodeTypes.includes(node.type)) {
|
|
@@ -49452,7 +49464,7 @@ var DataOutputAssociation = /*#__PURE__*/function (_DataAssociation) {
|
|
|
49452
49464
|
diagram.waypoint = [start, end].map(function (point) {
|
|
49453
49465
|
return _this.moddle.create('dc:Point', point);
|
|
49454
49466
|
});
|
|
49455
|
-
var node = new Node(
|
|
49467
|
+
var node = new Node(config_id, dataOutputAssociation, diagram);
|
|
49456
49468
|
node.dataAssociationProps = {
|
|
49457
49469
|
sourceShape: sourceShape,
|
|
49458
49470
|
targetCoords: {
|
|
@@ -50627,7 +50639,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
50627
50639
|
computed: {
|
|
50628
50640
|
hasPoolsOrLanesSelected: function hasPoolsOrLanesSelected() {
|
|
50629
50641
|
return this.selected.some(function (view) {
|
|
50630
|
-
return view.model.component.node.type ===
|
|
50642
|
+
return view.model.component.node.type === id || view.model.component.node.type === poolLane_config_id;
|
|
50631
50643
|
});
|
|
50632
50644
|
}
|
|
50633
50645
|
},
|
|
@@ -50729,14 +50741,14 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
50729
50741
|
}
|
|
50730
50742
|
// validate if there is a lane previously selected
|
|
50731
50743
|
var pool = this.selected.find(function (shape) {
|
|
50732
|
-
return shape.model.component.node.type ===
|
|
50744
|
+
return shape.model.component.node.type === id;
|
|
50733
50745
|
});
|
|
50734
|
-
if (pool && view.model.component.node.type !==
|
|
50746
|
+
if (pool && view.model.component.node.type !== id) {
|
|
50735
50747
|
this.selected = [view];
|
|
50736
50748
|
return;
|
|
50737
50749
|
}
|
|
50738
50750
|
// validate if the current selection is a pool
|
|
50739
|
-
if (view.model.component && view.model.component.node.type ===
|
|
50751
|
+
if (view.model.component && view.model.component.node.type === id) {
|
|
50740
50752
|
//validate if previous selection are all pools
|
|
50741
50753
|
if (this.hasOnlyPools(this.selected)) {
|
|
50742
50754
|
this.selectOrUnselectShape(view);
|
|
@@ -50918,7 +50930,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
50918
50930
|
shapes.forEach(function (shape) {
|
|
50919
50931
|
var conectedLinks = _this4.graph.getConnectedLinks(shape.model);
|
|
50920
50932
|
// if the shape is a container
|
|
50921
|
-
if (shape.model.component && shape.model.component.node.type ===
|
|
50933
|
+
if (shape.model.component && shape.model.component.node.type === id) {
|
|
50922
50934
|
var area = shape.model.getBBox();
|
|
50923
50935
|
var linksInArea = paper.model.getLinks().filter(function (link) {
|
|
50924
50936
|
var sourcePosition = link.getSourcePoint();
|
|
@@ -51022,7 +51034,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
51022
51034
|
* Filter the selected elements
|
|
51023
51035
|
*/
|
|
51024
51036
|
filterSelected: function filterSelected() {
|
|
51025
|
-
var flowTypes = [sequenceFlow_id,
|
|
51037
|
+
var flowTypes = [sequenceFlow_id, config_id, dataInputAssociation_config_id, association_id, messageFlow_config_id];
|
|
51026
51038
|
// Get the selected pools IDs
|
|
51027
51039
|
var selectedPoolsIds = this.selected.filter(function (shape) {
|
|
51028
51040
|
return shape.model.component;
|
|
@@ -51081,7 +51093,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
51081
51093
|
*/
|
|
51082
51094
|
hasOnlyPools: function hasOnlyPools(selected) {
|
|
51083
51095
|
var shapes = this.selected.filter(function (shape) {
|
|
51084
|
-
return shape.model.component && shape.model.component.node.type ===
|
|
51096
|
+
return shape.model.component && shape.model.component.node.type === id;
|
|
51085
51097
|
});
|
|
51086
51098
|
return shapes && selected.length === shapes.length;
|
|
51087
51099
|
},
|
|
@@ -51298,7 +51310,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
51298
51310
|
if (pool) {
|
|
51299
51311
|
return;
|
|
51300
51312
|
}
|
|
51301
|
-
if (model.getParentCell() && model.getParentCell().component.node.type ===
|
|
51313
|
+
if (model.getParentCell() && model.getParentCell().component.node.type === id) {
|
|
51302
51314
|
pool = model.getParentCell();
|
|
51303
51315
|
}
|
|
51304
51316
|
});
|
|
@@ -51314,11 +51326,11 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
51314
51326
|
if (elements.length > 0) {
|
|
51315
51327
|
var poolInSelection = elements.find(function (_ref2) {
|
|
51316
51328
|
var model = _ref2.model;
|
|
51317
|
-
return model.component && model.component.node.type ===
|
|
51329
|
+
return model.component && model.component.node.type === id;
|
|
51318
51330
|
});
|
|
51319
51331
|
var elementInAPool = elements.find(function (_ref3) {
|
|
51320
51332
|
var model = _ref3.model;
|
|
51321
|
-
return model.getParentCell() && model.getParentCell().component.node.type ===
|
|
51333
|
+
return model.getParentCell() && model.getParentCell().component.node.type === id;
|
|
51322
51334
|
});
|
|
51323
51335
|
return !!poolInSelection || !elementInAPool;
|
|
51324
51336
|
}
|
|
@@ -51334,7 +51346,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
51334
51346
|
var currentPool = this.getPool(this.selected);
|
|
51335
51347
|
var elementsUnderDivArea = this.getShapesFromPoint(event);
|
|
51336
51348
|
var pool = elementsUnderDivArea.find(function (item) {
|
|
51337
|
-
return item.model.component && item.model.component.node.type ===
|
|
51349
|
+
return item.model.component && item.model.component.node.type === id;
|
|
51338
51350
|
});
|
|
51339
51351
|
this.newPool = null;
|
|
51340
51352
|
this.oldPool = null;
|
|
@@ -51455,7 +51467,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
51455
51467
|
var pool = selected.find(function (_ref4) {
|
|
51456
51468
|
var model = _ref4.model;
|
|
51457
51469
|
if (model.getParentCell()) {
|
|
51458
|
-
return model.getParentCell().component.node.type ===
|
|
51470
|
+
return model.getParentCell().component.node.type === id;
|
|
51459
51471
|
}
|
|
51460
51472
|
return false;
|
|
51461
51473
|
}).model.getParentCell();
|
|
@@ -51525,7 +51537,7 @@ var crownMultiselect_component = normalizeComponent(
|
|
|
51525
51537
|
var pool = selected.find(function (_ref5) {
|
|
51526
51538
|
var model = _ref5.model;
|
|
51527
51539
|
if (model.getParentCell()) {
|
|
51528
|
-
return model.getParentCell().component.node.type ===
|
|
51540
|
+
return model.getParentCell().component.node.type === id;
|
|
51529
51541
|
}
|
|
51530
51542
|
return false;
|
|
51531
51543
|
});
|
|
@@ -51827,7 +51839,9 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
51827
51839
|
dragStart: null,
|
|
51828
51840
|
players: [],
|
|
51829
51841
|
showInspectorButton: true,
|
|
51830
|
-
inspectorButtonRight: 65
|
|
51842
|
+
inspectorButtonRight: 65,
|
|
51843
|
+
multiplayer: null,
|
|
51844
|
+
isMultiplayer: false
|
|
51831
51845
|
};
|
|
51832
51846
|
},
|
|
51833
51847
|
watch: {
|
|
@@ -51966,7 +51980,7 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
51966
51980
|
},
|
|
51967
51981
|
copyElement: function copyElement() {
|
|
51968
51982
|
// Checking if User selected a single flow and tries to copy it, to deny it.
|
|
51969
|
-
var flows = [sequenceFlow_id,
|
|
51983
|
+
var flows = [sequenceFlow_id, config_id, dataInputAssociation_config_id, genericFlow_config_id, process_id];
|
|
51970
51984
|
var boundaryEvents = [boundaryErrorEvent_id, boundaryConditionalEvent_id, boundaryEscalationEvent_id, boundaryMessageEvent_id, boundarySignalEvent_id, boundaryTimerEvent_id];
|
|
51971
51985
|
if (this.highlightedNodes.length === 1 && (flows.includes(this.highlightedNodes[0].type) || boundaryEvents.includes(this.highlightedNodes[0].type))) return;
|
|
51972
51986
|
store.commit('setCopiedElements', this.cloneNodesSelection());
|
|
@@ -52752,25 +52766,42 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
52752
52766
|
control: control
|
|
52753
52767
|
});
|
|
52754
52768
|
},
|
|
52755
|
-
handleDrop: function handleDrop(
|
|
52756
|
-
var
|
|
52769
|
+
handleDrop: function handleDrop(data) {
|
|
52770
|
+
var clientX = data.clientX,
|
|
52771
|
+
clientY = data.clientY,
|
|
52772
|
+
control = data.control;
|
|
52773
|
+
if (this.isMultiplayer) {
|
|
52774
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-addNode', {
|
|
52775
|
+
clientX: clientX,
|
|
52776
|
+
clientY: clientY,
|
|
52777
|
+
control: control,
|
|
52778
|
+
id: "node_".concat(this.nodeIdGenerator.getDefinitionNumber())
|
|
52779
|
+
});
|
|
52780
|
+
} else {
|
|
52781
|
+
this.handleDropProcedure(data);
|
|
52782
|
+
}
|
|
52783
|
+
},
|
|
52784
|
+
handleDropProcedure: function handleDropProcedure(data) {
|
|
52785
|
+
var _arguments3 = arguments,
|
|
52786
|
+
_this26 = this;
|
|
52757
52787
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
|
|
52758
|
-
var clientX, clientY, control, nodeThatWillBeReplaced, definition, diagram, _this26$paperManager$, x, y, newNode, nodeMigrator;
|
|
52788
|
+
var selected, clientX, clientY, control, nodeThatWillBeReplaced, id, definition, diagram, _this26$paperManager$, x, y, newNode, nodeMigrator;
|
|
52759
52789
|
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
52760
52790
|
while (1) switch (_context13.prev = _context13.next) {
|
|
52761
52791
|
case 0:
|
|
52762
|
-
|
|
52792
|
+
selected = _arguments3.length > 1 && _arguments3[1] !== undefined ? _arguments3[1] : true;
|
|
52793
|
+
clientX = data.clientX, clientY = data.clientY, control = data.control, nodeThatWillBeReplaced = data.nodeThatWillBeReplaced, id = data.id;
|
|
52763
52794
|
_this26.validateDropTarget({
|
|
52764
52795
|
clientX: clientX,
|
|
52765
52796
|
clientY: clientY,
|
|
52766
52797
|
control: control
|
|
52767
52798
|
});
|
|
52768
52799
|
if (_this26.allowDrop) {
|
|
52769
|
-
_context13.next =
|
|
52800
|
+
_context13.next = 5;
|
|
52770
52801
|
break;
|
|
52771
52802
|
}
|
|
52772
52803
|
return _context13.abrupt("return");
|
|
52773
|
-
case
|
|
52804
|
+
case 5:
|
|
52774
52805
|
definition = _this26.nodeRegistry[control.type].definition(_this26.moddle, _this26.$t);
|
|
52775
52806
|
diagram = _this26.nodeRegistry[control.type].diagram(_this26.moddle);
|
|
52776
52807
|
_this26$paperManager$ = _this26.paperManager.clientToGridPoint(clientX, clientY), x = _this26$paperManager$.x, y = _this26$paperManager$.y;
|
|
@@ -52780,20 +52811,22 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
52780
52811
|
if (newNode.isBpmnType('bpmn:BoundaryEvent')) {
|
|
52781
52812
|
_this26.setShapeCenterUnderCursor(diagram);
|
|
52782
52813
|
}
|
|
52783
|
-
|
|
52784
|
-
|
|
52785
|
-
|
|
52786
|
-
|
|
52814
|
+
if (selected) {
|
|
52815
|
+
_this26.highlightNode(newNode);
|
|
52816
|
+
}
|
|
52817
|
+
_context13.next = 15;
|
|
52818
|
+
return _this26.addNode(newNode, id, selected);
|
|
52819
|
+
case 15:
|
|
52787
52820
|
if (nodeThatWillBeReplaced) {
|
|
52788
|
-
_context13.next =
|
|
52821
|
+
_context13.next = 17;
|
|
52789
52822
|
break;
|
|
52790
52823
|
}
|
|
52791
52824
|
return _context13.abrupt("return");
|
|
52792
|
-
case
|
|
52825
|
+
case 17:
|
|
52793
52826
|
nodeMigrator = new NodeMigrator(nodeThatWillBeReplaced, definition, _this26.graph, newNode, _this26.processes, _this26.collaboration);
|
|
52794
52827
|
nodeMigrator.migrate();
|
|
52795
52828
|
return _context13.abrupt("return", newNode);
|
|
52796
|
-
case
|
|
52829
|
+
case 20:
|
|
52797
52830
|
case "end":
|
|
52798
52831
|
return _context13.stop();
|
|
52799
52832
|
}
|
|
@@ -52831,38 +52864,43 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
52831
52864
|
}))();
|
|
52832
52865
|
},
|
|
52833
52866
|
addNode: function addNode(node) {
|
|
52834
|
-
var
|
|
52867
|
+
var _arguments4 = arguments,
|
|
52868
|
+
_this28 = this;
|
|
52835
52869
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
|
|
52836
|
-
var targetProcess;
|
|
52870
|
+
var id, selected, targetProcess;
|
|
52837
52871
|
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
52838
52872
|
while (1) switch (_context15.prev = _context15.next) {
|
|
52839
52873
|
case 0:
|
|
52874
|
+
id = _arguments4.length > 1 && _arguments4[1] !== undefined ? _arguments4[1] : null;
|
|
52875
|
+
selected = _arguments4.length > 2 && _arguments4[2] !== undefined ? _arguments4[2] : true;
|
|
52840
52876
|
if (!node.pool) {
|
|
52841
52877
|
node.pool = _this28.poolTarget;
|
|
52842
52878
|
}
|
|
52843
52879
|
targetProcess = node.getTargetProcess(_this28.processes, _this28.processNode);
|
|
52844
52880
|
addNodeToProcess(node, targetProcess);
|
|
52845
|
-
node.setIds(_this28.nodeIdGenerator);
|
|
52881
|
+
node.setIds(_this28.nodeIdGenerator, id);
|
|
52846
52882
|
_this28.planeElements.push(node.diagram);
|
|
52847
52883
|
store.commit('addNode', node);
|
|
52848
52884
|
_this28.poolTarget = null;
|
|
52849
52885
|
|
|
52850
52886
|
// add processmaker-modeler-generic-flow
|
|
52851
|
-
if (![sequenceFlow_id, poolLane_config_id, association_id, messageFlow_config_id,
|
|
52852
|
-
_context15.next =
|
|
52887
|
+
if (![sequenceFlow_id, poolLane_config_id, association_id, messageFlow_config_id, config_id, dataInputAssociation_config_id, genericFlow_config_id].includes(node.type)) {
|
|
52888
|
+
_context15.next = 11;
|
|
52853
52889
|
break;
|
|
52854
52890
|
}
|
|
52855
52891
|
return _context15.abrupt("return");
|
|
52856
|
-
case
|
|
52857
|
-
|
|
52858
|
-
|
|
52892
|
+
case 11:
|
|
52893
|
+
if (selected) {
|
|
52894
|
+
// Select the node after it has been added to the store (does not apply to flows)
|
|
52895
|
+
_this28.selectNewNode(node);
|
|
52896
|
+
}
|
|
52859
52897
|
return _context15.abrupt("return", new Promise(function (resolve) {
|
|
52860
52898
|
setTimeout(function () {
|
|
52861
52899
|
_this28.pushToUndoStack();
|
|
52862
52900
|
resolve();
|
|
52863
52901
|
});
|
|
52864
52902
|
}));
|
|
52865
|
-
case
|
|
52903
|
+
case 13:
|
|
52866
52904
|
case "end":
|
|
52867
52905
|
return _context15.stop();
|
|
52868
52906
|
}
|
|
@@ -52893,14 +52931,14 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
52893
52931
|
}))();
|
|
52894
52932
|
},
|
|
52895
52933
|
removeNode: function removeNode(node) {
|
|
52896
|
-
var
|
|
52934
|
+
var _arguments5 = arguments,
|
|
52897
52935
|
_this30 = this;
|
|
52898
52936
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
|
|
52899
|
-
var
|
|
52937
|
+
var _ref6, _ref6$removeRelations, removeRelationships;
|
|
52900
52938
|
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
52901
52939
|
while (1) switch (_context17.prev = _context17.next) {
|
|
52902
52940
|
case 0:
|
|
52903
|
-
|
|
52941
|
+
_ref6 = _arguments5.length > 1 && _arguments5[1] !== undefined ? _arguments5[1] : {}, _ref6$removeRelations = _ref6.removeRelationships, removeRelationships = _ref6$removeRelations === void 0 ? true : _ref6$removeRelations;
|
|
52904
52942
|
if (node) {
|
|
52905
52943
|
_context17.next = 3;
|
|
52906
52944
|
break;
|
|
@@ -52986,10 +53024,10 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
52986
53024
|
}, _callee20);
|
|
52987
53025
|
}))();
|
|
52988
53026
|
},
|
|
52989
|
-
replaceNode: function replaceNode(
|
|
53027
|
+
replaceNode: function replaceNode(_ref9) {
|
|
52990
53028
|
var _this32 = this;
|
|
52991
|
-
var node =
|
|
52992
|
-
typeToReplaceWith =
|
|
53029
|
+
var node = _ref9.node,
|
|
53030
|
+
typeToReplaceWith = _ref9.typeToReplaceWith;
|
|
52993
53031
|
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
|
|
52994
53032
|
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
52995
53033
|
while (1) switch (_context22.prev = _context22.next) {
|
|
@@ -53002,7 +53040,7 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
53002
53040
|
case 0:
|
|
53003
53041
|
_this32$paper$localTo = _this32.paper.localToClientPoint(node.diagram.bounds), clientX = _this32$paper$localTo.x, clientY = _this32$paper$localTo.y;
|
|
53004
53042
|
_context21.next = 3;
|
|
53005
|
-
return _this32.
|
|
53043
|
+
return _this32.handleDropProcedure({
|
|
53006
53044
|
clientX: clientX,
|
|
53007
53045
|
clientY: clientY,
|
|
53008
53046
|
control: {
|
|
@@ -53032,11 +53070,11 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
53032
53070
|
}, _callee22);
|
|
53033
53071
|
})));
|
|
53034
53072
|
},
|
|
53035
|
-
replaceGenericFlow: function replaceGenericFlow(
|
|
53073
|
+
replaceGenericFlow: function replaceGenericFlow(_ref12) {
|
|
53036
53074
|
var _this33 = this;
|
|
53037
|
-
var actualFlow =
|
|
53038
|
-
genericFlow =
|
|
53039
|
-
targetNode =
|
|
53075
|
+
var actualFlow = _ref12.actualFlow,
|
|
53076
|
+
genericFlow = _ref12.genericFlow,
|
|
53077
|
+
targetNode = _ref12.targetNode;
|
|
53040
53078
|
this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
|
|
53041
53079
|
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
|
53042
53080
|
while (1) switch (_context24.prev = _context24.next) {
|
|
@@ -53149,10 +53187,10 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
53149
53187
|
this.parentHeight = clientHeight + 'px';
|
|
53150
53188
|
this.paperManager.setPaperDimensions(clientWidth, clientHeight);
|
|
53151
53189
|
},
|
|
53152
|
-
validateDropTarget: function validateDropTarget(
|
|
53153
|
-
var clientX =
|
|
53154
|
-
clientY =
|
|
53155
|
-
control =
|
|
53190
|
+
validateDropTarget: function validateDropTarget(_ref15) {
|
|
53191
|
+
var clientX = _ref15.clientX,
|
|
53192
|
+
clientY = _ref15.clientY,
|
|
53193
|
+
control = _ref15.control;
|
|
53156
53194
|
var _getValidationPropert = getValidationProperties(clientX, clientY, control, this.paperManager.paper, this.graph, this.collaboration, this.$refs['paper-container']),
|
|
53157
53195
|
allowDrop = _getValidationPropert.allowDrop,
|
|
53158
53196
|
poolTarget = _getValidationPropert.poolTarget;
|
|
@@ -53312,6 +53350,9 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
53312
53350
|
this.isDragging = false;
|
|
53313
53351
|
this.dragStart = null;
|
|
53314
53352
|
this.isSelecting = false;
|
|
53353
|
+
},
|
|
53354
|
+
enableMultiplayer: function enableMultiplayer() {
|
|
53355
|
+
this.isMultiplayer = true;
|
|
53315
53356
|
}
|
|
53316
53357
|
},
|
|
53317
53358
|
created: function created() {
|
|
@@ -53379,8 +53420,8 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
53379
53420
|
_this38.isOverShape = false;
|
|
53380
53421
|
_this38.pointerDownHandler(event);
|
|
53381
53422
|
}, this);
|
|
53382
|
-
this.paperManager.addEventHandler('cell:mouseover element:mouseover', function (
|
|
53383
|
-
var shape =
|
|
53423
|
+
this.paperManager.addEventHandler('cell:mouseover element:mouseover', function (_ref16) {
|
|
53424
|
+
var shape = _ref16.model;
|
|
53384
53425
|
if (_this38.isBpmnNode(shape) && shape.attr('body/cursor') !== 'default' && !_this38.isGrabbing) {
|
|
53385
53426
|
shape.attr('body/cursor', 'move');
|
|
53386
53427
|
}
|
|
@@ -53416,8 +53457,8 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
53416
53457
|
clickHandler(cellView, evt, x, y);
|
|
53417
53458
|
}
|
|
53418
53459
|
});
|
|
53419
|
-
this.paperManager.addEventHandler('cell:pointerclick', function (
|
|
53420
|
-
var shape =
|
|
53460
|
+
this.paperManager.addEventHandler('cell:pointerclick', function (_ref17, event) {
|
|
53461
|
+
var shape = _ref17.model;
|
|
53421
53462
|
if (!_this38.isBpmnNode(shape)) {
|
|
53422
53463
|
return;
|
|
53423
53464
|
}
|
|
@@ -53430,8 +53471,8 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
53430
53471
|
node: _this38.highlightedNode.definition
|
|
53431
53472
|
});
|
|
53432
53473
|
});
|
|
53433
|
-
this.paperManager.addEventHandler('cell:pointerdown', function (
|
|
53434
|
-
var shape =
|
|
53474
|
+
this.paperManager.addEventHandler('cell:pointerdown', function (_ref18, event) {
|
|
53475
|
+
var shape = _ref18.model;
|
|
53435
53476
|
if (!_this38.isBpmnNode(shape)) {
|
|
53436
53477
|
return;
|
|
53437
53478
|
}
|
|
@@ -53476,6 +53517,13 @@ var RemoteCursor_component = normalizeComponent(
|
|
|
53476
53517
|
_context27.next = 4;
|
|
53477
53518
|
return undoRedoStore.dispatch('pushState', xml);
|
|
53478
53519
|
case 4:
|
|
53520
|
+
if (_this38.isMultiplayer) {
|
|
53521
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-start', {
|
|
53522
|
+
modeler: _this38,
|
|
53523
|
+
callback: _this38.enableMultiplayer
|
|
53524
|
+
});
|
|
53525
|
+
}
|
|
53526
|
+
case 5:
|
|
53479
53527
|
case "end":
|
|
53480
53528
|
return _context27.stop();
|
|
53481
53529
|
}
|
|
@@ -53512,8 +53560,8 @@ var modelervue_type_style_index_0_prod_lang_scss_ = __webpack_require__(26695);
|
|
|
53512
53560
|
|
|
53513
53561
|
var Modeler_component = normalizeComponent(
|
|
53514
53562
|
modeler_Modelervue_type_script_lang_js_,
|
|
53515
|
-
|
|
53516
|
-
|
|
53563
|
+
Modelervue_type_template_id_10fee576_render,
|
|
53564
|
+
Modelervue_type_template_id_10fee576_staticRenderFns,
|
|
53517
53565
|
false,
|
|
53518
53566
|
null,
|
|
53519
53567
|
null,
|