@processmaker/modeler 1.39.29 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processmaker/modeler",
3
- "version": "1.39.29",
3
+ "version": "1.39.30",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve --mode development",
6
6
  "test:unit": "vue-cli-service test:unit",
@@ -1,5 +1,5 @@
1
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(245, 245, 245); display: block; shape-rendering: auto;" width="50px" height="50px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">
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
3
  <circle cx="50" cy="50" fill="none" stroke="#1572c2" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138">
4
4
  <animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"/>
5
5
  </circle>
@@ -1,6 +1,6 @@
1
1
  <template>
2
- <div class="no-preview">
3
- <img id="preview-asset" :src="previewAsset" alt="Preview Asset">
2
+ <div class="preview-placeholder">
3
+ <img id="preview-image" :src="previewAsset" alt="Preview Asset">
4
4
  <h1>The preview is loading</h1>
5
5
  <h2>Some assets can take some time to load</h2>
6
6
 
@@ -20,29 +20,12 @@ export default {
20
20
  };
21
21
  </script>
22
22
 
23
- <style scoped>
24
- .no-preview {
25
- display: flex;
26
- flex-direction: column;
27
- justify-content: center;
28
- align-items: center;
29
- padding: 5px;
30
- }
31
- #preview-asset {
32
- width: 200px;
33
- padding-bottom: 150px;
34
- }
35
-
36
- .no-preview h1 {
37
- text-align: center;
38
- font-weight: bold;
39
- font-size: xx-large;
40
- margin-bottom: 50px;
41
- }
23
+ <style lang="scss" src="./preview_panel.scss" scoped />
42
24
 
43
- .no-preview h2 {
44
- text-align: center;
45
- font-size: x-large;
46
- margin-bottom: 50px;
47
- }
25
+ <style scoped>
26
+ #preview-image {
27
+ width: 130px;
28
+ margin-top: 50px;
29
+ margin-bottom: 50px;
30
+ }
48
31
  </style>
@@ -1,8 +1,8 @@
1
1
  <template>
2
- <div class="no-preview">
3
- <img :src="noPreviewImg" alt="no preview">
2
+ <div class="preview-placeholder">
3
+ <img id="preview-image" :src="noPreviewImg" alt="no preview">
4
4
  <h1>No Resource Assigned</h1>
5
- <h2>This is a placeholder. Please, assign a resource to this task.</h2>
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
- .no-preview h1 {
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
- .no-preview h2 {
44
- text-align: center;
45
- font-size: x-large;
46
- }
23
+ <style scoped>
24
+ #preview-image {
25
+ width: 200px;
26
+ margin-top:50px;
27
+ margin-bottom: 50px;
28
+ }
47
29
  </style>
@@ -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: #F5F5F5;
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>