@pipelex/mthds-ui 0.59.0 → 0.60.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/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 +33 -12
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ConceptInfo, P as PipeBlueprintUnion,
|
|
1
|
+
import { C as ConceptInfo, P as PipeBlueprintUnion, e as PresenceMarker, f as GraphSpec, V as ValidationIssue } from '../types-BygAt1Si.js';
|
|
2
2
|
export { P as ParsedPipeRef, m as makePipeRef, p as parsePipeRef } from '../pipeRefs-BQJO5nh5.js';
|
|
3
3
|
import 'mthds/errors';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
KNOWN_PIPE_TYPES,
|
|
8
8
|
isBindingStepSpec,
|
|
9
9
|
isPluralMultiplicity
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-BQZ3BPJM.js";
|
|
11
11
|
import {
|
|
12
12
|
__spreadProps,
|
|
13
13
|
__spreadValues
|
|
@@ -710,18 +710,31 @@ function resolvePipeTypeTag(code, raw, ctx) {
|
|
|
710
710
|
});
|
|
711
711
|
return null;
|
|
712
712
|
}
|
|
713
|
+
function readOutcome(value) {
|
|
714
|
+
if (typeof value === "string") return value.length > 0 ? { pipe: value, words: null } : null;
|
|
715
|
+
if (!isPlainObject(value)) return null;
|
|
716
|
+
const pipe = strOrNull(value.pipe);
|
|
717
|
+
if (!pipe) return null;
|
|
718
|
+
const words = {};
|
|
719
|
+
for (const key of ["label", "description", "tone"]) {
|
|
720
|
+
const word = strOrNull(value[key]);
|
|
721
|
+
if (word) words[key] = word;
|
|
722
|
+
}
|
|
723
|
+
return { pipe, words: Object.keys(words).length > 0 ? words : null };
|
|
724
|
+
}
|
|
713
725
|
function normalizePipe(code, raw, ctx) {
|
|
714
726
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
715
727
|
const typeValue = resolvePipeTypeTag(code, raw, ctx);
|
|
716
728
|
if (typeValue === null) return null;
|
|
717
729
|
const type = typeValue;
|
|
718
|
-
const base = {
|
|
730
|
+
const base = __spreadProps(__spreadValues({
|
|
719
731
|
code,
|
|
720
732
|
domain_code: ctx.domain,
|
|
721
|
-
description: (_a = strOrNull(raw.description)) != null ? _a : ""
|
|
733
|
+
description: (_a = strOrNull(raw.description)) != null ? _a : ""
|
|
734
|
+
}, strOrNull(raw.activity) ? { activity: strOrNull(raw.activity) } : {}), {
|
|
722
735
|
inputs: normalizeInputs(raw.inputs, code, ctx),
|
|
723
736
|
output: normalizeOutput(raw.output, code, ctx)
|
|
724
|
-
};
|
|
737
|
+
});
|
|
725
738
|
switch (type) {
|
|
726
739
|
case "PipeSequence":
|
|
727
740
|
return __spreadProps(__spreadValues({}, base), {
|
|
@@ -744,10 +757,13 @@ function normalizePipe(code, raw, ctx) {
|
|
|
744
757
|
});
|
|
745
758
|
case "PipeCondition": {
|
|
746
759
|
const outcomeMap = {};
|
|
760
|
+
const outcomeWords = {};
|
|
747
761
|
if (isPlainObject(raw.outcomes)) {
|
|
748
|
-
for (const [outcome,
|
|
749
|
-
|
|
750
|
-
|
|
762
|
+
for (const [outcome, value] of Object.entries(raw.outcomes)) {
|
|
763
|
+
const read = readOutcome(value);
|
|
764
|
+
if (read) {
|
|
765
|
+
outcomeMap[outcome] = read.pipe;
|
|
766
|
+
if (read.words) outcomeWords[outcome] = read.words;
|
|
751
767
|
} else {
|
|
752
768
|
ctx.diagnostics.push({
|
|
753
769
|
severity: "warning",
|
|
@@ -758,12 +774,14 @@ function normalizePipe(code, raw, ctx) {
|
|
|
758
774
|
}
|
|
759
775
|
}
|
|
760
776
|
}
|
|
761
|
-
|
|
777
|
+
const defaultOutcome = readOutcome(raw.default_outcome);
|
|
778
|
+
return __spreadProps(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, base), {
|
|
762
779
|
type,
|
|
763
780
|
pipe_category: "PipeController",
|
|
764
781
|
expression: (_c = (_b = strOrNull(raw.expression)) != null ? _b : strOrNull(raw.expression_template)) != null ? _c : "",
|
|
765
782
|
outcome_map: outcomeMap,
|
|
766
|
-
default_outcome: (_d =
|
|
783
|
+
default_outcome: (_d = defaultOutcome == null ? void 0 : defaultOutcome.pipe) != null ? _d : ""
|
|
784
|
+
}), Object.keys(outcomeWords).length > 0 ? { outcome_words: outcomeWords } : {}), (defaultOutcome == null ? void 0 : defaultOutcome.words) ? { default_outcome_words: defaultOutcome.words } : {}), {
|
|
767
785
|
add_alias_from_expression_to: strOrNull(raw.add_alias_from_expression_to)
|
|
768
786
|
});
|
|
769
787
|
}
|
|
@@ -1669,17 +1687,18 @@ function bindInputs(ctx, blueprint, scope) {
|
|
|
1669
1687
|
return ioInputs;
|
|
1670
1688
|
}
|
|
1671
1689
|
function emitNode(ctx, args) {
|
|
1672
|
-
const node = {
|
|
1690
|
+
const node = __spreadProps(__spreadValues({
|
|
1673
1691
|
id: args.id,
|
|
1674
1692
|
kind: args.kind,
|
|
1675
1693
|
pipe_code: args.pipeCode,
|
|
1676
1694
|
pipe_type: args.pipeType,
|
|
1677
1695
|
// validateGraphSpec requires a non-empty description; WIP pipes may lack one.
|
|
1678
|
-
description: args.description.length > 0 ? args.description : args.pipeCode
|
|
1696
|
+
description: args.description.length > 0 ? args.description : args.pipeCode
|
|
1697
|
+
}, args.activity ? { activity: args.activity } : {}), {
|
|
1679
1698
|
domain_code: args.domainCode,
|
|
1680
1699
|
status: "scheduled",
|
|
1681
1700
|
io: { inputs: args.ioInputs, outputs: [] }
|
|
1682
|
-
};
|
|
1701
|
+
});
|
|
1683
1702
|
if (args.inv.outcomeValue !== void 0) node.tags = { outcome: args.inv.outcomeValue };
|
|
1684
1703
|
ctx.nodes.push(node);
|
|
1685
1704
|
if (args.parentId !== null) {
|
|
@@ -1719,6 +1738,7 @@ function walkPipe(ctx, ref, currentDomain, nodeId, parentId, scope, inv) {
|
|
|
1719
1738
|
pipeCode: code,
|
|
1720
1739
|
pipeType: blueprint.type,
|
|
1721
1740
|
description: blueprint.description,
|
|
1741
|
+
activity: blueprint.activity,
|
|
1722
1742
|
domainCode: blueprint.domain_code,
|
|
1723
1743
|
ioInputs,
|
|
1724
1744
|
parentId,
|
|
@@ -2115,6 +2135,7 @@ function walkInlineBatch(ctx, sub, domain, nodeId, parentId, scope) {
|
|
|
2115
2135
|
pipeCode: code,
|
|
2116
2136
|
pipeType: "PipeBatch",
|
|
2117
2137
|
description: blueprint.description,
|
|
2138
|
+
activity: blueprint.activity,
|
|
2118
2139
|
domainCode: domain,
|
|
2119
2140
|
ioInputs,
|
|
2120
2141
|
parentId,
|