biblio-react 3.0.0-alpha125 → 3.0.0-alpha127
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/index.js +31 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9756,14 +9756,14 @@ const OD = /^(\d+)(th|st|nd|rd)?/i, SD = /\d+/i, CD = {
|
|
|
9756
9756
|
}
|
|
9757
9757
|
}
|
|
9758
9758
|
}), "getClassesForm"), JC = /* @__PURE__ */ a((t) => {
|
|
9759
|
-
const e = fp({ borrar: !0, ...t });
|
|
9759
|
+
const { deleteButton: e = !0 } = t, r = fp({ borrar: !0, ...t });
|
|
9760
9760
|
return /* @__PURE__ */ y(Zm, { ...t, children: /* @__PURE__ */ W("div", { className: pP.defaultToolbar, children: [
|
|
9761
9761
|
/* @__PURE__ */ y(Dl, {}),
|
|
9762
|
-
/* @__PURE__ */ y(
|
|
9762
|
+
e && /* @__PURE__ */ y(
|
|
9763
9763
|
p_,
|
|
9764
9764
|
{
|
|
9765
9765
|
resource: t.resource,
|
|
9766
|
-
validateDelete:
|
|
9766
|
+
validateDelete: r
|
|
9767
9767
|
}
|
|
9768
9768
|
)
|
|
9769
9769
|
] }) });
|
|
@@ -25641,19 +25641,20 @@ const Qk = /* @__PURE__ */ a((t) => {
|
|
|
25641
25641
|
), m = Sr(
|
|
25642
25642
|
() => ({
|
|
25643
25643
|
estado: p,
|
|
25644
|
-
initialValues: h,
|
|
25644
|
+
initialValues: h || {},
|
|
25645
|
+
// 🔥 Nunca undefined o null, sino, no renderiza nada
|
|
25645
25646
|
isLoading: g,
|
|
25646
25647
|
fichaProps: o
|
|
25647
25648
|
}),
|
|
25648
25649
|
[h, g, o, p]
|
|
25649
25650
|
);
|
|
25650
25651
|
return Ge(() => {
|
|
25651
|
-
r
|
|
25652
|
+
r ? g || u.getFichaConfig(d, { estado: "N" }).then((x) => {
|
|
25652
25653
|
s(x.data);
|
|
25653
|
-
}).catch(() => {
|
|
25654
|
-
s({});
|
|
25655
|
-
});
|
|
25656
|
-
}, [
|
|
25654
|
+
}).catch((x) => {
|
|
25655
|
+
i === null && s({});
|
|
25656
|
+
}) : s({});
|
|
25657
|
+
}, [g, r]), r && i === null ? /* @__PURE__ */ y(cs, { loadingPrimary: "", loadingSecondary: "" }) : /* @__PURE__ */ y(Kg, { value: m, children: /* @__PURE__ */ y(Vi.Provider, { value: i, children: e }) });
|
|
25657
25658
|
}, "CreateChildren"), m5 = /* @__PURE__ */ a((t) => {
|
|
25658
25659
|
const {
|
|
25659
25660
|
useFormulario: e,
|
|
@@ -28273,17 +28274,17 @@ const J3 = /* @__PURE__ */ a(({
|
|
|
28273
28274
|
)
|
|
28274
28275
|
] });
|
|
28275
28276
|
}, "DisabledWrapper"), Dte = /* @__PURE__ */ a((t) => {
|
|
28276
|
-
const { children: e,
|
|
28277
|
-
return
|
|
28277
|
+
const { children: e, deleteButton: r = !0, ...n } = t, { initialValues: o, fichaProps: { config: i = {} } = {} } = wt(), s = fp(t);
|
|
28278
|
+
return o ? /* @__PURE__ */ y(sk, { children: /* @__PURE__ */ y(dE, { children: /* @__PURE__ */ W(
|
|
28278
28279
|
RP,
|
|
28279
28280
|
{
|
|
28280
28281
|
mode: "onBlur",
|
|
28281
|
-
onSubmit:
|
|
28282
|
-
defaultValues:
|
|
28282
|
+
onSubmit: s,
|
|
28283
|
+
defaultValues: o,
|
|
28283
28284
|
component: uE,
|
|
28284
|
-
toolbar: /* @__PURE__ */ y(JC, {}),
|
|
28285
|
-
...
|
|
28286
|
-
...
|
|
28285
|
+
toolbar: /* @__PURE__ */ y(JC, { deleteButton: r }),
|
|
28286
|
+
...n,
|
|
28287
|
+
...i,
|
|
28287
28288
|
children: [
|
|
28288
28289
|
e,
|
|
28289
28290
|
/* @__PURE__ */ y(QC, {})
|
|
@@ -30755,20 +30756,25 @@ const SH = /* @__PURE__ */ a(({
|
|
|
30755
30756
|
warnWhenUnsavedChanges: v,
|
|
30756
30757
|
...x
|
|
30757
30758
|
}) => x, "sanitizeRestProps"), Hte = /* @__PURE__ */ a((t) => {
|
|
30758
|
-
const {
|
|
30759
|
-
|
|
30759
|
+
const {
|
|
30760
|
+
children: e,
|
|
30761
|
+
syncWithLocation: r = !1,
|
|
30762
|
+
deleteButton: n = !0,
|
|
30763
|
+
...o
|
|
30764
|
+
} = t, { initialValues: i, fichaProps: { config: s = {} } = {} } = wt(), l = fp(t);
|
|
30765
|
+
return i ? /* @__PURE__ */ y(sk, { children: /* @__PURE__ */ y(dE, { children: /* @__PURE__ */ W(
|
|
30760
30766
|
TE,
|
|
30761
30767
|
{
|
|
30762
30768
|
mode: "onBlur",
|
|
30763
|
-
syncWithLocation:
|
|
30764
|
-
onSubmit:
|
|
30765
|
-
defaultValues:
|
|
30769
|
+
syncWithLocation: r,
|
|
30770
|
+
onSubmit: l,
|
|
30771
|
+
defaultValues: i,
|
|
30766
30772
|
component: uE,
|
|
30767
|
-
toolbar: /* @__PURE__ */ y(JC, {}),
|
|
30768
|
-
...
|
|
30769
|
-
...
|
|
30773
|
+
toolbar: /* @__PURE__ */ y(JC, { deleteButton: n }),
|
|
30774
|
+
...o,
|
|
30775
|
+
...s,
|
|
30770
30776
|
children: [
|
|
30771
|
-
|
|
30777
|
+
e,
|
|
30772
30778
|
/* @__PURE__ */ y(QC, {})
|
|
30773
30779
|
]
|
|
30774
30780
|
}
|