@wandelbots/wandelbots-js-react-components 2.12.0 → 2.13.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/components/safetyBar/ControllerTypeIndicator.d.ts +4 -1
- package/dist/components/safetyBar/ControllerTypeIndicator.d.ts.map +1 -1
- package/dist/components/safetyBar/IndicatorWithExplanation.d.ts +4 -2
- package/dist/components/safetyBar/IndicatorWithExplanation.d.ts.map +1 -1
- package/dist/components/safetyBar/OperationModeIndicator.d.ts +4 -1
- package/dist/components/safetyBar/OperationModeIndicator.d.ts.map +1 -1
- package/dist/components/safetyBar/SafetyBar.d.ts +3 -0
- package/dist/components/safetyBar/SafetyBar.d.ts.map +1 -1
- package/dist/components/safetyBar/SafetyStateIndicator.d.ts +4 -1
- package/dist/components/safetyBar/SafetyStateIndicator.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +110 -59
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/safetyBar/ControllerTypeIndicator.tsx +13 -2
- package/src/components/safetyBar/IndicatorWithExplanation.tsx +17 -8
- package/src/components/safetyBar/OperationModeIndicator.tsx +14 -2
- package/src/components/safetyBar/SafetyBar.tsx +15 -3
- package/src/components/safetyBar/SafetyStateIndicator.tsx +18 -2
package/dist/index.js
CHANGED
|
@@ -11549,28 +11549,30 @@ const qy = ({
|
|
|
11549
11549
|
title: r,
|
|
11550
11550
|
name: o,
|
|
11551
11551
|
explanation: i,
|
|
11552
|
-
literalValue: a
|
|
11552
|
+
literalValue: a,
|
|
11553
|
+
anchorOrigin: s,
|
|
11554
|
+
transformOrigin: l
|
|
11553
11555
|
}) => {
|
|
11554
|
-
const
|
|
11556
|
+
const c = kr(() => ({
|
|
11555
11557
|
anchorEl: null,
|
|
11556
11558
|
get isPopoverOpen() {
|
|
11557
|
-
return !!
|
|
11559
|
+
return !!c.anchorEl;
|
|
11558
11560
|
},
|
|
11559
|
-
openPopover(
|
|
11560
|
-
|
|
11561
|
+
openPopover(u) {
|
|
11562
|
+
c.anchorEl = u.currentTarget;
|
|
11561
11563
|
},
|
|
11562
11564
|
closePopover() {
|
|
11563
|
-
|
|
11565
|
+
c.anchorEl = null;
|
|
11564
11566
|
}
|
|
11565
11567
|
}));
|
|
11566
11568
|
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
11567
11569
|
/* @__PURE__ */ m.jsx(
|
|
11568
11570
|
de,
|
|
11569
11571
|
{
|
|
11570
|
-
"aria-owns":
|
|
11572
|
+
"aria-owns": c.isPopoverOpen ? e : void 0,
|
|
11571
11573
|
"aria-haspopup": "true",
|
|
11572
|
-
onMouseEnter:
|
|
11573
|
-
onMouseLeave:
|
|
11574
|
+
onMouseEnter: c.openPopover,
|
|
11575
|
+
onMouseLeave: c.closePopover,
|
|
11574
11576
|
sx: {
|
|
11575
11577
|
cursor: "pointer"
|
|
11576
11578
|
},
|
|
@@ -11592,17 +11594,17 @@ const qy = ({
|
|
|
11592
11594
|
sx: {
|
|
11593
11595
|
pointerEvents: "none"
|
|
11594
11596
|
},
|
|
11595
|
-
open:
|
|
11596
|
-
anchorEl:
|
|
11597
|
-
anchorOrigin: {
|
|
11597
|
+
open: c.isPopoverOpen,
|
|
11598
|
+
anchorEl: c.anchorEl,
|
|
11599
|
+
anchorOrigin: s ?? {
|
|
11598
11600
|
vertical: "bottom",
|
|
11599
11601
|
horizontal: "left"
|
|
11600
11602
|
},
|
|
11601
|
-
transformOrigin: {
|
|
11603
|
+
transformOrigin: l ?? {
|
|
11602
11604
|
vertical: "top",
|
|
11603
11605
|
horizontal: "left"
|
|
11604
11606
|
},
|
|
11605
|
-
onClose:
|
|
11607
|
+
onClose: c.closePopover,
|
|
11606
11608
|
disableRestoreFocus: !0,
|
|
11607
11609
|
children: /* @__PURE__ */ m.jsxs(
|
|
11608
11610
|
de,
|
|
@@ -11637,15 +11639,20 @@ const qy = ({
|
|
|
11637
11639
|
] });
|
|
11638
11640
|
}
|
|
11639
11641
|
), Qy = Ae(
|
|
11640
|
-
({
|
|
11641
|
-
|
|
11642
|
+
({
|
|
11643
|
+
isVirtual: e,
|
|
11644
|
+
motionGroupId: t,
|
|
11645
|
+
anchorOrigin: n,
|
|
11646
|
+
transformOrigin: r
|
|
11647
|
+
}) => {
|
|
11648
|
+
const o = We(), { t: i } = kt();
|
|
11642
11649
|
return e ? /* @__PURE__ */ m.jsx(
|
|
11643
11650
|
ot,
|
|
11644
11651
|
{
|
|
11645
11652
|
id: "motion-group-virtual",
|
|
11646
11653
|
icon: Xy,
|
|
11647
|
-
color:
|
|
11648
|
-
name:
|
|
11654
|
+
color: o.palette.tertiary.main,
|
|
11655
|
+
name: i("SafetyBar.ControllerType.Virtual.lb"),
|
|
11649
11656
|
explanation: /* @__PURE__ */ m.jsxs(
|
|
11650
11657
|
nt,
|
|
11651
11658
|
{
|
|
@@ -11659,15 +11666,17 @@ const qy = ({
|
|
|
11659
11666
|
" refers to a virtual robot with no physical counterpart. It can be freely manipulated without special safety precautions."
|
|
11660
11667
|
]
|
|
11661
11668
|
}
|
|
11662
|
-
)
|
|
11669
|
+
),
|
|
11670
|
+
anchorOrigin: n,
|
|
11671
|
+
transformOrigin: r
|
|
11663
11672
|
}
|
|
11664
11673
|
) : /* @__PURE__ */ m.jsx(
|
|
11665
11674
|
ot,
|
|
11666
11675
|
{
|
|
11667
11676
|
id: "motion-group-physical",
|
|
11668
11677
|
icon: Yy,
|
|
11669
|
-
color:
|
|
11670
|
-
name:
|
|
11678
|
+
color: o.palette.primary.main,
|
|
11679
|
+
name: i("SafetyBar.ControllerType.Physical.lb"),
|
|
11671
11680
|
explanation: /* @__PURE__ */ m.jsx(
|
|
11672
11681
|
nt,
|
|
11673
11682
|
{
|
|
@@ -11677,7 +11686,9 @@ const qy = ({
|
|
|
11677
11686
|
},
|
|
11678
11687
|
components: { code: /* @__PURE__ */ m.jsx("code", {}), strong: /* @__PURE__ */ m.jsx("strong", {}) }
|
|
11679
11688
|
}
|
|
11680
|
-
)
|
|
11689
|
+
),
|
|
11690
|
+
anchorOrigin: n,
|
|
11691
|
+
transformOrigin: r
|
|
11681
11692
|
}
|
|
11682
11693
|
);
|
|
11683
11694
|
}
|
|
@@ -11694,8 +11705,12 @@ const qy = ({
|
|
|
11694
11705
|
titleId: t,
|
|
11695
11706
|
...n
|
|
11696
11707
|
}, r) => /* @__PURE__ */ C.createElement("svg", { width: 24, height: 24, fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: r, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ C.createElement("title", { id: t }, e) : null, /* @__PURE__ */ C.createElement("path", { d: "M12.953 5.09a1.497 1.497 0 0 0-1.653-.518l-1.35.43a1.504 1.504 0 0 0-1.726-.376L2.858 6.97c-.736.321-1.06 1.155-.726 1.862.334.707 1.202 1.02 1.937.698l4.27-1.865 1.466 1.973v.402c0 .873-.627 1.63-1.512 1.827l-2.56.567c-1.329.295-2.27 1.431-2.27 2.74v.107c0 .26.22.469.489.469h11.117c1.329 0 2.618.435 3.656 1.233l1.665 1.28A1 1 0 0 0 22 17.47V11.062c0-.312-.108-.616-.308-.863l-3.415-4.218a1.5 1.5 0 0 0-1.618-.471l-.378.12-.866-.475a1.516 1.516 0 0 0-1.188-.114l-1.06.338-.214-.289Z" })), ib = we(ob), ab = Ae(
|
|
11697
|
-
({
|
|
11698
|
-
|
|
11708
|
+
({
|
|
11709
|
+
operationMode: e,
|
|
11710
|
+
anchorOrigin: t,
|
|
11711
|
+
transformOrigin: n
|
|
11712
|
+
}) => {
|
|
11713
|
+
const { t: r } = kt(), o = We();
|
|
11699
11714
|
switch (e) {
|
|
11700
11715
|
case "OPERATION_MODE_AUTO":
|
|
11701
11716
|
return /* @__PURE__ */ m.jsx(
|
|
@@ -11703,10 +11718,12 @@ const qy = ({
|
|
|
11703
11718
|
{
|
|
11704
11719
|
id: "operation-mode-auto",
|
|
11705
11720
|
icon: tb,
|
|
11706
|
-
title:
|
|
11707
|
-
name:
|
|
11721
|
+
title: r("SafetyBar.OperationMode.ti"),
|
|
11722
|
+
name: r("SafetyBar.OperationMode.Automatic.ti"),
|
|
11708
11723
|
color: "rgba(255, 255, 255, 0.57)",
|
|
11709
|
-
explanation: /* @__PURE__ */ m.jsx(nt, { i18nKey: "SafetyBar.OperationMode.Auto.Explanation.lb", children: "The robot controller is in automatic operation mode. Automated movement without manual confirmation is possible in this mode." })
|
|
11724
|
+
explanation: /* @__PURE__ */ m.jsx(nt, { i18nKey: "SafetyBar.OperationMode.Auto.Explanation.lb", children: "The robot controller is in automatic operation mode. Automated movement without manual confirmation is possible in this mode." }),
|
|
11725
|
+
anchorOrigin: t,
|
|
11726
|
+
transformOrigin: n
|
|
11710
11727
|
}
|
|
11711
11728
|
);
|
|
11712
11729
|
case "OPERATION_MODE_MANUAL":
|
|
@@ -11717,11 +11734,13 @@ const qy = ({
|
|
|
11717
11734
|
{
|
|
11718
11735
|
id: "operation-mode-manual",
|
|
11719
11736
|
icon: ib,
|
|
11720
|
-
color:
|
|
11721
|
-
title:
|
|
11722
|
-
name:
|
|
11737
|
+
color: o.palette.warning.main,
|
|
11738
|
+
title: r("SafetyBar.OperationMode.ti"),
|
|
11739
|
+
name: r("SafetyBar.OperationMode.Manual.lb"),
|
|
11723
11740
|
explanation: /* @__PURE__ */ m.jsx(nt, { i18nKey: "SafetyBar.OperationMode.Manual.Explanation.lb", children: "The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully." }),
|
|
11724
|
-
literalValue: e
|
|
11741
|
+
literalValue: e,
|
|
11742
|
+
anchorOrigin: t,
|
|
11743
|
+
transformOrigin: n
|
|
11725
11744
|
}
|
|
11726
11745
|
);
|
|
11727
11746
|
default:
|
|
@@ -11730,11 +11749,13 @@ const qy = ({
|
|
|
11730
11749
|
{
|
|
11731
11750
|
id: "operation-mode-error",
|
|
11732
11751
|
icon: rb,
|
|
11733
|
-
color:
|
|
11734
|
-
title:
|
|
11735
|
-
name:
|
|
11752
|
+
color: o.palette.warning.main,
|
|
11753
|
+
title: r("SafetyBar.OperationMode.ti"),
|
|
11754
|
+
name: r("SafetyBar.OperationMode.Error.lb"),
|
|
11736
11755
|
explanation: /* @__PURE__ */ m.jsx(nt, { i18nKey: "SafetyBar.OperationMode.Error.Explanation.lb", children: "The robot controller has entered an unexpected operation mode. Motion group movement may not be possible." }),
|
|
11737
|
-
literalValue: e
|
|
11756
|
+
literalValue: e,
|
|
11757
|
+
anchorOrigin: t,
|
|
11758
|
+
transformOrigin: n
|
|
11738
11759
|
}
|
|
11739
11760
|
);
|
|
11740
11761
|
}
|
|
@@ -11760,8 +11781,12 @@ const qy = ({
|
|
|
11760
11781
|
titleId: t,
|
|
11761
11782
|
...n
|
|
11762
11783
|
}, r) => /* @__PURE__ */ C.createElement("svg", { width: 24, height: 24, xmlns: "http://www.w3.org/2000/svg", ref: r, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ C.createElement("title", { id: t }, e) : null, /* @__PURE__ */ C.createElement("path", { d: "M9 16h6c.283 0 .52-.096.713-.287A.968.968 0 0 0 16 15V9a.967.967 0 0 0-.287-.713A.968.968 0 0 0 15 8H9a.968.968 0 0 0-.713.287A.968.968 0 0 0 8 9v6c0 .283.096.52.287.713.192.191.43.287.713.287Zm3 6a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z" })), mb = we(hb), yb = Ae(
|
|
11763
|
-
({
|
|
11764
|
-
|
|
11784
|
+
({
|
|
11785
|
+
safetyState: e,
|
|
11786
|
+
anchorOrigin: t,
|
|
11787
|
+
transformOrigin: n
|
|
11788
|
+
}) => {
|
|
11789
|
+
const { t: r } = kt(), o = We();
|
|
11765
11790
|
switch (e) {
|
|
11766
11791
|
// Normal state, robot can move
|
|
11767
11792
|
case "SAFETY_STATE_NORMAL":
|
|
@@ -11769,11 +11794,13 @@ const qy = ({
|
|
|
11769
11794
|
ot,
|
|
11770
11795
|
{
|
|
11771
11796
|
id: "safety-state-normal",
|
|
11772
|
-
title:
|
|
11773
|
-
name:
|
|
11797
|
+
title: r("SafetyBar.SafetyState.ti"),
|
|
11798
|
+
name: r("SafetyBar.SafetyState.Normal.lb"),
|
|
11774
11799
|
icon: gb,
|
|
11775
11800
|
color: "rgba(255, 255, 255, 0.57)",
|
|
11776
|
-
explanation: /* @__PURE__ */ m.jsx(nt, { i18nKey: "SafetyBar.SafetyState.Normal.Explanation.lb", children: "The robot controller is in a normal safety state. Movement is not prevented by this state." })
|
|
11801
|
+
explanation: /* @__PURE__ */ m.jsx(nt, { i18nKey: "SafetyBar.SafetyState.Normal.Explanation.lb", children: "The robot controller is in a normal safety state. Movement is not prevented by this state." }),
|
|
11802
|
+
anchorOrigin: t,
|
|
11803
|
+
transformOrigin: n
|
|
11777
11804
|
}
|
|
11778
11805
|
);
|
|
11779
11806
|
// Estop
|
|
@@ -11783,12 +11810,14 @@ const qy = ({
|
|
|
11783
11810
|
ot,
|
|
11784
11811
|
{
|
|
11785
11812
|
id: "safety-state-estop",
|
|
11786
|
-
title:
|
|
11787
|
-
name:
|
|
11813
|
+
title: r("SafetyBar.SafetyState.ti"),
|
|
11814
|
+
name: r("SafetyBar.SafetyState.Estop.lb"),
|
|
11788
11815
|
icon: ub,
|
|
11789
|
-
color:
|
|
11816
|
+
color: o.palette.error.main,
|
|
11790
11817
|
explanation: /* @__PURE__ */ m.jsx(nt, { i18nKey: "SafetyBar.StopState.Estop.Explanation.lb", children: "An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released." }),
|
|
11791
|
-
literalValue: e
|
|
11818
|
+
literalValue: e,
|
|
11819
|
+
anchorOrigin: t,
|
|
11820
|
+
transformOrigin: n
|
|
11792
11821
|
}
|
|
11793
11822
|
);
|
|
11794
11823
|
// General stop
|
|
@@ -11802,11 +11831,13 @@ const qy = ({
|
|
|
11802
11831
|
{
|
|
11803
11832
|
id: "safety-state-stop",
|
|
11804
11833
|
icon: mb,
|
|
11805
|
-
title:
|
|
11806
|
-
name:
|
|
11807
|
-
color:
|
|
11834
|
+
title: r("SafetyBar.SafetyState.ti"),
|
|
11835
|
+
name: r("SafetyBar.SafetyState.Stop.lb"),
|
|
11836
|
+
color: o.palette.warning.main,
|
|
11808
11837
|
explanation: /* @__PURE__ */ m.jsx(nt, { i18nKey: "SafetyBar.SafetyState.Stop.Explanation.lb", children: "The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved." }),
|
|
11809
|
-
literalValue: e
|
|
11838
|
+
literalValue: e,
|
|
11839
|
+
anchorOrigin: t,
|
|
11840
|
+
transformOrigin: n
|
|
11810
11841
|
}
|
|
11811
11842
|
);
|
|
11812
11843
|
// Manual action required
|
|
@@ -11821,11 +11852,13 @@ const qy = ({
|
|
|
11821
11852
|
{
|
|
11822
11853
|
id: "safety-state-manual-action-required",
|
|
11823
11854
|
icon: db,
|
|
11824
|
-
color:
|
|
11825
|
-
title:
|
|
11826
|
-
name:
|
|
11855
|
+
color: o.palette.warning.main,
|
|
11856
|
+
title: r("SafetyBar.SafetyState.ti"),
|
|
11857
|
+
name: r("SafetyBar.SafetyState.ManualActionRequired.lb"),
|
|
11827
11858
|
explanation: /* @__PURE__ */ m.jsx(nt, { i18nKey: "SafetyBar.SafetyState.ManualActionRequired.Explanation.lb", children: "The robot controller has entered a safety state requiring manual action to resolve." }),
|
|
11828
|
-
literalValue: e
|
|
11859
|
+
literalValue: e,
|
|
11860
|
+
anchorOrigin: t,
|
|
11861
|
+
transformOrigin: n
|
|
11829
11862
|
}
|
|
11830
11863
|
);
|
|
11831
11864
|
// Error
|
|
@@ -11836,11 +11869,13 @@ const qy = ({
|
|
|
11836
11869
|
{
|
|
11837
11870
|
id: "safety-state-error",
|
|
11838
11871
|
icon: lb,
|
|
11839
|
-
color:
|
|
11840
|
-
title:
|
|
11841
|
-
name:
|
|
11872
|
+
color: o.palette.error.main,
|
|
11873
|
+
title: r("SafetyBar.SafetyState.ti"),
|
|
11874
|
+
name: r("SafetyBar.SafetyState.Error.lb"),
|
|
11842
11875
|
explanation: /* @__PURE__ */ m.jsx(nt, { i18nKey: "SafetyBar.SafetyState.Error.Explanation.lb", children: "The robot controller has entered an unexpected safety state." }),
|
|
11843
|
-
literalValue: e
|
|
11876
|
+
literalValue: e,
|
|
11877
|
+
anchorOrigin: t,
|
|
11878
|
+
transformOrigin: n
|
|
11844
11879
|
}
|
|
11845
11880
|
);
|
|
11846
11881
|
default:
|
|
@@ -11856,15 +11891,31 @@ const qy = ({
|
|
|
11856
11891
|
alignItems: "center",
|
|
11857
11892
|
sx: { height: "24px" },
|
|
11858
11893
|
children: [
|
|
11859
|
-
/* @__PURE__ */ m.jsx(
|
|
11894
|
+
/* @__PURE__ */ m.jsx(
|
|
11895
|
+
yb,
|
|
11896
|
+
{
|
|
11897
|
+
safetyState: e.safetyState,
|
|
11898
|
+
anchorOrigin: e.anchorOrigin,
|
|
11899
|
+
transformOrigin: e.transformOrigin
|
|
11900
|
+
}
|
|
11901
|
+
),
|
|
11860
11902
|
/* @__PURE__ */ m.jsx(gn, { orientation: "vertical", flexItem: !0 }),
|
|
11861
|
-
/* @__PURE__ */ m.jsx(
|
|
11903
|
+
/* @__PURE__ */ m.jsx(
|
|
11904
|
+
ab,
|
|
11905
|
+
{
|
|
11906
|
+
operationMode: e.operationMode,
|
|
11907
|
+
anchorOrigin: e.anchorOrigin,
|
|
11908
|
+
transformOrigin: e.transformOrigin
|
|
11909
|
+
}
|
|
11910
|
+
),
|
|
11862
11911
|
/* @__PURE__ */ m.jsx(gn, { orientation: "vertical", flexItem: !0 }),
|
|
11863
11912
|
/* @__PURE__ */ m.jsx(
|
|
11864
11913
|
Qy,
|
|
11865
11914
|
{
|
|
11866
11915
|
isVirtual: e.isVirtual,
|
|
11867
|
-
motionGroupId: e.motionGroupId
|
|
11916
|
+
motionGroupId: e.motionGroupId,
|
|
11917
|
+
anchorOrigin: e.anchorOrigin,
|
|
11918
|
+
transformOrigin: e.transformOrigin
|
|
11868
11919
|
}
|
|
11869
11920
|
)
|
|
11870
11921
|
]
|