@processmaker/screen-builder 3.5.3 → 3.5.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 +25 -11
- 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 +7 -5
- package/src/form-builder-controls.js +4 -0
package/package.json
CHANGED
|
@@ -130,10 +130,12 @@ export default {
|
|
|
130
130
|
|
|
131
131
|
this.collections = [
|
|
132
132
|
{ value: null, text: this.$t("Select a collection") },
|
|
133
|
-
...response.data.data
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
...response.data.data
|
|
134
|
+
.filter((collection) => collection.type !== 'RAG')
|
|
135
|
+
.map((collection) => ({
|
|
136
|
+
text: collection.name,
|
|
137
|
+
value: collection.id
|
|
138
|
+
}))
|
|
137
139
|
];
|
|
138
140
|
});
|
|
139
141
|
},
|
|
@@ -92,7 +92,14 @@ export default {
|
|
|
92
92
|
MustacheHelper,
|
|
93
93
|
ScreenVariableSelector
|
|
94
94
|
},
|
|
95
|
-
props:
|
|
95
|
+
props: {
|
|
96
|
+
value: Object,
|
|
97
|
+
renderAs: String,
|
|
98
|
+
excludeCollectionType: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: null
|
|
101
|
+
}
|
|
102
|
+
},
|
|
96
103
|
data() {
|
|
97
104
|
return {
|
|
98
105
|
collections: [],
|
|
@@ -153,9 +160,18 @@ export default {
|
|
|
153
160
|
},
|
|
154
161
|
getCollections() {
|
|
155
162
|
this.$dataProvider.getCollections().then((response) => {
|
|
163
|
+
let collections = response.data.data;
|
|
164
|
+
|
|
165
|
+
// Apply filter if collectionType is set
|
|
166
|
+
if (this.excludeCollectionType) {
|
|
167
|
+
collections = collections.filter(
|
|
168
|
+
(collection) => collection.type !== this.excludeCollectionType
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
156
172
|
this.collections = [
|
|
157
173
|
{ value: null, text: this.$t("Select a collection") },
|
|
158
|
-
...
|
|
174
|
+
...collections.map((collection) => {
|
|
159
175
|
return {
|
|
160
176
|
text: collection.name,
|
|
161
177
|
value: collection.id
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
</div>
|
|
138
138
|
|
|
139
139
|
<div v-if="dataSource === dataSourceValues.collection">
|
|
140
|
-
<collection-select-list v-model="collectionOptions" :renderAs="renderAs"></collection-select-list>
|
|
140
|
+
<collection-select-list v-model="collectionOptions" :renderAs="renderAs" exclude-collection-type="RAG"></collection-select-list>
|
|
141
141
|
</div>
|
|
142
142
|
|
|
143
143
|
<div v-if="showRenderAs">
|
|
@@ -1582,12 +1582,14 @@ export default {
|
|
|
1582
1582
|
*/
|
|
1583
1583
|
checkAndRefreshUuids(selected, clipboardItems) {
|
|
1584
1584
|
return clipboardItems.map(config => {
|
|
1585
|
-
//
|
|
1586
|
-
|
|
1585
|
+
// Return early if UUIDs don't match
|
|
1586
|
+
if (selected.uuid !== config.uuid) {
|
|
1587
|
+
return config;
|
|
1588
|
+
}
|
|
1587
1589
|
|
|
1588
|
-
//
|
|
1589
|
-
if (!isEqual) {
|
|
1590
|
-
config.uuid = this.generateUUID();
|
|
1590
|
+
// Deep compare configs and update UUID if they differ
|
|
1591
|
+
if (!_.isEqual(selected.config, config.config)) {
|
|
1592
|
+
config.uuid = this.generateUUID();
|
|
1591
1593
|
}
|
|
1592
1594
|
|
|
1593
1595
|
return config;
|
|
@@ -1132,6 +1132,10 @@ export default [
|
|
|
1132
1132
|
name: 'Collection Record Control',
|
|
1133
1133
|
icon: 'fas fa-database',
|
|
1134
1134
|
label: 'Collection Record Control',
|
|
1135
|
+
collectionmode: {
|
|
1136
|
+
modeId: 'Edit',
|
|
1137
|
+
submitCollectionCheck: true
|
|
1138
|
+
}
|
|
1135
1139
|
},
|
|
1136
1140
|
inspector: [
|
|
1137
1141
|
{
|