@wandelbots/wandelbots-js-react-components 1.33.0 → 1.33.2
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/LoadingButton.d.ts +1 -1
- package/dist/components/jogging/JoggingCartesianAxisControl.d.ts +5 -3
- package/dist/components/jogging/JoggingCartesianAxisControl.d.ts.map +1 -1
- package/dist/components/jogging/JoggingCartesianTab.d.ts.map +1 -1
- package/dist/components/jogging/JoggingStore.d.ts +12 -3
- package/dist/components/jogging/JoggingStore.d.ts.map +1 -1
- package/dist/index.cjs +25 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1026 -990
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/jogging/JoggingCartesianAxisControl.tsx +63 -14
- package/src/components/jogging/JoggingCartesianTab.tsx +44 -21
- package/src/components/jogging/JoggingStore.ts +14 -4
- package/src/icons/rotation.svg +3 -1
- package/src/themes/createDarkTheme.ts +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Button with a loading state to indicate a task is being processed */
|
|
2
2
|
export declare const LoadingButton: import("react").ForwardRefExoticComponent<Omit<import("@mui/lab").LoadingButtonOwnProps & Omit<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes">, "classes"> & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
-
}, "children" | "color" | "size" | "className" | "style" | "tabIndex" | "classes" | "sx" | "disabled" | "href" | "action" | "
|
|
4
|
+
}, "children" | "color" | "size" | "className" | "style" | "tabIndex" | "loading" | "classes" | "sx" | "disabled" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "variant" | "disableElevation" | "endIcon" | "fullWidth" | "startIcon" | "loadingIndicator" | "loadingPosition">, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
//# sourceMappingURL=LoadingButton.d.ts.map
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import Stack from "@mui/material/Stack";
|
|
2
2
|
import React, { type ReactNode } from "react";
|
|
3
3
|
import type { AxisControlComponentColors } from "../../themes/themeTypes";
|
|
4
|
-
type
|
|
4
|
+
import type { JoggingDirection } from "./JoggingStore";
|
|
5
5
|
type JoggingCartesianAxisControlProps = {
|
|
6
6
|
colors?: AxisControlComponentColors;
|
|
7
7
|
label: ReactNode;
|
|
8
8
|
getDisplayedValue: () => string;
|
|
9
|
-
startJogging: (direction:
|
|
9
|
+
startJogging: (direction: JoggingDirection) => void;
|
|
10
10
|
stopJogging: () => void;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
+
/** If set, the corresponding button will be rendered in the pressed state */
|
|
13
|
+
activeJoggingDirection?: JoggingDirection;
|
|
12
14
|
} & React.ComponentProps<typeof Stack>;
|
|
13
15
|
/** A input widget to control an individual cartesian axis */
|
|
14
|
-
export declare const JoggingCartesianAxisControl: (({ colors, label, getDisplayedValue, startJogging, stopJogging, disabled, ...rest }: JoggingCartesianAxisControlProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
16
|
+
export declare const JoggingCartesianAxisControl: (({ colors, label, getDisplayedValue, startJogging, stopJogging, disabled, activeJoggingDirection, ...rest }: JoggingCartesianAxisControlProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
15
17
|
displayName: string;
|
|
16
18
|
};
|
|
17
19
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingCartesianAxisControl.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingCartesianAxisControl.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,qBAAqB,CAAA;AAEvC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"JoggingCartesianAxisControl.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingCartesianAxisControl.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,qBAAqB,CAAA;AAEvC,OAAO,KAAK,EAAE,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAI1E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAA;AAEzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,KAAK,gCAAgC,GAAG;IACtC,MAAM,CAAC,EAAE,0BAA0B,CAAA;IACnC,KAAK,EAAE,SAAS,CAAA;IAChB,iBAAiB,EAAE,MAAM,MAAM,CAAA;IAC/B,YAAY,EAAE,CAAC,SAAS,EAAE,gBAAgB,KAAK,IAAI,CAAA;IACnD,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6EAA6E;IAC7E,sBAAsB,CAAC,EAAE,gBAAgB,CAAA;CAC1C,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAA;AAEtC,6DAA6D;AAC7D,eAAO,MAAM,2BAA2B,gHAWjC,gCAAgC;;CAiMtC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingCartesianTab.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingCartesianTab.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"JoggingCartesianTab.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingCartesianTab.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAIV,YAAY,EACb,MAAM,gBAAgB,CAAA;AAUvB,eAAO,MAAM,mBAAmB,0BAI3B;IACD,KAAK,EAAE,YAAY,CAAA;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;;CAoQF,CAAA"}
|
|
@@ -12,11 +12,17 @@ declare const incrementOptions: readonly [{
|
|
|
12
12
|
mm: number;
|
|
13
13
|
degrees: number;
|
|
14
14
|
}[]];
|
|
15
|
+
export type JoggingAxis = "x" | "y" | "z";
|
|
16
|
+
export type JoggingDirection = "+" | "-";
|
|
15
17
|
export type DiscreteIncrementOption = (typeof discreteIncrementOptions)[number];
|
|
16
18
|
export type IncrementOption = (typeof incrementOptions)[number];
|
|
17
19
|
export type IncrementOptionId = IncrementOption["id"];
|
|
18
20
|
export declare const ORIENTATION_IDS: string[];
|
|
19
21
|
export type OrientationId = (typeof ORIENTATION_IDS)[number];
|
|
22
|
+
export type IncrementJogInProgress = {
|
|
23
|
+
direction: JoggingDirection;
|
|
24
|
+
axis: JoggingAxis;
|
|
25
|
+
};
|
|
20
26
|
export declare class JoggingStore {
|
|
21
27
|
readonly jogger: JoggerConnection;
|
|
22
28
|
readonly motionGroupSpec: MotionGroupSpecification;
|
|
@@ -63,8 +69,11 @@ export declare class JoggingStore {
|
|
|
63
69
|
* around the TCP.
|
|
64
70
|
*/
|
|
65
71
|
selectedCartesianMotionType: "translate" | "rotate";
|
|
66
|
-
/**
|
|
67
|
-
|
|
72
|
+
/**
|
|
73
|
+
* If the jogger is busy running an incremental jog, this will be set
|
|
74
|
+
* with the information about the motion
|
|
75
|
+
*/
|
|
76
|
+
incrementJogInProgress: IncrementJogInProgress | null;
|
|
68
77
|
/** How fast the robot goes when doing cartesian translate jogging in mm/s */
|
|
69
78
|
translationVelocityMmPerSec: number;
|
|
70
79
|
/** How fast the robot goes when doing cartesian or joint rotation jogging in °/s */
|
|
@@ -174,7 +183,7 @@ export declare class JoggingStore {
|
|
|
174
183
|
setSelectedTcpId(id: string): void;
|
|
175
184
|
setSelectedOrientation(orientation: OrientationId): void;
|
|
176
185
|
setSelectedIncrementId(id: IncrementOptionId): void;
|
|
177
|
-
|
|
186
|
+
setCurrentIncrementJog(incrementJog: IncrementJogInProgress | null): void;
|
|
178
187
|
setVelocityFromSlider(velocity: number): void;
|
|
179
188
|
setSelectedCartesianMotionType(type: "translate" | "rotate"): void;
|
|
180
189
|
/** Lock the UI until the given async callback resolves */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoggingStore.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,wBAAwB,EACxB,QAAQ,EACT,MAAM,2BAA2B,CAAA;AAKlC,OAAO,EAIL,KAAK,iBAAiB,EACvB,MAAM,MAAM,CAAA;AAEb,QAAA,MAAM,wBAAwB;;;;GAK7B,CAAA;AAED,QAAA,MAAM,gBAAgB;;;;;;IAGZ,CAAA;AAEV,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAA;AAC/E,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAC/D,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,IAAI,CAAC,CAAA;AAErD,eAAO,MAAM,eAAe,UAAuB,CAAA;AACnD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAE5D,qBAAa,YAAY;
|
|
1
|
+
{"version":3,"file":"JoggingStore.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,wBAAwB,EACxB,QAAQ,E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