@processmaker/modeler 1.24.0 → 1.24.2
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/modeler.common.js +71 -64
- package/dist/modeler.common.js.map +1 -1
- package/dist/modeler.umd.js +71 -64
- package/dist/modeler.umd.js.map +1 -1
- package/dist/modeler.umd.min.js +1 -1
- package/dist/modeler.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/nodes/subProcess/SubProcessFormSelect.vue +9 -3
package/package.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
:helper="$t('Select which Process this element calls')"
|
|
7
7
|
v-model="selectedProcess"
|
|
8
8
|
:showLabels="false"
|
|
9
|
-
:allow-empty="
|
|
9
|
+
:allow-empty="false"
|
|
10
10
|
:options="processList"
|
|
11
11
|
:loading="loading"
|
|
12
12
|
optionContent="name"
|
|
13
13
|
class="p-0 mb-2"
|
|
14
|
-
validation="
|
|
14
|
+
:validation="validation"
|
|
15
15
|
@search-change="searchChange"
|
|
16
16
|
:searchable="true"
|
|
17
17
|
:internal-search="false"
|
|
@@ -58,6 +58,7 @@ export default {
|
|
|
58
58
|
loading: false ,
|
|
59
59
|
processes: [],
|
|
60
60
|
selectedProcessInfo: null,
|
|
61
|
+
validation: '',
|
|
61
62
|
};
|
|
62
63
|
},
|
|
63
64
|
inheritAttrs: false,
|
|
@@ -146,6 +147,9 @@ export default {
|
|
|
146
147
|
this.selectedProcess = this.processList.find(p => p.id === this.config.processId);
|
|
147
148
|
this.selectedStartEvent = this.startEventList.find(se => se.id === this.config.startEvent);
|
|
148
149
|
this.$nextTick(() => {
|
|
150
|
+
if (!this.selectedProcess) {
|
|
151
|
+
this.validation = 'required';
|
|
152
|
+
}
|
|
149
153
|
this.loading = false;
|
|
150
154
|
});
|
|
151
155
|
},
|
|
@@ -177,8 +181,8 @@ export default {
|
|
|
177
181
|
const params = {
|
|
178
182
|
order_direction: 'asc',
|
|
179
183
|
per_page: 20,
|
|
180
|
-
status: 'all',
|
|
181
184
|
include: 'events,category',
|
|
185
|
+
filter_without_assignments: true,
|
|
182
186
|
};
|
|
183
187
|
|
|
184
188
|
if (filter) {
|
|
@@ -199,6 +203,7 @@ export default {
|
|
|
199
203
|
if (this.config.processId) {
|
|
200
204
|
window.ProcessMaker.apiClient.get('processes/' + this.config.processId, { params: {
|
|
201
205
|
include: 'events,category',
|
|
206
|
+
filter_without_assignments: true,
|
|
202
207
|
} }).then(response => {
|
|
203
208
|
this.selectedProcessInfo = response.data;
|
|
204
209
|
});
|
|
@@ -206,6 +211,7 @@ export default {
|
|
|
206
211
|
},
|
|
207
212
|
},
|
|
208
213
|
created() {
|
|
214
|
+
this.validation = !this.config.processId ? 'required' : '';
|
|
209
215
|
this.loadProcessesDebounced = debounce((filter) => {
|
|
210
216
|
this.loadProcesses(filter);
|
|
211
217
|
}, 500);
|