@wandelbots/wandelbots-js-react-components 2.47.0 → 2.48.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wandelbots/wandelbots-js-react-components",
3
- "version": "2.47.0",
3
+ "version": "2.48.0",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -120,7 +120,7 @@ export const ProgramStateIndicator = externalizeComponent(
120
120
  case ProgramState.STOPPED:
121
121
  return {
122
122
  label: t("ProgramStateIndicator.Stopped.lb"),
123
- color: theme.palette.grey[600],
123
+ color: theme.palette.warning.main,
124
124
  }
125
125
  case ProgramState.ERROR:
126
126
  return {
@@ -11,6 +11,12 @@ export enum RobotSetupReadinessState {
11
11
  PRECONDITION_NOT_FULFILLED = "PRECONDITION_NOT_FULFILLED",
12
12
  /** Robot is disconnected from the system */
13
13
  ROBOT_DISCONNECTED = "ROBOT_DISCONNECTED",
14
+ /** Safety cell is open and robot cannot operate */
15
+ CELL_OPEN = "CELL_OPEN",
16
+ /** Emergency stop is active and robot cannot operate */
17
+ E_STOP = "E_STOP",
18
+ /** Robot is in manual mode and requires manual intervention */
19
+ MANUAL_MODE = "MANUAL_MODE",
14
20
  /** Robot is ready for operation */
15
21
  READY = "READY",
16
22
  }
@@ -26,7 +32,7 @@ export interface RobotSetupReadinessIndicatorProps {
26
32
  * A state indicator component that displays the current robot setup readiness state.
27
33
  *
28
34
  * Features:
29
- * - Shows three states: Precondition not fulfilled, Robot disconnected, Ready
35
+ * - Shows six states: Precondition not fulfilled, Robot disconnected, Cell open, E-Stop, Manual mode, Ready
30
36
  * - Color-coded based on state (ready: tertiary/main, others: error/main)
31
37
  * - Rendered as Material-UI filled chip with paper-elevation-11 background
32
38
  * - Includes colored circle indicator (8px width)
@@ -58,6 +64,33 @@ export const RobotSetupReadinessIndicator = externalizeComponent(
58
64
  theme.palette.background.paper,
59
65
  textColor: theme.palette.secondary.contrastText,
60
66
  }
67
+ case RobotSetupReadinessState.CELL_OPEN:
68
+ return {
69
+ label: t("RobotSetupReadinessIndicator.CellOpen.lb"),
70
+ indicatorColor: theme.palette.error.main,
71
+ backgroundColor:
72
+ theme.palette.backgroundPaperElevation?.[11] ||
73
+ theme.palette.background.paper,
74
+ textColor: theme.palette.secondary.contrastText,
75
+ }
76
+ case RobotSetupReadinessState.E_STOP:
77
+ return {
78
+ label: t("RobotSetupReadinessIndicator.EStop.lb"),
79
+ indicatorColor: theme.palette.error.main,
80
+ backgroundColor:
81
+ theme.palette.backgroundPaperElevation?.[11] ||
82
+ theme.palette.background.paper,
83
+ textColor: theme.palette.secondary.contrastText,
84
+ }
85
+ case RobotSetupReadinessState.MANUAL_MODE:
86
+ return {
87
+ label: t("RobotSetupReadinessIndicator.ManualMode.lb"),
88
+ indicatorColor: theme.palette.error.main,
89
+ backgroundColor:
90
+ theme.palette.backgroundPaperElevation?.[11] ||
91
+ theme.palette.background.paper,
92
+ textColor: theme.palette.secondary.contrastText,
93
+ }
61
94
  case RobotSetupReadinessState.PRECONDITION_NOT_FULFILLED:
62
95
  default:
63
96
  return {
@@ -77,6 +77,9 @@
77
77
  "ProgramStateIndicator.ManualT2.lb": "Manuell T2",
78
78
  "RobotSetupReadinessIndicator.Ready.lb": "Bereit",
79
79
  "RobotSetupReadinessIndicator.RobotDisconnected.lb": "Roboter getrennt",
80
+ "RobotSetupReadinessIndicator.CellOpen.lb": "Zelle offen",
81
+ "RobotSetupReadinessIndicator.EStop.lb": "Not-Stopp",
82
+ "RobotSetupReadinessIndicator.ManualMode.lb": "Manueller Modus",
80
83
  "RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb": "Voraussetzung nicht erfüllt",
81
84
  "RobotCard.Runtime.lb": "Laufzeit",
82
85
  "RobotCard.DriveToHome.bt": "Zur Home-Position fahren"
@@ -78,6 +78,9 @@
78
78
  "ProgramStateIndicator.ManualT2.lb": "Manual T2",
79
79
  "RobotSetupReadinessIndicator.Ready.lb": "Ready",
80
80
  "RobotSetupReadinessIndicator.RobotDisconnected.lb": "Robot disconnected",
81
+ "RobotSetupReadinessIndicator.CellOpen.lb": "Cell open",
82
+ "RobotSetupReadinessIndicator.EStop.lb": "E-Stop",
83
+ "RobotSetupReadinessIndicator.ManualMode.lb": "Manual mode",
81
84
  "RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb": "Precondition not fulfilled",
82
85
  "RobotCard.Runtime.lb": "Runtime",
83
86
  "RobotCard.DriveToHome.bt": "Drive to Home"