@processmaker/screen-builder 3.5.4 → 3.5.6
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 +26 -12
- package/dist/vue-form-builder.es.js.map +1 -1
- package/dist/vue-form-builder.umd.js +2 -2
- package/dist/vue-form-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/inspector/collection-records-list.vue +6 -4
- package/src/components/inspector/collection-select-list.vue +18 -2
- package/src/components/inspector/options-list.vue +1 -1
- package/src/components/vue-form-builder.vue +2 -1
- package/src/form-builder-controls.js +4 -0
|
@@ -46934,7 +46934,7 @@ const yp = L_.exports, yg = [
|
|
|
46934
46934
|
create_screen_id: r.create_screen_id
|
|
46935
46935
|
}, e), {}), this.collections = [
|
|
46936
46936
|
{ value: null, text: this.$t("Select a collection") },
|
|
46937
|
-
...t.data.data.map((e) => ({
|
|
46937
|
+
...t.data.data.filter((e) => e.type !== "RAG").map((e) => ({
|
|
46938
46938
|
text: e.name,
|
|
46939
46939
|
value: e.id
|
|
46940
46940
|
}))
|
|
@@ -47319,7 +47319,14 @@ const pl = Z_.exports, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
|
|
|
47319
47319
|
MustacheHelper: sn,
|
|
47320
47320
|
ScreenVariableSelector: yp
|
|
47321
47321
|
},
|
|
47322
|
-
props:
|
|
47322
|
+
props: {
|
|
47323
|
+
value: Object,
|
|
47324
|
+
renderAs: String,
|
|
47325
|
+
excludeCollectionType: {
|
|
47326
|
+
type: String,
|
|
47327
|
+
default: null
|
|
47328
|
+
}
|
|
47329
|
+
},
|
|
47323
47330
|
data() {
|
|
47324
47331
|
return {
|
|
47325
47332
|
collections: [],
|
|
@@ -47372,11 +47379,14 @@ const pl = Z_.exports, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
|
|
|
47372
47379
|
},
|
|
47373
47380
|
getCollections() {
|
|
47374
47381
|
this.$dataProvider.getCollections().then((t) => {
|
|
47375
|
-
|
|
47382
|
+
let e = t.data.data;
|
|
47383
|
+
this.excludeCollectionType && (e = e.filter(
|
|
47384
|
+
(r) => r.type !== this.excludeCollectionType
|
|
47385
|
+
)), this.collections = [
|
|
47376
47386
|
{ value: null, text: this.$t("Select a collection") },
|
|
47377
|
-
...
|
|
47378
|
-
text:
|
|
47379
|
-
value:
|
|
47387
|
+
...e.map((r) => ({
|
|
47388
|
+
text: r.name,
|
|
47389
|
+
value: r.id
|
|
47380
47390
|
}))
|
|
47381
47391
|
];
|
|
47382
47392
|
});
|
|
@@ -49129,7 +49139,7 @@ var bee = function() {
|
|
|
49129
49139
|
e.dataName = i;
|
|
49130
49140
|
}, expression: "dataName" } }), r("small", { staticClass: "form-text text-muted mb-3" }, [e._v(e._s(e.$t("Get options from this variable. Must be an array.")))])], 1) : e._e(), e.dataSource === e.dataSourceValues.dataObject ? r("div", [r("label", { attrs: { for: "value" } }, [e._v(e._s(e.$t("Option Label Shown")))]), r("b-form-input", { attrs: { id: "value", placeholder: "Request Variable Property", "data-cy": "inspector-options-label" }, on: { change: e.valueChanged }, model: { value: e.value, callback: function(i) {
|
|
49131
49141
|
e.value = i;
|
|
49132
|
-
}, expression: "value" } }), r("small", { staticClass: "form-text text-muted mb-3" }, [e._v(e._s(e.$t("Enter the property name from the Request data variable that displays to the user on the screen.")))])], 1) : e._e(), e.dataSource === e.dataSourceValues.collection ? r("div", [r("collection-select-list", { attrs: { renderAs: e.renderAs }, model: { value: e.collectionOptions, callback: function(i) {
|
|
49142
|
+
}, expression: "value" } }), r("small", { staticClass: "form-text text-muted mb-3" }, [e._v(e._s(e.$t("Enter the property name from the Request data variable that displays to the user on the screen.")))])], 1) : e._e(), e.dataSource === e.dataSourceValues.collection ? r("div", [r("collection-select-list", { attrs: { renderAs: e.renderAs, "exclude-collection-type": "RAG" }, model: { value: e.collectionOptions, callback: function(i) {
|
|
49133
49143
|
e.collectionOptions = i;
|
|
49134
49144
|
}, expression: "collectionOptions" } })], 1) : e._e(), e.showRenderAs ? r("div", [r("div", { staticClass: "row mb-3" }, [r("div", { staticClass: "col" }, [r("label", { attrs: { for: "render-as" } }, [e._v(e._s(e.$t("Show Control As")))]), r("b-form-select", { attrs: { id: "render-as", options: e.renderAsOptions, "data-cy": "inspector-render-as" }, model: { value: e.renderAs, callback: function(i) {
|
|
49135
49145
|
e.renderAs = i;
|
|
@@ -49173,7 +49183,7 @@ var bee = function() {
|
|
|
49173
49183
|
yee,
|
|
49174
49184
|
!1,
|
|
49175
49185
|
null,
|
|
49176
|
-
"
|
|
49186
|
+
"245a3588",
|
|
49177
49187
|
null,
|
|
49178
49188
|
null
|
|
49179
49189
|
);
|
|
@@ -51775,7 +51785,7 @@ const mre = [
|
|
|
51775
51785
|
this.extendedPages[this.currentPage].items.splice(t, 1), this.inspection.inspector.splice(0, this.inspection.inspector.length), this.updateState();
|
|
51776
51786
|
},
|
|
51777
51787
|
duplicateItem(t) {
|
|
51778
|
-
const e = re.cloneDeep(this.
|
|
51788
|
+
const e = re.cloneDeep(this.extendedPages[this.currentPage].items[t]);
|
|
51779
51789
|
this.updateUuids(e), this.extendedPages[this.currentPage].items.push(e);
|
|
51780
51790
|
},
|
|
51781
51791
|
openEditPageModal(t) {
|
|
@@ -52006,7 +52016,7 @@ var yre = function() {
|
|
|
52006
52016
|
return e.addToClipboard(e.extendedPages[i].items[n]);
|
|
52007
52017
|
}, removeFromClipboard: function(s) {
|
|
52008
52018
|
return e.removeFromClipboard(e.extendedPages[i].items[n]);
|
|
52009
|
-
} } }) : e._e(), r("button", { staticClass: "btn btn-sm btn-primary mr-2", attrs: { title: e.$t("Copy Control") }, on: { click: function(s) {
|
|
52019
|
+
} } }) : e._e(), r("button", { staticClass: "btn btn-sm btn-primary mr-2", attrs: { title: e.$t("Copy Control"), "data-test": "copy-control-btn" }, on: { click: function(s) {
|
|
52010
52020
|
return e.duplicateItem(n);
|
|
52011
52021
|
} } }, [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) {
|
|
52012
52022
|
return e.deleteItem(n);
|
|
@@ -52064,7 +52074,7 @@ var yre = function() {
|
|
|
52064
52074
|
xre,
|
|
52065
52075
|
!1,
|
|
52066
52076
|
null,
|
|
52067
|
-
"
|
|
52077
|
+
"005f6612",
|
|
52068
52078
|
null,
|
|
52069
52079
|
null
|
|
52070
52080
|
);
|
|
@@ -53265,7 +53275,11 @@ const Ire = Iu(Ere), hae = Iu(jre), mae = Iu([zre]), Lre = Iu([uP, lP]), Fre = N
|
|
|
53265
53275
|
config: {
|
|
53266
53276
|
name: "Collection Record Control",
|
|
53267
53277
|
icon: "fas fa-database",
|
|
53268
|
-
label: "Collection Record Control"
|
|
53278
|
+
label: "Collection Record Control",
|
|
53279
|
+
collectionmode: {
|
|
53280
|
+
modeId: "Edit",
|
|
53281
|
+
submitCollectionCheck: !0
|
|
53282
|
+
}
|
|
53269
53283
|
},
|
|
53270
53284
|
inspector: [
|
|
53271
53285
|
{
|