@camunda/play 7.1.1 → 7.1.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 +89 -87
- package/build/play.js.map +1 -1
- package/package.json +26 -26
package/build/play.js
CHANGED
|
@@ -11,7 +11,7 @@ import { BpmnModdle as mn } from "bpmn-moddle";
|
|
|
11
11
|
import { isLabel as hr } from "diagram-js/lib/util/ModelUtil.js";
|
|
12
12
|
import { observer as x } from "mobx-react";
|
|
13
13
|
import { WarningFilled as gn, CheckmarkOutline as fr, RadioButtonChecked as mr, Error as gA, Information as gr, Renew as wr, Launch as UA, Edit as FA, View as wn, Add as yn, CheckmarkFilled as bn, ErrorFilled as yr, Link as br, PlayFilledAlt as Ot, TrashCan as vr, Playlist as Er, Warning as Ir, Checkmark as Gt, Flash as Br, ArrowRight as Sr, RowExpand as Cr, RowCollapse as Mr } from "@carbon/icons-react";
|
|
14
|
-
import u, { keyframes as Lt, css as
|
|
14
|
+
import u, { keyframes as Lt, css as ye, createGlobalStyle as Dr } from "styled-components";
|
|
15
15
|
import { createPortal as _ } from "react-dom";
|
|
16
16
|
import oA, { PropTypes as fs } from "prop-types";
|
|
17
17
|
import { MenuItemDivider as Tr, SkeletonText as KA, SkeletonIcon as vn, Button as j, Tooltip as HA, Modal as $e, Stack as G, Link as de, TextInput as We, Callout as xr, DefinitionTooltip as kr, InlineNotification as En, ModalHeader as Nr, ModalBody as Fr, ComposedModal as Rr, ModalFooter as Pr, FormLabel as Vt, ActionableNotification as JA, Loading as IA, InlineLoading as In, Form as Bn, MenuButton as Qr, MenuItem as ms, Tag as Sn, CodeSnippet as Cn, TabList as Or, TabPanel as Gr, Tabs as Lr, Tab as Vr, Layer as Ut, TreeNode as Ur, TreeView as Kr, Table as YA, TableHead as ZA, TableRow as Pe, TableHeader as xe, TableBody as qA, TableCell as re, Toggletip as Mn, ToggletipButton as Dn, ToggletipContent as Tn, IconButton as dA, ProgressBar as Hr, ComboBox as QA, ToggletipActions as Jr, UnorderedList as Yr, ListItem as tt, TextArea as Zr, ProgressIndicator as qr, ProgressStep as gs, OverflowMenu as zr, OverflowMenuItem as st } from "@carbon/react";
|
|
@@ -1363,7 +1363,7 @@ function Fn({
|
|
|
1363
1363
|
}) {
|
|
1364
1364
|
return localStorage.getItem(Nn({ processId: A, elementId: e }));
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function ve({
|
|
1367
1367
|
element: A,
|
|
1368
1368
|
useCache: e,
|
|
1369
1369
|
processId: t
|
|
@@ -1456,7 +1456,7 @@ class fa {
|
|
|
1456
1456
|
});
|
|
1457
1457
|
}
|
|
1458
1458
|
trackUserCompletesElement(e, t) {
|
|
1459
|
-
const { prefillData: s, prefillSource: n } =
|
|
1459
|
+
const { prefillData: s, prefillSource: n } = ve({
|
|
1460
1460
|
element: e,
|
|
1461
1461
|
useCache: !0,
|
|
1462
1462
|
processId: this.processId
|
|
@@ -2870,7 +2870,7 @@ function ie(A) {
|
|
|
2870
2870
|
}
|
|
2871
2871
|
return localStorage.setItem("historyEntries", JSON.stringify(e)), `history ${A}`;
|
|
2872
2872
|
}
|
|
2873
|
-
function
|
|
2873
|
+
function be(A, e) {
|
|
2874
2874
|
const t = localStorage.getItem(A) || "[]", s = JSON.parse(t);
|
|
2875
2875
|
localStorage.setItem(A, JSON.stringify([...s, e]));
|
|
2876
2876
|
}
|
|
@@ -3006,7 +3006,7 @@ let bo = class extends Ne {
|
|
|
3006
3006
|
super.reset(), this.state = { ...Ns };
|
|
3007
3007
|
}
|
|
3008
3008
|
};
|
|
3009
|
-
const
|
|
3009
|
+
const Be = new bo(), vo = ({
|
|
3010
3010
|
processId: A,
|
|
3011
3011
|
element: e,
|
|
3012
3012
|
isSubProcessStartEvent: t,
|
|
@@ -3111,7 +3111,7 @@ class Bo {
|
|
|
3111
3111
|
});
|
|
3112
3112
|
}
|
|
3113
3113
|
get activeMessageSubscriptionCandidates() {
|
|
3114
|
-
const { messageSubscriptionCandidates: e } = C, { activeElementIdsWithoutIncident: t } = he, { variables: s } =
|
|
3114
|
+
const { messageSubscriptionCandidates: e } = C, { activeElementIdsWithoutIncident: t } = he, { variables: s } = Be.state, n = y.state.processInstance?.state === "ACTIVE";
|
|
3115
3115
|
return e.filter(
|
|
3116
3116
|
(r) => qt({
|
|
3117
3117
|
processId: b.processId,
|
|
@@ -4947,8 +4947,8 @@ function jo({
|
|
|
4947
4947
|
[]
|
|
4948
4948
|
), N(() => {
|
|
4949
4949
|
if (!(A === "saas" && e === void 0))
|
|
4950
|
-
return n ? (y.init(), se.init(), uA.init(), he.init(), St.init(), LA.init(), oe.init(),
|
|
4951
|
-
Ke.reset(), EA.reset(), LA.reset(),
|
|
4950
|
+
return n ? (y.init(), se.init(), uA.init(), he.init(), St.init(), LA.init(), oe.init(), Be.init(), It.init(), EA.init(), s && Ke.init()) : Bt.init(a), () => {
|
|
4951
|
+
Ke.reset(), EA.reset(), LA.reset(), Be.reset(), It.reset(), oe.reset(), se.reset(), uA.reset(), he.reset(), St.reset(), Bt.reset(), Me.reset();
|
|
4952
4952
|
};
|
|
4953
4953
|
}, [
|
|
4954
4954
|
A,
|
|
@@ -5617,7 +5617,7 @@ const Js = 5, cc = Lt`
|
|
|
5617
5617
|
opacity: 0.5;
|
|
5618
5618
|
pointer-events: none;
|
|
5619
5619
|
}
|
|
5620
|
-
`, fc =
|
|
5620
|
+
`, fc = ye`
|
|
5621
5621
|
display: flex;
|
|
5622
5622
|
align-items: center;
|
|
5623
5623
|
padding: 7px 20px;
|
|
@@ -5807,7 +5807,7 @@ const Xn = u.header`
|
|
|
5807
5807
|
gap: var(--cds-spacing-02);
|
|
5808
5808
|
`, Ys = u(KA)`
|
|
5809
5809
|
margin: 0;
|
|
5810
|
-
${({ $shouldAlignRight: A = !1 }) => A &&
|
|
5810
|
+
${({ $shouldAlignRight: A = !1 }) => A && ye`
|
|
5811
5811
|
margin-left: auto;
|
|
5812
5812
|
`};
|
|
5813
5813
|
`, Ec = u(vn)`
|
|
@@ -5870,9 +5870,9 @@ const fe = new Cc(), jA = (A) => {
|
|
|
5870
5870
|
text: "You cannot save scenarios in this diagram's project. Contact your project admin to give you the necessary permissions."
|
|
5871
5871
|
}, Dc = u.span`
|
|
5872
5872
|
font-weight: bold;
|
|
5873
|
-
${({ $isGreen: A, $hasPrecedingPlusIcon: e }) =>
|
|
5873
|
+
${({ $isGreen: A, $hasPrecedingPlusIcon: e }) => ye`
|
|
5874
5874
|
${A && "color: var(--cds-support-success);"}
|
|
5875
|
-
${e &&
|
|
5875
|
+
${e && ye`
|
|
5876
5876
|
&:before {
|
|
5877
5877
|
content: '+';
|
|
5878
5878
|
}
|
|
@@ -6145,11 +6145,11 @@ const fe = new Cc(), jA = (A) => {
|
|
|
6145
6145
|
font-weight: 400;
|
|
6146
6146
|
}
|
|
6147
6147
|
`, Qc = u(Fr)`
|
|
6148
|
-
${({ $enableContentOverflow: A }) => A &&
|
|
6148
|
+
${({ $enableContentOverflow: A }) => A && ye`
|
|
6149
6149
|
overflow: unset;
|
|
6150
6150
|
`}
|
|
6151
6151
|
`, Oc = u(j)`
|
|
6152
|
-
${({ $hasIcon: A }) => A &&
|
|
6152
|
+
${({ $hasIcon: A }) => A && ye`
|
|
6153
6153
|
padding-right: 15px;
|
|
6154
6154
|
`}
|
|
6155
6155
|
`, aA = ({
|
|
@@ -6515,12 +6515,12 @@ const XA = x(
|
|
|
6515
6515
|
t
|
|
6516
6516
|
] }) : null });
|
|
6517
6517
|
}, ni = (A, e) => {
|
|
6518
|
-
const { prefillData: t, prefillSource: s } =
|
|
6518
|
+
const { prefillData: t, prefillSource: s } = ve({
|
|
6519
6519
|
element: A,
|
|
6520
6520
|
useCache: !0,
|
|
6521
6521
|
processId: e
|
|
6522
6522
|
}), [n, r] = v(t), [a, o] = v(s), [c, l] = v(!1), d = Qe(n) || n === "", p = () => {
|
|
6523
|
-
const { prefillData: m, prefillSource: g } =
|
|
6523
|
+
const { prefillData: m, prefillSource: g } = ve({
|
|
6524
6524
|
element: A,
|
|
6525
6525
|
useCache: !1,
|
|
6526
6526
|
processId: e
|
|
@@ -6575,7 +6575,7 @@ const XA = x(
|
|
|
6575
6575
|
variables: l,
|
|
6576
6576
|
isStartEvent: s
|
|
6577
6577
|
});
|
|
6578
|
-
E?.success ? (E?.success && a !== void 0 &&
|
|
6578
|
+
E?.success ? (E?.success && a !== void 0 && be(ie(a.key), {
|
|
6579
6579
|
action: "broadcastSignal",
|
|
6580
6580
|
signalName: o,
|
|
6581
6581
|
variables: l,
|
|
@@ -6654,7 +6654,7 @@ function Al(A) {
|
|
|
6654
6654
|
isStartEvent: l = !1,
|
|
6655
6655
|
processInstanceKey: d
|
|
6656
6656
|
}) => {
|
|
6657
|
-
const { prefillData: p } =
|
|
6657
|
+
const { prefillData: p } = ve({
|
|
6658
6658
|
element: A,
|
|
6659
6659
|
useCache: !0,
|
|
6660
6660
|
processId: o
|
|
@@ -6664,7 +6664,7 @@ function Al(A) {
|
|
|
6664
6664
|
variables: p,
|
|
6665
6665
|
isStartEvent: l
|
|
6666
6666
|
});
|
|
6667
|
-
f?.success ? (f?.success && d !== void 0 &&
|
|
6667
|
+
f?.success ? (f?.success && d !== void 0 && be(ie(d), {
|
|
6668
6668
|
action: "broadcastSignal",
|
|
6669
6669
|
elementId: A.id,
|
|
6670
6670
|
signalName: c.signalName,
|
|
@@ -6775,7 +6775,7 @@ const sl = u.div`
|
|
|
6775
6775
|
);
|
|
6776
6776
|
return;
|
|
6777
6777
|
}
|
|
6778
|
-
O?.success ? (O?.success && c !== void 0 &&
|
|
6778
|
+
O?.success ? (O?.success && c !== void 0 && be(ie(c.key), {
|
|
6779
6779
|
action: "publishMessage",
|
|
6780
6780
|
elementId: n,
|
|
6781
6781
|
messageName: l,
|
|
@@ -6900,7 +6900,7 @@ function nl({
|
|
|
6900
6900
|
isStartEvent: d = !1,
|
|
6901
6901
|
processInstanceKey: p
|
|
6902
6902
|
}) => {
|
|
6903
|
-
const { prefillData: f } =
|
|
6903
|
+
const { prefillData: f } = ve({
|
|
6904
6904
|
element: A,
|
|
6905
6905
|
useCache: !0,
|
|
6906
6906
|
processId: c
|
|
@@ -6925,7 +6925,7 @@ function nl({
|
|
|
6925
6925
|
t?.error(ne);
|
|
6926
6926
|
return;
|
|
6927
6927
|
}
|
|
6928
|
-
m?.success && p !== void 0 &&
|
|
6928
|
+
m?.success && p !== void 0 && be(ie(p), {
|
|
6929
6929
|
action: "publishMessage",
|
|
6930
6930
|
elementId: A.id,
|
|
6931
6931
|
messageName: l.messageName,
|
|
@@ -7113,7 +7113,7 @@ const _t = ({
|
|
|
7113
7113
|
);
|
|
7114
7114
|
}, js = (A) => Qe(A) || A === "", CA = x(
|
|
7115
7115
|
({ title: A, isVisible: e, primaryButtonLabel: t, onClose: s, onSubmit: n, element: r }) => {
|
|
7116
|
-
const [a, o] = v(!0), { prefillData: c, prefillSource: l } =
|
|
7116
|
+
const [a, o] = v(!0), { prefillData: c, prefillSource: l } = ve({
|
|
7117
7117
|
element: r,
|
|
7118
7118
|
useCache: a,
|
|
7119
7119
|
processId: b.processId
|
|
@@ -7132,7 +7132,7 @@ const _t = ({
|
|
|
7132
7132
|
clearOnReset: !1,
|
|
7133
7133
|
onReset: () => {
|
|
7134
7134
|
o(!1);
|
|
7135
|
-
const { prefillData: k, prefillSource: R } =
|
|
7135
|
+
const { prefillData: k, prefillSource: R } = ve({
|
|
7136
7136
|
element: r,
|
|
7137
7137
|
useCache: !1,
|
|
7138
7138
|
processId: b.processId
|
|
@@ -7282,8 +7282,8 @@ function ol({
|
|
|
7282
7282
|
...w ? {} : H,
|
|
7283
7283
|
...q
|
|
7284
7284
|
}, Z = t.sanitizePrefillData ? al(Xr(F), ce) : ce;
|
|
7285
|
-
let
|
|
7286
|
-
return ae(Z, $) ?
|
|
7285
|
+
let Ee = "none";
|
|
7286
|
+
return ae(Z, $) ? Ee = "bpmn" : !w && ae(Z, H) && (Ee = "cache"), a(Ee), c(JSON.stringify(Z)), Z;
|
|
7287
7287
|
},
|
|
7288
7288
|
[k, t]
|
|
7289
7289
|
), V = z(
|
|
@@ -7401,16 +7401,16 @@ const oi = ({
|
|
|
7401
7401
|
throw new Error("Upload files for file picker function is not available");
|
|
7402
7402
|
const ce = Array.from(H.entries()), Z = ce.map(
|
|
7403
7403
|
(L) => q(L)
|
|
7404
|
-
),
|
|
7405
|
-
return
|
|
7404
|
+
), Ee = await Promise.allSettled(Z), P = /* @__PURE__ */ new Map();
|
|
7405
|
+
return Ee.forEach((L, ge) => {
|
|
7406
7406
|
const [_e] = ce[ge];
|
|
7407
7407
|
w(L, _e, P);
|
|
7408
7408
|
}), P;
|
|
7409
7409
|
}
|
|
7410
7410
|
function w(H, q, ce) {
|
|
7411
7411
|
if (H.status === "fulfilled") {
|
|
7412
|
-
const { fileRegistryId: Z, uploadedDocuments:
|
|
7413
|
-
F(ce, Z,
|
|
7412
|
+
const { fileRegistryId: Z, uploadedDocuments: Ee } = H.value;
|
|
7413
|
+
F(ce, Z, Ee);
|
|
7414
7414
|
} else
|
|
7415
7415
|
O(q, H.reason);
|
|
7416
7416
|
}
|
|
@@ -7677,7 +7677,7 @@ const ci = x(
|
|
|
7677
7677
|
startInstanceWithForm: c,
|
|
7678
7678
|
hasForm: l
|
|
7679
7679
|
}) => {
|
|
7680
|
-
const { prefillData: d, prefillSource: p } =
|
|
7680
|
+
const { prefillData: d, prefillSource: p } = ve({
|
|
7681
7681
|
element: s,
|
|
7682
7682
|
useCache: !0,
|
|
7683
7683
|
processId: A
|
|
@@ -8180,7 +8180,7 @@ const Rl = u($e)`
|
|
|
8180
8180
|
/* @__PURE__ */ i(Xs, { width: "276px" }),
|
|
8181
8181
|
/* @__PURE__ */ i(Xs, { width: "384px" })
|
|
8182
8182
|
] }), Vl = () => /* @__PURE__ */ i(Ol, { "data-testid": "variables-skeleton", children: [...Array(20)].map((A, e) => /* @__PURE__ */ i(Ll, {}, e)) }), di = x(({ selectedScope: A, isActive: e }) => {
|
|
8183
|
-
const t = X(W), { authType: s } = b, n = t.displayNotification, [r, a] = v(null), [o, c] = v(""), [l, d] = v(!1), [p, f] = v(!1), [m, g] = v(!1), [I, E] = v({}), k =
|
|
8183
|
+
const t = X(W), { authType: s } = b, n = t.displayNotification, [r, a] = v(null), [o, c] = v(""), [l, d] = v(!1), [p, f] = v(!1), [m, g] = v(!1), [I, E] = v({}), k = Be.state.isUpdatingVariable, { instanceKey: R } = y.state, K = Be.state.variables.filter(
|
|
8184
8184
|
(B) => B.scopeKey === A
|
|
8185
8185
|
);
|
|
8186
8186
|
N(() => {
|
|
@@ -8192,7 +8192,7 @@ const Rl = u($e)`
|
|
|
8192
8192
|
}, [A]);
|
|
8193
8193
|
const V = z(
|
|
8194
8194
|
async (B) => {
|
|
8195
|
-
const M = await
|
|
8195
|
+
const M = await Be.setVariables({
|
|
8196
8196
|
instanceKey: R,
|
|
8197
8197
|
scope: A,
|
|
8198
8198
|
variablesString: B
|
|
@@ -8207,7 +8207,7 @@ const Rl = u($e)`
|
|
|
8207
8207
|
);
|
|
8208
8208
|
return;
|
|
8209
8209
|
}
|
|
8210
|
-
M.success && R !== void 0 &&
|
|
8210
|
+
M.success && R !== void 0 && be(ie(R), {
|
|
8211
8211
|
action: "setVariables",
|
|
8212
8212
|
variables: B
|
|
8213
8213
|
}), M.success || n?.error(ne);
|
|
@@ -8216,7 +8216,7 @@ const Rl = u($e)`
|
|
|
8216
8216
|
);
|
|
8217
8217
|
return /* @__PURE__ */ i(fl, { children: /* @__PURE__ */ h(Lr, { children: [
|
|
8218
8218
|
/* @__PURE__ */ i(xl, { "aria-label": "Variables", children: /* @__PURE__ */ i(Vr, { children: "Variables" }) }),
|
|
8219
|
-
/* @__PURE__ */ i(Nl, { children: /* @__PURE__ */ i(kl, { children:
|
|
8219
|
+
/* @__PURE__ */ i(Nl, { children: /* @__PURE__ */ i(kl, { children: Be.isInitialLoadComplete ? /* @__PURE__ */ h(J, { children: [
|
|
8220
8220
|
/* @__PURE__ */ h(ml, { $isEmpty: K.length === 0, children: [
|
|
8221
8221
|
K.length === 0 && /* @__PURE__ */ i(gl, { children: se.isRootNodeSelected ? "This process instance has no variables" : "The flow node has no variables" }),
|
|
8222
8222
|
K.length > 0 && /* @__PURE__ */ h(wl, { children: [
|
|
@@ -8252,7 +8252,7 @@ const Rl = u($e)`
|
|
|
8252
8252
|
value: PA(B.value)
|
|
8253
8253
|
}), B.truncated) {
|
|
8254
8254
|
d(!0);
|
|
8255
|
-
const M = await
|
|
8255
|
+
const M = await Be.fetchVariable(
|
|
8256
8256
|
B.key
|
|
8257
8257
|
);
|
|
8258
8258
|
if (d(!1), M?.value === void 0) {
|
|
@@ -8486,7 +8486,7 @@ function Wl({ type: A }) {
|
|
|
8486
8486
|
}
|
|
8487
8487
|
}
|
|
8488
8488
|
const Xl = u(Sn)`
|
|
8489
|
-
${({ $isVisible: A }) =>
|
|
8489
|
+
${({ $isVisible: A }) => ye`
|
|
8490
8490
|
min-width: 118px;
|
|
8491
8491
|
transition: opacity 0.2s ease-in-out;
|
|
8492
8492
|
opacity: ${A ? "1" : "0"};
|
|
@@ -8497,7 +8497,7 @@ const Xl = u(Sn)`
|
|
|
8497
8497
|
const [e, t] = v(!1), s = ue(null);
|
|
8498
8498
|
return N(() => {
|
|
8499
8499
|
const n = Xe(
|
|
8500
|
-
() =>
|
|
8500
|
+
() => Be.state.variables,
|
|
8501
8501
|
(r, a) => {
|
|
8502
8502
|
[
|
|
8503
8503
|
...r.filter(
|
|
@@ -8548,7 +8548,7 @@ const Xl = u(Sn)`
|
|
|
8548
8548
|
}
|
|
8549
8549
|
) }),
|
|
8550
8550
|
A.flowNodeName || A.flowNodeId,
|
|
8551
|
-
|
|
8551
|
+
Be.isInitialLoadComplete && /* @__PURE__ */ i($l, { scopeKey: A.key })
|
|
8552
8552
|
] }),
|
|
8553
8553
|
isExpanded: !0
|
|
8554
8554
|
},
|
|
@@ -8659,8 +8659,8 @@ const _l = u.ul`
|
|
|
8659
8659
|
/* @__PURE__ */ i(
|
|
8660
8660
|
di,
|
|
8661
8661
|
{
|
|
8662
|
-
isActive:
|
|
8663
|
-
selectedScope:
|
|
8662
|
+
isActive: Be.scopeId === null ? !1 : l[Be.scopeId]?.instance.state === "ACTIVE",
|
|
8663
|
+
selectedScope: Be.scopeId
|
|
8664
8664
|
}
|
|
8665
8665
|
)
|
|
8666
8666
|
] });
|
|
@@ -8927,7 +8927,7 @@ const ut = u(re)`
|
|
|
8927
8927
|
`, kd = u(yr)`
|
|
8928
8928
|
fill: var(--cds-support-error);
|
|
8929
8929
|
`, en = u(Pe)`
|
|
8930
|
-
${({ $isClickable: A }) =>
|
|
8930
|
+
${({ $isClickable: A }) => ye`
|
|
8931
8931
|
${A && "cursor: pointer;"}
|
|
8932
8932
|
`}
|
|
8933
8933
|
`, Nd = u.div`
|
|
@@ -9746,7 +9746,7 @@ const ou = u.div`
|
|
|
9746
9746
|
display: flex;
|
|
9747
9747
|
flex: 1;
|
|
9748
9748
|
`, cu = u.div`
|
|
9749
|
-
${({ $isSelectionAllowed: A, $shouldUseSuccessColors: e }) =>
|
|
9749
|
+
${({ $isSelectionAllowed: A, $shouldUseSuccessColors: e, $isOutlineVisible: t }) => ye`
|
|
9750
9750
|
position: absolute;
|
|
9751
9751
|
height: 100%;
|
|
9752
9752
|
width: 100%;
|
|
@@ -9774,10 +9774,11 @@ const ou = u.div`
|
|
|
9774
9774
|
cursor: pointer !important;
|
|
9775
9775
|
}
|
|
9776
9776
|
}
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
9777
|
+
${t && ye`
|
|
9778
|
+
.djs-outline {
|
|
9779
|
+
visibility: initial !important;
|
|
9780
|
+
}
|
|
9781
|
+
`}
|
|
9781
9782
|
|
|
9782
9783
|
.play-selectable:hover .djs-outline,
|
|
9783
9784
|
.play-selected-frame .djs-outline {
|
|
@@ -9801,7 +9802,7 @@ const ou = u.div`
|
|
|
9801
9802
|
}
|
|
9802
9803
|
}
|
|
9803
9804
|
|
|
9804
|
-
${!A &&
|
|
9805
|
+
${!A && ye`
|
|
9805
9806
|
.djs-hit {
|
|
9806
9807
|
pointer-events: none;
|
|
9807
9808
|
}
|
|
@@ -9910,7 +9911,7 @@ const ou = u.div`
|
|
|
9910
9911
|
)
|
|
9911
9912
|
] }), Tt = x(
|
|
9912
9913
|
({ messageSubscription: A, element: e, isStartEvent: t = !1 }) => {
|
|
9913
|
-
const s = y.state.processInstance, { prefillSource: n } =
|
|
9914
|
+
const s = y.state.processInstance, { prefillSource: n } = ve({
|
|
9914
9915
|
element: e,
|
|
9915
9916
|
useCache: !0,
|
|
9916
9917
|
processId: b.processId
|
|
@@ -9972,7 +9973,7 @@ const hu = { top: -20, left: -30 }, De = { top: -38, left: 0 }, ns = { top: -58,
|
|
|
9972
9973
|
isStartingInstance: n,
|
|
9973
9974
|
hasForm: r
|
|
9974
9975
|
}) => {
|
|
9975
|
-
const { prefillData: a, prefillSource: o } =
|
|
9976
|
+
const { prefillData: a, prefillSource: o } = ve({
|
|
9976
9977
|
element: A,
|
|
9977
9978
|
useCache: !0,
|
|
9978
9979
|
processId: b.processId
|
|
@@ -10123,7 +10124,7 @@ Error message: ${e.message}`
|
|
|
10123
10124
|
);
|
|
10124
10125
|
return;
|
|
10125
10126
|
}
|
|
10126
|
-
d.success === !1 ? t.displayNotification?.error(ne) : r !== void 0 &&
|
|
10127
|
+
d.success === !1 ? t.displayNotification?.error(ne) : r !== void 0 && be(ie(r.key), {
|
|
10127
10128
|
action: "resolveIncident",
|
|
10128
10129
|
elementId: A.id,
|
|
10129
10130
|
hasJob: !!e.jobKey
|
|
@@ -10216,7 +10217,7 @@ const Di = x(({ element: A }) => {
|
|
|
10216
10217
|
elementId: A.id
|
|
10217
10218
|
});
|
|
10218
10219
|
if (M && d !== void 0) {
|
|
10219
|
-
|
|
10220
|
+
be(ie(d), {
|
|
10220
10221
|
action: "throwJob",
|
|
10221
10222
|
elementId: A.id,
|
|
10222
10223
|
errorCode: a,
|
|
@@ -10270,7 +10271,7 @@ const Di = x(({ element: A }) => {
|
|
|
10270
10271
|
}, [e]);
|
|
10271
10272
|
if (!d || !g)
|
|
10272
10273
|
return null;
|
|
10273
|
-
const { prefillData: R, prefillSource: K } =
|
|
10274
|
+
const { prefillData: R, prefillSource: K } = ve({
|
|
10274
10275
|
element: A,
|
|
10275
10276
|
useCache: !0,
|
|
10276
10277
|
processId: b.processId
|
|
@@ -10290,7 +10291,7 @@ const Di = x(({ element: A }) => {
|
|
|
10290
10291
|
processInstanceKey: p?.key,
|
|
10291
10292
|
variables: R,
|
|
10292
10293
|
elementId: A.id
|
|
10293
|
-
}), M && p !== void 0 && (
|
|
10294
|
+
}), M && p !== void 0 && (be(ie(p.key), {
|
|
10294
10295
|
action: "completeJob",
|
|
10295
10296
|
type: "serviceTask",
|
|
10296
10297
|
elementId: A.id,
|
|
@@ -10342,7 +10343,7 @@ const Di = x(({ element: A }) => {
|
|
|
10342
10343
|
processInstanceKey: p?.key,
|
|
10343
10344
|
variables: M,
|
|
10344
10345
|
elementId: A.id
|
|
10345
|
-
}), w && p !== void 0 && (
|
|
10346
|
+
}), w && p !== void 0 && (be(ie(p.key), {
|
|
10346
10347
|
action: "completeJob",
|
|
10347
10348
|
type: "serviceTask",
|
|
10348
10349
|
elementId: A.id,
|
|
@@ -10513,7 +10514,7 @@ const tA = new Vu(), Ti = x(({ element: A }) => {
|
|
|
10513
10514
|
Ti.displayName = "RewindButton";
|
|
10514
10515
|
const kt = x(
|
|
10515
10516
|
({ signalCandidate: A, element: e, isStartEvent: t = !1 }) => {
|
|
10516
|
-
const s = y.state.processInstance, { prefillSource: n } =
|
|
10517
|
+
const s = y.state.processInstance, { prefillSource: n } = ve({
|
|
10517
10518
|
element: e,
|
|
10518
10519
|
useCache: !0,
|
|
10519
10520
|
processId: b.processId
|
|
@@ -10625,7 +10626,7 @@ const Uu = (A) => Ye(A, "zeebe:CalledDecision")?.get("decisionId") ?? null, Ku =
|
|
|
10625
10626
|
);
|
|
10626
10627
|
return;
|
|
10627
10628
|
}
|
|
10628
|
-
r !== void 0 &&
|
|
10629
|
+
r !== void 0 && be(ie(r), {
|
|
10629
10630
|
action: "throwJob",
|
|
10630
10631
|
taskDefinitionType: m,
|
|
10631
10632
|
elementId: p,
|
|
@@ -10733,7 +10734,7 @@ function ki({
|
|
|
10733
10734
|
return;
|
|
10734
10735
|
}
|
|
10735
10736
|
const g = d && He({ prefillSource: d }) || void 0;
|
|
10736
|
-
xt(e, r, g),
|
|
10737
|
+
xt(e, r, g), be(ie(c), {
|
|
10737
10738
|
action: "completeJob",
|
|
10738
10739
|
type: "userTask",
|
|
10739
10740
|
elementId: e.id,
|
|
@@ -10863,7 +10864,7 @@ const Pi = x(
|
|
|
10863
10864
|
({ activityId: g, active: I }) => g === A.id && I > 0
|
|
10864
10865
|
), a = LA.state.userTasks?.find(
|
|
10865
10866
|
(g) => g.taskDefinitionId === A.id && g.taskState === "CREATED"
|
|
10866
|
-
), { prefillData: o, prefillSource: c } =
|
|
10867
|
+
), { prefillData: o, prefillSource: c } = ve({
|
|
10867
10868
|
element: A,
|
|
10868
10869
|
useCache: !0,
|
|
10869
10870
|
processId: b.processId
|
|
@@ -10935,7 +10936,7 @@ const Pi = x(
|
|
|
10935
10936
|
Pi.displayName = "UserTaskCompleteButton";
|
|
10936
10937
|
const Qi = x(
|
|
10937
10938
|
({ element: A, executionListeners: e }) => {
|
|
10938
|
-
const t = X(W), [s, n] = v(!1), { displayNotification: r } = t, [a, o] = v(!1), { prefillData: c } =
|
|
10939
|
+
const t = X(W), [s, n] = v(!1), { displayNotification: r } = t, [a, o] = v(!1), { prefillData: c } = ve({
|
|
10939
10940
|
element: A,
|
|
10940
10941
|
useCache: !0,
|
|
10941
10942
|
processId: b.processId
|
|
@@ -11999,7 +12000,8 @@ const ee = new dp(), Ft = x(({ FeedbackButton: A }) => {
|
|
|
11999
12000
|
{
|
|
12000
12001
|
ref: t,
|
|
12001
12002
|
$isSelectionAllowed: o,
|
|
12002
|
-
$shouldUseSuccessColors: !o
|
|
12003
|
+
$shouldUseSuccessColors: !o,
|
|
12004
|
+
$isOutlineVisible: o || c !== void 0 || l !== void 0
|
|
12003
12005
|
}
|
|
12004
12006
|
),
|
|
12005
12007
|
C.state.isLoaded && /* @__PURE__ */ h(J, { children: [
|
|
@@ -12341,7 +12343,7 @@ const qi = 48, wp = u.div`
|
|
|
12341
12343
|
background-color: var(--cds-layer-01);
|
|
12342
12344
|
border-left: 1px solid var(--cds-border-subtle);
|
|
12343
12345
|
overflow: hidden;
|
|
12344
|
-
`, zi =
|
|
12346
|
+
`, zi = ye`
|
|
12345
12347
|
transform: rotate(90deg);
|
|
12346
12348
|
`, yp = u(Cr)`
|
|
12347
12349
|
${zi}
|
|
@@ -12383,7 +12385,7 @@ const qi = 48, wp = u.div`
|
|
|
12383
12385
|
if (A) return e === "left" || e === "right" ? "cursor: ew-resize;" : "cursor: ns-resize;";
|
|
12384
12386
|
}}
|
|
12385
12387
|
}
|
|
12386
|
-
`, _A =
|
|
12388
|
+
`, _A = ye`
|
|
12387
12389
|
position: absolute;
|
|
12388
12390
|
z-index: var(--z-resizable-panel-handle);
|
|
12389
12391
|
transition: border-color 0.2s ease-in-out;
|
|
@@ -12504,12 +12506,12 @@ const qi = 48, wp = u.div`
|
|
|
12504
12506
|
t === "top" ? ge = P.clientY : t === "bottom" && (ge = window.innerHeight - P.clientY);
|
|
12505
12507
|
}
|
|
12506
12508
|
return ge;
|
|
12507
|
-
}, Z = (P, L) => t === "left" || t === "top" ? P > L ? -1 : P < L ? 1 : 0 : t === "right" || t === "bottom" ? P > L ? 1 : P < L ? -1 : 0 : 0,
|
|
12508
|
-
return h(J, { children: [i(Sp, { $position: t, $isDragging: m }), h(Cp, { ...d, open: A, $background: s, $sizeClosed: c, $position: t, $isDragging: m, className: I ? "animate" : "", style: { [K()]: `${
|
|
12509
|
+
}, Z = (P, L) => t === "left" || t === "top" ? P > L ? -1 : P < L ? 1 : 0 : t === "right" || t === "bottom" ? P > L ? 1 : P < L ? -1 : 0 : 0, Ee = A ? p > o && !m ? o : p < a ? a : p : c;
|
|
12510
|
+
return h(J, { children: [i(Sp, { $position: t, $isDragging: m }), h(Cp, { ...d, open: A, $background: s, $sizeClosed: c, $position: t, $isDragging: m, className: I ? "animate" : "", style: { [K()]: `${Ee}px` }, children: [i((P) => {
|
|
12509
12511
|
const L = { left: i(Dp, { ...P }), right: i(Mp, { ...P }), top: i(xp, { ...P }), bottom: i(Tp, { ...P }) };
|
|
12510
12512
|
if (!L[t]) throw new Error("Invalid position prop");
|
|
12511
12513
|
return L[t];
|
|
12512
|
-
}, { role: "separator", "aria-label": r, "aria-orientation": t === "left" || t === "right" ? "vertical" : "horizontal", "aria-valuenow":
|
|
12514
|
+
}, { role: "separator", "aria-label": r, "aria-orientation": t === "left" || t === "right" ? "vertical" : "horizontal", "aria-valuenow": Ee, "aria-valuemin": c, "aria-valuemax": o, onMouseDown: (P) => {
|
|
12513
12515
|
P.preventDefault(), O();
|
|
12514
12516
|
}, open: A, $isDragging: m, $position: t }), i("div", { className: "content", children: e })] })] });
|
|
12515
12517
|
}, gt = u.div`
|
|
@@ -12530,7 +12532,7 @@ u(j)`
|
|
|
12530
12532
|
const Rp = u.h3`
|
|
12531
12533
|
${te.heading03}
|
|
12532
12534
|
`, Pp = u(j)`
|
|
12533
|
-
${({ $shouldAlignRight: A }) => A &&
|
|
12535
|
+
${({ $shouldAlignRight: A }) => A && ye`
|
|
12534
12536
|
margin-left: auto;
|
|
12535
12537
|
`}
|
|
12536
12538
|
`, ji = x(
|
|
@@ -13142,12 +13144,12 @@ const Gp = u.h3`
|
|
|
13142
13144
|
traceError: H,
|
|
13143
13145
|
fetchWithAuth: q
|
|
13144
13146
|
}) => {
|
|
13145
|
-
const ce = E?.shouldUseOrchestrationClusterAPI, Z = A?.type,
|
|
13147
|
+
const ce = E?.shouldUseOrchestrationClusterAPI, Z = A?.type, Ee = A?.config?.operateBaseUrl, P = Z === "saas" ? A.config.clusterId : void 0, [L, ge] = v(!0), [_e, pe] = v(!1);
|
|
13146
13148
|
N(
|
|
13147
13149
|
() => Xe(
|
|
13148
13150
|
() => y.state.status === "first-fetch" && y.state.instanceType !== "REWOUND_INSTANCE",
|
|
13149
|
-
(
|
|
13150
|
-
pe(
|
|
13151
|
+
(Ie) => {
|
|
13152
|
+
pe(Ie);
|
|
13151
13153
|
}
|
|
13152
13154
|
),
|
|
13153
13155
|
[]
|
|
@@ -13156,8 +13158,8 @@ const Gp = u.h3`
|
|
|
13156
13158
|
N(
|
|
13157
13159
|
() => Xe(
|
|
13158
13160
|
() => tA.state.isRewinding,
|
|
13159
|
-
(
|
|
13160
|
-
Xi(
|
|
13161
|
+
(Ie) => {
|
|
13162
|
+
Xi(Ie);
|
|
13161
13163
|
}
|
|
13162
13164
|
),
|
|
13163
13165
|
[]
|
|
@@ -13205,7 +13207,7 @@ const Gp = u.h3`
|
|
|
13205
13207
|
canUserSaveExampleData: w,
|
|
13206
13208
|
diagramId: F,
|
|
13207
13209
|
authType: Z,
|
|
13208
|
-
operateBaseUrl:
|
|
13210
|
+
operateBaseUrl: Ee,
|
|
13209
13211
|
uploadFilesForFilePicker: $
|
|
13210
13212
|
});
|
|
13211
13213
|
}, [
|
|
@@ -13227,7 +13229,7 @@ const Gp = u.h3`
|
|
|
13227
13229
|
w,
|
|
13228
13230
|
F,
|
|
13229
13231
|
Z,
|
|
13230
|
-
|
|
13232
|
+
Ee,
|
|
13231
13233
|
$
|
|
13232
13234
|
]), N(() => {
|
|
13233
13235
|
Q.init({
|
|
@@ -13258,27 +13260,27 @@ const Gp = u.h3`
|
|
|
13258
13260
|
});
|
|
13259
13261
|
N(() => {
|
|
13260
13262
|
if (!eA) {
|
|
13261
|
-
const
|
|
13263
|
+
const Ie = up(c), Ce = pp(c);
|
|
13262
13264
|
return () => {
|
|
13263
|
-
|
|
13265
|
+
Ie(), Ce();
|
|
13264
13266
|
};
|
|
13265
13267
|
}
|
|
13266
13268
|
}, [c, eA]);
|
|
13267
|
-
function as(
|
|
13269
|
+
function as(Ie) {
|
|
13268
13270
|
return ze(async () => {
|
|
13269
13271
|
const { processInstances: Ce, success: Le } = await D.fetchInstances(
|
|
13270
13272
|
b.state.processDefinitionKey
|
|
13271
13273
|
);
|
|
13272
13274
|
if (Le) {
|
|
13273
13275
|
const Te = Ce[0];
|
|
13274
|
-
return Te && Te.key !==
|
|
13276
|
+
return Te && Te.key !== Ie[0]?.key ? Te.key : null;
|
|
13275
13277
|
} else
|
|
13276
13278
|
return null;
|
|
13277
13279
|
});
|
|
13278
13280
|
}
|
|
13279
13281
|
const et = {
|
|
13280
13282
|
startInstance: async ({
|
|
13281
|
-
elementId:
|
|
13283
|
+
elementId: Ie,
|
|
13282
13284
|
variables: Ce = "{}"
|
|
13283
13285
|
}) => {
|
|
13284
13286
|
const { success: Le, status: Te, instanceId: je } = await D.startInstance({
|
|
@@ -13288,15 +13290,15 @@ const Gp = u.h3`
|
|
|
13288
13290
|
return y.reset(), Le && je !== void 0 && (y.setInstanceDetails({
|
|
13289
13291
|
instanceKey: je,
|
|
13290
13292
|
instanceType: "NEW_INSTANCE"
|
|
13291
|
-
}),
|
|
13293
|
+
}), be(ie(je), {
|
|
13292
13294
|
action: "startInstance",
|
|
13293
|
-
elementId:
|
|
13295
|
+
elementId: Ie,
|
|
13294
13296
|
type: "start-event",
|
|
13295
13297
|
variables: Ce
|
|
13296
13298
|
})), { success: Le, status: Te };
|
|
13297
13299
|
},
|
|
13298
13300
|
publishMessage: async ({
|
|
13299
|
-
elementId:
|
|
13301
|
+
elementId: Ie,
|
|
13300
13302
|
messageName: Ce,
|
|
13301
13303
|
correlationKey: Le,
|
|
13302
13304
|
variables: Te,
|
|
@@ -13330,17 +13332,17 @@ const Gp = u.h3`
|
|
|
13330
13332
|
return AA === null ? (console.error("Could not get new instance"), pe(!1), { success: !1, status: MA }) : (y.reset(), y.setInstanceDetails({
|
|
13331
13333
|
instanceKey: AA,
|
|
13332
13334
|
instanceType: "NEW_INSTANCE"
|
|
13333
|
-
}), pe(!1),
|
|
13335
|
+
}), pe(!1), be(ie(AA), {
|
|
13334
13336
|
action: "startInstance",
|
|
13335
13337
|
type: "message-start-event",
|
|
13336
|
-
elementId:
|
|
13338
|
+
elementId: Ie,
|
|
13337
13339
|
variables: Te
|
|
13338
13340
|
}), { success: !0, instanceId: AA, status: MA });
|
|
13339
13341
|
}
|
|
13340
13342
|
return { success: !0, status: MA };
|
|
13341
13343
|
},
|
|
13342
13344
|
broadcastSignal: async ({
|
|
13343
|
-
elementId:
|
|
13345
|
+
elementId: Ie,
|
|
13344
13346
|
signalName: Ce,
|
|
13345
13347
|
variables: Le,
|
|
13346
13348
|
isStartEvent: Te
|
|
@@ -13367,9 +13369,9 @@ const Gp = u.h3`
|
|
|
13367
13369
|
return Re === null ? (console.error("Could not get new instance"), pe(!1), { success: !1 }) : (y.reset(), y.setInstanceDetails({
|
|
13368
13370
|
instanceKey: Re,
|
|
13369
13371
|
instanceType: "NEW_INSTANCE"
|
|
13370
|
-
}), pe(!1),
|
|
13372
|
+
}), pe(!1), be(ie(Re), {
|
|
13371
13373
|
action: "startInstance",
|
|
13372
|
-
elementId:
|
|
13374
|
+
elementId: Ie,
|
|
13373
13375
|
type: "broadcast-signal-event",
|
|
13374
13376
|
variables: Le
|
|
13375
13377
|
}), { success: !0, instanceId: Re });
|