@processmaker/screen-builder 3.0.3 → 3.0.5
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 +69 -48
- package/dist/vue-form-builder.es.js.map +1 -1
- package/dist/vue-form-builder.umd.js +38 -38
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/package.json +3 -3
- package/src/App.vue +2 -0
- package/src/components/editor/loop.vue +20 -5
- package/src/components/editor/multi-column.vue +7 -3
- package/src/components/inspector/collection-records-list.vue +12 -7
- package/src/components/renderer/form-collection-record-control.vue +11 -7
- package/src/components/renderer/form-list-table.vue +2 -2
- package/src/components/renderer/form-new-request.vue +1 -1
- package/src/components/renderer/form-record-list.vue +16 -14
- package/src/components/renderer/form-requests.vue +1 -1
- package/src/components/vue-form-builder.vue +7 -4
- package/src/form-builder-controls.js +9 -0
- package/src/mixins/Clipboard.js +39 -16
|
@@ -7723,13 +7723,18 @@ const Z0 = "Clipboard", Zd = {
|
|
|
7723
7723
|
if (!t || !(t instanceof Array))
|
|
7724
7724
|
throw new Error("Expected a screen configuration array");
|
|
7725
7725
|
const e = (r) => {
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7726
|
+
const i = (a) => {
|
|
7727
|
+
a.forEach((n, s) => {
|
|
7728
|
+
if (Array.isArray(n))
|
|
7729
|
+
return i(n);
|
|
7730
|
+
if (n.component === Z0) {
|
|
7731
|
+
const o = ie.cloneDeep(this.$store.getters["clipboardModule/clipboardItems"]);
|
|
7732
|
+
o.forEach(this.updateUuids), a.splice(s, 1, ...o), o.length > 0 && window.ProcessMaker.alert(this.$t("Clipboard Pasted Successfully"), "success");
|
|
7733
|
+
}
|
|
7734
|
+
n.items && i(n.items);
|
|
7735
|
+
});
|
|
7736
|
+
};
|
|
7737
|
+
r && Array.isArray(r.items) ? i(r.items) : console.warn("Invalid page structure or no items to process.");
|
|
7733
7738
|
};
|
|
7734
7739
|
t.forEach((r) => e(r));
|
|
7735
7740
|
},
|
|
@@ -45481,17 +45486,17 @@ const CK = {
|
|
|
45481
45486
|
},
|
|
45482
45487
|
// The fields used for our vue table
|
|
45483
45488
|
tableFields() {
|
|
45484
|
-
var e, r;
|
|
45489
|
+
var e, r, i;
|
|
45485
45490
|
const t = this.getTableFieldsFromDataSource();
|
|
45486
|
-
return this.editable && !this.selfReferenced && t.push(CK), ["single-field", "single-record"].includes((
|
|
45491
|
+
return this.editable && !this.selfReferenced && t.push(CK), ((e = this.source) == null ? void 0 : e.sourceOptions) === "Collection" && (["single-field", "single-record"].includes((r = this.source) == null ? void 0 : r.dataSelectionOptions) && t.unshift({
|
|
45487
45492
|
key: "radio",
|
|
45488
45493
|
label: "",
|
|
45489
45494
|
sortable: !1
|
|
45490
|
-
}), ((
|
|
45495
|
+
}), ((i = this.source) == null ? void 0 : i.dataSelectionOptions) === "multiple-records" && t.unshift({
|
|
45491
45496
|
key: "checkbox",
|
|
45492
45497
|
label: "",
|
|
45493
45498
|
sortable: !1
|
|
45494
|
-
}), t;
|
|
45499
|
+
})), t;
|
|
45495
45500
|
},
|
|
45496
45501
|
// Determines if the form used for add/edit is self referencing. If so, we should not show it
|
|
45497
45502
|
selfReferenced() {
|
|
@@ -46420,14 +46425,14 @@ var r_ = function() {
|
|
|
46420
46425
|
} }, [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);
|
|
46421
46426
|
});
|
|
46422
46427
|
}, proxy: !0 };
|
|
46423
|
-
})], null, !0) })], 1) : r("div", [r("formEmpty", { attrs: { link: "Requests", title: "No Cases to Show", url: e.noDataUrl } })], 1);
|
|
46428
|
+
})], null, !0) })], 1) : r("div", [r("formEmpty", { attrs: { link: "Requests", title: e.$t("No Cases to Show"), url: e.noDataUrl } })], 1);
|
|
46424
46429
|
}, i_ = [], a_ = /* @__PURE__ */ ee(
|
|
46425
46430
|
t_,
|
|
46426
46431
|
r_,
|
|
46427
46432
|
i_,
|
|
46428
46433
|
!1,
|
|
46429
46434
|
null,
|
|
46430
|
-
"
|
|
46435
|
+
"2a7e0d76",
|
|
46431
46436
|
null,
|
|
46432
46437
|
null
|
|
46433
46438
|
);
|
|
@@ -46570,7 +46575,7 @@ var f_ = function() {
|
|
|
46570
46575
|
return e._l(e.emptyStartEvents(i), function(n, s) {
|
|
46571
46576
|
return r("div", { key: `process-${a}-${s}`, staticClass: "col-sm-6" }, [r("ProcessCard", { attrs: { filter: e.filter, process: i, event: n } })], 1);
|
|
46572
46577
|
});
|
|
46573
|
-
})], 2)]) : r("div", [r("formEmpty", { attrs: { link: "", title: "No Case to Start", url: "" } })], 1)]);
|
|
46578
|
+
})], 2)]) : r("div", [r("formEmpty", { attrs: { link: "", title: e.$t("No Case to Start"), url: "" } })], 1)]);
|
|
46574
46579
|
}, p_ = [], h_ = /* @__PURE__ */ ee(
|
|
46575
46580
|
d_,
|
|
46576
46581
|
f_,
|
|
@@ -46613,11 +46618,11 @@ const v_ = {
|
|
|
46613
46618
|
},
|
|
46614
46619
|
watch: {
|
|
46615
46620
|
listOption() {
|
|
46616
|
-
this.title = this.checkTitle(this.listOption), this.dataControl = {};
|
|
46621
|
+
this.title = this.$t(this.checkTitle(this.listOption)), this.dataControl = {};
|
|
46617
46622
|
}
|
|
46618
46623
|
},
|
|
46619
46624
|
mounted() {
|
|
46620
|
-
this.title = this.checkTitle(this.listOption);
|
|
46625
|
+
this.title = this.$t(this.checkTitle(this.listOption));
|
|
46621
46626
|
},
|
|
46622
46627
|
methods: {
|
|
46623
46628
|
/**
|
|
@@ -46700,7 +46705,7 @@ var g_ = function() {
|
|
|
46700
46705
|
b_,
|
|
46701
46706
|
!1,
|
|
46702
46707
|
null,
|
|
46703
|
-
"
|
|
46708
|
+
"c896b8d7",
|
|
46704
46709
|
null,
|
|
46705
46710
|
null
|
|
46706
46711
|
);
|
|
@@ -46949,9 +46954,9 @@ const Nu = L_.exports, yg = [
|
|
|
46949
46954
|
};
|
|
46950
46955
|
var B_ = function() {
|
|
46951
46956
|
var e = this, r = e._self._c;
|
|
46952
|
-
return r("div", [r("div", [r("label", { attrs: { for: "collection" } }, [e._v(e._s(e.$t("Collection")))]), r("b-form-select", { attrs: { id: "collection", options: e.collections, "data-cy": "inspector-collection" }, model: { value: e.collectionId, callback: function(i) {
|
|
46957
|
+
return r("div", [r("div", [r("label", { attrs: { for: "collection" } }, [e._v(e._s(e.$t("Collection Name")))]), r("b-form-group", [r("b-form-select", { attrs: { id: "collection", options: e.collections, "data-cy": "inspector-collection" }, model: { value: e.collectionId, callback: function(i) {
|
|
46953
46958
|
e.collectionId = i;
|
|
46954
|
-
}, expression: "collectionId" } })], 1), e.collectionId > 0 ? r("div", { staticClass: "screen-link mt-2" }, [r("a", { attrs: { href: `/designer/screen-builder/${e.screenMode === "display" ? e.idCollectionScreenView : e.idCollectionScreenEdit}/edit`, target: "_blank" } }, [e._v(" " + e._s(e.$t(e.screenMode === "display" ? "Open View Screen" : "Open Edit Screen")) + " "), r("i", { staticClass: "ml-1 fas fa-external-link-alt" })])]) : e._e()]);
|
|
46959
|
+
}, expression: "collectionId" } }), r("b-form-text", { staticClass: "mt-2" }, [e._v(" " + e._s(e.$t("Collection Record Control is not available for Anonymous Web Entry")) + " ")])], 1)], 1), e.collectionId > 0 ? r("div", { staticClass: "screen-link mt-2" }, [r("a", { attrs: { href: `/designer/screen-builder/${e.screenMode === "display" ? e.idCollectionScreenView : e.idCollectionScreenEdit}/edit`, target: "_blank" } }, [e._v(" " + e._s(e.$t(e.screenMode === "display" ? "Open View Screen" : "Open Edit Screen")) + " "), r("i", { staticClass: "ml-1 fas fa-external-link-alt" })])]) : e._e()]);
|
|
46955
46960
|
}, R_ = [], H_ = /* @__PURE__ */ ee(
|
|
46956
46961
|
F_,
|
|
46957
46962
|
B_,
|
|
@@ -47002,7 +47007,8 @@ const V_ = typeof window > "u" ? global : window, Jc = [
|
|
|
47002
47007
|
screenType: "",
|
|
47003
47008
|
hasMustache: !1,
|
|
47004
47009
|
flagDraft: {},
|
|
47005
|
-
taskDraft: {}
|
|
47010
|
+
taskDraft: {},
|
|
47011
|
+
enableDraft: !0
|
|
47006
47012
|
};
|
|
47007
47013
|
},
|
|
47008
47014
|
computed: {
|
|
@@ -47050,9 +47056,9 @@ const V_ = typeof window > "u" ? global : window, Jc = [
|
|
|
47050
47056
|
var o, u;
|
|
47051
47057
|
this.placeholder = "";
|
|
47052
47058
|
const a = i.data, n = i.collection.read_screen_id, s = i.collection.update_screen_id;
|
|
47053
|
-
this.screenCollectionId = this.selDisplayMode === "View" ? n : s, this.loadScreen(this.screenCollectionId), ((u = (o = this.taskDraft) == null ? void 0 : o.draft) == null ? void 0 : u.data) == null || this.taskDraft.draft.data === "" ? this.localData = a : this.localData = ie.merge({}, a, this.taskDraft.draft.data);
|
|
47059
|
+
this.screenCollectionId = typeof this.selDisplayMode == "function" ? this.collectionmode.modeId === "View" ? n : s : this.selDisplayMode === "View" ? n : s, this.loadScreen(this.screenCollectionId), ((u = (o = this.taskDraft) == null ? void 0 : o.draft) == null ? void 0 : u.data) == null || this.taskDraft.draft.data === "" || !this.enableDraft ? this.localData = a : this.localData = ie.merge({}, a, this.taskDraft.draft.data);
|
|
47054
47060
|
}).catch(() => {
|
|
47055
|
-
this.localData = {}, V_.ProcessMaker.alert(this.$t("This content does not exist. We could not locate indicated data"), "danger");
|
|
47061
|
+
this.localData = {}, V_.ProcessMaker.alert(this.$t("This content does not exist. We could not locate indicated data"), "danger"), this.placeholder = "Select a collection";
|
|
47056
47062
|
});
|
|
47057
47063
|
},
|
|
47058
47064
|
isMustache(t) {
|
|
@@ -47069,7 +47075,7 @@ const V_ = typeof window > "u" ? global : window, Jc = [
|
|
|
47069
47075
|
t && (this.selCollectionId = t.collectionId);
|
|
47070
47076
|
},
|
|
47071
47077
|
record(t) {
|
|
47072
|
-
this.hasMustache = !1, t && !isNaN(t) && t > 0 && this.collection.collectionId ? (this.selRecordId = t, this.loadRecordCollection(this.collection.collectionId, t, this.selDisplayMode)) : (this.isMustache(t) && this.callbackRecord(), this.localData = {});
|
|
47078
|
+
this.hasMustache = !1, this.enableDraft = !1, t && !isNaN(t) && t > 0 && this.collection.collectionId ? (this.selRecordId = t, this.loadRecordCollection(this.collection.collectionId, t, this.selDisplayMode)) : (this.isMustache(t) && this.callbackRecord(), this.localData = {});
|
|
47073
47079
|
},
|
|
47074
47080
|
collectionmode(t) {
|
|
47075
47081
|
t && (this.selDisplayMode = t.modeId), this.loadRecordCollection(this.selCollectionId, this.selRecordId, this.selDisplayMode);
|
|
@@ -51906,30 +51912,30 @@ var yre = function() {
|
|
|
51906
51912
|
return e.inspect(a);
|
|
51907
51913
|
} } }, [a.container ? r("div", { staticClass: "card container-lement", class: { "ai-section-card": e.isAiSection(a) }, attrs: { "data-cy": "screen-element-container" }, on: { click: function(s) {
|
|
51908
51914
|
return e.inspect(a);
|
|
51909
|
-
} } }, [e.selected === a ? r("div", { staticClass: "card-header form-element-header d-flex align-items-center", class: { pulse: e.isAiSection(a) && e.aiPreview(a) } }, [r("i", { staticClass: "fas fa-arrows-alt-v mr-1 text-muted" }), a.config.icon ? r("i", { staticClass: "mr-2 ml-1", class: a.config.icon }) : e._e(), e._v(" " + e._s(a.config.name || a.label || e.$t("Field Name")) + " "), !e.isClipboardPage(i) && e.isInClipboard(e.extendedPages[i].items[n]) ? r("b-badge", { staticClass: "m-2 custom-badge", attrs: { "data-cy": "copied-badge", pill: "" } }, [r("i", { staticClass: "far fa-check-circle" }), r("span", { staticClass: "pl-2" }, [e._v(e._s(e.$t("Copied")))])]) : e._e(), r("div", { staticClass: "ml-auto" }, [e.isClipboardPage(i)
|
|
51915
|
+
} } }, [e.selected === a ? r("div", { staticClass: "card-header form-element-header d-flex align-items-center", class: { pulse: e.isAiSection(a) && e.aiPreview(a) } }, [r("i", { staticClass: "fas fa-arrows-alt-v mr-1 text-muted" }), a.config.icon ? r("i", { staticClass: "mr-2 ml-1", class: a.config.icon }) : e._e(), e._v(" " + e._s(a.config.name || a.label || e.$t("Field Name")) + " "), !e.isClipboardPage(i) && e.isInClipboard(e.extendedPages[i].items[n]) && e.screenType === "form" ? r("b-badge", { staticClass: "m-2 custom-badge", attrs: { "data-cy": "copied-badge", pill: "" } }, [r("i", { staticClass: "far fa-check-circle" }), r("span", { staticClass: "pl-2" }, [e._v(e._s(e.$t("Copied")))])]) : e._e(), r("div", { staticClass: "ml-auto" }, [!e.isClipboardPage(i) && e.screenType === "form" ? r("clipboard-button", { attrs: { index: n, config: a.config, isInClipboard: e.isInClipboard(e.extendedPages[i].items[n]), addTitle: e.$t("Add to clipboard"), removeTitle: e.$t("Remove from clipboard") }, on: { addToClipboard: function(s) {
|
|
51910
51916
|
return e.addToClipboard(e.extendedPages[i].items[n]);
|
|
51911
51917
|
}, removeFromClipboard: function(s) {
|
|
51912
51918
|
return e.removeFromClipboard(e.extendedPages[i].items[n]);
|
|
51913
|
-
} } }), e.isAiSection(a) && e.aiPreview(a) ? r("button", { staticClass: "btn btn-sm btn-primary mr-2", attrs: { "data-test": "apply-ai-btn", title: e.$t("Apply Changes") }, on: { click: function(s) {
|
|
51919
|
+
} } }) : e._e(), e.isAiSection(a) && e.aiPreview(a) ? r("button", { staticClass: "btn btn-sm btn-primary mr-2", attrs: { "data-test": "apply-ai-btn", title: e.$t("Apply Changes") }, on: { click: function(s) {
|
|
51914
51920
|
return e.applyAiChanges(a);
|
|
51915
51921
|
} } }, [e._v(" " + e._s(e.$t("Apply Changes")) + " ")]) : e._e(), e.isAiSection(a) && e.aiPreview(a) ? e._e() : r("button", { staticClass: "btn btn-sm btn-secondary mr-2", attrs: { "data-test": "copy-control-btn", title: e.$t("Copy Control") }, on: { click: function(s) {
|
|
51916
51922
|
return e.duplicateItem(n);
|
|
51917
51923
|
} } }, [r("i", { staticClass: "fas fa-copy text-light" })]), r("button", { staticClass: "btn btn-sm btn-danger", attrs: { "data-test": "delete-control-btn", title: e.$t("Delete Control") }, on: { click: function(s) {
|
|
51918
51924
|
return e.deleteItem(n);
|
|
51919
|
-
} } }, [r("i", { staticClass: "far fa-trash-alt text-light" })])], 1)], 1) : e._e(), r(a["editor-component"], { tag: "component", staticClass: "card-body", class: e.styleMode === "Modern" && a.component === "FormRecordList" ? e.elementCssClassModern(a) : e.elementCssClass(a), attrs: { "validation-errors": e.validationErrors, selected: e.selected, config: a.config, "ai-element": a }, on: { inspect: e.inspect, "update-state": e.updateState }, model: { value: a.items, callback: function(s) {
|
|
51925
|
+
} } }, [r("i", { staticClass: "far fa-trash-alt text-light" })])], 1)], 1) : e._e(), r(a["editor-component"], { tag: "component", staticClass: "card-body", class: e.styleMode === "Modern" && a.component === "FormRecordList" ? e.elementCssClassModern(a) : e.elementCssClass(a), attrs: { "validation-errors": e.validationErrors, selected: e.selected, config: a.config, "ai-element": a, "screen-type": e.screenType }, on: { inspect: e.inspect, "update-state": e.updateState }, model: { value: a.items, callback: function(s) {
|
|
51920
51926
|
e.$set(a, "items", s);
|
|
51921
|
-
}, expression: "element.items" } })], 1) : r("div", { staticClass: "card", attrs: { "data-cy": "screen-element-container" } }, [e.selected === a ? r("div", { staticClass: "card-header form-element-header d-flex align-items-center" }, [r("i", { staticClass: "fas fa-arrows-alt-v mr-1 text-muted" }), a.config.icon ? r("i", { staticClass: "mr-2 ml-1", class: a.config.icon }) : e._e(), e._v(" " + e._s(a.config.name || e.$t("Variable Name")) + " "), !e.isClipboardPage(i) && e.isInClipboard(e.extendedPages[i].items[n]) ? r("b-badge", { staticClass: "m-2 custom-badge", attrs: { "data-cy": "copied-badge", pill: "" } }, [r("i", { staticClass: "far fa-check-circle" }), r("span", { staticClass: "pl-2" }, [e._v(e._s(e.$t("Copied")))])]) : e._e(), r("div", { staticClass: "ml-auto" }, [e.isClipboardPage(i)
|
|
51927
|
+
}, expression: "element.items" } })], 1) : r("div", { staticClass: "card", attrs: { "data-cy": "screen-element-container" } }, [e.selected === a ? r("div", { staticClass: "card-header form-element-header d-flex align-items-center" }, [r("i", { staticClass: "fas fa-arrows-alt-v mr-1 text-muted" }), a.config.icon ? r("i", { staticClass: "mr-2 ml-1", class: a.config.icon }) : e._e(), e._v(" " + e._s(a.config.name || e.$t("Variable Name")) + " "), !e.isClipboardPage(i) && e.isInClipboard(e.extendedPages[i].items[n]) && e.screenType === "form" ? r("b-badge", { staticClass: "m-2 custom-badge", attrs: { "data-cy": "copied-badge", pill: "" } }, [r("i", { staticClass: "far fa-check-circle" }), r("span", { staticClass: "pl-2" }, [e._v(e._s(e.$t("Copied")))])]) : e._e(), r("div", { staticClass: "ml-auto" }, [!e.isClipboardPage(i) && e.screenType === "form" ? r("clipboard-button", { attrs: { index: n, config: a.config, isInClipboard: e.isInClipboard(e.extendedPages[i].items[n]), addTitle: e.$t("Add to clipboard"), removeTitle: e.$t("Remove from clipboard") }, on: { addToClipboard: function(s) {
|
|
51922
51928
|
return e.addToClipboard(e.extendedPages[i].items[n]);
|
|
51923
51929
|
}, removeFromClipboard: function(s) {
|
|
51924
51930
|
return e.removeFromClipboard(e.extendedPages[i].items[n]);
|
|
51925
|
-
} } }), r("button", { staticClass: "btn btn-sm btn-secondary mr-2", attrs: { title: e.$t("Copy Control") }, on: { click: function(s) {
|
|
51931
|
+
} } }) : e._e(), r("button", { staticClass: "btn btn-sm btn-secondary mr-2", attrs: { title: e.$t("Copy Control") }, on: { click: function(s) {
|
|
51926
51932
|
return e.duplicateItem(n);
|
|
51927
51933
|
} } }, [r("i", { staticClass: "fas fa-copy text-light" })]), r("button", { staticClass: "btn btn-sm btn-danger", attrs: { title: e.$t("Delete Control") }, on: { click: function(s) {
|
|
51928
51934
|
return e.deleteItem(n);
|
|
51929
51935
|
} } }, [r("i", { staticClass: "far fa-trash-alt text-light" })])], 1)], 1) : e._e(), r(a["editor-component"], e._b({ tag: "component", staticClass: "card-body m-0 pb-4 pt-4", class: [
|
|
51930
51936
|
e.styleMode === "Modern" && a.component === "FormRecordList" ? e.elementCssClassModern(a) : e.elementCssClass(a),
|
|
51931
51937
|
{ "prevent-interaction": !a.config.interactive }
|
|
51932
|
-
], attrs: { tabindex: a.config.interactive ? 0 : -1 }, on: { input: function(s) {
|
|
51938
|
+
], attrs: { tabindex: a.config.interactive ? 0 : -1, "screen-type": e.screenType }, on: { input: function(s) {
|
|
51933
51939
|
a.config.interactive && (a.config.content = s);
|
|
51934
51940
|
} }, nativeOn: { focusout: function(s) {
|
|
51935
51941
|
return e.updateState.apply(null, arguments);
|
|
@@ -51980,7 +51986,7 @@ var yre = function() {
|
|
|
51980
51986
|
xre,
|
|
51981
51987
|
!1,
|
|
51982
51988
|
null,
|
|
51983
|
-
"
|
|
51989
|
+
"a75f5502",
|
|
51984
51990
|
null,
|
|
51985
51991
|
null
|
|
51986
51992
|
);
|
|
@@ -52530,7 +52536,16 @@ const Ire = Lu(Ere), hae = Lu(jre), mae = Lu([zre]), Lre = Lu([cS, uS]), Fre = N
|
|
|
52530
52536
|
dataSource: yi.provideData,
|
|
52531
52537
|
jsonData: ""
|
|
52532
52538
|
},
|
|
52533
|
-
form: ""
|
|
52539
|
+
form: "",
|
|
52540
|
+
source: {
|
|
52541
|
+
collectionFields: [],
|
|
52542
|
+
collectionFieldsColumns: [],
|
|
52543
|
+
pmql: null,
|
|
52544
|
+
sourceOptions: "Variable",
|
|
52545
|
+
variableStore: null,
|
|
52546
|
+
dataSelectionOptions: "no-selection",
|
|
52547
|
+
singleField: null
|
|
52548
|
+
}
|
|
52534
52549
|
},
|
|
52535
52550
|
inspector: [
|
|
52536
52551
|
cr,
|
|
@@ -53919,7 +53934,7 @@ const Zre = {
|
|
|
53919
53934
|
...js
|
|
53920
53935
|
},
|
|
53921
53936
|
mixins: [xl, Zd],
|
|
53922
|
-
props: ["value", "name", "config", "selected", "validationErrors"],
|
|
53937
|
+
props: ["value", "name", "config", "selected", "validationErrors", "screenType"],
|
|
53923
53938
|
data() {
|
|
53924
53939
|
return {
|
|
53925
53940
|
items: [],
|
|
@@ -53980,44 +53995,50 @@ const Zre = {
|
|
|
53980
53995
|
this.$set(r.config.aiConfig, "progress", t);
|
|
53981
53996
|
}
|
|
53982
53997
|
});
|
|
53998
|
+
},
|
|
53999
|
+
/**
|
|
54000
|
+
* Triggered when the draggable container is changed.
|
|
54001
|
+
*/
|
|
54002
|
+
onChange(t) {
|
|
54003
|
+
this.$emit("update-state");
|
|
53983
54004
|
}
|
|
53984
54005
|
}
|
|
53985
54006
|
};
|
|
53986
54007
|
var Kre = function() {
|
|
53987
54008
|
var e = this, r = e._self._c;
|
|
53988
|
-
return r("div", { staticClass: "column-draggable", attrs: { selector: e.config.customCssSelector } }, [r("draggable", { staticStyle: { "min-height": "80px" }, attrs: { list: e.items, group: "controls" } }, e._l(e.items, function(i, a) {
|
|
54009
|
+
return r("div", { staticClass: "column-draggable", attrs: { selector: e.config.customCssSelector } }, [r("draggable", { staticStyle: { "min-height": "80px" }, attrs: { list: e.items, group: "controls" }, on: { change: e.onChange } }, e._l(e.items, function(i, a) {
|
|
53989
54010
|
return r("div", { key: a, staticClass: "control-item", class: { selected: e.selected === i, hasError: e.hasError(i) }, on: { click: function(n) {
|
|
53990
54011
|
return n.stopPropagation(), e.inspect(i);
|
|
53991
54012
|
} } }, [i.container ? r("div", { on: { click: function(n) {
|
|
53992
54013
|
return n.stopPropagation(), e.inspect(i);
|
|
53993
54014
|
} } }, [r("div", { staticClass: "m-2 card border-0", class: {
|
|
53994
54015
|
"ai-section-card": e.isAiSection(i) && e.selected === i
|
|
53995
|
-
} }, [e.selected === i ? r("div", { staticClass: "card-header form-element-header d-flex align-items-center border rounded", class: { pulse: e.isAiSection(i) } }, [r("i", { staticClass: "fas fa-arrows-alt-v mr-1 text-muted" }), i.config.icon ? r("i", { staticClass: "mr-2 ml-1", class: i.config.icon }) : e._e(), e._v(" " + e._s(i.config.name || e.$t("Variable Name")) + " "), e.isInClipboard(e.items[a]) ? r("b-badge", { staticClass: "m-2 custom-badge", attrs: { "data-cy": "copied-badge", pill: "" } }, [r("i", { staticClass: "far fa-check-circle" }), r("span", { staticClass: "pl-2" }, [e._v(e._s(e.$t("Copied")))])]) : e._e(), r("div", { staticClass: "ml-auto" }, [r("clipboard-button", { attrs: { index: a, config: i.config, isInClipboard: e.isInClipboard(e.items[a]), addTitle: e.$t("Add to clipboard"), removeTitle: e.$t("Remove from clipboard") }, on: { addToClipboard: function(n) {
|
|
54016
|
+
} }, [e.selected === i ? r("div", { staticClass: "card-header form-element-header d-flex align-items-center border rounded", class: { pulse: e.isAiSection(i) } }, [r("i", { staticClass: "fas fa-arrows-alt-v mr-1 text-muted" }), i.config.icon ? r("i", { staticClass: "mr-2 ml-1", class: i.config.icon }) : e._e(), e._v(" " + e._s(i.config.name || e.$t("Variable Name")) + " "), e.isInClipboard(e.items[a]) && e.screenType === "form" ? r("b-badge", { staticClass: "m-2 custom-badge", attrs: { "data-cy": "copied-badge", pill: "" } }, [r("i", { staticClass: "far fa-check-circle" }), r("span", { staticClass: "pl-2" }, [e._v(e._s(e.$t("Copied")))])]) : e._e(), r("div", { staticClass: "ml-auto" }, [e.screenType === "form" ? r("clipboard-button", { attrs: { index: a, config: i.config, isInClipboard: e.isInClipboard(e.items[a]), addTitle: e.$t("Add to clipboard"), removeTitle: e.$t("Remove from clipboard") }, on: { addToClipboard: function(n) {
|
|
53996
54017
|
return e.addToClipboard(e.items[a]);
|
|
53997
54018
|
}, removeFromClipboard: function(n) {
|
|
53998
54019
|
return e.removeFromClipboard(e.items[a]);
|
|
53999
|
-
} } }), e.isAiSection(i) && e.aiPreview(i) ? r("button", { staticClass: "btn btn-sm btn-primary mr-2", attrs: { title: e.$t("Apply Changes") }, on: { click: function(n) {
|
|
54020
|
+
} } }) : e._e(), e.isAiSection(i) && e.aiPreview(i) ? r("button", { staticClass: "btn btn-sm btn-primary mr-2", attrs: { title: e.$t("Apply Changes") }, on: { click: function(n) {
|
|
54000
54021
|
return e.applyAiChanges(i);
|
|
54001
54022
|
} } }, [e._v(" " + e._s(e.$t("Apply Changes")) + " ")]) : e._e(), e.isAiSection(i) && e.aiPreview(i) ? e._e() : r("button", { staticClass: "btn btn-sm btn-secondary mr-2", attrs: { title: e.$t("Copy Control") }, on: { click: function(n) {
|
|
54002
54023
|
return e.duplicateItem(a);
|
|
54003
54024
|
} } }, [r("i", { staticClass: "fas fa-copy text-light" })]), r("button", { staticClass: "btn btn-sm btn-danger", attrs: { "aria-label": e.$t("Delete") }, on: { click: function(n) {
|
|
54004
54025
|
return e.deleteItem(a);
|
|
54005
|
-
} } }, [r("i", { staticClass: "far fa-trash-alt text-light" })])], 1)], 1) : e._e(), r(i["editor-component"], { tag: "component", staticClass: "mb-3 mr-3 ml-3", class: e.elementCssClass(i), attrs: { "validation-errors": e.validationErrors, selected: e.selected, "ai-element": i, config: i.config }, on: { inspect: e.inspect, "update-state": function(n) {
|
|
54026
|
+
} } }, [r("i", { staticClass: "far fa-trash-alt text-light" })])], 1)], 1) : e._e(), r(i["editor-component"], { tag: "component", staticClass: "mb-3 mr-3 ml-3", class: e.elementCssClass(i), attrs: { "validation-errors": e.validationErrors, selected: e.selected, "ai-element": i, config: i.config, "screen-type": e.screenType }, on: { inspect: e.inspect, "update-state": function(n) {
|
|
54006
54027
|
return e.$emit("update-state");
|
|
54007
54028
|
} }, model: { value: i.items, callback: function(n) {
|
|
54008
54029
|
e.$set(i, "items", n);
|
|
54009
|
-
}, expression: "element.items" } })], 1)]) : r("div", { attrs: { id: i.config.name ? i.config.name : void 0 } }, [r("div", { staticClass: "m-2", class: { card: e.selected === i } }, [e.selected === i ? r("div", { staticClass: "card-header form-element-header d-flex align-items-center" }, [r("i", { staticClass: "fas fa-arrows-alt-v mr-1 text-muted" }), i.config.icon ? r("i", { staticClass: "mr-2 ml-1", class: i.config.icon }) : e._e(), e._v(" " + e._s(i.config.name || e.$t("Variable Name")) + " "), e.isInClipboard(e.items[a]) ? r("b-badge", { staticClass: "m-2 custom-badge", attrs: { "data-cy": "copied-badge", pill: "" } }, [r("i", { staticClass: "far fa-check-circle" }), r("span", { staticClass: "pl-2" }, [e._v(e._s(e.$t("Copied")))])]) : e._e(), r("div", { staticClass: "ml-auto" }, [r("clipboard-button", { attrs: { index: a, config: i.config, isInClipboard: e.isInClipboard(e.items[a]), addTitle: e.$t("Add to clipboard"), removeTitle: e.$t("Remove from clipboard") }, on: { addToClipboard: function(n) {
|
|
54030
|
+
}, expression: "element.items" } })], 1)]) : r("div", { attrs: { id: i.config.name ? i.config.name : void 0 } }, [r("div", { staticClass: "m-2", class: { card: e.selected === i } }, [e.selected === i ? r("div", { staticClass: "card-header form-element-header d-flex align-items-center" }, [r("i", { staticClass: "fas fa-arrows-alt-v mr-1 text-muted" }), i.config.icon ? r("i", { staticClass: "mr-2 ml-1", class: i.config.icon }) : e._e(), e._v(" " + e._s(i.config.name || e.$t("Variable Name")) + " "), e.isInClipboard(e.items[a]) && e.screenType === "form" ? r("b-badge", { staticClass: "m-2 custom-badge", attrs: { "data-cy": "copied-badge", pill: "" } }, [r("i", { staticClass: "far fa-check-circle" }), r("span", { staticClass: "pl-2" }, [e._v(e._s(e.$t("Copied")))])]) : e._e(), r("div", { staticClass: "ml-auto" }, [e.screenType === "form" ? r("clipboard-button", { attrs: { index: a, config: i.config, isInClipboard: e.isInClipboard(e.items[a]), addTitle: e.$t("Add to clipboard"), removeTitle: e.$t("Remove from clipboard") }, on: { addToClipboard: function(n) {
|
|
54010
54031
|
return e.addToClipboard(e.items[a]);
|
|
54011
54032
|
}, removeFromClipboard: function(n) {
|
|
54012
54033
|
return e.removeFromClipboard(e.items[a]);
|
|
54013
|
-
} } }), r("button", { staticClass: "btn btn-sm btn-secondary mr-2", attrs: { title: e.$t("Copy Control") }, on: { click: function(n) {
|
|
54034
|
+
} } }) : e._e(), r("button", { staticClass: "btn btn-sm btn-secondary mr-2", attrs: { title: e.$t("Copy Control") }, on: { click: function(n) {
|
|
54014
54035
|
return e.duplicateItem(a);
|
|
54015
54036
|
} } }, [r("i", { staticClass: "fas fa-copy text-light" })]), r("button", { staticClass: "btn btn-sm btn-danger", attrs: { "aria-label": e.$t("Delete") }, on: { click: function(n) {
|
|
54016
54037
|
return e.deleteItem(a);
|
|
54017
54038
|
} } }, [r("i", { staticClass: "far fa-trash-alt text-light" })])], 1)], 1) : e._e(), r(i["editor-component"], e._b({ tag: "component", staticClass: "p-3", class: [
|
|
54018
54039
|
e.elementCssClass(i),
|
|
54019
54040
|
{ "prevent-interaction": !i.config.interactive }
|
|
54020
|
-
], attrs: { tabindex: i.config.interactive ? 0 : -1, config: i.config }, on: { input: function(n) {
|
|
54041
|
+
], attrs: { tabindex: i.config.interactive ? 0 : -1, config: i.config, "screen-type": e.screenType }, on: { input: function(n) {
|
|
54021
54042
|
i.config.interactive && (i.config.content = n);
|
|
54022
54043
|
} } }, "component", i.config, !1))], 1)])]);
|
|
54023
54044
|
}), 0)], 1);
|
|
@@ -54027,7 +54048,7 @@ var Kre = function() {
|
|
|
54027
54048
|
_re,
|
|
54028
54049
|
!1,
|
|
54029
54050
|
null,
|
|
54030
|
-
"
|
|
54051
|
+
"dbf93f27",
|
|
54031
54052
|
null,
|
|
54032
54053
|
null
|
|
54033
54054
|
);
|
|
@@ -54047,7 +54068,7 @@ const tie = 1, rie = {
|
|
|
54047
54068
|
...js
|
|
54048
54069
|
},
|
|
54049
54070
|
mixins: [xl, Zd],
|
|
54050
|
-
props: ["value", "name", "config", "selected", "validationErrors"],
|
|
54071
|
+
props: ["value", "name", "config", "selected", "validationErrors", "screenType"],
|
|
54051
54072
|
data() {
|
|
54052
54073
|
return {
|
|
54053
54074
|
items: [],
|
|
@@ -54147,32 +54168,32 @@ var iie = function() {
|
|
|
54147
54168
|
return o.stopPropagation(), e.inspect(n);
|
|
54148
54169
|
} } }, [r("div", { staticClass: "m-2 card border-0", class: {
|
|
54149
54170
|
"ai-section-card": e.isAiSection(n) && e.selected === n
|
|
54150
|
-
} }, [e.selected === n ? r("div", { staticClass: "card-header form-element-header d-flex align-items-center border rounded", class: { pulse: e.isAiSection(n) } }, [r("i", { staticClass: "fas fa-arrows-alt-v mr-1 text-muted" }), n.config.icon ? r("i", { staticClass: "mr-2 ml-1", class: n.config.icon }) : e._e(), e._v(" " + e._s(n.config.name || e.$t("Variable Name")) + " "), e.isInClipboard(n) ? r("b-badge", { staticClass: "m-2 custom-badge", attrs: { "data-cy": "copied-badge", pill: "" } }, [r("i", { staticClass: "far fa-check-circle" }), r("span", { staticClass: "pl-2" }, [e._v(e._s(e.$t("Copied")))])]) : e._e(), r("div", { staticClass: "ml-auto" }, [r("clipboard-button", { attrs: { index: a, config: n.config, isInClipboard: e.isInClipboard(n), addTitle: e.$t("Add to clipboard"), removeTitle: e.$t("Remove from clipboard") }, on: { addToClipboard: function(o) {
|
|
54171
|
+
} }, [e.selected === n ? r("div", { staticClass: "card-header form-element-header d-flex align-items-center border rounded", class: { pulse: e.isAiSection(n) } }, [r("i", { staticClass: "fas fa-arrows-alt-v mr-1 text-muted" }), n.config.icon ? r("i", { staticClass: "mr-2 ml-1", class: n.config.icon }) : e._e(), e._v(" " + e._s(n.config.name || e.$t("Variable Name")) + " "), e.isInClipboard(n) && e.screenType === "form" ? r("b-badge", { staticClass: "m-2 custom-badge", attrs: { "data-cy": "copied-badge", pill: "" } }, [r("i", { staticClass: "far fa-check-circle" }), r("span", { staticClass: "pl-2" }, [e._v(e._s(e.$t("Copied")))])]) : e._e(), r("div", { staticClass: "ml-auto" }, [e.screenType === "form" ? r("clipboard-button", { attrs: { index: a, config: n.config, isInClipboard: e.isInClipboard(n), addTitle: e.$t("Add to clipboard"), removeTitle: e.$t("Remove from clipboard") }, on: { addToClipboard: function(o) {
|
|
54151
54172
|
return e.addToClipboard(n);
|
|
54152
54173
|
}, removeFromClipboard: function(o) {
|
|
54153
54174
|
return e.removeFromClipboard(n);
|
|
54154
|
-
} } }), e.isAiSection(n) && e.aiPreview(n) ? r("button", { staticClass: "btn btn-sm btn-primary mr-2", attrs: { title: e.$t("Apply Changes") }, on: { click: function(o) {
|
|
54175
|
+
} } }) : e._e(), e.isAiSection(n) && e.aiPreview(n) ? r("button", { staticClass: "btn btn-sm btn-primary mr-2", attrs: { title: e.$t("Apply Changes") }, on: { click: function(o) {
|
|
54155
54176
|
return e.applyAiChanges(n);
|
|
54156
54177
|
} } }, [e._v(" " + e._s(e.$t("Apply Changes")) + " ")]) : e._e(), e.isAiSection(n) && e.aiPreview(n) ? e._e() : r("button", { staticClass: "btn btn-sm btn-secondary mr-2", attrs: { "aria-label": e.$t("Duplicate") }, on: { click: function(o) {
|
|
54157
54178
|
return e.duplicateItem(a, s);
|
|
54158
54179
|
} } }, [r("i", { staticClass: "fas fa-copy text-light" })]), r("button", { staticClass: "btn btn-sm btn-danger", attrs: { "aria-label": e.$t("Delete") }, on: { click: function(o) {
|
|
54159
54180
|
return e.deleteItem(a, s);
|
|
54160
|
-
} } }, [r("i", { staticClass: "far fa-trash-alt text-light" })])], 1)], 1) : e._e(), r(n["editor-component"], { tag: "component", staticClass: "mb-3 mr-3 ml-3", class: e.elementCssClass(n), attrs: { "validation-errors": e.validationErrors, selected: e.selected, "ai-element": n, config: n.config }, on: { inspect: e.inspect, "update-state": function(o) {
|
|
54181
|
+
} } }, [r("i", { staticClass: "far fa-trash-alt text-light" })])], 1)], 1) : e._e(), r(n["editor-component"], { tag: "component", staticClass: "mb-3 mr-3 ml-3", class: e.elementCssClass(n), attrs: { "validation-errors": e.validationErrors, selected: e.selected, "ai-element": n, config: n.config, "screen-type": e.screenType }, on: { inspect: e.inspect, "update-state": function(o) {
|
|
54161
54182
|
return e.$emit("update-state");
|
|
54162
54183
|
} }, model: { value: n.items, callback: function(o) {
|
|
54163
54184
|
e.$set(n, "items", o);
|
|
54164
|
-
}, expression: "element.items" } })], 1)]) : r("div", { attrs: { id: n.config.name ? n.config.name : void 0 } }, [r("div", { staticClass: "m-2", class: { card: e.selected === n } }, [e.selected === n ? r("div", { staticClass: "card-header form-element-header d-flex align-items-center" }, [r("i", { staticClass: "fas fa-arrows-alt-v mr-1 text-muted" }), n.config.icon ? r("i", { staticClass: "mr-2 ml-1", class: n.config.icon }) : e._e(), e._v(" " + e._s(n.config.name || e.$t("Variable Name")) + " "), e.isInClipboard(n) ? r("b-badge", { staticClass: "m-2 custom-badge", attrs: { "data-cy": "copied-badge", pill: "" } }, [r("i", { staticClass: "far fa-check-circle" }), r("span", { staticClass: "pl-2" }, [e._v(e._s(e.$t("Copied")))])]) : e._e(), r("div", { staticClass: "ml-auto" }, [r("clipboard-button", { attrs: { index: a, config: n.config, isInClipboard: e.isInClipboard(n), addTitle: e.$t("Add to clipboard"), removeTitle: e.$t("Remove from clipboard") }, on: { addToClipboard: function(o) {
|
|
54185
|
+
}, expression: "element.items" } })], 1)]) : r("div", { attrs: { id: n.config.name ? n.config.name : void 0 } }, [r("div", { staticClass: "m-2", class: { card: e.selected === n } }, [e.selected === n ? r("div", { staticClass: "card-header form-element-header d-flex align-items-center" }, [r("i", { staticClass: "fas fa-arrows-alt-v mr-1 text-muted" }), n.config.icon ? r("i", { staticClass: "mr-2 ml-1", class: n.config.icon }) : e._e(), e._v(" " + e._s(n.config.name || e.$t("Variable Name")) + " "), e.isInClipboard(n) && e.screenType === "form" ? r("b-badge", { staticClass: "m-2 custom-badge", attrs: { "data-cy": "copied-badge", pill: "" } }, [r("i", { staticClass: "far fa-check-circle" }), r("span", { staticClass: "pl-2" }, [e._v(e._s(e.$t("Copied")))])]) : e._e(), r("div", { staticClass: "ml-auto" }, [e.screenType === "form" ? r("clipboard-button", { attrs: { index: a, config: n.config, isInClipboard: e.isInClipboard(n), addTitle: e.$t("Add to clipboard"), removeTitle: e.$t("Remove from clipboard") }, on: { addToClipboard: function(o) {
|
|
54165
54186
|
return e.addToClipboard(n);
|
|
54166
54187
|
}, removeFromClipboard: function(o) {
|
|
54167
54188
|
return e.removeFromClipboard(n);
|
|
54168
|
-
} } }), r("button", { staticClass: "btn btn-sm btn-secondary mr-2", attrs: { title: e.$t("Copy Control") }, on: { click: function(o) {
|
|
54189
|
+
} } }) : e._e(), r("button", { staticClass: "btn btn-sm btn-secondary mr-2", attrs: { title: e.$t("Copy Control") }, on: { click: function(o) {
|
|
54169
54190
|
return e.duplicateItem(a, s);
|
|
54170
54191
|
} } }, [r("i", { staticClass: "fas fa-copy text-light" })]), r("button", { staticClass: "btn btn-sm btn-danger", attrs: { "aria-label": e.$t("Delete") }, on: { click: function(o) {
|
|
54171
54192
|
return e.deleteItem(a, s);
|
|
54172
54193
|
} } }, [r("i", { staticClass: "far fa-trash-alt text-light" })])], 1)], 1) : e._e(), r(n["editor-component"], e._b({ tag: "component", staticClass: "p-3", class: [
|
|
54173
54194
|
e.elementCssClass(n),
|
|
54174
54195
|
{ "prevent-interaction": !n.config.interactive }
|
|
54175
|
-
], attrs: { tabindex: n.config.interactive ? 0 : -1, config: n.config }, on: { input: function(o) {
|
|
54196
|
+
], attrs: { tabindex: n.config.interactive ? 0 : -1, config: n.config, "screen-type": e.screenType }, on: { input: function(o) {
|
|
54176
54197
|
n.config.interactive && (n.config.content = o);
|
|
54177
54198
|
} } }, "component", n.config, !1))], 1)])]);
|
|
54178
54199
|
}), 0)];
|
|
@@ -54183,7 +54204,7 @@ var iie = function() {
|
|
|
54183
54204
|
aie,
|
|
54184
54205
|
!1,
|
|
54185
54206
|
null,
|
|
54186
|
-
"
|
|
54207
|
+
"c18cf715",
|
|
54187
54208
|
null,
|
|
54188
54209
|
null
|
|
54189
54210
|
);
|