@processmaker/modeler 1.39.28 → 1.39.30
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/dist/img/spinner.1e5b7f57.svg +6 -0
- package/dist/modeler.common.js +277 -87
- package/dist/modeler.common.js.map +1 -1
- package/dist/modeler.umd.js +277 -87
- package/dist/modeler.umd.js.map +1 -1
- package/dist/modeler.umd.min.js +4 -4
- package/dist/modeler.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/previewAsset.png +0 -0
- package/src/assets/spinner.svg +6 -0
- package/src/components/inspectors/LoadingPreview.vue +31 -0
- package/src/components/inspectors/NoPreviewAvailable.vue +11 -29
- package/src/components/inspectors/PreviewPanel.vue +14 -15
- package/src/components/inspectors/preview_panel.scss +29 -1
- package/src/components/railBottom/RailBottom.vue +2 -0
- package/src/components/topRail/multiplayerViewUsers/MultiplayerViewUsers.vue +4 -1
- package/src/setup/initialLoad.js +3 -0
- package/dist/img/spiner.8fc30c70.svg +0 -13
- package/src/assets/spiner.svg +0 -13
package/package.json
CHANGED
|
Binary file
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="margin: auto; background: rgb(255, 255, 255); display: block; shape-rendering: auto;" width="50px" height="50px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">
|
|
3
|
+
<circle cx="50" cy="50" fill="none" stroke="#1572c2" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138">
|
|
4
|
+
<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"/>
|
|
5
|
+
</circle>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="preview-placeholder">
|
|
3
|
+
<img id="preview-image" :src="previewAsset" alt="Preview Asset">
|
|
4
|
+
<h1>The preview is loading</h1>
|
|
5
|
+
<h2>Some assets can take some time to load</h2>
|
|
6
|
+
|
|
7
|
+
<img alt="spinner" :src="spinnerImg">
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
previewAsset: require('@/assets/previewAsset.png'),
|
|
17
|
+
spinnerImg: require('@/assets/spinner.svg'),
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<style lang="scss" src="./preview_panel.scss" scoped />
|
|
24
|
+
|
|
25
|
+
<style scoped>
|
|
26
|
+
#preview-image {
|
|
27
|
+
width: 130px;
|
|
28
|
+
margin-top: 50px;
|
|
29
|
+
margin-bottom: 50px;
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
3
|
-
<img :src="noPreviewImg" alt="no preview">
|
|
4
|
-
<h1>No
|
|
5
|
-
<h2>This is a placeholder screen. Please, assign a
|
|
2
|
+
<div class="preview-placeholder">
|
|
3
|
+
<img id="preview-image" :src="noPreviewImg" alt="no preview">
|
|
4
|
+
<h1>No Resource Assigned</h1>
|
|
5
|
+
<h2>This is a placeholder screen. Please, assign a resource to this task.</h2>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
8
8
|
|
|
@@ -17,31 +17,13 @@ export default {
|
|
|
17
17
|
};
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
|
-
<style scoped>
|
|
21
|
-
.no-preview {
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
align-items: center;
|
|
26
|
-
color: #44494E;
|
|
27
|
-
padding: 5px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.no-preview img {
|
|
31
|
-
max-width: 50%;
|
|
32
|
-
width: auto;
|
|
33
|
-
padding-bottom: 150px;
|
|
34
|
-
}
|
|
35
20
|
|
|
36
|
-
.
|
|
37
|
-
text-align: center;
|
|
38
|
-
font-weight: bold;
|
|
39
|
-
font-size: xx-large;
|
|
40
|
-
margin-bottom: 50px;
|
|
41
|
-
}
|
|
21
|
+
<style lang="scss" src="./preview_panel.scss" scoped />
|
|
42
22
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
23
|
+
<style scoped>
|
|
24
|
+
#preview-image {
|
|
25
|
+
width: 200px;
|
|
26
|
+
margin-top:50px;
|
|
27
|
+
margin-bottom: 50px;
|
|
28
|
+
}
|
|
47
29
|
</style>
|
|
@@ -34,19 +34,13 @@
|
|
|
34
34
|
</div>
|
|
35
35
|
</b-dropdown-item>
|
|
36
36
|
|
|
37
|
-
<b-dropdown-item key="2" class="ellipsis-dropdown-item mx-auto" @click="onSelectedPreview(2)">
|
|
38
|
-
<div class="ellipsis-dropdown-content">
|
|
39
|
-
<b class="pr-1 fa-fw">{ }</b>
|
|
40
|
-
<span>{{ $t('Object') }}</span>
|
|
41
|
-
</div>
|
|
42
|
-
</b-dropdown-item>
|
|
43
37
|
</b-dropdown>
|
|
44
38
|
<span>{{ $t('Preview') }} - {{ taskTitle }}</span>
|
|
45
39
|
</div>
|
|
46
40
|
</b-col>
|
|
47
41
|
<b-col class="actions">
|
|
48
42
|
<div>
|
|
49
|
-
<i class="fas fa-external-link-alt"/>
|
|
43
|
+
<i class="fas fa-external-link-alt" v-show="previewUrl" @click="openAsset()"/>
|
|
50
44
|
<i class="fas fa-times" @click="onClose()" />
|
|
51
45
|
</div>
|
|
52
46
|
</b-col>
|
|
@@ -60,9 +54,7 @@
|
|
|
60
54
|
<div class="task-title"> {{ taskTitle }} </div>
|
|
61
55
|
</b-row>
|
|
62
56
|
|
|
63
|
-
<
|
|
64
|
-
<img alt="spinner" :src="spinner">
|
|
65
|
-
</div>
|
|
57
|
+
<loading-preview v-if="showSpinner"/>
|
|
66
58
|
|
|
67
59
|
<no-preview-available v-show="!previewUrl"/>
|
|
68
60
|
<iframe title="Preview" v-show="!!previewUrl && !showSpinner" :src="previewUrl" style="width:100%; height:100%;border: none;" @load="loading"/>
|
|
@@ -73,16 +65,16 @@
|
|
|
73
65
|
<script>
|
|
74
66
|
import store from '@/store';
|
|
75
67
|
import NoPreviewAvailable from '@/components/inspectors/NoPreviewAvailable';
|
|
68
|
+
import LoadingPreview from '@/components/inspectors/LoadingPreview.vue';
|
|
76
69
|
|
|
77
70
|
export default {
|
|
78
71
|
props: ['nodeRegistry', 'visible', 'previewConfigs'],
|
|
79
|
-
components: { NoPreviewAvailable },
|
|
72
|
+
components: { NoPreviewAvailable, LoadingPreview },
|
|
80
73
|
data() {
|
|
81
74
|
return {
|
|
82
75
|
data: {},
|
|
83
76
|
previewUrl: null,
|
|
84
77
|
showSpinner: false,
|
|
85
|
-
spinner: require('@/assets/spiner.svg'),
|
|
86
78
|
selectedPreview: '1',
|
|
87
79
|
taskTitle: '',
|
|
88
80
|
itemTitle: '',
|
|
@@ -117,6 +109,15 @@ export default {
|
|
|
117
109
|
loading() {
|
|
118
110
|
this.showSpinner = false;
|
|
119
111
|
},
|
|
112
|
+
getConfig(data) {
|
|
113
|
+
return this.previewConfigs.find(config => {
|
|
114
|
+
return config.matcher(data);
|
|
115
|
+
});
|
|
116
|
+
},
|
|
117
|
+
openAsset() {
|
|
118
|
+
const nodeConfig = this.getConfig(this.data);
|
|
119
|
+
window.open(nodeConfig.assetUrl(this.data), '_blank');
|
|
120
|
+
},
|
|
120
121
|
prepareData() {
|
|
121
122
|
if (!this.highlightedNode) {
|
|
122
123
|
return {};
|
|
@@ -139,9 +140,7 @@ export default {
|
|
|
139
140
|
return;
|
|
140
141
|
}
|
|
141
142
|
|
|
142
|
-
const nodeConfig = this.
|
|
143
|
-
return config.matcher(this.data);
|
|
144
|
-
});
|
|
143
|
+
const nodeConfig = this.getConfig(this.data);
|
|
145
144
|
|
|
146
145
|
if (nodeConfig) {
|
|
147
146
|
this.prepareData();
|
|
@@ -15,7 +15,7 @@ $inspector-column-min-width: 200px;
|
|
|
15
15
|
min-width: $inspector-column-min-width;
|
|
16
16
|
resize: both;
|
|
17
17
|
overflow:auto;
|
|
18
|
-
background-color: #
|
|
18
|
+
background-color: #fff;
|
|
19
19
|
border-left: 8px solid #EBEEF2;
|
|
20
20
|
z-index: 2;
|
|
21
21
|
}
|
|
@@ -63,3 +63,31 @@ $inspector-column-min-width: 200px;
|
|
|
63
63
|
text-align: center;
|
|
64
64
|
color: #6c757d;
|
|
65
65
|
}
|
|
66
|
+
|
|
67
|
+
.preview-placeholder {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
align-items: center;
|
|
72
|
+
padding: 5px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.preview-placeholder h1 {
|
|
76
|
+
text-align: center;
|
|
77
|
+
margin-bottom: 30px;
|
|
78
|
+
font-family: "Open Sans", sans-serif;
|
|
79
|
+
font-size: 32px;
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
line-height: 38px;
|
|
82
|
+
letter-spacing: -0.04em;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.preview-placeholder h2 {
|
|
86
|
+
text-align: center;
|
|
87
|
+
margin-bottom: 50px;
|
|
88
|
+
font-family: "Open Sans", sans-serif;
|
|
89
|
+
font-size: 18px;
|
|
90
|
+
font-weight: 400;
|
|
91
|
+
line-height: 27px;
|
|
92
|
+
letter-spacing: -0.02em;
|
|
93
|
+
}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
:style="[overlap ? { width: 'auto'} : { width: '100%'}]"
|
|
23
23
|
>
|
|
24
24
|
<UndoRedoControl
|
|
25
|
+
v-if="!isMultiplayer"
|
|
25
26
|
v-show="showComponent"
|
|
26
27
|
:is-rendering="isRendering"
|
|
27
28
|
@load-xml="$emit('load-xml')"
|
|
@@ -117,6 +118,7 @@ export default {
|
|
|
117
118
|
showComponent() {
|
|
118
119
|
return store.getters.showComponent;
|
|
119
120
|
},
|
|
121
|
+
isMultiplayer: () => store.getters.isMultiplayer,
|
|
120
122
|
},
|
|
121
123
|
async mounted() {
|
|
122
124
|
await nextTick();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<b-avatar-group class="container">
|
|
2
|
+
<b-avatar-group class="container" v-if="!isMultiplayer">
|
|
3
3
|
<template v-for="item in filteredPlayers" >
|
|
4
4
|
<Avatar :badgeBackgroundColor="item.color" :imgSrc="item.avatar" :userName="item.name" :key="item.key"/>
|
|
5
5
|
</template>
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
<script>
|
|
10
10
|
import { uniqBy } from 'lodash';
|
|
11
11
|
import Avatar from '@/components/topRail/multiplayerViewUsers/avatar/Avatar';
|
|
12
|
+
import store from '@/store';
|
|
13
|
+
|
|
12
14
|
export default {
|
|
13
15
|
components:{
|
|
14
16
|
Avatar,
|
|
@@ -26,6 +28,7 @@ export default {
|
|
|
26
28
|
return player.name.toLowerCase() !== window.ProcessMaker.user?.fullName.toLowerCase();
|
|
27
29
|
});
|
|
28
30
|
},
|
|
31
|
+
isMultiplayer: () => store.getters.isMultiplayer,
|
|
29
32
|
},
|
|
30
33
|
};
|
|
31
34
|
</script>
|
package/src/setup/initialLoad.js
CHANGED
|
@@ -28,18 +28,21 @@ window.ProcessMaker.EventBus.$on(
|
|
|
28
28
|
(event) => {
|
|
29
29
|
event.registerPreview({
|
|
30
30
|
url: '/designer/screens/preview',
|
|
31
|
+
assetUrl: (nodeData) => `/designer/screen-builder/${nodeData.screenRef}/edit`,
|
|
31
32
|
receivingParams: ['screenRef'],
|
|
32
33
|
matcher: (nodeData) => nodeData?.$type === 'bpmn:Task',
|
|
33
34
|
});
|
|
34
35
|
|
|
35
36
|
event.registerPreview({
|
|
36
37
|
url: '/designer/scripts/preview',
|
|
38
|
+
assetUrl: (nodeData) => `/designer/scripts/${nodeData.scriptRef}/builder`,
|
|
37
39
|
receivingParams: ['scriptRef'],
|
|
38
40
|
matcher: (nodeData) => nodeData?.$type === 'bpmn:ScriptTask',
|
|
39
41
|
});
|
|
40
42
|
|
|
41
43
|
event.registerPreview({
|
|
42
44
|
url: '/designer/scripts/preview',
|
|
45
|
+
assetUrl: (nodeData) => `/designer/screen-builder/${nodeData.screenRef}/edit`,
|
|
43
46
|
receivingParams: ['screenRef'],
|
|
44
47
|
matcher: (nodeData) => nodeData?.$type === 'bpmn:ManualTask',
|
|
45
48
|
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg class="lds-gear" width="150px" height="100%"
|
|
3
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
-
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
5
|
-
viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"
|
|
6
|
-
>
|
|
7
|
-
<g transform="translate(50 50)">
|
|
8
|
-
<g transform="rotate(248.825)">
|
|
9
|
-
<animateTransform attributeName="transform" type="rotate" values="0;360" keyTimes="0;1" dur="4.7s" repeatCount="indefinite"/>
|
|
10
|
-
<path d="M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20"/>
|
|
11
|
-
</g>
|
|
12
|
-
</g>
|
|
13
|
-
</svg>
|
package/src/assets/spiner.svg
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg class="lds-gear" width="150px" height="100%"
|
|
3
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
-
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
5
|
-
viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"
|
|
6
|
-
>
|
|
7
|
-
<g transform="translate(50 50)">
|
|
8
|
-
<g transform="rotate(248.825)">
|
|
9
|
-
<animateTransform attributeName="transform" type="rotate" values="0;360" keyTimes="0;1" dur="4.7s" repeatCount="indefinite"/>
|
|
10
|
-
<path d="M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20"/>
|
|
11
|
-
</g>
|
|
12
|
-
</g>
|
|
13
|
-
</svg>
|