@processmaker/screen-builder 2.83.11 → 2.83.12-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.
|
@@ -21904,13 +21904,23 @@ const Vo = {
|
|
|
21904
21904
|
return localStorage.getItem("baseURL");
|
|
21905
21905
|
},
|
|
21906
21906
|
// Methods below are used in the components
|
|
21907
|
-
getTasks(t) {
|
|
21907
|
+
async getTasks(t) {
|
|
21908
21908
|
const e = ke(
|
|
21909
21909
|
window,
|
|
21910
21910
|
"PM4ConfigOverrides.getTasksEndpoint",
|
|
21911
21911
|
"/tasks"
|
|
21912
|
-
);
|
|
21913
|
-
|
|
21912
|
+
), r = [], a = t.match(/include=.*,screen,/), i = t.match(/include=.*,nested,/);
|
|
21913
|
+
if (r.push(
|
|
21914
|
+
this.get(e + t.replace(/,screen,|,nested,/g, ","))
|
|
21915
|
+
), a) {
|
|
21916
|
+
const u = `${(e + t).replace(
|
|
21917
|
+
/\?.+$/,
|
|
21918
|
+
""
|
|
21919
|
+
)}/screen?include=screen${i ? ",nested" : ""}`;
|
|
21920
|
+
r.push(this.get(u));
|
|
21921
|
+
}
|
|
21922
|
+
const [n, s] = await Promise.all(r), o = n;
|
|
21923
|
+
return s && (o.data.screen = s.data), o.data.screen && o.data.screen.nested && this.addNestedScreenCache(o.data.screen.nested), o;
|
|
21914
21924
|
},
|
|
21915
21925
|
addNestedScreenCache(t) {
|
|
21916
21926
|
t.forEach((e) => {
|
|
@@ -50312,7 +50322,7 @@ const hee = fee.exports, mee = () => new Promise((t) => {
|
|
|
50312
50322
|
return e && e.allowed ? this.parentRequest : this.requestId;
|
|
50313
50323
|
},
|
|
50314
50324
|
processUpdated: ie.debounce(function(t) {
|
|
50315
|
-
(t.event === "ACTIVITY_COMPLETED" || t.event === "ACTIVITY_ACTIVATED") && this.reload(), t.event === "ACTIVITY_EXCEPTION" && this.$emit("error", this.requestId);
|
|
50325
|
+
(t.event === "ACTIVITY_COMPLETED" || t.event === "ACTIVITY_ACTIVATED") && t.elementType === "task" && this.reload(), t.event === "ACTIVITY_EXCEPTION" && this.$emit("error", this.requestId);
|
|
50316
50326
|
}, 300),
|
|
50317
50327
|
initSocketListeners() {
|
|
50318
50328
|
this.addSocketListener(
|
|
@@ -50331,6 +50341,9 @@ const hee = fee.exports, mee = () => new Promise((t) => {
|
|
|
50331
50341
|
}
|
|
50332
50342
|
), this.taskId || this.reload();
|
|
50333
50343
|
},
|
|
50344
|
+
existsEventMessage(t, e) {
|
|
50345
|
+
return sessionStorage.getItem(t) ? !0 : (sessionStorage.setItem(t, e), !1);
|
|
50346
|
+
},
|
|
50334
50347
|
listenForParentChanges() {
|
|
50335
50348
|
this.parentRequest && this.addSocketListener(
|
|
50336
50349
|
`parent-${this.requestId}`,
|