@wandelbots/wandelbots-js-react-components 2.10.3 → 2.11.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 +9 -0
- package/dist/components/safetyBar/ControllerTypeIndicator.d.ts.map +1 -0
- package/dist/components/safetyBar/IndicatorWithExplanation.d.ts +15 -0
- package/dist/components/safetyBar/IndicatorWithExplanation.d.ts.map +1 -0
- package/dist/components/safetyBar/OperationModeIndicator.d.ts +9 -0
- package/dist/components/safetyBar/OperationModeIndicator.d.ts.map +1 -0
- package/dist/components/safetyBar/SafetyBar.d.ts +11 -0
- package/dist/components/safetyBar/SafetyBar.d.ts.map +1 -0
- package/dist/components/safetyBar/SafetyStateIndicator.d.ts +9 -0
- package/dist/components/safetyBar/SafetyStateIndicator.d.ts.map +1 -0
- package/dist/components/utils/errorHandling.d.ts +1 -0
- package/dist/components/utils/errorHandling.d.ts.map +1 -1
- package/dist/index.cjs +36 -35
- 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 +4188 -3803
- package/dist/index.js.map +1 -1
- package/package.json +15 -16
- package/src/components/safetyBar/ControllerTypeIndicator.tsx +59 -0
- package/src/components/safetyBar/IndicatorWithExplanation.tsx +117 -0
- package/src/components/safetyBar/OperationModeIndicator.tsx +76 -0
- package/src/components/safetyBar/SafetyBar.tsx +43 -0
- package/src/components/safetyBar/SafetyStateIndicator.tsx +131 -0
- package/src/components/safetyBar/icons/controller-type-physical.svg +1 -0
- package/src/components/safetyBar/icons/controller-type-virtual.svg +1 -0
- package/src/components/safetyBar/icons/operation-mode-automatic.svg +1 -0
- package/src/components/safetyBar/icons/operation-mode-error.svg +1 -0
- package/src/components/safetyBar/icons/operation-mode-manual.svg +1 -0
- package/src/components/safetyBar/icons/safety-state-error.svg +1 -0
- package/src/components/safetyBar/icons/safety-state-estop.svg +1 -0
- package/src/components/safetyBar/icons/safety-state-manual-action-required.svg +1 -0
- package/src/components/safetyBar/icons/safety-state-normal.svg +1 -0
- package/src/components/safetyBar/icons/safety-state-stop.svg +1 -0
- package/src/components/utils/errorHandling.ts +4 -0
- package/src/i18n/locales/de/translations.json +27 -1
- package/src/i18n/locales/en/translations.json +27 -1
- package/src/index.ts +1 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface ControllerTypeIndicatorProps {
|
|
2
|
+
isVirtual: boolean;
|
|
3
|
+
motionGroupId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const ControllerTypeIndicator: (({ isVirtual, motionGroupId }: ControllerTypeIndicatorProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=ControllerTypeIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ControllerTypeIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/safetyBar/ControllerTypeIndicator.tsx"],"names":[],"mappings":"AAOA,UAAU,4BAA4B;IACpC,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,uBAAuB,kCACH,4BAA4B;;CA6C5D,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type TypographyProps } from "@mui/material";
|
|
2
|
+
import type { ElementType, ReactNode } from "react";
|
|
3
|
+
export type IndicatorWithExplanationProps = {
|
|
4
|
+
id: string;
|
|
5
|
+
icon: ElementType;
|
|
6
|
+
color: TypographyProps["color"];
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
name: ReactNode;
|
|
9
|
+
explanation: ReactNode;
|
|
10
|
+
literalValue?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const IndicatorWithExplanation: (({ id, icon, color, title, name, explanation, literalValue, }: IndicatorWithExplanationProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=IndicatorWithExplanation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IndicatorWithExplanation.d.ts","sourceRoot":"","sources":["../../../src/components/safetyBar/IndicatorWithExplanation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,eAAe,EACrB,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEnD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,WAAW,CAAA;IACjB,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,CAAA;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,IAAI,EAAE,SAAS,CAAA;IACf,WAAW,EAAE,SAAS,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,wBAAwB,kEAShC,6BAA6B;;CAuFjC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RobotControllerStateOperationModeEnum } from "@wandelbots/wandelbots-js";
|
|
2
|
+
interface OperationModeIndicatorProps {
|
|
3
|
+
operationMode: RobotControllerStateOperationModeEnum;
|
|
4
|
+
}
|
|
5
|
+
export declare const OperationModeIndicator: (({ operationMode }: OperationModeIndicatorProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=OperationModeIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationModeIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/safetyBar/OperationModeIndicator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,2BAA2B,CAAA;AAQtF,UAAU,2BAA2B;IACnC,aAAa,EAAE,qCAAqC,CAAA;CACrD;AAED,eAAO,MAAM,sBAAsB,uBACb,2BAA2B;;CA6DhD,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RobotControllerStateOperationModeEnum, RobotControllerStateSafetyStateEnum } from "@wandelbots/wandelbots-js";
|
|
2
|
+
export interface SafetyBarProps {
|
|
3
|
+
isVirtual: boolean;
|
|
4
|
+
motionGroupId: string;
|
|
5
|
+
operationMode: RobotControllerStateOperationModeEnum;
|
|
6
|
+
safetyState: RobotControllerStateSafetyStateEnum;
|
|
7
|
+
}
|
|
8
|
+
export declare const SafetyBar: ((props: SafetyBarProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=SafetyBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SafetyBar.d.ts","sourceRoot":"","sources":["../../../src/components/safetyBar/SafetyBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,qCAAqC,EACrC,mCAAmC,EACpC,MAAM,2BAA2B,CAAA;AAOlC,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,qCAAqC,CAAA;IACpD,WAAW,EAAE,mCAAmC,CAAA;CACjD;AAED,eAAO,MAAM,SAAS,WACH,cAAc;;CAuBhC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RobotControllerStateSafetyStateEnum } from "@wandelbots/wandelbots-js";
|
|
2
|
+
interface SafetyStateIndicatorProps {
|
|
3
|
+
safetyState: RobotControllerStateSafetyStateEnum;
|
|
4
|
+
}
|
|
5
|
+
export declare const SafetyStateIndicator: (({ safetyState }: SafetyStateIndicatorProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=SafetyStateIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SafetyStateIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/safetyBar/SafetyStateIndicator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,2BAA2B,CAAA;AAWpF,UAAU,yBAAyB;IACjC,WAAW,EAAE,mCAAmC,CAAA;CACjD;AAED,eAAO,MAAM,oBAAoB,qBACb,yBAAyB;;CAiH5C,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function delay(ms: number): Promise<unknown>;
|
|
2
2
|
export declare function makeShortErrorMessage(err: unknown): string;
|
|
3
|
+
export declare function assertUnreachable(x: never, msg: string): never;
|
|
3
4
|
export declare function makeErrorMessage(err: unknown): string;
|
|
4
5
|
//# sourceMappingURL=errorHandling.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorHandling.d.ts","sourceRoot":"","sources":["../../../src/components/utils/errorHandling.ts"],"names":[],"mappings":"AAGA,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,oBAE/B;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,UAUjD;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,UAU5C"}
|
|
1
|
+
{"version":3,"file":"errorHandling.d.ts","sourceRoot":"","sources":["../../../src/components/utils/errorHandling.ts"],"names":[],"mappings":"AAGA,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,oBAE/B;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,UAUjD;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,GAAG,KAAK,CAE9D;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,UAU5C"}
|