@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
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">
|
|
@@ -300,6 +300,7 @@
|
|
|
300
300
|
<button
|
|
301
301
|
class="btn btn-sm btn-primary mr-2"
|
|
302
302
|
:title="$t('Copy Control')"
|
|
303
|
+
data-test="copy-control-btn"
|
|
303
304
|
@click="duplicateItem(index)"
|
|
304
305
|
>
|
|
305
306
|
<i class="fas fa-copy text-light" />
|
|
@@ -1326,7 +1327,7 @@ export default {
|
|
|
1326
1327
|
this.updateState();
|
|
1327
1328
|
},
|
|
1328
1329
|
duplicateItem(index) {
|
|
1329
|
-
const duplicate = _.cloneDeep(this.
|
|
1330
|
+
const duplicate = _.cloneDeep(this.extendedPages[this.currentPage].items[index]);
|
|
1330
1331
|
this.updateUuids(duplicate);
|
|
1331
1332
|
this.extendedPages[this.currentPage].items.push(duplicate);
|
|
1332
1333
|
},
|
|
@@ -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
|
{
|