qms-angular 1.1.89 → 1.1.91

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.
@@ -20395,7 +20395,8 @@ FlowChartConst.KS_RESET_TEMPLATE = 'KS_RESET_TEMPLATE';
20395
20395
  FlowChartConst.KS_ORG_JSONCONTENT = 'KS_ORG_JSONCONTENT';
20396
20396
  FlowChartConst.KS_SELECTED_FLOWCHART_ID = 'KS_SELECTED_FLOWCHART_ID';
20397
20397
  FlowChartConst.KS_SELECTED_JSONCONTENT = 'KS_SELECTED_JSONCONTENT';
20398
- FlowChartConst.KS_IS_SELECTED_TEMPLATE = 'KS_IS_SELECTED_TEMPLATE';
20398
+ FlowChartConst.KS_IS_SELECTED_TEMPLATE = 'KS_IS_SELECTED_TEMPLATE';
20399
+ FlowChartConst.ADD_SHAPE_CONNECTION_IN_PROGRESS = 'ADD_SHAPE_CONNECTION_IN_PROGRESS';
20399
20400
 
20400
20401
  var FlowchartViewMode;
20401
20402
  (function (FlowchartViewMode) {
@@ -21991,6 +21992,9 @@ class BpmnService {
21991
21992
  if (linkType !== 'bpmn2.Flow') {
21992
21993
  replaceLink(graph, link, bpmn2.Flow);
21993
21994
  }
21995
+ else {
21996
+ window[FlowChartConst.ADD_SHAPE_CONNECTION_IN_PROGRESS] = true;
21997
+ }
21994
21998
  },
21995
21999
  'element:mouseover': (cellView) => {
21996
22000
  if (editMode !== FlowchartViewMode.View)
@@ -22533,6 +22537,14 @@ class BpmnService {
22533
22537
  window[FlowChartConst.SELECTED_SHAPE_ID] = cellView.model.attributes.id;
22534
22538
  window[FlowChartConst.SHAPE_TYPE] = cellView.model.attributes.type;
22535
22539
  window[FlowChartConst.SHAPE_FLOWCHART_LOADING] = true;
22540
+ if (window[FlowChartConst.ADD_SHAPE_CONNECTION_IN_PROGRESS] == true) {
22541
+ window[FlowChartConst.SELECTED_SHAPE_ID] = '';
22542
+ window[FlowChartConst.SHAPE_TYPE] = '';
22543
+ window[FlowChartConst.MY_CELL_VIEW] = null;
22544
+ window[FlowChartConst.ADD_SHAPE_CONNECTION_IN_PROGRESS] = false;
22545
+ closeTools();
22546
+ selection.cancelSelection();
22547
+ }
22536
22548
  }
22537
22549
  /* QMS-1404: Customization */
22538
22550
  window[FlowChartConst.PAPER] = paper;
@@ -22575,6 +22587,7 @@ class BpmnService {
22575
22587
  link.remove({ replaceLink: true });
22576
22588
  link2.set('z', -1);
22577
22589
  link2.addTo(graph);
22590
+ window[FlowChartConst.ADD_SHAPE_CONNECTION_IN_PROGRESS] = true;
22578
22591
  }
22579
22592
  graph.on('change', (cell, opt) => {
22580
22593
  this.onChangeTextInside(cell);