@cratis/event-models 0.350.0 → 0.350.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Board/EventModelBoard.d.ts +1 -0
- package/dist/index.js +573 -565
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -299,7 +299,7 @@ var Ie = /* @__PURE__ */ (function(e) {
|
|
|
299
299
|
if (r === void 0) throw new gt(`${e.path}.message`, "expected a string");
|
|
300
300
|
const o = e.optionalString("code"), i = e.optionalGuid("eventId"), s = e.optionalGuid("commandId"), d = e.optionalGuid("readModelId"), l = e.optionalGuid("specificationId"), c = e.optionalString("specificationStep"), u = c === void 0 ? void 0 : Object.values(Ls).find((v) => v === c);
|
|
301
301
|
if (c !== void 0 && !u) throw new gt(`${e.path}.specificationStep`, `unknown specification step '${c}'`);
|
|
302
|
-
const
|
|
302
|
+
const m = e.has("stepIndex") ? e.number("stepIndex") : void 0;
|
|
303
303
|
return {
|
|
304
304
|
severity: n,
|
|
305
305
|
message: r,
|
|
@@ -309,7 +309,7 @@ var Ie = /* @__PURE__ */ (function(e) {
|
|
|
309
309
|
...d ? { readModelId: d } : {},
|
|
310
310
|
...l ? { specificationId: l } : {},
|
|
311
311
|
...u ? { specificationStep: u } : {},
|
|
312
|
-
...
|
|
312
|
+
...m !== void 0 ? { stepIndex: m } : {}
|
|
313
313
|
};
|
|
314
314
|
}, Ks = (e) => ({
|
|
315
315
|
givenContextId: e.guid("givenContextId"),
|
|
@@ -379,7 +379,7 @@ var Ie = /* @__PURE__ */ (function(e) {
|
|
|
379
379
|
...n !== void 0 ? { message: n } : {}
|
|
380
380
|
};
|
|
381
381
|
}, al = (e) => {
|
|
382
|
-
const t = nl(e.object("when")), n = ol(e.object("caller")), r = Js(e.object("whenEvent")), o = tl(e.object("whenRedelivered")), i = ho(e.object("givenReadModel")), s = ho(e.object("thenReadModel")), d = el(e.object("whenQuery")), l = e.optionalEnumValue("lastRunOutcome"), c = e.optionalString("lastRunMessage"), u = e.optionalEnumValue("builderResult"),
|
|
382
|
+
const t = nl(e.object("when")), n = ol(e.object("caller")), r = Js(e.object("whenEvent")), o = tl(e.object("whenRedelivered")), i = ho(e.object("givenReadModel")), s = ho(e.object("thenReadModel")), d = el(e.object("whenQuery")), l = e.optionalEnumValue("lastRunOutcome"), c = e.optionalString("lastRunMessage"), u = e.optionalEnumValue("builderResult"), m = e.optionalString("builderMessage"), v = e.optionalString("outcomes");
|
|
383
383
|
return {
|
|
384
384
|
id: e.guid("id"),
|
|
385
385
|
name: e.string("name"),
|
|
@@ -404,7 +404,7 @@ var Ie = /* @__PURE__ */ (function(e) {
|
|
|
404
404
|
...l !== void 0 ? { lastRunOutcome: l } : {},
|
|
405
405
|
...c !== void 0 ? { lastRunMessage: c } : {},
|
|
406
406
|
...u !== void 0 ? { builderResult: u } : {},
|
|
407
|
-
...
|
|
407
|
+
...m !== void 0 ? { builderMessage: m } : {}
|
|
408
408
|
};
|
|
409
409
|
}, sl = (e) => e ? {
|
|
410
410
|
intervalMinutes: e.number("intervalMinutes"),
|
|
@@ -474,7 +474,7 @@ var Ie = /* @__PURE__ */ (function(e) {
|
|
|
474
474
|
...t ? { avatar: t } : {}
|
|
475
475
|
};
|
|
476
476
|
}, pl = (e) => {
|
|
477
|
-
const t = e.object("command"), n = e.object("projection"), r = e.object("capture"), o = e.object("readModel"), i = e.array("additionalReadModels", go), s = ll(e.object("automationTrigger")), d = hl(e.object("assignee")), l = e.array("reactionRefusals", gl), c = e.array("reactionInvocations", ml), u = e.array("annotations", Zs),
|
|
477
|
+
const t = e.object("command"), n = e.object("projection"), r = e.object("capture"), o = e.object("readModel"), i = e.array("additionalReadModels", go), s = ll(e.object("automationTrigger")), d = hl(e.object("assignee")), l = e.array("reactionRefusals", gl), c = e.array("reactionInvocations", ml), u = e.array("annotations", Zs), m = e.optionalEnumValue("translationDirection"), v = e.optionalString("blockedReason"), p = e.strings("blockedQuestions");
|
|
478
478
|
return {
|
|
479
479
|
id: e.guid("id"),
|
|
480
480
|
name: e.string("name"),
|
|
@@ -500,7 +500,7 @@ var Ie = /* @__PURE__ */ (function(e) {
|
|
|
500
500
|
...s ? { automationTrigger: s } : {},
|
|
501
501
|
...c.length > 0 ? { reactionInvocations: c } : {},
|
|
502
502
|
...l.length > 0 ? { reactionRefusals: l } : {},
|
|
503
|
-
...
|
|
503
|
+
...m !== void 0 ? { translationDirection: m } : {},
|
|
504
504
|
...d ? { assignee: d } : {},
|
|
505
505
|
...u.length > 0 ? { annotations: u } : {},
|
|
506
506
|
...e.boolean("preview") ? { preview: !0 } : {}
|
|
@@ -1038,16 +1038,16 @@ var hp = 56, pp = 1, ql = (e, t, n = 1) => Math.abs(e - t) <= n ? e : t, Wl = (e
|
|
|
1038
1038
|
var on = (e, t, n) => Math.max(8, Math.min(e, n - t - 8)), zl = (e, t, n, r, o, i) => {
|
|
1039
1039
|
const s = e.left + e.width, d = e.top + e.height;
|
|
1040
1040
|
if (r === "left" || r === "right") {
|
|
1041
|
-
const v = n.width - s - i, p = e.left - i,
|
|
1041
|
+
const v = n.width - s - i, p = e.left - i, g = r === "right" ? v >= t.width || v >= p : !(p >= t.width || p >= v);
|
|
1042
1042
|
return {
|
|
1043
1043
|
top: on(e.top + e.height / 2 - t.height / 2, t.height, n.height),
|
|
1044
|
-
left: on(
|
|
1044
|
+
left: on(g ? s + i : e.left - i - t.width, t.width, n.width)
|
|
1045
1045
|
};
|
|
1046
1046
|
}
|
|
1047
|
-
const l = n.height - d - i, c = e.top - i, u = r === "below" ? l >= t.height || l >= c : !(c >= t.height || c >= l),
|
|
1047
|
+
const l = n.height - d - i, c = e.top - i, u = r === "below" ? l >= t.height || l >= c : !(c >= t.height || c >= l), m = o === "center" ? e.left + e.width / 2 - t.width / 2 : o === "right" ? s - t.width : e.left;
|
|
1048
1048
|
return {
|
|
1049
1049
|
top: on(u ? d + i : e.top - i - t.height, t.height, n.height),
|
|
1050
|
-
left: on(
|
|
1050
|
+
left: on(m, t.width, n.width)
|
|
1051
1051
|
};
|
|
1052
1052
|
}, In = ({ anchorRef: e, open: t, side: n = "below", align: r = "left", gap: o = 8, children: i }) => {
|
|
1053
1053
|
const s = O(null), [d, l] = D(), [c, u] = D("");
|
|
@@ -1056,20 +1056,20 @@ var on = (e, t, n) => Math.max(8, Math.min(e, n - t - 8)), zl = (e, t, n, r, o,
|
|
|
1056
1056
|
l(void 0), u("");
|
|
1057
1057
|
return;
|
|
1058
1058
|
}
|
|
1059
|
-
let
|
|
1059
|
+
let m = 0;
|
|
1060
1060
|
const v = () => {
|
|
1061
1061
|
u(Ol(e.current));
|
|
1062
|
-
const p = e.current?.getBoundingClientRect(),
|
|
1063
|
-
if (p &&
|
|
1064
|
-
const h = zl(p,
|
|
1062
|
+
const p = e.current?.getBoundingClientRect(), g = s.current?.getBoundingClientRect();
|
|
1063
|
+
if (p && g) {
|
|
1064
|
+
const h = zl(p, g, {
|
|
1065
1065
|
width: window.innerWidth,
|
|
1066
1066
|
height: window.innerHeight
|
|
1067
1067
|
}, n, r, o);
|
|
1068
1068
|
l((b) => b && Math.abs(b.top - h.top) <= 1 && Math.abs(b.left - h.left) <= 1 ? b : h);
|
|
1069
1069
|
}
|
|
1070
|
-
|
|
1070
|
+
m = requestAnimationFrame(v);
|
|
1071
1071
|
};
|
|
1072
|
-
return v(), () => cancelAnimationFrame(
|
|
1072
|
+
return v(), () => cancelAnimationFrame(m);
|
|
1073
1073
|
}, [
|
|
1074
1074
|
t,
|
|
1075
1075
|
n,
|
|
@@ -1090,7 +1090,7 @@ var on = (e, t, n) => Math.max(8, Math.min(e, n - t - 8)), zl = (e, t, n, r, o,
|
|
|
1090
1090
|
left: "left",
|
|
1091
1091
|
right: "right"
|
|
1092
1092
|
}, ye = ({ content: e, position: t = "top", openOnFocus: n = !1, disabled: r = !1, children: o }) => {
|
|
1093
|
-
const i = O(null), [s, d] = D(!1), [l, c] = D(!1), [u,
|
|
1093
|
+
const i = O(null), [s, d] = D(!1), [l, c] = D(!1), [u, m] = D(!1), v = O(void 0), p = (f) => {
|
|
1094
1094
|
f.pointerType === "mouse" && (v.current = {
|
|
1095
1095
|
x: f.clientX,
|
|
1096
1096
|
y: f.clientY
|
|
@@ -1133,11 +1133,11 @@ var on = (e, t, n) => Math.max(8, Math.min(e, n - t - 8)), zl = (e, t, n, r, o,
|
|
|
1133
1133
|
if (!f.target.matches(":focus-visible")) return;
|
|
1134
1134
|
} catch {
|
|
1135
1135
|
}
|
|
1136
|
-
|
|
1136
|
+
m(!0);
|
|
1137
1137
|
} : void 0,
|
|
1138
|
-
onBlur: n ? () =>
|
|
1138
|
+
onBlur: n ? () => m(!1) : void 0,
|
|
1139
1139
|
onKeyDown: n ? (f) => {
|
|
1140
|
-
f.key === "Escape" &&
|
|
1140
|
+
f.key === "Escape" && m(!1);
|
|
1141
1141
|
} : void 0,
|
|
1142
1142
|
children: [o, /* @__PURE__ */ a(In, {
|
|
1143
1143
|
anchorRef: i,
|
|
@@ -1249,7 +1249,7 @@ var Jl = (e) => e.shiftKey || e.metaKey || e.ctrlKey, ed = {
|
|
|
1249
1249
|
function kr(e, t, n) {
|
|
1250
1250
|
const { selection: r, messages: o } = ne(), i = O(void 0), s = e ? Ti(r, e) : void 0, d = !!e && $i(r, e), l = r.onScopeSelected;
|
|
1251
1251
|
return ve(() => {
|
|
1252
|
-
const c = Ul(s, o), u = _i(s),
|
|
1252
|
+
const c = Ul(s, o), u = _i(s), m = c ? { "aria-description": c } : {};
|
|
1253
1253
|
if (!e || !l) return {
|
|
1254
1254
|
emphasis: s,
|
|
1255
1255
|
className: "",
|
|
@@ -1258,28 +1258,28 @@ function kr(e, t, n) {
|
|
|
1258
1258
|
emphasis: s,
|
|
1259
1259
|
label: c
|
|
1260
1260
|
}),
|
|
1261
|
-
attributes:
|
|
1261
|
+
attributes: m
|
|
1262
1262
|
};
|
|
1263
|
-
const v = (
|
|
1264
|
-
...
|
|
1263
|
+
const v = (g) => l(e, t, { additive: Jl(g) }), p = {
|
|
1264
|
+
...m,
|
|
1265
1265
|
role: "group",
|
|
1266
1266
|
tabIndex: 0,
|
|
1267
1267
|
"aria-label": `${Yl(t, o)}: ${n}`,
|
|
1268
1268
|
"aria-current": d ? "true" : void 0,
|
|
1269
|
-
onPointerDownCapture: (
|
|
1269
|
+
onPointerDownCapture: (g) => {
|
|
1270
1270
|
i.current = {
|
|
1271
|
-
x:
|
|
1272
|
-
y:
|
|
1271
|
+
x: g.clientX,
|
|
1272
|
+
y: g.clientY
|
|
1273
1273
|
};
|
|
1274
1274
|
},
|
|
1275
|
-
onClick: (
|
|
1275
|
+
onClick: (g) => {
|
|
1276
1276
|
const h = i.current;
|
|
1277
1277
|
i.current = void 0;
|
|
1278
|
-
const b = h ? Math.max(Math.abs(
|
|
1279
|
-
Kl(
|
|
1278
|
+
const b = h ? Math.max(Math.abs(g.clientX - h.x), Math.abs(g.clientY - h.y)) : 0;
|
|
1279
|
+
Kl(g.currentTarget, g.target, b) && v(g);
|
|
1280
1280
|
},
|
|
1281
|
-
onKeyDown: (
|
|
1282
|
-
|
|
1281
|
+
onKeyDown: (g) => {
|
|
1282
|
+
g.target !== g.currentTarget || g.key !== "Enter" && g.key !== " " || (g.preventDefault(), v(g));
|
|
1283
1283
|
}
|
|
1284
1284
|
};
|
|
1285
1285
|
return {
|
|
@@ -1325,21 +1325,21 @@ function lt(e) {
|
|
|
1325
1325
|
return typeof t == "function" ? t(n) : t?.get(n);
|
|
1326
1326
|
}
|
|
1327
1327
|
var Fi = 0.1, nd = (e, t, n, r) => !(e.ctrlKey || e.metaKey) || e.deltaY === 0 ? !1 : e.deltaY < 0 ? t >= r : t <= n, rd = ({ chrome: e = {}, onHelp: t, helpTitle: n, onTransformChange: r, rootRef: o, ...i }) => {
|
|
1328
|
-
const { readOnly: s } = ne(), { initialZoom: d = 1, minZoom: l = Fi, maxZoom: c = 5 } = i, u = O(d),
|
|
1329
|
-
u.current =
|
|
1330
|
-
}, [r]), p = G((
|
|
1331
|
-
|
|
1328
|
+
const { readOnly: s } = ne(), { initialZoom: d = 1, minZoom: l = Fi, maxZoom: c = 5 } = i, u = O(d), m = O(null), v = G((g, h) => {
|
|
1329
|
+
u.current = g, r?.(g, h);
|
|
1330
|
+
}, [r]), p = G((g) => {
|
|
1331
|
+
m.current = g, typeof o == "function" ? o(g) : o && (o.current = g);
|
|
1332
1332
|
}, [o]);
|
|
1333
1333
|
return oe(() => {
|
|
1334
|
-
const
|
|
1335
|
-
if (!
|
|
1334
|
+
const g = m.current;
|
|
1335
|
+
if (!g) return;
|
|
1336
1336
|
const h = (b) => {
|
|
1337
1337
|
nd(b, u.current, l, c) && (b.preventDefault(), b.stopPropagation());
|
|
1338
1338
|
};
|
|
1339
|
-
return
|
|
1339
|
+
return g.addEventListener("wheel", h, {
|
|
1340
1340
|
capture: !0,
|
|
1341
1341
|
passive: !1
|
|
1342
|
-
}), () =>
|
|
1342
|
+
}), () => g.removeEventListener("wheel", h, { capture: !0 });
|
|
1343
1343
|
}, [l, c]), /* @__PURE__ */ a("div", {
|
|
1344
1344
|
ref: p,
|
|
1345
1345
|
style: { display: "contents" },
|
|
@@ -1563,16 +1563,16 @@ function yd(e, t, n, r, o, i) {
|
|
|
1563
1563
|
onPointerMove: (l) => {
|
|
1564
1564
|
const c = s.current;
|
|
1565
1565
|
if (!c) return;
|
|
1566
|
-
const u = n(),
|
|
1566
|
+
const u = n(), m = (l.clientX - c.lastX) / u, v = (l.clientY - c.lastY) / u;
|
|
1567
1567
|
s.current = {
|
|
1568
1568
|
lastX: l.clientX,
|
|
1569
1569
|
lastY: l.clientY,
|
|
1570
1570
|
position: {
|
|
1571
|
-
x: c.position.x +
|
|
1571
|
+
x: c.position.x + m,
|
|
1572
1572
|
y: c.position.y + v
|
|
1573
1573
|
},
|
|
1574
1574
|
moved: !0
|
|
1575
|
-
}, r?.(e,
|
|
1575
|
+
}, r?.(e, m, v);
|
|
1576
1576
|
},
|
|
1577
1577
|
onPointerCancel: d,
|
|
1578
1578
|
onLostPointerCapture: d,
|
|
@@ -1628,12 +1628,12 @@ var So = (e, t, n, r) => {
|
|
|
1628
1628
|
function Ed(e, t, n, r = Md) {
|
|
1629
1629
|
const o = Ui(t), i = new Map(t.map((u) => [u.id.toString(), u])), s = new Map(e.collections.map((u) => [u.id.toString(), u])), d = e.additions.filter((u) => !i.has(u.id.toString()));
|
|
1630
1630
|
if (o !== e.contentSignature) {
|
|
1631
|
-
const u = t.map((
|
|
1632
|
-
const v = s.get(
|
|
1633
|
-
return v && So(e,
|
|
1634
|
-
...
|
|
1631
|
+
const u = t.map((m) => {
|
|
1632
|
+
const v = s.get(m.id.toString());
|
|
1633
|
+
return v && So(e, m.id, n, r) ? {
|
|
1634
|
+
...m,
|
|
1635
1635
|
position: v.position
|
|
1636
|
-
} :
|
|
1636
|
+
} : m;
|
|
1637
1637
|
});
|
|
1638
1638
|
return {
|
|
1639
1639
|
...e,
|
|
@@ -1645,10 +1645,10 @@ function Ed(e, t, n, r = Md) {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
let l = !1;
|
|
1647
1647
|
const c = e.collections.map((u) => {
|
|
1648
|
-
const
|
|
1649
|
-
return !
|
|
1648
|
+
const m = i.get(u.id.toString());
|
|
1649
|
+
return !m || So(e, u.id, n, r) || (u.position?.x ?? 0) === (m.position?.x ?? 0) && (u.position?.y ?? 0) === (m.position?.y ?? 0) ? u : (l = !0, {
|
|
1650
1650
|
...u,
|
|
1651
|
-
position:
|
|
1651
|
+
position: m.position
|
|
1652
1652
|
});
|
|
1653
1653
|
});
|
|
1654
1654
|
return {
|
|
@@ -1753,12 +1753,12 @@ function Ld(e, t) {
|
|
|
1753
1753
|
return r ? o : e;
|
|
1754
1754
|
}
|
|
1755
1755
|
function Pd({ initialCollections: e, onAddCollection: t, onCollectionMoved: n, onCollectionsChange: r, onPersistenceError: o }) {
|
|
1756
|
-
const { readOnly: i } = ne(), [s, d] = D(() => kd(e)), l = O(s), { collections: c, pendingMoveIds: u } = s,
|
|
1757
|
-
const h =
|
|
1756
|
+
const { readOnly: i } = ne(), [s, d] = D(() => kd(e)), l = O(s), { collections: c, pendingMoveIds: u } = s, m = O(!1), v = O(!0), p = G((g) => {
|
|
1757
|
+
const h = g(l.current);
|
|
1758
1758
|
l.current = h, d(h);
|
|
1759
1759
|
}, []);
|
|
1760
1760
|
return oe(() => {
|
|
1761
|
-
e !== l.current.snapshot && p((
|
|
1761
|
+
e !== l.current.snapshot && p((g) => Ed(g, e, Date.now(), i ? 1 / 0 : void 0));
|
|
1762
1762
|
}, [
|
|
1763
1763
|
e,
|
|
1764
1764
|
p,
|
|
@@ -1772,17 +1772,17 @@ function Pd({ initialCollections: e, onAddCollection: t, onCollectionMoved: n, o
|
|
|
1772
1772
|
}, [c, r]), {
|
|
1773
1773
|
collections: c,
|
|
1774
1774
|
pendingMoveIds: u,
|
|
1775
|
-
setCollections: G((
|
|
1775
|
+
setCollections: G((g) => {
|
|
1776
1776
|
p((h) => ({
|
|
1777
1777
|
...h,
|
|
1778
|
-
collections: typeof
|
|
1778
|
+
collections: typeof g == "function" ? g(h.collections) : g
|
|
1779
1779
|
}));
|
|
1780
1780
|
}, [p]),
|
|
1781
|
-
addCollection: G(async (
|
|
1782
|
-
if (!(i || !t ||
|
|
1783
|
-
|
|
1781
|
+
addCollection: G(async (g, h) => {
|
|
1782
|
+
if (!(i || !t || m.current)) {
|
|
1783
|
+
m.current = !0;
|
|
1784
1784
|
try {
|
|
1785
|
-
const b = await t(
|
|
1785
|
+
const b = await t(g, h, l.current.collections);
|
|
1786
1786
|
return b && p((f) => f.collections.some((y) => y.id.equals(b.id)) ? f : {
|
|
1787
1787
|
...f,
|
|
1788
1788
|
additions: [...f.additions, b],
|
|
@@ -1793,7 +1793,7 @@ function Pd({ initialCollections: e, onAddCollection: t, onCollectionMoved: n, o
|
|
|
1793
1793
|
else throw b;
|
|
1794
1794
|
return;
|
|
1795
1795
|
} finally {
|
|
1796
|
-
|
|
1796
|
+
m.current = !1;
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
1799
|
}, [
|
|
@@ -1802,23 +1802,23 @@ function Pd({ initialCollections: e, onAddCollection: t, onCollectionMoved: n, o
|
|
|
1802
1802
|
o,
|
|
1803
1803
|
p
|
|
1804
1804
|
]),
|
|
1805
|
-
moveCollection: G((
|
|
1806
|
-
!i && !n || l.current.pendingMoveIds.has(
|
|
1805
|
+
moveCollection: G((g, h, b) => {
|
|
1806
|
+
!i && !n || l.current.pendingMoveIds.has(g.toString()) || p((f) => Rd(f, g, h, b, Date.now()));
|
|
1807
1807
|
}, [
|
|
1808
1808
|
i,
|
|
1809
1809
|
n,
|
|
1810
1810
|
p
|
|
1811
1811
|
]),
|
|
1812
|
-
collectionMoved: G(async (
|
|
1813
|
-
if (!(i || !n || l.current.pendingMoveIds.has(
|
|
1814
|
-
p((b) => Id(b,
|
|
1812
|
+
collectionMoved: G(async (g, h) => {
|
|
1813
|
+
if (!(i || !n || l.current.pendingMoveIds.has(g.toString()))) {
|
|
1814
|
+
p((b) => Id(b, g));
|
|
1815
1815
|
try {
|
|
1816
|
-
await n(
|
|
1816
|
+
await n(g, h) || p((b) => Co(b, g));
|
|
1817
1817
|
} catch (b) {
|
|
1818
|
-
if (p((f) => Co(f,
|
|
1818
|
+
if (p((f) => Co(f, g)), o) o(b);
|
|
1819
1819
|
else throw b;
|
|
1820
1820
|
} finally {
|
|
1821
|
-
p((b) => Nd(b,
|
|
1821
|
+
p((b) => Nd(b, g));
|
|
1822
1822
|
}
|
|
1823
1823
|
}
|
|
1824
1824
|
}, [
|
|
@@ -1890,8 +1890,8 @@ function Or(e, t = "250% 250%", n = "light") {
|
|
|
1890
1890
|
const d = new IntersectionObserver((l) => {
|
|
1891
1891
|
const c = l[l.length - 1];
|
|
1892
1892
|
if (!c) return;
|
|
1893
|
-
const u = c.boundingClientRect,
|
|
1894
|
-
Io.request(i, c.isIntersecting,
|
|
1893
|
+
const u = c.boundingClientRect, m = Math.hypot(u.left + u.width / 2 - window.innerWidth / 2, u.top + u.height / 2 - window.innerHeight / 2);
|
|
1894
|
+
Io.request(i, c.isIntersecting, m, n);
|
|
1895
1895
|
}, { rootMargin: t });
|
|
1896
1896
|
return d.observe(s), () => {
|
|
1897
1897
|
d.disconnect(), Io.cancel(i);
|
|
@@ -2169,37 +2169,37 @@ var It = ({ change: e, kind: t, name: n }) => {
|
|
|
2169
2169
|
})
|
|
2170
2170
|
});
|
|
2171
2171
|
}, Ln = ({ value: e, onChange: t, placeholder: n = "Name…", style: r, validate: o, readOnly: i = !1 }) => {
|
|
2172
|
-
const s = Ce(), [d, l] = D(!1), [c, u] = D(e), [
|
|
2173
|
-
const
|
|
2174
|
-
if (!
|
|
2172
|
+
const s = Ce(), [d, l] = D(!1), [c, u] = D(e), [m, v] = D(void 0), p = () => {
|
|
2173
|
+
const g = c.trim();
|
|
2174
|
+
if (!g) {
|
|
2175
2175
|
u(e), l(!1), v(void 0);
|
|
2176
2176
|
return;
|
|
2177
2177
|
}
|
|
2178
2178
|
if (o) {
|
|
2179
|
-
const h = o(
|
|
2179
|
+
const h = o(g);
|
|
2180
2180
|
if (h) {
|
|
2181
2181
|
v(h);
|
|
2182
2182
|
return;
|
|
2183
2183
|
}
|
|
2184
2184
|
}
|
|
2185
|
-
v(void 0), l(!1), t(
|
|
2185
|
+
v(void 0), l(!1), t(g);
|
|
2186
2186
|
};
|
|
2187
2187
|
return d && !i ? /* @__PURE__ */ a("input", {
|
|
2188
2188
|
autoFocus: !0,
|
|
2189
2189
|
value: c,
|
|
2190
|
-
onChange: (
|
|
2191
|
-
u(
|
|
2190
|
+
onChange: (g) => {
|
|
2191
|
+
u(g.target.value), v(void 0);
|
|
2192
2192
|
},
|
|
2193
2193
|
onBlur: p,
|
|
2194
|
-
onKeyDown: (
|
|
2195
|
-
if (
|
|
2196
|
-
|
|
2194
|
+
onKeyDown: (g) => {
|
|
2195
|
+
if (g.key === "Enter") {
|
|
2196
|
+
g.target.blur();
|
|
2197
2197
|
return;
|
|
2198
2198
|
}
|
|
2199
|
-
|
|
2199
|
+
g.key === "Escape" && (u(e), l(!1), v(void 0));
|
|
2200
2200
|
},
|
|
2201
|
-
className: `event-modeling-grid-editable-label-input${
|
|
2202
|
-
title:
|
|
2201
|
+
className: `event-modeling-grid-editable-label-input${m ? " event-modeling-grid-editable-label-input--error" : ""}`,
|
|
2202
|
+
title: m,
|
|
2203
2203
|
style: r
|
|
2204
2204
|
}) : /* @__PURE__ */ a("span", {
|
|
2205
2205
|
title: i ? void 0 : s.editableLabel.doubleClickToRename,
|
|
@@ -2285,7 +2285,7 @@ var It = ({ change: e, kind: t, name: n }) => {
|
|
|
2285
2285
|
children: i
|
|
2286
2286
|
})
|
|
2287
2287
|
});
|
|
2288
|
-
}, Zi = ({ variant: e, collapsed: t, onToggle: n, label: r, onRenameLabel: o, labelReadOnly: i = !1, validateLabel: s, labelStyle: d, background: l, border: c, height: u, children:
|
|
2288
|
+
}, Zi = ({ variant: e, collapsed: t, onToggle: n, label: r, onRenameLabel: o, labelReadOnly: i = !1, validateLabel: s, labelStyle: d, background: l, border: c, height: u, children: m, marker: v, description: p, documentation: g, leadingContent: h, draggable: b = !1, onPointerDown: f, onPointerMove: y, onPointerUp: w, error: C, className: k, attributes: R }) => {
|
|
2289
2289
|
const M = /* @__PURE__ */ a(Ln, {
|
|
2290
2290
|
value: r,
|
|
2291
2291
|
onChange: o,
|
|
@@ -2319,12 +2319,12 @@ var It = ({ change: e, kind: t, name: n }) => {
|
|
|
2319
2319
|
className: "event-modeling-grid-pill-center",
|
|
2320
2320
|
children: [x, /* @__PURE__ */ a(Pn, {
|
|
2321
2321
|
description: p,
|
|
2322
|
-
documentation:
|
|
2322
|
+
documentation: g
|
|
2323
2323
|
})]
|
|
2324
2324
|
}) : x,
|
|
2325
2325
|
/* @__PURE__ */ S("div", {
|
|
2326
2326
|
className: "event-modeling-grid-pill-right",
|
|
2327
|
-
children: [C && /* @__PURE__ */ a(Zd, { error: C }),
|
|
2327
|
+
children: [C && /* @__PURE__ */ a(Zd, { error: C }), m]
|
|
2328
2328
|
})
|
|
2329
2329
|
]
|
|
2330
2330
|
});
|
|
@@ -2368,10 +2368,10 @@ var It = ({ change: e, kind: t, name: n }) => {
|
|
|
2368
2368
|
border: "1px solid #d1d5db",
|
|
2369
2369
|
flexShrink: 0,
|
|
2370
2370
|
display: "inline-block"
|
|
2371
|
-
}), Oo = ({ rowType: e, height: t, name: n, description: r, actorId: o, onRenamed: i, validateName: s, onActorAdded: d, onDragStart: l, dragging: c = !1, badge: u, personaAvatar:
|
|
2372
|
-
const { readOnly: p, messages:
|
|
2371
|
+
}), Oo = ({ rowType: e, height: t, name: n, description: r, actorId: o, onRenamed: i, validateName: s, onActorAdded: d, onDragStart: l, dragging: c = !1, badge: u, personaAvatar: m, children: v }) => {
|
|
2372
|
+
const { readOnly: p, messages: g } = ne(), [h, b] = D(!1), [f, y] = D(!1), w = O(void 0), C = O(null), k = O(null), R = O(null), M = ve(() => [k], []), x = ve(() => [R], []);
|
|
2373
2373
|
Ft(M, () => b(!1), h), Ft(x, () => y(!1), f);
|
|
2374
|
-
const A = n ?? Kd(e,
|
|
2374
|
+
const A = n ?? Kd(e, g), V = Jd(e), Z = V && !p ? i : void 0, L = V && !p ? d : void 0, te = o && !p ? l : void 0, N = p ? [] : u?.actions ?? [], E = p ? void 0 : u?.onActivate, q = N.length > 0 || !!E, P = m ?? u?.avatar, $ = V && (!!P || !!u && !p), K = () => {
|
|
2375
2375
|
if (N.length > 0) {
|
|
2376
2376
|
y((I) => !I);
|
|
2377
2377
|
return;
|
|
@@ -2465,12 +2465,12 @@ var It = ({ change: e, kind: t, name: n }) => {
|
|
|
2465
2465
|
onClick: (I) => {
|
|
2466
2466
|
I.stopPropagation(), b((j) => !j);
|
|
2467
2467
|
},
|
|
2468
|
-
title:
|
|
2469
|
-
"aria-label":
|
|
2468
|
+
title: g.actors.add,
|
|
2469
|
+
"aria-label": g.actors.add,
|
|
2470
2470
|
children: "+"
|
|
2471
2471
|
}), h && /* @__PURE__ */ a("div", {
|
|
2472
2472
|
className: "event-modeling-grid-row-role-menu",
|
|
2473
|
-
children: Ud(
|
|
2473
|
+
children: Ud(g).map(({ actorType: I, label: j, color: U }) => /* @__PURE__ */ S("button", {
|
|
2474
2474
|
className: "event-modeling-grid-row-role-menu-option",
|
|
2475
2475
|
onClick: () => {
|
|
2476
2476
|
L(I), b(!1);
|
|
@@ -2524,7 +2524,7 @@ function ac(e, t, n) {
|
|
|
2524
2524
|
l.current = e;
|
|
2525
2525
|
const c = O(n);
|
|
2526
2526
|
c.current = n;
|
|
2527
|
-
const u = G((v, p,
|
|
2527
|
+
const u = G((v, p, g) => {
|
|
2528
2528
|
const h = d.current.find((f) => f.id === v);
|
|
2529
2529
|
if (!h) return;
|
|
2530
2530
|
const b = d.current.filter((f) => f.actorType === h.actorType).findIndex((f) => f.id === v);
|
|
@@ -2534,35 +2534,35 @@ function ac(e, t, n) {
|
|
|
2534
2534
|
sourceIndex: b,
|
|
2535
2535
|
ghostLabel: h.name,
|
|
2536
2536
|
currentX: p,
|
|
2537
|
-
currentY:
|
|
2537
|
+
currentY: g,
|
|
2538
2538
|
dropIndex: b
|
|
2539
2539
|
});
|
|
2540
|
-
}, []),
|
|
2540
|
+
}, []), m = o !== void 0;
|
|
2541
2541
|
return oe(() => {
|
|
2542
|
-
if (!
|
|
2543
|
-
const v = (
|
|
2542
|
+
if (!m) return;
|
|
2543
|
+
const v = (g) => {
|
|
2544
2544
|
i((h) => h && {
|
|
2545
2545
|
...h,
|
|
2546
|
-
currentX:
|
|
2547
|
-
currentY:
|
|
2548
|
-
dropIndex: rc(l.current, h.rowType,
|
|
2546
|
+
currentX: g.clientX,
|
|
2547
|
+
currentY: g.clientY,
|
|
2548
|
+
dropIndex: rc(l.current, h.rowType, g.clientY)
|
|
2549
2549
|
});
|
|
2550
2550
|
}, p = () => {
|
|
2551
|
-
const
|
|
2552
|
-
if (i(void 0), !
|
|
2553
|
-
const h = ic(d.current,
|
|
2551
|
+
const g = s.current;
|
|
2552
|
+
if (i(void 0), !g) return;
|
|
2553
|
+
const h = ic(d.current, g.actorId, g.dropIndex);
|
|
2554
2554
|
h && c.current?.(l.current, h.actorType, h.orderedIds);
|
|
2555
2555
|
};
|
|
2556
2556
|
return window.addEventListener("pointermove", v), window.addEventListener("pointerup", p), () => {
|
|
2557
2557
|
window.removeEventListener("pointermove", v), window.removeEventListener("pointerup", p);
|
|
2558
2558
|
};
|
|
2559
|
-
}, [
|
|
2559
|
+
}, [m]), {
|
|
2560
2560
|
actorDrag: o,
|
|
2561
2561
|
handleActorDragStart: !r.readOnly && n !== void 0 ? u : void 0
|
|
2562
2562
|
};
|
|
2563
2563
|
}
|
|
2564
2564
|
var sc = ({ collectionId: e, topOffset: t, contentRows: n, rowHeights: r, actors: o, onActorAdded: i, onActorRenamed: s, onRowRenamed: d, onActorsReordered: l, renderActorLabel: c, renderEmptyActorLabel: u }) => {
|
|
2565
|
-
const [
|
|
2565
|
+
const [m, v] = D({}), [p, g] = D({}), { actorDrag: h, handleActorDragStart: b } = ac(e, o, l);
|
|
2566
2566
|
return /* @__PURE__ */ S(nc, {
|
|
2567
2567
|
topOffset: t,
|
|
2568
2568
|
collectionId: e.toString(),
|
|
@@ -2570,14 +2570,14 @@ var sc = ({ collectionId: e, topOffset: t, contentRows: n, rowHeights: r, actors
|
|
|
2570
2570
|
const y = Rn(f), w = y === void 0 ? [] : o.filter((M) => M.actorType === y), C = {
|
|
2571
2571
|
rowType: f,
|
|
2572
2572
|
height: r[f],
|
|
2573
|
-
name:
|
|
2573
|
+
name: m[f],
|
|
2574
2574
|
onRenamed: d ? (M) => {
|
|
2575
2575
|
v((x) => ({
|
|
2576
2576
|
...x,
|
|
2577
2577
|
[f]: M
|
|
2578
2578
|
})), d(f, M);
|
|
2579
2579
|
} : void 0,
|
|
2580
|
-
validateName: (M) => Object.entries(
|
|
2580
|
+
validateName: (M) => Object.entries(m).find(([x]) => x !== f)?.[1]?.toLowerCase() === M.toLowerCase() ? "Name already in use" : void 0,
|
|
2581
2581
|
onActorAdded: i ? (M) => i(f, M) : void 0
|
|
2582
2582
|
}, k = y === void 0 || w.length === 0 ? [/* @__PURE__ */ a(xt, { children: y !== void 0 && u ? u(f, C) : /* @__PURE__ */ a(Oo, { ...C }) }, f)] : [], R = w.flatMap((M, x) => {
|
|
2583
2583
|
const A = h?.rowType === f, V = {
|
|
@@ -2587,7 +2587,7 @@ var sc = ({ collectionId: e, topOffset: t, contentRows: n, rowHeights: r, actors
|
|
|
2587
2587
|
description: M.description,
|
|
2588
2588
|
actorId: M.id,
|
|
2589
2589
|
onRenamed: s ? (Z) => {
|
|
2590
|
-
|
|
2590
|
+
g((L) => ({
|
|
2591
2591
|
...L,
|
|
2592
2592
|
[M.id]: Z
|
|
2593
2593
|
})), s(M.id, Z);
|
|
@@ -2890,17 +2890,17 @@ var Po = ({ status: e }) => /* @__PURE__ */ a("svg", {
|
|
|
2890
2890
|
children: e
|
|
2891
2891
|
});
|
|
2892
2892
|
}, ft = ({ trigger: e, items: t, align: n = "right", onClose: r }) => {
|
|
2893
|
-
const o = _e(na), i = jt(), [s, d] = D(!1), [l, c] = D(), u = O(null),
|
|
2893
|
+
const o = _e(na), i = jt(), [s, d] = D(!1), [l, c] = D(), u = O(null), m = O(null), v = o ? o.openMenuId === i : s, p = O(v);
|
|
2894
2894
|
oe(() => {
|
|
2895
2895
|
p.current && !v && (r?.(), c(void 0)), p.current = v;
|
|
2896
2896
|
}, [v, r]);
|
|
2897
|
-
const
|
|
2897
|
+
const g = (y) => {
|
|
2898
2898
|
if (o) {
|
|
2899
2899
|
y ? o.setOpenMenuId((w) => pc(w, i)) : o.setOpenMenuId((w) => fc(w, i));
|
|
2900
2900
|
return;
|
|
2901
2901
|
}
|
|
2902
2902
|
d(y);
|
|
2903
|
-
}, h = () =>
|
|
2903
|
+
}, h = () => g(!1), b = ve(() => [u, m], []);
|
|
2904
2904
|
Ft(b, h, v);
|
|
2905
2905
|
const f = (y) => y.map((w) => {
|
|
2906
2906
|
if (w.isSeparator) return /* @__PURE__ */ a("div", { className: "event-modeling-menu-dropdown-separator" }, w.id.toString());
|
|
@@ -2955,7 +2955,7 @@ var Po = ({ status: e }) => /* @__PURE__ */ a("svg", {
|
|
|
2955
2955
|
className: "event-modeling-menu-dropdown-trigger",
|
|
2956
2956
|
onPointerDown: (y) => y.stopPropagation(),
|
|
2957
2957
|
onClick: (y) => {
|
|
2958
|
-
y.stopPropagation(),
|
|
2958
|
+
y.stopPropagation(), g(!v);
|
|
2959
2959
|
},
|
|
2960
2960
|
children: e
|
|
2961
2961
|
}), /* @__PURE__ */ a(In, {
|
|
@@ -2964,7 +2964,7 @@ var Po = ({ status: e }) => /* @__PURE__ */ a("svg", {
|
|
|
2964
2964
|
side: "below",
|
|
2965
2965
|
align: n,
|
|
2966
2966
|
children: /* @__PURE__ */ a("div", {
|
|
2967
|
-
ref:
|
|
2967
|
+
ref: m,
|
|
2968
2968
|
className: "event-modeling-menu-dropdown-menu",
|
|
2969
2969
|
children: f(t)
|
|
2970
2970
|
})
|
|
@@ -3027,14 +3027,14 @@ var Po = ({ status: e }) => /* @__PURE__ */ a("svg", {
|
|
|
3027
3027
|
}, lr = (e) => ce[e], Tr = ({ status: e, onStatusChanged: t, selectable: n = To, unselectableReason: r, optimistic: o = !0, reason: i }) => {
|
|
3028
3028
|
const { readOnly: s, messages: d } = ne(), [l, c] = D(e);
|
|
3029
3029
|
oe(() => c(e), [e]);
|
|
3030
|
-
const u = `${d.statuses.titlePrefix} ${Vn(l, d)}`,
|
|
3030
|
+
const u = `${d.statuses.titlePrefix} ${Vn(l, d)}`, m = i && l === e ? `${u} - ${i}` : u, v = `event-modeling-slice-status-icon event-modeling-slice-status-icon--${lr(l)}`;
|
|
3031
3031
|
if (s || !t) return /* @__PURE__ */ a("span", {
|
|
3032
3032
|
className: `${v} event-modeling-slice-status-icon--readonly`,
|
|
3033
|
-
title:
|
|
3033
|
+
title: m,
|
|
3034
3034
|
"aria-label": Vn(l, d),
|
|
3035
3035
|
children: /* @__PURE__ */ a(Po, { status: l })
|
|
3036
3036
|
});
|
|
3037
|
-
const p = (h) => o ? bc(l, h, t, c) : void t(h),
|
|
3037
|
+
const p = (h) => o ? bc(l, h, t, c) : void t(h), g = To.map((h) => ({
|
|
3038
3038
|
id: lr(h),
|
|
3039
3039
|
label: Vn(h, d),
|
|
3040
3040
|
icon: /* @__PURE__ */ a(wc, {
|
|
@@ -3048,11 +3048,11 @@ var Po = ({ status: e }) => /* @__PURE__ */ a("svg", {
|
|
|
3048
3048
|
return /* @__PURE__ */ a(ft, {
|
|
3049
3049
|
trigger: /* @__PURE__ */ a("button", {
|
|
3050
3050
|
className: v,
|
|
3051
|
-
title:
|
|
3051
|
+
title: m,
|
|
3052
3052
|
"aria-label": d.statuses.change,
|
|
3053
3053
|
children: /* @__PURE__ */ a(Po, { status: l })
|
|
3054
3054
|
}),
|
|
3055
|
-
items:
|
|
3055
|
+
items: g,
|
|
3056
3056
|
align: "left"
|
|
3057
3057
|
});
|
|
3058
3058
|
}, wc = ({ status: e, checked: t }) => {
|
|
@@ -3085,19 +3085,19 @@ var Po = ({ status: e }) => /* @__PURE__ */ a("svg", {
|
|
|
3085
3085
|
const i = Ce(), s = O(null), [d, l] = D();
|
|
3086
3086
|
if (!t.length && !n && !r) return null;
|
|
3087
3087
|
const c = (p) => {
|
|
3088
|
-
const
|
|
3089
|
-
|
|
3090
|
-
}, u = (p) => p.map((
|
|
3091
|
-
id:
|
|
3092
|
-
label:
|
|
3093
|
-
description:
|
|
3094
|
-
icon:
|
|
3095
|
-
disabled:
|
|
3096
|
-
tooltip:
|
|
3097
|
-
isSeparator:
|
|
3098
|
-
keepOpen: !!
|
|
3099
|
-
onClick: () =>
|
|
3100
|
-
})),
|
|
3088
|
+
const g = s.current?.getBoundingClientRect();
|
|
3089
|
+
g && p.onActivate(e, g);
|
|
3090
|
+
}, u = (p) => p.map((g) => ({
|
|
3091
|
+
id: g.id,
|
|
3092
|
+
label: g.label + (g.items ? " ›" : ""),
|
|
3093
|
+
description: g.description,
|
|
3094
|
+
icon: g.icon,
|
|
3095
|
+
disabled: g.disabled,
|
|
3096
|
+
tooltip: g.tooltip,
|
|
3097
|
+
isSeparator: g.isSeparator,
|
|
3098
|
+
keepOpen: !!g.items,
|
|
3099
|
+
onClick: () => g.items ? l(g.id) : c(g)
|
|
3100
|
+
})), m = d ? [{
|
|
3101
3101
|
id: "back",
|
|
3102
3102
|
label: i.features.back,
|
|
3103
3103
|
keepOpen: !0,
|
|
@@ -3161,7 +3161,7 @@ var Po = ({ status: e }) => /* @__PURE__ */ a("svg", {
|
|
|
3161
3161
|
]
|
|
3162
3162
|
})
|
|
3163
3163
|
}),
|
|
3164
|
-
items:
|
|
3164
|
+
items: m,
|
|
3165
3165
|
align: "right",
|
|
3166
3166
|
onClose: () => l(void 0)
|
|
3167
3167
|
});
|
|
@@ -3230,8 +3230,8 @@ var Po = ({ status: e }) => /* @__PURE__ */ a("svg", {
|
|
|
3230
3230
|
fontWeight: 600,
|
|
3231
3231
|
color: "color-mix(in srgb, var(--board-ink, #ffffff) 80%, transparent)",
|
|
3232
3232
|
textAlign: "center"
|
|
3233
|
-
}, xc = ({ moduleId: e, name: t, description: n, documentation: r, height: o, collapsed: i, onToggleCollapse: s, onAddModule: d, onAddFeature: l, onRenamed: c, validateName: u, status:
|
|
3234
|
-
const b = ne(), f = lt(e), y = kr(e, "module", t), { showStatuses: w = !0 } = Pe(), C = ta(!b.readOnly && !i ?
|
|
3233
|
+
}, xc = ({ moduleId: e, name: t, description: n, documentation: r, height: o, collapsed: i, onToggleCollapse: s, onAddModule: d, onAddFeature: l, onRenamed: c, validateName: u, status: m, detailsVisible: v = !1, onToggleDetails: p, onDragStart: g, error: h }) => {
|
|
3234
|
+
const b = ne(), f = lt(e), y = kr(e, "module", t), { showStatuses: w = !0 } = Pe(), C = ta(!b.readOnly && !i ? g : void 0), k = b.readOnly ? void 0 : c, R = b.actions, M = hv(e, l, b.editing);
|
|
3235
3235
|
return /* @__PURE__ */ S(re, { children: [/* @__PURE__ */ S(Zi, {
|
|
3236
3236
|
marker: f || y.marker ? /* @__PURE__ */ S(re, { children: [f && /* @__PURE__ */ a(It, {
|
|
3237
3237
|
change: f,
|
|
@@ -3274,7 +3274,7 @@ var Po = ({ status: e }) => /* @__PURE__ */ a("svg", {
|
|
|
3274
3274
|
onPointerUp: C?.onPointerUp,
|
|
3275
3275
|
error: h,
|
|
3276
3276
|
children: [
|
|
3277
|
-
w &&
|
|
3277
|
+
w && m !== void 0 && /* @__PURE__ */ a(Tr, { status: m }),
|
|
3278
3278
|
!b.readOnly && p && /* @__PURE__ */ a(Qi, {
|
|
3279
3279
|
visible: v,
|
|
3280
3280
|
onToggle: p
|
|
@@ -3319,40 +3319,40 @@ function kc(e, t, n) {
|
|
|
3319
3319
|
l.current = e;
|
|
3320
3320
|
const c = O(n);
|
|
3321
3321
|
c.current = n;
|
|
3322
|
-
const u = G((v, p,
|
|
3322
|
+
const u = G((v, p, g) => {
|
|
3323
3323
|
const h = d.current.findIndex((b) => b.equals(v));
|
|
3324
3324
|
h !== -1 && i({
|
|
3325
3325
|
moduleId: v,
|
|
3326
3326
|
sourceIndex: h,
|
|
3327
3327
|
ghostLabel: p,
|
|
3328
|
-
ghostWidth:
|
|
3329
|
-
ghost:
|
|
3330
|
-
currentX:
|
|
3331
|
-
currentY:
|
|
3328
|
+
ghostWidth: g.width,
|
|
3329
|
+
ghost: g.ghost,
|
|
3330
|
+
currentX: g.clientX,
|
|
3331
|
+
currentY: g.clientY,
|
|
3332
3332
|
dropIndex: h,
|
|
3333
|
-
headerY:
|
|
3334
|
-
zoom:
|
|
3333
|
+
headerY: g.headerY,
|
|
3334
|
+
zoom: g.zoom
|
|
3335
3335
|
});
|
|
3336
|
-
}, []),
|
|
3336
|
+
}, []), m = o !== void 0;
|
|
3337
3337
|
return oe(() => {
|
|
3338
|
-
if (!
|
|
3339
|
-
const v = (
|
|
3338
|
+
if (!m) return;
|
|
3339
|
+
const v = (g) => {
|
|
3340
3340
|
i((h) => h && {
|
|
3341
3341
|
...h,
|
|
3342
|
-
currentX:
|
|
3343
|
-
currentY:
|
|
3344
|
-
dropIndex: Mc(d.current,
|
|
3342
|
+
currentX: g.clientX,
|
|
3343
|
+
currentY: g.clientY,
|
|
3344
|
+
dropIndex: Mc(d.current, g.clientX)
|
|
3345
3345
|
});
|
|
3346
3346
|
}, p = () => {
|
|
3347
|
-
const
|
|
3348
|
-
if (i(void 0), !
|
|
3349
|
-
const h = ea(d.current,
|
|
3347
|
+
const g = s.current;
|
|
3348
|
+
if (i(void 0), !g) return;
|
|
3349
|
+
const h = ea(d.current, g.sourceIndex, g.dropIndex);
|
|
3350
3350
|
h && c.current?.(l.current, h);
|
|
3351
3351
|
};
|
|
3352
3352
|
return window.addEventListener("pointermove", v), window.addEventListener("pointerup", p), () => {
|
|
3353
3353
|
window.removeEventListener("pointermove", v), window.removeEventListener("pointerup", p);
|
|
3354
3354
|
};
|
|
3355
|
-
}, [
|
|
3355
|
+
}, [m]), {
|
|
3356
3356
|
moduleDrag: o,
|
|
3357
3357
|
handleModuleDragStart: !r.readOnly && n !== void 0 ? u : void 0
|
|
3358
3358
|
};
|
|
@@ -3367,7 +3367,7 @@ var Ec = (e) => ({
|
|
|
3367
3367
|
renameBarriers: /* @__PURE__ */ new Map()
|
|
3368
3368
|
}), dr = (e, t) => e.length === t.length && e.every((n, r) => n.id.equals(t[r]));
|
|
3369
3369
|
function Zt(e, t) {
|
|
3370
|
-
const n = e.additions.filter((u) => !t.some((
|
|
3370
|
+
const n = e.additions.filter((u) => !t.some((m) => m.id.equals(u.id))), r = new Map([...e.collapseBarriers].filter(([u, m]) => !t.some((v) => v.id.toString() === u && v.collapsed === m))), o = new Map([...e.renameBarriers].filter(([u, m]) => !t.some((v) => v.id.toString() === u && v.name === m))), i = e.orderBarrier && dr(t, e.orderBarrier) ? void 0 : e.orderBarrier, s = new Map([...e.collapses].filter(([u, m]) => e.collapseBarriers.has(u) || !t.some((v) => v.id.toString() === u && v.collapsed === m))), d = new Map([...e.renames].filter(([u, m]) => e.renameBarriers.has(u) || !t.some((v) => v.id.toString() === u && v.name === m))), l = [...t, ...n].map((u) => ({
|
|
3371
3371
|
...u,
|
|
3372
3372
|
collapsed: s.get(u.id.toString()) ?? u.collapsed,
|
|
3373
3373
|
name: d.get(u.id.toString()) ?? u.name
|
|
@@ -3465,18 +3465,18 @@ function Pc({ collectionId: e, initialModules: t, onAddModule: n, onModulesReord
|
|
|
3465
3465
|
const { readOnly: c } = ne(), u = G((E) => {
|
|
3466
3466
|
if (s) s(E);
|
|
3467
3467
|
else throw E;
|
|
3468
|
-
}, [s]),
|
|
3468
|
+
}, [s]), m = O(Ec(t)), [v, p] = D(m.current), g = O(!1), [h, b] = D(!1), f = O(/* @__PURE__ */ new Set()), [y, w] = D(/* @__PURE__ */ new Set()), C = O(!1), [k, R] = D(!1), M = (E, q) => {
|
|
3469
3469
|
q ? f.current.add(E) : f.current.delete(E), w(new Set(f.current));
|
|
3470
3470
|
}, x = G((E) => {
|
|
3471
|
-
const q = E(
|
|
3472
|
-
|
|
3471
|
+
const q = E(m.current);
|
|
3472
|
+
m.current = q, p(q), l?.(q.modules);
|
|
3473
3473
|
}, [l]);
|
|
3474
3474
|
oe(() => {
|
|
3475
|
-
t !==
|
|
3475
|
+
t !== m.current.snapshot && x((E) => Zt(E, t));
|
|
3476
3476
|
}, [t, x]);
|
|
3477
3477
|
const A = G(async () => {
|
|
3478
|
-
if (!(c || !n ||
|
|
3479
|
-
|
|
3478
|
+
if (!(c || !n || g.current)) {
|
|
3479
|
+
g.current = !0, b(!0);
|
|
3480
3480
|
try {
|
|
3481
3481
|
const E = await n();
|
|
3482
3482
|
E && x((q) => Zt({
|
|
@@ -3486,7 +3486,7 @@ function Pc({ collectionId: e, initialModules: t, onAddModule: n, onModulesReord
|
|
|
3486
3486
|
} catch (E) {
|
|
3487
3487
|
u(E);
|
|
3488
3488
|
} finally {
|
|
3489
|
-
|
|
3489
|
+
g.current = !1, b(!1);
|
|
3490
3490
|
}
|
|
3491
3491
|
}
|
|
3492
3492
|
}, [
|
|
@@ -3527,7 +3527,7 @@ function Pc({ collectionId: e, initialModules: t, onAddModule: n, onModulesReord
|
|
|
3527
3527
|
]), L = G(async (E, q) => {
|
|
3528
3528
|
if (c || !r || C.current) return;
|
|
3529
3529
|
C.current = !0, R(!0);
|
|
3530
|
-
const P =
|
|
3530
|
+
const P = m.current.order;
|
|
3531
3531
|
x(($) => Rc($, q));
|
|
3532
3532
|
try {
|
|
3533
3533
|
await Gn(() => r(q), () => x(($) => Lc($, P)), u);
|
|
@@ -3634,7 +3634,7 @@ var $c = ({ width: e, collapsed: t, children: n }) => /* @__PURE__ */ a("div", {
|
|
|
3634
3634
|
featureGap: En(n).feature,
|
|
3635
3635
|
textScale: r
|
|
3636
3636
|
}), ca = (e) => e.length === 0 ? 0 : 1 + Math.max(...e.map((t) => ca(t.subFeatures))), Fc = (e, t, n, r) => {
|
|
3637
|
-
const o = $r(e), i = aa(e, t, r), s = Kt(e), d = e.modules.map((
|
|
3637
|
+
const o = $r(e), i = aa(e, t, r), s = Kt(e), d = e.modules.map((m) => m.collapsed ? ae.collapsedModuleWidth : da(m.name, m.features, n, Nt(r))), l = d.reduce((m, v, p) => m + (p ? En(n).module : 0) + v, 0), c = Math.max(1, ...e.modules.map((m) => ca(m.features))), u = o.reduce((m, v) => m + i[v], 0);
|
|
3638
3638
|
return {
|
|
3639
3639
|
width: (s.length ? 56 : 0) + l + 2 * ar,
|
|
3640
3640
|
height: ae.headerHeight * (1 + c) + 28 + u + 2 * ar,
|
|
@@ -3813,17 +3813,17 @@ function Vc(e) {
|
|
|
3813
3813
|
}
|
|
3814
3814
|
var Gc = ({ sliceType: e, recomputeKey: t }) => {
|
|
3815
3815
|
const n = O(null), [r, o] = D([]), i = `flow-arrow-${jt().replace(/:/g, "")}`, s = G(() => {
|
|
3816
|
-
const u = n.current,
|
|
3817
|
-
if (!u || !
|
|
3818
|
-
const v = u.getBoundingClientRect(), p = u.clientWidth || v.width,
|
|
3816
|
+
const u = n.current, m = u?.parentElement;
|
|
3817
|
+
if (!u || !m) return;
|
|
3818
|
+
const v = u.getBoundingClientRect(), p = u.clientWidth || v.width, g = p ? v.width / p : 1, h = (y) => {
|
|
3819
3819
|
const w = y.getBoundingClientRect();
|
|
3820
3820
|
return {
|
|
3821
|
-
x: (w.left - v.left) /
|
|
3822
|
-
y: (w.top - v.top) /
|
|
3823
|
-
width: w.width /
|
|
3824
|
-
height: w.height /
|
|
3821
|
+
x: (w.left - v.left) / g,
|
|
3822
|
+
y: (w.top - v.top) / g,
|
|
3823
|
+
width: w.width / g,
|
|
3824
|
+
height: w.height / g
|
|
3825
3825
|
};
|
|
3826
|
-
}, b = Vc(e).map((y) => Array.from(
|
|
3826
|
+
}, b = Vc(e).map((y) => Array.from(m.querySelectorAll(`[data-flow-node="${y}"]`)).map(h)).filter((y) => y.length > 0), f = [];
|
|
3827
3827
|
for (let y = 0; y < b.length - 1; y++) for (const w of b[y + 1]) for (const C of jc(b[y], w)) f.push(Hc(C, w));
|
|
3828
3828
|
o((y) => y.length === f.length && y.every((w, C) => w === f[C]) ? y : f);
|
|
3829
3829
|
}, [e]), d = O(0), l = O(!1), c = G(() => {
|
|
@@ -3840,20 +3840,20 @@ var Gc = ({ sliceType: e, recomputeKey: t }) => {
|
|
|
3840
3840
|
}), [c]), Et(() => {
|
|
3841
3841
|
s();
|
|
3842
3842
|
}, [s, t]), oe(() => {
|
|
3843
|
-
const u = n.current,
|
|
3844
|
-
if (!u || !
|
|
3843
|
+
const u = n.current, m = u?.parentElement;
|
|
3844
|
+
if (!u || !m) return;
|
|
3845
3845
|
const v = new ResizeObserver(() => c()), p = () => {
|
|
3846
|
-
v.disconnect(), v.observe(
|
|
3846
|
+
v.disconnect(), v.observe(m), m.querySelectorAll("[data-flow-node]").forEach((h) => v.observe(h));
|
|
3847
3847
|
};
|
|
3848
3848
|
p();
|
|
3849
|
-
const
|
|
3849
|
+
const g = new MutationObserver((h) => {
|
|
3850
3850
|
h.every((b) => u.contains(b.target)) || (p(), c());
|
|
3851
3851
|
});
|
|
3852
|
-
return
|
|
3852
|
+
return g.observe(m, {
|
|
3853
3853
|
childList: !0,
|
|
3854
3854
|
subtree: !0
|
|
3855
3855
|
}), window.addEventListener("resize", c), () => {
|
|
3856
|
-
v.disconnect(),
|
|
3856
|
+
v.disconnect(), g.disconnect(), window.removeEventListener("resize", c);
|
|
3857
3857
|
};
|
|
3858
3858
|
}, [
|
|
3859
3859
|
s,
|
|
@@ -3879,11 +3879,11 @@ var Gc = ({ sliceType: e, recomputeKey: t }) => {
|
|
|
3879
3879
|
d: "M 0 0 L 8 4.5 L 0 9 z",
|
|
3880
3880
|
className: "event-modeling-grid-connections__arrow"
|
|
3881
3881
|
})
|
|
3882
|
-
}) }), r.map((u,
|
|
3882
|
+
}) }), r.map((u, m) => /* @__PURE__ */ a("path", {
|
|
3883
3883
|
d: u,
|
|
3884
3884
|
className: "event-modeling-grid-connections__line",
|
|
3885
3885
|
markerEnd: `url(#${i})`
|
|
3886
|
-
},
|
|
3886
|
+
}, m))]
|
|
3887
3887
|
})
|
|
3888
3888
|
});
|
|
3889
3889
|
}, ma = Ge(null), Uc = ({ connections: e, children: t }) => {
|
|
@@ -3922,11 +3922,11 @@ function Zc(e) {
|
|
|
3922
3922
|
i.classList.add(sn);
|
|
3923
3923
|
const l = new Set(e ?? []), c = i.dataset.sliceId;
|
|
3924
3924
|
c && l.add(c);
|
|
3925
|
-
for (const
|
|
3925
|
+
for (const m of l) s.querySelectorAll(Qc(m)).forEach((v) => {
|
|
3926
3926
|
v !== i && (v.classList.add(sn), d.push(v));
|
|
3927
3927
|
});
|
|
3928
3928
|
s.classList.add(Bo);
|
|
3929
|
-
const u = ga((
|
|
3929
|
+
const u = ga((m) => m !== null && m.closest(`.${sn}`) !== null, r);
|
|
3930
3930
|
n.current = {
|
|
3931
3931
|
board: s,
|
|
3932
3932
|
columns: d,
|
|
@@ -3941,12 +3941,12 @@ function Zc(e) {
|
|
|
3941
3941
|
}
|
|
3942
3942
|
var Kc = ({ container: e, getZoom: t }) => {
|
|
3943
3943
|
const { actions: n } = ne(), r = n.boardSpecificationsRunAll, [o, i] = D(), [s, d] = D(!1), l = O(null), c = G(() => {
|
|
3944
|
-
const
|
|
3945
|
-
if (!
|
|
3944
|
+
const m = e.current, v = m?.closest(".event-modeling-grid-container"), p = m?.querySelector(".event-modeling-grid-specification-box--header"), g = m?.querySelector(".event-modeling-grid-row-labels");
|
|
3945
|
+
if (!m || !v || !p || !g) {
|
|
3946
3946
|
i(void 0);
|
|
3947
3947
|
return;
|
|
3948
3948
|
}
|
|
3949
|
-
const h = t(), b = v.getBoundingClientRect(), f = Math.round((p.getBoundingClientRect().top - b.top) / h - v.clientTop), y = Math.round((
|
|
3949
|
+
const h = t(), b = v.getBoundingClientRect(), f = Math.round((p.getBoundingClientRect().top - b.top) / h - v.clientTop), y = Math.round((g.getBoundingClientRect().left - b.left) / h - v.clientLeft), w = Math.round(p.getBoundingClientRect().height / h);
|
|
3950
3950
|
i((C) => C?.top === f && C.left === y && C.height === w ? C : {
|
|
3951
3951
|
top: f,
|
|
3952
3952
|
left: y,
|
|
@@ -3954,10 +3954,10 @@ var Kc = ({ container: e, getZoom: t }) => {
|
|
|
3954
3954
|
});
|
|
3955
3955
|
}, [e, t]);
|
|
3956
3956
|
if (Et(c), Et(() => {
|
|
3957
|
-
const
|
|
3958
|
-
if (!
|
|
3957
|
+
const m = e.current;
|
|
3958
|
+
if (!m) return;
|
|
3959
3959
|
const v = new ResizeObserver(c);
|
|
3960
|
-
return v.observe(
|
|
3960
|
+
return v.observe(m), () => v.disconnect();
|
|
3961
3961
|
}, [e, c]), !r || r.visible === !1 || !o) return null;
|
|
3962
3962
|
const u = async () => {
|
|
3963
3963
|
if (!(s || r.disabled || !l.current)) {
|
|
@@ -4015,7 +4015,7 @@ var Kc = ({ container: e, getZoom: t }) => {
|
|
|
4015
4015
|
},
|
|
4016
4016
|
children: o
|
|
4017
4017
|
});
|
|
4018
|
-
}, eu = ({ featureId: e, moduleId: t, enabled: n, collapsed: r, rowCollapsed: o, width: i, headerVisibility: s, nested: d = !1, header: l, screenTemplate: c, slices: u, hiddenSliceCount:
|
|
4018
|
+
}, eu = ({ featureId: e, moduleId: t, enabled: n, collapsed: r, rowCollapsed: o, width: i, headerVisibility: s, nested: d = !1, header: l, screenTemplate: c, slices: u, hiddenSliceCount: m = 0, onExpandRow: v }) => {
|
|
4019
4019
|
const p = Ce().rowCollapsed ?? Qe.rowCollapsed;
|
|
4020
4020
|
return /* @__PURE__ */ S(Jc, {
|
|
4021
4021
|
featureId: e,
|
|
@@ -4031,10 +4031,10 @@ var Kc = ({ container: e, getZoom: t }) => {
|
|
|
4031
4031
|
children: [s === "visible" ? l : s === "hidden" ? /* @__PURE__ */ a("div", { style: { height: ae.headerHeight } }) : null, !r && c]
|
|
4032
4032
|
}), /* @__PURE__ */ S("div", {
|
|
4033
4033
|
className: !o && (s === "visible" || d) ? "event-modeling-feature-grid-slices--header-visible" : void 0,
|
|
4034
|
-
children: [o &&
|
|
4034
|
+
children: [o && m > 0 && !r && s !== "hidden" && /* @__PURE__ */ S("div", {
|
|
4035
4035
|
className: "event-modeling-feature-grid-row-collapsed-note",
|
|
4036
4036
|
role: "note",
|
|
4037
|
-
children: [/* @__PURE__ */ a("span", { children: p.slicesHidden(
|
|
4037
|
+
children: [/* @__PURE__ */ a("span", { children: p.slicesHidden(m) }), v && /* @__PURE__ */ a("button", {
|
|
4038
4038
|
type: "button",
|
|
4039
4039
|
onClick: v,
|
|
4040
4040
|
children: p.show
|
|
@@ -4084,39 +4084,39 @@ function au(e, t, n) {
|
|
|
4084
4084
|
d.current = t;
|
|
4085
4085
|
const l = O(n);
|
|
4086
4086
|
l.current = n;
|
|
4087
|
-
const c = G((
|
|
4088
|
-
const
|
|
4089
|
-
|
|
4090
|
-
featureId:
|
|
4087
|
+
const c = G((m, v, p) => {
|
|
4088
|
+
const g = d.current.findIndex((h) => h.equals(m));
|
|
4089
|
+
g !== -1 && i({
|
|
4090
|
+
featureId: m,
|
|
4091
4091
|
moduleId: e,
|
|
4092
|
-
sourceIndex:
|
|
4092
|
+
sourceIndex: g,
|
|
4093
4093
|
ghostLabel: v,
|
|
4094
4094
|
ghostWidth: p.width,
|
|
4095
4095
|
ghost: p.ghost,
|
|
4096
4096
|
currentX: p.clientX,
|
|
4097
4097
|
currentY: p.clientY,
|
|
4098
|
-
dropIndex:
|
|
4098
|
+
dropIndex: g,
|
|
4099
4099
|
headerY: p.headerY,
|
|
4100
4100
|
zoom: p.zoom
|
|
4101
4101
|
});
|
|
4102
4102
|
}, [e]), u = o !== void 0;
|
|
4103
4103
|
return oe(() => {
|
|
4104
4104
|
if (!u) return;
|
|
4105
|
-
const
|
|
4106
|
-
i((
|
|
4107
|
-
...
|
|
4105
|
+
const m = (p) => {
|
|
4106
|
+
i((g) => g && {
|
|
4107
|
+
...g,
|
|
4108
4108
|
currentX: p.clientX,
|
|
4109
4109
|
currentY: p.clientY,
|
|
4110
|
-
dropIndex: iu(
|
|
4110
|
+
dropIndex: iu(g.moduleId, p.clientX)
|
|
4111
4111
|
});
|
|
4112
4112
|
}, v = () => {
|
|
4113
4113
|
const p = s.current;
|
|
4114
4114
|
if (i(void 0), !p) return;
|
|
4115
|
-
const
|
|
4116
|
-
|
|
4115
|
+
const g = ea(d.current, p.sourceIndex, p.dropIndex);
|
|
4116
|
+
g && l.current?.(p.moduleId, g);
|
|
4117
4117
|
};
|
|
4118
|
-
return window.addEventListener("pointermove",
|
|
4119
|
-
window.removeEventListener("pointermove",
|
|
4118
|
+
return window.addEventListener("pointermove", m), window.addEventListener("pointerup", v), () => {
|
|
4119
|
+
window.removeEventListener("pointermove", m), window.removeEventListener("pointerup", v);
|
|
4120
4120
|
};
|
|
4121
4121
|
}, [u]), {
|
|
4122
4122
|
featureDrag: o,
|
|
@@ -4145,10 +4145,10 @@ function du() {
|
|
|
4145
4145
|
register: G((o, i) => {
|
|
4146
4146
|
const s = `${i}:${o}`, d = n.current.get(s);
|
|
4147
4147
|
if (d) return d;
|
|
4148
|
-
const l = (
|
|
4149
|
-
const v = (r.current.get(s) ?? []).filter((p) => p !==
|
|
4150
|
-
v.length ? r.current.set(s, v) : r.current.delete(s), t((p) => lu(p, o, i,
|
|
4151
|
-
}, c = (
|
|
4148
|
+
const l = (m) => {
|
|
4149
|
+
const v = (r.current.get(s) ?? []).filter((p) => p !== m);
|
|
4150
|
+
v.length ? r.current.set(s, v) : r.current.delete(s), t((p) => lu(p, o, i, m, r.current.get(s)?.[0]));
|
|
4151
|
+
}, c = (m) => (r.current.set(s, [...r.current.get(s) ?? [], m]), t((v) => su(v, o, i, m)), () => l(m)), u = (m) => m ? c(m) : void 0;
|
|
4152
4152
|
return n.current.set(s, u), u;
|
|
4153
4153
|
}, [])
|
|
4154
4154
|
};
|
|
@@ -4242,19 +4242,19 @@ function ur(e, t) {
|
|
|
4242
4242
|
const n = e.filter((i, s) => e.findIndex((d) => d.id.equals(i.id)) === s), r = /* @__PURE__ */ new Set(), o = [...t.flatMap((i) => r.has(i.toString()) ? [] : (r.add(i.toString()), n.filter((s) => s.id.equals(i)))), ...n.filter((i) => !t.some((s) => s.equals(i.id)))];
|
|
4243
4243
|
return o.length === e.length && o.every((i, s) => i === e[s]) ? e : o;
|
|
4244
4244
|
}
|
|
4245
|
-
function mu({ ref: e, initialFeatures: t, moduleId: n, widthOf: r, isCollapsed: o, forceCollapsed: i = !1, onCollapseChanged: s, occupiesColumn: d, renderHeader: l, renderColumn: c, renderFeatureBoundary: u, onAddFeature:
|
|
4245
|
+
function mu({ ref: e, initialFeatures: t, moduleId: n, widthOf: r, isCollapsed: o, forceCollapsed: i = !1, onCollapseChanged: s, occupiesColumn: d, renderHeader: l, renderColumn: c, renderFeatureBoundary: u, onAddFeature: m, onRenameFeature: v, onFeaturesReordered: p, onFeaturesChanged: g }) {
|
|
4246
4246
|
const { readOnly: h, messages: b } = ne(), { targets: f, register: y } = du(), w = O(cu(t)), [C, k] = D(w.current), R = O(!1), M = O(/* @__PURE__ */ new Set()), x = G((_) => {
|
|
4247
4247
|
const X = _(w.current);
|
|
4248
|
-
X !== w.current && (w.current = X, k(X),
|
|
4249
|
-
}, [
|
|
4248
|
+
X !== w.current && (w.current = X, k(X), g?.(X.features));
|
|
4249
|
+
}, [g]);
|
|
4250
4250
|
oe(() => {
|
|
4251
4251
|
t !== w.current.snapshot && t !== w.current.features && x((_) => cr(_, t));
|
|
4252
4252
|
}, [t, x]);
|
|
4253
4253
|
const A = G(async (_, X) => {
|
|
4254
|
-
if (!(h || !
|
|
4254
|
+
if (!(h || !m || R.current)) {
|
|
4255
4255
|
R.current = !0;
|
|
4256
4256
|
try {
|
|
4257
|
-
const de = await
|
|
4257
|
+
const de = await m(_, X);
|
|
4258
4258
|
de && x((Q) => ({
|
|
4259
4259
|
...Q,
|
|
4260
4260
|
features: pa(Q.features, de, X),
|
|
@@ -4269,7 +4269,7 @@ function mu({ ref: e, initialFeatures: t, moduleId: n, widthOf: r, isCollapsed:
|
|
|
4269
4269
|
}
|
|
4270
4270
|
}, [
|
|
4271
4271
|
h,
|
|
4272
|
-
|
|
4272
|
+
m,
|
|
4273
4273
|
x
|
|
4274
4274
|
]);
|
|
4275
4275
|
Vt(e, () => ({
|
|
@@ -4334,7 +4334,7 @@ function mu({ ref: e, initialFeatures: t, moduleId: n, widthOf: r, isCollapsed:
|
|
|
4334
4334
|
collapsed: L(_),
|
|
4335
4335
|
dragging: I?.featureId.equals(_.id) ?? !1,
|
|
4336
4336
|
onDragStart: j,
|
|
4337
|
-
addSubFeature: !h &&
|
|
4337
|
+
addSubFeature: !h && m ? (X) => {
|
|
4338
4338
|
A(X, _.id);
|
|
4339
4339
|
} : void 0,
|
|
4340
4340
|
onRenamed: !h && v ? (X) => Z(_.id, X) : void 0,
|
|
@@ -4638,7 +4638,7 @@ var gu = ({ type: e }) => /* @__PURE__ */ a("svg", {
|
|
|
4638
4638
|
}, bu = ({ featureId: e, onAddSubFeature: t, onAddSlice: n, actions: r = [] }) => {
|
|
4639
4639
|
const o = Ce(), i = O(null), [s, d] = D("main"), [l, c] = D(), u = r.filter((b) => !b.when || b.when(e));
|
|
4640
4640
|
if (!t && !n && u.length === 0) return null;
|
|
4641
|
-
const
|
|
4641
|
+
const m = [
|
|
4642
4642
|
...n ? [{
|
|
4643
4643
|
id: "slice",
|
|
4644
4644
|
label: o.sliceTypes.add + " ›",
|
|
@@ -4675,7 +4675,7 @@ var gu = ({ type: e }) => /* @__PURE__ */ a("svg", {
|
|
|
4675
4675
|
label: o.features.back,
|
|
4676
4676
|
keepOpen: !0,
|
|
4677
4677
|
onClick: () => d("main")
|
|
4678
|
-
},
|
|
4678
|
+
}, g = n ? [p, ...Sa(o, n)] : [p], h = [p, ...(u.find((b) => b.id === l)?.items ?? []).filter((b) => !b.when || b.when(e)).map((b) => ({
|
|
4679
4679
|
id: b.id,
|
|
4680
4680
|
label: b.label,
|
|
4681
4681
|
icon: b.icon,
|
|
@@ -4692,7 +4692,7 @@ var gu = ({ type: e }) => /* @__PURE__ */ a("svg", {
|
|
|
4692
4692
|
"aria-label": o.features.add,
|
|
4693
4693
|
children: "+"
|
|
4694
4694
|
}),
|
|
4695
|
-
items: s === "main" ?
|
|
4695
|
+
items: s === "main" ? m : s === "slice" ? g : h,
|
|
4696
4696
|
align: "right",
|
|
4697
4697
|
onClose: () => {
|
|
4698
4698
|
d("main"), c(void 0);
|
|
@@ -4725,8 +4725,8 @@ var gu = ({ type: e }) => /* @__PURE__ */ a("svg", {
|
|
|
4725
4725
|
items: i,
|
|
4726
4726
|
align: "right"
|
|
4727
4727
|
});
|
|
4728
|
-
}, qo = "color-mix(in srgb, var(--board-feature, #a08ce6) 10%, transparent)", wu = "1px solid color-mix(in srgb, var(--board-feature, #a08ce6) 22%, transparent)", Su = ({ featureId: e, name: t, description: n, documentation: r, height: o, collapsed: i, onToggleCollapse: s, onRenamed: d, status: l, selectableStatuses: c, unselectableStatusReason: u, detailsVisible:
|
|
4729
|
-
const y = ne(), w = lt(e), C = kr(e, "feature", t), { showStatuses: k = !0 } = Pe(), R = ta(!y.readOnly && !i ?
|
|
4728
|
+
}, qo = "color-mix(in srgb, var(--board-feature, #a08ce6) 10%, transparent)", wu = "1px solid color-mix(in srgb, var(--board-feature, #a08ce6) 22%, transparent)", Su = ({ featureId: e, name: t, description: n, documentation: r, height: o, collapsed: i, onToggleCollapse: s, onRenamed: d, status: l, selectableStatuses: c, unselectableStatusReason: u, detailsVisible: m = !1, onToggleDetails: v, dragging: p = !1, onDragStart: g, error: h, onAddSubFeature: b, onAddSlice: f }) => {
|
|
4729
|
+
const y = ne(), w = lt(e), C = kr(e, "feature", t), { showStatuses: k = !0 } = Pe(), R = ta(!y.readOnly && !i ? g : void 0), M = y.readOnly ? void 0 : d, x = (y.actions.featureHeader ?? []).filter((L) => !L.when || L.when(e)), A = (y.actions.featureHeaderLeading ?? []).filter((L) => !L.when || L.when(e)), V = y.actions.featureHeaderMenu ?? [], Z = pv(e, b, f, y.editing);
|
|
4730
4730
|
return /* @__PURE__ */ S(re, { children: [/* @__PURE__ */ a(Zi, {
|
|
4731
4731
|
marker: w || C.marker ? /* @__PURE__ */ S(re, { children: [w && /* @__PURE__ */ a(It, {
|
|
4732
4732
|
change: w,
|
|
@@ -4780,7 +4780,7 @@ var gu = ({ type: e }) => /* @__PURE__ */ a("svg", {
|
|
|
4780
4780
|
optimistic: !1
|
|
4781
4781
|
}),
|
|
4782
4782
|
!y.readOnly && v && /* @__PURE__ */ a(Qi, {
|
|
4783
|
-
visible:
|
|
4783
|
+
visible: m,
|
|
4784
4784
|
onToggle: v
|
|
4785
4785
|
}),
|
|
4786
4786
|
!y.readOnly && x.map((L) => /* @__PURE__ */ a("button", {
|
|
@@ -4969,9 +4969,9 @@ var xu = ({ state: e, specification: t }) => {
|
|
|
4969
4969
|
"aria-expanded": r,
|
|
4970
4970
|
"aria-controls": d,
|
|
4971
4971
|
"aria-label": r ? n.collapse : `${n.expand}: ${e}`,
|
|
4972
|
-
onClick: () => o((
|
|
4973
|
-
onKeyDown: (
|
|
4974
|
-
|
|
4972
|
+
onClick: () => o((m) => !m),
|
|
4973
|
+
onKeyDown: (m) => {
|
|
4974
|
+
m.key === "Escape" && r && o(!1);
|
|
4975
4975
|
},
|
|
4976
4976
|
children: [/* @__PURE__ */ a("i", {
|
|
4977
4977
|
className: `pi ${r ? "pi-chevron-down" : "pi-chevron-right"}`,
|
|
@@ -5098,8 +5098,8 @@ var xu = ({ state: e, specification: t }) => {
|
|
|
5098
5098
|
[Ne.CouldNotRun]: "could-not-run",
|
|
5099
5099
|
[Ne.Inconclusive]: "inconclusive",
|
|
5100
5100
|
[Ne.Unavailable]: "could-not-run"
|
|
5101
|
-
}, Pu = ({ name: e, description: t, documentation: n, collapsed: r, onToggleCollapse: o, runState: i, runMessage: s, builderResult: d, builderMessage: l, nameNotice: c, annotations: u, onRenamed:
|
|
5102
|
-
const { messages:
|
|
5101
|
+
}, Pu = ({ name: e, description: t, documentation: n, collapsed: r, onToggleCollapse: o, runState: i, runMessage: s, builderResult: d, builderMessage: l, nameNotice: c, annotations: u, onRenamed: m, onDeleted: v, runControl: p }) => {
|
|
5102
|
+
const { messages: g, readOnly: h } = ne(), b = Fe(), f = b ? void 0 : m, y = b ? void 0 : v;
|
|
5103
5103
|
return /* @__PURE__ */ S("div", {
|
|
5104
5104
|
className: "event-modeling-grid-specification-outer-row",
|
|
5105
5105
|
children: [/* @__PURE__ */ a("div", {
|
|
@@ -5133,7 +5133,7 @@ var xu = ({ state: e, specification: t }) => {
|
|
|
5133
5133
|
children: /* @__PURE__ */ a(Ln, {
|
|
5134
5134
|
value: b || !f ? Ma(e) : e,
|
|
5135
5135
|
onChange: (w) => f?.(w),
|
|
5136
|
-
placeholder:
|
|
5136
|
+
placeholder: g.specifications.namePlaceholder,
|
|
5137
5137
|
style: {
|
|
5138
5138
|
fontSize: 11,
|
|
5139
5139
|
fontWeight: 500,
|
|
@@ -5158,8 +5158,8 @@ var xu = ({ state: e, specification: t }) => {
|
|
|
5158
5158
|
type: "button",
|
|
5159
5159
|
className: "spec-delete-button",
|
|
5160
5160
|
onClick: y,
|
|
5161
|
-
"aria-label":
|
|
5162
|
-
title:
|
|
5161
|
+
"aria-label": g.specifications.delete,
|
|
5162
|
+
title: g.specifications.delete,
|
|
5163
5163
|
children: /* @__PURE__ */ a("i", { className: "pi pi-trash" })
|
|
5164
5164
|
})
|
|
5165
5165
|
]
|
|
@@ -5268,7 +5268,7 @@ var xu = ({ state: e, specification: t }) => {
|
|
|
5268
5268
|
}), s = new Set(e.map((l) => l.id.toString())), d = r.filter((l) => !s.has(l.id.toString()));
|
|
5269
5269
|
return d.length || i.some((l, c) => l !== e[c]) ? [...i, ...d] : e;
|
|
5270
5270
|
}, ju = ({ sliceId: e, width: t, collapsed: n, specifications: r, runInfoFor: o, nameNoticeFor: i, annotations: s, renderRows: d }) => {
|
|
5271
|
-
const { editing: l, actions: c, messages: u } = ne(),
|
|
5271
|
+
const { editing: l, actions: c, messages: u } = ne(), m = Fe(), [v, p] = D(r), [g, h] = D(!1), [b, f] = D(!1), [y, w] = D(!1), C = ve(Fu, []), k = ve($u, []), R = O(0), M = O(!1), x = O(!1), A = O(!1), V = O(/* @__PURE__ */ new Set()), Z = Wu(m, l), L = Z ? r : v;
|
|
5272
5272
|
oe(() => {
|
|
5273
5273
|
p((I) => zu(I, r, Z, Date.now() <= R.current, V.current));
|
|
5274
5274
|
}, [r, Z]);
|
|
@@ -5299,12 +5299,12 @@ var xu = ({ state: e, specification: t }) => {
|
|
|
5299
5299
|
name: j
|
|
5300
5300
|
} : ie)), l.onSpecificationRenamed?.(e, I, j);
|
|
5301
5301
|
}, q = (I, j) => {
|
|
5302
|
-
|
|
5302
|
+
m || !l.onSpecificationOpenStateSet || (p((U) => U.map((ie) => ie.id.equals(I) ? {
|
|
5303
5303
|
...ie,
|
|
5304
5304
|
collapsed: !j
|
|
5305
5305
|
} : ie)), l.onSpecificationOpenStateSet?.(e, I, j));
|
|
5306
5306
|
}, P = async (I) => {
|
|
5307
|
-
if (!(
|
|
5307
|
+
if (!(m || x.current || !c.specificationsGenerate)) {
|
|
5308
5308
|
x.current = !0, h(!0);
|
|
5309
5309
|
try {
|
|
5310
5310
|
await c.specificationsGenerate.onActivate(e, I) && (R.current = Date.now() + qu);
|
|
@@ -5313,7 +5313,7 @@ var xu = ({ state: e, specification: t }) => {
|
|
|
5313
5313
|
}
|
|
5314
5314
|
}
|
|
5315
5315
|
}, $ = async (I) => {
|
|
5316
|
-
if (!(
|
|
5316
|
+
if (!(m || A.current || !c.specificationsRunAll || c.specificationsRunAll.disabled)) {
|
|
5317
5317
|
A.current = !0, f(!0);
|
|
5318
5318
|
try {
|
|
5319
5319
|
await c.specificationsRunAll.onActivate(e, I);
|
|
@@ -5321,7 +5321,7 @@ var xu = ({ state: e, specification: t }) => {
|
|
|
5321
5321
|
A.current = !1, f(!1);
|
|
5322
5322
|
}
|
|
5323
5323
|
}
|
|
5324
|
-
}, K = c.specificationsGenerate, T = c.specificationsRunAll, H = !
|
|
5324
|
+
}, K = c.specificationsGenerate, T = c.specificationsRunAll, H = !m && K && (!K.when || K.when(e)), J = L.length > 0 && T && (!T.when || T.when(e));
|
|
5325
5325
|
return n ? /* @__PURE__ */ a(re, { children: L.map((I) => {
|
|
5326
5326
|
const { state: j, message: U } = o(I);
|
|
5327
5327
|
return /* @__PURE__ */ a("div", {
|
|
@@ -5367,7 +5367,7 @@ var xu = ({ state: e, specification: t }) => {
|
|
|
5367
5367
|
onClick: (I) => {
|
|
5368
5368
|
$(I.currentTarget.getBoundingClientRect());
|
|
5369
5369
|
},
|
|
5370
|
-
disabled:
|
|
5370
|
+
disabled: m || b || T.disabled,
|
|
5371
5371
|
"aria-label": T.tooltip,
|
|
5372
5372
|
children: T.icon
|
|
5373
5373
|
})
|
|
@@ -5407,7 +5407,7 @@ var xu = ({ state: e, specification: t }) => {
|
|
|
5407
5407
|
})]
|
|
5408
5408
|
}, `${I.id.toString()}:${mr(I)}`);
|
|
5409
5409
|
}),
|
|
5410
|
-
!
|
|
5410
|
+
!m && (l.onSpecificationAdded || H) && /* @__PURE__ */ S("div", {
|
|
5411
5411
|
className: "event-modeling-grid-specification-add-area",
|
|
5412
5412
|
children: [l.onSpecificationAdded && /* @__PURE__ */ a(ye, {
|
|
5413
5413
|
content: u.specifications.add,
|
|
@@ -5430,10 +5430,10 @@ var xu = ({ state: e, specification: t }) => {
|
|
|
5430
5430
|
onClick: (I) => {
|
|
5431
5431
|
P(I.currentTarget.getBoundingClientRect());
|
|
5432
5432
|
},
|
|
5433
|
-
disabled:
|
|
5433
|
+
disabled: g,
|
|
5434
5434
|
className: "event-modeling-grid-add-button--small",
|
|
5435
5435
|
"aria-label": K.tooltip,
|
|
5436
|
-
children:
|
|
5436
|
+
children: g ? /* @__PURE__ */ a("i", { className: "pi pi-spin pi-spinner" }) : K.icon
|
|
5437
5437
|
})
|
|
5438
5438
|
})]
|
|
5439
5439
|
})
|
|
@@ -5496,12 +5496,12 @@ function Zu(e, t) {
|
|
|
5496
5496
|
return Et(() => {
|
|
5497
5497
|
const d = n.current, l = Qu();
|
|
5498
5498
|
if (!d || !l) return;
|
|
5499
|
-
const c = (
|
|
5499
|
+
const c = (m, v) => (l.font = `${t.fontWeight} ${v}px ${t.fontFamily}`, l.measureText(m).width), u = Yu(e, {
|
|
5500
5500
|
maxFontSizePx: r,
|
|
5501
5501
|
minFontSizePx: o,
|
|
5502
5502
|
availableWidthPx: d.clientWidth
|
|
5503
5503
|
}, c);
|
|
5504
|
-
s((
|
|
5504
|
+
s((m) => Xu(m, u) ? m : u);
|
|
5505
5505
|
}, [
|
|
5506
5506
|
e,
|
|
5507
5507
|
r,
|
|
@@ -5510,26 +5510,26 @@ function Zu(e, t) {
|
|
|
5510
5510
|
t.fontFamily
|
|
5511
5511
|
]), [n, i];
|
|
5512
5512
|
}
|
|
5513
|
-
var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backgroundColor: t, textColor: n, isSelected: r = !1, disabled: o = !1, onSelected: i, onStartEdit: s, extraContent: d, children: l, ariaLabel: c, ariaPressed: u, "data-event-id":
|
|
5514
|
-
const
|
|
5513
|
+
var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backgroundColor: t, textColor: n, isSelected: r = !1, disabled: o = !1, onSelected: i, onStartEdit: s, extraContent: d, children: l, ariaLabel: c, ariaPressed: u, "data-event-id": m, "data-card-id": v, "data-slice-id": p }) => {
|
|
5514
|
+
const g = O(null), h = !!(i ?? s) || o, b = Nt(Pe().textSize), [f, y] = Zu(e, {
|
|
5515
5515
|
fontFamily: Ju,
|
|
5516
5516
|
fontWeight: "bold",
|
|
5517
5517
|
maxFontSizePx: rr(13, b),
|
|
5518
5518
|
minFontSizePx: rr(10, b)
|
|
5519
5519
|
});
|
|
5520
5520
|
oe(() => () => {
|
|
5521
|
-
|
|
5521
|
+
g.current && clearTimeout(g.current);
|
|
5522
5522
|
}, []);
|
|
5523
5523
|
const w = G((M) => {
|
|
5524
|
-
if (M.stopPropagation(),
|
|
5525
|
-
clearTimeout(
|
|
5524
|
+
if (M.stopPropagation(), g.current) {
|
|
5525
|
+
clearTimeout(g.current), g.current = null;
|
|
5526
5526
|
return;
|
|
5527
5527
|
}
|
|
5528
|
-
|
|
5529
|
-
|
|
5528
|
+
g.current = setTimeout(() => {
|
|
5529
|
+
g.current = null, i?.();
|
|
5530
5530
|
}, Ku);
|
|
5531
5531
|
}, [i]), C = G((M) => {
|
|
5532
|
-
M.stopPropagation(),
|
|
5532
|
+
M.stopPropagation(), g.current && (clearTimeout(g.current), g.current = null), s?.();
|
|
5533
5533
|
}, [s]), k = r ? {
|
|
5534
5534
|
outline: `2px solid ${t}`,
|
|
5535
5535
|
outlineOffset: 2
|
|
@@ -5557,13 +5557,13 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
5557
5557
|
onDoubleClick: C,
|
|
5558
5558
|
"aria-label": c,
|
|
5559
5559
|
"aria-pressed": u,
|
|
5560
|
-
"data-event-id":
|
|
5560
|
+
"data-event-id": m,
|
|
5561
5561
|
"data-card-id": v,
|
|
5562
5562
|
"data-slice-id": p,
|
|
5563
5563
|
children: R
|
|
5564
5564
|
}) : /* @__PURE__ */ a("div", {
|
|
5565
5565
|
className: "event-modeling-card",
|
|
5566
|
-
"data-event-id":
|
|
5566
|
+
"data-event-id": m,
|
|
5567
5567
|
"data-card-id": v,
|
|
5568
5568
|
"data-slice-id": p,
|
|
5569
5569
|
children: R
|
|
@@ -5656,8 +5656,8 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
5656
5656
|
...s
|
|
5657
5657
|
},
|
|
5658
5658
|
"data-drop-target": l ? "root" : void 0,
|
|
5659
|
-
onClick: (
|
|
5660
|
-
|
|
5659
|
+
onClick: (m) => {
|
|
5660
|
+
m.stopPropagation(), d?.();
|
|
5661
5661
|
},
|
|
5662
5662
|
children: [
|
|
5663
5663
|
o ?? /* @__PURE__ */ a("div", { className: "read-model-card__connector" }),
|
|
@@ -5676,7 +5676,7 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
5676
5676
|
children: /* @__PURE__ */ a(ys, {
|
|
5677
5677
|
allowKeyProperty: t === me.command,
|
|
5678
5678
|
allowRequired: ka.includes(t),
|
|
5679
|
-
isPropertyProtected: (
|
|
5679
|
+
isPropertyProtected: (m) => m.name.toLowerCase() === "id",
|
|
5680
5680
|
...nm(t, n),
|
|
5681
5681
|
layout: "tree",
|
|
5682
5682
|
"aria-label": e
|
|
@@ -5871,7 +5871,7 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
5871
5871
|
const { editing: o, messages: i } = ne(), { sliceId: s, readOnly: d } = bt(), [l, c] = D(), u = d ? void 0 : lm(o, e, s, t);
|
|
5872
5872
|
return {
|
|
5873
5873
|
schema: r,
|
|
5874
|
-
onActivate: u ? (
|
|
5874
|
+
onActivate: u ? (m, v) => c(v) : void 0,
|
|
5875
5875
|
overlay: l && u ? /* @__PURE__ */ a(sm, {
|
|
5876
5876
|
name: n,
|
|
5877
5877
|
kind: e,
|
|
@@ -5943,8 +5943,8 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
5943
5943
|
fontSize: 11,
|
|
5944
5944
|
opacity: 0.8,
|
|
5945
5945
|
marginTop: 4
|
|
5946
|
-
}, Vr = ({ kind: e, artifactId: t, summary: n, description: r, tags: o, marker: i, schema: s, showDetails: d = !1, actions: l = [], onActivate: c, onSelected: u, ...
|
|
5947
|
-
const v = Fe(), p = lt(t),
|
|
5946
|
+
}, Vr = ({ kind: e, artifactId: t, summary: n, description: r, tags: o, marker: i, schema: s, showDetails: d = !1, actions: l = [], onActivate: c, onSelected: u, ...m }) => {
|
|
5947
|
+
const v = Fe(), p = lt(t), g = Ce(), h = vm(e, t, m.name, s), b = c ?? (v ? void 0 : h.onActivate), f = O(null), y = () => f.current?.getBoundingClientRect() ?? new DOMRect(), w = v ? [] : l.filter((R) => !R.when || !!t && R.when(t)), C = (R) => w.filter((M) => (M.corner ?? hm.end) === R), k = /* @__PURE__ */ S("div", {
|
|
5948
5948
|
ref: f,
|
|
5949
5949
|
className: p ? "event-model-change-frame event-model-change-name" : void 0,
|
|
5950
5950
|
"data-board-change": p,
|
|
@@ -5954,8 +5954,8 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
5954
5954
|
extraContent: /* @__PURE__ */ S(re, { children: [
|
|
5955
5955
|
/* @__PURE__ */ a(It, {
|
|
5956
5956
|
change: p,
|
|
5957
|
-
kind: Im(e,
|
|
5958
|
-
name:
|
|
5957
|
+
kind: Im(e, g),
|
|
5958
|
+
name: m.name
|
|
5959
5959
|
}),
|
|
5960
5960
|
i,
|
|
5961
5961
|
/* @__PURE__ */ a(km, { tags: o }),
|
|
@@ -5969,7 +5969,7 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
5969
5969
|
children: n
|
|
5970
5970
|
}),
|
|
5971
5971
|
d && /* @__PURE__ */ a(qt, {
|
|
5972
|
-
title:
|
|
5972
|
+
title: m.name,
|
|
5973
5973
|
schema: h.schema,
|
|
5974
5974
|
showTitle: !1,
|
|
5975
5975
|
compact: !0
|
|
@@ -5982,8 +5982,8 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
5982
5982
|
}
|
|
5983
5983
|
u?.();
|
|
5984
5984
|
},
|
|
5985
|
-
...
|
|
5986
|
-
ariaLabel: p ? `${
|
|
5985
|
+
...m,
|
|
5986
|
+
ariaLabel: p ? `${m.ariaLabel ?? m.name} · ${An(g, p)}` : m.ariaLabel
|
|
5987
5987
|
})]
|
|
5988
5988
|
});
|
|
5989
5989
|
return e === me.event && w.length === 0 ? k : /* @__PURE__ */ S("div", {
|
|
@@ -6034,8 +6034,8 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6034
6034
|
}
|
|
6035
6035
|
})
|
|
6036
6036
|
}), Rm = 5, Dn = ({ options: e, nameOf: t, color: n, searchPlaceholder: r, emptyLabel: o, onSelect: i, footer: s, trigger: d }) => {
|
|
6037
|
-
const [l, c] = D(!1), [u,
|
|
6038
|
-
c(!1),
|
|
6037
|
+
const [l, c] = D(!1), [u, m] = D(""), v = O(null), p = O(null), g = e.length > Rm, h = () => {
|
|
6038
|
+
c(!1), m("");
|
|
6039
6039
|
}, b = ve(() => [v, p], []);
|
|
6040
6040
|
Ft(b, h, l);
|
|
6041
6041
|
const f = u ? e.filter((w) => t(w).toLowerCase().includes(u.toLowerCase())) : e, y = (w) => {
|
|
@@ -6057,11 +6057,11 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6057
6057
|
children: /* @__PURE__ */ S("div", {
|
|
6058
6058
|
ref: p,
|
|
6059
6059
|
className: "event-modeling-grid-event-picker-dropdown",
|
|
6060
|
-
children: [
|
|
6060
|
+
children: [g && /* @__PURE__ */ a("input", {
|
|
6061
6061
|
className: "event-modeling-grid-event-picker-search",
|
|
6062
6062
|
placeholder: r,
|
|
6063
6063
|
value: u,
|
|
6064
|
-
onChange: (w) =>
|
|
6064
|
+
onChange: (w) => m(w.target.value),
|
|
6065
6065
|
autoFocus: !0,
|
|
6066
6066
|
onClick: (w) => w.stopPropagation()
|
|
6067
6067
|
}), /* @__PURE__ */ S("ul", {
|
|
@@ -6126,37 +6126,37 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6126
6126
|
onSelect: n,
|
|
6127
6127
|
footer: (c) => /* @__PURE__ */ S(re, { children: [
|
|
6128
6128
|
o.length > 0 && /* @__PURE__ */ a("li", { className: "event-modeling-grid-event-picker-separator" }),
|
|
6129
|
-
o.map((u,
|
|
6129
|
+
o.map((u, m) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a("button", {
|
|
6130
6130
|
className: "event-modeling-grid-event-picker-item",
|
|
6131
6131
|
onClick: () => {
|
|
6132
6132
|
u.onChosen(), c();
|
|
6133
6133
|
},
|
|
6134
6134
|
children: u.label
|
|
6135
|
-
}) },
|
|
6135
|
+
}) }, m)),
|
|
6136
6136
|
l.map((u) => /* @__PURE__ */ S(pi.Fragment, { children: [
|
|
6137
6137
|
/* @__PURE__ */ a("li", { className: "event-modeling-grid-event-picker-separator" }),
|
|
6138
6138
|
/* @__PURE__ */ a("li", {
|
|
6139
6139
|
className: "event-modeling-grid-event-picker-empty",
|
|
6140
6140
|
children: u.heading
|
|
6141
6141
|
}),
|
|
6142
|
-
u.options.map((
|
|
6142
|
+
u.options.map((m, v) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a("button", {
|
|
6143
6143
|
className: "event-modeling-grid-event-picker-item",
|
|
6144
6144
|
style: Am,
|
|
6145
6145
|
onClick: () => {
|
|
6146
|
-
|
|
6146
|
+
m.onChosen(), c();
|
|
6147
6147
|
},
|
|
6148
|
-
children:
|
|
6148
|
+
children: m.label
|
|
6149
6149
|
}) }, v))
|
|
6150
6150
|
] }, u.heading)),
|
|
6151
6151
|
r.length > 0 && /* @__PURE__ */ a("li", { className: "event-modeling-grid-event-picker-separator" }),
|
|
6152
|
-
r.map((u,
|
|
6152
|
+
r.map((u, m) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a("button", {
|
|
6153
6153
|
className: "event-modeling-grid-event-picker-item",
|
|
6154
6154
|
style: Om,
|
|
6155
6155
|
onClick: () => {
|
|
6156
6156
|
u.onChosen(), c();
|
|
6157
6157
|
},
|
|
6158
6158
|
children: u.label
|
|
6159
|
-
}) },
|
|
6159
|
+
}) }, m))
|
|
6160
6160
|
] }),
|
|
6161
6161
|
trigger: ({ toggle: c }) => /* @__PURE__ */ a(ye, {
|
|
6162
6162
|
content: d.addItem,
|
|
@@ -6315,17 +6315,17 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6315
6315
|
const r = e === B.stateChange ? Bn.events : e === B.stateView ? Bn.readModel : void 0;
|
|
6316
6316
|
return r === void 0 || r === Bn.readModel && (t.givenReadModel || t.givenContexts?.length) ? [] : n.filter((o) => o.kind === r && !t.givenContexts?.some((i) => i.givenContextId.equals(o.givenContextId)));
|
|
6317
6317
|
}, qm = ({ sliceId: e, sliceType: t, specification: n, contexts: r }) => {
|
|
6318
|
-
const { editing: o, messages: i, navigation: s } = ne(), d = Fe(), [l, c] = D(!1), u = O(!1), [
|
|
6318
|
+
const { editing: o, messages: i, navigation: s } = ne(), d = Fe(), [l, c] = D(!1), u = O(!1), [m, v] = D({
|
|
6319
6319
|
added: [],
|
|
6320
6320
|
removed: /* @__PURE__ */ new Set()
|
|
6321
|
-
}), p = n.givenContexts ?? [],
|
|
6321
|
+
}), p = n.givenContexts ?? [], g = _m(m, p);
|
|
6322
6322
|
oe(() => {
|
|
6323
|
-
|
|
6324
|
-
}, [
|
|
6325
|
-
const h = Dm(p,
|
|
6323
|
+
g !== m && v(g);
|
|
6324
|
+
}, [m, g]);
|
|
6325
|
+
const h = Dm(p, g), b = new Set(g.added.map((w) => w.givenContextId.toString())), f = Bm(t, {
|
|
6326
6326
|
...n,
|
|
6327
6327
|
givenContexts: h
|
|
6328
|
-
}, r ?? []).filter((w) => !
|
|
6328
|
+
}, r ?? []).filter((w) => !g.removed.has(w.givenContextId.toString()));
|
|
6329
6329
|
return {
|
|
6330
6330
|
used: h,
|
|
6331
6331
|
offered: f,
|
|
@@ -6356,8 +6356,8 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6356
6356
|
remove: "Remove context",
|
|
6357
6357
|
saving: "Saving…"
|
|
6358
6358
|
}, Wm = ({ sliceType: e, specification: t, contexts: n, state: r, labels: o = pn }) => {
|
|
6359
|
-
const { used: i, offered: s, busy: d, execute: l, editing: c, messages: u, readOnly:
|
|
6360
|
-
return
|
|
6359
|
+
const { used: i, offered: s, busy: d, execute: l, editing: c, messages: u, readOnly: m } = r;
|
|
6360
|
+
return m || n === void 0 || s.length === 0 && !d || !c.onGivenContextUsed || e !== B.stateChange && e !== B.stateView ? null : /* @__PURE__ */ a(Dn, {
|
|
6361
6361
|
options: s,
|
|
6362
6362
|
nameOf: (v) => v.name ?? "",
|
|
6363
6363
|
color: Le.background,
|
|
@@ -6418,12 +6418,12 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6418
6418
|
onValuesSet: () => {
|
|
6419
6419
|
}
|
|
6420
6420
|
}), Hm = ({ sliceId: e, sliceType: t, specification: n, events: r, readModel: o, additionalReadModels: i = [], renamedReadModelName: s, contexts: d, contextLabels: l }) => {
|
|
6421
|
-
const { editing: c, messages: u } = ne(),
|
|
6421
|
+
const { editing: c, messages: u } = ne(), m = Fe(), { onGivenEventAdded: v, onGivenEventValuesSet: p, onGivenReadModelSet: g, onGivenReadModelValuesSet: h, onGivenEventRemoved: b, onGivenReadModelRemoved: f, onSpecificationItemOpened: y, onGivenReadModelAdded: w, onGivenReadModelItemValuesSet: C, onGivenReadModelItemRemoved: k } = c, R = Gr(m, y), { isQueryMode: M } = zr(n), [x, A] = D(n.givenReadModels ?? []), [V, Z] = D(n.given), [L, te] = D(n.givenReadModel), N = _e($n), [E, q] = D(() => ({
|
|
6422
6422
|
...Na(n.given),
|
|
6423
6423
|
...n.givenReadModel ? { [n.givenReadModel.id.toString()]: n.givenReadModel.values ?? {} } : {},
|
|
6424
6424
|
...Object.fromEntries((n.givenReadModels ?? []).map((F) => [F.id.toString(), F.values ?? {}])),
|
|
6425
6425
|
...N.recall(n.id.toString())
|
|
6426
|
-
})), P =
|
|
6426
|
+
})), P = m || !(v || p || g || h || b || f || R || w || C || k), $ = P ? n.givenReadModels ?? [] : x, K = P ? n.given : V, T = P ? n.givenReadModel : L, H = qm({
|
|
6427
6427
|
sliceId: e,
|
|
6428
6428
|
sliceType: t,
|
|
6429
6429
|
specification: {
|
|
@@ -6460,7 +6460,7 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6460
6460
|
readModelItemId: F.id,
|
|
6461
6461
|
name: F.name,
|
|
6462
6462
|
values: ge
|
|
6463
|
-
}),
|
|
6463
|
+
}), g?.(e, n.id, F.id, F.name), h?.(e, n.id, ge);
|
|
6464
6464
|
}, Q = (F, ge) => _(F.id, tt.readModel, F.name, ge, F.schema, de(F)), W = (F) => {
|
|
6465
6465
|
Z((ge) => ge.filter((Me) => !Me.id.equals(F))), b?.(e, n.id, F);
|
|
6466
6466
|
}, se = () => {
|
|
@@ -6479,7 +6479,7 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6479
6479
|
...qe,
|
|
6480
6480
|
values: ge
|
|
6481
6481
|
} : qe)), C?.(e, n.id, F.id, ge);
|
|
6482
|
-
}, je = n.whenQuery !== void 0, Ae = !
|
|
6482
|
+
}, je = n.whenQuery !== void 0, Ae = !m && !(je && n.whenQuery?.legacy), Ze = Ae && M && J.length > 0 && !!w, Ue = $.map((F) => {
|
|
6483
6483
|
const ge = J.find((qe) => qe.id.equals(F.readModelItemId)), Me = ge?.name ?? F.name;
|
|
6484
6484
|
return /* @__PURE__ */ a(Ve, {
|
|
6485
6485
|
name: Me,
|
|
@@ -6488,17 +6488,17 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6488
6488
|
name: Me,
|
|
6489
6489
|
colors: He,
|
|
6490
6490
|
values: P ? F.values : E[F.id.toString()] ?? F.values,
|
|
6491
|
-
onOpen: R && (
|
|
6491
|
+
onOpen: R && (m || Ae && C) && ge ? (qe) => _(F.id, tt.readModel, Me, qe, ge.schema, we(F), F.values) : void 0
|
|
6492
6492
|
})
|
|
6493
6493
|
}, F.id.toString());
|
|
6494
|
-
}), We = !
|
|
6494
|
+
}), We = !m && t === B.stateChange && !!v, Ke = !m && !M && J.length > 0 && !!g && !!y && !H.busy && !(t === B.stateView && H.used.length > 0) && $m(!0, !!T), le = T && (I?.id.equals(o?.id ?? pe.empty) ? s ?? I.name : I?.name ?? T.name), ue = T?.id ?? T?.readModelItemId, Oe = T && ue && le !== void 0 && /* @__PURE__ */ a(Ve, {
|
|
6495
6495
|
name: le,
|
|
6496
6496
|
onRemoved: f ? se : void 0,
|
|
6497
6497
|
children: /* @__PURE__ */ a(ze, {
|
|
6498
6498
|
name: le,
|
|
6499
6499
|
colors: He,
|
|
6500
6500
|
values: P ? T.values : E[ue.toString()] ?? T.values,
|
|
6501
|
-
onOpen: R && (
|
|
6501
|
+
onOpen: R && (m || g) && I ? (F) => _(ue, tt.readModel, le, F, I.schema, de(I), T.values) : void 0
|
|
6502
6502
|
})
|
|
6503
6503
|
}, ue.toString()), $e = K.map((F) => {
|
|
6504
6504
|
const ge = ie.get(Cn(F))?.name ?? F.name;
|
|
@@ -6509,7 +6509,7 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6509
6509
|
name: ge,
|
|
6510
6510
|
colors: Le,
|
|
6511
6511
|
values: P ? F.values : E[F.id.toString()] ?? F.values,
|
|
6512
|
-
onOpen: R && (
|
|
6512
|
+
onOpen: R && (m || p) ? (Me) => _(F.id, tt.event, ge, Me, ie.get(Cn(F))?.schema, xe(F.id), F.values) : void 0
|
|
6513
6513
|
})
|
|
6514
6514
|
}, F.id.toString());
|
|
6515
6515
|
}), De = {
|
|
@@ -6644,9 +6644,9 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6644
6644
|
...e?.eventSourceId ? { eventSourceId: e.eventSourceId } : {}
|
|
6645
6645
|
};
|
|
6646
6646
|
}, Xm = (e, t) => t || Object.keys(e).length > 0, Qm = ({ sliceId: e, sliceType: t, specification: n, command: r, renamedCommandName: o, events: i = [], inputEvents: s = [], trigger: d, sliceName: l, queries: c = [] }) => {
|
|
6647
|
-
const { editing: u, messages:
|
|
6647
|
+
const { editing: u, messages: m } = ne(), v = Fe(), { onWhenCommandSet: p, onWhenCommandValuesSet: g, onSpecificationItemOpened: h, onWhenEventRedelivered: b, onWhenRedeliveryRemoved: f, onWhenEventValuesSet: y, onWhenEventRemoved: w, onWhenQuerySet: C, onWhenQueryArgumentsSet: k, onWhenQueryRemoved: R } = u, M = Gr(v, h), x = Du();
|
|
6648
6648
|
zr(n);
|
|
6649
|
-
const [A, V] = D(n.whenQuery), [Z, L] = D(n.when), [te, N] = D(n.whenRedelivered), E = _e($n), [q, P] = D(() => E.recall(n.id.toString()).when ?? n.when?.values ?? {}), $ = v || !(p ||
|
|
6649
|
+
const [A, V] = D(n.whenQuery), [Z, L] = D(n.when), [te, N] = D(n.whenRedelivered), E = _e($n), [q, P] = D(() => E.recall(n.id.toString()).when ?? n.when?.values ?? {}), $ = v || !(p || g || M || b || f || y || w || C || k || R), [K, T] = D(() => E.recall(n.id.toString())[Qo]), H = $ ? n.whenEvent : Ym(n.whenEvent, K), J = $ ? n.whenRedelivered : te, I = $ ? n.when : Z ?? n.when, j = (Y) => {
|
|
6650
6650
|
const fe = pe.create();
|
|
6651
6651
|
L({
|
|
6652
6652
|
id: fe,
|
|
@@ -6725,13 +6725,13 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6725
6725
|
P(Ot), L((tn) => tn && {
|
|
6726
6726
|
...tn,
|
|
6727
6727
|
values: Ot
|
|
6728
|
-
}), E.remember(n.id.toString(), Ho, Ot),
|
|
6728
|
+
}), E.remember(n.id.toString(), Ho, Ot), g?.(e, n.id, Ot);
|
|
6729
6729
|
}
|
|
6730
|
-
}), we = t === B.stateChange ? r : void 0, je = t === B.stateView ? i : t === B.translator ? s : [], Ae = !!we && !!I && (I.commandId ? we.id.equals(I.commandId) : !I.name || I.name === we.name), Ze = I && (I.commandId && r?.id.equals(I.commandId) ? o ?? I.name : I.name), Ue = !!M && (v || !!
|
|
6730
|
+
}), we = t === B.stateChange ? r : void 0, je = t === B.stateView ? i : t === B.translator ? s : [], Ae = !!we && !!I && (I.commandId ? we.id.equals(I.commandId) : !I.name || I.name === we.name), Ze = I && (I.commandId && r?.id.equals(I.commandId) ? o ?? I.name : I.name), Ue = !!M && (v || !!g), We = Ae && I ? I.id : we?.id, Ke = Ae ? $ ? I?.values : q : void 0, le = n.caller, ue = $ ? I?.values : q, Oe = t === B.automation || t === B.translator, $e = J && n.given.find((Y) => Y.id.equals(J.givenEventId));
|
|
6731
6731
|
if (Oe && J && $e) {
|
|
6732
|
-
const Y = i.find((Ee) => Ee.id.equals($e.eventId))?.name ?? $e.name, fe = l ?
|
|
6732
|
+
const Y = i.find((Ee) => Ee.id.equals($e.eventId))?.name ?? $e.name, fe = l ? m.specifications.redeliveredTo.replace("{slice}", l) : m.specifications.redelivered;
|
|
6733
6733
|
return /* @__PURE__ */ S(Ct, {
|
|
6734
|
-
headline:
|
|
6734
|
+
headline: m.specifications.when,
|
|
6735
6735
|
children: [/* @__PURE__ */ a(Ve, {
|
|
6736
6736
|
name: Y,
|
|
6737
6737
|
onRemoved: f ? Q : void 0,
|
|
@@ -6749,7 +6749,7 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6749
6749
|
if (U) {
|
|
6750
6750
|
const Y = !v && !U.legacy, fe = c.find((Se) => Se.id.equals(U.queryItemId)), Ee = fe?.name ?? U.name;
|
|
6751
6751
|
return /* @__PURE__ */ a(Ct, {
|
|
6752
|
-
headline:
|
|
6752
|
+
headline: m.specifications.when,
|
|
6753
6753
|
children: /* @__PURE__ */ a(Ve, {
|
|
6754
6754
|
name: Ee,
|
|
6755
6755
|
onRemoved: Y && R ? _ : void 0,
|
|
@@ -6764,9 +6764,9 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6764
6764
|
}
|
|
6765
6765
|
const De = t === B.stateView ? i : [];
|
|
6766
6766
|
if (H && !De.some((Y) => Yn(H, Y))) {
|
|
6767
|
-
const Y = i.find((Se) => Se.id.equals(H.eventId) || Se.name.toLowerCase() === H.name.toLowerCase()), fe = Y?.name ?? H.name, Ee =
|
|
6767
|
+
const Y = i.find((Se) => Se.id.equals(H.eventId) || Se.name.toLowerCase() === H.name.toLowerCase()), fe = Y?.name ?? H.name, Ee = m.specifications.values ?? _t;
|
|
6768
6768
|
return /* @__PURE__ */ a(Ct, {
|
|
6769
|
-
headline:
|
|
6769
|
+
headline: m.specifications.when,
|
|
6770
6770
|
children: /* @__PURE__ */ a(Ve, {
|
|
6771
6771
|
name: fe,
|
|
6772
6772
|
onRemoved: w ? xe : void 0,
|
|
@@ -6781,14 +6781,14 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6781
6781
|
});
|
|
6782
6782
|
}
|
|
6783
6783
|
const F = !!I && Object.keys(I.values ?? {}).length > 0, ge = Oe ? jm(n.given, d, i, s) : [], Me = !v && !F && b && ge.length > 0 ? [{
|
|
6784
|
-
heading:
|
|
6784
|
+
heading: m.specifications.redeliverGivenEvent,
|
|
6785
6785
|
options: ge.map((Y) => ({
|
|
6786
6786
|
label: i.find((fe) => fe.id.equals(Y.eventId))?.name ?? Y.name,
|
|
6787
6787
|
onChosen: () => de(Y.id)
|
|
6788
6788
|
}))
|
|
6789
6789
|
}] : [], qe = !v && t === B.stateView && !H && !I && !J && c.length > 0 && !!C, Rt = !v && t !== B.stateChange && t !== B.stateView && !I && !!r && !!p;
|
|
6790
6790
|
return /* @__PURE__ */ S(Ct, {
|
|
6791
|
-
headline:
|
|
6791
|
+
headline: m.specifications.when,
|
|
6792
6792
|
actions: (Rt || Me.length > 0 || qe) && (qe ? /* @__PURE__ */ a(Wt, {
|
|
6793
6793
|
options: c,
|
|
6794
6794
|
nameOf: (Y) => Y.name,
|
|
@@ -6821,7 +6821,7 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6821
6821
|
colors: t === B.translator ? gr : Le,
|
|
6822
6822
|
caller: le,
|
|
6823
6823
|
values: fe ? H?.values : void 0,
|
|
6824
|
-
message: fe && H?.eventSourceId ? Yo(H.eventSourceId,
|
|
6824
|
+
message: fe && H?.eventSourceId ? Yo(H.eventSourceId, m.specifications.values ?? _t) : void 0,
|
|
6825
6825
|
onOpen: Te && Ee ? (Je) => se(Ee, Je) : void 0
|
|
6826
6826
|
}, Y.id.toString());
|
|
6827
6827
|
return fe ? /* @__PURE__ */ a(Ve, {
|
|
@@ -6919,11 +6919,11 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6919
6919
|
disabled: n
|
|
6920
6920
|
});
|
|
6921
6921
|
}, ng = ({ sliceId: e, sliceType: t, specification: n, events: r, command: o, readModel: i, renamedEventNames: s = {}, extra: d, extraGroups: l, queries: c = [], onItemsChanged: u }) => {
|
|
6922
|
-
const { editing:
|
|
6922
|
+
const { editing: m, messages: v } = ne(), p = Fe(), { onThenEventAdded: g, onThenEventValuesSet: h, onThenErrorAdded: b, onThenRuleErrorAdded: f, onThenErrorRenamed: y, onThenEventRemoved: w, onThenErrorRemoved: C, onThenReadModelValuesSet: k, onSpecificationItemOpened: R, onThenNoEventsExpected: M, onThenNoEventsRemoved: x, onThenEventsInAnyOrderExpected: A, onThenEventsInAnyOrderRemoved: V, onThenResultAdded: Z, onThenResultValuesSet: L, onThenResultRemoved: te, onThenQueryRemoved: N } = m, E = Gr(p, R), { isQueryMode: q, queryItemId: P } = zr(n), [$, K] = D(n.thenReadModels ?? []), [T, H] = D(n.thenEvents), [J, I] = D(n.thenErrors), [j, U] = D(n.thenNoEvents === !0), [ie, _] = D(n.thenEventsInAnyOrder === !0), X = _e($n), de = X.recall(n.id.toString()), [Q, W] = D(() => ({
|
|
6923
6923
|
...Na(n.thenEvents),
|
|
6924
6924
|
...Object.fromEntries((n.thenReadModels ?? []).map((z) => [z.id.toString(), z.values ?? {}])),
|
|
6925
6925
|
...de
|
|
6926
|
-
})), se = n.thenReadModel, xe = !!se && !!i && i.id.equals(se.readModelItemId), [Te, Be] = D(() => de[i?.id.toString() ?? ""] ?? (xe ? se?.values : void 0) ?? {}), we = p || !(
|
|
6926
|
+
})), se = n.thenReadModel, xe = !!se && !!i && i.id.equals(se.readModelItemId), [Te, Be] = D(() => de[i?.id.toString() ?? ""] ?? (xe ? se?.values : void 0) ?? {}), we = p || !(g || h || b || f || y || w || C || k || E || M || x || A || V || Z || L || te || N), je = we ? n.thenReadModels ?? [] : $, Ae = we ? n.thenNoEvents === !0 : j, Ze = we ? n.thenEventsInAnyOrder === !0 : ie, Ue = we ? n.thenEvents : T, We = we ? n.thenErrors : J;
|
|
6927
6927
|
oe(() => {
|
|
6928
6928
|
u?.(Ue.length, We.length);
|
|
6929
6929
|
}, [
|
|
@@ -6986,7 +6986,7 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
6986
6986
|
eventId: z.id,
|
|
6987
6987
|
name: z.name,
|
|
6988
6988
|
values: {}
|
|
6989
|
-
}]),
|
|
6989
|
+
}]), g?.(e, n.id, he, z.id, z.name);
|
|
6990
6990
|
}, Se = () => {
|
|
6991
6991
|
const z = pe.create(), he = v.specifications.error;
|
|
6992
6992
|
I((be) => [...be, {
|
|
@@ -7096,7 +7096,7 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
7096
7096
|
}] : [], ...f ? le.map((z) => ({
|
|
7097
7097
|
label: z.label,
|
|
7098
7098
|
onChosen: () => Je(z.reference)
|
|
7099
|
-
})) : []] : [], ls = ue.events &&
|
|
7099
|
+
})) : []] : [], ls = ue.events && g && !Ae ? r : [], so = l ?? [], ds = so.some((z) => z.options.length > 0);
|
|
7100
7100
|
if (q) return /* @__PURE__ */ S(Ct, {
|
|
7101
7101
|
headline: v.specifications.then,
|
|
7102
7102
|
actions: fe && i && /* @__PURE__ */ a(Wt, {
|
|
@@ -7117,7 +7117,7 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
7117
7117
|
})
|
|
7118
7118
|
]
|
|
7119
7119
|
});
|
|
7120
|
-
const cs = ue.events &&
|
|
7120
|
+
const cs = ue.events && g !== void 0 && !Ae || ao.length > 0 || ds || io.length > 0, us = !p && cs && /* @__PURE__ */ a(Wt, {
|
|
7121
7121
|
options: ls,
|
|
7122
7122
|
nameOf: (z) => z.name,
|
|
7123
7123
|
onChosen: Ee,
|
|
@@ -7200,30 +7200,30 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
7200
7200
|
})
|
|
7201
7201
|
})
|
|
7202
7202
|
});
|
|
7203
|
-
}, ig = (e) => e.slice.preview ? /* @__PURE__ */ a(og, { ...e }) : /* @__PURE__ */ a(La, { ...e }), La = ({ slice: e, collapsed: t, moduleId: n, featureId: r, collection: o, rows: i, heights: s, priorEvents: d, followingEvents: l = [], externalEvents: c, slots: u, controls:
|
|
7204
|
-
const { detailLevel: p, detailsVisibility:
|
|
7203
|
+
}, ig = (e) => e.slice.preview ? /* @__PURE__ */ a(og, { ...e }) : /* @__PURE__ */ a(La, { ...e }), La = ({ slice: e, collapsed: t, moduleId: n, featureId: r, collection: o, rows: i, heights: s, priorEvents: d, followingEvents: l = [], externalEvents: c, slots: u, controls: m, header: v }) => {
|
|
7204
|
+
const { detailLevel: p, detailsVisibility: g } = Pe(), h = Mi(p, ki(g, n.toString(), r.toString(), e.id.toString())), b = /* @__PURE__ */ a(Wv, {
|
|
7205
7205
|
featureId: r,
|
|
7206
7206
|
slice: e,
|
|
7207
7207
|
eventCount: e.events.length,
|
|
7208
7208
|
collapsed: t,
|
|
7209
|
-
isDragging:
|
|
7210
|
-
onSliceDragStart:
|
|
7209
|
+
isDragging: m?.isDragging,
|
|
7210
|
+
onSliceDragStart: m?.onSliceDragStart,
|
|
7211
7211
|
collapsedWidth: ae.collapsedSliceWidth,
|
|
7212
|
-
header: v ?? u?.sliceHeader?.(e,
|
|
7212
|
+
header: v ?? u?.sliceHeader?.(e, m ?? {
|
|
7213
7213
|
collapsed: t,
|
|
7214
7214
|
sliceCollapsed: e.collapsed,
|
|
7215
7215
|
isDragging: !1
|
|
7216
7216
|
}) ?? /* @__PURE__ */ a(Pi, {
|
|
7217
7217
|
editing: {
|
|
7218
|
-
onSliceAdded:
|
|
7219
|
-
onSliceOpenStateSet:
|
|
7220
|
-
onSliceRenamed:
|
|
7218
|
+
onSliceAdded: m?.onAddSlice ? (f, y) => m.onAddSlice?.(y, e.id) : void 0,
|
|
7219
|
+
onSliceOpenStateSet: m?.onToggleCollapse ? () => m.onToggleCollapse?.() : void 0,
|
|
7220
|
+
onSliceRenamed: m?.onRenamed ? (f, y) => m.onRenamed?.(y) : void 0
|
|
7221
7221
|
},
|
|
7222
7222
|
children: /* @__PURE__ */ a(Ua, {
|
|
7223
7223
|
slice: e,
|
|
7224
7224
|
height: ae.headerHeight,
|
|
7225
7225
|
collapsed: t,
|
|
7226
|
-
onToggleCollapse:
|
|
7226
|
+
onToggleCollapse: m?.onToggleCollapse
|
|
7227
7227
|
})
|
|
7228
7228
|
}),
|
|
7229
7229
|
headerHeight: ae.headerHeight,
|
|
@@ -7297,10 +7297,10 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
7297
7297
|
style: { height: sa(o, i, s) },
|
|
7298
7298
|
"aria-hidden": "true"
|
|
7299
7299
|
}),
|
|
7300
|
-
specifications: e.preview ? void 0 : (f, y) => u?.specifications ? u.specifications(e, f, y, t || (
|
|
7300
|
+
specifications: e.preview ? void 0 : (f, y) => u?.specifications ? u.specifications(e, f, y, t || (m?.sliceCollapsed ?? e.collapsed)) : f && /* @__PURE__ */ a(ju, {
|
|
7301
7301
|
sliceId: e.id,
|
|
7302
7302
|
width: y,
|
|
7303
|
-
collapsed: t || (
|
|
7303
|
+
collapsed: t || (m?.sliceCollapsed ?? e.collapsed),
|
|
7304
7304
|
specifications: e.specifications,
|
|
7305
7305
|
annotations: e.annotations,
|
|
7306
7306
|
runInfoFor: (w) => ({
|
|
@@ -7355,9 +7355,9 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
7355
7355
|
children: e.name
|
|
7356
7356
|
})]
|
|
7357
7357
|
})
|
|
7358
|
-
}), ag = ({ feature: e, options: t, moduleId: n, collection: r, rows: o, heights: i, slices: s, externalEvents: d, slots: l, editor: c, onSliceArea: u, sliceAreas:
|
|
7359
|
-
const
|
|
7360
|
-
const V =
|
|
7358
|
+
}), ag = ({ feature: e, options: t, moduleId: n, collection: r, rows: o, heights: i, slices: s, externalEvents: d, slots: l, editor: c, onSliceArea: u, sliceAreas: m, renderHeader: v, onSlicesChanged: p }) => {
|
|
7359
|
+
const g = O(null), { textSize: h } = Pe(), b = G((M) => Tn(M, Nt(h)), [h]), f = (M) => s.slice(0, s.findIndex((x) => x.id.equals(M))).filter((x) => x.sliceType === B.stateChange).flatMap((x) => x.events), y = (M) => s.slice(s.findIndex((x) => x.id.equals(M)) + 1).filter((x) => x.sliceType === B.stateChange).flatMap((x) => x.events), w = G(async (M, x, A) => {
|
|
7360
|
+
const V = m.get(x.toString());
|
|
7361
7361
|
V?.moveIn(M, A);
|
|
7362
7362
|
try {
|
|
7363
7363
|
const Z = await c.onMoveSlice?.(M, e.id, x, A) ?? !1;
|
|
@@ -7368,9 +7368,9 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
7368
7368
|
}, [
|
|
7369
7369
|
c.onMoveSlice,
|
|
7370
7370
|
e.id,
|
|
7371
|
-
|
|
7371
|
+
m
|
|
7372
7372
|
]), C = G((M, x) => {
|
|
7373
|
-
!c.onMoveSlice || x.equals(e.id) || !
|
|
7373
|
+
!c.onMoveSlice || x.equals(e.id) || !g.current?.moveOut(M.id) || w(M, x, Number.MAX_SAFE_INTEGER).then((A) => g.current?.completeMoveOut(M.id, A));
|
|
7374
7374
|
}, [
|
|
7375
7375
|
c.onMoveSlice,
|
|
7376
7376
|
e.id,
|
|
@@ -7399,7 +7399,7 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
7399
7399
|
}),
|
|
7400
7400
|
slices: /* @__PURE__ */ a(oh, {
|
|
7401
7401
|
ref: (M) => {
|
|
7402
|
-
|
|
7402
|
+
g.current = M, u(M);
|
|
7403
7403
|
},
|
|
7404
7404
|
initialSlices: e.slices,
|
|
7405
7405
|
moduleId: n,
|
|
@@ -7432,33 +7432,33 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
7432
7432
|
onSliceDragStart: x.onSliceDragStart,
|
|
7433
7433
|
onAddSlice: c.onAddSlice ? x.addSlice : void 0,
|
|
7434
7434
|
onToggleCollapse: c.onSliceCollapseChanged ? () => {
|
|
7435
|
-
|
|
7435
|
+
g.current?.updateSlices((A) => A.map((V) => V.id.equals(M.id) ? {
|
|
7436
7436
|
...V,
|
|
7437
7437
|
collapsed: !x.sliceCollapsed
|
|
7438
7438
|
} : V)), c.onSliceCollapseChanged?.(e.id, M.id, !x.sliceCollapsed);
|
|
7439
7439
|
} : void 0,
|
|
7440
7440
|
onRenamed: c.onSliceRenamed ? (A) => {
|
|
7441
|
-
|
|
7441
|
+
g.current?.updateSlices((V) => V.map((Z) => Z.id.equals(M.id) ? {
|
|
7442
7442
|
...Z,
|
|
7443
7443
|
name: A
|
|
7444
7444
|
} : Z)), c.onSliceRenamed?.(e.id, M.id, A);
|
|
7445
7445
|
} : void 0,
|
|
7446
7446
|
onMoveToFeature: c.onMoveSlice ? (A) => C(M, A) : void 0,
|
|
7447
7447
|
onDuplicated: c.onSliceDuplicated ? (A) => {
|
|
7448
|
-
c.onSliceDuplicated?.(e.id, M.id, A),
|
|
7448
|
+
c.onSliceDuplicated?.(e.id, M.id, A), g.current?.addProjectedSlice(ih(M, A, e.slices.map((V) => V.name), k(e.slices)), M.id);
|
|
7449
7449
|
} : void 0
|
|
7450
7450
|
}
|
|
7451
7451
|
})
|
|
7452
7452
|
})
|
|
7453
7453
|
});
|
|
7454
7454
|
}, sg = ({ ref: e, moduleId: t, collection: n, features: r, rows: o, heights: i, slots: s, editor: d, onFeaturesChanged: l }) => {
|
|
7455
|
-
const c = O(/* @__PURE__ */ new Map()), u = O(null), { textSize:
|
|
7455
|
+
const c = O(/* @__PURE__ */ new Map()), u = O(null), { textSize: m } = Pe(), v = G((f) => Tn(f, Nt(m)), [m]);
|
|
7456
7456
|
Vt(e, () => ({
|
|
7457
7457
|
addFeature: (f) => u.current?.addFeature(f) ?? Promise.resolve(),
|
|
7458
7458
|
addSubFeature: (f, y) => u.current?.addSubFeature(f, y) ?? Promise.resolve(),
|
|
7459
7459
|
updateFeature: (f, y) => u.current?.updateFeature(f, y)
|
|
7460
7460
|
}), []);
|
|
7461
|
-
const p = Kt(n).map((f) => f.slice),
|
|
7461
|
+
const p = Kt(n).map((f) => f.slice), g = Kt({
|
|
7462
7462
|
...n,
|
|
7463
7463
|
modules: n.modules.filter((f) => !f.id.equals(t))
|
|
7464
7464
|
}).flatMap((f) => f.slice.events), h = (f) => d.onAddSlice ? (y, w) => c.current.get(f.toString())?.addSlice(y, void 0, w) : void 0, b = (f, y) => s?.featureHeader?.(f, y) ?? /* @__PURE__ */ a(Su, {
|
|
@@ -7502,7 +7502,7 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
7502
7502
|
rows: o,
|
|
7503
7503
|
heights: i,
|
|
7504
7504
|
slices: p,
|
|
7505
|
-
externalEvents:
|
|
7505
|
+
externalEvents: g,
|
|
7506
7506
|
slots: s,
|
|
7507
7507
|
editor: d,
|
|
7508
7508
|
sliceAreas: c.current,
|
|
@@ -7519,22 +7519,22 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
7519
7519
|
})
|
|
7520
7520
|
})
|
|
7521
7521
|
});
|
|
7522
|
-
}, lg = ({ module: e, liveFeatures: t, index: n, collection: r, rows: o, heights: i, slots: s, editor: d, dragging: l, onDragStart: c, onAddModule: u, onToggleCollapse:
|
|
7523
|
-
const
|
|
7522
|
+
}, lg = ({ module: e, liveFeatures: t, index: n, collection: r, rows: o, heights: i, slots: s, editor: d, dragging: l, onDragStart: c, onAddModule: u, onToggleCollapse: m, onRenamed: v, onFeaturesChanged: p }) => {
|
|
7523
|
+
const g = O(null), h = O(null), b = d.onAddFeature ? (M) => {
|
|
7524
7524
|
h.current?.addFeature(M);
|
|
7525
|
-
} : void 0, f = Or(
|
|
7525
|
+
} : void 0, f = Or(g, void 0, "heavy"), { density: y, textSize: w } = Pe(), C = Nt(w), k = da(e.name, t ?? e.features, y, C), R = /* @__PURE__ */ a(Dc, {
|
|
7526
7526
|
moduleId: e.id,
|
|
7527
7527
|
collectionId: r.id,
|
|
7528
7528
|
index: n,
|
|
7529
7529
|
width: k,
|
|
7530
7530
|
collapsed: e.collapsed,
|
|
7531
7531
|
dragging: l,
|
|
7532
|
-
frameRef:
|
|
7532
|
+
frameRef: g,
|
|
7533
7533
|
header: s?.moduleHeader?.(e, {
|
|
7534
7534
|
onDragStart: c,
|
|
7535
7535
|
onAddModule: u,
|
|
7536
7536
|
onAddFeature: b,
|
|
7537
|
-
onToggleCollapse:
|
|
7537
|
+
onToggleCollapse: m,
|
|
7538
7538
|
onRenamed: v
|
|
7539
7539
|
}) ?? /* @__PURE__ */ a(xc, {
|
|
7540
7540
|
moduleId: e.id,
|
|
@@ -7544,7 +7544,7 @@ var Ku = 250, Ju = "Inter, Helvetica, Arial, sans-serif", vt = ({ name: e, backg
|
|
|
7544
7544
|
height: ae.headerHeight,
|
|
7545
7545
|
collapsed: e.collapsed,
|
|
7546
7546
|
onAddModule: u,
|
|
7547
|
-
onToggleCollapse:
|
|
7547
|
+
onToggleCollapse: m,
|
|
7548
7548
|
onRenamed: v ? (M, x) => v(x) : void 0,
|
|
7549
7549
|
onDragStart: c,
|
|
7550
7550
|
onAddFeature: b
|
|
@@ -7590,7 +7590,7 @@ var ug = (e, t) => {
|
|
|
7590
7590
|
const n = new Map(t.map((o) => [o.id.toString(), o.features])), r = /* @__PURE__ */ new Map();
|
|
7591
7591
|
for (const [o, i] of e) n.get(o) === i.basis && r.set(o, i.features);
|
|
7592
7592
|
return r;
|
|
7593
|
-
}, mg = () => 1, gg = ({ collection: e, getZoom: t = mg, slots: n, onDeselect: r, onCollectionMoving: o, onCollectionMoved: i, onCollectionMoveCanceled: s, canMove: d, onAddModule: l, onModulesReordered: c, onCollapseChanged: u, onRenameModule:
|
|
7593
|
+
}, mg = () => 1, gg = ({ collection: e, getZoom: t = mg, slots: n, onDeselect: r, onCollectionMoving: o, onCollectionMoved: i, onCollectionMoveCanceled: s, canMove: d, onAddModule: l, onModulesReordered: c, onCollapseChanged: u, onRenameModule: m, onModulesChanged: v, onFeaturesChanged: p, onPersistenceError: g, rowLabels: h, onActorsReordered: b, onAddFeature: f, onRenameFeature: y, onFeatureCollapseChanged: w, onFeatureRowExpand: C, onFeaturesReordered: k, onAddSlice: R, onReorderSlices: M, onMoveSlice: x, validateSliceDrop: A, onSliceCollapseChanged: V, onSliceRenamed: Z, onSliceDuplicated: L, takenArtifactNames: te }) => {
|
|
7594
7594
|
const { readOnly: N, editing: E } = ne(), [q, P] = D(/* @__PURE__ */ new Map()), $ = G((le, ue) => P((Oe) => new Map(Oe).set(le.toString(), ue)), []), K = ve(() => cg(e.modules, q), [e.modules, q]), T = N ? {
|
|
7595
7595
|
onFeatureCollapseChanged: $,
|
|
7596
7596
|
onSliceCollapseChanged: (le, ue, Oe) => $(ue, Oe)
|
|
@@ -7608,7 +7608,7 @@ var ug = (e, t) => {
|
|
|
7608
7608
|
onSliceRenamed: Z,
|
|
7609
7609
|
onSliceDuplicated: L,
|
|
7610
7610
|
takenArtifactNames: te
|
|
7611
|
-
}, [H, J] = D(e.modules), [I, j] = D(/* @__PURE__ */ new Map()), U = O(null), [ie, _] = D(0), X = !!(l || c || u ||
|
|
7611
|
+
}, [H, J] = D(e.modules), [I, j] = D(/* @__PURE__ */ new Map()), U = O(null), [ie, _] = D(0), X = !!(l || c || u || m || b || f || y || w || C || k || R || M || x || V || Z || L || d && o && i || dg(E)), de = N || !X, Q = N ? K : e.modules, W = ve(() => ug(I, e.modules), [I, e.modules]), se = (de ? Q : H).map((le) => ({
|
|
7612
7612
|
...le,
|
|
7613
7613
|
features: de ? le.features : W.get(le.id.toString()) ?? le.features
|
|
7614
7614
|
})), xe = {
|
|
@@ -7694,8 +7694,8 @@ var ug = (e, t) => {
|
|
|
7694
7694
|
onAddModule: l,
|
|
7695
7695
|
onModulesReordered: c,
|
|
7696
7696
|
onCollapseChanged: N ? (le, ue) => ($(le, ue), Promise.resolve(!0)) : u,
|
|
7697
|
-
onRenameModule:
|
|
7698
|
-
onPersistenceError:
|
|
7697
|
+
onRenameModule: m,
|
|
7698
|
+
onPersistenceError: g,
|
|
7699
7699
|
onModulesChanged: (le) => {
|
|
7700
7700
|
J(le), v?.(le);
|
|
7701
7701
|
},
|
|
@@ -7839,10 +7839,10 @@ var ug = (e, t) => {
|
|
|
7839
7839
|
];
|
|
7840
7840
|
return /* @__PURE__ */ a(pg, { items: r });
|
|
7841
7841
|
}, $a = ({ showLogo: e, showViewOptions: t, toolbar: n, toolbarPlacement: r, chrome: o, children: i }) => {
|
|
7842
|
-
const s = Pe(), d = Nl(), [l, c] = D(s), u = d ? s : l,
|
|
7842
|
+
const s = Pe(), d = Nl(), [l, c] = D(s), u = d ? s : l, m = d ?? c, v = t || n !== void 0;
|
|
7843
7843
|
return /* @__PURE__ */ a(Rl, {
|
|
7844
7844
|
presentation: u,
|
|
7845
|
-
onChange:
|
|
7845
|
+
onChange: m,
|
|
7846
7846
|
children: /* @__PURE__ */ S("div", {
|
|
7847
7847
|
className: "event-model-board",
|
|
7848
7848
|
children: [i, (e || v) && /* @__PURE__ */ S(hg, {
|
|
@@ -7852,7 +7852,7 @@ var ug = (e, t) => {
|
|
|
7852
7852
|
placement: r,
|
|
7853
7853
|
children: [n, t && /* @__PURE__ */ a(fg, {
|
|
7854
7854
|
presentation: u,
|
|
7855
|
-
onChange:
|
|
7855
|
+
onChange: m
|
|
7856
7856
|
})]
|
|
7857
7857
|
})]
|
|
7858
7858
|
})
|
|
@@ -7921,12 +7921,12 @@ var ug = (e, t) => {
|
|
|
7921
7921
|
center: Tl(i.start, i.end)
|
|
7922
7922
|
}];
|
|
7923
7923
|
}), Cg = 2e3, xg = ({ links: e, collections: t, getZoom: n, onCollectionsLinked: r, onCollectionsUnlinked: o, onPersistenceError: i }) => {
|
|
7924
|
-
const s = ne(), d = s.messages.links, l = s.readOnly ? void 0 : r, c = s.readOnly ? void 0 : o, [u,
|
|
7925
|
-
const $ = P(
|
|
7926
|
-
|
|
7924
|
+
const s = ne(), d = s.messages.links, l = s.readOnly ? void 0 : r, c = s.readOnly ? void 0 : o, [u, m] = D(null), [v, p] = D(() => bg(e)), g = O(v), h = (P) => {
|
|
7925
|
+
const $ = P(g.current);
|
|
7926
|
+
g.current = $, p($);
|
|
7927
7927
|
};
|
|
7928
7928
|
oe(() => {
|
|
7929
|
-
e !==
|
|
7929
|
+
e !== g.current.snapshot && h((P) => Ur(P, e));
|
|
7930
7930
|
}, [e]);
|
|
7931
7931
|
const b = xn(v), f = O(null), y = O(null), w = `module-collection-link-arrow-${jt().replace(/:/g, "")}`, C = ve(() => new Map(t.map((P) => {
|
|
7932
7932
|
const $ = {
|
|
@@ -7951,13 +7951,13 @@ var ug = (e, t) => {
|
|
|
7951
7951
|
y: $.anchor.y + (P.clientY - $.startClientY) / K
|
|
7952
7952
|
};
|
|
7953
7953
|
}, x = (P, $, K) => (T) => {
|
|
7954
|
-
|
|
7954
|
+
g.current.pending.size > 0 || (T.stopPropagation(), T.preventDefault(), T.currentTarget.setPointerCapture(T.pointerId), f.current = {
|
|
7955
7955
|
sourceId: P,
|
|
7956
7956
|
side: $,
|
|
7957
7957
|
anchor: K,
|
|
7958
7958
|
startClientX: T.clientX,
|
|
7959
7959
|
startClientY: T.clientY
|
|
7960
|
-
}, y.current = null,
|
|
7960
|
+
}, y.current = null, m({
|
|
7961
7961
|
sourceId: P.toString(),
|
|
7962
7962
|
side: $,
|
|
7963
7963
|
pointer: K,
|
|
@@ -7967,7 +7967,7 @@ var ug = (e, t) => {
|
|
|
7967
7967
|
const $ = f.current;
|
|
7968
7968
|
if (!$) return;
|
|
7969
7969
|
const K = M(P, $), T = R(K, $.sourceId);
|
|
7970
|
-
y.current = T?.id.toString() ?? null,
|
|
7970
|
+
y.current = T?.id.toString() ?? null, m({
|
|
7971
7971
|
sourceId: $.sourceId.toString(),
|
|
7972
7972
|
side: $.side,
|
|
7973
7973
|
pointer: K,
|
|
@@ -7975,15 +7975,15 @@ var ug = (e, t) => {
|
|
|
7975
7975
|
});
|
|
7976
7976
|
}, V = async (P) => {
|
|
7977
7977
|
const $ = f.current, K = y.current;
|
|
7978
|
-
if (f.current = null, y.current = null,
|
|
7978
|
+
if (f.current = null, y.current = null, m(null), !$) return;
|
|
7979
7979
|
const T = R(M(P, $), $.sourceId), H = _l(T, K, (j) => C.get(j), $.sourceId.toString());
|
|
7980
|
-
if (!H || !l ||
|
|
7980
|
+
if (!H || !l || g.current.pending.size > 0) return;
|
|
7981
7981
|
const J = {
|
|
7982
7982
|
id: pe.create(),
|
|
7983
7983
|
sourceCollectionId: $.sourceId,
|
|
7984
7984
|
targetCollectionId: H.id
|
|
7985
7985
|
}, I = st($.sourceId, H.id);
|
|
7986
|
-
if (!(
|
|
7986
|
+
if (!(g.current.pending.has(I) || xn(g.current).some((j) => st(j.sourceCollectionId, j.targetCollectionId) === I))) {
|
|
7987
7987
|
h((j) => yg(j, J));
|
|
7988
7988
|
try {
|
|
7989
7989
|
const j = await l($.sourceId, H.id);
|
|
@@ -7994,7 +7994,7 @@ var ug = (e, t) => {
|
|
|
7994
7994
|
}
|
|
7995
7995
|
}
|
|
7996
7996
|
}, Z = async (P) => {
|
|
7997
|
-
if (!(!c ||
|
|
7997
|
+
if (!(!c || g.current.pending.size > 0)) {
|
|
7998
7998
|
h(($) => wg($, P));
|
|
7999
7999
|
try {
|
|
8000
8000
|
const $ = await c(P);
|
|
@@ -8005,7 +8005,7 @@ var ug = (e, t) => {
|
|
|
8005
8005
|
}
|
|
8006
8006
|
}
|
|
8007
8007
|
}, L = () => {
|
|
8008
|
-
f.current = null, y.current = null,
|
|
8008
|
+
f.current = null, y.current = null, m(null);
|
|
8009
8009
|
}, te = Array.from(C.values());
|
|
8010
8010
|
if (te.length === 0) return null;
|
|
8011
8011
|
const N = Dl(te.map((P) => P.rect), u ? [u.pointer] : [], Cg), E = u ? C.get(u.sourceId) : void 0, q = u?.targetId ? C.get(u.targetId) : void 0;
|
|
@@ -8162,27 +8162,27 @@ var Ag = (e, t) => e.size === t.size && [...e].every(([n, r]) => {
|
|
|
8162
8162
|
const o = t.get(n);
|
|
8163
8163
|
return !!o && Wl(r, o) === r;
|
|
8164
8164
|
}), Lg = ({ links: e, boardRoot: t, getZoom: n, path: r, revision: o }) => {
|
|
8165
|
-
const { messages: i } = ne(), s = O(null), d = jt().replace(/:/g, ""), [l, c] = D(/* @__PURE__ */ new Map()), u = ve(() => e.flatMap((
|
|
8165
|
+
const { messages: i } = ne(), s = O(null), d = jt().replace(/:/g, ""), [l, c] = D(/* @__PURE__ */ new Map()), u = ve(() => e.flatMap((g) => [g.from.toString(), g.to.toString()]), [e]), m = O(() => {
|
|
8166
8166
|
});
|
|
8167
|
-
|
|
8168
|
-
const
|
|
8169
|
-
if (!s.current || !
|
|
8170
|
-
const h = Eg(s.current,
|
|
8167
|
+
m.current = () => {
|
|
8168
|
+
const g = t.current;
|
|
8169
|
+
if (!s.current || !g || u.length === 0) return;
|
|
8170
|
+
const h = Eg(s.current, g, u, n(), r);
|
|
8171
8171
|
c((b) => Ag(b, h) ? b : h);
|
|
8172
|
-
}, Et(() =>
|
|
8172
|
+
}, Et(() => m.current(), [
|
|
8173
8173
|
u,
|
|
8174
8174
|
o,
|
|
8175
8175
|
r
|
|
8176
8176
|
]), oe(() => {
|
|
8177
|
-
const
|
|
8178
|
-
if (!
|
|
8177
|
+
const g = t.current;
|
|
8178
|
+
if (!g || u.length === 0 || (m.current(), typeof MutationObserver > "u")) return;
|
|
8179
8179
|
let h;
|
|
8180
8180
|
const b = new MutationObserver(() => {
|
|
8181
8181
|
h === void 0 && (h = requestAnimationFrame(() => {
|
|
8182
|
-
h = void 0,
|
|
8182
|
+
h = void 0, m.current();
|
|
8183
8183
|
}));
|
|
8184
8184
|
});
|
|
8185
|
-
return b.observe(
|
|
8185
|
+
return b.observe(g, {
|
|
8186
8186
|
childList: !0,
|
|
8187
8187
|
subtree: !0,
|
|
8188
8188
|
attributes: !0,
|
|
@@ -8223,21 +8223,21 @@ var Ag = (e, t) => e.size === t.size && [...e].every(([n, r]) => {
|
|
|
8223
8223
|
d: "M 1 1 L 9 5 L 1 9 z",
|
|
8224
8224
|
className: "slice-link-layer__head slice-link-layer__head--crossing"
|
|
8225
8225
|
})
|
|
8226
|
-
})] }), v.map((
|
|
8226
|
+
})] }), v.map((g) => /* @__PURE__ */ S("g", {
|
|
8227
8227
|
role: "img",
|
|
8228
|
-
"aria-label":
|
|
8229
|
-
"data-slice-link":
|
|
8228
|
+
"aria-label": g.label ? `${p[g.emphasis]}: ${g.label}` : p[g.emphasis],
|
|
8229
|
+
"data-slice-link": g.emphasis,
|
|
8230
8230
|
children: [/* @__PURE__ */ a("path", {
|
|
8231
|
-
d:
|
|
8232
|
-
className: `slice-link-layer__link slice-link-layer__link--${
|
|
8233
|
-
markerEnd: `url(#${d}-${
|
|
8234
|
-
}),
|
|
8235
|
-
x:
|
|
8236
|
-
y:
|
|
8231
|
+
d: g.path,
|
|
8232
|
+
className: `slice-link-layer__link slice-link-layer__link--${g.emphasis}`,
|
|
8233
|
+
markerEnd: `url(#${d}-${g.emphasis})`
|
|
8234
|
+
}), g.label && /* @__PURE__ */ a("text", {
|
|
8235
|
+
x: g.labelPosition.x,
|
|
8236
|
+
y: g.labelPosition.y,
|
|
8237
8237
|
className: "slice-link-layer__label",
|
|
8238
|
-
children:
|
|
8238
|
+
children: g.label
|
|
8239
8239
|
})]
|
|
8240
|
-
},
|
|
8240
|
+
}, g.key))]
|
|
8241
8241
|
})
|
|
8242
8242
|
});
|
|
8243
8243
|
}, Pg = (e) => {
|
|
@@ -8372,7 +8372,7 @@ var Ag = (e, t) => e.size === t.size && [...e].every(([n, r]) => {
|
|
|
8372
8372
|
}
|
|
8373
8373
|
}, cn = 50, un = () => {
|
|
8374
8374
|
}, zg = (e) => e.stopPropagation(), Ba = gs(({ notes: e, boardRoot: t }, n) => {
|
|
8375
|
-
const { editing: r, actions: o, messages: i } = ne(), s = yv(), d = O(new Wg(e)), l = O(/* @__PURE__ */ new Set()), c = O(!1), u = O(/* @__PURE__ */ new Set()),
|
|
8375
|
+
const { editing: r, actions: o, messages: i } = ne(), s = yv(), d = O(new Wg(e)), l = O(/* @__PURE__ */ new Set()), c = O(!1), u = O(/* @__PURE__ */ new Set()), m = O(/* @__PURE__ */ new Set()), [v, p] = D(0), [g, h] = D(), [b, f] = D(), y = O(null), w = ve(() => [y], []), C = G(() => p((N) => N + 1), []);
|
|
8376
8376
|
oe(() => {
|
|
8377
8377
|
d.current.reconcile(e), C();
|
|
8378
8378
|
}, [e, C]), oe(() => {
|
|
@@ -8412,7 +8412,7 @@ var Ag = (e, t) => e.size === t.size && [...e].every(([n, r]) => {
|
|
|
8412
8412
|
k
|
|
8413
8413
|
]);
|
|
8414
8414
|
const R = r.onStickyNoteMoved || r.onStickyNoteResized || r.onStickyNoteTextChanged || r.onStickyNoteRemoved ? h : void 0;
|
|
8415
|
-
Ft(w, () => R?.(void 0),
|
|
8415
|
+
Ft(w, () => R?.(void 0), g !== void 0 && !!R);
|
|
8416
8416
|
const M = (N, E) => {
|
|
8417
8417
|
const q = d.current.get(N);
|
|
8418
8418
|
!q || l.current.has(N) || q.position.x === E.x && q.position.y === E.y || (u.current.add(N), d.current.change(N, {
|
|
@@ -8421,7 +8421,7 @@ var Ag = (e, t) => e.size === t.size && [...e].every(([n, r]) => {
|
|
|
8421
8421
|
}), C());
|
|
8422
8422
|
}, x = (N, E) => {
|
|
8423
8423
|
const q = d.current.get(N);
|
|
8424
|
-
!q || l.current.has(N) || q.position.x === E.position.x && q.position.y === E.position.y && q.width === E.width && q.height === E.height || (
|
|
8424
|
+
!q || l.current.has(N) || q.position.x === E.position.x && q.position.y === E.position.y && q.width === E.width && q.height === E.height || (m.current.add(N), d.current.change(N, {
|
|
8425
8425
|
...q,
|
|
8426
8426
|
...E
|
|
8427
8427
|
}), C());
|
|
@@ -8430,7 +8430,7 @@ var Ag = (e, t) => e.size === t.size && [...e].every(([n, r]) => {
|
|
|
8430
8430
|
const E = d.current.get(N);
|
|
8431
8431
|
E && r.onStickyNoteMoved && k(N, E, () => r.onStickyNoteMoved?.(N, E.position));
|
|
8432
8432
|
}, V = (N) => {
|
|
8433
|
-
if (!
|
|
8433
|
+
if (!m.current.delete(N)) return;
|
|
8434
8434
|
const E = d.current.get(N);
|
|
8435
8435
|
E && r.onStickyNoteResized && k(N, E, () => r.onStickyNoteResized?.(N, {
|
|
8436
8436
|
position: E.position,
|
|
@@ -8453,16 +8453,16 @@ var Ag = (e, t) => e.size === t.size && [...e].every(([n, r]) => {
|
|
|
8453
8453
|
!d.current.get(N) || !r.onStickyNoteRemoved || l.current.has(N) || (h((E) => E === N ? void 0 : E), k(N, null, () => r.onStickyNoteRemoved?.(N)));
|
|
8454
8454
|
}, [r, k]);
|
|
8455
8455
|
return oe(() => {
|
|
8456
|
-
if (!r.onStickyNoteRemoved ||
|
|
8456
|
+
if (!r.onStickyNoteRemoved || g === void 0) return;
|
|
8457
8457
|
const N = (E) => {
|
|
8458
8458
|
Fg(E.key, E.target, t && {
|
|
8459
8459
|
boardRoot: t.current,
|
|
8460
8460
|
lastInteractionTarget: s()
|
|
8461
|
-
}) && (E.preventDefault(), te(
|
|
8461
|
+
}) && (E.preventDefault(), te(g));
|
|
8462
8462
|
};
|
|
8463
8463
|
return document.addEventListener("keydown", N), () => document.removeEventListener("keydown", N);
|
|
8464
8464
|
}, [
|
|
8465
|
-
|
|
8465
|
+
g,
|
|
8466
8466
|
r,
|
|
8467
8467
|
te,
|
|
8468
8468
|
t,
|
|
@@ -8491,7 +8491,7 @@ var Ag = (e, t) => e.size === t.size && [...e].every(([n, r]) => {
|
|
|
8491
8491
|
height: N.height,
|
|
8492
8492
|
text: N.text
|
|
8493
8493
|
},
|
|
8494
|
-
selected:
|
|
8494
|
+
selected: g === N.id && !!r.onStickyNoteResized && !l.current.has(N.id),
|
|
8495
8495
|
onSelect: R ?? un,
|
|
8496
8496
|
onMove: r.onStickyNoteMoved ? (P, $, K) => M(P, {
|
|
8497
8497
|
x: $,
|
|
@@ -8510,7 +8510,7 @@ var Ag = (e, t) => e.size === t.size && [...e].every(([n, r]) => {
|
|
|
8510
8510
|
onTextChange: r.onStickyNoteTextChanged ? Z : un,
|
|
8511
8511
|
onExpandedChange: (P, $) => f((K) => $ ? P : K === P ? void 0 : K)
|
|
8512
8512
|
}),
|
|
8513
|
-
|
|
8513
|
+
g === N.id && r.onStickyNoteColourChanged && !l.current.has(N.id) && /* @__PURE__ */ a(qg, {
|
|
8514
8514
|
current: N.colour,
|
|
8515
8515
|
onPick: (P) => L(N.id, P)
|
|
8516
8516
|
}),
|
|
@@ -8527,7 +8527,7 @@ var Ag = (e, t) => e.size === t.size && [...e].every(([n, r]) => {
|
|
|
8527
8527
|
});
|
|
8528
8528
|
Ba.displayName = "StickyNotes";
|
|
8529
8529
|
var qa = fi(({ collection: e, estimatedSize: t, measuredSize: n, onSize: r, getZoom: o, canMove: i, onCollectionMoving: s, onCollectionMoved: d, onCollectionMoveCanceled: l, content: c, onGridMounted: u }) => {
|
|
8530
|
-
const
|
|
8530
|
+
const m = G((v) => /* @__PURE__ */ a("div", {
|
|
8531
8531
|
style: { display: "contents" },
|
|
8532
8532
|
ref: (p) => {
|
|
8533
8533
|
u?.(v.collection, !!p);
|
|
@@ -8553,7 +8553,7 @@ var qa = fi(({ collection: e, estimatedSize: t, measuredSize: n, onSize: r, getZ
|
|
|
8553
8553
|
estimatedSize: t,
|
|
8554
8554
|
measuredSize: n,
|
|
8555
8555
|
onSize: r,
|
|
8556
|
-
children: c(
|
|
8556
|
+
children: c(m)
|
|
8557
8557
|
});
|
|
8558
8558
|
});
|
|
8559
8559
|
qa.displayName = "BoardCollectionView";
|
|
@@ -8726,7 +8726,7 @@ async function iv(e, t) {
|
|
|
8726
8726
|
for (let d = 0; d < e.path().length; d++) {
|
|
8727
8727
|
const l = await rv(e, i);
|
|
8728
8728
|
if (!l || !e.active()) return !1;
|
|
8729
|
-
const c = e.path(), u = c.map((
|
|
8729
|
+
const c = e.path(), u = c.map((m) => Mn(e.root, [m]) === l).lastIndexOf(!0);
|
|
8730
8730
|
if (u <= s) return !0;
|
|
8731
8731
|
if (!ov(e, l, i)) return !1;
|
|
8732
8732
|
if (u === c.length - 1) return !0;
|
|
@@ -8738,10 +8738,10 @@ function av(e, t, n, r, o, i, s = 1, d = {
|
|
|
8738
8738
|
x: 0,
|
|
8739
8739
|
y: 0
|
|
8740
8740
|
}) {
|
|
8741
|
-
const l = e.toString().toLowerCase(), c = O(null), u = O(null), [
|
|
8741
|
+
const l = e.toString().toLowerCase(), c = O(null), u = O(null), [m, v] = D(!1), p = O({
|
|
8742
8742
|
zoom: s,
|
|
8743
8743
|
pan: d
|
|
8744
|
-
}),
|
|
8744
|
+
}), g = O(/* @__PURE__ */ new Map()), h = O(0), b = O(void 0);
|
|
8745
8745
|
oe(() => () => {
|
|
8746
8746
|
h.current++, b.current = void 0;
|
|
8747
8747
|
}, []), oe(() => () => {
|
|
@@ -8749,7 +8749,7 @@ function av(e, t, n, r, o, i, s = 1, d = {
|
|
|
8749
8749
|
}, [l]);
|
|
8750
8750
|
const f = G((k, R) => {
|
|
8751
8751
|
const M = k.id.toString().toLowerCase();
|
|
8752
|
-
R ?
|
|
8752
|
+
R ? g.current.set(M, k) : g.current.get(M) === k && g.current.delete(M);
|
|
8753
8753
|
}, []), y = G((k) => {
|
|
8754
8754
|
u.current = k, v(!0), i?.(k);
|
|
8755
8755
|
}, [i]), w = G((k) => t.find((R) => R.id.toString().toLowerCase() === k || R.modules.some((M) => M.id.toString().toLowerCase() === k) || n.contains?.(R, k)), [t, n]), C = G(async (k, R) => {
|
|
@@ -8764,7 +8764,7 @@ function av(e, t, n, r, o, i, s = 1, d = {
|
|
|
8764
8764
|
...r.get(x.id.toString()) ?? n.estimateSize(x)
|
|
8765
8765
|
},
|
|
8766
8766
|
path: () => {
|
|
8767
|
-
const Z =
|
|
8767
|
+
const Z = g.current.get(A);
|
|
8768
8768
|
return (Z && wr(Z, M)) ?? (A === M ? [M] : [A, M]);
|
|
8769
8769
|
},
|
|
8770
8770
|
transform: () => p.current,
|
|
@@ -8777,9 +8777,9 @@ function av(e, t, n, r, o, i, s = 1, d = {
|
|
|
8777
8777
|
r
|
|
8778
8778
|
]);
|
|
8779
8779
|
return oe(() => {
|
|
8780
|
-
!
|
|
8780
|
+
!m || b.current === l || o && !w(o.id.toString().toLowerCase()) || (b.current = l, o && C(o.id, { animate: !1 }));
|
|
8781
8781
|
}, [
|
|
8782
|
-
|
|
8782
|
+
m,
|
|
8783
8783
|
l,
|
|
8784
8784
|
o,
|
|
8785
8785
|
w,
|
|
@@ -8793,38 +8793,38 @@ function av(e, t, n, r, o, i, s = 1, d = {
|
|
|
8793
8793
|
};
|
|
8794
8794
|
}
|
|
8795
8795
|
function sv(e, t, n = !0) {
|
|
8796
|
-
const r = O(/* @__PURE__ */ new Set()), [o, i] = D(r.current), [s, d] = D(void 0), { collections: l, moveCollection: c, collectionMoved: u } = e,
|
|
8797
|
-
if (o.has(
|
|
8798
|
-
const h = s.get(
|
|
8799
|
-
return h && h !==
|
|
8800
|
-
...
|
|
8796
|
+
const r = O(/* @__PURE__ */ new Set()), [o, i] = D(r.current), [s, d] = D(void 0), { collections: l, moveCollection: c, collectionMoved: u } = e, m = ve(() => n ? s ? l.map((g) => {
|
|
8797
|
+
if (o.has(g.id.toString())) return g;
|
|
8798
|
+
const h = s.get(g.id.toString());
|
|
8799
|
+
return h && h !== g.position ? {
|
|
8800
|
+
...g,
|
|
8801
8801
|
position: h
|
|
8802
|
-
} :
|
|
8802
|
+
} : g;
|
|
8803
8803
|
}) : Ld(Od(l), t) : l, [
|
|
8804
8804
|
l,
|
|
8805
8805
|
t,
|
|
8806
8806
|
n,
|
|
8807
8807
|
o,
|
|
8808
8808
|
s
|
|
8809
|
-
]), v = G((
|
|
8810
|
-
const f =
|
|
8809
|
+
]), v = G((g, h, b) => {
|
|
8810
|
+
const f = g.toString();
|
|
8811
8811
|
if (!r.current.has(f)) {
|
|
8812
|
-
r.current.size || d(new Map(
|
|
8813
|
-
const y =
|
|
8812
|
+
r.current.size || d(new Map(m.map((C) => [C.id.toString(), C.position])));
|
|
8813
|
+
const y = m.find((C) => C.id.equals(g))?.position, w = l.find((C) => C.id.equals(g))?.position;
|
|
8814
8814
|
h += (y?.x ?? 0) - (w?.x ?? 0), b += (y?.y ?? 0) - (w?.y ?? 0), r.current = /* @__PURE__ */ new Set([...r.current, f]), i(r.current);
|
|
8815
8815
|
}
|
|
8816
|
-
c(
|
|
8816
|
+
c(g, h, b);
|
|
8817
8817
|
}, [
|
|
8818
|
-
|
|
8818
|
+
m,
|
|
8819
8819
|
l,
|
|
8820
8820
|
c
|
|
8821
|
-
]), p = G((
|
|
8822
|
-
r.current = new Set(r.current), r.current.delete(
|
|
8821
|
+
]), p = G((g) => {
|
|
8822
|
+
r.current = new Set(r.current), r.current.delete(g.toString()), i(r.current), r.current.size || d(void 0);
|
|
8823
8823
|
}, []);
|
|
8824
8824
|
return {
|
|
8825
|
-
placed:
|
|
8825
|
+
placed: m,
|
|
8826
8826
|
moveCollection: v,
|
|
8827
|
-
collectionMoved: G((
|
|
8827
|
+
collectionMoved: G((g, h) => (p(g), u(g, h)), [u, p]),
|
|
8828
8828
|
collectionMoveCanceled: p
|
|
8829
8829
|
};
|
|
8830
8830
|
}
|
|
@@ -8873,14 +8873,14 @@ function oi(e) {
|
|
|
8873
8873
|
};
|
|
8874
8874
|
}, [e]);
|
|
8875
8875
|
}
|
|
8876
|
-
var uv = ({ id: e, collections: t, links: n, stickyNotes: r, readOnly: o, editor: i, canvas: s, showMinimap: d, changes: l, initialFocus: c, handle: u, sliceLinks:
|
|
8877
|
-
const p = o ? void 0 : i?.links,
|
|
8876
|
+
var uv = ({ id: e, collections: t, links: n, stickyNotes: r, readOnly: o, editor: i, canvas: s, showMinimap: d, changes: l, initialFocus: c, handle: u, sliceLinks: m, separateOverlaps: v = !0 }) => {
|
|
8877
|
+
const p = o ? void 0 : i?.links, g = Pd({
|
|
8878
8878
|
initialCollections: t.initialCollections,
|
|
8879
8879
|
onAddCollection: t.onAddCollection,
|
|
8880
8880
|
onCollectionMoved: t.onCollectionMoved,
|
|
8881
8881
|
onCollectionsChange: t.onCollectionsChange,
|
|
8882
8882
|
onPersistenceError: t.onPersistenceError
|
|
8883
|
-
}), { collections: h, pendingMoveIds: b, canMove: f, addCollection: y } =
|
|
8883
|
+
}), { collections: h, pendingMoveIds: b, canMove: f, addCollection: y } = g, [w, C] = D(/* @__PURE__ */ new Map()), k = O(s?.initialZoom ?? 1), R = G(() => k.current, []), M = O(null), { estimateSize: x, countSlices: A, renderCollection: V } = t, Z = G((Q, W, se) => {
|
|
8884
8884
|
C((xe) => {
|
|
8885
8885
|
const Te = Q.toString(), Be = xe.get(Te);
|
|
8886
8886
|
return Be?.width === W && Be.height === se ? xe : new Map(xe).set(Te, {
|
|
@@ -8888,7 +8888,7 @@ var uv = ({ id: e, collections: t, links: n, stickyNotes: r, readOnly: o, editor
|
|
|
8888
8888
|
height: se
|
|
8889
8889
|
});
|
|
8890
8890
|
});
|
|
8891
|
-
}, []), L = oi(x), te = oi(G((Q) => (W) => V(Q, W), [V])), N = G((Q) => w.get(Q.id.toString()) ?? L(Q), [w, L]), { placed: E, moveCollection: q, collectionMoved: P, collectionMoveCanceled: $ } = sv(
|
|
8891
|
+
}, []), L = oi(x), te = oi(G((Q) => (W) => V(Q, W), [V])), N = G((Q) => w.get(Q.id.toString()) ?? L(Q), [w, L]), { placed: E, moveCollection: q, collectionMoved: P, collectionMoveCanceled: $ } = sv(g, N, v), K = G((Q) => Qg({
|
|
8892
8892
|
documentId: e,
|
|
8893
8893
|
collections: E,
|
|
8894
8894
|
estimateSize: x,
|
|
@@ -8984,8 +8984,8 @@ var uv = ({ id: e, collections: t, links: n, stickyNotes: r, readOnly: o, editor
|
|
|
8984
8984
|
getZoom: R,
|
|
8985
8985
|
...p
|
|
8986
8986
|
}),
|
|
8987
|
-
|
|
8988
|
-
links:
|
|
8987
|
+
m && m.length > 0 && /* @__PURE__ */ a(Lg, {
|
|
8988
|
+
links: m,
|
|
8989
8989
|
boardRoot: T.rootRef,
|
|
8990
8990
|
getZoom: R,
|
|
8991
8991
|
path: ie,
|
|
@@ -9013,7 +9013,7 @@ var uv = ({ id: e, collections: t, links: n, stickyNotes: r, readOnly: o, editor
|
|
|
9013
9013
|
rootRef: T.rootRef,
|
|
9014
9014
|
onHandleReady: T.handleReady,
|
|
9015
9015
|
onTransformChange: X,
|
|
9016
|
-
children: t.area ? t.area(
|
|
9016
|
+
children: t.area ? t.area(g, de) : /* @__PURE__ */ a(xt, { children: de })
|
|
9017
9017
|
});
|
|
9018
9018
|
}, Ha = ({ id: e, readOnly: t = !1, showMinimap: n = !0, showLogo: r = !1, showViewOptions: o = !1, toolbar: i, editor: s, ...d }) => {
|
|
9019
9019
|
const l = ve(() => ({ changes: d.changes }), [d.changes]), c = /* @__PURE__ */ a(td, {
|
|
@@ -9038,16 +9038,16 @@ var uv = ({ id: e, collections: t, links: n, stickyNotes: r, readOnly: o, editor
|
|
|
9038
9038
|
chrome: d.canvas?.chrome,
|
|
9039
9039
|
children: c
|
|
9040
9040
|
});
|
|
9041
|
-
}, mv = ({ document: e, readOnly: t = !1, editor: n, canvas: r, showMinimap: o = !0, changes: i, initialFocus: s, handle: d, sliceLinks: l }) => {
|
|
9042
|
-
const c = t ? void 0 : n?.collection, u = t ? void 0 : n?.collectionBoundary,
|
|
9041
|
+
}, Ip = 72, mv = ({ document: e, readOnly: t = !1, editor: n, canvas: r, showMinimap: o = !0, changes: i, initialFocus: s, handle: d, sliceLinks: l }) => {
|
|
9042
|
+
const c = t ? void 0 : n?.collection, u = t ? void 0 : n?.collectionBoundary, m = t ? void 0 : n?.collections, v = G((w, C) => {
|
|
9043
9043
|
const k = C({
|
|
9044
9044
|
collection: w,
|
|
9045
9045
|
...c?.(w)
|
|
9046
9046
|
});
|
|
9047
9047
|
return u ? u(w, k) : k;
|
|
9048
|
-
}, [c, u]), p = ua(), { density:
|
|
9048
|
+
}, [c, u]), p = ua(), { density: g, textSize: h } = Pe(), b = G((w) => Fc(w, p, g, h), [
|
|
9049
9049
|
p,
|
|
9050
|
-
|
|
9050
|
+
g,
|
|
9051
9051
|
h
|
|
9052
9052
|
]), f = ve(() => ({
|
|
9053
9053
|
initialCollections: e.collections,
|
|
@@ -9056,12 +9056,12 @@ var uv = ({ id: e, collections: t, links: n, stickyNotes: r, readOnly: o, editor
|
|
|
9056
9056
|
contains: (w, C) => !!wr(w, C),
|
|
9057
9057
|
path: (w, C) => wr(w, C),
|
|
9058
9058
|
renderCollection: v,
|
|
9059
|
-
...
|
|
9059
|
+
...m
|
|
9060
9060
|
}), [
|
|
9061
9061
|
e.collections,
|
|
9062
9062
|
b,
|
|
9063
9063
|
v,
|
|
9064
|
-
|
|
9064
|
+
m
|
|
9065
9065
|
]), y = /* @__PURE__ */ a(Ha, {
|
|
9066
9066
|
id: e.id,
|
|
9067
9067
|
collections: f,
|
|
@@ -9076,42 +9076,49 @@ var uv = ({ id: e, collections: t, links: n, stickyNotes: r, readOnly: o, editor
|
|
|
9076
9076
|
handle: d,
|
|
9077
9077
|
sliceLinks: l
|
|
9078
9078
|
});
|
|
9079
|
-
return
|
|
9079
|
+
return g === void 0 && h === void 0 ? y : /* @__PURE__ */ a("div", {
|
|
9080
9080
|
style: {
|
|
9081
9081
|
display: "contents",
|
|
9082
9082
|
"--board-text-scale": Nt(h)
|
|
9083
9083
|
},
|
|
9084
|
-
"data-board-density":
|
|
9084
|
+
"data-board-density": g ?? "compact",
|
|
9085
9085
|
children: y
|
|
9086
9086
|
});
|
|
9087
|
-
},
|
|
9087
|
+
}, Np = ({ showLogo: e = !1, showViewOptions: t = !1, toolbar: n, toolbarPlacement: r, handle: o, editor: i, readOnly: s = !1, document: d, ...l }) => {
|
|
9088
9088
|
const c = O(null);
|
|
9089
9089
|
Vt(o, () => ({
|
|
9090
|
-
scrollTo: (
|
|
9091
|
-
revealSlice: (
|
|
9092
|
-
addCollection: (
|
|
9093
|
-
addModule: (
|
|
9094
|
-
addStickyNote: (
|
|
9095
|
-
exportImage: (
|
|
9090
|
+
scrollTo: (h, b) => c.current?.scrollTo(h, b) ?? Promise.resolve(!1),
|
|
9091
|
+
revealSlice: (h, b) => c.current?.revealSlice(h, b) ?? Promise.resolve(!1),
|
|
9092
|
+
addCollection: (h, b) => c.current?.addCollection(h, b) ?? Promise.resolve(),
|
|
9093
|
+
addModule: (h) => c.current?.addModule(h) ?? Promise.resolve(),
|
|
9094
|
+
addStickyNote: (h) => c.current?.addStickyNote(h),
|
|
9095
|
+
exportImage: (h) => c.current?.exportImage(h) ?? Promise.reject(/* @__PURE__ */ new Error("Board is not ready to export."))
|
|
9096
9096
|
}), []);
|
|
9097
|
-
const u = !s && !!i?.collections?.onAddCollection,
|
|
9097
|
+
const u = !s && !!i?.collections?.onAddCollection, m = G(() => {
|
|
9098
9098
|
c.current?.addModule();
|
|
9099
|
-
}, []), v = u ? /* @__PURE__ */ a(vg, { onAddModule:
|
|
9099
|
+
}, []), v = u ? /* @__PURE__ */ a(vg, { onAddModule: m }) : void 0, p = r === "left" && !l.canvas?.initialPan ? {
|
|
9100
|
+
...l.canvas,
|
|
9101
|
+
initialPan: {
|
|
9102
|
+
x: 72,
|
|
9103
|
+
y: 0
|
|
9104
|
+
}
|
|
9105
|
+
} : l.canvas, g = /* @__PURE__ */ a(mv, {
|
|
9100
9106
|
...l,
|
|
9107
|
+
canvas: p,
|
|
9101
9108
|
document: d,
|
|
9102
9109
|
editor: i,
|
|
9103
9110
|
readOnly: s,
|
|
9104
9111
|
handle: c
|
|
9105
9112
|
});
|
|
9106
|
-
return !e && !t && !v && n === void 0 ?
|
|
9113
|
+
return !e && !t && !v && n === void 0 ? g : /* @__PURE__ */ a($a, {
|
|
9107
9114
|
showLogo: e,
|
|
9108
9115
|
showViewOptions: t,
|
|
9109
9116
|
toolbar: v ? /* @__PURE__ */ S(re, { children: [v, n] }) : n,
|
|
9110
9117
|
toolbarPlacement: r,
|
|
9111
9118
|
chrome: l.canvas?.chrome,
|
|
9112
|
-
children:
|
|
9119
|
+
children: g
|
|
9113
9120
|
});
|
|
9114
|
-
},
|
|
9121
|
+
}, Rp = ({ slotName: e, order: t, children: n }) => {
|
|
9115
9122
|
const { readOnly: r } = ne();
|
|
9116
9123
|
return r ? void 0 : /* @__PURE__ */ a(xs, {
|
|
9117
9124
|
slotName: e,
|
|
@@ -9122,7 +9129,7 @@ var uv = ({ id: e, collections: t, links: n, stickyNotes: r, readOnly: o, editor
|
|
|
9122
9129
|
x: 32,
|
|
9123
9130
|
y: 32
|
|
9124
9131
|
};
|
|
9125
|
-
function
|
|
9132
|
+
function Op(e) {
|
|
9126
9133
|
return e.length === 0 ? vv : {
|
|
9127
9134
|
x: Math.min(...e.map((t) => t.x)),
|
|
9128
9135
|
y: Math.max(...e.map((t) => t.y)) + gv
|
|
@@ -9138,7 +9145,7 @@ var hv = (e, t, n) => t ?? (n.onFeatureAdded ? () => n.onFeatureAdded?.(e) : voi
|
|
|
9138
9145
|
}), bv = () => Yr, yv = () => (oe(() => fv(), []), bv), Xr = Ge(void 0), wv = ({ children: e }) => {
|
|
9139
9146
|
const [t, n] = D({}), r = G((i, s) => n((d) => {
|
|
9140
9147
|
const l = d[i] ?? [];
|
|
9141
|
-
if (l.length === s.length && l.every((
|
|
9148
|
+
if (l.length === s.length && l.every((m, v) => m.severity === s[v].severity && m.message === s[v].message)) return d;
|
|
9142
9149
|
const { [i]: c, ...u } = d;
|
|
9143
9150
|
return s.length === 0 ? u : {
|
|
9144
9151
|
...u,
|
|
@@ -9173,7 +9180,7 @@ var hv = (e, t, n) => t ?? (n.onFeatureAdded ? () => n.onFeatureAdded?.(e) : voi
|
|
|
9173
9180
|
value: d,
|
|
9174
9181
|
children: /* @__PURE__ */ a(wv, { children: r })
|
|
9175
9182
|
});
|
|
9176
|
-
}, Va = (e) => e.some((t) => t.severity === "error") ? "error" : e.length > 0 ? "warning" : void 0,
|
|
9183
|
+
}, Va = (e) => e.some((t) => t.severity === "error") ? "error" : e.length > 0 ? "warning" : void 0, Ap = ({ problems: e }) => {
|
|
9177
9184
|
const t = Va(e);
|
|
9178
9185
|
if (!t) return null;
|
|
9179
9186
|
const n = e.map((r) => r.message).join("; ");
|
|
@@ -9221,12 +9228,12 @@ var hv = (e, t, n) => t ?? (n.onFeatureAdded ? () => n.onFeatureAdded?.(e) : voi
|
|
|
9221
9228
|
} finally {
|
|
9222
9229
|
d(!1);
|
|
9223
9230
|
}
|
|
9224
|
-
},
|
|
9231
|
+
}, m = Mv(o, r);
|
|
9225
9232
|
return /* @__PURE__ */ a("button", {
|
|
9226
9233
|
type: "button",
|
|
9227
9234
|
className: "event-modeling-grid-add-button event-modeling-grid-add-button--small event-modeling-grid-add-button--no-circle",
|
|
9228
|
-
title: `${c}. ${
|
|
9229
|
-
"aria-label":
|
|
9235
|
+
title: `${c}. ${m}`,
|
|
9236
|
+
"aria-label": m,
|
|
9230
9237
|
disabled: s,
|
|
9231
9238
|
onClick: u,
|
|
9232
9239
|
children: l
|
|
@@ -9237,12 +9244,12 @@ var hv = (e, t, n) => t ?? (n.onFeatureAdded ? () => n.onFeatureAdded?.(e) : voi
|
|
|
9237
9244
|
color: "color-mix(in srgb, var(--board-ink, #ffffff) 80%, transparent)",
|
|
9238
9245
|
textAlign: "center"
|
|
9239
9246
|
}, Ua = ({ slice: e, height: t, collapsed: n, selectableStatuses: r, unselectableStatusReason: o, error: i, leading: s, trailing: d, onToggleCollapse: l }) => {
|
|
9240
|
-
const c = ne(), u = lt(e.id),
|
|
9247
|
+
const c = ne(), u = lt(e.id), m = kr(e.id, "slice", e.name), { showStatuses: v = !0 } = Pe(), { readOnly: p } = bt();
|
|
9241
9248
|
Sv("header", i ? [{
|
|
9242
9249
|
severity: "error",
|
|
9243
9250
|
message: i
|
|
9244
9251
|
}] : []);
|
|
9245
|
-
const
|
|
9252
|
+
const g = Ga(e.annotations, ja()), { editing: h, actions: b } = c, f = h.onSliceRenamed, y = h.onSliceStatusChanged, w = h.onTranslationDirectionChanged, C = h.onSliceAdded, k = h.onSliceOpenStateSet, R = (b.sliceHeader ?? []).filter((A) => !A.when || A.when(e)), M = /* @__PURE__ */ a(ye, {
|
|
9246
9253
|
content: /* @__PURE__ */ a(pu, { sliceType: e.sliceType }),
|
|
9247
9254
|
position: "bottom",
|
|
9248
9255
|
children: /* @__PURE__ */ a(Ln, {
|
|
@@ -9254,8 +9261,8 @@ var hv = (e, t, n) => t ?? (n.onFeatureAdded ? () => n.onFeatureAdded?.(e) : voi
|
|
|
9254
9261
|
})
|
|
9255
9262
|
}), x = ht(e.description) !== void 0;
|
|
9256
9263
|
return /* @__PURE__ */ S("div", {
|
|
9257
|
-
...
|
|
9258
|
-
className: `event-modeling-grid-slice-column-header${u ? " event-model-change-name" : ""}${
|
|
9264
|
+
...m.attributes,
|
|
9265
|
+
className: `event-modeling-grid-slice-column-header${u ? " event-model-change-name" : ""}${m.className ? ` ${m.className}` : ""}`,
|
|
9259
9266
|
"data-board-change": u,
|
|
9260
9267
|
style: {
|
|
9261
9268
|
height: t,
|
|
@@ -9267,7 +9274,7 @@ var hv = (e, t, n) => t ?? (n.onFeatureAdded ? () => n.onFeatureAdded?.(e) : voi
|
|
|
9267
9274
|
kind: c.messages.erroredEntity.slice,
|
|
9268
9275
|
name: e.name
|
|
9269
9276
|
}),
|
|
9270
|
-
n && /* @__PURE__ */ a(Qt, { annotations:
|
|
9277
|
+
n && /* @__PURE__ */ a(Qt, { annotations: g }),
|
|
9271
9278
|
/* @__PURE__ */ S("div", {
|
|
9272
9279
|
className: "event-modeling-grid-slice-column-header-left",
|
|
9273
9280
|
children: [
|
|
@@ -9275,7 +9282,7 @@ var hv = (e, t, n) => t ?? (n.onFeatureAdded ? () => n.onFeatureAdded?.(e) : voi
|
|
|
9275
9282
|
collapsed: n,
|
|
9276
9283
|
onToggle: c.readOnly ? l : !p && k ? () => k(e.id, !n) : void 0
|
|
9277
9284
|
}),
|
|
9278
|
-
|
|
9285
|
+
m.marker,
|
|
9279
9286
|
!n && s
|
|
9280
9287
|
]
|
|
9281
9288
|
}),
|
|
@@ -9297,7 +9304,7 @@ var hv = (e, t, n) => t ?? (n.onFeatureAdded ? () => n.onFeatureAdded?.(e) : voi
|
|
|
9297
9304
|
kind: c.messages.erroredEntity.slice,
|
|
9298
9305
|
name: e.name
|
|
9299
9306
|
}),
|
|
9300
|
-
/* @__PURE__ */ a(Qt, { annotations:
|
|
9307
|
+
/* @__PURE__ */ a(Qt, { annotations: g }),
|
|
9301
9308
|
v && /* @__PURE__ */ a(Tr, {
|
|
9302
9309
|
status: e.status,
|
|
9303
9310
|
reason: e.status === ce.blocked ? e.blockedReason : void 0,
|
|
@@ -9399,12 +9406,12 @@ var hv = (e, t, n) => t ?? (n.onFeatureAdded ? () => n.onFeatureAdded?.(e) : voi
|
|
|
9399
9406
|
});
|
|
9400
9407
|
}, Zn = "event-modeling-grid-slice-drop-indicator", Rv = (e) => e ? Zn : `${Zn} ${Zn}--invalid`, Lt = /* @__PURE__ */ (function(e) {
|
|
9401
9408
|
return e.pending = "pending", e.commit = "commit", e.abandon = "abandon", e;
|
|
9402
|
-
})({}),
|
|
9409
|
+
})({}), Lp = 4, Pp = 450, Tp = 10;
|
|
9403
9410
|
function Ov(e, t, n) {
|
|
9404
9411
|
const r = Math.abs(t), o = Math.abs(n);
|
|
9405
9412
|
return e === "touch" ? r > 10 || o > 10 ? Lt.abandon : Lt.pending : r > 4 || o > 4 ? Lt.commit : Lt.pending;
|
|
9406
9413
|
}
|
|
9407
|
-
var
|
|
9414
|
+
var $p = 'input, textarea, select, button, a, [role="button"], [contenteditable="true"], .p-dropdown, .p-checkbox';
|
|
9408
9415
|
function Av(e, t) {
|
|
9409
9416
|
return t || e.target?.closest('input, textarea, select, button, a, [role="button"], [contenteditable="true"], .p-dropdown, .p-checkbox') ? null : {
|
|
9410
9417
|
startX: e.clientX,
|
|
@@ -9486,7 +9493,7 @@ function _v(e, t, n, r) {
|
|
|
9486
9493
|
console.error("Slice drop validation failed — allowing the drop", y);
|
|
9487
9494
|
return;
|
|
9488
9495
|
}
|
|
9489
|
-
}, []),
|
|
9496
|
+
}, []), m = G((h, b, f) => {
|
|
9490
9497
|
const y = document.querySelector(`[data-slice-drop-target="true"][data-slice-module-id="${h.toString()}"][data-slice-feature-id="${f.toString()}"]`);
|
|
9491
9498
|
return f.equals(b) ? y?.dataset.sliceAcceptsReorder === "true" : y?.dataset.sliceAcceptsMove === "true";
|
|
9492
9499
|
}, []), v = G((h, b, f, y, w, C, k, R = null) => {
|
|
@@ -9507,14 +9514,14 @@ function _v(e, t, n, r) {
|
|
|
9507
9514
|
dropIndex: M,
|
|
9508
9515
|
headerY: C,
|
|
9509
9516
|
zoom: k,
|
|
9510
|
-
isValid: (x?.isValid ?? !0) &&
|
|
9517
|
+
isValid: (x?.isValid ?? !0) && m(t, e.id, e.id),
|
|
9511
9518
|
invalidReason: x?.reason
|
|
9512
9519
|
});
|
|
9513
9520
|
}, [
|
|
9514
9521
|
e,
|
|
9515
9522
|
t,
|
|
9516
9523
|
u,
|
|
9517
|
-
|
|
9524
|
+
m
|
|
9518
9525
|
]), p = G((h, b) => {
|
|
9519
9526
|
const f = Array.from(document.querySelectorAll(`[data-slice-drop-target="true"][data-slice-module-id="${h.toString()}"]`));
|
|
9520
9527
|
if (f.length === 0) return e.id;
|
|
@@ -9523,7 +9530,7 @@ function _v(e, t, n, r) {
|
|
|
9523
9530
|
if (b < w.left + w.width / 2) return pe.parse(f[y].dataset.sliceFeatureId);
|
|
9524
9531
|
}
|
|
9525
9532
|
return pe.parse(f[f.length - 1].dataset.sliceFeatureId);
|
|
9526
|
-
}, [e.id]),
|
|
9533
|
+
}, [e.id]), g = G((h, b) => {
|
|
9527
9534
|
const f = Array.from(document.querySelectorAll(`[data-slice-col="true"][data-slice-feature-id="${h.toString()}"]`));
|
|
9528
9535
|
if (f.length === 0) return 0;
|
|
9529
9536
|
for (let y = 0; y < f.length; y++) {
|
|
@@ -9537,19 +9544,19 @@ function _v(e, t, n, r) {
|
|
|
9537
9544
|
const h = (f) => {
|
|
9538
9545
|
const y = s.current;
|
|
9539
9546
|
if (!y) return;
|
|
9540
|
-
const w = p(y.moduleId, f.clientX), C =
|
|
9547
|
+
const w = p(y.moduleId, f.clientX), C = g(w, f.clientX), k = u(y.sliceId, w, C);
|
|
9541
9548
|
i((R) => R ? {
|
|
9542
9549
|
...R,
|
|
9543
9550
|
currentX: f.clientX,
|
|
9544
9551
|
currentY: f.clientY,
|
|
9545
9552
|
targetFeatureId: w,
|
|
9546
9553
|
dropIndex: C,
|
|
9547
|
-
isValid: (k?.isValid ?? !0) &&
|
|
9554
|
+
isValid: (k?.isValid ?? !0) && m(y.moduleId, y.featureId, w),
|
|
9548
9555
|
invalidReason: k?.reason
|
|
9549
9556
|
} : void 0);
|
|
9550
9557
|
}, b = () => {
|
|
9551
9558
|
const f = s.current, y = f && $v(f);
|
|
9552
|
-
f && y &&
|
|
9559
|
+
f && y && m(f.moduleId, f.featureId, f.targetFeatureId) && l.current?.(f.sliceId, f.featureId, f.targetFeatureId, y.index), i(void 0);
|
|
9553
9560
|
};
|
|
9554
9561
|
return window.addEventListener("pointermove", h, !0), window.addEventListener("pointerup", b, !0), window.addEventListener("pointercancel", b, !0), () => {
|
|
9555
9562
|
window.removeEventListener("pointermove", h, !0), window.removeEventListener("pointerup", b, !0), window.removeEventListener("pointercancel", b, !0);
|
|
@@ -9557,9 +9564,9 @@ function _v(e, t, n, r) {
|
|
|
9557
9564
|
}, [
|
|
9558
9565
|
o,
|
|
9559
9566
|
p,
|
|
9560
|
-
|
|
9567
|
+
g,
|
|
9561
9568
|
u,
|
|
9562
|
-
|
|
9569
|
+
m
|
|
9563
9570
|
]), {
|
|
9564
9571
|
sliceDrag: o,
|
|
9565
9572
|
handleSliceDragStart: c || !n ? void 0 : v
|
|
@@ -9624,16 +9631,16 @@ function Fv(e) {
|
|
|
9624
9631
|
}
|
|
9625
9632
|
return 1;
|
|
9626
9633
|
}
|
|
9627
|
-
var Bv = ({ featureId: e, name: t, status: n, width: r, collapsed: o, isDragging: i = !1, onDragStart: s, ref: d, onMouseEnter: l, onMouseLeave: c, onFocusCapture: u, onBlurCapture:
|
|
9628
|
-
const { sliceId: p } = bt(),
|
|
9634
|
+
var Bv = ({ featureId: e, name: t, status: n, width: r, collapsed: o, isDragging: i = !1, onDragStart: s, ref: d, onMouseEnter: l, onMouseLeave: c, onFocusCapture: u, onBlurCapture: m, children: v }) => {
|
|
9635
|
+
const { sliceId: p } = bt(), g = lt(p), h = Va(ja()), b = _i(Xl(p)), f = Dv(p, t, r, o || !s, s);
|
|
9629
9636
|
return /* @__PURE__ */ a("div", {
|
|
9630
9637
|
ref: d,
|
|
9631
|
-
"data-board-change":
|
|
9638
|
+
"data-board-change": g,
|
|
9632
9639
|
"data-slice-col": "true",
|
|
9633
9640
|
"data-slice-problem": h,
|
|
9634
9641
|
"data-slice-feature-id": e.toString(),
|
|
9635
9642
|
"data-slice-id": p?.toString(),
|
|
9636
|
-
className: `${
|
|
9643
|
+
className: `${g ? "event-model-change-frame " : ""}event-modeling-grid-slice-column event-modeling-grid-slice-column--${lr(n)}${o ? " event-modeling-grid-slice-column--collapsed" : ""}${b ? ` ${b}` : ""}`,
|
|
9637
9644
|
style: {
|
|
9638
9645
|
width: r,
|
|
9639
9646
|
cursor: o || !s ? "default" : "grab",
|
|
@@ -9643,7 +9650,7 @@ var Bv = ({ featureId: e, name: t, status: n, width: r, collapsed: o, isDragging
|
|
|
9643
9650
|
onMouseEnter: l,
|
|
9644
9651
|
onMouseLeave: c,
|
|
9645
9652
|
onFocusCapture: u,
|
|
9646
|
-
onBlurCapture:
|
|
9653
|
+
onBlurCapture: m,
|
|
9647
9654
|
onPointerDown: f.onPointerDown,
|
|
9648
9655
|
onPointerMove: f.onPointerMove,
|
|
9649
9656
|
onPointerUp: f.onPointerUp,
|
|
@@ -9652,11 +9659,11 @@ var Bv = ({ featureId: e, name: t, status: n, width: r, collapsed: o, isDragging
|
|
|
9652
9659
|
children: v
|
|
9653
9660
|
});
|
|
9654
9661
|
}, qv = (e, t) => t !== null && e.contains(t), Wv = ({ featureId: e, slice: t, eventCount: n, collapsed: r, isDragging: o = !1, onSliceDragStart: i, header: s, headerHeight: d = 44, body: l, specifications: c, collapsedWidth: u }) => {
|
|
9655
|
-
const { readOnly:
|
|
9662
|
+
const { readOnly: m } = ne(), v = Yc(t.id.toString()), { ref: p, onMouseEnter: g, onMouseLeave: h } = Zc(v?.connectedSliceIds), b = O(null), f = Or(b), [y, w] = D(!1), C = O(!1), k = Nr({
|
|
9656
9663
|
sliceType: t.sliceType,
|
|
9657
9664
|
eventCount: n
|
|
9658
9665
|
}), R = () => {
|
|
9659
|
-
C.current = !0,
|
|
9666
|
+
C.current = !0, g();
|
|
9660
9667
|
}, M = () => {
|
|
9661
9668
|
C.current = !1, y || h();
|
|
9662
9669
|
}, x = (V) => {
|
|
@@ -9687,7 +9694,7 @@ var Bv = ({ featureId: e, name: t, status: n, width: r, collapsed: o, isDragging
|
|
|
9687
9694
|
width: r ? u : k,
|
|
9688
9695
|
collapsed: r,
|
|
9689
9696
|
isDragging: o,
|
|
9690
|
-
onDragStart:
|
|
9697
|
+
onDragStart: m ? void 0 : i,
|
|
9691
9698
|
onMouseEnter: R,
|
|
9692
9699
|
onMouseLeave: M,
|
|
9693
9700
|
onFocusCapture: x,
|
|
@@ -9894,7 +9901,7 @@ var jv = (e) => e === B.stateChange ? "State Change" : e === B.stateView ? "Stat
|
|
|
9894
9901
|
};
|
|
9895
9902
|
return n ? zt(r, e.snapshot) : r;
|
|
9896
9903
|
}, zt = (e, t) => {
|
|
9897
|
-
const n = e.additions.filter((p) => !p.confirmed || !ct(t, p.slice.id)), r = e.outgoing.filter((p) => !p.confirmed || ct(t, p.slice.id)), o = e.incoming.filter((p) => !p.confirmed || !ct(t, p.slice.id)), i = e.order?.ids.filter((p) => ct(t, p)), s = t.filter((p) => i?.some((
|
|
9904
|
+
const n = e.additions.filter((p) => !p.confirmed || !ct(t, p.slice.id)), r = e.outgoing.filter((p) => !p.confirmed || ct(t, p.slice.id)), o = e.incoming.filter((p) => !p.confirmed || !ct(t, p.slice.id)), i = e.order?.ids.filter((p) => ct(t, p)), s = t.filter((p) => i?.some((g) => Re(g, p.id))).map((p) => p.id), d = i !== void 0 && i.length > 0 && i.every((p, g) => Re(p, s[g])), l = e.order?.confirmed && d ? void 0 : e.order, c = (p, g) => e.slices.find((h) => Re(h.id, p)) ?? g, u = t.filter((p) => !r.some((g) => Re(g.slice.id, p.id))).map((p) => e.additions.some((g) => Re(g.slice.id, p.id)) || e.incoming.some((g) => Re(g.slice.id, p.id)) ? c(p.id, p) : p), m = o.reduce((p, g) => Zr(p, c(g.slice.id, g.slice), g.index), u), v = n.reduce((p, g) => ct(p, g.slice.id) ? p : Qr(p, c(g.slice.id, g.slice), g.afterSliceId), m);
|
|
9898
9905
|
return {
|
|
9899
9906
|
slices: l ? rh(v, l.ids) : v,
|
|
9900
9907
|
snapshot: t,
|
|
@@ -9908,8 +9915,8 @@ var jv = (e) => e === B.stateChange ? "State Change" : e === B.stateView ? "Stat
|
|
|
9908
9915
|
let r = 0;
|
|
9909
9916
|
return e.map((o) => t.some((i) => Re(i, o.id)) ? n[r++] : o);
|
|
9910
9917
|
};
|
|
9911
|
-
function oh({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollapsed: o, hideEmptyPlaceholder: i = !1, onSlicesChanged: s, takenArtifactNames: d, createSlice: l, onAddSlice: c, onReorderSlices: u, onMoveSlice:
|
|
9912
|
-
const { readOnly:
|
|
9918
|
+
function oh({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollapsed: o, hideEmptyPlaceholder: i = !1, onSlicesChanged: s, takenArtifactNames: d, createSlice: l, onAddSlice: c, onReorderSlices: u, onMoveSlice: m, validateSliceDrop: v, renderSlice: p }) {
|
|
9919
|
+
const { readOnly: g, messages: h } = ne(), b = O(Uv(t)), f = O(void 0), [y, w] = D(b.current), { slices: C } = y, k = O(!1), [R, M] = D(!1), x = G((T) => {
|
|
9913
9920
|
const H = b.current, J = T(H);
|
|
9914
9921
|
J !== H && (b.current = J, w(J), J.slices !== H.slices && (f.current = J.slices, s?.(J.slices)));
|
|
9915
9922
|
}, [s]);
|
|
@@ -9928,7 +9935,7 @@ function oh({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollap
|
|
|
9928
9935
|
};
|
|
9929
9936
|
});
|
|
9930
9937
|
}, [x]), V = G((T, H) => x((J) => Qv(J, T, H)), [x]), Z = G((T, H) => x((J) => th(J, T, H)), [x]), L = G((T, H) => x((J) => nh(J, T, H)), [x]), te = G((T) => [...b.current.additions, ...b.current.incoming].some((H) => H.slice.id.equals(T)) || !b.current.slices.some((H) => H.id.equals(T)) ? !1 : (x((H) => Jv(H, T)), !0), [x]), N = G((T, H) => x((J) => eh(J, T, H)), [x]), E = G((T, H, J) => {
|
|
9931
|
-
if (
|
|
9938
|
+
if (g || !c || k.current) return;
|
|
9932
9939
|
k.current = !0, M(!0);
|
|
9933
9940
|
const I = b.current.slices, j = l(Gv(T, J, I.map((U) => U.name), d?.(I)));
|
|
9934
9941
|
x((U) => Xv(U, j, H)), Promise.resolve().then(() => c(j, H)).then((U) => {
|
|
@@ -9937,7 +9944,7 @@ function oh({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollap
|
|
|
9937
9944
|
k.current = !1, M(!1);
|
|
9938
9945
|
});
|
|
9939
9946
|
}, [
|
|
9940
|
-
|
|
9947
|
+
g,
|
|
9941
9948
|
l,
|
|
9942
9949
|
d,
|
|
9943
9950
|
c,
|
|
@@ -9964,7 +9971,7 @@ function oh({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollap
|
|
|
9964
9971
|
id: r,
|
|
9965
9972
|
slices: C
|
|
9966
9973
|
}), [r, C]), P = G((T, H, J, I) => {
|
|
9967
|
-
if (
|
|
9974
|
+
if (g || !H.equals(r)) return;
|
|
9968
9975
|
const j = b.current.slices.findIndex((U) => U.id.equals(T));
|
|
9969
9976
|
if (!(j < 0 || b.current.slices[j].preview || [...b.current.additions, ...b.current.incoming].some((U) => U.slice.id.equals(T)))) {
|
|
9970
9977
|
if (J.equals(r)) {
|
|
@@ -9972,21 +9979,21 @@ function oh({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollap
|
|
|
9972
9979
|
const U = Kv(b.current, j, I);
|
|
9973
9980
|
if (U === b.current) return;
|
|
9974
9981
|
x(() => U), Promise.resolve().then(() => u(U.slices.filter((ie) => !ie.preview).map((ie) => ie.id))).then((ie) => x((_) => ci(_, ie))).catch(() => x((ie) => ci(ie, !1)));
|
|
9975
|
-
} else if (
|
|
9982
|
+
} else if (m) {
|
|
9976
9983
|
const U = b.current.slices[j];
|
|
9977
9984
|
if (!te(T)) return;
|
|
9978
|
-
Promise.resolve().then(() =>
|
|
9985
|
+
Promise.resolve().then(() => m(U, J, I)).then((ie) => N(T, ie)).catch(() => N(T, !1));
|
|
9979
9986
|
}
|
|
9980
9987
|
}
|
|
9981
9988
|
}, [
|
|
9982
|
-
|
|
9989
|
+
g,
|
|
9983
9990
|
r,
|
|
9984
9991
|
u,
|
|
9985
|
-
|
|
9992
|
+
m,
|
|
9986
9993
|
x,
|
|
9987
9994
|
te,
|
|
9988
9995
|
N
|
|
9989
|
-
]), { sliceDrag: $, handleSliceDragStart: K } = _v(q, n, u ||
|
|
9996
|
+
]), { sliceDrag: $, handleSliceDragStart: K } = _v(q, n, u || m ? P : void 0, v);
|
|
9990
9997
|
return C.length ? /* @__PURE__ */ S(re, { children: [/* @__PURE__ */ a(Pv, {
|
|
9991
9998
|
drag: $,
|
|
9992
9999
|
headerHeight: ae.headerHeight
|
|
@@ -9994,8 +10001,8 @@ function oh({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollap
|
|
|
9994
10001
|
moduleId: n,
|
|
9995
10002
|
featureId: r,
|
|
9996
10003
|
busy: R,
|
|
9997
|
-
acceptsReorder: !
|
|
9998
|
-
acceptsMove: !
|
|
10004
|
+
acceptsReorder: !g && !!u,
|
|
10005
|
+
acceptsMove: !g && !!m,
|
|
9999
10006
|
active: $?.targetFeatureId.equals(r),
|
|
10000
10007
|
style: {
|
|
10001
10008
|
display: "flex",
|
|
@@ -10027,8 +10034,8 @@ function oh({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollap
|
|
|
10027
10034
|
})] }) : o ? null : i ? /* @__PURE__ */ a(Kn, {
|
|
10028
10035
|
moduleId: n,
|
|
10029
10036
|
featureId: r,
|
|
10030
|
-
acceptsReorder: !
|
|
10031
|
-
acceptsMove: !
|
|
10037
|
+
acceptsReorder: !g && !!u,
|
|
10038
|
+
acceptsMove: !g && !!m,
|
|
10032
10039
|
style: {
|
|
10033
10040
|
width: 0,
|
|
10034
10041
|
flexShrink: 0
|
|
@@ -10037,8 +10044,8 @@ function oh({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollap
|
|
|
10037
10044
|
moduleId: n,
|
|
10038
10045
|
featureId: r,
|
|
10039
10046
|
busy: R,
|
|
10040
|
-
acceptsReorder: !
|
|
10041
|
-
acceptsMove: !
|
|
10047
|
+
acceptsReorder: !g && !!u,
|
|
10048
|
+
acceptsMove: !g && !!m,
|
|
10042
10049
|
className: "event-modeling-slices-empty",
|
|
10043
10050
|
style: { width: Math.round(ae.sliceWidth * 1.5) },
|
|
10044
10051
|
children: h.slices.empty
|
|
@@ -10088,16 +10095,16 @@ var Jn = (e) => {
|
|
|
10088
10095
|
conn: s,
|
|
10089
10096
|
rowHeight: d,
|
|
10090
10097
|
actor: u
|
|
10091
|
-
}) }, `role:${u.id.toString()}`)) : Array.from({ length: Math.max(1, c.length) }, (u,
|
|
10098
|
+
}) }, `role:${u.id.toString()}`)) : Array.from({ length: Math.max(1, c.length) }, (u, m) => /* @__PURE__ */ a("div", {
|
|
10092
10099
|
className: `event-modeling-grid-slice-cell event-modeling-grid-slice-cell--${l}`,
|
|
10093
10100
|
style: { height: d }
|
|
10094
|
-
}, `row:${l}:${
|
|
10101
|
+
}, `row:${l}:${m}`));
|
|
10095
10102
|
}) }), ui = "38";
|
|
10096
10103
|
function lh(e) {
|
|
10097
10104
|
if (e.sliceType === B.stateChange && e.hasCommand) return Bt.background;
|
|
10098
10105
|
if (e.sliceType === B.stateView && e.hasReadModel) return He.background;
|
|
10099
10106
|
}
|
|
10100
|
-
var
|
|
10107
|
+
var _p = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(re, { children: t.map((r) => {
|
|
10101
10108
|
const o = r === ee.Interaction ? lh(e) : void 0, i = r === ee.Events ? Math.min(e.eventCount, 3) : 0;
|
|
10102
10109
|
return /* @__PURE__ */ S("div", {
|
|
10103
10110
|
className: "event-modeling-grid-slice-cell event-modeling-grid-slice-placeholder-row",
|
|
@@ -10147,7 +10154,7 @@ var $p = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(re,
|
|
|
10147
10154
|
placement: e,
|
|
10148
10155
|
children: /* @__PURE__ */ a(kn, { action: t })
|
|
10149
10156
|
});
|
|
10150
|
-
}, Kr = (e) => e === B.stateView,
|
|
10157
|
+
}, Kr = (e) => e === B.stateView, Dp = (e) => !Kr(e), uh = (e, t) => Kr(e) && t === 0, mh = (e) => e === B.translator, Xa = (e) => {
|
|
10151
10158
|
switch (e) {
|
|
10152
10159
|
case Ye.timer:
|
|
10153
10160
|
return "pi pi-clock";
|
|
@@ -10235,8 +10242,8 @@ var $p = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(re,
|
|
|
10235
10242
|
], fh = ({ triggerType: e, onTriggerKindChosen: t, onTriggerOpened: n }) => {
|
|
10236
10243
|
const r = Ce(), [o, i] = D(!1), s = O(null), d = O([s]).current;
|
|
10237
10244
|
Ft(d, () => i(!1), o);
|
|
10238
|
-
const l = e === void 0 ? void 0 : Xa(e), c = (u) => (
|
|
10239
|
-
|
|
10245
|
+
const l = e === void 0 ? void 0 : Xa(e), c = (u) => (m) => {
|
|
10246
|
+
m.stopPropagation(), u();
|
|
10240
10247
|
};
|
|
10241
10248
|
return l ? /* @__PURE__ */ a("div", {
|
|
10242
10249
|
className: "system-row-cell__trigger-wrapper",
|
|
@@ -10272,7 +10279,7 @@ var $p = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(re,
|
|
|
10272
10279
|
})]
|
|
10273
10280
|
});
|
|
10274
10281
|
}, bh = ({ sliceType: e, isSystemSlice: t, collapsed: n = !1, conn: r, rowHeight: o, triggerType: i, reactionRefusals: s, reactionInvocations: d }) => {
|
|
10275
|
-
const { readOnly: l, sliceId: c } = bt(), { onTriggerKindChosen: u, onTriggerOpened:
|
|
10282
|
+
const { readOnly: l, sliceId: c } = bt(), { onTriggerKindChosen: u, onTriggerOpened: m, onReactionRefusalsEdit: v } = ne().editing, p = Ce(), g = i === void 0 ? void 0 : Xa(i), h = { height: o }, b = t && e === B.automation;
|
|
10276
10283
|
return n ? /* @__PURE__ */ a("div", {
|
|
10277
10284
|
style: h,
|
|
10278
10285
|
className: "event-modeling-grid-slice-cell event-modeling-grid-slice-cell--centered event-modeling-grid-slice-cell--system event-modeling-grid-slice-cell--collapsed",
|
|
@@ -10297,17 +10304,17 @@ var $p = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(re,
|
|
|
10297
10304
|
invocations: d,
|
|
10298
10305
|
onEdit: !l && c && v ? (f) => v(c, f) : void 0
|
|
10299
10306
|
}),
|
|
10300
|
-
b && !l && c && u &&
|
|
10307
|
+
b && !l && c && u && m && /* @__PURE__ */ a(fh, {
|
|
10301
10308
|
triggerType: i,
|
|
10302
10309
|
onTriggerKindChosen: (f) => u(c, f),
|
|
10303
|
-
onTriggerOpened: () =>
|
|
10310
|
+
onTriggerOpened: () => m(c)
|
|
10304
10311
|
}),
|
|
10305
|
-
b && l && i !== void 0 &&
|
|
10312
|
+
b && l && i !== void 0 && g && /* @__PURE__ */ a("div", {
|
|
10306
10313
|
className: "system-row-cell__trigger-wrapper",
|
|
10307
10314
|
children: /* @__PURE__ */ a("span", {
|
|
10308
10315
|
className: "system-row-cell__trigger-btn system-row-cell__trigger-btn--active system-row-cell__trigger-btn--readonly",
|
|
10309
10316
|
title: gh(i, p),
|
|
10310
|
-
children: /* @__PURE__ */ a("i", { className:
|
|
10317
|
+
children: /* @__PURE__ */ a("i", { className: g })
|
|
10311
10318
|
})
|
|
10312
10319
|
})
|
|
10313
10320
|
]
|
|
@@ -10362,8 +10369,8 @@ var $p = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(re,
|
|
|
10362
10369
|
})
|
|
10363
10370
|
})
|
|
10364
10371
|
});
|
|
10365
|
-
}, Sh = ({ elements: e, windowSize: t, layout: n, collapsed: r = !1, conn: o, rowHeight: i, actorId: s, hasScreen: d = !1, renderThumbnail: l, adornment: c, corner: u, visual:
|
|
10366
|
-
const { readOnly: v, sliceId: p } = bt(), { editing:
|
|
10372
|
+
}, Sh = ({ elements: e, windowSize: t, layout: n, collapsed: r = !1, conn: o, rowHeight: i, actorId: s, hasScreen: d = !1, renderThumbnail: l, adornment: c, corner: u, visual: m }) => {
|
|
10373
|
+
const { readOnly: v, sliceId: p } = bt(), { editing: g, actions: h, readOnly: b } = ne(), { onPrototypeOpened: f, onPrototypeAdded: y } = g, w = O(null), [C, k] = D(), R = Rs().prototypeThumbnail, M = { height: i }, x = "event-modeling-grid-slice-cell event-modeling-grid-slice-cell--centered event-modeling-grid-slice-cell--ui";
|
|
10367
10374
|
if (r) return /* @__PURE__ */ a("div", {
|
|
10368
10375
|
style: M,
|
|
10369
10376
|
className: x
|
|
@@ -10397,11 +10404,11 @@ var $p = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(re,
|
|
|
10397
10404
|
fallback: Z
|
|
10398
10405
|
}) : Z
|
|
10399
10406
|
}),
|
|
10400
|
-
!A &&
|
|
10407
|
+
!A && m && /* @__PURE__ */ a("div", {
|
|
10401
10408
|
className: "event-modeling-grid-ui-preview event-modeling-grid-ui-preview--clickable event-modeling-grid-ui-visual",
|
|
10402
10409
|
onPointerDown: (L) => L.stopPropagation(),
|
|
10403
10410
|
onMouseDown: (L) => L.stopPropagation(),
|
|
10404
|
-
children:
|
|
10411
|
+
children: m
|
|
10405
10412
|
}),
|
|
10406
10413
|
A && u && /* @__PURE__ */ a("div", {
|
|
10407
10414
|
className: "event-modeling-grid-ui-corner",
|
|
@@ -10555,16 +10562,16 @@ var $p = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(re,
|
|
|
10555
10562
|
})
|
|
10556
10563
|
})] });
|
|
10557
10564
|
}, Nh = ({ sliceId: e, event: t, renameable: n, showDetails: r = !1, ruleBreak: o, annotations: i }) => {
|
|
10558
|
-
const { editing: s, actions: d, selection: l, messages: c } = ne(), u = Fe(),
|
|
10565
|
+
const { editing: s, actions: d, selection: l, messages: c } = ne(), u = Fe(), m = On(i), [v, p] = D(t.name), [g, h] = D(void 0);
|
|
10559
10566
|
oe(() => p(t.name), [t.name]);
|
|
10560
10567
|
const b = s.onEventRenamed, f = n && !u && !!b, y = !!l.selectedArtifactId?.equals(t.id), w = () => {
|
|
10561
|
-
const C =
|
|
10568
|
+
const C = g?.trim() ?? "";
|
|
10562
10569
|
h(void 0), !(!C || !b) && p(b(e, t.id, C) ?? C);
|
|
10563
10570
|
};
|
|
10564
|
-
return
|
|
10571
|
+
return g !== void 0 ? /* @__PURE__ */ a("div", {
|
|
10565
10572
|
className: "event-modeling-grid-event-wrapper",
|
|
10566
10573
|
children: /* @__PURE__ */ a(_n, {
|
|
10567
|
-
value:
|
|
10574
|
+
value: g,
|
|
10568
10575
|
backgroundColor: Le.background,
|
|
10569
10576
|
textColor: Le.text,
|
|
10570
10577
|
onChange: h,
|
|
@@ -10572,8 +10579,8 @@ var $p = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(re,
|
|
|
10572
10579
|
onCancel: () => h(void 0)
|
|
10573
10580
|
})
|
|
10574
10581
|
}) : /* @__PURE__ */ S("div", {
|
|
10575
|
-
className: `event-modeling-grid-event-wrapper${o ? " event-modeling-grid-event-wrapper--rule-break" : ""}${
|
|
10576
|
-
"data-severity":
|
|
10582
|
+
className: `event-modeling-grid-event-wrapper${o ? " event-modeling-grid-event-wrapper--rule-break" : ""}${m ? " event-modeling-event--marked event-model-annotation-severity" : ""}`,
|
|
10583
|
+
"data-severity": m,
|
|
10577
10584
|
"data-flow-node": ke.event,
|
|
10578
10585
|
children: [
|
|
10579
10586
|
/* @__PURE__ */ a(ye, {
|
|
@@ -10674,14 +10681,14 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
10674
10681
|
"aria-hidden": "true"
|
|
10675
10682
|
})
|
|
10676
10683
|
});
|
|
10677
|
-
}, Oh = ({ id: e, name: t, sourceEventId: n, isSelected: r = !1, onSelected: o, onNavigate: i, onRemove: s, removalPending: d = !1, isPublic: l = !1, ruleBreak: c, ariaLabel: u, ...
|
|
10678
|
-
const v = lt(e), p = Ce(),
|
|
10684
|
+
}, Oh = ({ id: e, name: t, sourceEventId: n, isSelected: r = !1, onSelected: o, onNavigate: i, onRemove: s, removalPending: d = !1, isPublic: l = !1, ruleBreak: c, ariaLabel: u, ...m }) => {
|
|
10685
|
+
const v = lt(e), p = Ce(), g = !!n && !n.equals(pe.empty) && !!i, h = Ka(n ?? pe.empty, i);
|
|
10679
10686
|
return /* @__PURE__ */ S("div", {
|
|
10680
10687
|
ref: h.ref,
|
|
10681
10688
|
"data-board-change": v,
|
|
10682
10689
|
className: `${v ? "event-model-change-frame event-model-change-name " : ""}event-modeling-grid-event-wrapper event-modeling-grid-event-wrapper--reference${c ? " event-modeling-grid-event-wrapper--rule-break" : ""}`,
|
|
10683
|
-
onMouseEnter:
|
|
10684
|
-
onMouseLeave:
|
|
10690
|
+
onMouseEnter: g ? h.onMouseEnter : void 0,
|
|
10691
|
+
onMouseLeave: g ? h.onMouseLeave : void 0,
|
|
10685
10692
|
children: [
|
|
10686
10693
|
/* @__PURE__ */ a(vt, {
|
|
10687
10694
|
name: t,
|
|
@@ -10695,10 +10702,10 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
10695
10702
|
kind: p.interaction.externalEvent,
|
|
10696
10703
|
name: t
|
|
10697
10704
|
}), l && /* @__PURE__ */ a(eo, {})] }),
|
|
10698
|
-
...
|
|
10705
|
+
...m
|
|
10699
10706
|
}),
|
|
10700
10707
|
c && /* @__PURE__ */ a(Qa, { ruleBreak: c }),
|
|
10701
|
-
|
|
10708
|
+
g && /* @__PURE__ */ a(Za, { onClick: h.handleNavigate }),
|
|
10702
10709
|
s && /* @__PURE__ */ a(Ja, {
|
|
10703
10710
|
eventName: t,
|
|
10704
10711
|
pending: d,
|
|
@@ -10709,7 +10716,7 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
10709
10716
|
]
|
|
10710
10717
|
});
|
|
10711
10718
|
}, Ah = ({ sliceId: e, event: t, selectable: n, showDetails: r = !1, projectedFromTheRight: o = !1, annotations: i = [] }) => {
|
|
10712
|
-
const { editing: s, selection: d, navigation: l, messages: c } = ne(), u = Fe() ? void 0 : s.onEventReferenceRemoved,
|
|
10719
|
+
const { editing: s, selection: d, navigation: l, messages: c } = ne(), u = Fe() ? void 0 : s.onEventReferenceRemoved, m = pe.parse(t.sourceEventId ?? pe.empty.toString()), v = Ka(m, l.onNavigateToEvent), p = !!d.selectedArtifactId?.equals(t.id), g = d.onArtifactSelected, h = lt(t.id), b = `${c.events.openEvent} ${t.name}`, f = o ? [{
|
|
10713
10720
|
severity: ut.warning,
|
|
10714
10721
|
message: c.events.projectedFromTheRight
|
|
10715
10722
|
}, ...i] : i, y = On(f);
|
|
@@ -10735,7 +10742,7 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
10735
10742
|
backgroundColor: Le.background,
|
|
10736
10743
|
textColor: Le.text,
|
|
10737
10744
|
isSelected: p,
|
|
10738
|
-
onSelected: n &&
|
|
10745
|
+
onSelected: n && g ? () => g(t.id) : void 0,
|
|
10739
10746
|
ariaLabel: h ? `${b} · ${An(c, h)}` : b,
|
|
10740
10747
|
ariaPressed: p,
|
|
10741
10748
|
"data-event-id": t.id.toString(),
|
|
@@ -10778,7 +10785,7 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
10778
10785
|
const n = new Set(e.events.flatMap((o) => o.sourceEventId ? [o.sourceEventId] : [])), r = new Set(e.events.map((o) => o.name));
|
|
10779
10786
|
return t.filter((o) => !n.has(o.id.toString()) && !r.has(o.name));
|
|
10780
10787
|
}, Th = ({ slice: e, collapsed: t = !1, conn: n, rowHeight: r, priorEvents: o, followingEvents: i = [], showDetails: s = !1 }) => {
|
|
10781
|
-
const { editing: d, actions: l, messages: c } = ne(), u = Fe(), { onEventAdded:
|
|
10788
|
+
const { editing: d, actions: l, messages: c } = ne(), u = Fe(), { onEventAdded: m, onEventReferenced: v } = d, p = Kr(e.sliceType), g = uh(e.sliceType, e.events.length), h = !(et(e) && e.events.some((k) => !k.sourceEventId)), b = Ph(e, o), f = Lh(e, o, i), y = /* @__PURE__ */ new Map();
|
|
10782
10789
|
for (const k of e.annotations ?? []) {
|
|
10783
10790
|
if (!k.eventId) continue;
|
|
10784
10791
|
const R = k.eventId.toString().toLowerCase();
|
|
@@ -10798,20 +10805,20 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
10798
10805
|
conn: n,
|
|
10799
10806
|
rowHeight: r,
|
|
10800
10807
|
eventCount: e.events.length,
|
|
10801
|
-
after: !u &&
|
|
10808
|
+
after: !u && g && C(!0),
|
|
10802
10809
|
corners: /* @__PURE__ */ S(re, { children: [
|
|
10803
10810
|
!u && w.length > 0 && /* @__PURE__ */ a(Ht, {
|
|
10804
10811
|
placement: kt.top,
|
|
10805
10812
|
children: w.map((k) => /* @__PURE__ */ a(kn, { action: k }, k.tooltip))
|
|
10806
10813
|
}),
|
|
10807
|
-
!u && !p && h &&
|
|
10814
|
+
!u && !p && h && m && /* @__PURE__ */ a(ch, {
|
|
10808
10815
|
placement: kt.add,
|
|
10809
10816
|
action: {
|
|
10810
10817
|
tooltip: c.events.addEvent,
|
|
10811
|
-
onActivate: (k) =>
|
|
10818
|
+
onActivate: (k) => m(k)
|
|
10812
10819
|
}
|
|
10813
10820
|
}),
|
|
10814
|
-
!u && p && !
|
|
10821
|
+
!u && p && !g && v && /* @__PURE__ */ a(Ht, {
|
|
10815
10822
|
placement: kt.add,
|
|
10816
10823
|
children: C(!1)
|
|
10817
10824
|
})
|
|
@@ -10833,9 +10840,9 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
10833
10840
|
}, k.id.toString()))
|
|
10834
10841
|
});
|
|
10835
10842
|
}, vi = ({ sliceId: e, kind: t, artifactId: n, name: r, schema: o, description: i, summary: s, documentation: d, showDetails: l = !1, annotations: c, onRenamed: u }) => {
|
|
10836
|
-
const
|
|
10843
|
+
const m = On(c), { actions: v, selection: p, messages: g } = ne(), h = Fe(), [b, f] = D(r), [y, w] = D(void 0);
|
|
10837
10844
|
oe(() => f(r), [r]);
|
|
10838
|
-
const C = t === me.command, k = C ? v.commandCard : v.readModelCardFor?.(n) ?? v.readModelCard, R = C ? Bt : He, M = C ?
|
|
10845
|
+
const C = t === me.command, k = C ? v.commandCard : v.readModelCardFor?.(n) ?? v.readModelCard, R = C ? Bt : He, M = C ? g.interaction.command : g.interaction.readModel, x = !h && !!u, A = p.onArtifactSelected, V = () => {
|
|
10839
10846
|
const Z = y?.trim() ?? "";
|
|
10840
10847
|
w(void 0), !(!Z || !u) && (u(Z), f(Z));
|
|
10841
10848
|
};
|
|
@@ -10851,15 +10858,15 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
10851
10858
|
description: i,
|
|
10852
10859
|
documentation: d
|
|
10853
10860
|
}), /* @__PURE__ */ a(qt, {
|
|
10854
|
-
title: `${h ? "" : `${
|
|
10861
|
+
title: `${h ? "" : `${g.interaction.doubleClickToRenamePrefix} `}${M}: ${b}`,
|
|
10855
10862
|
schema: o
|
|
10856
10863
|
})] }),
|
|
10857
10864
|
position: "top",
|
|
10858
10865
|
openOnFocus: !0,
|
|
10859
10866
|
children: /* @__PURE__ */ S("div", {
|
|
10860
|
-
className:
|
|
10861
|
-
"data-severity":
|
|
10862
|
-
style:
|
|
10867
|
+
className: m ? "event-modeling-event--marked event-model-annotation-severity" : void 0,
|
|
10868
|
+
"data-severity": m,
|
|
10869
|
+
style: m ? { position: "relative" } : void 0,
|
|
10863
10870
|
"data-flow-node": C ? ke.command : ke.readModel,
|
|
10864
10871
|
children: [/* @__PURE__ */ a(Vr, {
|
|
10865
10872
|
kind: t,
|
|
@@ -10874,10 +10881,10 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
10874
10881
|
isSelected: !!p.selectedArtifactId?.equals(n),
|
|
10875
10882
|
onSelected: A ? () => A(n) : void 0,
|
|
10876
10883
|
onStartEdit: x ? () => w(b) : void 0,
|
|
10877
|
-
ariaLabel: `${
|
|
10884
|
+
ariaLabel: `${g.interaction.open} ${M}: ${b}`,
|
|
10878
10885
|
"data-card-id": n.toString(),
|
|
10879
10886
|
"data-slice-id": e.toString()
|
|
10880
|
-
}),
|
|
10887
|
+
}), m && /* @__PURE__ */ a(Jr, { annotations: c })]
|
|
10881
10888
|
})
|
|
10882
10889
|
});
|
|
10883
10890
|
}, tr = "event-modeling-grid-slice-cell event-modeling-grid-slice-cell--centered event-modeling-grid-slice-cell--interaction", nr = ({ collapsed: e = !1, conn: t, rowHeight: n, miniCards: r, layout: o }) => {
|
|
@@ -10969,11 +10976,11 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
10969
10976
|
return r.has(s) || o.has(s) ? !1 : (o.add(s), !0);
|
|
10970
10977
|
});
|
|
10971
10978
|
}, hi = ({ sliceId: e, kind: t, artifactId: n, name: r, sources: o, onRenamed: i }) => {
|
|
10972
|
-
const { actions: s, selection: d, messages: l } = ne(), c = Fe(), [u,
|
|
10973
|
-
oe(() =>
|
|
10974
|
-
const
|
|
10979
|
+
const { actions: s, selection: d, messages: l } = ne(), c = Fe(), [u, m] = D(r), [v, p] = D(void 0);
|
|
10980
|
+
oe(() => m(r), [r]);
|
|
10981
|
+
const g = t === me.projection, h = g ? s.projectionCard : s.captureCard, b = g ? Hr : jr, f = g ? l.interaction.projection : l.interaction.capture, y = !c && !!i, w = d.onArtifactSelected, C = o.length > 0 ? o.join(", ") : l.interaction.noSourceEvents, k = () => {
|
|
10975
10982
|
const R = v?.trim() ?? "";
|
|
10976
|
-
p(void 0), !(!R || !i) && (i(R),
|
|
10983
|
+
p(void 0), !(!R || !i) && (i(R), m(R));
|
|
10977
10984
|
};
|
|
10978
10985
|
return v !== void 0 ? /* @__PURE__ */ a(_n, {
|
|
10979
10986
|
value: v,
|
|
@@ -10986,7 +10993,7 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
10986
10993
|
content: `${c ? "" : `${l.interaction.doubleClickToRenamePrefix} `}${f}: ${u}`,
|
|
10987
10994
|
position: "top",
|
|
10988
10995
|
children: /* @__PURE__ */ a("div", {
|
|
10989
|
-
"data-flow-node":
|
|
10996
|
+
"data-flow-node": g ? ke.projection : ke.capture,
|
|
10990
10997
|
children: /* @__PURE__ */ a(Vr, {
|
|
10991
10998
|
kind: t,
|
|
10992
10999
|
artifactId: n,
|
|
@@ -11005,12 +11012,12 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
11005
11012
|
})
|
|
11006
11013
|
});
|
|
11007
11014
|
}, Fh = ({ sliceId: e, commandActions: t, alternativeLabel: n, onAlternative: r, label: o, configuredKind: i, oppositeLabel: s, oppositeReason: d, onOppositeAlternative: l }) => {
|
|
11008
|
-
const { messages: c } = ne(), u = Qe.interaction,
|
|
11015
|
+
const { messages: c } = ne(), u = Qe.interaction, m = i ? (c.interaction.occupiedImplementation ?? u.occupiedImplementation)(i) : void 0, v = O(null), p = () => v.current?.getBoundingClientRect() ?? new DOMRect(), g = [
|
|
11009
11016
|
...i ? [{
|
|
11010
11017
|
id: "command",
|
|
11011
11018
|
label: c.interaction.addCommand ?? u.addCommand,
|
|
11012
11019
|
disabled: !0,
|
|
11013
|
-
description:
|
|
11020
|
+
description: m
|
|
11014
11021
|
}] : t.map((h, b) => ({
|
|
11015
11022
|
id: `command-${b}`,
|
|
11016
11023
|
label: h.tooltip,
|
|
@@ -11023,7 +11030,7 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
11023
11030
|
id: "alternative",
|
|
11024
11031
|
label: n,
|
|
11025
11032
|
disabled: !!i,
|
|
11026
|
-
description:
|
|
11033
|
+
description: m,
|
|
11027
11034
|
onClick: () => {
|
|
11028
11035
|
i || r(p());
|
|
11029
11036
|
}
|
|
@@ -11044,7 +11051,7 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
11044
11051
|
"aria-label": o,
|
|
11045
11052
|
children: "+"
|
|
11046
11053
|
}),
|
|
11047
|
-
items:
|
|
11054
|
+
items: g,
|
|
11048
11055
|
align: "right"
|
|
11049
11056
|
});
|
|
11050
11057
|
}, Bh = (e) => {
|
|
@@ -11064,14 +11071,14 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
11064
11071
|
];
|
|
11065
11072
|
}
|
|
11066
11073
|
}, qh = (e, t) => e.sliceType === B.translator ? (t.interaction.implementationSummary ?? Qe.interaction.implementationSummary)(t.interaction.command, e.externalEvents.length) : void 0, Wh = ({ slice: e, collapsed: t = !1, conn: n, rowHeight: r, externalEventOptions: o = [], priorEventOptions: i = [], showDetails: s = !1 }) => {
|
|
11067
|
-
const { editing: d, actions: l, selection: c, navigation: u, messages:
|
|
11074
|
+
const { editing: d, actions: l, selection: c, navigation: u, messages: m } = ne(), v = Fe(), { onCommandRenamed: p, onReadModelRenamed: g, onReadModelAdded: h, onExternalEventAdded: b, onExternalEventRemoved: f, onProjectionRenamed: y, onCaptureRenamed: w, onProjectionAdded: C, onCaptureAdded: k } = d, R = Dh(e, o, i), M = (l.interactionRow ?? []).filter((W) => !W.when || W.when(e)), x = Bh(e), A = c.onArtifactSelected, { command: V, readModel: Z } = e, L = (W, se) => (e.annotations ?? []).filter((xe) => xe[W]?.toString().toLowerCase() === se.toString().toLowerCase()), te = V && /* @__PURE__ */ a(vi, {
|
|
11068
11075
|
sliceId: e.id,
|
|
11069
11076
|
kind: me.command,
|
|
11070
11077
|
artifactId: V.id,
|
|
11071
11078
|
name: V.name,
|
|
11072
11079
|
schema: V.schema,
|
|
11073
11080
|
description: V.description,
|
|
11074
|
-
summary: qh(e,
|
|
11081
|
+
summary: qh(e, m),
|
|
11075
11082
|
documentation: V.documentation,
|
|
11076
11083
|
showDetails: s,
|
|
11077
11084
|
annotations: L("commandId", V.id),
|
|
@@ -11100,15 +11107,15 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
11100
11107
|
documentation: W.documentation,
|
|
11101
11108
|
showDetails: s,
|
|
11102
11109
|
annotations: L("readModelId", W.id),
|
|
11103
|
-
onRenamed:
|
|
11110
|
+
onRenamed: g && ((se) => g(e.id, W.id, se))
|
|
11104
11111
|
}, W.id.toString()), T = e.sliceType === B.stateView ? e.additionalReadModels ?? [] : [], H = Z && K(Z), J = T.length > 0 ? /* @__PURE__ */ S("div", {
|
|
11105
11112
|
className: "event-modeling-grid-slice-cell-stack",
|
|
11106
11113
|
children: [H, T.map(K)]
|
|
11107
11114
|
}) : H, I = (W) => {
|
|
11108
|
-
const se = `${
|
|
11115
|
+
const se = `${m.interaction.open} ${m.interaction.externalEvent}: ${W.name}`, xe = _h(W, R), Te = R.find((Be) => Be.id.toString() === W.sourceEventId);
|
|
11109
11116
|
return /* @__PURE__ */ a(ye, {
|
|
11110
11117
|
content: /* @__PURE__ */ a(qt, {
|
|
11111
|
-
title: `${v ? "" : `${
|
|
11118
|
+
title: `${v ? "" : `${m.interaction.doubleClickToRenamePrefix} `}${m.interaction.externalEvent}: ${W.name}`,
|
|
11112
11119
|
schema: xe
|
|
11113
11120
|
}),
|
|
11114
11121
|
position: "top",
|
|
@@ -11132,23 +11139,23 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
11132
11139
|
})
|
|
11133
11140
|
}, W.id.toString());
|
|
11134
11141
|
}, j = et(e) ? C && {
|
|
11135
|
-
label:
|
|
11142
|
+
label: m.interaction.addProjection,
|
|
11136
11143
|
add: C
|
|
11137
11144
|
} : k && {
|
|
11138
|
-
label:
|
|
11145
|
+
label: m.interaction.addCapture,
|
|
11139
11146
|
add: k
|
|
11140
|
-
}, U = N ?
|
|
11147
|
+
}, U = N ? m.interaction.projection : E ? m.interaction.capture : V ? m.interaction.command : void 0, ie = e.sliceType === B.translator && !!j, _ = et(e) ? k : C, X = et(e) ? m.interaction.captureInputOnly ?? Qe.interaction.captureInputOnly : m.interaction.projectionOutputOnly ?? Qe.interaction.projectionOutputOnly, de = !v && (M.length > 0 || ie) && /* @__PURE__ */ S(Ht, {
|
|
11141
11148
|
placement: kt.add,
|
|
11142
11149
|
children: [ie && j ? /* @__PURE__ */ a(Fh, {
|
|
11143
11150
|
sliceId: e.id,
|
|
11144
11151
|
commandActions: U ? [] : M,
|
|
11145
11152
|
configuredKind: U,
|
|
11146
|
-
oppositeLabel: et(e) ?
|
|
11153
|
+
oppositeLabel: et(e) ? m.interaction.addCapture : m.interaction.addProjection,
|
|
11147
11154
|
oppositeReason: X,
|
|
11148
11155
|
onOppositeAlternative: _ && ((W) => _(e.id, W)),
|
|
11149
11156
|
alternativeLabel: j.label,
|
|
11150
11157
|
onAlternative: (W) => j.add(e.id, W),
|
|
11151
|
-
label:
|
|
11158
|
+
label: m.interaction.addToTranslator
|
|
11152
11159
|
}) : M.map((W) => /* @__PURE__ */ a(kn, { action: W }, W.tooltip)), ie && U && M.map((W) => /* @__PURE__ */ a(kn, { action: W }, W.tooltip))]
|
|
11153
11160
|
});
|
|
11154
11161
|
if (e.sliceType === B.automation && !t) {
|
|
@@ -11166,8 +11173,8 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
11166
11173
|
cards: /* @__PURE__ */ S(re, { children: [
|
|
11167
11174
|
J,
|
|
11168
11175
|
W && /* @__PURE__ */ a($h, {
|
|
11169
|
-
label:
|
|
11170
|
-
defineLabel:
|
|
11176
|
+
label: m.interaction.readModel,
|
|
11177
|
+
defineLabel: m.interaction.defineReadModel,
|
|
11171
11178
|
onDefine: (se) => h(e.id, se)
|
|
11172
11179
|
}),
|
|
11173
11180
|
te
|
|
@@ -11191,9 +11198,9 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
11191
11198
|
options: Eh(e, R).filter((se) => !W.has(se.name)),
|
|
11192
11199
|
nameOf: (se) => se.name,
|
|
11193
11200
|
onSelect: (se) => b(e.id, se),
|
|
11194
|
-
label:
|
|
11195
|
-
searchPlaceholder:
|
|
11196
|
-
emptyLabel: et(e) ?
|
|
11201
|
+
label: m.interaction.addExternalEvent,
|
|
11202
|
+
searchPlaceholder: m.interaction.searchExternalEvents,
|
|
11203
|
+
emptyLabel: et(e) ? m.interaction.noEarlierPrivateEventsAvailable : m.interaction.noExternalEventsAvailable
|
|
11197
11204
|
})
|
|
11198
11205
|
}),
|
|
11199
11206
|
right: $,
|
|
@@ -11214,10 +11221,10 @@ var Ja = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
|
|
|
11214
11221
|
corners: de
|
|
11215
11222
|
}
|
|
11216
11223
|
});
|
|
11217
|
-
}, to = (e) => e.flatMap((t) => [t, ...to(t.subFeatures)]), no = (e) => e.collections.flatMap((t) => t.modules),
|
|
11224
|
+
}, to = (e) => e.flatMap((t) => [t, ...to(t.subFeatures)]), no = (e) => e.collections.flatMap((t) => t.modules), Fp = (e, t = "Module") => at(t, no(e).map((n) => n.name)), Bp = (e, t, n, r = "Feature") => {
|
|
11218
11225
|
const o = no(e).find((s) => s.id.equals(t)), i = n ? to(o?.features ?? []).find((s) => s.id.equals(n)) : void 0;
|
|
11219
11226
|
return at(r, (i ? i.subFeatures : o?.features ?? []).map((s) => s.name));
|
|
11220
|
-
},
|
|
11227
|
+
}, qp = (e, t = "Event") => at(t, no(e).flatMap((n) => to(n.features)).flatMap((n) => n.slices.flatMap((r) => r.events.map((o) => o.name))));
|
|
11221
11228
|
export {
|
|
11222
11229
|
Gd as ActorRowDragGhost,
|
|
11223
11230
|
No as ActorRowDropIndicator,
|
|
@@ -11234,7 +11241,7 @@ export {
|
|
|
11234
11241
|
Pi as BoardInteractionProvider,
|
|
11235
11242
|
$a as BoardOverlay,
|
|
11236
11243
|
td as BoardProvider,
|
|
11237
|
-
|
|
11244
|
+
Rp as BoardToolbar,
|
|
11238
11245
|
hg as BoardToolbarFrame,
|
|
11239
11246
|
pg as BoardViewMenu,
|
|
11240
11247
|
fg as BoardViewOptions,
|
|
@@ -11263,7 +11270,7 @@ export {
|
|
|
11263
11270
|
bn as CurveAxis,
|
|
11264
11271
|
xp as DEFAULT_MAX_TITLE_FONT_SIZE_PX,
|
|
11265
11272
|
Mp as DEFAULT_MIN_TITLE_FONT_SIZE_PX,
|
|
11266
|
-
|
|
11273
|
+
Lp as DRAG_THRESHOLD,
|
|
11267
11274
|
Pn as Description,
|
|
11268
11275
|
Lr as DescriptionFull,
|
|
11269
11276
|
Qi as DetailsToggle,
|
|
@@ -11274,7 +11281,7 @@ export {
|
|
|
11274
11281
|
wp as EntityErrorKind,
|
|
11275
11282
|
Sp as ErroredEntity,
|
|
11276
11283
|
Nh as EventCard,
|
|
11277
|
-
|
|
11284
|
+
Np as EventModelBoard,
|
|
11278
11285
|
xi as EventModelMessagesContext,
|
|
11279
11286
|
rp as EventModelMessagesProvider,
|
|
11280
11287
|
Ii as EventModelPresentationChangeContext,
|
|
@@ -11301,7 +11308,7 @@ export {
|
|
|
11301
11308
|
dc as HIT_TEST_ATTRIBUTES,
|
|
11302
11309
|
Ki as HeaderDragGhost,
|
|
11303
11310
|
Ha as HostedEventModelBoard,
|
|
11304
|
-
|
|
11311
|
+
$p as INTERACTIVE_SELECTOR,
|
|
11305
11312
|
vi as InteractionCard,
|
|
11306
11313
|
nr as InteractionCell,
|
|
11307
11314
|
ot as InteractionMiniCard,
|
|
@@ -11361,9 +11368,9 @@ export {
|
|
|
11361
11368
|
Wh as SliceInteraction,
|
|
11362
11369
|
rg as SliceLines,
|
|
11363
11370
|
Lg as SliceLinks,
|
|
11364
|
-
|
|
11371
|
+
_p as SlicePlaceholder,
|
|
11365
11372
|
Nv as SlicePreviewHeader,
|
|
11366
|
-
|
|
11373
|
+
Ap as SliceProblemIndicator,
|
|
11367
11374
|
wv as SliceProblemsProvider,
|
|
11368
11375
|
Cv as SliceProvider,
|
|
11369
11376
|
sh as SliceRows,
|
|
@@ -11396,8 +11403,8 @@ export {
|
|
|
11396
11403
|
Wg as StickyNoteState,
|
|
11397
11404
|
Ba as StickyNotes,
|
|
11398
11405
|
bh as SystemCell,
|
|
11399
|
-
|
|
11400
|
-
|
|
11406
|
+
Pp as TOUCH_LONG_PRESS_MS,
|
|
11407
|
+
Tp as TOUCH_LONG_PRESS_TOLERANCE,
|
|
11401
11408
|
ng as ThenSection,
|
|
11402
11409
|
mt as TranslationDirection,
|
|
11403
11410
|
Ev as TranslationDirectionToggle,
|
|
@@ -11479,10 +11486,10 @@ export {
|
|
|
11479
11486
|
kl as defaultDetailsVisibilityState,
|
|
11480
11487
|
Qe as defaultEventModelMessages,
|
|
11481
11488
|
Il as defaultEventModelPresentation,
|
|
11482
|
-
|
|
11483
|
-
|
|
11489
|
+
qp as defaultEventName,
|
|
11490
|
+
Bp as defaultFeatureName,
|
|
11484
11491
|
Ai as defaultMeasureLabelWidth,
|
|
11485
|
-
|
|
11492
|
+
Fp as defaultModuleName,
|
|
11486
11493
|
_t as defaultSpecificationValueMessages,
|
|
11487
11494
|
Cr as defaultViewOptionsMessages,
|
|
11488
11495
|
Fa as describeStickyNoteColour,
|
|
@@ -11524,6 +11531,7 @@ export {
|
|
|
11524
11531
|
Dg as keyBelongsToBoard,
|
|
11525
11532
|
Fg as keyDeletesBoardElements,
|
|
11526
11533
|
bv as lastInteractionTarget,
|
|
11534
|
+
Ip as leftToolbarInset,
|
|
11527
11535
|
up as linkAnchor,
|
|
11528
11536
|
Ll as linkSides,
|
|
11529
11537
|
Eg as measureSliceAnchors,
|
|
@@ -11536,7 +11544,7 @@ export {
|
|
|
11536
11544
|
Zv as moveSliceInArea,
|
|
11537
11545
|
Gu as nearestPascalCaseBreakIndex,
|
|
11538
11546
|
Sr as newCollectionSize,
|
|
11539
|
-
|
|
11547
|
+
Op as nextModulePosition,
|
|
11540
11548
|
Ya as noArtifactNames,
|
|
11541
11549
|
ur as orderFeatures,
|
|
11542
11550
|
oa as orderModules,
|
|
@@ -11596,7 +11604,7 @@ export {
|
|
|
11596
11604
|
Yv as settleAddedSlice,
|
|
11597
11605
|
ht as shownText,
|
|
11598
11606
|
Ym as shownWhenEvent,
|
|
11599
|
-
|
|
11607
|
+
Dp as showsAddNewEventButton,
|
|
11600
11608
|
uh as showsEventReferencePlaceholder,
|
|
11601
11609
|
mh as showsExternalEventPicker,
|
|
11602
11610
|
Xt as sideAnchor,
|