@processmaker/modeler 1.43.1 → 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.
@@ -12618,7 +12618,7 @@ $({ target: 'URL', proto: true, enumerable: true }, {
12618
12618
 
12619
12619
  /***/ }),
12620
12620
 
12621
- /***/ 96141:
12621
+ /***/ 732:
12622
12622
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12623
12623
 
12624
12624
  "use strict";
@@ -12632,7 +12632,7 @@ __webpack_require__.r(__webpack_exports__);
12632
12632
 
12633
12633
  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()));
12634
12634
  // Module
12635
- ___CSS_LOADER_EXPORT___.push([module.id, ".ai-icon[data-v-99e1ba88]{width:22px;height:22px}.ai-btn[data-v-99e1ba88]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:32px;height:32px}.ai-btn-closed[data-v-99e1ba88]{color:#000;background-color:#ebeef2}.ai-btn-open[data-v-99e1ba88]{color:#fff;background-color:#6a7888}", ""]);
12635
+ ___CSS_LOADER_EXPORT___.push([module.id, ".ai-icon[data-v-0d6e8552]{width:22px;height:22px}.ai-btn-open>.ai-icon[data-v-0d6e8552]{-webkit-filter:invert(100%) sepia(0) saturate(0) hue-rotate(3deg) brightness(200%) contrast(150%);filter:invert(100%) sepia(0) saturate(0) hue-rotate(3deg) brightness(200%) contrast(150%)}.ai-btn[data-v-0d6e8552]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:32px;height:32px}.ai-btn-closed[data-v-0d6e8552]{color:#000;background-color:#ebeef2}.ai-btn-open[data-v-0d6e8552]{color:#fff;background-color:#104a75}", ""]);
12636
12636
  // Exports
12637
12637
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
12638
12638
 
@@ -12954,7 +12954,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".weekday[data-v-4ae18478]{padding:.75e
12954
12954
 
12955
12955
  /***/ }),
12956
12956
 
12957
- /***/ 11862:
12957
+ /***/ 45815:
12958
12958
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12959
12959
 
12960
12960
  "use strict";
@@ -12968,7 +12968,7 @@ __webpack_require__.r(__webpack_exports__);
12968
12968
 
12969
12969
  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()));
12970
12970
  // Module
12971
- ___CSS_LOADER_EXPORT___.push([module.id, ".box[data-v-1de55e90]{border:1px solid #5faaee;position:absolute;pointer-events:none}", ""]);
12971
+ ___CSS_LOADER_EXPORT___.push([module.id, ".box[data-v-6c7ebacb]{border:1px solid #5faaee;position:absolute;pointer-events:none}", ""]);
12972
12972
  // Exports
12973
12973
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
12974
12974
 
@@ -26449,19 +26449,19 @@ module.exports = "<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fa
26449
26449
 
26450
26450
  /***/ }),
26451
26451
 
26452
- /***/ 63175:
26452
+ /***/ 70077:
26453
26453
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
26454
26454
 
26455
26455
  // style-loader: Adds some css to the DOM by adding a <style> tag
26456
26456
 
26457
26457
  // load the styles
26458
- var content = __webpack_require__(96141);
26458
+ var content = __webpack_require__(732);
26459
26459
  if(content.__esModule) content = content.default;
26460
26460
  if(typeof content === 'string') content = [[module.id, content, '']];
26461
26461
  if(content.locals) module.exports = content.locals;
26462
26462
  // add the styles to the DOM
26463
26463
  var add = (__webpack_require__(54402)/* ["default"] */ .Z)
26464
- var update = add("71c8566b", content, true, {"sourceMap":false,"shadowMode":false});
26464
+ var update = add("8ed77346", content, true, {"sourceMap":false,"shadowMode":false});
26465
26465
 
26466
26466
  /***/ }),
26467
26467
 
@@ -26705,19 +26705,19 @@ var update = add("a84bfd8c", content, true, {"sourceMap":false,"shadowMode":fals
26705
26705
 
26706
26706
  /***/ }),
26707
26707
 
26708
- /***/ 31184:
26708
+ /***/ 1975:
26709
26709
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
26710
26710
 
26711
26711
  // style-loader: Adds some css to the DOM by adding a <style> tag
26712
26712
 
26713
26713
  // load the styles
26714
- var content = __webpack_require__(11862);
26714
+ var content = __webpack_require__(45815);
26715
26715
  if(content.__esModule) content = content.default;
26716
26716
  if(typeof content === 'string') content = [[module.id, content, '']];
26717
26717
  if(content.locals) module.exports = content.locals;
26718
26718
  // add the styles to the DOM
26719
26719
  var add = (__webpack_require__(54402)/* ["default"] */ .Z)
26720
- var update = add("74ada7e8", content, true, {"sourceMap":false,"shadowMode":false});
26720
+ var update = add("09da7c57", content, true, {"sourceMap":false,"shadowMode":false});
26721
26721
 
26722
26722
  /***/ }),
26723
26723
 
@@ -32694,6 +32694,22 @@ function isPoint(item) {
32694
32694
  }
32695
32695
  },
32696
32696
  methods: {
32697
+ setHighlightColor: function setHighlightColor(highlighted, color) {
32698
+ if (highlighted) {
32699
+ this.shape.attr({
32700
+ line: {
32701
+ stroke: color
32702
+ },
32703
+ '.joint-highlight-stroke': {
32704
+ 'display': 'none'
32705
+ }
32706
+ });
32707
+ this.shapeView.showTools();
32708
+ } else {
32709
+ resetShapeColor(this.shape);
32710
+ this.shapeView.hideTools();
32711
+ }
32712
+ },
32697
32713
  setShapeHighlight: function setShapeHighlight() {
32698
32714
  if (this.isCompleted) {
32699
32715
  this.shape.attr({
@@ -37443,24 +37459,53 @@ var idleHighlighter = {
37443
37459
  }
37444
37460
  },
37445
37461
  methods: {
37446
- setShapeHighlight: function setShapeHighlight() {
37447
- if (store.getters.isReadOnly) {
37448
- this.shapeView.unhighlight(this.shapeBody, completedHighlighter);
37449
- if (this.isCompleted) {
37450
- this.shape.attr('body/fill', COLOR_COMPLETED_FILL);
37451
- this.shapeView.highlight(this.shapeBody, completedHighlighter);
37452
- }
37453
- this.shapeView.unhighlight(this.shapeBody, inProgressHighlighter);
37454
- if (this.isInProgress) {
37455
- this.shape.attr('body/fill', COLOR_IN_PROGRESS_FILL);
37456
- this.shapeView.highlight(this.shapeBody, inProgressHighlighter);
37457
- }
37458
- if (this.isIdle) {
37459
- this.shape.attr('body/fill', COLOR_IDLE_FILL);
37460
- this.shapeView.highlight(this.shapeBody, idleHighlighter);
37462
+ prepareCustomColorHighlighter: function prepareCustomColorHighlighter(color) {
37463
+ return {
37464
+ highlighter: {
37465
+ name: 'stroke',
37466
+ options: {
37467
+ attrs: {
37468
+ stroke: color,
37469
+ 'stroke-width': 3,
37470
+ 'data-cy': 'selected'
37471
+ }
37472
+ },
37473
+ partial: false,
37474
+ type: 'default'
37461
37475
  }
37476
+ };
37477
+ },
37478
+ setHighlightColor: function setHighlightColor(highlighted, color) {
37479
+ if (!this.shapeView) {
37462
37480
  return;
37463
37481
  }
37482
+ if (highlighted) {
37483
+ this.shapeView.unhighlight(this.shapeBody, errorHighlighter);
37484
+ this.shapeView.highlight(this.shapeBody, this.prepareCustomColorHighlighter(color));
37485
+ } else {
37486
+ this.shapeView.unhighlight(this.shapeBody, this.prepareCustomColorHighlighter(color));
37487
+ }
37488
+ },
37489
+ setShapeHighlightForReadOnly: function setShapeHighlightForReadOnly() {
37490
+ if (!this.shapeView) {
37491
+ return;
37492
+ }
37493
+ this.shapeView.unhighlight(this.shapeBody, completedHighlighter);
37494
+ if (this.isCompleted) {
37495
+ this.shape.attr('body/fill', COLOR_COMPLETED_FILL);
37496
+ this.shapeView.highlight(this.shapeBody, completedHighlighter);
37497
+ }
37498
+ this.shapeView.unhighlight(this.shapeBody, inProgressHighlighter);
37499
+ if (this.isInProgress) {
37500
+ this.shape.attr('body/fill', COLOR_IN_PROGRESS_FILL);
37501
+ this.shapeView.highlight(this.shapeBody, inProgressHighlighter);
37502
+ }
37503
+ if (this.isIdle) {
37504
+ this.shape.attr('body/fill', COLOR_IDLE_FILL);
37505
+ this.shapeView.highlight(this.shapeBody, idleHighlighter);
37506
+ }
37507
+ },
37508
+ setShapeHighlightForDefault: function setShapeHighlightForDefault() {
37464
37509
  if (!this.shapeView) {
37465
37510
  return;
37466
37511
  }
@@ -37473,6 +37518,17 @@ var idleHighlighter = {
37473
37518
  this.shapeView.highlight(this.shapeBody, defaultHighlighter);
37474
37519
  }
37475
37520
  },
37521
+ setShapeHighlight: function setShapeHighlight() {
37522
+ if (!this.shapeView) {
37523
+ return;
37524
+ }
37525
+ this.shapeView.unhighlight(this.shapeBody, errorHighlighter);
37526
+ if (store.getters.isReadOnly) {
37527
+ this.setShapeHighlightForReadOnly();
37528
+ } else {
37529
+ this.setShapeHighlightForDefault();
37530
+ }
37531
+ },
37476
37532
  setBorderOutline: function setBorderOutline(borderOutline) {
37477
37533
  if (this.currentBorderOutline) {
37478
37534
  this.shapeView.unhighlight(this.shapeBody, this.currentBorderOutline);
@@ -48273,10 +48329,10 @@ var ValidationStatus_component = normalizeComponent(
48273
48329
  )
48274
48330
 
48275
48331
  /* harmony default export */ var ValidationStatus = (ValidationStatus_component.exports);
48276
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Modeler.vue?vue&type=template&id=09b13081&
48332
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Modeler.vue?vue&type=template&id=554c7310&
48277
48333
 
48278
48334
 
48279
- var Modelervue_type_template_id_09b13081_render = function render() {
48335
+ var Modelervue_type_template_id_554c7310_render = function render() {
48280
48336
  var _vm = this,
48281
48337
  _c = _vm._self._c;
48282
48338
  return _c('span', {
@@ -48541,9 +48597,9 @@ var Modelervue_type_template_id_09b13081_render = function render() {
48541
48597
  });
48542
48598
  })], 2)], 1);
48543
48599
  };
48544
- var Modelervue_type_template_id_09b13081_staticRenderFns = [];
48600
+ var Modelervue_type_template_id_554c7310_staticRenderFns = [];
48545
48601
 
48546
- ;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=09b13081&
48602
+ ;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=554c7310&
48547
48603
 
48548
48604
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/boundaryEvent/boundaryEvent.vue?vue&type=template&id=728530a2&
48549
48605
  var boundaryEventvue_type_template_id_728530a2_render = function render() {
@@ -52510,7 +52566,6 @@ var boundaryTimerEvent_component = normalizeComponent(
52510
52566
 
52511
52567
 
52512
52568
 
52513
-
52514
52569
  var boundaryTimerEvent_id = 'processmaker-modeler-boundary-timer-event';
52515
52570
  var setEventTimerDefinition = function setEventTimerDefinition(moddle, node, type, body) {
52516
52571
  var eventDefinition = _defineProperty({}, type, moddle.create('bpmn:Expression', {
@@ -52518,7 +52573,7 @@ var setEventTimerDefinition = function setEventTimerDefinition(moddle, node, typ
52518
52573
  }));
52519
52574
  return [moddle.create('bpmn:TimerEventDefinition', eventDefinition)];
52520
52575
  };
52521
- /* harmony default export */ var nodes_boundaryTimerEvent = (merge_default()(cloneDeep_default()(nodes_boundaryEvent), {
52576
+ /* harmony default export */ var nodes_boundaryTimerEvent = ((0,external_lodash_.merge)((0,external_lodash_.cloneDeep)(nodes_boundaryEvent), {
52522
52577
  id: boundaryTimerEvent_id,
52523
52578
  component: boundaryTimerEvent,
52524
52579
  control: false,
@@ -52541,7 +52596,7 @@ var setEventTimerDefinition = function setEventTimerDefinition(moddle, node, typ
52541
52596
  key = _ref2[0],
52542
52597
  value = _ref2[1];
52543
52598
  if (key === 'eventDefinitions') {
52544
- var type = Object.keys(value[0])[1];
52599
+ var type = Object.keys((0,external_lodash_.omit)(value[0], ['id', '$type', 'get', 'set', '$instanceOf']))[0];
52545
52600
  var body = value[0][type].body;
52546
52601
  data[key] = {
52547
52602
  type: type,
@@ -53639,14 +53694,14 @@ var MultiplayerViewUsers_component = normalizeComponent(
53639
53694
  )
53640
53695
 
53641
53696
  /* harmony default export */ var MultiplayerViewUsers = (MultiplayerViewUsers_component.exports);
53642
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/aiMessages/AiGenerateButton.vue?vue&type=template&id=99e1ba88&scoped=true&
53643
- var AiGenerateButtonvue_type_template_id_99e1ba88_scoped_true_render = function render() {
53697
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/aiMessages/AiGenerateButton.vue?vue&type=template&id=0d6e8552&scoped=true&
53698
+ var AiGenerateButtonvue_type_template_id_0d6e8552_scoped_true_render = function render() {
53644
53699
  var _vm = this,
53645
53700
  _c = _vm._self._c;
53646
53701
  return _c('div', {
53647
53702
  staticClass: "mr-2"
53648
53703
  }, [_c('button', {
53649
- class: ['btn px-2 ai-btn', _vm.showPopover ? 'ai-btn-open' : 'ai-btn-closed'],
53704
+ class: ['btn py-0 px-2 ai-btn', _vm.showPopover ? 'ai-btn-open' : 'ai-btn-closed'],
53650
53705
  attrs: {
53651
53706
  "id": "aiAssetButton"
53652
53707
  },
@@ -53681,7 +53736,7 @@ var AiGenerateButtonvue_type_template_id_99e1ba88_scoped_true_render = function
53681
53736
  staticClass: "m-2"
53682
53737
  }, [_c('span', {
53683
53738
  staticClass: "text-primary"
53684
- }, [_vm._v(" " + _vm._s(_vm.$t('Optimal results need propper task naming and connections.')) + " ")])]), _c('button', {
53739
+ }, [_vm._v(" " + _vm._s(_vm.$t('Optimal results need proper task naming and connections.')) + " ")])]), _c('button', {
53685
53740
  staticClass: "m-2 btn btn-primary",
53686
53741
  on: {
53687
53742
  "click": function click($event) {
@@ -53690,7 +53745,7 @@ var AiGenerateButtonvue_type_template_id_99e1ba88_scoped_true_render = function
53690
53745
  }
53691
53746
  }, [_vm._v(" " + _vm._s(_vm.$t("Create Assets with AI")) + " ")])])])], 1);
53692
53747
  };
53693
- var AiGenerateButtonvue_type_template_id_99e1ba88_scoped_true_staticRenderFns = [];
53748
+ var AiGenerateButtonvue_type_template_id_0d6e8552_scoped_true_staticRenderFns = [];
53694
53749
 
53695
53750
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/aiMessages/AiGenerateButton.vue?vue&type=script&lang=js&
53696
53751
 
@@ -53713,9 +53768,9 @@ var AiGenerateButtonvue_type_template_id_99e1ba88_scoped_true_staticRenderFns =
53713
53768
  });
53714
53769
  ;// CONCATENATED MODULE: ./src/components/aiMessages/AiGenerateButton.vue?vue&type=script&lang=js&
53715
53770
  /* harmony default export */ var aiMessages_AiGenerateButtonvue_type_script_lang_js_ = (AiGenerateButtonvue_type_script_lang_js_);
53716
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-55.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-55.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-55.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-55.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/aiMessages/AiGenerateButton.vue?vue&type=style&index=0&id=99e1ba88&prod&scoped=true&lang=css&
53717
- var AiGenerateButtonvue_type_style_index_0_id_99e1ba88_prod_scoped_true_lang_css_ = __webpack_require__(63175);
53718
- ;// CONCATENATED MODULE: ./src/components/aiMessages/AiGenerateButton.vue?vue&type=style&index=0&id=99e1ba88&prod&scoped=true&lang=css&
53771
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-55.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-55.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-55.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-55.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/aiMessages/AiGenerateButton.vue?vue&type=style&index=0&id=0d6e8552&prod&scoped=true&lang=css&
53772
+ var AiGenerateButtonvue_type_style_index_0_id_0d6e8552_prod_scoped_true_lang_css_ = __webpack_require__(70077);
53773
+ ;// CONCATENATED MODULE: ./src/components/aiMessages/AiGenerateButton.vue?vue&type=style&index=0&id=0d6e8552&prod&scoped=true&lang=css&
53719
53774
 
53720
53775
  ;// CONCATENATED MODULE: ./src/components/aiMessages/AiGenerateButton.vue
53721
53776
 
@@ -53728,11 +53783,11 @@ var AiGenerateButtonvue_type_style_index_0_id_99e1ba88_prod_scoped_true_lang_css
53728
53783
 
53729
53784
  var AiGenerateButton_component = normalizeComponent(
53730
53785
  aiMessages_AiGenerateButtonvue_type_script_lang_js_,
53731
- AiGenerateButtonvue_type_template_id_99e1ba88_scoped_true_render,
53732
- AiGenerateButtonvue_type_template_id_99e1ba88_scoped_true_staticRenderFns,
53786
+ AiGenerateButtonvue_type_template_id_0d6e8552_scoped_true_render,
53787
+ AiGenerateButtonvue_type_template_id_0d6e8552_scoped_true_staticRenderFns,
53733
53788
  false,
53734
53789
  null,
53735
- "99e1ba88",
53790
+ "0d6e8552",
53736
53791
  null
53737
53792
 
53738
53793
  )
@@ -56258,8 +56313,8 @@ var genericFlow_component = normalizeComponent(
56258
56313
  )
56259
56314
 
56260
56315
  /* harmony default export */ var genericFlow = (genericFlow_component.exports);
56261
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Selection.vue?vue&type=template&id=1de55e90&scoped=true&
56262
- var Selectionvue_type_template_id_1de55e90_scoped_true_render = function render() {
56316
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Selection.vue?vue&type=template&id=6c7ebacb&scoped=true&
56317
+ var Selectionvue_type_template_id_6c7ebacb_scoped_true_render = function render() {
56263
56318
  var _vm = this,
56264
56319
  _c = _vm._self._c;
56265
56320
  return _vm.showLasso && _vm.style ? _c('div', {
@@ -56289,7 +56344,7 @@ var Selectionvue_type_template_id_1de55e90_scoped_true_render = function render(
56289
56344
  }
56290
56345
  }, _vm.$listeners))], 1) : _vm._e();
56291
56346
  };
56292
- var Selectionvue_type_template_id_1de55e90_scoped_true_staticRenderFns = [];
56347
+ var Selectionvue_type_template_id_6c7ebacb_scoped_true_staticRenderFns = [];
56293
56348
 
56294
56349
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownMultiselect/crownMultiselect.vue?vue&type=template&id=bcd827ec&scoped=true&
56295
56350
 
@@ -57276,6 +57331,7 @@ var crownMultiselect_component = normalizeComponent(
57276
57331
  selected: function selected(newSelected) {
57277
57332
  this.prepareConectedLinks(newSelected);
57278
57333
  this.addToHighlightedNodes(newSelected);
57334
+ this.highlightNodesMultiplayer(newSelected);
57279
57335
  }
57280
57336
  },
57281
57337
  methods: {
@@ -57996,6 +58052,18 @@ var crownMultiselect_component = normalizeComponent(
57996
58052
  store.commit('highlightNode', this.processNode);
57997
58053
  }
57998
58054
  },
58055
+ highlightNodesMultiplayer: function highlightNodesMultiplayer(selected) {
58056
+ // Update selected nodes
58057
+ window.ProcessMaker.EventBus.$emit('multiplayer-updateSelectedNodes', this.getSelectedNodeKeys(selected));
58058
+ },
58059
+ getSelectedNodeKeys: function getSelectedNodeKeys(selected) {
58060
+ var keys = [];
58061
+ selected.forEach(function (shape) {
58062
+ var node = shape.model.component.node;
58063
+ keys.push(node.definition.id);
58064
+ });
58065
+ return keys;
58066
+ },
57999
58067
  /**
58000
58068
  * Gets the child shape
58001
58069
  * @param {object} point
@@ -58314,9 +58382,9 @@ var crownMultiselect_component = normalizeComponent(
58314
58382
  });
58315
58383
  ;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=script&lang=js&
58316
58384
  /* harmony default export */ var modeler_Selectionvue_type_script_lang_js_ = (Selectionvue_type_script_lang_js_);
58317
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-55.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-55.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-55.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-55.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&
58318
- var Selectionvue_type_style_index_0_id_1de55e90_prod_scoped_true_lang_css_ = __webpack_require__(31184);
58319
- ;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=style&index=0&id=1de55e90&prod&scoped=true&lang=css&
58385
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-55.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-55.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-55.use[2]!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-55.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&
58386
+ var Selectionvue_type_style_index_0_id_6c7ebacb_prod_scoped_true_lang_css_ = __webpack_require__(1975);
58387
+ ;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue?vue&type=style&index=0&id=6c7ebacb&prod&scoped=true&lang=css&
58320
58388
 
58321
58389
  ;// CONCATENATED MODULE: ./src/components/modeler/Selection.vue
58322
58390
 
@@ -58329,11 +58397,11 @@ var Selectionvue_type_style_index_0_id_1de55e90_prod_scoped_true_lang_css_ = __w
58329
58397
 
58330
58398
  var Selection_component = normalizeComponent(
58331
58399
  modeler_Selectionvue_type_script_lang_js_,
58332
- Selectionvue_type_template_id_1de55e90_scoped_true_render,
58333
- Selectionvue_type_template_id_1de55e90_scoped_true_staticRenderFns,
58400
+ Selectionvue_type_template_id_6c7ebacb_scoped_true_render,
58401
+ Selectionvue_type_template_id_6c7ebacb_scoped_true_staticRenderFns,
58334
58402
  false,
58335
58403
  null,
58336
- "1de55e90",
58404
+ "6c7ebacb",
58337
58405
  null
58338
58406
 
58339
58407
  )
@@ -77031,7 +77099,6 @@ var ColorUtil = /*#__PURE__*/function () {
77031
77099
  }, {
77032
77100
  key: "generateHSL",
77033
77101
  value: function generateHSL(name) {
77034
- console.log(name);
77035
77102
  var hash = this.getHashOfString(name);
77036
77103
  var h = this.normalizeHash(hash, 0, 360);
77037
77104
  var s = this.normalizeHash(hash, this.saturationRange[0], this.saturationRange[1]);
@@ -77212,6 +77279,8 @@ var Multiplayer = /*#__PURE__*/function () {
77212
77279
  _this.addPlayers(payload);
77213
77280
  });
77214
77281
  this.clientIO.on('clientLeft', function (payload) {
77282
+ // Unhighlight nodes
77283
+ _this.modeler.unhightligtNodes(payload.clientId);
77215
77284
  // Remove the player from the multiplayer list
77216
77285
  _this.modeler.removePlayer(payload.clientId);
77217
77286
  _this.modeler.enableMultiplayer(payload.isMultiplayer);
@@ -77223,6 +77292,8 @@ var Multiplayer = /*#__PURE__*/function () {
77223
77292
  _this.syncLocalNodes(clientId);
77224
77293
  }
77225
77294
  });
77295
+
77296
+ // Listen for updates when the cursor data was updated
77226
77297
  this.clientIO.on('updateUserCursor', /*#__PURE__*/function () {
77227
77298
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(payload) {
77228
77299
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -77240,18 +77311,14 @@ var Multiplayer = /*#__PURE__*/function () {
77240
77311
  };
77241
77312
  }());
77242
77313
 
77243
- // Listen for updates when a new element is added
77244
- this.clientIO.on('createElement', /*#__PURE__*/function () {
77314
+ // Listen for updates when the cursor data was updated
77315
+ this.clientIO.on('selectedNodesWasUpdated', /*#__PURE__*/function () {
77245
77316
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(payload) {
77246
77317
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
77247
77318
  while (1) switch (_context2.prev = _context2.next) {
77248
77319
  case 0:
77249
- _context2.next = 2;
77250
- return _this.createRemoteShape(payload.changes);
77251
- case 2:
77252
- // Add the new element to the shared array
77253
- applyUpdate(_this.yDoc, new Uint8Array(payload.updateDoc));
77254
- case 3:
77320
+ _this.updateHightligtedNodes(payload);
77321
+ case 1:
77255
77322
  case "end":
77256
77323
  return _context2.stop();
77257
77324
  }
@@ -77262,29 +77329,51 @@ var Multiplayer = /*#__PURE__*/function () {
77262
77329
  };
77263
77330
  }());
77264
77331
 
77265
- // Listen for updates when a new element is requested
77266
- this.clientIO.on('createRequestedElement', /*#__PURE__*/function () {
77332
+ // Listen for updates when a new element is added
77333
+ this.clientIO.on('createElement', /*#__PURE__*/function () {
77267
77334
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(payload) {
77268
77335
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
77269
77336
  while (1) switch (_context3.prev = _context3.next) {
77337
+ case 0:
77338
+ _context3.next = 2;
77339
+ return _this.createRemoteShape(payload.changes);
77340
+ case 2:
77341
+ // Add the new element to the shared array
77342
+ applyUpdate(_this.yDoc, new Uint8Array(payload.updateDoc));
77343
+ case 3:
77344
+ case "end":
77345
+ return _context3.stop();
77346
+ }
77347
+ }, _callee3);
77348
+ }));
77349
+ return function (_x3) {
77350
+ return _ref3.apply(this, arguments);
77351
+ };
77352
+ }());
77353
+
77354
+ // Listen for updates when a new element is requested
77355
+ this.clientIO.on('createRequestedElement', /*#__PURE__*/function () {
77356
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(payload) {
77357
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
77358
+ while (1) switch (_context4.prev = _context4.next) {
77270
77359
  case 0:
77271
77360
  if (!(payload.clientId === _this.clientIO.id)) {
77272
- _context3.next = 4;
77361
+ _context4.next = 4;
77273
77362
  break;
77274
77363
  }
77275
- _context3.next = 3;
77364
+ _context4.next = 3;
77276
77365
  return _this.createRemoteShape(payload.changes);
77277
77366
  case 3:
77278
77367
  // Add the new element to the shared array
77279
77368
  applyUpdate(_this.yDoc, new Uint8Array(payload.updateDoc));
77280
77369
  case 4:
77281
77370
  case "end":
77282
- return _context3.stop();
77371
+ return _context4.stop();
77283
77372
  }
77284
- }, _callee3);
77373
+ }, _callee4);
77285
77374
  }));
77286
- return function (_x3) {
77287
- return _ref3.apply(this, arguments);
77375
+ return function (_x4) {
77376
+ return _ref4.apply(this, arguments);
77288
77377
  };
77289
77378
  }());
77290
77379
 
@@ -77356,9 +77445,9 @@ var Multiplayer = /*#__PURE__*/function () {
77356
77445
  _this2.updateNodes(data);
77357
77446
  }
77358
77447
  });
77359
- window.ProcessMaker.EventBus.$on('multiplayer-replaceNode', function (_ref4) {
77360
- var nodeData = _ref4.nodeData,
77361
- newControl = _ref4.newControl;
77448
+ window.ProcessMaker.EventBus.$on('multiplayer-replaceNode', function (_ref5) {
77449
+ var nodeData = _ref5.nodeData,
77450
+ newControl = _ref5.newControl;
77362
77451
  _this2.replaceNode(nodeData, newControl);
77363
77452
  });
77364
77453
  window.ProcessMaker.EventBus.$on('multiplayer-addFlow', function (data) {
@@ -77380,6 +77469,11 @@ var Multiplayer = /*#__PURE__*/function () {
77380
77469
  _this2.updateFlows(data);
77381
77470
  }
77382
77471
  });
77472
+ window.ProcessMaker.EventBus.$on('multiplayer-updateSelectedNodes', function (data) {
77473
+ if (_this2.modeler.isMultiplayer) {
77474
+ _this2.updateSelectedNodes(data);
77475
+ }
77476
+ });
77383
77477
  window.ProcessMaker.EventBus.$on('multiplayer-updateMousePosition', function (data) {
77384
77478
  if (_this2.modeler.isMultiplayer) {
77385
77479
  _this2.updateMousePosition(data);
@@ -77432,6 +77526,36 @@ var Multiplayer = /*#__PURE__*/function () {
77432
77526
  _this4.modeler.updateClientCursor(client);
77433
77527
  });
77434
77528
  }
77529
+ /**
77530
+ * Updates the selected nodes by the user
77531
+ * @param {Object} data
77532
+ */
77533
+ }, {
77534
+ key: "updateSelectedNodes",
77535
+ value: function updateSelectedNodes(data) {
77536
+ var warningMessage = 'Another user is working on this object, wait until they finish making changes.';
77537
+ if (this.modeler.isMultiplayerSelected(data)) {
77538
+ window.ProcessMaker.alert(warningMessage, 'warning');
77539
+ }
77540
+ this.clientIO.emit('updateSelectedNodes', {
77541
+ clientId: this.clientIO.id,
77542
+ roomName: this.room.getRoom(),
77543
+ selectedNodes: data
77544
+ });
77545
+ }
77546
+ /**
77547
+ * Update highlighted nodes
77548
+ * @param {Object} data
77549
+ */
77550
+ }, {
77551
+ key: "updateHightligtedNodes",
77552
+ value: function updateHightligtedNodes(payload) {
77553
+ var _this5 = this;
77554
+ payload.clients.map(function (client) {
77555
+ _this5.modeler.updateHightligtedNodes(client);
77556
+ });
77557
+ }
77558
+
77435
77559
  /**
77436
77560
  * Sync the modeler nodes with the microservice
77437
77561
  * @param {String} clientId
@@ -77439,25 +77563,25 @@ var Multiplayer = /*#__PURE__*/function () {
77439
77563
  }, {
77440
77564
  key: "syncLocalNodes",
77441
77565
  value: function syncLocalNodes(clientId) {
77442
- var _this5 = this;
77566
+ var _this6 = this;
77443
77567
  // Get the process definition
77444
77568
  var nodes = this.modeler.nodes.map(function (node) {
77445
77569
  if (node.definition.$type === 'bpmn:BoundaryEvent') {
77446
77570
  return getBoundaryEventData(node);
77447
77571
  }
77448
77572
  if (node.definition.$type === 'bpmn:Lane') {
77449
- return _this5.prepareLaneData(node);
77573
+ return _this6.prepareLaneData(node);
77450
77574
  }
77451
- return _this5.modeler.multiplayerHook(node, false, true);
77575
+ return _this6.modeler.multiplayerHook(node, false, true);
77452
77576
  });
77453
77577
  nodes.forEach(function (node) {
77454
77578
  var yMapNested = new YMap();
77455
- _this5.doTransact(yMapNested, node);
77456
- _this5.yArray.push([yMapNested]);
77579
+ _this6.doTransact(yMapNested, node);
77580
+ _this6.yArray.push([yMapNested]);
77457
77581
  // Encode the state as an update and send it to the server
77458
- var stateUpdate = encodeStateAsUpdate(_this5.yDoc);
77582
+ var stateUpdate = encodeStateAsUpdate(_this6.yDoc);
77459
77583
  // Send the update to the web socket server
77460
- _this5.clientIO.emit('createElement', {
77584
+ _this6.clientIO.emit('createElement', {
77461
77585
  updateDoc: stateUpdate,
77462
77586
  clientId: clientId
77463
77587
  });
@@ -77496,10 +77620,10 @@ var Multiplayer = /*#__PURE__*/function () {
77496
77620
  }, {
77497
77621
  key: "createRemoteShape",
77498
77622
  value: function createRemoteShape(changes) {
77499
- var _this6 = this;
77623
+ var _this7 = this;
77500
77624
  return new Promise(function (resolve) {
77501
77625
  changes.map(function (data) {
77502
- _this6.createShape(data);
77626
+ _this7.createShape(data);
77503
77627
  });
77504
77628
  resolve();
77505
77629
  });
@@ -77566,14 +77690,14 @@ var Multiplayer = /*#__PURE__*/function () {
77566
77690
  }, {
77567
77691
  key: "updateNodes",
77568
77692
  value: function updateNodes(data) {
77569
- var _this7 = this;
77693
+ var _this8 = this;
77570
77694
  data.forEach(function (value) {
77571
- var index = _this7.getIndex(value.id);
77572
- var nodeToUpdate = _this7.yArray.get(index);
77695
+ var index = _this8.getIndex(value.id);
77696
+ var nodeToUpdate = _this8.yArray.get(index);
77573
77697
  var updateData = value.poolId ? _objectSpread2(_objectSpread2({}, value.properties), {
77574
77698
  poolId: value.poolId
77575
77699
  }) : value.properties;
77576
- _this7.doTransact(nodeToUpdate, updateData);
77700
+ _this8.doTransact(nodeToUpdate, updateData);
77577
77701
  });
77578
77702
  }
77579
77703
  }, {
@@ -77653,16 +77777,16 @@ var Multiplayer = /*#__PURE__*/function () {
77653
77777
  }, {
77654
77778
  key: "updateShapes",
77655
77779
  value: function () {
77656
- var _updateShapes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(data) {
77780
+ var _updateShapes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(data) {
77657
77781
  var paper, element, newPool, node, _node;
77658
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
77659
- while (1) switch (_context4.prev = _context4.next) {
77782
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
77783
+ while (1) switch (_context5.prev = _context5.next) {
77660
77784
  case 0:
77661
77785
  paper = this.modeler.paper;
77662
77786
  element = this.modeler.getElementByNodeId(data.id);
77663
77787
  newPool = this.modeler.getElementByNodeId(data.poolId);
77664
77788
  if (!this.modeler.flowTypes.includes(data.type)) {
77665
- _context4.next = 7;
77789
+ _context5.next = 7;
77666
77790
  break;
77667
77791
  }
77668
77792
  if ('waypoint' in data) {
@@ -77675,7 +77799,7 @@ var Multiplayer = /*#__PURE__*/function () {
77675
77799
  value: data.color
77676
77800
  });
77677
77801
  }
77678
- _context4.next = 23;
77802
+ _context5.next = 23;
77679
77803
  break;
77680
77804
  case 7:
77681
77805
  // updata gateway default folow
@@ -77693,7 +77817,7 @@ var Multiplayer = /*#__PURE__*/function () {
77693
77817
  }
77694
77818
  // udpdate the element's color
77695
77819
  if (!data.color) {
77696
- _context4.next = 14;
77820
+ _context5.next = 14;
77697
77821
  break;
77698
77822
  }
77699
77823
  _node = this.getNodeById(data.id);
@@ -77702,7 +77826,7 @@ var Multiplayer = /*#__PURE__*/function () {
77702
77826
  key: 'color',
77703
77827
  value: data.color
77704
77828
  });
77705
- return _context4.abrupt("return");
77829
+ return _context5.abrupt("return");
77706
77830
  case 14:
77707
77831
  // boundary type
77708
77832
  if (element.component.node.definition.$type === 'bpmn:BoundaryEvent') {
@@ -77710,13 +77834,13 @@ var Multiplayer = /*#__PURE__*/function () {
77710
77834
  }
77711
77835
 
77712
77836
  // Trigger a rendering of the element on the paper
77713
- _context4.next = 17;
77837
+ _context5.next = 17;
77714
77838
  return paper.findViewByModel(element).update();
77715
77839
  case 17:
77716
- _context4.next = 19;
77840
+ _context5.next = 19;
77717
77841
  return element.component.$nextTick();
77718
77842
  case 19:
77719
- _context4.next = 21;
77843
+ _context5.next = 21;
77720
77844
  return this.modeler.paperManager.awaitScheduledUpdates();
77721
77845
  case 21:
77722
77846
  if (newPool && element.component.node.pool && element.component.node.pool.component.id !== data.poolId) {
@@ -77725,11 +77849,11 @@ var Multiplayer = /*#__PURE__*/function () {
77725
77849
  this.modeler.updateLasso();
77726
77850
  case 23:
77727
77851
  case "end":
77728
- return _context4.stop();
77852
+ return _context5.stop();
77729
77853
  }
77730
- }, _callee4, this);
77854
+ }, _callee5, this);
77731
77855
  }));
77732
- function updateShapes(_x4) {
77856
+ function updateShapes(_x5) {
77733
77857
  return _updateShapes.apply(this, arguments);
77734
77858
  }
77735
77859
  return updateShapes;
@@ -77755,7 +77879,7 @@ var Multiplayer = /*#__PURE__*/function () {
77755
77879
  }, {
77756
77880
  key: "updateMovedWaypoint",
77757
77881
  value: function updateMovedWaypoint(element, data) {
77758
- var _this8 = this;
77882
+ var _this9 = this;
77759
77883
  var waypoint = data.waypoint;
77760
77884
  var paper = this.modeler.paper;
77761
77885
  // Update the element's waypoints
@@ -77768,14 +77892,14 @@ var Multiplayer = /*#__PURE__*/function () {
77768
77892
  element.vertices(waypoint);
77769
77893
  // update bpmn waypoints
77770
77894
  element.component.node.diagram.waypoint = waypoint.map(function (point) {
77771
- return _this8.modeler.moddle.create('dc:Point', point);
77895
+ return _this9.modeler.moddle.create('dc:Point', point);
77772
77896
  });
77773
77897
  // Force Remount Flow
77774
77898
  element.component.node._modelerId += '_replaced';
77775
77899
  // Update the element's source anchor
77776
77900
  element.source(sourceElem, {
77777
77901
  anchor: function anchor() {
77778
- return getDefaultAnchorPoint(_this8.getConnectionPoint(sourceElem, startWaypoint), sourceElem.findView(paper));
77902
+ return getDefaultAnchorPoint(_this9.getConnectionPoint(sourceElem, startWaypoint), sourceElem.findView(paper));
77779
77903
  },
77780
77904
  connectionPoint: {
77781
77905
  name: 'boundary'
@@ -77785,7 +77909,7 @@ var Multiplayer = /*#__PURE__*/function () {
77785
77909
  // Update the element's target anchor
77786
77910
  element.target(targetElem, {
77787
77911
  anchor: function anchor() {
77788
- return getDefaultAnchorPoint(_this8.getConnectionPoint(targetElem, endWaypoint), targetElem.findView(paper));
77912
+ return getDefaultAnchorPoint(_this9.getConnectionPoint(targetElem, endWaypoint), targetElem.findView(paper));
77789
77913
  },
77790
77914
  connectionPoint: {
77791
77915
  name: 'boundary'
@@ -77828,7 +77952,7 @@ var Multiplayer = /*#__PURE__*/function () {
77828
77952
  }, {
77829
77953
  key: "addLaneNodes",
77830
77954
  value: function addLaneNodes(lanes) {
77831
- var _this9 = this;
77955
+ var _this10 = this;
77832
77956
  var pool = this.getPool(lanes);
77833
77957
  var defaultPoolData = {
77834
77958
  id: pool.component.node.definition.id,
@@ -77844,11 +77968,11 @@ var Multiplayer = /*#__PURE__*/function () {
77844
77968
  this.yDoc.transact(function () {
77845
77969
  lanes.forEach(function (lane) {
77846
77970
  var yMapNested = new YMap();
77847
- var data = _this9.prepareLaneData(lane);
77848
- _this9.doTransact(yMapNested, data);
77849
- _this9.yArray.push([yMapNested]);
77850
- var stateUpdate = encodeStateAsUpdate(_this9.yDoc);
77851
- _this9.clientIO.emit('createElement', {
77971
+ var data = _this10.prepareLaneData(lane);
77972
+ _this10.doTransact(yMapNested, data);
77973
+ _this10.yArray.push([yMapNested]);
77974
+ var stateUpdate = encodeStateAsUpdate(_this10.yDoc);
77975
+ _this10.clientIO.emit('createElement', {
77852
77976
  updateDoc: stateUpdate
77853
77977
  });
77854
77978
  });
@@ -77988,11 +78112,11 @@ var Multiplayer = /*#__PURE__*/function () {
77988
78112
  }, {
77989
78113
  key: "updateFlows",
77990
78114
  value: function updateFlows(data) {
77991
- var _this10 = this;
78115
+ var _this11 = this;
77992
78116
  data.forEach(function (value) {
77993
- var index = _this10.getIndex(value.id);
77994
- var nodeToUpdate = _this10.yArray.get(index);
77995
- _this10.yDoc.transact(function () {
78117
+ var index = _this11.getIndex(value.id);
78118
+ var nodeToUpdate = _this11.yArray.get(index);
78119
+ _this11.yDoc.transact(function () {
77996
78120
  for (var key in value) {
77997
78121
  if (Object.hasOwn(value, key)) {
77998
78122
  nodeToUpdate.set(key, value[key]);
@@ -78055,12 +78179,12 @@ var Multiplayer = /*#__PURE__*/function () {
78055
78179
  }, {
78056
78180
  key: "refreshNodeWaypoint",
78057
78181
  value: function refreshNodeWaypoint(element) {
78058
- var _this11 = this;
78182
+ var _this12 = this;
78059
78183
  var linkView = this.modeler.paper.findViewByModel(element);
78060
78184
  var start = linkView.sourceAnchor;
78061
78185
  var end = linkView.targetAnchor;
78062
78186
  element.component.node.diagram.waypoint = [start].concat(_toConsumableArray(element.component.shape.vertices()), [end]).map(function (point) {
78063
- return _this11.modeler.moddle.create('dc:Point', point);
78187
+ return _this12.modeler.moddle.create('dc:Point', point);
78064
78188
  });
78065
78189
  }
78066
78190
  }]);
@@ -80145,6 +80269,58 @@ var Multiplayer = /*#__PURE__*/function () {
80145
80269
  });
80146
80270
  }
80147
80271
  },
80272
+ /**
80273
+ * Unhightligt selected Nodes
80274
+ * @param {String} clientId
80275
+ */
80276
+ unhightligtNodes: function unhightligtNodes(clientId) {
80277
+ var _player$selectedNodes,
80278
+ _this43 = this;
80279
+ var player = this.players.find(function (player) {
80280
+ return player.id === clientId;
80281
+ });
80282
+ player === null || player === void 0 ? void 0 : (_player$selectedNodes = player.selectedNodes) === null || _player$selectedNodes === void 0 ? void 0 : _player$selectedNodes.forEach(function (nodeId) {
80283
+ var element = _this43.getElementByNodeId(nodeId);
80284
+ element.component.setHighlightColor(false, player.color);
80285
+ });
80286
+ },
80287
+ /**
80288
+ * Update the hightligted nodes
80289
+ * @param {Object} data
80290
+ */
80291
+ updateHightligtedNodes: function updateHightligtedNodes(data) {
80292
+ var _this44 = this;
80293
+ if (data) {
80294
+ var _data$selectedNodes;
80295
+ this.unhightligtNodes(data.id);
80296
+ // highlight selected shape
80297
+ this.players = this.players.map(function (item) {
80298
+ return item.id === data.id ? _objectSpread2(_objectSpread2({}, item), data) : item;
80299
+ });
80300
+ data === null || data === void 0 ? void 0 : (_data$selectedNodes = data.selectedNodes) === null || _data$selectedNodes === void 0 ? void 0 : _data$selectedNodes.forEach(function (nodeId) {
80301
+ var element = _this44.getElementByNodeId(nodeId);
80302
+ element.component.setHighlightColor(true, data.color);
80303
+ });
80304
+ }
80305
+ },
80306
+ isMultiplayerSelected: function isMultiplayerSelected(data) {
80307
+ var intersectionExists = false;
80308
+ if (data) {
80309
+ var _this$players;
80310
+ (_this$players = this.players) === null || _this$players === void 0 ? void 0 : _this$players.some(function (player) {
80311
+ var _player$selectedNodes2;
80312
+ if (intersectionExists) {
80313
+ return true; // This will break out of the loop
80314
+ }
80315
+
80316
+ intersectionExists = player === null || player === void 0 ? void 0 : (_player$selectedNodes2 = player.selectedNodes) === null || _player$selectedNodes2 === void 0 ? void 0 : _player$selectedNodes2.some(function (item) {
80317
+ return data.includes(item);
80318
+ });
80319
+ return false;
80320
+ });
80321
+ }
80322
+ return intersectionExists;
80323
+ },
80148
80324
  removePlayer: function removePlayer(playerId) {
80149
80325
  var playerIndex = this.players.findIndex(function (player) {
80150
80326
  return player.id === playerId;
@@ -80217,7 +80393,7 @@ var Multiplayer = /*#__PURE__*/function () {
80217
80393
  localStorage.setItem('promptSessions', JSON.stringify(promptSessions));
80218
80394
  },
80219
80395
  fetchHistory: function fetchHistory() {
80220
- var _this43 = this;
80396
+ var _this45 = this;
80221
80397
  var url = '/package-ai/getPromptSessionHistory';
80222
80398
  var params = {
80223
80399
  server: window.location.host,
@@ -80229,16 +80405,16 @@ var Multiplayer = /*#__PURE__*/function () {
80229
80405
  };
80230
80406
  }
80231
80407
  window.ProcessMaker.apiClient.post(url, params).then(function (response) {
80232
- _this43.setPromptSessions(response.data.promptSessionId);
80233
- _this43.promptSessionId = response.data.promptSessionId;
80408
+ _this45.setPromptSessions(response.data.promptSessionId);
80409
+ _this45.promptSessionId = response.data.promptSessionId;
80234
80410
  localStorage.promptSessionId = response.data.promptSessionId;
80235
80411
  }).catch(function (error) {
80236
80412
  var _error$response, _error$response$data;
80237
80413
  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;
80238
80414
  if (error.response.status === 404) {
80239
- _this43.removePromptSessionForUser();
80415
+ _this45.removePromptSessionForUser();
80240
80416
  localStorage.promptSessionId = '';
80241
- _this43.promptSessionId = '';
80417
+ _this45.promptSessionId = '';
80242
80418
  } else {
80243
80419
  window.ProcessMaker.alert(errorMsg, 'danger');
80244
80420
  }
@@ -80304,7 +80480,7 @@ var Multiplayer = /*#__PURE__*/function () {
80304
80480
  this.$emit('set-xml-manager', this.xmlManager);
80305
80481
  },
80306
80482
  mounted: function mounted() {
80307
- var _this44 = this;
80483
+ var _this46 = this;
80308
80484
  store.commit('setReadOnly', this.readOnly);
80309
80485
  this.graph = new external_jointjs_.dia.Graph();
80310
80486
  store.commit('setGraph', this.graph);
@@ -80323,47 +80499,47 @@ var Multiplayer = /*#__PURE__*/function () {
80323
80499
  store.commit('setPaper', this.paperManager.paper);
80324
80500
  this.paperManager.addEventHandler('element:pointerclick', this.blurFocusedScreenBuilderElement, this);
80325
80501
  this.paperManager.addEventHandler('blank:pointerdown', function (event, x, y) {
80326
- if (_this44.isGrabbing) return;
80502
+ if (_this46.isGrabbing) return;
80327
80503
  if (store.getters.isReadOnly) {
80328
- _this44.isGrabbing = true;
80504
+ _this46.isGrabbing = true;
80329
80505
  }
80330
- var scale = _this44.paperManager.scale;
80331
- _this44.canvasDragPosition = {
80506
+ var scale = _this46.paperManager.scale;
80507
+ _this46.canvasDragPosition = {
80332
80508
  x: x * scale.sx,
80333
80509
  y: y * scale.sy
80334
80510
  };
80335
- _this44.isOverShape = false;
80336
- _this44.pointerDownHandler(event);
80511
+ _this46.isOverShape = false;
80512
+ _this46.pointerDownHandler(event);
80337
80513
  }, this);
80338
80514
  this.paperManager.addEventHandler('cell:mouseover element:mouseover', function (_ref19) {
80339
80515
  var shape = _ref19.model;
80340
- if (_this44.isBpmnNode(shape) && shape.attr('body/cursor') !== 'default' && !_this44.isGrabbing) {
80516
+ if (_this46.isBpmnNode(shape) && shape.attr('body/cursor') !== 'default' && !_this46.isGrabbing) {
80341
80517
  shape.attr('body/cursor', 'move');
80342
80518
  }
80343
80519
  // If the user is panning the Paper while hovering an element, ignore the default move cursor
80344
- if (_this44.isGrabbing && _this44.isBpmnNode(shape)) {
80520
+ if (_this46.isGrabbing && _this46.isBpmnNode(shape)) {
80345
80521
  shape.attr('body/cursor', 'grabbing');
80346
80522
  }
80347
80523
  });
80348
80524
  this.paperManager.addEventHandler('blank:pointerup', function (event) {
80349
- _this44.isGrabbing = false;
80350
- _this44.canvasDragPosition = null;
80351
- _this44.activeNode = null;
80352
- _this44.pointerUpHandler(event);
80525
+ _this46.isGrabbing = false;
80526
+ _this46.canvasDragPosition = null;
80527
+ _this46.activeNode = null;
80528
+ _this46.pointerUpHandler(event);
80353
80529
  }, this);
80354
80530
  this.paperManager.addEventHandler('cell:pointerup', function (cellView, event) {
80355
- _this44.canvasDragPosition = null;
80356
- _this44.activeNode = null;
80357
- _this44.pointerUpHandler(event, cellView);
80531
+ _this46.canvasDragPosition = null;
80532
+ _this46.activeNode = null;
80533
+ _this46.pointerUpHandler(event, cellView);
80358
80534
  }, this);
80359
80535
  this.$refs['paper-container'].addEventListener('mouseenter', function () {
80360
80536
  store.commit('setClientLeftPaper', false);
80361
80537
  });
80362
80538
  this.$el.addEventListener('mousemove', function (event) {
80363
- _this44.pointerMoveHandler(event);
80539
+ _this46.pointerMoveHandler(event);
80364
80540
  });
80365
80541
  this.$refs['paper-container'].addEventListener('mouseleave', function () {
80366
- _this44.paperManager.removeEventHandler('blank:pointermove');
80542
+ _this46.paperManager.removeEventHandler('blank:pointermove');
80367
80543
  store.commit('setClientLeftPaper', true);
80368
80544
  });
80369
80545
  this.paperManager.addEventHandler('cell:pointerclick', function (cellView, evt, x, y) {
@@ -80374,44 +80550,44 @@ var Multiplayer = /*#__PURE__*/function () {
80374
80550
  });
80375
80551
  this.paperManager.addEventHandler('cell:pointerclick', function (_ref20, event) {
80376
80552
  var shape = _ref20.model;
80377
- if (!_this44.isBpmnNode(shape)) {
80553
+ if (!_this46.isBpmnNode(shape)) {
80378
80554
  return;
80379
80555
  }
80380
80556
 
80381
80557
  // ignore click event if the user is Grabbing the paper
80382
- if (_this44.isGrabbing) return;
80558
+ if (_this46.isGrabbing) return;
80383
80559
  shape.component.$emit('click', event);
80384
- _this44.$emit('click', {
80560
+ _this46.$emit('click', {
80385
80561
  event: event,
80386
- node: _this44.highlightedNode.definition
80562
+ node: _this46.highlightedNode.definition
80387
80563
  });
80388
80564
  });
80389
80565
  this.paperManager.addEventHandler('cell:pointerdown', function (_ref21, event) {
80390
80566
  var shape = _ref21.model;
80391
- if (!_this44.isBpmnNode(shape)) {
80567
+ if (!_this46.isBpmnNode(shape)) {
80392
80568
  return;
80393
80569
  }
80394
80570
  // If the user is pressing Space (grabbing) and clicking on a Cell, return
80395
- if (_this44.isGrabbing) {
80571
+ if (_this46.isGrabbing) {
80396
80572
  return;
80397
80573
  }
80398
- _this44.setShapeStacking(shape);
80399
- _this44.activeNode = shape.component.node;
80400
- _this44.isOverShape = true;
80401
- _this44.pointerDowInShape(event, shape);
80574
+ _this46.setShapeStacking(shape);
80575
+ _this46.activeNode = shape.component.node;
80576
+ _this46.isOverShape = true;
80577
+ _this46.pointerDowInShape(event, shape);
80402
80578
  });
80403
80579
  // If the user is grabbing the paper while he clicked in a cell, move the paper and not the cell
80404
80580
  this.paperManager.addEventHandler('cell:pointermove', function (_, event, x, y) {
80405
- if (_this44.isGrabbing) {
80406
- if (!_this44.canvasDragPosition) {
80407
- var scale = _this44.paperManager.scale;
80408
- _this44.canvasDragPosition = {
80581
+ if (_this46.isGrabbing) {
80582
+ if (!_this46.canvasDragPosition) {
80583
+ var scale = _this46.paperManager.scale;
80584
+ _this46.canvasDragPosition = {
80409
80585
  x: x * scale.sx,
80410
80586
  y: y * scale.sy
80411
80587
  };
80412
80588
  }
80413
- if (_this44.canvasDragPosition && !_this44.clientLeftPaper) {
80414
- _this44.paperManager.translate(event.offsetX - _this44.canvasDragPosition.x, event.offsetY - _this44.canvasDragPosition.y);
80589
+ if (_this46.canvasDragPosition && !_this46.clientLeftPaper) {
80590
+ _this46.paperManager.translate(event.offsetX - _this46.canvasDragPosition.x, event.offsetY - _this46.canvasDragPosition.y);
80415
80591
  }
80416
80592
  }
80417
80593
  });
@@ -80428,15 +80604,15 @@ var Multiplayer = /*#__PURE__*/function () {
80428
80604
  while (1) switch (_context33.prev = _context33.next) {
80429
80605
  case 0:
80430
80606
  _context33.next = 2;
80431
- return _this44.loadXML(xml);
80607
+ return _this46.loadXML(xml);
80432
80608
  case 2:
80433
80609
  _context33.next = 4;
80434
80610
  return undoRedoStore.dispatch('pushState', xml);
80435
80611
  case 4:
80436
80612
  try {
80437
- multiplayer = new Multiplayer(_this44);
80613
+ multiplayer = new Multiplayer(_this46);
80438
80614
  multiplayer.init();
80439
- _this44.multiplayer = multiplayer;
80615
+ _this46.multiplayer = multiplayer;
80440
80616
  } catch (error) {
80441
80617
  console.warn('Could not initialize multiplayer', error);
80442
80618
  }
@@ -80452,18 +80628,18 @@ var Multiplayer = /*#__PURE__*/function () {
80452
80628
  return loadXML;
80453
80629
  }(),
80454
80630
  addWarnings: function addWarnings(warnings) {
80455
- return _this44.$emit('warnings', warnings);
80631
+ return _this46.$emit('warnings', warnings);
80456
80632
  },
80457
80633
  addBreadcrumbs: function addBreadcrumbs(breadcrumbs) {
80458
- return _this44.breadcrumbData.push(breadcrumbs);
80634
+ return _this46.breadcrumbData.push(breadcrumbs);
80459
80635
  }
80460
80636
  });
80461
80637
  this.$root.$on('replace-ai-node', function (data) {
80462
- _this44.replaceAiNode(data);
80638
+ _this46.replaceAiNode(data);
80463
80639
  });
80464
80640
  window.ProcessMaker.EventBus.$on('save-changes', function (redirectUrl) {
80465
80641
  if (redirectUrl) {
80466
- _this44.redirect(redirectUrl);
80642
+ _this46.redirect(redirectUrl);
80467
80643
  }
80468
80644
  });
80469
80645
 
@@ -80493,8 +80669,8 @@ var modelervue_type_style_index_0_prod_lang_scss_ = __webpack_require__(26695);
80493
80669
 
80494
80670
  var Modeler_component = normalizeComponent(
80495
80671
  modeler_Modelervue_type_script_lang_js_,
80496
- Modelervue_type_template_id_09b13081_render,
80497
- Modelervue_type_template_id_09b13081_staticRenderFns,
80672
+ Modelervue_type_template_id_554c7310_render,
80673
+ Modelervue_type_template_id_554c7310_staticRenderFns,
80498
80674
  false,
80499
80675
  null,
80500
80676
  null,