@processmaker/modeler 1.35.1 → 1.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processmaker/modeler",
3
- "version": "1.35.1",
3
+ "version": "1.36.1",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "open-cypress": "TZ=UTC cypress open",
package/src/.DS_Store CHANGED
Binary file
@@ -19,7 +19,7 @@ import DurationExpression from './DurationExpression';
19
19
  import DateTimeExpression from './DateTimeExpression';
20
20
  import CycleExpression from './CycleExpression';
21
21
  import { DateTime } from 'luxon';
22
- import { defaultDurationValue } from '@/components/nodes/intermediateTimerEvent';
22
+ import { defaultDurationTimerEvent } from '@/constants';
23
23
 
24
24
  const types = {
25
25
  timeDuration: 'DurationExpression',
@@ -61,7 +61,7 @@ export default {
61
61
  methods: {
62
62
  changeType(type) {
63
63
  const defaultValue = (this.isDelayType(type) || this.isCycleType(type))
64
- ? defaultDurationValue
64
+ ? defaultDurationTimerEvent
65
65
  : DateTime
66
66
  .local()
67
67
  .toUTC()
@@ -6,8 +6,7 @@ import cloneDeep from 'lodash/cloneDeep';
6
6
  import interruptingToggleConfig from '../boundaryEvent/interruptingToggleInspector';
7
7
  import advancedAccordionConfig from '@/components/inspectors/advancedAccordionConfig';
8
8
  import documentationAccordionConfig from '@/components/inspectors/documentationAccordionConfig';
9
-
10
- export const defaultDurationValue = 'PT1H';
9
+ import { defaultDurationTimerEvent } from '@/constants';
11
10
 
12
11
  export const id = 'processmaker-modeler-boundary-timer-event';
13
12
 
@@ -24,7 +23,7 @@ export default merge(cloneDeep(boundaryEventConfig), {
24
23
  eventDefinitions: [
25
24
  moddle.create('bpmn:TimerEventDefinition', {
26
25
  timeDuration: moddle.create('bpmn:Expression', {
27
- body: defaultDurationValue,
26
+ body: defaultDurationTimerEvent,
28
27
  }),
29
28
  }),
30
29
  ],
@@ -4,8 +4,8 @@ import nameConfigSettings from '@/components/inspectors/nameConfigSettings';
4
4
  import advancedAccordionConfig from '@/components/inspectors/advancedAccordionConfig';
5
5
  import documentationAccordionConfig from '@/components/inspectors/documentationAccordionConfig';
6
6
  import defaultNames from '@/components/nodes/intermediateEvent/defaultNames';
7
+ import { defaultDurationTimerEvent } from '@/constants';
7
8
 
8
- export const defaultDurationValue = 'PT1H';
9
9
  const id = 'processmaker-modeler-intermediate-catch-timer-event';
10
10
 
11
11
  export default {
@@ -67,7 +67,7 @@ export default {
67
67
  eventDefinitions: [
68
68
  moddle.create('bpmn:TimerEventDefinition', {
69
69
  timeDuration: moddle.create('bpmn:Expression', {
70
- body: defaultDurationValue,
70
+ body: defaultDurationTimerEvent,
71
71
  }),
72
72
  }),
73
73
  ],
@@ -4,7 +4,7 @@
4
4
  class="ur-button"
5
5
  data-cy="undo-control"
6
6
  :disabled="!canUndo"
7
- v-b-tooltip.hover
7
+ v-b-tooltip.hover.viewport.d50="{ customClass: 'no-pointer-events' }"
8
8
  :title="$t('Undo')"
9
9
  @click="undo"
10
10
  >
@@ -15,7 +15,7 @@
15
15
  class="ur-button"
16
16
  data-cy="redo-control"
17
17
  :disabled="!canRedo"
18
- v-b-tooltip.hover
18
+ v-b-tooltip.hover.viewport.d50="{ customClass: 'no-pointer-events' }"
19
19
  :title="$t('Redo')"
20
20
  @click="redo"
21
21
  >
@@ -64,17 +64,42 @@
64
64
  data-cy="ellipsis-menu"
65
65
  />
66
66
  </template>
67
- <button
67
+ <template
68
68
  v-else
69
- class="save-button"
70
- data-test="mini-map-btn"
71
- v-b-tooltip.hover
72
- :title="$t('Save')"
73
- @click="$emit('saveBpmn')"
74
69
  >
75
- <font-awesome-icon :icon="saveIcon" />
76
- <span class="save-button-label">{{ $t('Save') }}</span>
77
- </button>
70
+ <button
71
+ class="save-button"
72
+ data-test="mini-map-btn"
73
+ v-b-tooltip.hover
74
+ :title="$t('Save')"
75
+ @click="$emit('saveBpmn')"
76
+ >
77
+ <font-awesome-icon :icon="saveIcon" />
78
+ <span class="save-button-label">{{ $t('Save') }}</span>
79
+ </button>
80
+
81
+ <b-btn
82
+ class="ml-1 rounded"
83
+ :disabled="!xmlManager"
84
+ variant="secondary"
85
+ size="sm"
86
+ data-test="downloadXMLBtn"
87
+ @click="xmlManager && xmlManager.download()"
88
+ >
89
+ <i class="fas fa-download mr-1"/>
90
+ {{ $t('Download BPMN') }}
91
+ </b-btn>
92
+
93
+ <b-btn
94
+ variant="secondary"
95
+ size="sm"
96
+ v-b-modal="'uploadmodal'"
97
+ class="ml-1 rounded"
98
+ >
99
+ <i class="fas fa-upload mr-1"/>
100
+ {{ $t('Upload XML') }}
101
+ </b-btn>
102
+ </template>
78
103
  </div>
79
104
  </div>
80
105
  </div>
@@ -0,0 +1 @@
1
+ export const defaultDurationTimerEvent = 'PT1H';
@@ -86,6 +86,7 @@ export default {
86
86
  this.yOffset = event.clientY - sourceElement.getBoundingClientRect().top;
87
87
  },
88
88
  deselect() {
89
+ window.ProcessMaker.EventBus.$off('custom-pointerclick');
89
90
  document.removeEventListener('mousemove', this.setDraggingPosition);
90
91
  if (this.movedElement) {
91
92
  document.body.removeChild(this.movedElement);