@camunda/play 6.1.4-rc.1 → 6.1.4-rc.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/build/play.js +138 -138
- package/build/play.js.map +1 -1
- package/package.json +1 -1
package/build/play.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsx as i, jsxs as f, Fragment as H } from "react/jsx-runtime";
|
|
|
2
2
|
import * as C from "react";
|
|
3
3
|
import Ut, { useState as y, useEffect as F, useCallback as U, createContext as mi, forwardRef as Ps, Children as wi, cloneElement as bi, Fragment as vi, useRef as cA, PureComponent as Ei, createRef as yi, useContext as tA, useLayoutEffect as dt, createElement as Bi } from "react";
|
|
4
4
|
import { makeObservable as nA, action as k, computed as V, observable as fA, autorun as Os, when as Ie, override as IA, makeAutoObservable as GA, reaction as OA } from "mobx";
|
|
5
|
-
import { getBusinessObject as
|
|
5
|
+
import { getBusinessObject as zA, is as K } from "bpmn-js/lib/util/ModelUtil.js";
|
|
6
6
|
import { isNil as ut, isEqual as eA, set as Ii } from "lodash-es";
|
|
7
|
-
import { hasEventDefinition as
|
|
7
|
+
import { hasEventDefinition as se, hasErrorEventDefinition as pt, isEventSubProcess as Mi } from "bpmn-js/lib/util/DiUtil.js";
|
|
8
8
|
import { connectors as Yt } from "@camunda/connectors-element-templates";
|
|
9
9
|
import Gs from "bpmn-moddle";
|
|
10
10
|
import { isLabel as Si } from "diagram-js/lib/util/ModelUtil.js";
|
|
@@ -12,8 +12,8 @@ import { observer as N } from "mobx-react";
|
|
|
12
12
|
import { WarningFilled as Di, CheckmarkOutline as Ci, RadioButtonChecked as ki, Error as ve, Information as Ti, Renew as Ni, Launch as Ls, Edit as xi, View as Vs, Add as Hs, CheckmarkFilled as Js, ErrorFilled as Fi, Link as Qi, PlayFilledAlt as ht, TrashCan as Ri, Playlist as Pi, Warning as Oi, Checkmark as ft, ArrowRight as Gi } from "@carbon/icons-react";
|
|
13
13
|
import u, { keyframes as gt, css as EA } from "styled-components";
|
|
14
14
|
import { createPortal as Y } from "react-dom";
|
|
15
|
-
import
|
|
16
|
-
import { MenuItemDivider as Li, SkeletonText as Me, SkeletonIcon as Us, Button as j, Tooltip as Se, Modal as
|
|
15
|
+
import XA, { PropTypes as Kt } from "prop-types";
|
|
16
|
+
import { MenuItemDivider as Li, SkeletonText as Me, SkeletonIcon as Us, Button as j, Tooltip as Se, Modal as ne, Stack as J, Link as aA, TextInput as UA, Callout as Vi, DefinitionTooltip as Hi, InlineNotification as Ys, ModalHeader as Ji, ModalBody as Ui, ComposedModal as Yi, ModalFooter as Ki, FormLabel as mt, ActionableNotification as De, Loading as Ce, InlineLoading as Ks, Form as Zs, MenuButton as Zi, MenuItem as Zt, Tag as qs, CodeSnippet as zs, TabList as qi, TabPanel as zi, Tabs as ji, Tab as Wi, Layer as js, TreeNode as Xi, TreeView as $i, Table as wt, TableHead as bt, TableRow as RA, TableHeader as PA, TableBody as vt, TableCell as sA, Toggletip as _i, ToggletipButton as Ar, ToggletipContent as er, IconButton as Ee, ProgressBar as tr, ComboBox as Ws, UnorderedList as sr, ListItem as Oe } from "@carbon/react";
|
|
17
17
|
import { styles as lA } from "@carbon/elements";
|
|
18
18
|
import "monaco-editor/esm/vs/language/json/monaco.contribution.js";
|
|
19
19
|
import "monaco-editor/esm/vs/editor/browser/coreCommands.js";
|
|
@@ -29,7 +29,7 @@ import { HighContrastCanvasModule as ur } from "@camunda/improved-canvas";
|
|
|
29
29
|
import pr from "bpmn-js/lib/features/outline/index.js";
|
|
30
30
|
import { useFloating as hr, autoUpdate as fr, arrow as gr, offset as mr, flip as wr } from "@floating-ui/react-dom";
|
|
31
31
|
const $e = (e, A) => {
|
|
32
|
-
const t =
|
|
32
|
+
const t = zA(e);
|
|
33
33
|
let s = [];
|
|
34
34
|
const n = t.get("extensionElements");
|
|
35
35
|
if (n !== void 0) {
|
|
@@ -60,7 +60,7 @@ function $s({
|
|
|
60
60
|
}) {
|
|
61
61
|
return `jobCompletion ${e} ${A}`;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function pe({
|
|
64
64
|
processId: e,
|
|
65
65
|
elementId: A,
|
|
66
66
|
variables: t
|
|
@@ -177,7 +177,7 @@ class vr {
|
|
|
177
177
|
element: A,
|
|
178
178
|
useCache: !0,
|
|
179
179
|
processId: this.processId
|
|
180
|
-
}), r = t === s ? n : "manual", a =
|
|
180
|
+
}), r = t === s ? n : "manual", a = zA(A).$type;
|
|
181
181
|
this.mixpanelTrack?.("bpmnelement:completed", {
|
|
182
182
|
fileId: this.diagramId,
|
|
183
183
|
processId: this.processId,
|
|
@@ -654,7 +654,7 @@ const M = new Br(), TA = 403, $ = {
|
|
|
654
654
|
);
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
}, Ir = 255, en = "var(--cds-spacing-08)",
|
|
657
|
+
}, Ir = 255, en = "var(--cds-spacing-08)", he = "Instance started", Mr = [
|
|
658
658
|
"bpmn:ServiceTask",
|
|
659
659
|
"bpmn:UserTask",
|
|
660
660
|
"bpmn:ReceiveTask",
|
|
@@ -725,7 +725,7 @@ class Cr {
|
|
|
725
725
|
this.state = { ...Ge }, this.pollingDisposer?.(), this.stopPolling();
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
|
-
const
|
|
728
|
+
const Ae = new Cr();
|
|
729
729
|
class MA {
|
|
730
730
|
boundCallback;
|
|
731
731
|
intervalId = null;
|
|
@@ -741,7 +741,7 @@ class MA {
|
|
|
741
741
|
this.fetchDataDisposer = Ie(this.initialDataFetchCondition, () => {
|
|
742
742
|
this.fetchData();
|
|
743
743
|
}), this.pollingDisposer = Os(() => {
|
|
744
|
-
this.pollDataCondition() &&
|
|
744
|
+
this.pollDataCondition() && Ae.isClusterHealthy ? this.intervalId === null && this.startPolling(this.pollData) : this.stopPolling();
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
747
|
startPolling(A) {
|
|
@@ -772,11 +772,11 @@ function et(e) {
|
|
|
772
772
|
return e?.loopCharacteristics?.$type === "bpmn:MultiInstanceLoopCharacteristics";
|
|
773
773
|
}
|
|
774
774
|
function Bt(e) {
|
|
775
|
-
const A =
|
|
775
|
+
const A = zA(e);
|
|
776
776
|
return LA(A, "zeebe:TaskDefinition")?.type;
|
|
777
777
|
}
|
|
778
778
|
function Tr(e) {
|
|
779
|
-
const A =
|
|
779
|
+
const A = zA(e), t = LA(
|
|
780
780
|
A,
|
|
781
781
|
"zeebe:ExecutionListeners"
|
|
782
782
|
);
|
|
@@ -850,19 +850,19 @@ function It(e) {
|
|
|
850
850
|
return K(e, "bpmn:StartEvent");
|
|
851
851
|
}
|
|
852
852
|
function Mt(e) {
|
|
853
|
-
return It(e) &&
|
|
853
|
+
return It(e) && se(e, "bpmn:MessageEventDefinition");
|
|
854
854
|
}
|
|
855
855
|
function St(e) {
|
|
856
|
-
return It(e) &&
|
|
856
|
+
return It(e) && se(e, "bpmn:SignalEventDefinition");
|
|
857
857
|
}
|
|
858
858
|
function Hr(e) {
|
|
859
859
|
return K(e, "bpmn:ReceiveTask");
|
|
860
860
|
}
|
|
861
861
|
function Jr(e) {
|
|
862
|
-
return K(e, "bpmn:BoundaryEvent") &&
|
|
862
|
+
return K(e, "bpmn:BoundaryEvent") && se(e, "bpmn:MessageEventDefinition");
|
|
863
863
|
}
|
|
864
864
|
function Ur(e) {
|
|
865
|
-
return K(e, "bpmn:BoundaryEvent") &&
|
|
865
|
+
return K(e, "bpmn:BoundaryEvent") && se(e, "bpmn:SignalEventDefinition");
|
|
866
866
|
}
|
|
867
867
|
function Yr(e) {
|
|
868
868
|
return Mt(e) || Jr(e) || nn(e);
|
|
@@ -871,10 +871,10 @@ function Kr(e) {
|
|
|
871
871
|
return St(e) || Ur(e) || rn(e);
|
|
872
872
|
}
|
|
873
873
|
function nn(e) {
|
|
874
|
-
return K(e, "bpmn:IntermediateCatchEvent") &&
|
|
874
|
+
return K(e, "bpmn:IntermediateCatchEvent") && se(e, "bpmn:MessageEventDefinition");
|
|
875
875
|
}
|
|
876
876
|
function rn(e) {
|
|
877
|
-
return K(e, "bpmn:IntermediateCatchEvent") &&
|
|
877
|
+
return K(e, "bpmn:IntermediateCatchEvent") && se(e, "bpmn:SignalEventDefinition");
|
|
878
878
|
}
|
|
879
879
|
function an(e) {
|
|
880
880
|
return Mt(e) && e.$parent?.triggeredByEvent;
|
|
@@ -935,7 +935,7 @@ function Wr(e) {
|
|
|
935
935
|
});
|
|
936
936
|
}
|
|
937
937
|
function cn(e) {
|
|
938
|
-
const A =
|
|
938
|
+
const A = zA(e), { connectorIds: t, connectorJobTypes: s, inboundConnectorJobTypes: n } = Nr(), r = A.get("modelerTemplate");
|
|
939
939
|
return r ? !!(t.includes(r) || s.includes(
|
|
940
940
|
LA(e, "zeebe:TaskDefinition")?.type
|
|
941
941
|
) || n.includes(
|
|
@@ -1172,7 +1172,7 @@ class sa extends MA {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
const W = new sa();
|
|
1174
1174
|
function Wt(e) {
|
|
1175
|
-
return
|
|
1175
|
+
return zA(e).get("extensionElements")?.get("values")?.find((n) => K(n, "zeebe:FormDefinition"));
|
|
1176
1176
|
}
|
|
1177
1177
|
const na = (e) => K(e, "bpmn:BusinessRuleTask"), ia = (e) => e?.get("values").filter((A) => A.$type === "zeebe:CalledDecision" || A.$type === "zeebe:calledDecision")[0], ra = (e) => {
|
|
1178
1178
|
const A = ia(e);
|
|
@@ -1991,11 +1991,11 @@ function oA(e, A) {
|
|
|
1991
1991
|
function is(e, A) {
|
|
1992
1992
|
localStorage.setItem(e, JSON.stringify(A));
|
|
1993
1993
|
}
|
|
1994
|
-
function
|
|
1994
|
+
function ce(e) {
|
|
1995
1995
|
return JSON.parse(localStorage.getItem(e) || "[]");
|
|
1996
1996
|
}
|
|
1997
1997
|
function Ma(e) {
|
|
1998
|
-
const A =
|
|
1998
|
+
const A = ce(e);
|
|
1999
1999
|
return A.length > 0 && A[0].action === "startInstance";
|
|
2000
2000
|
}
|
|
2001
2001
|
function rs(e) {
|
|
@@ -2010,7 +2010,7 @@ function rs(e) {
|
|
|
2010
2010
|
return null;
|
|
2011
2011
|
});
|
|
2012
2012
|
}
|
|
2013
|
-
const
|
|
2013
|
+
const qA = (e) => {
|
|
2014
2014
|
if (e == null)
|
|
2015
2015
|
return !1;
|
|
2016
2016
|
try {
|
|
@@ -2222,7 +2222,7 @@ const rA = new Ca(), ka = (e, A) => {
|
|
|
2222
2222
|
const t = e.substring(1), s = A.find(
|
|
2223
2223
|
(n) => n.name === t
|
|
2224
2224
|
);
|
|
2225
|
-
return s?.value &&
|
|
2225
|
+
return s?.value && qA(s?.value) ? JSON.parse(s.value) : e.substring(1);
|
|
2226
2226
|
}
|
|
2227
2227
|
};
|
|
2228
2228
|
class Ta {
|
|
@@ -2255,7 +2255,7 @@ class Ta {
|
|
|
2255
2255
|
);
|
|
2256
2256
|
}
|
|
2257
2257
|
}
|
|
2258
|
-
const
|
|
2258
|
+
const le = new Ta();
|
|
2259
2259
|
class Na {
|
|
2260
2260
|
constructor() {
|
|
2261
2261
|
nA(this, {
|
|
@@ -2280,7 +2280,7 @@ class Na {
|
|
|
2280
2280
|
);
|
|
2281
2281
|
}
|
|
2282
2282
|
}
|
|
2283
|
-
const
|
|
2283
|
+
const de = new Na(), cs = ({
|
|
2284
2284
|
instanceKey: e,
|
|
2285
2285
|
elementId: A,
|
|
2286
2286
|
candidates: t
|
|
@@ -2432,7 +2432,7 @@ class fn {
|
|
|
2432
2432
|
if (A === "start-event")
|
|
2433
2433
|
o = await this.startNewInstance(t, n);
|
|
2434
2434
|
else if (A === "message-start-event") {
|
|
2435
|
-
const c = s === void 0 ?
|
|
2435
|
+
const c = s === void 0 ? le.startMessageSubscriptionCandidates?.[0] : le.startMessageSubscriptionCandidates?.find(
|
|
2436
2436
|
(l) => l.elementId === s
|
|
2437
2437
|
);
|
|
2438
2438
|
c === void 0 ? o = await this.startNewInstance(t, n) : (await this.handleMessageEvent({
|
|
@@ -2442,7 +2442,7 @@ class fn {
|
|
|
2442
2442
|
elementId: c.elementId
|
|
2443
2443
|
}), o = await rs(r) ?? void 0);
|
|
2444
2444
|
} else if (A == "broadcast-signal-event") {
|
|
2445
|
-
const c = s === void 0 ?
|
|
2445
|
+
const c = s === void 0 ? de.startSignalCandidates?.[0] : de.startSignalCandidates?.find(
|
|
2446
2446
|
(l) => l.elementId === s
|
|
2447
2447
|
);
|
|
2448
2448
|
c === void 0 ? o = await this.startNewInstance(t, n) : (await this.handleSignalEvent({
|
|
@@ -2710,7 +2710,7 @@ function Fa(e, A) {
|
|
|
2710
2710
|
};
|
|
2711
2711
|
}
|
|
2712
2712
|
function Qa(e) {
|
|
2713
|
-
if (!
|
|
2713
|
+
if (!qA(e))
|
|
2714
2714
|
return {
|
|
2715
2715
|
isSuccess: !1,
|
|
2716
2716
|
errorMessage: "Invalid JSON format"
|
|
@@ -2935,7 +2935,7 @@ function Ya({
|
|
|
2935
2935
|
);
|
|
2936
2936
|
}
|
|
2937
2937
|
}
|
|
2938
|
-
function
|
|
2938
|
+
function $A(e) {
|
|
2939
2939
|
const A = Za(e)?.message;
|
|
2940
2940
|
if (A)
|
|
2941
2941
|
return A;
|
|
@@ -3029,7 +3029,7 @@ let qa = class extends fn {
|
|
|
3029
3029
|
return this.#A({
|
|
3030
3030
|
title: _e,
|
|
3031
3031
|
subtitle: "Network error",
|
|
3032
|
-
errorMessage:
|
|
3032
|
+
errorMessage: $A(r)
|
|
3033
3033
|
}), this.handleLoadError([]), [];
|
|
3034
3034
|
}
|
|
3035
3035
|
if (t.length === 0)
|
|
@@ -3105,8 +3105,8 @@ let qa = class extends fn {
|
|
|
3105
3105
|
return r && this.#A({
|
|
3106
3106
|
title: "Failed to create test scenario file",
|
|
3107
3107
|
subtitle: "Please try again, or contact support",
|
|
3108
|
-
errorMessage:
|
|
3109
|
-
}), { isSuccess: !1, errorMessage:
|
|
3108
|
+
errorMessage: $A(d)
|
|
3109
|
+
}), { isSuccess: !1, errorMessage: $A(d) };
|
|
3110
3110
|
}
|
|
3111
3111
|
return {
|
|
3112
3112
|
isSuccess: !0,
|
|
@@ -3168,7 +3168,7 @@ let qa = class extends fn {
|
|
|
3168
3168
|
this.#A({
|
|
3169
3169
|
title: "Failed to add scenario",
|
|
3170
3170
|
subtitle: "Failed to update test scenario file",
|
|
3171
|
-
errorMessage:
|
|
3171
|
+
errorMessage: $A(l)
|
|
3172
3172
|
});
|
|
3173
3173
|
return;
|
|
3174
3174
|
} finally {
|
|
@@ -3235,7 +3235,7 @@ let qa = class extends fn {
|
|
|
3235
3235
|
this.#A({
|
|
3236
3236
|
title: "Failed to update scenario",
|
|
3237
3237
|
subtitle: "Failed to update test scenario file",
|
|
3238
|
-
errorMessage:
|
|
3238
|
+
errorMessage: $A(p)
|
|
3239
3239
|
});
|
|
3240
3240
|
return;
|
|
3241
3241
|
} finally {
|
|
@@ -3282,7 +3282,7 @@ let qa = class extends fn {
|
|
|
3282
3282
|
this.#A({
|
|
3283
3283
|
title: "Failed to delete scenario",
|
|
3284
3284
|
subtitle: "Please try again, or contact support",
|
|
3285
|
-
errorMessage:
|
|
3285
|
+
errorMessage: $A(a)
|
|
3286
3286
|
});
|
|
3287
3287
|
return;
|
|
3288
3288
|
} finally {
|
|
@@ -3679,7 +3679,7 @@ class ja extends MA {
|
|
|
3679
3679
|
super.reset(), this.state = { ...us };
|
|
3680
3680
|
}
|
|
3681
3681
|
}
|
|
3682
|
-
const
|
|
3682
|
+
const ue = new ja(), ps = {
|
|
3683
3683
|
userTasks: [],
|
|
3684
3684
|
status: "initial"
|
|
3685
3685
|
};
|
|
@@ -3743,7 +3743,7 @@ class Xa {
|
|
|
3743
3743
|
}) => (await M.completeJob({
|
|
3744
3744
|
taskDefinitionType: A,
|
|
3745
3745
|
processInstanceKey: t,
|
|
3746
|
-
variables:
|
|
3746
|
+
variables: qA(s) ? s : "{}",
|
|
3747
3747
|
elementId: n
|
|
3748
3748
|
}))?.success !== !1;
|
|
3749
3749
|
throwError = async ({
|
|
@@ -3778,7 +3778,7 @@ class Xa {
|
|
|
3778
3778
|
this.state = { ...hs };
|
|
3779
3779
|
};
|
|
3780
3780
|
}
|
|
3781
|
-
const
|
|
3781
|
+
const ee = new Xa(), fs = {
|
|
3782
3782
|
childInstances: [],
|
|
3783
3783
|
status: "initial"
|
|
3784
3784
|
};
|
|
@@ -3876,7 +3876,7 @@ class _a extends MA {
|
|
|
3876
3876
|
super.reset(), this.state = { ...gs };
|
|
3877
3877
|
}
|
|
3878
3878
|
}
|
|
3879
|
-
const
|
|
3879
|
+
const te = new _a(), ms = {
|
|
3880
3880
|
processInstances: [],
|
|
3881
3881
|
status: "initial"
|
|
3882
3882
|
};
|
|
@@ -3999,8 +3999,8 @@ function to({
|
|
|
3999
3999
|
[]
|
|
4000
4000
|
), F(() => {
|
|
4001
4001
|
if (!(e === "saas" && A === void 0))
|
|
4002
|
-
return s ? (m.init(), Z.init(),
|
|
4003
|
-
|
|
4002
|
+
return s ? (m.init(), Z.init(), te.init(), rA.init(), nt.init(), Be.init(), W.init(), pA.init(), tt.init(), ue.init()) : st.init(r), () => {
|
|
4003
|
+
ee.reset(), ue.reset(), Be.reset(), pA.reset(), tt.reset(), W.reset(), Z.reset(), te.reset(), rA.reset(), nt.reset(), st.reset(), wA.reset();
|
|
4004
4004
|
};
|
|
4005
4005
|
}, [e, A, s, r]), { reInitializePlay: U(
|
|
4006
4006
|
async ({
|
|
@@ -4570,7 +4570,7 @@ const bs = 5, mo = gt`
|
|
|
4570
4570
|
),
|
|
4571
4571
|
document.body
|
|
4572
4572
|
);
|
|
4573
|
-
},
|
|
4573
|
+
}, _A = bo(vo), Eo = u.ul`
|
|
4574
4574
|
list-style: none;
|
|
4575
4575
|
margin: 4px 0 0 0;
|
|
4576
4576
|
position: fixed;
|
|
@@ -4708,7 +4708,7 @@ function Mo({
|
|
|
4708
4708
|
role: "menuitem",
|
|
4709
4709
|
$noPadding: A,
|
|
4710
4710
|
...s,
|
|
4711
|
-
children: /* @__PURE__ */ i(
|
|
4711
|
+
children: /* @__PURE__ */ i(_A, { title: e, showOnlyOnOverflow: !0, children: /* @__PURE__ */ i("div", { className: "overflow-ellipsis", children: e }) })
|
|
4712
4712
|
}
|
|
4713
4713
|
);
|
|
4714
4714
|
}
|
|
@@ -4769,12 +4769,12 @@ let ZA = class extends Ei {
|
|
|
4769
4769
|
}
|
|
4770
4770
|
};
|
|
4771
4771
|
ZA.propTypes = {
|
|
4772
|
-
onClose:
|
|
4773
|
-
anchorEl:
|
|
4774
|
-
align:
|
|
4775
|
-
open:
|
|
4776
|
-
size:
|
|
4777
|
-
width:
|
|
4772
|
+
onClose: XA.func,
|
|
4773
|
+
anchorEl: XA.object,
|
|
4774
|
+
align: XA.string,
|
|
4775
|
+
open: XA.bool.isRequired,
|
|
4776
|
+
size: XA.string,
|
|
4777
|
+
width: XA.number
|
|
4778
4778
|
};
|
|
4779
4779
|
ZA.defaultProps = {
|
|
4780
4780
|
open: !1,
|
|
@@ -4816,7 +4816,7 @@ const mn = u.header`
|
|
|
4816
4816
|
overflow: hidden;
|
|
4817
4817
|
white-space: nowrap;
|
|
4818
4818
|
width: 176px;
|
|
4819
|
-
`,
|
|
4819
|
+
`, ae = u.td`
|
|
4820
4820
|
color: #525252;
|
|
4821
4821
|
font-size: 14px;
|
|
4822
4822
|
font-family: IBM Plex Sans;
|
|
@@ -4939,7 +4939,7 @@ const iA = new Qo(), Te = (e) => {
|
|
|
4939
4939
|
({ title: e, isOpen: A, onScenarioSaved: t, onClose: s, topContent: n }) => {
|
|
4940
4940
|
const [r, a] = y(""), [o, c] = y(null);
|
|
4941
4941
|
return /* @__PURE__ */ i(
|
|
4942
|
-
|
|
4942
|
+
ne,
|
|
4943
4943
|
{
|
|
4944
4944
|
"data-testid": "save-scenario-modal",
|
|
4945
4945
|
open: A,
|
|
@@ -5091,7 +5091,7 @@ const iA = new Qo(), Te = (e) => {
|
|
|
5091
5091
|
text: "You cannot update scenarios in this diagram's project. Contact your project admin to give you the necessary permissions."
|
|
5092
5092
|
}, Lo = N(
|
|
5093
5093
|
({ title: e, scenarioName: A, isOpen: t, onScenarioUpdated: s, onClose: n }) => /* @__PURE__ */ i(
|
|
5094
|
-
|
|
5094
|
+
ne,
|
|
5095
5095
|
{
|
|
5096
5096
|
size: "sm",
|
|
5097
5097
|
"data-testid": "update-scenario-modal",
|
|
@@ -5148,30 +5148,30 @@ const iA = new Qo(), Te = (e) => {
|
|
|
5148
5148
|
)
|
|
5149
5149
|
] });
|
|
5150
5150
|
}
|
|
5151
|
-
),
|
|
5151
|
+
), oe = "140px", Ho = ({
|
|
5152
5152
|
isReplayScenariosEnabled: e,
|
|
5153
5153
|
isCalledProcess: A
|
|
5154
5154
|
}) => [
|
|
5155
5155
|
{
|
|
5156
5156
|
name: "Process Instance Key",
|
|
5157
|
-
skeletonWidth:
|
|
5157
|
+
skeletonWidth: oe
|
|
5158
5158
|
},
|
|
5159
5159
|
...A ? [] : [
|
|
5160
5160
|
{
|
|
5161
5161
|
name: "Process Instances",
|
|
5162
|
-
skeletonWidth:
|
|
5162
|
+
skeletonWidth: oe
|
|
5163
5163
|
}
|
|
5164
5164
|
],
|
|
5165
5165
|
...A ? [
|
|
5166
5166
|
{
|
|
5167
5167
|
name: "Parent Process Instance Key",
|
|
5168
|
-
skeletonWidth:
|
|
5168
|
+
skeletonWidth: oe
|
|
5169
5169
|
}
|
|
5170
5170
|
] : [],
|
|
5171
5171
|
...e && !A ? [
|
|
5172
5172
|
{
|
|
5173
5173
|
name: "Scenario",
|
|
5174
|
-
skeletonWidth:
|
|
5174
|
+
skeletonWidth: oe
|
|
5175
5175
|
}
|
|
5176
5176
|
] : []
|
|
5177
5177
|
], Jo = ({
|
|
@@ -5181,13 +5181,13 @@ const iA = new Qo(), Te = (e) => {
|
|
|
5181
5181
|
/* @__PURE__ */ i(To, {}),
|
|
5182
5182
|
/* @__PURE__ */ f(bn, { children: [
|
|
5183
5183
|
/* @__PURE__ */ i("thead", { children: /* @__PURE__ */ i("tr", { children: e.map(({ name: t }, s) => /* @__PURE__ */ i(vn, { children: t }, s)) }) }),
|
|
5184
|
-
/* @__PURE__ */ i("tbody", { children: /* @__PURE__ */ i("tr", { children: e.map(({ skeletonWidth: t }, s) => /* @__PURE__ */ i(
|
|
5184
|
+
/* @__PURE__ */ i("tbody", { children: /* @__PURE__ */ i("tr", { children: e.map(({ skeletonWidth: t }, s) => /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(vs, { width: t }) }, s)) }) })
|
|
5185
5185
|
] }),
|
|
5186
5186
|
A && /* @__PURE__ */ i(
|
|
5187
5187
|
vs,
|
|
5188
5188
|
{
|
|
5189
5189
|
"data-testid": "scenarios-skeleton",
|
|
5190
|
-
width:
|
|
5190
|
+
width: oe,
|
|
5191
5191
|
$shouldAlignRight: !0
|
|
5192
5192
|
}
|
|
5193
5193
|
)
|
|
@@ -5203,7 +5203,7 @@ const iA = new Qo(), Te = (e) => {
|
|
|
5203
5203
|
${({ $hasIcon: e }) => e && EA`
|
|
5204
5204
|
padding-right: 15px;
|
|
5205
5205
|
`}
|
|
5206
|
-
`,
|
|
5206
|
+
`, jA = ({
|
|
5207
5207
|
title: e,
|
|
5208
5208
|
size: A = "md",
|
|
5209
5209
|
readOnly: t = !1,
|
|
@@ -5425,7 +5425,7 @@ const Bn = "#a8a8a8", rt = "#f4f4f4", jo = u.div`
|
|
|
5425
5425
|
function ic(e, A) {
|
|
5426
5426
|
if (!KA(A))
|
|
5427
5427
|
return !1;
|
|
5428
|
-
const t =
|
|
5428
|
+
const t = zA(e);
|
|
5429
5429
|
if (ke(t) === A)
|
|
5430
5430
|
return !1;
|
|
5431
5431
|
const s = rc(t), n = ac(s), r = n.properties.find(
|
|
@@ -5604,7 +5604,7 @@ const xe = N(
|
|
|
5604
5604
|
return F(() => {
|
|
5605
5605
|
d && B.current?.hideMarkers();
|
|
5606
5606
|
}, [d]), /* @__PURE__ */ i(
|
|
5607
|
-
|
|
5607
|
+
jA,
|
|
5608
5608
|
{
|
|
5609
5609
|
title: "Broadcast signal",
|
|
5610
5610
|
isVisible: e,
|
|
@@ -5632,10 +5632,10 @@ const xe = N(
|
|
|
5632
5632
|
variables: l,
|
|
5633
5633
|
elementId: n.id
|
|
5634
5634
|
}), G.trackUserCompletesElement(n, l), s ? r.displayNotification?.success({
|
|
5635
|
-
title:
|
|
5635
|
+
title: he
|
|
5636
5636
|
}) : r.displayNotification?.info({
|
|
5637
5637
|
title: `Signal "${o}" broadcasted`
|
|
5638
|
-
}),
|
|
5638
|
+
}), pe({
|
|
5639
5639
|
processId: w.processId,
|
|
5640
5640
|
elementId: n.id,
|
|
5641
5641
|
variables: l ?? ""
|
|
@@ -5721,7 +5721,7 @@ function cc(e) {
|
|
|
5721
5721
|
signalName: c.signalName,
|
|
5722
5722
|
variables: p
|
|
5723
5723
|
}), G.trackUserCompletesElement(e, p), l ? A?.success({
|
|
5724
|
-
title:
|
|
5724
|
+
title: he
|
|
5725
5725
|
}) : A?.info({
|
|
5726
5726
|
title: `Signal "${c.signalName}" broadcasted`
|
|
5727
5727
|
})) : A?.error($);
|
|
@@ -5791,7 +5791,7 @@ const dc = u.div`
|
|
|
5791
5791
|
return F(() => {
|
|
5792
5792
|
R && Q.current?.hideMarkers();
|
|
5793
5793
|
}, [R]), /* @__PURE__ */ i(
|
|
5794
|
-
|
|
5794
|
+
jA,
|
|
5795
5795
|
{
|
|
5796
5796
|
title: "Publish message",
|
|
5797
5797
|
isVisible: e,
|
|
@@ -5835,11 +5835,11 @@ const dc = u.div`
|
|
|
5835
5835
|
timeToLive: g,
|
|
5836
5836
|
messageId: B
|
|
5837
5837
|
}), G.trackUserCompletesElement(a, S), r ? o.displayNotification?.success({
|
|
5838
|
-
title:
|
|
5838
|
+
title: he
|
|
5839
5839
|
}) : o.displayNotification?.info({
|
|
5840
5840
|
title: `Message "${l}" published`,
|
|
5841
5841
|
subtitle: `Correlation key: ${p}`
|
|
5842
|
-
}),
|
|
5842
|
+
}), pe({
|
|
5843
5843
|
processId: w.processId,
|
|
5844
5844
|
elementId: a.id,
|
|
5845
5845
|
variables: S ?? ""
|
|
@@ -5983,7 +5983,7 @@ function uc({
|
|
|
5983
5983
|
messageCorrelationKey: l.keyCandidate,
|
|
5984
5984
|
variables: h
|
|
5985
5985
|
}), G.trackUserCompletesElement(e, h), d ? t?.success({
|
|
5986
|
-
title:
|
|
5986
|
+
title: he
|
|
5987
5987
|
}) : t?.info({
|
|
5988
5988
|
title: `Message "${l.messageName}" published`,
|
|
5989
5989
|
subtitle: `Correlation key: ${l.keyCandidate}`
|
|
@@ -6059,12 +6059,12 @@ function pc({
|
|
|
6059
6059
|
n?.error($), s(!1);
|
|
6060
6060
|
return;
|
|
6061
6061
|
}
|
|
6062
|
-
G.trackUserCompletesElement(e, g),
|
|
6062
|
+
G.trackUserCompletesElement(e, g), pe({
|
|
6063
6063
|
processId: b,
|
|
6064
6064
|
elementId: e.id,
|
|
6065
6065
|
variables: g
|
|
6066
6066
|
}), n?.success({
|
|
6067
|
-
title:
|
|
6067
|
+
title: he,
|
|
6068
6068
|
subtitle: B
|
|
6069
6069
|
});
|
|
6070
6070
|
},
|
|
@@ -6106,7 +6106,7 @@ const Dn = ({
|
|
|
6106
6106
|
}, [t, a]), F(() => {
|
|
6107
6107
|
I && L.current?.hideMarkers();
|
|
6108
6108
|
}, [I]), /* @__PURE__ */ i(
|
|
6109
|
-
|
|
6109
|
+
jA,
|
|
6110
6110
|
{
|
|
6111
6111
|
title: e,
|
|
6112
6112
|
readOnly: h,
|
|
@@ -6226,10 +6226,10 @@ const Dn = ({
|
|
|
6226
6226
|
element: e,
|
|
6227
6227
|
processId: A
|
|
6228
6228
|
}) => {
|
|
6229
|
-
const t = ke(e), s = _s({
|
|
6229
|
+
const t = ke(e) || "{}", s = _s({
|
|
6230
6230
|
processId: A,
|
|
6231
6231
|
elementId: e.id
|
|
6232
|
-
}), n = JSON.parse(s
|
|
6232
|
+
}) || "{}", n = qA(s) ? JSON.parse(s) : {}, r = qA(t) ? JSON.parse(t) : {};
|
|
6233
6233
|
return { cachedVariables: n, variablesFromExampleData: r };
|
|
6234
6234
|
}, fc = (e, A) => e.reduce(
|
|
6235
6235
|
(t, s) => (s in A && (t[s] = A[s]), t),
|
|
@@ -6316,8 +6316,8 @@ function gc({
|
|
|
6316
6316
|
...D ? {} : AA,
|
|
6317
6317
|
...gA
|
|
6318
6318
|
}, z = t.sanitizePrefillData ? fc(ir(Q), dA) : dA;
|
|
6319
|
-
let
|
|
6320
|
-
return eA(z, X) ?
|
|
6319
|
+
let WA = "none";
|
|
6320
|
+
return eA(z, X) ? WA = "bpmn" : !D && eA(z, AA) && (WA = "cache"), a(WA), c(JSON.stringify(z)), z;
|
|
6321
6321
|
},
|
|
6322
6322
|
[S, t]
|
|
6323
6323
|
), v = U(
|
|
@@ -6464,7 +6464,7 @@ const kn = ({
|
|
|
6464
6464
|
}
|
|
6465
6465
|
}
|
|
6466
6466
|
return /* @__PURE__ */ i(
|
|
6467
|
-
|
|
6467
|
+
jA,
|
|
6468
6468
|
{
|
|
6469
6469
|
title: a,
|
|
6470
6470
|
size: "sm",
|
|
@@ -6643,7 +6643,7 @@ const Tn = N(
|
|
|
6643
6643
|
);
|
|
6644
6644
|
if (s === void 0)
|
|
6645
6645
|
return null;
|
|
6646
|
-
const n =
|
|
6646
|
+
const n = le.startMessageSubscriptionCandidates?.find(
|
|
6647
6647
|
({ elementId: a }) => a === t
|
|
6648
6648
|
);
|
|
6649
6649
|
if (n)
|
|
@@ -6668,7 +6668,7 @@ const Tn = N(
|
|
|
6668
6668
|
)
|
|
6669
6669
|
}
|
|
6670
6670
|
);
|
|
6671
|
-
const r =
|
|
6671
|
+
const r = de.startSignalCandidates?.find(
|
|
6672
6672
|
({ elementId: a }) => a === t
|
|
6673
6673
|
);
|
|
6674
6674
|
return r ? /* @__PURE__ */ i(
|
|
@@ -6778,7 +6778,7 @@ const Nn = N(() => {
|
|
|
6778
6778
|
/* @__PURE__ */ f(bn, { children: [
|
|
6779
6779
|
/* @__PURE__ */ i("thead", { children: /* @__PURE__ */ i("tr", { children: S.map(({ name: D }) => /* @__PURE__ */ i(vn, { children: D }, D)) }) }),
|
|
6780
6780
|
/* @__PURE__ */ i("tbody", { children: /* @__PURE__ */ f("tr", { children: [
|
|
6781
|
-
/* @__PURE__ */ i(
|
|
6781
|
+
/* @__PURE__ */ i(ae, { style: { overflow: "visible" }, children: h ? /* @__PURE__ */ i(
|
|
6782
6782
|
Se,
|
|
6783
6783
|
{
|
|
6784
6784
|
label: "View process instance in Operate",
|
|
@@ -6799,7 +6799,7 @@ const Nn = N(() => {
|
|
|
6799
6799
|
)
|
|
6800
6800
|
}
|
|
6801
6801
|
) : r }),
|
|
6802
|
-
!l && /* @__PURE__ */ i(
|
|
6802
|
+
!l && /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(
|
|
6803
6803
|
Je,
|
|
6804
6804
|
{
|
|
6805
6805
|
variant: "text",
|
|
@@ -6809,7 +6809,7 @@ const Nn = N(() => {
|
|
|
6809
6809
|
children: "View all"
|
|
6810
6810
|
}
|
|
6811
6811
|
) }),
|
|
6812
|
-
l && /* @__PURE__ */ i(
|
|
6812
|
+
l && /* @__PURE__ */ i(ae, { children: R ? /* @__PURE__ */ i(
|
|
6813
6813
|
Je,
|
|
6814
6814
|
{
|
|
6815
6815
|
"data-testid": "view-parent-process",
|
|
@@ -6822,7 +6822,7 @@ const Nn = N(() => {
|
|
|
6822
6822
|
children: o.parentKey
|
|
6823
6823
|
}
|
|
6824
6824
|
) : "None" }),
|
|
6825
|
-
n && !l && /* @__PURE__ */ i(
|
|
6825
|
+
n && !l && /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ f(So, { children: [
|
|
6826
6826
|
/* @__PURE__ */ i(Do, { title: P ?? c, children: P ?? c }),
|
|
6827
6827
|
/* @__PURE__ */ i(
|
|
6828
6828
|
Je,
|
|
@@ -6877,11 +6877,11 @@ const Nn = N(() => {
|
|
|
6877
6877
|
processId: B,
|
|
6878
6878
|
name: P,
|
|
6879
6879
|
processInstanceId: r,
|
|
6880
|
-
actions:
|
|
6880
|
+
actions: ce(
|
|
6881
6881
|
q(r)
|
|
6882
6882
|
),
|
|
6883
6883
|
coveredFlowNodes: W.elementInstancesWithType,
|
|
6884
|
-
coveredSequenceFlows:
|
|
6884
|
+
coveredSequenceFlows: te.state.sequenceFlows
|
|
6885
6885
|
});
|
|
6886
6886
|
} catch {
|
|
6887
6887
|
t?.error($);
|
|
@@ -6913,11 +6913,11 @@ const Nn = N(() => {
|
|
|
6913
6913
|
processId: B,
|
|
6914
6914
|
name: D,
|
|
6915
6915
|
processInstanceId: r,
|
|
6916
|
-
actions:
|
|
6916
|
+
actions: ce(
|
|
6917
6917
|
q(r)
|
|
6918
6918
|
),
|
|
6919
6919
|
coveredFlowNodes: W.elementInstancesWithType,
|
|
6920
|
-
coveredSequenceFlows:
|
|
6920
|
+
coveredSequenceFlows: te.state.sequenceFlows
|
|
6921
6921
|
});
|
|
6922
6922
|
} catch {
|
|
6923
6923
|
t?.error($);
|
|
@@ -7106,7 +7106,7 @@ function Ke(e, A = " ") {
|
|
|
7106
7106
|
return e;
|
|
7107
7107
|
}
|
|
7108
7108
|
}
|
|
7109
|
-
const Jc = u(
|
|
7109
|
+
const Jc = u(ne)`
|
|
7110
7110
|
h3 {
|
|
7111
7111
|
font-weight: 400;
|
|
7112
7112
|
}
|
|
@@ -7174,7 +7174,7 @@ const Jc = u(se)`
|
|
|
7174
7174
|
height: "10vh",
|
|
7175
7175
|
onChange: (g) => {
|
|
7176
7176
|
const b = g ?? "";
|
|
7177
|
-
p(b), o(
|
|
7177
|
+
p(b), o(qA(b));
|
|
7178
7178
|
},
|
|
7179
7179
|
onValidate: o,
|
|
7180
7180
|
onMount: (g) => {
|
|
@@ -7333,7 +7333,7 @@ const Jc = u(se)`
|
|
|
7333
7333
|
onClose: () => {
|
|
7334
7334
|
h(!1), a(null);
|
|
7335
7335
|
},
|
|
7336
|
-
isValidInput:
|
|
7336
|
+
isValidInput: qA
|
|
7337
7337
|
}
|
|
7338
7338
|
),
|
|
7339
7339
|
/* @__PURE__ */ i(
|
|
@@ -8243,7 +8243,7 @@ const Yl = N(() => {
|
|
|
8243
8243
|
}) })
|
|
8244
8244
|
] }),
|
|
8245
8245
|
/* @__PURE__ */ i(
|
|
8246
|
-
|
|
8246
|
+
ne,
|
|
8247
8247
|
{
|
|
8248
8248
|
open: e !== null,
|
|
8249
8249
|
preventCloseOnClickOutside: !0,
|
|
@@ -9099,7 +9099,7 @@ Error message: ${A.message}`
|
|
|
9099
9099
|
}
|
|
9100
9100
|
),
|
|
9101
9101
|
/* @__PURE__ */ i(
|
|
9102
|
-
|
|
9102
|
+
jA,
|
|
9103
9103
|
{
|
|
9104
9104
|
title: "View incident",
|
|
9105
9105
|
isVisible: s,
|
|
@@ -9111,14 +9111,14 @@ Error message: ${A.message}`
|
|
|
9111
9111
|
},
|
|
9112
9112
|
onClose: () => n(!1),
|
|
9113
9113
|
onSubmit: async () => {
|
|
9114
|
-
if (n(!1), A.jobKey && !await
|
|
9114
|
+
if (n(!1), A.jobKey && !await ue.updateRetries({
|
|
9115
9115
|
jobKey: A.jobKey
|
|
9116
9116
|
})) {
|
|
9117
9117
|
t.displayNotification?.error($);
|
|
9118
9118
|
return;
|
|
9119
9119
|
}
|
|
9120
9120
|
G.trackResolveIncident(w.processId);
|
|
9121
|
-
const d = await
|
|
9121
|
+
const d = await ue.resolveIncident(A.key);
|
|
9122
9122
|
if (d.status === TA) {
|
|
9123
9123
|
t.displayNotification?.error(
|
|
9124
9124
|
{
|
|
@@ -9144,7 +9144,7 @@ Zn.displayName = "IncidentButton";
|
|
|
9144
9144
|
const qn = N(({ element: e }) => {
|
|
9145
9145
|
const { completedElementInstances: A } = W, { isInstanceDetailPageVisible: t } = m, s = iA.state.activeTab === "scenarios", {
|
|
9146
9146
|
state: { sequenceFlows: n }
|
|
9147
|
-
} =
|
|
9147
|
+
} = te, r = x.state.selectedScenario?.coveredSequenceFlows ?? x.allCoveredSequenceFlows;
|
|
9148
9148
|
return F(() => {
|
|
9149
9149
|
if (t)
|
|
9150
9150
|
return n.includes(e.id) || e?.di?.bpmnElement?.sourceRef?.$type === "bpmn:EventBasedGateway" && A.some(
|
|
@@ -9215,7 +9215,7 @@ const jn = N(({ element: e }) => {
|
|
|
9215
9215
|
}, [b]);
|
|
9216
9216
|
const B = T.getAvailableErrorEvents(e), E = U(async () => {
|
|
9217
9217
|
r(!1), l(!0);
|
|
9218
|
-
const P = await
|
|
9218
|
+
const P = await ee.throwError({
|
|
9219
9219
|
taskDefinitionType: h,
|
|
9220
9220
|
processInstanceKey: d,
|
|
9221
9221
|
errorCode: a,
|
|
@@ -9291,7 +9291,7 @@ const jn = N(({ element: e }) => {
|
|
|
9291
9291
|
onClick: async () => {
|
|
9292
9292
|
l(!0);
|
|
9293
9293
|
let P = !1;
|
|
9294
|
-
if (P = await
|
|
9294
|
+
if (P = await ee.completeJob({
|
|
9295
9295
|
taskDefinitionType: h,
|
|
9296
9296
|
processInstanceKey: p?.key,
|
|
9297
9297
|
variables: R,
|
|
@@ -9343,7 +9343,7 @@ const jn = N(({ element: e }) => {
|
|
|
9343
9343
|
onSubmit: async (P) => {
|
|
9344
9344
|
s(!1), l(!0);
|
|
9345
9345
|
let D = !1;
|
|
9346
|
-
D = await
|
|
9346
|
+
D = await ee.completeJob({
|
|
9347
9347
|
taskDefinitionType: h,
|
|
9348
9348
|
processInstanceKey: p?.key,
|
|
9349
9349
|
variables: P,
|
|
@@ -9357,7 +9357,7 @@ const jn = N(({ element: e }) => {
|
|
|
9357
9357
|
}), G.trackUserCompletesElement(
|
|
9358
9358
|
e,
|
|
9359
9359
|
P
|
|
9360
|
-
),
|
|
9360
|
+
), pe({
|
|
9361
9361
|
processId: w.processId,
|
|
9362
9362
|
elementId: e.id,
|
|
9363
9363
|
variables: P ?? ""
|
|
@@ -9366,7 +9366,7 @@ const jn = N(({ element: e }) => {
|
|
|
9366
9366
|
}
|
|
9367
9367
|
),
|
|
9368
9368
|
/* @__PURE__ */ i(
|
|
9369
|
-
|
|
9369
|
+
jA,
|
|
9370
9370
|
{
|
|
9371
9371
|
isVisible: n,
|
|
9372
9372
|
title: "Throw error",
|
|
@@ -9454,7 +9454,7 @@ const JA = new Zd(), Wn = N(({ element: e }) => {
|
|
|
9454
9454
|
if (s === void 0)
|
|
9455
9455
|
return;
|
|
9456
9456
|
JA.startRewinding();
|
|
9457
|
-
const r =
|
|
9457
|
+
const r = ce(
|
|
9458
9458
|
q(s.key)
|
|
9459
9459
|
), a = r.find(
|
|
9460
9460
|
({ action: l }) => l === "startInstance"
|
|
@@ -9611,12 +9611,12 @@ const Xn = N(({ decisionId: e }) => {
|
|
|
9611
9611
|
});
|
|
9612
9612
|
Xn.displayName = "ViewDecisionInstanceButton";
|
|
9613
9613
|
const qd = (e) => LA(e, "zeebe:CalledDecision")?.get("decisionId") ?? null, zd = N(({ element: e }) => {
|
|
9614
|
-
const [A, t] = y(!1), [s, n] = y(""), r = m.state.processInstance?.key, a = tA(_), o =
|
|
9614
|
+
const [A, t] = y(!1), [s, n] = y(""), r = m.state.processInstance?.key, a = tA(_), o = ee.errorThrowableJobsByErrorId[e.id];
|
|
9615
9615
|
if (o === void 0)
|
|
9616
9616
|
return null;
|
|
9617
9617
|
const c = async (d) => {
|
|
9618
9618
|
const { elementId: p, errorCode: h, taskDefinitionType: g } = d;
|
|
9619
|
-
if (t(!1), !await
|
|
9619
|
+
if (t(!1), !await ee.throwError({
|
|
9620
9620
|
taskDefinitionType: g,
|
|
9621
9621
|
processInstanceKey: r,
|
|
9622
9622
|
elementId: p,
|
|
@@ -9669,7 +9669,7 @@ const qd = (e) => LA(e, "zeebe:CalledDecision")?.get("decisionId") ?? null, zd =
|
|
|
9669
9669
|
return /* @__PURE__ */ f(H, { children: [
|
|
9670
9670
|
/* @__PURE__ */ i(SA, { actions: l }),
|
|
9671
9671
|
/* @__PURE__ */ i(
|
|
9672
|
-
|
|
9672
|
+
jA,
|
|
9673
9673
|
{
|
|
9674
9674
|
isVisible: A,
|
|
9675
9675
|
title: "Throw error",
|
|
@@ -9765,7 +9765,7 @@ function $n({
|
|
|
9765
9765
|
type: "userTask",
|
|
9766
9766
|
elementId: A.id,
|
|
9767
9767
|
variables: c
|
|
9768
|
-
}), G.trackUserCompletesElement(A, c),
|
|
9768
|
+
}), G.trackUserCompletesElement(A, c), pe({ processId: d, elementId: A.id, variables: c }), n(!1);
|
|
9769
9769
|
},
|
|
9770
9770
|
[
|
|
9771
9771
|
e,
|
|
@@ -9940,7 +9940,7 @@ const Ai = N(
|
|
|
9940
9940
|
);
|
|
9941
9941
|
Ai.displayName = "UserTaskCompleteButton";
|
|
9942
9942
|
const ei = N(({ element: e, addOverlay: A }) => {
|
|
9943
|
-
const { instanceKey: t, processInstance: s } = m.state, { isCalledProcess: n } = m, r =
|
|
9943
|
+
const { instanceKey: t, processInstance: s } = m.state, { isCalledProcess: n } = m, r = ue.incidents?.find(
|
|
9944
9944
|
(v) => v.elementInstance?.element?.elementId === e.id && ["ACTIVE", "MIGRATED"].includes(v.state)
|
|
9945
9945
|
);
|
|
9946
9946
|
if (r) {
|
|
@@ -9971,7 +9971,7 @@ const ei = N(({ element: e, addOverlay: A }) => {
|
|
|
9971
9971
|
} = kA;
|
|
9972
9972
|
if (t && o?.find((v) => v.id === e.id))
|
|
9973
9973
|
return null;
|
|
9974
|
-
const l =
|
|
9974
|
+
const l = le.activeMessageSubscriptionCandidates.find(
|
|
9975
9975
|
(v) => v.elementId === e.id
|
|
9976
9976
|
);
|
|
9977
9977
|
if (l) {
|
|
@@ -9991,7 +9991,7 @@ const ei = N(({ element: e, addOverlay: A }) => {
|
|
|
9991
9991
|
v
|
|
9992
9992
|
);
|
|
9993
9993
|
}
|
|
9994
|
-
const p =
|
|
9994
|
+
const p = le.startMessageSubscriptionCandidates?.find(
|
|
9995
9995
|
(v) => v.elementId === e.id
|
|
9996
9996
|
);
|
|
9997
9997
|
if (p && t === void 0) {
|
|
@@ -10051,7 +10051,7 @@ const ei = N(({ element: e, addOverlay: A }) => {
|
|
|
10051
10051
|
v
|
|
10052
10052
|
);
|
|
10053
10053
|
}
|
|
10054
|
-
const B =
|
|
10054
|
+
const B = de.activeSignalCandidates.find(
|
|
10055
10055
|
(v) => v.elementId === e.id
|
|
10056
10056
|
);
|
|
10057
10057
|
if (B) {
|
|
@@ -10065,7 +10065,7 @@ const ei = N(({ element: e, addOverlay: A }) => {
|
|
|
10065
10065
|
v
|
|
10066
10066
|
);
|
|
10067
10067
|
}
|
|
10068
|
-
const S =
|
|
10068
|
+
const S = de.startSignalCandidates?.find(
|
|
10069
10069
|
(v) => v.elementId === e.id
|
|
10070
10070
|
);
|
|
10071
10071
|
if (S && t === void 0) {
|
|
@@ -10141,7 +10141,7 @@ const ti = 0, Gt = 1, Xd = 10, $d = Gt + ti, _d = Gt + Xd, Au = Gt + ti, eu = u.
|
|
|
10141
10141
|
background-color: var(--cm-color-white-base);
|
|
10142
10142
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
|
|
10143
10143
|
border-radius: 2px;
|
|
10144
|
-
`,
|
|
10144
|
+
`, re = u.button`
|
|
10145
10145
|
margin: 0px 5px;
|
|
10146
10146
|
padding: 0;
|
|
10147
10147
|
border: none;
|
|
@@ -10174,13 +10174,13 @@ const ti = 0, Gt = 1, Xd = 10, $d = Gt + ti, _d = Gt + Xd, Au = Gt + ti, eu = u.
|
|
|
10174
10174
|
) }),
|
|
10175
10175
|
/* @__PURE__ */ f(tu, { children: [
|
|
10176
10176
|
/* @__PURE__ */ i(
|
|
10177
|
-
|
|
10177
|
+
_A,
|
|
10178
10178
|
{
|
|
10179
10179
|
title: a ? "Disable fullscreen" : "Enable fullscreen",
|
|
10180
10180
|
align: "top",
|
|
10181
10181
|
showOnlyOnOverflow: !1,
|
|
10182
10182
|
children: /* @__PURE__ */ i(
|
|
10183
|
-
|
|
10183
|
+
re,
|
|
10184
10184
|
{
|
|
10185
10185
|
"data-test": "toggle-fullscreen",
|
|
10186
10186
|
onClick: r,
|
|
@@ -10197,13 +10197,13 @@ const ti = 0, Gt = 1, Xd = 10, $d = Gt + ti, _d = Gt + Xd, Au = Gt + ti, eu = u.
|
|
|
10197
10197
|
}
|
|
10198
10198
|
),
|
|
10199
10199
|
/* @__PURE__ */ i(
|
|
10200
|
-
|
|
10200
|
+
_A,
|
|
10201
10201
|
{
|
|
10202
10202
|
title: "Toggle minimap",
|
|
10203
10203
|
align: "top",
|
|
10204
10204
|
showOnlyOnOverflow: !1,
|
|
10205
10205
|
children: /* @__PURE__ */ i(
|
|
10206
|
-
|
|
10206
|
+
re,
|
|
10207
10207
|
{
|
|
10208
10208
|
"data-selector": "minimap-container",
|
|
10209
10209
|
"data-test": "toggle-minimap",
|
|
@@ -10223,13 +10223,13 @@ const ti = 0, Gt = 1, Xd = 10, $d = Gt + ti, _d = Gt + Xd, Au = Gt + ti, eu = u.
|
|
|
10223
10223
|
}
|
|
10224
10224
|
),
|
|
10225
10225
|
/* @__PURE__ */ i(
|
|
10226
|
-
|
|
10226
|
+
_A,
|
|
10227
10227
|
{
|
|
10228
10228
|
title: "Reset viewport",
|
|
10229
10229
|
align: "top",
|
|
10230
10230
|
showOnlyOnOverflow: !1,
|
|
10231
10231
|
children: /* @__PURE__ */ i(
|
|
10232
|
-
|
|
10232
|
+
re,
|
|
10233
10233
|
{
|
|
10234
10234
|
onClick: e,
|
|
10235
10235
|
"data-test": "viewport-reset",
|
|
@@ -10239,8 +10239,8 @@ const ti = 0, Gt = 1, Xd = 10, $d = Gt + ti, _d = Gt + Xd, Au = Gt + ti, eu = u.
|
|
|
10239
10239
|
)
|
|
10240
10240
|
}
|
|
10241
10241
|
),
|
|
10242
|
-
/* @__PURE__ */ i(
|
|
10243
|
-
|
|
10242
|
+
/* @__PURE__ */ i(_A, { title: "Zoom out", align: "top", showOnlyOnOverflow: !1, children: /* @__PURE__ */ i(
|
|
10243
|
+
re,
|
|
10244
10244
|
{
|
|
10245
10245
|
onClick: t,
|
|
10246
10246
|
"data-test": "zoom-out",
|
|
@@ -10248,8 +10248,8 @@ const ti = 0, Gt = 1, Xd = 10, $d = Gt + ti, _d = Gt + Xd, Au = Gt + ti, eu = u.
|
|
|
10248
10248
|
children: /* @__PURE__ */ i(yl, { width: "12", height: "12" })
|
|
10249
10249
|
}
|
|
10250
10250
|
) }),
|
|
10251
|
-
/* @__PURE__ */ i(
|
|
10252
|
-
|
|
10251
|
+
/* @__PURE__ */ i(_A, { title: "Zoom in", align: "top", showOnlyOnOverflow: !1, children: /* @__PURE__ */ i(
|
|
10252
|
+
re,
|
|
10253
10253
|
{
|
|
10254
10254
|
onClick: A,
|
|
10255
10255
|
"data-test": "zoom-in",
|
|
@@ -10564,9 +10564,9 @@ const xs = "40px", pu = u(De)`
|
|
|
10564
10564
|
margin: 0 ${xs};
|
|
10565
10565
|
max-width: calc(100% - calc(2 * ${xs}));
|
|
10566
10566
|
`, ai = N(() => {
|
|
10567
|
-
if (
|
|
10567
|
+
if (Ae.isClusterHealthy)
|
|
10568
10568
|
return null;
|
|
10569
|
-
const e =
|
|
10569
|
+
const e = Ae.state.cluster?.name, A = Ae.state.cluster?.uuid;
|
|
10570
10570
|
return /* @__PURE__ */ i(
|
|
10571
10571
|
pu,
|
|
10572
10572
|
{
|
|
@@ -10695,9 +10695,9 @@ const Fs = u.div`
|
|
|
10695
10695
|
processId: r,
|
|
10696
10696
|
name: a,
|
|
10697
10697
|
processInstanceId: A,
|
|
10698
|
-
actions:
|
|
10698
|
+
actions: ce(q(A)),
|
|
10699
10699
|
coveredFlowNodes: W.elementInstancesWithType,
|
|
10700
|
-
coveredSequenceFlows:
|
|
10700
|
+
coveredSequenceFlows: te.state.sequenceFlows
|
|
10701
10701
|
});
|
|
10702
10702
|
} catch {
|
|
10703
10703
|
e.displayNotification?.error($);
|
|
@@ -10724,7 +10724,7 @@ const Fs = u.div`
|
|
|
10724
10724
|
topContent: /* @__PURE__ */ i(Fs, { children: /* @__PURE__ */ i(Qs, {}) })
|
|
10725
10725
|
}
|
|
10726
10726
|
) : /* @__PURE__ */ f(
|
|
10727
|
-
|
|
10727
|
+
ne,
|
|
10728
10728
|
{
|
|
10729
10729
|
open: m.state.isProcessManuallyCompleted,
|
|
10730
10730
|
size: "md",
|
|
@@ -10828,7 +10828,7 @@ const Rs = u.p`
|
|
|
10828
10828
|
${lA.body01};
|
|
10829
10829
|
`, li = N(
|
|
10830
10830
|
({ open: e, fileName: A, fileId: t, onClose: s }) => /* @__PURE__ */ i(
|
|
10831
|
-
|
|
10831
|
+
ne,
|
|
10832
10832
|
{
|
|
10833
10833
|
open: e,
|
|
10834
10834
|
modalHeading: "Scenarios are now stored in files",
|
|
@@ -10984,7 +10984,7 @@ const Ap = ({
|
|
|
10984
10984
|
diagramId: AA,
|
|
10985
10985
|
FeedbackButton: gA
|
|
10986
10986
|
}) => {
|
|
10987
|
-
const dA = I?.shouldUseOrchestrationClusterAPI, z = e?.type,
|
|
10987
|
+
const dA = I?.shouldUseOrchestrationClusterAPI, z = e?.type, WA = e?.config?.operateBaseUrl, ie = z === "saas" ? e.config.clusterId : void 0, [Lt, ui] = y(!0), [pi, VA] = y(!1);
|
|
10988
10988
|
F(
|
|
10989
10989
|
() => OA(
|
|
10990
10990
|
() => m.state.status === "first-fetch" && m.state.instanceType !== "REWOUND_INSTANCE",
|
|
@@ -11003,10 +11003,10 @@ const Ap = ({
|
|
|
11003
11003
|
}
|
|
11004
11004
|
),
|
|
11005
11005
|
[]
|
|
11006
|
-
), F(() => (z === "saas" &&
|
|
11007
|
-
z === "saas" &&
|
|
11006
|
+
), F(() => (z === "saas" && Ae.init(), iA.init(I?.isReplayScenariosEnabled), () => {
|
|
11007
|
+
z === "saas" && Ae.reset(), m.reset(), kA.reset(), w.reset(), T.reset(), iA.reset(), x.reset();
|
|
11008
11008
|
}), [I?.isReplayScenariosEnabled, z]), F(() => {
|
|
11009
|
-
z === "saas" && !
|
|
11009
|
+
z === "saas" && !ie || (G.init({ mixpanelTrack: d, processId: o, diagramId: AA }), M.init({
|
|
11010
11010
|
authConfig: e,
|
|
11011
11011
|
handlePostRequest: h,
|
|
11012
11012
|
handleGetRequest: p,
|
|
@@ -11016,7 +11016,7 @@ const Ap = ({
|
|
|
11016
11016
|
isSelfManagedEnv: z === "sm"
|
|
11017
11017
|
}));
|
|
11018
11018
|
}, [
|
|
11019
|
-
|
|
11019
|
+
ie,
|
|
11020
11020
|
z,
|
|
11021
11021
|
o,
|
|
11022
11022
|
AA,
|
|
@@ -11034,21 +11034,21 @@ const Ap = ({
|
|
|
11034
11034
|
onDeploymentError: n,
|
|
11035
11035
|
xml: t,
|
|
11036
11036
|
consoleDashboardPageUrl: v,
|
|
11037
|
-
clusterId:
|
|
11037
|
+
clusterId: ie,
|
|
11038
11038
|
currentDiagramRevision: D,
|
|
11039
11039
|
updateFileById: Q,
|
|
11040
11040
|
originAppInstanceId: O,
|
|
11041
11041
|
canUserSaveExampleData: X,
|
|
11042
11042
|
diagramId: AA,
|
|
11043
11043
|
authType: z,
|
|
11044
|
-
operateBaseUrl:
|
|
11044
|
+
operateBaseUrl: WA
|
|
11045
11045
|
});
|
|
11046
11046
|
}, [
|
|
11047
11047
|
o,
|
|
11048
11048
|
r,
|
|
11049
11049
|
a,
|
|
11050
11050
|
c,
|
|
11051
|
-
|
|
11051
|
+
ie,
|
|
11052
11052
|
g,
|
|
11053
11053
|
b,
|
|
11054
11054
|
E,
|
|
@@ -11062,7 +11062,7 @@ const Ap = ({
|
|
|
11062
11062
|
X,
|
|
11063
11063
|
AA,
|
|
11064
11064
|
z,
|
|
11065
|
-
|
|
11065
|
+
WA
|
|
11066
11066
|
]), F(() => {
|
|
11067
11067
|
x.init({
|
|
11068
11068
|
fetchTestsByProcessId: S,
|
|
@@ -11080,7 +11080,7 @@ const Ap = ({
|
|
|
11080
11080
|
]);
|
|
11081
11081
|
const fi = to({
|
|
11082
11082
|
authType: z,
|
|
11083
|
-
clusterId:
|
|
11083
|
+
clusterId: ie,
|
|
11084
11084
|
displayNotification: l
|
|
11085
11085
|
});
|
|
11086
11086
|
F(() => {
|