@gisce/react-ooui 2.45.0-alpha.1 → 2.46.0-alpha.1
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
|
@@ -13396,23 +13396,33 @@ const Ig = (e) => {
|
|
|
13396
13396
|
}
|
|
13397
13397
|
);
|
|
13398
13398
|
}, Og = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Tg, { ooui: e.ooui }) }), Ag = (e) => /* @__PURE__ */ i(_e, { ...e, children: /* @__PURE__ */ i(Il, {}) }), Fg = (e) => {
|
|
13399
|
-
const { ooui: t } = e,
|
|
13400
|
-
|
|
13401
|
-
|
|
13402
|
-
|
|
13403
|
-
|
|
13399
|
+
const { ooui: t } = e, n = ee(He);
|
|
13400
|
+
let { title: r, text: o, alertType: s, icon: a } = t;
|
|
13401
|
+
if (t.fieldType && t.id) {
|
|
13402
|
+
const u = n.getFieldValue(t.id);
|
|
13403
|
+
typeof u == "object" ? {
|
|
13404
|
+
title: r = t.title,
|
|
13405
|
+
text: o = t.text,
|
|
13406
|
+
alertType: s = t.alertType,
|
|
13407
|
+
icon: a = t.icon
|
|
13408
|
+
} = u : console.log(`field value for ${t.id} is not an object`);
|
|
13409
|
+
}
|
|
13410
|
+
function l(u) {
|
|
13411
|
+
if (u) {
|
|
13412
|
+
const f = ut(u);
|
|
13413
|
+
return f && /* @__PURE__ */ i(f, {});
|
|
13404
13414
|
}
|
|
13405
13415
|
}
|
|
13406
|
-
const
|
|
13416
|
+
const c = t.buttons.map((u) => /* @__PURE__ */ i(lo, { ooui: u }, u.id));
|
|
13407
13417
|
return /* @__PURE__ */ i(
|
|
13408
13418
|
rt,
|
|
13409
13419
|
{
|
|
13410
|
-
message: /* @__PURE__ */ i(Tn, { content:
|
|
13411
|
-
description: /* @__PURE__ */ i(Tn, { content:
|
|
13412
|
-
type:
|
|
13420
|
+
message: /* @__PURE__ */ i(Tn, { content: r }),
|
|
13421
|
+
description: /* @__PURE__ */ i(Tn, { content: o }),
|
|
13422
|
+
type: s,
|
|
13413
13423
|
showIcon: !0,
|
|
13414
|
-
action:
|
|
13415
|
-
icon: a
|
|
13424
|
+
action: c ? /* @__PURE__ */ i(Qe, { direction: "vertical", children: c }) : null,
|
|
13425
|
+
icon: l(a)
|
|
13416
13426
|
}
|
|
13417
13427
|
);
|
|
13418
13428
|
}, { Content: Rg } = Pi, { Title: _g } = Dt;
|