@pipelex/mthds-ui 0.59.0 → 0.60.1

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.
Files changed (50) hide show
  1. package/dist/{chunk-S4UMMHLE.js → chunk-43NAVRQK.js} +17 -2
  2. package/dist/chunk-43NAVRQK.js.map +1 -0
  3. package/dist/{chunk-6KWNAU4F.js → chunk-BQZ3BPJM.js} +13 -1
  4. package/dist/chunk-BQZ3BPJM.js.map +1 -0
  5. package/dist/{chunk-XMTXWXFO.js → chunk-KKT6OVO6.js} +3 -3
  6. package/dist/{chunk-5N3MP5TD.js → chunk-PWKNMKFA.js} +106 -35
  7. package/dist/chunk-PWKNMKFA.js.map +1 -0
  8. package/dist/{chunk-ZRSFFUHA.js → chunk-S36KN6CG.js} +3 -3
  9. package/dist/chunk-UVEGKTBU.js +600 -0
  10. package/dist/chunk-UVEGKTBU.js.map +1 -0
  11. package/dist/{chunk-7QUQJW6Q.js → chunk-YQJNKQWO.js} +91 -285
  12. package/dist/chunk-YQJNKQWO.js.map +1 -0
  13. package/dist/form/react/index.d.ts +1 -1
  14. package/dist/form/react/index.js +2 -2
  15. package/dist/graph/index.d.ts +48 -21
  16. package/dist/graph/index.js +61 -21
  17. package/dist/graph/react/detail/DetailPanel.css +49 -0
  18. package/dist/graph/react/graph-core.css +20 -0
  19. package/dist/graph/react/index.d.ts +2 -2
  20. package/dist/graph/react/index.js +92 -29
  21. package/dist/graph/react/index.js.map +1 -1
  22. package/dist/graph/react/styles/simple/SimpleDetailPanel.css +20 -0
  23. package/dist/graph/react/styles/simple/SimpleStyle.css +13 -0
  24. package/dist/index.d.ts +3 -2
  25. package/dist/index.js +61 -21
  26. package/dist/methodWords-DIEg1PVT.d.ts +180 -0
  27. package/dist/{registryJoin-CMfBspIs.d.ts → registryJoin-Cj1mIkqe.d.ts} +18 -10
  28. package/dist/standalone/graph-standalone.html +232 -130
  29. package/dist/standalone/graph-viewer.css +102 -0
  30. package/dist/standalone/graph-viewer.js +130 -130
  31. package/dist/static-graph/index.d.ts +1 -1
  32. package/dist/static-graph/index.js +57 -14
  33. package/dist/static-graph/index.js.map +1 -1
  34. package/dist/timeline/index.d.ts +42 -7
  35. package/dist/timeline/index.js +8 -3
  36. package/dist/timeline/react/RunTimeline.css +18 -0
  37. package/dist/timeline/react/index.d.ts +3 -2
  38. package/dist/timeline/react/index.js +20 -11
  39. package/dist/timeline/react/index.js.map +1 -1
  40. package/dist/timeline/react/styles/simple/SimpleProgress.css +25 -0
  41. package/dist/{types-CnDJyLYo.d.ts → types-BygAt1Si.d.ts} +51 -1
  42. package/package.json +2 -2
  43. package/dist/chunk-5N3MP5TD.js.map +0 -1
  44. package/dist/chunk-6KWNAU4F.js.map +0 -1
  45. package/dist/chunk-7QUQJW6Q.js.map +0 -1
  46. package/dist/chunk-P6IGZVWE.js +0 -155
  47. package/dist/chunk-P6IGZVWE.js.map +0 -1
  48. package/dist/chunk-S4UMMHLE.js.map +0 -1
  49. /package/dist/{chunk-XMTXWXFO.js.map → chunk-KKT6OVO6.js.map} +0 -0
  50. /package/dist/{chunk-ZRSFFUHA.js.map → chunk-S36KN6CG.js.map} +0 -0
@@ -286,6 +286,26 @@
286
286
  font-weight: 600;
287
287
  color: var(--ctrl-condition-text);
288
288
  }
289
+ /* An outcome the method gives words reads in its tone, through the tone
290
+ tokens, never a literal colour. */
291
+ .simple-detail-outcome-label--positive {
292
+ color: var(--positive);
293
+ }
294
+ .simple-detail-outcome-label--caution {
295
+ color: var(--caution);
296
+ }
297
+ .simple-detail-outcome-label--negative {
298
+ color: var(--negative);
299
+ }
300
+ .simple-detail-outcome-label--neutral {
301
+ color: var(--neutral);
302
+ }
303
+ /* What taking it means, on a line of its own under the outcome. */
304
+ .simple-detail-outcome-description {
305
+ flex-basis: 100%;
306
+ font-size: 12px;
307
+ color: var(--text-muted);
308
+ }
289
309
  .simple-detail-outcome-arrow {
290
310
  color: var(--text-dim);
291
311
  }
@@ -417,6 +417,19 @@
417
417
  font-weight: 600;
418
418
  color: var(--ctrl-batch-text);
419
419
  white-space: nowrap;
420
+ min-width: 0;
421
+ }
422
+ /* A batch's own activity can outrun its frame's width, which its steps set:
423
+ it is cut with an ellipsis, the whole of it in the title's tooltip. A
424
+ tooltip shows only for the element under the pointer, so the title takes
425
+ the pointer back from the header that lets it through; a press on it still
426
+ reaches the frame's node, which selects and drags the frame. */
427
+ .simple-frame-header .simple-frame-title {
428
+ pointer-events: auto;
429
+ }
430
+ .simple-frame-title-text {
431
+ overflow: hidden;
432
+ text-overflow: ellipsis;
420
433
  }
421
434
  .simple-frame-header .simple-status,
422
435
  .simple-frame-header .node-validation-badge {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- export { B as ARROW_CLOSED_MARKER, H as BINDING_STEP_TYPE, I as BindingNode, J as BindingStepSpec, K as BindingStepType, M as CONTROLLER_PADDING_BOTTOM, O as CONTROLLER_PADDING_TOP, Q as CONTROLLER_PADDING_X, s as CardNode, C as ConceptInfo, D as DataflowAnalysis, R as EDGE_TYPE, U as EDGE_TYPE_ROUTED, E as EdgeRoute, W as EdgeType, X as FOLD_MODE, Y as FieldResolution, F as FoldMode, o as FoldToggleOptions, Z as GRAPH_DIRECTION, _ as GRAPH_SPEC_MODE, $ as GRAPH_STYLE, a0 as GRAPH_THEME, a1 as GRAPH_THEME_MODE, h as GraphConfig, u as GraphData, i as GraphDirection, f as GraphEdge, g as GraphNode, e as GraphNodeData, x as GraphPoint, d as GraphSpec, a2 as GraphSpecEdge, a3 as GraphSpecEdgeKind, a4 as GraphSpecMeta, v as GraphSpecMode, a5 as GraphSpecModelUsage, q as GraphSpecNode, a6 as GraphSpecNodeIo, l as GraphSpecNodeIoItem, a7 as GraphSpecNodeTiming, a8 as GraphSpecNodeUsage, a9 as GraphSpecUsage, j as GraphStyleId, a as GraphTheme, G as GraphThemeMode, aa as JudgmentQuestionSpec, ab as KNOWN_PIPE_TYPES, L as LabelDescriptor, w as LayoutConfig, ac as NODE_TYPE_CONTROLLER, ad as NODE_TYPE_PIPE_CARD, ae as NODE_TYPE_SIMPLE_DECISION, af as NODE_TYPE_SIMPLE_FRAME, ag as NODE_TYPE_SIMPLE_STEP, ah as NODE_TYPE_SIMPLE_TERMINAL, ai as NODE_TYPE_STUFF, aj as NodeKind, z as NodePipeType, N as NodeValidationSummary, ak as PipeBatchBlueprint, al as PipeBlueprintBase, P as PipeBlueprintUnion, t as PipeCallNode, p as PipeCardPayload, am as PipeComposeBlueprint, an as PipeComposeConstructBlueprint, ao as PipeComposeConstructField, ap as PipeConditionBlueprint, n as PipeControllerType, aq as PipeDocGenBlueprint, ar as PipeExtractBlueprint, as as PipeFuncBlueprint, at as PipeImgGenBlueprint, au as PipeJudgeBlueprint, av as PipeLLMBlueprint, r as PipeOperatorType, aw as PipeParallelBlueprint, ax as PipeSearchBlueprint, b as PipeSequenceBlueprint, ay as PipeSignatureBlueprint, k as PipeStatus, az as PipeStructureBlueprint, aA as PipeType, c as PresenceMarker, aB as STEP_CATEGORY, aC as STUFF_ID_PREFIX, aD as SequenceStepSpec, aE as SimpleNodePayload, y as SimpleTitleFit, A as StepCategory, aF as StuffMultiplicity, aG as StuffRegistryEntry, aH as StuffRole, aI as StuffSpecInfo, S as SubPipeSpec, aJ as TOOLBAR_POSITION, aK as TemplateBlueprint, aL as ToolbarOrientation, T as ToolbarPosition, aM as ToolbarSide, aN as VALIDATION_STATE, V as ValidationIssue, m as ValidationState, aO as graphSpecMode, aP as isBindingNode, aQ as isBindingStepSpec, aR as isDryGraphSpec, aS as isFailingPipeNode, aT as isPluralMultiplicity, aU as isStaticGraphSpec, aV as isStuffNodeId, aW as multiplicitySuffix, aX as nodeHeight, aY as nodeWidth, aZ as problemFailingPipe, a_ as stuffDigestFromId, a$ as stuffNodeId, b0 as toolbarOrientation, b1 as toolbarSide } from './types-CnDJyLYo.js';
2
- export { ControllerRect, DARK_PALETTE_COLORS, DEFAULT_GRAPH_CONFIG, ElkPositionResult, GRAPH_STYLES, GRAPH_STYLE_IDS, GRAPH_STYLE_PIPELINES, GraphSpecValidationError, GraphStyleCapabilities, GraphStyleDescriptor, GraphStylePipeline, LIGHT_PALETTE_COLORS, LayoutResult, MAX_VISIBLE_CONTROLLER_CHILDREN, ROUTE_CORNER_RADIUS_PX, ROUTE_ENDPOINT_TOLERANCE_PX, SIMPLE_DECISION_WIDTHS, SIMPLE_FOLD_DEPTH, SIMPLE_STEP_TITLE_FITS, SIMPLE_STEP_WIDE_WIDTH, SIMPLE_STEP_WIDTH, SIMPLE_TERMINAL_WIDTH, STEP_CATEGORY_BY_PIPE_TYPE, STEP_CATEGORY_WORDS, SimpleArrowDetail, SimpleDecisionDetail, SimpleDetail, SimpleDetailInput, SimpleDetailTarget, SimpleFrameDetail, SimpleInstructions, SimpleLinkKind, SimpleNodeLink, SimpleOutcome, SimpleOutcomeEnd, SimpleProjection, SimpleProjectionInput, SimpleRunSummary, SimpleRunTally, SimpleStepDetail, SimpleValue, SimpleValueDetail, SimpleValueFlow, StuffLocation, StyleFrameArgs, StyleProjection, StyleProjectionArgs, WrapEstimate, aggregateStatus, applyControllers, applyFolds, applySimpleFrames, applyValidationDecorations, asCardNode, asPipeCallNode, buildChildToControllerMap, buildContainmentChain, buildControllerNodes, buildDataflowAnalysis, buildDataflowGraph, buildElkGraph, buildGraph, buildPipeCardPayload, buildSimpleNodeDetail, buildValidationDecorations, conceptPlainName, estimateNodeDimensions, estimateWrap, extractAbsolutePositions, extractEdgeRoutes, findCousinControllers, findStuffByDigest, fitRoute, getConceptInfo, getLayoutedElements, getPaletteColors, getPaletteForTheme, getPipeBlueprint, humanizeIdentifier, humanizeInSentence, inputPortId, isGenericConcept, isGraphStyleId, outcomeLabel, outermostFoldedAncestor, outputPortId, pipeRefOf, pipeTitle, polylineMidpoint, projectSimpleGraph, resolveConceptRef, resolveGraphStyle, resolveIssueTargetNodeId, resolveNodeBlueprint, resolveStyleMenu, roundedPolylinePath, routeLabelCenter, sentenceCase, simpleDecisionSize, simpleDefaultFolds, simpleEdgeLabelSize, simpleStepSize, simpleTerminalSize, simpleTitleFit, simpleTitleWrap, simpleValueTitle, sortParentsFirst, stripDomain, textWidthPx, validateGraphSpec } from './graph/index.js';
1
+ export { I as ARROW_CLOSED_MARKER, J as BINDING_STEP_TYPE, K as BindingNode, M as BindingStepSpec, Q as BindingStepType, R as CONTROLLER_PADDING_BOTTOM, U as CONTROLLER_PADDING_TOP, W as CONTROLLER_PADDING_X, u as CardNode, C as ConceptInfo, D as DataflowAnalysis, X as EDGE_TYPE, Y as EDGE_TYPE_ROUTED, E as EdgeRoute, Z as EdgeType, _ as FOLD_MODE, $ as FieldResolution, F as FoldMode, q as FoldToggleOptions, a0 as GRAPH_DIRECTION, a1 as GRAPH_SPEC_MODE, a2 as GRAPH_STYLE, a3 as GRAPH_THEME, a4 as GRAPH_THEME_MODE, j as GraphConfig, w as GraphData, k as GraphDirection, h as GraphEdge, i as GraphNode, g as GraphNodeData, z as GraphPoint, f as GraphSpec, a5 as GraphSpecEdge, a6 as GraphSpecEdgeKind, a7 as GraphSpecMeta, x as GraphSpecMode, a8 as GraphSpecModelUsage, s as GraphSpecNode, a9 as GraphSpecNodeIo, n as GraphSpecNodeIoItem, aa as GraphSpecNodeTiming, ab as GraphSpecNodeUsage, ac as GraphSpecUsage, l as GraphStyleId, a as GraphTheme, G as GraphThemeMode, ad as JudgmentQuestionSpec, ae as KNOWN_PIPE_TYPES, L as LabelDescriptor, y as LayoutConfig, af as NODE_TYPE_CONTROLLER, ag as NODE_TYPE_PIPE_CARD, ah as NODE_TYPE_SIMPLE_DECISION, ai as NODE_TYPE_SIMPLE_FRAME, aj as NODE_TYPE_SIMPLE_STEP, ak as NODE_TYPE_SIMPLE_TERMINAL, al as NODE_TYPE_STUFF, am as NodeKind, B as NodePipeType, N as NodeValidationSummary, an as OUTCOME_TONE, O as OutcomeTone, ao as OutcomeWords, ap as PipeBatchBlueprint, aq as PipeBlueprintBase, P as PipeBlueprintUnion, v as PipeCallNode, r as PipeCardPayload, ar as PipeComposeBlueprint, as as PipeComposeConstructBlueprint, at as PipeComposeConstructField, b as PipeConditionBlueprint, p as PipeControllerType, au as PipeDocGenBlueprint, av as PipeExtractBlueprint, aw as PipeFuncBlueprint, ax as PipeImgGenBlueprint, ay as PipeJudgeBlueprint, az as PipeLLMBlueprint, t as PipeOperatorType, aA as PipeParallelBlueprint, aB as PipeSearchBlueprint, d as PipeSequenceBlueprint, aC as PipeSignatureBlueprint, m as PipeStatus, aD as PipeStructureBlueprint, aE as PipeType, e as PresenceMarker, aF as STEP_CATEGORY, aG as STUFF_ID_PREFIX, aH as SequenceStepSpec, aI as SimpleNodePayload, A as SimpleTitleFit, H as StepCategory, aJ as StuffMultiplicity, aK as StuffRegistryEntry, aL as StuffRole, S as StuffSpecInfo, c as SubPipeSpec, aM as TOOLBAR_POSITION, aN as TemplateBlueprint, aO as ToolbarOrientation, T as ToolbarPosition, aP as ToolbarSide, aQ as VALIDATION_STATE, V as ValidationIssue, o as ValidationState, aR as graphSpecMode, aS as isBindingNode, aT as isBindingStepSpec, aU as isDryGraphSpec, aV as isFailingPipeNode, aW as isOutcomeTone, aX as isPluralMultiplicity, aY as isStaticGraphSpec, aZ as isStuffNodeId, a_ as multiplicitySuffix, a$ as nodeHeight, b0 as nodeWidth, b1 as problemFailingPipe, b2 as stuffDigestFromId, b3 as stuffNodeId, b4 as toolbarOrientation, b5 as toolbarSide } from './types-BygAt1Si.js';
2
+ export { ControllerRect, DARK_PALETTE_COLORS, DEFAULT_GRAPH_CONFIG, ElkPositionResult, GRAPH_STYLES, GRAPH_STYLE_IDS, GRAPH_STYLE_PIPELINES, GraphSpecValidationError, GraphStyleCapabilities, GraphStyleDescriptor, GraphStylePipeline, LIGHT_PALETTE_COLORS, LayoutResult, MAX_VISIBLE_CONTROLLER_CHILDREN, OUTCOME_TONE_COLORS, ROUTE_CORNER_RADIUS_PX, ROUTE_ENDPOINT_TOLERANCE_PX, SIMPLE_DECISION_WIDTHS, SIMPLE_FOLD_DEPTH, SIMPLE_STEP_TITLE_FITS, SIMPLE_STEP_WIDE_WIDTH, SIMPLE_STEP_WIDTH, SIMPLE_TERMINAL_WIDTH, STEP_CATEGORY_BY_PIPE_TYPE, STEP_CATEGORY_WORDS, SimpleArrowDetail, SimpleDecisionDetail, SimpleDetail, SimpleDetailInput, SimpleDetailTarget, SimpleFrameDetail, SimpleInstructions, SimpleLinkKind, SimpleNodeLink, SimpleOutcome, SimpleOutcomeEnd, SimpleProjection, SimpleProjectionInput, SimpleRunSummary, SimpleRunTally, SimpleStepDetail, SimpleValue, SimpleValueDetail, SimpleValueFlow, StuffLocation, StyleFrameArgs, StyleProjection, StyleProjectionArgs, WrapEstimate, aggregateStatus, applyControllers, applyFolds, applySimpleFrames, applyValidationDecorations, asCardNode, asPipeCallNode, buildChildToControllerMap, buildContainmentChain, buildControllerNodes, buildDataflowAnalysis, buildDataflowGraph, buildElkGraph, buildGraph, buildPipeCardPayload, buildSimpleNodeDetail, buildValidationDecorations, conceptPlainName, estimateNodeDimensions, estimateWrap, extractAbsolutePositions, extractEdgeRoutes, findCousinControllers, findStuffByDigest, fitRoute, getConceptInfo, getLayoutedElements, getPaletteColors, getPaletteForTheme, getPipeBlueprint, humanizeIdentifier, humanizeInSentence, inputPortId, isGenericConcept, isGraphStyleId, outcomeKeyLabel, outermostFoldedAncestor, outputPortId, pipeRefOf, polylineMidpoint, projectSimpleGraph, resolveConceptRef, resolveGraphStyle, resolveIssueTargetNodeId, resolveNodeBlueprint, resolveStyleMenu, roundedPolylinePath, routeLabelCenter, sentenceCase, simpleDecisionSize, simpleDefaultFolds, simpleEdgeLabelSize, simpleStepSize, simpleTerminalSize, simpleTitleFit, simpleTitleWrap, simpleValueTitle, sortParentsFirst, stripDomain, textWidthPx, validateGraphSpec, wordsInSentence } from './graph/index.js';
3
3
  export { P as ParsedPipeRef, m as makePipeRef, p as parsePipeRef } from './pipeRefs-BQJO5nh5.js';
4
+ export { C as ConceptLookup, a as ConditionBranch, O as OutcomeKey, b as OutcomeWordsRead, c as SELECTED_OUTCOME_WORDS_KEY, S as StepWording, d as StepWordingSource, e as WORDING_SOURCE, W as WordingSource, f as activityTitle, g as branchOutcomeWords, h as conditionBranches, i as isFileValuedOutput, j as isPlumbingStep, o as outcomeArrowLabel, k as outcomeKeysFromTag, l as outcomeTone, m as outcomeWordsOf, r as registryConceptLookup, s as sameOutcomes, n as selectedOutcomeWords, p as sharedOutcomeTone, q as stepWording, t as takenOutcomeKey } from './methodWords-DIEg1PVT.js';
4
5
  import 'mthds/errors';
5
6
  import 'elkjs/lib/elk-api';
package/dist/index.js CHANGED
@@ -20,10 +20,8 @@ import {
20
20
  applyValidationDecorations,
21
21
  asCardNode,
22
22
  asPipeCallNode,
23
- buildChildToControllerMap,
24
23
  buildContainmentChain,
25
24
  buildControllerNodes,
26
- buildDataflowAnalysis,
27
25
  buildDataflowGraph,
28
26
  buildElkGraph,
29
27
  buildGraph,
@@ -37,18 +35,14 @@ import {
37
35
  findCousinControllers,
38
36
  findStuffByDigest,
39
37
  fitRoute,
40
- getConceptInfo,
41
38
  getLayoutedElements,
42
- getPipeBlueprint,
43
39
  inputPortId,
44
40
  outermostFoldedAncestor,
45
41
  outputPortId,
46
42
  pipeRefOf,
47
43
  polylineMidpoint,
48
44
  projectSimpleGraph,
49
- resolveConceptRef,
50
45
  resolveIssueTargetNodeId,
51
- resolveNodeBlueprint,
52
46
  roundedPolylinePath,
53
47
  routeLabelCenter,
54
48
  simpleDecisionSize,
@@ -62,35 +56,59 @@ import {
62
56
  sortParentsFirst,
63
57
  textWidthPx,
64
58
  validateGraphSpec
65
- } from "./chunk-7QUQJW6Q.js";
59
+ } from "./chunk-YQJNKQWO.js";
66
60
  import {
67
61
  GRAPH_STYLES,
68
62
  GRAPH_STYLE_IDS,
69
63
  isGraphStyleId,
70
64
  resolveGraphStyle,
71
65
  resolveStyleMenu
72
- } from "./chunk-XMTXWXFO.js";
73
- import {
74
- makePipeRef,
75
- parsePipeRef
76
- } from "./chunk-2N65P32H.js";
66
+ } from "./chunk-KKT6OVO6.js";
77
67
  import {
68
+ SELECTED_OUTCOME_WORDS_KEY,
69
+ WORDING_SOURCE,
70
+ activityTitle,
71
+ branchOutcomeWords,
72
+ buildChildToControllerMap,
73
+ buildDataflowAnalysis,
78
74
  conceptPlainName,
75
+ conditionBranches,
76
+ getConceptInfo,
77
+ getPipeBlueprint,
79
78
  humanizeIdentifier,
80
79
  humanizeInSentence,
80
+ isFileValuedOutput,
81
81
  isGenericConcept,
82
- outcomeLabel,
83
- pipeTitle,
82
+ isPlumbingStep,
83
+ outcomeArrowLabel,
84
+ outcomeKeyLabel,
85
+ outcomeKeysFromTag,
86
+ outcomeTone,
87
+ outcomeWordsOf,
88
+ registryConceptLookup,
89
+ resolveConceptRef,
90
+ resolveNodeBlueprint,
91
+ sameOutcomes,
92
+ selectedOutcomeWords,
84
93
  sentenceCase,
85
- stripDomain
86
- } from "./chunk-P6IGZVWE.js";
94
+ sharedOutcomeTone,
95
+ stepWording,
96
+ stripDomain,
97
+ takenOutcomeKey,
98
+ wordsInSentence
99
+ } from "./chunk-UVEGKTBU.js";
100
+ import {
101
+ makePipeRef,
102
+ parsePipeRef
103
+ } from "./chunk-2N65P32H.js";
87
104
  import {
88
105
  DARK_PALETTE_COLORS,
89
106
  DEFAULT_GRAPH_CONFIG,
90
107
  LIGHT_PALETTE_COLORS,
108
+ OUTCOME_TONE_COLORS,
91
109
  getPaletteColors,
92
110
  getPaletteForTheme
93
- } from "./chunk-S4UMMHLE.js";
111
+ } from "./chunk-43NAVRQK.js";
94
112
  import {
95
113
  ARROW_CLOSED_MARKER,
96
114
  BINDING_STEP_TYPE,
@@ -113,6 +131,7 @@ import {
113
131
  NODE_TYPE_SIMPLE_STEP,
114
132
  NODE_TYPE_SIMPLE_TERMINAL,
115
133
  NODE_TYPE_STUFF,
134
+ OUTCOME_TONE,
116
135
  STEP_CATEGORY,
117
136
  STUFF_ID_PREFIX,
118
137
  TOOLBAR_POSITION,
@@ -122,6 +141,7 @@ import {
122
141
  isBindingStepSpec,
123
142
  isDryGraphSpec,
124
143
  isFailingPipeNode,
144
+ isOutcomeTone,
125
145
  isPluralMultiplicity,
126
146
  isStaticGraphSpec,
127
147
  isStuffNodeId,
@@ -133,7 +153,7 @@ import {
133
153
  stuffNodeId,
134
154
  toolbarOrientation,
135
155
  toolbarSide
136
- } from "./chunk-6KWNAU4F.js";
156
+ } from "./chunk-BQZ3BPJM.js";
137
157
  import "./chunk-2NMEKWO5.js";
138
158
  export {
139
159
  ARROW_CLOSED_MARKER,
@@ -165,8 +185,11 @@ export {
165
185
  NODE_TYPE_SIMPLE_STEP,
166
186
  NODE_TYPE_SIMPLE_TERMINAL,
167
187
  NODE_TYPE_STUFF,
188
+ OUTCOME_TONE,
189
+ OUTCOME_TONE_COLORS,
168
190
  ROUTE_CORNER_RADIUS_PX,
169
191
  ROUTE_ENDPOINT_TOLERANCE_PX,
192
+ SELECTED_OUTCOME_WORDS_KEY,
170
193
  SIMPLE_DECISION_WIDTHS,
171
194
  SIMPLE_FOLD_DEPTH,
172
195
  SIMPLE_STEP_TITLE_FITS,
@@ -179,6 +202,8 @@ export {
179
202
  STUFF_ID_PREFIX,
180
203
  TOOLBAR_POSITION,
181
204
  VALIDATION_STATE,
205
+ WORDING_SOURCE,
206
+ activityTitle,
182
207
  aggregateStatus,
183
208
  applyControllers,
184
209
  applyFolds,
@@ -186,6 +211,7 @@ export {
186
211
  applyValidationDecorations,
187
212
  asCardNode,
188
213
  asPipeCallNode,
214
+ branchOutcomeWords,
189
215
  buildChildToControllerMap,
190
216
  buildContainmentChain,
191
217
  buildControllerNodes,
@@ -197,6 +223,7 @@ export {
197
223
  buildSimpleNodeDetail,
198
224
  buildValidationDecorations,
199
225
  conceptPlainName,
226
+ conditionBranches,
200
227
  estimateNodeDimensions,
201
228
  estimateWrap,
202
229
  extractAbsolutePositions,
@@ -217,8 +244,11 @@ export {
217
244
  isBindingStepSpec,
218
245
  isDryGraphSpec,
219
246
  isFailingPipeNode,
247
+ isFileValuedOutput,
220
248
  isGenericConcept,
221
249
  isGraphStyleId,
250
+ isOutcomeTone,
251
+ isPlumbingStep,
222
252
  isPluralMultiplicity,
223
253
  isStaticGraphSpec,
224
254
  isStuffNodeId,
@@ -226,15 +256,19 @@ export {
226
256
  multiplicitySuffix,
227
257
  nodeHeight,
228
258
  nodeWidth,
229
- outcomeLabel,
259
+ outcomeArrowLabel,
260
+ outcomeKeyLabel,
261
+ outcomeKeysFromTag,
262
+ outcomeTone,
263
+ outcomeWordsOf,
230
264
  outermostFoldedAncestor,
231
265
  outputPortId,
232
266
  parsePipeRef,
233
267
  pipeRefOf,
234
- pipeTitle,
235
268
  polylineMidpoint,
236
269
  problemFailingPipe,
237
270
  projectSimpleGraph,
271
+ registryConceptLookup,
238
272
  resolveConceptRef,
239
273
  resolveGraphStyle,
240
274
  resolveIssueTargetNodeId,
@@ -242,7 +276,10 @@ export {
242
276
  resolveStyleMenu,
243
277
  roundedPolylinePath,
244
278
  routeLabelCenter,
279
+ sameOutcomes,
280
+ selectedOutcomeWords,
245
281
  sentenceCase,
282
+ sharedOutcomeTone,
246
283
  simpleDecisionSize,
247
284
  simpleDefaultFolds,
248
285
  simpleEdgeLabelSize,
@@ -252,12 +289,15 @@ export {
252
289
  simpleTitleWrap,
253
290
  simpleValueTitle,
254
291
  sortParentsFirst,
292
+ stepWording,
255
293
  stripDomain,
256
294
  stuffDigestFromId,
257
295
  stuffNodeId,
296
+ takenOutcomeKey,
258
297
  textWidthPx,
259
298
  toolbarOrientation,
260
299
  toolbarSide,
261
- validateGraphSpec
300
+ validateGraphSpec,
301
+ wordsInSentence
262
302
  };
263
303
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,180 @@
1
+ import { C as ConceptInfo, O as OutcomeTone, P as PipeBlueprintUnion, b as PipeConditionBlueprint, S as StuffSpecInfo } from './types-BygAt1Si.js';
2
+
3
+ /** Where a step's title came from: the method's words for a person, its words for a builder, or its code. */
4
+ declare const WORDING_SOURCE: {
5
+ readonly ACTIVITY: "activity";
6
+ readonly DESCRIPTION: "description";
7
+ readonly CODE: "code";
8
+ };
9
+ type WordingSource = (typeof WORDING_SOURCE)[keyof typeof WORDING_SOURCE];
10
+ /** A step's title in plain words, and where it came from. */
11
+ interface StepWording {
12
+ title: string;
13
+ source: WordingSource;
14
+ }
15
+ /** What a step's wording is read from: a registry pipe or a graph node, which both carry the two texts. */
16
+ interface StepWordingSource {
17
+ activity?: string | null;
18
+ description?: string | null;
19
+ }
20
+ /**
21
+ * A step's title in plain words: its `activity` when it states one, the words
22
+ * written for the person watching a run; else its description, written for the
23
+ * people who build methods; else its humanized code. Each authored text is
24
+ * shown as its author wrote it, whitespace collapsed and one closing period
25
+ * dropped (`sentenceCase`).
26
+ */
27
+ declare function stepWording(pipe: StepWordingSource | null | undefined, pipeCode: string): StepWording;
28
+ /** A pipe's `activity` as a title, or `null` when it states none. */
29
+ declare function activityTitle(pipe: StepWordingSource | null | undefined): string | null;
30
+ /** An outcome's words for people, each `null` when the method does not give it. */
31
+ interface OutcomeWordsRead {
32
+ label: string | null;
33
+ description: string | null;
34
+ /** One of the four tones; a word that is none of them reads as no tone. */
35
+ tone: OutcomeTone | null;
36
+ }
37
+ /**
38
+ * One of a condition's outcomes: a key of its outcome map, or `null` for its
39
+ * default outcome. The default is never spelled as a key, so an outcome the
40
+ * method itself names `default` stays its own.
41
+ */
42
+ type OutcomeKey = string | null;
43
+ /**
44
+ * The words a condition gives one of its outcomes: the outcome map's key, or
45
+ * `null` for its default outcome. `null` when the condition is unknown or wrote
46
+ * that outcome as a bare pipe reference, which carries no words.
47
+ */
48
+ declare function outcomeWordsOf(condition: PipeBlueprintUnion | null | undefined, key: OutcomeKey): OutcomeWordsRead | null;
49
+ /**
50
+ * The tone one outcome reads in, the one rule every view colours an outcome
51
+ * by: the tone the method states; else neutral when the method gives the
52
+ * outcome a label, since a named outcome is drawn as one; else none, and an
53
+ * outcome named only by its key, or given only a description, keeps the
54
+ * colour of what surrounds it. No tone is ever inferred.
55
+ */
56
+ declare function outcomeTone(words: Pick<OutcomeWordsRead, "label" | "tone"> | null | undefined): OutcomeTone | null;
57
+ /**
58
+ * The tone of one arrow or row standing for several outcomes: a tone only when
59
+ * every outcome in it has one (`outcomeTone`) and they all agree, since one row
60
+ * cannot say two things, and an outcome without words says nothing to agree
61
+ * with.
62
+ */
63
+ declare function sharedOutcomeTone(words: readonly (Pick<OutcomeWordsRead, "label" | "tone"> | null)[]): OutcomeTone | null;
64
+ /**
65
+ * The description and tone of a row or a line standing for a branch's
66
+ * outcomes: a description only when exactly one of them has one, and a tone
67
+ * by `sharedOutcomeTone`, which for a single outcome is its `outcomeTone`.
68
+ */
69
+ declare function branchOutcomeWords(condition: PipeBlueprintUnion | null | undefined, outcomes: readonly OutcomeKey[]): {
70
+ description: string | null;
71
+ tone: OutcomeTone | null;
72
+ };
73
+ /** The keys of a run graph node's `execution_data` a live run's condition records the words of its outcome under. */
74
+ declare const SELECTED_OUTCOME_WORDS_KEY: {
75
+ readonly LABEL: "selected_outcome_label";
76
+ readonly DESCRIPTION: "selected_outcome_description";
77
+ readonly TONE: "selected_outcome_tone";
78
+ };
79
+ /**
80
+ * The words of the outcome a live run's condition took, as its node's
81
+ * `execution_data` records them, or `null` when it records none: a dry run, a
82
+ * runtime that predates them, or an outcome written as a bare pipe reference.
83
+ */
84
+ declare function selectedOutcomeWords(executionData: Record<string, unknown> | null | undefined): OutcomeWordsRead | null;
85
+ /**
86
+ * Which outcome a live run's condition took, from what its node's
87
+ * `execution_data` records: the outcome map's key, `null` for the default
88
+ * outcome, or `undefined` when it records none, as a dry run does. The runtime
89
+ * records the value the expression rendered (`evaluated_expression`) and the
90
+ * pipe the outcome map names for it (`selected_outcome`), the default
91
+ * outcome's when the value is no key; the two must agree, so a dry run's
92
+ * `all_outcomes` takes none. Without the rendered value, the key is the one
93
+ * whose pipe was run, and the default when no key names it.
94
+ */
95
+ declare function takenOutcomeKey(condition: PipeConditionBlueprint, executionData: Record<string, unknown> | null | undefined): OutcomeKey | undefined;
96
+ /**
97
+ * The outcomes a static graph's outcome tag names, as `buildStaticGraphSpec`
98
+ * writes one on a branch taken on several (`no_fit | default`), where
99
+ * `default` names the default outcome. The tag cannot tell that from an
100
+ * outcome the method names `default`, so it is read only where the condition's
101
+ * own blueprint is unknown; with the blueprint, `conditionBranches` says.
102
+ */
103
+ declare function outcomeKeysFromTag(tag: string): OutcomeKey[];
104
+ /** Whether two lists name the same outcomes, in whatever order. */
105
+ declare function sameOutcomes(a: readonly OutcomeKey[], b: readonly OutcomeKey[]): boolean;
106
+ /**
107
+ * A branch's outcomes as one label, as an arrow or a row says them: each
108
+ * outcome by its label when the condition gives it one, else in plain words
109
+ * (`outcomeKeyLabel`; the default outcome reads "Otherwise"), joined by "or".
110
+ * Plain words after the first go in lower case, unless they open with an
111
+ * acronym, as `humanizeInSentence` keeps one ("Text or PDF").
112
+ */
113
+ declare function outcomeArrowLabel(outcomes: readonly OutcomeKey[], condition: PipeBlueprintUnion | null | undefined): string;
114
+ /** One way a condition can go: the outcomes that lead to one pipe, or to `fail` or `continue`. */
115
+ interface ConditionBranch {
116
+ /**
117
+ * What the outcomes lead to: the pipe's full reference, or `fail` or
118
+ * `continue`. Unique among a condition's branches, so it identifies one.
119
+ */
120
+ target: string;
121
+ /** The outcomes taken to it, in the order the condition writes them, the default last. */
122
+ outcomes: OutcomeKey[];
123
+ /**
124
+ * The branch as its arrow and its row say it (`outcomeArrowLabel`). When two
125
+ * branches would read the same, case aside, each is followed by its outcome
126
+ * keys as the method writes them, "otherwise" for the default ("Check
127
+ * (high)", "Check (low)"), so two arrows never read alike.
128
+ */
129
+ label: string;
130
+ }
131
+ /**
132
+ * Each way a condition can go, one branch per pipe its outcomes lead to, the
133
+ * order the condition writes its outcomes in. A bare pipe reference takes the
134
+ * condition's own domain.
135
+ */
136
+ declare function conditionBranches(condition: PipeConditionBlueprint): ConditionBranch[];
137
+ /** Looks a concept up by its full reference (`legal.Scan`), as a registry knows it. */
138
+ type ConceptLookup = (conceptRef: string) => ConceptInfo | null | undefined;
139
+ /**
140
+ * Whether a pipe's output is file-valued (MTHDS, "Naming Produced Files"): its
141
+ * concept is `native.Image` or `native.Document`, or refines one of them,
142
+ * directly or through the method's own concepts, single or plural. `true` or
143
+ * `false` when the chain of refinements says so, `null` when it cannot be
144
+ * followed: a refinement `lookupConcept` does not know, or a cycle.
145
+ *
146
+ * A refinement written bare (`refines = "Scan"`) names a concept in the
147
+ * refining concept's own domain, which `lookupConcept` is asked for first; a
148
+ * bare `Image` or `Document` the domain does not declare is the native. A
149
+ * bare name that resolves to neither is unknown, never taken for a native
150
+ * that writes no file.
151
+ *
152
+ * Each concept on the way is read at its fullest: when `lookupConcept` knows
153
+ * it with a refinement the concept at hand lacks, the lookup's entry is
154
+ * followed. A concept that states no refinement (`refines: null`) reaches no
155
+ * file; one that arrives without the field at all, and that the lookup cannot
156
+ * complete, is unknown.
157
+ */
158
+ declare function isFileValuedOutput(output: StuffSpecInfo | null | undefined, lookupConcept?: ConceptLookup): boolean | null;
159
+ /**
160
+ * Whether a step is plumbing, which a view of a run does not show (MTHDS,
161
+ * "What a Run Shows"): it only moves data from one shape to another. A
162
+ * PipeCompose always is, and a binding step; a PipeFunc is unless its output
163
+ * is file-valued (`isFileValuedOutput`, through `lookupConcept`). A PipeFunc
164
+ * whose pipe is unknown, or whose output cannot be told, is shown: a step a
165
+ * person waits for is never hidden on a guess. Every other pipe type, and a
166
+ * type this package does not know, is a step or a group. `pipeType` is a
167
+ * string because a run's snapshot carries it unvalidated.
168
+ */
169
+ declare function isPlumbingStep(pipeType: string, pipe?: PipeBlueprintUnion | null, lookupConcept?: ConceptLookup): boolean;
170
+ /**
171
+ * A concept lookup over what a pipe registry declares: every concept a pipe
172
+ * of it reads or writes, by its full reference, and the concepts of a concept
173
+ * registry beside it when there is one. Built once per registry. A concept
174
+ * met several times keeps the entry that says most of its refinement, so a
175
+ * poorer copy read later, one serialised without its `refines` or a stub for
176
+ * a concept a pipe only names, never replaces a fuller one.
177
+ */
178
+ declare function registryConceptLookup(pipes: Readonly<Record<string, PipeBlueprintUnion>> | undefined, concepts?: Readonly<Record<string, ConceptInfo>> | null): ConceptLookup;
179
+
180
+ export { type ConceptLookup as C, type OutcomeKey as O, type StepWording as S, type WordingSource as W, type ConditionBranch as a, type OutcomeWordsRead as b, SELECTED_OUTCOME_WORDS_KEY as c, type StepWordingSource as d, WORDING_SOURCE as e, activityTitle as f, branchOutcomeWords as g, conditionBranches as h, isFileValuedOutput as i, isPlumbingStep as j, outcomeKeysFromTag as k, outcomeTone as l, outcomeWordsOf as m, selectedOutcomeWords as n, outcomeArrowLabel as o, sharedOutcomeTone as p, stepWording as q, registryConceptLookup as r, sameOutcomes as s, takenOutcomeKey as t };
@@ -1,4 +1,5 @@
1
- import { S as SubPipeSpec, P as PipeBlueprintUnion, b as PipeSequenceBlueprint } from './types-CnDJyLYo.js';
1
+ import { c as SubPipeSpec, P as PipeBlueprintUnion, d as PipeSequenceBlueprint } from './types-BygAt1Si.js';
2
+ import { S as StepWording } from './methodWords-DIEg1PVT.js';
2
3
  import { Problem } from 'mthds/errors';
3
4
 
4
5
  /**
@@ -366,11 +367,8 @@ declare function resolveTimelineStyleMenu(styleMenu: boolean | readonly Timeline
366
367
  * within one version.
367
368
  */
368
369
  type TimelinePipeRegistry = Readonly<Record<string, PipeBlueprintUnion>>;
369
- /** A line's title in plain words, and whether it is the author's description. */
370
- interface JoinedTitle {
371
- title: string;
372
- fromDescription: boolean;
373
- }
370
+ /** A line's title in plain words, and where it came from: the pipe's `activity`, its description or its code. */
371
+ type JoinedTitle = StepWording;
374
372
  /** A pipe step of a sequence, with the number the contract gives it. */
375
373
  interface NumberedStep {
376
374
  /** Counted from 1, as the progress contract counts a step. */
@@ -414,15 +412,25 @@ declare function sequenceMatches(sequence: PipeSequenceBlueprint, node: Invocati
414
412
  /** The registry's sequence for a sequence invocation, when it agrees with what the snapshot ran under it. */
415
413
  declare function joinedSequence(registry: TimelinePipeRegistry | undefined, node: InvocationTreeNode): PipeSequenceBlueprint | null;
416
414
  /**
417
- * A pipe's title by its `pipe_ref`: its description as a title, else its
418
- * humanized code, `pipeCode` when given and otherwise the ref's last segment.
415
+ * A pipe's title by its `pipe_ref`: its `activity`, the words written for the
416
+ * person watching the run; else its description; else its humanized code,
417
+ * `pipeCode` when given and otherwise the ref's last segment (`stepWording`).
419
418
  */
420
419
  declare function titleOf(registry: TimelinePipeRegistry | undefined, pipeRef: string, pipeCode?: string): JoinedTitle;
420
+ /**
421
+ * Whether a pipe is plumbing, which the simple style does not show
422
+ * (`isPlumbingStep`): a PipeCompose or a binding step always is, a PipeFunc
423
+ * when its output's refinements, followed through the concepts the registry
424
+ * declares, reach no file. A PipeFunc the registry cannot describe is shown.
425
+ */
426
+ declare function isPlumbingPipe(registry: TimelinePipeRegistry | undefined, pipeType: string, pipe: PipeBlueprintUnion | null): boolean;
427
+ /** Whether the pipe a `pipe_ref` names is plumbing (`isPlumbingPipe`), by the type the run reports for it. */
428
+ declare function isPlumbingRef(registry: TimelinePipeRegistry | undefined, pipeRef: string, pipeType: string): boolean;
421
429
  /** What a batch's one line is named after: the pipe its items run, and the name of an item. */
422
430
  interface JoinedBatch {
423
431
  /** The branch pipe's `pipe_ref`, or `null` when neither the registry nor the snapshot names it. */
424
432
  branchRef: string | null;
425
- /** The line's title: the branch's description, never the batch's own. */
433
+ /** The line's title: the batch's own `activity` when it states one, else the branch's wording, never the batch's description. */
426
434
  title: JoinedTitle;
427
435
  /** The item's name in a sentence (`filing`), or `null` when the registry does not name it. */
428
436
  itemName: string | null;
@@ -438,4 +446,4 @@ interface JoinedBatch {
438
446
  */
439
447
  declare function joinBatch(registry: TimelinePipeRegistry | undefined, node: InvocationTreeNode, parentSequence: PipeSequenceBlueprint | null): JoinedBatch;
440
448
 
441
- export { sequenceOf as $, isItemNode as A, type BatchProgress as B, type ConditionProgress as C, DEFAULT_TIMELINE_STYLE as D, type ExecutionAttempt as E, isOrdinalSegment as F, isOutcomeNode as G, isRunEnded as H, type InvocationStatus as I, type JoinedBatch as J, isTimelineStyleId as K, joinBatch as L, joinedSequence as M, type NumberedStep as N, type OrdinalPathSegment as O, type ProgressSnapshot as P, lastPathSegment as Q, type RunProgressStatus as R, parentInvocationPath as S, type TimelineStyleId as T, type UnknownPathSegment as U, parsePathSegment as V, pipeOf as W, qualifyPipeCode as X, resolveTimelineStyle as Y, resolveTimelineStyleMenu as Z, sequenceMatches as _, type ProgressTimestamp as a, splitInvocationPath as a0, stepAt as a1, stepNumberOf as a2, stepsAfter as a3, timestampMs as a4, titleOf as a5, type TimelinePipeRegistry as b, type PathSegment as c, type ProgressInvocation as d, type ProgressDegradation as e, type ProgressMode as f, DEGRADATION_REASON as g, type DefaultPathSegment as h, INVOCATION_STATUS as i, type InvocationFailure as j, type InvocationTreeNode as k, type JoinedTitle as l, type OutcomePathSegment as m, PATH_SEGMENT_KIND as n, PROGRESS_MODE as o, type PathSegmentKind as p, RUN_PROGRESS_STATUS as q, TIMELINE_STYLE as r, TIMELINE_STYLES as s, TIMELINE_STYLE_IDS as t, type TimelineStyleDescriptor as u, buildInvocationTree as v, compareSiblings as w, compareTimestamps as x, decodeOutcomeKey as y, invocationPathDepth as z };
449
+ export { resolveTimelineStyleMenu as $, isItemNode as A, type BatchProgress as B, type ConditionProgress as C, DEFAULT_TIMELINE_STYLE as D, type ExecutionAttempt as E, isOrdinalSegment as F, isOutcomeNode as G, isPlumbingPipe as H, type InvocationStatus as I, type JoinedBatch as J, isPlumbingRef as K, isRunEnded as L, isTimelineStyleId as M, type NumberedStep as N, type OrdinalPathSegment as O, type ProgressSnapshot as P, joinBatch as Q, type RunProgressStatus as R, joinedSequence as S, type TimelineStyleId as T, type UnknownPathSegment as U, lastPathSegment as V, parentInvocationPath as W, parsePathSegment as X, pipeOf as Y, qualifyPipeCode as Z, resolveTimelineStyle as _, type ProgressTimestamp as a, sequenceMatches as a0, sequenceOf as a1, splitInvocationPath as a2, stepAt as a3, stepNumberOf as a4, stepsAfter as a5, timestampMs as a6, titleOf as a7, type TimelinePipeRegistry as b, type PathSegment as c, type ProgressInvocation as d, type ProgressDegradation as e, type ProgressMode as f, DEGRADATION_REASON as g, type DefaultPathSegment as h, INVOCATION_STATUS as i, type InvocationFailure as j, type InvocationTreeNode as k, type JoinedTitle as l, type OutcomePathSegment as m, PATH_SEGMENT_KIND as n, PROGRESS_MODE as o, type PathSegmentKind as p, RUN_PROGRESS_STATUS as q, TIMELINE_STYLE as r, TIMELINE_STYLES as s, TIMELINE_STYLE_IDS as t, type TimelineStyleDescriptor as u, buildInvocationTree as v, compareSiblings as w, compareTimestamps as x, decodeOutcomeKey as y, invocationPathDepth as z };