biblio-react 3.0.16 → 3.0.17
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 +14 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11233,7 +11233,7 @@ const Gy = /* @__PURE__ */ s((t = "scope") => (yC += 1, `${t}-${yC}`), "createRe
|
|
|
11233
11233
|
hour12: !1
|
|
11234
11234
|
};
|
|
11235
11235
|
return t.toLocaleString("es", e).replace(",", "");
|
|
11236
|
-
}, "dateTimeToString"), An = S.createContext(), WM = Yt(), A4 = /* @__PURE__ */ s((t) => t == null || t === "" || t === "0" ? [] : t === "-1" ? ["-1"] : String(t).split(",").map((e) => e.trim()).filter(Boolean), "normalizarPermisosBotones"),
|
|
11236
|
+
}, "dateTimeToString"), An = S.createContext(), WM = Yt(), A4 = /* @__PURE__ */ s((t) => t == null || t === "" || t === "0" ? [] : t === "-1" ? ["-1"] : String(t).split(",").map((e) => e.trim()).filter(Boolean), "normalizarPermisosBotones"), _a = /* @__PURE__ */ s((t, e) => {
|
|
11237
11237
|
if (!e)
|
|
11238
11238
|
return !0;
|
|
11239
11239
|
const n = A4(t?.permisosBotones);
|
|
@@ -11244,7 +11244,7 @@ const Gy = /* @__PURE__ */ s((t = "scope") => (yC += 1, `${t}-${yC}`), "createRe
|
|
|
11244
11244
|
}, "tienePermisoBotonEspecial"), Ic = /* @__PURE__ */ s((t, e) => {
|
|
11245
11245
|
const n = t?.hiddenactions || [];
|
|
11246
11246
|
return !e || n.length === 0 ? !1 : n.some((r) => r === e);
|
|
11247
|
-
}, "estaAccionOculta"),
|
|
11247
|
+
}, "estaAccionOculta"), HM = /* @__PURE__ */ s((t, e) => _a(t, e?.perbot) && !Ic(t, e?.key), "esAccionVisible"), qM = /* @__PURE__ */ s(() => {
|
|
11248
11248
|
const t = rt(WM), e = Vf();
|
|
11249
11249
|
return /* @__PURE__ */ s((r, o = {}) => {
|
|
11250
11250
|
const { opcion: i, estado: a, ...l } = o, u = `form_${String(r)}`;
|
|
@@ -30648,7 +30648,7 @@ const i9 = S.memo(/* @__PURE__ */ s(function({
|
|
|
30648
30648
|
}, "onClick")
|
|
30649
30649
|
},
|
|
30650
30650
|
`show-${we}`
|
|
30651
|
-
) : null, on = M || ku && !Ht, sn = (e || []).filter((it) =>
|
|
30651
|
+
) : null, on = M || ku && !Ht, sn = (e || []).filter((it) => HM(hl, it)).map((it, At) => {
|
|
30652
30652
|
const { handler: qt, key: rr, sx: pr, ...yl } = it;
|
|
30653
30653
|
return /* @__PURE__ */ b(
|
|
30654
30654
|
Qs,
|
|
@@ -31486,7 +31486,7 @@ const i9 = S.memo(/* @__PURE__ */ s(function({
|
|
|
31486
31486
|
forceListView: v,
|
|
31487
31487
|
...x
|
|
31488
31488
|
} = t, E = S.useRef(null), C = rt(An) || {}, w = Ic(C, "borrar") || Ic(C, "delete"), T = m && !w, O = y ? [] : (i || []).filter(
|
|
31489
|
-
(K) =>
|
|
31489
|
+
(K) => HM(C, K)
|
|
31490
31490
|
), M = !!(!y && (l || p || g || T || O.length)), { sort: A } = Mi(), R = /* @__PURE__ */ s(() => E.current, "container"), $ = Ir((K) => K.breakpoints.down("md")), P = v ?? $, k = v && !$, N = _0(), {
|
|
31491
31491
|
props: { gridContainerRef: L, chkSeleccion: I }
|
|
31492
31492
|
} = Yo(), [D, _] = S.useState({
|
|
@@ -33967,14 +33967,12 @@ const JR = /* @__PURE__ */ s(() => {
|
|
|
33967
33967
|
}, "RefreshButton"), l8 = /* @__PURE__ */ b(s8, {}), c8 = /* @__PURE__ */ s((t, e) => {
|
|
33968
33968
|
alert("Falta implementar la función jsBotonGrilla");
|
|
33969
33969
|
}, "defaultJsBotonGrilla"), tP = /* @__PURE__ */ s((t, e) => (t || []).map((n) => {
|
|
33970
|
-
|
|
33971
|
-
|
|
33972
|
-
const o = Array.isArray(n?.children) ? tP(n.children, e) : [];
|
|
33973
|
-
return {
|
|
33970
|
+
const r = Array.isArray(n?.children) ? tP(n.children, e) : [], o = r.length > 0;
|
|
33971
|
+
return !_a(e, n?.perbot) && !o ? null : {
|
|
33974
33972
|
...n,
|
|
33975
|
-
children:
|
|
33973
|
+
children: r
|
|
33976
33974
|
};
|
|
33977
|
-
}).filter(Boolean), "
|
|
33975
|
+
}).filter(Boolean), "filtrarOpcionesPorPermiso"), Vw = {
|
|
33978
33976
|
display: "flex",
|
|
33979
33977
|
alignItems: "center",
|
|
33980
33978
|
alignSelf: "flex-end"
|
|
@@ -34082,7 +34080,7 @@ const JR = /* @__PURE__ */ s(() => {
|
|
|
34082
34080
|
), me = S.useMemo(() => {
|
|
34083
34081
|
const J = (W || []).map((oe) => {
|
|
34084
34082
|
if (oe?.type === "Button")
|
|
34085
|
-
return _a($, oe) ? oe : null;
|
|
34083
|
+
return _a($, oe.perbot) ? oe : null;
|
|
34086
34084
|
if (oe?.type === "MenuButton") {
|
|
34087
34085
|
const ie = tP(
|
|
34088
34086
|
oe.options,
|
|
@@ -34928,11 +34926,11 @@ const rne = /* @__PURE__ */ s((t) => {
|
|
|
34928
34926
|
} = t, [a, l] = Ae(!1), u = en(), d = dt(t), p = rt(An) || {}, { menuModel: f, leafOptions: h } = nt(() => {
|
|
34929
34927
|
const T = [], O = [];
|
|
34930
34928
|
return (e || []).forEach((M) => {
|
|
34931
|
-
if (!_a(p, M))
|
|
34929
|
+
if (!_a(p, M?.perbot))
|
|
34932
34930
|
return;
|
|
34933
34931
|
if (Array.isArray(M?.children) && M.children.length > 0) {
|
|
34934
34932
|
const R = M.children.filter(
|
|
34935
|
-
($) => _a(p,
|
|
34933
|
+
($) => _a(p, $?.perbot)
|
|
34936
34934
|
);
|
|
34937
34935
|
if (R.length === 0)
|
|
34938
34936
|
return;
|
|
@@ -36303,7 +36301,7 @@ const Gw = S.forwardRef(/* @__PURE__ */ s(function(e, n) {
|
|
|
36303
36301
|
return /* @__PURE__ */ Y(ak, { children: [
|
|
36304
36302
|
o ? /* @__PURE__ */ b(Qc, { sx: { mr: 1 }, ...i }) : null,
|
|
36305
36303
|
g.filter(
|
|
36306
|
-
(v) => !h[v.name] &&
|
|
36304
|
+
(v) => !h[v.name] && _a(m, v.perbot)
|
|
36307
36305
|
).map((v) => /* @__PURE__ */ b(
|
|
36308
36306
|
Ln,
|
|
36309
36307
|
{
|
|
@@ -61087,7 +61085,7 @@ export {
|
|
|
61087
61085
|
P4 as descargarLink,
|
|
61088
61086
|
$te as descargarUrl,
|
|
61089
61087
|
mne as enMessages,
|
|
61090
|
-
|
|
61088
|
+
HM as esAccionVisible,
|
|
61091
61089
|
gne as esMessages,
|
|
61092
61090
|
Ic as estaAccionOculta,
|
|
61093
61091
|
Ate as etrFechaMayorQue,
|
|
@@ -61107,7 +61105,7 @@ export {
|
|
|
61107
61105
|
Lte as stringToDate,
|
|
61108
61106
|
Fte as stringToDateTime,
|
|
61109
61107
|
cne as themes,
|
|
61110
|
-
|
|
61108
|
+
_a as tienePermisoBotonEspecial,
|
|
61111
61109
|
Ote as timeFormat,
|
|
61112
61110
|
kte as timeParser,
|
|
61113
61111
|
xv as useAjax,
|