@processmaker/modeler 1.36.8 → 1.36.10

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.
@@ -32712,7 +32712,7 @@ var inclusiveGateway_id = 'processmaker-modeler-inclusive-gateway';
32712
32712
  component: 'FormInput',
32713
32713
  config: inspectors_nameConfigSettings
32714
32714
  }]
32715
- }, {
32715
+ }, documentationAccordionConfig, {
32716
32716
  component: 'FormAccordion',
32717
32717
  container: true,
32718
32718
  config: {
@@ -32738,12 +32738,6 @@ var inclusiveGateway_id = 'processmaker-modeler-inclusive-gateway';
32738
32738
  content: 'Converging'
32739
32739
  }]
32740
32740
  }
32741
- }, {
32742
- component: DocumentationFormTextArea,
32743
- config: {
32744
- label: 'Description',
32745
- name: 'documentation'
32746
- }
32747
32741
  }]
32748
32742
  }]
32749
32743
  }]
@@ -32838,7 +32832,7 @@ var parallelGateway_component = normalizeComponent(
32838
32832
  component: 'FormInput',
32839
32833
  config: inspectors_nameConfigSettings
32840
32834
  }]
32841
- }, {
32835
+ }, documentationAccordionConfig, {
32842
32836
  component: 'FormAccordion',
32843
32837
  container: true,
32844
32838
  config: {
@@ -32864,12 +32858,6 @@ var parallelGateway_component = normalizeComponent(
32864
32858
  content: 'Converging'
32865
32859
  }]
32866
32860
  }
32867
- }, {
32868
- component: DocumentationFormTextArea,
32869
- config: {
32870
- label: 'Description',
32871
- name: 'documentation'
32872
- }
32873
32861
  }]
32874
32862
  }]
32875
32863
  }]
@@ -42322,10 +42310,10 @@ var ValidationStatus_component = normalizeComponent(
42322
42310
  )
42323
42311
 
42324
42312
  /* harmony default export */ var ValidationStatus = (ValidationStatus_component.exports);
42325
- ;// 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=7233010b&
42313
+ ;// 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=84267fa8&
42326
42314
 
42327
42315
 
42328
- var Modelervue_type_template_id_7233010b_render = function render() {
42316
+ var Modelervue_type_template_id_84267fa8_render = function render() {
42329
42317
  var _vm = this,
42330
42318
  _c = _vm._self._c;
42331
42319
  return _c('span', {
@@ -42517,9 +42505,9 @@ var Modelervue_type_template_id_7233010b_render = function render() {
42517
42505
  }
42518
42506
  }) : _vm._e()], 2)], 1);
42519
42507
  };
42520
- var Modelervue_type_template_id_7233010b_staticRenderFns = [];
42508
+ var Modelervue_type_template_id_84267fa8_staticRenderFns = [];
42521
42509
 
42522
- ;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=7233010b&
42510
+ ;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=84267fa8&
42523
42511
 
42524
42512
  ;// 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&
42525
42513
  var boundaryEventvue_type_template_id_2979ecac_render = function render() {
@@ -51295,6 +51283,13 @@ var Selection_component = normalizeComponent(
51295
51283
  this.pmBlockNodes.push(pmBlockNode);
51296
51284
  var types = Array.isArray(pmBlockNode.bpmnType) ? pmBlockNode.bpmnType : [pmBlockNode.bpmnType];
51297
51285
  types.forEach(function (bpmnType) {
51286
+ if (!_this12.parsers[bpmnType]) {
51287
+ _this12.parsers[bpmnType] = {
51288
+ custom: [],
51289
+ implementation: [],
51290
+ default: []
51291
+ };
51292
+ }
51298
51293
  if (customParser) {
51299
51294
  _this12.parsers[bpmnType].custom.push(customParser);
51300
51295
  return;
@@ -51473,14 +51468,30 @@ var Selection_component = normalizeComponent(
51473
51468
  return;
51474
51469
  }
51475
51470
  this.removeUnsupportedElementAttributes(definition);
51476
- var type = parser(definition, this.moddle);
51471
+ var config = definition.config ? JSON.parse(definition.config) : {};
51472
+ var type = (config === null || config === void 0 ? void 0 : config.processKey) || parser(definition, this.moddle);
51477
51473
  var unnamedElements = ['bpmn:TextAnnotation', 'bpmn:Association', 'bpmn:DataOutputAssociation', 'bpmn:DataInputAssociation'];
51478
51474
  var requireName = unnamedElements.indexOf(bpmnType) === -1;
51479
51475
  if (requireName && !definition.get('name')) {
51480
51476
  definition.set('name', '');
51481
51477
  }
51482
- var node = this.createNode(type, definition, diagram);
51483
- store.commit('addNode', node);
51478
+ this.createNodeAsync(type, definition, diagram);
51479
+ },
51480
+ createNodeAsync: function createNodeAsync(type, definition, diagram) {
51481
+ var _this21 = this;
51482
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
51483
+ var node;
51484
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
51485
+ while (1) switch (_context8.prev = _context8.next) {
51486
+ case 0:
51487
+ node = _this21.createNode(type, definition, diagram);
51488
+ store.commit('addNode', node);
51489
+ case 2:
51490
+ case "end":
51491
+ return _context8.stop();
51492
+ }
51493
+ }, _callee8);
51494
+ }))();
51484
51495
  },
51485
51496
  createNode: function createNode(type, definition, diagram) {
51486
51497
  if (Node.isTimerType(type)) {
@@ -51500,95 +51511,95 @@ var Selection_component = normalizeComponent(
51500
51511
  return hasSource && hasTarget;
51501
51512
  },
51502
51513
  waitForCursorToChange: function waitForCursorToChange() {
51503
- var _this21 = this;
51504
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
51514
+ var _this22 = this;
51515
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
51505
51516
  var cursorWaitTime;
51506
- return _regeneratorRuntime().wrap(function _callee8$(_context8) {
51507
- while (1) switch (_context8.prev = _context8.next) {
51517
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
51518
+ while (1) switch (_context9.prev = _context9.next) {
51508
51519
  case 0:
51509
51520
  cursorWaitTime = 300;
51510
- _context8.next = 3;
51511
- return _this21.$nextTick();
51521
+ _context9.next = 3;
51522
+ return _this22.$nextTick();
51512
51523
  case 3:
51513
- return _context8.abrupt("return", new Promise(function (resolve) {
51524
+ return _context9.abrupt("return", new Promise(function (resolve) {
51514
51525
  return setTimeout(resolve, cursorWaitTime);
51515
51526
  }));
51516
51527
  case 4:
51517
51528
  case "end":
51518
- return _context8.stop();
51529
+ return _context9.stop();
51519
51530
  }
51520
- }, _callee8);
51531
+ }, _callee9);
51521
51532
  }))();
51522
51533
  },
51523
51534
  renderPaper: function renderPaper() {
51524
- var _this22 = this;
51525
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
51526
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
51527
- while (1) switch (_context10.prev = _context10.next) {
51535
+ var _this23 = this;
51536
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
51537
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
51538
+ while (1) switch (_context11.prev = _context11.next) {
51528
51539
  case 0:
51529
- _this22.isRendering = true;
51530
- _context10.next = 3;
51531
- return _this22.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
51532
- return _regeneratorRuntime().wrap(function _callee9$(_context9) {
51533
- while (1) switch (_context9.prev = _context9.next) {
51540
+ _this23.isRendering = true;
51541
+ _context11.next = 3;
51542
+ return _this23.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
51543
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
51544
+ while (1) switch (_context10.prev = _context10.next) {
51534
51545
  case 0:
51535
- _context9.next = 2;
51536
- return _this22.waitForCursorToChange();
51546
+ _context10.next = 2;
51547
+ return _this23.waitForCursorToChange();
51537
51548
  case 2:
51538
- _this22.parse();
51539
- _this22.addPools();
51540
- _this22.setUpDiagram();
51549
+ _this23.parse();
51550
+ _this23.addPools();
51551
+ _this23.setUpDiagram();
51541
51552
  case 5:
51542
51553
  case "end":
51543
- return _context9.stop();
51554
+ return _context10.stop();
51544
51555
  }
51545
- }, _callee9);
51556
+ }, _callee10);
51546
51557
  })));
51547
51558
  case 3:
51548
- _context10.next = 5;
51549
- return _this22.paperManager.awaitScheduledUpdates();
51559
+ _context11.next = 5;
51560
+ return _this23.paperManager.awaitScheduledUpdates();
51550
51561
  case 5:
51551
- _this22.isRendering = false;
51552
- _this22.$emit('parsed');
51562
+ _this23.isRendering = false;
51563
+ _this23.$emit('parsed');
51553
51564
  case 7:
51554
51565
  case "end":
51555
- return _context10.stop();
51566
+ return _context11.stop();
51556
51567
  }
51557
- }, _callee10);
51568
+ }, _callee11);
51558
51569
  }))();
51559
51570
  },
51560
51571
  loadXML: function loadXML() {
51561
51572
  var _arguments2 = arguments,
51562
- _this23 = this;
51563
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
51573
+ _this24 = this;
51574
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
51564
51575
  var xml, emitChangeEvent;
51565
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
51566
- while (1) switch (_context11.prev = _context11.next) {
51576
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
51577
+ while (1) switch (_context12.prev = _context12.next) {
51567
51578
  case 0:
51568
51579
  xml = _arguments2.length > 0 && _arguments2[0] !== undefined ? _arguments2[0] : null;
51569
51580
  emitChangeEvent = false;
51570
51581
  if (xml === null) {
51571
- xml = _this23.currentXML;
51582
+ xml = _this24.currentXML;
51572
51583
  emitChangeEvent = true;
51573
51584
  }
51574
- _context11.next = 5;
51575
- return _this23.xmlManager.getDefinitionsFromXml(xml);
51585
+ _context12.next = 5;
51586
+ return _this24.xmlManager.getDefinitionsFromXml(xml);
51576
51587
  case 5:
51577
- _this23.definitions = _context11.sent;
51578
- _this23.xmlManager.definitions = _this23.definitions;
51579
- _this23.nodeIdGenerator = getNodeIdGenerator(_this23.definitions);
51588
+ _this24.definitions = _context12.sent;
51589
+ _this24.xmlManager.definitions = _this24.definitions;
51590
+ _this24.nodeIdGenerator = getNodeIdGenerator(_this24.definitions);
51580
51591
  store.commit('clearNodes');
51581
- _context11.next = 11;
51582
- return _this23.renderPaper();
51592
+ _context12.next = 11;
51593
+ return _this24.renderPaper();
51583
51594
  case 11:
51584
51595
  if (emitChangeEvent) {
51585
51596
  window.ProcessMaker.EventBus.$emit('modeler-change');
51586
51597
  }
51587
51598
  case 12:
51588
51599
  case "end":
51589
- return _context11.stop();
51600
+ return _context12.stop();
51590
51601
  }
51591
- }, _callee11);
51602
+ }, _callee12);
51592
51603
  }))();
51593
51604
  },
51594
51605
  getBoundaryEvents: function getBoundaryEvents(process) {
@@ -51612,13 +51623,13 @@ var Selection_component = normalizeComponent(
51612
51623
  return boundaryEvent;
51613
51624
  },
51614
51625
  ensureCancelActivityIsAddedToBoundaryEvents: function ensureCancelActivityIsAddedToBoundaryEvents(process) {
51615
- var _this24 = this;
51626
+ var _this25 = this;
51616
51627
  this.getBoundaryEvents(process).forEach(function (definition) {
51617
- var boundaryEvent = _this24.createBoundaryEvent(definition);
51628
+ var boundaryEvent = _this25.createBoundaryEvent(definition);
51618
51629
  definition.get('outgoing').forEach(function (outgoing) {
51619
51630
  return outgoing.set('sourceRef', boundaryEvent);
51620
51631
  });
51621
- _this24.replaceDefinition(definition, boundaryEvent, process);
51632
+ _this25.replaceDefinition(definition, boundaryEvent, process);
51622
51633
  });
51623
51634
  },
51624
51635
  replaceDefinition: function replaceDefinition(definition, boundaryEvent, process) {
@@ -51644,51 +51655,51 @@ var Selection_component = normalizeComponent(
51644
51655
  });
51645
51656
  },
51646
51657
  handleDrop: function handleDrop(_ref6) {
51647
- var _this25 = this;
51648
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
51649
- var clientX, clientY, control, nodeThatWillBeReplaced, definition, diagram, _this25$paperManager$, x, y, newNode, nodeMigrator;
51650
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
51651
- while (1) switch (_context12.prev = _context12.next) {
51658
+ var _this26 = this;
51659
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
51660
+ var clientX, clientY, control, nodeThatWillBeReplaced, definition, diagram, _this26$paperManager$, x, y, newNode, nodeMigrator;
51661
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
51662
+ while (1) switch (_context13.prev = _context13.next) {
51652
51663
  case 0:
51653
51664
  clientX = _ref6.clientX, clientY = _ref6.clientY, control = _ref6.control, nodeThatWillBeReplaced = _ref6.nodeThatWillBeReplaced;
51654
- _this25.validateDropTarget({
51665
+ _this26.validateDropTarget({
51655
51666
  clientX: clientX,
51656
51667
  clientY: clientY,
51657
51668
  control: control
51658
51669
  });
51659
- if (_this25.allowDrop) {
51660
- _context12.next = 4;
51670
+ if (_this26.allowDrop) {
51671
+ _context13.next = 4;
51661
51672
  break;
51662
51673
  }
51663
- return _context12.abrupt("return");
51674
+ return _context13.abrupt("return");
51664
51675
  case 4:
51665
- definition = _this25.nodeRegistry[control.type].definition(_this25.moddle, _this25.$t);
51666
- diagram = _this25.nodeRegistry[control.type].diagram(_this25.moddle);
51667
- _this25$paperManager$ = _this25.paperManager.clientToGridPoint(clientX, clientY), x = _this25$paperManager$.x, y = _this25$paperManager$.y;
51676
+ definition = _this26.nodeRegistry[control.type].definition(_this26.moddle, _this26.$t);
51677
+ diagram = _this26.nodeRegistry[control.type].diagram(_this26.moddle);
51678
+ _this26$paperManager$ = _this26.paperManager.clientToGridPoint(clientX, clientY), x = _this26$paperManager$.x, y = _this26$paperManager$.y;
51668
51679
  diagram.bounds.x = x;
51669
51680
  diagram.bounds.y = y;
51670
- newNode = _this25.createNode(control.type, definition, diagram);
51681
+ newNode = _this26.createNode(control.type, definition, diagram);
51671
51682
  if (newNode.isBpmnType('bpmn:BoundaryEvent')) {
51672
- _this25.setShapeCenterUnderCursor(diagram);
51683
+ _this26.setShapeCenterUnderCursor(diagram);
51673
51684
  }
51674
- _this25.highlightNode(newNode);
51675
- _context12.next = 14;
51676
- return _this25.addNode(newNode);
51685
+ _this26.highlightNode(newNode);
51686
+ _context13.next = 14;
51687
+ return _this26.addNode(newNode);
51677
51688
  case 14:
51678
51689
  if (nodeThatWillBeReplaced) {
51679
- _context12.next = 16;
51690
+ _context13.next = 16;
51680
51691
  break;
51681
51692
  }
51682
- return _context12.abrupt("return");
51693
+ return _context13.abrupt("return");
51683
51694
  case 16:
51684
- nodeMigrator = new NodeMigrator(nodeThatWillBeReplaced, definition, _this25.graph, newNode, _this25.processes, _this25.collaboration);
51695
+ nodeMigrator = new NodeMigrator(nodeThatWillBeReplaced, definition, _this26.graph, newNode, _this26.processes, _this26.collaboration);
51685
51696
  nodeMigrator.migrate();
51686
- return _context12.abrupt("return", newNode);
51697
+ return _context13.abrupt("return", newNode);
51687
51698
  case 19:
51688
51699
  case "end":
51689
- return _context12.stop();
51700
+ return _context13.stop();
51690
51701
  }
51691
- }, _callee12);
51702
+ }, _callee13);
51692
51703
  }))();
51693
51704
  },
51694
51705
  setShapeCenterUnderCursor: function setShapeCenterUnderCursor(diagram) {
@@ -51696,204 +51707,204 @@ var Selection_component = normalizeComponent(
51696
51707
  diagram.bounds.y -= diagram.bounds.height / 2;
51697
51708
  },
51698
51709
  selectNewNode: function selectNewNode(node) {
51699
- var _this26 = this;
51700
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13() {
51710
+ var _this27 = this;
51711
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
51701
51712
  var newNodeComponent, view;
51702
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
51703
- while (1) switch (_context13.prev = _context13.next) {
51713
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
51714
+ while (1) switch (_context14.prev = _context14.next) {
51704
51715
  case 0:
51705
- _context13.next = 2;
51706
- return _this26.$nextTick();
51716
+ _context14.next = 2;
51717
+ return _this27.$nextTick();
51707
51718
  case 2:
51708
- _context13.next = 4;
51709
- return _this26.paperManager.awaitScheduledUpdates();
51719
+ _context14.next = 4;
51720
+ return _this27.paperManager.awaitScheduledUpdates();
51710
51721
  case 4:
51711
- newNodeComponent = _this26.$refs.nodeComponent.find(function (component) {
51722
+ newNodeComponent = _this27.$refs.nodeComponent.find(function (component) {
51712
51723
  return component.node === node;
51713
51724
  });
51714
51725
  view = newNodeComponent.shapeView;
51715
- _context13.next = 8;
51716
- return _this26.$refs.selector.selectElement(view);
51726
+ _context14.next = 8;
51727
+ return _this27.$refs.selector.selectElement(view);
51717
51728
  case 8:
51718
51729
  case "end":
51719
- return _context13.stop();
51730
+ return _context14.stop();
51720
51731
  }
51721
- }, _callee13);
51732
+ }, _callee14);
51722
51733
  }))();
51723
51734
  },
51724
51735
  addNode: function addNode(node) {
51725
- var _this27 = this;
51726
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14() {
51736
+ var _this28 = this;
51737
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
51727
51738
  var targetProcess;
51728
- return _regeneratorRuntime().wrap(function _callee14$(_context14) {
51729
- while (1) switch (_context14.prev = _context14.next) {
51739
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
51740
+ while (1) switch (_context15.prev = _context15.next) {
51730
51741
  case 0:
51731
51742
  if (!node.pool) {
51732
- node.pool = _this27.poolTarget;
51743
+ node.pool = _this28.poolTarget;
51733
51744
  }
51734
- targetProcess = node.getTargetProcess(_this27.processes, _this27.processNode);
51745
+ targetProcess = node.getTargetProcess(_this28.processes, _this28.processNode);
51735
51746
  addNodeToProcess(node, targetProcess);
51736
- node.setIds(_this27.nodeIdGenerator);
51737
- _this27.planeElements.push(node.diagram);
51747
+ node.setIds(_this28.nodeIdGenerator);
51748
+ _this28.planeElements.push(node.diagram);
51738
51749
  store.commit('addNode', node);
51739
- _this27.poolTarget = null;
51750
+ _this28.poolTarget = null;
51740
51751
 
51741
51752
  // add processmaker-modeler-generic-flow
51742
51753
  if (![sequenceFlow_id, poolLane_config_id, association_id, messageFlow_config_id, id, config_id, genericFlow_config_id].includes(node.type)) {
51743
- _context14.next = 9;
51754
+ _context15.next = 9;
51744
51755
  break;
51745
51756
  }
51746
- return _context14.abrupt("return");
51757
+ return _context15.abrupt("return");
51747
51758
  case 9:
51748
51759
  // Select the node after it has been added to the store (does not apply to flows)
51749
- _this27.selectNewNode(node);
51750
- return _context14.abrupt("return", new Promise(function (resolve) {
51760
+ _this28.selectNewNode(node);
51761
+ return _context15.abrupt("return", new Promise(function (resolve) {
51751
51762
  setTimeout(function () {
51752
- _this27.pushToUndoStack();
51763
+ _this28.pushToUndoStack();
51753
51764
  resolve();
51754
51765
  });
51755
51766
  }));
51756
51767
  case 11:
51757
51768
  case "end":
51758
- return _context14.stop();
51769
+ return _context15.stop();
51759
51770
  }
51760
- }, _callee14);
51771
+ }, _callee15);
51761
51772
  }))();
51762
51773
  },
51763
51774
  addClonedNodes: function addClonedNodes(nodes) {
51764
- var _this28 = this;
51765
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15() {
51766
- return _regeneratorRuntime().wrap(function _callee15$(_context15) {
51767
- while (1) switch (_context15.prev = _context15.next) {
51775
+ var _this29 = this;
51776
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
51777
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
51778
+ while (1) switch (_context16.prev = _context16.next) {
51768
51779
  case 0:
51769
51780
  nodes.forEach(function (node) {
51770
51781
  if (!node.pool) {
51771
- node.pool = _this28.poolTarget;
51782
+ node.pool = _this29.poolTarget;
51772
51783
  }
51773
- var targetProcess = node.getTargetProcess(_this28.processes, _this28.processNode);
51784
+ var targetProcess = node.getTargetProcess(_this29.processes, _this29.processNode);
51774
51785
  addNodeToProcess(node, targetProcess);
51775
- _this28.planeElements.push(node.diagram);
51786
+ _this29.planeElements.push(node.diagram);
51776
51787
  store.commit('addNode', node);
51777
- _this28.poolTarget = null;
51788
+ _this29.poolTarget = null;
51778
51789
  });
51779
51790
  case 1:
51780
51791
  case "end":
51781
- return _context15.stop();
51792
+ return _context16.stop();
51782
51793
  }
51783
- }, _callee15);
51794
+ }, _callee16);
51784
51795
  }))();
51785
51796
  },
51786
51797
  removeNode: function removeNode(node) {
51787
51798
  var _arguments3 = arguments,
51788
- _this29 = this;
51789
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16() {
51799
+ _this30 = this;
51800
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
51790
51801
  var _ref7, _ref7$removeRelations, removeRelationships;
51791
- return _regeneratorRuntime().wrap(function _callee16$(_context16) {
51792
- while (1) switch (_context16.prev = _context16.next) {
51802
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
51803
+ while (1) switch (_context17.prev = _context17.next) {
51793
51804
  case 0:
51794
51805
  _ref7 = _arguments3.length > 1 && _arguments3[1] !== undefined ? _arguments3[1] : {}, _ref7$removeRelations = _ref7.removeRelationships, removeRelationships = _ref7$removeRelations === void 0 ? true : _ref7$removeRelations;
51795
51806
  if (node) {
51796
- _context16.next = 3;
51807
+ _context17.next = 3;
51797
51808
  break;
51798
51809
  }
51799
- return _context16.abrupt("return");
51810
+ return _context17.abrupt("return");
51800
51811
  case 3:
51801
51812
  if (removeRelationships) {
51802
- removeNodeFlows(node, _this29);
51803
- removeNodeMessageFlows(node, _this29);
51804
- removeNodeAssociations(node, _this29);
51813
+ removeNodeFlows(node, _this30);
51814
+ removeNodeMessageFlows(node, _this30);
51815
+ removeNodeAssociations(node, _this30);
51805
51816
  }
51806
51817
  removeOutgoingAndIncomingRefsToFlow(node);
51807
- removeBoundaryEvents(_this29.graph, node, _this29.removeNode);
51818
+ removeBoundaryEvents(_this30.graph, node, _this30.removeNode);
51808
51819
  removeSourceDefault(node);
51809
- _this29.removeNodesFromLane(node);
51810
- _this29.removeNodesFromPool(node);
51820
+ _this30.removeNodesFromLane(node);
51821
+ _this30.removeNodesFromPool(node);
51811
51822
  store.commit('removeNode', node);
51812
- store.commit('highlightNode', _this29.processNode);
51813
- _this29.$refs.selector.clearSelection();
51814
- _context16.next = 14;
51815
- return _this29.$nextTick();
51823
+ store.commit('highlightNode', _this30.processNode);
51824
+ _this30.$refs.selector.clearSelection();
51825
+ _context17.next = 14;
51826
+ return _this30.$nextTick();
51816
51827
  case 14:
51817
- _context16.next = 16;
51818
- return _this29.pushToUndoStack();
51828
+ _context17.next = 16;
51829
+ return _this30.pushToUndoStack();
51819
51830
  case 16:
51820
51831
  // force to update the processNode property in every delete
51821
- _this29.processes = _this29.getProcesses();
51822
- if (_this29.processes && _this29.processes.length > 0) {
51823
- _this29.processNode = new Node('processmaker-modeler-process', _this29.processes[0], _this29.planeElements.find(function (diagram) {
51824
- return diagram.bpmnElement.id === _this29.processes[0].id;
51832
+ _this30.processes = _this30.getProcesses();
51833
+ if (_this30.processes && _this30.processes.length > 0) {
51834
+ _this30.processNode = new Node('processmaker-modeler-process', _this30.processes[0], _this30.planeElements.find(function (diagram) {
51835
+ return diagram.bpmnElement.id === _this30.processes[0].id;
51825
51836
  }));
51826
51837
  }
51827
51838
  case 18:
51828
51839
  case "end":
51829
- return _context16.stop();
51840
+ return _context17.stop();
51830
51841
  }
51831
- }, _callee16);
51842
+ }, _callee17);
51832
51843
  }))();
51833
51844
  },
51834
51845
  removeNodes: function removeNodes() {
51835
- var _this30 = this;
51836
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
51837
- return _regeneratorRuntime().wrap(function _callee19$(_context19) {
51838
- while (1) switch (_context19.prev = _context19.next) {
51846
+ var _this31 = this;
51847
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
51848
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
51849
+ while (1) switch (_context20.prev = _context20.next) {
51839
51850
  case 0:
51840
- _context19.next = 2;
51841
- return _this30.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
51842
- return _regeneratorRuntime().wrap(function _callee18$(_context18) {
51843
- while (1) switch (_context18.prev = _context18.next) {
51851
+ _context20.next = 2;
51852
+ return _this31.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
51853
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
51854
+ while (1) switch (_context19.prev = _context19.next) {
51844
51855
  case 0:
51845
- _context18.next = 2;
51846
- return _this30.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
51856
+ _context19.next = 2;
51857
+ return _this31.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
51847
51858
  var waitPromises;
51848
- return _regeneratorRuntime().wrap(function _callee17$(_context17) {
51849
- while (1) switch (_context17.prev = _context17.next) {
51859
+ return _regeneratorRuntime().wrap(function _callee18$(_context18) {
51860
+ while (1) switch (_context18.prev = _context18.next) {
51850
51861
  case 0:
51851
51862
  waitPromises = [];
51852
- _this30.highlightedNodes.forEach(function (node) {
51853
- return waitPromises.push(_this30.removeNode(node, {
51863
+ _this31.highlightedNodes.forEach(function (node) {
51864
+ return waitPromises.push(_this31.removeNode(node, {
51854
51865
  removeRelationships: true
51855
51866
  }));
51856
51867
  });
51857
- _context17.next = 4;
51868
+ _context18.next = 4;
51858
51869
  return Promise.all(waitPromises);
51859
51870
  case 4:
51860
51871
  store.commit('highlightNode');
51861
51872
  case 5:
51862
51873
  case "end":
51863
- return _context17.stop();
51874
+ return _context18.stop();
51864
51875
  }
51865
- }, _callee17);
51876
+ }, _callee18);
51866
51877
  })));
51867
51878
  case 2:
51868
51879
  case "end":
51869
- return _context18.stop();
51880
+ return _context19.stop();
51870
51881
  }
51871
- }, _callee18);
51882
+ }, _callee19);
51872
51883
  })));
51873
51884
  case 2:
51874
51885
  case "end":
51875
- return _context19.stop();
51886
+ return _context20.stop();
51876
51887
  }
51877
- }, _callee19);
51888
+ }, _callee20);
51878
51889
  }))();
51879
51890
  },
51880
51891
  replaceNode: function replaceNode(_ref10) {
51881
- var _this31 = this;
51892
+ var _this32 = this;
51882
51893
  var node = _ref10.node,
51883
51894
  typeToReplaceWith = _ref10.typeToReplaceWith;
51884
- this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
51885
- return _regeneratorRuntime().wrap(function _callee21$(_context21) {
51886
- while (1) switch (_context21.prev = _context21.next) {
51895
+ this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
51896
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
51897
+ while (1) switch (_context22.prev = _context22.next) {
51887
51898
  case 0:
51888
- _context21.next = 2;
51889
- return _this31.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
51890
- var _this31$paper$localTo, clientX, clientY, newNode;
51891
- return _regeneratorRuntime().wrap(function _callee20$(_context20) {
51892
- while (1) switch (_context20.prev = _context20.next) {
51899
+ _context22.next = 2;
51900
+ return _this32.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
51901
+ var _this32$paper$localTo, clientX, clientY, newNode;
51902
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
51903
+ while (1) switch (_context21.prev = _context21.next) {
51893
51904
  case 0:
51894
- _this31$paper$localTo = _this31.paper.localToClientPoint(node.diagram.bounds), clientX = _this31$paper$localTo.x, clientY = _this31$paper$localTo.y;
51895
- _context20.next = 3;
51896
- return _this31.handleDrop({
51905
+ _this32$paper$localTo = _this32.paper.localToClientPoint(node.diagram.bounds), clientX = _this32$paper$localTo.x, clientY = _this32$paper$localTo.y;
51906
+ _context21.next = 3;
51907
+ return _this32.handleDrop({
51897
51908
  clientX: clientX,
51898
51909
  clientY: clientY,
51899
51910
  control: {
@@ -51902,89 +51913,89 @@ var Selection_component = normalizeComponent(
51902
51913
  nodeThatWillBeReplaced: node
51903
51914
  });
51904
51915
  case 3:
51905
- newNode = _context20.sent;
51906
- _context20.next = 6;
51907
- return _this31.removeNode(node, {
51916
+ newNode = _context21.sent;
51917
+ _context21.next = 6;
51918
+ return _this32.removeNode(node, {
51908
51919
  removeRelationships: false
51909
51920
  });
51910
51921
  case 6:
51911
- _this31.highlightNode(newNode);
51912
- _this31.selectNewNode(newNode);
51922
+ _this32.highlightNode(newNode);
51923
+ _this32.selectNewNode(newNode);
51913
51924
  case 8:
51914
51925
  case "end":
51915
- return _context20.stop();
51926
+ return _context21.stop();
51916
51927
  }
51917
- }, _callee20);
51928
+ }, _callee21);
51918
51929
  })));
51919
51930
  case 2:
51920
51931
  case "end":
51921
- return _context21.stop();
51932
+ return _context22.stop();
51922
51933
  }
51923
- }, _callee21);
51934
+ }, _callee22);
51924
51935
  })));
51925
51936
  },
51926
51937
  replaceGenericFlow: function replaceGenericFlow(_ref13) {
51927
- var _this32 = this;
51938
+ var _this33 = this;
51928
51939
  var actualFlow = _ref13.actualFlow,
51929
51940
  genericFlow = _ref13.genericFlow,
51930
51941
  targetNode = _ref13.targetNode;
51931
- this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
51932
- return _regeneratorRuntime().wrap(function _callee23$(_context23) {
51933
- while (1) switch (_context23.prev = _context23.next) {
51942
+ this.performSingleUndoRedoTransaction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
51943
+ return _regeneratorRuntime().wrap(function _callee24$(_context24) {
51944
+ while (1) switch (_context24.prev = _context24.next) {
51934
51945
  case 0:
51935
- _context23.next = 2;
51936
- return _this32.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
51937
- return _regeneratorRuntime().wrap(function _callee22$(_context22) {
51938
- while (1) switch (_context22.prev = _context22.next) {
51946
+ _context24.next = 2;
51947
+ return _this33.paperManager.performAtomicAction( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
51948
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
51949
+ while (1) switch (_context23.prev = _context23.next) {
51939
51950
  case 0:
51940
- _context22.next = 2;
51941
- return _this32.highlightNode(null);
51951
+ _context23.next = 2;
51952
+ return _this33.highlightNode(null);
51942
51953
  case 2:
51943
- _context22.next = 4;
51944
- return _this32.$nextTick();
51954
+ _context23.next = 4;
51955
+ return _this33.$nextTick();
51945
51956
  case 4:
51946
- _context22.next = 6;
51947
- return _this32.addNode(actualFlow);
51957
+ _context23.next = 6;
51958
+ return _this33.addNode(actualFlow);
51948
51959
  case 6:
51949
- _context22.next = 8;
51960
+ _context23.next = 8;
51950
51961
  return store.commit('removeNode', genericFlow);
51951
51962
  case 8:
51952
- _context22.next = 10;
51953
- return _this32.$nextTick();
51963
+ _context23.next = 10;
51964
+ return _this33.$nextTick();
51954
51965
  case 10:
51955
- _context22.next = 12;
51956
- return _this32.highlightNode(targetNode);
51966
+ _context23.next = 12;
51967
+ return _this33.highlightNode(targetNode);
51957
51968
  case 12:
51958
51969
  case "end":
51959
- return _context22.stop();
51970
+ return _context23.stop();
51960
51971
  }
51961
- }, _callee22);
51972
+ }, _callee23);
51962
51973
  })));
51963
51974
  case 2:
51964
51975
  case "end":
51965
- return _context23.stop();
51976
+ return _context24.stop();
51966
51977
  }
51967
- }, _callee23);
51978
+ }, _callee24);
51968
51979
  })));
51969
51980
  },
51970
51981
  performSingleUndoRedoTransaction: function performSingleUndoRedoTransaction(cb) {
51971
- var _this33 = this;
51972
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24() {
51973
- return _regeneratorRuntime().wrap(function _callee24$(_context24) {
51974
- while (1) switch (_context24.prev = _context24.next) {
51982
+ var _this34 = this;
51983
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25() {
51984
+ return _regeneratorRuntime().wrap(function _callee25$(_context25) {
51985
+ while (1) switch (_context25.prev = _context25.next) {
51975
51986
  case 0:
51976
51987
  undoRedoStore.commit('disableSavingState');
51977
- _context24.next = 3;
51988
+ _context25.next = 3;
51978
51989
  return cb();
51979
51990
  case 3:
51980
51991
  undoRedoStore.commit('enableSavingState');
51981
- _context24.next = 6;
51982
- return _this33.pushToUndoStack();
51992
+ _context25.next = 6;
51993
+ return _this34.pushToUndoStack();
51983
51994
  case 6:
51984
51995
  case "end":
51985
- return _context24.stop();
51996
+ return _context25.stop();
51986
51997
  }
51987
- }, _callee24);
51998
+ }, _callee25);
51988
51999
  }))();
51989
52000
  },
51990
52001
  removeNodesFromLane: function removeNodesFromLane(node) {
@@ -51997,36 +52008,36 @@ var Selection_component = normalizeComponent(
51997
52008
  pull_default()(containingLane.get('flowNodeRef'), node.definition);
51998
52009
  },
51999
52010
  removeNodesFromPool: function removeNodesFromPool(node) {
52000
- var _this34 = this;
52011
+ var _this35 = this;
52001
52012
  if (node.type === 'processmaker-modeler-pool' && node.definition.processRef) {
52002
52013
  if (node.definition.processRef.artifacts) {
52003
52014
  node.definition.processRef.artifacts.forEach(function (artifact) {
52004
- var nodeToRemove = _this34.nodes.find(function (n) {
52015
+ var nodeToRemove = _this35.nodes.find(function (n) {
52005
52016
  return n.definition === artifact;
52006
52017
  });
52007
52018
  if (nodeToRemove) {
52008
- _this34.removeNode(nodeToRemove);
52019
+ _this35.removeNode(nodeToRemove);
52009
52020
  }
52010
52021
  });
52011
52022
  }
52012
52023
  if (node.definition.processRef.flowElements) {
52013
52024
  node.definition.processRef.flowElements.forEach(function (flowElement) {
52014
- var nodeToRemove = _this34.nodes.find(function (n) {
52025
+ var nodeToRemove = _this35.nodes.find(function (n) {
52015
52026
  return n.definition === flowElement;
52016
52027
  });
52017
52028
  if (nodeToRemove) {
52018
- _this34.removeNode(nodeToRemove);
52029
+ _this35.removeNode(nodeToRemove);
52019
52030
  }
52020
52031
  });
52021
52032
  }
52022
52033
  var laneSets = node.definition.processRef.laneSets;
52023
52034
  if (!!laneSets && laneSets.length > 0) {
52024
52035
  laneSets[0].lanes.forEach(function (lane) {
52025
- var nodeToRemove = _this34.nodes.find(function (n) {
52036
+ var nodeToRemove = _this35.nodes.find(function (n) {
52026
52037
  return n.definition === lane;
52027
52038
  });
52028
52039
  if (nodeToRemove) {
52029
- _this34.removeNode(nodeToRemove);
52040
+ _this35.removeNode(nodeToRemove);
52030
52041
  }
52031
52042
  });
52032
52043
  }
@@ -52054,13 +52065,13 @@ var Selection_component = normalizeComponent(
52054
52065
  return shape.component != null;
52055
52066
  },
52056
52067
  setShapeStacking: function setShapeStacking(shape) {
52057
- var _this35 = this;
52068
+ var _this36 = this;
52058
52069
  if (this.isRendering || !shape.component.node.isType('processmaker-modeler-pool') && shape === this.previouslyStackedShape) {
52059
52070
  return;
52060
52071
  }
52061
52072
  this.previouslyStackedShape = shape;
52062
52073
  this.paperManager.performAtomicAction(function () {
52063
- return ensureShapeIsNotCovered(shape, _this35.graph);
52074
+ return ensureShapeIsNotCovered(shape, _this36.graph);
52064
52075
  });
52065
52076
  },
52066
52077
  showSavedNotification: function showSavedNotification() {
@@ -52094,49 +52105,49 @@ var Selection_component = normalizeComponent(
52094
52105
  return false;
52095
52106
  },
52096
52107
  pointerDowInShape: function pointerDowInShape(event, element) {
52097
- var _this36 = this;
52098
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25() {
52108
+ var _this37 = this;
52109
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26() {
52099
52110
  var x, y, shapeView;
52100
- return _regeneratorRuntime().wrap(function _callee25$(_context25) {
52101
- while (1) switch (_context25.prev = _context25.next) {
52111
+ return _regeneratorRuntime().wrap(function _callee26$(_context26) {
52112
+ while (1) switch (_context26.prev = _context26.next) {
52102
52113
  case 0:
52103
52114
  x = event.clientX, y = event.clientY;
52104
- shapeView = _this36.paper.findViewByModel(element);
52105
- _this36.isDragging = false;
52106
- _this36.isSelecting = false;
52107
- _this36.isIntoTheSelection = false;
52108
- _this36.dragStart = {
52115
+ shapeView = _this37.paper.findViewByModel(element);
52116
+ _this37.isDragging = false;
52117
+ _this37.isSelecting = false;
52118
+ _this37.isIntoTheSelection = false;
52119
+ _this37.dragStart = {
52109
52120
  x: x,
52110
52121
  y: y
52111
52122
  };
52112
52123
  // Verify if is in the selection box
52113
- if (!_this36.isPointInSelection(event)) {
52114
- _context25.next = 10;
52124
+ if (!_this37.isPointInSelection(event)) {
52125
+ _context26.next = 10;
52115
52126
  break;
52116
52127
  }
52117
- _this36.isIntoTheSelection = true;
52118
- _context25.next = 15;
52128
+ _this37.isIntoTheSelection = true;
52129
+ _context26.next = 15;
52119
52130
  break;
52120
52131
  case 10:
52121
52132
  if (event.shiftKey) {
52122
- _context25.next = 15;
52133
+ _context26.next = 15;
52123
52134
  break;
52124
52135
  }
52125
- _context25.next = 13;
52126
- return _this36.$refs.selector.selectElement(shapeView);
52136
+ _context26.next = 13;
52137
+ return _this37.$refs.selector.selectElement(shapeView);
52127
52138
  case 13:
52128
- _context25.next = 15;
52129
- return _this36.$nextTick();
52139
+ _context26.next = 15;
52140
+ return _this37.$nextTick();
52130
52141
  case 15:
52131
- _this36.$refs.selector.startDrag({
52142
+ _this37.$refs.selector.startDrag({
52132
52143
  clientX: event.clientX,
52133
52144
  clientY: event.clientY
52134
52145
  });
52135
52146
  case 16:
52136
52147
  case "end":
52137
- return _context25.stop();
52148
+ return _context26.stop();
52138
52149
  }
52139
- }, _callee25);
52150
+ }, _callee26);
52140
52151
  }))();
52141
52152
  },
52142
52153
  pointerDownHandler: function pointerDownHandler(event) {
@@ -52236,7 +52247,7 @@ var Selection_component = normalizeComponent(
52236
52247
  this.$emit('set-xml-manager', this.xmlManager);
52237
52248
  },
52238
52249
  mounted: function mounted() {
52239
- var _this37 = this;
52250
+ var _this38 = this;
52240
52251
  store.commit('setReadOnly', this.readOnly);
52241
52252
  this.graph = new external_jointjs_namespaceObject.dia.Graph();
52242
52253
  store.commit('setGraph', this.graph);
@@ -52255,47 +52266,47 @@ var Selection_component = normalizeComponent(
52255
52266
  store.commit('setPaper', this.paperManager.paper);
52256
52267
  this.paperManager.addEventHandler('element:pointerclick', this.blurFocusedScreenBuilderElement, this);
52257
52268
  this.paperManager.addEventHandler('blank:pointerdown', function (event, x, y) {
52258
- if (_this37.isGrabbing) return;
52269
+ if (_this38.isGrabbing) return;
52259
52270
  if (store.getters.isReadOnly) {
52260
- _this37.isGrabbing = true;
52271
+ _this38.isGrabbing = true;
52261
52272
  }
52262
- var scale = _this37.paperManager.scale;
52263
- _this37.canvasDragPosition = {
52273
+ var scale = _this38.paperManager.scale;
52274
+ _this38.canvasDragPosition = {
52264
52275
  x: x * scale.sx,
52265
52276
  y: y * scale.sy
52266
52277
  };
52267
- _this37.isOverShape = false;
52268
- _this37.pointerDownHandler(event);
52278
+ _this38.isOverShape = false;
52279
+ _this38.pointerDownHandler(event);
52269
52280
  }, this);
52270
52281
  this.paperManager.addEventHandler('cell:mouseover element:mouseover', function (_ref17) {
52271
52282
  var shape = _ref17.model;
52272
- if (_this37.isBpmnNode(shape) && shape.attr('body/cursor') !== 'default' && !_this37.isGrabbing) {
52283
+ if (_this38.isBpmnNode(shape) && shape.attr('body/cursor') !== 'default' && !_this38.isGrabbing) {
52273
52284
  shape.attr('body/cursor', 'move');
52274
52285
  }
52275
52286
  // If the user is panning the Paper while hovering an element, ignore the default move cursor
52276
- if (_this37.isGrabbing && _this37.isBpmnNode(shape)) {
52287
+ if (_this38.isGrabbing && _this38.isBpmnNode(shape)) {
52277
52288
  shape.attr('body/cursor', 'grabbing');
52278
52289
  }
52279
52290
  });
52280
52291
  this.paperManager.addEventHandler('blank:pointerup', function (event) {
52281
- _this37.isGrabbing = false;
52282
- _this37.canvasDragPosition = null;
52283
- _this37.activeNode = null;
52284
- _this37.pointerUpHandler(event);
52292
+ _this38.isGrabbing = false;
52293
+ _this38.canvasDragPosition = null;
52294
+ _this38.activeNode = null;
52295
+ _this38.pointerUpHandler(event);
52285
52296
  }, this);
52286
52297
  this.paperManager.addEventHandler('cell:pointerup', function (cellView, event) {
52287
- _this37.canvasDragPosition = null;
52288
- _this37.activeNode = null;
52289
- _this37.pointerUpHandler(event, cellView);
52298
+ _this38.canvasDragPosition = null;
52299
+ _this38.activeNode = null;
52300
+ _this38.pointerUpHandler(event, cellView);
52290
52301
  }, this);
52291
52302
  this.$refs['paper-container'].addEventListener('mouseenter', function () {
52292
52303
  store.commit('setClientLeftPaper', false);
52293
52304
  });
52294
52305
  this.$el.addEventListener('mousemove', function (event) {
52295
- _this37.pointerMoveHandler(event);
52306
+ _this38.pointerMoveHandler(event);
52296
52307
  });
52297
52308
  this.$refs['paper-container'].addEventListener('mouseleave', function () {
52298
- _this37.paperManager.removeEventHandler('blank:pointermove');
52309
+ _this38.paperManager.removeEventHandler('blank:pointermove');
52299
52310
  store.commit('setClientLeftPaper', true);
52300
52311
  });
52301
52312
  this.paperManager.addEventHandler('cell:pointerclick', function (cellView, evt, x, y) {
@@ -52306,44 +52317,44 @@ var Selection_component = normalizeComponent(
52306
52317
  });
52307
52318
  this.paperManager.addEventHandler('cell:pointerclick', function (_ref18, event) {
52308
52319
  var shape = _ref18.model;
52309
- if (!_this37.isBpmnNode(shape)) {
52320
+ if (!_this38.isBpmnNode(shape)) {
52310
52321
  return;
52311
52322
  }
52312
52323
 
52313
52324
  // ignore click event if the user is Grabbing the paper
52314
- if (_this37.isGrabbing) return;
52325
+ if (_this38.isGrabbing) return;
52315
52326
  shape.component.$emit('click', event);
52316
- _this37.$emit('click', {
52327
+ _this38.$emit('click', {
52317
52328
  event: event,
52318
- node: _this37.highlightedNode.definition
52329
+ node: _this38.highlightedNode.definition
52319
52330
  });
52320
52331
  });
52321
52332
  this.paperManager.addEventHandler('cell:pointerdown', function (_ref19, event) {
52322
52333
  var shape = _ref19.model;
52323
- if (!_this37.isBpmnNode(shape)) {
52334
+ if (!_this38.isBpmnNode(shape)) {
52324
52335
  return;
52325
52336
  }
52326
52337
  // If the user is pressing Space (grabbing) and clicking on a Cell, return
52327
- if (_this37.isGrabbing) {
52338
+ if (_this38.isGrabbing) {
52328
52339
  return;
52329
52340
  }
52330
- _this37.setShapeStacking(shape);
52331
- _this37.activeNode = shape.component.node;
52332
- _this37.isOverShape = true;
52333
- _this37.pointerDowInShape(event, shape);
52341
+ _this38.setShapeStacking(shape);
52342
+ _this38.activeNode = shape.component.node;
52343
+ _this38.isOverShape = true;
52344
+ _this38.pointerDowInShape(event, shape);
52334
52345
  });
52335
52346
  // If the user is grabbing the paper while he clicked in a cell, move the paper and not the cell
52336
52347
  this.paperManager.addEventHandler('cell:pointermove', function (_, event, x, y) {
52337
- if (_this37.isGrabbing) {
52338
- if (!_this37.canvasDragPosition) {
52339
- var scale = _this37.paperManager.scale;
52340
- _this37.canvasDragPosition = {
52348
+ if (_this38.isGrabbing) {
52349
+ if (!_this38.canvasDragPosition) {
52350
+ var scale = _this38.paperManager.scale;
52351
+ _this38.canvasDragPosition = {
52341
52352
  x: x * scale.sx,
52342
52353
  y: y * scale.sy
52343
52354
  };
52344
52355
  }
52345
- if (_this37.canvasDragPosition && !_this37.clientLeftPaper) {
52346
- _this37.paperManager.translate(event.offsetX - _this37.canvasDragPosition.x, event.offsetY - _this37.canvasDragPosition.y);
52356
+ if (_this38.canvasDragPosition && !_this38.clientLeftPaper) {
52357
+ _this38.paperManager.translate(event.offsetX - _this38.canvasDragPosition.x, event.offsetY - _this38.canvasDragPosition.y);
52347
52358
  }
52348
52359
  }
52349
52360
  });
@@ -52351,20 +52362,20 @@ var Selection_component = normalizeComponent(
52351
52362
  /* Register custom nodes */
52352
52363
  window.ProcessMaker.EventBus.$emit('modeler-start', {
52353
52364
  loadXML: function () {
52354
- var _loadXML = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(xml) {
52355
- return _regeneratorRuntime().wrap(function _callee26$(_context26) {
52356
- while (1) switch (_context26.prev = _context26.next) {
52365
+ var _loadXML = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(xml) {
52366
+ return _regeneratorRuntime().wrap(function _callee27$(_context27) {
52367
+ while (1) switch (_context27.prev = _context27.next) {
52357
52368
  case 0:
52358
- _context26.next = 2;
52359
- return _this37.loadXML(xml);
52369
+ _context27.next = 2;
52370
+ return _this38.loadXML(xml);
52360
52371
  case 2:
52361
- _context26.next = 4;
52372
+ _context27.next = 4;
52362
52373
  return undoRedoStore.dispatch('pushState', xml);
52363
52374
  case 4:
52364
52375
  case "end":
52365
- return _context26.stop();
52376
+ return _context27.stop();
52366
52377
  }
52367
- }, _callee26);
52378
+ }, _callee27);
52368
52379
  }));
52369
52380
  function loadXML(_x) {
52370
52381
  return _loadXML.apply(this, arguments);
@@ -52372,10 +52383,10 @@ var Selection_component = normalizeComponent(
52372
52383
  return loadXML;
52373
52384
  }(),
52374
52385
  addWarnings: function addWarnings(warnings) {
52375
- return _this37.$emit('warnings', warnings);
52386
+ return _this38.$emit('warnings', warnings);
52376
52387
  },
52377
52388
  addBreadcrumbs: function addBreadcrumbs(breadcrumbs) {
52378
- return _this37.breadcrumbData.push(breadcrumbs);
52389
+ return _this38.breadcrumbData.push(breadcrumbs);
52379
52390
  }
52380
52391
  });
52381
52392
  }
@@ -52397,8 +52408,8 @@ var modelervue_type_style_index_0_prod_lang_scss_ = __webpack_require__(88242);
52397
52408
 
52398
52409
  var Modeler_component = normalizeComponent(
52399
52410
  modeler_Modelervue_type_script_lang_js_,
52400
- Modelervue_type_template_id_7233010b_render,
52401
- Modelervue_type_template_id_7233010b_staticRenderFns,
52411
+ Modelervue_type_template_id_84267fa8_render,
52412
+ Modelervue_type_template_id_84267fa8_staticRenderFns,
52402
52413
  false,
52403
52414
  null,
52404
52415
  null,