@gisce/react-ooui 2.65.0-alpha.3 → 2.65.0-alpha.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.
@@ -14976,7 +14976,9 @@ const Ay = _t(Iy), Fy = (e) => {
14976
14976
  const { ooui: t } = e, { required: n } = t;
14977
14977
  return /* @__PURE__ */ i(Pe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i($y, { ...e }) });
14978
14978
  }, $y = (e) => {
14979
- const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: a } = t, s = ne(Ge), l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n);
14979
+ const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: a } = t, s = ne(Ge);
14980
+ let l = [], c;
14981
+ t.fieldType === "json" ? (l = n.map((d) => [d.title, d.title]), c = n.findIndex((d) => d.active)) : (l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n));
14980
14982
  let u = "process", m = "";
14981
14983
  return o && (m = s.getFieldValue(o), m && (u = "error")), a && c + 1 == l.length && (u = "finish"), /* @__PURE__ */ i(ti, { current: c, status: u, children: l.map((d, f) => /* @__PURE__ */ i(
14982
14984
  ti.Step,