@reeve-iot/workflow-mui 0.0.0-stage → 1.0.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/LICENSE +21 -0
- package/README.md +54 -2
- package/dist/canvas/BlockNode.d.ts +31 -0
- package/dist/canvas/BlockNode.d.ts.map +1 -0
- package/dist/canvas/BlockNode.js +212 -0
- package/dist/canvas/BlockNode.js.map +1 -0
- package/dist/canvas/Connection.d.ts +11 -0
- package/dist/canvas/Connection.d.ts.map +1 -0
- package/dist/canvas/Connection.js +23 -0
- package/dist/canvas/Connection.js.map +1 -0
- package/dist/canvas/WorkflowCanvas.d.ts +17 -0
- package/dist/canvas/WorkflowCanvas.d.ts.map +1 -0
- package/dist/canvas/WorkflowCanvas.js +259 -0
- package/dist/canvas/WorkflowCanvas.js.map +1 -0
- package/dist/canvas/analysedPortTerm.d.ts +7 -0
- package/dist/canvas/analysedPortTerm.d.ts.map +1 -0
- package/dist/canvas/analysedPortTerm.js +18 -0
- package/dist/canvas/analysedPortTerm.js.map +1 -0
- package/dist/canvas/geometry.d.ts +15 -0
- package/dist/canvas/geometry.d.ts.map +1 -0
- package/dist/canvas/geometry.js +17 -0
- package/dist/canvas/geometry.js.map +1 -0
- package/dist/canvas/graphTopology.d.ts +13 -0
- package/dist/canvas/graphTopology.d.ts.map +1 -0
- package/dist/canvas/graphTopology.js +33 -0
- package/dist/canvas/graphTopology.js.map +1 -0
- package/dist/canvas/highlights.d.ts +13 -0
- package/dist/canvas/highlights.d.ts.map +1 -0
- package/dist/canvas/highlights.js +2 -0
- package/dist/canvas/highlights.js.map +1 -0
- package/dist/canvas/nodePorts.d.ts +20 -0
- package/dist/canvas/nodePorts.d.ts.map +1 -0
- package/dist/canvas/nodePorts.js +29 -0
- package/dist/canvas/nodePorts.js.map +1 -0
- package/dist/canvas/portCustomization.d.ts +22 -0
- package/dist/canvas/portCustomization.d.ts.map +1 -0
- package/dist/canvas/portCustomization.js +7 -0
- package/dist/canvas/portCustomization.js.map +1 -0
- package/dist/canvas/portGeometry.d.ts +4 -0
- package/dist/canvas/portGeometry.d.ts.map +1 -0
- package/dist/canvas/portGeometry.js +4 -0
- package/dist/canvas/portGeometry.js.map +1 -0
- package/dist/canvas/portLabelLayout.d.ts +10 -0
- package/dist/canvas/portLabelLayout.d.ts.map +1 -0
- package/dist/canvas/portLabelLayout.js +48 -0
- package/dist/canvas/portLabelLayout.js.map +1 -0
- package/dist/canvas/unavailableBlock.d.ts +16 -0
- package/dist/canvas/unavailableBlock.d.ts.map +1 -0
- package/dist/canvas/unavailableBlock.js +10 -0
- package/dist/canvas/unavailableBlock.js.map +1 -0
- package/dist/config/ErrorHandlingSection.d.ts +13 -0
- package/dist/config/ErrorHandlingSection.d.ts.map +1 -0
- package/dist/config/ErrorHandlingSection.js +56 -0
- package/dist/config/ErrorHandlingSection.js.map +1 -0
- package/dist/config/NodeConfigPanel.d.ts +20 -0
- package/dist/config/NodeConfigPanel.d.ts.map +1 -0
- package/dist/config/NodeConfigPanel.js +247 -0
- package/dist/config/NodeConfigPanel.js.map +1 -0
- package/dist/config/PassthroughSection.d.ts +19 -0
- package/dist/config/PassthroughSection.d.ts.map +1 -0
- package/dist/config/PassthroughSection.js +38 -0
- package/dist/config/PassthroughSection.js.map +1 -0
- package/dist/config/ResiliencySection.d.ts +18 -0
- package/dist/config/ResiliencySection.d.ts.map +1 -0
- package/dist/config/ResiliencySection.js +157 -0
- package/dist/config/ResiliencySection.js.map +1 -0
- package/dist/config/TypeArgumentPicker.d.ts +7 -0
- package/dist/config/TypeArgumentPicker.d.ts.map +1 -0
- package/dist/config/TypeArgumentPicker.js +32 -0
- package/dist/config/TypeArgumentPicker.js.map +1 -0
- package/dist/config/nodeConfigCustomization.d.ts +101 -0
- package/dist/config/nodeConfigCustomization.d.ts.map +1 -0
- package/dist/config/nodeConfigCustomization.js +7 -0
- package/dist/config/nodeConfigCustomization.js.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/mapping/MappingDialog.d.ts +11 -0
- package/dist/mapping/MappingDialog.d.ts.map +1 -0
- package/dist/mapping/MappingDialog.js +283 -0
- package/dist/mapping/MappingDialog.js.map +1 -0
- package/dist/mapping/mappingCustomization.d.ts +51 -0
- package/dist/mapping/mappingCustomization.d.ts.map +1 -0
- package/dist/mapping/mappingCustomization.js +9 -0
- package/dist/mapping/mappingCustomization.js.map +1 -0
- package/dist/mapping/wireSourceOutputs.d.ts +30 -0
- package/dist/mapping/wireSourceOutputs.d.ts.map +1 -0
- package/dist/mapping/wireSourceOutputs.js +68 -0
- package/dist/mapping/wireSourceOutputs.js.map +1 -0
- package/dist/nameDraft.d.ts +24 -0
- package/dist/nameDraft.d.ts.map +1 -0
- package/dist/nameDraft.js +20 -0
- package/dist/nameDraft.js.map +1 -0
- package/dist/navigation/SubCanvasBreadcrumb.d.ts +8 -0
- package/dist/navigation/SubCanvasBreadcrumb.d.ts.map +1 -0
- package/dist/navigation/SubCanvasBreadcrumb.js +31 -0
- package/dist/navigation/SubCanvasBreadcrumb.js.map +1 -0
- package/dist/palette/BlockPalette.d.ts +18 -0
- package/dist/palette/BlockPalette.d.ts.map +1 -0
- package/dist/palette/BlockPalette.js +56 -0
- package/dist/palette/BlockPalette.js.map +1 -0
- package/dist/ports/KeyValueRowsField.d.ts +35 -0
- package/dist/ports/KeyValueRowsField.d.ts.map +1 -0
- package/dist/ports/KeyValueRowsField.js +112 -0
- package/dist/ports/KeyValueRowsField.js.map +1 -0
- package/dist/ports/PortDeclarationTable.d.ts +19 -0
- package/dist/ports/PortDeclarationTable.d.ts.map +1 -0
- package/dist/ports/PortDeclarationTable.js +112 -0
- package/dist/ports/PortDeclarationTable.js.map +1 -0
- package/dist/ports/PortValueEditor.d.ts +70 -0
- package/dist/ports/PortValueEditor.d.ts.map +1 -0
- package/dist/ports/PortValueEditor.js +169 -0
- package/dist/ports/PortValueEditor.js.map +1 -0
- package/dist/ports/collectionComposer.d.ts +27 -0
- package/dist/ports/collectionComposer.d.ts.map +1 -0
- package/dist/ports/collectionComposer.js +38 -0
- package/dist/ports/collectionComposer.js.map +1 -0
- package/dist/ports/refusedLiteral.d.ts +10 -0
- package/dist/ports/refusedLiteral.d.ts.map +1 -0
- package/dist/ports/refusedLiteral.js +11 -0
- package/dist/ports/refusedLiteral.js.map +1 -0
- package/dist/ports/writeTerm.d.ts +6 -0
- package/dist/ports/writeTerm.d.ts.map +1 -0
- package/dist/ports/writeTerm.js +11 -0
- package/dist/ports/writeTerm.js.map +1 -0
- package/dist/settings/ConcurrencySection.d.ts +9 -0
- package/dist/settings/ConcurrencySection.d.ts.map +1 -0
- package/dist/settings/ConcurrencySection.js +32 -0
- package/dist/settings/ConcurrencySection.js.map +1 -0
- package/dist/settings/ParameterDeclarationDialog.d.ts +36 -0
- package/dist/settings/ParameterDeclarationDialog.d.ts.map +1 -0
- package/dist/settings/ParameterDeclarationDialog.js +82 -0
- package/dist/settings/ParameterDeclarationDialog.js.map +1 -0
- package/dist/settings/WorkflowExecutionSection.d.ts +15 -0
- package/dist/settings/WorkflowExecutionSection.d.ts.map +1 -0
- package/dist/settings/WorkflowExecutionSection.js +223 -0
- package/dist/settings/WorkflowExecutionSection.js.map +1 -0
- package/dist/theme/editorColors.d.ts +30 -0
- package/dist/theme/editorColors.d.ts.map +1 -0
- package/dist/theme/editorColors.js +31 -0
- package/dist/theme/editorColors.js.map +1 -0
- package/dist/validation/ValidationFindings.d.ts +28 -0
- package/dist/validation/ValidationFindings.d.ts.map +1 -0
- package/dist/validation/ValidationFindings.js +40 -0
- package/dist/validation/ValidationFindings.js.map +1 -0
- package/package.json +51 -4
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export const PORT_LABEL_FONT_SIZE = 11;
|
|
2
|
+
export const PORT_LABEL_INSET = 12;
|
|
3
|
+
export const PORT_LABEL_GAP = 12;
|
|
4
|
+
const EM_WIDTHS = [
|
|
5
|
+
["ijl|'", 0.222],
|
|
6
|
+
[' !,./:;I[]\\ft', 0.278],
|
|
7
|
+
['()-r`{}', 0.333],
|
|
8
|
+
['*"', 0.389],
|
|
9
|
+
['Jcksvxyz', 0.5],
|
|
10
|
+
['0123456789abdeghnopqu_#$?L', 0.556],
|
|
11
|
+
['+<=>~', 0.584],
|
|
12
|
+
['FTZ', 0.611],
|
|
13
|
+
['ABEKPSVXY&', 0.667],
|
|
14
|
+
['CDHNRUw', 0.722],
|
|
15
|
+
['GOQ', 0.778],
|
|
16
|
+
['Mm', 0.833],
|
|
17
|
+
['%', 0.889],
|
|
18
|
+
['W', 0.944],
|
|
19
|
+
['@', 1.015],
|
|
20
|
+
];
|
|
21
|
+
const UNLISTED_EM_WIDTH = 0.6;
|
|
22
|
+
const WIDE_SCRIPT_START = 0x2e80;
|
|
23
|
+
const ESTIMATE_MARGIN = 1.1;
|
|
24
|
+
const emWidthOf = new Map(EM_WIDTHS.flatMap(([chars, width]) => [...chars].map((ch) => [ch, width])));
|
|
25
|
+
export function estimatePortLabelWidth(text, fontSize = PORT_LABEL_FONT_SIZE) {
|
|
26
|
+
let em = 0;
|
|
27
|
+
for (const ch of text)
|
|
28
|
+
em += emWidthOf.get(ch) ?? ((ch.codePointAt(0) ?? 0) >= WIDE_SCRIPT_START ? 1 : UNLISTED_EM_WIDTH);
|
|
29
|
+
return em * fontSize;
|
|
30
|
+
}
|
|
31
|
+
export function layoutPortLabelRow(input, output, nodeWidth) {
|
|
32
|
+
const rowEnd = nodeWidth - PORT_LABEL_INSET;
|
|
33
|
+
if (input === undefined)
|
|
34
|
+
return { inputEnd: PORT_LABEL_INSET, outputStart: PORT_LABEL_INSET };
|
|
35
|
+
if (output === undefined)
|
|
36
|
+
return { inputEnd: rowEnd, outputStart: rowEnd };
|
|
37
|
+
const room = rowEnd - PORT_LABEL_INSET - PORT_LABEL_GAP;
|
|
38
|
+
const half = room / 2;
|
|
39
|
+
const inputWidth = estimatePortLabelWidth(input) * ESTIMATE_MARGIN;
|
|
40
|
+
const outputWidth = estimatePortLabelWidth(output) * ESTIMATE_MARGIN;
|
|
41
|
+
const inputShare = inputWidth + outputWidth <= room ? inputWidth + (room - inputWidth - outputWidth) / 2
|
|
42
|
+
: inputWidth < half ? inputWidth
|
|
43
|
+
: outputWidth < half ? room - outputWidth
|
|
44
|
+
: half;
|
|
45
|
+
const inputEnd = PORT_LABEL_INSET + inputShare;
|
|
46
|
+
return { inputEnd, outputStart: inputEnd + PORT_LABEL_GAP };
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=portLabelLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portLabelLayout.js","sourceRoot":"","sources":["../../src/canvas/portLabelLayout.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAA;AACtC,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAA;AAClC,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAA;AAEhC,MAAM,SAAS,GAA6C;IAC1D,CAAC,OAAO,EAAE,KAAK,CAAC;IAChB,CAAC,gBAAgB,EAAE,KAAK,CAAC;IACzB,CAAC,SAAS,EAAE,KAAK,CAAC;IAClB,CAAC,IAAI,EAAE,KAAK,CAAC;IACb,CAAC,UAAU,EAAE,GAAG,CAAC;IACjB,CAAC,4BAA4B,EAAE,KAAK,CAAC;IACrC,CAAC,OAAO,EAAE,KAAK,CAAC;IAChB,CAAC,KAAK,EAAE,KAAK,CAAC;IACd,CAAC,YAAY,EAAE,KAAK,CAAC;IACrB,CAAC,SAAS,EAAE,KAAK,CAAC;IAClB,CAAC,KAAK,EAAE,KAAK,CAAC;IACd,CAAC,IAAI,EAAE,KAAK,CAAC;IACb,CAAC,GAAG,EAAE,KAAK,CAAC;IACZ,CAAC,GAAG,EAAE,KAAK,CAAC;IACZ,CAAC,GAAG,EAAE,KAAK,CAAC;CACb,CAAA;AACD,MAAM,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C,GAAG,eAAe,CAAA;IAClE,MAAM,WAAW,GAAG,sBAAsB,CAAC,MAAM,CAAC,GAAG,eAAe,CAAA;IACpE,MAAM,UAAU,GACd,UAAU,GAAG,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,IAAI,GAAG,UAAU,GAAG,WAAW,CAAC,GAAG,CAAC;QACnF,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC,CAAC,UAAU;YAC9B,CAAC,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,WAAW;gBACvC,CAAC,CAAC,IAAI,CAAA;IACd,MAAM,QAAQ,GAAG,gBAAgB,GAAG,UAAU,CAAA;IAC9C,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,GAAG,cAAc,EAAE,CAAA;AAC7D,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { WorkflowNode } from '@reeve-iot/workflow-core';
|
|
2
|
+
/** What the editor says of a node whose block type is not in the catalogue it was given. */
|
|
3
|
+
export interface UnavailableBlockText {
|
|
4
|
+
/** Drawn as the node's header and the panel's heading. */
|
|
5
|
+
title: string;
|
|
6
|
+
/** Why the block cannot be edited, drawn under the title. */
|
|
7
|
+
reason: string;
|
|
8
|
+
}
|
|
9
|
+
/** A host's wording for a node whose block type it does not offer, e.g. a block its configuration switched off. Return
|
|
10
|
+
* the members to replace, or undefined to keep the library's generic wording. Passed to `WorkflowCanvas` and
|
|
11
|
+
* `NodeConfigPanel` as `describeUnavailableBlock`. */
|
|
12
|
+
export type DescribeUnavailableBlock = (node: WorkflowNode) => Partial<UnavailableBlockText> | undefined;
|
|
13
|
+
/** The title and reason shown for `node`, whose block type is not in the catalogue: the host's wording where
|
|
14
|
+
* `describe` gives one, the generic wording otherwise. */
|
|
15
|
+
export declare function unavailableBlockText(node: WorkflowNode, describe?: DescribeUnavailableBlock): UnavailableBlockText;
|
|
16
|
+
//# sourceMappingURL=unavailableBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unavailableBlock.d.ts","sourceRoot":"","sources":["../../src/canvas/unavailableBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,4FAA4F;AAC5F,MAAM,WAAW,oBAAoB;IACnC,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAA;IACb,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;sDAEsD;AACtD,MAAM,MAAM,wBAAwB,GAAG,CAAC,IAAI,EAAE,YAAY,KAAK,OAAO,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAA;AAExG;0DAC0D;AAC1D,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,wBAAwB,GAAG,oBAAoB,CAMlH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** The title and reason shown for `node`, whose block type is not in the catalogue: the host's wording where
|
|
2
|
+
* `describe` gives one, the generic wording otherwise. */
|
|
3
|
+
export function unavailableBlockText(node, describe) {
|
|
4
|
+
const hosted = describe?.(node);
|
|
5
|
+
return {
|
|
6
|
+
title: hosted?.title ?? 'Unavailable block',
|
|
7
|
+
reason: hosted?.reason ?? `Block type '${node.blockTypeId}' is not available on this host. The block is kept as stored and cannot be edited.`,
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=unavailableBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unavailableBlock.js","sourceRoot":"","sources":["../../src/canvas/unavailableBlock.ts"],"names":[],"mappings":"AAeA;0DAC0D;AAC1D,MAAM,UAAU,oBAAoB,CAAC,IAAkB,EAAE,QAAmC;IAC1F,MAAM,MAAM,GAAG,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAA;IAC/B,OAAO;QACL,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,mBAAmB;QAC3C,MAAM,EAAE,MAAM,EAAE,MAAM,IAAI,eAAe,IAAI,CAAC,WAAW,oFAAoF;KAC9I,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NodeErrorPolicy } from '@reeve-iot/workflow-core';
|
|
2
|
+
export interface ErrorHandlingSectionProps {
|
|
3
|
+
/** The node's own policy, the one the run reads. */
|
|
4
|
+
errorPolicy: NodeErrorPolicy | null | undefined;
|
|
5
|
+
/** Receives the policy to store on the node, never with `routeToErrorPort`, which no run reads. */
|
|
6
|
+
onChange: (policy: NodeErrorPolicy) => void;
|
|
7
|
+
/** Writes no policy at all onto the node. Absent without it, for a host whose store cannot drop one, and
|
|
8
|
+
* the four explicit policies remain either way. */
|
|
9
|
+
onReset?: () => void;
|
|
10
|
+
}
|
|
11
|
+
/** What happens when the block throws. Collapsed by default — most nodes never change it. */
|
|
12
|
+
export declare function ErrorHandlingSection({ errorPolicy, onChange, onReset }: ErrorHandlingSectionProps): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=ErrorHandlingSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorHandlingSection.d.ts","sourceRoot":"","sources":["../../src/config/ErrorHandlingSection.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAmB,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAsBhF,MAAM,WAAW,yBAAyB;IACxC,oDAAoD;IACpD,WAAW,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS,CAAA;IAC/C,mGAAmG;IACnG,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAA;IAC3C;uDACmD;IACnD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,6FAA6F;AAC7F,wBAAgB,oBAAoB,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,yBAAyB,+BAgFjG"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { Accordion, AccordionDetails, AccordionSummary, Box, Button, FormHelperText, MenuItem, Select, TextField, Typography, } from '@mui/material';
|
|
4
|
+
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
5
|
+
import { describeRepeatedMember, findRepeatedMember } from '@reeve-iot/workflow-core';
|
|
6
|
+
const POLICY_OPTIONS = [
|
|
7
|
+
{ value: 'FailWorkflow', label: 'Fail Workflow (Default)' },
|
|
8
|
+
{ value: 'ContinueWithDefault', label: 'Continue With Default Output' },
|
|
9
|
+
{ value: 'EmitError', label: 'Emit Error to Virtual Port' },
|
|
10
|
+
{ value: 'Skip', label: 'Skip Node & Downstream' },
|
|
11
|
+
];
|
|
12
|
+
function defaultOutputVerdict(text) {
|
|
13
|
+
let parsed;
|
|
14
|
+
try {
|
|
15
|
+
parsed = JSON.parse(text);
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
return 'Must be valid JSON';
|
|
19
|
+
}
|
|
20
|
+
if (typeof parsed !== 'object' || parsed === null || Array.isArray(parsed))
|
|
21
|
+
return 'Must be a JSON object';
|
|
22
|
+
const repeat = findRepeatedMember(text);
|
|
23
|
+
return repeat === undefined ? null : `Ambiguous JSON: ${describeRepeatedMember(repeat)}`;
|
|
24
|
+
}
|
|
25
|
+
/** What happens when the block throws. Collapsed by default — most nodes never change it. */
|
|
26
|
+
export function ErrorHandlingSection({ errorPolicy, onChange, onReset }) {
|
|
27
|
+
const [expanded, setExpanded] = useState(false);
|
|
28
|
+
const [draft, setDraft] = useState(null);
|
|
29
|
+
const [seen, setSeen] = useState(errorPolicy?.defaultOutputJson ?? '');
|
|
30
|
+
const storedText = errorPolicy?.defaultOutputJson ?? '';
|
|
31
|
+
if (seen !== storedText) {
|
|
32
|
+
setSeen(storedText);
|
|
33
|
+
setDraft(null);
|
|
34
|
+
}
|
|
35
|
+
const policy = { ...errorPolicy };
|
|
36
|
+
delete policy.routeToErrorPort;
|
|
37
|
+
const jsonError = draft === null || draft.trim() === '' ? null : defaultOutputVerdict(draft);
|
|
38
|
+
return (_jsxs(Accordion, { expanded: expanded, onChange: () => { setExpanded(!expanded); }, sx: { backgroundColor: 'transparent', boxShadow: 'none', '&.MuiAccordion-root:before': { display: 'none' } }, children: [_jsx(AccordionSummary, { expandIcon: _jsx(ExpandMoreIcon, {}), children: _jsx(Typography, { variant: "subtitle2", children: "Error Handling" }) }), _jsx(AccordionDetails, { children: _jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', gap: 2 }, children: [_jsxs(Box, { children: [_jsx(Typography, { variant: "body2", sx: { mb: 1 }, children: "Error Policy" }), _jsxs(Box, { sx: { display: 'flex', gap: 1, alignItems: 'center' }, children: [_jsx(Select, { fullWidth: true, size: "small", value: policy.policy ?? 'FailWorkflow', inputProps: { 'aria-label': 'Error Policy' }, sx: { flex: 1 }, children: POLICY_OPTIONS.map((o) => (_jsx(MenuItem, { value: o.value, onClick: () => {
|
|
39
|
+
setDraft(null);
|
|
40
|
+
onChange({ ...policy, policy: o.value });
|
|
41
|
+
}, children: o.label }, o.value))) }), onReset !== undefined && (_jsx(Button, { size: "small", onClick: onReset, "aria-label": "Reset to default", children: "Reset to default" }))] }), _jsx(FormHelperText, { children: policy.policy === 'EmitError'
|
|
42
|
+
? 'A failure is sent out of the _error output instead of the block\'s own'
|
|
43
|
+
: 'How to handle execution failures' })] }), policy.policy === 'ContinueWithDefault' && (_jsx(TextField, { fullWidth: true, size: "small", label: "Default Output (JSON)", multiline: true, minRows: 3, maxRows: 6, placeholder: '{"Result": 42}', value: draft ?? storedText, error: jsonError !== null, helperText: jsonError ?? 'JSON object to use as output when block fails', slotProps: { htmlInput: { 'aria-label': 'Default Output (JSON)', style: { fontFamily: 'monospace', fontSize: 11 } } }, onChange: (e) => {
|
|
44
|
+
const json = e.target.value;
|
|
45
|
+
setDraft(json);
|
|
46
|
+
if (json.trim() === '') {
|
|
47
|
+
const cleared = { ...policy };
|
|
48
|
+
delete cleared.defaultOutputJson;
|
|
49
|
+
onChange(cleared);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (defaultOutputVerdict(json) === null)
|
|
53
|
+
onChange({ ...policy, defaultOutputJson: json });
|
|
54
|
+
} }))] }) })] }));
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=ErrorHandlingSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorHandlingSection.js","sourceRoot":"","sources":["../../src/config/ErrorHandlingSection.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EACL,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,GACpH,MAAM,eAAe,CAAA;AACtB,OAAO,cAAc,MAAM,gCAAgC,CAAA;AAE3D,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAErF,MAAM,cAAc,GAAgD;IAClE,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,yBAAyB,EAAE;IAC3D,EAAE,KAAK,EAAE,qBAAqB,EAAE,KAAK,EAAE,8BAA8B,EAAE;IACvE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,4BAA4B,EAAE;IAC3D,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,wBAAwB,EAAE;CACnD,CAAA;AAED,SAAS,oBAAoB,CAAC,IAAY;IACxC,IAAI,MAAe,CAAA;IACnB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAC3B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,oBAAoB,CAAA;IAC7B,CA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,CACb,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DescribeUnavailableBlock } from '../canvas/unavailableBlock.js';
|
|
2
|
+
import type { PortValueEditorProps } from '../ports/PortValueEditor.js';
|
|
3
|
+
export interface NodeConfigPanelProps {
|
|
4
|
+
/** Passed through to every generated port editor, which is where a host's expression editor and
|
|
5
|
+
* type-specific editors are supplied. */
|
|
6
|
+
portValueEditor?: Pick<PortValueEditorProps, 'renderTypeEditor' | 'renderExpressionEditor' | 'expressionPrefix'>;
|
|
7
|
+
rootCanvasLabel?: string;
|
|
8
|
+
/** The host's wording for a selected node whose block type is not in the catalogue. Such a node gets a read-only panel
|
|
9
|
+
* showing what it stores; without this it says the block type is not available on this host. */
|
|
10
|
+
describeUnavailableBlock?: DescribeUnavailableBlock;
|
|
11
|
+
/** Draws each input fed by a literal on an incoming wire with a value editor that writes the wire's mapping, in place
|
|
12
|
+
* of a schema field of the same name. Off by default: a host that draws such an input in its own section turns this
|
|
13
|
+
* on and returns null from `NodeConfigCustomization.renderWireLiteral` for it. */
|
|
14
|
+
showWireLiterals?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Configuration form for the selected node: the block type's own schema, then resiliency, error handling
|
|
17
|
+
* and passthrough. Everything domain-specific arrives through NodeConfigCustomization — the panel itself
|
|
18
|
+
* knows nothing beyond what a descriptor declares. */
|
|
19
|
+
export declare function NodeConfigPanel({ portValueEditor, rootCanvasLabel, describeUnavailableBlock, showWireLiterals, }: NodeConfigPanelProps): import("react").JSX.Element | null;
|
|
20
|
+
//# sourceMappingURL=NodeConfigPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeConfigPanel.d.ts","sourceRoot":"","sources":["../../src/config/NodeConfigPanel.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AAM7E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAUvE,MAAM,WAAW,oBAAoB;IACnC;6CACyC;IACzC,eAAe,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,kBAAkB,GAAG,wBAAwB,GAAG,kBAAkB,CAAC,CAAA;IAChH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;oGACgG;IAChG,wBAAwB,CAAC,EAAE,wBAAwB,CAAA;IACnD;;sFAEkF;IAClF,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAiED;;sDAEsD;AACtD,wBAAgB,eAAe,CAAC,EAC9B,eAAe,EAAE,eAAiC,EAAE,wBAAwB,EAAE,gBAAwB,GACvG,EAAE,oBAAoB,sCAmYtB"}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment, useMemo, useState } from 'react';
|
|
3
|
+
import { Alert, Box, Divider, Paper, Typography } from '@mui/material';
|
|
4
|
+
import { nullConfigurationKeys } from '@reeve-iot/workflow-core';
|
|
5
|
+
import { WORKFLOW_INPUT_BLOCK_TYPE_ID, WORKFLOW_OUTPUT_BLOCK_TYPE_ID, buildPortTypeScopes, computeIncomingVariables, createPortTypeResolver, draftAnalysisFreshness, feedsInput, indexDraftAnalysis, isMapTerm, literalFormOfType, openTermLiteralType, readMapping, usePortTypes, useWorkflowEditorStore, } from '@reeve-iot/workflow-core';
|
|
6
|
+
import { useAnalysedPortTerm } from '../canvas/analysedPortTerm.js';
|
|
7
|
+
import { NODE_CONFIG_PANEL_WIDTH } from '../canvas/geometry.js';
|
|
8
|
+
import { useNodePorts } from '../canvas/nodePorts.js';
|
|
9
|
+
import { unavailableBlockText } from '../canvas/unavailableBlock.js';
|
|
10
|
+
import { WiredJsonOutputs } from '../mapping/wireSourceOutputs.js';
|
|
11
|
+
import { DeclaredOutputPortTable, PortDeclarationTable } from '../ports/PortDeclarationTable.js';
|
|
12
|
+
import { PortValueEditor } from '../ports/PortValueEditor.js';
|
|
13
|
+
import { inputWriteTerm } from '../ports/writeTerm.js';
|
|
14
|
+
import { ErrorHandlingSection } from './ErrorHandlingSection.js';
|
|
15
|
+
import { PassthroughSection } from './PassthroughSection.js';
|
|
16
|
+
import { ResiliencySection } from './ResiliencySection.js';
|
|
17
|
+
import { useNodeConfigCustomization } from './nodeConfigCustomization.js';
|
|
18
|
+
const RESERVED_CONFIG_KEYS = new Set(['timeoutSeconds', 'retryCount', 'retryEnabled', 'retryBackoffSeconds', 'errorPolicy']);
|
|
19
|
+
const DESIGN_TIME_CONFIG_PREFIX = '__';
|
|
20
|
+
function describeMapping(mapping) {
|
|
21
|
+
const read = readMapping(mapping);
|
|
22
|
+
return read.literal ? `= ${read.value === undefined ? 'nothing' : JSON.stringify(read.value)}` : `↳ ${read.source}`;
|
|
23
|
+
}
|
|
24
|
+
function UnavailableBlockPanel({ node, edges, describe }) {
|
|
25
|
+
const text = unavailableBlockText(node, describe);
|
|
26
|
+
const wires = edges.flatMap((edge) => {
|
|
27
|
+
if (edge.targetNodeId === node.id)
|
|
28
|
+
return Object.entries(edge.mappings).map(([input, mapping]) => `${input} ${describeMapping(mapping)} (from ${edge.sourceNodeId})`);
|
|
29
|
+
if (edge.sourceNodeId === node.id)
|
|
30
|
+
return Object.entries(edge.mappings).map(([input, mapping]) => `${edge.targetNodeId}.${input} ${describeMapping(mapping)}`);
|
|
31
|
+
return [];
|
|
32
|
+
});
|
|
33
|
+
return (_jsxs(Paper, { elevation: 2, "data-testid": "node-config-panel", "data-unavailable": "true", sx: { width: NODE_CONFIG_PANEL_WIDTH, boxSizing: 'border-box', height: '100%', overflow: 'auto', borderLeft: '1px solid', borderColor: 'divider', flexShrink: 0 }, children: [_jsxs(Box, { sx: { p: 2, borderBottom: '1px solid', borderColor: 'divider' }, children: [_jsx(Typography, { variant: "subtitle2", sx: { fontWeight: 'bold' }, children: text.title }), _jsxs(Typography, { variant: "caption", color: "text.secondary", sx: { display: 'block' }, children: ["Node: ", node.id] }), _jsxs(Typography, { variant: "caption", color: "text.secondary", sx: { display: 'block' }, children: ["Block type: ", node.blockTypeId] })] }), _jsxs(Box, { sx: { p: 2, display: 'flex', flexDirection: 'column', gap: 1 }, children: [_jsx(Alert, { severity: "warning", "data-testid": "unavailable-block-reason", children: text.reason }), _jsx(Typography, { variant: "caption", color: "text.secondary", children: "Stored configuration" }), _jsx(Box, { component: "pre", "data-testid": "unavailable-block-configuration", sx: { m: 0, p: 1, fontFamily: 'monospace', fontSize: 11, whiteSpace: 'pre-wrap', wordBreak: 'break-all', bgcolor: 'action.hover', borderRadius: 1 }, children: JSON.stringify(node.configuration, null, 2) }), wires.length > 0 && (_jsxs(_Fragment, { children: [_jsx(Typography, { variant: "caption", color: "text.secondary", children: "Stored wire mappings" }), _jsx(Box, { component: "ul", "data-testid": "unavailable-block-wires", sx: { m: 0, pl: 2, fontFamily: 'monospace', fontSize: 11 }, children: wires.map((line) => _jsx("li", { children: line }, line)) })] }))] })] }));
|
|
34
|
+
}
|
|
35
|
+
/** The control a literal of `declared` is edited with, given its closed term where one is known: the map term for a map, Json
|
|
36
|
+
* for a term with no form of its own whose open literal is JSON, the closed term otherwise, or text while the term is open. */
|
|
37
|
+
function editorFieldType(declared, closed, portTypes) {
|
|
38
|
+
const writeTerm = closed ?? openTermLiteralType(declared);
|
|
39
|
+
const mapTerm = closed ?? declared;
|
|
40
|
+
if (isMapTerm(mapTerm))
|
|
41
|
+
return mapTerm;
|
|
42
|
+
return literalFormOfType(writeTerm, portTypes) === undefined && openTermLiteralType(writeTerm) === 'Json' ? 'Json' : writeTerm;
|
|
43
|
+
}
|
|
44
|
+
const UNBOUND_HINT = 'The type of this input is not chosen yet; the value is checked once it is.';
|
|
45
|
+
/** Configuration form for the selected node: the block type's own schema, then resiliency, error handling
|
|
46
|
+
* and passthrough. Everything domain-specific arrives through NodeConfigCustomization — the panel itself
|
|
47
|
+
* knows nothing beyond what a descriptor declares. */
|
|
48
|
+
export function NodeConfigPanel({ portValueEditor, rootCanvasLabel = 'Main Workflow', describeUnavailableBlock, showWireLiterals = false, }) {
|
|
49
|
+
const custom = useNodeConfigCustomization();
|
|
50
|
+
const portTypes = usePortTypes();
|
|
51
|
+
const selectedNodeId = useWorkflowEditorStore((s) => s.selectedNodeId);
|
|
52
|
+
const nodes = useWorkflowEditorStore((s) => s.nodes);
|
|
53
|
+
const edges = useWorkflowEditorStore((s) => s.edges);
|
|
54
|
+
const blockTypes = useWorkflowEditorStore((s) => s.blockTypes);
|
|
55
|
+
const canvasStack = useWorkflowEditorStore((s) => s.canvasStack);
|
|
56
|
+
const workflowInputParams = useWorkflowEditorStore((s) => s.workflowInputParams);
|
|
57
|
+
const isPaletteDragActive = useWorkflowEditorStore((s) => s.isPaletteDragActive);
|
|
58
|
+
const updateNodeConfig = useWorkflowEditorStore((s) => s.updateNodeConfig);
|
|
59
|
+
const patchNodeConfig = useWorkflowEditorStore((s) => s.patchNodeConfig);
|
|
60
|
+
const updateNodePassthrough = useWorkflowEditorStore((s) => s.updateNodePassthrough);
|
|
61
|
+
const updateNodeOutputPorts = useWorkflowEditorStore((s) => s.updateNodeOutputPorts);
|
|
62
|
+
const updateNodeErrorPolicy = useWorkflowEditorStore((s) => s.updateNodeErrorPolicy);
|
|
63
|
+
const updateEdgeMappings = useWorkflowEditorStore((s) => s.updateEdgeMappings);
|
|
64
|
+
const setNodeTypeArguments = useWorkflowEditorStore((s) => s.setNodeTypeArguments);
|
|
65
|
+
const analysis = useWorkflowEditorStore((s) => s.analysis);
|
|
66
|
+
const analysisIndex = useMemo(() => indexDraftAnalysis(analysis), [analysis]);
|
|
67
|
+
const revision = useWorkflowEditorStore((s) => s.revision);
|
|
68
|
+
const analysisFreshness = draftAnalysisFreshness(analysis, revision);
|
|
69
|
+
const analysedTerm = useAnalysedPortTerm();
|
|
70
|
+
const canvasPath = useMemo(() => canvasStack.map((f) => ({ nodeId: f.parentNodeId, branchName: f.subCanvasName })), [canvasStack]);
|
|
71
|
+
const [refusedNull, setRefusedNull] = useState(null);
|
|
72
|
+
const node = selectedNodeId === null ? undefined : nodes.find((n) => n.id === selectedNodeId);
|
|
73
|
+
const blockType = blockTypes.find((bt) => bt.blockTypeId === node?.blockTypeId);
|
|
74
|
+
const nodeIds = useMemo(() => new Set(nodes.map((n) => n.id)), [nodes]);
|
|
75
|
+
const hostPorts = useNodePorts(node ?? null, blockType);
|
|
76
|
+
const resolver = useMemo(() => createPortTypeResolver({
|
|
77
|
+
scopes: buildPortTypeScopes({ nodes, edges, canvasStack }),
|
|
78
|
+
blockTypes,
|
|
79
|
+
workflowInputParams,
|
|
80
|
+
}), [nodes, edges, canvasStack, blockTypes, workflowInputParams]);
|
|
81
|
+
const incoming = useMemo(() => (node
|
|
82
|
+
? computeIncomingVariables({ node, nodes, edges, blockTypes, canvasStack, workflowInputParams, resolver, analysis: analysisIndex, freshness: analysisFreshness })
|
|
83
|
+
: []), [node, nodes, edges, blockTypes, canvasStack, workflowInputParams, resolver, analysisIndex, analysisFreshness]);
|
|
84
|
+
if (!node)
|
|
85
|
+
return null;
|
|
86
|
+
if (node.blockTypeId === WORKFLOW_INPUT_BLOCK_TYPE_ID || node.blockTypeId === WORKFLOW_OUTPUT_BLOCK_TYPE_ID)
|
|
87
|
+
return null;
|
|
88
|
+
if (!blockType)
|
|
89
|
+
return _jsx(UnavailableBlockPanel, { node: node, edges: edges, describe: describeUnavailableBlock });
|
|
90
|
+
const passthrough = node.passthrough ?? [];
|
|
91
|
+
const refusesNull = (written) => {
|
|
92
|
+
const keys = nullConfigurationKeys(written);
|
|
93
|
+
setRefusedNull(keys.length > 0 ? { nodeId: node.id, keys } : null);
|
|
94
|
+
return keys.length > 0;
|
|
95
|
+
};
|
|
96
|
+
const setConfiguration = (configuration) => {
|
|
97
|
+
if (!refusesNull(configuration))
|
|
98
|
+
updateNodeConfig(node.id, configuration);
|
|
99
|
+
};
|
|
100
|
+
const setField = (fieldName, value) => {
|
|
101
|
+
if (!refusesNull({ [fieldName]: value }))
|
|
102
|
+
patchNodeConfig(node.id, { [fieldName]: value });
|
|
103
|
+
};
|
|
104
|
+
const nullFault = (keys) => {
|
|
105
|
+
const refused = refusedNull?.nodeId === node.id ? keys.filter((key) => refusedNull.keys.includes(key)) : [];
|
|
106
|
+
return refused.length === 0 ? null : (_jsxs(Typography, { role: "alert", variant: "caption", color: "error", children: ["Not saved: ", refused.join(', '), " cannot be null. Clearing a value removes it."] }, `null:${refused.join(',')}`));
|
|
107
|
+
};
|
|
108
|
+
const clearFields = (fieldNames) => {
|
|
109
|
+
const dropped = new Set(fieldNames);
|
|
110
|
+
setConfiguration(Object.fromEntries(Object.entries(node.configuration).filter(([key]) => !dropped.has(key))));
|
|
111
|
+
};
|
|
112
|
+
const writeErrorPolicy = (policy) => {
|
|
113
|
+
updateNodeErrorPolicy(node.id, policy);
|
|
114
|
+
if (Object.hasOwn(node.configuration, 'errorPolicy'))
|
|
115
|
+
clearFields(['errorPolicy']);
|
|
116
|
+
};
|
|
117
|
+
const readEdgeBinding = (inputName) => {
|
|
118
|
+
for (const edge of edges) {
|
|
119
|
+
if (edge.targetNodeId !== node.id || !feedsInput(edge, inputName, nodeIds))
|
|
120
|
+
continue;
|
|
121
|
+
const mapping = edge.mappings[inputName];
|
|
122
|
+
const read = mapping && readMapping(mapping);
|
|
123
|
+
if (read?.literal)
|
|
124
|
+
return `= ${String(read.value)}`;
|
|
125
|
+
if (read?.source)
|
|
126
|
+
return `↳ ${read.source}`;
|
|
127
|
+
}
|
|
128
|
+
return undefined;
|
|
129
|
+
};
|
|
130
|
+
const isFedByAnEdge = (inputName) => edges.some((e) => e.targetNodeId === node.id && feedsInput(e, inputName, nodeIds));
|
|
131
|
+
const literalFormOf = (type) => (type === undefined ? undefined : literalFormOfType(type, portTypes));
|
|
132
|
+
const prefix = portValueEditor?.expressionPrefix ?? 'expr:';
|
|
133
|
+
const refusalOf = (value, closed) => value === undefined || closed === undefined || (typeof value === 'string' && value.startsWith(prefix)) || portTypes.isLiteralOf(value, closed)
|
|
134
|
+
? undefined : closed;
|
|
135
|
+
const closedTermOf = (declared, name) => inputWriteTerm(declared, node, name, analysisIndex, canvasPath);
|
|
136
|
+
const schemaFieldOf = (name) => (blockType.configurationSchema ?? []).find((f) => f.name === name);
|
|
137
|
+
const wireLiterals = !showWireLiterals ? [] : blockType.inputs.flatMap((input) => {
|
|
138
|
+
if (hostPorts.isInputHidden(input.name))
|
|
139
|
+
return [];
|
|
140
|
+
const edge = edges.find((e) => e.targetNodeId === node.id && feedsInput(e, input.name, nodeIds) && readMapping(e.mappings[input.name] ?? {}).literal);
|
|
141
|
+
if (edge === undefined)
|
|
142
|
+
return [];
|
|
143
|
+
const declared = hostPorts.inputType(input);
|
|
144
|
+
const field = schemaFieldOf(input.name);
|
|
145
|
+
const allowed = (input.allowedValues ?? []).length > 0 ? input.allowedValues : field?.type === 'Enum' ? field.allowedValues : undefined;
|
|
146
|
+
return [{ input, edge, declared, closed: closedTermOf(declared, input.name), allowed: allowed ?? undefined }];
|
|
147
|
+
});
|
|
148
|
+
const wireLiteralOf = (name) => wireLiterals.find((wired) => wired.input.name === name);
|
|
149
|
+
const writeWireLiteral = (edge, inputName, value) => {
|
|
150
|
+
const written = { ...(edge.mappings[inputName] ?? { type: 'literal' }) };
|
|
151
|
+
delete written.literalValue;
|
|
152
|
+
if (value !== undefined)
|
|
153
|
+
written.literalValue = value;
|
|
154
|
+
updateEdgeMappings(edge.id, { ...edge.mappings, [inputName]: written });
|
|
155
|
+
};
|
|
156
|
+
const renderWireLiteral = ({ input, edge, declared, closed, allowed }) => {
|
|
157
|
+
const read = readMapping(edge.mappings[input.name] ?? {});
|
|
158
|
+
const value = read.literal ? read.value : undefined;
|
|
159
|
+
const fieldType = allowed === undefined ? editorFieldType(declared, closed, portTypes) : 'Enum';
|
|
160
|
+
const hosted = custom.renderWireLiteral?.({
|
|
161
|
+
node, blockType, input, edgeId: edge.id, value, portType: (closed ?? declared),
|
|
162
|
+
onChange: (next) => { writeWireLiteral(edge, input.name, next); },
|
|
163
|
+
});
|
|
164
|
+
if (hosted !== undefined)
|
|
165
|
+
return hosted === null ? null : _jsx(Box, { children: hosted }, `${node.id}:wire:${input.name}`);
|
|
166
|
+
return (_jsx(Box, { "data-testid": `wire-literal-${input.name}`, children: _jsx(PortValueEditor, { fieldName: input.name, label: input.displayName, required: input.isRequired, rawValue: value === undefined ? '' : value, fieldType: fieldType, literalForm: allowed === undefined ? literalFormOfType(fieldType, portTypes) : undefined, allowedValues: allowed, description: closed === undefined ? UNBOUND_HINT : 'Set on the incoming connection.', hasConnection: false, storedValueRefusal: allowed === undefined ? refusalOf(value, closed) : undefined, valueTerm: closed, secretValues: input.secretValues, canProtectSecrets: portTypes.secretCodec, onClear: () => { writeWireLiteral(edge, input.name, undefined); }, onChange: (next) => { writeWireLiteral(edge, input.name, next); }, onObjectChange: (next) => { writeWireLiteral(edge, input.name, next); }, ...portValueEditor }) }, `${node.id}:wire:${edge.id}:${input.name}`));
|
|
167
|
+
};
|
|
168
|
+
const mapInputs = blockType.inputs.flatMap((input) => {
|
|
169
|
+
if ((blockType.configurationSchema ?? []).some((f) => f.name === input.name))
|
|
170
|
+
return [];
|
|
171
|
+
if (wireLiteralOf(input.name) !== undefined)
|
|
172
|
+
return [];
|
|
173
|
+
const term = closedTermOf(input.type, input.name) ?? input.type;
|
|
174
|
+
return isMapTerm(term) ? [{ port: input, term: term }] : [];
|
|
175
|
+
});
|
|
176
|
+
const isValueAuthorable = (name) => !RESERVED_CONFIG_KEYS.has(name) &&
|
|
177
|
+
!name.startsWith(DESIGN_TIME_CONFIG_PREFIX) &&
|
|
178
|
+
!(blockType.configurationSchema ?? []).some((f) => f.name === name) &&
|
|
179
|
+
!mapInputs.some(({ port }) => port.name === name);
|
|
180
|
+
const togglePassthrough = (name) => {
|
|
181
|
+
if (!passthrough.includes(name)) {
|
|
182
|
+
updateNodePassthrough(node.id, [...passthrough, name]);
|
|
183
|
+
const offer = incoming.find((v) => v.name === name);
|
|
184
|
+
const edge = offer?.edgeId === undefined ? undefined : edges.find((e) => e.id === offer.edgeId);
|
|
185
|
+
if (edge && !edge.mappings[name]) {
|
|
186
|
+
updateEdgeMappings(edge.id, { ...edge.mappings, [name]: { type: 'direct', sourceOutputName: name } });
|
|
187
|
+
}
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
updateNodePassthrough(node.id, passthrough.filter((p) => p !== name));
|
|
191
|
+
if (blockType.inputs.some((i) => i.name === name))
|
|
192
|
+
return;
|
|
193
|
+
const owner = edges.find((e) => e.targetNodeId === node.id &&
|
|
194
|
+
e.mappings[name]?.type === 'direct' &&
|
|
195
|
+
e.mappings[name]?.sourceOutputName === name);
|
|
196
|
+
if (owner) {
|
|
197
|
+
updateEdgeMappings(owner.id, Object.fromEntries(Object.entries(owner.mappings).filter(([key]) => key !== name)));
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
const incomingEdges = edges.filter((e) => e.targetNodeId === node.id);
|
|
201
|
+
const renderField = (field) => {
|
|
202
|
+
const wired = wireLiteralOf(field.name);
|
|
203
|
+
if (wired !== undefined)
|
|
204
|
+
return renderWireLiteral(wired);
|
|
205
|
+
const value = node.configuration[field.name];
|
|
206
|
+
const context = {
|
|
207
|
+
node, blockType, field, value,
|
|
208
|
+
portType: blockType.inputs.find((input) => input.name === field.name)?.type,
|
|
209
|
+
edgeBinding: readEdgeBinding(field.name),
|
|
210
|
+
onChange: (next) => { setField(field.name, next); },
|
|
211
|
+
onConfigurationChange: setConfiguration,
|
|
212
|
+
};
|
|
213
|
+
const hosted = custom.renderConfigField?.(context);
|
|
214
|
+
if (hosted !== undefined) {
|
|
215
|
+
return hosted === null ? null : _jsxs(Box, { children: [hosted, nullFault([field.name])] }, `${node.id}:${field.name}`);
|
|
216
|
+
}
|
|
217
|
+
const portTerm = context.portType === undefined ? undefined
|
|
218
|
+
: closedTermOf(context.portType, field.name);
|
|
219
|
+
const writeTerm = context.portType === undefined ? undefined : portTerm ?? openTermLiteralType(context.portType);
|
|
220
|
+
const mapTerm = portTerm ?? context.portType;
|
|
221
|
+
const fieldType = field.type === 'Enum' || writeTerm === undefined ? field.type
|
|
222
|
+
: mapTerm !== undefined && isMapTerm(mapTerm) ? mapTerm
|
|
223
|
+
: literalFormOfType(writeTerm, portTypes) === undefined && openTermLiteralType(writeTerm) === 'Json' ? 'Json'
|
|
224
|
+
: writeTerm;
|
|
225
|
+
const opensAsExpression = (value === undefined || value === null || value === '') && portValueEditor?.renderExpressionEditor !== undefined
|
|
226
|
+
&& (field.defaultValue ?? '').startsWith(prefix);
|
|
227
|
+
const expressionBody = typeof value === 'string' && value.startsWith(prefix) ? value.slice(prefix.length) : opensAsExpression ? '' : null;
|
|
228
|
+
return (_jsxs(Fragment, { children: [_jsx(PortValueEditor, { fieldName: field.name, label: field.label, rawValue: value ?? '', placeholder: field.defaultValue ?? undefined, fieldType: fieldType, literalForm: field.type === 'Enum' ? undefined : literalFormOfType(fieldType, portTypes), allowedValues: field.allowedValues, onClear: () => { clearFields([field.name]); }, description: field.description ?? undefined, required: field.required, hasConnection: isFedByAnEdge(field.name), storedValueRefusal: field.type === 'Enum' ? undefined : refusalOf(value, portTerm), valueTerm: portTerm, secretValues: blockType.inputs.find((input) => input.name === field.name)?.secretValues, canProtectSecrets: portTypes.secretCodec, onChange: context.onChange, onObjectChange: (value) => { setField(field.name, value); }, ...portValueEditor }), expressionBody !== null && custom.renderProjectionControl && (_jsx(WiredJsonOutputs, { edges: incomingEdges, children: (jsonOutputs) => jsonOutputs.length > 0 && custom.renderProjectionControl?.({
|
|
229
|
+
placement: 'configuration', node, blockType, fieldName: field.name, targetType: fieldType, jsonOutputs, expressionBody,
|
|
230
|
+
onExpressionChange: (body) => { setField(field.name, `${prefix}${body}`); },
|
|
231
|
+
}) })), nullFault([field.name])] }, `${node.id}:${field.name}`));
|
|
232
|
+
};
|
|
233
|
+
const schemaFields = (blockType.configurationSchema ?? []).filter((field) => !(blockType.hasDynamicPorts && (field.name === 'InputPorts' || field.name === 'OutputPorts')));
|
|
234
|
+
return (_jsxs(Paper, { elevation: 2, "data-testid": "node-config-panel", sx: {
|
|
235
|
+
width: NODE_CONFIG_PANEL_WIDTH, boxSizing: 'border-box', height: '100%', overflow: 'auto',
|
|
236
|
+
borderLeft: '1px solid', borderColor: 'divider',
|
|
237
|
+
display: 'flex', flexDirection: 'column', flexShrink: 0,
|
|
238
|
+
pointerEvents: isPaletteDragActive ? 'none' : 'auto',
|
|
239
|
+
opacity: isPaletteDragActive ? 0.6 : 1,
|
|
240
|
+
}, children: [_jsxs(Box, { sx: { p: 2, borderBottom: '1px solid', borderColor: 'divider' }, children: [_jsx(Typography, { variant: "subtitle2", sx: { fontWeight: 'bold' }, children: blockType.displayName }), _jsxs(Typography, { variant: "caption", color: "text.secondary", sx: { display: 'block' }, children: ["Node: ", node.id] }), canvasStack.length > 0 && (_jsxs(Typography, { variant: "caption", color: "text.secondary", sx: { display: 'block' }, children: ["Path: ", rootCanvasLabel, " / ", canvasStack.map((frame) => frame.subCanvasName).join(' / ')] })), _jsx(Typography, { variant: "caption", color: "text.secondary", children: "Configuration" })] }), _jsxs(Box, { sx: { p: 2, display: 'flex', flexDirection: 'column', gap: 2 }, children: [blockType.hasDynamicPorts && (_jsxs(_Fragment, { children: [_jsx(PortDeclarationTable, { label: "Input Ports", value: node.configuration['InputPorts'], onChange: (json) => { setField('InputPorts', json); } }, `${node.id}-input-ports`), _jsx(PortDeclarationTable, { label: "Output Ports", value: node.configuration['OutputPorts'], onChange: (json) => { setField('OutputPorts', json); } }, `${node.id}-output-ports`), _jsx(Divider, {})] })), blockType.supportsDeclaredOutputs && (_jsxs(_Fragment, { children: [_jsx(DeclaredOutputPortTable, { label: "Declared Outputs (mapped per branch)", subCanvasNames: blockType.subCanvasNames ?? [], value: node.outputPorts, onChange: (ports) => { updateNodeOutputPorts(node.id, ports); } }, `${node.id}-declared-outputs`), _jsx(Divider, {})] })), schemaFields.map(renderField), wireLiterals.filter((wired) => schemaFieldOf(wired.input.name) === undefined).map(renderWireLiteral), mapInputs.map(({ port, term }) => (_jsxs(Fragment, { children: [_jsx(PortValueEditor, { fieldName: port.name, label: port.displayName, required: port.isRequired, rawValue: node.configuration[port.name] ?? '', fieldType: term, literalForm: literalFormOfType(term, portTypes), onClear: () => { clearFields([port.name]); }, hasConnection: isFedByAnEdge(port.name), storedValueRefusal: refusalOf(node.configuration[port.name], closedTermOf(port.type, port.name)), valueTerm: closedTermOf(port.type, port.name), secretValues: port.secretValues, canProtectSecrets: portTypes.secretCodec, onChange: (value) => { setField(port.name, value); }, onObjectChange: (value) => { setField(port.name, value); }, ...portValueEditor }), nullFault([port.name])] }, `${node.id}:${port.name}`))), (blockType.typeParameters ?? []).length > 0 && custom.renderTypeArgumentPicker?.({
|
|
241
|
+
node, blockType, typeParameters: blockType.typeParameters ?? [], typeArguments: node.typeArguments ?? {},
|
|
242
|
+
onChange: (typeArguments) => { setNodeTypeArguments(node.id, typeArguments); },
|
|
243
|
+
}), custom.renderNodeSections?.({ node, blockType, onConfigurationChange: setConfiguration }), nullFault((refusedNull?.keys ?? []).filter((key) => !schemaFields.some((field) => field.name === key))), _jsx(Divider, {}), _jsx(ResiliencySection, { configuration: node.configuration, onChange: setField, isContainer: (blockType.subCanvasNames ?? []).length > 0, onClear: clearFields }, `${node.id}-resiliency`), _jsx(Divider, {}), _jsx(ErrorHandlingSection, { errorPolicy: node.errorPolicy, onChange: writeErrorPolicy, onReset: () => { writeErrorPolicy(null); } }), _jsx(Divider, {}), _jsx(PassthroughSection, { incoming: incoming, passthrough: passthrough, termOf: (name) => analysedTerm(node.id, 'inputs', name), onToggle: togglePassthrough, subCanvasNames: blockType.subCanvasNames ?? [], renderValueEditor: (name) => (isValueAuthorable(name)
|
|
244
|
+
? (_jsx(PortValueEditor, { fieldName: name, label: name, rawValue: node.configuration[name] ?? '', fieldType: incoming.find((v) => v.name === name)?.type, literalForm: literalFormOf(incoming.find((v) => v.name === name)?.type), onClear: () => { clearFields([name]); }, hasConnection: isFedByAnEdge(name), onChange: (value) => { setField(name, value); }, onObjectChange: (value) => { setField(name, value); }, ...portValueEditor }, `${node.id}:passthrough:${name}`))
|
|
245
|
+
: null) }, `${node.id}-passthrough`)] })] }));
|
|
246
|
+
}
|
|
247
|
+
//# sourceMappingURL=NodeConfigPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeConfigPanel.js","sourceRoot":"","sources":["../../src/config/NodeConfigPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACnD,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,EACL,4BAA4B,EAAE,6BAA6B,EAC3D,mBAAmB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,UAAU,EAAE,kBAAkB,EAAE,SAAS,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,WAAW,EAAE,YAAY,EAAE,sBAAsB,GACpO,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAErD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,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CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,IAAI,EACtD,WAAW,EAAE,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,IAAI,CAAC,EACvE,OAAO,EAAE,GAAG,EAAE,GAAG,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA,CAAC,CAAC,EACtC,aAAa,EAAE,aAAa,CAAC,IAAI,CAAC,EAClC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,GAAG,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA,CAAC,CAAC,EAC9C,cAAc,EAAE,CAAC,KAAK,EAAE,EAAE,GAAG,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA,CAAC,CAAC,KAChD,eAAe,IAVd,GAAG,IAAI,CAAC,EAAE,gBAAgB,IAAI,EAAE,CAWrC,CACH;4BACD,CAAC,CAAC,IAAI,CAAC,IArBJ,GAAG,IAAI,CAAC,EAAE,cAAc,CAsB7B,IACE,IACA,CACT,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { IncomingVariable, PortTermDisplay } from '@reeve-iot/workflow-core';
|
|
3
|
+
export interface PassthroughSectionProps {
|
|
4
|
+
incoming: readonly IncomingVariable[];
|
|
5
|
+
passthrough: readonly string[];
|
|
6
|
+
/** Ticking a name is more than adding it to a list — a host may have to feed it on the wire too — so the
|
|
7
|
+
* section reports the name and leaves the meaning to its owner. */
|
|
8
|
+
onToggle: (name: string) => void;
|
|
9
|
+
/** Branch names this block owns, named in the hint: a tick here also reaches those sub-canvases. */
|
|
10
|
+
subCanvasNames?: readonly string[];
|
|
11
|
+
/** A value editor for a forwarded name, or null for a name that must not be authored here. */
|
|
12
|
+
renderValueEditor?: (name: string) => ReactNode;
|
|
13
|
+
/** The term the server's analysis gives a name this node forwards, shown in place of the incoming one; the feed decides it. */
|
|
14
|
+
termOf?: (name: string) => PortTermDisplay | undefined;
|
|
15
|
+
}
|
|
16
|
+
/** Which incoming variables this node forwards to its own outputs, plus names typed by hand for a value
|
|
17
|
+
* the editor cannot see yet — a plugin output the catalogue has not caught up with. */
|
|
18
|
+
export declare function PassthroughSection({ incoming, passthrough, onToggle, subCanvasNames, renderValueEditor, termOf, }: PassthroughSectionProps): import("react").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=PassthroughSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PassthroughSection.d.ts","sourceRoot":"","sources":["../../src/config/PassthroughSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAIjF,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACrC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAA;IAC9B;uEACmE;IACnE,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,oGAAoG;IACpG,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAClC,8FAA8F;IAC9F,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,CAAA;IAC/C,+HAA+H;IAC/H,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,eAAe,GAAG,SAAS,CAAA;CACvD;AAYD;uFACuF;AACvF,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAmB,EAAE,iBAAiB,EAAE,MAAM,GAChF,EAAE,uBAAuB,+BAsGzB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { Box, Checkbox, IconButton, InputAdornment, List, ListItem, ListItemIcon, ListItemText, TextField, Typography, } from '@mui/material';
|
|
4
|
+
import AddIcon from '@mui/icons-material/Add';
|
|
5
|
+
import { termText } from '../canvas/analysedPortTerm.js';
|
|
6
|
+
import { BLANK_NAME_ACCEPTED, draftInScope, nameFault } from '../nameDraft.js';
|
|
7
|
+
const incomingTerm = (v, own) => own !== undefined ? termText(own) : v.type === undefined ? undefined : v.stale ? `${v.type} (stale)` : v.type;
|
|
8
|
+
const customTerm = (own) => own === undefined ? 'Custom' : `Custom (${termText(own)})`;
|
|
9
|
+
/** Which incoming variables this node forwards to its own outputs, plus names typed by hand for a value
|
|
10
|
+
* the editor cannot see yet — a plugin output the catalogue has not caught up with. */
|
|
11
|
+
export function PassthroughSection({ incoming, passthrough, onToggle, subCanvasNames = [], renderValueEditor, termOf, }) {
|
|
12
|
+
const context = JSON.stringify([incoming.map((v) => v.name), passthrough]);
|
|
13
|
+
const [draft, setDraft] = useState({ scope: context, text: '', touched: false });
|
|
14
|
+
const live = draftInScope(draft, context) ?? { scope: context, text: '', touched: false };
|
|
15
|
+
const toggle = onToggle;
|
|
16
|
+
const addCustom = () => {
|
|
17
|
+
setDraft({ scope: context, text: live.text, touched: true });
|
|
18
|
+
if (nameFault(live.text, BLANK_NAME_ACCEPTED) !== null || passthrough.includes(live.text))
|
|
19
|
+
return;
|
|
20
|
+
onToggle(live.text);
|
|
21
|
+
setDraft({ scope: context, text: '', touched: false });
|
|
22
|
+
};
|
|
23
|
+
const nameFaultText = live.text === '' && !live.touched ? null : nameFault(live.text, BLANK_NAME_ACCEPTED);
|
|
24
|
+
const valueEditors = passthrough
|
|
25
|
+
.map((name) => [name, renderValueEditor?.(name) ?? null])
|
|
26
|
+
.filter(([, editor]) => editor !== null);
|
|
27
|
+
const custom = passthrough.filter((p) => !incoming.some((v) => v.name === p));
|
|
28
|
+
return (_jsxs(Box, { children: [_jsx(Typography, { variant: "subtitle2", sx: { mb: 1 }, children: "Passthrough Variables" }), _jsx(Typography, { variant: "caption", color: "text.secondary", sx: { display: 'block', mb: 2 }, children: "Incoming variables that should be passed to the output." }), subCanvasNames.length > 0 && (_jsxs(Typography, { variant: "caption", color: "text.secondary", sx: { display: 'block', mb: 2 }, children: ["Each also reaches ", subCanvasNames.join(' / '), ": a sub-canvas is seeded with this block's resolved inputs, so ticking one gives Workflow Input inside the branch a matching port."] })), _jsxs(List, { disablePadding: true, children: [incoming.map((v) => (_jsxs(ListItem, { dense: true, disableGutters: true, children: [_jsx(ListItemIcon, { sx: { minWidth: 36 }, children: _jsx(Checkbox, { size: "small", edge: "start", checked: passthrough.includes(v.name), slotProps: { input: { 'aria-label': `Forward ${v.name}` } }, onChange: () => { toggle(v.name); } }) }), _jsx(ListItemText, { primary: v.name, secondary: incomingTerm(v, passthrough.includes(v.name) ? termOf?.(v.name) : undefined), slotProps: { primary: { variant: 'body2' } } })] }, v.name))), custom.map((p) => (_jsxs(ListItem, { dense: true, disableGutters: true, children: [_jsx(ListItemIcon, { sx: { minWidth: 36 }, children: _jsx(Checkbox, { size: "small", edge: "start", checked: true, slotProps: { input: { 'aria-label': `Forward ${p}` } }, onChange: () => { toggle(p); } }) }), _jsx(ListItemText, { primary: p, secondary: customTerm(termOf?.(p)), slotProps: { primary: { variant: 'body2' } } })] }, p)))] }), valueEditors.length > 0 && (_jsxs(Box, { sx: { mt: 2, display: 'flex', flexDirection: 'column', gap: 1.5 }, children: [_jsx(Typography, { variant: "caption", color: "text.secondary", children: subCanvasNames.length > 0
|
|
29
|
+
? 'Values — a variable no wire feeds can be given a constant or an expression, and reaches the sub-canvas the same way.'
|
|
30
|
+
: 'Values' }), valueEditors.map(([name, editor]) => _jsx(Box, { children: editor }, `passthrough-${name}`))] })), _jsx(Box, { sx: { mt: 2, display: 'flex', gap: 1 }, children: _jsx(TextField, { size: "small", placeholder: "Add variable name", value: live.text, error: nameFaultText !== null, helperText: nameFaultText ?? undefined, slotProps: {
|
|
31
|
+
htmlInput: { 'aria-label': 'Add variable name' },
|
|
32
|
+
input: {
|
|
33
|
+
endAdornment: (_jsx(InputAdornment, { position: "end", children: _jsx(IconButton, { size: "small", "aria-label": "Add passthrough variable", onClick: addCustom, children: _jsx(AddIcon, { fontSize: "small" }) }) })),
|
|
34
|
+
},
|
|
35
|
+
}, onChange: (e) => { setDraft({ scope: context, text: e.target.value, touched: true }); }, onKeyDown: (e) => { if (e.key === 'Enter')
|
|
36
|
+
addCustom(); } }) })] }));
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=PassthroughSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PassthroughSection.js","sourceRoot":"","sources":["../../src/config/PassthroughSection.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EACL,GAAG,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAChG,UAAU,GACX,MAAM,eAAe,CAAA;AACtB,OAAO,OAAO,MAAM,yBAAyB,CAAA;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AACxD,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAgB9E,MAAM,YAAY,GAAG,CAAC,CAAmB,EAAE,GAAgC,EAAsB,EAAE,CACjG,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;A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