@processmaker/modeler 1.43.2 → 1.43.3

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.
@@ -12944,7 +12944,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".weekday[data-v-4ae18478]{padding:.75e
12944
12944
 
12945
12945
  /***/ }),
12946
12946
 
12947
- /***/ 68216:
12947
+ /***/ 83620:
12948
12948
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12949
12949
 
12950
12950
  "use strict";
@@ -12958,7 +12958,7 @@ __webpack_require__.r(__webpack_exports__);
12958
12958
 
12959
12959
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
12960
12960
  // Module
12961
- ___CSS_LOADER_EXPORT___.push([module.id, ".box[data-v-1de55e90]{border:1px solid #5faaee;position:absolute;pointer-events:none}", ""]);
12961
+ ___CSS_LOADER_EXPORT___.push([module.id, ".box[data-v-6c7ebacb]{border:1px solid #5faaee;position:absolute;pointer-events:none}", ""]);
12962
12962
  // Exports
12963
12963
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
12964
12964
 
@@ -26695,19 +26695,19 @@ var update = add("406dc84a", content, true, {"sourceMap":false,"shadowMode":fals
26695
26695
 
26696
26696
  /***/ }),
26697
26697
 
26698
- /***/ 19389:
26698
+ /***/ 57870:
26699
26699
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
26700
26700
 
26701
26701
  // style-loader: Adds some css to the DOM by adding a <style> tag
26702
26702
 
26703
26703
  // load the styles
26704
- var content = __webpack_require__(68216);
26704
+ var content = __webpack_require__(83620);
26705
26705
  if(content.__esModule) content = content.default;
26706
26706
  if(typeof content === 'string') content = [[module.id, content, '']];
26707
26707
  if(content.locals) module.exports = content.locals;
26708
26708
  // add the styles to the DOM
26709
26709
  var add = (__webpack_require__(54402)/* ["default"] */ .Z)
26710
- var update = add("5682dba7", content, true, {"sourceMap":false,"shadowMode":false});
26710
+ var update = add("28a09fd4", content, true, {"sourceMap":false,"shadowMode":false});
26711
26711
 
26712
26712
  /***/ }),
26713
26713
 
@@ -32596,6 +32596,22 @@ function isPoint(item) {
32596
32596
  }
32597
32597
  },
32598
32598
  methods: {
32599
+ setHighlightColor: function setHighlightColor(highlighted, color) {
32600
+ if (highlighted) {
32601
+ this.shape.attr({
32602
+ line: {
32603
+ stroke: color
32604
+ },
32605
+ '.joint-highlight-stroke': {
32606
+ 'display': 'none'
32607
+ }
32608
+ });
32609
+ this.shapeView.showTools();
32610
+ } else {
32611
+ resetShapeColor(this.shape);
32612
+ this.shapeView.hideTools();
32613
+ }
32614
+ },
32599
32615
  setShapeHighlight: function setShapeHighlight() {
32600
32616
  if (this.isCompleted) {
32601
32617
  this.shape.attr({
@@ -37345,24 +37361,53 @@ var idleHighlighter = {
37345
37361
  }
37346
37362
  },
37347
37363
  methods: {
37348
- setShapeHighlight: function setShapeHighlight() {
37349
- if (store.getters.isReadOnly) {
37350
- this.shapeView.unhighlight(this.shapeBody, completedHighlighter);
37351
- if (this.isCompleted) {
37352
- this.shape.attr('body/fill', COLOR_COMPLETED_FILL);
37353
- this.shapeView.highlight(this.shapeBody, completedHighlighter);
37354
- }
37355
- this.shapeView.unhighlight(this.shapeBody, inProgressHighlighter);
37356
- if (this.isInProgress) {
37357
- this.shape.attr('body/fill', COLOR_IN_PROGRESS_FILL);
37358
- this.shapeView.highlight(this.shapeBody, inProgressHighlighter);
37359
- }
37360
- if (this.isIdle) {
37361
- this.shape.attr('body/fill', COLOR_IDLE_FILL);
37362
- this.shapeView.highlight(this.shapeBody, idleHighlighter);
37364
+ prepareCustomColorHighlighter: function prepareCustomColorHighlighter(color) {
37365
+ return {
37366
+ highlighter: {
37367
+ name: 'stroke',
37368
+ options: {
37369
+ attrs: {
37370
+ stroke: color,
37371
+ 'stroke-width': 3,
37372
+ 'data-cy': 'selected'
37373
+ }
37374
+ },
37375
+ partial: false,
37376
+ type: 'default'
37363
37377
  }
37378
+ };
37379
+ },
37380
+ setHighlightColor: function setHighlightColor(highlighted, color) {
37381
+ if (!this.shapeView) {
37364
37382
  return;
37365
37383
  }
37384
+ if (highlighted) {
37385
+ this.shapeView.unhighlight(this.shapeBody, errorHighlighter);
37386
+ this.shapeView.highlight(this.shapeBody, this.prepareCustomColorHighlighter(color));
37387
+ } else {
37388
+ this.shapeView.unhighlight(this.shapeBody, this.prepareCustomColorHighlighter(color));
37389
+ }
37390
+ },
37391
+ setShapeHighlightForReadOnly: function setShapeHighlightForReadOnly() {
37392
+ if (!this.shapeView) {
37393
+ return;
37394
+ }
37395
+ this.shapeView.unhighlight(this.shapeBody, completedHighlighter);
37396
+ if (this.isCompleted) {
37397
+ this.shape.attr('body/fill', COLOR_COMPLETED_FILL);
37398
+ this.shapeView.highlight(this.shapeBody, completedHighlighter);
37399
+ }
37400
+ this.shapeView.unhighlight(this.shapeBody, inProgressHighlighter);
37401
+ if (this.isInProgress) {
37402
+ this.shape.attr('body/fill', COLOR_IN_PROGRESS_FILL);
37403
+ this.shapeView.highlight(this.shapeBody, inProgressHighlighter);
37404
+ }
37405
+ if (this.isIdle) {
37406
+ this.shape.attr('body/fill', COLOR_IDLE_FILL);
37407
+ this.shapeView.highlight(this.shapeBody, idleHighlighter);
37408
+ }
37409
+ },
37410
+ setShapeHighlightForDefault: function setShapeHighlightForDefault() {
37366
37411
  if (!this.shapeView) {
37367
37412
  return;
37368
37413
  }
@@ -37375,6 +37420,17 @@ var idleHighlighter = {
37375
37420
  this.shapeView.highlight(this.shapeBody, defaultHighlighter);
37376
37421
  }
37377
37422
  },
37423
+ setShapeHighlight: function setShapeHighlight() {
37424
+ if (!this.shapeView) {
37425
+ return;
37426
+ }
37427
+ this.shapeView.unhighlight(this.shapeBody, errorHighlighter);
37428
+ if (store.getters.isReadOnly) {
37429
+ this.setShapeHighlightForReadOnly();
37430
+ } else {
37431
+ this.setShapeHighlightForDefault();
37432
+ }
37433
+ },
37378
37434
  setBorderOutline: function setBorderOutline(borderOutline) {
37379
37435
  if (this.currentBorderOutline) {
37380
37436
  this.shapeView.unhighlight(this.shapeBody, this.currentBorderOutline);
@@ -48175,10 +48231,10 @@ var ValidationStatus_component = normalizeComponent(
48175
48231
  )
48176
48232
 
48177
48233
  /* harmony default export */ var ValidationStatus = (ValidationStatus_component.exports);
48178
- ;// 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=09b13081&
48234
+ ;// 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=554c7310&
48179
48235
 
48180
48236
 
48181
- var Modelervue_type_template_id_09b13081_render = function render() {
48237
+ var Modelervue_type_template_id_554c7310_render = function render() {
48182
48238
  var _vm = this,
48183
48239
  _c = _vm._self._c;
48184
48240
  return _c('span', {
@@ -48443,9 +48499,9 @@ var Modelervue_type_template_id_09b13081_render = function render() {
48443
48499
  });
48444
48500
  })], 2)], 1);
48445
48501
  };
48446
- var Modelervue_type_template_id_09b13081_staticRenderFns = [];
48502
+ var Modelervue_type_template_id_554c7310_staticRenderFns = [];
48447
48503
 
48448
- ;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=09b13081&
48504
+ ;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=554c7310&
48449
48505
 
48450
48506
  ;// 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=728530a2&
48451
48507
  var boundaryEventvue_type_template_id_728530a2_render = function render() {
@@ -52412,7 +52468,6 @@ var boundaryTimerEvent_component = normalizeComponent(
52412
52468
 
52413
52469
 
52414
52470
 
52415
-
52416
52471
  var boundaryTimerEvent_id = 'processmaker-modeler-boundary-timer-event';
52417
52472
  var setEventTimerDefinition = function setEventTimerDefinition(moddle, node, type, body) {
52418
52473
  var eventDefinition = _defineProperty({}, type, moddle.create('bpmn:Expression', {
@@ -52420,7 +52475,7 @@ var setEventTimerDefinition = function setEventTimerDefinition(moddle, node, typ
52420
52475
  }));
52421
52476
  return [moddle.create('bpmn:TimerEventDefinition', eventDefinition)];
52422
52477
  };
52423
- /* harmony default export */ var nodes_boundaryTimerEvent = (merge_default()(cloneDeep_default()(nodes_boundaryEvent), {
52478
+ /* harmony default export */ var nodes_boundaryTimerEvent = ((0,external_lodash_.merge)((0,external_lodash_.cloneDeep)(nodes_boundaryEvent), {
52424
52479
  id: boundaryTimerEvent_id,
52425
52480
  component: boundaryTimerEvent,
52426
52481
  control: false,
@@ -52443,7 +52498,7 @@ var setEventTimerDefinition = function setEventTimerDefinition(moddle, node, typ
52443
52498
  key = _ref2[0],
52444
52499
  value = _ref2[1];
52445
52500
  if (key === 'eventDefinitions') {
52446
- var type = Object.keys(value[0])[1];
52501
+ var type = Object.keys((0,external_lodash_.omit)(value[0], ['id', '$type', 'get', 'set', '$instanceOf']))[0];
52447
52502
  var body = value[0][type].body;
52448
52503
  data[key] = {
52449
52504
  type: type,
@@ -56160,8 +56215,8 @@ var genericFlow_component = normalizeComponent(
56160
56215
  )
56161
56216
 
56162
56217
  /* harmony default export */ var genericFlow = (genericFlow_component.exports);
56163
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Selection.vue?vue&type=template&id=1de55e90&scoped=true&
56164
- var Selectionvue_type_template_id_1de55e90_scoped_true_render = function render() {
56218
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Selection.vue?vue&type=template&id=6c7ebacb&scoped=true&
56219
+ var Selectionvue_type_template_id_6c7ebacb_scoped_true_render = function render() {
56165
56220
  var _vm = this,
56166
56221
  _c = _vm._self._c;
56167
56222
  return _vm.showLasso && _vm.style ? _c('div', {
@@ -56191,7 +56246,7 @@ var Selectionvue_type_template_id_1de55e90_scoped_true_render = function render(
56191
56246
  }
56192
56247
  }, _vm.$listeners))], 1) : _vm._e();
56193
56248
  };
56194
- var Selectionvue_type_template_id_1de55e90_scoped_true_staticRenderFns = [];
56249
+ var Selectionvue_type_template_id_6c7ebacb_scoped_true_staticRenderFns = [];
56195
56250
 
56196
56251
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownMultiselect/crownMultiselect.vue?vue&type=template&id=bcd827ec&scoped=true&
56197
56252
 
@@ -57178,6 +57233,7 @@ var crownMultiselect_component = normalizeComponent(
57178
57233
  selected: function selected(newSelected) {
57179
57234
  this.prepareConectedLinks(newSelected);
57180
57235
  this.addToHighlightedNodes(newSelected);
57236
+ this.highlightNodesMultiplayer(newSelected);
57181
57237
  }
57182
57238
  },
57183
57239
  methods: {
@@ -57898,6 +57954,18 @@ var crownMultiselect_component = normalizeComponent(
57898
57954
  store.commit('highlightNode', this.processNode);
57899
57955
  }
57900
57956
  },
57957
+ highlightNodesMultiplayer: function highlightNodesMultiplayer(selected) {
57958
+ // Update selected nodes
57959
+ window.ProcessMaker.EventBus.$emit('multiplayer-updateSelectedNodes', this.getSelectedNodeKeys(selected));
57960
+ },
57961
+ getSelectedNodeKeys: function getSelectedNodeKeys(selected) {
57962
+ var keys = [];
57963
+ selected.forEach(function (shape) {
57964
+ var node = shape.model.component.node;
57965
+ keys.push(node.definition.id);
57966
+ });
57967
+ return keys;
57968
+ },
57901
57969
  /**
57902
57970
  * Gets the child shape
57903
57971
  * @param {object} point
@@ -58216,9 +58284,9 @@ var crownMultiselect_component = normalizeComponent(
58216
58284
  });
58217
58285
  ;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=script&lang=js&
58218
58286
  /* harmony default export */ var modeler_Selectionvue_type_script_lang_js_ = (Selectionvue_type_script_lang_js_);
58219
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Selection.vue?vue&type=style&index=0&id=1de55e90&prod&scoped=true&lang=css&
58220
- var Selectionvue_type_style_index_0_id_1de55e90_prod_scoped_true_lang_css_ = __webpack_require__(19389);
58221
- ;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=style&index=0&id=1de55e90&prod&scoped=true&lang=css&
58287
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Selection.vue?vue&type=style&index=0&id=6c7ebacb&prod&scoped=true&lang=css&
58288
+ var Selectionvue_type_style_index_0_id_6c7ebacb_prod_scoped_true_lang_css_ = __webpack_require__(57870);
58289
+ ;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=style&index=0&id=6c7ebacb&prod&scoped=true&lang=css&
58222
58290
 
58223
58291
  ;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue
58224
58292
 
@@ -58231,11 +58299,11 @@ var Selectionvue_type_style_index_0_id_1de55e90_prod_scoped_true_lang_css_ = __w
58231
58299
 
58232
58300
  var Selection_component = normalizeComponent(
58233
58301
  modeler_Selectionvue_type_script_lang_js_,
58234
- Selectionvue_type_template_id_1de55e90_scoped_true_render,
58235
- Selectionvue_type_template_id_1de55e90_scoped_true_staticRenderFns,
58302
+ Selectionvue_type_template_id_6c7ebacb_scoped_true_render,
58303
+ Selectionvue_type_template_id_6c7ebacb_scoped_true_staticRenderFns,
58236
58304
  false,
58237
58305
  null,
58238
- "1de55e90",
58306
+ "6c7ebacb",
58239
58307
  null
58240
58308
 
58241
58309
  )
@@ -76933,7 +77001,6 @@ var ColorUtil = /*#__PURE__*/function () {
76933
77001
  }, {
76934
77002
  key: "generateHSL",
76935
77003
  value: function generateHSL(name) {
76936
- console.log(name);
76937
77004
  var hash = this.getHashOfString(name);
76938
77005
  var h = this.normalizeHash(hash, 0, 360);
76939
77006
  var s = this.normalizeHash(hash, this.saturationRange[0], this.saturationRange[1]);
@@ -77114,6 +77181,8 @@ var Multiplayer = /*#__PURE__*/function () {
77114
77181
  _this.addPlayers(payload);
77115
77182
  });
77116
77183
  this.clientIO.on('clientLeft', function (payload) {
77184
+ // Unhighlight nodes
77185
+ _this.modeler.unhightligtNodes(payload.clientId);
77117
77186
  // Remove the player from the multiplayer list
77118
77187
  _this.modeler.removePlayer(payload.clientId);
77119
77188
  _this.modeler.enableMultiplayer(payload.isMultiplayer);
@@ -77125,6 +77194,8 @@ var Multiplayer = /*#__PURE__*/function () {
77125
77194
  _this.syncLocalNodes(clientId);
77126
77195
  }
77127
77196
  });
77197
+
77198
+ // Listen for updates when the cursor data was updated
77128
77199
  this.clientIO.on('updateUserCursor', /*#__PURE__*/function () {
77129
77200
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(payload) {
77130
77201
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -77142,18 +77213,14 @@ var Multiplayer = /*#__PURE__*/function () {
77142
77213
  };
77143
77214
  }());
77144
77215
 
77145
- // Listen for updates when a new element is added
77146
- this.clientIO.on('createElement', /*#__PURE__*/function () {
77216
+ // Listen for updates when the cursor data was updated
77217
+ this.clientIO.on('selectedNodesWasUpdated', /*#__PURE__*/function () {
77147
77218
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(payload) {
77148
77219
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
77149
77220
  while (1) switch (_context2.prev = _context2.next) {
77150
77221
  case 0:
77151
- _context2.next = 2;
77152
- return _this.createRemoteShape(payload.changes);
77153
- case 2:
77154
- // Add the new element to the shared array
77155
- applyUpdate(_this.yDoc, new Uint8Array(payload.updateDoc));
77156
- case 3:
77222
+ _this.updateHightligtedNodes(payload);
77223
+ case 1:
77157
77224
  case "end":
77158
77225
  return _context2.stop();
77159
77226
  }
@@ -77164,29 +77231,51 @@ var Multiplayer = /*#__PURE__*/function () {
77164
77231
  };
77165
77232
  }());
77166
77233
 
77167
- // Listen for updates when a new element is requested
77168
- this.clientIO.on('createRequestedElement', /*#__PURE__*/function () {
77234
+ // Listen for updates when a new element is added
77235
+ this.clientIO.on('createElement', /*#__PURE__*/function () {
77169
77236
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(payload) {
77170
77237
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
77171
77238
  while (1) switch (_context3.prev = _context3.next) {
77239
+ case 0:
77240
+ _context3.next = 2;
77241
+ return _this.createRemoteShape(payload.changes);
77242
+ case 2:
77243
+ // Add the new element to the shared array
77244
+ applyUpdate(_this.yDoc, new Uint8Array(payload.updateDoc));
77245
+ case 3:
77246
+ case "end":
77247
+ return _context3.stop();
77248
+ }
77249
+ }, _callee3);
77250
+ }));
77251
+ return function (_x3) {
77252
+ return _ref3.apply(this, arguments);
77253
+ };
77254
+ }());
77255
+
77256
+ // Listen for updates when a new element is requested
77257
+ this.clientIO.on('createRequestedElement', /*#__PURE__*/function () {
77258
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(payload) {
77259
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
77260
+ while (1) switch (_context4.prev = _context4.next) {
77172
77261
  case 0:
77173
77262
  if (!(payload.clientId === _this.clientIO.id)) {
77174
- _context3.next = 4;
77263
+ _context4.next = 4;
77175
77264
  break;
77176
77265
  }
77177
- _context3.next = 3;
77266
+ _context4.next = 3;
77178
77267
  return _this.createRemoteShape(payload.changes);
77179
77268
  case 3:
77180
77269
  // Add the new element to the shared array
77181
77270
  applyUpdate(_this.yDoc, new Uint8Array(payload.updateDoc));
77182
77271
  case 4:
77183
77272
  case "end":
77184
- return _context3.stop();
77273
+ return _context4.stop();
77185
77274
  }
77186
- }, _callee3);
77275
+ }, _callee4);
77187
77276
  }));
77188
- return function (_x3) {
77189
- return _ref3.apply(this, arguments);
77277
+ return function (_x4) {
77278
+ return _ref4.apply(this, arguments);
77190
77279
  };
77191
77280
  }());
77192
77281
 
@@ -77258,9 +77347,9 @@ var Multiplayer = /*#__PURE__*/function () {
77258
77347
  _this2.updateNodes(data);
77259
77348
  }
77260
77349
  });
77261
- window.ProcessMaker.EventBus.$on('multiplayer-replaceNode', function (_ref4) {
77262
- var nodeData = _ref4.nodeData,
77263
- newControl = _ref4.newControl;
77350
+ window.ProcessMaker.EventBus.$on('multiplayer-replaceNode', function (_ref5) {
77351
+ var nodeData = _ref5.nodeData,
77352
+ newControl = _ref5.newControl;
77264
77353
  _this2.replaceNode(nodeData, newControl);
77265
77354
  });
77266
77355
  window.ProcessMaker.EventBus.$on('multiplayer-addFlow', function (data) {
@@ -77282,6 +77371,11 @@ var Multiplayer = /*#__PURE__*/function () {
77282
77371
  _this2.updateFlows(data);
77283
77372
  }
77284
77373
  });
77374
+ window.ProcessMaker.EventBus.$on('multiplayer-updateSelectedNodes', function (data) {
77375
+ if (_this2.modeler.isMultiplayer) {
77376
+ _this2.updateSelectedNodes(data);
77377
+ }
77378
+ });
77285
77379
  window.ProcessMaker.EventBus.$on('multiplayer-updateMousePosition', function (data) {
77286
77380
  if (_this2.modeler.isMultiplayer) {
77287
77381
  _this2.updateMousePosition(data);
@@ -77334,6 +77428,36 @@ var Multiplayer = /*#__PURE__*/function () {
77334
77428
  _this4.modeler.updateClientCursor(client);
77335
77429
  });
77336
77430
  }
77431
+ /**
77432
+ * Updates the selected nodes by the user
77433
+ * @param {Object} data
77434
+ */
77435
+ }, {
77436
+ key: "updateSelectedNodes",
77437
+ value: function updateSelectedNodes(data) {
77438
+ var warningMessage = 'Another user is working on this object, wait until they finish making changes.';
77439
+ if (this.modeler.isMultiplayerSelected(data)) {
77440
+ window.ProcessMaker.alert(warningMessage, 'warning');
77441
+ }
77442
+ this.clientIO.emit('updateSelectedNodes', {
77443
+ clientId: this.clientIO.id,
77444
+ roomName: this.room.getRoom(),
77445
+ selectedNodes: data
77446
+ });
77447
+ }
77448
+ /**
77449
+ * Update highlighted nodes
77450
+ * @param {Object} data
77451
+ */
77452
+ }, {
77453
+ key: "updateHightligtedNodes",
77454
+ value: function updateHightligtedNodes(payload) {
77455
+ var _this5 = this;
77456
+ payload.clients.map(function (client) {
77457
+ _this5.modeler.updateHightligtedNodes(client);
77458
+ });
77459
+ }
77460
+
77337
77461
  /**
77338
77462
  * Sync the modeler nodes with the microservice
77339
77463
  * @param {String} clientId
@@ -77341,25 +77465,25 @@ var Multiplayer = /*#__PURE__*/function () {
77341
77465
  }, {
77342
77466
  key: "syncLocalNodes",
77343
77467
  value: function syncLocalNodes(clientId) {
77344
- var _this5 = this;
77468
+ var _this6 = this;
77345
77469
  // Get the process definition
77346
77470
  var nodes = this.modeler.nodes.map(function (node) {
77347
77471
  if (node.definition.$type === 'bpmn:BoundaryEvent') {
77348
77472
  return getBoundaryEventData(node);
77349
77473
  }
77350
77474
  if (node.definition.$type === 'bpmn:Lane') {
77351
- return _this5.prepareLaneData(node);
77475
+ return _this6.prepareLaneData(node);
77352
77476
  }
77353
- return _this5.modeler.multiplayerHook(node, false, true);
77477
+ return _this6.modeler.multiplayerHook(node, false, true);
77354
77478
  });
77355
77479
  nodes.forEach(function (node) {
77356
77480
  var yMapNested = new YMap();
77357
- _this5.doTransact(yMapNested, node);
77358
- _this5.yArray.push([yMapNested]);
77481
+ _this6.doTransact(yMapNested, node);
77482
+ _this6.yArray.push([yMapNested]);
77359
77483
  // Encode the state as an update and send it to the server
77360
- var stateUpdate = encodeStateAsUpdate(_this5.yDoc);
77484
+ var stateUpdate = encodeStateAsUpdate(_this6.yDoc);
77361
77485
  // Send the update to the web socket server
77362
- _this5.clientIO.emit('createElement', {
77486
+ _this6.clientIO.emit('createElement', {
77363
77487
  updateDoc: stateUpdate,
77364
77488
  clientId: clientId
77365
77489
  });
@@ -77398,10 +77522,10 @@ var Multiplayer = /*#__PURE__*/function () {
77398
77522
  }, {
77399
77523
  key: "createRemoteShape",
77400
77524
  value: function createRemoteShape(changes) {
77401
- var _this6 = this;
77525
+ var _this7 = this;
77402
77526
  return new Promise(function (resolve) {
77403
77527
  changes.map(function (data) {
77404
- _this6.createShape(data);
77528
+ _this7.createShape(data);
77405
77529
  });
77406
77530
  resolve();
77407
77531
  });
@@ -77468,14 +77592,14 @@ var Multiplayer = /*#__PURE__*/function () {
77468
77592
  }, {
77469
77593
  key: "updateNodes",
77470
77594
  value: function updateNodes(data) {
77471
- var _this7 = this;
77595
+ var _this8 = this;
77472
77596
  data.forEach(function (value) {
77473
- var index = _this7.getIndex(value.id);
77474
- var nodeToUpdate = _this7.yArray.get(index);
77597
+ var index = _this8.getIndex(value.id);
77598
+ var nodeToUpdate = _this8.yArray.get(index);
77475
77599
  var updateData = value.poolId ? _objectSpread2(_objectSpread2({}, value.properties), {
77476
77600
  poolId: value.poolId
77477
77601
  }) : value.properties;
77478
- _this7.doTransact(nodeToUpdate, updateData);
77602
+ _this8.doTransact(nodeToUpdate, updateData);
77479
77603
  });
77480
77604
  }
77481
77605
  }, {
@@ -77555,16 +77679,16 @@ var Multiplayer = /*#__PURE__*/function () {
77555
77679
  }, {
77556
77680
  key: "updateShapes",
77557
77681
  value: function () {
77558
- var _updateShapes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(data) {
77682
+ var _updateShapes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(data) {
77559
77683
  var paper, element, newPool, node, _node;
77560
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
77561
- while (1) switch (_context4.prev = _context4.next) {
77684
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
77685
+ while (1) switch (_context5.prev = _context5.next) {
77562
77686
  case 0:
77563
77687
  paper = this.modeler.paper;
77564
77688
  element = this.modeler.getElementByNodeId(data.id);
77565
77689
  newPool = this.modeler.getElementByNodeId(data.poolId);
77566
77690
  if (!this.modeler.flowTypes.includes(data.type)) {
77567
- _context4.next = 7;
77691
+ _context5.next = 7;
77568
77692
  break;
77569
77693
  }
77570
77694
  if ('waypoint' in data) {
@@ -77577,7 +77701,7 @@ var Multiplayer = /*#__PURE__*/function () {
77577
77701
  value: data.color
77578
77702
  });
77579
77703
  }
77580
- _context4.next = 23;
77704
+ _context5.next = 23;
77581
77705
  break;
77582
77706
  case 7:
77583
77707
  // updata gateway default folow
@@ -77595,7 +77719,7 @@ var Multiplayer = /*#__PURE__*/function () {
77595
77719
  }
77596
77720
  // udpdate the element's color
77597
77721
  if (!data.color) {
77598
- _context4.next = 14;
77722
+ _context5.next = 14;
77599
77723
  break;
77600
77724
  }
77601
77725
  _node = this.getNodeById(data.id);
@@ -77604,7 +77728,7 @@ var Multiplayer = /*#__PURE__*/function () {
77604
77728
  key: 'color',
77605
77729
  value: data.color
77606
77730
  });
77607
- return _context4.abrupt("return");
77731
+ return _context5.abrupt("return");
77608
77732
  case 14:
77609
77733
  // boundary type
77610
77734
  if (element.component.node.definition.$type === 'bpmn:BoundaryEvent') {
@@ -77612,13 +77736,13 @@ var Multiplayer = /*#__PURE__*/function () {
77612
77736
  }
77613
77737
 
77614
77738
  // Trigger a rendering of the element on the paper
77615
- _context4.next = 17;
77739
+ _context5.next = 17;
77616
77740
  return paper.findViewByModel(element).update();
77617
77741
  case 17:
77618
- _context4.next = 19;
77742
+ _context5.next = 19;
77619
77743
  return element.component.$nextTick();
77620
77744
  case 19:
77621
- _context4.next = 21;
77745
+ _context5.next = 21;
77622
77746
  return this.modeler.paperManager.awaitScheduledUpdates();
77623
77747
  case 21:
77624
77748
  if (newPool && element.component.node.pool && element.component.node.pool.component.id !== data.poolId) {
@@ -77627,11 +77751,11 @@ var Multiplayer = /*#__PURE__*/function () {
77627
77751
  this.modeler.updateLasso();
77628
77752
  case 23:
77629
77753
  case "end":
77630
- return _context4.stop();
77754
+ return _context5.stop();
77631
77755
  }
77632
- }, _callee4, this);
77756
+ }, _callee5, this);
77633
77757
  }));
77634
- function updateShapes(_x4) {
77758
+ function updateShapes(_x5) {
77635
77759
  return _updateShapes.apply(this, arguments);
77636
77760
  }
77637
77761
  return updateShapes;
@@ -77657,7 +77781,7 @@ var Multiplayer = /*#__PURE__*/function () {
77657
77781
  }, {
77658
77782
  key: "updateMovedWaypoint",
77659
77783
  value: function updateMovedWaypoint(element, data) {
77660
- var _this8 = this;
77784
+ var _this9 = this;
77661
77785
  var waypoint = data.waypoint;
77662
77786
  var paper = this.modeler.paper;
77663
77787
  // Update the element's waypoints
@@ -77670,14 +77794,14 @@ var Multiplayer = /*#__PURE__*/function () {
77670
77794
  element.vertices(waypoint);
77671
77795
  // update bpmn waypoints
77672
77796
  element.component.node.diagram.waypoint = waypoint.map(function (point) {
77673
- return _this8.modeler.moddle.create('dc:Point', point);
77797
+ return _this9.modeler.moddle.create('dc:Point', point);
77674
77798
  });
77675
77799
  // Force Remount Flow
77676
77800
  element.component.node._modelerId += '_replaced';
77677
77801
  // Update the element's source anchor
77678
77802
  element.source(sourceElem, {
77679
77803
  anchor: function anchor() {
77680
- return getDefaultAnchorPoint(_this8.getConnectionPoint(sourceElem, startWaypoint), sourceElem.findView(paper));
77804
+ return getDefaultAnchorPoint(_this9.getConnectionPoint(sourceElem, startWaypoint), sourceElem.findView(paper));
77681
77805
  },
77682
77806
  connectionPoint: {
77683
77807
  name: 'boundary'
@@ -77687,7 +77811,7 @@ var Multiplayer = /*#__PURE__*/function () {
77687
77811
  // Update the element's target anchor
77688
77812
  element.target(targetElem, {
77689
77813
  anchor: function anchor() {
77690
- return getDefaultAnchorPoint(_this8.getConnectionPoint(targetElem, endWaypoint), targetElem.findView(paper));
77814
+ return getDefaultAnchorPoint(_this9.getConnectionPoint(targetElem, endWaypoint), targetElem.findView(paper));
77691
77815
  },
77692
77816
  connectionPoint: {
77693
77817
  name: 'boundary'
@@ -77730,7 +77854,7 @@ var Multiplayer = /*#__PURE__*/function () {
77730
77854
  }, {
77731
77855
  key: "addLaneNodes",
77732
77856
  value: function addLaneNodes(lanes) {
77733
- var _this9 = this;
77857
+ var _this10 = this;
77734
77858
  var pool = this.getPool(lanes);
77735
77859
  var defaultPoolData = {
77736
77860
  id: pool.component.node.definition.id,
@@ -77746,11 +77870,11 @@ var Multiplayer = /*#__PURE__*/function () {
77746
77870
  this.yDoc.transact(function () {
77747
77871
  lanes.forEach(function (lane) {
77748
77872
  var yMapNested = new YMap();
77749
- var data = _this9.prepareLaneData(lane);
77750
- _this9.doTransact(yMapNested, data);
77751
- _this9.yArray.push([yMapNested]);
77752
- var stateUpdate = encodeStateAsUpdate(_this9.yDoc);
77753
- _this9.clientIO.emit('createElement', {
77873
+ var data = _this10.prepareLaneData(lane);
77874
+ _this10.doTransact(yMapNested, data);
77875
+ _this10.yArray.push([yMapNested]);
77876
+ var stateUpdate = encodeStateAsUpdate(_this10.yDoc);
77877
+ _this10.clientIO.emit('createElement', {
77754
77878
  updateDoc: stateUpdate
77755
77879
  });
77756
77880
  });
@@ -77890,11 +78014,11 @@ var Multiplayer = /*#__PURE__*/function () {
77890
78014
  }, {
77891
78015
  key: "updateFlows",
77892
78016
  value: function updateFlows(data) {
77893
- var _this10 = this;
78017
+ var _this11 = this;
77894
78018
  data.forEach(function (value) {
77895
- var index = _this10.getIndex(value.id);
77896
- var nodeToUpdate = _this10.yArray.get(index);
77897
- _this10.yDoc.transact(function () {
78019
+ var index = _this11.getIndex(value.id);
78020
+ var nodeToUpdate = _this11.yArray.get(index);
78021
+ _this11.yDoc.transact(function () {
77898
78022
  for (var key in value) {
77899
78023
  if (Object.hasOwn(value, key)) {
77900
78024
  nodeToUpdate.set(key, value[key]);
@@ -77957,12 +78081,12 @@ var Multiplayer = /*#__PURE__*/function () {
77957
78081
  }, {
77958
78082
  key: "refreshNodeWaypoint",
77959
78083
  value: function refreshNodeWaypoint(element) {
77960
- var _this11 = this;
78084
+ var _this12 = this;
77961
78085
  var linkView = this.modeler.paper.findViewByModel(element);
77962
78086
  var start = linkView.sourceAnchor;
77963
78087
  var end = linkView.targetAnchor;
77964
78088
  element.component.node.diagram.waypoint = [start].concat(_toConsumableArray(element.component.shape.vertices()), [end]).map(function (point) {
77965
- return _this11.modeler.moddle.create('dc:Point', point);
78089
+ return _this12.modeler.moddle.create('dc:Point', point);
77966
78090
  });
77967
78091
  }
77968
78092
  }]);
@@ -80047,6 +80171,58 @@ var Multiplayer = /*#__PURE__*/function () {
80047
80171
  });
80048
80172
  }
80049
80173
  },
80174
+ /**
80175
+ * Unhightligt selected Nodes
80176
+ * @param {String} clientId
80177
+ */
80178
+ unhightligtNodes: function unhightligtNodes(clientId) {
80179
+ var _player$selectedNodes,
80180
+ _this43 = this;
80181
+ var player = this.players.find(function (player) {
80182
+ return player.id === clientId;
80183
+ });
80184
+ player === null || player === void 0 ? void 0 : (_player$selectedNodes = player.selectedNodes) === null || _player$selectedNodes === void 0 ? void 0 : _player$selectedNodes.forEach(function (nodeId) {
80185
+ var element = _this43.getElementByNodeId(nodeId);
80186
+ element.component.setHighlightColor(false, player.color);
80187
+ });
80188
+ },
80189
+ /**
80190
+ * Update the hightligted nodes
80191
+ * @param {Object} data
80192
+ */
80193
+ updateHightligtedNodes: function updateHightligtedNodes(data) {
80194
+ var _this44 = this;
80195
+ if (data) {
80196
+ var _data$selectedNodes;
80197
+ this.unhightligtNodes(data.id);
80198
+ // highlight selected shape
80199
+ this.players = this.players.map(function (item) {
80200
+ return item.id === data.id ? _objectSpread2(_objectSpread2({}, item), data) : item;
80201
+ });
80202
+ data === null || data === void 0 ? void 0 : (_data$selectedNodes = data.selectedNodes) === null || _data$selectedNodes === void 0 ? void 0 : _data$selectedNodes.forEach(function (nodeId) {
80203
+ var element = _this44.getElementByNodeId(nodeId);
80204
+ element.component.setHighlightColor(true, data.color);
80205
+ });
80206
+ }
80207
+ },
80208
+ isMultiplayerSelected: function isMultiplayerSelected(data) {
80209
+ var intersectionExists = false;
80210
+ if (data) {
80211
+ var _this$players;
80212
+ (_this$players = this.players) === null || _this$players === void 0 ? void 0 : _this$players.some(function (player) {
80213
+ var _player$selectedNodes2;
80214
+ if (intersectionExists) {
80215
+ return true; // This will break out of the loop
80216
+ }
80217
+
80218
+ intersectionExists = player === null || player === void 0 ? void 0 : (_player$selectedNodes2 = player.selectedNodes) === null || _player$selectedNodes2 === void 0 ? void 0 : _player$selectedNodes2.some(function (item) {
80219
+ return data.includes(item);
80220
+ });
80221
+ return false;
80222
+ });
80223
+ }
80224
+ return intersectionExists;
80225
+ },
80050
80226
  removePlayer: function removePlayer(playerId) {
80051
80227
  var playerIndex = this.players.findIndex(function (player) {
80052
80228
  return player.id === playerId;
@@ -80119,7 +80295,7 @@ var Multiplayer = /*#__PURE__*/function () {
80119
80295
  localStorage.setItem('promptSessions', JSON.stringify(promptSessions));
80120
80296
  },
80121
80297
  fetchHistory: function fetchHistory() {
80122
- var _this43 = this;
80298
+ var _this45 = this;
80123
80299
  var url = '/package-ai/getPromptSessionHistory';
80124
80300
  var params = {
80125
80301
  server: window.location.host,
@@ -80131,16 +80307,16 @@ var Multiplayer = /*#__PURE__*/function () {
80131
80307
  };
80132
80308
  }
80133
80309
  window.ProcessMaker.apiClient.post(url, params).then(function (response) {
80134
- _this43.setPromptSessions(response.data.promptSessionId);
80135
- _this43.promptSessionId = response.data.promptSessionId;
80310
+ _this45.setPromptSessions(response.data.promptSessionId);
80311
+ _this45.promptSessionId = response.data.promptSessionId;
80136
80312
  localStorage.promptSessionId = response.data.promptSessionId;
80137
80313
  }).catch(function (error) {
80138
80314
  var _error$response, _error$response$data;
80139
80315
  var errorMsg = ((_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : _error$response$data.message) || error.message;
80140
80316
  if (error.response.status === 404) {
80141
- _this43.removePromptSessionForUser();
80317
+ _this45.removePromptSessionForUser();
80142
80318
  localStorage.promptSessionId = '';
80143
- _this43.promptSessionId = '';
80319
+ _this45.promptSessionId = '';
80144
80320
  } else {
80145
80321
  window.ProcessMaker.alert(errorMsg, 'danger');
80146
80322
  }
@@ -80206,7 +80382,7 @@ var Multiplayer = /*#__PURE__*/function () {
80206
80382
  this.$emit('set-xml-manager', this.xmlManager);
80207
80383
  },
80208
80384
  mounted: function mounted() {
80209
- var _this44 = this;
80385
+ var _this46 = this;
80210
80386
  store.commit('setReadOnly', this.readOnly);
80211
80387
  this.graph = new external_jointjs_namespaceObject.dia.Graph();
80212
80388
  store.commit('setGraph', this.graph);
@@ -80225,47 +80401,47 @@ var Multiplayer = /*#__PURE__*/function () {
80225
80401
  store.commit('setPaper', this.paperManager.paper);
80226
80402
  this.paperManager.addEventHandler('element:pointerclick', this.blurFocusedScreenBuilderElement, this);
80227
80403
  this.paperManager.addEventHandler('blank:pointerdown', function (event, x, y) {
80228
- if (_this44.isGrabbing) return;
80404
+ if (_this46.isGrabbing) return;
80229
80405
  if (store.getters.isReadOnly) {
80230
- _this44.isGrabbing = true;
80406
+ _this46.isGrabbing = true;
80231
80407
  }
80232
- var scale = _this44.paperManager.scale;
80233
- _this44.canvasDragPosition = {
80408
+ var scale = _this46.paperManager.scale;
80409
+ _this46.canvasDragPosition = {
80234
80410
  x: x * scale.sx,
80235
80411
  y: y * scale.sy
80236
80412
  };
80237
- _this44.isOverShape = false;
80238
- _this44.pointerDownHandler(event);
80413
+ _this46.isOverShape = false;
80414
+ _this46.pointerDownHandler(event);
80239
80415
  }, this);
80240
80416
  this.paperManager.addEventHandler('cell:mouseover element:mouseover', function (_ref19) {
80241
80417
  var shape = _ref19.model;
80242
- if (_this44.isBpmnNode(shape) && shape.attr('body/cursor') !== 'default' && !_this44.isGrabbing) {
80418
+ if (_this46.isBpmnNode(shape) && shape.attr('body/cursor') !== 'default' && !_this46.isGrabbing) {
80243
80419
  shape.attr('body/cursor', 'move');
80244
80420
  }
80245
80421
  // If the user is panning the Paper while hovering an element, ignore the default move cursor
80246
- if (_this44.isGrabbing && _this44.isBpmnNode(shape)) {
80422
+ if (_this46.isGrabbing && _this46.isBpmnNode(shape)) {
80247
80423
  shape.attr('body/cursor', 'grabbing');
80248
80424
  }
80249
80425
  });
80250
80426
  this.paperManager.addEventHandler('blank:pointerup', function (event) {
80251
- _this44.isGrabbing = false;
80252
- _this44.canvasDragPosition = null;
80253
- _this44.activeNode = null;
80254
- _this44.pointerUpHandler(event);
80427
+ _this46.isGrabbing = false;
80428
+ _this46.canvasDragPosition = null;
80429
+ _this46.activeNode = null;
80430
+ _this46.pointerUpHandler(event);
80255
80431
  }, this);
80256
80432
  this.paperManager.addEventHandler('cell:pointerup', function (cellView, event) {
80257
- _this44.canvasDragPosition = null;
80258
- _this44.activeNode = null;
80259
- _this44.pointerUpHandler(event, cellView);
80433
+ _this46.canvasDragPosition = null;
80434
+ _this46.activeNode = null;
80435
+ _this46.pointerUpHandler(event, cellView);
80260
80436
  }, this);
80261
80437
  this.$refs['paper-container'].addEventListener('mouseenter', function () {
80262
80438
  store.commit('setClientLeftPaper', false);
80263
80439
  });
80264
80440
  this.$el.addEventListener('mousemove', function (event) {
80265
- _this44.pointerMoveHandler(event);
80441
+ _this46.pointerMoveHandler(event);
80266
80442
  });
80267
80443
  this.$refs['paper-container'].addEventListener('mouseleave', function () {
80268
- _this44.paperManager.removeEventHandler('blank:pointermove');
80444
+ _this46.paperManager.removeEventHandler('blank:pointermove');
80269
80445
  store.commit('setClientLeftPaper', true);
80270
80446
  });
80271
80447
  this.paperManager.addEventHandler('cell:pointerclick', function (cellView, evt, x, y) {
@@ -80276,44 +80452,44 @@ var Multiplayer = /*#__PURE__*/function () {
80276
80452
  });
80277
80453
  this.paperManager.addEventHandler('cell:pointerclick', function (_ref20, event) {
80278
80454
  var shape = _ref20.model;
80279
- if (!_this44.isBpmnNode(shape)) {
80455
+ if (!_this46.isBpmnNode(shape)) {
80280
80456
  return;
80281
80457
  }
80282
80458
 
80283
80459
  // ignore click event if the user is Grabbing the paper
80284
- if (_this44.isGrabbing) return;
80460
+ if (_this46.isGrabbing) return;
80285
80461
  shape.component.$emit('click', event);
80286
- _this44.$emit('click', {
80462
+ _this46.$emit('click', {
80287
80463
  event: event,
80288
- node: _this44.highlightedNode.definition
80464
+ node: _this46.highlightedNode.definition
80289
80465
  });
80290
80466
  });
80291
80467
  this.paperManager.addEventHandler('cell:pointerdown', function (_ref21, event) {
80292
80468
  var shape = _ref21.model;
80293
- if (!_this44.isBpmnNode(shape)) {
80469
+ if (!_this46.isBpmnNode(shape)) {
80294
80470
  return;
80295
80471
  }
80296
80472
  // If the user is pressing Space (grabbing) and clicking on a Cell, return
80297
- if (_this44.isGrabbing) {
80473
+ if (_this46.isGrabbing) {
80298
80474
  return;
80299
80475
  }
80300
- _this44.setShapeStacking(shape);
80301
- _this44.activeNode = shape.component.node;
80302
- _this44.isOverShape = true;
80303
- _this44.pointerDowInShape(event, shape);
80476
+ _this46.setShapeStacking(shape);
80477
+ _this46.activeNode = shape.component.node;
80478
+ _this46.isOverShape = true;
80479
+ _this46.pointerDowInShape(event, shape);
80304
80480
  });
80305
80481
  // If the user is grabbing the paper while he clicked in a cell, move the paper and not the cell
80306
80482
  this.paperManager.addEventHandler('cell:pointermove', function (_, event, x, y) {
80307
- if (_this44.isGrabbing) {
80308
- if (!_this44.canvasDragPosition) {
80309
- var scale = _this44.paperManager.scale;
80310
- _this44.canvasDragPosition = {
80483
+ if (_this46.isGrabbing) {
80484
+ if (!_this46.canvasDragPosition) {
80485
+ var scale = _this46.paperManager.scale;
80486
+ _this46.canvasDragPosition = {
80311
80487
  x: x * scale.sx,
80312
80488
  y: y * scale.sy
80313
80489
  };
80314
80490
  }
80315
- if (_this44.canvasDragPosition && !_this44.clientLeftPaper) {
80316
- _this44.paperManager.translate(event.offsetX - _this44.canvasDragPosition.x, event.offsetY - _this44.canvasDragPosition.y);
80491
+ if (_this46.canvasDragPosition && !_this46.clientLeftPaper) {
80492
+ _this46.paperManager.translate(event.offsetX - _this46.canvasDragPosition.x, event.offsetY - _this46.canvasDragPosition.y);
80317
80493
  }
80318
80494
  }
80319
80495
  });
@@ -80330,15 +80506,15 @@ var Multiplayer = /*#__PURE__*/function () {
80330
80506
  while (1) switch (_context33.prev = _context33.next) {
80331
80507
  case 0:
80332
80508
  _context33.next = 2;
80333
- return _this44.loadXML(xml);
80509
+ return _this46.loadXML(xml);
80334
80510
  case 2:
80335
80511
  _context33.next = 4;
80336
80512
  return undoRedoStore.dispatch('pushState', xml);
80337
80513
  case 4:
80338
80514
  try {
80339
- multiplayer = new Multiplayer(_this44);
80515
+ multiplayer = new Multiplayer(_this46);
80340
80516
  multiplayer.init();
80341
- _this44.multiplayer = multiplayer;
80517
+ _this46.multiplayer = multiplayer;
80342
80518
  } catch (error) {
80343
80519
  console.warn('Could not initialize multiplayer', error);
80344
80520
  }
@@ -80354,18 +80530,18 @@ var Multiplayer = /*#__PURE__*/function () {
80354
80530
  return loadXML;
80355
80531
  }(),
80356
80532
  addWarnings: function addWarnings(warnings) {
80357
- return _this44.$emit('warnings', warnings);
80533
+ return _this46.$emit('warnings', warnings);
80358
80534
  },
80359
80535
  addBreadcrumbs: function addBreadcrumbs(breadcrumbs) {
80360
- return _this44.breadcrumbData.push(breadcrumbs);
80536
+ return _this46.breadcrumbData.push(breadcrumbs);
80361
80537
  }
80362
80538
  });
80363
80539
  this.$root.$on('replace-ai-node', function (data) {
80364
- _this44.replaceAiNode(data);
80540
+ _this46.replaceAiNode(data);
80365
80541
  });
80366
80542
  window.ProcessMaker.EventBus.$on('save-changes', function (redirectUrl) {
80367
80543
  if (redirectUrl) {
80368
- _this44.redirect(redirectUrl);
80544
+ _this46.redirect(redirectUrl);
80369
80545
  }
80370
80546
  });
80371
80547
 
@@ -80395,8 +80571,8 @@ var modelervue_type_style_index_0_prod_lang_scss_ = __webpack_require__(88242);
80395
80571
 
80396
80572
  var Modeler_component = normalizeComponent(
80397
80573
  modeler_Modelervue_type_script_lang_js_,
80398
- Modelervue_type_template_id_09b13081_render,
80399
- Modelervue_type_template_id_09b13081_staticRenderFns,
80574
+ Modelervue_type_template_id_554c7310_render,
80575
+ Modelervue_type_template_id_554c7310_staticRenderFns,
80400
80576
  false,
80401
80577
  null,
80402
80578
  null,