@processmaker/modeler 1.46.5 → 1.46.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/modeler.common.js +338 -315
- package/dist/modeler.common.js.map +1 -1
- package/dist/modeler.umd.js +338 -315
- package/dist/modeler.umd.js.map +1 -1
- package/dist/modeler.umd.min.js +2 -2
- package/dist/modeler.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/modeler/Modeler.vue +4 -4
- package/src/mixins/linkConfig.js +21 -0
- package/src/multiplayer/multiplayer.js +4 -0
package/package.json
CHANGED
|
@@ -2085,7 +2085,7 @@ export default {
|
|
|
2085
2085
|
localStorage.promptSessionId = (response.data.promptSessionId);
|
|
2086
2086
|
})
|
|
2087
2087
|
.catch((error) => {
|
|
2088
|
-
|
|
2088
|
+
console.log('error');
|
|
2089
2089
|
const errorMsg = error.response?.data?.message || error.message;
|
|
2090
2090
|
|
|
2091
2091
|
this.loading = false;
|
|
@@ -2164,7 +2164,7 @@ export default {
|
|
|
2164
2164
|
});
|
|
2165
2165
|
},
|
|
2166
2166
|
subscribeToProgress() {
|
|
2167
|
-
const channel = `ProcessMaker.Models.User.${window.ProcessMaker?.
|
|
2167
|
+
const channel = `ProcessMaker.Models.User.${window.ProcessMaker?.user?.id}`;
|
|
2168
2168
|
const streamProgressEvent = '.ProcessMaker\\Package\\PackageAi\\Events\\GenerateArtifactsProgressEvent';
|
|
2169
2169
|
if (!window.Echo) {
|
|
2170
2170
|
return;
|
|
@@ -2210,7 +2210,7 @@ export default {
|
|
|
2210
2210
|
);
|
|
2211
2211
|
},
|
|
2212
2212
|
subscribeToGenerationCompleted() {
|
|
2213
|
-
const channel = `ProcessMaker.Models.User.${window.ProcessMaker?.
|
|
2213
|
+
const channel = `ProcessMaker.Models.User.${window.ProcessMaker?.user?.id}`;
|
|
2214
2214
|
const streamCompletedEvent = '.ProcessMaker\\Package\\PackageAi\\Events\\GenerateArtifactsCompletedEvent';
|
|
2215
2215
|
window.Echo.private(channel).listen(
|
|
2216
2216
|
streamCompletedEvent,
|
|
@@ -2223,7 +2223,7 @@ export default {
|
|
|
2223
2223
|
);
|
|
2224
2224
|
},
|
|
2225
2225
|
subscribeToErrors() {
|
|
2226
|
-
const channel = `ProcessMaker.Models.User.${window.ProcessMaker?.
|
|
2226
|
+
const channel = `ProcessMaker.Models.User.${window.ProcessMaker?.user?.id}`;
|
|
2227
2227
|
const streamProgressEvent = '.ProcessMaker\\Package\\PackageAi\\Events\\GenerateArtifactsErrorEvent';
|
|
2228
2228
|
window.Echo.private(channel).listen(
|
|
2229
2229
|
streamProgressEvent,
|
package/src/mixins/linkConfig.js
CHANGED
|
@@ -5,6 +5,9 @@ import { invalidNodeColor, setShapeColor, validNodeColor } from '@/components/no
|
|
|
5
5
|
import { getDefaultAnchorPoint } from '@/portsUtils';
|
|
6
6
|
import resetShapeColor from '@/components/resetShapeColor';
|
|
7
7
|
import store from '@/store';
|
|
8
|
+
import {
|
|
9
|
+
removeOutgoingAndIncomingRefsToFlow,
|
|
10
|
+
} from '@/components/crown/utils';
|
|
8
11
|
import {
|
|
9
12
|
COLOR_IDLE,
|
|
10
13
|
COLOR_COMPLETED,
|
|
@@ -235,6 +238,7 @@ export default {
|
|
|
235
238
|
});
|
|
236
239
|
// If the flow is valid, update the target and related information.
|
|
237
240
|
if (isValid) {
|
|
241
|
+
removeOutgoingAndIncomingRefsToFlow(this.node);
|
|
238
242
|
this.setTarget(this.currentTarget);
|
|
239
243
|
this.target = this.currentTarget;
|
|
240
244
|
// Optionally update definition links.
|
|
@@ -244,6 +248,23 @@ export default {
|
|
|
244
248
|
this.listeningToMouseleave = true;
|
|
245
249
|
// Store waypoints asynchronously.
|
|
246
250
|
await this.storeWaypoints();
|
|
251
|
+
const waypoint = [];
|
|
252
|
+
this.node.diagram.waypoint?.forEach(point => {
|
|
253
|
+
waypoint.push({
|
|
254
|
+
x: point.x,
|
|
255
|
+
y: point.y,
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-updateFlows', [
|
|
259
|
+
{
|
|
260
|
+
id: this.node.definition.id,
|
|
261
|
+
type: this.node.type,
|
|
262
|
+
name: this.node.definition.name,
|
|
263
|
+
waypoint,
|
|
264
|
+
sourceRefId: this.node.definition.sourceRef.id,
|
|
265
|
+
targetRefId: this.node.definition.targetRef.id,
|
|
266
|
+
},
|
|
267
|
+
]);
|
|
247
268
|
} else {
|
|
248
269
|
// If the flow is not valid, revert to the previous target.
|
|
249
270
|
this.setTarget(this.target);
|
|
@@ -8,6 +8,9 @@ import { getBoundaryEventData } from '@/components/nodes/boundaryEvent/boundaryE
|
|
|
8
8
|
import { InspectorUtils } from './inspector.utils';
|
|
9
9
|
import ColorUtil from '../colorUtil';
|
|
10
10
|
import { debounce } from 'lodash';
|
|
11
|
+
import {
|
|
12
|
+
removeOutgoingAndIncomingRefsToFlow,
|
|
13
|
+
} from '@/components/crown/utils';
|
|
11
14
|
export default class Multiplayer {
|
|
12
15
|
clientIO = null;
|
|
13
16
|
yDoc = null;
|
|
@@ -742,6 +745,7 @@ export default class Multiplayer {
|
|
|
742
745
|
let remount = false;
|
|
743
746
|
const flow = this.getNodeById(data.id);
|
|
744
747
|
if (flow && data.sourceRefId) {
|
|
748
|
+
removeOutgoingAndIncomingRefsToFlow(flow);
|
|
745
749
|
const sourceRef = this.getNodeById(data.sourceRefId);
|
|
746
750
|
|
|
747
751
|
const outgoing = sourceRef.definition.get('outgoing')
|