@processmaker/screen-builder 2.83.4 → 2.83.6
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/vue-form-builder.css +1 -1
- package/dist/vue-form-builder.es.js +37 -35
- package/dist/vue-form-builder.es.js.map +1 -1
- package/dist/vue-form-builder.umd.js +2 -2
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/renderer/card.vue +105 -43
- package/src/components/renderer/form-empty-table.vue +1 -1
- package/src/components/renderer/form-list-table.vue +1 -0
- package/src/components/renderer/form-new-request.vue +11 -54
- package/src/components/renderer/form-requests.vue +6 -1
- package/src/components/renderer/form-tasks.vue +6 -1
- package/src/main.js +5 -1
|
@@ -45097,7 +45097,7 @@ const WK = {
|
|
|
45097
45097
|
},
|
|
45098
45098
|
methods: {
|
|
45099
45099
|
openLink() {
|
|
45100
|
-
window.open(this.
|
|
45100
|
+
window.open(this.url, "_blank");
|
|
45101
45101
|
}
|
|
45102
45102
|
}
|
|
45103
45103
|
};
|
|
@@ -45112,7 +45112,7 @@ var UK = function() {
|
|
|
45112
45112
|
GK,
|
|
45113
45113
|
!1,
|
|
45114
45114
|
null,
|
|
45115
|
-
"
|
|
45115
|
+
"373e2734",
|
|
45116
45116
|
null,
|
|
45117
45117
|
null
|
|
45118
45118
|
);
|
|
@@ -45141,6 +45141,12 @@ const tf = HK.exports, YK = ds(), QK = {
|
|
|
45141
45141
|
tasksPreview: window.SharedComponents && window.SharedComponents.TasksHome || {}
|
|
45142
45142
|
};
|
|
45143
45143
|
},
|
|
45144
|
+
computed: {
|
|
45145
|
+
noDataUrl() {
|
|
45146
|
+
var t, e;
|
|
45147
|
+
return `${(e = (t = window.ProcessMaker) == null ? void 0 : t.app) == null ? void 0 : e.url}/tasks`;
|
|
45148
|
+
}
|
|
45149
|
+
},
|
|
45144
45150
|
mounted() {
|
|
45145
45151
|
this.setFields(), this.pmql = `(user_id = ${ProcessMaker.user.id}) AND (status = "In Progress")`, this.fetch(), this.$root.$on("dropdownSelectionTask", this.fetchData), this.$root.$on("searchTask", this.fetchSearch);
|
|
45146
45152
|
},
|
|
@@ -45274,7 +45280,7 @@ var KK = function() {
|
|
|
45274
45280
|
return [r("span", [r("i", { staticClass: "fa fa-eye", on: { click: function(i) {
|
|
45275
45281
|
return e.previewTasks(a.rowData);
|
|
45276
45282
|
} } })])];
|
|
45277
|
-
} }], null, !1, 4211731584) }), r(e.tasksPreview, { ref: "preview-sidebar", tag: "component" })], 1) : r("div", [r("formEmpty", { attrs: { link: "Tasks", title: "No tasks in sight", url:
|
|
45283
|
+
} }], null, !1, 4211731584) }), r(e.tasksPreview, { ref: "preview-sidebar", tag: "component" })], 1) : r("div", [r("formEmpty", { attrs: { link: "Tasks", title: "No tasks in sight", url: e.noDataUrl } })], 1);
|
|
45278
45284
|
}, JK = [], ZK = /* @__PURE__ */ oe(
|
|
45279
45285
|
QK,
|
|
45280
45286
|
KK,
|
|
@@ -45308,6 +45314,12 @@ const TS = ZK.exports, XK = ds(), eJ = {
|
|
|
45308
45314
|
]
|
|
45309
45315
|
};
|
|
45310
45316
|
},
|
|
45317
|
+
computed: {
|
|
45318
|
+
noDataUrl() {
|
|
45319
|
+
var t, e;
|
|
45320
|
+
return `${(e = (t = window.ProcessMaker) == null ? void 0 : t.app) == null ? void 0 : e.url}/requests`;
|
|
45321
|
+
}
|
|
45322
|
+
},
|
|
45311
45323
|
mounted() {
|
|
45312
45324
|
this.setFields(), this.pmql = `requester = "${Processmaker.user.username}"`, this.fetch(), this.$root.$on("dropdownSelectionRequest", this.fetchData), this.$root.$on("searchRequest", this.fetchSearch);
|
|
45313
45325
|
},
|
|
@@ -45412,7 +45424,7 @@ var tJ = function() {
|
|
|
45412
45424
|
return [r("span", [r("i", { class: `fas fa-circle text-${a.rowData.status.color}` }), e._v(" " + e._s(a.rowData.status.label) + " ")])];
|
|
45413
45425
|
} }, { key: "actions", fn: function(a) {
|
|
45414
45426
|
return [r("div", { staticClass: "actions" }, [r("div", { staticClass: "popout" }, [r("b-btn", { directives: [{ name: "b-tooltip", rawName: "v-b-tooltip.hover", modifiers: { hover: !0 } }, { name: "uni-aria-describedby", rawName: "v-uni-aria-describedby", value: a.rowData.id.toString(), expression: "props.rowData.id.toString()" }], attrs: { variant: "link", href: e.openRequest(a.rowData, a.rowIndex), title: e.$t("Open Request") } }, [r("i", { staticClass: "fas fa-caret-square-right fa-lg fa-fw" })])], 1)])];
|
|
45415
|
-
} }], null, !1, 3091698390) })], 1) : r("div", [r("formEmpty", { attrs: { link: "Requests", title: "No Requests to Show", url:
|
|
45427
|
+
} }], null, !1, 3091698390) })], 1) : r("div", [r("formEmpty", { attrs: { link: "Requests", title: "No Requests to Show", url: e.noDataUrl } })], 1);
|
|
45416
45428
|
}, rJ = [], aJ = /* @__PURE__ */ oe(
|
|
45417
45429
|
eJ,
|
|
45418
45430
|
tJ,
|
|
@@ -45473,39 +45485,44 @@ const iJ = ds(), nJ = {
|
|
|
45473
45485
|
window.ProcessMaker.apiClient.post(`/process_events/${this.process.id}?event=${r}`).then((a) => {
|
|
45474
45486
|
this.spin = 0;
|
|
45475
45487
|
const i = a.data;
|
|
45476
|
-
this.$cookies.set("fromTriggerStartEvent", !0, "1min"), window.location = `/requests/${i.id}?
|
|
45488
|
+
this.$cookies.set("fromTriggerStartEvent", !0, "1min"), window.location = `/requests/${i.id}?fromTriggerStartEvent=`;
|
|
45477
45489
|
}).catch((a) => {
|
|
45478
45490
|
this.disabled = !1;
|
|
45479
45491
|
const { data: i } = a.response;
|
|
45480
45492
|
i.message && ProcessMaker.alert(i.message, "danger");
|
|
45481
45493
|
});
|
|
45482
45494
|
},
|
|
45483
|
-
showRequestDetails(t) {
|
|
45484
|
-
this.showdetail === !1 ? this.showdetail = !0 : this.showdetail = !1
|
|
45495
|
+
showRequestDetails(t, e) {
|
|
45496
|
+
this.showdetail === !1 ? this.showdetail = !0 : this.showdetail = !1, this.$root.$emit(
|
|
45497
|
+
"bv::toggle::collapse",
|
|
45498
|
+
this.getComputedId(t, e)
|
|
45499
|
+
);
|
|
45485
45500
|
},
|
|
45486
45501
|
getNewRequestLinkHref(t, e) {
|
|
45487
45502
|
const { id: r } = t, a = e.id;
|
|
45488
45503
|
return `/process_events/${r}?event=${a}`;
|
|
45489
45504
|
},
|
|
45490
|
-
getComputedId(t) {
|
|
45491
|
-
return `process-${t.id}`;
|
|
45505
|
+
getComputedId(t, e) {
|
|
45506
|
+
return `process-${t.id}-${e.id}`;
|
|
45492
45507
|
}
|
|
45493
45508
|
}
|
|
45494
45509
|
};
|
|
45495
45510
|
var sJ = function() {
|
|
45496
45511
|
var e = this, r = e._self._c;
|
|
45497
|
-
return r("div",
|
|
45498
|
-
return r("div", { key: a.id, staticClass: "card" }, [r("div", { staticClass: "card-body" }, [r("div", { staticClass: "d-flex justify-content-between" }, [r("div",
|
|
45512
|
+
return r("div", [e._l(e.emptyStartEvents, function(a) {
|
|
45513
|
+
return [r("div", { key: a.id, staticClass: "mb-3 card-request" }, [r("div", { staticClass: "card-body" }, [r("div", { staticClass: "d-flex justify-content-between" }, [r("div", [r("span", { directives: [{ name: "uni-id", rawName: "v-uni-id", value: a.id.toString(), expression: "event.id.toString()" }], staticClass: "card-info card-title" }, [e._v(" " + e._s(e.transformedName) + " ")]), r("span", { staticClass: "card-info" }, [e._v(" " + e._s(a.name) + " ")])]), r("div", { staticClass: "d-flex align-items-center" }, [r("button", { staticClass: "btn btn-ellipsis btn-sm mr-1", attrs: { "aria-expanded": e.ariaExpanded, "aria-controls": e.getComputedId(e.process, a) }, on: { click: function(i) {
|
|
45514
|
+
return e.showRequestDetails(e.process, a);
|
|
45515
|
+
} } }, [r("i", { staticClass: "fas fa-ellipsis-v" })]), r("button", { directives: [{ name: "uni-aria-describedby", rawName: "v-uni-aria-describedby", value: a.id.toString(), expression: "event.id.toString()" }], staticClass: "btn btn-custom btn-sm", attrs: { href: e.getNewRequestLinkHref(e.process, a) }, on: { click: function(i) {
|
|
45499
45516
|
return i.preventDefault(), e.newRequestLink(e.process, a);
|
|
45500
|
-
} } }, [
|
|
45501
|
-
}),
|
|
45517
|
+
} } }, [e._v(" " + e._s(e.$t("Start")) + " "), r("i", { staticClass: "fas fa-play mr-1 card-icon" })])])]), r("b-collapse", { attrs: { id: e.getComputedId(e.process, a), "aria-hidden": e.ariaHidden } }, [r("hr"), r("p", { staticClass: "card-text text-muted card-description" }, [e._v(" " + e._s(e.process.description) + " ")])])], 1)])];
|
|
45518
|
+
})], 2);
|
|
45502
45519
|
}, oJ = [], lJ = /* @__PURE__ */ oe(
|
|
45503
45520
|
nJ,
|
|
45504
45521
|
sJ,
|
|
45505
45522
|
oJ,
|
|
45506
45523
|
!1,
|
|
45507
45524
|
null,
|
|
45508
|
-
"
|
|
45525
|
+
"6935b2c4",
|
|
45509
45526
|
null,
|
|
45510
45527
|
null
|
|
45511
45528
|
);
|
|
@@ -45534,28 +45551,15 @@ const uJ = lJ.exports, cJ = {
|
|
|
45534
45551
|
fetch() {
|
|
45535
45552
|
Vue.nextTick(() => {
|
|
45536
45553
|
window.ProcessMaker.apiClient.get(
|
|
45537
|
-
`start_processes?page=${this.page}&per_page=${this.perPage}&filter=${this.filter}&order_by=category.name,name&order_direction=asc,asc&include=events
|
|
45554
|
+
`start_processes?page=${this.page}&per_page=${this.perPage}&filter=${this.filter}&order_by=category.name,name&order_direction=asc,asc&include=events&without_event_definitions=true`
|
|
45538
45555
|
).then((t) => {
|
|
45539
45556
|
const { data: e } = t;
|
|
45540
|
-
this.processes =
|
|
45541
|
-
const r = {
|
|
45542
|
-
count: "0",
|
|
45543
|
-
showControl: !0,
|
|
45544
|
-
showAvatar: !1,
|
|
45545
|
-
colorTextStart: "color: #57646F",
|
|
45546
|
-
url: ""
|
|
45547
|
-
}, a = [];
|
|
45548
|
-
this.$emit("startControl", { dataControls: r, tasksDropdown: a });
|
|
45557
|
+
this.processes = e.data;
|
|
45549
45558
|
}).catch(() => {
|
|
45550
45559
|
this.error = !0;
|
|
45551
45560
|
});
|
|
45552
45561
|
});
|
|
45553
45562
|
},
|
|
45554
|
-
populate(t) {
|
|
45555
|
-
for (const e of t)
|
|
45556
|
-
for (const r of e.categories)
|
|
45557
|
-
typeof this.processes[r.name] > "u" && (this.processes[r.name] = []), this.processes[r.name].push(e);
|
|
45558
|
-
},
|
|
45559
45563
|
fetchData(t) {
|
|
45560
45564
|
this.filter = t, this.fetch();
|
|
45561
45565
|
}
|
|
@@ -45563,11 +45567,9 @@ const uJ = lJ.exports, cJ = {
|
|
|
45563
45567
|
};
|
|
45564
45568
|
var dJ = function() {
|
|
45565
45569
|
var e = this, r = e._self._c;
|
|
45566
|
-
return r("div", [Object.keys(e.processes).length && !e.loading ? r("div", { staticClass: "process-list" }, e._l(e.processes, function(a, i) {
|
|
45567
|
-
return r("div", { key: `
|
|
45568
|
-
|
|
45569
|
-
})], 2)], 1)], 1);
|
|
45570
|
-
}), 0) : r("div", [r("formEmpty", { attrs: { link: "", title: "No Request to Start", url: "" } })], 1)]);
|
|
45570
|
+
return r("div", [Object.keys(e.processes).length && !e.loading ? r("div", { staticClass: "process-list" }, [r("b-container", { attrs: { fluid: "" } }, e._l(e.processes, function(a, i) {
|
|
45571
|
+
return r("div", { key: `process-${i}` }, [e.hasEmptyStartEvents(a) ? r("ProcessCard", { attrs: { filter: e.filter, process: a } }) : e._e()], 1);
|
|
45572
|
+
}), 0)], 1) : r("div", [r("formEmpty", { attrs: { link: "", title: "No Request to Start", url: "" } })], 1)]);
|
|
45571
45573
|
}, pJ = [], fJ = /* @__PURE__ */ oe(
|
|
45572
45574
|
cJ,
|
|
45573
45575
|
dJ,
|
|
@@ -45683,7 +45685,7 @@ var gJ = function() {
|
|
|
45683
45685
|
vJ,
|
|
45684
45686
|
!1,
|
|
45685
45687
|
null,
|
|
45686
|
-
"
|
|
45688
|
+
"46f3583d",
|
|
45687
45689
|
null,
|
|
45688
45690
|
null
|
|
45689
45691
|
);
|