-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Flow): decouple flow from node groups
- Loading branch information
1 parent
cdfaca5
commit 8a5ca52
Showing
13 changed files
with
395 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
packages/lab/src/components/Flow/stories/Base/NoGroup/LineChart.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { HvFlowNode } from "@hitachivantara/uikit-react-lab"; | ||
|
||
export const LineChart = (props) => { | ||
return ( | ||
<HvFlowNode | ||
description="LineChart description" | ||
nodeDefaults={{ | ||
title: "Line Chart", | ||
subTitle: "Visualization", | ||
color: "cat12_80", | ||
}} | ||
{...props} | ||
/> | ||
); | ||
}; | ||
|
||
LineChart.meta = { | ||
label: "LineChart", | ||
inputs: [ | ||
{ | ||
label: "Data", | ||
isMandatory: true, | ||
accepts: ["prediction", "detection"], | ||
}, | ||
], | ||
}; |
33 changes: 33 additions & 0 deletions
33
packages/lab/src/components/Flow/stories/Base/NoGroup/MLModelPrediction.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { HvFlowNode } from "@hitachivantara/uikit-react-lab"; | ||
|
||
export const MLModelPrediction = (props) => { | ||
return ( | ||
<HvFlowNode | ||
description="Anomaly Prediction description" | ||
nodeDefaults={{ | ||
title: "ML Model Prediction", | ||
subTitle: "ML Model Prediction", | ||
color: "cat10_80", | ||
}} | ||
{...props} | ||
/> | ||
); | ||
}; | ||
|
||
MLModelPrediction.meta = { | ||
label: "ML Model Prediction", | ||
inputs: [ | ||
{ | ||
label: "Sensor Data", | ||
isMandatory: true, | ||
accepts: ["sensorData"], | ||
}, | ||
], | ||
outputs: [ | ||
{ | ||
label: "Prediction", | ||
isMandatory: true, | ||
provides: "prediction", | ||
}, | ||
], | ||
}; |
Oops, something went wrong.