@gisce/react-ooui 2.65.0 → 2.66.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.
@@ -14269,7 +14269,9 @@ const fy = xt(uy), my = (e) => {
14269
14269
  const { ooui: t } = e, { required: n } = t;
14270
14270
  return /* @__PURE__ */ i(Fe, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Cy, { ...e }) });
14271
14271
  }, Cy = (e) => {
14272
- const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: a } = t, s = ee(He), l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n);
14272
+ const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: a } = t, s = ee(He);
14273
+ let l = [], c;
14274
+ 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));
14273
14275
  let u = "process", f = "";
14274
14276
  return o && (f = s.getFieldValue(o), f && (u = "error")), a && c + 1 == l.length && (u = "finish"), /* @__PURE__ */ i(qo, { current: c, status: u, children: l.map((d, m) => /* @__PURE__ */ i(
14275
14277
  qo.Step,