@wandelbots/wandelbots-js-react-components 1.13.3 → 1.13.4

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/index.js CHANGED
@@ -13394,9 +13394,10 @@ const pg = tn(
13394
13394
  titleId: t,
13395
13395
  ...r
13396
13396
  }, n) => /* @__PURE__ */ $.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 15, height: 17, fill: "none", ref: n, "aria-labelledby": t, ...r }, e ? /* @__PURE__ */ $.createElement("title", { id: t }, e) : null, /* @__PURE__ */ $.createElement("path", { fill: "currentColor", d: "M12.9 7.667c-.133-.534-.533-1-1-1.134L10.367 6l-.4 1.267L11.5 7.8c.067 0 .133.067.133.2l1.067 4.867a.32.32 0 0 1-.133.4l-2.267 1.8c-.267.2-.333.666-.133.933s.666.333.933.133l2.267-1.8c.533-.4.733-1.133.6-1.733zM12.5 0H1.833A1.65 1.65 0 0 0 .167 1.667v1.4c0 .866.733 1.6 1.666 1.6h10.734c.866 0 1.6-.734 1.6-1.667V1.667A1.65 1.65 0 0 0 12.5 0M1.633 12.8 2.7 8c0-.067.067-.133.133-.2l1.534-.533-.4-1.2-1.534.466c-.533.2-.933.6-1 1.134L.367 12.533c-.134.667.066 1.334.6 1.734l2.266 1.8c.267.266.734.2.934-.067s.2-.733-.134-.933l-2.266-1.8c-.134-.134-.2-.267-.134-.467" })), Ag = Zt(Cg), Pg = yt(({ store: e }) => {
13397
+ var n;
13397
13398
  const { t } = xr();
13398
- function r(n, o) {
13399
- (o === "coordsys" || o === "tool") && e.setSelectedOrientation(o);
13399
+ function r(o, a) {
13400
+ (a === "coordsys" || a === "tool") && e.setSelectedOrientation(a);
13400
13401
  }
13401
13402
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
13402
13403
  /* @__PURE__ */ s.jsxs(
@@ -13422,11 +13423,11 @@ const pg = tn(
13422
13423
  labelId: "jogging-coord-select",
13423
13424
  value: e.selectedCoordSystemId,
13424
13425
  displayEmpty: !0,
13425
- onChange: (n) => {
13426
- e.setSelectedCoordSystemId(n.target.value);
13426
+ onChange: (o) => {
13427
+ e.setSelectedCoordSystemId(o.target.value);
13427
13428
  },
13428
13429
  disabled: e.isLocked,
13429
- children: e.coordSystems.map((n) => /* @__PURE__ */ s.jsx(gn, { value: n.coordinate_system, children: n.name || n.coordinate_system }, n.coordinate_system))
13430
+ children: e.coordSystems.map((o) => /* @__PURE__ */ s.jsx(gn, { value: o.coordinate_system, children: o.name || o.coordinate_system }, o.coordinate_system))
13430
13431
  }
13431
13432
  )
13432
13433
  ] }),
@@ -13437,11 +13438,11 @@ const pg = tn(
13437
13438
  {
13438
13439
  labelId: "jogging-tcp-select",
13439
13440
  value: e.selectedTcpId,
13440
- onChange: (n) => {
13441
- e.setSelectedTcpId(n.target.value);
13441
+ onChange: (o) => {
13442
+ e.setSelectedTcpId(o.target.value);
13442
13443
  },
13443
13444
  disabled: e.isLocked,
13444
- children: e.tcps.map((n) => /* @__PURE__ */ s.jsx(gn, { value: n.id, children: n.id }, n.id))
13445
+ children: e.tcps.map((o) => /* @__PURE__ */ s.jsx(gn, { value: o.id, children: o.id }, o.id))
13445
13446
  }
13446
13447
  )
13447
13448
  ] })
@@ -13486,16 +13487,16 @@ const pg = tn(
13486
13487
  To,
13487
13488
  {
13488
13489
  labelId: "jogging-increment-select",
13489
- value: e.selectedIncrementId,
13490
- onChange: (n) => {
13490
+ value: ((n = e.activeDiscreteIncrement) == null ? void 0 : n.id) || "continuous",
13491
+ onChange: (o) => {
13491
13492
  e.setSelectedIncrementId(
13492
- n.target.value
13493
+ o.target.value
13493
13494
  );
13494
13495
  },
13495
13496
  disabled: e.isLocked,
13496
13497
  children: [
13497
13498
  /* @__PURE__ */ s.jsx(gn, { value: "continuous", children: t("Jogging.Increment.Continuous.dd") }, "continuous"),
13498
- e.discreteIncrementOptions.map((n) => /* @__PURE__ */ s.jsx(gn, { value: n.id, children: e.currentMotionType === "translate" ? `${n.mm}mm` : `${n.degrees}°` }, n.id))
13499
+ e.selectedOrientation === "tool" ? null : e.discreteIncrementOptions.map((o) => /* @__PURE__ */ s.jsx(gn, { value: o.id, children: e.currentMotionType === "translate" ? `${o.mm}mm` : `${o.degrees}°` }, o.id))
13499
13500
  ]
13500
13501
  }
13501
13502
  )
@@ -15571,7 +15572,7 @@ const O_ = ({
15571
15572
  }), []);
15572
15573
  async function n() {
15573
15574
  e.jogger.setJoggingMode(
15574
- e.selectedDiscreteIncrement ? "increment" : "cartesian",
15575
+ e.activeDiscreteIncrement ? "increment" : "cartesian",
15575
15576
  {
15576
15577
  tcpId: e.selectedTcpId,
15577
15578
  coordSystemId: e.activeCoordSystemId
@@ -15603,8 +15604,8 @@ const O_ = ({
15603
15604
  }
15604
15605
  async function i(h) {
15605
15606
  if (!e.isLocked) {
15606
- if (n(), e.selectedDiscreteIncrement)
15607
- return a(h, e.selectedDiscreteIncrement);
15607
+ if (n(), e.activeDiscreteIncrement)
15608
+ return a(h, e.activeDiscreteIncrement);
15608
15609
  h.motionType === "translate" ? await e.jogger.startTCPTranslation({
15609
15610
  axis: h.axis,
15610
15611
  direction: h.direction,
@@ -15617,7 +15618,7 @@ const O_ = ({
15617
15618
  }
15618
15619
  }
15619
15620
  async function l() {
15620
- e.isLocked || e.selectedDiscreteIncrement || await e.jogger.stop();
15621
+ e.isLocked || e.activeDiscreteIncrement || await e.jogger.stop();
15621
15622
  }
15622
15623
  const c = [
15623
15624
  {
@@ -16191,10 +16192,8 @@ class Ka {
16191
16192
  get tcpsById() {
16192
16193
  return Cn(this.tcps, (t) => t.id);
16193
16194
  }
16194
- get selectedDiscreteIncrement() {
16195
- return xa.find(
16196
- (t) => t.id === this.selectedIncrementId
16197
- );
16195
+ get activeDiscreteIncrement() {
16196
+ return this.selectedOrientation === "tool" ? void 0 : xa.find((t) => t.id === this.selectedIncrementId);
16198
16197
  }
16199
16198
  /** The selected rotation velocity converted to radians per second */
16200
16199
  get rotationVelocityRadsPerSec() {
@@ -16281,7 +16280,7 @@ const sx = tn(
16281
16280
  currentTab: u,
16282
16281
  selectedTcpId: d,
16283
16282
  activeCoordSystemId: h,
16284
- selectedDiscreteIncrement: f
16283
+ activeDiscreteIncrement: f
16285
16284
  } = r.joggingStore;
16286
16285
  if (u.id !== "cartesian" && u.id !== "joint") return;
16287
16286
  const b = {
@@ -16299,7 +16298,7 @@ const sx = tn(
16299
16298
  (a = r.joggingStore) == null ? void 0 : a.currentTab,
16300
16299
  (i = r.joggingStore) == null ? void 0 : i.selectedTcpId,
16301
16300
  (l = r.joggingStore) == null ? void 0 : l.activeCoordSystemId,
16302
- (c = r.joggingStore) == null ? void 0 : c.selectedDiscreteIncrement
16301
+ (c = r.joggingStore) == null ? void 0 : c.activeDiscreteIncrement
16303
16302
  ]), !r.joggingStore || r.loadingError)
16304
16303
  return /* @__PURE__ */ s.jsx(Ei, { children: /* @__PURE__ */ s.jsx(hl, { message: "Loading jogging", error: r.loadingError }) });
16305
16304
  const { joggingStore: o } = r;