@processmaker/screen-builder 2.77.14 → 2.77.16

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/screen-builder",
3
- "version": "2.77.14",
3
+ "version": "2.77.16",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -1,12 +1,6 @@
1
1
  <template>
2
- <b-dropdown-item>
3
- <b-avatar
4
- :variant="variant"
5
- size="1.5rem"
6
- :text="text"
7
- class="text-white"
8
- ></b-avatar>
9
- {{ label }}
2
+ <b-dropdown-item :variant="variant">
3
+ <i class="fas fa-circle mr-2" />{{ label }}
10
4
  </b-dropdown-item>
11
5
  </template>
12
6
 
@@ -19,4 +13,3 @@ export default {
19
13
  }
20
14
  };
21
15
  </script>
22
-
@@ -5,21 +5,17 @@
5
5
  class="card-header d-flex justify-content-between align-items-center"
6
6
  >
7
7
  <span class="control-text">{{ title }}</span>
8
+ <b-link @click="openExternalLink">
9
+ <i class="fas fa-external-link-alt custom-icon" />
10
+ </b-link>
8
11
  </div>
9
12
  <div>
10
13
  <div class="d-flex flex-wrap p-2">
11
14
  <template>
12
15
  <b-col cols="12">
13
- <b-card
14
- :title="graphic.name"
15
- img-top
16
- tag="article"
17
- class="mb-0 mr-0 card-graphic"
18
- >
19
- <b-card-text>
20
- <b-embed type="iframe" :src="graphic.link"></b-embed>
21
- </b-card-text>
22
- </b-card>
16
+ <b-card-text>
17
+ <b-embed type="iframe" :src="graphic.link"></b-embed>
18
+ </b-card-text>
23
19
  </b-col>
24
20
  </template>
25
21
  </div>
@@ -37,6 +33,11 @@ export default {
37
33
  graphic: []
38
34
  };
39
35
  },
36
+ methods: {
37
+ openExternalLink() {
38
+ window.open("/package-analytics-reporting", "_blank");
39
+ }
40
+ },
40
41
  watch: {
41
42
  listChartOption() {
42
43
  if (this.listChartOption && this.listChartOption.name) {
@@ -43,7 +43,7 @@
43
43
  </span>
44
44
  </template>
45
45
  </vuetable>
46
- <component :is="tasksPreview" ref="preview" />
46
+ <component :is="tasksPreview" ref="preview-sidebar" />
47
47
  </div>
48
48
  <div v-else>
49
49
  <formEmpty link="Tasks" title="No tasks in sight" url="/tasks" />
@@ -79,7 +79,7 @@ export default {
79
79
  }
80
80
  ],
81
81
  tasksPreview:
82
- (window.SharedComponents && window.SharedComponents.TasksPreview) || {}
82
+ (window.SharedComponents && window.SharedComponents.TasksHome) || {}
83
83
  };
84
84
  },
85
85
  mounted() {
@@ -272,8 +272,15 @@ export default {
272
272
  }
273
273
  return link;
274
274
  },
275
+ /**
276
+ * Show the preview tasks
277
+ */
275
278
  previewTasks(info) {
276
- this.$refs.preview.showSideBar(info, this.tableData.data, true);
279
+ this.$refs["preview-sidebar"].showSideBar(
280
+ info,
281
+ this.tableData.data,
282
+ true
283
+ );
277
284
  },
278
285
  classDueDate(value) {
279
286
  const dueDate = moment(value);
@@ -286,13 +293,18 @@ export default {
286
293
  : "text-dark";
287
294
  },
288
295
  fetchData(selectedOption) {
289
- if (selectedOption === "In Progress" || selectedOption === "all") {
296
+ if (selectedOption === "In Progress") {
290
297
  this.filterDropdowns = "";
298
+ this.pmql = `(user_id = ${ProcessMaker.user.id}) AND (status = "In Progress")`;
299
+ }
300
+ if (selectedOption === "all") {
301
+ this.filterDropdowns = "";
302
+ this.pmql = `(user_id = ${ProcessMaker.user.id})`;
291
303
  }
292
304
  if (selectedOption === "Overdue") {
293
305
  this.filterDropdowns = "overdue=true";
306
+ this.pmql = "";
294
307
  }
295
- this.pmql = "";
296
308
  this.fetch();
297
309
  },
298
310
  fetchSearch(searchData) {