@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.
- package/dist/{chunk-S4UMMHLE.js → chunk-43NAVRQK.js} +17 -2
- package/dist/chunk-43NAVRQK.js.map +1 -0
- package/dist/{chunk-6KWNAU4F.js → chunk-BQZ3BPJM.js} +13 -1
- package/dist/chunk-BQZ3BPJM.js.map +1 -0
- package/dist/{chunk-XMTXWXFO.js → chunk-KKT6OVO6.js} +3 -3
- package/dist/{chunk-5N3MP5TD.js → chunk-PWKNMKFA.js} +106 -35
- package/dist/chunk-PWKNMKFA.js.map +1 -0
- package/dist/{chunk-ZRSFFUHA.js → chunk-S36KN6CG.js} +3 -3
- package/dist/chunk-UVEGKTBU.js +600 -0
- package/dist/chunk-UVEGKTBU.js.map +1 -0
- package/dist/{chunk-7QUQJW6Q.js → chunk-YQJNKQWO.js} +91 -285
- package/dist/chunk-YQJNKQWO.js.map +1 -0
- package/dist/form/react/index.d.ts +1 -1
- package/dist/form/react/index.js +2 -2
- package/dist/graph/index.d.ts +48 -21
- package/dist/graph/index.js +61 -21
- package/dist/graph/react/detail/DetailPanel.css +49 -0
- package/dist/graph/react/graph-core.css +20 -0
- package/dist/graph/react/index.d.ts +2 -2
- package/dist/graph/react/index.js +92 -29
- package/dist/graph/react/index.js.map +1 -1
- package/dist/graph/react/styles/simple/SimpleDetailPanel.css +20 -0
- package/dist/graph/react/styles/simple/SimpleStyle.css +13 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +61 -21
- package/dist/methodWords-DIEg1PVT.d.ts +180 -0
- package/dist/{registryJoin-CMfBspIs.d.ts → registryJoin-Cj1mIkqe.d.ts} +18 -10
- package/dist/standalone/graph-standalone.html +232 -130
- package/dist/standalone/graph-viewer.css +102 -0
- package/dist/standalone/graph-viewer.js +130 -130
- package/dist/static-graph/index.d.ts +1 -1
- package/dist/static-graph/index.js +57 -14
- package/dist/static-graph/index.js.map +1 -1
- package/dist/timeline/index.d.ts +42 -7
- package/dist/timeline/index.js +8 -3
- package/dist/timeline/react/RunTimeline.css +18 -0
- package/dist/timeline/react/index.d.ts +3 -2
- package/dist/timeline/react/index.js +20 -11
- package/dist/timeline/react/index.js.map +1 -1
- package/dist/timeline/react/styles/simple/SimpleProgress.css +25 -0
- package/dist/{types-CnDJyLYo.d.ts → types-BygAt1Si.d.ts} +51 -1
- package/package.json +2 -2
- package/dist/chunk-5N3MP5TD.js.map +0 -1
- package/dist/chunk-6KWNAU4F.js.map +0 -1
- package/dist/chunk-7QUQJW6Q.js.map +0 -1
- package/dist/chunk-P6IGZVWE.js +0 -155
- package/dist/chunk-P6IGZVWE.js.map +0 -1
- package/dist/chunk-S4UMMHLE.js.map +0 -1
- /package/dist/{chunk-XMTXWXFO.js.map → chunk-KKT6OVO6.js.map} +0 -0
- /package/dist/{chunk-ZRSFFUHA.js.map → chunk-S36KN6CG.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import { FieldEnv, UploadedFile, FilePickerSource, ExamplePickerSource } from '@
|
|
|
2
2
|
export * from '@pipelex/mthds-form/react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ValidationMessageKey, PipeIOContract, RunField, RunInputError, PipeInputFormDescriptor, LoadText, FormExample } from '@pipelex/mthds-form';
|
|
5
|
-
import { a as GraphTheme } from '../../types-
|
|
5
|
+
import { a as GraphTheme } from '../../types-BygAt1Si.js';
|
|
6
6
|
import 'mthds/errors';
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/form/react/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
getPaletteForTheme
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-43NAVRQK.js";
|
|
5
5
|
import {
|
|
6
6
|
GRAPH_THEME
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-BQZ3BPJM.js";
|
|
8
8
|
import {
|
|
9
9
|
__spreadProps,
|
|
10
10
|
__spreadValues
|
package/dist/graph/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { s as GraphSpecNode, u as CardNode, v as PipeCallNode, f as GraphSpec, D as DataflowAnalysis, C as ConceptInfo, P as PipeBlueprintUnion, w as GraphData, x as GraphSpecMode, r as PipeCardPayload, q as FoldToggleOptions, i as GraphNode, h as GraphEdge, g as GraphNodeData, N as NodeValidationSummary, V as ValidationIssue, n as GraphSpecNodeIoItem, k as GraphDirection, y as LayoutConfig, E as EdgeRoute, z as GraphPoint, j as GraphConfig, T as ToolbarPosition, l as GraphStyleId, a as GraphTheme, A as SimpleTitleFit, B as NodePipeType, H as StepCategory, m as PipeStatus, O as OutcomeTone } from '../types-BygAt1Si.js';
|
|
2
|
+
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, X as EDGE_TYPE, Y as EDGE_TYPE_ROUTED, Z as EdgeType, _ as FOLD_MODE, $ as FieldResolution, F as FoldMode, a0 as GRAPH_DIRECTION, a1 as GRAPH_SPEC_MODE, a2 as GRAPH_STYLE, a3 as GRAPH_THEME, a4 as GRAPH_THEME_MODE, a5 as GraphSpecEdge, a6 as GraphSpecEdgeKind, a7 as GraphSpecMeta, a8 as GraphSpecModelUsage, a9 as GraphSpecNodeIo, aa as GraphSpecNodeTiming, ab as GraphSpecNodeUsage, ac as GraphSpecUsage, G as GraphThemeMode, ad as JudgmentQuestionSpec, ae as KNOWN_PIPE_TYPES, L as LabelDescriptor, 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, an as OUTCOME_TONE, ao as OutcomeWords, ap as PipeBatchBlueprint, aq as PipeBlueprintBase, 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, aD as PipeStructureBlueprint, aE as PipeType, e as PresenceMarker, aF as STEP_CATEGORY, aG as STUFF_ID_PREFIX, aH as SequenceStepSpec, aI as SimpleNodePayload, 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, aP as ToolbarSide, aQ as VALIDATION_STATE, 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';
|
|
3
3
|
export { P as ParsedPipeRef, m as makePipeRef, p as parsePipeRef } from '../pipeRefs-BQJO5nh5.js';
|
|
4
|
+
import { O as OutcomeKey } from '../methodWords-DIEg1PVT.js';
|
|
5
|
+
export { C as ConceptLookup, a as ConditionBranch, 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
6
|
import { ElkNode } from 'elkjs/lib/elk-api';
|
|
5
7
|
import { Problem } from 'mthds/errors';
|
|
6
8
|
|
|
@@ -370,6 +372,20 @@ declare function sortParentsFirst(nodes: GraphNode[]): GraphNode[];
|
|
|
370
372
|
|
|
371
373
|
declare const DARK_PALETTE_COLORS: Record<string, string>;
|
|
372
374
|
declare const LIGHT_PALETTE_COLORS: Record<string, string>;
|
|
375
|
+
/**
|
|
376
|
+
* The tone roles' default values per theme: how a condition's outcome reads
|
|
377
|
+
* to a person (MTHDS "tone"), never a brand colour. Named and valued as the
|
|
378
|
+
* form kernel's status tokens in its `theme.css`, so one value a host sets
|
|
379
|
+
* serves the form, the graph and the timeline: the 400 shades on the dark
|
|
380
|
+
* page, the 700 shades and zinc-600 on the light one.
|
|
381
|
+
*
|
|
382
|
+
* These are documentation and the tests' reference, not applied from here.
|
|
383
|
+
* The defaults are declared in CSS at zero specificity on the graph's and the
|
|
384
|
+
* timeline's containers (`:where(...)` in `graph-core.css` and
|
|
385
|
+
* `RunTimeline.css`), so a host's stylesheet rule on a container wins over
|
|
386
|
+
* them, and `paletteColors` still wins over both, being inline.
|
|
387
|
+
*/
|
|
388
|
+
declare const OUTCOME_TONE_COLORS: Readonly<Record<GraphTheme, Readonly<Record<string, string>>>>;
|
|
373
389
|
declare function getPaletteForTheme(theme: GraphTheme): Record<string, string>;
|
|
374
390
|
declare const DEFAULT_GRAPH_CONFIG: GraphConfig & {
|
|
375
391
|
toolbarPosition: ToolbarPosition;
|
|
@@ -464,16 +480,6 @@ declare function isGenericConcept(conceptRef: string): boolean;
|
|
|
464
480
|
* touched: the words are the author's.
|
|
465
481
|
*/
|
|
466
482
|
declare function sentenceCase(text: string): string;
|
|
467
|
-
/**
|
|
468
|
-
* A pipe's title in plain words: its authored description as a title
|
|
469
|
-
* (`sentenceCase`), or its humanized code when it has none. The simple graph
|
|
470
|
-
* style titles its steps this way, and the simple timeline style its lines, so
|
|
471
|
-
* a step reads the same in both. `fromDescription` says which it was.
|
|
472
|
-
*/
|
|
473
|
-
declare function pipeTitle(description: string | null | undefined, pipeCode: string): {
|
|
474
|
-
title: string;
|
|
475
|
-
fromDescription: boolean;
|
|
476
|
-
};
|
|
477
483
|
/**
|
|
478
484
|
* An identifier as words inside a sentence: `humanizeIdentifier`'s words with
|
|
479
485
|
* their first letter in lower case, unless the first word is an acronym
|
|
@@ -481,13 +487,18 @@ declare function pipeTitle(description: string | null | undefined, pipeCode: str
|
|
|
481
487
|
*/
|
|
482
488
|
declare function humanizeInSentence(identifier: string): string;
|
|
483
489
|
/**
|
|
484
|
-
*
|
|
485
|
-
*
|
|
486
|
-
* "
|
|
487
|
-
* several outcomes, written `no_fit | default` as the static builder labels it,
|
|
488
|
-
* reads "No fit or otherwise".
|
|
490
|
+
* Words in sentence case moved inside a sentence: the first letter in lower
|
|
491
|
+
* case, unless the first word is an acronym ("High risk" → "high risk", "PDF
|
|
492
|
+
* file" stays "PDF file").
|
|
489
493
|
*/
|
|
490
|
-
declare function
|
|
494
|
+
declare function wordsInSentence(words: string): string;
|
|
495
|
+
/**
|
|
496
|
+
* One key of a condition's outcome map in plain words: `high_priority` →
|
|
497
|
+
* "High priority", a yes-or-no test's `true` and `false` → "Yes" and "No". A
|
|
498
|
+
* key is always the method's own outcome, so one the method names `default`
|
|
499
|
+
* reads "Default", never the default outcome's "Otherwise".
|
|
500
|
+
*/
|
|
501
|
+
declare function outcomeKeyLabel(key: string): string;
|
|
491
502
|
|
|
492
503
|
/** A text's rendered width at a font size, in pixels. */
|
|
493
504
|
declare function textWidthPx(text: string, fontPx: number): number;
|
|
@@ -803,8 +814,24 @@ interface SimpleInstructions {
|
|
|
803
814
|
type SimpleOutcomeEnd = "fail" | "continue";
|
|
804
815
|
/** One way a decision can go. */
|
|
805
816
|
interface SimpleOutcome {
|
|
806
|
-
/**
|
|
817
|
+
/**
|
|
818
|
+
* What the outcome leads to, the branch's identity: the pipe's full
|
|
819
|
+
* reference, or `fail` or `continue`. Unique among a decision's rows, so a
|
|
820
|
+
* view keys a row by it, never by its label.
|
|
821
|
+
*/
|
|
822
|
+
target: string;
|
|
823
|
+
/** The outcomes the row stands for: keys of the outcome map, `null` for the default outcome. */
|
|
824
|
+
outcomes: OutcomeKey[];
|
|
825
|
+
/**
|
|
826
|
+
* The outcome in plain words, as its arrow says it: its label when the method
|
|
827
|
+
* gives one ("Detailed check"), else "Needs review", "Yes", "Otherwise".
|
|
828
|
+
* Presentation only (`conditionBranches`).
|
|
829
|
+
*/
|
|
807
830
|
label: string;
|
|
831
|
+
/** What taking the outcome means, when the condition's outcome table says. */
|
|
832
|
+
description?: string;
|
|
833
|
+
/** How the row reads, by `sharedOutcomeTone`: set only when every outcome in it has a tone and they agree. */
|
|
834
|
+
tone?: OutcomeTone;
|
|
808
835
|
/** The step it leads to, by the registry's title, drawn or not; empty when `ends` is set. */
|
|
809
836
|
leadsToTitle: string;
|
|
810
837
|
/** Set when the outcome leads to no step, which the canvas draws no arrow for. */
|
|
@@ -902,7 +929,7 @@ interface SimpleDetailInput {
|
|
|
902
929
|
* status is the one the canvas shows, a host's `statusMap` included.
|
|
903
930
|
*/
|
|
904
931
|
nodes: readonly Pick<GraphNode, "id" | "type" | "data">[];
|
|
905
|
-
edges: readonly Pick<GraphEdge, "id" | "source" | "target" | "label" | "carries">[];
|
|
932
|
+
edges: readonly Pick<GraphEdge, "id" | "source" | "target" | "label" | "carries" | "outcomes">[];
|
|
906
933
|
/** The projection's value flows (`SimpleProjection.valueFlows`). */
|
|
907
934
|
valueFlows: ReadonlyMap<string, SimpleValueFlow>;
|
|
908
935
|
/** The projection's runs (`SimpleProjection.runs`). */
|
|
@@ -919,4 +946,4 @@ interface SimpleDetailInput {
|
|
|
919
946
|
*/
|
|
920
947
|
declare function buildSimpleNodeDetail(input: SimpleDetailInput, target: SimpleDetailTarget): SimpleDetail | null;
|
|
921
948
|
|
|
922
|
-
export { CardNode, ConceptInfo, type ControllerRect, DARK_PALETTE_COLORS, DEFAULT_GRAPH_CONFIG, DataflowAnalysis, EdgeRoute, type ElkPositionResult, FoldToggleOptions, GRAPH_STYLES, GRAPH_STYLE_IDS, GRAPH_STYLE_PIPELINES, GraphConfig, GraphData, GraphDirection, GraphEdge, GraphNode, GraphNodeData, GraphPoint, GraphSpec, GraphSpecMode, GraphSpecNode, GraphSpecNodeIoItem, GraphSpecValidationError, type GraphStyleCapabilities, type GraphStyleDescriptor, GraphStyleId, type GraphStylePipeline, GraphTheme, LIGHT_PALETTE_COLORS, LayoutConfig, type LayoutResult, MAX_VISIBLE_CONTROLLER_CHILDREN, NodePipeType, NodeValidationSummary, PipeBlueprintUnion, PipeCallNode, PipeCardPayload, PipeStatus, 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, type SimpleArrowDetail, type SimpleDecisionDetail, type SimpleDetail, type SimpleDetailInput, type SimpleDetailTarget, type SimpleFrameDetail, type SimpleInstructions, type SimpleLinkKind, type SimpleNodeLink, type SimpleOutcome, type SimpleOutcomeEnd, type SimpleProjection, type SimpleProjectionInput, type SimpleRunSummary, type SimpleRunTally, type SimpleStepDetail, SimpleTitleFit, type SimpleValue, type SimpleValueDetail, type SimpleValueFlow, StepCategory, type StuffLocation, type StyleFrameArgs, type StyleProjection, type StyleProjectionArgs, ToolbarPosition, ValidationIssue, type 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,
|
|
949
|
+
export { CardNode, ConceptInfo, type ControllerRect, DARK_PALETTE_COLORS, DEFAULT_GRAPH_CONFIG, DataflowAnalysis, EdgeRoute, type ElkPositionResult, FoldToggleOptions, GRAPH_STYLES, GRAPH_STYLE_IDS, GRAPH_STYLE_PIPELINES, GraphConfig, GraphData, GraphDirection, GraphEdge, GraphNode, GraphNodeData, GraphPoint, GraphSpec, GraphSpecMode, GraphSpecNode, GraphSpecNodeIoItem, GraphSpecValidationError, type GraphStyleCapabilities, type GraphStyleDescriptor, GraphStyleId, type GraphStylePipeline, GraphTheme, LIGHT_PALETTE_COLORS, LayoutConfig, type LayoutResult, MAX_VISIBLE_CONTROLLER_CHILDREN, NodePipeType, NodeValidationSummary, OUTCOME_TONE_COLORS, OutcomeKey, OutcomeTone, PipeBlueprintUnion, PipeCallNode, PipeCardPayload, PipeStatus, 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, type SimpleArrowDetail, type SimpleDecisionDetail, type SimpleDetail, type SimpleDetailInput, type SimpleDetailTarget, type SimpleFrameDetail, type SimpleInstructions, type SimpleLinkKind, type SimpleNodeLink, type SimpleOutcome, type SimpleOutcomeEnd, type SimpleProjection, type SimpleProjectionInput, type SimpleRunSummary, type SimpleRunTally, type SimpleStepDetail, SimpleTitleFit, type SimpleValue, type SimpleValueDetail, type SimpleValueFlow, StepCategory, type StuffLocation, type StyleFrameArgs, type StyleProjection, type StyleProjectionArgs, ToolbarPosition, ValidationIssue, type 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 };
|
package/dist/graph/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-
|
|
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-
|
|
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
|
-
|
|
83
|
-
|
|
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
|
-
|
|
86
|
-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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
|
|
@@ -328,6 +328,15 @@
|
|
|
328
328
|
flex-shrink: 0; /* label stays at its natural width */
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
+
/* An outcome's key column carries its label, which a method may write as a
|
|
332
|
+
sentence: it shares the row with the pipe it names instead of squeezing it. */
|
|
333
|
+
.detail-kv-key--outcome {
|
|
334
|
+
flex: 0 1 auto;
|
|
335
|
+
min-width: 0;
|
|
336
|
+
max-width: 60%;
|
|
337
|
+
overflow-wrap: anywhere;
|
|
338
|
+
}
|
|
339
|
+
|
|
331
340
|
.detail-kv-value {
|
|
332
341
|
font-family: var(--font-mono);
|
|
333
342
|
color: var(--text-default);
|
|
@@ -338,6 +347,46 @@
|
|
|
338
347
|
overflow-wrap: anywhere;
|
|
339
348
|
}
|
|
340
349
|
|
|
350
|
+
/* ─── A step's activity and a condition's outcome words ─── */
|
|
351
|
+
|
|
352
|
+
.detail-activity {
|
|
353
|
+
font-size: 12px;
|
|
354
|
+
color: var(--text-secondary);
|
|
355
|
+
margin-top: 4px;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.detail-activity-label {
|
|
359
|
+
color: var(--text-dim);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/* An outcome's label reads in its tone, through the tone tokens, never a literal. */
|
|
363
|
+
.detail-outcome-label {
|
|
364
|
+
font-family: var(--font-sans);
|
|
365
|
+
font-weight: 600;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.detail-outcome-label--positive {
|
|
369
|
+
color: var(--positive);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.detail-outcome-label--caution {
|
|
373
|
+
color: var(--caution);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.detail-outcome-label--negative {
|
|
377
|
+
color: var(--negative);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.detail-outcome-label--neutral {
|
|
381
|
+
color: var(--neutral);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.detail-outcome-description {
|
|
385
|
+
display: block;
|
|
386
|
+
font-family: var(--font-sans);
|
|
387
|
+
color: var(--text-muted);
|
|
388
|
+
}
|
|
389
|
+
|
|
341
390
|
/* ─── Field block: labeled multi-line text (for long resolved values) ─── */
|
|
342
391
|
|
|
343
392
|
.detail-field-block {
|
|
@@ -105,6 +105,26 @@
|
|
|
105
105
|
inset: 0;
|
|
106
106
|
background: var(--color-bg);
|
|
107
107
|
}
|
|
108
|
+
/* The tone roles (`OUTCOME_TONE_COLORS` in `graphConfig.ts`), which colour a
|
|
109
|
+
condition's outcome. Not in the inline palette: they are the form kernel's
|
|
110
|
+
tokens too, which a host sets from its own stylesheet, so their defaults are
|
|
111
|
+
declared here at zero specificity, per theme. A host rule on the container
|
|
112
|
+
(`.react-flow-container { --caution: … }`) wins over them in either order,
|
|
113
|
+
and `paletteColors`, inline, wins over both. Declared on the container
|
|
114
|
+
rather than read with a fallback, so a page-wide value meant for another
|
|
115
|
+
theme (the kernel's `:root`) does not reach a graph drawn in the other. */
|
|
116
|
+
:where(.react-flow-container) {
|
|
117
|
+
--positive: hsl(142 69% 58%);
|
|
118
|
+
--caution: hsl(43 96% 56%);
|
|
119
|
+
--negative: hsl(0 91% 71%);
|
|
120
|
+
--neutral: hsl(240 5% 64.9%);
|
|
121
|
+
}
|
|
122
|
+
:where(.react-flow-container--theme-light) {
|
|
123
|
+
--positive: hsl(142 72% 29%);
|
|
124
|
+
--caution: hsl(26 90% 37%);
|
|
125
|
+
--negative: hsl(0 74% 42%);
|
|
126
|
+
--neutral: hsl(240 5.2% 33.9%);
|
|
127
|
+
}
|
|
108
128
|
/* The still presentation (`GraphViewer`'s `interactive={false}`): the drawing
|
|
109
129
|
is laid in the page like a picture. The container flows in its parent at the
|
|
110
130
|
height `StillFit` sets inline rather than filling a sized parent, shows the
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { f as GraphSpec, g as GraphNodeData, h as GraphEdge, i as GraphNode, j as GraphConfig, k as GraphDirection, F as FoldMode, G as GraphThemeMode, T as ToolbarPosition, l as GraphStyleId, a as GraphTheme, m as PipeStatus, n as GraphSpecNodeIoItem, o as ValidationState, V as ValidationIssue, L as LabelDescriptor, p as PipeControllerType, q as FoldToggleOptions, N as NodeValidationSummary, r as PipeCardPayload, C as ConceptInfo, s as GraphSpecNode } from '../../types-BygAt1Si.js';
|
|
4
|
+
export { t as PipeOperatorType } from '../../types-BygAt1Si.js';
|
|
5
5
|
import { PipeIOContracts, OutputForm, InputForm, LoadText, SaveFiles } from '@pipelex/mthds-form';
|
|
6
6
|
import { ResolveUrl, ResolveRendition, ResolveDocumentPdf, LoadBytes, PdfWorkerConfig, OpenExternal, ResolveShareUrl, DownloadDisplay } from '@pipelex/mthds-form/react';
|
|
7
7
|
import { Edge, Node, ReactFlowInstance } from '@xyflow/react';
|