@camunda/play 6.1.3 → 6.1.4-rc.1
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 +137 -156
- package/build/play.js.map +1 -1
- package/package.json +1 -1
package/build/play.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as i, jsxs as f, Fragment as
|
|
1
|
+
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
|
-
import { makeObservable as nA, action as k, computed as
|
|
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
5
|
import { getBusinessObject as qA, 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
7
|
import { hasEventDefinition as te, hasErrorEventDefinition as pt, isEventSubProcess as Mi } from "bpmn-js/lib/util/DiUtil.js";
|
|
@@ -13,7 +13,7 @@ import { WarningFilled as Di, CheckmarkOutline as Ci, RadioButtonChecked as ki,
|
|
|
13
13
|
import u, { keyframes as gt, css as EA } from "styled-components";
|
|
14
14
|
import { createPortal as Y } from "react-dom";
|
|
15
15
|
import WA, { 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 se, Stack as J, Link as
|
|
16
|
+
import { MenuItemDivider as Li, SkeletonText as Me, SkeletonIcon as Us, Button as j, Tooltip as Se, Modal as se, 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";
|
|
@@ -684,7 +684,7 @@ class Cr {
|
|
|
684
684
|
nA(this, {
|
|
685
685
|
state: fA,
|
|
686
686
|
handleSuccess: k,
|
|
687
|
-
isClusterHealthy:
|
|
687
|
+
isClusterHealthy: V,
|
|
688
688
|
reset: k
|
|
689
689
|
});
|
|
690
690
|
}
|
|
@@ -1097,12 +1097,12 @@ class sa extends MA {
|
|
|
1097
1097
|
startFetching: k,
|
|
1098
1098
|
handleError: k,
|
|
1099
1099
|
reset: IA,
|
|
1100
|
-
completedElementInstances:
|
|
1101
|
-
activeElementInstances:
|
|
1102
|
-
elementInstances:
|
|
1103
|
-
elementIds:
|
|
1104
|
-
isInitialLoadComplete:
|
|
1105
|
-
elementInstancesWithType:
|
|
1100
|
+
completedElementInstances: V,
|
|
1101
|
+
activeElementInstances: V,
|
|
1102
|
+
elementInstances: V,
|
|
1103
|
+
elementIds: V,
|
|
1104
|
+
isInitialLoadComplete: V,
|
|
1105
|
+
elementInstancesWithType: V
|
|
1106
1106
|
});
|
|
1107
1107
|
}
|
|
1108
1108
|
shouldRefreshDataAfterPollingStops = !0;
|
|
@@ -1523,11 +1523,6 @@ class ba {
|
|
|
1523
1523
|
filesInfo: A = []
|
|
1524
1524
|
}) => Promise.all(
|
|
1525
1525
|
A.map(async (t) => {
|
|
1526
|
-
if (t.bindingType === "versionTag")
|
|
1527
|
-
return {
|
|
1528
|
-
...t,
|
|
1529
|
-
status: "unsupported binding"
|
|
1530
|
-
};
|
|
1531
1526
|
if (t.bindingType === "deployment")
|
|
1532
1527
|
return {
|
|
1533
1528
|
...t,
|
|
@@ -2037,13 +2032,13 @@ let Sa = class extends MA {
|
|
|
2037
2032
|
constructor() {
|
|
2038
2033
|
super(), nA(this, {
|
|
2039
2034
|
state: fA,
|
|
2040
|
-
variables:
|
|
2035
|
+
variables: V,
|
|
2041
2036
|
handleSuccess: k,
|
|
2042
2037
|
handleError: k,
|
|
2043
2038
|
setIsUpdatingVariable: k,
|
|
2044
2039
|
startFetching: k,
|
|
2045
|
-
scopeId:
|
|
2046
|
-
isInitialLoadComplete:
|
|
2040
|
+
scopeId: V,
|
|
2041
|
+
isInitialLoadComplete: V,
|
|
2047
2042
|
reset: IA
|
|
2048
2043
|
});
|
|
2049
2044
|
}
|
|
@@ -2168,9 +2163,9 @@ class Ca extends MA {
|
|
|
2168
2163
|
startFetching: k,
|
|
2169
2164
|
handleError: k,
|
|
2170
2165
|
reset: IA,
|
|
2171
|
-
completedElementIds:
|
|
2172
|
-
activeElementIds:
|
|
2173
|
-
activeElementIdsWithoutIncident:
|
|
2166
|
+
completedElementIds: V,
|
|
2167
|
+
activeElementIds: V,
|
|
2168
|
+
activeElementIdsWithoutIncident: V
|
|
2174
2169
|
});
|
|
2175
2170
|
}
|
|
2176
2171
|
shouldRefreshDataAfterPollingStops = !0;
|
|
@@ -2205,7 +2200,7 @@ class Ca extends MA {
|
|
|
2205
2200
|
get completedElementIds() {
|
|
2206
2201
|
return this.state.statistics.filter(({ completed: A }) => Number(A) > 0).map(({ activityId: A }) => A);
|
|
2207
2202
|
}
|
|
2208
|
-
isElementProcessed = (A) =>
|
|
2203
|
+
isElementProcessed = (A) => rA.state.statistics.some(
|
|
2209
2204
|
({ activityId: t }) => t === A
|
|
2210
2205
|
);
|
|
2211
2206
|
get activeElementIds() {
|
|
@@ -2222,7 +2217,7 @@ class Ca extends MA {
|
|
|
2222
2217
|
super.reset(), this.state = { ...os };
|
|
2223
2218
|
}
|
|
2224
2219
|
}
|
|
2225
|
-
const
|
|
2220
|
+
const rA = new Ca(), ka = (e, A) => {
|
|
2226
2221
|
if (e && e.startsWith("=")) {
|
|
2227
2222
|
const t = e.substring(1), s = A.find(
|
|
2228
2223
|
(n) => n.name === t
|
|
@@ -2233,12 +2228,12 @@ const aA = new Ca(), ka = (e, A) => {
|
|
|
2233
2228
|
class Ta {
|
|
2234
2229
|
constructor() {
|
|
2235
2230
|
nA(this, {
|
|
2236
|
-
startMessageSubscriptionCandidates:
|
|
2237
|
-
activeMessageSubscriptionCandidates:
|
|
2231
|
+
startMessageSubscriptionCandidates: V.struct,
|
|
2232
|
+
activeMessageSubscriptionCandidates: V.struct
|
|
2238
2233
|
});
|
|
2239
2234
|
}
|
|
2240
2235
|
get activeMessageSubscriptionCandidates() {
|
|
2241
|
-
const { messageSubscriptionCandidates: A } = T, { activeElementIdsWithoutIncident: t } =
|
|
2236
|
+
const { messageSubscriptionCandidates: A } = T, { activeElementIdsWithoutIncident: t } = rA, { variables: s } = pA.state, n = m.state.processInstance?.state === "ACTIVE";
|
|
2242
2237
|
return A.filter(
|
|
2243
2238
|
(r) => Dt({
|
|
2244
2239
|
processId: w.processId,
|
|
@@ -2264,12 +2259,12 @@ const ce = new Ta();
|
|
|
2264
2259
|
class Na {
|
|
2265
2260
|
constructor() {
|
|
2266
2261
|
nA(this, {
|
|
2267
|
-
activeSignalCandidates:
|
|
2268
|
-
startSignalCandidates:
|
|
2262
|
+
activeSignalCandidates: V.struct,
|
|
2263
|
+
startSignalCandidates: V.struct
|
|
2269
2264
|
});
|
|
2270
2265
|
}
|
|
2271
2266
|
get activeSignalCandidates() {
|
|
2272
|
-
const { signalCandidates: A } = T, { activeElementIdsWithoutIncident: t } =
|
|
2267
|
+
const { signalCandidates: A } = T, { activeElementIdsWithoutIncident: t } = rA, s = m.state.processInstance?.state === "ACTIVE";
|
|
2273
2268
|
return A.filter(
|
|
2274
2269
|
(n) => Dt({
|
|
2275
2270
|
processId: w.processId,
|
|
@@ -2980,13 +2975,13 @@ let qa = class extends fn {
|
|
|
2980
2975
|
setScenarios: k,
|
|
2981
2976
|
handleLoadSuccess: k,
|
|
2982
2977
|
handleLoadError: k,
|
|
2983
|
-
allCoveredFlowNodes:
|
|
2984
|
-
currentTotalCoverage:
|
|
2985
|
-
coverageIncrease:
|
|
2986
|
-
newTotalCoverage:
|
|
2987
|
-
isAnyScenarioRunning:
|
|
2988
|
-
coveredFlowNodeIdsForSelectedScenario:
|
|
2989
|
-
isSingleScenarioSelected:
|
|
2978
|
+
allCoveredFlowNodes: V,
|
|
2979
|
+
currentTotalCoverage: V,
|
|
2980
|
+
coverageIncrease: V,
|
|
2981
|
+
newTotalCoverage: V,
|
|
2982
|
+
isAnyScenarioRunning: V,
|
|
2983
|
+
coveredFlowNodeIdsForSelectedScenario: V,
|
|
2984
|
+
isSingleScenarioSelected: V,
|
|
2990
2985
|
startRunningSingleScenario: k,
|
|
2991
2986
|
updateSingleScenarioRun: k,
|
|
2992
2987
|
saveTestScenarioFileMetadata: k,
|
|
@@ -3492,17 +3487,17 @@ class za extends MA {
|
|
|
3492
3487
|
super(), nA(this, {
|
|
3493
3488
|
state: fA,
|
|
3494
3489
|
setIsProcessManuallyCompleted: k,
|
|
3495
|
-
isCalledProcess:
|
|
3490
|
+
isCalledProcess: V,
|
|
3496
3491
|
setInstanceDetails: k,
|
|
3497
3492
|
handleSuccess: k,
|
|
3498
3493
|
startFetching: k,
|
|
3499
3494
|
handleError: k,
|
|
3500
3495
|
setScenarioName: k,
|
|
3501
3496
|
reset: IA,
|
|
3502
|
-
isRunning:
|
|
3503
|
-
hasError:
|
|
3504
|
-
isInstanceDetailPageVisible:
|
|
3505
|
-
isInitialLoadComplete:
|
|
3497
|
+
isRunning: V,
|
|
3498
|
+
hasError: V,
|
|
3499
|
+
isInstanceDetailPageVisible: V,
|
|
3500
|
+
isInitialLoadComplete: V
|
|
3506
3501
|
});
|
|
3507
3502
|
}
|
|
3508
3503
|
shouldRefreshDataAfterPollingStops = !1;
|
|
@@ -3614,7 +3609,7 @@ class ja extends MA {
|
|
|
3614
3609
|
handleError: k,
|
|
3615
3610
|
startFetching: k,
|
|
3616
3611
|
reset: IA,
|
|
3617
|
-
incidents:
|
|
3612
|
+
incidents: V
|
|
3618
3613
|
});
|
|
3619
3614
|
}
|
|
3620
3615
|
shouldRefreshDataAfterPollingStops = !0;
|
|
@@ -3764,7 +3759,7 @@ class Xa {
|
|
|
3764
3759
|
}))?.success !== !1;
|
|
3765
3760
|
get activeElementsWithJobWorker() {
|
|
3766
3761
|
return T.elementsWithJobWorker.filter(
|
|
3767
|
-
({ id: A }) =>
|
|
3762
|
+
({ id: A }) => rA.activeElementIdsWithoutIncident.includes(A)
|
|
3768
3763
|
);
|
|
3769
3764
|
}
|
|
3770
3765
|
get errorThrowableJobsByErrorId() {
|
|
@@ -4004,8 +3999,8 @@ function to({
|
|
|
4004
3999
|
[]
|
|
4005
4000
|
), F(() => {
|
|
4006
4001
|
if (!(e === "saas" && A === void 0))
|
|
4007
|
-
return s ? (m.init(), Z.init(), ee.init(),
|
|
4008
|
-
Ae.reset(), de.reset(), Be.reset(), pA.reset(), tt.reset(), W.reset(), Z.reset(), ee.reset(),
|
|
4002
|
+
return s ? (m.init(), Z.init(), ee.init(), rA.init(), nt.init(), Be.init(), W.init(), pA.init(), tt.init(), de.init()) : st.init(r), () => {
|
|
4003
|
+
Ae.reset(), de.reset(), Be.reset(), pA.reset(), tt.reset(), W.reset(), Z.reset(), ee.reset(), rA.reset(), nt.reset(), st.reset(), wA.reset();
|
|
4009
4004
|
};
|
|
4010
4005
|
}, [e, A, s, r]), { reInitializePlay: U(
|
|
4011
4006
|
async ({
|
|
@@ -4207,7 +4202,7 @@ const _ = mi({
|
|
|
4207
4202
|
$size: o,
|
|
4208
4203
|
$variant: c,
|
|
4209
4204
|
...l,
|
|
4210
|
-
children: n ? /* @__PURE__ */ f(
|
|
4205
|
+
children: n ? /* @__PURE__ */ f(H, { children: [
|
|
4211
4206
|
/* @__PURE__ */ i(uo, { className: "loader", light: r, size: a }),
|
|
4212
4207
|
/* @__PURE__ */ i(oo, { className: "is-loading", children: e })
|
|
4213
4208
|
] }) : e
|
|
@@ -4538,9 +4533,9 @@ const bs = 5, mo = gt`
|
|
|
4538
4533
|
default:
|
|
4539
4534
|
return S - b.current.offsetWidth / 2 + R / 2;
|
|
4540
4535
|
}
|
|
4541
|
-
},
|
|
4536
|
+
}, L = () => h == "top" || I ? B - b.current.offsetHeight - He - 5 : E + He + 5;
|
|
4542
4537
|
I && g("top"), p({
|
|
4543
|
-
top:
|
|
4538
|
+
top: L(),
|
|
4544
4539
|
left: v()
|
|
4545
4540
|
});
|
|
4546
4541
|
}, [t, t?.getBoundingClientRect().top]), F(() => {
|
|
@@ -4890,7 +4885,7 @@ let Qo = class {
|
|
|
4890
4885
|
GA(this);
|
|
4891
4886
|
}
|
|
4892
4887
|
init(A) {
|
|
4893
|
-
A &&
|
|
4888
|
+
A && iA.setActiveTab("scenarios");
|
|
4894
4889
|
}
|
|
4895
4890
|
setActiveTab = (A) => {
|
|
4896
4891
|
this.state.activeTab = A;
|
|
@@ -4899,7 +4894,7 @@ let Qo = class {
|
|
|
4899
4894
|
this.state = { ...Es };
|
|
4900
4895
|
}
|
|
4901
4896
|
};
|
|
4902
|
-
const
|
|
4897
|
+
const iA = new Qo(), Te = (e) => {
|
|
4903
4898
|
const { children: A, text: t, align: s, isDisabled: n } = e;
|
|
4904
4899
|
return e.text !== void 0 ? /* @__PURE__ */ i(Se, { align: s, label: t, description: t, children: /* @__PURE__ */ i("div", { children: Ut.isValidElement(A) ? Ut.cloneElement(A, { disabled: n }) : A }) }) : e.children;
|
|
4905
4900
|
}, Ro = ({
|
|
@@ -4977,7 +4972,7 @@ const rA = new Qo(), Te = (e) => {
|
|
|
4977
4972
|
". ",
|
|
4978
4973
|
/* @__PURE__ */ i("br", {}),
|
|
4979
4974
|
/* @__PURE__ */ i(
|
|
4980
|
-
|
|
4975
|
+
aA,
|
|
4981
4976
|
{
|
|
4982
4977
|
href: "https://docs.camunda.io/docs/components/modeler/web-modeler/play-your-process/#scenario-coverage",
|
|
4983
4978
|
target: "_blank",
|
|
@@ -5048,7 +5043,7 @@ const rA = new Qo(), Te = (e) => {
|
|
|
5048
5043
|
isScenarioSaved: A,
|
|
5049
5044
|
canUserSaveScenario: n
|
|
5050
5045
|
});
|
|
5051
|
-
return /* @__PURE__ */ f(
|
|
5046
|
+
return /* @__PURE__ */ f(H, { children: [
|
|
5052
5047
|
/* @__PURE__ */ i(Te, { align: "bottom-end", isDisabled: o, text: c, children: /* @__PURE__ */ i(
|
|
5053
5048
|
j,
|
|
5054
5049
|
{
|
|
@@ -5076,7 +5071,7 @@ const rA = new Qo(), Te = (e) => {
|
|
|
5076
5071
|
.cds--definition-tooltip {
|
|
5077
5072
|
max-inline-size: 18rem;
|
|
5078
5073
|
}
|
|
5079
|
-
`, yn = u(
|
|
5074
|
+
`, yn = u(aA)`
|
|
5080
5075
|
color: var(--cds-link-inverse) !important;
|
|
5081
5076
|
`, Go = ({
|
|
5082
5077
|
isCompleted: e,
|
|
@@ -5128,7 +5123,7 @@ const rA = new Qo(), Te = (e) => {
|
|
|
5128
5123
|
isScenarioUpdated: t,
|
|
5129
5124
|
canUserUpdateScenario: r
|
|
5130
5125
|
});
|
|
5131
|
-
return /* @__PURE__ */ f(
|
|
5126
|
+
return /* @__PURE__ */ f(H, { children: [
|
|
5132
5127
|
/* @__PURE__ */ i(Te, { align: "bottom-end", isDisabled: a, text: o, children: /* @__PURE__ */ i(
|
|
5133
5128
|
j,
|
|
5134
5129
|
{
|
|
@@ -5413,7 +5408,7 @@ const Bn = "#a8a8a8", rt = "#f4f4f4", jo = u.div`
|
|
|
5413
5408
|
`, tc = u.div`
|
|
5414
5409
|
display: flex;
|
|
5415
5410
|
flex-direction: column;
|
|
5416
|
-
`, sc = u(
|
|
5411
|
+
`, sc = u(aA)`
|
|
5417
5412
|
display: flex;
|
|
5418
5413
|
width: fit-content;
|
|
5419
5414
|
`, nc = u.div`
|
|
@@ -5477,7 +5472,7 @@ const xe = N(
|
|
|
5477
5472
|
const g = ic(t, A), b = await w.updateFile();
|
|
5478
5473
|
g && b.success ? (a("success"), s()) : g && !b.success && b.reason === "conflict" ? a("conflict") : a("error");
|
|
5479
5474
|
};
|
|
5480
|
-
return /* @__PURE__ */ f(
|
|
5475
|
+
return /* @__PURE__ */ f(H, { children: [
|
|
5481
5476
|
/* @__PURE__ */ f(ec, { children: [
|
|
5482
5477
|
/* @__PURE__ */ f(tc, { children: [
|
|
5483
5478
|
/* @__PURE__ */ i("div", { children: "Save these variables as example data in the BPMN file for collaborative reuse" }),
|
|
@@ -5566,7 +5561,7 @@ const xe = N(
|
|
|
5566
5561
|
if (e === "none")
|
|
5567
5562
|
return null;
|
|
5568
5563
|
let t = "";
|
|
5569
|
-
return e === "bpmn" ? t = "Prefilled from the BPMN’s example data" : e === "cache" && (t = "Prefilled from a previous session"), /* @__PURE__ */ i(oc, { children: A ? /* @__PURE__ */ f(
|
|
5564
|
+
return e === "bpmn" ? t = "Prefilled from the BPMN’s example data" : e === "cache" && (t = "Prefilled from a previous session"), /* @__PURE__ */ i(oc, { children: A ? /* @__PURE__ */ f(H, { children: [
|
|
5570
5565
|
/* @__PURE__ */ i(Ti, {}),
|
|
5571
5566
|
t
|
|
5572
5567
|
] }) : null });
|
|
@@ -5750,7 +5745,7 @@ const Nt = N(
|
|
|
5750
5745
|
broadcastSignal: a,
|
|
5751
5746
|
broadcastSignalWithVariables: o
|
|
5752
5747
|
} = cc(t);
|
|
5753
|
-
return /* @__PURE__ */ f(
|
|
5748
|
+
return /* @__PURE__ */ f(H, { children: [
|
|
5754
5749
|
e({ broadcastSignal: a, broadcastSignalWithVariables: o }),
|
|
5755
5750
|
/* @__PURE__ */ i(
|
|
5756
5751
|
Mn,
|
|
@@ -5790,7 +5785,7 @@ const dc = u.div`
|
|
|
5790
5785
|
isValid: R,
|
|
5791
5786
|
prefillSource: I,
|
|
5792
5787
|
isDirty: v,
|
|
5793
|
-
setEditedValue:
|
|
5788
|
+
setEditedValue: L,
|
|
5794
5789
|
resetPrefill: P
|
|
5795
5790
|
} = In(a, w.processId), { authType: D } = w, Q = cA(null);
|
|
5796
5791
|
return F(() => {
|
|
@@ -5879,7 +5874,7 @@ const dc = u.div`
|
|
|
5879
5874
|
isVisible: e,
|
|
5880
5875
|
placeholder: Et,
|
|
5881
5876
|
onChange: (O) => {
|
|
5882
|
-
|
|
5877
|
+
L(O ?? "");
|
|
5883
5878
|
},
|
|
5884
5879
|
onMount: (O) => {
|
|
5885
5880
|
Q.current = O;
|
|
@@ -6013,7 +6008,7 @@ const xt = N(
|
|
|
6013
6008
|
publishMessage: o,
|
|
6014
6009
|
publishMessageWithVariables: c
|
|
6015
6010
|
} = uc({ element: t, isSelfManagedEnv: n === "sm" });
|
|
6016
|
-
return /* @__PURE__ */ f(
|
|
6011
|
+
return /* @__PURE__ */ f(H, { children: [
|
|
6017
6012
|
e({ publishMessage: o, publishMessageWithVariables: c }),
|
|
6018
6013
|
/* @__PURE__ */ i(
|
|
6019
6014
|
Sn,
|
|
@@ -6105,11 +6100,11 @@ const Dn = ({
|
|
|
6105
6100
|
onChange: B,
|
|
6106
6101
|
clearOnReset: E = !0
|
|
6107
6102
|
}) => {
|
|
6108
|
-
const [S, R] = y(a), [I, v] = y(!0),
|
|
6103
|
+
const [S, R] = y(a), [I, v] = y(!0), L = cA(null);
|
|
6109
6104
|
return F(() => {
|
|
6110
6105
|
t ? R(a) : (R(""), v(!0));
|
|
6111
6106
|
}, [t, a]), F(() => {
|
|
6112
|
-
I &&
|
|
6107
|
+
I && L.current?.hideMarkers();
|
|
6113
6108
|
}, [I]), /* @__PURE__ */ i(
|
|
6114
6109
|
zA,
|
|
6115
6110
|
{
|
|
@@ -6133,7 +6128,7 @@ const Dn = ({
|
|
|
6133
6128
|
} : void 0,
|
|
6134
6129
|
onClose: l,
|
|
6135
6130
|
onSubmit: () => {
|
|
6136
|
-
I ? p?.(S === "" ? void 0 : S) :
|
|
6131
|
+
I ? p?.(S === "" ? void 0 : S) : L.current?.showMarkers();
|
|
6137
6132
|
},
|
|
6138
6133
|
modalBody: /* @__PURE__ */ f(J, { gap: 5, children: [
|
|
6139
6134
|
b,
|
|
@@ -6150,7 +6145,7 @@ const Dn = ({
|
|
|
6150
6145
|
readOnly: h,
|
|
6151
6146
|
onValidate: v,
|
|
6152
6147
|
onMount: (P) => {
|
|
6153
|
-
|
|
6148
|
+
L.current = P;
|
|
6154
6149
|
},
|
|
6155
6150
|
hasJSONObjectValidation: g
|
|
6156
6151
|
}
|
|
@@ -6193,7 +6188,7 @@ const Dn = ({
|
|
|
6193
6188
|
onChange: (S) => {
|
|
6194
6189
|
p(S), E(!0);
|
|
6195
6190
|
},
|
|
6196
|
-
editorTopContent: /* @__PURE__ */ f(
|
|
6191
|
+
editorTopContent: /* @__PURE__ */ f(H, { children: [
|
|
6197
6192
|
/* @__PURE__ */ i(
|
|
6198
6193
|
xe,
|
|
6199
6194
|
{
|
|
@@ -6342,7 +6337,7 @@ function gc({
|
|
|
6342
6337
|
d(X.length === 0);
|
|
6343
6338
|
},
|
|
6344
6339
|
[R, I]
|
|
6345
|
-
),
|
|
6340
|
+
), L = U(async () => {
|
|
6346
6341
|
const D = new rr();
|
|
6347
6342
|
if (b.current = D, g.current === null) {
|
|
6348
6343
|
n(!0);
|
|
@@ -6353,7 +6348,7 @@ function gc({
|
|
|
6353
6348
|
v({ ignoreCachedVariables: !0 });
|
|
6354
6349
|
}, [v]);
|
|
6355
6350
|
return {
|
|
6356
|
-
renderForm:
|
|
6351
|
+
renderForm: L,
|
|
6357
6352
|
resetForm: P,
|
|
6358
6353
|
isDirty: p,
|
|
6359
6354
|
isFormContentValid: l,
|
|
@@ -6419,19 +6414,19 @@ const kn = ({
|
|
|
6419
6414
|
hasFormLoadError: R,
|
|
6420
6415
|
setHasFormLoadError: I,
|
|
6421
6416
|
formContainerRef: v,
|
|
6422
|
-
taskForm:
|
|
6417
|
+
taskForm: L
|
|
6423
6418
|
} = gc({
|
|
6424
6419
|
element: A,
|
|
6425
6420
|
formPrefillSettings: c,
|
|
6426
6421
|
getFormBody: n
|
|
6427
6422
|
});
|
|
6428
6423
|
F(() => {
|
|
6429
|
-
if (!e &&
|
|
6430
|
-
|
|
6424
|
+
if (!e && L.current) {
|
|
6425
|
+
L.current.detach(), L.current = void 0;
|
|
6431
6426
|
return;
|
|
6432
6427
|
}
|
|
6433
|
-
!e || !v.current ||
|
|
6434
|
-
}, [p, e, v,
|
|
6428
|
+
!e || !v.current || L.current || p();
|
|
6429
|
+
}, [p, e, v, L]);
|
|
6435
6430
|
async function P(Q) {
|
|
6436
6431
|
if (Q.size === 0)
|
|
6437
6432
|
return /* @__PURE__ */ new Map();
|
|
@@ -6452,7 +6447,7 @@ const kn = ({
|
|
|
6452
6447
|
async function D() {
|
|
6453
6448
|
d(!0);
|
|
6454
6449
|
try {
|
|
6455
|
-
const { data: Q, errors: O, files: X } =
|
|
6450
|
+
const { data: Q, errors: O, files: X } = L.current?.submit() ?? {
|
|
6456
6451
|
data: {},
|
|
6457
6452
|
errors: {},
|
|
6458
6453
|
files: /* @__PURE__ */ new Map()
|
|
@@ -6487,7 +6482,7 @@ const kn = ({
|
|
|
6487
6482
|
label: "Reset",
|
|
6488
6483
|
onClick: h
|
|
6489
6484
|
},
|
|
6490
|
-
modalBody: /* @__PURE__ */ f(
|
|
6485
|
+
modalBody: /* @__PURE__ */ f(H, { children: [
|
|
6491
6486
|
/* @__PURE__ */ f(J, { gap: 5, children: [
|
|
6492
6487
|
/* @__PURE__ */ i(
|
|
6493
6488
|
xe,
|
|
@@ -6559,7 +6554,7 @@ const kn = ({
|
|
|
6559
6554
|
isFormModalOpen: p,
|
|
6560
6555
|
setIsFormModalOpen: h
|
|
6561
6556
|
} = pc({ element: A, isSelfManagedEnv: n === "sm" });
|
|
6562
|
-
return /* @__PURE__ */ f(
|
|
6557
|
+
return /* @__PURE__ */ f(H, { children: [
|
|
6563
6558
|
e({
|
|
6564
6559
|
isStartingInstance: a,
|
|
6565
6560
|
startInstance: c,
|
|
@@ -6773,7 +6768,7 @@ const Nn = N(() => {
|
|
|
6773
6768
|
isReplayScenariosEnabled: n
|
|
6774
6769
|
}
|
|
6775
6770
|
);
|
|
6776
|
-
const R = o?.parentKey, I = o.incident ? "INCIDENT" : o.state, v = `${p}/processes/${r}`,
|
|
6771
|
+
const R = o?.parentKey, I = o.incident ? "INCIDENT" : o.state, v = `${p}/processes/${r}`, L = c !== Ct, P = Object.keys(d).find((D) => {
|
|
6777
6772
|
const Q = d[D];
|
|
6778
6773
|
return Q !== void 0 && Q.instanceKey === r && Q.status === "Failed";
|
|
6779
6774
|
});
|
|
@@ -6790,7 +6785,7 @@ const Nn = N(() => {
|
|
|
6790
6785
|
align: "bottom",
|
|
6791
6786
|
closeOnActivation: !0,
|
|
6792
6787
|
children: /* @__PURE__ */ i(
|
|
6793
|
-
|
|
6788
|
+
aA,
|
|
6794
6789
|
{
|
|
6795
6790
|
href: v,
|
|
6796
6791
|
target: "_blank",
|
|
@@ -6809,7 +6804,7 @@ const Nn = N(() => {
|
|
|
6809
6804
|
{
|
|
6810
6805
|
variant: "text",
|
|
6811
6806
|
onClick: () => {
|
|
6812
|
-
|
|
6807
|
+
iA.setActiveTab("instances"), m.reset();
|
|
6813
6808
|
},
|
|
6814
6809
|
children: "View all"
|
|
6815
6810
|
}
|
|
@@ -6834,7 +6829,7 @@ const Nn = N(() => {
|
|
|
6834
6829
|
{
|
|
6835
6830
|
variant: "text",
|
|
6836
6831
|
onClick: () => {
|
|
6837
|
-
|
|
6832
|
+
iA.setActiveTab("scenarios"), m.reset();
|
|
6838
6833
|
},
|
|
6839
6834
|
children: "(View all)"
|
|
6840
6835
|
}
|
|
@@ -6843,7 +6838,7 @@ const Nn = N(() => {
|
|
|
6843
6838
|
] }) })
|
|
6844
6839
|
] }),
|
|
6845
6840
|
A.isReplayScenariosEnabled && !l && /* @__PURE__ */ f(Co, { children: [
|
|
6846
|
-
m.state.processInstance?.state === "COMPLETED" && !
|
|
6841
|
+
m.state.processInstance?.state === "COMPLETED" && !L && /* @__PURE__ */ f(ko, { "data-testid": "scenario-coverage", children: [
|
|
6847
6842
|
/* @__PURE__ */ i(
|
|
6848
6843
|
it,
|
|
6849
6844
|
{
|
|
@@ -6901,13 +6896,13 @@ const Nn = N(() => {
|
|
|
6901
6896
|
action: {
|
|
6902
6897
|
label: "View scenario",
|
|
6903
6898
|
onClick: () => {
|
|
6904
|
-
|
|
6899
|
+
iA.setActiveTab("scenarios"), m.reset();
|
|
6905
6900
|
}
|
|
6906
6901
|
}
|
|
6907
6902
|
}
|
|
6908
6903
|
);
|
|
6909
6904
|
},
|
|
6910
|
-
isScenarioUpdated:
|
|
6905
|
+
isScenarioUpdated: L
|
|
6911
6906
|
}
|
|
6912
6907
|
) : /* @__PURE__ */ i(
|
|
6913
6908
|
Oo,
|
|
@@ -6937,7 +6932,7 @@ const Nn = N(() => {
|
|
|
6937
6932
|
action: {
|
|
6938
6933
|
label: "View scenario",
|
|
6939
6934
|
onClick: () => {
|
|
6940
|
-
|
|
6935
|
+
iA.setActiveTab("scenarios"), m.reset();
|
|
6941
6936
|
}
|
|
6942
6937
|
}
|
|
6943
6938
|
}
|
|
@@ -6946,7 +6941,7 @@ const Nn = N(() => {
|
|
|
6946
6941
|
coverageIncrease: `${x.coverageIncrease.toFixed(0)}%`
|
|
6947
6942
|
});
|
|
6948
6943
|
},
|
|
6949
|
-
isScenarioSaved:
|
|
6944
|
+
isScenarioSaved: L
|
|
6950
6945
|
}
|
|
6951
6946
|
)
|
|
6952
6947
|
] }),
|
|
@@ -7241,7 +7236,7 @@ const Jc = u(se)`
|
|
|
7241
7236
|
);
|
|
7242
7237
|
return /* @__PURE__ */ i(Bc, { children: /* @__PURE__ */ f(ji, { children: [
|
|
7243
7238
|
/* @__PURE__ */ i(Gc, { "aria-label": "Variables", children: /* @__PURE__ */ i(Wi, { children: "Variables" }) }),
|
|
7244
|
-
/* @__PURE__ */ i(Vc, { children: /* @__PURE__ */ i(Lc, { children: pA.isInitialLoadComplete ? /* @__PURE__ */ f(
|
|
7239
|
+
/* @__PURE__ */ i(Vc, { children: /* @__PURE__ */ i(Lc, { children: pA.isInitialLoadComplete ? /* @__PURE__ */ f(H, { children: [
|
|
7245
7240
|
/* @__PURE__ */ f(Ic, { $isEmpty: S.length === 0, children: [
|
|
7246
7241
|
S.length === 0 && /* @__PURE__ */ i(Mc, { children: Z.isRootNodeSelected ? "This process instance has no variables" : "The flow node has no variables" }),
|
|
7247
7242
|
S.length > 0 && /* @__PURE__ */ f(Sc, { children: [
|
|
@@ -7361,10 +7356,10 @@ const Jc = u(se)`
|
|
|
7361
7356
|
if (b(!1), v === void 0)
|
|
7362
7357
|
return;
|
|
7363
7358
|
d(!0);
|
|
7364
|
-
const
|
|
7359
|
+
const L = JSON.stringify({
|
|
7365
7360
|
[I]: JSON.parse(v)
|
|
7366
7361
|
});
|
|
7367
|
-
await R(
|
|
7362
|
+
await R(L), d(!1), a(null);
|
|
7368
7363
|
},
|
|
7369
7364
|
onClose: () => {
|
|
7370
7365
|
b(!1), a(null);
|
|
@@ -7837,34 +7832,20 @@ const Rt = new Rl(), Rn = N(() => {
|
|
|
7837
7832
|
/* @__PURE__ */ f(vt, { children: [
|
|
7838
7833
|
e.map((t) => /* @__PURE__ */ f(RA, { children: [
|
|
7839
7834
|
/* @__PURE__ */ f(sA, { children: [
|
|
7840
|
-
(t.status === "
|
|
7835
|
+
(t.status === "not found" || t.status === "deployment error") && /* @__PURE__ */ i(Ze, {}),
|
|
7841
7836
|
/* @__PURE__ */ i("b", { children: t.elementBusinessObject.name || t.elementBusinessObject.id })
|
|
7842
7837
|
] }),
|
|
7843
7838
|
/* @__PURE__ */ f(sA, { children: [
|
|
7844
|
-
t.status === "unsupported binding" && "Version tag binding is not supported in Play",
|
|
7845
7839
|
t.status === "not found" && "File not found",
|
|
7846
7840
|
t.status === "deployment error" && "Deployment error"
|
|
7847
7841
|
] }),
|
|
7848
7842
|
/* @__PURE__ */ i(sA, { children: t.filename || t.id }),
|
|
7849
7843
|
/* @__PURE__ */ f(sA, { children: [
|
|
7850
|
-
t.status === "
|
|
7851
|
-
"Change the binding for the element.",
|
|
7852
|
-
" ",
|
|
7853
|
-
/* @__PURE__ */ i(
|
|
7854
|
-
iA,
|
|
7855
|
-
{
|
|
7856
|
-
href: "https://docs.camunda.io/docs/components/best-practices/modeling/choosing-the-resource-binding-type/",
|
|
7857
|
-
target: "_blank",
|
|
7858
|
-
rel: "noreferrer",
|
|
7859
|
-
children: "See how"
|
|
7860
|
-
}
|
|
7861
|
-
)
|
|
7862
|
-
] }),
|
|
7863
|
-
t.status === "not found" && /* @__PURE__ */ f(L, { children: [
|
|
7844
|
+
t.status === "not found" && /* @__PURE__ */ f(H, { children: [
|
|
7864
7845
|
"Verify file path or check file permissions.",
|
|
7865
7846
|
" ",
|
|
7866
7847
|
/* @__PURE__ */ i(
|
|
7867
|
-
|
|
7848
|
+
aA,
|
|
7868
7849
|
{
|
|
7869
7850
|
href: `https://docs.camunda.io/docs/components/modeler/web-modeler/advanced-modeling/${t.type === "decision" ? "business-rule-task" : t.type === "form" ? "form" : "call-activity"}-linking/`,
|
|
7870
7851
|
target: "_blank",
|
|
@@ -7874,7 +7855,7 @@ const Rt = new Rl(), Rn = N(() => {
|
|
|
7874
7855
|
)
|
|
7875
7856
|
] }),
|
|
7876
7857
|
t.status === "deployment error" && /* @__PURE__ */ i(
|
|
7877
|
-
|
|
7858
|
+
aA,
|
|
7878
7859
|
{
|
|
7879
7860
|
href: `/diagrams/${hl(
|
|
7880
7861
|
t.fileId,
|
|
@@ -7893,9 +7874,9 @@ const Rt = new Rl(), Rn = N(() => {
|
|
|
7893
7874
|
] }),
|
|
7894
7875
|
/* @__PURE__ */ i(sA, { children: `Secret "${t.missingSecret}" missing` }),
|
|
7895
7876
|
/* @__PURE__ */ i(sA, { children: "-" }),
|
|
7896
|
-
/* @__PURE__ */ i(sA, { children: /* @__PURE__ */ f(
|
|
7877
|
+
/* @__PURE__ */ i(sA, { children: /* @__PURE__ */ f(H, { children: [
|
|
7897
7878
|
/* @__PURE__ */ i(
|
|
7898
|
-
|
|
7879
|
+
aA,
|
|
7899
7880
|
{
|
|
7900
7881
|
href: w.consoleSecretsUrl,
|
|
7901
7882
|
target: "_blank",
|
|
@@ -7905,7 +7886,7 @@ const Rt = new Rl(), Rn = N(() => {
|
|
|
7905
7886
|
),
|
|
7906
7887
|
" Skip connector element. ",
|
|
7907
7888
|
/* @__PURE__ */ i(
|
|
7908
|
-
|
|
7889
|
+
aA,
|
|
7909
7890
|
{
|
|
7910
7891
|
href: "https://docs.camunda.io/docs/components/modeler/web-modeler/play-your-process/#modify-a-process-instance",
|
|
7911
7892
|
target: "_blank",
|
|
@@ -7922,10 +7903,10 @@ const Rt = new Rl(), Rn = N(() => {
|
|
|
7922
7903
|
] }),
|
|
7923
7904
|
/* @__PURE__ */ i(sA, { children: "Execution listeners are not suppported in Play. See actionable solution to resolve the issue." }),
|
|
7924
7905
|
/* @__PURE__ */ i(sA, { children: "-" }),
|
|
7925
|
-
/* @__PURE__ */ i(sA, { children: /* @__PURE__ */ f(
|
|
7906
|
+
/* @__PURE__ */ i(sA, { children: /* @__PURE__ */ f(H, { children: [
|
|
7926
7907
|
" Skip element. ",
|
|
7927
7908
|
/* @__PURE__ */ i(
|
|
7928
|
-
|
|
7909
|
+
aA,
|
|
7929
7910
|
{
|
|
7930
7911
|
href: "https://docs.camunda.io/docs/components/modeler/web-modeler/play-your-process/#modify-a-process-instance",
|
|
7931
7912
|
target: "_blank",
|
|
@@ -8024,7 +8005,7 @@ const Yl = N(() => {
|
|
|
8024
8005
|
/* @__PURE__ */ i("div", { children: "This scenario has multiple test scenario files linked." }),
|
|
8025
8006
|
/* @__PURE__ */ i("div", { children: "Scenarios are shown from the file that comes first alphabetically." }),
|
|
8026
8007
|
/* @__PURE__ */ i(
|
|
8027
|
-
|
|
8008
|
+
aA,
|
|
8028
8009
|
{
|
|
8029
8010
|
href: "https://docs.camunda.io/docs/components/modeler/web-modeler/play-your-process/#scenarios",
|
|
8030
8011
|
target: "_blank",
|
|
@@ -8034,7 +8015,7 @@ const Yl = N(() => {
|
|
|
8034
8015
|
] }) })
|
|
8035
8016
|
] }),
|
|
8036
8017
|
/* @__PURE__ */ i(
|
|
8037
|
-
|
|
8018
|
+
aA,
|
|
8038
8019
|
{
|
|
8039
8020
|
href: On({
|
|
8040
8021
|
fileId: x.state.testScenarioFileMetadata.id
|
|
@@ -8050,7 +8031,7 @@ const Yl = N(() => {
|
|
|
8050
8031
|
if (s !== void 0)
|
|
8051
8032
|
return /* @__PURE__ */ f(Hl, { gap: 5, orientation: "horizontal", children: [
|
|
8052
8033
|
/* @__PURE__ */ i(Pn, {}),
|
|
8053
|
-
t.length !== 0 && /* @__PURE__ */ i(
|
|
8034
|
+
t.length !== 0 && /* @__PURE__ */ i(H, { children: e ? /* @__PURE__ */ f(J, { gap: 3, orientation: "horizontal", children: [
|
|
8054
8035
|
/* @__PURE__ */ i(Ce, { withOverlay: !1, small: !0 }),
|
|
8055
8036
|
" Running scenarios... This might take a while"
|
|
8056
8037
|
] }) : /* @__PURE__ */ i(
|
|
@@ -8076,7 +8057,7 @@ const Yl = N(() => {
|
|
|
8076
8057
|
) }),
|
|
8077
8058
|
/* @__PURE__ */ i(Yl, {})
|
|
8078
8059
|
] });
|
|
8079
|
-
}), Kl = () => /* @__PURE__ */ f(
|
|
8060
|
+
}), Kl = () => /* @__PURE__ */ f(H, { children: [
|
|
8080
8061
|
/* @__PURE__ */ i(Gn, {}),
|
|
8081
8062
|
/* @__PURE__ */ f(Vl, { gap: 4, children: [
|
|
8082
8063
|
/* @__PURE__ */ f("div", { children: [
|
|
@@ -8099,7 +8080,7 @@ const Yl = N(() => {
|
|
|
8099
8080
|
/* @__PURE__ */ i("div", { children: "Start to increase your coverage by saving completed process instances as scenarios." })
|
|
8100
8081
|
] }),
|
|
8101
8082
|
/* @__PURE__ */ i(
|
|
8102
|
-
|
|
8083
|
+
aA,
|
|
8103
8084
|
{
|
|
8104
8085
|
href: "https://docs.camunda.io/docs/components/modeler/web-modeler/play-your-process/#scenarios",
|
|
8105
8086
|
target: "_blank",
|
|
@@ -8142,7 +8123,7 @@ const Yl = N(() => {
|
|
|
8142
8123
|
t !== void 0 && x.loadScenarios(t);
|
|
8143
8124
|
}, [t]);
|
|
8144
8125
|
const { scenarios: n, selectedScenario: r, status: a } = x.state;
|
|
8145
|
-
return ["initial", "fetching"].includes(a) || t === void 0 ? /* @__PURE__ */ i(jl, {}) : a === "error" ? /* @__PURE__ */ i($l, { onReload: () => x.loadScenarios(t) }) : n.length === 0 ? /* @__PURE__ */ i(Kl, {}) : /* @__PURE__ */ f(
|
|
8126
|
+
return ["initial", "fetching"].includes(a) || t === void 0 ? /* @__PURE__ */ i(jl, {}) : a === "error" ? /* @__PURE__ */ i($l, { onReload: () => x.loadScenarios(t) }) : n.length === 0 ? /* @__PURE__ */ i(Kl, {}) : /* @__PURE__ */ f(H, { children: [
|
|
8146
8127
|
/* @__PURE__ */ i(Gn, {}),
|
|
8147
8128
|
/* @__PURE__ */ f(wt, { size: "sm", children: [
|
|
8148
8129
|
/* @__PURE__ */ i(bt, { children: /* @__PURE__ */ f(ks, { children: [
|
|
@@ -8354,9 +8335,9 @@ const _l = (e) => {
|
|
|
8354
8335
|
});
|
|
8355
8336
|
Vn.displayName = "Processes";
|
|
8356
8337
|
const Hn = N(() => {
|
|
8357
|
-
const e = tA(_), { activeTab: A } =
|
|
8338
|
+
const e = tA(_), { activeTab: A } = iA.state, t = e.featureFlags.isReplayScenariosEnabled, { problemCount: s } = Rt;
|
|
8358
8339
|
F(() => {
|
|
8359
|
-
s > 0 &&
|
|
8340
|
+
s > 0 && iA.setActiveTab("problems");
|
|
8360
8341
|
}, [s]);
|
|
8361
8342
|
const { instanceKey: n } = m.state, r = W.state.elementInstances?.filter(
|
|
8362
8343
|
(a) => a.type !== "SEQUENCE_FLOW"
|
|
@@ -8367,7 +8348,7 @@ const Hn = N(() => {
|
|
|
8367
8348
|
Ye,
|
|
8368
8349
|
{
|
|
8369
8350
|
$isActive: A === "scenarios",
|
|
8370
|
-
onClick: () =>
|
|
8351
|
+
onClick: () => iA.setActiveTab("scenarios"),
|
|
8371
8352
|
children: /* @__PURE__ */ i(Ue, { children: "Scenarios" })
|
|
8372
8353
|
}
|
|
8373
8354
|
),
|
|
@@ -8375,7 +8356,7 @@ const Hn = N(() => {
|
|
|
8375
8356
|
Ye,
|
|
8376
8357
|
{
|
|
8377
8358
|
$isActive: A === "instances",
|
|
8378
|
-
onClick: () =>
|
|
8359
|
+
onClick: () => iA.setActiveTab("instances"),
|
|
8379
8360
|
children: /* @__PURE__ */ i(Ue, { children: "Process Instances" })
|
|
8380
8361
|
}
|
|
8381
8362
|
),
|
|
@@ -8383,7 +8364,7 @@ const Hn = N(() => {
|
|
|
8383
8364
|
Ye,
|
|
8384
8365
|
{
|
|
8385
8366
|
$isActive: A === "problems",
|
|
8386
|
-
onClick: () =>
|
|
8367
|
+
onClick: () => iA.setActiveTab("problems"),
|
|
8387
8368
|
children: /* @__PURE__ */ f(Ue, { children: [
|
|
8388
8369
|
"Problems",
|
|
8389
8370
|
" ",
|
|
@@ -8565,10 +8546,10 @@ const Jn = N(
|
|
|
8565
8546
|
}
|
|
8566
8547
|
) })
|
|
8567
8548
|
] }),
|
|
8568
|
-
/* @__PURE__ */ i(cd, { children: /* @__PURE__ */ i(
|
|
8549
|
+
/* @__PURE__ */ i(cd, { children: /* @__PURE__ */ i(H, { children: (() => {
|
|
8569
8550
|
if (d) {
|
|
8570
8551
|
if (w.hasDiagramError || w.hasAuthorizationError)
|
|
8571
|
-
return /* @__PURE__ */ f(
|
|
8552
|
+
return /* @__PURE__ */ f(H, { children: [
|
|
8572
8553
|
w.hasAuthorizationError && /* @__PURE__ */ i(
|
|
8573
8554
|
me,
|
|
8574
8555
|
{
|
|
@@ -8860,7 +8841,7 @@ const fd = u.div`
|
|
|
8860
8841
|
onClick: n.onClick
|
|
8861
8842
|
}
|
|
8862
8843
|
),
|
|
8863
|
-
r.length > 0 && /* @__PURE__ */ f(
|
|
8844
|
+
r.length > 0 && /* @__PURE__ */ f(H, { children: [
|
|
8864
8845
|
/* @__PURE__ */ i(
|
|
8865
8846
|
bd,
|
|
8866
8847
|
{
|
|
@@ -8958,7 +8939,7 @@ const fd = u.div`
|
|
|
8958
8939
|
processInstanceKey: s?.key
|
|
8959
8940
|
});
|
|
8960
8941
|
}, l = "Edit variables and publish message", d = a;
|
|
8961
|
-
return /* @__PURE__ */ i(
|
|
8942
|
+
return /* @__PURE__ */ i(H, { children: t ? /* @__PURE__ */ i(
|
|
8962
8943
|
Pt,
|
|
8963
8944
|
{
|
|
8964
8945
|
primaryButtonLabel: o,
|
|
@@ -9100,7 +9081,7 @@ Error message: ${A.message}`
|
|
|
9100
9081
|
});
|
|
9101
9082
|
}
|
|
9102
9083
|
} : void 0;
|
|
9103
|
-
return /* @__PURE__ */ f(
|
|
9084
|
+
return /* @__PURE__ */ f(H, { children: [
|
|
9104
9085
|
/* @__PURE__ */ i(
|
|
9105
9086
|
SA,
|
|
9106
9087
|
{
|
|
@@ -9161,7 +9142,7 @@ Error message: ${A.message}`
|
|
|
9161
9142
|
});
|
|
9162
9143
|
Zn.displayName = "IncidentButton";
|
|
9163
9144
|
const qn = N(({ element: e }) => {
|
|
9164
|
-
const { completedElementInstances: A } = W, { isInstanceDetailPageVisible: t } = m, s =
|
|
9145
|
+
const { completedElementInstances: A } = W, { isInstanceDetailPageVisible: t } = m, s = iA.state.activeTab === "scenarios", {
|
|
9165
9146
|
state: { sequenceFlows: n }
|
|
9166
9147
|
} = ee, r = x.state.selectedScenario?.coveredSequenceFlows ?? x.allCoveredSequenceFlows;
|
|
9167
9148
|
return F(() => {
|
|
@@ -9226,7 +9207,7 @@ function ot(e, A, t) {
|
|
|
9226
9207
|
A?.success(n);
|
|
9227
9208
|
}
|
|
9228
9209
|
const jn = N(({ element: e }) => {
|
|
9229
|
-
const { displayNotification: A } = tA(_), [t, s] = y(!1), [n, r] = y(!1), [a, o] = y(""), [c, l] = y(!1), { instanceKey: d, processInstance: p } = m.state, h = Bt(e), b =
|
|
9210
|
+
const { displayNotification: A } = tA(_), [t, s] = y(!1), [n, r] = y(!1), [a, o] = y(""), [c, l] = y(!1), { instanceKey: d, processInstance: p } = m.state, h = Bt(e), b = rA.state.statistics.some(
|
|
9230
9211
|
({ activityId: P, active: D }) => P === e.id && D > 0
|
|
9231
9212
|
) && tn.includes(e.businessObject.$type) && h !== void 0;
|
|
9232
9213
|
F(() => {
|
|
@@ -9299,7 +9280,7 @@ const jn = N(({ element: e }) => {
|
|
|
9299
9280
|
element: e,
|
|
9300
9281
|
useCache: !0,
|
|
9301
9282
|
processId: w.processId
|
|
9302
|
-
}),
|
|
9283
|
+
}), L = [
|
|
9303
9284
|
{
|
|
9304
9285
|
label: CA({
|
|
9305
9286
|
prefix: "Complete job",
|
|
@@ -9337,7 +9318,7 @@ const jn = N(({ element: e }) => {
|
|
|
9337
9318
|
}
|
|
9338
9319
|
}
|
|
9339
9320
|
];
|
|
9340
|
-
return b && B.length > 0 &&
|
|
9321
|
+
return b && B.length > 0 && L.push(
|
|
9341
9322
|
{
|
|
9342
9323
|
//@ts-expect-error Object literal may only specify known properties, and 'type' does not exist in type '{ label: string; renderIcon: () => Element; onClick: () => Promise<void>; } | { label: string; onClick: () => void; renderIcon?: undefined; }'.ts(2353)
|
|
9343
9324
|
type: "divider",
|
|
@@ -9349,8 +9330,8 @@ const jn = N(({ element: e }) => {
|
|
|
9349
9330
|
o(""), r(!0);
|
|
9350
9331
|
}
|
|
9351
9332
|
}
|
|
9352
|
-
), /* @__PURE__ */ f(
|
|
9353
|
-
/* @__PURE__ */ i(SA, { disabled: c, actions:
|
|
9333
|
+
), /* @__PURE__ */ f(H, { children: [
|
|
9334
|
+
/* @__PURE__ */ i(SA, { disabled: c, actions: L }),
|
|
9354
9335
|
/* @__PURE__ */ i(
|
|
9355
9336
|
Qe,
|
|
9356
9337
|
{
|
|
@@ -9561,7 +9542,7 @@ const ct = N(
|
|
|
9561
9542
|
signalCandidate: e
|
|
9562
9543
|
});
|
|
9563
9544
|
}, l = "Edit variables and broadcast signal", d = a;
|
|
9564
|
-
return /* @__PURE__ */ i(
|
|
9545
|
+
return /* @__PURE__ */ i(H, { children: t ? /* @__PURE__ */ i(
|
|
9565
9546
|
Pt,
|
|
9566
9547
|
{
|
|
9567
9548
|
primaryButtonLabel: o,
|
|
@@ -9685,7 +9666,7 @@ const qd = (e) => LA(e, "zeebe:CalledDecision")?.get("decisionId") ?? null, zd =
|
|
|
9685
9666
|
}
|
|
9686
9667
|
}
|
|
9687
9668
|
];
|
|
9688
|
-
return /* @__PURE__ */ f(
|
|
9669
|
+
return /* @__PURE__ */ f(H, { children: [
|
|
9689
9670
|
/* @__PURE__ */ i(SA, { actions: l }),
|
|
9690
9671
|
/* @__PURE__ */ i(
|
|
9691
9672
|
zA,
|
|
@@ -9831,7 +9812,7 @@ const jd = "camunda-forms:bpmn:", Wd = async ({
|
|
|
9831
9812
|
}
|
|
9832
9813
|
}
|
|
9833
9814
|
];
|
|
9834
|
-
return /* @__PURE__ */ f(
|
|
9815
|
+
return /* @__PURE__ */ f(H, { children: [
|
|
9835
9816
|
/* @__PURE__ */ i(SA, { disabled: c, actions: d }),
|
|
9836
9817
|
/* @__PURE__ */ i(
|
|
9837
9818
|
Qe,
|
|
@@ -9882,7 +9863,7 @@ _n.displayName = "OpenTaskFormButton";
|
|
|
9882
9863
|
const Ai = N(
|
|
9883
9864
|
({ element: e, processInstanceKey: A }) => {
|
|
9884
9865
|
const [t, s] = y(!1), n = w.authType;
|
|
9885
|
-
if (!
|
|
9866
|
+
if (!rA.state.statistics.some(
|
|
9886
9867
|
({ activityId: h, active: g }) => h === e.id && g > 0
|
|
9887
9868
|
))
|
|
9888
9869
|
return null;
|
|
@@ -9897,7 +9878,7 @@ const Ai = N(
|
|
|
9897
9878
|
element: e,
|
|
9898
9879
|
isSelfManagedEnv: n === "sm"
|
|
9899
9880
|
});
|
|
9900
|
-
return /* @__PURE__ */ f(
|
|
9881
|
+
return /* @__PURE__ */ f(H, { children: [
|
|
9901
9882
|
/* @__PURE__ */ i(
|
|
9902
9883
|
Te,
|
|
9903
9884
|
{
|
|
@@ -9977,11 +9958,11 @@ const ei = N(({ element: e, addOverlay: A }) => {
|
|
|
9977
9958
|
);
|
|
9978
9959
|
return Y(/* @__PURE__ */ i(Un, { element: e }), v);
|
|
9979
9960
|
}
|
|
9980
|
-
if (e.type === "bpmn:EndEvent" && m.state.processInstance?.state === "COMPLETED" && ["bpmn:Process", "bpmn:Participant"].includes(e.parent?.type) &&
|
|
9961
|
+
if (e.type === "bpmn:EndEvent" && m.state.processInstance?.state === "COMPLETED" && ["bpmn:Process", "bpmn:Participant"].includes(e.parent?.type) && rA.completedElementIds.includes(e.id)) {
|
|
9981
9962
|
const v = A(e, "FINISHED_OVERLAY", xd);
|
|
9982
9963
|
return Y(/* @__PURE__ */ i(Kn, {}), v);
|
|
9983
9964
|
}
|
|
9984
|
-
if (Mr.includes(e.type) &&
|
|
9965
|
+
if (Mr.includes(e.type) && rA.isElementProcessed(e.id) && !rA.activeElementIds.includes(e.id) && !n) {
|
|
9985
9966
|
const v = A(e, "REWIND_OVERLAY", Fd);
|
|
9986
9967
|
return Y(/* @__PURE__ */ i(Wn, { element: e }), v);
|
|
9987
9968
|
}
|
|
@@ -10041,7 +10022,7 @@ const ei = N(({ element: e, addOverlay: A }) => {
|
|
|
10041
10022
|
);
|
|
10042
10023
|
return Y(/* @__PURE__ */ i(qn, { element: e }), v);
|
|
10043
10024
|
}
|
|
10044
|
-
if (e.type === "bpmn:CallActivity" &&
|
|
10025
|
+
if (e.type === "bpmn:CallActivity" && rA.isElementProcessed(e.id)) {
|
|
10045
10026
|
const v = A(
|
|
10046
10027
|
e,
|
|
10047
10028
|
"CHILD_INSTANCE_BUTTON",
|
|
@@ -10052,14 +10033,14 @@ const ei = N(({ element: e, addOverlay: A }) => {
|
|
|
10052
10033
|
Yn,
|
|
10053
10034
|
{
|
|
10054
10035
|
element: e,
|
|
10055
|
-
isActive:
|
|
10036
|
+
isActive: rA.activeElementIds.includes(e.id)
|
|
10056
10037
|
}
|
|
10057
10038
|
),
|
|
10058
10039
|
v
|
|
10059
10040
|
);
|
|
10060
10041
|
}
|
|
10061
10042
|
const g = qd(e);
|
|
10062
|
-
if (e.type === "bpmn:BusinessRuleTask" &&
|
|
10043
|
+
if (e.type === "bpmn:BusinessRuleTask" && rA.isElementProcessed(e.id) && g !== null) {
|
|
10063
10044
|
const v = A(
|
|
10064
10045
|
e,
|
|
10065
10046
|
"VIEW_DECISION_INSTANCE_BUTTON",
|
|
@@ -10347,8 +10328,8 @@ const ou = ({
|
|
|
10347
10328
|
p.hide && g?.current !== null && E(!!p.hide.referenceHidden);
|
|
10348
10329
|
}, [g, p]), dt(() => {
|
|
10349
10330
|
const I = (v) => {
|
|
10350
|
-
const
|
|
10351
|
-
|
|
10331
|
+
const L = v.target;
|
|
10332
|
+
L instanceof Element && !g.current?.contains(L) && n?.(v);
|
|
10352
10333
|
};
|
|
10353
10334
|
return document.body?.addEventListener("click", I, !0), () => {
|
|
10354
10335
|
document.body?.removeEventListener("click", I, !0);
|
|
@@ -10367,7 +10348,7 @@ const ou = ({
|
|
|
10367
10348
|
left: we(c)
|
|
10368
10349
|
},
|
|
10369
10350
|
"data-testid": "play-popover",
|
|
10370
|
-
children: !B && /* @__PURE__ */ f(
|
|
10351
|
+
children: !B && /* @__PURE__ */ f(H, { children: [
|
|
10371
10352
|
/* @__PURE__ */ i(
|
|
10372
10353
|
nu,
|
|
10373
10354
|
{
|
|
@@ -10463,7 +10444,7 @@ const ou = ({
|
|
|
10463
10444
|
notificationTitle: `Adding token on ${s}`
|
|
10464
10445
|
}
|
|
10465
10446
|
),
|
|
10466
|
-
a.includes("cancel-all") && /* @__PURE__ */ i(
|
|
10447
|
+
a.includes("cancel-all") && /* @__PURE__ */ i(H, { children: (() => {
|
|
10467
10448
|
const c = W.state.elementInstances.filter(
|
|
10468
10449
|
({ state: l, flowNodeId: d }) => !["COMPLETED", "TERMINATED"].includes(l) && d === t
|
|
10469
10450
|
).map(({ key: l }) => ({
|
|
@@ -10555,7 +10536,7 @@ const ii = N(({ element: e, addOverlay: A }) => {
|
|
|
10555
10536
|
});
|
|
10556
10537
|
ii.displayName = "ProblemOverlay";
|
|
10557
10538
|
const ri = N(({ element: e }) => {
|
|
10558
|
-
const { isInstanceDetailPageVisible: A } = m, t = x.isSingleScenarioSelected ? x.coveredFlowNodeIdsForSelectedScenario : x.allCoveredFlowNodes.map(({ flowNodeId: n }) => n), s =
|
|
10539
|
+
const { isInstanceDetailPageVisible: A } = m, t = x.isSingleScenarioSelected ? x.coveredFlowNodeIdsForSelectedScenario : x.allCoveredFlowNodes.map(({ flowNodeId: n }) => n), s = iA.state.activeTab === "scenarios";
|
|
10559
10540
|
return F(() => {
|
|
10560
10541
|
if (!A && t.length > 0 && s)
|
|
10561
10542
|
return t.includes(e.id) ? T.state.viewer?.addMarker(e.id, "play-flow-node-taken") : T.state.viewer?.removeMarker(
|
|
@@ -10639,7 +10620,7 @@ const oi = N(({ FeedbackButton: e }) => {
|
|
|
10639
10620
|
$isSelectionAllowed: o !== void 0
|
|
10640
10621
|
}
|
|
10641
10622
|
),
|
|
10642
|
-
T.state.isLoaded && /* @__PURE__ */ f(
|
|
10623
|
+
T.state.isLoaded && /* @__PURE__ */ f(H, { children: [
|
|
10643
10624
|
/* @__PURE__ */ i(
|
|
10644
10625
|
si,
|
|
10645
10626
|
{
|
|
@@ -10731,7 +10712,7 @@ const Fs = u.div`
|
|
|
10731
10712
|
action: {
|
|
10732
10713
|
label: "View scenario",
|
|
10733
10714
|
onClick: () => {
|
|
10734
|
-
|
|
10715
|
+
iA.setActiveTab("scenarios"), m.reset();
|
|
10735
10716
|
}
|
|
10736
10717
|
}
|
|
10737
10718
|
}
|
|
@@ -10859,7 +10840,7 @@ const Rs = u.p`
|
|
|
10859
10840
|
"Your scenarios have been migrated from local storage into a new Test scenarios file:",
|
|
10860
10841
|
" ",
|
|
10861
10842
|
t ? /* @__PURE__ */ i(
|
|
10862
|
-
|
|
10843
|
+
aA,
|
|
10863
10844
|
{
|
|
10864
10845
|
href: On({ fileId: t }),
|
|
10865
10846
|
target: "_blank",
|
|
@@ -10877,7 +10858,7 @@ const Rs = u.p`
|
|
|
10877
10858
|
"Read more about test scenarios files in the",
|
|
10878
10859
|
" ",
|
|
10879
10860
|
/* @__PURE__ */ i(
|
|
10880
|
-
|
|
10861
|
+
aA,
|
|
10881
10862
|
{
|
|
10882
10863
|
href: "https://docs.camunda.io/docs/next/components/modeler/web-modeler/advanced-modeling/test-scenario-files/",
|
|
10883
10864
|
target: "_blank",
|
|
@@ -10994,7 +10975,7 @@ const Ap = ({
|
|
|
10994
10975
|
createFile: R,
|
|
10995
10976
|
featureFlags: I,
|
|
10996
10977
|
consoleDashboardPageUrl: v,
|
|
10997
|
-
isUserOrgOwnerOrAdmin:
|
|
10978
|
+
isUserOrgOwnerOrAdmin: L,
|
|
10998
10979
|
organizationManagementPageUrl: P,
|
|
10999
10980
|
currentDiagramRevision: D,
|
|
11000
10981
|
updateFileById: Q,
|
|
@@ -11022,8 +11003,8 @@ const Ap = ({
|
|
|
11022
11003
|
}
|
|
11023
11004
|
),
|
|
11024
11005
|
[]
|
|
11025
|
-
), F(() => (z === "saas" && _A.init(),
|
|
11026
|
-
z === "saas" && _A.reset(), m.reset(), kA.reset(), w.reset(), T.reset(),
|
|
11006
|
+
), F(() => (z === "saas" && _A.init(), iA.init(I?.isReplayScenariosEnabled), () => {
|
|
11007
|
+
z === "saas" && _A.reset(), m.reset(), kA.reset(), w.reset(), T.reset(), iA.reset(), x.reset();
|
|
11027
11008
|
}), [I?.isReplayScenariosEnabled, z]), F(() => {
|
|
11028
11009
|
z === "saas" && !ne || (G.init({ mixpanelTrack: d, processId: o, diagramId: AA }), M.init({
|
|
11029
11010
|
authConfig: e,
|
|
@@ -11233,7 +11214,7 @@ const Ap = ({
|
|
|
11233
11214
|
shouldUseOrchestrationClusterAPI: I?.shouldUseOrchestrationClusterAPI ?? !1,
|
|
11234
11215
|
areUserTasksWithJobImplementationDeprecated: I?.areUserTasksWithJobImplementationDeprecated ?? !1
|
|
11235
11216
|
},
|
|
11236
|
-
isUserOrgOwnerOrAdmin:
|
|
11217
|
+
isUserOrgOwnerOrAdmin: L,
|
|
11237
11218
|
organizationManagementPageUrl: P
|
|
11238
11219
|
};
|
|
11239
11220
|
return /* @__PURE__ */ f(_.Provider, { value: Pe, children: [
|