@processmaker/screen-builder 2.85.3 → 2.85.4
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.
|
@@ -22342,7 +22342,7 @@ const LW = {
|
|
|
22342
22342
|
return t.replace(/\.\d/g, (e) => `[${e.substr(1)}]`);
|
|
22343
22343
|
},
|
|
22344
22344
|
submit(t, e = !1, r = null) {
|
|
22345
|
-
this.$emit("submit", this.value, e, r);
|
|
22345
|
+
r && this.loopContext && (r.loopContext = this.loopContext), this.$emit("submit", this.value, e, r);
|
|
22346
22346
|
},
|
|
22347
22347
|
buildComponent(t) {
|
|
22348
22348
|
window.ProcessMaker && window.ProcessMaker.EventBus && window.ProcessMaker.EventBus.$emit("screen-renderer-build-component", this);
|
|
@@ -50608,7 +50608,9 @@ const zee = Iee.exports, jee = () => new Promise((t) => {
|
|
|
50608
50608
|
beforeLoadTask: { type: Function, default: jee },
|
|
50609
50609
|
initialLoopContext: { type: String, default: "" },
|
|
50610
50610
|
taskPreview: { type: Boolean, default: !1 },
|
|
50611
|
-
loading: { type: Number, default: null }
|
|
50611
|
+
loading: { type: Number, default: null },
|
|
50612
|
+
alwaysAllowEditing: { type: Boolean, default: !1 },
|
|
50613
|
+
disableInterstitial: { type: Boolean, default: !1 }
|
|
50612
50614
|
},
|
|
50613
50615
|
data() {
|
|
50614
50616
|
return {
|
|
@@ -50673,7 +50675,7 @@ const zee = Iee.exports, jee = () => new Promise((t) => {
|
|
|
50673
50675
|
},
|
|
50674
50676
|
task: {
|
|
50675
50677
|
handler() {
|
|
50676
|
-
this.screen || (this.screen = this.task && this.task.interstitial_screen), this.taskId = this.task.id, this.nodeId = this.task.element_id, this.listenForParentChanges(), this.task.process_request.status === "COMPLETED" && (this.taskPreview || this.$emit("completed", this.task.process_request.id)), this.taskPreview && this.task.status === "CLOSED" && (this.task.interstitial_screen._interstitial = !1, this.task.screen.config = this.disableForm(this.task.screen.config), this.screen = this.task.screen);
|
|
50678
|
+
this.screen || (this.screen = this.task && this.task.interstitial_screen), this.taskId = this.task.id, this.nodeId = this.task.element_id, this.listenForParentChanges(), this.task.process_request.status === "COMPLETED" && (this.taskPreview || this.$emit("completed", this.task.process_request.id)), this.taskPreview && this.task.status === "CLOSED" && (this.task.interstitial_screen._interstitial = !1, this.alwaysAllowEditing || (this.task.screen.config = this.disableForm(this.task.screen.config)), this.screen = this.task.screen);
|
|
50677
50679
|
}
|
|
50678
50680
|
},
|
|
50679
50681
|
value: {
|
|
@@ -50799,7 +50801,8 @@ const zee = Iee.exports, jee = () => new Promise((t) => {
|
|
|
50799
50801
|
return "card-header text-capitalize text-white " + e;
|
|
50800
50802
|
},
|
|
50801
50803
|
submit(t = null, e = !1, r = null) {
|
|
50802
|
-
|
|
50804
|
+
var a;
|
|
50805
|
+
this.disabled || (this.disabled = !0, t && this.onUpdate(Object.assign({}, this.requestData, t)), e ? this.loadingButton = !0 : this.loadingButton = !1, this.$emit("submit", this.task, e, r), (a = this.task) != null && a.allow_interstitial && !this.loadingButton && !this.disableInterstitial && (this.task.interstitial_screen._interstitial = !0, this.screen = this.task.interstitial_screen));
|
|
50803
50806
|
},
|
|
50804
50807
|
onUpdate(t) {
|
|
50805
50808
|
this.$emit("input", t), this.disableForSelfService();
|
|
@@ -50815,7 +50818,7 @@ const zee = Iee.exports, jee = () => new Promise((t) => {
|
|
|
50815
50818
|
return e && e.allowed ? this.parentRequest : this.requestId;
|
|
50816
50819
|
},
|
|
50817
50820
|
processUpdated: ae.debounce(function(t) {
|
|
50818
|
-
|
|
50821
|
+
t.event === "ACTIVITY_ACTIVATED" && this.reload(), t.event === "ACTIVITY_EXCEPTION" && this.$emit("error", this.requestId);
|
|
50819
50822
|
}, 300),
|
|
50820
50823
|
initSocketListeners() {
|
|
50821
50824
|
this.addSocketListener(
|
|
@@ -50834,13 +50837,16 @@ const zee = Iee.exports, jee = () => new Promise((t) => {
|
|
|
50834
50837
|
}
|
|
50835
50838
|
), this.taskId || this.reload();
|
|
50836
50839
|
},
|
|
50840
|
+
existsEventMessage(t, e) {
|
|
50841
|
+
return sessionStorage.getItem(t) ? !0 : (sessionStorage.setItem(t, e), !1);
|
|
50842
|
+
},
|
|
50837
50843
|
listenForParentChanges() {
|
|
50838
50844
|
this.parentRequest && this.addSocketListener(
|
|
50839
50845
|
`parent-${this.requestId}`,
|
|
50840
50846
|
`ProcessMaker.Models.ProcessRequest.${this.parentRequest}`,
|
|
50841
50847
|
".ProcessUpdated",
|
|
50842
50848
|
(t) => {
|
|
50843
|
-
["ACTIVITY_ACTIVATED"].includes(t.event) && this.closeTask(this.parentRequest), ["ACTIVITY_COMPLETED"].includes(t.event) && this.task.process_request.status === "COMPLETED" && this.processCompleted(), t.event === "ACTIVITY_EXCEPTION" && this.$emit("error", this.requestId);
|
|
50849
|
+
["ACTIVITY_ACTIVATED"].includes(t.event) && !this.existsEventMessage(`${t.event}-${this.userId}-${this.taskId}`) && this.closeTask(this.parentRequest), ["ACTIVITY_COMPLETED"].includes(t.event) && !this.existsEventMessage(`${t.event}-${this.userId}-${this.taskId}`) && this.task.process_request.status === "COMPLETED" && this.processCompleted(), t.event === "ACTIVITY_EXCEPTION" && this.$emit("error", this.requestId);
|
|
50844
50850
|
}
|
|
50845
50851
|
);
|
|
50846
50852
|
},
|