@processmaker/screen-builder 2.94.0 → 2.95.0

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.
@@ -22104,7 +22104,7 @@ const Xo = {
22104
22104
  */
22105
22105
  getDataSource(t, e, r = null) {
22106
22106
  if (!window.ProcessMaker.screen.cacheEnabled && !window.ProcessMaker.screen.cacheTimeout)
22107
- return this.postDataSource(t, null, e);
22107
+ return this.postDataSource(t, null, e).then((a) => [a, r]);
22108
22108
  let i = `/requests/data_sources/${t}/resources/${e.config.endpoint}/data`;
22109
22109
  return i += this.authQueryString(), this.get(i, {
22110
22110
  useCache: window.ProcessMaker.screen.cacheEnabled,
@@ -22344,7 +22344,7 @@ class _6 extends Zi {
22344
22344
  }
22345
22345
  class $6 extends Zi {
22346
22346
  async addValidations(e) {
22347
- if (this.element.config && this.element.config.readonly || this.element.config && this.element.config.disabled || !(this.element.config && this.element.config.name && typeof this.element.config.name == "string" && this.element.config.name.match(/^[a-zA-Z_][0-9a-zA-Z_.]*$/)))
22347
+ if (!this.isVisible() || this.element.config && this.element.config.readonly || this.element.config && this.element.config.disabled || !(this.element.config && this.element.config.name && typeof this.element.config.name == "string" && this.element.config.name.match(/^[a-zA-Z_][0-9a-zA-Z_.]*$/)))
22348
22348
  return;
22349
22349
  const r = this.element.config.name, i = this.element.config.validation, a = this.element.config.conditionalHide, n = this.parentVisibilityRule, s = this.insideLoop || !1, o = this.element.config.deviceVisibility ? this.element.config.deviceVisibility : { showForDesktop: !0, showForMobile: !0 };
22350
22350
  Gn(e, r, Se(e, r, {}));
@@ -44387,7 +44387,7 @@ const EZ = {
44387
44387
  };
44388
44388
  var jZ = function() {
44389
44389
  var e = this, r = e._self._c;
44390
- 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(i) {
44390
+ 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 || e.value._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(i) {
44391
44391
  e.building = i;
44392
44392
  }, expression: "building" } }) : e._e(), r("watchers-synchronous", { ref: "watchersSynchronous" })], 1);
44393
44393
  }, NZ = [], IZ = /* @__PURE__ */ ne(
@@ -44634,14 +44634,14 @@ const LZ = {
44634
44634
  };
44635
44635
  var FZ = function() {
44636
44636
  var e = this, r = e._self._c;
44637
- 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);
44637
+ 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 || e.data._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);
44638
44638
  }, BZ = [], HZ = /* @__PURE__ */ ne(
44639
44639
  LZ,
44640
44640
  FZ,
44641
44641
  BZ,
44642
44642
  !1,
44643
44643
  null,
44644
- "d595a04b",
44644
+ "b15d5f72",
44645
44645
  null,
44646
44646
  null
44647
44647
  );
@@ -45316,10 +45316,16 @@ var hK = function() {
45316
45316
  null
45317
45317
  );
45318
45318
  const op = vK.exports, gK = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDQuOEwxLjA2NjY3IDAuMzIwMDAzVjBIMFYxMC42NjY3VjE1LjczMzNIMS4wNjY2N1YxMC4yNjY3TDE2IDQuOFoiIGZpbGw9IiM1NTYyNzEiLz4KPC9zdmc+Cg==";
45319
- const bK = ds(), yK = {
45320
- components: { formEmpty: op },
45319
+ const bK = ds(), yK = (t) => {
45320
+ var e;
45321
+ t(
45322
+ ((e = window.SharedComponents) == null ? void 0 : e.Recommendations) || { template: "<span></span>" }
45323
+ );
45324
+ }, xK = {
45325
+ components: { formEmpty: op, Recommendations: yK },
45321
45326
  mixins: [bK, Jg],
45322
45327
  data() {
45328
+ var t, e;
45323
45329
  return {
45324
45330
  countInProgress: "0",
45325
45331
  countOverdue: "0",
@@ -45341,8 +45347,8 @@ const bK = ds(), yK = {
45341
45347
  }
45342
45348
  ],
45343
45349
  advancedFilter: "",
45344
- tasksPreview: window.SharedComponents && window.SharedComponents.TasksHome || {},
45345
- taskTooltip: window.SharedComponents && window.SharedComponents.TaskTooltip || {},
45350
+ tasksPreview: ((t = window.SharedComponents) == null ? void 0 : t.TasksHome) || {},
45351
+ taskTooltip: ((e = window.SharedComponents) == null ? void 0 : e.TaskTooltip) || {},
45346
45352
  rowPosition: {},
45347
45353
  ellipsisShow: !1,
45348
45354
  isTooltipVisible: !1,
@@ -45582,8 +45588,9 @@ const bK = ds(), yK = {
45582
45588
  ".selected-filters-bar"
45583
45589
  ), l = u ? u.offsetHeight : 0;
45584
45590
  a -= l;
45585
- const c = o.right, d = s - i - a + 100;
45586
- this.rowPosition = {
45591
+ const c = o.right;
45592
+ let d = s - i - a + 100;
45593
+ document.getElementsByClassName("recommendation").length > 0 && (d += 60), this.rowPosition = {
45587
45594
  x: c,
45588
45595
  y: d
45589
45596
  };
@@ -45604,9 +45611,9 @@ const bK = ds(), yK = {
45604
45611
  }
45605
45612
  }
45606
45613
  };
45607
- var xK = function() {
45614
+ var wK = function() {
45608
45615
  var e = this, r = e._self._c;
45609
- return e.showTable ? r("div", [r("filter-table", { attrs: { "table-name": "form-tasks", headers: e.tableHeaders, data: e.tableData, unread: e.unreadColumnName, loading: e.shouldShowLoader }, on: { "table-row-mouseover": e.handleRowMouseover, "table-row-mouseleave": e.handleRowMouseleave }, scopedSlots: e._u([e._l(e.tableHeaders, function(i, a) {
45616
+ return e.showTable ? r("div", [r("Recommendations", { attrs: { dashboard: !0 } }), r("filter-table", { attrs: { "table-name": "form-tasks", headers: e.tableHeaders, data: e.tableData, unread: e.unreadColumnName, loading: e.shouldShowLoader }, on: { "table-row-mouseover": e.handleRowMouseover, "table-row-mouseleave": e.handleRowMouseleave }, scopedSlots: e._u([e._l(e.tableHeaders, function(i, a) {
45610
45617
  return { key: i.field, fn: function() {
45611
45618
  return [r("div", { key: a, staticStyle: { display: "inline-block" } }, [i.field === "is_priority" ? r("img", { attrs: { src: gK, alt: "priority-header", width: "20", height: "20" } }) : r("span", [e._v(e._s(e.$t(i.label)))])])];
45612
45619
  }, proxy: !0 };
@@ -45629,20 +45636,20 @@ var xK = function() {
45629
45636
  } } }, [r("i", { staticClass: "fas fa-eye" })])], 1)];
45630
45637
  }, { tooltipRowData: e.tooltipRowData, previewTasks: e.previewTasks })], 2)];
45631
45638
  }, proxy: !0 }], null, !0) }), 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);
45632
- }, wK = [], PK = /* @__PURE__ */ ne(
45633
- yK,
45639
+ }, PK = [], SK = /* @__PURE__ */ ne(
45634
45640
  xK,
45635
45641
  wK,
45642
+ PK,
45636
45643
  !1,
45637
45644
  null,
45638
- "4fc4989a",
45645
+ "3ec60cc0",
45639
45646
  null,
45640
45647
  null
45641
45648
  );
45642
- const Ow = PK.exports;
45643
- const SK = ds(), kK = {
45649
+ const Ow = SK.exports;
45650
+ const kK = ds(), TK = {
45644
45651
  components: { formEmpty: op },
45645
- mixins: [SK, Jg],
45652
+ mixins: [kK, Jg],
45646
45653
  data() {
45647
45654
  return {
45648
45655
  countResponse: "0",
@@ -45729,8 +45736,9 @@ const SK = ds(), kK = {
45729
45736
  */
45730
45737
  formatOpenCase(t, e) {
45731
45738
  const r = t;
45732
- return e === "case_title" && (r[e] = t.case_title_formatted || t.case_title || ""), `<a href="${this.openRequest(t)}" class="text-nowrap"
45733
- target="_blank">${r[e]}</a>`;
45739
+ return e === "case_title" && (r[e] = t.case_title_formatted || t.case_title || ""), `
45740
+ <a href="${this.openRequest(t)}" class="text-nowrap custom-wrap"
45741
+ target="_blank">${r[e]}</a>`;
45734
45742
  },
45735
45743
  openRequest(t) {
45736
45744
  return `/requests/${t.id}`;
@@ -45802,28 +45810,30 @@ const SK = ds(), kK = {
45802
45810
  }
45803
45811
  }
45804
45812
  };
45805
- var TK = function() {
45813
+ var CK = function() {
45806
45814
  var e = this, r = e._self._c;
45807
45815
  return e.showTable ? r("div", [r("filter-table", { attrs: { "table-name": "form-cases", headers: e.tableHeaders, data: e.tableData, unread: e.unreadColumnName, loading: e.shouldShowLoader }, scopedSlots: e._u([e._l(e.data.data, function(i, a) {
45808
45816
  return { key: `row-${a}`, fn: function() {
45809
45817
  return e._l(e.tableHeaders, function(n, s) {
45810
- return r("td", { key: `${a}-${s}` }, [e.containsHTML(e.getNestedPropertyValue(i, n)) ? [r("div", { class: { "pm-table-truncate": n.truncate }, style: { maxWidth: n.width + "px" }, attrs: { id: `element-${a}-${s}` } }, [r("span", { domProps: { innerHTML: e._s(e.sanitize(e.getNestedPropertyValue(i, n))) } })]), n.truncate ? r("b-tooltip", { attrs: { target: `element-${a}-${s}`, "custom-class": "pm-table-tooltip" }, on: { show: e.checkIfTooltipIsNeeded } }, [e._v(" " + e._s(e.sanitizeTooltip(e.getNestedPropertyValue(i, n))) + " ")]) : e._e()] : [e.isComponent(i[n.field]) ? [r(i[n.field].component, e._b({ tag: "component" }, "component", i[n.field].props, !1))] : [r("div", { class: { "pm-table-truncate": n.truncate }, style: { maxWidth: n.width + "px" }, attrs: { id: `element-${a}-${s}` } }, [e._v(" " + e._s(e.getNestedPropertyValue(i, n)) + " "), n.truncate ? r("b-tooltip", { attrs: { target: `element-${a}-${s}`, "custom-class": "pm-table-tooltip" }, on: { show: e.checkIfTooltipIsNeeded } }, [e._v(" " + e._s(e.getNestedPropertyValue(i, n)) + " ")]) : e._e()], 1)]]], 2);
45818
+ return r("td", { key: `${a}-${s}`, class: {
45819
+ "pm-table-filter-applied-tbody": n.sortAsc || n.sortDesc
45820
+ } }, [e.containsHTML(e.getNestedPropertyValue(i, n)) ? [r("div", { class: { "pm-table-truncate": n.truncate }, style: { maxWidth: n.width + "px" }, attrs: { id: `element-${a}-${s}` } }, [r("span", { domProps: { innerHTML: e._s(e.sanitize(e.getNestedPropertyValue(i, n))) } })]), n.truncate ? r("b-tooltip", { attrs: { target: `element-${a}-${s}`, "custom-class": "pm-table-tooltip", placement: "topright", trigger: "hover", boundary: "viewport", delay: { show: 0, hide: 0 } }, on: { show: e.checkIfTooltipIsNeeded } }, [e._v(" " + e._s(e.sanitizeTooltip(e.getNestedPropertyValue(i, n))) + " ")]) : e._e()] : [e.isComponent(i[n.field]) ? [r(i[n.field].component, e._b({ tag: "component" }, "component", i[n.field].props, !1))] : [r("div", { class: { "pm-table-truncate": n.truncate }, style: { maxWidth: n.width + "px" }, attrs: { id: `element-${a}-${s}` } }, [e._v(" " + e._s(e.getNestedPropertyValue(i, n)) + " "), n.truncate ? r("b-tooltip", { attrs: { target: `element-${a}-${s}`, "custom-class": "pm-table-tooltip", placement: "topright", trigger: "hover", boundary: "viewport", delay: { show: 0, hide: 0 } }, on: { show: e.checkIfTooltipIsNeeded } }, [e._v(" " + e._s(e.getNestedPropertyValue(i, n)) + " ")]) : e._e()], 1)]]], 2);
45811
45821
  });
45812
45822
  }, proxy: !0 };
45813
45823
  })], null, !0) })], 1) : r("div", [r("formEmpty", { attrs: { link: "Requests", title: "No Cases to Show", url: e.noDataUrl } })], 1);
45814
- }, CK = [], MK = /* @__PURE__ */ ne(
45815
- kK,
45824
+ }, MK = [], DK = /* @__PURE__ */ ne(
45816
45825
  TK,
45817
45826
  CK,
45827
+ MK,
45818
45828
  !1,
45819
45829
  null,
45820
- "9ebe7f58",
45830
+ "7880db17",
45821
45831
  null,
45822
45832
  null
45823
45833
  );
45824
- const Ew = MK.exports;
45825
- const DK = ds(), AK = {
45826
- mixins: [DK],
45834
+ const Ew = DK.exports;
45835
+ const AK = ds(), zK = {
45836
+ mixins: [AK],
45827
45837
  props: ["name", "description", "filter", "id", "process", "event"],
45828
45838
  data() {
45829
45839
  return {
@@ -45893,25 +45903,25 @@ const DK = ds(), AK = {
45893
45903
  }
45894
45904
  }
45895
45905
  };
45896
- var zK = function() {
45906
+ var OK = function() {
45897
45907
  var e = this, r = e._self._c;
45898
45908
  return r("div", [r("div", { 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: e.event.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(e.event.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, e.event) }, on: { click: function(i) {
45899
45909
  return e.showRequestDetails(e.process, e.event);
45900
45910
  } } }, [r("i", { staticClass: "fas fa-ellipsis-v" })]), r("button", { directives: [{ name: "uni-aria-describedby", rawName: "v-uni-aria-describedby", value: e.event.id.toString(), expression: "event.id.toString()" }], staticClass: "btn btn-custom btn-sm", attrs: { href: e.getNewRequestLinkHref(e.process, e.event) }, on: { click: function(i) {
45901
45911
  return i.preventDefault(), e.newRequestLink(e.process, e.event);
45902
45912
  } } }, [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, e.event), "aria-hidden": e.ariaHidden } }, [r("hr"), r("p", { staticClass: "card-text text-muted card-description" }, [e._v(" " + e._s(e.process.description) + " ")])])], 1)])]);
45903
- }, OK = [], EK = /* @__PURE__ */ ne(
45904
- AK,
45913
+ }, EK = [], jK = /* @__PURE__ */ ne(
45905
45914
  zK,
45906
45915
  OK,
45916
+ EK,
45907
45917
  !1,
45908
45918
  null,
45909
45919
  "07b0aa45",
45910
45920
  null,
45911
45921
  null
45912
45922
  );
45913
- const jK = EK.exports, NK = {
45914
- components: { ProcessCard: jK, formEmpty: op },
45923
+ const NK = jK.exports, IK = {
45924
+ components: { ProcessCard: NK, formEmpty: op },
45915
45925
  data() {
45916
45926
  return {
45917
45927
  filter: "",
@@ -45954,29 +45964,26 @@ const jK = EK.exports, NK = {
45954
45964
  }
45955
45965
  }
45956
45966
  };
45957
- var IK = function() {
45967
+ var LK = function() {
45958
45968
  var e = this, r = e._self._c;
45959
45969
  return r("div", [Object.keys(e.processes).length && !e.loading ? r("div", { staticClass: "process-list p-4" }, [r("div", { staticClass: "row" }, [e._l(e.processes, function(i, a) {
45960
45970
  return e._l(e.emptyStartEvents(i), function(n, s) {
45961
45971
  return r("div", { key: `process-${a}-${s}`, staticClass: "col-sm-6" }, [r("ProcessCard", { attrs: { filter: e.filter, process: i, event: n } })], 1);
45962
45972
  });
45963
45973
  })], 2)]) : r("div", [r("formEmpty", { attrs: { link: "", title: "No Case to Start", url: "" } })], 1)]);
45964
- }, LK = [], FK = /* @__PURE__ */ ne(
45965
- NK,
45974
+ }, FK = [], BK = /* @__PURE__ */ ne(
45966
45975
  IK,
45967
45976
  LK,
45977
+ FK,
45968
45978
  !1,
45969
45979
  null,
45970
45980
  null,
45971
45981
  null,
45972
45982
  null
45973
45983
  );
45974
- const BK = FK.exports;
45975
- const HK = (t) => {
45976
- var e;
45977
- t(((e = window.SharedComponents) == null ? void 0 : e.Recommendations) || { template: "<span></span>" });
45978
- }, RK = {
45979
- components: { FormTasks: Ow, FormRequests: Ew, FormNewRequest: BK, Recommendations: HK },
45984
+ const HK = BK.exports;
45985
+ const RK = {
45986
+ components: { FormTasks: Ow, FormRequests: Ew, FormNewRequest: HK },
45980
45987
  mixins: [],
45981
45988
  props: ["listOption"],
45982
45989
  data() {
@@ -46001,11 +46008,7 @@ const HK = (t) => {
46001
46008
  "Overdue",
46002
46009
  "View All"
46003
46010
  ],
46004
- requestFilterDropdown: [
46005
- "View All",
46006
- "Completed",
46007
- "In Progress"
46008
- ]
46011
+ requestFilterDropdown: ["View All", "Completed", "In Progress"]
46009
46012
  };
46010
46013
  },
46011
46014
  watch: {
@@ -46090,14 +46093,14 @@ var VK = function() {
46090
46093
  i.target.composing || (e.searchCriteria = i.target.value);
46091
46094
  } } }) : e._e(), e.showInput ? r("button", { staticClass: "btn btn-clear", on: { click: function(i) {
46092
46095
  return e.clearSearch(e.dataControl.dropdownShow);
46093
- } } }, [r("i", { staticClass: "fas fa-times" })]) : e._e()])])], 2), e.listOption !== "Start New Request" ? r("div", [r("b-link", { on: { click: e.openExternalLink } }, [r("i", { staticClass: "fas fa-external-link-alt custom-icon" })])], 1) : e._e()], 2), r("div", { staticClass: "card-body list-table" }, [e.listOption === "My Tasks" ? [r("Recommendations", { attrs: { dashboard: !0 } }), r("FormTasks", { on: { tasksCount: e.getData } })] : e._e(), e.verifyListCase() ? [r("FormRequests", { on: { requestsCount: e.getData } })] : e._e(), e.verifyNewCase() ? [r("FormNewRequest", { on: { startControl: e.getData } })] : e._e()], 2)]);
46096
+ } } }, [r("i", { staticClass: "fas fa-times" })]) : e._e()])])], 2), e.listOption !== "Start New Request" ? r("div", [r("b-link", { on: { click: e.openExternalLink } }, [r("i", { staticClass: "fas fa-external-link-alt custom-icon" })])], 1) : e._e()], 2), r("div", { staticClass: "card-body list-table" }, [e.listOption === "My Tasks" ? [r("FormTasks", { on: { tasksCount: e.getData } })] : e._e(), e.verifyListCase() ? [r("FormRequests", { on: { requestsCount: e.getData } })] : e._e(), e.verifyNewCase() ? [r("FormNewRequest", { on: { startControl: e.getData } })] : e._e()], 2)]);
46094
46097
  }, qK = [], WK = /* @__PURE__ */ ne(
46095
46098
  RK,
46096
46099
  VK,
46097
46100
  qK,
46098
46101
  !1,
46099
46102
  null,
46100
- "830c77e3",
46103
+ "d2551af0",
46101
46104
  null,
46102
46105
  null
46103
46106
  );
@@ -49457,7 +49460,11 @@ const zee = [
49457
49460
  return this.config.length > 1;
49458
49461
  },
49459
49462
  filteredControls() {
49460
- return this.controls.filter((e) => e.label.toLowerCase().includes(this.filterQuery.toLowerCase()));
49463
+ let t = this.filterQuery.toLowerCase();
49464
+ return this.controls.filter((r) => {
49465
+ let i = r.label.toLowerCase().includes(t);
49466
+ return r.group.toLowerCase().includes(t) && (i = !0), i;
49467
+ });
49461
49468
  },
49462
49469
  filteredControlsGrouped() {
49463
49470
  const t = this.filteredControls.reduce((e, r) => {
@@ -49998,7 +50005,7 @@ var Nee = function() {
49998
50005
  Iee,
49999
50006
  !1,
50000
50007
  null,
50001
- "587b635e",
50008
+ "8f39aad2",
50002
50009
  null,
50003
50010
  null
50004
50011
  );
@@ -51177,7 +51184,8 @@ const nte = () => new Promise((t) => {
51177
51184
  redirecting: null,
51178
51185
  loadingButton: !1,
51179
51186
  loadingTask: !1,
51180
- loadingListeners: this.waitLoadingListeners
51187
+ loadingListeners: this.waitLoadingListeners,
51188
+ isSelfService: !1
51181
51189
  };
51182
51190
  },
51183
51191
  watch: {
@@ -51295,9 +51303,9 @@ const nte = () => new Promise((t) => {
51295
51303
  checkTaskStatus() {
51296
51304
  this.task.status == "COMPLETED" || this.task.status == "CLOSED" || this.task.status == "TRIGGERED" ? this.closeTask() : this.screen = this.task.screen, this.prepareTask();
51297
51305
  },
51298
- disableForSelfService() {
51306
+ setSelfService() {
51299
51307
  this.$nextTick(() => {
51300
- window.ProcessMaker.isSelfService ? this.disabled = !0 : this.disabled = !1;
51308
+ window.ProcessMaker.isSelfService ? this.isSelfService = !0 : this.isSelfService = !1;
51301
51309
  });
51302
51310
  },
51303
51311
  /**
@@ -51355,7 +51363,7 @@ const nte = () => new Promise((t) => {
51355
51363
  return console.error("Error in getDestinationUrl:", a), null;
51356
51364
  }
51357
51365
  const r = t.value;
51358
- return r || sessionStorage.getItem("elementDestinationURL") || null;
51366
+ return r ? (sessionStorage.setItem("sessionUrlActionBlocker", document.referrer), r) : sessionStorage.getItem("elementDestinationURL") || null;
51359
51367
  },
51360
51368
  loadNextAssignedTask(t = null) {
51361
51369
  if (t || (t = this.requestId), !this.userId)
@@ -51371,7 +51379,7 @@ const nte = () => new Promise((t) => {
51371
51379
  return;
51372
51380
  } else
51373
51381
  this.emitIfTaskCompleted(t);
51374
- this.taskId = a.id, this.loadTask(), this.nodeId = a.element_id;
51382
+ this.taskId = a.id, this.nodeId = a.element_id, this.loadTask();
51375
51383
  } else
51376
51384
  this.parentRequest && ["COMPLETED", "CLOSED"].includes(this.task.process_request.status) ? this.$emit("completed", this.getAllowedRequestId()) : this.taskPreview || this.emitClosedEvent();
51377
51385
  });
@@ -51396,10 +51404,10 @@ const nte = () => new Promise((t) => {
51396
51404
  },
51397
51405
  submit(t = null, e = !1, r = null) {
51398
51406
  var i;
51399
- 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), (i = this.task) != null && i.allow_interstitial && !this.loadingButton && !this.disableInterstitial && (this.task.interstitial_screen._interstitial = !0, this.screen = this.task.interstitial_screen));
51407
+ 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), (i = this.task) != null && i.allow_interstitial && !this.loadingButton && !this.disableInterstitial && (this.task.interstitial_screen._interstitial = !0, this.screen = this.task.interstitial_screen), this.task.bpmn_tag_name === "manualTask" && (this.checkTaskStatus(), this.reload()));
51400
51408
  },
51401
51409
  onUpdate(t) {
51402
- this.$emit("input", t), this.disableForSelfService();
51410
+ this.$emit("input", t), this.setSelfService();
51403
51411
  },
51404
51412
  activityAssigned() {
51405
51413
  },
@@ -51505,8 +51513,8 @@ const nte = () => new Promise((t) => {
51505
51513
  return e && e.allowed ? this.parentRequest : this.requestId;
51506
51514
  },
51507
51515
  processUpdated: ie.debounce(function(t) {
51508
- var e;
51509
- t.event === "ACTIVITY_ACTIVATED" && t.elementType === "task" && ((e = this.task.elementDestination) != null && e.type || (this.taskId = t.taskId), this.reload()), t.event === "ACTIVITY_EXCEPTION" && this.$emit("error", this.requestId);
51516
+ var e, r;
51517
+ ["ACTIVITY_ACTIVATED", "ACTIVITY_COMPLETED"].includes(t.event) && t.elementType === "task" && ((r = (e = this.task) == null ? void 0 : e.elementDestination) != null && r.type || (this.taskId = t.taskId), this.reload()), t.event === "ACTIVITY_EXCEPTION" && this.$emit("error", this.requestId);
51510
51518
  }, 100),
51511
51519
  initSocketListeners() {
51512
51520
  this.loadingListeners = !1, this.addSocketListener(
@@ -51562,10 +51570,25 @@ const nte = () => new Promise((t) => {
51562
51570
  setMetaValue() {
51563
51571
  const t = document.head.querySelector('meta[name="request-id"]');
51564
51572
  t && t.setAttribute("content", this.requestId);
51573
+ },
51574
+ /**
51575
+ * Checks for the presence of a URL action blocker in sessionStorage and handles it.
51576
+ *
51577
+ * This method retrieves the 'sessionUrlActionBlocker' value from sessionStorage,
51578
+ * and if present, removes it and emits a 'closed' event with the task id and
51579
+ * the source of the redirection. It returns false if the blocker was handled,
51580
+ * and true otherwise.
51581
+ *
51582
+ * @returns {boolean} Returns false if the 'sessionUrlActionBlocker' was found and handled, true otherwise.
51583
+ */
51584
+ hasUrlActionBlocker() {
51585
+ var e;
51586
+ const t = sessionStorage.getItem("sessionUrlActionBlocker");
51587
+ return t ? (sessionStorage.removeItem("sessionUrlActionBlocker"), this.$emit("closed", (e = this.task) == null ? void 0 : e.id, t), !0) : !1;
51565
51588
  }
51566
51589
  },
51567
51590
  mounted() {
51568
- this.screenId = this.initialScreenId, this.taskId = this.initialTaskId, this.requestId = this.initialRequestId, this.processId = this.initialProcessId, this.nodeId = this.initialNodeId, this.requestData = this.value, this.loopContext = this.initialLoopContext, this.loadTask();
51591
+ this.screenId = this.initialScreenId, this.taskId = this.initialTaskId, this.requestId = this.initialRequestId, this.processId = this.initialProcessId, this.nodeId = this.initialNodeId, this.requestData = this.value, this.loopContext = this.initialLoopContext, this.hasUrlActionBlocker() || this.loadTask();
51569
51592
  },
51570
51593
  destroyed() {
51571
51594
  this.unsubscribeSocketListeners();
@@ -51573,9 +51596,9 @@ const nte = () => new Promise((t) => {
51573
51596
  };
51574
51597
  var ote = function() {
51575
51598
  var e = this, r = e._self._c;
51576
- 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() {
51577
- return [r("div", { staticClass: "text-center" }, [r("p", [e._v("Please claim this task to continue.")])])];
51578
- }, 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", class: { loading: e.loadingTask || e.loadingListeners }, 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(i) {
51599
+ 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 || e.isSelfService, id: "overlay-background", variant: e.isSelfService ? "white" : "transparent", blur: null, cardStyles: "pointer-events: none;pointer-events: none;inset: 1px", rounded: "sm" }, scopedSlots: e._u([{ key: "overlay", fn: function() {
51600
+ return [r("div", { staticClass: "text-center" }, [e.isSelfService ? r("p", [e._v("Please claim this task to continue.")]) : e._e()])];
51601
+ }, proxy: !0 }], null, !1, 2076353390) }, [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", class: { loading: e.loadingTask || e.loadingListeners }, 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(i) {
51579
51602
  e.requestData = i;
51580
51603
  }, 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(i) {
51581
51604
  return e.submit(null);
@@ -51586,7 +51609,7 @@ var ote = function() {
51586
51609
  lte,
51587
51610
  !1,
51588
51611
  null,
51589
- "6a0b4e08",
51612
+ "85e026cd",
51590
51613
  null,
51591
51614
  null
51592
51615
  );