unifyedx-storybook-new 0.2.41 → 0.2.43
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.
|
@@ -1603,9 +1603,19 @@ const zn = {
|
|
|
1603
1603
|
// From RHF's <Controller>
|
|
1604
1604
|
showSearch: g = !0
|
|
1605
1605
|
}) => {
|
|
1606
|
-
const [f, x] = L("")
|
|
1606
|
+
const [f, x] = L("");
|
|
1607
|
+
console.log("Select component - value:", a, "type:", typeof a), console.log("Select component - options:", o);
|
|
1608
|
+
const r = f === "" ? o : o.filter(
|
|
1607
1609
|
(d) => d.label.toLowerCase().includes(f.toLowerCase())
|
|
1608
|
-
), N = o.find((d) =>
|
|
1610
|
+
), N = o.find((d) => {
|
|
1611
|
+
if (typeof a == "object" && a !== null) {
|
|
1612
|
+
if (a === d) return !0;
|
|
1613
|
+
if (a.id && d.id) return d.id === a.id;
|
|
1614
|
+
if (a.value && d.value) return d.value === a.value;
|
|
1615
|
+
if (a.label && d.label) return d.label === a.label;
|
|
1616
|
+
}
|
|
1617
|
+
return d.id === a || d.value === a || d.label === a;
|
|
1618
|
+
});
|
|
1609
1619
|
return /* @__PURE__ */ e(K, { value: a, onChange: s, disabled: m, children: /* @__PURE__ */ n("div", { className: "select-wrapper", ref: u, children: [
|
|
1610
1620
|
t && /* @__PURE__ */ e("label", { className: "select-label", children: t }),
|
|
1611
1621
|
/* @__PURE__ */ n("div", { className: "select-button-container", children: [
|
|
@@ -5641,9 +5651,9 @@ function zs({
|
|
|
5641
5651
|
P[F.key] = z[F.key] || "";
|
|
5642
5652
|
}), P;
|
|
5643
5653
|
}) : b[D] = u[D];
|
|
5644
|
-
}));
|
|
5654
|
+
})), (!b.appkey || b.appkey === "") && (b.appkey = t);
|
|
5645
5655
|
let y = await Ze(A, b);
|
|
5646
|
-
if (
|
|
5656
|
+
if (y && y.status != "fail") {
|
|
5647
5657
|
p({});
|
|
5648
5658
|
const D = y.message || "Configuration has been saved successfully";
|
|
5649
5659
|
Ie.success(D), l && typeof l == "function" && l(u);
|
|
Binary file
|
|
Binary file
|