@wandelbots/wandelbots-js-react-components 3.3.1-pr.fix-no-ids.417.c2620b0 → 3.3.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/components/jogging/JoggingJointTab.d.ts.map +1 -1
- package/dist/components/jogging/JoggingOptions.d.ts.map +1 -1
- package/dist/components/safetyBar/ControllerTypeIndicator.d.ts.map +1 -1
- package/dist/components/safetyBar/OperationModeIndicator.d.ts.map +1 -1
- package/dist/components/safetyBar/SafetyStateIndicator.d.ts.map +1 -1
- package/dist/core.cjs.js +1 -1
- package/dist/core.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{theming-Bd0vaauc.js → theming-BWOmVwDm.js} +2717 -2715
- package/dist/{theming-Bd0vaauc.js.map → theming-BWOmVwDm.js.map} +1 -1
- package/dist/{theming-j4s40Rk-.cjs → theming-hsf8KjGm.cjs} +3 -3
- package/dist/{theming-j4s40Rk-.cjs.map → theming-hsf8KjGm.cjs.map} +1 -1
- package/package.json +1 -1
- package/src/components/jogging/JoggingJointTab.tsx +1 -0
- package/src/components/jogging/JoggingOptions.tsx +5 -6
- package/src/components/safetyBar/ControllerTypeIndicator.tsx +2 -4
- package/src/components/safetyBar/OperationModeIndicator.tsx +3 -5
- package/src/components/safetyBar/SafetyStateIndicator.tsx +5 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wandelbots/wandelbots-js-react-components",
|
|
3
|
-
"version": "3.3.1
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "React UI toolkit for building applications on top of the Wandelbots platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Box, MenuItem } from "@mui/material"
|
|
2
2
|
import { observer } from "mobx-react-lite"
|
|
3
|
-
import { useId } from "react"
|
|
4
3
|
import { useTranslation } from "react-i18next"
|
|
5
4
|
import AdornedSelect from "../experimental/utils/AdornedSelect"
|
|
6
5
|
import {
|
|
@@ -12,7 +11,6 @@ import {
|
|
|
12
11
|
|
|
13
12
|
export const JoggingOptions = observer(({ store }: { store: JoggingStore }) => {
|
|
14
13
|
const { t } = useTranslation()
|
|
15
|
-
const componentId = useId()
|
|
16
14
|
const joggingOptions: React.ReactElement[] = []
|
|
17
15
|
|
|
18
16
|
function translateOrientation(orientation: OrientationId): string {
|
|
@@ -30,7 +28,7 @@ export const JoggingOptions = observer(({ store }: { store: JoggingStore }) => {
|
|
|
30
28
|
joggingOptions.push(
|
|
31
29
|
<AdornedSelect
|
|
32
30
|
key="coord"
|
|
33
|
-
labelId=
|
|
31
|
+
labelId="jogging-coord-select"
|
|
34
32
|
labelValue={t("Jogging.CoordinateSystem.hlb")}
|
|
35
33
|
value={store.selectedCoordSystemId}
|
|
36
34
|
size="small"
|
|
@@ -56,7 +54,7 @@ export const JoggingOptions = observer(({ store }: { store: JoggingStore }) => {
|
|
|
56
54
|
joggingOptions.push(
|
|
57
55
|
<AdornedSelect
|
|
58
56
|
key="tcp"
|
|
59
|
-
labelId=
|
|
57
|
+
labelId="jogging-tcp-select"
|
|
60
58
|
labelValue="TCP"
|
|
61
59
|
value={store.selectedTcpId}
|
|
62
60
|
size="small"
|
|
@@ -80,7 +78,8 @@ export const JoggingOptions = observer(({ store }: { store: JoggingStore }) => {
|
|
|
80
78
|
<AdornedSelect
|
|
81
79
|
key="orientation"
|
|
82
80
|
labelValue={t("Jogging.Cartesian.Orientation.lb")}
|
|
83
|
-
|
|
81
|
+
id="orientation-select"
|
|
82
|
+
labelId="orientation-select"
|
|
84
83
|
value={store.selectedOrientation}
|
|
85
84
|
onChange={(event) =>
|
|
86
85
|
store.setSelectedOrientation(event.target.value as OrientationId)
|
|
@@ -101,7 +100,7 @@ export const JoggingOptions = observer(({ store }: { store: JoggingStore }) => {
|
|
|
101
100
|
<AdornedSelect
|
|
102
101
|
key="increment"
|
|
103
102
|
labelValue={t("Jogging.Increment.hlb")}
|
|
104
|
-
labelId=
|
|
103
|
+
labelId="jogging-increment-select"
|
|
105
104
|
size="small"
|
|
106
105
|
variant="filled"
|
|
107
106
|
value={store.activeDiscreteIncrement?.id || "continuous"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useTheme, type PopoverOrigin } from "@mui/material"
|
|
2
2
|
import { observer } from "mobx-react-lite"
|
|
3
|
-
import { useId } from "react"
|
|
4
3
|
import { Trans, useTranslation } from "react-i18next"
|
|
5
4
|
import ControllerTypePhysicalIcon from "./icons/controller-type-physical.svg"
|
|
6
5
|
import ControllerTypeVirtualIcon from "./icons/controller-type-virtual.svg"
|
|
@@ -23,13 +22,12 @@ export const ControllerTypeIndicator = observer(
|
|
|
23
22
|
compact,
|
|
24
23
|
}: ControllerTypeIndicatorProps) => {
|
|
25
24
|
const theme = useTheme()
|
|
26
|
-
const componentId = useId()
|
|
27
25
|
const { t } = useTranslation()
|
|
28
26
|
|
|
29
27
|
if (isVirtual) {
|
|
30
28
|
return (
|
|
31
29
|
<IndicatorWithExplanation
|
|
32
|
-
id=
|
|
30
|
+
id="motion-group-virtual"
|
|
33
31
|
icon={ControllerTypeVirtualIcon}
|
|
34
32
|
color={theme.palette.tertiary.main}
|
|
35
33
|
name={t("SafetyBar.ControllerType.Virtual.lb")}
|
|
@@ -54,7 +52,7 @@ export const ControllerTypeIndicator = observer(
|
|
|
54
52
|
|
|
55
53
|
return (
|
|
56
54
|
<IndicatorWithExplanation
|
|
57
|
-
id=
|
|
55
|
+
id="motion-group-physical"
|
|
58
56
|
icon={ControllerTypePhysicalIcon}
|
|
59
57
|
color={theme.palette.primary.main}
|
|
60
58
|
name={t("SafetyBar.ControllerType.Physical.lb")}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { useTheme, type PopoverOrigin } from "@mui/material"
|
|
2
2
|
import type { OperationMode } from "@wandelbots/nova-js/v2"
|
|
3
3
|
import { observer } from "mobx-react-lite"
|
|
4
|
-
import { useId } from "react"
|
|
5
4
|
import { Trans, useTranslation } from "react-i18next"
|
|
6
5
|
import OperationModeAutomaticIcon from "./icons/operation-mode-automatic.svg"
|
|
7
6
|
import OperationModeErrorIcon from "./icons/operation-mode-error.svg"
|
|
@@ -24,13 +23,12 @@ export const OperationModeIndicator = observer(
|
|
|
24
23
|
}: OperationModeIndicatorProps) => {
|
|
25
24
|
const { t } = useTranslation()
|
|
26
25
|
const theme = useTheme()
|
|
27
|
-
const componentId = useId()
|
|
28
26
|
|
|
29
27
|
switch (operationMode) {
|
|
30
28
|
case "OPERATION_MODE_AUTO":
|
|
31
29
|
return (
|
|
32
30
|
<IndicatorWithExplanation
|
|
33
|
-
id=
|
|
31
|
+
id="operation-mode-auto"
|
|
34
32
|
icon={OperationModeAutomaticIcon}
|
|
35
33
|
title={t("SafetyBar.OperationMode.ti")}
|
|
36
34
|
name={t("SafetyBar.OperationMode.Automatic.ti")}
|
|
@@ -51,7 +49,7 @@ export const OperationModeIndicator = observer(
|
|
|
51
49
|
case "OPERATION_MODE_MANUAL_T2": {
|
|
52
50
|
return (
|
|
53
51
|
<IndicatorWithExplanation
|
|
54
|
-
id=
|
|
52
|
+
id="operation-mode-manual"
|
|
55
53
|
icon={OperationModeManualIcon}
|
|
56
54
|
color={theme.palette.warning.main}
|
|
57
55
|
title={t("SafetyBar.OperationMode.ti")}
|
|
@@ -73,7 +71,7 @@ export const OperationModeIndicator = observer(
|
|
|
73
71
|
default:
|
|
74
72
|
return (
|
|
75
73
|
<IndicatorWithExplanation
|
|
76
|
-
id=
|
|
74
|
+
id="operation-mode-error"
|
|
77
75
|
icon={OperationModeErrorIcon}
|
|
78
76
|
color={theme.palette.warning.main}
|
|
79
77
|
title={t("SafetyBar.OperationMode.ti")}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { useTheme, type PopoverOrigin } from "@mui/material"
|
|
2
2
|
import type { SafetyStateType } from "@wandelbots/nova-js/v2"
|
|
3
3
|
import { observer } from "mobx-react-lite"
|
|
4
|
-
import { useId } from "react"
|
|
5
4
|
import { Trans, useTranslation } from "react-i18next"
|
|
6
5
|
import { assertUnreachable } from "../utils/errorHandling"
|
|
7
6
|
import SafetyStateErrorIcon from "./icons/safety-state-error.svg"
|
|
@@ -27,14 +26,13 @@ export const SafetyStateIndicator = observer(
|
|
|
27
26
|
}: SafetyStateIndicatorProps) => {
|
|
28
27
|
const { t } = useTranslation()
|
|
29
28
|
const theme = useTheme()
|
|
30
|
-
const componentId = useId()
|
|
31
29
|
|
|
32
30
|
switch (safetyState) {
|
|
33
31
|
// Normal state, robot can move
|
|
34
32
|
case "SAFETY_STATE_NORMAL":
|
|
35
33
|
return (
|
|
36
34
|
<IndicatorWithExplanation
|
|
37
|
-
id=
|
|
35
|
+
id="safety-state-normal"
|
|
38
36
|
title={t("SafetyBar.SafetyState.ti")}
|
|
39
37
|
name={t("SafetyBar.SafetyState.Normal.lb")}
|
|
40
38
|
label={compact ? null : t("SafetyBar.SafetyState.Normal.lb")}
|
|
@@ -56,7 +54,7 @@ export const SafetyStateIndicator = observer(
|
|
|
56
54
|
case "SAFETY_STATE_ROBOT_EMERGENCY_STOP":
|
|
57
55
|
return (
|
|
58
56
|
<IndicatorWithExplanation
|
|
59
|
-
id=
|
|
57
|
+
id="safety-state-estop"
|
|
60
58
|
title={t("SafetyBar.SafetyState.ti")}
|
|
61
59
|
name={t("SafetyBar.SafetyState.Estop.lb")}
|
|
62
60
|
label={compact ? null : t("SafetyBar.SafetyState.Estop.lb")}
|
|
@@ -83,7 +81,7 @@ export const SafetyStateIndicator = observer(
|
|
|
83
81
|
case "SAFETY_STATE_STOP":
|
|
84
82
|
return (
|
|
85
83
|
<IndicatorWithExplanation
|
|
86
|
-
id=
|
|
84
|
+
id="safety-state-stop"
|
|
87
85
|
icon={SafetyStateStopIcon}
|
|
88
86
|
title={t("SafetyBar.SafetyState.ti")}
|
|
89
87
|
name={t("SafetyBar.SafetyState.Stop.lb")}
|
|
@@ -110,7 +108,7 @@ export const SafetyStateIndicator = observer(
|
|
|
110
108
|
case "SAFETY_STATE_VIOLATION":
|
|
111
109
|
return (
|
|
112
110
|
<IndicatorWithExplanation
|
|
113
|
-
id=
|
|
111
|
+
id="safety-state-manual-action-required"
|
|
114
112
|
icon={SafetyStateManualActionRequiredIcon}
|
|
115
113
|
color={theme.palette.warning.main}
|
|
116
114
|
title={t("SafetyBar.SafetyState.ti")}
|
|
@@ -137,7 +135,7 @@ export const SafetyStateIndicator = observer(
|
|
|
137
135
|
case "SAFETY_STATE_FAULT":
|
|
138
136
|
return (
|
|
139
137
|
<IndicatorWithExplanation
|
|
140
|
-
id=
|
|
138
|
+
id="safety-state-error"
|
|
141
139
|
icon={SafetyStateErrorIcon}
|
|
142
140
|
color={theme.palette.error.main}
|
|
143
141
|
title={t("SafetyBar.SafetyState.ti")}
|