@processmaker/screen-builder 3.8.34 → 3.8.35
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 +33 -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-data-source.vue +1 -0
- package/src/components/inspector/column-setup.vue +5 -3
- package/src/components/renderer/form-record-list.vue +68 -46
|
@@ -46221,9 +46221,7 @@ const u_ = {
|
|
|
46221
46221
|
console.log("refs vuetable not exists");
|
|
46222
46222
|
},
|
|
46223
46223
|
tableData() {
|
|
46224
|
-
const t = Array.isArray(this.collectionData) && this.collectionData.length ? this.collectionData : Array.isArray(this.value) ? this.value : [];
|
|
46225
|
-
this.value && (this.selectedIndex = this.value.selectedRowIndex);
|
|
46226
|
-
const e = this.paginatorPage - 1;
|
|
46224
|
+
const t = Array.isArray(this.collectionData) && this.collectionData.length ? this.collectionData : Array.isArray(this.value) ? this.value : [], e = this.paginatorPage - 1;
|
|
46227
46225
|
this.lastPage = Math.ceil(t.length / this.perPage);
|
|
46228
46226
|
const r = {
|
|
46229
46227
|
total: t.length,
|
|
@@ -46237,7 +46235,7 @@ const u_ = {
|
|
|
46237
46235
|
data: t,
|
|
46238
46236
|
lastSortConfig: !1
|
|
46239
46237
|
};
|
|
46240
|
-
return
|
|
46238
|
+
return Array.isArray(this.value) && this.value.length > 0 && this.rows.length === 0 && this.value.forEach((i) => {
|
|
46241
46239
|
i.hasOwnProperty("selectedRowsIndex") && this.selectedRows.push(r.data[i.selectedRowsIndex]);
|
|
46242
46240
|
}), r;
|
|
46243
46241
|
},
|
|
@@ -46268,6 +46266,13 @@ const u_ = {
|
|
|
46268
46266
|
this.currentPage = this.currentPage > e ? e : this.currentPage, this.currentPage = this.currentPage == 0 ? 1 : this.currentPage;
|
|
46269
46267
|
}
|
|
46270
46268
|
},
|
|
46269
|
+
// Restore radio selection when the value prop is set after collection data is already loaded
|
|
46270
|
+
value: {
|
|
46271
|
+
immediate: !0,
|
|
46272
|
+
handler() {
|
|
46273
|
+
Array.isArray(this.collectionData) && this.collectionData.length && this.restoreRadioSelection(this.collectionData);
|
|
46274
|
+
}
|
|
46275
|
+
},
|
|
46271
46276
|
// Watch for changes in validationData to handle any Mustache variable changes
|
|
46272
46277
|
validationData: {
|
|
46273
46278
|
handler(t, e) {
|
|
@@ -46444,7 +46449,7 @@ const u_ = {
|
|
|
46444
46449
|
a[n] = s;
|
|
46445
46450
|
e.push(a);
|
|
46446
46451
|
}
|
|
46447
|
-
}), this.collectionData = e, this.reapplyCollectionSelections(e);
|
|
46452
|
+
}), this.collectionData = e, this.reapplyCollectionSelections(e), this.restoreRadioSelection(e);
|
|
46448
46453
|
},
|
|
46449
46454
|
// Keep selected rows in sync after collection refreshes triggered by PMQL filters.
|
|
46450
46455
|
reapplyCollectionSelections(t) {
|
|
@@ -46467,6 +46472,20 @@ const u_ = {
|
|
|
46467
46472
|
s && (i.selectedRowsIndex = a, r.push(i), s === 1 ? e.delete(n) : e.set(n, s - 1));
|
|
46468
46473
|
}), this.selectedRows = r;
|
|
46469
46474
|
},
|
|
46475
|
+
// Restore selectedRow after collection data (re)loads or when value prop changes.
|
|
46476
|
+
// Mirrors reapplyCollectionSelections for the single-record (radio) case.
|
|
46477
|
+
restoreRadioSelection(t) {
|
|
46478
|
+
var e;
|
|
46479
|
+
if (!(!this.value || !Array.isArray(t) || t.length === 0)) {
|
|
46480
|
+
if ((e = this.source) != null && e.singleField) {
|
|
46481
|
+
const r = t.find((i) => i[this.source.singleField] === this.value);
|
|
46482
|
+
r && (this.selectedRow = r);
|
|
46483
|
+
} else if (typeof this.value == "object" && !Array.isArray(this.value)) {
|
|
46484
|
+
const r = this.value.selectedRowIndex;
|
|
46485
|
+
r != null && r >= 0 && r < t.length && (this.selectedRow = t[r]);
|
|
46486
|
+
}
|
|
46487
|
+
}
|
|
46488
|
+
},
|
|
46470
46489
|
shouldPersistCollectionSelection() {
|
|
46471
46490
|
var e, r, i, a;
|
|
46472
46491
|
const t = (r = (e = this.source) == null ? void 0 : e.collectionFields) == null ? void 0 : r.pmql;
|
|
@@ -46516,12 +46535,12 @@ const u_ = {
|
|
|
46516
46535
|
return ((n = this.source) == null ? void 0 : n.sourceOptions) === "Collection" ? a = (s) => ({
|
|
46517
46536
|
key: s[e || "key"],
|
|
46518
46537
|
sortable: !0,
|
|
46519
|
-
label: s[e || "key"],
|
|
46538
|
+
label: s.label || s[e || "key"],
|
|
46520
46539
|
tdClass: "table-column"
|
|
46521
46540
|
}) : a = (s) => ({
|
|
46522
46541
|
key: s[e || "value"],
|
|
46523
46542
|
sortable: !0,
|
|
46524
|
-
label: s[r || "content"],
|
|
46543
|
+
label: s.label || s[r || "content"],
|
|
46525
46544
|
tdClass: "table-column"
|
|
46526
46545
|
}), this.getValidFieldData(t, i).map(
|
|
46527
46546
|
a
|
|
@@ -48491,6 +48510,7 @@ const bS = W$.exports, Bg = [
|
|
|
48491
48510
|
getCollectionColumns(t) {
|
|
48492
48511
|
const [e] = (t == null ? void 0 : t.dataRecordList) || [];
|
|
48493
48512
|
if (e != null && e.data) {
|
|
48513
|
+
this.singleFieldOptions = [];
|
|
48494
48514
|
const r = e.data;
|
|
48495
48515
|
for (const [i] of Object.entries(r))
|
|
48496
48516
|
this.singleFieldOptions.push({ text: i, value: i });
|
|
@@ -48984,7 +49004,7 @@ const hee = {
|
|
|
48984
49004
|
this.showJsonEditor = !1;
|
|
48985
49005
|
},
|
|
48986
49006
|
showEditOption(t) {
|
|
48987
|
-
this.optionCardType = "edit", this.editIndex = t, this.optionContent = this.optionsList[t][this.valueField], this.optionValue = this.optionsList[t][this.keyField], this.optionContentCollection = this.optionsList[t][this.keyFieldCollection], this.optionValueCollection = this.optionsList[t][this.valueField], this.optionError = "";
|
|
49007
|
+
this.optionCardType = "edit", this.editIndex = t, this.optionContent = this.optionsList[t][this.valueField], this.optionValue = this.optionsList[t][this.keyField], this.optionContentCollection = this.optionsList[t].label || this.optionsList[t][this.keyFieldCollection], this.optionValueCollection = this.optionsList[t][this.valueField], this.optionError = "";
|
|
48988
49008
|
},
|
|
48989
49009
|
showAddOption() {
|
|
48990
49010
|
this.optionCardType = "insert", this.optionContent = "", this.optionValue = "", this.optionContentCollection = "", this.optionValueCollection = "", this.showOptionCard = !0, this.optionError = "", this.editIndex = null;
|
|
@@ -49020,12 +49040,13 @@ const hee = {
|
|
|
49020
49040
|
}
|
|
49021
49041
|
this.optionsList.push(
|
|
49022
49042
|
{
|
|
49023
|
-
[this.keyFieldCollection]: this.
|
|
49024
|
-
[this.valueField]: this.optionValueCollection
|
|
49043
|
+
[this.keyFieldCollection]: this.optionValueCollection,
|
|
49044
|
+
[this.valueField]: this.optionValueCollection,
|
|
49045
|
+
label: this.optionContentCollection
|
|
49025
49046
|
}
|
|
49026
49047
|
), this.optionsList = this.optionsList.filter((e) => e.content !== "all");
|
|
49027
49048
|
} else
|
|
49028
|
-
this.optionsList[this.editIndex][this.keyFieldCollection] = this.
|
|
49049
|
+
this.optionsList[this.editIndex][this.keyFieldCollection] = this.optionValueCollection, this.optionsList[this.editIndex][this.valueField] = this.optionValueCollection, this.optionsList[this.editIndex].label = this.optionContentCollection;
|
|
49029
49050
|
this.jsonError = "", this.jsonData = JSON.stringify(this.optionsList), this.showOptionCard = !1, this.optionError = "", this.editIndex = null;
|
|
49030
49051
|
},
|
|
49031
49052
|
deleteOption() {
|
|
@@ -49120,7 +49141,7 @@ var mee = function() {
|
|
|
49120
49141
|
vee,
|
|
49121
49142
|
!1,
|
|
49122
49143
|
null,
|
|
49123
|
-
"
|
|
49144
|
+
"6cd701ba"
|
|
49124
49145
|
);
|
|
49125
49146
|
const bee = gee.exports, yee = {
|
|
49126
49147
|
components: {
|