@wandelbots/wandelbots-js-react-components 1.9.0 → 1.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/README.md +2 -1
- package/dist/Setup.d.ts +12 -0
- package/dist/Setup.d.ts.map +1 -0
- package/dist/components/LoadingButton.d.ts +1 -1
- package/dist/components/jogging/JoggingCartesianValues.d.ts.map +1 -1
- package/dist/components/jogging/JoggingOptions.d.ts.map +1 -1
- package/dist/components/jogging/JoggingStore.d.ts +1 -1
- package/dist/components/jogging/JoggingVelocitySlider.d.ts.map +1 -1
- package/dist/components/robots/SupportedRobot.stories.d.ts +156 -0
- package/dist/components/robots/SupportedRobot.stories.d.ts.map +1 -0
- package/dist/index.cjs +23 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +115 -135
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Setup.tsx +37 -0
- package/src/components/VelocitySlider.tsx +1 -1
- package/src/components/jogging/JoggingCartesianTab.tsx +1 -1
- package/src/components/jogging/JoggingCartesianValues.tsx +2 -1
- package/src/components/jogging/JoggingOptions.tsx +2 -4
- package/src/components/jogging/JoggingVelocitySlider.tsx +0 -14
- package/src/components/robots/SupportedRobot.stories.tsx +130 -0
- package/src/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import fs, { useRef as Ft, useState as On, useEffect as Dt, useCallback as Ui, S
|
|
|
3
3
|
import { CacheProvider as Ji, Global as Vi, ThemeContext as ms, css as Gi, keyframes as zi, ThemeProvider as Wi } from "@emotion/react";
|
|
4
4
|
import { defaultsDeep as Hi, throttle as Ki, isNumber as Xi, isEqual as qi, keyBy as Xr, uniqueId as Yi } from "lodash-es";
|
|
5
5
|
import p from "prop-types";
|
|
6
|
-
import { useTheme as Ln, Button as ra, Typography as
|
|
6
|
+
import { useTheme as Ln, Button as ra, Typography as Ct, IconButton as na, Slider as Zi, Stack as fe, InputLabel as Pr, Select as ro, MenuItem as qr, ToggleButtonGroup as ps, ToggleButton as yn, Chip as Qi, CircularProgress as el, Tabs as tl, Tab as rl, Paper as nl } from "@mui/material";
|
|
7
7
|
import { initReactI18next as ol, I18nextProvider as al, useTranslation as sr } from "react-i18next";
|
|
8
8
|
import sl from "i18next-browser-languagedetector";
|
|
9
9
|
import il, { useMonaco as ll } from "@monaco-editor/react";
|
|
@@ -193,7 +193,7 @@ function Ol() {
|
|
|
193
193
|
W++;
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function xt() {
|
|
197
197
|
{
|
|
198
198
|
if (W--, W === 0) {
|
|
199
199
|
var m = {
|
|
@@ -297,23 +297,23 @@ function Ol() {
|
|
|
297
297
|
if (Ee && E && typeof Ee.stack == "string") {
|
|
298
298
|
for (var U = Ee.stack.split(`
|
|
299
299
|
`), Ae = E.stack.split(`
|
|
300
|
-
`),
|
|
300
|
+
`), he = U.length - 1, ye = Ae.length - 1; he >= 1 && ye >= 0 && U[he] !== Ae[ye]; )
|
|
301
301
|
ye--;
|
|
302
|
-
for (;
|
|
303
|
-
if (U[
|
|
304
|
-
if (
|
|
302
|
+
for (; he >= 1 && ye >= 0; he--, ye--)
|
|
303
|
+
if (U[he] !== Ae[ye]) {
|
|
304
|
+
if (he !== 1 || ye !== 1)
|
|
305
305
|
do
|
|
306
|
-
if (
|
|
306
|
+
if (he--, ye--, ye < 0 || U[he] !== Ae[ye]) {
|
|
307
307
|
var We = `
|
|
308
|
-
` + U[
|
|
308
|
+
` + U[he].replace(" at new ", " at ");
|
|
309
309
|
return m.displayName && We.includes("<anonymous>") && (We = We.replace("<anonymous>", m.displayName)), typeof m == "function" && it.set(m, We), We;
|
|
310
310
|
}
|
|
311
|
-
while (
|
|
311
|
+
while (he >= 1 && ye >= 0);
|
|
312
312
|
break;
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
} finally {
|
|
316
|
-
st = !1, at.current = Q,
|
|
316
|
+
st = !1, at.current = Q, xt(), Error.prepareStackTrace = D;
|
|
317
317
|
}
|
|
318
318
|
var Ht = m ? m.displayName || m.name : "", It = Ht ? Ne(Ht) : "";
|
|
319
319
|
return typeof m == "function" && it.set(m, It), It;
|
|
@@ -355,7 +355,7 @@ function Ol() {
|
|
|
355
355
|
return "";
|
|
356
356
|
}
|
|
357
357
|
var ce = Object.prototype.hasOwnProperty, Le = {}, Me = v.ReactDebugCurrentFrame;
|
|
358
|
-
function
|
|
358
|
+
function St(m) {
|
|
359
359
|
if (m) {
|
|
360
360
|
var w = m._owner, M = Y(m.type, m._source, w ? w.type : null);
|
|
361
361
|
Me.setExtraStackFrame(M);
|
|
@@ -374,16 +374,16 @@ function Ol() {
|
|
|
374
374
|
throw Ae.name = "Invariant Violation", Ae;
|
|
375
375
|
}
|
|
376
376
|
U = m[J](w, J, E, M, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
377
|
-
} catch (
|
|
378
|
-
U =
|
|
377
|
+
} catch (he) {
|
|
378
|
+
U = he;
|
|
379
379
|
}
|
|
380
|
-
U && !(U instanceof Error) && (
|
|
380
|
+
U && !(U instanceof Error) && (St(D), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", M, J, typeof U), St(null)), U instanceof Error && !(U.message in Le) && (Le[U.message] = !0, St(D), R("Failed %s type: %s", M, U.message), St(null));
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
var
|
|
384
|
+
var vt = Array.isArray;
|
|
385
385
|
function Mt(m) {
|
|
386
|
-
return
|
|
386
|
+
return vt(m);
|
|
387
387
|
}
|
|
388
388
|
function hr(m) {
|
|
389
389
|
{
|
|
@@ -485,16 +485,16 @@ function Ol() {
|
|
|
485
485
|
value: D
|
|
486
486
|
}), Object.freeze && (Object.freeze(U.props), Object.freeze(U)), U;
|
|
487
487
|
};
|
|
488
|
-
function
|
|
488
|
+
function wt(m, w, M, E, D) {
|
|
489
489
|
{
|
|
490
490
|
var Q, J = {}, U = null, Ae = null;
|
|
491
491
|
M !== void 0 && (Vt(M), U = "" + M), z(w) && (Vt(w.key), U = "" + w.key), X(w) && (Ae = w.ref, Fe(w, D));
|
|
492
492
|
for (Q in w)
|
|
493
493
|
ce.call(w, Q) && !C.hasOwnProperty(Q) && (J[Q] = w[Q]);
|
|
494
494
|
if (m && m.defaultProps) {
|
|
495
|
-
var
|
|
496
|
-
for (Q in
|
|
497
|
-
J[Q] === void 0 && (J[Q] =
|
|
495
|
+
var he = m.defaultProps;
|
|
496
|
+
for (Q in he)
|
|
497
|
+
J[Q] === void 0 && (J[Q] = he[Q]);
|
|
498
498
|
}
|
|
499
499
|
if (U || Ae) {
|
|
500
500
|
var ye = typeof m == "function" ? m.displayName || m.name || "Unknown" : m;
|
|
@@ -622,10 +622,10 @@ Check the top-level render call using <` + M + ">.");
|
|
|
622
622
|
(m === void 0 || typeof m == "object" && m !== null && Object.keys(m).length === 0) && (U += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
623
623
|
var Ae = yr();
|
|
624
624
|
Ae ? U += Ae : U += gr();
|
|
625
|
-
var
|
|
626
|
-
m === null ?
|
|
625
|
+
var he;
|
|
626
|
+
m === null ? he = "null" : Mt(m) ? he = "array" : m !== void 0 && m.$$typeof === t ? (he = "<" + (V(m.type) || "Unknown") + " />", U = " Did you accidentally export a JSX literal instead of a component?") : he = typeof m, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, U);
|
|
627
627
|
}
|
|
628
|
-
var ye =
|
|
628
|
+
var ye = wt(m, w, M, D, Q);
|
|
629
629
|
if (ye == null)
|
|
630
630
|
return ye;
|
|
631
631
|
if (J) {
|
|
@@ -2419,7 +2419,7 @@ function yu() {
|
|
|
2419
2419
|
function ve(O) {
|
|
2420
2420
|
return typeof O == "object" && O !== null && O.$$typeof === e;
|
|
2421
2421
|
}
|
|
2422
|
-
function
|
|
2422
|
+
function xt(O) {
|
|
2423
2423
|
return j(O) === c;
|
|
2424
2424
|
}
|
|
2425
2425
|
function at(O) {
|
|
@@ -2446,7 +2446,7 @@ function yu() {
|
|
|
2446
2446
|
function $e(O) {
|
|
2447
2447
|
return j(O) === d;
|
|
2448
2448
|
}
|
|
2449
|
-
oe.ContextConsumer = I, oe.ContextProvider = L, oe.Element = re, oe.ForwardRef = le, oe.Fragment = se, oe.Lazy = F, oe.Memo = H, oe.Portal = V, oe.Profiler = K, oe.StrictMode = W, oe.Suspense = Se, oe.SuspenseList = ae, oe.isAsyncMode = Oe, oe.isConcurrentMode = et, oe.isContextConsumer = ft, oe.isContextProvider = Ve, oe.isElement = ve, oe.isForwardRef =
|
|
2449
|
+
oe.ContextConsumer = I, oe.ContextProvider = L, oe.Element = re, oe.ForwardRef = le, oe.Fragment = se, oe.Lazy = F, oe.Memo = H, oe.Portal = V, oe.Profiler = K, oe.StrictMode = W, oe.Suspense = Se, oe.SuspenseList = ae, oe.isAsyncMode = Oe, oe.isConcurrentMode = et, oe.isContextConsumer = ft, oe.isContextProvider = Ve, oe.isElement = ve, oe.isForwardRef = xt, oe.isFragment = at, oe.isLazy = Ge, oe.isMemo = Ne, oe.isPortal = st, oe.isProfiler = it, oe.isStrictMode = Lt, oe.isSuspense = mt, oe.isSuspenseList = $e, oe.isValidElementType = T, oe.typeOf = j;
|
|
2450
2450
|
}()), oe;
|
|
2451
2451
|
}
|
|
2452
2452
|
process.env.NODE_ENV === "production" ? vo.exports = gu() : vo.exports = yu();
|
|
@@ -2875,7 +2875,7 @@ function zu(e, t, r) {
|
|
|
2875
2875
|
return typeof e == "function" ? e(t, r) : e;
|
|
2876
2876
|
}
|
|
2877
2877
|
const Wu = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
2878
|
-
function
|
|
2878
|
+
function Rt(e) {
|
|
2879
2879
|
var t;
|
|
2880
2880
|
const {
|
|
2881
2881
|
elementType: r,
|
|
@@ -5597,7 +5597,7 @@ ei.use(sl).use(ol).init({
|
|
|
5597
5597
|
ns: ["translations"],
|
|
5598
5598
|
defaultNS: "translations"
|
|
5599
5599
|
});
|
|
5600
|
-
function
|
|
5600
|
+
function bt(e) {
|
|
5601
5601
|
return (t) => /* @__PURE__ */ s.jsx(J0, { children: /* @__PURE__ */ s.jsx(e, { ...t }) });
|
|
5602
5602
|
}
|
|
5603
5603
|
const J0 = ({
|
|
@@ -10730,7 +10730,7 @@ const Oo = ht(
|
|
|
10730
10730
|
}
|
|
10731
10731
|
),
|
|
10732
10732
|
/* @__PURE__ */ s.jsx(
|
|
10733
|
-
|
|
10733
|
+
Ct,
|
|
10734
10734
|
{
|
|
10735
10735
|
height: "22px",
|
|
10736
10736
|
sx: {
|
|
@@ -10868,7 +10868,7 @@ const Oo = ht(
|
|
|
10868
10868
|
},
|
|
10869
10869
|
children: [
|
|
10870
10870
|
/* @__PURE__ */ s.jsx(
|
|
10871
|
-
|
|
10871
|
+
Ct,
|
|
10872
10872
|
{
|
|
10873
10873
|
sx: {
|
|
10874
10874
|
fontSize: "15px",
|
|
@@ -10971,14 +10971,13 @@ const Oo = ht(
|
|
|
10971
10971
|
}
|
|
10972
10972
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
10973
10973
|
/* @__PURE__ */ s.jsxs(
|
|
10974
|
-
|
|
10974
|
+
fe,
|
|
10975
10975
|
{
|
|
10976
10976
|
direction: "row",
|
|
10977
10977
|
alignItems: "center",
|
|
10978
10978
|
spacing: 2,
|
|
10979
10979
|
sx: {
|
|
10980
|
-
padding: "16px",
|
|
10981
|
-
paddingTop: "8px",
|
|
10980
|
+
padding: "8px 16px",
|
|
10982
10981
|
"& label": {
|
|
10983
10982
|
opacity: 0.7,
|
|
10984
10983
|
fontSize: "12px",
|
|
@@ -10986,7 +10985,7 @@ const Oo = ht(
|
|
|
10986
10985
|
}
|
|
10987
10986
|
},
|
|
10988
10987
|
children: [
|
|
10989
|
-
/* @__PURE__ */ s.jsxs(
|
|
10988
|
+
/* @__PURE__ */ s.jsxs(fe, { width: "50%", children: [
|
|
10990
10989
|
/* @__PURE__ */ s.jsx(Pr, { id: "jogging-coord-select", children: "Coordinate Sys." }),
|
|
10991
10990
|
/* @__PURE__ */ s.jsx(
|
|
10992
10991
|
ro,
|
|
@@ -11002,7 +11001,7 @@ const Oo = ht(
|
|
|
11002
11001
|
}
|
|
11003
11002
|
)
|
|
11004
11003
|
] }),
|
|
11005
|
-
/* @__PURE__ */ s.jsxs(
|
|
11004
|
+
/* @__PURE__ */ s.jsxs(fe, { width: "50%", children: [
|
|
11006
11005
|
/* @__PURE__ */ s.jsx(Pr, { id: "jogging-tcp-select", children: "TCP" }),
|
|
11007
11006
|
/* @__PURE__ */ s.jsx(
|
|
11008
11007
|
ro,
|
|
@@ -11021,14 +11020,13 @@ const Oo = ht(
|
|
|
11021
11020
|
}
|
|
11022
11021
|
),
|
|
11023
11022
|
/* @__PURE__ */ s.jsxs(
|
|
11024
|
-
|
|
11023
|
+
fe,
|
|
11025
11024
|
{
|
|
11026
11025
|
direction: "row",
|
|
11027
11026
|
alignItems: "center",
|
|
11028
11027
|
spacing: 2,
|
|
11029
11028
|
sx: {
|
|
11030
|
-
padding: "16px",
|
|
11031
|
-
paddingTop: "8px",
|
|
11029
|
+
padding: "8px 16px",
|
|
11032
11030
|
"& label": {
|
|
11033
11031
|
opacity: 0.7,
|
|
11034
11032
|
fontSize: "12px",
|
|
@@ -11036,7 +11034,7 @@ const Oo = ht(
|
|
|
11036
11034
|
}
|
|
11037
11035
|
},
|
|
11038
11036
|
children: [
|
|
11039
|
-
/* @__PURE__ */ s.jsxs(
|
|
11037
|
+
/* @__PURE__ */ s.jsxs(fe, { width: "35%", children: [
|
|
11040
11038
|
/* @__PURE__ */ s.jsx(Pr, { id: "orientation-select", children: t("Jogging.Cartesian.Orientation.lb") }),
|
|
11041
11039
|
/* @__PURE__ */ s.jsxs(
|
|
11042
11040
|
ps,
|
|
@@ -11053,7 +11051,7 @@ const Oo = ht(
|
|
|
11053
11051
|
}
|
|
11054
11052
|
)
|
|
11055
11053
|
] }),
|
|
11056
|
-
/* @__PURE__ */ s.jsxs(
|
|
11054
|
+
/* @__PURE__ */ s.jsxs(fe, { width: "65%", children: [
|
|
11057
11055
|
/* @__PURE__ */ s.jsx(Pr, { id: "jogging-increment-select", children: "Increment" }),
|
|
11058
11056
|
/* @__PURE__ */ s.jsxs(
|
|
11059
11057
|
ro,
|
|
@@ -11231,7 +11229,7 @@ function $h(e) {
|
|
|
11231
11229
|
onBlur: Re,
|
|
11232
11230
|
onFocus: Oe,
|
|
11233
11231
|
ref: et
|
|
11234
|
-
} = Bu(), [ft, Ve] = $.useState(-1), ve = $.useRef(),
|
|
11232
|
+
} = Bu(), [ft, Ve] = $.useState(-1), ve = $.useRef(), xt = wo(et, ve), at = wo(b, xt), Ge = (C) => (k) => {
|
|
11235
11233
|
var N;
|
|
11236
11234
|
const G = Number(k.currentTarget.getAttribute("data-index"));
|
|
11237
11235
|
Oe(k), q.current === !0 && Ve(G), L(G), C == null || (N = C.onFocus) == null || N.call(C, k);
|
|
@@ -11299,19 +11297,19 @@ function $h(e) {
|
|
|
11299
11297
|
if (Z = kh(ze, c, l), y)
|
|
11300
11298
|
Z = Ih(Z, y, c);
|
|
11301
11299
|
else {
|
|
11302
|
-
const
|
|
11303
|
-
Z = ae[
|
|
11300
|
+
const wt = Ha(ae, Z);
|
|
11301
|
+
Z = ae[wt];
|
|
11304
11302
|
}
|
|
11305
11303
|
Z = tr(Z, c, l);
|
|
11306
11304
|
let ke = 0;
|
|
11307
11305
|
if (K) {
|
|
11308
11306
|
k ? ke = mt.current : ke = Ha(W, Z), o && (Z = tr(Z, W[ke - 1] || -1 / 0, W[ke + 1] || 1 / 0));
|
|
11309
|
-
const
|
|
11307
|
+
const wt = Z;
|
|
11310
11308
|
Z = Ka({
|
|
11311
11309
|
values: W,
|
|
11312
11310
|
newValue: Z,
|
|
11313
11311
|
index: ke
|
|
11314
|
-
}), o && k || (ke = Z.indexOf(
|
|
11312
|
+
}), o && k || (ke = Z.indexOf(wt), mt.current = ke);
|
|
11315
11313
|
}
|
|
11316
11314
|
return {
|
|
11317
11315
|
newValue: Z,
|
|
@@ -11391,7 +11389,7 @@ function $h(e) {
|
|
|
11391
11389
|
}, [Me, Le]), $.useEffect(() => {
|
|
11392
11390
|
n && Me();
|
|
11393
11391
|
}, [n, Me]);
|
|
11394
|
-
const
|
|
11392
|
+
const St = (C) => (k) => {
|
|
11395
11393
|
var N;
|
|
11396
11394
|
if ((N = C.onMouseDown) == null || N.call(C, k), n || k.defaultPrevented || k.button !== 0)
|
|
11397
11395
|
return;
|
|
@@ -11415,9 +11413,9 @@ function $h(e) {
|
|
|
11415
11413
|
X.addEventListener("mousemove", Y, {
|
|
11416
11414
|
passive: !0
|
|
11417
11415
|
}), X.addEventListener("mouseup", ce);
|
|
11418
|
-
}, we = Cn(K ? W[0] : c, c, l),
|
|
11416
|
+
}, we = Cn(K ? W[0] : c, c, l), vt = Cn(W[W.length - 1], c, l) - we, Mt = (C = {}) => {
|
|
11419
11417
|
const k = hn(C), N = {
|
|
11420
|
-
onMouseDown:
|
|
11418
|
+
onMouseDown: St(k || {})
|
|
11421
11419
|
}, G = A({}, k, N);
|
|
11422
11420
|
return A({}, C, {
|
|
11423
11421
|
ref: at
|
|
@@ -11478,7 +11476,7 @@ function $h(e) {
|
|
|
11478
11476
|
open: I,
|
|
11479
11477
|
range: K,
|
|
11480
11478
|
rootRef: at,
|
|
11481
|
-
trackLeap:
|
|
11479
|
+
trackLeap: vt,
|
|
11482
11480
|
trackOffset: we,
|
|
11483
11481
|
values: W,
|
|
11484
11482
|
getThumbStyle: (C) => ({
|
|
@@ -12063,7 +12061,7 @@ const Jh = Ot("span", {
|
|
|
12063
12061
|
disableSwap: ft = !1,
|
|
12064
12062
|
disabled: Ve = !1,
|
|
12065
12063
|
getAriaLabel: ve,
|
|
12066
|
-
getAriaValueText:
|
|
12064
|
+
getAriaValueText: xt,
|
|
12067
12065
|
marks: at = !1,
|
|
12068
12066
|
max: Ge = 100,
|
|
12069
12067
|
min: Ne = 0,
|
|
@@ -12077,7 +12075,7 @@ const Jh = Ot("span", {
|
|
|
12077
12075
|
track: ce = "normal",
|
|
12078
12076
|
valueLabelDisplay: Le = "off",
|
|
12079
12077
|
valueLabelFormat: Me = qa
|
|
12080
|
-
} = F,
|
|
12078
|
+
} = F, St = Je(F, Bh), we = A({}, F, {
|
|
12081
12079
|
isRtl: H,
|
|
12082
12080
|
max: Ge,
|
|
12083
12081
|
min: Ne,
|
|
@@ -12095,7 +12093,7 @@ const Jh = Ot("span", {
|
|
|
12095
12093
|
valueLabelDisplay: Le,
|
|
12096
12094
|
valueLabelFormat: Me
|
|
12097
12095
|
}), {
|
|
12098
|
-
axisProps:
|
|
12096
|
+
axisProps: vt,
|
|
12099
12097
|
getRootProps: Mt,
|
|
12100
12098
|
getHiddenInputProps: hr,
|
|
12101
12099
|
getThumbProps: fr,
|
|
@@ -12114,59 +12112,59 @@ const Jh = Ot("span", {
|
|
|
12114
12112
|
rootRef: r
|
|
12115
12113
|
}));
|
|
12116
12114
|
we.marked = G.length > 0 && G.some((E) => E.label), we.dragging = N, we.focusedThumbIndex = C;
|
|
12117
|
-
const Z = Xh(we), ke = (n = (o = Y == null ? void 0 : Y.root) != null ? o : ae.Root) != null ? n : Jh,
|
|
12115
|
+
const Z = Xh(we), ke = (n = (o = Y == null ? void 0 : Y.root) != null ? o : ae.Root) != null ? n : Jh, wt = (a = (i = Y == null ? void 0 : Y.rail) != null ? i : ae.Rail) != null ? a : Vh, Gt = (l = (c = Y == null ? void 0 : Y.track) != null ? c : ae.Track) != null ? l : Gh, pr = (u = (d = Y == null ? void 0 : Y.thumb) != null ? d : ae.Thumb) != null ? u : zh, pt = (f = (h = Y == null ? void 0 : Y.valueLabel) != null ? h : ae.ValueLabel) != null ? f : Wh, kt = (b = (_ = Y == null ? void 0 : Y.mark) != null ? _ : ae.Mark) != null ? b : Hh, Et = (y = (g = Y == null ? void 0 : Y.markLabel) != null ? g : ae.MarkLabel) != null ? y : Kh, gr = (v = (R = Y == null ? void 0 : Y.input) != null ? R : ae.Input) != null ? v : "input", yr = (P = O == null ? void 0 : O.root) != null ? P : q.root, Wr = (T = O == null ? void 0 : O.rail) != null ? T : q.rail, _r = (j = O == null ? void 0 : O.track) != null ? j : q.track, zt = (I = O == null ? void 0 : O.thumb) != null ? I : q.thumb, Wt = (L = O == null ? void 0 : O.valueLabel) != null ? L : q.valueLabel, qn = (re = O == null ? void 0 : O.mark) != null ? re : q.mark, Yn = (le = O == null ? void 0 : O.markLabel) != null ? le : q.markLabel, Hr = (se = O == null ? void 0 : O.input) != null ? se : q.input, Kr = Rt({
|
|
12118
12116
|
elementType: ke,
|
|
12119
12117
|
getSlotProps: Mt,
|
|
12120
12118
|
externalSlotProps: yr,
|
|
12121
|
-
externalForwardedProps:
|
|
12119
|
+
externalForwardedProps: St,
|
|
12122
12120
|
additionalProps: A({}, Fh(ke) && {
|
|
12123
12121
|
as: Se
|
|
12124
12122
|
}),
|
|
12125
12123
|
ownerState: A({}, we, yr == null ? void 0 : yr.ownerState),
|
|
12126
12124
|
className: [Z.root, et]
|
|
12127
|
-
}), Zn =
|
|
12128
|
-
elementType:
|
|
12125
|
+
}), Zn = Rt({
|
|
12126
|
+
elementType: wt,
|
|
12129
12127
|
externalSlotProps: Wr,
|
|
12130
12128
|
ownerState: we,
|
|
12131
12129
|
className: Z.rail
|
|
12132
|
-
}), Qn =
|
|
12130
|
+
}), Qn = Rt({
|
|
12133
12131
|
elementType: Gt,
|
|
12134
12132
|
externalSlotProps: _r,
|
|
12135
12133
|
additionalProps: {
|
|
12136
|
-
style: A({},
|
|
12134
|
+
style: A({}, vt[tt].offset(z), vt[tt].leap(Fe))
|
|
12137
12135
|
},
|
|
12138
12136
|
ownerState: A({}, we, _r == null ? void 0 : _r.ownerState),
|
|
12139
12137
|
className: Z.track
|
|
12140
|
-
}), br =
|
|
12138
|
+
}), br = Rt({
|
|
12141
12139
|
elementType: pr,
|
|
12142
12140
|
getSlotProps: fr,
|
|
12143
12141
|
externalSlotProps: zt,
|
|
12144
12142
|
ownerState: A({}, we, zt == null ? void 0 : zt.ownerState),
|
|
12145
12143
|
className: Z.thumb
|
|
12146
|
-
}), eo =
|
|
12144
|
+
}), eo = Rt({
|
|
12147
12145
|
elementType: pt,
|
|
12148
12146
|
externalSlotProps: Wt,
|
|
12149
12147
|
ownerState: A({}, we, Wt == null ? void 0 : Wt.ownerState),
|
|
12150
12148
|
className: Z.valueLabel
|
|
12151
|
-
}), m =
|
|
12149
|
+
}), m = Rt({
|
|
12152
12150
|
elementType: kt,
|
|
12153
12151
|
externalSlotProps: qn,
|
|
12154
12152
|
ownerState: we,
|
|
12155
12153
|
className: Z.mark
|
|
12156
|
-
}), w =
|
|
12154
|
+
}), w = Rt({
|
|
12157
12155
|
elementType: Et,
|
|
12158
12156
|
externalSlotProps: Yn,
|
|
12159
12157
|
ownerState: we,
|
|
12160
12158
|
className: Z.markLabel
|
|
12161
|
-
}), M =
|
|
12159
|
+
}), M = Rt({
|
|
12162
12160
|
elementType: gr,
|
|
12163
12161
|
getSlotProps: hr,
|
|
12164
12162
|
externalSlotProps: Hr,
|
|
12165
12163
|
ownerState: we
|
|
12166
12164
|
});
|
|
12167
12165
|
return /* @__PURE__ */ s.jsxs(ke, A({}, Kr, {
|
|
12168
|
-
children: [/* @__PURE__ */ s.jsx(
|
|
12169
|
-
const Q = Cn(E.value, Ne, Ge), J =
|
|
12166
|
+
children: [/* @__PURE__ */ s.jsx(wt, A({}, Zn)), /* @__PURE__ */ s.jsx(Gt, A({}, Qn)), G.filter((E) => E.value >= Ne && E.value <= Ge).map((E, D) => {
|
|
12167
|
+
const Q = Cn(E.value, Ne, Ge), J = vt[tt].offset(Q);
|
|
12170
12168
|
let U;
|
|
12171
12169
|
return ce === !1 ? U = X.indexOf(E.value) !== -1 : U = ce === "normal" && (k ? E.value >= X[0] && E.value <= X[X.length - 1] : E.value <= X[0]) || ce === "inverted" && (k ? E.value <= X[0] || E.value >= X[X.length - 1] : E.value >= X[0]), /* @__PURE__ */ s.jsxs($.Fragment, {
|
|
12172
12170
|
children: [/* @__PURE__ */ s.jsx(kt, A({
|
|
@@ -12188,7 +12186,7 @@ const Jh = Ot("span", {
|
|
|
12188
12186
|
})) : null]
|
|
12189
12187
|
}, D);
|
|
12190
12188
|
}), X.map((E, D) => {
|
|
12191
|
-
const Q = Cn(E, Ne, Ge), J =
|
|
12189
|
+
const Q = Cn(E, Ne, Ge), J = vt[tt].offset(Q), U = Le === "off" ? qh : pt;
|
|
12192
12190
|
return (
|
|
12193
12191
|
/* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
|
|
12194
12192
|
/* @__PURE__ */ s.jsx(U, A({}, !Or(U) && {
|
|
@@ -12209,7 +12207,7 @@ const Jh = Ot("span", {
|
|
|
12209
12207
|
"aria-label": ve ? ve(D) : V,
|
|
12210
12208
|
"aria-valuenow": $e(E),
|
|
12211
12209
|
"aria-labelledby": W,
|
|
12212
|
-
"aria-valuetext":
|
|
12210
|
+
"aria-valuetext": xt ? xt($e(E), D) : K,
|
|
12213
12211
|
value: X[D]
|
|
12214
12212
|
}, M))
|
|
12215
12213
|
}))
|
|
@@ -12490,11 +12488,11 @@ const ui = ht((e) => {
|
|
|
12490
12488
|
}
|
|
12491
12489
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
12492
12490
|
/* @__PURE__ */ s.jsx(
|
|
12493
|
-
|
|
12491
|
+
Ct,
|
|
12494
12492
|
{
|
|
12495
12493
|
sx: {
|
|
12496
12494
|
textAlign: "center",
|
|
12497
|
-
fontSize: "
|
|
12495
|
+
fontSize: "14px",
|
|
12498
12496
|
opacity: 0.8,
|
|
12499
12497
|
color: t.palette.text.primary
|
|
12500
12498
|
},
|
|
@@ -12528,44 +12526,24 @@ const ui = ht((e) => {
|
|
|
12528
12526
|
}
|
|
12529
12527
|
}));
|
|
12530
12528
|
return /* @__PURE__ */ s.jsx(
|
|
12531
|
-
|
|
12529
|
+
fe,
|
|
12532
12530
|
{
|
|
12533
12531
|
sx: {
|
|
12534
12532
|
margin: "0px 20px",
|
|
12535
12533
|
marginTop: "24px",
|
|
12536
12534
|
marginBottom: "24px"
|
|
12537
12535
|
},
|
|
12538
|
-
children: /* @__PURE__ */ s.
|
|
12539
|
-
|
|
12540
|
-
|
|
12541
|
-
|
|
12542
|
-
|
|
12543
|
-
|
|
12544
|
-
|
|
12545
|
-
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
fontSize: "12px",
|
|
12550
|
-
opacity: 0.6
|
|
12551
|
-
},
|
|
12552
|
-
children: t("Jogging.Velocity.lb")
|
|
12553
|
-
}
|
|
12554
|
-
)
|
|
12555
|
-
}
|
|
12556
|
-
),
|
|
12557
|
-
/* @__PURE__ */ s.jsx(
|
|
12558
|
-
ui,
|
|
12559
|
-
{
|
|
12560
|
-
velocity: e.velocityInCurrentUnits,
|
|
12561
|
-
min: e.minVelocityInCurrentUnits,
|
|
12562
|
-
max: e.maxVelocityInCurrentUnits,
|
|
12563
|
-
onVelocityChange: e.setVelocityFromSlider,
|
|
12564
|
-
disabled: e.isLocked,
|
|
12565
|
-
valueLabelFormat: r.valueLabelFormat
|
|
12566
|
-
}
|
|
12567
|
-
)
|
|
12568
|
-
] })
|
|
12536
|
+
children: /* @__PURE__ */ s.jsx(fe, { sx: { width: "380px", maxWidth: "90%", margin: "auto" }, children: /* @__PURE__ */ s.jsx(
|
|
12537
|
+
ui,
|
|
12538
|
+
{
|
|
12539
|
+
velocity: e.velocityInCurrentUnits,
|
|
12540
|
+
min: e.minVelocityInCurrentUnits,
|
|
12541
|
+
max: e.maxVelocityInCurrentUnits,
|
|
12542
|
+
onVelocityChange: e.setVelocityFromSlider,
|
|
12543
|
+
disabled: e.isLocked,
|
|
12544
|
+
valueLabelFormat: r.valueLabelFormat
|
|
12545
|
+
}
|
|
12546
|
+
) })
|
|
12569
12547
|
}
|
|
12570
12548
|
);
|
|
12571
12549
|
}
|
|
@@ -12598,12 +12576,13 @@ const ui = ht((e) => {
|
|
|
12598
12576
|
return Vr(() => {
|
|
12599
12577
|
t.current && (t.current.textContent = r());
|
|
12600
12578
|
}), /* @__PURE__ */ s.jsx(
|
|
12601
|
-
|
|
12579
|
+
fe,
|
|
12602
12580
|
{
|
|
12603
12581
|
alignItems: "left",
|
|
12604
12582
|
spacing: 2,
|
|
12605
12583
|
sx: {
|
|
12606
|
-
padding: "16px",
|
|
12584
|
+
padding: "8px 16px",
|
|
12585
|
+
paddingTop: "16px",
|
|
12607
12586
|
"& label": {
|
|
12608
12587
|
opacity: 0.7,
|
|
12609
12588
|
fontSize: "12px",
|
|
@@ -12635,7 +12614,7 @@ const ui = ht((e) => {
|
|
|
12635
12614
|
return r.forEach((a, i) => {
|
|
12636
12615
|
a && o.push(i);
|
|
12637
12616
|
}), o.length ? /* @__PURE__ */ s.jsx(
|
|
12638
|
-
|
|
12617
|
+
Ct,
|
|
12639
12618
|
{
|
|
12640
12619
|
color: "error",
|
|
12641
12620
|
sx: {
|
|
@@ -12727,10 +12706,10 @@ const ui = ht((e) => {
|
|
|
12727
12706
|
amount: an(u).toFixed(1)
|
|
12728
12707
|
});
|
|
12729
12708
|
}
|
|
12730
|
-
return /* @__PURE__ */ s.jsxs(
|
|
12709
|
+
return /* @__PURE__ */ s.jsxs(fe, { children: [
|
|
12731
12710
|
/* @__PURE__ */ s.jsx(Yh, { store: e }),
|
|
12732
12711
|
/* @__PURE__ */ s.jsx(Oh, { store: e }),
|
|
12733
|
-
/* @__PURE__ */ s.jsxs(
|
|
12712
|
+
/* @__PURE__ */ s.jsxs(fe, { width: "80%", maxWidth: "296px", margin: "auto", marginTop: "16px", children: [
|
|
12734
12713
|
/* @__PURE__ */ s.jsxs(
|
|
12735
12714
|
ps,
|
|
12736
12715
|
{
|
|
@@ -12755,7 +12734,7 @@ const ui = ht((e) => {
|
|
|
12755
12734
|
label: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
12756
12735
|
u.icon,
|
|
12757
12736
|
/* @__PURE__ */ s.jsx(
|
|
12758
|
-
|
|
12737
|
+
Ct,
|
|
12759
12738
|
{
|
|
12760
12739
|
sx: {
|
|
12761
12740
|
fontSize: "24px",
|
|
@@ -12791,7 +12770,7 @@ const ui = ht((e) => {
|
|
|
12791
12770
|
label: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
12792
12771
|
/* @__PURE__ */ s.jsx(_h, {}),
|
|
12793
12772
|
/* @__PURE__ */ s.jsx(
|
|
12794
|
-
|
|
12773
|
+
Ct,
|
|
12795
12774
|
{
|
|
12796
12775
|
sx: {
|
|
12797
12776
|
fontSize: "24px",
|
|
@@ -12832,7 +12811,7 @@ const ui = ht((e) => {
|
|
|
12832
12811
|
return Vr(() => {
|
|
12833
12812
|
t.current && (t.current.textContent = r());
|
|
12834
12813
|
}), /* @__PURE__ */ s.jsx(
|
|
12835
|
-
|
|
12814
|
+
fe,
|
|
12836
12815
|
{
|
|
12837
12816
|
alignItems: "left",
|
|
12838
12817
|
spacing: 2,
|
|
@@ -12867,13 +12846,13 @@ const ui = ht((e) => {
|
|
|
12867
12846
|
async function r() {
|
|
12868
12847
|
await e.jogger.stop();
|
|
12869
12848
|
}
|
|
12870
|
-
return /* @__PURE__ */ s.jsxs(
|
|
12849
|
+
return /* @__PURE__ */ s.jsxs(fe, { children: [
|
|
12871
12850
|
/* @__PURE__ */ s.jsx(ef, { store: e }),
|
|
12872
|
-
/* @__PURE__ */ s.jsx(
|
|
12851
|
+
/* @__PURE__ */ s.jsx(fe, { children: e.jogger.motionStream.joints.map((n) => {
|
|
12873
12852
|
var l;
|
|
12874
12853
|
const o = (l = e.motionGroupSpec.mechanical_joint_limits) == null ? void 0 : l[n.index], a = (o == null ? void 0 : o.lower_limit) !== void 0 ? an(o.lower_limit) : void 0, i = (o == null ? void 0 : o.upper_limit) !== void 0 ? an(o.upper_limit) : void 0;
|
|
12875
12854
|
return /* @__PURE__ */ s.jsxs(
|
|
12876
|
-
|
|
12855
|
+
fe,
|
|
12877
12856
|
{
|
|
12878
12857
|
direction: "row",
|
|
12879
12858
|
alignItems: "center",
|
|
@@ -12881,7 +12860,7 @@ const ui = ht((e) => {
|
|
|
12881
12860
|
marginTop: "0.8rem",
|
|
12882
12861
|
children: [
|
|
12883
12862
|
/* @__PURE__ */ s.jsx(
|
|
12884
|
-
|
|
12863
|
+
Ct,
|
|
12885
12864
|
{
|
|
12886
12865
|
sx: {
|
|
12887
12866
|
flexGrow: 1,
|
|
@@ -12909,7 +12888,7 @@ const ui = ht((e) => {
|
|
|
12909
12888
|
n.index
|
|
12910
12889
|
),
|
|
12911
12890
|
/* @__PURE__ */ s.jsx(
|
|
12912
|
-
|
|
12891
|
+
Ct,
|
|
12913
12892
|
{
|
|
12914
12893
|
sx: {
|
|
12915
12894
|
flexGrow: 1
|
|
@@ -14482,7 +14461,7 @@ function Am(e, t, r) {
|
|
|
14482
14461
|
const No = {
|
|
14483
14462
|
assertOptions: Am,
|
|
14484
14463
|
validators: ta
|
|
14485
|
-
},
|
|
14464
|
+
}, jt = No.validators;
|
|
14486
14465
|
let $t = class {
|
|
14487
14466
|
constructor(t) {
|
|
14488
14467
|
this.defaults = t, this.interceptors = {
|
|
@@ -14519,14 +14498,14 @@ let $t = class {
|
|
|
14519
14498
|
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = Bt(this.defaults, r);
|
|
14520
14499
|
const { transitional: n, paramsSerializer: o, headers: a } = r;
|
|
14521
14500
|
n !== void 0 && No.assertOptions(n, {
|
|
14522
|
-
silentJSONParsing:
|
|
14523
|
-
forcedJSONParsing:
|
|
14524
|
-
clarifyTimeoutError:
|
|
14501
|
+
silentJSONParsing: jt.transitional(jt.boolean),
|
|
14502
|
+
forcedJSONParsing: jt.transitional(jt.boolean),
|
|
14503
|
+
clarifyTimeoutError: jt.transitional(jt.boolean)
|
|
14525
14504
|
}, !1), o != null && (x.isFunction(o) ? r.paramsSerializer = {
|
|
14526
14505
|
serialize: o
|
|
14527
14506
|
} : No.assertOptions(o, {
|
|
14528
|
-
encode:
|
|
14529
|
-
serialize:
|
|
14507
|
+
encode: jt.function,
|
|
14508
|
+
serialize: jt.function
|
|
14530
14509
|
}, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
14531
14510
|
let i = a && x.merge(
|
|
14532
14511
|
a.common,
|
|
@@ -14810,7 +14789,7 @@ const Im = (e) => {
|
|
|
14810
14789
|
}, t);
|
|
14811
14790
|
return () => clearTimeout(o);
|
|
14812
14791
|
}), /* @__PURE__ */ s.jsx(
|
|
14813
|
-
|
|
14792
|
+
fe,
|
|
14814
14793
|
{
|
|
14815
14794
|
width: "100%",
|
|
14816
14795
|
height: "100%",
|
|
@@ -14820,7 +14799,7 @@ const Im = (e) => {
|
|
|
14820
14799
|
/* @__PURE__ */ s.jsx(el, { sx: { marginBottom: "24px" } }),
|
|
14821
14800
|
!!e.message && /* @__PURE__ */ s.jsx("div", { children: e.message }),
|
|
14822
14801
|
/* @__PURE__ */ s.jsx(
|
|
14823
|
-
|
|
14802
|
+
fe,
|
|
14824
14803
|
{
|
|
14825
14804
|
sx: {
|
|
14826
14805
|
visibility: r ? "visible" : "hidden",
|
|
@@ -14836,7 +14815,7 @@ const Im = (e) => {
|
|
|
14836
14815
|
}, Tm = (e) => {
|
|
14837
14816
|
const t = Em(e.error), r = e.error instanceof Error ? e.error.stack : null, n = Ln();
|
|
14838
14817
|
return /* @__PURE__ */ s.jsxs(
|
|
14839
|
-
|
|
14818
|
+
fe,
|
|
14840
14819
|
{
|
|
14841
14820
|
sx: {
|
|
14842
14821
|
maxHeight: "100%",
|
|
@@ -14904,7 +14883,7 @@ const Im = (e) => {
|
|
|
14904
14883
|
]), !r.joggingStore)
|
|
14905
14884
|
return /* @__PURE__ */ s.jsx(hs, { children: /* @__PURE__ */ s.jsx(Im, { message: "Loading jogging", error: r.loadingError }) });
|
|
14906
14885
|
const { joggingStore: o } = r;
|
|
14907
|
-
return /* @__PURE__ */ s.jsx(hs, { children: /* @__PURE__ */ s.jsxs(
|
|
14886
|
+
return /* @__PURE__ */ s.jsx(hs, { children: /* @__PURE__ */ s.jsxs(fe, { flexGrow: 1, children: [
|
|
14908
14887
|
/* @__PURE__ */ s.jsx(tl, { value: o.tabIndex, onChange: o.onTabChange, children: o.tabs.map((u) => /* @__PURE__ */ s.jsx(
|
|
14909
14888
|
rl,
|
|
14910
14889
|
{
|
|
@@ -14914,7 +14893,7 @@ const Im = (e) => {
|
|
|
14914
14893
|
},
|
|
14915
14894
|
u.id
|
|
14916
14895
|
)) }),
|
|
14917
|
-
/* @__PURE__ */ s.jsxs(
|
|
14896
|
+
/* @__PURE__ */ s.jsxs(fe, { flexGrow: 1, children: [
|
|
14918
14897
|
o.currentTab.id === "cartesian" && /* @__PURE__ */ s.jsx(Qh, { store: o }),
|
|
14919
14898
|
o.currentTab.id === "joint" && /* @__PURE__ */ s.jsx(tf, { store: o }),
|
|
14920
14899
|
e.children
|
|
@@ -14923,7 +14902,7 @@ const Im = (e) => {
|
|
|
14923
14902
|
});
|
|
14924
14903
|
function hs({ children: e }) {
|
|
14925
14904
|
return /* @__PURE__ */ s.jsx(
|
|
14926
|
-
|
|
14905
|
+
fe,
|
|
14927
14906
|
{
|
|
14928
14907
|
sx: {
|
|
14929
14908
|
maxWidth: "460px",
|
|
@@ -14944,17 +14923,18 @@ function hs({ children: e }) {
|
|
|
14944
14923
|
}
|
|
14945
14924
|
);
|
|
14946
14925
|
}
|
|
14947
|
-
const Sp =
|
|
14926
|
+
const Sp = Array(6).fill(2 * Math.PI), vp = bt(G0), wp = bt(oi), Rp = bt(fh), jp = bt(mh), Cp = bt(gh), Pp = bt(Oo), Ap = bt(si), Op = bt(Nm), Lp = bt(ui);
|
|
14948
14927
|
export {
|
|
14949
|
-
|
|
14950
|
-
|
|
14951
|
-
|
|
14952
|
-
|
|
14953
|
-
|
|
14954
|
-
|
|
14955
|
-
|
|
14956
|
-
|
|
14957
|
-
|
|
14928
|
+
Pp as JoggingCartesianAxisControl,
|
|
14929
|
+
Ap as JoggingJointRotationControl,
|
|
14930
|
+
Op as JoggingPanel,
|
|
14931
|
+
jp as PresetEnvironment,
|
|
14932
|
+
Rp as Robot,
|
|
14933
|
+
Cp as SafetyZonesRenderer,
|
|
14934
|
+
wp as SupportedRobot,
|
|
14935
|
+
Lp as VelocitySlider,
|
|
14936
|
+
vp as WandelscriptEditor,
|
|
14937
|
+
Sp as defaultAxisConfig,
|
|
14958
14938
|
Vr as useAnimationFrame,
|
|
14959
14939
|
H0 as useAutorun,
|
|
14960
14940
|
qo as useMounted,
|