biblio-react 3.0.0-alpha143 → 3.0.0-alpha144

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
@@ -33233,49 +33233,51 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
33233
33233
  all: !0,
33234
33234
  none: !1
33235
33235
  }, X6 = /* @__PURE__ */ a((t) => String(t) === t ? t === "" ? "Ninguno" : "Selección (1)" : !t || t != null && t.all ? "Todos" : t != null && t.none || t.seleccion.length === 0 ? "Ninguno" : `Selección (${t.seleccion.split(",").length})`, "format"), Z6 = /* @__PURE__ */ a((t) => t, "parse"), ire = /* @__PURE__ */ a((t) => {
33236
- const {
33237
- allowNone: e = !0,
33238
- allowAll: r = !0,
33239
- source: n,
33240
- onChange: o
33241
- } = t, [i] = kS({ resource: "form_224" }), [s, l] = De(!1), u = dr(), { estado: d, fichaProps: p = {} } = Ot(), f = ot(ji), h = Ni(!1), {
33242
- hidden: m,
33243
- propsContenido: { readOnly: g, sx: b, label: v = "Funcionarios", ...x }
33244
- } = pr(t), { [n]: T = {}, etrs: k } = p, C = wn({ ...t, etrs: k, asisEtr: f }), S = T.onChange === void 0 ? o : T.onChange;
33236
+ const { source: e, onChange: r } = t, [n] = kS({ resource: "form_224" }), [o, i] = De(!1), s = dr(), { estado: l, fichaProps: u = {} } = Ot(), d = ot(ji), p = Ni(!1), {
33237
+ hidden: f,
33238
+ propsContenido: {
33239
+ readOnly: h,
33240
+ sx: m,
33241
+ label: g = "Funcionarios",
33242
+ allowNone: b = !0,
33243
+ allowAll: v = !0,
33244
+ ...x
33245
+ }
33246
+ } = pr(t), { [e]: T = {}, etrs: k } = u, C = wn({ ...t, etrs: k, asisEtr: d }), S = T.onChange === void 0 ? r : T.onChange;
33245
33247
  qe(() => {
33246
- h.current || (setTimeout(() => {
33247
- u.setValue(n, Q6);
33248
- }, 0), h.current = !0);
33249
- }, [u, n]);
33248
+ p.current || (setTimeout(() => {
33249
+ s.setValue(e, Q6);
33250
+ }, 0), p.current = !0);
33251
+ }, [s, e]);
33250
33252
  const w = Ge(() => {
33251
- l(!1);
33252
- }, [l]), M = /* @__PURE__ */ a((I, F) => {
33253
- l(!1), u.setValue(n, {
33254
- seleccion: i.join(",").replaceAll("funnro=", ""),
33253
+ i(!1);
33254
+ }, [i]), M = /* @__PURE__ */ a((I, F) => {
33255
+ i(!1), s.setValue(e, {
33256
+ seleccion: n.join(",").replaceAll("funnro=", ""),
33255
33257
  all: !1,
33256
33258
  none: !1
33257
- }), S && S(C, d, I);
33259
+ }), S && S(C, l, I);
33258
33260
  }, "handleConfirm"), R = /* @__PURE__ */ a((I) => {
33259
- u.setValue(n, {
33261
+ s.setValue(e, {
33260
33262
  seleccion: "",
33261
33263
  all: !1,
33262
33264
  none: !0
33263
- }), S && S(C, d, I);
33265
+ }), S && S(C, l, I);
33264
33266
  }, "handleNinguno"), P = /* @__PURE__ */ a((I) => {
33265
- u.setValue(n, {
33267
+ s.setValue(e, {
33266
33268
  seleccion: "",
33267
33269
  all: !0,
33268
33270
  none: !1
33269
- }), S && S(C, d, I);
33271
+ }), S && S(C, l, I);
33270
33272
  }, "handleTodos");
33271
- return m ? null : /* @__PURE__ */ W(Qr, { children: [
33273
+ return f ? null : /* @__PURE__ */ W(Qr, { children: [
33272
33274
  /* @__PURE__ */ y(
33273
33275
  st,
33274
33276
  {
33275
33277
  display: "flex",
33276
33278
  alignItems: "center",
33277
33279
  sx: {
33278
- ...b,
33280
+ ...m,
33279
33281
  display: "inline-flex",
33280
33282
  width: { xs: "100%", md: "auto" }
33281
33283
  },
@@ -33283,30 +33285,30 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
33283
33285
  ho,
33284
33286
  {
33285
33287
  ...x,
33286
- source: n,
33287
- label: v,
33288
+ source: e,
33289
+ label: g,
33288
33290
  readOnly: !0,
33289
33291
  parse: Z6,
33290
33292
  format: X6,
33291
33293
  helperText: !1,
33292
33294
  InputProps: {
33293
33295
  endAdornment: /* @__PURE__ */ W(Qr, { children: [
33294
- e && /* @__PURE__ */ y(
33296
+ b && /* @__PURE__ */ y(
33295
33297
  Nr,
33296
33298
  {
33297
33299
  onClick: R,
33298
- disabled: g,
33300
+ disabled: h,
33299
33301
  "aria-label": "Ninguno",
33300
33302
  size: "small",
33301
33303
  title: "Ninguno",
33302
33304
  children: /* @__PURE__ */ y(_b, {})
33303
33305
  }
33304
33306
  ),
33305
- r && /* @__PURE__ */ y(
33307
+ v && /* @__PURE__ */ y(
33306
33308
  Nr,
33307
33309
  {
33308
33310
  onClick: P,
33309
- disabled: g,
33311
+ disabled: h,
33310
33312
  "aria-label": "Todos",
33311
33313
  size: "small",
33312
33314
  title: "Todos",
@@ -33316,8 +33318,8 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
33316
33318
  /* @__PURE__ */ y(
33317
33319
  Nr,
33318
33320
  {
33319
- onClick: /* @__PURE__ */ a((I) => l(!0), "onClick"),
33320
- disabled: g,
33321
+ onClick: /* @__PURE__ */ a((I) => i(!0), "onClick"),
33322
+ disabled: h,
33321
33323
  "aria-label": "Selección",
33322
33324
  size: "small",
33323
33325
  title: "Selección",
@@ -33333,8 +33335,8 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
33333
33335
  /* @__PURE__ */ y(
33334
33336
  J6,
33335
33337
  {
33336
- isOpen: s,
33337
- title: `Selección de ${v}`,
33338
+ isOpen: o,
33339
+ title: `Selección de ${g}`,
33338
33340
  onConfirm: M,
33339
33341
  onClose: w
33340
33342
  }
@@ -56835,6 +56837,8 @@ export {
56835
56837
  jte as MenuButton,
56836
56838
  zte as MultiTextField,
56837
56839
  tre as Password,
56840
+ WC as ProgressContext,
56841
+ ec as ProgressProvider,
56838
56842
  rre as RadioButton,
56839
56843
  nre as RadioButtonManual,
56840
56844
  h4 as RefreshButton,
@@ -56889,7 +56893,6 @@ export {
56889
56893
  Mte as useEtrActions,
56890
56894
  Ot as useFicha,
56891
56895
  pk as useFieldController,
56892
- ss as useFormProgress,
56893
56896
  hp as useFormSubmit,
56894
56897
  uk as useFormToolbar,
56895
56898
  S_ as useGetJson,