@cratis/event-models 0.135.5 → 0.135.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/event-models.css +1 -1
- package/dist/index.js +251 -249
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Guid as de } from "@cratis/fundamentals";
|
|
2
|
-
import { Fragment as Le, createContext as xe, forwardRef as Mi, memo as sr, startTransition as
|
|
2
|
+
import { Fragment as Le, createContext as xe, forwardRef as Mi, memo as sr, startTransition as Ei, useCallback as q, useContext as we, useEffect as ne, useId as Mt, useImperativeHandle as Ze, useLayoutEffect as Kt, useMemo as oe, useRef as A, useState as B } from "react";
|
|
3
3
|
import { Fragment as ee, jsx as a, jsxs as x } from "react/jsx-runtime";
|
|
4
|
-
import { createPortal as ze, flushSync as
|
|
4
|
+
import { createPortal as ze, flushSync as Ni } from "react-dom";
|
|
5
5
|
import { Canvas as Ii, CanvasItem as lr, Note as ki, canvasGesture as bt } from "@cratis/components/Canvas";
|
|
6
6
|
import { SchemaEditor as Ri } from "@cratis/components/SchemaEditor";
|
|
7
7
|
import { Dialog as Ai, DialogInitialFocus as Oi } from "@cratis/components/Dialogs";
|
|
@@ -14,7 +14,7 @@ var se = /* @__PURE__ */ (function(e) {
|
|
|
14
14
|
return e[e.UIRole = 0] = "UIRole", e[e.systemRole = 1] = "systemRole", e[e.chatRole = 2] = "chatRole", e;
|
|
15
15
|
})({}), Hi = /* @__PURE__ */ (function(e) {
|
|
16
16
|
return e.system = "system", e.agent = "agent", e.user = "user", e;
|
|
17
|
-
})({}),
|
|
17
|
+
})({}), Ee = /* @__PURE__ */ (function(e) {
|
|
18
18
|
return e[e.timer = 0] = "timer", e[e.event = 1] = "event", e[e.custom = 2] = "custom", e[e.none = 3] = "none", e;
|
|
19
19
|
})({}), uu = /* @__PURE__ */ (function(e) {
|
|
20
20
|
return e[e.notSet = 0] = "notSet", e[e.value = 1] = "value", e[e.commandProperty = 2] = "commandProperty", e;
|
|
@@ -30,7 +30,7 @@ var se = /* @__PURE__ */ (function(e) {
|
|
|
30
30
|
return e[e.commandValidationRule = 0] = "commandValidationRule", e[e.eventUniqueConstraint = 1] = "eventUniqueConstraint", e[e.eventUniqueEventTypeConstraint = 2] = "eventUniqueEventTypeConstraint", e;
|
|
31
31
|
})({}), Rt = /* @__PURE__ */ (function(e) {
|
|
32
32
|
return e[e.passed = 0] = "passed", e[e.failed = 1] = "failed", e[e.inconclusive = 2] = "inconclusive", e;
|
|
33
|
-
})({}),
|
|
33
|
+
})({}), Ne = /* @__PURE__ */ (function(e) {
|
|
34
34
|
return e[e.input = 0] = "input", e[e.output = 1] = "output", e;
|
|
35
35
|
})({}), ht = class extends Error {
|
|
36
36
|
path;
|
|
@@ -196,12 +196,12 @@ var se = /* @__PURE__ */ (function(e) {
|
|
|
196
196
|
...r ? { eventStreamType: r } : {},
|
|
197
197
|
...i ? { eventStreamId: i } : {}
|
|
198
198
|
};
|
|
199
|
-
},
|
|
199
|
+
}, En = (e) => e ? {
|
|
200
200
|
name: e.string("name"),
|
|
201
201
|
message: e.string("message")
|
|
202
202
|
} : void 0, Ki = (e) => {
|
|
203
203
|
if (!e) return;
|
|
204
|
-
const t =
|
|
204
|
+
const t = En(e.object("unique")), n = En(e.object("uniqueEventType"));
|
|
205
205
|
return {
|
|
206
206
|
...t ? { unique: t } : {},
|
|
207
207
|
...n ? { uniqueEventType: n } : {}
|
|
@@ -244,7 +244,7 @@ var se = /* @__PURE__ */ (function(e) {
|
|
|
244
244
|
name: t.string("name"),
|
|
245
245
|
type: t.enumValue("type")
|
|
246
246
|
}))
|
|
247
|
-
}),
|
|
247
|
+
}), Nn = (e) => ({
|
|
248
248
|
id: e.guid("id"),
|
|
249
249
|
name: e.string("name"),
|
|
250
250
|
eventId: e.guid("eventId"),
|
|
@@ -289,8 +289,8 @@ var se = /* @__PURE__ */ (function(e) {
|
|
|
289
289
|
return {
|
|
290
290
|
id: e.guid("id"),
|
|
291
291
|
name: e.string("name"),
|
|
292
|
-
given: e.array("given",
|
|
293
|
-
thenEvents: e.array("thenEvents",
|
|
292
|
+
given: e.array("given", Nn),
|
|
293
|
+
thenEvents: e.array("thenEvents", Nn),
|
|
294
294
|
thenErrors: e.array("thenErrors", lo),
|
|
295
295
|
collapsed: e.boolean("collapsed"),
|
|
296
296
|
...t ? { when: t } : {},
|
|
@@ -634,7 +634,7 @@ var xo = {
|
|
|
634
634
|
detailLevel: yo,
|
|
635
635
|
visualizationMode: "simplified",
|
|
636
636
|
detailsVisibility: So
|
|
637
|
-
}, br = xe(xo), be = () => we(br), yr = xe(void 0), Mo = () => we(yr),
|
|
637
|
+
}, br = xe(xo), be = () => we(br), yr = xe(void 0), Mo = () => we(yr), Eo = ({ presentation: e, onChange: t, children: n }) => /* @__PURE__ */ a(br.Provider, {
|
|
638
638
|
value: e,
|
|
639
639
|
children: /* @__PURE__ */ a(yr.Provider, {
|
|
640
640
|
value: t,
|
|
@@ -643,7 +643,7 @@ var xo = {
|
|
|
643
643
|
}), Y = /* @__PURE__ */ (function(e) {
|
|
644
644
|
return e.UI = "ui", e.Chat = "chat", e.System = "system", e.Interaction = "interaction", e.Events = "events", e;
|
|
645
645
|
})({}), In = 260;
|
|
646
|
-
function
|
|
646
|
+
function No(e, t, n, r) {
|
|
647
647
|
if (t === "left" || t === "right") return {
|
|
648
648
|
top: e.top + e.height / 2,
|
|
649
649
|
left: t === "right" ? e.right + r : e.left - r,
|
|
@@ -667,7 +667,7 @@ function Eo(e, t, n, r) {
|
|
|
667
667
|
...c
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
|
-
var
|
|
670
|
+
var Et = ({ anchorRef: e, open: t, side: n = "below", align: r = "left", gap: i = 8, children: o }) => {
|
|
671
671
|
const [s, c] = B();
|
|
672
672
|
return Kt(() => {
|
|
673
673
|
if (!t) {
|
|
@@ -675,7 +675,7 @@ var Nt = ({ anchorRef: e, open: t, side: n = "below", align: r = "left", gap: i
|
|
|
675
675
|
return;
|
|
676
676
|
}
|
|
677
677
|
const u = e.current?.getBoundingClientRect();
|
|
678
|
-
u && c(
|
|
678
|
+
u && c(No(u, n, r, i));
|
|
679
679
|
}, [
|
|
680
680
|
t,
|
|
681
681
|
n,
|
|
@@ -710,7 +710,7 @@ var Nt = ({ anchorRef: e, open: t, side: n = "below", align: r = "left", gap: i
|
|
|
710
710
|
o(!1), c(!1);
|
|
711
711
|
},
|
|
712
712
|
onPointerDown: () => c(!0),
|
|
713
|
-
children: [n, /* @__PURE__ */ a(
|
|
713
|
+
children: [n, /* @__PURE__ */ a(Et, {
|
|
714
714
|
anchorRef: r,
|
|
715
715
|
open: i && !s,
|
|
716
716
|
side: Io[t],
|
|
@@ -1106,7 +1106,7 @@ function Mr(e) {
|
|
|
1106
1106
|
return Math.max(Ot.minHeight, Ot.paddingY * 2 + Ot.titleHeight + ct.marginTop + n);
|
|
1107
1107
|
}
|
|
1108
1108
|
var Go = 8;
|
|
1109
|
-
function
|
|
1109
|
+
function Er(e) {
|
|
1110
1110
|
if (e.sliceType === H.translator || e.sliceType === H.automation || e.sliceType === H.stateChange) return Q.translatorSliceWidth;
|
|
1111
1111
|
const t = ("eventCount" in e ? e.eventCount : e.events.length) >= Q.itemsPerRow ? Q.sliceWidthDouble : Q.sliceWidth;
|
|
1112
1112
|
return e.sliceType === H.stateView ? Math.round(t * 1.5) : t;
|
|
@@ -1142,7 +1142,7 @@ function Zo(e, t) {
|
|
|
1142
1142
|
for (const r of t) n[r] = e.length === 0 ? Ie[r] : Math.max(...e.map(({ slice: i, showDetails: o }) => Uo(r, i, o)));
|
|
1143
1143
|
return n;
|
|
1144
1144
|
}
|
|
1145
|
-
var
|
|
1145
|
+
var Nt = (e) => {
|
|
1146
1146
|
switch (e) {
|
|
1147
1147
|
case Y.UI:
|
|
1148
1148
|
return se.UIRole;
|
|
@@ -1176,15 +1176,15 @@ var Et = (e) => {
|
|
|
1176
1176
|
[H.automation]: /* @__PURE__ */ new Set([se.systemRole, se.chatRole]),
|
|
1177
1177
|
[H.translator]: /* @__PURE__ */ new Set([se.systemRole, se.chatRole])
|
|
1178
1178
|
}, Qo = (e, t) => Ko[e].has(t), ea = (e, t) => {
|
|
1179
|
-
const n =
|
|
1179
|
+
const n = Nt(t);
|
|
1180
1180
|
return n === void 0 || Qo(e, n);
|
|
1181
1181
|
}, ta = (e, t) => {
|
|
1182
|
-
const n =
|
|
1182
|
+
const n = Nt(t);
|
|
1183
1183
|
return n === void 0 ? [] : e.filter((r) => r.actorType === n);
|
|
1184
|
-
},
|
|
1184
|
+
}, Nr = xe(!1), na = ({ renderAll: e = !1, children: t }) => /* @__PURE__ */ a(Nr.Provider, {
|
|
1185
1185
|
value: e,
|
|
1186
1186
|
children: t
|
|
1187
|
-
}), ra = () => we(
|
|
1187
|
+
}), ra = () => we(Nr), ia = 12, An = 24, oa = 100, Ir = 1, aa = 1, sa = 24, la = 3, qe = /* @__PURE__ */ new Map(), zt = !1, Oe = Ir, On = 0, Tt = !1;
|
|
1188
1188
|
function da(e) {
|
|
1189
1189
|
return [...qe].filter(([, t]) => e(t)).sort((t, n) => t[1].distance - n[1].distance);
|
|
1190
1190
|
}
|
|
@@ -1198,7 +1198,7 @@ function ca() {
|
|
|
1198
1198
|
const i = r ? Math.min(Oe, la) : Oe;
|
|
1199
1199
|
let o = 0;
|
|
1200
1200
|
for (const [s, c] of da((u) => !r || u.verdict))
|
|
1201
|
-
if (qe.delete(s), r ?
|
|
1201
|
+
if (qe.delete(s), r ? Ei(() => s(c.verdict)) : s(c.verdict), ++o >= i) break;
|
|
1202
1202
|
Tt = o > 0;
|
|
1203
1203
|
}
|
|
1204
1204
|
qe.size > 0 && tn();
|
|
@@ -1349,7 +1349,7 @@ function nt(e, t) {
|
|
|
1349
1349
|
function kr(e) {
|
|
1350
1350
|
return e === "top" || e === "bottom" ? yt.Vertical : yt.Horizontal;
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function Eu(e) {
|
|
1353
1353
|
return nt(e, "right");
|
|
1354
1354
|
}
|
|
1355
1355
|
function pa(e, t) {
|
|
@@ -1409,7 +1409,7 @@ function ya(e, t, n) {
|
|
|
1409
1409
|
height: u - s
|
|
1410
1410
|
};
|
|
1411
1411
|
}
|
|
1412
|
-
var
|
|
1412
|
+
var Nu = 12, Iu = 600, wa = "Inter, Avenir, Helvetica, Arial, sans-serif", ku = 230, ut = null;
|
|
1413
1413
|
function Sa() {
|
|
1414
1414
|
return ut || (typeof document > "u" || typeof document.createElement != "function" ? null : (ut = document.createElement("canvas").getContext("2d"), ut));
|
|
1415
1415
|
}
|
|
@@ -1710,7 +1710,7 @@ var Ru = 56, Ca = ({ drag: e }) => e ? ze(/* @__PURE__ */ a("div", {
|
|
|
1710
1710
|
case Y.Events:
|
|
1711
1711
|
return t.rows.events;
|
|
1712
1712
|
}
|
|
1713
|
-
}, _n = 4,
|
|
1713
|
+
}, _n = 4, Ea = (e) => e === Y.UI || e === Y.System || e === Y.Chat, Na = {
|
|
1714
1714
|
transform: "rotate(-90deg)",
|
|
1715
1715
|
whiteSpace: "nowrap",
|
|
1716
1716
|
fontSize: 11,
|
|
@@ -1728,9 +1728,9 @@ var Ru = 56, Ca = ({ drag: e }) => e ? ze(/* @__PURE__ */ a("div", {
|
|
|
1728
1728
|
flexShrink: 0,
|
|
1729
1729
|
display: "inline-block"
|
|
1730
1730
|
}), Fn = ({ rowType: e, height: t, name: n, description: r, actorId: i, onRenamed: o, validateName: s, onActorAdded: c, onDragStart: u, dragging: d = !1, badge: l, personaAvatar: p, children: h }) => {
|
|
1731
|
-
const { readOnly: v, messages: m } = Z(), [g, f] = B(!1), [b, w] = B(!1), S = A(void 0), y = A(null),
|
|
1731
|
+
const { readOnly: v, messages: m } = Z(), [g, f] = B(!1), [b, w] = B(!1), S = A(void 0), y = A(null), N = A(null), M = A(null), I = oe(() => [N], []), T = oe(() => [M], []);
|
|
1732
1732
|
Ge(I, () => f(!1), g), Ge(T, () => w(!1), b);
|
|
1733
|
-
const X = n ?? Ma(e, m), j =
|
|
1733
|
+
const X = n ?? Ma(e, m), j = Ea(e), C = j && !v ? o : void 0, L = j && !v ? c : void 0, D = i && !v ? u : void 0, G = v ? [] : l?.actions ?? [], F = v ? void 0 : l?.onActivate, V = G.length > 0 || !!F, O = p ?? l?.avatar, $ = j && (!!O || !!l && !v), E = () => {
|
|
1734
1734
|
if (G.length > 0) {
|
|
1735
1735
|
w((P) => !P);
|
|
1736
1736
|
return;
|
|
@@ -1776,7 +1776,7 @@ var Ru = 56, Ca = ({ drag: e }) => e ? ze(/* @__PURE__ */ a("div", {
|
|
|
1776
1776
|
children: [/* @__PURE__ */ a("button", {
|
|
1777
1777
|
className: "event-modeling-grid-row-label-info-btn",
|
|
1778
1778
|
onClick: (P) => {
|
|
1779
|
-
P.stopPropagation(),
|
|
1779
|
+
P.stopPropagation(), E();
|
|
1780
1780
|
},
|
|
1781
1781
|
title: l?.title ?? X,
|
|
1782
1782
|
"aria-label": l?.title ?? X,
|
|
@@ -1803,7 +1803,7 @@ var Ru = 56, Ca = ({ drag: e }) => e ? ze(/* @__PURE__ */ a("div", {
|
|
|
1803
1803
|
value: X,
|
|
1804
1804
|
onChange: C,
|
|
1805
1805
|
validate: s,
|
|
1806
|
-
style:
|
|
1806
|
+
style: Na
|
|
1807
1807
|
}) : r?.trim() ? /* @__PURE__ */ a(ve, {
|
|
1808
1808
|
content: r,
|
|
1809
1809
|
position: "right",
|
|
@@ -1818,7 +1818,7 @@ var Ru = 56, Ca = ({ drag: e }) => e ? ze(/* @__PURE__ */ a("div", {
|
|
|
1818
1818
|
}),
|
|
1819
1819
|
L && /* @__PURE__ */ x("div", {
|
|
1820
1820
|
className: "event-modeling-grid-row-label-add-role",
|
|
1821
|
-
ref:
|
|
1821
|
+
ref: N,
|
|
1822
1822
|
children: [/* @__PURE__ */ a("button", {
|
|
1823
1823
|
className: "event-modeling-grid-row-label-add-role-btn",
|
|
1824
1824
|
onClick: (P) => {
|
|
@@ -1926,7 +1926,7 @@ var La = ({ collectionId: e, topOffset: t, contentRows: n, rowHeights: r, actors
|
|
|
1926
1926
|
topOffset: t,
|
|
1927
1927
|
collectionId: e.toString(),
|
|
1928
1928
|
children: [/* @__PURE__ */ a(Ca, { drag: g }), n.flatMap((b) => {
|
|
1929
|
-
const w =
|
|
1929
|
+
const w = Nt(b), S = w === void 0 ? [] : i.filter((I) => I.actorType === w), y = {
|
|
1930
1930
|
rowType: b,
|
|
1931
1931
|
height: r[b],
|
|
1932
1932
|
name: p[b],
|
|
@@ -1938,7 +1938,7 @@ var La = ({ collectionId: e, topOffset: t, contentRows: n, rowHeights: r, actors
|
|
|
1938
1938
|
} : void 0,
|
|
1939
1939
|
validateName: (I) => Object.entries(p).find(([T]) => T !== b)?.[1]?.toLowerCase() === I.toLowerCase() ? "Name already in use" : void 0,
|
|
1940
1940
|
onActorAdded: o ? (I) => o(b, I) : void 0
|
|
1941
|
-
},
|
|
1941
|
+
}, N = w === void 0 || S.length === 0 ? [/* @__PURE__ */ a(Le, { children: w !== void 0 && l ? l(b, y) : /* @__PURE__ */ a(Fn, { ...y }) }, b)] : [], M = S.flatMap((I, T) => {
|
|
1942
1942
|
const X = g?.rowType === b, j = {
|
|
1943
1943
|
rowType: b,
|
|
1944
1944
|
height: r[b],
|
|
@@ -1961,7 +1961,7 @@ var La = ({ collectionId: e, topOffset: t, contentRows: n, rowHeights: r, actors
|
|
|
1961
1961
|
...X && T === S.length - 1 && g.dropIndex === S.length ? [/* @__PURE__ */ a(Dn, {}, `drop-${b}-end`)] : []
|
|
1962
1962
|
];
|
|
1963
1963
|
});
|
|
1964
|
-
return [...
|
|
1964
|
+
return [...N, ...M];
|
|
1965
1965
|
})]
|
|
1966
1966
|
});
|
|
1967
1967
|
}, Pa = ({ moduleId: e, collectionId: t, marginLeft: n, dragging: r = !1, ref: i, children: o }) => /* @__PURE__ */ a("div", {
|
|
@@ -2231,7 +2231,7 @@ var Hn = ({ status: e }) => /* @__PURE__ */ a("svg", {
|
|
|
2231
2231
|
className: "event-modeling-menu-dropdown-header",
|
|
2232
2232
|
children: S.label
|
|
2233
2233
|
}, S.id.toString());
|
|
2234
|
-
const y = S.items && S.items.length > 0,
|
|
2234
|
+
const y = S.items && S.items.length > 0, N = u === S.id.toString();
|
|
2235
2235
|
return /* @__PURE__ */ x("div", {
|
|
2236
2236
|
className: "event-modeling-menu-dropdown-item-wrapper",
|
|
2237
2237
|
children: [/* @__PURE__ */ x("button", {
|
|
@@ -2239,7 +2239,7 @@ var Hn = ({ status: e }) => /* @__PURE__ */ a("svg", {
|
|
|
2239
2239
|
disabled: S.disabled,
|
|
2240
2240
|
title: S.tooltip,
|
|
2241
2241
|
onClick: () => {
|
|
2242
|
-
S.disabled || (y ? d(
|
|
2242
|
+
S.disabled || (y ? d(N ? void 0 : S.id.toString()) : (S.keepOpen || g(), S.onClick?.()));
|
|
2243
2243
|
},
|
|
2244
2244
|
children: [
|
|
2245
2245
|
S.icon && /* @__PURE__ */ a("span", {
|
|
@@ -2261,11 +2261,11 @@ var Hn = ({ status: e }) => /* @__PURE__ */ a("svg", {
|
|
|
2261
2261
|
children: S.checked && /* @__PURE__ */ a("i", { className: "pi pi-check" })
|
|
2262
2262
|
}),
|
|
2263
2263
|
y && /* @__PURE__ */ a("span", {
|
|
2264
|
-
className: `event-modeling-menu-dropdown-option-arrow ${
|
|
2264
|
+
className: `event-modeling-menu-dropdown-option-arrow ${N ? "event-modeling-menu-dropdown-option-arrow--open" : ""}`,
|
|
2265
2265
|
children: /* @__PURE__ */ a("i", { className: "pi pi-chevron-right" })
|
|
2266
2266
|
})
|
|
2267
2267
|
]
|
|
2268
|
-
}), y &&
|
|
2268
|
+
}), y && N && /* @__PURE__ */ a("div", {
|
|
2269
2269
|
className: `event-modeling-menu-dropdown-submenu ${n === "right" ? "event-modeling-menu-dropdown-submenu--left" : ""}`,
|
|
2270
2270
|
children: b(S.items)
|
|
2271
2271
|
})]
|
|
@@ -2281,7 +2281,7 @@ var Hn = ({ status: e }) => /* @__PURE__ */ a("svg", {
|
|
|
2281
2281
|
w.stopPropagation(), m(!h);
|
|
2282
2282
|
},
|
|
2283
2283
|
children: e
|
|
2284
|
-
}), /* @__PURE__ */ a(
|
|
2284
|
+
}), /* @__PURE__ */ a(Et, {
|
|
2285
2285
|
anchorRef: l,
|
|
2286
2286
|
open: h,
|
|
2287
2287
|
side: "below",
|
|
@@ -2530,7 +2530,7 @@ var Hn = ({ status: e }) => /* @__PURE__ */ a("svg", {
|
|
|
2530
2530
|
title: y.label,
|
|
2531
2531
|
"aria-label": y.label,
|
|
2532
2532
|
disabled: y.disabled,
|
|
2533
|
-
onClick: (
|
|
2533
|
+
onClick: (N) => y.onActivate(e, N.currentTarget.getBoundingClientRect()),
|
|
2534
2534
|
children: [y.icon, y.indicator && /* @__PURE__ */ a("span", {
|
|
2535
2535
|
className: "event-modeling-feature-chat-dot",
|
|
2536
2536
|
"aria-hidden": "true"
|
|
@@ -2566,7 +2566,7 @@ var Hn = ({ status: e }) => /* @__PURE__ */ a("svg", {
|
|
|
2566
2566
|
title: y.label,
|
|
2567
2567
|
"aria-label": y.label,
|
|
2568
2568
|
disabled: y.disabled,
|
|
2569
|
-
onClick: (
|
|
2569
|
+
onClick: (N) => y.onActivate(e, N.currentTarget.getBoundingClientRect()),
|
|
2570
2570
|
children: y.icon
|
|
2571
2571
|
}, y.id)),
|
|
2572
2572
|
!m.readOnly && /* @__PURE__ */ a(Hr, { suggestions: w.moduleHeaderSuggestions ?? [] }),
|
|
@@ -2739,7 +2739,7 @@ function ss({ collectionId: e, initialModules: t, onAddModule: n, onModulesReord
|
|
|
2739
2739
|
const { readOnly: d } = Z(), l = q((F) => {
|
|
2740
2740
|
if (s) s(F);
|
|
2741
2741
|
else throw F;
|
|
2742
|
-
}, [s]), p = A(es(t)), [h, v] = B(p.current), m = A(!1), [g, f] = B(!1), b = A(/* @__PURE__ */ new Set()), [w, S] = B(/* @__PURE__ */ new Set()), y = A(!1), [
|
|
2742
|
+
}, [s]), p = A(es(t)), [h, v] = B(p.current), m = A(!1), [g, f] = B(!1), b = A(/* @__PURE__ */ new Set()), [w, S] = B(/* @__PURE__ */ new Set()), y = A(!1), [N, M] = B(!1), I = (F, V) => {
|
|
2743
2743
|
V ? b.current.add(F) : b.current.delete(F), S(new Set(b.current));
|
|
2744
2744
|
}, T = q((F) => {
|
|
2745
2745
|
const V = F(p.current);
|
|
@@ -2813,7 +2813,7 @@ function ss({ collectionId: e, initialModules: t, onAddModule: n, onModulesReord
|
|
|
2813
2813
|
r,
|
|
2814
2814
|
l,
|
|
2815
2815
|
d
|
|
2816
|
-
]), { moduleDrag: D, handleModuleDragStart: G } = Qa(e, h.modules.map((F) => F.id), r && !
|
|
2816
|
+
]), { moduleDrag: D, handleModuleDragStart: G } = Qa(e, h.modules.map((F) => F.id), r && !N ? L : void 0);
|
|
2817
2817
|
return /* @__PURE__ */ x(ee, { children: [
|
|
2818
2818
|
/* @__PURE__ */ a(Dr, {
|
|
2819
2819
|
drag: D,
|
|
@@ -2886,14 +2886,14 @@ var ds = ({ width: e, collapsed: t, children: n }) => /* @__PURE__ */ a("div", {
|
|
|
2886
2886
|
slice: n.slice,
|
|
2887
2887
|
showDetails: t?.(n) ?? !1
|
|
2888
2888
|
})), ln(e)), qr = (e, t, n) => t.reduce((r, i) => {
|
|
2889
|
-
const o =
|
|
2889
|
+
const o = Nt(i);
|
|
2890
2890
|
return r + (o === void 0 ? 1 : Math.max(1, e.actors.filter((s) => s.actorType === o).length)) * n[i];
|
|
2891
2891
|
}, 0), Pe = (e) => {
|
|
2892
2892
|
if (e.collapsed) return e.slices.length ? e.slices.length * Q.collapsedSliceWidth + (e.slices.length - 1) * Q.sliceGap : Q.collapsedFeatureWidth;
|
|
2893
2893
|
if (!e.slices.length && e.subFeatures.length) return 0;
|
|
2894
2894
|
const t = Or(e.name);
|
|
2895
2895
|
if (!e.slices.length) return Math.max(Math.round(Q.sliceWidth * 1.5), t);
|
|
2896
|
-
const n = e.slices.reduce((r, i, o) => r + (o ? Q.sliceGap : 0) + (i.collapsed ? Q.collapsedSliceWidth :
|
|
2896
|
+
const n = e.slices.reduce((r, i, o) => r + (o ? Q.sliceGap : 0) + (i.collapsed ? Q.collapsedSliceWidth : Er(i)), 0);
|
|
2897
2897
|
return Math.max(Q.minPillWidth, t, n);
|
|
2898
2898
|
}, Gr = (e) => {
|
|
2899
2899
|
const t = /* @__PURE__ */ new Set(), n = (r) => t.has(r.id.toString()) ? [] : (t.add(r.id.toString()), [r, ...r.subFeatures.flatMap(n)]);
|
|
@@ -3186,7 +3186,7 @@ var Ms = ({ featureId: e, moduleId: t, enabled: n, dragging: r = !1, children: i
|
|
|
3186
3186
|
transition: "opacity 0.15s"
|
|
3187
3187
|
},
|
|
3188
3188
|
children: i
|
|
3189
|
-
}),
|
|
3189
|
+
}), Es = ({ featureId: e, moduleId: t, enabled: n, collapsed: r, rowCollapsed: i, width: o, headerVisibility: s, header: c, screenTemplate: u, slices: d }) => /* @__PURE__ */ x(Ms, {
|
|
3190
3190
|
featureId: e,
|
|
3191
3191
|
moduleId: t,
|
|
3192
3192
|
enabled: n,
|
|
@@ -3202,7 +3202,7 @@ var Ms = ({ featureId: e, moduleId: t, enabled: n, dragging: r = !1, children: i
|
|
|
3202
3202
|
className: i ? "event-modeling-feature-grid-slices--row-collapsed" : s === "visible" ? "event-modeling-feature-grid-slices--header-visible" : void 0,
|
|
3203
3203
|
children: d
|
|
3204
3204
|
})]
|
|
3205
|
-
}),
|
|
3205
|
+
}), Ns = {
|
|
3206
3206
|
before: "inset 6px 0 0 rgba(180,165,255,0.95), inset 0 0 14px 0 rgba(150,130,255,0.5)",
|
|
3207
3207
|
after: "inset -6px 0 0 rgba(180,165,255,0.95), inset 0 0 14px 0 rgba(150,130,255,0.5)"
|
|
3208
3208
|
}, Is = ({ width: e, collapsed: t, dropEdge: n, children: r, ref: i }) => /* @__PURE__ */ a("div", {
|
|
@@ -3210,7 +3210,7 @@ var Ms = ({ featureId: e, moduleId: t, enabled: n, dragging: r = !1, children: i
|
|
|
3210
3210
|
className: `event-modeling-grid-header-cell-wrapper${t ? " event-modeling-grid-header-cell-wrapper--feature-collapsed" : ""}`,
|
|
3211
3211
|
style: {
|
|
3212
3212
|
width: e,
|
|
3213
|
-
boxShadow: n &&
|
|
3213
|
+
boxShadow: n && Ns[n]
|
|
3214
3214
|
},
|
|
3215
3215
|
children: r
|
|
3216
3216
|
});
|
|
@@ -3384,9 +3384,9 @@ function Qr(e, t) {
|
|
|
3384
3384
|
return t.add(e.id.toString()), e.subFeatures.flatMap((n) => t.has(n.id.toString()) ? [] : [n, ...Qr(n, t)]);
|
|
3385
3385
|
}
|
|
3386
3386
|
function Ps({ ref: e, initialFeatures: t, moduleId: n, widthOf: r, isCollapsed: i, forceCollapsed: o = !1, onCollapseChanged: s, occupiesColumn: c, renderHeader: u, renderColumn: d, renderFeatureBoundary: l, onAddFeature: p, onRenameFeature: h, onFeaturesReordered: v, onFeaturesChanged: m }) {
|
|
3387
|
-
const { readOnly: g, messages: f } = Z(), { targets: b, register: w } = Os(), S = A(Ts(t)), [y,
|
|
3387
|
+
const { readOnly: g, messages: f } = Z(), { targets: b, register: w } = Os(), S = A(Ts(t)), [y, N] = B(S.current), M = A(!1), I = A(/* @__PURE__ */ new Set()), T = q((R) => {
|
|
3388
3388
|
const U = R(S.current);
|
|
3389
|
-
U !== S.current && (S.current = U,
|
|
3389
|
+
U !== S.current && (S.current = U, N(U), m?.(U.features));
|
|
3390
3390
|
}, [m]);
|
|
3391
3391
|
ne(() => {
|
|
3392
3392
|
t !== S.current.snapshot && T((R) => Ut(R, t));
|
|
@@ -3467,7 +3467,7 @@ function Ps({ ref: e, initialFeatures: t, moduleId: n, widthOf: r, isCollapsed:
|
|
|
3467
3467
|
F,
|
|
3468
3468
|
c,
|
|
3469
3469
|
r
|
|
3470
|
-
]), O = V.flatMap((R) => [R.feature, ...R.children]).filter(c), $ = new Set(V.filter((R) => R.children.length).map((R) => R.feature.id.toString())),
|
|
3470
|
+
]), O = V.flatMap((R) => [R.feature, ...R.children]).filter(c), $ = new Set(V.filter((R) => R.children.length).map((R) => R.feature.id.toString())), E = new Set(V.flatMap((R) => R.children.map((U) => U.id.toString()))), k = F.map((R) => R.id), W = q((R, U) => {
|
|
3471
3471
|
T((_) => ({
|
|
3472
3472
|
..._,
|
|
3473
3473
|
features: Yt(_.features, U),
|
|
@@ -3484,7 +3484,7 @@ function Ps({ ref: e, initialFeatures: t, moduleId: n, widthOf: r, isCollapsed:
|
|
|
3484
3484
|
onToggleCollapse: s ? () => D(R) : void 0,
|
|
3485
3485
|
onCollapseFailed: s ? () => G(R) : void 0
|
|
3486
3486
|
}), te = (R) => {
|
|
3487
|
-
const U = $.has(R.id.toString()) ? "hidden" :
|
|
3487
|
+
const U = $.has(R.id.toString()) ? "hidden" : E.has(R.id.toString()) ? "visible" : "none";
|
|
3488
3488
|
return {
|
|
3489
3489
|
...z(R),
|
|
3490
3490
|
headerVisibility: U
|
|
@@ -3519,7 +3519,7 @@ function Ps({ ref: e, initialFeatures: t, moduleId: n, widthOf: r, isCollapsed:
|
|
|
3519
3519
|
}),
|
|
3520
3520
|
l && V.flatMap((R) => [R.feature, ...R.children]).map((R) => {
|
|
3521
3521
|
const U = b.get(R.id.toString());
|
|
3522
|
-
return !U || !
|
|
3522
|
+
return !U || !E.has(R.id.toString()) && !U.header || c(R) && !U.column ? null : /* @__PURE__ */ a(Le, { children: l(R, /* @__PURE__ */ x(ee, { children: [!E.has(R.id.toString()) && U.header && ze(u(R, z(R)), U.header), U.column && ze(d(R, te(R)), U.column)] })) }, R.id.toString());
|
|
3523
3523
|
})
|
|
3524
3524
|
] }) : /* @__PURE__ */ a("div", {
|
|
3525
3525
|
className: "event-modeling-module-empty-placeholder",
|
|
@@ -3868,7 +3868,7 @@ var Ds = ({ type: e }) => /* @__PURE__ */ a("svg", {
|
|
|
3868
3868
|
align: "right"
|
|
3869
3869
|
});
|
|
3870
3870
|
}, Vs = "rgba(160,140,230,0.10)", zs = "1px solid rgba(160,140,230,0.22)", qs = ({ featureId: e, name: t, height: n, collapsed: r, onToggleCollapse: i, onRenamed: o, status: s, detailsVisible: c = !1, onToggleDetails: u, dragging: d = !1, onDragStart: l, error: p, onAddSubFeature: h, onAddSlice: v }) => {
|
|
3871
|
-
const m = Z(), { showStatuses: g = !0 } = be(), f = $r(!m.readOnly && !r ? l : void 0), b = m.readOnly ? void 0 : o, w = (m.actions.featureHeader ?? []).filter((M) => !M.when || M.when(e)), S = (m.actions.featureHeaderLeading ?? []).filter((M) => !M.when || M.when(e)), y = m.actions.featureHeaderMenu ?? [],
|
|
3871
|
+
const m = Z(), { showStatuses: g = !0 } = be(), f = $r(!m.readOnly && !r ? l : void 0), b = m.readOnly ? void 0 : o, w = (m.actions.featureHeader ?? []).filter((M) => !M.when || M.when(e)), S = (m.actions.featureHeaderLeading ?? []).filter((M) => !M.when || M.when(e)), y = m.actions.featureHeaderMenu ?? [], N = Vd(e, h, v, m.editing);
|
|
3872
3872
|
return /* @__PURE__ */ a(Pr, {
|
|
3873
3873
|
variant: "feature",
|
|
3874
3874
|
collapsed: r,
|
|
@@ -3975,8 +3975,8 @@ var Ds = ({ type: e }) => /* @__PURE__ */ a("svg", {
|
|
|
3975
3975
|
!m.readOnly && /* @__PURE__ */ a(Hr, { suggestions: m.actions.featureHeaderSuggestions ?? [] }),
|
|
3976
3976
|
!m.readOnly && /* @__PURE__ */ a(Hs, {
|
|
3977
3977
|
featureId: e,
|
|
3978
|
-
onAddSubFeature:
|
|
3979
|
-
onAddSlice:
|
|
3978
|
+
onAddSubFeature: N.onAddSubFeature,
|
|
3979
|
+
onAddSlice: N.onAddSlice,
|
|
3980
3980
|
actions: m.actions.featureHeaderAdd
|
|
3981
3981
|
})
|
|
3982
3982
|
] })
|
|
@@ -4132,14 +4132,14 @@ var Us = ({ state: e, specification: t }) => {
|
|
|
4132
4132
|
}), s = new Set(e.map((u) => u.id.toString())), c = r.filter((u) => !s.has(u.id.toString()));
|
|
4133
4133
|
return c.length || o.some((u, d) => u !== e[d]) ? [...o, ...c] : e;
|
|
4134
4134
|
}, nl = 1, rl = ({ sliceId: e, width: t, collapsed: n, specifications: r, runInfoFor: i, executionLabel: o, renderRows: s }) => {
|
|
4135
|
-
const { editing: c, actions: u, messages: d } = Z(), l = pe(), [p, h] = B(r), [v, m] = B(!1), [g, f] = B(!1), [b, w] = B(!1), S = A(0), y = A(!1),
|
|
4135
|
+
const { editing: c, actions: u, messages: d } = Z(), l = pe(), [p, h] = B(r), [v, m] = B(!1), [g, f] = B(!1), [b, w] = B(!1), S = A(0), y = A(!1), N = A(!1), M = A(!1), I = A(/* @__PURE__ */ new Set()), T = Qs(l, c), X = T ? r : p;
|
|
4136
4136
|
ne(() => {
|
|
4137
|
-
h((
|
|
4137
|
+
h((E) => el(E, r, T, Date.now() <= S.current, I.current));
|
|
4138
4138
|
}, [r, T]);
|
|
4139
4139
|
const j = async () => {
|
|
4140
4140
|
if (y.current || !c.onSpecificationAdded) return;
|
|
4141
4141
|
y.current = !0, w(!0);
|
|
4142
|
-
const
|
|
4142
|
+
const E = {
|
|
4143
4143
|
id: de.create(),
|
|
4144
4144
|
name: `${d.specifications.namePlaceholder} ${nl++}`,
|
|
4145
4145
|
collapsed: !1,
|
|
@@ -4147,64 +4147,64 @@ var Us = ({ state: e, specification: t }) => {
|
|
|
4147
4147
|
thenEvents: [],
|
|
4148
4148
|
thenErrors: []
|
|
4149
4149
|
};
|
|
4150
|
-
h((k) => [...k,
|
|
4150
|
+
h((k) => [...k, E]);
|
|
4151
4151
|
try {
|
|
4152
|
-
await c.onSpecificationAdded(e,
|
|
4152
|
+
await c.onSpecificationAdded(e, E) || h((k) => k.filter((W) => !W.id.equals(E.id)));
|
|
4153
4153
|
} catch {
|
|
4154
|
-
h((k) => k.filter((W) => !W.id.equals(
|
|
4154
|
+
h((k) => k.filter((W) => !W.id.equals(E.id)));
|
|
4155
4155
|
} finally {
|
|
4156
4156
|
y.current = !1, w(!1);
|
|
4157
4157
|
}
|
|
4158
|
-
}, C = (
|
|
4159
|
-
I.current.has(
|
|
4160
|
-
}, L = (
|
|
4161
|
-
h((W) => W.map((K) => K.id.equals(
|
|
4158
|
+
}, C = (E) => {
|
|
4159
|
+
I.current.has(E.toString()) || (I.current.add(E.toString()), S.current = 0, h((k) => k.filter((W) => !W.id.equals(E))), c.onSpecificationRemoved?.(e, E));
|
|
4160
|
+
}, L = (E, k) => {
|
|
4161
|
+
h((W) => W.map((K) => K.id.equals(E) ? {
|
|
4162
4162
|
...K,
|
|
4163
4163
|
name: k
|
|
4164
|
-
} : K)), c.onSpecificationRenamed?.(e,
|
|
4165
|
-
}, D = (
|
|
4166
|
-
l || !c.onSpecificationOpenStateSet || (h((W) => W.map((K) => K.id.equals(
|
|
4164
|
+
} : K)), c.onSpecificationRenamed?.(e, E, k);
|
|
4165
|
+
}, D = (E, k) => {
|
|
4166
|
+
l || !c.onSpecificationOpenStateSet || (h((W) => W.map((K) => K.id.equals(E) ? {
|
|
4167
4167
|
...K,
|
|
4168
4168
|
collapsed: !k
|
|
4169
|
-
} : K)), c.onSpecificationOpenStateSet?.(e,
|
|
4170
|
-
}, G = async (
|
|
4171
|
-
if (!(l ||
|
|
4172
|
-
|
|
4169
|
+
} : K)), c.onSpecificationOpenStateSet?.(e, E, k));
|
|
4170
|
+
}, G = async (E) => {
|
|
4171
|
+
if (!(l || N.current || !u.specificationsGenerate)) {
|
|
4172
|
+
N.current = !0, m(!0);
|
|
4173
4173
|
try {
|
|
4174
|
-
await u.specificationsGenerate.onActivate(e,
|
|
4174
|
+
await u.specificationsGenerate.onActivate(e, E) && (S.current = Date.now() + Ks);
|
|
4175
4175
|
} finally {
|
|
4176
|
-
|
|
4176
|
+
N.current = !1, m(!1);
|
|
4177
4177
|
}
|
|
4178
4178
|
}
|
|
4179
|
-
}, F = async (
|
|
4179
|
+
}, F = async (E) => {
|
|
4180
4180
|
if (!(l || M.current || !u.specificationsRunAll || u.specificationsRunAll.disabled)) {
|
|
4181
4181
|
M.current = !0, f(!0);
|
|
4182
4182
|
try {
|
|
4183
|
-
await u.specificationsRunAll.onActivate(e,
|
|
4183
|
+
await u.specificationsRunAll.onActivate(e, E);
|
|
4184
4184
|
} finally {
|
|
4185
4185
|
M.current = !1, f(!1);
|
|
4186
4186
|
}
|
|
4187
4187
|
}
|
|
4188
4188
|
}, V = u.specificationsGenerate, O = u.specificationsRunAll, $ = !l && V && (!V.when || V.when(e));
|
|
4189
|
-
return n ? null : /* @__PURE__ */ x(ee, { children: [X.map((
|
|
4190
|
-
const { state: W, message: K } = i(
|
|
4189
|
+
return n ? null : /* @__PURE__ */ x(ee, { children: [X.map((E, k) => {
|
|
4190
|
+
const { state: W, message: K } = i(E);
|
|
4191
4191
|
return /* @__PURE__ */ x("div", {
|
|
4192
4192
|
"data-slice-spec-col": "true",
|
|
4193
4193
|
"data-slice-id": e.toString(),
|
|
4194
4194
|
className: `event-modeling-grid-specification-wrapper event-modeling-grid-specification-wrapper--${W}`,
|
|
4195
4195
|
style: { width: 56 + t },
|
|
4196
4196
|
children: [/* @__PURE__ */ a(Js, {
|
|
4197
|
-
name:
|
|
4198
|
-
collapsed:
|
|
4199
|
-
onToggleCollapse: c.onSpecificationOpenStateSet ? () => D(
|
|
4200
|
-
onRenamed: c.onSpecificationRenamed ? (P) => L(
|
|
4201
|
-
onDeleted: c.onSpecificationRemoved ? () => C(
|
|
4197
|
+
name: E.name,
|
|
4198
|
+
collapsed: E.collapsed,
|
|
4199
|
+
onToggleCollapse: c.onSpecificationOpenStateSet ? () => D(E.id, E.collapsed) : void 0,
|
|
4200
|
+
onRenamed: c.onSpecificationRenamed ? (P) => L(E.id, P) : void 0,
|
|
4201
|
+
onDeleted: c.onSpecificationRemoved ? () => C(E.id) : void 0,
|
|
4202
4202
|
runState: W,
|
|
4203
4203
|
runMessage: K,
|
|
4204
4204
|
executionLabel: o,
|
|
4205
4205
|
runControl: /* @__PURE__ */ a(Us, {
|
|
4206
4206
|
state: W,
|
|
4207
|
-
specification:
|
|
4207
|
+
specification: E
|
|
4208
4208
|
}),
|
|
4209
4209
|
gutter: k === 0 && O && (!O.when || O.when(e)) && /* @__PURE__ */ a("button", {
|
|
4210
4210
|
type: "button",
|
|
@@ -4217,8 +4217,8 @@ var Us = ({ state: e, specification: t }) => {
|
|
|
4217
4217
|
title: O.tooltip,
|
|
4218
4218
|
children: O.icon
|
|
4219
4219
|
})
|
|
4220
|
-
}), !
|
|
4221
|
-
}, `${
|
|
4220
|
+
}), !E.collapsed && s(E)]
|
|
4221
|
+
}, `${E.id.toString()}:${Xt(E)}`);
|
|
4222
4222
|
}), !l && (c.onSpecificationAdded || $) && /* @__PURE__ */ x("div", {
|
|
4223
4223
|
className: "event-modeling-grid-specification-add-area",
|
|
4224
4224
|
children: [c.onSpecificationAdded && /* @__PURE__ */ a(ve, {
|
|
@@ -4239,8 +4239,8 @@ var Us = ({ state: e, specification: t }) => {
|
|
|
4239
4239
|
position: "top",
|
|
4240
4240
|
children: /* @__PURE__ */ a("button", {
|
|
4241
4241
|
type: "button",
|
|
4242
|
-
onClick: (
|
|
4243
|
-
G(
|
|
4242
|
+
onClick: (E) => {
|
|
4243
|
+
G(E.currentTarget.getBoundingClientRect());
|
|
4244
4244
|
},
|
|
4245
4245
|
disabled: v,
|
|
4246
4246
|
className: "event-modeling-grid-add-button--small",
|
|
@@ -4342,7 +4342,7 @@ var cl = 250, ul = "Inter, Helvetica, Arial, sans-serif", Je = ({ name: e, backg
|
|
|
4342
4342
|
}, [s]), y = r ? {
|
|
4343
4343
|
outline: `2px solid ${t}`,
|
|
4344
4344
|
outlineOffset: 2
|
|
4345
|
-
} : {},
|
|
4345
|
+
} : {}, N = /* @__PURE__ */ x(ee, { children: [/* @__PURE__ */ x("div", {
|
|
4346
4346
|
className: "event-modeling-card__face",
|
|
4347
4347
|
style: {
|
|
4348
4348
|
background: t,
|
|
@@ -4369,13 +4369,13 @@ var cl = 250, ul = "Inter, Helvetica, Arial, sans-serif", Je = ({ name: e, backg
|
|
|
4369
4369
|
"data-event-id": p,
|
|
4370
4370
|
"data-card-id": h,
|
|
4371
4371
|
"data-slice-id": v,
|
|
4372
|
-
children:
|
|
4372
|
+
children: N
|
|
4373
4373
|
}) : /* @__PURE__ */ a("div", {
|
|
4374
4374
|
className: "event-modeling-card",
|
|
4375
4375
|
"data-event-id": p,
|
|
4376
4376
|
"data-card-id": h,
|
|
4377
4377
|
"data-slice-id": v,
|
|
4378
|
-
children:
|
|
4378
|
+
children: N
|
|
4379
4379
|
});
|
|
4380
4380
|
}, fe = {
|
|
4381
4381
|
background: "#ff9933",
|
|
@@ -4639,13 +4639,13 @@ var cl = 250, ul = "Inter, Helvetica, Arial, sans-serif", Je = ({ name: e, backg
|
|
|
4639
4639
|
};
|
|
4640
4640
|
}, Cl = /* @__PURE__ */ (function(e) {
|
|
4641
4641
|
return e.start = "start", e.end = "end", e.bottomStart = "bottom-start", e.bottomEnd = "bottom-end", e;
|
|
4642
|
-
})({}), xl = ["start", "bottom-start"], Ml = ["bottom-start", "bottom-end"],
|
|
4642
|
+
})({}), xl = ["start", "bottom-start"], Ml = ["bottom-start", "bottom-end"], El = [
|
|
4643
4643
|
"start",
|
|
4644
4644
|
"end",
|
|
4645
4645
|
"bottom-start",
|
|
4646
4646
|
"bottom-end"
|
|
4647
|
-
],
|
|
4648
|
-
[
|
|
4647
|
+
], Nl = (e) => xl.includes(e), Il = (e) => Ml.includes(e), kl = (e) => e * 24 - 6, Rl = -6, Al = (e, t) => ({
|
|
4648
|
+
[Nl(e) ? "left" : "right"]: kl(t),
|
|
4649
4649
|
...Il(e) ? {
|
|
4650
4650
|
top: "auto",
|
|
4651
4651
|
bottom: Rl
|
|
@@ -4720,12 +4720,12 @@ var cl = 250, ul = "Inter, Helvetica, Arial, sans-serif", Je = ({ name: e, backg
|
|
|
4720
4720
|
return e === me.event && f.length === 0 ? w : /* @__PURE__ */ x("div", {
|
|
4721
4721
|
className: Ll[e],
|
|
4722
4722
|
"data-artifact-kind": e,
|
|
4723
|
-
children: [w,
|
|
4723
|
+
children: [w, El.flatMap((S) => b(S).map((y, N) => /* @__PURE__ */ a(Ol, {
|
|
4724
4724
|
action: y,
|
|
4725
4725
|
corner: S,
|
|
4726
|
-
slot:
|
|
4726
|
+
slot: N,
|
|
4727
4727
|
onActivate: () => t && y.onActivate(t, g())
|
|
4728
|
-
}, `${S}-${
|
|
4728
|
+
}, `${S}-${N}`)))]
|
|
4729
4729
|
});
|
|
4730
4730
|
}, vn = ({ value: e, backgroundColor: t, textColor: n, nameError: r, onChange: i, onCommit: o, onCancel: s }) => /* @__PURE__ */ a("div", {
|
|
4731
4731
|
style: {
|
|
@@ -4779,7 +4779,7 @@ var cl = 250, ul = "Inter, Helvetica, Arial, sans-serif", Je = ({ name: e, backg
|
|
|
4779
4779
|
children: [c({
|
|
4780
4780
|
open: u,
|
|
4781
4781
|
toggle: () => d((S) => !S)
|
|
4782
|
-
}), /* @__PURE__ */ a(
|
|
4782
|
+
}), /* @__PURE__ */ a(Et, {
|
|
4783
4783
|
anchorRef: h,
|
|
4784
4784
|
open: u,
|
|
4785
4785
|
side: "above",
|
|
@@ -5022,7 +5022,7 @@ var Vl = (e) => {
|
|
|
5022
5022
|
})]
|
|
5023
5023
|
});
|
|
5024
5024
|
}, Yl = ({ sliceId: e, sliceType: t, specification: n, events: r, readModel: i, renamedReadModelName: o }) => {
|
|
5025
|
-
const { editing: s, messages: c } = Z(), u = pe(), { onGivenEventAdded: d, onGivenEventValuesSet: l, onGivenReadModelSet: p, onGivenReadModelValuesSet: h, onGivenEventRemoved: v, onGivenReadModelRemoved: m, onSpecificationItemOpened: g } = s, [f, b] = B(n.given), [w, S] = B(n.givenReadModel), [y,
|
|
5025
|
+
const { editing: s, messages: c } = Z(), u = pe(), { onGivenEventAdded: d, onGivenEventValuesSet: l, onGivenReadModelSet: p, onGivenReadModelValuesSet: h, onGivenEventRemoved: v, onGivenReadModelRemoved: m, onSpecificationItemOpened: g } = s, [f, b] = B(n.given), [w, S] = B(n.givenReadModel), [y, N] = B(() => ({
|
|
5026
5026
|
...ai(n.given),
|
|
5027
5027
|
...n.givenReadModel ? { [n.givenReadModel.id.toString()]: n.givenReadModel.values ?? {} } : {}
|
|
5028
5028
|
})), M = u || !(d || l || p || h || v || m || g), I = M ? n.given : f, T = M ? n.givenReadModel : w, X = oe(() => Gl(r), [r]), j = oe(() => new Map(X.map((P) => [P.id.toString(), P])), [X]), C = (P, z, te, R, U, _) => g?.({
|
|
@@ -5035,7 +5035,7 @@ var Vl = (e) => {
|
|
|
5035
5035
|
values: y[P.toString()] ?? {},
|
|
5036
5036
|
host: R,
|
|
5037
5037
|
onValuesSet: (J) => {
|
|
5038
|
-
|
|
5038
|
+
N((ae) => ({
|
|
5039
5039
|
...ae,
|
|
5040
5040
|
[P.toString()]: J
|
|
5041
5041
|
})), _(J);
|
|
@@ -5059,14 +5059,14 @@ var Vl = (e) => {
|
|
|
5059
5059
|
b((z) => z.filter((te) => !te.id.equals(P))), v?.(e, n.id, P);
|
|
5060
5060
|
}, F = () => {
|
|
5061
5061
|
S(void 0), m?.(e, n.id);
|
|
5062
|
-
}, V = (P) => (z) => l?.(e, n.id, P, z), O = !u && t === H.stateChange && !!d, $ = !u && !!i && !!p && !!g && Ul(!0, !!T),
|
|
5063
|
-
name:
|
|
5062
|
+
}, V = (P) => (z) => l?.(e, n.id, P, z), O = !u && t === H.stateChange && !!d, $ = !u && !!i && !!p && !!g && Ul(!0, !!T), E = T && (o ?? T.name), k = T?.id ?? T?.readModelItemId, W = T && k && E !== void 0 && /* @__PURE__ */ a(Ct, {
|
|
5063
|
+
name: E,
|
|
5064
5064
|
onRemoved: m ? F : void 0,
|
|
5065
5065
|
children: /* @__PURE__ */ a(De, {
|
|
5066
|
-
name:
|
|
5066
|
+
name: E,
|
|
5067
5067
|
colors: Ke,
|
|
5068
5068
|
values: T.values,
|
|
5069
|
-
onOpen: !u && g && p ? (P) => C(k, We.readModel,
|
|
5069
|
+
onOpen: !u && g && p ? (P) => C(k, We.readModel, E, P, i?.schema, D) : void 0
|
|
5070
5070
|
})
|
|
5071
5071
|
}, k.toString()), K = I.map((P) => {
|
|
5072
5072
|
const z = j.get(P.eventId.toString())?.name ?? P.name;
|
|
@@ -5138,7 +5138,7 @@ var Vl = (e) => {
|
|
|
5138
5138
|
onValuesSet: ($) => {
|
|
5139
5139
|
v?.id.equals(D) && f($), p?.(e, n.id, $);
|
|
5140
5140
|
}
|
|
5141
|
-
}),
|
|
5141
|
+
}), N = t === H.stateChange ? r : void 0, M = t === H.stateView ? o : t === H.translator ? s : [], I = !!N && !!w && (w.commandId ? N.id.equals(w.commandId) : !w.name || w.name === N.name), T = w && (w.commandId && r?.id.equals(w.commandId) ? i ?? w.name : w.name), X = !d && !!h && !!p, j = I && w ? w.id : N?.id, C = I ? b ? w?.values : g : void 0, L = d ? n.caller : void 0;
|
|
5142
5142
|
return /* @__PURE__ */ x(hn, {
|
|
5143
5143
|
headline: u.specifications.when,
|
|
5144
5144
|
actions: !d && t !== H.stateChange && t !== H.stateView && !w && r && l && /* @__PURE__ */ a(pn, {
|
|
@@ -5153,11 +5153,11 @@ var Vl = (e) => {
|
|
|
5153
5153
|
values: w.values,
|
|
5154
5154
|
onOpen: X ? (D) => y(w.id, w.commandId, T, D, g) : void 0
|
|
5155
5155
|
}, w.id.toString()),
|
|
5156
|
-
|
|
5157
|
-
name:
|
|
5156
|
+
N && j && /* @__PURE__ */ a(De, {
|
|
5157
|
+
name: N.name,
|
|
5158
5158
|
colors: Ue,
|
|
5159
5159
|
values: C,
|
|
5160
|
-
onOpen: X ? (D) => y(j,
|
|
5160
|
+
onOpen: X ? (D) => y(j, N.id, N.name, D, g) : void 0
|
|
5161
5161
|
}, j.toString()),
|
|
5162
5162
|
M.map((D) => /* @__PURE__ */ a(De, {
|
|
5163
5163
|
name: D.name,
|
|
@@ -5221,15 +5221,15 @@ var Vl = (e) => {
|
|
|
5221
5221
|
disabled: n
|
|
5222
5222
|
});
|
|
5223
5223
|
}, ed = ({ sliceId: e, sliceType: t, specification: n, events: r, command: i, readModel: o, renamedEventNames: s = {}, extra: c }) => {
|
|
5224
|
-
const { editing: u, messages: d } = Z(), l = pe(), { onThenEventAdded: p, onThenEventValuesSet: h, onThenErrorAdded: v, onThenRuleErrorAdded: m, onThenErrorRenamed: g, onThenEventRemoved: f, onThenErrorRemoved: b, onThenReadModelValuesSet: w, onSpecificationItemOpened: S } = u, [y,
|
|
5224
|
+
const { editing: u, messages: d } = Z(), l = pe(), { onThenEventAdded: p, onThenEventValuesSet: h, onThenErrorAdded: v, onThenRuleErrorAdded: m, onThenErrorRenamed: g, onThenEventRemoved: f, onThenErrorRemoved: b, onThenReadModelValuesSet: w, onSpecificationItemOpened: S } = u, [y, N] = B(n.thenEvents), [M, I] = B(n.thenErrors), [T, X] = B(() => ai(n.thenEvents)), [j, C] = B({}), L = l || !(p || h || v || m || g || f || b || w || S), D = L ? n.thenEvents : y, G = L ? n.thenErrors : M, F = oe(() => new Map(r.map((_) => [_.id.toString(), _])), [r]), V = oe(() => Jl(i, r), [i, r]), O = !l && t !== H.stateView, $ = (_) => {
|
|
5225
5225
|
const J = de.create();
|
|
5226
|
-
|
|
5226
|
+
N((ae) => [...ae, {
|
|
5227
5227
|
id: J,
|
|
5228
5228
|
eventId: _.id,
|
|
5229
5229
|
name: _.name,
|
|
5230
5230
|
values: {}
|
|
5231
5231
|
}]), p?.(e, n.id, J, _.id, _.name);
|
|
5232
|
-
},
|
|
5232
|
+
}, E = () => {
|
|
5233
5233
|
const _ = de.create(), J = d.specifications.error;
|
|
5234
5234
|
I((ae) => [...ae, {
|
|
5235
5235
|
id: _,
|
|
@@ -5248,7 +5248,7 @@ var Vl = (e) => {
|
|
|
5248
5248
|
name: J
|
|
5249
5249
|
} : Ae)), g?.(e, n.id, _, J);
|
|
5250
5250
|
}, K = (_) => {
|
|
5251
|
-
|
|
5251
|
+
N((J) => J.filter((ae) => !ae.id.equals(_))), f?.(e, n.id, _);
|
|
5252
5252
|
}, P = (_) => {
|
|
5253
5253
|
I((J) => J.filter((ae) => !ae.id.equals(_))), b?.(e, n.id, _);
|
|
5254
5254
|
}, z = D.map((_) => {
|
|
@@ -5301,7 +5301,7 @@ var Vl = (e) => {
|
|
|
5301
5301
|
}, _.id.toString());
|
|
5302
5302
|
}), R = [...v ? [{
|
|
5303
5303
|
label: d.specifications.addError,
|
|
5304
|
-
onChosen:
|
|
5304
|
+
onChosen: E
|
|
5305
5305
|
}] : [], ...m ? V.map((_) => ({
|
|
5306
5306
|
label: _.label,
|
|
5307
5307
|
onChosen: () => k(_.reference)
|
|
@@ -5314,7 +5314,7 @@ var Vl = (e) => {
|
|
|
5314
5314
|
content: d.specifications.addItem,
|
|
5315
5315
|
position: "top",
|
|
5316
5316
|
children: /* @__PURE__ */ a("button", {
|
|
5317
|
-
onClick:
|
|
5317
|
+
onClick: E,
|
|
5318
5318
|
className: "event-modeling-grid-add-button--small",
|
|
5319
5319
|
"aria-label": d.specifications.addItem,
|
|
5320
5320
|
children: "+"
|
|
@@ -5414,7 +5414,7 @@ var Vl = (e) => {
|
|
|
5414
5414
|
}
|
|
5415
5415
|
switch (b.rowType) {
|
|
5416
5416
|
case Y.UI: {
|
|
5417
|
-
const y = e.actors.find((
|
|
5417
|
+
const y = e.actors.find((N) => N.id === b.actor?.id);
|
|
5418
5418
|
return /* @__PURE__ */ a(Pc, {
|
|
5419
5419
|
...w,
|
|
5420
5420
|
actorId: b.actor?.id ?? "",
|
|
@@ -5511,11 +5511,11 @@ var Vl = (e) => {
|
|
|
5511
5511
|
})]
|
|
5512
5512
|
})
|
|
5513
5513
|
}), rd = ({ feature: e, options: t, moduleId: n, collection: r, rows: i, heights: o, slices: s, externalEvents: c, slots: u, editor: d, onSliceArea: l, sliceAreas: p, renderHeader: h, onSlicesChanged: v }) => {
|
|
5514
|
-
const m = A(null), g = (y) => s.slice(0, s.findIndex((
|
|
5515
|
-
const I = p.get(
|
|
5514
|
+
const m = A(null), g = (y) => s.slice(0, s.findIndex((N) => N.id.equals(y))).filter((N) => N.sliceType === H.stateChange).flatMap((N) => N.events), f = (y) => s.slice(s.findIndex((N) => N.id.equals(y)) + 1).filter((N) => N.sliceType === H.stateChange).flatMap((N) => N.events), b = q(async (y, N, M) => {
|
|
5515
|
+
const I = p.get(N.toString());
|
|
5516
5516
|
I?.moveIn(y, M);
|
|
5517
5517
|
try {
|
|
5518
|
-
const T = await d.onMoveSlice?.(y, e.id,
|
|
5518
|
+
const T = await d.onMoveSlice?.(y, e.id, N, M) ?? !1;
|
|
5519
5519
|
return I?.completeMoveIn(y.id, T), T;
|
|
5520
5520
|
} catch {
|
|
5521
5521
|
return I?.completeMoveIn(y.id, !1), !1;
|
|
@@ -5524,8 +5524,8 @@ var Vl = (e) => {
|
|
|
5524
5524
|
d.onMoveSlice,
|
|
5525
5525
|
e.id,
|
|
5526
5526
|
p
|
|
5527
|
-
]), w = q((y,
|
|
5528
|
-
!d.onMoveSlice ||
|
|
5527
|
+
]), w = q((y, N) => {
|
|
5528
|
+
!d.onMoveSlice || N.equals(e.id) || !m.current?.moveOut(y.id) || b(y, N, Number.MAX_SAFE_INTEGER).then((M) => m.current?.completeMoveOut(y.id, M));
|
|
5529
5529
|
}, [
|
|
5530
5530
|
d.onMoveSlice,
|
|
5531
5531
|
e.id,
|
|
@@ -5536,7 +5536,7 @@ var Vl = (e) => {
|
|
|
5536
5536
|
onAddSubFeature: t.addSubFeature,
|
|
5537
5537
|
onAddSlice: void 0
|
|
5538
5538
|
};
|
|
5539
|
-
return /* @__PURE__ */ a(
|
|
5539
|
+
return /* @__PURE__ */ a(Es, {
|
|
5540
5540
|
featureId: e.id,
|
|
5541
5541
|
moduleId: n,
|
|
5542
5542
|
enabled: e.enabled,
|
|
@@ -5560,13 +5560,13 @@ var Vl = (e) => {
|
|
|
5560
5560
|
hideEmptyPlaceholder: t.headerVisibility === "hidden",
|
|
5561
5561
|
createSlice: (y) => y,
|
|
5562
5562
|
onSlicesChanged: v,
|
|
5563
|
-
onAddSlice: d.onAddSlice ? (y,
|
|
5563
|
+
onAddSlice: d.onAddSlice ? (y, N) => d.onAddSlice?.(e.id, y, N) ?? Promise.resolve(void 0) : void 0,
|
|
5564
5564
|
onReorderSlices: d.onReorderSlices ? (y) => d.onReorderSlices?.(e.id, y) ?? Promise.resolve(!1) : void 0,
|
|
5565
5565
|
onMoveSlice: d.onMoveSlice ? b : void 0,
|
|
5566
5566
|
validateSliceDrop: d.validateSliceDrop,
|
|
5567
|
-
renderSlice: (y,
|
|
5567
|
+
renderSlice: (y, N) => /* @__PURE__ */ a(nd, {
|
|
5568
5568
|
slice: y,
|
|
5569
|
-
collapsed:
|
|
5569
|
+
collapsed: N.collapsed,
|
|
5570
5570
|
moduleId: n,
|
|
5571
5571
|
featureId: e.id,
|
|
5572
5572
|
collection: r,
|
|
@@ -5577,16 +5577,16 @@ var Vl = (e) => {
|
|
|
5577
5577
|
externalEvents: c,
|
|
5578
5578
|
slots: u,
|
|
5579
5579
|
controls: {
|
|
5580
|
-
collapsed:
|
|
5581
|
-
sliceCollapsed:
|
|
5582
|
-
isDragging:
|
|
5583
|
-
onSliceDragStart:
|
|
5584
|
-
onAddSlice: d.onAddSlice ?
|
|
5580
|
+
collapsed: N.collapsed,
|
|
5581
|
+
sliceCollapsed: N.sliceCollapsed,
|
|
5582
|
+
isDragging: N.isDragging,
|
|
5583
|
+
onSliceDragStart: N.onSliceDragStart,
|
|
5584
|
+
onAddSlice: d.onAddSlice ? N.addSlice : void 0,
|
|
5585
5585
|
onToggleCollapse: d.onSliceCollapseChanged ? () => {
|
|
5586
5586
|
m.current?.updateSlices((M) => M.map((I) => I.id.equals(y.id) ? {
|
|
5587
5587
|
...I,
|
|
5588
|
-
collapsed: !
|
|
5589
|
-
} : I)), d.onSliceCollapseChanged?.(e.id, y.id, !
|
|
5588
|
+
collapsed: !N.sliceCollapsed
|
|
5589
|
+
} : I)), d.onSliceCollapseChanged?.(e.id, y.id, !N.sliceCollapsed);
|
|
5590
5590
|
} : void 0,
|
|
5591
5591
|
onRenamed: d.onSliceRenamed ? (M) => {
|
|
5592
5592
|
m.current?.updateSlices((I) => I.map((T) => T.id.equals(y.id) ? {
|
|
@@ -5699,7 +5699,7 @@ var Vl = (e) => {
|
|
|
5699
5699
|
collapsed: e.collapsed,
|
|
5700
5700
|
onAddModule: l,
|
|
5701
5701
|
onToggleCollapse: p,
|
|
5702
|
-
onRenamed: h ? (y,
|
|
5702
|
+
onRenamed: h ? (y, N) => h(N) : void 0,
|
|
5703
5703
|
onDragStart: d,
|
|
5704
5704
|
onAddFeature: f
|
|
5705
5705
|
}),
|
|
@@ -5740,7 +5740,7 @@ function sd(e, t) {
|
|
|
5740
5740
|
features: n.features.map((r) => ui(t, r))
|
|
5741
5741
|
}));
|
|
5742
5742
|
}
|
|
5743
|
-
var ld = () => 1, dd = ({ collection: e, getZoom: t = ld, slots: n, onDeselect: r, onCollectionMoving: i, onCollectionMoved: o, canMove: s, onAddModule: c, onModulesReordered: u, onCollapseChanged: d, onRenameModule: l, onModulesChanged: p, onFeaturesChanged: h, onPersistenceError: v, rowLabels: m, onActorsReordered: g, onAddFeature: f, onRenameFeature: b, onFeatureCollapseChanged: w, onFeaturesReordered: S, onAddSlice: y, onReorderSlices:
|
|
5743
|
+
var ld = () => 1, dd = ({ collection: e, getZoom: t = ld, slots: n, onDeselect: r, onCollectionMoving: i, onCollectionMoved: o, canMove: s, onAddModule: c, onModulesReordered: u, onCollapseChanged: d, onRenameModule: l, onModulesChanged: p, onFeaturesChanged: h, onPersistenceError: v, rowLabels: m, onActorsReordered: g, onAddFeature: f, onRenameFeature: b, onFeatureCollapseChanged: w, onFeaturesReordered: S, onAddSlice: y, onReorderSlices: N, onMoveSlice: M, validateSliceDrop: I, onSliceCollapseChanged: T, onSliceRenamed: X, onSliceDuplicated: j }) => {
|
|
5744
5744
|
const { readOnly: C, editing: L } = Z(), [D, G] = B(/* @__PURE__ */ new Map()), F = q((ie, ce) => G((ye) => new Map(ye).set(ie.toString(), ce)), []), V = oe(() => sd(e.modules, D), [e.modules, D]), O = C ? {
|
|
5745
5745
|
onFeatureCollapseChanged: F,
|
|
5746
5746
|
onSliceCollapseChanged: (ie, ce, ye) => F(ce, ye)
|
|
@@ -5750,13 +5750,13 @@ var ld = () => 1, dd = ({ collection: e, getZoom: t = ld, slots: n, onDeselect:
|
|
|
5750
5750
|
onFeatureCollapseChanged: w,
|
|
5751
5751
|
onFeaturesReordered: S,
|
|
5752
5752
|
onAddSlice: y,
|
|
5753
|
-
onReorderSlices:
|
|
5753
|
+
onReorderSlices: N,
|
|
5754
5754
|
onMoveSlice: M,
|
|
5755
5755
|
validateSliceDrop: I,
|
|
5756
5756
|
onSliceCollapseChanged: T,
|
|
5757
5757
|
onSliceRenamed: X,
|
|
5758
5758
|
onSliceDuplicated: j
|
|
5759
|
-
}, [$,
|
|
5759
|
+
}, [$, E] = B(e.modules), [k, W] = B(/* @__PURE__ */ new Map()), K = A(null), [P, z] = B(0), te = !!(c || u || d || l || g || f || b || w || S || y || N || M || T || X || j || s && i && o || ad(L)), R = C || !te, U = C ? V : e.modules, _ = (R ? U : $).map((ie) => ({
|
|
5760
5760
|
...ie,
|
|
5761
5761
|
features: R ? ie.features : k.get(ie.id.toString()) ?? ie.features
|
|
5762
5762
|
})), J = {
|
|
@@ -5828,7 +5828,7 @@ var ld = () => 1, dd = ({ collection: e, getZoom: t = ld, slots: n, onDeselect:
|
|
|
5828
5828
|
onRenameModule: l,
|
|
5829
5829
|
onPersistenceError: v,
|
|
5830
5830
|
onModulesChanged: (ie) => {
|
|
5831
|
-
|
|
5831
|
+
E(ie), p?.(ie);
|
|
5832
5832
|
},
|
|
5833
5833
|
renderModule: (ie, ce) => /* @__PURE__ */ a(od, {
|
|
5834
5834
|
module: ie,
|
|
@@ -5979,7 +5979,7 @@ var ld = () => 1, dd = ({ collection: e, getZoom: t = ld, slots: n, onDeselect:
|
|
|
5979
5979
|
});
|
|
5980
5980
|
}, mi = ({ showLogo: e, showViewOptions: t, toolbar: n, chrome: r, children: i }) => {
|
|
5981
5981
|
const o = be(), s = Mo(), [c, u] = B(o), d = s ? o : c, l = s ?? u, p = t || n !== void 0, h = r?.controlsSurface, v = r?.captureAttributes?.content;
|
|
5982
|
-
return /* @__PURE__ */ a(
|
|
5982
|
+
return /* @__PURE__ */ a(Eo, {
|
|
5983
5983
|
presentation: d,
|
|
5984
5984
|
onChange: l,
|
|
5985
5985
|
children: /* @__PURE__ */ x("div", {
|
|
@@ -6092,44 +6092,44 @@ var ld = () => 1, dd = ({ collection: e, getZoom: t = ld, slots: n, onDeselect:
|
|
|
6092
6092
|
height: Math.min($.height, O.contentHeight)
|
|
6093
6093
|
}
|
|
6094
6094
|
}];
|
|
6095
|
-
})), [t]),
|
|
6096
|
-
for (const
|
|
6097
|
-
if (
|
|
6098
|
-
return
|
|
6095
|
+
})), [t]), N = oe(() => hd(f, (O) => y.get(O)?.content), [f, y]), M = (O, $) => {
|
|
6096
|
+
for (const E of y.values())
|
|
6097
|
+
if (E.id.toString() !== $.toString() && fa(O, E.rect))
|
|
6098
|
+
return E;
|
|
6099
6099
|
return null;
|
|
6100
6100
|
}, I = (O, $) => {
|
|
6101
|
-
const
|
|
6101
|
+
const E = n() || 1;
|
|
6102
6102
|
return {
|
|
6103
|
-
x: $.anchor.x + (O.clientX - $.startClientX) /
|
|
6104
|
-
y: $.anchor.y + (O.clientY - $.startClientY) /
|
|
6103
|
+
x: $.anchor.x + (O.clientX - $.startClientX) / E,
|
|
6104
|
+
y: $.anchor.y + (O.clientY - $.startClientY) / E
|
|
6105
6105
|
};
|
|
6106
|
-
}, T = (O, $,
|
|
6106
|
+
}, T = (O, $, E) => (k) => {
|
|
6107
6107
|
m.current.pending.size > 0 || (k.stopPropagation(), k.preventDefault(), k.currentTarget.setPointerCapture(k.pointerId), b.current = {
|
|
6108
6108
|
sourceId: O,
|
|
6109
6109
|
side: $,
|
|
6110
|
-
anchor:
|
|
6110
|
+
anchor: E,
|
|
6111
6111
|
startClientX: k.clientX,
|
|
6112
6112
|
startClientY: k.clientY
|
|
6113
6113
|
}, w.current = null, p({
|
|
6114
6114
|
sourceId: O.toString(),
|
|
6115
6115
|
side: $,
|
|
6116
|
-
pointer:
|
|
6116
|
+
pointer: E,
|
|
6117
6117
|
targetId: null
|
|
6118
6118
|
}));
|
|
6119
6119
|
}, X = (O) => {
|
|
6120
6120
|
const $ = b.current;
|
|
6121
6121
|
if (!$) return;
|
|
6122
|
-
const
|
|
6122
|
+
const E = I(O, $), k = M(E, $.sourceId);
|
|
6123
6123
|
w.current = k?.id.toString() ?? null, p({
|
|
6124
6124
|
sourceId: $.sourceId.toString(),
|
|
6125
6125
|
side: $.side,
|
|
6126
|
-
pointer:
|
|
6126
|
+
pointer: E,
|
|
6127
6127
|
targetId: k?.id.toString() ?? null
|
|
6128
6128
|
});
|
|
6129
6129
|
}, j = async (O) => {
|
|
6130
|
-
const $ = b.current,
|
|
6130
|
+
const $ = b.current, E = w.current;
|
|
6131
6131
|
if (b.current = null, w.current = null, p(null), !$) return;
|
|
6132
|
-
const k = M(I(O, $), $.sourceId), W = ba(k,
|
|
6132
|
+
const k = M(I(O, $), $.sourceId), W = ba(k, E, (z) => y.get(z), $.sourceId.toString());
|
|
6133
6133
|
if (!W || !u || m.current.pending.size > 0) return;
|
|
6134
6134
|
const K = {
|
|
6135
6135
|
id: de.create(),
|
|
@@ -6151,9 +6151,9 @@ var ld = () => 1, dd = ({ collection: e, getZoom: t = ld, slots: n, onDeselect:
|
|
|
6151
6151
|
g(($) => pd($, O));
|
|
6152
6152
|
try {
|
|
6153
6153
|
const $ = await d(O);
|
|
6154
|
-
g((
|
|
6154
|
+
g((E) => Xn(E, O, $));
|
|
6155
6155
|
} catch ($) {
|
|
6156
|
-
if (g((
|
|
6156
|
+
if (g((E) => Xn(E, O, !1)), o) o($);
|
|
6157
6157
|
else throw $;
|
|
6158
6158
|
}
|
|
6159
6159
|
}
|
|
@@ -6189,7 +6189,7 @@ var ld = () => 1, dd = ({ collection: e, getZoom: t = ld, slots: n, onDeselect:
|
|
|
6189
6189
|
className: "module-collection-link-layer__arrow-head"
|
|
6190
6190
|
})
|
|
6191
6191
|
}) }),
|
|
6192
|
-
|
|
6192
|
+
N.map(({ link: O, path: $ }) => /* @__PURE__ */ a("path", {
|
|
6193
6193
|
d: $,
|
|
6194
6194
|
className: "module-collection-link-layer__arrow",
|
|
6195
6195
|
markerEnd: `url(#${S})`
|
|
@@ -6217,23 +6217,23 @@ var ld = () => 1, dd = ({ collection: e, getZoom: t = ld, slots: n, onDeselect:
|
|
|
6217
6217
|
height: V.rect.height
|
|
6218
6218
|
}
|
|
6219
6219
|
}),
|
|
6220
|
-
u && h.pending.size === 0 && D.flatMap(({ id: O, content: $ }) => va.map((
|
|
6221
|
-
const k = nt($,
|
|
6220
|
+
u && h.pending.size === 0 && D.flatMap(({ id: O, content: $ }) => va.map((E) => {
|
|
6221
|
+
const k = nt($, E);
|
|
6222
6222
|
return /* @__PURE__ */ a("div", {
|
|
6223
6223
|
className: "module-collection-link-layer__handle",
|
|
6224
|
-
"data-side":
|
|
6224
|
+
"data-side": E,
|
|
6225
6225
|
style: {
|
|
6226
6226
|
left: k.x,
|
|
6227
6227
|
top: k.y
|
|
6228
6228
|
},
|
|
6229
6229
|
title: c.dragToLink,
|
|
6230
|
-
onPointerDown: T(O,
|
|
6230
|
+
onPointerDown: T(O, E, k),
|
|
6231
6231
|
onPointerMove: X,
|
|
6232
6232
|
onPointerUp: j,
|
|
6233
6233
|
onPointerCancel: L
|
|
6234
|
-
}, `${O.toString()}-${
|
|
6234
|
+
}, `${O.toString()}-${E}`);
|
|
6235
6235
|
})),
|
|
6236
|
-
d && h.pending.size === 0 &&
|
|
6236
|
+
d && h.pending.size === 0 && N.map(({ link: O, center: $ }) => /* @__PURE__ */ a("button", {
|
|
6237
6237
|
type: "button",
|
|
6238
6238
|
className: "module-collection-link-layer__delete",
|
|
6239
6239
|
style: {
|
|
@@ -6241,7 +6241,7 @@ var ld = () => 1, dd = ({ collection: e, getZoom: t = ld, slots: n, onDeselect:
|
|
|
6241
6241
|
top: $.y
|
|
6242
6242
|
},
|
|
6243
6243
|
title: c.removeLink,
|
|
6244
|
-
onPointerDown: (
|
|
6244
|
+
onPointerDown: (E) => E.stopPropagation(),
|
|
6245
6245
|
onClick: () => {
|
|
6246
6246
|
C(O.id);
|
|
6247
6247
|
},
|
|
@@ -6348,7 +6348,7 @@ var ld = () => 1, dd = ({ collection: e, getZoom: t = ld, slots: n, onDeselect:
|
|
|
6348
6348
|
]);
|
|
6349
6349
|
const y = n.onStickyNoteMoved || n.onStickyNoteResized || n.onStickyNoteTextChanged || n.onStickyNoteRemoved ? v : void 0;
|
|
6350
6350
|
Ge(b, () => y?.(void 0), h !== void 0 && !!y);
|
|
6351
|
-
const
|
|
6351
|
+
const N = (C, L) => {
|
|
6352
6352
|
const D = o.current.get(C);
|
|
6353
6353
|
!D || s.current.has(C) || D.position.x === L.x && D.position.y === L.y || (u.current.add(C), o.current.change(C, {
|
|
6354
6354
|
...D,
|
|
@@ -6416,7 +6416,7 @@ var ld = () => 1, dd = ({ collection: e, getZoom: t = ld, slots: n, onDeselect:
|
|
|
6416
6416
|
},
|
|
6417
6417
|
selected: h === C.id && !!n.onStickyNoteResized && !s.current.has(C.id),
|
|
6418
6418
|
onSelect: y ?? vt,
|
|
6419
|
-
onMove: n.onStickyNoteMoved ? (G, F, V) =>
|
|
6419
|
+
onMove: n.onStickyNoteMoved ? (G, F, V) => N(G, {
|
|
6420
6420
|
x: F,
|
|
6421
6421
|
y: V
|
|
6422
6422
|
}) : vt,
|
|
@@ -6468,14 +6468,16 @@ vi.displayName = "BoardCollectionView";
|
|
|
6468
6468
|
var Du = "data-event-model-export-exclude", Jn = () => new Promise((e) => requestAnimationFrame(() => e())), Cd = {
|
|
6469
6469
|
createContainer(e, t, n) {
|
|
6470
6470
|
const r = document.createElement("div");
|
|
6471
|
-
|
|
6471
|
+
r.setAttribute("data-event-model-image-capture", "true"), r.style.position = "fixed", r.style.left = "calc(100vw + 1px)", r.style.top = "0", r.style.zIndex = "0", r.style.pointerEvents = "none";
|
|
6472
|
+
const i = document.createElement("div");
|
|
6473
|
+
return i.setAttribute("data-event-model-image-capture", "true"), i.style.position = "relative", i.style.padding = `${n}px`, i.style.width = `${e}px`, i.style.height = `${t}px`, i.style.boxSizing = "content-box", r.appendChild(i), document.body.appendChild(r), i;
|
|
6472
6474
|
},
|
|
6473
6475
|
removeContainer(e) {
|
|
6474
|
-
e.remove();
|
|
6476
|
+
e.parentElement?.remove();
|
|
6475
6477
|
},
|
|
6476
6478
|
mount(e, t) {
|
|
6477
6479
|
const n = Di(e);
|
|
6478
|
-
return
|
|
6480
|
+
return Ni(() => n.render(t)), () => n.unmount();
|
|
6479
6481
|
},
|
|
6480
6482
|
async waitForLayoutToSettle() {
|
|
6481
6483
|
await Jn(), await Jn(), await document.fonts?.ready;
|
|
@@ -6515,7 +6517,7 @@ function Md(e, t) {
|
|
|
6515
6517
|
height: o - r
|
|
6516
6518
|
};
|
|
6517
6519
|
}
|
|
6518
|
-
function
|
|
6520
|
+
function Ed(e) {
|
|
6519
6521
|
return {
|
|
6520
6522
|
canvasWidth: Math.max(e.width, 0),
|
|
6521
6523
|
canvasHeight: Math.max(e.height, 0),
|
|
@@ -6526,9 +6528,9 @@ function Nd(e) {
|
|
|
6526
6528
|
}
|
|
6527
6529
|
};
|
|
6528
6530
|
}
|
|
6529
|
-
var
|
|
6531
|
+
var Nd = 2, Id = "#ffffff", kd = 48;
|
|
6530
6532
|
function Rd(e, t = xd) {
|
|
6531
|
-
const n = e.options?.scale ??
|
|
6533
|
+
const n = e.options?.scale ?? Nd, r = e.options?.background ?? Id, i = e.options?.padding ?? kd, o = Md(e.collections, e.estimateSize), s = Ed(o), c = {
|
|
6532
6534
|
initialCollections: [...e.collections],
|
|
6533
6535
|
estimateSize: e.estimateSize,
|
|
6534
6536
|
countSlices: e.countSlices,
|
|
@@ -6585,7 +6587,7 @@ var _d = ({ id: e, collections: t, links: n, stickyNotes: r, readOnly: i, editor
|
|
|
6585
6587
|
onCollectionMoved: t.onCollectionMoved,
|
|
6586
6588
|
onCollectionsChange: t.onCollectionsChange,
|
|
6587
6589
|
onPersistenceError: t.onPersistenceError
|
|
6588
|
-
}), { collections: p, pendingMoveIds: h, canMove: v, moveCollection: m, collectionMoved: g, addCollection: f } = l, [b, w] = B(/* @__PURE__ */ new Map()), S = A(s?.initialZoom ?? 1), y = q(() => S.current, []),
|
|
6590
|
+
}), { collections: p, pendingMoveIds: h, canMove: v, moveCollection: m, collectionMoved: g, addCollection: f } = l, [b, w] = B(/* @__PURE__ */ new Map()), S = A(s?.initialZoom ?? 1), y = q(() => S.current, []), N = A(null), { estimateSize: M, countSlices: I, renderCollection: T } = t, X = q((k) => Rd({
|
|
6589
6591
|
documentId: e,
|
|
6590
6592
|
collections: p,
|
|
6591
6593
|
estimateSize: M,
|
|
@@ -6605,7 +6607,7 @@ var _d = ({ id: e, collections: t, links: n, stickyNotes: r, readOnly: i, editor
|
|
|
6605
6607
|
]);
|
|
6606
6608
|
Ze(u, () => ({
|
|
6607
6609
|
addCollection: f,
|
|
6608
|
-
addStickyNote: (k) =>
|
|
6610
|
+
addStickyNote: (k) => N.current?.add(k),
|
|
6609
6611
|
exportImage: X
|
|
6610
6612
|
}), [f, X]);
|
|
6611
6613
|
const j = q((k, W, K) => {
|
|
@@ -6634,7 +6636,7 @@ var _d = ({ id: e, collections: t, links: n, stickyNotes: r, readOnly: i, editor
|
|
|
6634
6636
|
C
|
|
6635
6637
|
]), O = s?.onTransformChange, $ = q((k, W) => {
|
|
6636
6638
|
S.current = k, O?.(k, W);
|
|
6637
|
-
}, [O]),
|
|
6639
|
+
}, [O]), E = /* @__PURE__ */ x(ee, { children: [
|
|
6638
6640
|
D.map((k) => /* @__PURE__ */ a(vi, {
|
|
6639
6641
|
collection: k,
|
|
6640
6642
|
estimatedSize: C(k),
|
|
@@ -6653,7 +6655,7 @@ var _d = ({ id: e, collections: t, links: n, stickyNotes: r, readOnly: i, editor
|
|
|
6653
6655
|
...d
|
|
6654
6656
|
}),
|
|
6655
6657
|
/* @__PURE__ */ a(gi, {
|
|
6656
|
-
ref:
|
|
6658
|
+
ref: N,
|
|
6657
6659
|
notes: r
|
|
6658
6660
|
})
|
|
6659
6661
|
] });
|
|
@@ -6671,7 +6673,7 @@ var _d = ({ id: e, collections: t, links: n, stickyNotes: r, readOnly: i, editor
|
|
|
6671
6673
|
minimapWorldWidth: G.worldWidth,
|
|
6672
6674
|
minimapWorldHeight: G.worldHeight,
|
|
6673
6675
|
onTransformChange: $,
|
|
6674
|
-
children: t.area ? t.area(l,
|
|
6676
|
+
children: t.area ? t.area(l, E) : /* @__PURE__ */ a(Le, { children: E })
|
|
6675
6677
|
});
|
|
6676
6678
|
}, hi = ({ id: e, readOnly: t = !1, showMinimap: n = !0, showLogo: r = !1, showViewOptions: i = !1, toolbar: o, editor: s, ...c }) => {
|
|
6677
6679
|
const u = /* @__PURE__ */ a(Ao, {
|
|
@@ -6783,7 +6785,7 @@ var Hd = ({ document: e, readOnly: t = !1, editor: n, canvas: r, showMinimap: i
|
|
|
6783
6785
|
value: c,
|
|
6784
6786
|
children: r
|
|
6785
6787
|
});
|
|
6786
|
-
}, qd = (e, t) => e ===
|
|
6788
|
+
}, qd = (e, t) => e === Ne.output ? t.translationDirection.output : t.translationDirection.input, Gd = (e, t) => e === Ne.output ? t.translationDirection.changeToInput : t.translationDirection.changeToOutput, Ud = (e) => e === Ne.output ? "pi pi-send" : "pi pi-inbox", Yd = ({ direction: e, onDirectionChanged: t }) => {
|
|
6787
6789
|
const { readOnly: n, messages: r } = Z(), [i, o] = B(e), [s, c] = B(!1);
|
|
6788
6790
|
ne(() => o(e), [e]);
|
|
6789
6791
|
const u = /* @__PURE__ */ a("i", {
|
|
@@ -6799,7 +6801,7 @@ var Hd = ({ document: e, readOnly: t = !1, editor: n, canvas: r, showMinimap: i
|
|
|
6799
6801
|
});
|
|
6800
6802
|
const l = async () => {
|
|
6801
6803
|
if (s) return;
|
|
6802
|
-
const h = i, v = h ===
|
|
6804
|
+
const h = i, v = h === Ne.input ? Ne.output : Ne.input;
|
|
6803
6805
|
o(v), c(!0);
|
|
6804
6806
|
try {
|
|
6805
6807
|
await t(v) === !1 && o(h);
|
|
@@ -6862,7 +6864,7 @@ var Hd = ({ document: e, readOnly: t = !1, editor: n, canvas: r, showMinimap: i
|
|
|
6862
6864
|
unselectableReason: i
|
|
6863
6865
|
}),
|
|
6864
6866
|
e.sliceType === H.translator && /* @__PURE__ */ a(Yd, {
|
|
6865
|
-
direction: e.translationDirection ??
|
|
6867
|
+
direction: e.translationDirection ?? Ne.input,
|
|
6866
6868
|
onDirectionChanged: f && !p ? (y) => f(e.id, y) : void 0
|
|
6867
6869
|
}),
|
|
6868
6870
|
!d.readOnly && c,
|
|
@@ -6872,7 +6874,7 @@ var Hd = ({ document: e, readOnly: t = !1, editor: n, canvas: r, showMinimap: i
|
|
|
6872
6874
|
title: y.tooltip,
|
|
6873
6875
|
"aria-label": y.tooltip,
|
|
6874
6876
|
disabled: p || y.disabled,
|
|
6875
|
-
onClick: (
|
|
6877
|
+
onClick: (N) => y.onActivate(e.id, N.currentTarget.getBoundingClientRect()),
|
|
6876
6878
|
children: y.icon
|
|
6877
6879
|
}, y.tooltip)),
|
|
6878
6880
|
!d.readOnly && b && /* @__PURE__ */ a(Bs, {
|
|
@@ -6975,7 +6977,7 @@ function nc(e, t, n, r) {
|
|
|
6975
6977
|
}, []), p = q((g, f, b) => {
|
|
6976
6978
|
const w = document.querySelector(`[data-slice-drop-target="true"][data-slice-module-id="${g.toString()}"][data-slice-feature-id="${b.toString()}"]`);
|
|
6977
6979
|
return b.equals(f) ? w?.dataset.sliceAcceptsReorder === "true" : w?.dataset.sliceAcceptsMove === "true";
|
|
6978
|
-
}, []), h = q((g, f, b, w, S, y,
|
|
6980
|
+
}, []), h = q((g, f, b, w, S, y, N, M = null) => {
|
|
6979
6981
|
const I = e.slices.findIndex((X) => X.id.equals(g));
|
|
6980
6982
|
if (I === -1) return;
|
|
6981
6983
|
const T = l(g, e.id, I);
|
|
@@ -6992,7 +6994,7 @@ function nc(e, t, n, r) {
|
|
|
6992
6994
|
currentY: w,
|
|
6993
6995
|
dropIndex: I,
|
|
6994
6996
|
headerY: y,
|
|
6995
|
-
zoom:
|
|
6997
|
+
zoom: N,
|
|
6996
6998
|
isValid: (T?.isValid ?? !0) && p(t, e.id, e.id),
|
|
6997
6999
|
invalidReason: T?.reason
|
|
6998
7000
|
});
|
|
@@ -7023,15 +7025,15 @@ function nc(e, t, n, r) {
|
|
|
7023
7025
|
const g = (b) => {
|
|
7024
7026
|
const w = s.current;
|
|
7025
7027
|
if (!w) return;
|
|
7026
|
-
const S = v(w.moduleId, b.clientX), y = m(S, b.clientX),
|
|
7028
|
+
const S = v(w.moduleId, b.clientX), y = m(S, b.clientX), N = l(w.sliceId, S, y);
|
|
7027
7029
|
o((M) => M ? {
|
|
7028
7030
|
...M,
|
|
7029
7031
|
currentX: b.clientX,
|
|
7030
7032
|
currentY: b.clientY,
|
|
7031
7033
|
targetFeatureId: S,
|
|
7032
7034
|
dropIndex: y,
|
|
7033
|
-
isValid: (
|
|
7034
|
-
invalidReason:
|
|
7035
|
+
isValid: (N?.isValid ?? !0) && p(w.moduleId, w.featureId, S),
|
|
7036
|
+
invalidReason: N?.reason
|
|
7035
7037
|
} : void 0);
|
|
7036
7038
|
}, f = () => {
|
|
7037
7039
|
const b = s.current, w = b && tc(b);
|
|
@@ -7136,7 +7138,7 @@ var oc = ({ featureId: e, name: t, status: n, width: r, collapsed: i, isDragging
|
|
|
7136
7138
|
children: h
|
|
7137
7139
|
});
|
|
7138
7140
|
}, ac = ({ featureId: e, slice: t, eventCount: n, collapsed: r, isDragging: i = !1, onSliceDragStart: o, header: s, headerHeight: c = 44, body: u, specifications: d, collapsedWidth: l }) => {
|
|
7139
|
-
const { readOnly: p } = Z(), h = ws(t.id.toString()), { ref: v, onMouseEnter: m, onMouseLeave: g } = xs(h?.connectedSliceIds), f = A(null), b = nn(f), [w, S] = B(!1), y = A(!1),
|
|
7141
|
+
const { readOnly: p } = Z(), h = ws(t.id.toString()), { ref: v, onMouseEnter: m, onMouseLeave: g } = xs(h?.connectedSliceIds), f = A(null), b = nn(f), [w, S] = B(!1), y = A(!1), N = Er({
|
|
7140
7142
|
sliceType: t.sliceType,
|
|
7141
7143
|
eventCount: n
|
|
7142
7144
|
}), M = () => {
|
|
@@ -7166,7 +7168,7 @@ var oc = ({ featureId: e, name: t, status: n, width: r, collapsed: i, isDragging
|
|
|
7166
7168
|
featureId: e,
|
|
7167
7169
|
name: t.name,
|
|
7168
7170
|
status: t.status,
|
|
7169
|
-
width: r ? l :
|
|
7171
|
+
width: r ? l : N,
|
|
7170
7172
|
collapsed: r,
|
|
7171
7173
|
isDragging: i,
|
|
7172
7174
|
onDragStart: p ? void 0 : o,
|
|
@@ -7179,7 +7181,7 @@ var oc = ({ featureId: e, name: t, status: n, width: r, collapsed: i, isDragging
|
|
|
7179
7181
|
height: c,
|
|
7180
7182
|
collapsed: r
|
|
7181
7183
|
}), typeof u == "function" ? u(b) : b && u]
|
|
7182
|
-
}), typeof d == "function" ? d(b,
|
|
7184
|
+
}), typeof d == "function" ? d(b, N) : b && d]
|
|
7183
7185
|
})
|
|
7184
7186
|
});
|
|
7185
7187
|
}, sc = (e, t) => {
|
|
@@ -7357,28 +7359,28 @@ var oc = ({ featureId: e, name: t, status: n, width: r, collapsed: i, isDragging
|
|
|
7357
7359
|
return `${n} (${Array.from({ length: i.size + 1 }, (o, s) => s + 1).find((o) => !i.has(o))})`;
|
|
7358
7360
|
};
|
|
7359
7361
|
function wc({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollapsed: i, hideEmptyPlaceholder: o = !1, onSlicesChanged: s, createSlice: c, onAddSlice: u, onReorderSlices: d, onMoveSlice: l, validateSliceDrop: p, renderSlice: h }) {
|
|
7360
|
-
const { readOnly: v, messages: m } = Z(), g = A(lc(t)), f = A(void 0), [b, w] = B(g.current), { slices: S } = b, y = A(!1), [
|
|
7361
|
-
const k = g.current, W =
|
|
7362
|
+
const { readOnly: v, messages: m } = Z(), g = A(lc(t)), f = A(void 0), [b, w] = B(g.current), { slices: S } = b, y = A(!1), [N, M] = B(!1), I = q((E) => {
|
|
7363
|
+
const k = g.current, W = E(k);
|
|
7362
7364
|
W !== k && (g.current = W, w(W), W.slices !== k.slices && (f.current = W.slices, s?.(W.slices)));
|
|
7363
7365
|
}, [s]);
|
|
7364
7366
|
ne(() => {
|
|
7365
|
-
t === f.current || t === g.current.snapshot || I((
|
|
7366
|
-
...
|
|
7367
|
+
t === f.current || t === g.current.snapshot || I((E) => !E.additions.length && !E.incoming.length && !E.outgoing.length && !E.order && E.slices.length === t.length && E.slices.every((k, W) => k === t[W]) ? {
|
|
7368
|
+
...E,
|
|
7367
7369
|
snapshot: t
|
|
7368
|
-
} : Xe(
|
|
7370
|
+
} : Xe(E, t));
|
|
7369
7371
|
}, [t, I]);
|
|
7370
|
-
const T = q((
|
|
7372
|
+
const T = q((E) => {
|
|
7371
7373
|
I((k) => {
|
|
7372
|
-
const W =
|
|
7374
|
+
const W = E(k.slices);
|
|
7373
7375
|
return W === k.slices ? k : {
|
|
7374
7376
|
...k,
|
|
7375
7377
|
slices: W
|
|
7376
7378
|
};
|
|
7377
7379
|
});
|
|
7378
|
-
}, [I]), X = q((
|
|
7380
|
+
}, [I]), X = q((E, k) => I((W) => uc(W, E, k)), [I]), j = q((E, k) => I((W) => hc(W, E, k)), [I]), C = q((E, k) => I((W) => fc(W, E, k)), [I]), L = q((E) => [...g.current.additions, ...g.current.incoming].some((k) => k.slice.id.equals(E)) || !g.current.slices.some((k) => k.id.equals(E)) ? !1 : (I((k) => vc(k, E)), !0), [I]), D = q((E, k) => I((W) => pc(W, E, k)), [I]), G = q((E, k, W) => {
|
|
7379
7381
|
if (v || !u || y.current) return;
|
|
7380
7382
|
y.current = !0, M(!0);
|
|
7381
|
-
const K = c(sc(
|
|
7383
|
+
const K = c(sc(E, W));
|
|
7382
7384
|
I((P) => cc(P, K, k)), Promise.resolve().then(() => u(K, k)).then((P) => {
|
|
7383
7385
|
I((z) => tr(z, K.id, P));
|
|
7384
7386
|
}).catch(() => I((P) => tr(P, K.id))).finally(() => {
|
|
@@ -7410,10 +7412,10 @@ function wc({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollap
|
|
|
7410
7412
|
const F = oe(() => ({
|
|
7411
7413
|
id: r,
|
|
7412
7414
|
slices: S
|
|
7413
|
-
}), [r, S]), V = q((
|
|
7415
|
+
}), [r, S]), V = q((E, k, W, K) => {
|
|
7414
7416
|
if (v || !k.equals(r)) return;
|
|
7415
|
-
const P = g.current.slices.findIndex((z) => z.id.equals(
|
|
7416
|
-
if (!(P < 0 || [...g.current.additions, ...g.current.incoming].some((z) => z.slice.id.equals(
|
|
7417
|
+
const P = g.current.slices.findIndex((z) => z.id.equals(E));
|
|
7418
|
+
if (!(P < 0 || [...g.current.additions, ...g.current.incoming].some((z) => z.slice.id.equals(E)))) {
|
|
7417
7419
|
if (W.equals(r)) {
|
|
7418
7420
|
if (!d || g.current.order && !g.current.order.confirmed) return;
|
|
7419
7421
|
const z = gc(g.current, P, K);
|
|
@@ -7421,8 +7423,8 @@ function wc({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollap
|
|
|
7421
7423
|
I(() => z), Promise.resolve().then(() => d(z.slices.map((te) => te.id))).then((te) => I((R) => nr(R, te))).catch(() => I((te) => nr(te, !1)));
|
|
7422
7424
|
} else if (l) {
|
|
7423
7425
|
const z = g.current.slices[P];
|
|
7424
|
-
if (!L(
|
|
7425
|
-
Promise.resolve().then(() => l(z, W, K)).then((te) => D(
|
|
7426
|
+
if (!L(E)) return;
|
|
7427
|
+
Promise.resolve().then(() => l(z, W, K)).then((te) => D(E, te)).catch(() => D(E, !1));
|
|
7426
7428
|
}
|
|
7427
7429
|
}
|
|
7428
7430
|
}, [
|
|
@@ -7440,7 +7442,7 @@ function wc({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollap
|
|
|
7440
7442
|
}), /* @__PURE__ */ a($t, {
|
|
7441
7443
|
moduleId: n,
|
|
7442
7444
|
featureId: r,
|
|
7443
|
-
busy:
|
|
7445
|
+
busy: N,
|
|
7444
7446
|
acceptsReorder: !v && !!d,
|
|
7445
7447
|
acceptsMove: !v && !!l,
|
|
7446
7448
|
active: O?.targetFeatureId.equals(r),
|
|
@@ -7449,24 +7451,24 @@ function wc({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollap
|
|
|
7449
7451
|
flexDirection: "row",
|
|
7450
7452
|
alignItems: "flex-start"
|
|
7451
7453
|
},
|
|
7452
|
-
children: S.flatMap((
|
|
7454
|
+
children: S.flatMap((E, k) => {
|
|
7453
7455
|
const W = O?.targetFeatureId.equals(r) ?? !1, K = k === 0 ? 0 : Q.sliceGap, P = [];
|
|
7454
7456
|
W && O?.dropIndex === k && P.push(/* @__PURE__ */ a(er, {
|
|
7455
7457
|
isValid: O.isValid,
|
|
7456
7458
|
marginLeft: K > 0 ? Math.max(K - 6, 0) : 0
|
|
7457
7459
|
}, `drop-${k}`));
|
|
7458
|
-
const z =
|
|
7460
|
+
const z = E.collapsed;
|
|
7459
7461
|
return P.push(/* @__PURE__ */ a("div", {
|
|
7460
7462
|
style: { marginLeft: W && O?.dropIndex === k ? 2 : K },
|
|
7461
|
-
children: h(
|
|
7463
|
+
children: h(E, {
|
|
7462
7464
|
collapsed: i || z,
|
|
7463
7465
|
sliceCollapsed: z,
|
|
7464
|
-
isDragging: O?.sliceId.equals(
|
|
7465
|
-
onSliceDragStart: [...b.additions, ...b.incoming].some((te) => te.slice.id.equals(
|
|
7466
|
+
isDragging: O?.sliceId.equals(E.id) ?? !1,
|
|
7467
|
+
onSliceDragStart: [...b.additions, ...b.incoming].some((te) => te.slice.id.equals(E.id)) ? void 0 : $,
|
|
7466
7468
|
addSlice: G,
|
|
7467
7469
|
updateSlices: T
|
|
7468
7470
|
})
|
|
7469
|
-
},
|
|
7471
|
+
}, E.id.toString())), W && k === S.length - 1 && O?.dropIndex === S.length && P.push(/* @__PURE__ */ a(er, {
|
|
7470
7472
|
isValid: O.isValid,
|
|
7471
7473
|
marginLeft: 2
|
|
7472
7474
|
}, "drop-end")), P;
|
|
@@ -7483,7 +7485,7 @@ function wc({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollap
|
|
|
7483
7485
|
}) : /* @__PURE__ */ a($t, {
|
|
7484
7486
|
moduleId: n,
|
|
7485
7487
|
featureId: r,
|
|
7486
|
-
busy:
|
|
7488
|
+
busy: N,
|
|
7487
7489
|
acceptsReorder: !v && !!d,
|
|
7488
7490
|
acceptsMove: !v && !!l,
|
|
7489
7491
|
className: "event-modeling-slices-empty",
|
|
@@ -7564,33 +7566,33 @@ var zu = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(ee,
|
|
|
7564
7566
|
})({}), je = ({ placement: e, children: t }) => /* @__PURE__ */ a("div", {
|
|
7565
7567
|
className: e === _e.add ? "event-modeling-grid-slice-cell-add-corner" : "event-modeling-grid-slice-cell-action-corner event-modeling-grid-slice-cell-action-corner--top",
|
|
7566
7568
|
children: t
|
|
7567
|
-
}),
|
|
7569
|
+
}), Ec = ({ placement: e, action: t }) => {
|
|
7568
7570
|
const { readOnly: n, sliceId: r } = Re();
|
|
7569
7571
|
if (!(n || !r))
|
|
7570
7572
|
return /* @__PURE__ */ a(je, {
|
|
7571
7573
|
placement: e,
|
|
7572
7574
|
children: /* @__PURE__ */ a(wn, { action: t })
|
|
7573
7575
|
});
|
|
7574
|
-
}, Sn = (e) => e === H.stateView, qu = (e) => !Sn(e),
|
|
7576
|
+
}, Sn = (e) => e === H.stateView, qu = (e) => !Sn(e), Nc = (e, t) => Sn(e) && t === 0, Ic = (e) => e === H.translator, bi = (e) => {
|
|
7575
7577
|
switch (e) {
|
|
7576
|
-
case
|
|
7578
|
+
case Ee.timer:
|
|
7577
7579
|
return "pi pi-clock";
|
|
7578
|
-
case
|
|
7580
|
+
case Ee.event:
|
|
7579
7581
|
return "pi pi-bolt";
|
|
7580
|
-
case
|
|
7582
|
+
case Ee.custom:
|
|
7581
7583
|
return "pi pi-pencil";
|
|
7582
|
-
case
|
|
7584
|
+
case Ee.none:
|
|
7583
7585
|
return;
|
|
7584
7586
|
}
|
|
7585
7587
|
}, kc = (e, t) => {
|
|
7586
7588
|
switch (e) {
|
|
7587
|
-
case
|
|
7589
|
+
case Ee.timer:
|
|
7588
7590
|
return t.triggers.timer;
|
|
7589
|
-
case
|
|
7591
|
+
case Ee.event:
|
|
7590
7592
|
return t.triggers.event;
|
|
7591
|
-
case
|
|
7593
|
+
case Ee.custom:
|
|
7592
7594
|
return t.triggers.custom;
|
|
7593
|
-
case
|
|
7595
|
+
case Ee.none:
|
|
7594
7596
|
return "";
|
|
7595
7597
|
}
|
|
7596
7598
|
}, Bt = /* @__PURE__ */ (function(e) {
|
|
@@ -7711,10 +7713,10 @@ var zu = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(ee,
|
|
|
7711
7713
|
})
|
|
7712
7714
|
});
|
|
7713
7715
|
}, Pc = ({ elements: e, windowSize: t, layout: n, collapsed: r = !1, conn: i, rowHeight: o, actorId: s, hasScreen: c = !1, renderThumbnail: u }) => {
|
|
7714
|
-
const { readOnly: d, sliceId: l } = Re(), { editing: p, actions: h, readOnly: v } = Z(), { onPrototypeOpened: m, onPrototypeAdded: g } = p, f = A(null), [b, w] = B(), S = Bi().prototypeThumbnail, y = { height: o },
|
|
7716
|
+
const { readOnly: d, sliceId: l } = Re(), { editing: p, actions: h, readOnly: v } = Z(), { onPrototypeOpened: m, onPrototypeAdded: g } = p, f = A(null), [b, w] = B(), S = Bi().prototypeThumbnail, y = { height: o }, N = "event-modeling-grid-slice-cell event-modeling-grid-slice-cell--centered event-modeling-grid-slice-cell--ui";
|
|
7715
7717
|
if (r) return /* @__PURE__ */ a("div", {
|
|
7716
7718
|
style: y,
|
|
7717
|
-
className:
|
|
7719
|
+
className: N
|
|
7718
7720
|
});
|
|
7719
7721
|
const M = e.length > 0 || c, I = !d && l && m && l && m ? () => m(l, s, f.current?.getBoundingClientRect() ?? new DOMRect()) : v ? () => w(f.current?.getBoundingClientRect() ?? new DOMRect()) : void 0, T = /* @__PURE__ */ a($i, {
|
|
7720
7722
|
elements: [...e],
|
|
@@ -7725,7 +7727,7 @@ var zu = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(ee,
|
|
|
7725
7727
|
});
|
|
7726
7728
|
return /* @__PURE__ */ x("div", {
|
|
7727
7729
|
style: y,
|
|
7728
|
-
className:
|
|
7730
|
+
className: N,
|
|
7729
7731
|
children: [
|
|
7730
7732
|
i.bottomOutgoing && M && /* @__PURE__ */ a(ot, {}),
|
|
7731
7733
|
i.bottomIncoming && M && /* @__PURE__ */ a(at, {}),
|
|
@@ -7813,7 +7815,7 @@ var zu = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(ee,
|
|
|
7813
7815
|
});
|
|
7814
7816
|
}, Ve = /* @__PURE__ */ (function(e) {
|
|
7815
7817
|
return e.publicOutsideOutputTranslation = "publicOutsideOutputTranslation", e.privateOutputOfOutputTranslation = "privateOutputOfOutputTranslation", e.publicInputOfOutputTranslation = "publicInputOfOutputTranslation", e;
|
|
7816
|
-
})({}), ke = (e) => e.visibility === Wi.public, kt = (e) => e.sliceType === H.translator && e.translationDirection ===
|
|
7818
|
+
})({}), ke = (e) => e.visibility === Wi.public, kt = (e) => e.sliceType === H.translator && e.translationDirection === Ne.output, Fc = (e, t) => {
|
|
7817
7819
|
if (!t.sourceEventId)
|
|
7818
7820
|
return kt(e) ? ke(t) ? void 0 : Ve.privateOutputOfOutputTranslation : ke(t) ? Ve.publicOutsideOutputTranslation : void 0;
|
|
7819
7821
|
}, $c = (e, t, n) => {
|
|
@@ -7865,7 +7867,7 @@ var zu = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(ee,
|
|
|
7865
7867
|
c.stopPropagation(), c.key === "Escape" && s(!1);
|
|
7866
7868
|
},
|
|
7867
7869
|
children: "!"
|
|
7868
|
-
}), /* @__PURE__ */ a(
|
|
7870
|
+
}), /* @__PURE__ */ a(Et, {
|
|
7869
7871
|
anchorRef: r,
|
|
7870
7872
|
open: o,
|
|
7871
7873
|
side: "above",
|
|
@@ -8057,10 +8059,10 @@ var zc = ({ onClick: e, eventName: t, pending: n = !1 }) => {
|
|
|
8057
8059
|
const n = new Set(e.events.flatMap((i) => i.sourceEventId ? [i.sourceEventId] : [])), r = new Set(e.events.map((i) => i.name));
|
|
8058
8060
|
return t.filter((i) => !n.has(i.id.toString()) && !r.has(i.name));
|
|
8059
8061
|
}, Xc = ({ slice: e, collapsed: t = !1, conn: n, rowHeight: r, priorEvents: i, followingEvents: o = [], showDetails: s = !1 }) => {
|
|
8060
|
-
const { editing: c, actions: u, messages: d } = Z(), l = pe(), { onEventAdded: p, onEventReferenced: h } = c, v = Sn(e.sliceType), m =
|
|
8062
|
+
const { editing: c, actions: u, messages: d } = Z(), l = pe(), { onEventAdded: p, onEventReferenced: h } = c, v = Sn(e.sliceType), m = Nc(e.sliceType, e.events.length), g = !(kt(e) && e.events.some((y) => !y.sourceEventId)), f = Yc(e, i), b = Uc(e, i, o), w = (u.eventsRow ?? []).filter((y) => !y.when || y.when(e)), S = (y) => h && /* @__PURE__ */ a(li, {
|
|
8061
8063
|
options: f,
|
|
8062
|
-
nameOf: (
|
|
8063
|
-
onSelect: (
|
|
8064
|
+
nameOf: (N) => N.name,
|
|
8065
|
+
onSelect: (N) => h(e.id, N),
|
|
8064
8066
|
label: d.events.addExistingEvent,
|
|
8065
8067
|
searchPlaceholder: d.events.searchEvents,
|
|
8066
8068
|
emptyLabel: d.events.noEventsAvailable,
|
|
@@ -8077,7 +8079,7 @@ var zc = ({ onClick: e, eventName: t, pending: n = !1 }) => {
|
|
|
8077
8079
|
placement: _e.top,
|
|
8078
8080
|
children: w.map((y) => /* @__PURE__ */ a(wn, { action: y }, y.tooltip))
|
|
8079
8081
|
}),
|
|
8080
|
-
!l && !v && g && p && /* @__PURE__ */ a(
|
|
8082
|
+
!l && !v && g && p && /* @__PURE__ */ a(Ec, {
|
|
8081
8083
|
placement: _e.add,
|
|
8082
8084
|
action: {
|
|
8083
8085
|
tooltip: d.events.addEvent,
|
|
@@ -8105,7 +8107,7 @@ var zc = ({ onClick: e, eventName: t, pending: n = !1 }) => {
|
|
|
8105
8107
|
}, ar = ({ sliceId: e, kind: t, artifactId: n, name: r, schema: i, showDetails: o = !1, onRenamed: s }) => {
|
|
8106
8108
|
const { actions: c, selection: u, messages: d } = Z(), l = pe(), [p, h] = B(r), [v, m] = B(void 0);
|
|
8107
8109
|
ne(() => h(r), [r]);
|
|
8108
|
-
const g = t === me.command, f = g ? c.commandCard : c.readModelCard, b = g ? Ue : Ke, w = g ? d.interaction.command : d.interaction.readModel, S = !l && !!s, y = u.onArtifactSelected,
|
|
8110
|
+
const g = t === me.command, f = g ? c.commandCard : c.readModelCard, b = g ? Ue : Ke, w = g ? d.interaction.command : d.interaction.readModel, S = !l && !!s, y = u.onArtifactSelected, N = () => {
|
|
8109
8111
|
const M = v?.trim() ?? "";
|
|
8110
8112
|
m(void 0), !(!M || !s) && (s(M), h(M));
|
|
8111
8113
|
};
|
|
@@ -8114,7 +8116,7 @@ var zc = ({ onClick: e, eventName: t, pending: n = !1 }) => {
|
|
|
8114
8116
|
backgroundColor: b.background,
|
|
8115
8117
|
textColor: b.text,
|
|
8116
8118
|
onChange: m,
|
|
8117
|
-
onCommit:
|
|
8119
|
+
onCommit: N,
|
|
8118
8120
|
onCancel: () => m(void 0)
|
|
8119
8121
|
}) : /* @__PURE__ */ a(ve, {
|
|
8120
8122
|
content: /* @__PURE__ */ a(Ye, {
|
|
@@ -8234,7 +8236,7 @@ var zc = ({ onClick: e, eventName: t, pending: n = !1 }) => {
|
|
|
8234
8236
|
return [...e.externalEvents.map(() => $e.readModel), ...e.command ? [$e.command] : []];
|
|
8235
8237
|
}
|
|
8236
8238
|
}, Kc = ({ slice: e, collapsed: t = !1, conn: n, rowHeight: r, externalEventOptions: i = [], showDetails: o = !1 }) => {
|
|
8237
|
-
const { editing: s, actions: c, selection: u, navigation: d, messages: l } = Z(), p = pe(), { onCommandRenamed: h, onReadModelRenamed: v, onReadModelAdded: m, onExternalEventAdded: g, onExternalEventRemoved: f } = s, b = (c.interactionRow ?? []).filter((C) => !C.when || C.when(e)), w = Jc(e), S = u.onArtifactSelected, { command: y, readModel:
|
|
8239
|
+
const { editing: s, actions: c, selection: u, navigation: d, messages: l } = Z(), p = pe(), { onCommandRenamed: h, onReadModelRenamed: v, onReadModelAdded: m, onExternalEventAdded: g, onExternalEventRemoved: f } = s, b = (c.interactionRow ?? []).filter((C) => !C.when || C.when(e)), w = Jc(e), S = u.onArtifactSelected, { command: y, readModel: N } = e, M = y && /* @__PURE__ */ a(ar, {
|
|
8238
8240
|
sliceId: e.id,
|
|
8239
8241
|
kind: me.command,
|
|
8240
8242
|
artifactId: y.id,
|
|
@@ -8242,15 +8244,15 @@ var zc = ({ onClick: e, eventName: t, pending: n = !1 }) => {
|
|
|
8242
8244
|
schema: y.schema,
|
|
8243
8245
|
showDetails: o,
|
|
8244
8246
|
onRenamed: h && ((C) => h(e.id, y.id, C))
|
|
8245
|
-
}, y.id.toString()), I =
|
|
8247
|
+
}, y.id.toString()), I = N && /* @__PURE__ */ a(ar, {
|
|
8246
8248
|
sliceId: e.id,
|
|
8247
8249
|
kind: me.readModel,
|
|
8248
|
-
artifactId:
|
|
8249
|
-
name:
|
|
8250
|
-
schema:
|
|
8250
|
+
artifactId: N.id,
|
|
8251
|
+
name: N.name,
|
|
8252
|
+
schema: N.schema,
|
|
8251
8253
|
showDetails: o,
|
|
8252
|
-
onRenamed: v && ((C) => v(e.id,
|
|
8253
|
-
},
|
|
8254
|
+
onRenamed: v && ((C) => v(e.id, N.id, C))
|
|
8255
|
+
}, N.id.toString()), T = (C) => {
|
|
8254
8256
|
const L = `${l.interaction.open} ${l.interaction.externalEvent}: ${C.name}`, D = Zc(C, i), G = i.find((F) => F.id.toString() === C.sourceEventId);
|
|
8255
8257
|
return /* @__PURE__ */ a(ve, {
|
|
8256
8258
|
content: /* @__PURE__ */ a(Ye, {
|
|
@@ -8350,11 +8352,11 @@ export {
|
|
|
8350
8352
|
Dn as ActorRowDropIndicator,
|
|
8351
8353
|
se as ActorType,
|
|
8352
8354
|
Lc as AddPrototypeButton,
|
|
8353
|
-
|
|
8355
|
+
Et as AnchoredOverlay,
|
|
8354
8356
|
oi as ArtifactCard,
|
|
8355
8357
|
me as ArtifactCardKind,
|
|
8356
8358
|
Hi as AssigneeKind,
|
|
8357
|
-
|
|
8359
|
+
Ee as AutomationTriggerType,
|
|
8358
8360
|
Oo as BoardCanvas,
|
|
8359
8361
|
wr as BoardInteractionProvider,
|
|
8360
8362
|
mi as BoardOverlay,
|
|
@@ -8366,7 +8368,7 @@ export {
|
|
|
8366
8368
|
vn as CardNameInput,
|
|
8367
8369
|
wn as CellActionButton,
|
|
8368
8370
|
je as CellCorner,
|
|
8369
|
-
|
|
8371
|
+
Ec as CellCornerAction,
|
|
8370
8372
|
_e as CellCornerPlacement,
|
|
8371
8373
|
Dc as ChatCell,
|
|
8372
8374
|
_t as CogWheel,
|
|
@@ -8397,7 +8399,7 @@ export {
|
|
|
8397
8399
|
pu as EventModelMessagesProvider,
|
|
8398
8400
|
yr as EventModelPresentationChangeContext,
|
|
8399
8401
|
br as EventModelPresentationContext,
|
|
8400
|
-
|
|
8402
|
+
Eo as EventModelPresentationProvider,
|
|
8401
8403
|
wi as EventNavigateButton,
|
|
8402
8404
|
Gc as EventReferenceCard,
|
|
8403
8405
|
li as EventReferencePicker,
|
|
@@ -8407,7 +8409,7 @@ export {
|
|
|
8407
8409
|
qc as ExternalEventCard,
|
|
8408
8410
|
zc as ExternalEventRemoveButton,
|
|
8409
8411
|
Ms as FeatureColumnFrame,
|
|
8410
|
-
|
|
8412
|
+
Es as FeatureGridSurface,
|
|
8411
8413
|
qs as FeatureHeader,
|
|
8412
8414
|
Is as FeatureHeaderCell,
|
|
8413
8415
|
Ps as FeaturesArea,
|
|
@@ -8439,7 +8441,7 @@ export {
|
|
|
8439
8441
|
jc as OptionalReadModel,
|
|
8440
8442
|
ku as PILL_ICON_CLUSTER_OVERHEAD_PX,
|
|
8441
8443
|
wa as PILL_LABEL_FONT_FAMILY,
|
|
8442
|
-
|
|
8444
|
+
Nu as PILL_LABEL_FONT_SIZE_PX,
|
|
8443
8445
|
Iu as PILL_LABEL_FONT_WEIGHT,
|
|
8444
8446
|
gs as PassthroughConnector,
|
|
8445
8447
|
si as PickerPanel,
|
|
@@ -8494,7 +8496,7 @@ export {
|
|
|
8494
8496
|
Hu as TOUCH_LONG_PRESS_MS,
|
|
8495
8497
|
Wu as TOUCH_LONG_PRESS_TOLERANCE,
|
|
8496
8498
|
ed as ThenSection,
|
|
8497
|
-
|
|
8499
|
+
Ne as TranslationDirection,
|
|
8498
8500
|
Yd as TranslationDirectionToggle,
|
|
8499
8501
|
Ac as TriggerControl,
|
|
8500
8502
|
Bt as TriggerKind,
|
|
@@ -8506,7 +8508,7 @@ export {
|
|
|
8506
8508
|
tl as absorbSpecifications,
|
|
8507
8509
|
Oa as actorDrop,
|
|
8508
8510
|
xa as actorKinds,
|
|
8509
|
-
|
|
8511
|
+
Nt as actorTypeOfRow,
|
|
8510
8512
|
ta as actorsForRow,
|
|
8511
8513
|
cc as addPendingSlice,
|
|
8512
8514
|
uc as addProjectedSlice,
|
|
@@ -8520,7 +8522,7 @@ export {
|
|
|
8520
8522
|
Ld as boardMinimap,
|
|
8521
8523
|
ya as boundingBox,
|
|
8522
8524
|
xd as captureBoardImage,
|
|
8523
|
-
|
|
8525
|
+
El as cardCorners,
|
|
8524
8526
|
vs as cellConnectors,
|
|
8525
8527
|
Pn as centerOf,
|
|
8526
8528
|
qa as changeSliceStatus,
|
|
@@ -8566,7 +8568,7 @@ export {
|
|
|
8566
8568
|
ms as estimateCollectionSize,
|
|
8567
8569
|
fe as eventCardColors,
|
|
8568
8570
|
Rd as exportBoardImage,
|
|
8569
|
-
|
|
8571
|
+
Ed as exportImageLayout,
|
|
8570
8572
|
jt as externalEventCardColors,
|
|
8571
8573
|
pa as facingSides,
|
|
8572
8574
|
Wd as featureAddCallback,
|
|
@@ -8584,8 +8586,8 @@ export {
|
|
|
8584
8586
|
kt as isOutputTranslation,
|
|
8585
8587
|
ke as isPublicEvent,
|
|
8586
8588
|
wo as isSliceReadOnlyForDetailLevel,
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
+
Nl as isStartCorner,
|
|
8590
|
+
Eu as linkAnchor,
|
|
8589
8591
|
va as linkSides,
|
|
8590
8592
|
ha as midpoint,
|
|
8591
8593
|
ls as moduleWidth,
|
|
@@ -8637,10 +8639,10 @@ export {
|
|
|
8637
8639
|
ns as setModuleRename,
|
|
8638
8640
|
dc as settleAddedSlice,
|
|
8639
8641
|
qu as showsAddNewEventButton,
|
|
8640
|
-
|
|
8642
|
+
Nc as showsEventReferencePlaceholder,
|
|
8641
8643
|
Ic as showsExternalEventPicker,
|
|
8642
8644
|
nt as sideAnchor,
|
|
8643
|
-
|
|
8645
|
+
Er as sliceColumnWidth,
|
|
8644
8646
|
tc as sliceMove,
|
|
8645
8647
|
Ga as sliceStatusColor,
|
|
8646
8648
|
Lt as sliceStatusLabel,
|