biblio-react 3.0.0-alpha142 → 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
@@ -32905,44 +32905,53 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
32905
32905
  all: !0,
32906
32906
  none: !1
32907
32907
  }, H6 = /* @__PURE__ */ a((t) => !t || t != null && t.all ? "Todos" : t != null && t.none || t.seleccion.length === 0 ? "Ninguno" : `Selección (${t.seleccion.split(",").length})`, "format$1"), W6 = /* @__PURE__ */ a((t) => t, "parse$1"), ore = /* @__PURE__ */ a((t) => {
32908
- const { asistant: e, asistantResource: r, source: n } = t, [o, i] = De(!1), s = Ni(!1), {
32909
- hidden: l,
32910
- propsContenido: { readOnly: u, label: d, sx: p, onChange: f, ...h }
32908
+ const [e, r] = De(!1), n = Ni(!1), {
32909
+ hidden: o,
32910
+ propsContenido: {
32911
+ readOnly: i,
32912
+ label: s,
32913
+ sx: l,
32914
+ onChange: u,
32915
+ asistant: d,
32916
+ asistantResource: p,
32917
+ source: f,
32918
+ ...h
32919
+ }
32911
32920
  } = pr(t), m = dr();
32912
32921
  qe(() => {
32913
- s.current || (setTimeout(() => {
32914
- m.setValue(n, z6);
32915
- }, 0), s.current = !0);
32916
- }, [m, n]);
32922
+ n.current || (setTimeout(() => {
32923
+ m.setValue(f, z6);
32924
+ }, 0), n.current = !0);
32925
+ }, [m, f]);
32917
32926
  const g = Ge(() => {
32918
- i(!1);
32919
- }, [i]), b = /* @__PURE__ */ a((T, k) => {
32920
- i(!1), m.setValue(n, {
32927
+ r(!1);
32928
+ }, [r]), b = /* @__PURE__ */ a((T, k) => {
32929
+ r(!1), m.setValue(f, {
32921
32930
  seleccion: k.join(","),
32922
32931
  all: !1,
32923
32932
  none: !1
32924
- }), f(T);
32933
+ }), u(T);
32925
32934
  }, "handleConfirm"), v = /* @__PURE__ */ a((T) => {
32926
- m.setValue(n, {
32935
+ m.setValue(f, {
32927
32936
  seleccion: "",
32928
32937
  all: !1,
32929
32938
  none: !0
32930
- }), f(T);
32939
+ }), u(T);
32931
32940
  }, "handleNinguno"), x = /* @__PURE__ */ a((T) => {
32932
- m.setValue(n, {
32941
+ m.setValue(f, {
32933
32942
  seleccion: "",
32934
32943
  all: !0,
32935
32944
  none: !1
32936
- }), f(T);
32945
+ }), u(T);
32937
32946
  }, "handleTodos");
32938
- return l ? null : /* @__PURE__ */ W(Qr, { children: [
32947
+ return o ? null : /* @__PURE__ */ W(Qr, { children: [
32939
32948
  /* @__PURE__ */ y(
32940
32949
  st,
32941
32950
  {
32942
32951
  display: "flex",
32943
32952
  alignItems: "center",
32944
32953
  sx: {
32945
- ...p,
32954
+ ...l,
32946
32955
  display: "inline-flex",
32947
32956
  width: { xs: "100%", md: "auto" }
32948
32957
  },
@@ -32950,8 +32959,8 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
32950
32959
  ho,
32951
32960
  {
32952
32961
  ...h,
32953
- source: n,
32954
- label: d,
32962
+ source: f,
32963
+ label: s,
32955
32964
  readOnly: !0,
32956
32965
  parse: W6,
32957
32966
  format: H6,
@@ -32962,7 +32971,7 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
32962
32971
  Nr,
32963
32972
  {
32964
32973
  onClick: v,
32965
- disabled: u,
32974
+ disabled: i,
32966
32975
  "aria-label": "Ninguno",
32967
32976
  size: "small",
32968
32977
  title: "Ninguno",
@@ -32973,7 +32982,7 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
32973
32982
  Nr,
32974
32983
  {
32975
32984
  onClick: x,
32976
- disabled: u,
32985
+ disabled: i,
32977
32986
  "aria-label": "Todos",
32978
32987
  size: "small",
32979
32988
  title: "Todos",
@@ -32983,8 +32992,8 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
32983
32992
  /* @__PURE__ */ y(
32984
32993
  Nr,
32985
32994
  {
32986
- onClick: /* @__PURE__ */ a((T) => i(!0), "onClick"),
32987
- disabled: u,
32995
+ onClick: /* @__PURE__ */ a((T) => r(!0), "onClick"),
32996
+ disabled: i,
32988
32997
  "aria-label": "Selección",
32989
32998
  size: "small",
32990
32999
  title: "Selección",
@@ -33000,17 +33009,17 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
33000
33009
  /* @__PURE__ */ y(
33001
33010
  V6,
33002
33011
  {
33003
- isOpen: o,
33004
- title: `Selección de ${d}`,
33005
- contentResource: r,
33006
- content: O.createElement(e, {
33012
+ isOpen: e,
33013
+ title: `Selección de ${s}`,
33014
+ contentResource: p,
33015
+ content: O.createElement(d, {
33007
33016
  panel: {
33008
33017
  hasCreate: !1,
33009
33018
  exporter: !1,
33010
33019
  actions: /* @__PURE__ */ y(b4, {}),
33011
33020
  hasSeleccionMultiple: !0,
33012
33021
  chkSeleccion: !0,
33013
- resource: r
33022
+ resource: p
33014
33023
  },
33015
33024
  config: {
33016
33025
  actionButtons: !1,
@@ -33224,49 +33233,51 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
33224
33233
  all: !0,
33225
33234
  none: !1
33226
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) => {
33227
- const {
33228
- allowNone: e = !0,
33229
- allowAll: r = !0,
33230
- source: n,
33231
- onChange: o
33232
- } = t, [i] = kS({ resource: "form_224" }), [s, l] = De(!1), u = dr(), { estado: d, fichaProps: p = {} } = Ot(), f = ot(ji), h = Ni(!1), {
33233
- hidden: m,
33234
- propsContenido: { readOnly: g, sx: b, label: v = "Funcionarios", ...x }
33235
- } = 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;
33236
33247
  qe(() => {
33237
- h.current || (setTimeout(() => {
33238
- u.setValue(n, Q6);
33239
- }, 0), h.current = !0);
33240
- }, [u, n]);
33248
+ p.current || (setTimeout(() => {
33249
+ s.setValue(e, Q6);
33250
+ }, 0), p.current = !0);
33251
+ }, [s, e]);
33241
33252
  const w = Ge(() => {
33242
- l(!1);
33243
- }, [l]), M = /* @__PURE__ */ a((I, F) => {
33244
- l(!1), u.setValue(n, {
33245
- 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=", ""),
33246
33257
  all: !1,
33247
33258
  none: !1
33248
- }), S && S(C, d, I);
33259
+ }), S && S(C, l, I);
33249
33260
  }, "handleConfirm"), R = /* @__PURE__ */ a((I) => {
33250
- u.setValue(n, {
33261
+ s.setValue(e, {
33251
33262
  seleccion: "",
33252
33263
  all: !1,
33253
33264
  none: !0
33254
- }), S && S(C, d, I);
33265
+ }), S && S(C, l, I);
33255
33266
  }, "handleNinguno"), P = /* @__PURE__ */ a((I) => {
33256
- u.setValue(n, {
33267
+ s.setValue(e, {
33257
33268
  seleccion: "",
33258
33269
  all: !0,
33259
33270
  none: !1
33260
- }), S && S(C, d, I);
33271
+ }), S && S(C, l, I);
33261
33272
  }, "handleTodos");
33262
- return m ? null : /* @__PURE__ */ W(Qr, { children: [
33273
+ return f ? null : /* @__PURE__ */ W(Qr, { children: [
33263
33274
  /* @__PURE__ */ y(
33264
33275
  st,
33265
33276
  {
33266
33277
  display: "flex",
33267
33278
  alignItems: "center",
33268
33279
  sx: {
33269
- ...b,
33280
+ ...m,
33270
33281
  display: "inline-flex",
33271
33282
  width: { xs: "100%", md: "auto" }
33272
33283
  },
@@ -33274,30 +33285,30 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
33274
33285
  ho,
33275
33286
  {
33276
33287
  ...x,
33277
- source: n,
33278
- label: v,
33288
+ source: e,
33289
+ label: g,
33279
33290
  readOnly: !0,
33280
33291
  parse: Z6,
33281
33292
  format: X6,
33282
33293
  helperText: !1,
33283
33294
  InputProps: {
33284
33295
  endAdornment: /* @__PURE__ */ W(Qr, { children: [
33285
- e && /* @__PURE__ */ y(
33296
+ b && /* @__PURE__ */ y(
33286
33297
  Nr,
33287
33298
  {
33288
33299
  onClick: R,
33289
- disabled: g,
33300
+ disabled: h,
33290
33301
  "aria-label": "Ninguno",
33291
33302
  size: "small",
33292
33303
  title: "Ninguno",
33293
33304
  children: /* @__PURE__ */ y(_b, {})
33294
33305
  }
33295
33306
  ),
33296
- r && /* @__PURE__ */ y(
33307
+ v && /* @__PURE__ */ y(
33297
33308
  Nr,
33298
33309
  {
33299
33310
  onClick: P,
33300
- disabled: g,
33311
+ disabled: h,
33301
33312
  "aria-label": "Todos",
33302
33313
  size: "small",
33303
33314
  title: "Todos",
@@ -33307,8 +33318,8 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
33307
33318
  /* @__PURE__ */ y(
33308
33319
  Nr,
33309
33320
  {
33310
- onClick: /* @__PURE__ */ a((I) => l(!0), "onClick"),
33311
- disabled: g,
33321
+ onClick: /* @__PURE__ */ a((I) => i(!0), "onClick"),
33322
+ disabled: h,
33312
33323
  "aria-label": "Selección",
33313
33324
  size: "small",
33314
33325
  title: "Selección",
@@ -33324,8 +33335,8 @@ const _6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
33324
33335
  /* @__PURE__ */ y(
33325
33336
  J6,
33326
33337
  {
33327
- isOpen: s,
33328
- title: `Selección de ${v}`,
33338
+ isOpen: o,
33339
+ title: `Selección de ${g}`,
33329
33340
  onConfirm: M,
33330
33341
  onClose: w
33331
33342
  }
@@ -56826,6 +56837,8 @@ export {
56826
56837
  jte as MenuButton,
56827
56838
  zte as MultiTextField,
56828
56839
  tre as Password,
56840
+ WC as ProgressContext,
56841
+ ec as ProgressProvider,
56829
56842
  rre as RadioButton,
56830
56843
  nre as RadioButtonManual,
56831
56844
  h4 as RefreshButton,
@@ -56880,7 +56893,6 @@ export {
56880
56893
  Mte as useEtrActions,
56881
56894
  Ot as useFicha,
56882
56895
  pk as useFieldController,
56883
- ss as useFormProgress,
56884
56896
  hp as useFormSubmit,
56885
56897
  uk as useFormToolbar,
56886
56898
  S_ as useGetJson,