@wandelbots/wandelbots-js-react-components 5.9.0 → 5.9.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/chunks/{theming-BQZdGyPT.cjs → theming-CIegg9xA.cjs} +1 -1
- package/dist/chunks/{theming-D8-Jb385.js → theming-DcUe13q3.js} +147 -136
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/themes/themeTypes.d.ts +0 -1
- package/dist/themes/theming.d.ts +4 -3
- package/package.json +2 -2
|
@@ -21,7 +21,7 @@ import ce from "@mui/icons-material/Clear";
|
|
|
21
21
|
import de from "@mui/icons-material/FilterList";
|
|
22
22
|
import jt from "@mui/icons-material/Search";
|
|
23
23
|
import U from "@mui/material/Divider";
|
|
24
|
-
import { useGridApiRef as ue, DataGrid as ge, Toolbar as pe, FilterPanelTrigger as me, ToolbarButton as gt, QuickFilter as he, QuickFilterTrigger as fe, QuickFilterControl as
|
|
24
|
+
import { useGridApiRef as ue, DataGrid as ge, Toolbar as pe, FilterPanelTrigger as me, ToolbarButton as gt, QuickFilter as he, QuickFilterTrigger as fe, QuickFilterControl as be, QuickFilterClear as xe } from "@mui/x-data-grid";
|
|
25
25
|
import ye from "@mui/icons-material/OpenWith";
|
|
26
26
|
import Se from "@mui/icons-material/Share";
|
|
27
27
|
import _ from "@mui/material/Stack";
|
|
@@ -29,7 +29,7 @@ import Nt from "@mui/material/Tab";
|
|
|
29
29
|
import Wt from "@mui/material/Tabs";
|
|
30
30
|
import { JointTypeEnum as G, Nova as ve, poseToWandelscriptString as Ce } from "@wandelbots/nova-js/v2";
|
|
31
31
|
import { lowerFirst as we, countBy as Te, isString as Ie } from "lodash-es";
|
|
32
|
-
import { runInAction as D, makeAutoObservable as
|
|
32
|
+
import { runInAction as D, makeAutoObservable as bt, when as lt, autorun as Et, makeObservable as Me, action as Pt, observable as ke } from "mobx";
|
|
33
33
|
import { radiansToDegrees as Gt, tryParseJson as W, XYZ_TO_VECTOR as ot, degreesToRadians as Re } from "@wandelbots/nova-js";
|
|
34
34
|
import { Vector3 as pt } from "three/src/math/Vector3.js";
|
|
35
35
|
import Ut from "@mui/material/CircularProgress";
|
|
@@ -277,7 +277,7 @@ const mo = dt(oe, {
|
|
|
277
277
|
}
|
|
278
278
|
const c = [];
|
|
279
279
|
return o > 0 && c.push(`${o}d`), r > 0 && c.push(`${r}h`), i > 0 && c.push(`${i}m`), (n > 0 || c.length === 0) && c.push(`${n}s`), c.join(" ");
|
|
280
|
-
},
|
|
280
|
+
}, bo = (e, t, o) => e === "countdown" && o !== null ? Math.min(100, t / o * 100) : e === "measuring" ? t / 60 % 1 * 100 : 0, xo = ({
|
|
281
281
|
timerState: e,
|
|
282
282
|
animationState: t,
|
|
283
283
|
hasError: o,
|
|
@@ -288,9 +288,9 @@ const mo = dt(oe, {
|
|
|
288
288
|
showErrorAnimation: g,
|
|
289
289
|
showPauseAnimation: p,
|
|
290
290
|
showPulsatingText: u,
|
|
291
|
-
pulsatingFinished:
|
|
291
|
+
pulsatingFinished: b,
|
|
292
292
|
showLabels: y,
|
|
293
|
-
showMainText:
|
|
293
|
+
showMainText: x,
|
|
294
294
|
showIdlePulsating: h,
|
|
295
295
|
idleDotsCount: v
|
|
296
296
|
} = t;
|
|
@@ -384,14 +384,14 @@ const mo = dt(oe, {
|
|
|
384
384
|
variant: "body2",
|
|
385
385
|
sx: {
|
|
386
386
|
fontSize: "12px",
|
|
387
|
-
color: s === "measured" && (u ||
|
|
387
|
+
color: s === "measured" && (u || b) ? c.palette.success.main : c.palette.text.secondary,
|
|
388
388
|
transition: "color 0.8s ease-in-out"
|
|
389
389
|
},
|
|
390
390
|
children: /* @__PURE__ */ a(
|
|
391
391
|
"span",
|
|
392
392
|
{
|
|
393
393
|
style: {
|
|
394
|
-
opacity: s === "measured" &&
|
|
394
|
+
opacity: s === "measured" && b ? u ? 1 : 0.6 : 1,
|
|
395
395
|
transition: "opacity 2s ease-in-out"
|
|
396
396
|
},
|
|
397
397
|
children: s === "measuring" || s === "measured" ? i("CycleTimer.CycleTime.lb", "Cycle Time") : s === "countdown" ? i("CycleTimer.RemainingTime.lb", "Remaining Time") : ""
|
|
@@ -418,7 +418,7 @@ const mo = dt(oe, {
|
|
|
418
418
|
/* @__PURE__ */ a(
|
|
419
419
|
H,
|
|
420
420
|
{
|
|
421
|
-
in:
|
|
421
|
+
in: x && s === "idle" && !o,
|
|
422
422
|
timeout: 200,
|
|
423
423
|
children: /* @__PURE__ */ S(
|
|
424
424
|
R,
|
|
@@ -470,7 +470,7 @@ const mo = dt(oe, {
|
|
|
470
470
|
)
|
|
471
471
|
}
|
|
472
472
|
),
|
|
473
|
-
/* @__PURE__ */ a(H, { in:
|
|
473
|
+
/* @__PURE__ */ a(H, { in: x && o, timeout: 200, children: /* @__PURE__ */ a(
|
|
474
474
|
R,
|
|
475
475
|
{
|
|
476
476
|
variant: "h3",
|
|
@@ -487,7 +487,7 @@ const mo = dt(oe, {
|
|
|
487
487
|
/* @__PURE__ */ a(
|
|
488
488
|
H,
|
|
489
489
|
{
|
|
490
|
-
in:
|
|
490
|
+
in: x && !o && s !== "idle" && s !== "success",
|
|
491
491
|
timeout: 300,
|
|
492
492
|
children: /* @__PURE__ */ a(
|
|
493
493
|
R,
|
|
@@ -539,14 +539,14 @@ const mo = dt(oe, {
|
|
|
539
539
|
variant: "body2",
|
|
540
540
|
sx: {
|
|
541
541
|
fontSize: "12px",
|
|
542
|
-
color: s === "measured" && (u ||
|
|
542
|
+
color: s === "measured" && (u || b) ? c.palette.success.main : c.palette.text.secondary,
|
|
543
543
|
transition: "color 0.8s ease-in-out"
|
|
544
544
|
},
|
|
545
545
|
children: /* @__PURE__ */ a(
|
|
546
546
|
"span",
|
|
547
547
|
{
|
|
548
548
|
style: {
|
|
549
|
-
opacity: s === "measured" &&
|
|
549
|
+
opacity: s === "measured" && b ? u ? 1 : 0.6 : 1,
|
|
550
550
|
transition: "opacity 2s ease-in-out"
|
|
551
551
|
},
|
|
552
552
|
children: s === "measuring" ? i("CycleTimer.Measuring.lb", "measuring...") : s === "measured" ? i("CycleTimer.Determined.lb", "determined") : s === "countdown" && d !== null ? i("CycleTimer.OfTime.lb", {
|
|
@@ -577,9 +577,9 @@ const mo = dt(oe, {
|
|
|
577
577
|
showErrorAnimation: g,
|
|
578
578
|
showPauseAnimation: p,
|
|
579
579
|
showPulsatingText: u,
|
|
580
|
-
pulsatingFinished:
|
|
580
|
+
pulsatingFinished: b,
|
|
581
581
|
showIdlePulsating: y,
|
|
582
|
-
idleDotsCount:
|
|
582
|
+
idleDotsCount: x
|
|
583
583
|
} = t;
|
|
584
584
|
return r && l === "idle" ? /* @__PURE__ */ a(
|
|
585
585
|
T,
|
|
@@ -643,9 +643,9 @@ const mo = dt(oe, {
|
|
|
643
643
|
cy: "10",
|
|
644
644
|
r: "8",
|
|
645
645
|
fill: "none",
|
|
646
|
-
stroke: o ? s.palette.error.light : l === "measured" ? u ||
|
|
646
|
+
stroke: o ? s.palette.error.light : l === "measured" ? u || b ? s.palette.success.main : s.palette.text.secondary : s.palette.success.main,
|
|
647
647
|
strokeWidth: "2",
|
|
648
|
-
opacity: l === "measured" &&
|
|
648
|
+
opacity: l === "measured" && b ? u ? 1 : 0.6 : 0.3,
|
|
649
649
|
style: {
|
|
650
650
|
transition: "stroke 0.8s ease-in-out, opacity 2s ease-in-out"
|
|
651
651
|
}
|
|
@@ -658,13 +658,13 @@ const mo = dt(oe, {
|
|
|
658
658
|
cy: "10",
|
|
659
659
|
r: "8",
|
|
660
660
|
fill: "none",
|
|
661
|
-
stroke: o ? s.palette.error.light : l === "measured" ? u ||
|
|
661
|
+
stroke: o ? s.palette.error.light : l === "measured" ? u || b ? s.palette.success.main : s.palette.text.secondary : s.palette.success.main,
|
|
662
662
|
strokeWidth: "2",
|
|
663
663
|
strokeLinecap: "round",
|
|
664
664
|
strokeDasharray: `${2 * Math.PI * 8}`,
|
|
665
665
|
strokeDashoffset: `${2 * Math.PI * 8 * (1 - (l === "idle" ? 0 : e.currentProgress) / 100)}`,
|
|
666
666
|
style: {
|
|
667
|
-
opacity: l === "measured" &&
|
|
667
|
+
opacity: l === "measured" && b ? u ? 1 : 0.6 : 1,
|
|
668
668
|
transition: "stroke-dashoffset 0.1s ease-out, stroke 0.8s ease-in-out, opacity 2s ease-in-out"
|
|
669
669
|
}
|
|
670
670
|
}
|
|
@@ -679,11 +679,11 @@ const mo = dt(oe, {
|
|
|
679
679
|
{
|
|
680
680
|
variant: "body2",
|
|
681
681
|
sx: {
|
|
682
|
-
color: o ? s.palette.error.light : l === "idle" ? s.palette.text.secondary : l === "measured" ? u ||
|
|
682
|
+
color: o ? s.palette.error.light : l === "idle" ? s.palette.text.secondary : l === "measured" ? u || b ? s.palette.success.main : s.palette.text.secondary : s.palette.text.primary,
|
|
683
683
|
fontSize: "14px",
|
|
684
684
|
lineHeight: "normal",
|
|
685
685
|
letterSpacing: "normal",
|
|
686
|
-
opacity: l === "idle" ? y ? 1 : 0.6 : l === "measured" &&
|
|
686
|
+
opacity: l === "idle" ? y ? 1 : 0.6 : l === "measured" && b ? u ? 1 : 0.6 : 1,
|
|
687
687
|
transition: "color 0.8s ease-in-out, font-size 0.3s ease-out, opacity 2s ease-in-out"
|
|
688
688
|
},
|
|
689
689
|
children: o ? n("CycleTimer.Error.lb", "Error") : l === "idle" ? /* @__PURE__ */ S(nt, { children: [
|
|
@@ -696,7 +696,7 @@ const mo = dt(oe, {
|
|
|
696
696
|
width: "18px",
|
|
697
697
|
textAlign: "left"
|
|
698
698
|
},
|
|
699
|
-
children: ".".repeat(
|
|
699
|
+
children: ".".repeat(x)
|
|
700
700
|
}
|
|
701
701
|
)
|
|
702
702
|
] }) : l === "measuring" ? r ? N(d, c.language) : `${N(d, c.language)} / ${n("CycleTimer.Measuring.lb", "measuring...")}` : l === "measured" ? r ? N(d, c.language) : `${N(d, c.language)} / ${n("CycleTimer.Determined.lb", "determined")}` : l === "countdown" && m !== null ? r ? N(d, c.language) : `${N(d, c.language)} / ${n("CycleTimer.Time.lb", { time: N(m, c.language) })}` : N(d, c.language)
|
|
@@ -756,7 +756,7 @@ const mo = dt(oe, {
|
|
|
756
756
|
showPulsatingText: !1,
|
|
757
757
|
pulsatingFinished: !1
|
|
758
758
|
})), c.current = 0;
|
|
759
|
-
}, []),
|
|
759
|
+
}, []), b = P(() => {
|
|
760
760
|
t((f) => ({
|
|
761
761
|
...f,
|
|
762
762
|
showIdlePulsating: !0
|
|
@@ -778,7 +778,7 @@ const mo = dt(oe, {
|
|
|
778
778
|
showIdlePulsating: !1,
|
|
779
779
|
idleDotsCount: 0
|
|
780
780
|
}));
|
|
781
|
-
}, []),
|
|
781
|
+
}, []), x = P(() => {
|
|
782
782
|
t((f) => ({
|
|
783
783
|
...f,
|
|
784
784
|
showLabels: !1,
|
|
@@ -806,9 +806,9 @@ const mo = dt(oe, {
|
|
|
806
806
|
clearErrorAnimation: g,
|
|
807
807
|
startPulsatingAnimation: p,
|
|
808
808
|
stopPulsatingAnimation: u,
|
|
809
|
-
startIdleAnimations:
|
|
809
|
+
startIdleAnimations: b,
|
|
810
810
|
stopIdleAnimations: y,
|
|
811
|
-
triggerFadeTransition:
|
|
811
|
+
triggerFadeTransition: x,
|
|
812
812
|
setInitialAnimationState: h,
|
|
813
813
|
cleanup: v
|
|
814
814
|
};
|
|
@@ -836,7 +836,7 @@ const mo = dt(oe, {
|
|
|
836
836
|
onChange: ([C]) => {
|
|
837
837
|
d((I) => ({ ...I, currentProgress: C }));
|
|
838
838
|
}
|
|
839
|
-
}),
|
|
839
|
+
}), b = P(() => {
|
|
840
840
|
d((C) => ({
|
|
841
841
|
...C,
|
|
842
842
|
currentState: "idle",
|
|
@@ -861,7 +861,7 @@ const mo = dt(oe, {
|
|
|
861
861
|
})), p.current = 0, u.setImmediate([I]), e ? (g.current = Date.now() - C * 1e3, d((M) => ({ ...M, isRunning: !0 }))) : g.current = null;
|
|
862
862
|
},
|
|
863
863
|
[e, u]
|
|
864
|
-
),
|
|
864
|
+
), x = P(
|
|
865
865
|
(C, I = 0) => {
|
|
866
866
|
d((k) => ({ ...k, isRunning: !1 })), g.current = null, d((k) => ({
|
|
867
867
|
...k,
|
|
@@ -892,7 +892,7 @@ const mo = dt(oe, {
|
|
|
892
892
|
if (g.current && l.isRunning) {
|
|
893
893
|
const I = Date.now() - g.current;
|
|
894
894
|
p.current += I;
|
|
895
|
-
const M = p.current / 1e3, j =
|
|
895
|
+
const M = p.current / 1e3, j = bo(
|
|
896
896
|
l.currentState,
|
|
897
897
|
M,
|
|
898
898
|
l.maxTime
|
|
@@ -986,9 +986,9 @@ const mo = dt(oe, {
|
|
|
986
986
|
}, [u]), {
|
|
987
987
|
timerState: l,
|
|
988
988
|
controls: {
|
|
989
|
-
startNewCycle:
|
|
989
|
+
startNewCycle: x,
|
|
990
990
|
startMeasuring: y,
|
|
991
|
-
setIdle:
|
|
991
|
+
setIdle: b,
|
|
992
992
|
completeMeasuring: h,
|
|
993
993
|
pause: v,
|
|
994
994
|
resume: f,
|
|
@@ -1013,9 +1013,9 @@ const mo = dt(oe, {
|
|
|
1013
1013
|
triggerErrorAnimation: g,
|
|
1014
1014
|
clearErrorAnimation: p,
|
|
1015
1015
|
startPulsatingAnimation: u,
|
|
1016
|
-
stopPulsatingAnimation:
|
|
1016
|
+
stopPulsatingAnimation: b,
|
|
1017
1017
|
startIdleAnimations: y,
|
|
1018
|
-
stopIdleAnimations:
|
|
1018
|
+
stopIdleAnimations: x,
|
|
1019
1019
|
triggerFadeTransition: h,
|
|
1020
1020
|
setInitialAnimationState: v,
|
|
1021
1021
|
cleanup: f
|
|
@@ -1031,11 +1031,11 @@ const mo = dt(oe, {
|
|
|
1031
1031
|
});
|
|
1032
1032
|
return F(() => {
|
|
1033
1033
|
const I = l.current;
|
|
1034
|
-
l.current !== void 0 && I !== w.currentState ? (I === "measured" &&
|
|
1034
|
+
l.current !== void 0 && I !== w.currentState ? (I === "measured" && b(), I === "idle" && x(), h()) : v(), w.currentState === "idle" && y(), l.current = w.currentState;
|
|
1035
1035
|
}, [
|
|
1036
1036
|
w.currentState,
|
|
1037
|
-
x,
|
|
1038
1037
|
b,
|
|
1038
|
+
x,
|
|
1039
1039
|
y,
|
|
1040
1040
|
h,
|
|
1041
1041
|
v
|
|
@@ -1057,7 +1057,7 @@ const mo = dt(oe, {
|
|
|
1057
1057
|
className: c
|
|
1058
1058
|
}
|
|
1059
1059
|
) : /* @__PURE__ */ a(
|
|
1060
|
-
|
|
1060
|
+
xo,
|
|
1061
1061
|
{
|
|
1062
1062
|
timerState: w,
|
|
1063
1063
|
animationState: d,
|
|
@@ -1085,19 +1085,19 @@ const mo = dt(oe, {
|
|
|
1085
1085
|
sx: p
|
|
1086
1086
|
}) => {
|
|
1087
1087
|
var j;
|
|
1088
|
-
const u = B(),
|
|
1088
|
+
const u = B(), b = ue(), y = A(null), [x, h] = $(null), v = st(() => e.map(o), [e, o]);
|
|
1089
1089
|
F(() => {
|
|
1090
|
-
|
|
1090
|
+
b.current && v.length > 0 && b.current.autosizeColumns({
|
|
1091
1091
|
includeOutliers: !0,
|
|
1092
1092
|
includeHeaders: !0,
|
|
1093
1093
|
expand: !0,
|
|
1094
1094
|
columns: t.map((k) => k.field)
|
|
1095
1095
|
});
|
|
1096
|
-
}, [v, t,
|
|
1097
|
-
if (!y.current || !
|
|
1096
|
+
}, [v, t, b]), F(() => {
|
|
1097
|
+
if (!y.current || !b.current) return;
|
|
1098
1098
|
const k = new ResizeObserver(() => {
|
|
1099
1099
|
setTimeout(() => {
|
|
1100
|
-
|
|
1100
|
+
b.current && v.length > 0 && b.current.autosizeColumns({
|
|
1101
1101
|
includeOutliers: !0,
|
|
1102
1102
|
includeHeaders: !0,
|
|
1103
1103
|
expand: !0,
|
|
@@ -1108,18 +1108,18 @@ const mo = dt(oe, {
|
|
|
1108
1108
|
return k.observe(y.current), () => {
|
|
1109
1109
|
k.disconnect();
|
|
1110
1110
|
};
|
|
1111
|
-
}, [
|
|
1111
|
+
}, [b, v.length, t]);
|
|
1112
1112
|
const f = st(() => {
|
|
1113
1113
|
if (i !== void 0)
|
|
1114
1114
|
return i;
|
|
1115
|
-
if (
|
|
1116
|
-
return
|
|
1115
|
+
if (x !== null)
|
|
1116
|
+
return x;
|
|
1117
1117
|
if (g && e.length > 0) {
|
|
1118
1118
|
const k = e[0];
|
|
1119
1119
|
return h(k), k;
|
|
1120
1120
|
}
|
|
1121
1121
|
return null;
|
|
1122
|
-
}, [g, e, i,
|
|
1122
|
+
}, [g, e, i, x]), w = (k) => {
|
|
1123
1123
|
const E = e.find((L) => o(L).id === k.id);
|
|
1124
1124
|
E && (i === void 0 && h(E), r && r(E, k));
|
|
1125
1125
|
}, C = st(() => !f || !n ? null : n(f), [f, n]);
|
|
@@ -1308,12 +1308,12 @@ const mo = dt(oe, {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
1310
|
),
|
|
1311
|
-
/* @__PURE__ */ a(
|
|
1311
|
+
/* @__PURE__ */ a(be, { placeholder: l })
|
|
1312
1312
|
]
|
|
1313
1313
|
}
|
|
1314
1314
|
),
|
|
1315
1315
|
E.expanded && E.value !== "" && /* @__PURE__ */ a(
|
|
1316
|
-
|
|
1316
|
+
xe,
|
|
1317
1317
|
{
|
|
1318
1318
|
render: /* @__PURE__ */ a(
|
|
1319
1319
|
T,
|
|
@@ -1402,7 +1402,7 @@ const mo = dt(oe, {
|
|
|
1402
1402
|
children: /* @__PURE__ */ a(
|
|
1403
1403
|
ge,
|
|
1404
1404
|
{
|
|
1405
|
-
apiRef:
|
|
1405
|
+
apiRef: b,
|
|
1406
1406
|
rows: v,
|
|
1407
1407
|
columns: t,
|
|
1408
1408
|
onRowClick: w,
|
|
@@ -1622,7 +1622,7 @@ const At = z(
|
|
|
1622
1622
|
},
|
|
1623
1623
|
labelColor: "#000"
|
|
1624
1624
|
});
|
|
1625
|
-
const u = g ? (f = e.buttonBackgroundColor) == null ? void 0 : f.pressed : e.borderColor,
|
|
1625
|
+
const u = g ? (f = e.buttonBackgroundColor) == null ? void 0 : f.pressed : e.borderColor, b = {
|
|
1626
1626
|
width: "55px",
|
|
1627
1627
|
color: e.color,
|
|
1628
1628
|
path: { fill: e.color },
|
|
@@ -1632,7 +1632,7 @@ const At = z(
|
|
|
1632
1632
|
pointerEvents: "none"
|
|
1633
1633
|
}
|
|
1634
1634
|
}, y = {
|
|
1635
|
-
...
|
|
1635
|
+
...b,
|
|
1636
1636
|
backgroundColor: (w = e.buttonBackgroundColor) == null ? void 0 : w.default,
|
|
1637
1637
|
":hover": {
|
|
1638
1638
|
backgroundColor: (C = e.buttonBackgroundColor) == null ? void 0 : C.hovered
|
|
@@ -1646,8 +1646,8 @@ const At = z(
|
|
|
1646
1646
|
backgroundColor: (M = e.buttonBackgroundColor) == null ? void 0 : M.disabled,
|
|
1647
1647
|
"svg path": { fill: l.palette.action.disabled }
|
|
1648
1648
|
}
|
|
1649
|
-
},
|
|
1650
|
-
...
|
|
1649
|
+
}, x = {
|
|
1650
|
+
...b,
|
|
1651
1651
|
backgroundColor: (j = e.buttonBackgroundColor) == null ? void 0 : j.pressed,
|
|
1652
1652
|
color: e.backgroundColor,
|
|
1653
1653
|
path: { fill: e.backgroundColor },
|
|
@@ -1673,7 +1673,7 @@ const At = z(
|
|
|
1673
1673
|
onPointerOut: v,
|
|
1674
1674
|
size: "large",
|
|
1675
1675
|
sx: {
|
|
1676
|
-
...g === "-" ?
|
|
1676
|
+
...g === "-" ? x : y,
|
|
1677
1677
|
borderRadius: "16px 0px 0px 16px",
|
|
1678
1678
|
borderLeft: `2px solid ${u ?? "#fff"}`,
|
|
1679
1679
|
borderBottom: `2px solid ${u ?? "#fff"}`,
|
|
@@ -1745,7 +1745,7 @@ const At = z(
|
|
|
1745
1745
|
onPointerOut: v,
|
|
1746
1746
|
size: "large",
|
|
1747
1747
|
sx: {
|
|
1748
|
-
...g === "+" ?
|
|
1748
|
+
...g === "+" ? x : y,
|
|
1749
1749
|
borderRadius: "0px 16px 16px 0px",
|
|
1750
1750
|
borderRight: `2px solid ${u ?? "#fff"}`,
|
|
1751
1751
|
borderBottom: `2px solid ${u ?? "#fff"}`,
|
|
@@ -1781,16 +1781,16 @@ const At = z(
|
|
|
1781
1781
|
stopJogging() {
|
|
1782
1782
|
this.activeJoggingDir = null, t();
|
|
1783
1783
|
}
|
|
1784
|
-
})),
|
|
1784
|
+
})), b = Ze(() => {
|
|
1785
1785
|
const O = i ? y(n()) : n();
|
|
1786
1786
|
(O === void 0 || d === void 0 || Math.abs(d - O) > 1e-9) && m(O);
|
|
1787
1787
|
}, 50);
|
|
1788
|
-
ft(
|
|
1788
|
+
ft(b);
|
|
1789
1789
|
function y(O) {
|
|
1790
1790
|
if (O !== void 0)
|
|
1791
1791
|
return Gt(O);
|
|
1792
1792
|
}
|
|
1793
|
-
function
|
|
1793
|
+
function x(O) {
|
|
1794
1794
|
O.button === 0 && u.startJogging("-");
|
|
1795
1795
|
}
|
|
1796
1796
|
function h(O) {
|
|
@@ -1851,7 +1851,7 @@ const At = z(
|
|
|
1851
1851
|
/* @__PURE__ */ a(
|
|
1852
1852
|
q,
|
|
1853
1853
|
{
|
|
1854
|
-
onPointerDown:
|
|
1854
|
+
onPointerDown: x,
|
|
1855
1855
|
onPointerUp: v,
|
|
1856
1856
|
onPointerOut: f,
|
|
1857
1857
|
disabled: c,
|
|
@@ -2042,7 +2042,7 @@ function ct(e) {
|
|
|
2042
2042
|
});
|
|
2043
2043
|
}
|
|
2044
2044
|
const Jt = 1e-4;
|
|
2045
|
-
class
|
|
2045
|
+
class xt {
|
|
2046
2046
|
constructor(t, o, r, i, n, c, s = "cell") {
|
|
2047
2047
|
this.controller = o, this.motionGroup = r, this.description = i, this.initialMotionState = n, this.motionStateSocket = c, this.cellId = s, this.nova = ct(t), this.rapidlyChangingMotionState = n, c.addEventListener("message", (l) => {
|
|
2048
2048
|
var p;
|
|
@@ -2062,8 +2062,8 @@ class bt {
|
|
|
2062
2062
|
d,
|
|
2063
2063
|
Jt
|
|
2064
2064
|
) || D(() => {
|
|
2065
|
-
var u,
|
|
2066
|
-
this.rapidlyChangingMotionState.tcp_pose == null ? this.rapidlyChangingMotionState.tcp_pose = d.tcp_pose : (u = d.tcp_pose) != null && u.orientation && ((
|
|
2065
|
+
var u, b, y;
|
|
2066
|
+
this.rapidlyChangingMotionState.tcp_pose == null ? this.rapidlyChangingMotionState.tcp_pose = d.tcp_pose : (u = d.tcp_pose) != null && u.orientation && ((b = d.tcp_pose) != null && b.position) && ((y = this.rapidlyChangingMotionState.tcp_pose) != null && y.orientation) ? this.rapidlyChangingMotionState.tcp_pose = {
|
|
2067
2067
|
position: d.tcp_pose.position,
|
|
2068
2068
|
orientation: Io(
|
|
2069
2069
|
d.tcp_pose.orientation,
|
|
@@ -2079,15 +2079,15 @@ class bt {
|
|
|
2079
2079
|
this.rapidlyChangingMotionState.standstill = d.standstill;
|
|
2080
2080
|
});
|
|
2081
2081
|
const m = this.rapidlyChangingMotionState.joint_limit_reached.limit_reached, g = d.joint_limit_reached.limit_reached;
|
|
2082
|
-
m.some((u,
|
|
2082
|
+
m.some((u, b) => u !== g[b]) && D(() => {
|
|
2083
2083
|
this.rapidlyChangingMotionState.joint_limit_reached = d.joint_limit_reached;
|
|
2084
2084
|
}), this.rapidlyChangingMotionState.execute !== d.execute && D(() => {
|
|
2085
2085
|
this.rapidlyChangingMotionState.execute = d.execute;
|
|
2086
2086
|
});
|
|
2087
|
-
}),
|
|
2087
|
+
}), bt(this);
|
|
2088
2088
|
}
|
|
2089
2089
|
static async open(t, o, r = {}) {
|
|
2090
|
-
var
|
|
2090
|
+
var b;
|
|
2091
2091
|
const i = ct(t), n = r.cellId ?? "cell", [c, s] = o.split("@"), l = await i.api.controller.getCurrentRobotControllerState(
|
|
2092
2092
|
n,
|
|
2093
2093
|
s
|
|
@@ -2100,7 +2100,7 @@ class bt {
|
|
|
2100
2100
|
);
|
|
2101
2101
|
const m = i.openReconnectingWebsocket(
|
|
2102
2102
|
`/cells/${n}/controllers/${s}/motion-groups/${o}/state-stream`
|
|
2103
|
-
), g = await m.firstMessage(), p = (
|
|
2103
|
+
), g = await m.firstMessage(), p = (b = W(g.data)) == null ? void 0 : b.result;
|
|
2104
2104
|
if (!p)
|
|
2105
2105
|
throw new Error(
|
|
2106
2106
|
`Unable to parse initial motion state message ${g.data}`
|
|
@@ -2115,7 +2115,7 @@ class bt {
|
|
|
2115
2115
|
s,
|
|
2116
2116
|
d.motion_group
|
|
2117
2117
|
);
|
|
2118
|
-
return new
|
|
2118
|
+
return new xt(
|
|
2119
2119
|
i,
|
|
2120
2120
|
l,
|
|
2121
2121
|
d,
|
|
@@ -2163,7 +2163,7 @@ class yt {
|
|
|
2163
2163
|
* @returns Promise resolving to initialized JoggerConnection instance
|
|
2164
2164
|
*/
|
|
2165
2165
|
static async open(t, o, r = {}) {
|
|
2166
|
-
const i = await
|
|
2166
|
+
const i = await xt.open(
|
|
2167
2167
|
t,
|
|
2168
2168
|
o,
|
|
2169
2169
|
{
|
|
@@ -2344,15 +2344,15 @@ class yt {
|
|
|
2344
2344
|
throw new Error(
|
|
2345
2345
|
"Current pose has no position, cannot perform translation"
|
|
2346
2346
|
);
|
|
2347
|
-
const
|
|
2348
|
-
|
|
2347
|
+
const x = [...t.position];
|
|
2348
|
+
x[ot[i]] += c.distanceMm * (n === "-" ? -1 : 1), s.push({
|
|
2349
2349
|
limits_override: {
|
|
2350
2350
|
tcp_velocity_limit: r
|
|
2351
2351
|
},
|
|
2352
2352
|
path: {
|
|
2353
2353
|
path_definition_name: "PathLine",
|
|
2354
2354
|
target_pose: {
|
|
2355
|
-
position:
|
|
2355
|
+
position: x,
|
|
2356
2356
|
orientation: t.orientation
|
|
2357
2357
|
}
|
|
2358
2358
|
}
|
|
@@ -2362,11 +2362,11 @@ class yt {
|
|
|
2362
2362
|
throw new Error(
|
|
2363
2363
|
"Current pose has no orientation, cannot perform rotation"
|
|
2364
2364
|
);
|
|
2365
|
-
const
|
|
2365
|
+
const x = new pt(
|
|
2366
2366
|
t.orientation[0],
|
|
2367
2367
|
t.orientation[1],
|
|
2368
2368
|
t.orientation[2]
|
|
2369
|
-
), h =
|
|
2369
|
+
), h = x.length(), v = x.clone().normalize(), f = c.distanceRads * (n === "-" ? -1 : 1), w = new pt(0, 0, 0);
|
|
2370
2370
|
w[i] = 1;
|
|
2371
2371
|
const C = Math.cos(0.5 * f) * Math.cos(0.5 * h), I = Math.sin(0.5 * f) * Math.sin(0.5 * h), M = Math.sin(0.5 * f) * Math.cos(0.5 * h), j = Math.cos(0.5 * f) * Math.sin(0.5 * h), k = w.dot(
|
|
2372
2372
|
v
|
|
@@ -2413,14 +2413,14 @@ class yt {
|
|
|
2413
2413
|
this.trajectorySocket && (console.warn("Trajectory jogging websocket already open; will close"), this.trajectorySocket.dispose()), this.trajectorySocket = this.nova.openReconnectingWebsocket(
|
|
2414
2414
|
`/cells/${this.cellId}/controllers/${this.motionStream.controllerId}/execution/trajectory`
|
|
2415
2415
|
);
|
|
2416
|
-
const p = (
|
|
2416
|
+
const p = (x) => {
|
|
2417
2417
|
var h;
|
|
2418
|
-
if (!
|
|
2418
|
+
if (!x || x.add_trajectory_error || x.message)
|
|
2419
2419
|
if (this.onError)
|
|
2420
|
-
this.onError(
|
|
2420
|
+
this.onError(x);
|
|
2421
2421
|
else
|
|
2422
2422
|
throw new Error(
|
|
2423
|
-
((h =
|
|
2423
|
+
((h = x == null ? void 0 : x.add_trajectory_error) == null ? void 0 : h.message) || (x == null ? void 0 : x.message) || "Failed to execute trajectory, unknown error"
|
|
2424
2424
|
);
|
|
2425
2425
|
if (!this.trajectorySocket)
|
|
2426
2426
|
throw new Error(
|
|
@@ -2431,28 +2431,28 @@ class yt {
|
|
|
2431
2431
|
direction: "DIRECTION_FORWARD"
|
|
2432
2432
|
});
|
|
2433
2433
|
}, u = async () => {
|
|
2434
|
-
var
|
|
2435
|
-
await lt(() => !this.motionStream.rapidlyChangingMotionState.standstill), await lt(() => this.motionStream.rapidlyChangingMotionState.standstill), (
|
|
2436
|
-
},
|
|
2437
|
-
var
|
|
2438
|
-
await lt(() => this.motionStream.rapidlyChangingMotionState.standstill), (
|
|
2439
|
-
}, y = async (
|
|
2440
|
-
if (
|
|
2434
|
+
var x;
|
|
2435
|
+
await lt(() => !this.motionStream.rapidlyChangingMotionState.standstill), await lt(() => this.motionStream.rapidlyChangingMotionState.standstill), (x = this.trajectorySocket) == null || x.dispose(), this.trajectorySocket = null;
|
|
2436
|
+
}, b = async () => {
|
|
2437
|
+
var x;
|
|
2438
|
+
await lt(() => this.motionStream.rapidlyChangingMotionState.standstill), (x = this.trajectorySocket) == null || x.dispose(), this.trajectorySocket = null;
|
|
2439
|
+
}, y = async (x) => {
|
|
2440
|
+
if (x != null && x.message)
|
|
2441
2441
|
if (this.onError) {
|
|
2442
|
-
this.onError(
|
|
2442
|
+
this.onError(x);
|
|
2443
2443
|
return;
|
|
2444
2444
|
} else
|
|
2445
2445
|
throw new Error(
|
|
2446
|
-
|
|
2446
|
+
x.message || "Failed to execute trajectory, unknown error"
|
|
2447
2447
|
);
|
|
2448
|
-
this.motionStream.rapidlyChangingMotionState.standstill ? await u() : await
|
|
2448
|
+
this.motionStream.rapidlyChangingMotionState.standstill ? await u() : await b();
|
|
2449
2449
|
};
|
|
2450
|
-
this.trajectorySocket.addEventListener("message", (
|
|
2450
|
+
this.trajectorySocket.addEventListener("message", (x) => {
|
|
2451
2451
|
var v, f;
|
|
2452
|
-
const h = W(
|
|
2452
|
+
const h = W(x.data);
|
|
2453
2453
|
if (!((v = h == null ? void 0 : h.result) != null && v.kind))
|
|
2454
2454
|
throw new Error(
|
|
2455
|
-
`Failed to execute trajectory: Received invalid message ${
|
|
2455
|
+
`Failed to execute trajectory: Received invalid message ${x.data}`
|
|
2456
2456
|
);
|
|
2457
2457
|
if (this.onBlocked && ((f = h.result.message) != null && f.includes(Ft))) {
|
|
2458
2458
|
this.onBlocked();
|
|
@@ -2662,7 +2662,7 @@ class St {
|
|
|
2662
2662
|
d.coordinate_system = "world";
|
|
2663
2663
|
break;
|
|
2664
2664
|
}
|
|
2665
|
-
this.selectedCoordSystemId = ((c = o[0]) == null ? void 0 : c.coordinate_system) || "world", this.selectedTcpId = t.motionStream.rapidlyChangingMotionState.tcp ?? "", this.tcpChangeInProgress = this.tcps.length > 0 && !this.selectedTcpId, this.inverseSolver = n, this.jointType = ((l = (s = r == null ? void 0 : r.dh_parameters) == null ? void 0 : s[0]) == null ? void 0 : l.type) ?? G.RevoluteJoint,
|
|
2665
|
+
this.selectedCoordSystemId = ((c = o[0]) == null ? void 0 : c.coordinate_system) || "world", this.selectedTcpId = t.motionStream.rapidlyChangingMotionState.tcp ?? "", this.tcpChangeInProgress = this.tcps.length > 0 && !this.selectedTcpId, this.inverseSolver = n, this.jointType = ((l = (s = r == null ? void 0 : r.dh_parameters) == null ? void 0 : s[0]) == null ? void 0 : l.type) ?? G.RevoluteJoint, bt(this, {}, { autoBind: !0 }), this.jogger.onBlocked = () => {
|
|
2666
2666
|
this.block();
|
|
2667
2667
|
}, this.loadFromLocalStorage(), this.disposers.push(Et(() => this.saveToLocalStorage())), this.disposers.push(
|
|
2668
2668
|
Et(() => {
|
|
@@ -3200,7 +3200,7 @@ const Xt = J(
|
|
|
3200
3200
|
(u === "translate" || u === "rotate") && e.setSelectedCartesianMotionType(u);
|
|
3201
3201
|
}
|
|
3202
3202
|
async function n(p, u) {
|
|
3203
|
-
const
|
|
3203
|
+
const b = await e.activate(), y = b.motionStream.rapidlyChangingMotionState.tcp_pose, x = b.motionStream.rapidlyChangingMotionState.joint_position;
|
|
3204
3204
|
y && await e.withMotionLock(async () => {
|
|
3205
3205
|
try {
|
|
3206
3206
|
e.setCurrentIncrementJog({
|
|
@@ -3208,7 +3208,7 @@ const Xt = J(
|
|
|
3208
3208
|
direction: p.direction
|
|
3209
3209
|
}), await e.jogger.runIncrementalCartesianMotion({
|
|
3210
3210
|
currentTcpPose: y,
|
|
3211
|
-
currentJoints:
|
|
3211
|
+
currentJoints: x,
|
|
3212
3212
|
coordSystemId: e.activeCoordSystemId,
|
|
3213
3213
|
velocityInRelevantUnits: e.selectedCartesianMotionType === "translate" ? e.translationVelocityMmPerSec : e.rotationVelocityRadsPerSec,
|
|
3214
3214
|
axis: p.axis,
|
|
@@ -3244,9 +3244,9 @@ const Xt = J(
|
|
|
3244
3244
|
async function s() {
|
|
3245
3245
|
e.isLocked || e.activeDiscreteIncrement || await e.deactivate();
|
|
3246
3246
|
}
|
|
3247
|
-
function l(p, u,
|
|
3248
|
-
var
|
|
3249
|
-
const y = (v = (h = (
|
|
3247
|
+
function l(p, u, b) {
|
|
3248
|
+
var x, h, v;
|
|
3249
|
+
const y = (v = (h = (x = b.componentsExt) == null ? void 0 : x.JoggingPanel) == null ? void 0 : h.JoggingCartesian) == null ? void 0 : v.Axis;
|
|
3250
3250
|
if (y)
|
|
3251
3251
|
return u === "translate" ? y[p] : y.CustomRotation ?? y[p];
|
|
3252
3252
|
}
|
|
@@ -3332,7 +3332,7 @@ const Xt = J(
|
|
|
3332
3332
|
}
|
|
3333
3333
|
),
|
|
3334
3334
|
e.selectedCartesianMotionType === "translate" && d.map((p) => {
|
|
3335
|
-
var u,
|
|
3335
|
+
var u, b;
|
|
3336
3336
|
return /* @__PURE__ */ a(
|
|
3337
3337
|
At,
|
|
3338
3338
|
{
|
|
@@ -3348,16 +3348,16 @@ const Xt = J(
|
|
|
3348
3348
|
{
|
|
3349
3349
|
sx: {
|
|
3350
3350
|
fontSize: "24px",
|
|
3351
|
-
color: ((
|
|
3351
|
+
color: ((b = p.colors) == null ? void 0 : b.labelColor) ?? r.palette.text.primary
|
|
3352
3352
|
},
|
|
3353
3353
|
children: p.id.toUpperCase()
|
|
3354
3354
|
}
|
|
3355
3355
|
)
|
|
3356
3356
|
] }),
|
|
3357
3357
|
getDisplayedValue: () => {
|
|
3358
|
-
var y,
|
|
3358
|
+
var y, x;
|
|
3359
3359
|
return m(
|
|
3360
|
-
((
|
|
3360
|
+
((x = (y = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : y.position) == null ? void 0 : x[ot[p.id]]) || 0
|
|
3361
3361
|
);
|
|
3362
3362
|
},
|
|
3363
3363
|
startJogging: (y) => c({
|
|
@@ -3371,7 +3371,7 @@ const Xt = J(
|
|
|
3371
3371
|
);
|
|
3372
3372
|
}),
|
|
3373
3373
|
e.selectedCartesianMotionType === "rotate" && d.map((p) => {
|
|
3374
|
-
var u,
|
|
3374
|
+
var u, b;
|
|
3375
3375
|
return /* @__PURE__ */ a(
|
|
3376
3376
|
At,
|
|
3377
3377
|
{
|
|
@@ -3387,16 +3387,16 @@ const Xt = J(
|
|
|
3387
3387
|
{
|
|
3388
3388
|
sx: {
|
|
3389
3389
|
fontSize: "24px",
|
|
3390
|
-
color: ((
|
|
3390
|
+
color: ((b = p.colors) == null ? void 0 : b.labelColor) ?? r.palette.text.primary
|
|
3391
3391
|
},
|
|
3392
3392
|
children: p.id.toUpperCase()
|
|
3393
3393
|
}
|
|
3394
3394
|
)
|
|
3395
3395
|
] }),
|
|
3396
3396
|
getDisplayedValue: () => {
|
|
3397
|
-
var y,
|
|
3397
|
+
var y, x;
|
|
3398
3398
|
return g(
|
|
3399
|
-
((
|
|
3399
|
+
((x = (y = e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose) == null ? void 0 : y.orientation) == null ? void 0 : x[ot[p.id]]) || 0
|
|
3400
3400
|
);
|
|
3401
3401
|
},
|
|
3402
3402
|
startJogging: (y) => c({
|
|
@@ -3818,7 +3818,7 @@ const ut = (e, t, o) => ({
|
|
|
3818
3818
|
return n.palette.text.secondary;
|
|
3819
3819
|
}
|
|
3820
3820
|
}, d = ({ message: g }) => {
|
|
3821
|
-
const [p, u] = $(!1), [
|
|
3821
|
+
const [p, u] = $(!1), [b, y] = $(!1), [x, h] = $(!1), v = g.message.length > 150, f = async () => {
|
|
3822
3822
|
try {
|
|
3823
3823
|
await navigator.clipboard.writeText(g.message), y(!0), setTimeout(() => y(!1), 2e3);
|
|
3824
3824
|
} catch (C) {
|
|
@@ -3889,9 +3889,9 @@ const ut = (e, t, o) => ({
|
|
|
3889
3889
|
display: "flex",
|
|
3890
3890
|
alignItems: "flex-start",
|
|
3891
3891
|
gap: 0.5,
|
|
3892
|
-
opacity:
|
|
3892
|
+
opacity: x ? 1 : 0,
|
|
3893
3893
|
transition: "opacity 0.2s ease-in-out",
|
|
3894
|
-
visibility:
|
|
3894
|
+
visibility: x ? "visible" : "hidden"
|
|
3895
3895
|
},
|
|
3896
3896
|
children: [
|
|
3897
3897
|
/* @__PURE__ */ a(
|
|
@@ -3906,7 +3906,7 @@ const ut = (e, t, o) => ({
|
|
|
3906
3906
|
backgroundColor: n.palette.action.hover
|
|
3907
3907
|
}
|
|
3908
3908
|
},
|
|
3909
|
-
title:
|
|
3909
|
+
title: b ? "Copied!" : "Copy message",
|
|
3910
3910
|
children: /* @__PURE__ */ a(Xe, { sx: { fontSize: 12 } })
|
|
3911
3911
|
}
|
|
3912
3912
|
),
|
|
@@ -4161,7 +4161,7 @@ var ee = /* @__PURE__ */ ((e) => (e.PRECONDITION_NOT_FULFILLED = "PRECONDITION_N
|
|
|
4161
4161
|
const Vo = z(
|
|
4162
4162
|
J(({ setupState: e, className: t }) => {
|
|
4163
4163
|
const o = B(), { t: r } = V(), i = () => {
|
|
4164
|
-
var d, m, g, p, u,
|
|
4164
|
+
var d, m, g, p, u, b, y;
|
|
4165
4165
|
switch (e) {
|
|
4166
4166
|
case "READY":
|
|
4167
4167
|
return {
|
|
@@ -4195,7 +4195,7 @@ const Vo = z(
|
|
|
4195
4195
|
return {
|
|
4196
4196
|
label: r("RobotSetupReadinessIndicator.ManualMode.lb"),
|
|
4197
4197
|
indicatorColor: o.palette.error.main,
|
|
4198
|
-
backgroundColor: ((
|
|
4198
|
+
backgroundColor: ((b = o.palette.backgroundPaperElevation) == null ? void 0 : b[11]) || o.palette.background.paper,
|
|
4199
4199
|
textColor: o.palette.secondary.contrastText
|
|
4200
4200
|
};
|
|
4201
4201
|
default:
|
|
@@ -4508,7 +4508,7 @@ const Ai = z(
|
|
|
4508
4508
|
},
|
|
4509
4509
|
children: t.map((p, u) => {
|
|
4510
4510
|
var w, C, I;
|
|
4511
|
-
const
|
|
4511
|
+
const b = () => {
|
|
4512
4512
|
if (!p.badge) return;
|
|
4513
4513
|
const M = p.badge.content, j = p.badge.max;
|
|
4514
4514
|
return typeof M == "number" && j && M > j ? `${j}+` : M;
|
|
@@ -4516,7 +4516,7 @@ const Ai = z(
|
|
|
4516
4516
|
if (!p.badge) return !1;
|
|
4517
4517
|
const M = p.badge.content, j = p.badge.showZero;
|
|
4518
4518
|
return !(M === 0 && !j);
|
|
4519
|
-
},
|
|
4519
|
+
}, x = b(), h = y(), v = () => {
|
|
4520
4520
|
s || d(u), i == null || i(u);
|
|
4521
4521
|
}, f = /* @__PURE__ */ a(
|
|
4522
4522
|
Nt,
|
|
@@ -4570,7 +4570,7 @@ const Ai = z(
|
|
|
4570
4570
|
children: /* @__PURE__ */ a(
|
|
4571
4571
|
uo,
|
|
4572
4572
|
{
|
|
4573
|
-
badgeContent:
|
|
4573
|
+
badgeContent: x,
|
|
4574
4574
|
color: ((w = p.badge) == null ? void 0 : w.color) || "error",
|
|
4575
4575
|
max: (C = p.badge) == null ? void 0 : C.max,
|
|
4576
4576
|
showZero: (I = p.badge) == null ? void 0 : I.showZero,
|
|
@@ -4954,7 +4954,7 @@ const Ai = z(
|
|
|
4954
4954
|
isRunning: !1,
|
|
4955
4955
|
isPausedState: !0
|
|
4956
4956
|
})), o();
|
|
4957
|
-
}, [n.isRunning, g, o]),
|
|
4957
|
+
}, [n.isRunning, g, o]), b = P(() => {
|
|
4958
4958
|
n.isPausedState && (d.current = n.elapsedTime, l.current = Date.now(), c((h) => ({
|
|
4959
4959
|
...h,
|
|
4960
4960
|
isRunning: !0,
|
|
@@ -4968,15 +4968,15 @@ const Ai = z(
|
|
|
4968
4968
|
isPausedState: !1,
|
|
4969
4969
|
currentProgress: 0
|
|
4970
4970
|
})), d.current = 0, l.current = null, m.current = 0, g.setImmediate([0]);
|
|
4971
|
-
}, [g]),
|
|
4971
|
+
}, [g]), x = P(() => n.isPausedState, [n.isPausedState]);
|
|
4972
4972
|
return F(() => {
|
|
4973
|
-
t ? (n.isRunning && (c((h) => ({ ...h, wasRunningBeforeError: !0 })), u()), r()) : (n.wasRunningBeforeError && !n.isRunning && (c((h) => ({ ...h, wasRunningBeforeError: !1 })),
|
|
4973
|
+
t ? (n.isRunning && (c((h) => ({ ...h, wasRunningBeforeError: !0 })), u()), r()) : (n.wasRunningBeforeError && !n.isRunning && (c((h) => ({ ...h, wasRunningBeforeError: !1 })), b()), i());
|
|
4974
4974
|
}, [
|
|
4975
4975
|
t,
|
|
4976
4976
|
n.isRunning,
|
|
4977
4977
|
n.wasRunningBeforeError,
|
|
4978
4978
|
u,
|
|
4979
|
-
|
|
4979
|
+
b,
|
|
4980
4980
|
r,
|
|
4981
4981
|
i
|
|
4982
4982
|
]), F(() => {
|
|
@@ -5012,9 +5012,9 @@ const Ai = z(
|
|
|
5012
5012
|
controls: {
|
|
5013
5013
|
start: p,
|
|
5014
5014
|
pause: u,
|
|
5015
|
-
resume:
|
|
5015
|
+
resume: b,
|
|
5016
5016
|
reset: y,
|
|
5017
|
-
isPaused:
|
|
5017
|
+
isPaused: x
|
|
5018
5018
|
}
|
|
5019
5019
|
};
|
|
5020
5020
|
}, Ji = z(
|
|
@@ -5044,12 +5044,12 @@ const Ai = z(
|
|
|
5044
5044
|
return F(() => {
|
|
5045
5045
|
m();
|
|
5046
5046
|
}, [m]), F(() => {
|
|
5047
|
-
let
|
|
5047
|
+
let b = !0;
|
|
5048
5048
|
const y = setTimeout(() => {
|
|
5049
|
-
|
|
5049
|
+
b && e(u);
|
|
5050
5050
|
}, 0);
|
|
5051
5051
|
return () => {
|
|
5052
|
-
|
|
5052
|
+
b = !1, clearTimeout(y);
|
|
5053
5053
|
};
|
|
5054
5054
|
}, [e, u]), F(() => g, [g]), o === "small" ? /* @__PURE__ */ a(
|
|
5055
5055
|
qo,
|
|
@@ -5081,14 +5081,14 @@ const Ai = z(
|
|
|
5081
5081
|
class ht {
|
|
5082
5082
|
constructor(t, o, r, i, n, c, s, l, d, m, g = "cell") {
|
|
5083
5083
|
this.controller = o, this.motionGroup = r, this.initialMotionState = i, this.motionStateSocket = n, this.isVirtual = c, this.tcps = s, this.description = l, this.initialControllerState = d, this.controllerStateSocket = m, this.cellId = g, this.connectedJoggingSocket = null, this.joggingVelocity = 10, this.activationState = "inactive", this.nova = ct(t), this.rapidlyChangingMotionState = i, this.controllerState = d, m.addEventListener("message", (p) => {
|
|
5084
|
-
var
|
|
5085
|
-
const u = (
|
|
5084
|
+
var b;
|
|
5085
|
+
const u = (b = W(p.data)) == null ? void 0 : b.result;
|
|
5086
5086
|
u && D(() => {
|
|
5087
5087
|
this.controllerState = u;
|
|
5088
5088
|
});
|
|
5089
5089
|
}), n.addEventListener("message", (p) => {
|
|
5090
|
-
var
|
|
5091
|
-
const u = (
|
|
5090
|
+
var b;
|
|
5091
|
+
const u = (b = W(p.data)) == null ? void 0 : b.result;
|
|
5092
5092
|
if (!u)
|
|
5093
5093
|
throw new Error(
|
|
5094
5094
|
`Failed to get motion state for ${this.motionGroupId}: ${p.data}`
|
|
@@ -5110,7 +5110,7 @@ class ht {
|
|
|
5110
5110
|
}), this.rapidlyChangingMotionState.standstill !== u.standstill && D(() => {
|
|
5111
5111
|
this.rapidlyChangingMotionState.standstill = u.standstill;
|
|
5112
5112
|
});
|
|
5113
|
-
}),
|
|
5113
|
+
}), bt(this);
|
|
5114
5114
|
}
|
|
5115
5115
|
static async connectMultiple(t, o, r = {}) {
|
|
5116
5116
|
return Promise.all(
|
|
@@ -5143,14 +5143,14 @@ class ht {
|
|
|
5143
5143
|
`,
|
|
5144
5144
|
p
|
|
5145
5145
|
);
|
|
5146
|
-
const
|
|
5146
|
+
const b = (await i.api.controller.getRobotController(
|
|
5147
5147
|
n,
|
|
5148
5148
|
l.controller
|
|
5149
5149
|
)).configuration.kind === "VirtualController", y = await i.api.motionGroup.getMotionGroupDescription(
|
|
5150
5150
|
n,
|
|
5151
5151
|
s,
|
|
5152
5152
|
d.motion_group
|
|
5153
|
-
),
|
|
5153
|
+
), x = Object.entries(y.tcps || {}).map(
|
|
5154
5154
|
([I, M]) => ({
|
|
5155
5155
|
id: I,
|
|
5156
5156
|
readable_name: M.name,
|
|
@@ -5174,8 +5174,8 @@ class ht {
|
|
|
5174
5174
|
d,
|
|
5175
5175
|
p,
|
|
5176
5176
|
m,
|
|
5177
|
-
x,
|
|
5178
5177
|
b,
|
|
5178
|
+
x,
|
|
5179
5179
|
y,
|
|
5180
5180
|
f,
|
|
5181
5181
|
h,
|
|
@@ -5378,23 +5378,23 @@ const et = "rgba(255, 255, 255, 1)", Xo = {
|
|
|
5378
5378
|
},
|
|
5379
5379
|
filterForm: {
|
|
5380
5380
|
"& .MuiInputBase-root": {
|
|
5381
|
-
borderRadius: `${Y}
|
|
5381
|
+
borderRadius: `${Y} !important`,
|
|
5382
5382
|
"& fieldset": {
|
|
5383
|
-
borderRadius: `${Y}
|
|
5383
|
+
borderRadius: `${Y} !important`
|
|
5384
5384
|
},
|
|
5385
5385
|
"& .MuiOutlinedInput-notchedOutline": {
|
|
5386
|
-
borderRadius: `${Y}
|
|
5386
|
+
borderRadius: `${Y} !important`
|
|
5387
5387
|
}
|
|
5388
5388
|
}
|
|
5389
5389
|
},
|
|
5390
5390
|
filterFormValueInput: {
|
|
5391
5391
|
"& .MuiInputBase-root": {
|
|
5392
|
-
borderRadius: `${Y}
|
|
5392
|
+
borderRadius: `${Y} !important`,
|
|
5393
5393
|
"& fieldset": {
|
|
5394
|
-
borderRadius: `${Y}
|
|
5394
|
+
borderRadius: `${Y} !important`
|
|
5395
5395
|
},
|
|
5396
5396
|
"& .MuiOutlinedInput-notchedOutline": {
|
|
5397
|
-
borderRadius: `${Y}
|
|
5397
|
+
borderRadius: `${Y} !important`
|
|
5398
5398
|
}
|
|
5399
5399
|
}
|
|
5400
5400
|
}
|
|
@@ -5455,7 +5455,18 @@ const et = "rgba(255, 255, 255, 1)", Xo = {
|
|
|
5455
5455
|
}
|
|
5456
5456
|
};
|
|
5457
5457
|
function Ko(...e) {
|
|
5458
|
-
|
|
5458
|
+
const t = e.map((o) => {
|
|
5459
|
+
var r;
|
|
5460
|
+
if (((r = o == null ? void 0 : o.palette) == null ? void 0 : r.mode) === "light") {
|
|
5461
|
+
console.warn(
|
|
5462
|
+
"[createNovaTheme] palette.mode 'light' is not supported — light tokens are not yet available. Falling back to dark mode. Remove palette.mode from your theme options to silence this warning."
|
|
5463
|
+
);
|
|
5464
|
+
const { mode: i, ...n } = o.palette;
|
|
5465
|
+
return { ...o, palette: n };
|
|
5466
|
+
}
|
|
5467
|
+
return o;
|
|
5468
|
+
});
|
|
5469
|
+
return po(Xo, ...t);
|
|
5459
5470
|
}
|
|
5460
5471
|
function Fi(e = {}) {
|
|
5461
5472
|
return Ko(e);
|
|
@@ -5465,7 +5476,7 @@ export {
|
|
|
5465
5476
|
wi as C,
|
|
5466
5477
|
St as J,
|
|
5467
5478
|
$o as L,
|
|
5468
|
-
|
|
5479
|
+
xt as M,
|
|
5469
5480
|
_i as N,
|
|
5470
5481
|
Ii as P,
|
|
5471
5482
|
Oi as R,
|