@processmaker/screen-builder 2.85.7 → 2.85.9
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 +55 -30
- package/dist/vue-form-builder.es.js.map +1 -1
- package/dist/vue-form-builder.umd.js +33 -33
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/TabsBar.vue +8 -0
- package/src/components/renderer/form-input-masked.vue +5 -2
- package/src/components/renderer/form-list-table.vue +80 -27
- package/src/components/screen-renderer.vue +4 -0
- package/src/components/task.vue +5 -0
- package/src/components/vue-form-builder.vue +2 -1
- package/src/components/vue-form-renderer.vue +4 -0
- package/src/currency.json +1 -1
- package/src/mixins/ScreenBase.js +9 -0
|
@@ -17359,6 +17359,14 @@ const ac = {
|
|
|
17359
17359
|
}
|
|
17360
17360
|
},
|
|
17361
17361
|
async submitForm(t, e = !1, r = null) {
|
|
17362
|
+
const a = {
|
|
17363
|
+
name: "after-submit",
|
|
17364
|
+
validation: !0
|
|
17365
|
+
};
|
|
17366
|
+
if (this.$emit("after-submit", a, ...arguments), a.validation === !1) {
|
|
17367
|
+
this.$emit("submit", this.vdata, e, r);
|
|
17368
|
+
return;
|
|
17369
|
+
}
|
|
17362
17370
|
if (await this.validateNow(qv(this)), this.hasSubmitted(!0), !this.valid__ || this.disableSubmit__) {
|
|
17363
17371
|
this.message__ && window.ProcessMaker.alert(this.message__, "danger");
|
|
17364
17372
|
return;
|
|
@@ -26326,7 +26334,8 @@ const JW = {
|
|
|
26326
26334
|
},
|
|
26327
26335
|
methods: {
|
|
26328
26336
|
loadMasks() {
|
|
26329
|
-
|
|
26337
|
+
const t = this.suffix.trim() === "INR" ? "indianns" : "currency";
|
|
26338
|
+
Uy(t, {
|
|
26330
26339
|
digits: this.precision,
|
|
26331
26340
|
prefix: this.prefix,
|
|
26332
26341
|
suffix: this.suffix,
|
|
@@ -43414,7 +43423,7 @@ const rK = /* @__PURE__ */ xr(tK), aK = {
|
|
|
43414
43423
|
{
|
|
43415
43424
|
code: "INR",
|
|
43416
43425
|
name: "Indian Rupee",
|
|
43417
|
-
format: "
|
|
43426
|
+
format: "#,###.##",
|
|
43418
43427
|
symbol: "₹"
|
|
43419
43428
|
},
|
|
43420
43429
|
{
|
|
@@ -44236,12 +44245,15 @@ const mK = {
|
|
|
44236
44245
|
},
|
|
44237
44246
|
setCurrentPage(t) {
|
|
44238
44247
|
this.$refs.component.setCurrentPage(t);
|
|
44248
|
+
},
|
|
44249
|
+
afterSubmit() {
|
|
44250
|
+
this.$emit("after-submit", ...arguments);
|
|
44239
44251
|
}
|
|
44240
44252
|
}
|
|
44241
44253
|
};
|
|
44242
44254
|
var gK = function() {
|
|
44243
44255
|
var e = this, r = e._self._c;
|
|
44244
|
-
return r("b-container", { attrs: { fluid: "" } }, [e.displayAsyncLoading ? r("div", { ref: "watchersAsynchronous", staticClass: "alert alert-light", attrs: { role: "alert" } }, [r("svg", { staticClass: "lds-gear", attrs: { width: "20px", height: "20px", xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", viewBox: "0 0 100 100", preserveAspectRatio: "xMidYMid" } }, [r("g", { attrs: { transform: "translate(50 50)" } }, [r("g", { attrs: { transform: "rotate(248.825)" } }, [r("animateTransform", { attrs: { attributeName: "transform", type: "rotate", values: "0;360", keyTimes: "0;1", dur: "4.7s", repeatCount: "indefinite" } }), r("path", { attrs: { d: "M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20" } })], 1)])]), e._v(" " + e._s(e.$t("Loading...")) + " ")]) : e._e(), r(e.component, { ref: "component", tag: "component", attrs: { vdata: e.value, _parent: e._parent, "_initial-page": e.currentPage }, on: { submit: e.submit, asyncWatcherTriggered: e.onAsyncWatcherOn, asyncWatcherCompleted: e.onAsyncWatcherOff } }), e.showErrors && e.building.error ? r("screen-renderer-error", { model: { value: e.building, callback: function(a) {
|
|
44256
|
+
return r("b-container", { attrs: { fluid: "" } }, [e.displayAsyncLoading ? r("div", { ref: "watchersAsynchronous", staticClass: "alert alert-light", attrs: { role: "alert" } }, [r("svg", { staticClass: "lds-gear", attrs: { width: "20px", height: "20px", xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", viewBox: "0 0 100 100", preserveAspectRatio: "xMidYMid" } }, [r("g", { attrs: { transform: "translate(50 50)" } }, [r("g", { attrs: { transform: "rotate(248.825)" } }, [r("animateTransform", { attrs: { attributeName: "transform", type: "rotate", values: "0;360", keyTimes: "0;1", dur: "4.7s", repeatCount: "indefinite" } }), r("path", { attrs: { d: "M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20" } })], 1)])]), e._v(" " + e._s(e.$t("Loading...")) + " ")]) : e._e(), r(e.component, { ref: "component", tag: "component", attrs: { vdata: e.value, _parent: e._parent, "_initial-page": e.currentPage }, on: { "after-submit": e.afterSubmit, submit: e.submit, asyncWatcherTriggered: e.onAsyncWatcherOn, asyncWatcherCompleted: e.onAsyncWatcherOff } }), e.showErrors && e.building.error ? r("screen-renderer-error", { model: { value: e.building, callback: function(a) {
|
|
44245
44257
|
e.building = a;
|
|
44246
44258
|
}, expression: "building" } }) : e._e(), r("watchers-synchronous", { ref: "watchersSynchronous" })], 1);
|
|
44247
44259
|
}, vK = [], bK = /* @__PURE__ */ oe(
|
|
@@ -44413,6 +44425,9 @@ const yK = {
|
|
|
44413
44425
|
t.registerCustomFunction(e, this.customFunctions[e]);
|
|
44414
44426
|
}), t.$children instanceof Array && t.$children.forEach((e) => this.registerCustomFunctions(e));
|
|
44415
44427
|
},
|
|
44428
|
+
afterSubmit() {
|
|
44429
|
+
this.$emit("after-submit", ...arguments);
|
|
44430
|
+
},
|
|
44416
44431
|
submit(t, e = !1, r = null) {
|
|
44417
44432
|
this.$emit("submit", this.data, e, r);
|
|
44418
44433
|
},
|
|
@@ -44485,14 +44500,14 @@ const yK = {
|
|
|
44485
44500
|
};
|
|
44486
44501
|
var xK = function() {
|
|
44487
44502
|
var e = this, r = e._self._c;
|
|
44488
|
-
return r("div", { ref: "formRendererContainer", class: [e.containerClass, e.containerDeviceClass], style: e.cssDevice, attrs: { id: "vue-form-renderer", "data-cy": "screen-renderer-container" } }, [r("custom-css-output", [e._v(e._s(e.customCssWrapped))]), r("screen-renderer", { ref: "renderer", staticClass: "p-0", attrs: { value: e.data, _parent: e._parent, definition: e.definition, "current-page": e.currentPage, "data-cy": "screen-renderer", "show-errors": e.showErrors, "test-screen-definition": e.testScreenDefinition || !1, "loop-context": e.loopContext }, on: { submit: e.submit } })], 1);
|
|
44503
|
+
return r("div", { ref: "formRendererContainer", class: [e.containerClass, e.containerDeviceClass], style: e.cssDevice, attrs: { id: "vue-form-renderer", "data-cy": "screen-renderer-container" } }, [r("custom-css-output", [e._v(e._s(e.customCssWrapped))]), r("screen-renderer", { ref: "renderer", staticClass: "p-0", attrs: { value: e.data, _parent: e._parent, definition: e.definition, "current-page": e.currentPage, "data-cy": "screen-renderer", "show-errors": e.showErrors, "test-screen-definition": e.testScreenDefinition || !1, "loop-context": e.loopContext }, on: { "after-submit": e.afterSubmit, submit: e.submit } })], 1);
|
|
44489
44504
|
}, SK = [], _K = /* @__PURE__ */ oe(
|
|
44490
44505
|
yK,
|
|
44491
44506
|
xK,
|
|
44492
44507
|
SK,
|
|
44493
44508
|
!1,
|
|
44494
44509
|
null,
|
|
44495
|
-
"
|
|
44510
|
+
"d595a04b",
|
|
44496
44511
|
null,
|
|
44497
44512
|
null
|
|
44498
44513
|
);
|
|
@@ -45686,7 +45701,7 @@ const SJ = {
|
|
|
45686
45701
|
this.pmql = `(fulltext LIKE "%${this.searchCriteria}%")`, t === "tasks" && this.$root.$emit("searchTask", this.pmql), t === "requests" && this.$root.$emit("searchRequest", this.pmql), t === void 0 && this.$root.$emit("dropdownSelectionStart", `${this.searchCriteria}`);
|
|
45687
45702
|
},
|
|
45688
45703
|
clearSearch(t) {
|
|
45689
|
-
this.searchCriteria = "", this.
|
|
45704
|
+
this.searchCriteria = "", this.performSearch(t), this.showInput = !this.showInput;
|
|
45690
45705
|
},
|
|
45691
45706
|
/**
|
|
45692
45707
|
* Set the badge's color of the filter selected
|
|
@@ -45698,29 +45713,29 @@ const SJ = {
|
|
|
45698
45713
|
};
|
|
45699
45714
|
var _J = function() {
|
|
45700
45715
|
var e = this, r = e._self._c;
|
|
45701
|
-
return r("div", { staticClass: "card", style: e.customStyle }, [r("div", { staticClass: "card-header d-flex justify-content-between align-items-center" }, [e.dataControl.showControl ? [r("div", { staticClass: "mb-1 mt-1" }, [e.dataControl.showAvatar ? r("b-avatar", { staticClass: "avatar-text", attrs: { size: "2em", variant: e.dataControl.variant, text: e.dataControl.count } }) : e._e(), r("p", { staticClass: "control-text mb-0", style: e.dataControl.colorText }, [e._v(" " + e._s(e.$t(e.title)) + " ")]), e.dataControl.dropdownShow === "requests" ? [r("b-dropdown", { attrs: { variant: "outline-secondary", "no-caret": "" }, scopedSlots: e._u([{ key: "button-content", fn: function() {
|
|
45716
|
+
return r("div", { staticClass: "card", style: e.customStyle }, [r("div", { staticClass: "card-header d-flex justify-content-between align-items-center" }, [e.dataControl.showControl ? [r("div", { staticClass: "mb-1 mt-1" }, [e.dataControl.showAvatar ? r("b-avatar", { staticClass: "avatar-text", attrs: { size: "2em", variant: e.dataControl.variant, text: e.dataControl.count } }) : e._e(), r("p", { staticClass: "control-text mb-0", style: e.dataControl.colorText }, [e._v(" " + e._s(e.$t(e.title)) + " ")]), e.dataControl.dropdownShow === "requests" ? [r("b-dropdown", { attrs: { variant: "outline-secondary", right: "", "no-caret": "" }, scopedSlots: e._u([{ key: "button-content", fn: function() {
|
|
45702
45717
|
return [r("i", { staticClass: "fas fa-caret-down" })];
|
|
45703
45718
|
}, proxy: !0 }], null, !1, 2500479221) }, [r("b-dropdown-item", { on: { click: function(a) {
|
|
45704
45719
|
return e.handleDropdownSelection("requests_filter", "by_me");
|
|
45705
|
-
} } }, [e._v(" " + e._s(e.$t("As Requester")) + " ")]), r("b-dropdown-item", { on: { click: function(a) {
|
|
45720
|
+
} } }, [r("span", { staticClass: "item-text" }, [e._v(" " + e._s(e.$t("As Requester")) + " ")])]), r("b-dropdown-item", { on: { click: function(a) {
|
|
45706
45721
|
return e.handleDropdownSelection("requests_filter", "as_participant");
|
|
45707
|
-
} } }, [e._v(" " + e._s(e.$t("As Participant")) + " ")])], 1)] : e._e()], 2)] : [r("span", { staticClass: "control-text" }, [e._v(e._s(e.$t(e.title)))])], r("div", { staticClass: "ml-auto d-flex align-items-center" }, [e.dataControl.dropdownShow === "requests" ? [r("div", { staticClass: "mr-4" }, [r("b-dropdown", { attrs: { variant: "outline-secondary", size: "sm" }, scopedSlots: e._u([{ key: "button-content", fn: function() {
|
|
45708
|
-
return [r("span", { staticClass: "text-capitalize" }, [e.showBadge ? r("b-icon", { attrs: { icon: "circle-fill", variant: e.badgeVariant } }) : e._e(), e._v(" " + e._s(e.$t(e.titleDropdown)) + " ")], 1)];
|
|
45709
|
-
}, proxy: !0 }], null, !1,
|
|
45710
|
-
return e.handleDropdownSelection("requests_dropdown", "In Progress");
|
|
45711
|
-
} } }, [r("i", { staticClass: "fas fa-circle mr-2" }), e._v(e._s(e.$t("In Progress")) + " ")]), r("b-dropdown-item", { attrs: { variant: "primary" }, on: { click: function(a) {
|
|
45712
|
-
return e.handleDropdownSelection("requests_dropdown", "Completed");
|
|
45713
|
-
} } }, [r("i", { staticClass: "fas fa-circle mr-2" }), e._v(e._s(e.$t("Completed")) + " ")]), r("b-dropdown-item", { on: { click: function(a) {
|
|
45722
|
+
} } }, [r("span", { staticClass: "item-text" }, [e._v(" " + e._s(e.$t("As Participant")) + " ")])])], 1)] : e._e()], 2)] : [r("span", { staticClass: "control-text" }, [e._v(e._s(e.$t(e.title)))])], r("div", { staticClass: "ml-auto d-flex align-items-center" }, [e.dataControl.dropdownShow === "requests" ? [r("div", { staticClass: "mr-4" }, [r("b-dropdown", { attrs: { variant: "outline-secondary", size: "sm" }, scopedSlots: e._u([{ key: "button-content", fn: function() {
|
|
45723
|
+
return [r("span", { staticClass: "text-capitalize" }, [e.showBadge ? r("b-icon", { staticClass: "mr-2", attrs: { icon: "circle-fill", variant: e.badgeVariant } }) : e._e(), e._v(" " + e._s(e.$t(e.titleDropdown)) + " ")], 1)];
|
|
45724
|
+
}, proxy: !0 }], null, !1, 4198644964) }, [r("b-dropdown-item", { on: { click: function(a) {
|
|
45714
45725
|
return e.handleDropdownSelection("requests_dropdown", "all");
|
|
45715
|
-
} } }, [e._v(" " + e._s(e.$t("View All")) + " ")])]
|
|
45716
|
-
return
|
|
45717
|
-
}
|
|
45718
|
-
return e.handleDropdownSelection("
|
|
45719
|
-
} } }, [r("i", { staticClass: "fas fa-circle mr-2" }), e._v(e._s(e.$t("In Progress")) + " ")]), r("b-dropdown
|
|
45720
|
-
return e.
|
|
45721
|
-
}
|
|
45726
|
+
} } }, [r("span", { staticClass: "item-text" }, [e._v(" " + e._s(e.$t("View All")) + " ")])]), r("b-dropdown-item", { on: { click: function(a) {
|
|
45727
|
+
return e.handleDropdownSelection("requests_dropdown", "Completed");
|
|
45728
|
+
} } }, [r("span", { staticClass: "item-text" }, [r("i", { staticClass: "fas fa-circle mr-2 text-primary" }), e._v(" " + e._s(e.$t("Completed")) + " ")])]), r("b-dropdown-item", { on: { click: function(a) {
|
|
45729
|
+
return e.handleDropdownSelection("requests_dropdown", "In Progress");
|
|
45730
|
+
} } }, [r("span", { staticClass: "item-text" }, [r("i", { staticClass: "fas fa-circle mr-2 text-success" }), e._v(" " + e._s(e.$t("In Progress")) + " ")])])], 1)], 1)] : e._e(), e.dataControl.dropdownShow === "tasks" ? [r("div", { staticClass: "mr-4" }, [r("b-dropdown", { attrs: { variant: "outline-secondary", size: "sm" }, scopedSlots: e._u([{ key: "button-content", fn: function() {
|
|
45731
|
+
return [r("span", { staticClass: "text-capitalize" }, [e.showBadge ? r("b-icon", { staticClass: "mr-2", attrs: { icon: "circle-fill", variant: e.badgeVariant } }) : e._e(), e._v(" " + e._s(e.$t(e.titleDropdown)) + " ")], 1)];
|
|
45732
|
+
}, proxy: !0 }], null, !1, 4198644964) }, [r("b-dropdown-item", { on: { click: function(a) {
|
|
45722
45733
|
return e.handleDropdownSelection("tasks", "all");
|
|
45723
|
-
} } }, [e._v(" " + e._s(e.$t("View All")) + " ")])]
|
|
45734
|
+
} } }, [r("span", { staticClass: "item-text" }, [e._v(" " + e._s(e.$t("View All")) + " ")])]), r("b-dropdown-item", { on: { click: function(a) {
|
|
45735
|
+
return e.handleDropdownSelection("tasks", "Overdue");
|
|
45736
|
+
} } }, [r("span", { staticClass: "item-text" }, [r("i", { staticClass: "fas fa-circle mr-2 text-danger" }), e._v(" " + e._s(e.$t("Overdue")) + " ")])]), r("b-dropdown-item", { on: { click: function(a) {
|
|
45737
|
+
return e.handleDropdownSelection("tasks", "In Progress");
|
|
45738
|
+
} } }, [r("span", { staticClass: "item-text" }, [r("i", { staticClass: "fas fa-circle mr-2 text-warning" }), e._v(" " + e._s(e.$t("In Progress")) + " ")])])], 1)], 1)] : e._e(), r("div", [r("div", { staticClass: "d-flex justify-content-end" }, [r("button", { staticClass: "btn btn-outline-secondary border-0 mr-1", on: { click: function(a) {
|
|
45724
45739
|
return e.toggleInput(e.dataControl.dropdownShow);
|
|
45725
45740
|
} } }, [r("i", { staticClass: "fas fa-search" })]), e.showInput ? r("input", { directives: [{ name: "model", rawName: "v-model", value: e.searchCriteria, expression: "searchCriteria" }], ref: "input", staticClass: "form-control narrow-input", attrs: { type: "text" }, domProps: { value: e.searchCriteria }, on: { keyup: function(a) {
|
|
45726
45741
|
return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.performSearch(e.dataControl.dropdownShow);
|
|
@@ -45735,7 +45750,7 @@ var _J = function() {
|
|
|
45735
45750
|
kJ,
|
|
45736
45751
|
!1,
|
|
45737
45752
|
null,
|
|
45738
|
-
"
|
|
45753
|
+
"fee6eb2f",
|
|
45739
45754
|
null,
|
|
45740
45755
|
null
|
|
45741
45756
|
);
|
|
@@ -48526,6 +48541,13 @@ const UX = WX.exports, av = 200, GX = {
|
|
|
48526
48541
|
buttonIcon: {
|
|
48527
48542
|
type: String,
|
|
48528
48543
|
default: () => "fa fa-file"
|
|
48544
|
+
},
|
|
48545
|
+
/**
|
|
48546
|
+
* Is multi page mode enabled
|
|
48547
|
+
*/
|
|
48548
|
+
isMultiPage: {
|
|
48549
|
+
type: Boolean,
|
|
48550
|
+
default: !0
|
|
48529
48551
|
}
|
|
48530
48552
|
},
|
|
48531
48553
|
data() {
|
|
@@ -48640,9 +48662,9 @@ var HX = function() {
|
|
|
48640
48662
|
}, expression: "activeTab" } }, e._l(e.validLocalOpenedPages, function(a, i) {
|
|
48641
48663
|
return r("b-tab", { key: `tab-${i}`, staticClass: "h-100 w-100", scopedSlots: e._u([{ key: "title", fn: function() {
|
|
48642
48664
|
var n;
|
|
48643
|
-
return [r("b-badge", { staticClass: "mr-1", attrs: { variant: "primary" } }, [e._v(" " + e._s(e.pageNumber(a)) + " ")]), r("span", { attrs: { "data-test": `tab-${i}` } }, [e._v(" " + e._s((n = e.pages[a]) == null ? void 0 : n.name) + " ")]), r("span", { staticClass: "close-tab", attrs: { "data-test": `close-tab-${i}`, role: "link" }, on: { click: function(s) {
|
|
48665
|
+
return [r("b-badge", { staticClass: "mr-1", attrs: { variant: "primary" } }, [e._v(" " + e._s(e.pageNumber(a)) + " ")]), r("span", { attrs: { "data-test": `tab-${i}` } }, [e._v(" " + e._s((n = e.pages[a]) == null ? void 0 : n.name) + " ")]), e.isMultiPage ? r("span", { staticClass: "close-tab", attrs: { "data-test": `close-tab-${i}`, role: "link" }, on: { click: function(s) {
|
|
48644
48666
|
return s.stopPropagation(), e.closeTab(i);
|
|
48645
|
-
} } }, [r("i", { staticClass: "fas fa-times" })])];
|
|
48667
|
+
} } }, [r("i", { staticClass: "fas fa-times" })]) : e._e()];
|
|
48646
48668
|
}, proxy: !0 }, { key: "default", fn: function() {
|
|
48647
48669
|
return [r("div", { staticClass: "h-100 w-100", attrs: { "data-test": "tab-content" } }, [e._t("default", null, { currentPage: a })], 2)];
|
|
48648
48670
|
}, proxy: !0 }], null, !0) });
|
|
@@ -49406,7 +49428,7 @@ var dee = function() {
|
|
|
49406
49428
|
boundaryPadding: 16
|
|
49407
49429
|
}`, modifiers: { hover: !0, right: !0 } }], key: o, staticClass: "gray-text", attrs: { boundary: "viewport", "data-cy": `controls-${s.component}` } }, [s.config && s.config.icon ? r("i", { class: s.config.icon }) : e._e(), r("span", { staticClass: "svg-icon", staticStyle: { width: "12px", height: "12px" }, domProps: { innerHTML: e._s(s.config.svg) } }), e._v(" " + e._s(e.$t(s.label)) + " ")]);
|
|
49408
49430
|
}), 1) : e._e()], 1)], 1)];
|
|
49409
|
-
})], 2)], 1)], 1), r("b-col", { ref: "screen-container", staticClass: "overflow-auto mh-100 p-0 d-flex flex-column position-relative", attrs: { id: "screen-container" } }, [r("tabs-bar", { ref: "tabsBar", attrs: { pages: e.config }, on: { "tab-opened": function(a) {
|
|
49431
|
+
})], 2)], 1)], 1), r("b-col", { ref: "screen-container", staticClass: "overflow-auto mh-100 p-0 d-flex flex-column position-relative", attrs: { id: "screen-container" } }, [r("tabs-bar", { ref: "tabsBar", attrs: { pages: e.config, "is-multi-page": e.showToolbar }, on: { "tab-opened": function(a) {
|
|
49410
49432
|
e.currentPage = a;
|
|
49411
49433
|
} }, scopedSlots: e._u([{ key: "tabs-start", fn: function() {
|
|
49412
49434
|
return [e.showToolbar ? r("pages-dropdown", { attrs: { data: e.sortedPages }, on: { addPage: function(a) {
|
|
@@ -49494,7 +49516,7 @@ var dee = function() {
|
|
|
49494
49516
|
pee,
|
|
49495
49517
|
!1,
|
|
49496
49518
|
null,
|
|
49497
|
-
"
|
|
49519
|
+
"404a695f",
|
|
49498
49520
|
null,
|
|
49499
49521
|
null
|
|
49500
49522
|
);
|
|
@@ -50800,6 +50822,9 @@ const zee = Iee.exports, jee = () => new Promise((t) => {
|
|
|
50800
50822
|
}
|
|
50801
50823
|
return "card-header text-capitalize text-white " + e;
|
|
50802
50824
|
},
|
|
50825
|
+
afterSubmit() {
|
|
50826
|
+
this.$emit("after-submit", ...arguments);
|
|
50827
|
+
},
|
|
50803
50828
|
submit(t = null, e = !1, r = null) {
|
|
50804
50829
|
var a;
|
|
50805
50830
|
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));
|
|
@@ -50887,9 +50912,9 @@ var Nee = function() {
|
|
|
50887
50912
|
var e = this, r = e._self._c;
|
|
50888
50913
|
return r("div", { staticClass: "tab-pane active show h-100", attrs: { id: "tab-form", role: "tabpanel", "aria-labelledby": "tab-form" } }, [e.screen ? [r("b-overlay", { attrs: { show: e.disabled, id: "overlay-background", variant: "white", cardStyles: "pointer-events: none;pointer-events: none;inset: 1px", rounded: "sm" }, scopedSlots: e._u([{ key: "overlay", fn: function() {
|
|
50889
50914
|
return [r("div", { staticClass: "text-center" }, [r("p", [e._v("Please claim this task to continue.")])])];
|
|
50890
|
-
}, proxy: !0 }], null, !1, 2499821482) }, [r("div", { staticClass: "card card-body border-top-0 h-100", class: e.screenTypeClass }, [e.renderComponent === "task-screen" ? r("div", [r("vue-form-renderer", { key: e.refreshScreen, ref: "renderer", attrs: { config: e.screen.config, computed: e.screen.computed, "custom-css": e.screen.custom_css, watchers: e.screen.watchers, "loop-context": e.loopContext }, on: { update: e.onUpdate, submit: e.submit }, model: { value: e.requestData, callback: function(a) {
|
|
50915
|
+
}, proxy: !0 }], null, !1, 2499821482) }, [r("div", { staticClass: "card card-body border-top-0 h-100", class: e.screenTypeClass }, [e.renderComponent === "task-screen" ? r("div", [r("vue-form-renderer", { key: e.refreshScreen, ref: "renderer", attrs: { config: e.screen.config, computed: e.screen.computed, "custom-css": e.screen.custom_css, watchers: e.screen.watchers, "loop-context": e.loopContext }, on: { update: e.onUpdate, "after-submit": e.afterSubmit, submit: e.submit }, model: { value: e.requestData, callback: function(a) {
|
|
50891
50916
|
e.requestData = a;
|
|
50892
|
-
}, expression: "requestData" } })], 1) : r("div", [r(e.renderComponent, { tag: "component", attrs: { "process-id": e.processId, "instance-id": e.requestId, "token-id": e.taskId, screen: e.screen.config, "csrf-token": e.csrfToken, computed: e.screen.computed, "custom-css": e.screen.custom_css, watchers: e.screen.watchers, data: e.requestData, type: e.screen.type }, on: { submit: e.submit } })], 1)]), e.shouldAddSubmitButton ? r("div", { staticClass: "card-footer" }, [r("button", { staticClass: "btn btn-primary", attrs: { type: "button" }, on: { click: function(a) {
|
|
50917
|
+
}, expression: "requestData" } })], 1) : r("div", [r(e.renderComponent, { tag: "component", attrs: { "process-id": e.processId, "instance-id": e.requestId, "token-id": e.taskId, screen: e.screen.config, "csrf-token": e.csrfToken, computed: e.screen.computed, "custom-css": e.screen.custom_css, watchers: e.screen.watchers, data: e.requestData, type: e.screen.type }, on: { "after-submit": e.afterSubmit, submit: e.submit } })], 1)]), e.shouldAddSubmitButton ? r("div", { staticClass: "card-footer" }, [r("button", { staticClass: "btn btn-primary", attrs: { type: "button" }, on: { click: function(a) {
|
|
50893
50918
|
return e.submit(null);
|
|
50894
50919
|
} } }, [e._v(" " + e._s(e.$t("Complete Task")) + " ")])]) : e._e()])] : e._e(), e.showTaskIsCompleted ? [r("div", { staticClass: "card card-body text-center" }, [r("h1", [e._v(" " + e._s(e.$t("Task Completed")) + " "), r("i", { staticClass: "fas fa-clipboard-check" })])])] : e._e()], 2);
|
|
50895
50920
|
}, Ree = [], Fee = /* @__PURE__ */ oe(
|