biblio-react 3.0.0-alpha85 → 3.0.0-alpha86

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 CHANGED
@@ -22667,17 +22667,19 @@ const MC = /* @__PURE__ */ a((e) => {
22667
22667
  source: i,
22668
22668
  enviarTodo: s,
22669
22669
  onBeforeSubmitAsistente: l = fa,
22670
- onAfterSubmitAsistente: u = fa
22671
- } = e, [d, p] = lm(!1), f = ht(e), h = ir(), g = Ci(), m = QS({ apiRef: g, source: i, enviarTodo: s }), b = "N", {
22672
- estado: y,
22673
- fichaProps: { etrs: O }
22674
- } = we(Ot), k = we(La), T = On({ etrs: O, asisEtr: k }), S = xt()("ra.action.create");
22670
+ onAfterSubmitAsistente: u = fa,
22671
+ validateAllowAdd: d
22672
+ } = e, [p, f] = lm(!1), h = ht(e), g = ir(), m = Ci(), b = QS({ apiRef: m, source: i, enviarTodo: s }), y = "N", {
22673
+ estado: O,
22674
+ fichaProps: { etrs: k }
22675
+ } = we(Ot), T = we(La), C = On({ etrs: k, asisEtr: T }), w = xt()("ra.action.create");
22675
22676
  return /* @__PURE__ */ U(un, { children: [
22676
22677
  /* @__PURE__ */ v(
22677
22678
  wr,
22678
22679
  {
22679
- onClick: /* @__PURE__ */ a((P) => {
22680
- p(!0), P.stopPropagation();
22680
+ onClick: /* @__PURE__ */ a((F) => {
22681
+ const A = d ? d(C) : !0;
22682
+ f(A === !0 ? A : !1), F.stopPropagation();
22681
22683
  }, "onClick"),
22682
22684
  children: /* @__PURE__ */ v(vl, {})
22683
22685
  }
@@ -22685,35 +22687,35 @@ const MC = /* @__PURE__ */ a((e) => {
22685
22687
  /* @__PURE__ */ v(
22686
22688
  FC,
22687
22689
  {
22688
- open: d,
22689
- onClose: /* @__PURE__ */ a((P) => {
22690
- p(!1), P.stopPropagation();
22690
+ open: p,
22691
+ onClose: /* @__PURE__ */ a((F) => {
22692
+ f(!1), F.stopPropagation();
22691
22693
  }, "onClose"),
22692
- labelEstado: S,
22694
+ labelEstado: w,
22693
22695
  label: o,
22694
- resource: f,
22695
- onSubmit: /* @__PURE__ */ a(async (P, F) => {
22696
- const A = await l(
22697
- T,
22698
- P,
22699
- b,
22700
- y
22696
+ resource: h,
22697
+ onSubmit: /* @__PURE__ */ a(async (F, A) => {
22698
+ const M = await l(
22699
+ C,
22700
+ F,
22701
+ y,
22702
+ O
22701
22703
  );
22702
- A !== !1 && (m(typeof A == "object" ? A : P, h), p(!1), u(T, P, b, y));
22704
+ M !== !1 && (b(typeof M == "object" ? M : F, g), f(!1), u(C, F, y, O));
22703
22705
  }, "handleSubmit"),
22704
22706
  children: /* @__PURE__ */ v(
22705
22707
  $C,
22706
22708
  {
22707
22709
  source: i,
22708
- form: h,
22709
- resource: f,
22710
- estado: b,
22710
+ form: g,
22711
+ resource: h,
22712
+ estado: y,
22711
22713
  editors: t,
22712
22714
  recordPadre: r || {},
22713
22715
  camposClaveFila: n,
22714
- open: d,
22716
+ open: p,
22715
22717
  setOpen: /* @__PURE__ */ a(() => {
22716
- p(!1);
22718
+ f(!1);
22717
22719
  }, "setOpen")
22718
22720
  }
22719
22721
  )