@gisce/react-ooui 2.33.0-alpha.1 → 2.34.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/react-ooui.es.js
CHANGED
|
@@ -12585,13 +12585,13 @@ const Vh = ht(_h), Dh = (e) => {
|
|
|
12585
12585
|
const { ooui: t } = e, { required: n } = t;
|
|
12586
12586
|
return /* @__PURE__ */ i(Re, { required: n, type: "any", ...e, children: /* @__PURE__ */ i(Bh, { ...e }) });
|
|
12587
12587
|
}, Bh = (e) => {
|
|
12588
|
-
const { ooui: t, value: n } = e, { selectionValues: r, errorField: o } = t,
|
|
12589
|
-
let
|
|
12590
|
-
return o && (
|
|
12588
|
+
const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: s } = t, a = re(He), l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n);
|
|
12589
|
+
let u = "process", f = "";
|
|
12590
|
+
return o && (f = a.getFieldValue(o), f && (u = "error")), s && c + 1 == l.length && (u = "finish"), /* @__PURE__ */ i(Co, { current: c, status: u, children: l.map((d, h) => /* @__PURE__ */ i(
|
|
12591
12591
|
Co.Step,
|
|
12592
12592
|
{
|
|
12593
|
-
title:
|
|
12594
|
-
description:
|
|
12593
|
+
title: d[1],
|
|
12594
|
+
description: h === c && u === "error" ? f : null
|
|
12595
12595
|
}
|
|
12596
12596
|
)) });
|
|
12597
12597
|
}, Hh = (e) => {
|