@tinyactors/scxmljs 0.2.0-dev.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/dist/explorer/element.d.ts +5 -3
- package/dist/explorer/element.js +523 -262
- package/dist/explorer/element.js.map +1 -1
- package/dist/explorer/strings.d.ts +41 -23
- package/dist/explorer/strings.js +24 -15
- package/dist/explorer/strings.js.map +1 -1
- package/dist/explorer/styles.d.ts +9 -1
- package/dist/explorer/styles.js +291 -150
- package/dist/explorer/styles.js.map +1 -1
- package/dist/explorer.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/model.d.ts +4 -1
- package/dist/model.js +7 -1
- package/dist/model.js.map +1 -1
- package/dist/session.d.ts +22 -9
- package/dist/session.js +53 -13
- package/dist/session.js.map +1 -1
- package/dist/themes/tinyactors.css +1 -0
- package/dist/trusted.d.ts +1 -0
- package/dist/ui/icons.d.ts +31 -0
- package/dist/ui/icons.js +186 -0
- package/dist/ui/icons.js.map +1 -0
- package/dist/ui/notation.d.ts +53 -0
- package/dist/ui/notation.js +117 -0
- package/dist/ui/notation.js.map +1 -0
- package/dist/ui/svg.d.ts +4 -0
- package/dist/ui/svg.js +26 -0
- package/dist/ui/svg.js.map +1 -1
- package/dist/ui/theme.d.ts +1 -1
- package/dist/ui/theme.js +6 -0
- package/dist/ui/theme.js.map +1 -1
- package/dist/view/describe.d.ts +17 -0
- package/dist/view/describe.js +49 -0
- package/dist/view/describe.js.map +1 -0
- package/dist/view/element.d.ts +39 -9
- package/dist/view/element.js +723 -86
- package/dist/view/element.js.map +1 -1
- package/dist/view/layout.d.ts +20 -0
- package/dist/view/layout.js +205 -29
- package/dist/view/layout.js.map +1 -1
- package/dist/view/strings.d.ts +34 -8
- package/dist/view/strings.js +19 -6
- package/dist/view/strings.js.map +1 -1
- package/dist/view/styles.d.ts +1 -1
- package/dist/view/styles.js +107 -21
- package/dist/view/styles.js.map +1 -1
- package/dist/view.d.ts +8 -4
- package/dist/view.js +6 -3
- package/dist/view.js.map +1 -1
- package/package.json +2 -2
|
@@ -28,13 +28,13 @@ export interface ExplorerStrings {
|
|
|
28
28
|
follow: string;
|
|
29
29
|
/** Tooltip of the follow toggle. */
|
|
30
30
|
followHint: string;
|
|
31
|
-
/** Play button (while paused). English: "
|
|
31
|
+
/** Play button's name (while paused; the button is its icon). English: "Play". */
|
|
32
32
|
play: string;
|
|
33
|
-
/** Pause button (while playing). English: "
|
|
33
|
+
/** Pause button's name (while playing). English: "Pause". */
|
|
34
34
|
pause: string;
|
|
35
35
|
/** Tooltip of the play/pause button. English: "Play / pause (Space)". */
|
|
36
36
|
playHint: string;
|
|
37
|
-
/** Step button. English: "Step
|
|
37
|
+
/** Step button's name (the button is its icon). English: "Step". */
|
|
38
38
|
step: string;
|
|
39
39
|
/** Tooltip of the step button. English: "Run until the next step of any machine (.)". */
|
|
40
40
|
stepHint: string;
|
|
@@ -42,7 +42,7 @@ export interface ExplorerStrings {
|
|
|
42
42
|
speedLabel: string;
|
|
43
43
|
/** Tooltip of the virtual time readout. English: "virtual time". */
|
|
44
44
|
virtualTime: string;
|
|
45
|
-
/** Virtual time display, e.g. "
|
|
45
|
+
/** Virtual time display, e.g. "12.4 s". */
|
|
46
46
|
clockTime: (formatted: string) => string;
|
|
47
47
|
/** Tasks ready to run now. */
|
|
48
48
|
queued: (n: number) => string;
|
|
@@ -60,7 +60,7 @@ export interface ExplorerStrings {
|
|
|
60
60
|
findState: string;
|
|
61
61
|
/** Accessible name of the tree filter. English: "Filter states". */
|
|
62
62
|
filterStates: string;
|
|
63
|
-
/**
|
|
63
|
+
/** Name of the "active states only" filter (the button is the funnel glyph). English: "Only active states". */
|
|
64
64
|
activeOnly: string;
|
|
65
65
|
/** Accessible name of the tree. English: "States". */
|
|
66
66
|
treeLabel: string;
|
|
@@ -96,7 +96,7 @@ export interface ExplorerStrings {
|
|
|
96
96
|
layoutDiagram: string;
|
|
97
97
|
/** Focus layout switch: list. English: "List". */
|
|
98
98
|
layoutList: string;
|
|
99
|
-
/** Subtitle of the focus: kind, direct children, all descendants. */
|
|
99
|
+
/** Subtitle of the focus: kind, direct children, all descendants (the English default leaves the last out). */
|
|
100
100
|
focusSummary: (kind: string, children: number, inside: number) => string;
|
|
101
101
|
/** Link to the parent state. */
|
|
102
102
|
up: (parent: string) => string;
|
|
@@ -128,12 +128,6 @@ export interface ExplorerStrings {
|
|
|
128
128
|
events: (n: number) => string;
|
|
129
129
|
/** List group: children on the active path. English: "On the active path". */
|
|
130
130
|
groupActivePath: string;
|
|
131
|
-
/** List group: children one transition away from the active path. English: "One step away". */
|
|
132
|
-
groupOneStep: string;
|
|
133
|
-
/** List group: all other children. English: "Everything else". */
|
|
134
|
-
groupElse: string;
|
|
135
|
-
/** Count after a list group title. */
|
|
136
|
-
groupCount: (title: string, n: number) => string;
|
|
137
131
|
/** Title of a list row's drill-in button. */
|
|
138
132
|
statesInside: (n: number) => string;
|
|
139
133
|
/** More targets than shown. */
|
|
@@ -144,6 +138,28 @@ export interface ExplorerStrings {
|
|
|
144
138
|
showAll: (n: number) => string;
|
|
145
139
|
/** Open a lane that has more states than shown. */
|
|
146
140
|
openLane: (n: number) => string;
|
|
141
|
+
/** Name of the entry actions' glyph. English: "on entry". */
|
|
142
|
+
onEntry: string;
|
|
143
|
+
/** Name of the exit actions' glyph. English: "on exit". */
|
|
144
|
+
onExit: string;
|
|
145
|
+
/** Name of the invokes' glyph. English: "invokes". */
|
|
146
|
+
invokesGlyph: string;
|
|
147
|
+
/** Name of the "sends" glyph (send, raise). English: "sends". */
|
|
148
|
+
sendsGlyph: string;
|
|
149
|
+
/** Name of the "logs" glyph. English: "logs". */
|
|
150
|
+
logsGlyph: string;
|
|
151
|
+
/** A transition without an event. English: "always". */
|
|
152
|
+
eventless: string;
|
|
153
|
+
/** Tooltip and screen-reader text of a transition's condition. English: "if <cond>". */
|
|
154
|
+
guard: (cond: string) => string;
|
|
155
|
+
/** Marks a transition taken in the last step. English: "just taken". */
|
|
156
|
+
justTaken: string;
|
|
157
|
+
/** Marks the state the machine was in before the last step. English: "last visited". */
|
|
158
|
+
lastVisited: string;
|
|
159
|
+
/** Opens the detail of a state from its expanded list row. English: "Details →". */
|
|
160
|
+
openDetail: string;
|
|
161
|
+
/** Accessible name of the last-step line. English: "Last step". */
|
|
162
|
+
lastStep: string;
|
|
147
163
|
/** Title of the System level. English: "System". */
|
|
148
164
|
system: string;
|
|
149
165
|
/** Subtitle of the System level. */
|
|
@@ -162,7 +178,7 @@ export interface ExplorerStrings {
|
|
|
162
178
|
status: (status: "idle" | "running" | "done") => string;
|
|
163
179
|
/** Tooltip of a service's traffic counts. */
|
|
164
180
|
trafficHint: string;
|
|
165
|
-
/** Traffic
|
|
181
|
+
/** Traffic on a service card: messages to it and from it (the English default gives the total). */
|
|
166
182
|
traffic: (out: number, inn: number) => string;
|
|
167
183
|
/** Detail pane prompt before a service is selected. English: "Select a service or a machine.". */
|
|
168
184
|
selectService: string;
|
|
@@ -256,16 +272,18 @@ export interface ExplorerStrings {
|
|
|
256
272
|
columnIf: string;
|
|
257
273
|
/** Transitions table column: target. English: "to". */
|
|
258
274
|
columnTo: string;
|
|
259
|
-
/**
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
|
|
275
|
+
/** The single panel's link back to the tree. English: "‹ States". */
|
|
276
|
+
backToStates: string;
|
|
277
|
+
/** Accessible name of that link. */
|
|
278
|
+
backToStatesLabel: string;
|
|
279
|
+
/** Accessible name of the panel with the tree (and, when there's one panel, the inspector). */
|
|
280
|
+
panelLabel: string;
|
|
281
|
+
/** Accessible name of the inspector's own panel (wide layouts). */
|
|
282
|
+
inspectorLabel: string;
|
|
283
|
+
/** The sheet's handle (narrow layouts), while it can open further. */
|
|
284
|
+
sheetExpand: string;
|
|
285
|
+
/** The sheet's handle, when it's all the way up. */
|
|
286
|
+
sheetCollapse: string;
|
|
269
287
|
/** Announced after a step: machine, event and the transitions taken. */
|
|
270
288
|
announceStep: (step: StepInfo) => string;
|
|
271
289
|
/** Announced when the UI sends an event. */
|
package/dist/explorer/strings.js
CHANGED
|
@@ -10,14 +10,14 @@ export const defaultStrings = {
|
|
|
10
10
|
showWholePath: "Show the whole path",
|
|
11
11
|
follow: "Follow",
|
|
12
12
|
followHint: "Keep the focus on the part of the machine that is moving",
|
|
13
|
-
play: "
|
|
14
|
-
pause: "
|
|
13
|
+
play: "Play",
|
|
14
|
+
pause: "Pause",
|
|
15
15
|
playHint: "Play / pause (Space)",
|
|
16
|
-
step: "Step
|
|
16
|
+
step: "Step",
|
|
17
17
|
stepHint: "Run until the next step of any machine (.)",
|
|
18
18
|
speedLabel: "Speed",
|
|
19
19
|
virtualTime: "virtual time",
|
|
20
|
-
clockTime: (t) =>
|
|
20
|
+
clockTime: (t) => `${t}`,
|
|
21
21
|
queued: (n) => `${n} queued`,
|
|
22
22
|
nextTimer: (t) => `next timer in ${t}`,
|
|
23
23
|
idle: "idle",
|
|
@@ -26,7 +26,7 @@ export const defaultStrings = {
|
|
|
26
26
|
statesPane: "States",
|
|
27
27
|
findState: "Find state…",
|
|
28
28
|
filterStates: "Filter states",
|
|
29
|
-
activeOnly: "active",
|
|
29
|
+
activeOnly: "Only active states",
|
|
30
30
|
treeLabel: "States",
|
|
31
31
|
matchesOf: (m, t) => `${m} / ${t}`,
|
|
32
32
|
noStateMatches: "No state matches.",
|
|
@@ -44,7 +44,7 @@ export const defaultStrings = {
|
|
|
44
44
|
layoutAuto: "Auto",
|
|
45
45
|
layoutDiagram: "Diagram",
|
|
46
46
|
layoutList: "List",
|
|
47
|
-
focusSummary: (kind, n
|
|
47
|
+
focusSummary: (kind, n) => `${kind} · ${count(n, "state", "states")}`,
|
|
48
48
|
up: (p) => `↑ ${p}`,
|
|
49
49
|
leavesTo: "Leaves to",
|
|
50
50
|
enteredFrom: "Entered from",
|
|
@@ -60,14 +60,22 @@ export const defaultStrings = {
|
|
|
60
60
|
staysInside: "transitions that stay inside",
|
|
61
61
|
events: (n) => count(n, "event", "events"),
|
|
62
62
|
groupActivePath: "On the active path",
|
|
63
|
-
groupOneStep: "One step away",
|
|
64
|
-
groupElse: "Everything else",
|
|
65
|
-
groupCount: (title, n) => `${title} · ${n}`,
|
|
66
63
|
statesInside: (n) => `${count(n, "state", "states")} inside`,
|
|
67
64
|
moreTargets: (n) => `+${count(n, "target", "targets")}`,
|
|
68
65
|
findAmongStates: (n) => `Find among ${count(n, "state", "states")}…`,
|
|
69
66
|
showAll: (n) => `Show all ${n}`,
|
|
70
67
|
openLane: (n) => `+${n} more — open lane`,
|
|
68
|
+
onEntry: "on entry",
|
|
69
|
+
onExit: "on exit",
|
|
70
|
+
invokesGlyph: "invokes",
|
|
71
|
+
sendsGlyph: "sends",
|
|
72
|
+
logsGlyph: "logs",
|
|
73
|
+
eventless: "always",
|
|
74
|
+
guard: (cond) => `if ${cond}`,
|
|
75
|
+
justTaken: "just taken",
|
|
76
|
+
lastVisited: "last visited",
|
|
77
|
+
openDetail: "Details →",
|
|
78
|
+
lastStep: "Last step",
|
|
71
79
|
system: "System",
|
|
72
80
|
systemSummary: (m, s, msg) => `${count(m, "machine", "machines")} · ${count(s, "external service", "external services")} · ${count(msg, "message", "messages")}`,
|
|
73
81
|
machines: "Machines",
|
|
@@ -77,7 +85,7 @@ export const defaultStrings = {
|
|
|
77
85
|
talksTo: (names) => `talks to ${names}`,
|
|
78
86
|
status: (s) => s,
|
|
79
87
|
trafficHint: "requests / replies and events",
|
|
80
|
-
traffic: (out, inn) =>
|
|
88
|
+
traffic: (out, inn) => count(out + inn, "message", "messages"),
|
|
81
89
|
selectService: "Select a service or a machine.",
|
|
82
90
|
talksWith: "Talks with",
|
|
83
91
|
recentTraffic: "Recent traffic",
|
|
@@ -124,11 +132,12 @@ export const defaultStrings = {
|
|
|
124
132
|
columnEvent: "event",
|
|
125
133
|
columnIf: "if",
|
|
126
134
|
columnTo: "to",
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
135
|
+
backToStates: "‹ States",
|
|
136
|
+
backToStatesLabel: "Back to the states",
|
|
137
|
+
panelLabel: "States and events",
|
|
138
|
+
inspectorLabel: "Inspector",
|
|
139
|
+
sheetExpand: "Show more",
|
|
140
|
+
sheetCollapse: "Show less",
|
|
132
141
|
announceStep: (s) => `${s.machine}: ${s.moves.length ? s.moves.join(", ") : `${s.event ?? "start"}, no transition`}`,
|
|
133
142
|
announceSent: (name, machine) => `Sent ${name} to ${machine}`,
|
|
134
143
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strings.js","sourceRoot":"","sources":["../../src/explorer/strings.ts"],"names":[],"mappings":"AAuSA,MAAM,MAAM,GAAG,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AAC1C,mDAAmD;AACnD,MAAM,KAAK,GAAG,CAAC,CAAS,EAAE,GAAW,EAAE,KAAa,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;AAE5G,sGAAsG;AACtG,MAAM,CAAC,MAAM,cAAc,GAAoB;IAC7C,WAAW,EAAE,QAAQ;IACrB,YAAY,EAAE,SAAS;IACvB,UAAU,EAAE,OAAO;IACnB,eAAe,EAAE,YAAY;IAC7B,aAAa,EAAE,qBAAqB;IACpC,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,0DAA0D;IAEtE,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,sBAAsB;IAChC,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,4CAA4C;IACtD,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,cAAc;IAC3B,SAAS,E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AE,QAAQ;IAEnB,YAAY,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,OAAO,iBAAiB,EAAE;IACpH,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,QAAQ,IAAI,OAAO,OAAO,EAAE;CAC9D,CAAC","sourcesContent":["/**\n * Every user-visible string of `<scxml-explorer>`, with English defaults.\n *\n * Hosts translate by setting a partial override:\n *\n * explorer.strings = { follow: \"Folgen\", transitions: (n) => `${n} Übergänge` };\n *\n * Plain keys are strings; keys that interpolate values or counts are functions,\n * so a translation controls word order and plural forms (the English defaults\n * use `Intl.PluralRules`).\n */\nimport type { StepInfo } from \"./viewmodel.ts\";\n\n/** The kinds of state the explorer names. */\nexport type StateKindName = \"atomic\" | \"compound\" | \"parallel\" | \"final\" | \"history\" | \"scxml\";\n\n/** Every user-visible string of `<scxml-explorer>`. Set `explorer.strings` to a partial object to translate. */\nexport interface ExplorerStrings {\n // ── header ──\n /** Level switch: the System level. */\n levelSystem: string;\n /** Level switch: the Machine level. */\n levelMachine: string;\n /** Accessible name of the level switch. */\n levelLabel: string;\n /** Accessible name of the breadcrumb navigation. */\n breadcrumbLabel: string;\n /** Title of the \"…\" crumb that expands a long path. */\n showWholePath: string;\n /** The follow toggle. */\n follow: string;\n /** Tooltip of the follow toggle. */\n followHint: string;\n\n // ── playback ──\n /** Play button (while paused). English: \"▶ Play\". */\n play: string;\n /** Pause button (while playing). English: \"⏸ Pause\". */\n pause: string;\n /** Tooltip of the play/pause button. English: \"Play / pause (Space)\". */\n playHint: string;\n /** Step button. English: \"Step ⏭\". */\n step: string;\n /** Tooltip of the step button. English: \"Run until the next step of any machine (.)\". */\n stepHint: string;\n /** Accessible name of the speed buttons. English: \"Speed\". */\n speedLabel: string;\n /** Tooltip of the virtual time readout. English: \"virtual time\". */\n virtualTime: string;\n /** Virtual time display, e.g. \"t = 12.4 s\". */\n clockTime: (formatted: string) => string;\n /** Tasks ready to run now. */\n queued: (n: number) => string;\n /** Time until the next timer fires. */\n nextTimer: (formatted: string) => string;\n /** Nothing pending on the clock. */\n idle: string;\n /** The machine's first step (no triggering event). */\n start: string;\n /** A step in which no transition fired. */\n noTransition: string;\n\n // ── tree ──\n /** Heading of the tree pane. English: \"States\". */\n statesPane: string;\n /** Placeholder of the tree filter. English: \"Find state…\". */\n findState: string;\n /** Accessible name of the tree filter. English: \"Filter states\". */\n filterStates: string;\n /** Label of the \"active states only\" toggle. English: \"active\". */\n activeOnly: string;\n /** Accessible name of the tree. English: \"States\". */\n treeLabel: string;\n /** Tree count while filtering: matches of total. */\n matchesOf: (matches: number, total: number) => string;\n /** Tree empty state while filtering. English: \"No state matches.\". */\n noStateMatches: string;\n /** Tree empty state for a chart without states. English: \"No states.\". */\n noStates: string;\n /** Accessible name of a tree row's expand button. English: \"Expand\". */\n expand: string;\n /** Accessible name of a tree row's collapse button. English: \"Collapse\". */\n collapse: string;\n\n // ── state status (visible badges and screen-reader text) ──\n /** Badge on active states. English: \"active\". */\n active: string;\n /** Badge on inactive states. English: \"inactive\". */\n inactive: string;\n /** Badge on active states waiting on an I/O processor or invoked service. English: \"waiting\". */\n waiting: string;\n /** Badge on a terminated machine. English: \"terminated\". */\n terminated: string;\n /** Screen-reader suffix for a state on the active path that isn't active itself. */\n containsActive: string;\n /** Name of a kind of state. */\n kind: (kind: StateKindName) => string;\n /** Title of the initial-state marker. */\n initial: string;\n\n // ── focus ──\n /** Accessible name of the focus layout switch. English: \"Layout\". */\n layoutLabel: string;\n /** Focus layout switch: automatic. English: \"Auto\". */\n layoutAuto: string;\n /** Focus layout switch: diagram. English: \"Diagram\". */\n layoutDiagram: string;\n /** Focus layout switch: list. English: \"List\". */\n layoutList: string;\n /** Subtitle of the focus: kind, direct children, all descendants. */\n focusSummary: (kind: string, children: number, inside: number) => string;\n /** Link to the parent state. */\n up: (parent: string) => string;\n /** Heading of the exits (\"doors\" leaving the focus). English: \"Leaves to\". */\n leavesTo: string;\n /** Heading of the entries (\"doors\" into the focus). English: \"Entered from\". */\n enteredFrom: string;\n /** Heading of a state's authoring warnings (`model.warnings`) in its detail. */\n warningsTitle: string;\n /** Tooltip of a door. */\n transitions: (n: number) => string;\n /** Where a door's state lives. */\n inState: (container: string) => string;\n /** Which child of the focus a door leaves from. */\n fromState: (child: string) => string;\n /** Stand-in for the machine as a door's container. */\n machine: string;\n /** Collapse a list expanded with \"+N more\". English: \"Show fewer\". */\n showFewer: string;\n /** \"+N more\" buttons. */\n more: (n: number) => string;\n /** Drill into a card's states. */\n inside: (n: number) => string;\n /** Number of invokes in a state. */\n invokes: (n: number) => string;\n /** Tooltip for the count of transitions that stay inside a state. */\n staysInside: string;\n /** Number of events a state reacts to. */\n events: (n: number) => string;\n /** List group: children on the active path. English: \"On the active path\". */\n groupActivePath: string;\n /** List group: children one transition away from the active path. English: \"One step away\". */\n groupOneStep: string;\n /** List group: all other children. English: \"Everything else\". */\n groupElse: string;\n /** Count after a list group title. */\n groupCount: (title: string, n: number) => string;\n /** Title of a list row's drill-in button. */\n statesInside: (n: number) => string;\n /** More targets than shown. */\n moreTargets: (n: number) => string;\n /** Search in a large focus list. */\n findAmongStates: (n: number) => string;\n /** Show every child of a large focus list (with count). */\n showAll: (n: number) => string;\n /** Open a lane that has more states than shown. */\n openLane: (n: number) => string;\n\n // ── system ──\n /** Title of the System level. English: \"System\". */\n system: string;\n /** Subtitle of the System level. */\n systemSummary: (machines: number, services: number, messages: number) => string;\n /** Heading of the machines column. English: \"Machines\". */\n machines: string;\n /** Heading of the external services column. English: \"External services\". */\n services: string;\n /** Placeholder of the machine filter (with the number of machines). */\n findAmongMachines: (n: number) => string;\n /** How an invoked machine was started. */\n invokedAs: (invokeid: string, from?: string) => string;\n /** Machine card: the machines and services it talks to. */\n talksTo: (names: string) => string;\n /** A machine's status. */\n status: (status: \"idle\" | \"running\" | \"done\") => string;\n /** Tooltip of a service's traffic counts. */\n trafficHint: string;\n /** Traffic counts on a service card. */\n traffic: (out: number, inn: number) => string;\n /** Detail pane prompt before a service is selected. English: \"Select a service or a machine.\". */\n selectService: string;\n /** Heading of a service's connections. English: \"Talks with\". */\n talksWith: string;\n /** Heading of a service's traffic log. English: \"Recent traffic\". */\n recentTraffic: string;\n\n // ── accepted events ──\n /** Inspector switch: the accepted events, with their count. */\n accepts: (n: number) => string;\n /** Inspector switch: state detail. English: \"State\". */\n stateTab: string;\n /** Inspector switch: service detail. English: \"Service\". */\n serviceTab: string;\n /** Accessible name of the event scope switch. English: \"Scope\". */\n scopeLabel: string;\n /** Scope switch: events accepted inside the focus (with count). */\n scopeHere: (n: number) => string;\n /** Scope switch: also those inherited from ancestors (with count). */\n scopeInherited: (n: number) => string;\n /** Scope switch: all accepted events (with count). */\n scopeAll: (n: number) => string;\n /** Tag on events accepted by an ancestor of the focus. */\n inherited: string;\n /** Tag on events accepted outside the focus. */\n elsewhere: string;\n /** Placeholder of the event filter. English: \"Find event…\". */\n findEvent: string;\n /** Accessible name of the event filter. English: \"Filter events\". */\n filterEvents: string;\n /** Label of the event data field. English: \"data\". */\n eventData: string;\n /** Accessible name of the event data field. English: \"Event data (JSON)\". */\n eventDataLabel: string;\n /** Validation message for event data that isn't JSON. English: \"invalid JSON\". */\n invalidJson: string;\n /** Events empty state while filtering. English: \"No accepted event matches.\". */\n noEventMatches: string;\n /** Events empty state after the machine terminated. English: \"The machine has terminated.\". */\n machineTerminated: string;\n /** Events empty state when nothing is accepted. English: \"Nothing is accepted right now.\". */\n nothingAccepted: string;\n /** Group name for events without a dotted prefix. English: \"(no prefix)\". */\n noPrefix: string;\n /** Send button. English: \"Send\". */\n send: string;\n /** Accessible name / tooltip of a Send button. */\n sendEvent: (name: string) => string;\n /** Tooltip of a disabled Send button for a wildcard descriptor. English: \"a wildcard can't be sent\". */\n cannotSendWildcard: string;\n /** A transition without a target. */\n stays: string;\n /** Marks an internal transition. English: \"(internal)\". */\n internal: string;\n /** Narrow layout: link to the full list of accepted events. */\n allEvents: (n: number) => string;\n /** Accessible name of the accepted-events list. English: \"Accepted events\". */\n acceptedEventsLabel: string;\n\n // ── detail ──\n /** Detail pane: where a top-level state lives. English: \"top level\". */\n topLevel: string;\n /** Detail pane row label: kind. English: \"kind\". */\n detailKind: string;\n /** Detail pane row label: id. English: \"id\". */\n detailId: string;\n /** Detail pane row label: nested states. English: \"states\". */\n detailStates: string;\n /** Direct children and all descendants. */\n directAndInside: (direct: number, inside: number) => string;\n /** Detail pane row label: initial state. English: \"initial\". */\n detailInitial: string;\n /** Detail pane row label: history type. English: \"history\". */\n detailHistory: string;\n /** Detail pane row label: data variables. English: \"data\". */\n detailData: string;\n /** Focus a state from its detail pane. */\n focusState: (name: string) => string;\n /** Detail pane heading: entry and exit actions. English: \"Actions\". */\n actions: string;\n /** Prefix for entry actions. English: \"entry\". */\n entry: string;\n /** Prefix for exit actions. English: \"exit\". */\n exit: string;\n /** Detail pane heading: invokes. English: \"Invokes\". */\n invokesTitle: string;\n /** An invoke without `src` (inline content). English: \"(inline)\". */\n inline: string;\n /** Detail pane heading: transitions. English: \"Transitions\". */\n transitionsTitle: string;\n /** Transitions table column: event. English: \"event\". */\n columnEvent: string;\n /** Transitions table column: condition. English: \"if\". */\n columnIf: string;\n /** Transitions table column: target. English: \"to\". */\n columnTo: string;\n\n // ── narrow layout tabs ──\n /** Narrow layout tab: System. English: \"System\". */\n tabSystem: string;\n /** Narrow layout tab: tree. English: \"States\". */\n tabStates: string;\n /** Narrow layout tab: focus. English: \"Focus\". */\n tabFocus: string;\n /** Narrow layout tab: accepted events. English: \"Accepts\". */\n tabEvents: string;\n /** Narrow layout tab: detail. English: \"Detail\". */\n tabDetail: string;\n\n // ── live region (screen readers) ──\n /** Announced after a step: machine, event and the transitions taken. */\n announceStep: (step: StepInfo) => string;\n /** Announced when the UI sends an event. */\n announceSent: (name: string, machine: string) => string;\n}\n\nconst plural = new Intl.PluralRules(\"en\");\n/** English count phrase: \"1 state\", \"3 states\". */\nconst count = (n: number, one: string, other: string) => `${n} ${plural.select(n) === \"one\" ? one : other}`;\n\n/** The English defaults of `ExplorerStrings`; unset keys of `explorer.strings` fall back to these. */\nexport const defaultStrings: ExplorerStrings = {\n levelSystem: \"System\",\n levelMachine: \"Machine\",\n levelLabel: \"Level\",\n breadcrumbLabel: \"Breadcrumb\",\n showWholePath: \"Show the whole path\",\n follow: \"Follow\",\n followHint: \"Keep the focus on the part of the machine that is moving\",\n\n play: \"▶ Play\",\n pause: \"⏸ Pause\",\n playHint: \"Play / pause (Space)\",\n step: \"Step ⏭\",\n stepHint: \"Run until the next step of any machine (.)\",\n speedLabel: \"Speed\",\n virtualTime: \"virtual time\",\n clockTime: (t) => `t = ${t}`,\n queued: (n) => `${n} queued`,\n nextTimer: (t) => `next timer in ${t}`,\n idle: \"idle\",\n start: \"start\",\n noTransition: \"no transition\",\n\n statesPane: \"States\",\n findState: \"Find state…\",\n filterStates: \"Filter states\",\n activeOnly: \"active\",\n treeLabel: \"States\",\n matchesOf: (m, t) => `${m} / ${t}`,\n noStateMatches: \"No state matches.\",\n noStates: \"No states.\",\n expand: \"Expand\",\n collapse: \"Collapse\",\n\n active: \"active\",\n inactive: \"inactive\",\n waiting: \"waiting\",\n terminated: \"terminated\",\n containsActive: \"contains active states\",\n kind: (k) => k,\n initial: \"initial\",\n\n layoutLabel: \"Layout\",\n layoutAuto: \"Auto\",\n layoutDiagram: \"Diagram\",\n layoutList: \"List\",\n focusSummary: (kind, n, inside) => `${kind} · ${count(n, \"state\", \"states\")} · ${inside} inside`,\n up: (p) => `↑ ${p}`,\n leavesTo: \"Leaves to\",\n enteredFrom: \"Entered from\",\n warningsTitle: \"Warnings\",\n transitions: (n) => count(n, \"transition\", \"transitions\"),\n inState: (c) => `in ${c}`,\n fromState: (c) => `from ${c}`,\n machine: \"machine\",\n showFewer: \"Show fewer\",\n more: (n) => `+${n} more`,\n inside: (n) => `${n} inside →`,\n invokes: (n) => `⇲ ${count(n, \"invoke\", \"invokes\")}`,\n staysInside: \"transitions that stay inside\",\n events: (n) => count(n, \"event\", \"events\"),\n groupActivePath: \"On the active path\",\n groupOneStep: \"One step away\",\n groupElse: \"Everything else\",\n groupCount: (title, n) => `${title} · ${n}`,\n statesInside: (n) => `${count(n, \"state\", \"states\")} inside`,\n moreTargets: (n) => `+${count(n, \"target\", \"targets\")}`,\n findAmongStates: (n) => `Find among ${count(n, \"state\", \"states\")}…`,\n showAll: (n) => `Show all ${n}`,\n openLane: (n) => `+${n} more — open lane`,\n\n system: \"System\",\n systemSummary: (m, s, msg) =>\n `${count(m, \"machine\", \"machines\")} · ${count(s, \"external service\", \"external services\")} · ${count(msg, \"message\", \"messages\")}`,\n machines: \"Machines\",\n services: \"External services\",\n findAmongMachines: (n) => `Find among ${count(n, \"machine\", \"machines\")}…`,\n invokedAs: (id, from) => `invoked as ${id}${from ? ` from ${from}` : \"\"}`,\n talksTo: (names) => `talks to ${names}`,\n status: (s) => s,\n trafficHint: \"requests / replies and events\",\n traffic: (out, inn) => `${out} ↗ ${inn} ↙`,\n selectService: \"Select a service or a machine.\",\n talksWith: \"Talks with\",\n recentTraffic: \"Recent traffic\",\n\n accepts: (n) => `Accepts ${n}`,\n stateTab: \"State\",\n serviceTab: \"Service\",\n scopeLabel: \"Scope\",\n scopeHere: (n) => `Here ${n}`,\n scopeInherited: (n) => `+ inherited ${n}`,\n scopeAll: (n) => `All ${n}`,\n inherited: \"inherited\",\n elsewhere: \"elsewhere\",\n findEvent: \"Find event…\",\n filterEvents: \"Filter events\",\n eventData: \"data\",\n eventDataLabel: \"Event data (JSON)\",\n invalidJson: \"invalid JSON\",\n noEventMatches: \"No accepted event matches.\",\n machineTerminated: \"The machine has terminated.\",\n nothingAccepted: \"Nothing is accepted right now.\",\n noPrefix: \"(no prefix)\",\n send: \"Send\",\n sendEvent: (name) => `Send ${name}`,\n cannotSendWildcard: \"a wildcard can't be sent\",\n stays: \"stays\",\n internal: \"(internal)\",\n allEvents: (n) => `all ${n} →`,\n acceptedEventsLabel: \"Accepted events\",\n\n topLevel: \"top level\",\n detailKind: \"kind\",\n detailId: \"id\",\n detailStates: \"states\",\n directAndInside: (d, i) => `${d} direct · ${i} inside`,\n detailInitial: \"initial\",\n detailHistory: \"history\",\n detailData: \"data\",\n focusState: (name) => `Focus ${name} →`,\n actions: \"Actions\",\n entry: \"entry\",\n exit: \"exit\",\n invokesTitle: \"Invokes\",\n inline: \"(inline)\",\n transitionsTitle: \"Transitions\",\n columnEvent: \"event\",\n columnIf: \"if\",\n columnTo: \"to\",\n\n tabSystem: \"System\",\n tabStates: \"States\",\n tabFocus: \"Focus\",\n tabEvents: \"Accepts\",\n tabDetail: \"Detail\",\n\n announceStep: (s) => `${s.machine}: ${s.moves.length ? s.moves.join(\", \") : `${s.event ?? \"start\"}, no transition`}`,\n announceSent: (name, machine) => `Sent ${name} to ${machine}`,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"strings.js","sourceRoot":"","sources":["../../src/explorer/strings.ts"],"names":[],"mappings":"AA0TA,MAAM,MAAM,GAAG,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AAC1C,mDAAmD;AACnD,MAAM,KAAK,GAAG,CAAC,CAAS,EAAE,GAAW,EAAE,KAAa,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;AAE5G,sGAAsG;AACtG,MAAM,CAAC,MAAM,cAAc,GAAoB;IAC7C,WAAW,EAAE,QAAQ;IACrB,YAAY,EAAE,SAAS;IACvB,UAAU,EAAE,OAAO;IACnB,eAAe,EAAE,YAAY;IAC7B,aAAa,EAAE,qBAAqB;IACpC,MA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AAM;IAClB,UAAU,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,IAAI,IAAI;IACvC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,SAAS;IACvB,MAAM,EAAE,UAAU;IAClB,gBAAgB,EAAE,aAAa;IAC/B,WAAW,EAAE,OAAO;IACpB,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;IAEd,YAAY,EAAE,UAAU;IACxB,iBAAiB,EAAE,oBAAoB;IACvC,UAAU,EAAE,mBAAmB;IAC/B,cAAc,EAAE,WAAW;IAC3B,WAAW,EAAE,WAAW;IACxB,aAAa,EAAE,WAAW;IAE1B,YAAY,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,OAAO,iBAAiB,EAAE;IACpH,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,QAAQ,IAAI,OAAO,OAAO,EAAE;CAC9D,CAAC","sourcesContent":["/**\n * Every user-visible string of `<scxml-explorer>`, with English defaults.\n *\n * Hosts translate by setting a partial override:\n *\n * explorer.strings = { follow: \"Folgen\", transitions: (n) => `${n} Übergänge` };\n *\n * Plain keys are strings; keys that interpolate values or counts are functions,\n * so a translation controls word order and plural forms (the English defaults\n * use `Intl.PluralRules`).\n */\nimport type { StepInfo } from \"./viewmodel.ts\";\n\n/** The kinds of state the explorer names. */\nexport type StateKindName = \"atomic\" | \"compound\" | \"parallel\" | \"final\" | \"history\" | \"scxml\";\n\n/** Every user-visible string of `<scxml-explorer>`. Set `explorer.strings` to a partial object to translate. */\nexport interface ExplorerStrings {\n // ── header ──\n /** Level switch: the System level. */\n levelSystem: string;\n /** Level switch: the Machine level. */\n levelMachine: string;\n /** Accessible name of the level switch. */\n levelLabel: string;\n /** Accessible name of the breadcrumb navigation. */\n breadcrumbLabel: string;\n /** Title of the \"…\" crumb that expands a long path. */\n showWholePath: string;\n /** The follow toggle. */\n follow: string;\n /** Tooltip of the follow toggle. */\n followHint: string;\n\n // ── playback ──\n /** Play button's name (while paused; the button is its icon). English: \"Play\". */\n play: string;\n /** Pause button's name (while playing). English: \"Pause\". */\n pause: string;\n /** Tooltip of the play/pause button. English: \"Play / pause (Space)\". */\n playHint: string;\n /** Step button's name (the button is its icon). English: \"Step\". */\n step: string;\n /** Tooltip of the step button. English: \"Run until the next step of any machine (.)\". */\n stepHint: string;\n /** Accessible name of the speed buttons. English: \"Speed\". */\n speedLabel: string;\n /** Tooltip of the virtual time readout. English: \"virtual time\". */\n virtualTime: string;\n /** Virtual time display, e.g. \"12.4 s\". */\n clockTime: (formatted: string) => string;\n /** Tasks ready to run now. */\n queued: (n: number) => string;\n /** Time until the next timer fires. */\n nextTimer: (formatted: string) => string;\n /** Nothing pending on the clock. */\n idle: string;\n /** The machine's first step (no triggering event). */\n start: string;\n /** A step in which no transition fired. */\n noTransition: string;\n\n // ── tree ──\n /** Heading of the tree pane. English: \"States\". */\n statesPane: string;\n /** Placeholder of the tree filter. English: \"Find state…\". */\n findState: string;\n /** Accessible name of the tree filter. English: \"Filter states\". */\n filterStates: string;\n /** Name of the \"active states only\" filter (the button is the funnel glyph). English: \"Only active states\". */\n activeOnly: string;\n /** Accessible name of the tree. English: \"States\". */\n treeLabel: string;\n /** Tree count while filtering: matches of total. */\n matchesOf: (matches: number, total: number) => string;\n /** Tree empty state while filtering. English: \"No state matches.\". */\n noStateMatches: string;\n /** Tree empty state for a chart without states. English: \"No states.\". */\n noStates: string;\n /** Accessible name of a tree row's expand button. English: \"Expand\". */\n expand: string;\n /** Accessible name of a tree row's collapse button. English: \"Collapse\". */\n collapse: string;\n\n // ── state status (visible badges and screen-reader text) ──\n /** Badge on active states. English: \"active\". */\n active: string;\n /** Badge on inactive states. English: \"inactive\". */\n inactive: string;\n /** Badge on active states waiting on an I/O processor or invoked service. English: \"waiting\". */\n waiting: string;\n /** Badge on a terminated machine. English: \"terminated\". */\n terminated: string;\n /** Screen-reader suffix for a state on the active path that isn't active itself. */\n containsActive: string;\n /** Name of a kind of state. */\n kind: (kind: StateKindName) => string;\n /** Title of the initial-state marker. */\n initial: string;\n\n // ── focus ──\n /** Accessible name of the focus layout switch. English: \"Layout\". */\n layoutLabel: string;\n /** Focus layout switch: automatic. English: \"Auto\". */\n layoutAuto: string;\n /** Focus layout switch: diagram. English: \"Diagram\". */\n layoutDiagram: string;\n /** Focus layout switch: list. English: \"List\". */\n layoutList: string;\n /** Subtitle of the focus: kind, direct children, all descendants (the English default leaves the last out). */\n focusSummary: (kind: string, children: number, inside: number) => string;\n /** Link to the parent state. */\n up: (parent: string) => string;\n /** Heading of the exits (\"doors\" leaving the focus). English: \"Leaves to\". */\n leavesTo: string;\n /** Heading of the entries (\"doors\" into the focus). English: \"Entered from\". */\n enteredFrom: string;\n /** Heading of a state's authoring warnings (`model.warnings`) in its detail. */\n warningsTitle: string;\n /** Tooltip of a door. */\n transitions: (n: number) => string;\n /** Where a door's state lives. */\n inState: (container: string) => string;\n /** Which child of the focus a door leaves from. */\n fromState: (child: string) => string;\n /** Stand-in for the machine as a door's container. */\n machine: string;\n /** Collapse a list expanded with \"+N more\". English: \"Show fewer\". */\n showFewer: string;\n /** \"+N more\" buttons. */\n more: (n: number) => string;\n /** Drill into a card's states. */\n inside: (n: number) => string;\n /** Number of invokes in a state. */\n invokes: (n: number) => string;\n /** Tooltip for the count of transitions that stay inside a state. */\n staysInside: string;\n /** Number of events a state reacts to. */\n events: (n: number) => string;\n /** List group: children on the active path. English: \"On the active path\". */\n groupActivePath: string;\n /** Title of a list row's drill-in button. */\n statesInside: (n: number) => string;\n /** More targets than shown. */\n moreTargets: (n: number) => string;\n /** Search in a large focus list. */\n findAmongStates: (n: number) => string;\n /** Show every child of a large focus list (with count). */\n showAll: (n: number) => string;\n /** Open a lane that has more states than shown. */\n openLane: (n: number) => string;\n /** Name of the entry actions' glyph. English: \"on entry\". */\n onEntry: string;\n /** Name of the exit actions' glyph. English: \"on exit\". */\n onExit: string;\n /** Name of the invokes' glyph. English: \"invokes\". */\n invokesGlyph: string;\n /** Name of the \"sends\" glyph (send, raise). English: \"sends\". */\n sendsGlyph: string;\n /** Name of the \"logs\" glyph. English: \"logs\". */\n logsGlyph: string;\n\n /** A transition without an event. English: \"always\". */\n eventless: string;\n /** Tooltip and screen-reader text of a transition's condition. English: \"if <cond>\". */\n guard: (cond: string) => string;\n /** Marks a transition taken in the last step. English: \"just taken\". */\n justTaken: string;\n /** Marks the state the machine was in before the last step. English: \"last visited\". */\n lastVisited: string;\n /** Opens the detail of a state from its expanded list row. English: \"Details →\". */\n openDetail: string;\n /** Accessible name of the last-step line. English: \"Last step\". */\n lastStep: string;\n\n // ── system ──\n /** Title of the System level. English: \"System\". */\n system: string;\n /** Subtitle of the System level. */\n systemSummary: (machines: number, services: number, messages: number) => string;\n /** Heading of the machines column. English: \"Machines\". */\n machines: string;\n /** Heading of the external services column. English: \"External services\". */\n services: string;\n /** Placeholder of the machine filter (with the number of machines). */\n findAmongMachines: (n: number) => string;\n /** How an invoked machine was started. */\n invokedAs: (invokeid: string, from?: string) => string;\n /** Machine card: the machines and services it talks to. */\n talksTo: (names: string) => string;\n /** A machine's status. */\n status: (status: \"idle\" | \"running\" | \"done\") => string;\n /** Tooltip of a service's traffic counts. */\n trafficHint: string;\n /** Traffic on a service card: messages to it and from it (the English default gives the total). */\n traffic: (out: number, inn: number) => string;\n /** Detail pane prompt before a service is selected. English: \"Select a service or a machine.\". */\n selectService: string;\n /** Heading of a service's connections. English: \"Talks with\". */\n talksWith: string;\n /** Heading of a service's traffic log. English: \"Recent traffic\". */\n recentTraffic: string;\n\n // ── accepted events ──\n /** Inspector switch: the accepted events, with their count. */\n accepts: (n: number) => string;\n /** Inspector switch: state detail. English: \"State\". */\n stateTab: string;\n /** Inspector switch: service detail. English: \"Service\". */\n serviceTab: string;\n /** Accessible name of the event scope switch. English: \"Scope\". */\n scopeLabel: string;\n /** Scope switch: events accepted inside the focus (with count). */\n scopeHere: (n: number) => string;\n /** Scope switch: also those inherited from ancestors (with count). */\n scopeInherited: (n: number) => string;\n /** Scope switch: all accepted events (with count). */\n scopeAll: (n: number) => string;\n /** Tag on events accepted by an ancestor of the focus. */\n inherited: string;\n /** Tag on events accepted outside the focus. */\n elsewhere: string;\n /** Placeholder of the event filter. English: \"Find event…\". */\n findEvent: string;\n /** Accessible name of the event filter. English: \"Filter events\". */\n filterEvents: string;\n /** Label of the event data field. English: \"data\". */\n eventData: string;\n /** Accessible name of the event data field. English: \"Event data (JSON)\". */\n eventDataLabel: string;\n /** Validation message for event data that isn't JSON. English: \"invalid JSON\". */\n invalidJson: string;\n /** Events empty state while filtering. English: \"No accepted event matches.\". */\n noEventMatches: string;\n /** Events empty state after the machine terminated. English: \"The machine has terminated.\". */\n machineTerminated: string;\n /** Events empty state when nothing is accepted. English: \"Nothing is accepted right now.\". */\n nothingAccepted: string;\n /** Group name for events without a dotted prefix. English: \"(no prefix)\". */\n noPrefix: string;\n /** Send button. English: \"Send\". */\n send: string;\n /** Accessible name / tooltip of a Send button. */\n sendEvent: (name: string) => string;\n /** Tooltip of a disabled Send button for a wildcard descriptor. English: \"a wildcard can't be sent\". */\n cannotSendWildcard: string;\n /** A transition without a target. */\n stays: string;\n /** Marks an internal transition. English: \"(internal)\". */\n internal: string;\n /** Narrow layout: link to the full list of accepted events. */\n allEvents: (n: number) => string;\n /** Accessible name of the accepted-events list. English: \"Accepted events\". */\n acceptedEventsLabel: string;\n\n // ── detail ──\n /** Detail pane: where a top-level state lives. English: \"top level\". */\n topLevel: string;\n /** Detail pane row label: kind. English: \"kind\". */\n detailKind: string;\n /** Detail pane row label: id. English: \"id\". */\n detailId: string;\n /** Detail pane row label: nested states. English: \"states\". */\n detailStates: string;\n /** Direct children and all descendants. */\n directAndInside: (direct: number, inside: number) => string;\n /** Detail pane row label: initial state. English: \"initial\". */\n detailInitial: string;\n /** Detail pane row label: history type. English: \"history\". */\n detailHistory: string;\n /** Detail pane row label: data variables. English: \"data\". */\n detailData: string;\n /** Focus a state from its detail pane. */\n focusState: (name: string) => string;\n /** Detail pane heading: entry and exit actions. English: \"Actions\". */\n actions: string;\n /** Prefix for entry actions. English: \"entry\". */\n entry: string;\n /** Prefix for exit actions. English: \"exit\". */\n exit: string;\n /** Detail pane heading: invokes. English: \"Invokes\". */\n invokesTitle: string;\n /** An invoke without `src` (inline content). English: \"(inline)\". */\n inline: string;\n /** Detail pane heading: transitions. English: \"Transitions\". */\n transitionsTitle: string;\n /** Transitions table column: event. English: \"event\". */\n columnEvent: string;\n /** Transitions table column: condition. English: \"if\". */\n columnIf: string;\n /** Transitions table column: target. English: \"to\". */\n columnTo: string;\n\n // ── panels ──\n /** The single panel's link back to the tree. English: \"‹ States\". */\n backToStates: string;\n /** Accessible name of that link. */\n backToStatesLabel: string;\n /** Accessible name of the panel with the tree (and, when there's one panel, the inspector). */\n panelLabel: string;\n /** Accessible name of the inspector's own panel (wide layouts). */\n inspectorLabel: string;\n /** The sheet's handle (narrow layouts), while it can open further. */\n sheetExpand: string;\n /** The sheet's handle, when it's all the way up. */\n sheetCollapse: string;\n\n // ── live region (screen readers) ──\n /** Announced after a step: machine, event and the transitions taken. */\n announceStep: (step: StepInfo) => string;\n /** Announced when the UI sends an event. */\n announceSent: (name: string, machine: string) => string;\n}\n\nconst plural = new Intl.PluralRules(\"en\");\n/** English count phrase: \"1 state\", \"3 states\". */\nconst count = (n: number, one: string, other: string) => `${n} ${plural.select(n) === \"one\" ? one : other}`;\n\n/** The English defaults of `ExplorerStrings`; unset keys of `explorer.strings` fall back to these. */\nexport const defaultStrings: ExplorerStrings = {\n levelSystem: \"System\",\n levelMachine: \"Machine\",\n levelLabel: \"Level\",\n breadcrumbLabel: \"Breadcrumb\",\n showWholePath: \"Show the whole path\",\n follow: \"Follow\",\n followHint: \"Keep the focus on the part of the machine that is moving\",\n\n play: \"Play\",\n pause: \"Pause\",\n playHint: \"Play / pause (Space)\",\n step: \"Step\",\n stepHint: \"Run until the next step of any machine (.)\",\n speedLabel: \"Speed\",\n virtualTime: \"virtual time\",\n clockTime: (t) => `${t}`,\n queued: (n) => `${n} queued`,\n nextTimer: (t) => `next timer in ${t}`,\n idle: \"idle\",\n start: \"start\",\n noTransition: \"no transition\",\n\n statesPane: \"States\",\n findState: \"Find state…\",\n filterStates: \"Filter states\",\n activeOnly: \"Only active states\",\n treeLabel: \"States\",\n matchesOf: (m, t) => `${m} / ${t}`,\n noStateMatches: \"No state matches.\",\n noStates: \"No states.\",\n expand: \"Expand\",\n collapse: \"Collapse\",\n\n active: \"active\",\n inactive: \"inactive\",\n waiting: \"waiting\",\n terminated: \"terminated\",\n containsActive: \"contains active states\",\n kind: (k) => k,\n initial: \"initial\",\n\n layoutLabel: \"Layout\",\n layoutAuto: \"Auto\",\n layoutDiagram: \"Diagram\",\n layoutList: \"List\",\n focusSummary: (kind, n) => `${kind} · ${count(n, \"state\", \"states\")}`,\n up: (p) => `↑ ${p}`,\n leavesTo: \"Leaves to\",\n enteredFrom: \"Entered from\",\n warningsTitle: \"Warnings\",\n transitions: (n) => count(n, \"transition\", \"transitions\"),\n inState: (c) => `in ${c}`,\n fromState: (c) => `from ${c}`,\n machine: \"machine\",\n showFewer: \"Show fewer\",\n more: (n) => `+${n} more`,\n inside: (n) => `${n} inside →`,\n invokes: (n) => `⇲ ${count(n, \"invoke\", \"invokes\")}`,\n staysInside: \"transitions that stay inside\",\n events: (n) => count(n, \"event\", \"events\"),\n groupActivePath: \"On the active path\",\n statesInside: (n) => `${count(n, \"state\", \"states\")} inside`,\n moreTargets: (n) => `+${count(n, \"target\", \"targets\")}`,\n findAmongStates: (n) => `Find among ${count(n, \"state\", \"states\")}…`,\n showAll: (n) => `Show all ${n}`,\n openLane: (n) => `+${n} more — open lane`,\n onEntry: \"on entry\",\n onExit: \"on exit\",\n invokesGlyph: \"invokes\",\n sendsGlyph: \"sends\",\n logsGlyph: \"logs\",\n eventless: \"always\",\n guard: (cond) => `if ${cond}`,\n justTaken: \"just taken\",\n lastVisited: \"last visited\",\n openDetail: \"Details →\",\n lastStep: \"Last step\",\n\n system: \"System\",\n systemSummary: (m, s, msg) =>\n `${count(m, \"machine\", \"machines\")} · ${count(s, \"external service\", \"external services\")} · ${count(msg, \"message\", \"messages\")}`,\n machines: \"Machines\",\n services: \"External services\",\n findAmongMachines: (n) => `Find among ${count(n, \"machine\", \"machines\")}…`,\n invokedAs: (id, from) => `invoked as ${id}${from ? ` from ${from}` : \"\"}`,\n talksTo: (names) => `talks to ${names}`,\n status: (s) => s,\n trafficHint: \"requests / replies and events\",\n traffic: (out, inn) => count(out + inn, \"message\", \"messages\"),\n selectService: \"Select a service or a machine.\",\n talksWith: \"Talks with\",\n recentTraffic: \"Recent traffic\",\n\n accepts: (n) => `Accepts ${n}`,\n stateTab: \"State\",\n serviceTab: \"Service\",\n scopeLabel: \"Scope\",\n scopeHere: (n) => `Here ${n}`,\n scopeInherited: (n) => `+ inherited ${n}`,\n scopeAll: (n) => `All ${n}`,\n inherited: \"inherited\",\n elsewhere: \"elsewhere\",\n findEvent: \"Find event…\",\n filterEvents: \"Filter events\",\n eventData: \"data\",\n eventDataLabel: \"Event data (JSON)\",\n invalidJson: \"invalid JSON\",\n noEventMatches: \"No accepted event matches.\",\n machineTerminated: \"The machine has terminated.\",\n nothingAccepted: \"Nothing is accepted right now.\",\n noPrefix: \"(no prefix)\",\n send: \"Send\",\n sendEvent: (name) => `Send ${name}`,\n cannotSendWildcard: \"a wildcard can't be sent\",\n stays: \"stays\",\n internal: \"(internal)\",\n allEvents: (n) => `all ${n} →`,\n acceptedEventsLabel: \"Accepted events\",\n\n topLevel: \"top level\",\n detailKind: \"kind\",\n detailId: \"id\",\n detailStates: \"states\",\n directAndInside: (d, i) => `${d} direct · ${i} inside`,\n detailInitial: \"initial\",\n detailHistory: \"history\",\n detailData: \"data\",\n focusState: (name) => `Focus ${name} →`,\n actions: \"Actions\",\n entry: \"entry\",\n exit: \"exit\",\n invokesTitle: \"Invokes\",\n inline: \"(inline)\",\n transitionsTitle: \"Transitions\",\n columnEvent: \"event\",\n columnIf: \"if\",\n columnTo: \"to\",\n\n backToStates: \"‹ States\",\n backToStatesLabel: \"Back to the states\",\n panelLabel: \"States and events\",\n inspectorLabel: \"Inspector\",\n sheetExpand: \"Show more\",\n sheetCollapse: \"Show less\",\n\n announceStep: (s) => `${s.machine}: ${s.moves.length ? s.moves.join(\", \") : `${s.event ?? \"start\"}, no transition`}`,\n announceSent: (name, machine) => `Sent ${name} to ${machine}`,\n};\n"]}
|
|
@@ -4,7 +4,15 @@
|
|
|
4
4
|
* contract with neutral defaults, adopted before this sheet. Below
|
|
5
5
|
* NARROW_WIDTH (shared with the element and `<scxml-view>`) the explorer
|
|
6
6
|
* shows one pane with tabs.
|
|
7
|
+
*
|
|
8
|
+
* One focus, everything else quieter:
|
|
9
|
+
* - colour carries meaning only: `--x-run` is "active", `--x-wait` is
|
|
10
|
+
* "just happened" (the last step's arrows and the state it left);
|
|
11
|
+
* `--x-accent` is kept for keyboard focus
|
|
12
|
+
* - spacing on a 4 / 8 px scale; type in 11, 12, 13, 15 and 22 px;
|
|
13
|
+
* labels in sentence case, not letter-spaced capitals
|
|
14
|
+
* - hairlines between rows instead of boxes around them
|
|
7
15
|
*/
|
|
8
16
|
import { NARROW_WIDTH } from "../ui/theme.js";
|
|
9
17
|
export { NARROW_WIDTH };
|
|
10
|
-
export declare const EXPLORER_CSS = "\n:host {\n display: block; container-type: inline-size; container-name: explorer;\n background: var(--x-bg);\n border: 1px solid var(--x-b2); border-radius: var(--x-r); overflow: hidden;\n height: var(--scxml-height, min(860px, calc(100dvh - 32px)));\n}\n/* \u2500\u2500 shell \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.shell { display: grid; grid-template-rows: auto auto 1fr; grid-template-columns: minmax(0, 1fr); height: 100%; }\n.shell > .playback[hidden] { display: none; }\n.playback {\n display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; padding: 6px 12px;\n background: var(--x-s2); border-bottom: 1px solid var(--x-b2); font: 12px var(--x-sans); color: var(--x-fg2);\n}\n.playback .play, .playback .step {\n height: 28px; padding: 0 12px; border-radius: var(--x-r); cursor: pointer; font: 500 12.5px var(--x-sans);\n border: 1px solid var(--x-b2); background: var(--x-s1); color: var(--x-fg1);\n}\n.playback .play { min-width: 86px; background: var(--x-accent); border-color: var(--x-accent); color: var(--x-on-accent); }\n.playback .play[aria-pressed=\"true\"] { background: var(--x-s1); color: var(--x-fg1); border-color: var(--x-b2); }\n.playback .step:hover:not(:disabled) { border-color: var(--x-accent); color: var(--x-accent-fg); }\n.playback .step:disabled { opacity: .45; cursor: default; }\n.playback .clock-time { font: 500 12px var(--x-mono); color: var(--x-fg1); font-variant-numeric: tabular-nums; min-width: 8ch; }\n.playback .clock-queue { font: 11.5px var(--x-mono); color: var(--x-fg3); }\n.playback .last-step { flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 11.5px var(--x-mono); color: var(--x-accent-fg); text-align: right; }\n@container explorer (max-width: 760px) {\n .playback { gap: 6px 8px; padding: 6px 10px; }\n .playback .last-step { flex-basis: 100%; text-align: left; }\n .playback .clock-queue { display: none; }\n}\n.top {\n display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px;\n background: var(--x-s1); border-bottom: 1px solid var(--x-b2);\n}\n.levels { display: inline-flex; border: 1px solid var(--x-b2); border-radius: var(--x-r); overflow: hidden; flex: none; }\n.levels button { border: 0; background: none; padding: 4px 10px; cursor: pointer; font: 500 11px/1.4 var(--x-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--x-fg3); }\n.levels button[aria-pressed=\"true\"] { background: var(--x-accent); color: var(--x-on-accent); }\n.crumbs { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 1; overflow: hidden; }\n.crumbs button { border: 0; background: none; padding: 3px 5px; border-radius: var(--x-r); cursor: pointer; color: var(--x-fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }\n.crumbs button:hover { background: var(--x-s2); color: var(--x-fg1); }\n.crumbs button[aria-current] { color: var(--x-fg1); font-weight: 600; }\n.crumbs .sep { color: var(--x-fg4); flex: none; }\n.follow { display: inline-flex; align-items: center; gap: 6px; flex: none; cursor: pointer; color: var(--x-fg2); font: 500 11px var(--x-mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--x-b2); border-radius: 999px; padding: 3px 10px; background: none; }\n/* off: a hollow ring; on: a filled dot (shape, not only colour) */\n.follow::before { content: \"\"; width: 7px; height: 7px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--x-fg3); background: transparent; }\n.follow[aria-pressed=\"true\"] { color: var(--x-run); border-color: color-mix(in srgb, var(--x-run) 40%, transparent); }\n.follow[aria-pressed=\"true\"]::before { border-color: var(--x-run); background: var(--x-run); box-shadow: 0 0 0 3px color-mix(in srgb, var(--x-run) 20%, transparent); }\n\n.body { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(280px, 360px); min-height: 0; }\n.pane { min-height: 0; min-width: 0; display: flex; flex-direction: column; }\n.pane + .pane { border-left: 1px solid var(--x-b2); }\n.pane-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; flex: none; }\n.pane-title { font: 500 10.5px/1 var(--x-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--x-fg3); flex: 1; }\n.pane-scroll { overflow: auto; min-height: 0; flex: 1; overscroll-behavior: contain; }\n.center { background: var(--x-bg); }\n.center .pane-scroll { padding: 4px 16px 24px; }\n.inspector { background: var(--x-s1); }\n.tree-pane { background: var(--x-s1); }\n.tabs { display: none; }\n.events-strip { display: none; }\n\n/* narrow container: one pane at a time, bottom tabs, sticky events strip */\n@container explorer (max-width: 760px) {\n .body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; }\n .pane { display: none; }\n .pane + .pane { border-left: 0; }\n .pane[data-tab-active] { display: flex; }\n .tabs { display: flex; border-top: 1px solid var(--x-b2); background: var(--x-s1); }\n .tabs button { flex: 1; border: 0; background: none; padding: 9px 4px 10px; cursor: pointer; font: 500 10.5px var(--x-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--x-fg3); }\n .tabs button[aria-selected=\"true\"] { color: var(--x-accent-fg); box-shadow: inset 0 2px 0 var(--x-accent); }\n .events-strip { display: flex; gap: 6px; padding: 8px 12px; min-width: 0; overflow-x: auto; background: var(--x-s1); border-top: 1px solid var(--x-b1); scrollbar-width: none; }\n .events-strip > * { flex: none; max-width: 70vw; }\n .crumbs { overflow-x: auto; scrollbar-width: none; }\n .crumbs button { max-width: 14ch; }\n .levels { display: none; }\n .center .pane-scroll { padding: 4px 12px 20px; }\n}\n\n/* \u2500\u2500 tree (windowed) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.tree-viewport { position: relative; }\n.tree-row {\n position: absolute; left: 0; right: 0; height: var(--x-row); display: flex; align-items: center; gap: 2px;\n padding-right: 8px; cursor: pointer; white-space: nowrap; border-left: 2px solid transparent;\n}\n.tree-row:hover { background: var(--x-s2); }\n.tree-row[aria-selected=\"true\"] { background: var(--x-accent-subtle); border-left-color: var(--x-accent); }\n.tree-row .twisty { width: 18px; height: 18px; flex: none; border: 0; background: none; padding: 0; cursor: pointer; color: var(--x-fg3); font-size: 10px; }\n.tree-row .twisty[hidden] { visibility: hidden; display: inline-block; }\n.tree-row .name { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }\n.tree-row.path .name { font-weight: 600; }\n.tree-row.active .name { color: var(--x-run); font-weight: 600; }\n.tree-row.match .name { text-decoration: underline; text-decoration-color: var(--x-accent); text-underline-offset: 3px; }\n.tree-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--x-run); flex: none; margin-left: 4px; }\n.tree-row:focus-visible { outline-offset: -2px; }\n\n/* \u2500\u2500 focus \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.mode { display: inline-flex; border: 1px solid var(--x-b2); border-radius: var(--x-r); overflow: hidden; }\n.mode button { border: 0; background: none; padding: 3px 8px; cursor: pointer; font: 11px var(--x-sans); color: var(--x-fg3); }\n.mode button[aria-pressed=\"true\"] { background: var(--x-s3); color: var(--x-fg1); }\n.diagram { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 230px); justify-content: start; gap: 22px 128px; align-items: start; padding: 6px 2px 10px 16px; }\n.rank { display: flex; flex-direction: column; gap: 14px; }\n.edges { position: absolute; inset: 0; pointer-events: none; overflow: visible; }\n.edges path { fill: none; stroke: var(--x-fg4); stroke-width: 1.25; }\n.edges path.live { stroke: var(--x-accent); stroke-width: 1.75; }\n.edges path.back { stroke-dasharray: 4 3; }\n.edges marker path { fill: context-stroke; stroke: none; }\n.edge-label {\n position: absolute; transform: translate(-50%, -50%); z-index: 1; pointer-events: auto;\n font: 11px/1.3 var(--x-mono); background: var(--x-bg); color: var(--x-fg2); padding: 1px 6px; border: 1px solid var(--x-b1); border-radius: 999px; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; cursor: help;\n}\n.edge-label.live { color: var(--x-accent-fg); border-color: color-mix(in srgb, var(--x-accent) 40%, transparent); }\n/* labels that found no free spot collapse to their event count and open on hover / focus */\n.edge-label .short { display: none; }\n.edge-label.collapsed .full { display: none; }\n.edge-label.collapsed .short { display: inline; }\n.edge-label.collapsed:is(:hover, :focus-visible) { z-index: 3; max-width: 240px; }\n.edge-label.collapsed:is(:hover, :focus-visible) .full { display: inline; }\n.edge-label.collapsed:is(:hover, :focus-visible) .short { display: none; }\n\n.card {\n position: relative; background: var(--x-s1); border: 1px solid var(--x-strong); border-radius: var(--x-r);\n padding: 8px 10px 9px; display: grid; gap: 5px; cursor: pointer; transition: border-color var(--x-dur), background var(--x-dur), box-shadow var(--x-dur);\n}\n.card:hover { box-shadow: 0 1px 0 var(--x-b2), 0 4px 14px rgba(40, 30, 20, .08); }\n.card.path { border-color: var(--x-run); box-shadow: inset 0 0 0 1px var(--x-run); }\n.card.active { background: var(--x-run-bg); }\n.card.waiting { border-color: var(--x-wait); box-shadow: inset 0 0 0 1px var(--x-wait); background: var(--x-wait-bg); }\n.card.final { border-radius: 999px; border-style: double; border-width: 3px; padding: 5px 14px; }\n.card.selected { outline: 2px solid var(--x-accent); outline-offset: 2px; }\n.card-head { display: flex; align-items: center; gap: 6px; min-width: 0; }\n.card-head .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }\n.card.path .card-head .name { color: var(--x-run); }\n.card.waiting .card-head .name { color: var(--x-wait); }\n.card .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--x-fg3); font-size: 11.5px; }\n.card .events { display: flex; gap: 4px; flex-wrap: wrap; }\n.card .events .chip { font-size: 10.5px; padding: 1px 6px; }\n.drill { border: 0; background: none; padding: 0; cursor: pointer; color: var(--x-accent-fg); font: 500 11.5px var(--x-sans); }\n.drill:hover { text-decoration: underline; }\n.initial-mark { position: absolute; left: -13px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--x-fg1); }\n.initial-mark::after { content: \"\"; position: absolute; left: 8px; top: 3.5px; width: 5px; border-top: 1.5px solid var(--x-fg1); }\n\n.lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }\n.lane { border: 1px dashed var(--x-strong); border-radius: var(--x-r); background: var(--x-s1); padding: 8px 10px; min-width: 0; }\n.lane.path { border-color: var(--x-run); border-style: solid; }\n.lane-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }\n.lane-head .name { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }\n.lane.path .lane-head .name { color: var(--x-run); }\n.lane-row { display: flex; align-items: center; gap: 6px; padding: 3px 6px; margin: 0 -6px; border-radius: var(--x-r); cursor: pointer; }\n.lane-row:hover { background: var(--x-s2); }\n.lane-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.lane-row.active .name { color: var(--x-run); font-weight: 600; }\n\n.list { display: grid; gap: 1px; background: var(--x-b1); border: 1px solid var(--x-b1); border-radius: var(--x-r); overflow: hidden; }\n.list-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; padding: 7px 10px; background: var(--x-s1); cursor: pointer; }\n.list-row:hover { background: var(--x-s2); }\n.list-row.path { background: color-mix(in srgb, var(--x-run-bg) 55%, var(--x-s1)); }\n.list-row .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.list-row.path .name { color: var(--x-run); font-weight: 600; }\n.list-row .sub { grid-column: 2 / -1; display: flex; gap: 4px; flex-wrap: wrap; color: var(--x-fg3); font-size: 11.5px; }\n.list-group { font: 500 10.5px var(--x-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--x-fg3); padding: 8px 10px 4px; background: var(--x-bg); }\n\n.doors { display: grid; gap: 6px; }\n.door { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: baseline; padding: 6px 10px; border: 1px solid var(--x-b1); border-left: 3px solid var(--x-strong); border-radius: var(--x-r); background: var(--x-s1); cursor: pointer; }\n.door:hover { border-color: var(--x-b2); border-left-color: var(--x-accent); }\n.door .arrow { font: 13px var(--x-mono); color: var(--x-fg3); }\n.door .where { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.door .where small { font-weight: 400; color: var(--x-fg3); }\n.door .events { grid-column: 2; display: flex; gap: 4px; flex-wrap: wrap; }\n.door.live { border-left-color: var(--x-accent); }\n\n/* \u2500\u2500 events \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.scopes { display: flex; gap: 4px; padding: 0 12px 8px; flex-wrap: wrap; }\n.scopes button { border: 1px solid var(--x-b2); background: none; border-radius: 999px; padding: 2px 9px; cursor: pointer; font: 11.5px var(--x-sans); color: var(--x-fg2); }\n.scopes button[aria-pressed=\"true\"] { background: var(--x-fg1); color: var(--x-s1); border-color: var(--x-fg1); }\n.ev-group > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; padding: 7px 12px; font: 500 11px var(--x-mono); letter-spacing: .06em; color: var(--x-fg2); border-top: 1px solid var(--x-b1); }\n.ev-group > summary::-webkit-details-marker { display: none; }\n.ev-group > summary::before { content: \"\u25B8\"; font-size: 9px; color: var(--x-fg4); transition: transform var(--x-dur); }\n.ev-group[open] > summary::before { transform: rotate(90deg); }\n.ev-group > summary .count { margin-left: auto; }\n.ev-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 6px 12px 7px 26px; align-items: center; }\n.ev-row:hover { background: var(--x-s2); }\n.ev-row .ev { font: 500 12px var(--x-mono); color: var(--x-accent-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ev-row .how { grid-column: 1; color: var(--x-fg3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ev-row .how .guard { font: 11px var(--x-mono); color: var(--x-wait); }\n.ev-row .send { grid-row: 1 / span 2; grid-column: 2; border: 1px solid var(--x-b2); background: var(--x-s1); border-radius: var(--x-r); height: 26px; padding: 0 9px; cursor: pointer; font: 500 12px var(--x-sans); }\n.ev-row .send:hover { border-color: var(--x-accent); color: var(--x-accent-fg); }\n.ev-row .send:disabled { opacity: .45; cursor: default; }\n.ev-row .scope-tag { font: 500 10px var(--x-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--x-fg3); border: 1px solid var(--x-b2); border-radius: var(--x-r); padding: 0 4px; margin-right: 4px; }\n.ev-row.scope-inherited .ev { color: var(--x-fg2); }\n.ev-row.scope-elsewhere .ev { color: var(--x-fg3); }\n.data-field { display: flex; gap: 6px; align-items: center; padding: 0 12px 8px; }\n.data-field span { font: 500 10px var(--x-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--x-fg3); }\n.data-field input { flex: 1; min-width: 0; height: 26px; padding: 0 8px; font: 11.5px var(--x-mono); border: 1px solid var(--x-b2); border-radius: var(--x-r); background: var(--x-s1); color: var(--x-fg1); }\n\n/* \u2500\u2500 detail \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.detail { padding: 0 12px 16px; }\n.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 12.5px; margin: 0; }\n.kv dt { color: var(--x-fg3); }\n.kv dd { margin: 0; font-family: var(--x-mono); font-size: 12px; overflow-wrap: anywhere; }\ntable.tx { width: 100%; border-collapse: collapse; font-size: 12px; }\ntable.tx th { text-align: left; font: 500 10px var(--x-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--x-fg3); padding: 4px 6px; border-bottom: 1px solid var(--x-b2); position: sticky; top: 0; background: var(--x-s1); }\ntable.tx td { padding: 5px 6px; border-bottom: 1px solid var(--x-b1); vertical-align: top; }\ntable.tx td.ev { font-family: var(--x-mono); color: var(--x-accent-fg); overflow-wrap: anywhere; }\ntable.tx td.cond { font-family: var(--x-mono); color: var(--x-wait); font-size: 11px; overflow-wrap: anywhere; }\ntable.tx td.to { overflow-wrap: anywhere; }\n.actions { margin: 0; padding: 0; list-style: none; font: 12px var(--x-mono); color: var(--x-fg2); display: grid; gap: 2px; }\n.actions b { font: 500 10px var(--x-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--x-fg3); margin-right: 6px; }\n\n/* \u2500\u2500 system \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.system { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 72px; align-items: start; }\n.system .col { display: grid; gap: 10px; align-content: start; min-width: 0; }\n.system .col-title { font: 500 10.5px var(--x-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--x-fg3); display: flex; gap: 8px; align-items: center; }\n.machine { margin-left: calc(var(--depth, 0) * 18px); }\n.machine.compact { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); align-items: center; padding: 5px 10px; }\n.machine.compact .leaves { text-align: right; }\n.machine .leaves { font: 11.5px var(--x-mono); color: var(--x-run); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.machine .from { color: var(--x-fg3); font-size: 11.5px; }\n.service .type { font: 11px var(--x-mono); color: var(--x-fg3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.links { position: absolute; inset: 0; pointer-events: none; overflow: visible; }\n.links path { fill: none; stroke: var(--x-b2); stroke-width: 1.25; }\n.links path.invoke { stroke: var(--x-fg4); stroke-dasharray: 3 3; }\n.links path.hot { stroke: var(--x-accent); stroke-width: 2; }\n.talks { display: flex; gap: 4px; flex-wrap: wrap; }\n.pulse { animation: pulse 1.2s ease-out; }\n@keyframes pulse { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--x-accent) 45%, transparent); } to { box-shadow: 0 0 0 8px transparent; } }\n.traffic { list-style: none; margin: 0; padding: 0; font: 11.5px/1.4 var(--x-mono); }\n.traffic li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--x-b1); }\n.traffic .dir { color: var(--x-fg3); }\n\n/* \u2500\u2500 accessibility \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }\n.card:focus-visible, .list-row:focus-visible, .lane-row:focus-visible, .door:focus-visible { outline: 2px solid var(--x-accent); outline-offset: 2px; }\n.lane-head .name { border: 0; background: none; padding: 0; text-align: left; font: inherit; font-weight: 600; }\n\n@container explorer (max-width: 760px) {\n .system { grid-template-columns: 1fr; gap: 12px; }\n .links { display: none; }\n .diagram { grid-auto-flow: row; grid-auto-columns: auto; }\n}\n.detail ul.warnings { margin: 0; padding: 0 0 0 16px; display: grid; gap: 4px; font: 12px/1.45 var(--x-sans); color: var(--x-fg1); }\n.detail ul.warnings li::marker { color: var(--x-wait); content: \"\u26A0 \"; }\n\n/* WCAG 2.2 target size: every control is at least 24px tall */\n.chip, .drill, .more { min-height: 24px; }\n.drill, .more { min-width: 24px; }\n/* the state name is the card's / row's primary button: it looks like text */\nbutton.select {\n all: unset; box-sizing: border-box; cursor: pointer; min-height: 24px; display: inline-flex; align-items: center;\n overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1;\n}\nbutton.select:focus-visible { outline: 2px solid var(--x-accent); outline-offset: 2px; border-radius: var(--x-r); }\n\n/* right-to-left pages: disclosure triangles point the other way */\n:host(:dir(rtl)) .twisty { transform: scaleX(-1); }\n";
|
|
18
|
+
export declare const EXPLORER_CSS = "\n:host {\n display: block; container-type: inline-size; container-name: explorer;\n background: var(--x-bg);\n border: 1px solid var(--x-b2); border-radius: var(--x-r); overflow: hidden;\n height: var(--scxml-height, min(860px, calc(100dvh - 32px)));\n}\n[hidden] { display: none !important; }\n\n/* \u2500\u2500 shared type: quiet labels, one title, small counts \u2500\u2500\u2500 */\n.pane-title, .list-group, .col-title, .section-title, .data-field summary, .ev-group > summary, table.tx th, .actions b, .does .label, .row-detail .label {\n font: 600 11px/1.3 var(--x-sans); letter-spacing: 0; text-transform: none; color: var(--x-fg3);\n}\nh2.title { font-size: 22px; margin: 8px 0 4px; }\nh2.title.small { font: 600 15px/1.3 var(--x-sans); letter-spacing: 0; }\n.subtitle { font: 12px var(--x-sans); color: var(--x-fg3); gap: 8px; margin: 0 0 4px; }\n.section-title { margin: 24px 0 4px; }\n.section-title::after { display: none; }\n.count { font: 11px var(--x-sans); color: var(--x-fg3); }\n.status { font: 12px var(--x-sans); color: var(--x-fg3); }\n.status.active { color: var(--x-run); }\n.spacer { flex: 1; }\n.chip { color: var(--x-fg2); border-color: var(--x-b1); font-size: 12px; }\n.chip:hover { color: var(--x-fg1); border-color: var(--x-strong); background: var(--x-s1); }\n.more { font: 12px var(--x-sans); }\n.more:hover { color: var(--x-fg1); text-decoration: underline; }\n.drill { border: 0; background: none; padding: 0; cursor: pointer; color: var(--x-fg2); font: 12px var(--x-sans); white-space: nowrap; }\n.drill:hover { color: var(--x-fg1); text-decoration: underline; }\n.kind { font: 11px var(--x-mono); color: var(--x-fg3); flex: none; }\n\n/* \u2500\u2500 shell: the focus fills it; the panels float over it, like a map's \u2500\u2500\n panels (wide) tree on the left, inspector on the right\n panel one panel on the left: the tree, and the inspector as its second page\n sheet (narrow) the same panel as a bottom sheet: low (head + accepted events), half, full\n Playback sits in the bottom-left corner of what the panels leave free, Follow in the bottom-right. */\n.shell {\n --panel-w: 340px; --panel-w-start: 280px; --panel-w-end: 340px; --gap: 12px;\n position: relative; height: 100%;\n}\n.stage { position: relative; height: 100%; overflow: hidden; }\n.pane { min-height: 0; min-width: 0; display: flex; flex-direction: column; }\n.pane-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; flex: none; }\n.pane-title { flex: 1; }\n.pane-scroll { overflow: auto; min-height: 0; flex: 1; overscroll-behavior: contain; }\n.center { position: absolute; inset: 0; background: var(--x-bg); }\n/* the focus keeps its content clear of the panels and the corners */\n.center .pane-scroll { padding: 16px 24px 72px; }\n.shell[data-layout=\"panels\"] .center .pane-scroll {\n padding-left: calc(var(--panel-w-start) + 2 * var(--gap) + 12px); padding-right: calc(var(--panel-w-end) + 2 * var(--gap) + 12px);\n}\n.shell[data-layout=\"panels\"][data-level=\"system\"] .center .pane-scroll { padding-left: 24px; }\n.shell[data-layout=\"panel\"] .center .pane-scroll { padding-left: calc(var(--panel-w) + 2 * var(--gap) + 12px); }\n.shell[data-layout=\"sheet\"] .center .pane-scroll { padding: 12px 12px calc(var(--sheet-h, 88px) + 64px); }\n\n/* \u2500\u2500 panels: solid, a hairline and a soft edge, inset like the corners \u2500\u2500 */\n.panel {\n position: absolute; z-index: 2; box-sizing: border-box; display: flex; flex-direction: column; min-height: 0; overflow: hidden;\n background: var(--x-s1); border: 1px solid var(--x-b2); border-radius: calc(var(--x-r) + 4px);\n box-shadow: 0 1px 3px color-mix(in srgb, var(--x-fg1) 14%, transparent);\n}\n.shell[data-layout=\"panels\"] .panel { top: var(--gap); bottom: var(--gap); left: var(--gap); width: var(--panel-w-start); }\n.shell[data-layout=\"panels\"] .side-panel { left: auto; right: var(--gap); width: var(--panel-w-end); }\n/* the System level has no tree: with two panels, the left one has nothing to show */\n.shell[data-layout=\"panels\"][data-level=\"system\"] .panel:not(.side-panel) { display: none; }\n.shell:not([data-layout=\"panels\"]) .side-panel { display: none; }\n.shell[data-layout=\"panel\"] .panel { top: var(--gap); bottom: var(--gap); left: var(--gap); width: var(--panel-w); }\n.panel-head {\n display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; flex: none; padding: 8px 12px;\n border-bottom: 1px solid var(--x-b1);\n}\n.panel-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.panel-body > .pane, .side-panel > .pane { flex: 1; }\n.mode { display: inline-flex; gap: 2px; flex: none; }\n.mode button, .scopes button {\n border: 0; background: none; padding: 2px 8px; min-height: 24px; border-radius: var(--x-r); cursor: pointer;\n font: 500 12px var(--x-sans); color: var(--x-fg3);\n}\n.mode button:hover, .scopes button:hover { color: var(--x-fg1); }\n.mode button[aria-pressed=\"true\"], .scopes button[aria-pressed=\"true\"] { background: var(--x-s3); color: var(--x-fg1); }\n.crumbs { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; }\n.crumbs button { border: 0; background: none; padding: 2px 4px; min-height: 24px; border-radius: var(--x-r); cursor: pointer; color: var(--x-fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }\n.crumbs button:hover { background: var(--x-s2); color: var(--x-fg1); }\n.crumbs button[aria-current] { color: var(--x-fg1); font-weight: 600; }\n.crumbs .sep { color: var(--x-fg4); flex: none; }\n\n/* one panel: a page at a time, with links between them */\n.shell:not([data-layout=\"panels\"])[data-page=\"tree\"] .panel-body .inspector,\n.shell:not([data-layout=\"panels\"])[data-page=\"inspector\"] .panel-body .tree-pane { display: none; }\n.shell[data-level=\"system\"] .tree-pane { display: none; }\n.to-inspector, .back { border: 0; background: none; padding: 2px 6px; min-height: 24px; border-radius: var(--x-r); cursor: pointer; font: 500 12px var(--x-sans); color: var(--x-fg2); white-space: nowrap; }\n.to-inspector:hover, .back:hover { background: var(--x-s2); color: var(--x-fg1); }\n.page-back { padding: 8px 8px 0; }\n.shell[data-layout=\"panels\"] .to-inspector, .shell[data-layout=\"panels\"] .page-back { display: none; }\n\n/* \u2500\u2500 the sheet (narrow) \u2500\u2500 */\n.sheet-handle { display: none; }\n.events-strip { display: none; }\n.shell[data-layout=\"sheet\"] .panel {\n left: 0; right: 0; bottom: 0; height: 88px; border-bottom: 0; border-radius: 12px 12px 0 0; transition: height var(--x-dur);\n}\n.shell[data-layout=\"sheet\"] .panel.dragging { transition: none; }\n.shell[data-layout=\"sheet\"][data-sheet=\"half\"] .panel { height: 50%; }\n.shell[data-layout=\"sheet\"][data-sheet=\"full\"] .panel { height: calc(100% - 8px); }\n.shell[data-layout=\"sheet\"] .sheet-handle {\n display: grid; place-items: center; flex: none; width: 100%; height: 22px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none;\n}\n.shell[data-layout=\"sheet\"] .sheet-handle::before { content: \"\"; width: 36px; height: 5px; border-radius: 3px; background: var(--x-b2); }\n.shell[data-layout=\"sheet\"] .sheet-handle:focus-visible { outline: 2px solid var(--x-accent); outline-offset: -2px; }\n.shell[data-layout=\"sheet\"] .panel-head { padding-top: 0; touch-action: none; }\n.shell[data-layout=\"sheet\"] .crumbs button { max-width: 14ch; }\n/* low: its head and the accepted events, nothing else */\n.shell[data-layout=\"sheet\"][data-sheet=\"low\"] .panel-body { display: none; }\n.shell[data-layout=\"sheet\"][data-sheet=\"low\"] .events-strip {\n display: flex; gap: 4px; padding: 8px 12px; min-width: 0; overflow-x: auto; scrollbar-width: none;\n}\n.events-strip > * { flex: none; max-width: 70vw; }\n\n/* \u2500\u2500 corners: playback (bottom left) and Follow (bottom right), clear of the panels \u2500\u2500 */\n.corner { position: absolute; z-index: 3; bottom: var(--gap); }\n.corner-start { left: var(--gap); }\n.corner-end { right: var(--gap); }\n.shell[data-layout=\"panels\"]:not([data-level=\"system\"]) .corner-start { left: calc(var(--panel-w-start) + 2 * var(--gap)); }\n.shell[data-layout=\"panels\"] .corner-end { right: calc(var(--panel-w-end) + 2 * var(--gap)); }\n.shell[data-layout=\"panel\"] .corner-start { left: calc(var(--panel-w) + 2 * var(--gap)); }\n.shell[data-layout=\"sheet\"] .corner { bottom: calc(var(--sheet-h, 88px) + var(--gap)); }\n.playback, .follow {\n box-sizing: border-box; height: 36px; display: flex; align-items: center; gap: 2px; padding: 0 3px;\n background: var(--x-s1); border: 1px solid var(--x-b2); border-radius: 999px;\n box-shadow: 0 1px 2px color-mix(in srgb, var(--x-fg1) 12%, transparent);\n}\n.playback .play, .playback .step, .playback .speeds {\n height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 500 12px var(--x-sans); color: var(--x-fg1);\n}\n.playback .play { color: var(--x-accent-fg); }\n.playback .play:hover, .playback .step:hover:not(:disabled), .playback .speeds:hover { background: var(--x-s2); }\n.playback .step:disabled { opacity: .45; cursor: default; }\n.playback .speeds { padding: 0 6px; }\n.playback .clock-time { font: 12px var(--x-mono); color: var(--x-fg3); font-variant-numeric: tabular-nums; min-width: 9ch; padding: 0 10px 0 4px; cursor: help; }\n.follow { gap: 6px; padding: 0 14px 0 11px; cursor: pointer; color: var(--x-fg2); font: 500 12px var(--x-sans); }\n.follow:hover { color: var(--x-fg1); background: var(--x-s2); }\n.follow .icon { display: block; flex: none; }\n.follow[aria-pressed=\"true\"] { color: var(--x-run); }\n.follow:focus-visible, .playback button:focus-visible, .playback select:focus-visible { outline: 2px solid var(--x-accent); outline-offset: 1px; }\n/* the sheet: Follow is its crosshair, centred (its name stays its accessible name), so both corners fit a phone */\n.shell[data-layout=\"sheet\"] .follow { width: 36px; padding: 0; justify-content: center; }\n.shell[data-layout=\"sheet\"] .follow-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n@media (pointer: coarse) {\n .playback, .follow { height: 44px; }\n .shell[data-layout=\"sheet\"] .follow { width: 44px; }\n .playback .play, .playback .step, .playback .speeds { height: 40px; }\n}\n@media (prefers-reduced-motion: reduce) { .shell[data-layout=\"sheet\"] .panel { transition: none; } }\n.inspector, .tree-pane { background: none; }\n\n/* \u2500\u2500 the title row: the breadcrumb (places above) over the focus's name, then its controls \u2500\u2500 */\n.title-row { display: flex; align-items: flex-end; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; }\n.place { flex: 1 1 auto; min-width: 0; }\n.place .crumbs { flex: none; margin-bottom: 2px; }\n.place .crumbs .sep:last-child { display: none; }\n.place h2.title { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.mode .icon-toggle, .filter {\n display: inline-grid; place-items: center; width: 30px; height: 28px; padding: 0; border: 0; border-radius: var(--x-r);\n background: none; color: var(--x-fg3); cursor: pointer;\n}\n.mode .icon-toggle:hover, .filter:hover { color: var(--x-fg1); background: var(--x-s2); }\n.mode .icon-toggle[aria-pressed=\"true\"], .filter[aria-pressed=\"true\"] { color: var(--x-fg1); background: var(--x-s3); }\n.mode .icon-toggle:focus-visible, .filter:focus-visible { outline: 2px solid var(--x-accent); outline-offset: 1px; }\n.search { display: flex; align-items: center; gap: 4px; }\n/* a container's size: the layers glyph and the number; the way inside */\n.drill.inside { display: inline-flex; align-items: center; gap: 4px; color: var(--x-fg3); font: 12px var(--x-sans); font-variant-numeric: tabular-nums; }\n.drill.inside:hover { color: var(--x-fg1); text-decoration: none; }\n.row-head .does-glyphs, .card .does-glyphs { margin-left: auto; }\n.row-head .does-glyphs + .drill.inside { margin-left: 12px; }\n.tx .glyph-diamond, .how .glyph-diamond { color: var(--x-fg3); }\n.guard .glyph { margin-right: 4px; }\n.playback .play, .playback .step { display: inline-grid; place-items: center; min-width: 32px; padding: 0 8px; }\n\n/* \u2500\u2500 tree (windowed) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.tree-viewport { position: relative; }\n.tree-row {\n position: absolute; left: 0; right: 0; height: var(--x-row); display: flex; align-items: center; gap: 4px;\n padding-right: 8px; cursor: pointer; white-space: nowrap; border-left: 2px solid transparent; color: var(--x-fg2);\n}\n.tree-row:hover { background: var(--x-s2); color: var(--x-fg1); }\n.tree-row[aria-selected=\"true\"] { background: var(--x-s2); color: var(--x-fg1); border-left-color: var(--x-fg3); }\n.tree-row .twisty { width: 16px; height: 16px; flex: none; border: 0; background: none; padding: 0; cursor: pointer; color: var(--x-fg3); font-size: 10px; }\n.tree-row .twisty[hidden] { visibility: hidden; display: inline-block !important; }\n.tree-row .name { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }\n.tree-row.path { color: var(--x-fg1); }\n.tree-row.path .name { font-weight: 600; }\n.tree-row.active { border-left-color: var(--x-run); }\n.tree-row.active .name { color: var(--x-run); }\n.tree-row.match .name { text-decoration: underline; text-decoration-color: var(--x-fg3); text-underline-offset: 3px; }\n.tree-row:focus-visible { outline-offset: -2px; }\n\n/* \u2500\u2500 focus \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.diagram { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 230px); justify-content: start; gap: 24px 128px; align-items: start; padding: 8px 0 8px 16px; }\n.rank { display: flex; flex-direction: column; gap: 16px; }\n.edges { position: absolute; inset: 0; pointer-events: none; overflow: visible; }\n.edges path { fill: none; stroke: var(--x-fg4); stroke-width: 1.25; }\n.edges path.live { stroke: var(--x-run); stroke-width: 1.5; }\n.edges path.fired { stroke: var(--x-wait); stroke-width: 2; }\n.edges path.back { stroke-dasharray: 4 3; }\n.edges marker path { fill: context-stroke; stroke: none; }\n.edge-label {\n position: absolute; transform: translate(-50%, -50%); z-index: 1; pointer-events: auto;\n font: 11px/1.3 var(--x-mono); background: var(--x-bg); color: var(--x-fg3); padding: 1px 4px; border-radius: var(--x-r); white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; cursor: help;\n}\n.edge-label.live { color: var(--x-fg1); }\n.edge-label.fired { color: var(--x-wait); }\n/* labels that found no free spot collapse to their event count and open on hover / focus */\n.edge-label .short { display: none; }\n.edge-label.collapsed .full { display: none; }\n.edge-label.collapsed .short { display: inline; }\n.edge-label.collapsed:is(:hover, :focus-visible) { z-index: 3; max-width: 240px; }\n.edge-label.collapsed:is(:hover, :focus-visible) .full { display: inline; }\n.edge-label.collapsed:is(:hover, :focus-visible) .short { display: none; }\n\n.card {\n position: relative; background: var(--x-s1); border: 1px solid var(--x-b2); border-radius: var(--x-r);\n padding: 8px 12px; display: grid; gap: 4px; cursor: pointer; transition: border-color var(--x-dur), background var(--x-dur);\n}\n.card:hover { border-color: var(--x-strong); }\n.card.path { border-color: var(--x-run); }\n.card.active { background: var(--x-run-bg); box-shadow: inset 0 0 0 1px var(--x-run); }\n.card.visited { border-style: dashed; border-color: var(--x-wait); }\n.card.final { border-radius: 999px; border-style: double; border-width: 3px; padding: 4px 16px; }\n.card.selected { outline: 2px solid var(--x-fg3); outline-offset: 2px; }\n.card-head { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.card-head .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }\n.card.path .card-head .name { color: var(--x-run); }\n.card .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--x-fg3); font-size: 12px; }\n.card .meta .status { color: var(--x-run); }\n.initial-mark { position: absolute; left: -13px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--x-fg1); }\n.initial-mark::after { content: \"\"; position: absolute; left: 8px; top: 3.5px; width: 5px; border-top: 1.5px solid var(--x-fg1); }\n\n.lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }\n.lane { border: 1px solid var(--x-b1); border-radius: var(--x-r); background: var(--x-s1); padding: 8px 12px; min-width: 0; }\n.lane-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }\n.lane-head .name { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; min-height: 24px; }\n.lane-row { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 8px; margin: 0 -8px; border-left: 2px solid transparent; cursor: pointer; color: var(--x-fg2); }\n.lane-row:hover { background: var(--x-s2); color: var(--x-fg1); }\n.lane-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.lane-row.active { border-left-color: var(--x-run); }\n.lane-row.active .name { color: var(--x-run); font-weight: 600; }\n.lane-row.visited { border-left: 2px dashed var(--x-wait); }\n\n/* the list: one row per state, hairlines between */\n.list { display: grid; }\n.list-group { padding: 16px 0 4px; }\n.list-group:first-child { padding-top: 0; }\n.list-row {\n display: grid; gap: 4px; padding: 8px 12px; cursor: pointer; min-width: 0;\n border-left: 2px solid transparent; border-top: 1px solid var(--x-b1);\n}\n.list-group + .list-row { border-top-color: transparent; }\n.list-row:hover { background: var(--x-s2); }\n.list-row.path { border-left-color: var(--x-run); }\n.list-row.active { background: color-mix(in srgb, var(--x-run-bg) 70%, transparent); }\n.list-row.visited { border-left: 2px dashed var(--x-wait); }\n.list-row.open { background: var(--x-s1); }\n.row-head { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.list-row .name { font-weight: 500; }\n.list-row .name[aria-expanded]::after { content: \"\u25B8\"; font-size: 10px; color: var(--x-fg3); margin-left: 8px; transition: transform var(--x-dur); }\n.list-row .name[aria-expanded=\"true\"]::after { transform: rotate(90deg); }\n.list-row.path .name { color: var(--x-run); font-weight: 600; }\n.row-head .drill { margin-left: auto; }\n.visited-mark { font: 11px var(--x-sans); color: var(--x-wait); white-space: nowrap; }\n.does { font: 12px var(--x-mono); color: var(--x-fg2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.exits { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 12px; min-width: 0; }\n.exits.all { flex-direction: column; align-items: flex-start; }\n.tx { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; max-width: 100%; color: var(--x-fg3); }\n/* the events shrink (their namespaces are cut from the left), the target never */\n.tx .ev { display: inline-flex; align-items: baseline; gap: 6px; flex: 0 1 auto; font: 12px var(--x-mono); color: var(--x-fg1); min-width: 0; overflow: hidden; white-space: nowrap; }\n.tx.auto .ev { font-family: var(--x-sans); font-style: italic; color: var(--x-fg3); }\n.tx .to { flex: none; white-space: nowrap; }\n.tx .guard { font: italic 11px var(--x-mono); color: var(--x-fg3); overflow-wrap: anywhere; }\n.tx.fired .ev, .tx.fired .to { color: var(--x-wait); }\n.tx-item { display: inline-flex; min-width: 0; max-width: 100%; }\n/* while the state is active its events can be sent from the row */\nbutton.tx {\n align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid color-mix(in srgb, var(--x-run) 45%, var(--x-b2)); border-radius: 999px;\n background: var(--x-s1); cursor: pointer; font: 12px var(--x-sans);\n}\nbutton.tx:hover { background: var(--x-run-bg); border-color: var(--x-run); }\nbutton.tx.fired { border-color: var(--x-wait); }\n.row-detail { display: grid; gap: 8px; justify-items: start; padding-top: 4px; cursor: auto; }\n.row-detail .from { margin: 0; font-size: 12px; color: var(--x-fg2); }\n\n.doors { display: grid; }\n.doors { margin-top: 16px; }\n.door {\n display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 8px; align-items: center;\n padding: 8px 12px; border-top: 1px solid var(--x-b1); cursor: pointer; color: var(--x-fg2);\n}\n.door:first-child { border-top-color: transparent; }\n.door:hover { background: var(--x-s2); color: var(--x-fg1); }\n.door .where { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.door.live .where { color: var(--x-fg1); }\n.door .glyph { color: var(--x-fg3); }\n.door .events { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; font: 12px var(--x-mono); color: var(--x-fg3); min-width: 0; overflow: hidden; white-space: nowrap; max-width: 28ch; }\n\n/* \u2500\u2500 events \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.scopes { display: flex; gap: 4px; padding: 0 12px 8px; flex-wrap: wrap; }\n.ev-group > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; padding: 8px 12px; color: var(--x-fg2); border-top: 1px solid var(--x-b1); }\n.ev-group > summary::-webkit-details-marker { display: none; }\n.ev-group[open] > summary::before { transform: rotate(90deg); }\n.ev-group > summary .count { margin-left: auto; }\n.ev-row { display: grid; gap: 2px; padding: 4px 12px 8px 24px; justify-items: start; }\n.ev-row:hover { background: var(--x-s2); }\n/* the event's name is its send button */\n.ev-row .ev {\n max-width: 100%; min-height: 24px; padding: 0 8px; border: 1px solid var(--x-b2); border-radius: 999px; background: var(--x-s1);\n font: 500 12px var(--x-mono); color: var(--x-fg1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;\n}\n.ev-row .ev:hover:not(:disabled) { border-color: var(--x-run); background: var(--x-run-bg); }\n.ev-row .ev:disabled { cursor: default; color: var(--x-fg3); border-style: dashed; }\n.ev-row.scope-elsewhere .ev { color: var(--x-fg2); border-style: dashed; }\n.ev-row .how { max-width: 100%; color: var(--x-fg3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ev-row .how .guard { font: italic 11px var(--x-mono); }\n.data-field { padding: 0 12px 8px; }\n.data-field summary { cursor: pointer; width: max-content; min-height: 24px; display: flex; align-items: center; gap: 8px; list-style: none; }\n.data-field summary::-webkit-details-marker { display: none; }\n.data-field summary::before, .data-field[open] summary::before { transform: rotate(90deg); }\n.data-field input { width: 100%; height: 28px; margin-top: 4px; padding: 0 8px; font: 12px var(--x-mono); border: 1px solid var(--x-b2); border-radius: var(--x-r); background: var(--x-s1); color: var(--x-fg1); }\n\n/* \u2500\u2500 detail \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.detail { padding: 0 12px 16px; }\n.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 12px; margin: 0; }\n.kv dt { color: var(--x-fg3); }\n.kv dd { margin: 0; font-family: var(--x-mono); overflow-wrap: anywhere; }\ntable.tx { width: 100%; border-collapse: collapse; font-size: 12px; }\ntable.tx th { text-align: left; padding: 4px; border-bottom: 1px solid var(--x-b2); position: sticky; top: 0; background: var(--x-s1); }\ntable.tx td { padding: 4px; border-bottom: 1px solid var(--x-b1); vertical-align: top; }\ntable.tx td.ev { font-family: var(--x-mono); overflow-wrap: anywhere; }\ntable.tx td.cond { font: italic 11px var(--x-mono); color: var(--x-fg3); overflow-wrap: anywhere; }\ntable.tx td.to { overflow-wrap: anywhere; }\n.actions { margin: 0; padding: 0; list-style: none; font: 12px var(--x-mono); color: var(--x-fg2); display: grid; gap: 4px; }\n.actions b { margin-right: 8px; }\n\n/* \u2500\u2500 system \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.system { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 72px; align-items: start; }\n.system .col { display: grid; gap: 8px; align-content: start; min-width: 0; }\n.machine { margin-left: calc(var(--depth, 0) * 16px); }\n.card.machine.path { border-color: var(--x-b2); }\n.card.machine.path .card-head .name { color: var(--x-fg1); }\n.machine.compact { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); align-items: center; padding: 4px 12px; }\n.machine.compact .leaves { text-align: right; }\n.machine .leaves { font: 12px var(--x-mono); color: var(--x-run); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.machine .from { color: var(--x-fg3); font-size: 12px; }\n.links { position: absolute; inset: 0; pointer-events: none; overflow: visible; }\n.links path { fill: none; stroke: var(--x-b2); stroke-width: 1.25; }\n.links path.invoke { stroke: var(--x-fg4); stroke-dasharray: 3 3; }\n.links path.hot { stroke: var(--x-wait); stroke-width: 2; }\n.talks { display: flex; gap: 4px; flex-wrap: wrap; }\n.pulse { animation: pulse 1.2s ease-out; }\n@keyframes pulse { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--x-wait) 45%, transparent); } to { box-shadow: 0 0 0 8px transparent; } }\n.traffic { list-style: none; margin: 0; padding: 0; font: 12px/1.4 var(--x-mono); }\n.traffic li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--x-b1); }\n.traffic .dir { color: var(--x-fg3); }\n\n/* \u2500\u2500 accessibility \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }\n.card:focus-visible, .list-row:focus-visible, .lane-row:focus-visible, .door:focus-visible { outline: 2px solid var(--x-accent); outline-offset: 2px; }\n.lane-head .name { border: 0; background: none; padding: 0; text-align: left; font: inherit; font-weight: 600; }\n\n@container explorer (max-width: 760px) {\n .system { grid-template-columns: 1fr; gap: 12px; }\n .links { display: none; }\n .diagram { grid-auto-flow: row; grid-auto-columns: auto; }\n}\n.detail ul.warnings { margin: 0; padding: 0 0 0 16px; display: grid; gap: 4px; font: 12px/1.45 var(--x-sans); color: var(--x-fg1); }\n.detail ul.warnings li::marker { color: var(--x-wait); content: \"\u26A0 \"; }\n\n/* WCAG 2.2 target size: every control is at least 24px tall */\n.chip, .drill, .more { min-height: 24px; }\n.drill, .more { min-width: 24px; }\n/* the state name is the card's / row's primary button: it looks like text */\nbutton.select {\n all: unset; box-sizing: border-box; cursor: pointer; min-height: 24px; display: inline-flex; align-items: center;\n overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto;\n}\n.card button.select { flex: 1; }\nbutton.select:focus-visible { outline: 2px solid var(--x-accent); outline-offset: 2px; border-radius: var(--x-r); }\n\n/* right-to-left pages: disclosure triangles point the other way */\n:host(:dir(rtl)) .twisty { transform: scaleX(-1); }\n";
|