@cratis/event-models 0.286.1 → 0.288.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +78 -78
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { ProgressSpinner as Ya } from "@cratis/components/Display";
|
|
|
10
10
|
import { createRoot as Xa } from "react-dom/client";
|
|
11
11
|
import { toBlob as Qa } from "html-to-image";
|
|
12
12
|
import { PrototypePreview as Za, PrototypeThumbnail as Ka, useSceneMessages as Ja } from "@cratis/scene/Prototypes";
|
|
13
|
-
var
|
|
13
|
+
var Me = /* @__PURE__ */ (function(e) {
|
|
14
14
|
return e[e.UIRole = 0] = "UIRole", e[e.systemRole = 1] = "systemRole", e[e.chatRole = 2] = "chatRole", e;
|
|
15
15
|
})({}), It = /* @__PURE__ */ (function(e) {
|
|
16
16
|
return e.information = "information", e.warning = "warning", e.error = "error", e;
|
|
@@ -1470,36 +1470,36 @@ function Tl(e, t, n = 1) {
|
|
|
1470
1470
|
var Cn = (e) => {
|
|
1471
1471
|
switch (e) {
|
|
1472
1472
|
case Z.UI:
|
|
1473
|
-
return
|
|
1473
|
+
return Me.UIRole;
|
|
1474
1474
|
case Z.System:
|
|
1475
|
-
return
|
|
1475
|
+
return Me.systemRole;
|
|
1476
1476
|
case Z.Chat:
|
|
1477
|
-
return
|
|
1477
|
+
return Me.chatRole;
|
|
1478
1478
|
default:
|
|
1479
1479
|
return;
|
|
1480
1480
|
}
|
|
1481
1481
|
}, $l = (e) => {
|
|
1482
1482
|
switch (e) {
|
|
1483
|
-
case
|
|
1483
|
+
case Me.UIRole:
|
|
1484
1484
|
return Z.UI;
|
|
1485
|
-
case
|
|
1485
|
+
case Me.systemRole:
|
|
1486
1486
|
return Z.System;
|
|
1487
|
-
case
|
|
1487
|
+
case Me.chatRole:
|
|
1488
1488
|
return Z.Chat;
|
|
1489
1489
|
}
|
|
1490
1490
|
}, _l = {
|
|
1491
1491
|
[B.stateChange]: /* @__PURE__ */ new Set([
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1492
|
+
Me.UIRole,
|
|
1493
|
+
Me.systemRole,
|
|
1494
|
+
Me.chatRole
|
|
1495
1495
|
]),
|
|
1496
1496
|
[B.stateView]: /* @__PURE__ */ new Set([
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1497
|
+
Me.UIRole,
|
|
1498
|
+
Me.systemRole,
|
|
1499
|
+
Me.chatRole
|
|
1500
1500
|
]),
|
|
1501
|
-
[B.automation]: /* @__PURE__ */ new Set([
|
|
1502
|
-
[B.translator]: /* @__PURE__ */ new Set([
|
|
1501
|
+
[B.automation]: /* @__PURE__ */ new Set([Me.systemRole, Me.chatRole]),
|
|
1502
|
+
[B.translator]: /* @__PURE__ */ new Set([Me.systemRole, Me.chatRole])
|
|
1503
1503
|
}, Dl = (e, t) => _l[e].has(t), Fl = (e, t) => {
|
|
1504
1504
|
const n = Cn(t);
|
|
1505
1505
|
return n === void 0 || Dl(e, n);
|
|
@@ -1926,17 +1926,17 @@ var md = Jo(ud), gd = ({ drag: e }) => e ? Nt(/* @__PURE__ */ a("div", {
|
|
|
1926
1926
|
flexShrink: 0
|
|
1927
1927
|
} }), vd = (e) => [
|
|
1928
1928
|
{
|
|
1929
|
-
actorType:
|
|
1929
|
+
actorType: Me.UIRole,
|
|
1930
1930
|
label: e.actors.ui,
|
|
1931
1931
|
color: "#e0e7ff"
|
|
1932
1932
|
},
|
|
1933
1933
|
{
|
|
1934
|
-
actorType:
|
|
1934
|
+
actorType: Me.systemRole,
|
|
1935
1935
|
label: e.actors.system,
|
|
1936
1936
|
color: "#dcfce7"
|
|
1937
1937
|
},
|
|
1938
1938
|
{
|
|
1939
|
-
actorType:
|
|
1939
|
+
actorType: Me.chatRole,
|
|
1940
1940
|
label: e.actors.chat,
|
|
1941
1941
|
color: "#fef9c3"
|
|
1942
1942
|
}
|
|
@@ -3513,9 +3513,9 @@ var nc = ({ width: e, collapsed: t, children: n }) => /* @__PURE__ */ a("div", {
|
|
|
3513
3513
|
})), ...r.subFeatures.flatMap((i) => t(n, i, o))]);
|
|
3514
3514
|
return e.modules.flatMap((n) => n.features.flatMap((r) => t(n.id.toString(), r, /* @__PURE__ */ new Set())));
|
|
3515
3515
|
}, Er = (e) => [
|
|
3516
|
-
...e.actors.some((t) => t.actorType ===
|
|
3517
|
-
...e.actors.some((t) => t.actorType ===
|
|
3518
|
-
...e.actors.some((t) => t.actorType ===
|
|
3516
|
+
...e.actors.some((t) => t.actorType === Me.UIRole) ? [Z.UI] : [],
|
|
3517
|
+
...e.actors.some((t) => t.actorType === Me.systemRole) ? [Z.System] : [],
|
|
3518
|
+
...e.actors.some((t) => t.actorType === Me.chatRole) ? [Z.Chat] : [],
|
|
3519
3519
|
Z.Interaction,
|
|
3520
3520
|
Z.Events
|
|
3521
3521
|
], zi = (e, t, n) => Tl(Gt(e).map((r) => ({
|
|
@@ -4663,7 +4663,7 @@ var Lc = ({ type: e }) => /* @__PURE__ */ a("svg", {
|
|
|
4663
4663
|
suggestions: y.actions.featureHeaderSuggestions ?? [],
|
|
4664
4664
|
background: xo
|
|
4665
4665
|
})] });
|
|
4666
|
-
},
|
|
4666
|
+
}, Se = /* @__PURE__ */ (function(e) {
|
|
4667
4667
|
return e.Idle = "idle", e.Running = "running", e.Passed = "passed", e.Failed = "failed", e.Inconclusive = "inconclusive", e.CouldNotRun = "couldNotRun", e.Loading = "loading", e.Unavailable = "unavailable", e;
|
|
4668
4668
|
})({});
|
|
4669
4669
|
function Wc(e, t) {
|
|
@@ -4680,7 +4680,7 @@ function Wc(e, t) {
|
|
|
4680
4680
|
}
|
|
4681
4681
|
}
|
|
4682
4682
|
var Hc = ({ state: e, specification: t }) => {
|
|
4683
|
-
const { actions: n } = ne(), r = Ae(), o = L(!1), [i, s] = D(!1), l = e ===
|
|
4683
|
+
const { actions: n } = ne(), r = Ae(), o = L(!1), [i, s] = D(!1), l = e === Se.Running, d = l ? n.specificationStop : n.specificationRun;
|
|
4684
4684
|
if (!d || d.when && !d.when(t)) return null;
|
|
4685
4685
|
const c = async (u) => {
|
|
4686
4686
|
if (!r) {
|
|
@@ -4710,16 +4710,16 @@ var Hc = ({ state: e, specification: t }) => {
|
|
|
4710
4710
|
children: i && !l ? /* @__PURE__ */ a("i", { className: "pi pi-spin pi-spinner" }) : d.icon
|
|
4711
4711
|
});
|
|
4712
4712
|
}, zc = {
|
|
4713
|
-
[
|
|
4714
|
-
[
|
|
4715
|
-
[
|
|
4716
|
-
[
|
|
4717
|
-
[
|
|
4718
|
-
[
|
|
4719
|
-
[
|
|
4720
|
-
[
|
|
4713
|
+
[Se.Idle]: "pi pi-minus",
|
|
4714
|
+
[Se.Running]: "pi pi-circle",
|
|
4715
|
+
[Se.Passed]: "pi pi-check",
|
|
4716
|
+
[Se.Failed]: "pi pi-times",
|
|
4717
|
+
[Se.Inconclusive]: "pi pi-exclamation-triangle",
|
|
4718
|
+
[Se.CouldNotRun]: "pi pi-ban",
|
|
4719
|
+
[Se.Loading]: "pi pi-spin pi-spinner",
|
|
4720
|
+
[Se.Unavailable]: "pi pi-exclamation-circle"
|
|
4721
4721
|
}, jc = ({ state: e, message: t }) => {
|
|
4722
|
-
const n = we().specificationStatus, r = (e ===
|
|
4722
|
+
const n = we().specificationStatus, r = (e === Se.Failed || e === Se.CouldNotRun || e === Se.Unavailable || e === Se.Inconclusive) && t ? `${n[e]}: ${t}` : n[e], o = e === Se.Failed && t, i = `spec-status spec-status--${e}${o ? " spec-status--has-error" : ""}`;
|
|
4723
4723
|
return /* @__PURE__ */ a("span", {
|
|
4724
4724
|
className: i,
|
|
4725
4725
|
title: r,
|
|
@@ -4870,10 +4870,10 @@ var Hc = ({ state: e, specification: t }) => {
|
|
|
4870
4870
|
more: r
|
|
4871
4871
|
};
|
|
4872
4872
|
}, Qc = (e) => /\s/.test(e) ? e : e.replace(new RegExp("(\\p{Ll})(\\p{Lu})", "gu"), "$1 $2").replace(new RegExp("(\\p{Lu}+)(\\p{Lu}\\p{Ll})", "gu"), "$1 $2").replace(new RegExp("(\\p{L})(\\d)", "gu"), "$1 $2").replace(new RegExp("(\\d)(\\p{L})", "gu"), "$1 $2"), Zc = 44, Mo = {
|
|
4873
|
-
[
|
|
4874
|
-
[
|
|
4875
|
-
[
|
|
4876
|
-
[
|
|
4873
|
+
[Se.Failed]: "",
|
|
4874
|
+
[Se.CouldNotRun]: "could-not-run",
|
|
4875
|
+
[Se.Inconclusive]: "inconclusive",
|
|
4876
|
+
[Se.Unavailable]: "could-not-run"
|
|
4877
4877
|
}, Kc = ({ name: e, description: t, documentation: n, collapsed: r, onToggleCollapse: o, runState: i, runMessage: s, nameNotice: l, annotations: d, executionLabel: c, onRenamed: u, onDeleted: g, runControl: p }) => {
|
|
4878
4878
|
const { messages: h, readOnly: m } = ne(), v = Ae(), f = v ? void 0 : u, b = v ? void 0 : g;
|
|
4879
4879
|
return /* @__PURE__ */ C("div", {
|
|
@@ -4948,15 +4948,15 @@ var Hc = ({ state: e, specification: t }) => {
|
|
|
4948
4948
|
title: l,
|
|
4949
4949
|
children: l
|
|
4950
4950
|
}),
|
|
4951
|
-
c && i !==
|
|
4951
|
+
c && i !== Se.Idle && i !== Se.Loading && i !== Se.Unavailable && /* @__PURE__ */ a("div", {
|
|
4952
4952
|
className: "spec-header-execution",
|
|
4953
4953
|
children: c
|
|
4954
4954
|
}),
|
|
4955
|
-
i ===
|
|
4955
|
+
i === Se.CouldNotRun && s && qn(s) !== void 0 && /* @__PURE__ */ a(Uc, {
|
|
4956
4956
|
problem: qn(s),
|
|
4957
4957
|
message: s
|
|
4958
4958
|
}),
|
|
4959
|
-
s && Mo[i] !== void 0 && !(i ===
|
|
4959
|
+
s && Mo[i] !== void 0 && !(i === Se.CouldNotRun && qn(s) !== void 0) && /* @__PURE__ */ a(Gc, {
|
|
4960
4960
|
text: s,
|
|
4961
4961
|
variant: Mo[i] || void 0
|
|
4962
4962
|
})
|
|
@@ -6151,24 +6151,24 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6151
6151
|
givenReadModel: Q ?? n.givenReadModel
|
|
6152
6152
|
},
|
|
6153
6153
|
contexts: l
|
|
6154
|
-
}), j = [...o ? [o] : [], ...i], H = j.find((z) => z.id.equals(Q?.readModelItemId ?? he.empty)), K = L(null), O = me(() => Qu(r), [r]), Y = me(() => new Map(O.map((z) => [z.id.toString(), z])), [O]), te = (z, ue,
|
|
6154
|
+
}), j = [...o ? [o] : [], ...i], H = j.find((z) => z.id.equals(Q?.readModelItemId ?? he.empty)), K = L(null), O = me(() => Qu(r), [r]), Y = me(() => new Map(O.map((z) => [z.id.toString(), z])), [O]), te = (z, ue, Ce, De, xt, G) => y?.({
|
|
6155
6155
|
sliceId: e,
|
|
6156
6156
|
specificationId: n.id,
|
|
6157
6157
|
itemId: z,
|
|
6158
6158
|
kind: ue,
|
|
6159
|
-
name:
|
|
6159
|
+
name: Ce,
|
|
6160
6160
|
schema: xt,
|
|
6161
6161
|
values: R[z.toString()] ?? {},
|
|
6162
6162
|
host: De,
|
|
6163
6163
|
onValuesSet: (ve) => {
|
|
6164
|
-
E((
|
|
6165
|
-
...
|
|
6164
|
+
E((xe) => ({
|
|
6165
|
+
...xe,
|
|
6166
6166
|
[z.toString()]: ve
|
|
6167
6167
|
})), J.remember(n.id.toString(), z.toString(), ve), G(ve);
|
|
6168
6168
|
}
|
|
6169
6169
|
}), A = (z) => {
|
|
6170
6170
|
const ue = he.create();
|
|
6171
|
-
U((
|
|
6171
|
+
U((Ce) => [...Ce, {
|
|
6172
6172
|
id: ue,
|
|
6173
6173
|
eventId: z.id,
|
|
6174
6174
|
name: z.name,
|
|
@@ -6182,33 +6182,33 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6182
6182
|
values: ue
|
|
6183
6183
|
}), m?.(e, n.id, z.id, z.name), v?.(e, n.id, ue);
|
|
6184
6184
|
}, X = (z, ue) => te(z.id, Ke.readModel, z.name, ue, z.schema, I(z)), de = (z) => {
|
|
6185
|
-
U((ue) => ue.filter((
|
|
6185
|
+
U((ue) => ue.filter((Ce) => !Ce.id.equals(z))), f?.(e, n.id, z);
|
|
6186
6186
|
}, Ie = () => {
|
|
6187
6187
|
q(void 0), b?.(e, n.id);
|
|
6188
6188
|
}, Ne = (z) => (ue) => h?.(e, n.id, z, ue), $e = (z) => {
|
|
6189
6189
|
const ue = he.create();
|
|
6190
|
-
M((
|
|
6190
|
+
M((Ce) => [...Ce, {
|
|
6191
6191
|
id: ue,
|
|
6192
6192
|
readModelItemId: z.id,
|
|
6193
6193
|
name: z.name
|
|
6194
6194
|
}]), w?.(e, n.id, ue, z.id, z.name);
|
|
6195
6195
|
}, We = (z) => {
|
|
6196
|
-
M((ue) => ue.filter((
|
|
6196
|
+
M((ue) => ue.filter((Ce) => !Ce.id.equals(z))), S?.(e, n.id, z);
|
|
6197
6197
|
}, Te = (z) => (ue) => {
|
|
6198
|
-
M((
|
|
6198
|
+
M((Ce) => Ce.map((De) => De.id.equals(z.id) ? {
|
|
6199
6199
|
...De,
|
|
6200
6200
|
values: ue
|
|
6201
6201
|
} : De)), x?.(e, n.id, z.id, ue);
|
|
6202
6202
|
}, rt = n.whenQuery !== void 0, _e = !g && !(rt && n.whenQuery?.legacy), Qe = _e && k && j.length > 0 && !!w, He = T.map((z) => {
|
|
6203
|
-
const ue = j.find((De) => De.id.equals(z.readModelItemId)),
|
|
6203
|
+
const ue = j.find((De) => De.id.equals(z.readModelItemId)), Ce = ue?.name ?? z.name;
|
|
6204
6204
|
return /* @__PURE__ */ a(Ye, {
|
|
6205
|
-
name:
|
|
6205
|
+
name: Ce,
|
|
6206
6206
|
onRemoved: _e && S ? () => We(z.id) : void 0,
|
|
6207
6207
|
children: /* @__PURE__ */ a(Fe, {
|
|
6208
|
-
name:
|
|
6208
|
+
name: Ce,
|
|
6209
6209
|
colors: Be,
|
|
6210
6210
|
values: F ? z.values : R[z.id.toString()] ?? z.values,
|
|
6211
|
-
onOpen: _e && y && x && ue ? (De) => te(z.id, Ke.readModel,
|
|
6211
|
+
onOpen: _e && y && x && ue ? (De) => te(z.id, Ke.readModel, Ce, De, ue.schema, Te(z)) : void 0
|
|
6212
6212
|
})
|
|
6213
6213
|
}, z.id.toString());
|
|
6214
6214
|
}), Ze = !g && t === B.stateChange && !!p, ae = !g && !k && j.length > 0 && !!m && !!y && !P.busy && !(t === B.stateView && P.used.length > 0) && Zu(!0, !!Q), se = Q && (H?.id.equals(o?.id ?? he.empty) ? s ?? H.name : H?.name ?? Q.name), Ee = Q?.id ?? Q?.readModelItemId, Ve = Q && Ee && se !== void 0 && /* @__PURE__ */ a(Ye, {
|
|
@@ -6229,7 +6229,7 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6229
6229
|
name: ue,
|
|
6230
6230
|
colors: Le,
|
|
6231
6231
|
values: F ? z.values : R[z.id.toString()] ?? z.values,
|
|
6232
|
-
onOpen: !g && y && h ? (
|
|
6232
|
+
onOpen: !g && y && h ? (Ce) => te(z.id, Ke.event, ue, Ce, Y.get(fn(z))?.schema, Ne(z.id)) : void 0
|
|
6233
6233
|
})
|
|
6234
6234
|
}, z.id.toString());
|
|
6235
6235
|
}), ze = {
|
|
@@ -6383,14 +6383,14 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6383
6383
|
}, te = () => {
|
|
6384
6384
|
$(void 0), N(n.id, void 0), k?.(e, n.id);
|
|
6385
6385
|
}, A = (G, ve) => {
|
|
6386
|
-
const
|
|
6386
|
+
const xe = c.find((fe) => fe.id.equals(G.queryItemId));
|
|
6387
6387
|
return v?.({
|
|
6388
6388
|
sliceId: e,
|
|
6389
6389
|
specificationId: n.id,
|
|
6390
6390
|
itemId: G.queryItemId,
|
|
6391
6391
|
kind: Ke.query,
|
|
6392
6392
|
name: G.name,
|
|
6393
|
-
schema:
|
|
6393
|
+
schema: xe ? lm(xe) : void 0,
|
|
6394
6394
|
values: G.arguments,
|
|
6395
6395
|
host: ve,
|
|
6396
6396
|
onValuesSet: (fe) => {
|
|
@@ -6407,7 +6407,7 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6407
6407
|
}, de = (G) => {
|
|
6408
6408
|
Q(G), R.remember(n.id.toString(), Lo, G);
|
|
6409
6409
|
}, Ie = (G, ve) => {
|
|
6410
|
-
const
|
|
6410
|
+
const xe = Wn(P, G);
|
|
6411
6411
|
return v?.({
|
|
6412
6412
|
sliceId: e,
|
|
6413
6413
|
specificationId: n.id,
|
|
@@ -6415,10 +6415,10 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6415
6415
|
kind: Ke.event,
|
|
6416
6416
|
name: G.name,
|
|
6417
6417
|
schema: G.schema,
|
|
6418
|
-
values:
|
|
6418
|
+
values: xe ? P?.values ?? {} : {},
|
|
6419
6419
|
host: ve,
|
|
6420
6420
|
onValuesSet: (fe) => {
|
|
6421
|
-
um(fe,
|
|
6421
|
+
um(fe, xe) && (de({
|
|
6422
6422
|
from: lr(n.whenEvent),
|
|
6423
6423
|
eventId: G.id.toString(),
|
|
6424
6424
|
name: G.name,
|
|
@@ -6432,12 +6432,12 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6432
6432
|
eventId: P?.eventId.toString() ?? "",
|
|
6433
6433
|
name: P?.name ?? ""
|
|
6434
6434
|
}), w?.(e, n.id);
|
|
6435
|
-
}, $e = !p && !!v && !!y, We = (G, ve,
|
|
6435
|
+
}, $e = !p && !!v && !!y, We = (G, ve, xe, fe, Ge) => v?.({
|
|
6436
6436
|
sliceId: e,
|
|
6437
6437
|
specificationId: n.id,
|
|
6438
6438
|
itemId: G,
|
|
6439
6439
|
kind: Ke.command,
|
|
6440
|
-
name:
|
|
6440
|
+
name: xe,
|
|
6441
6441
|
schema: ve && r?.id.equals(ve) ? r.schema : void 0,
|
|
6442
6442
|
values: Ge,
|
|
6443
6443
|
host: fe,
|
|
@@ -6449,7 +6449,7 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6449
6449
|
}
|
|
6450
6450
|
}), Te = t === B.stateChange ? r : void 0, rt = t === B.stateView ? i : t === B.translator ? s : [], _e = !!Te && !!H && (H.commandId ? Te.id.equals(H.commandId) : !H.name || H.name === Te.name), Qe = H && (H.commandId && r?.id.equals(H.commandId) ? o ?? H.name : H.name), He = !p && !!v && !!m, Ze = _e && H ? H.id : Te?.id, ae = _e ? T ? H?.values : E : void 0, se = n.caller, Ee = T ? H?.values : E, Ve = t === B.automation || t === B.translator, Re = j && n.given.find((G) => G.id.equals(j.givenEventId));
|
|
6451
6451
|
if (Ve && j && Re) {
|
|
6452
|
-
const G = i.find((
|
|
6452
|
+
const G = i.find((xe) => xe.id.equals(Re.eventId))?.name ?? Re.name, ve = d ? g.specifications.redeliveredTo.replace("{slice}", d) : g.specifications.redelivered;
|
|
6453
6453
|
return /* @__PURE__ */ C(pt, {
|
|
6454
6454
|
headline: g.specifications.when,
|
|
6455
6455
|
children: [/* @__PURE__ */ a(Ye, {
|
|
@@ -6467,14 +6467,14 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6467
6467
|
});
|
|
6468
6468
|
}
|
|
6469
6469
|
if (O) {
|
|
6470
|
-
const G = !p && !O.legacy, ve = c.find((fe) => fe.id.equals(O.queryItemId)),
|
|
6470
|
+
const G = !p && !O.legacy, ve = c.find((fe) => fe.id.equals(O.queryItemId)), xe = ve?.name ?? O.name;
|
|
6471
6471
|
return /* @__PURE__ */ a(pt, {
|
|
6472
6472
|
headline: g.specifications.when,
|
|
6473
6473
|
children: /* @__PURE__ */ a(Ye, {
|
|
6474
|
-
name:
|
|
6474
|
+
name: xe,
|
|
6475
6475
|
onRemoved: G && k ? te : void 0,
|
|
6476
6476
|
children: /* @__PURE__ */ a(Fe, {
|
|
6477
|
-
name:
|
|
6477
|
+
name: xe,
|
|
6478
6478
|
colors: Io,
|
|
6479
6479
|
values: O.arguments,
|
|
6480
6480
|
onOpen: G && v && S && ve && ve.parameters.length > 0 ? (fe) => A(O, fe) : void 0
|
|
@@ -6484,7 +6484,7 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6484
6484
|
}
|
|
6485
6485
|
const ze = t === B.stateView ? i : [];
|
|
6486
6486
|
if (P && !ze.some((G) => Wn(P, G))) {
|
|
6487
|
-
const G = i.find((fe) => fe.id.equals(P.eventId) || fe.name.toLowerCase() === P.name.toLowerCase()), ve = G?.name ?? P.name,
|
|
6487
|
+
const G = i.find((fe) => fe.id.equals(P.eventId) || fe.name.toLowerCase() === P.name.toLowerCase()), ve = G?.name ?? P.name, xe = g.specifications.values ?? zt;
|
|
6488
6488
|
return /* @__PURE__ */ a(pt, {
|
|
6489
6489
|
headline: g.specifications.when,
|
|
6490
6490
|
children: /* @__PURE__ */ a(Ye, {
|
|
@@ -6494,13 +6494,13 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6494
6494
|
name: ve,
|
|
6495
6495
|
colors: Le,
|
|
6496
6496
|
values: P.values,
|
|
6497
|
-
message: P.eventSourceId ? Oo(P.eventSourceId,
|
|
6497
|
+
message: P.eventSourceId ? Oo(P.eventSourceId, xe) : void 0,
|
|
6498
6498
|
onOpen: $e && G ? (fe) => Ie(G, fe) : void 0
|
|
6499
6499
|
}, P.id.toString())
|
|
6500
6500
|
})
|
|
6501
6501
|
});
|
|
6502
6502
|
}
|
|
6503
|
-
const z = !!H && Object.keys(H.values ?? {}).length > 0, ue = Ve ? am(n.given, l, i, s) : [],
|
|
6503
|
+
const z = !!H && Object.keys(H.values ?? {}).length > 0, ue = Ve ? am(n.given, l, i, s) : [], Ce = !p && !z && f && ue.length > 0 ? [{
|
|
6504
6504
|
heading: g.specifications.redeliverGivenEvent,
|
|
6505
6505
|
options: ue.map((G) => ({
|
|
6506
6506
|
label: i.find((ve) => ve.id.equals(G.eventId))?.name ?? G.name,
|
|
@@ -6509,7 +6509,7 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6509
6509
|
}] : [], De = !p && t === B.stateView && !P && !H && !j && c.length > 0 && !!x, xt = !p && t !== B.stateChange && t !== B.stateView && !H && !!r && !!h;
|
|
6510
6510
|
return /* @__PURE__ */ C(pt, {
|
|
6511
6511
|
headline: g.specifications.when,
|
|
6512
|
-
actions: (xt ||
|
|
6512
|
+
actions: (xt || Ce.length > 0 || De) && (De ? /* @__PURE__ */ a(Tt, {
|
|
6513
6513
|
options: c,
|
|
6514
6514
|
nameOf: (G) => G.name,
|
|
6515
6515
|
onChosen: Y,
|
|
@@ -6518,7 +6518,7 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6518
6518
|
options: xt && r ? [r] : [],
|
|
6519
6519
|
nameOf: (G) => G.name,
|
|
6520
6520
|
onChosen: K,
|
|
6521
|
-
groups:
|
|
6521
|
+
groups: Ce
|
|
6522
6522
|
})),
|
|
6523
6523
|
children: [
|
|
6524
6524
|
H && Qe && !_e && /* @__PURE__ */ a(Fe, {
|
|
@@ -6536,13 +6536,13 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6536
6536
|
onOpen: He ? (G) => We(Ze, Te.id, Te.name, G, E) : void 0
|
|
6537
6537
|
}, Ze.toString()),
|
|
6538
6538
|
rt.map((G) => {
|
|
6539
|
-
const ve = t === B.stateView && Wn(P, G),
|
|
6539
|
+
const ve = t === B.stateView && Wn(P, G), xe = ze.find((Ge) => Ge.id.equals(G.id)), fe = /* @__PURE__ */ a(Fe, {
|
|
6540
6540
|
name: G.name,
|
|
6541
6541
|
colors: t === B.translator ? ir : Le,
|
|
6542
6542
|
caller: se,
|
|
6543
6543
|
values: ve ? P?.values : void 0,
|
|
6544
6544
|
message: ve && P?.eventSourceId ? Oo(P.eventSourceId, g.specifications.values ?? zt) : void 0,
|
|
6545
|
-
onOpen: $e &&
|
|
6545
|
+
onOpen: $e && xe ? (Ge) => Ie(xe, Ge) : void 0
|
|
6546
6546
|
}, G.id.toString());
|
|
6547
6547
|
return ve ? /* @__PURE__ */ a(Ye, {
|
|
6548
6548
|
name: G.name,
|
|
@@ -6716,7 +6716,7 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6716
6716
|
...je,
|
|
6717
6717
|
name: ce
|
|
6718
6718
|
} : je)), y?.(e, n.id, W, ce);
|
|
6719
|
-
},
|
|
6719
|
+
}, Ce = () => {
|
|
6720
6720
|
j(!0), N?.(e, n.id);
|
|
6721
6721
|
}, De = () => {
|
|
6722
6722
|
j(!1), M?.(e, n.id);
|
|
@@ -6751,7 +6751,7 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6751
6751
|
}) : void 0
|
|
6752
6752
|
})
|
|
6753
6753
|
}, W.id.toString());
|
|
6754
|
-
}),
|
|
6754
|
+
}), xe = We.map((W) => {
|
|
6755
6755
|
const ce = W.reference ? pm(W.reference, r) ?? p.specifications.missingRule : W.name, be = W.reference ? /* @__PURE__ */ a(St, {
|
|
6756
6756
|
name: ce,
|
|
6757
6757
|
backgroundColor: ht.background,
|
|
@@ -6785,7 +6785,7 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6785
6785
|
})
|
|
6786
6786
|
}, "no-events"), Ge = _e.noEvents && N && !Ne && $e.length === 0 && We.length === 0 ? [{
|
|
6787
6787
|
label: p.specifications.noEvents,
|
|
6788
|
-
onChosen:
|
|
6788
|
+
onChosen: Ce
|
|
6789
6789
|
}] : [], ut = _e.errors && !Ne ? [...f ? [{
|
|
6790
6790
|
label: p.specifications.addError,
|
|
6791
6791
|
onChosen: ze
|
|
@@ -6804,7 +6804,7 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6804
6804
|
isLast: !0,
|
|
6805
6805
|
children: [
|
|
6806
6806
|
ve,
|
|
6807
|
-
|
|
6807
|
+
xe,
|
|
6808
6808
|
Ee,
|
|
6809
6809
|
/* @__PURE__ */ a(sr, {
|
|
6810
6810
|
declaration: n.outcomes,
|
|
@@ -6827,7 +6827,7 @@ var pu = 250, fu = "Inter, Helvetica, Arial, sans-serif", St = ({ name: e, backg
|
|
|
6827
6827
|
children: [
|
|
6828
6828
|
fe,
|
|
6829
6829
|
ve,
|
|
6830
|
-
|
|
6830
|
+
xe,
|
|
6831
6831
|
Yr && /* @__PURE__ */ a(Fe, {
|
|
6832
6832
|
name: i.name,
|
|
6833
6833
|
colors: Be,
|
|
@@ -10661,7 +10661,7 @@ var Aa = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
10661
10661
|
export {
|
|
10662
10662
|
gd as ActorRowDragGhost,
|
|
10663
10663
|
mo as ActorRowDropIndicator,
|
|
10664
|
-
|
|
10664
|
+
Me as ActorType,
|
|
10665
10665
|
Ov as AddPrototypeButton,
|
|
10666
10666
|
Sn as AnchoredOverlay,
|
|
10667
10667
|
vn as AnnotationBadge,
|
|
@@ -10821,7 +10821,7 @@ export {
|
|
|
10821
10821
|
Hc as SpecificationRunButton,
|
|
10822
10822
|
Ln as SpecificationRunOutcome,
|
|
10823
10823
|
Uc as SpecificationRunProblem,
|
|
10824
|
-
|
|
10824
|
+
Se as SpecificationRunState,
|
|
10825
10825
|
cu as SpecificationSection,
|
|
10826
10826
|
jc as SpecificationStatus,
|
|
10827
10827
|
En as SpecificationValuesMemoryContext,
|