react-ecosistema-unp 0.7.3 → 0.8.15-react-19
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/Anchor-D8f6vg0T.js +40 -0
- package/dist/Bootstrap-Bjgu14O1.js +1136 -0
- package/dist/Button-DD8y8HBa.js +78 -0
- package/dist/Button-t4PJaubx.js +33 -0
- package/dist/{NotificacionUsuario-uif1f5Yt.js → NotificacionUsuario-BQ655oML.js} +371 -401
- package/dist/TabContext-CdjYJzMB.js +125 -0
- package/dist/accessibility/barra-accesibilidad/BarraAccesibilidad.js +52 -0
- package/dist/accessibility.js +1 -1
- package/dist/assets/BarraAccesibilidad.css +1 -1
- package/dist/assets/Bootstrap.css +1 -1
- package/dist/assets/Breadcrumb.css +1 -0
- package/dist/assets/ContenedorTarjeta.css +1 -0
- package/dist/assets/ContenidoModal.css +1 -1
- package/dist/assets/Encabezado.css +1 -1
- package/dist/assets/IconoTabla.css +1 -0
- package/dist/assets/Logo.css +1 -0
- package/dist/assets/MenuLateral.css +1 -1
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/NotificacionUsuario.css +1 -1
- package/dist/assets/SeccionTarjeta.css +1 -0
- package/dist/assets/SeccionTarjetaLectura.css +1 -0
- package/dist/assets/TabVentana.css +1 -1
- package/dist/assets/Tabla.css +1 -1
- package/dist/assets/Tarjeta.css +1 -1
- package/dist/assets/TarjetaInfo.css +1 -0
- package/dist/assets/TarjetaLectura.css +1 -0
- package/dist/assets/TarjetaListado.css +1 -0
- package/dist/auth/hooks/useFinalizarSesion.js +7 -7
- package/dist/index-PYPwtOs4.js +55 -0
- package/dist/lib/accessibility/barra-accesibilidad/BarraAccesibilidad.d.ts +2 -0
- package/dist/lib/accessibility.d.ts +1 -1
- package/dist/lib/shared/breadcrumb/Breadcrumb.d.ts +11 -0
- package/dist/lib/shared.d.ts +3 -4
- package/dist/lib/tables/{components → tabla-registros/buscador}/Buscador.d.ts +1 -1
- package/dist/lib/tables/tabla-registros/contenido-modal/ContenidoModal.d.ts +18 -0
- package/dist/lib/tables/{components → tabla-registros/encabezado}/EncabezadoTabla.d.ts +1 -1
- package/dist/lib/tables/tabla-registros/icono-tabla/IconoTabla.d.ts +14 -0
- package/dist/lib/tables.d.ts +2 -1
- package/dist/lib/ui/logo/Logo.d.ts +14 -0
- package/dist/lib/ui/{components → paginador}/Paginador.d.ts +3 -1
- package/dist/lib/ui/{components → tarjeta/contenedor-tarjeta}/ContenedorTarjeta.d.ts +0 -1
- package/dist/lib/ui/tarjeta/seccion-tarjeta/SeccionTarjeta.d.ts +8 -0
- package/dist/lib/ui/{components → tarjeta/tarjeta-agregar}/TarjetaAgregar.d.ts +2 -1
- package/dist/lib/ui/tarjeta-info/TarjetaInfo.d.ts +9 -0
- package/dist/lib/ui/tarjeta-lectura/TarjetaLectura.d.ts +22 -0
- package/dist/lib/ui/tarjeta-lectura/seccion-tarjeta-lectura/SeccionTarjetaLectura.d.ts +7 -0
- package/dist/lib/ui/tarjeta-listado/TarjetaListado.d.ts +14 -0
- package/dist/lib/ui.d.ts +13 -8
- package/dist/logo_escudo_blanco-DaOI8SGq.js +4 -0
- package/dist/shared/breadcrumb/Breadcrumb.js +69 -0
- package/dist/shared/{components → menu-lateral}/MenuLateral.js +37 -36
- package/dist/shared/notificacion-usuario/NotificacionUsuario.js +5 -0
- package/dist/shared/ventana-lienzo/VentanaLienzo.js +22 -0
- package/dist/shared/{components → ventana-tabs}/TabVentana.js +1 -1
- package/dist/shared/{components → ventana-tabs}/VentanaTabs.js +22 -22
- package/dist/shared.js +4 -6
- package/dist/tables/{components → tabla-registros}/TablaRegistros.js +3 -3
- package/dist/tables/{components → tabla-registros/buscador}/Buscador.js +6 -6
- package/dist/tables/tabla-registros/contenido-modal/ContenidoModal.js +57 -0
- package/dist/{ui/components/ContenidoModal.js → tables/tabla-registros/contenido-modal/ContenidoModalv0.1.js} +2 -2
- package/dist/tables/tabla-registros/encabezado/EncabezadoTabla.js +30 -0
- package/dist/tables/tabla-registros/icono-tabla/IconoTabla.js +68 -0
- package/dist/tables/{components → tabla-registros/modal}/Modal.js +1 -1
- package/dist/tables/{components → tabla-registros/tabla}/Tabla.js +19 -19
- package/dist/tables.js +3 -1
- package/dist/ui/encabezado/Encabezado.js +15 -0
- package/dist/ui/logo/Logo.js +12 -0
- package/dist/ui/paginador/Paginador.js +66 -0
- package/dist/ui/{components → subtitulo}/Subtitulo.js +2 -2
- package/dist/ui/{components → tarjeta}/Tarjeta.js +21 -21
- package/dist/ui/tarjeta/contenedor-tarjeta/ContenedorTarjeta.js +15 -0
- package/dist/ui/tarjeta/seccion-tarjeta/SeccionTarjeta.js +7 -0
- package/dist/ui/{components → tarjeta/tarjeta-agregar}/TarjetaAgregar.js +8 -9
- package/dist/ui/tarjeta-info/TarjetaInfo.js +42 -0
- package/dist/ui/tarjeta-lectura/TarjetaLectura.js +66 -0
- package/dist/ui/tarjeta-lectura/seccion-tarjeta-lectura/SeccionTarjetaLectura.js +9 -0
- package/dist/ui/tarjeta-listado/TarjetaListado.js +40 -0
- package/dist/ui.js +23 -13
- package/dist/useEventCallback-Bfo0-hwZ.js +16 -0
- package/dist/utils/components/ProtectedRoute.js +6 -6
- package/dist/utils/components/UserRoute.js +4 -4
- package/package.json +13 -15
- package/dist/Bootstrap-alDYHlwa.js +0 -19871
- package/dist/Button-Gn1tKaoW.js +0 -106
- package/dist/TabContext-BvNFEruk.js +0 -138
- package/dist/accessibility/components/BarraAccesibilidad.js +0 -52
- package/dist/assets/IconoTipoSolicitud.css +0 -1
- package/dist/index-DHX2gxCC.js +0 -27
- package/dist/lib/accessibility/components/BarraAccesibilidad.d.ts +0 -2
- package/dist/lib/shared/components/LoadingPage.d.ts +0 -3
- package/dist/lib/ui/components/IconoTipoSolicitud.d.ts +0 -7
- package/dist/shared/components/LoadingPage.js +0 -16
- package/dist/shared/components/NotificacionUsuario.js +0 -5
- package/dist/shared/components/VentanaLienzo.js +0 -16
- package/dist/tables/components/EncabezadoTabla.js +0 -24
- package/dist/ui/components/ContenedorTarjeta.js +0 -7
- package/dist/ui/components/Encabezado.js +0 -14
- package/dist/ui/components/IconoTipoSolicitud.js +0 -59
- package/dist/ui/components/Paginador.js +0 -56
- /package/dist/lib/{tables/assets → assets}/animations/isLoading.json.d.ts +0 -0
- /package/dist/lib/{tables/assets → assets}/animations/noData.json.d.ts +0 -0
- /package/dist/lib/{tables/assets → assets}/animations/noInfo.json.d.ts +0 -0
- /package/dist/lib/shared/{components → menu-lateral}/MenuLateral.d.ts +0 -0
- /package/dist/lib/shared/{components → notificacion-usuario}/NotificacionUsuario.d.ts +0 -0
- /package/dist/lib/shared/{components → ventana-lienzo}/VentanaLienzo.d.ts +0 -0
- /package/dist/lib/shared/{components → ventana-tabs}/TabVentana.d.ts +0 -0
- /package/dist/lib/shared/{components → ventana-tabs}/VentanaTabs.d.ts +0 -0
- /package/dist/lib/tables/{components → tabla-registros}/TablaRegistros.d.ts +0 -0
- /package/dist/lib/{ui/components/ContenidoModal.d.ts → tables/tabla-registros/contenido-modal/ContenidoModalv0.1.d.ts} +0 -0
- /package/dist/lib/tables/{components → tabla-registros/modal}/Modal.d.ts +0 -0
- /package/dist/lib/tables/{components → tabla-registros/tabla}/Tabla.d.ts +0 -0
- /package/dist/lib/ui/{components → encabezado}/Encabezado.d.ts +0 -0
- /package/dist/lib/ui/{components → subtitulo}/Subtitulo.d.ts +0 -0
- /package/dist/lib/ui/{components → tarjeta}/Tarjeta.d.ts +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsxs as g, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as C } from "react";
|
|
3
|
+
import { f as h, g as m, h as k, i as p, j as x } from "../../../index-PYPwtOs4.js";
|
|
4
|
+
import '../../../assets/IconoTabla.css';const S = ({ tipoSolicitud: t, porGestionar: o = !1 }) => {
|
|
5
|
+
const [c, s] = C(!1);
|
|
6
|
+
let e = "", l = {}, a = null, n = { color: o ? "#c8c8c8" : "#287cd1" };
|
|
7
|
+
const d = "#28a19d", u = "#ed7e3e", f = "#3e52edf8", v = "#ed3e49f8", b = "#d4c146", i = "#666666f4";
|
|
8
|
+
switch (t) {
|
|
9
|
+
case "Individual":
|
|
10
|
+
e = o ? "Nuevo registro" : "Individual", l = { backgroundColor: o ? i : d, color: "#f7f7f7" }, a = x;
|
|
11
|
+
break;
|
|
12
|
+
case "Colectivo":
|
|
13
|
+
e = o ? "Nuevo registro" : "Colectivo", l = { backgroundColor: o ? i : u, color: "#f7f7f7" }, a = p;
|
|
14
|
+
break;
|
|
15
|
+
case "Jurídico":
|
|
16
|
+
e = o ? "Nuevo registro" : "Jurídico", l = { backgroundColor: o ? i : f, color: "#f7f7f7" }, a = k;
|
|
17
|
+
break;
|
|
18
|
+
case "Emergencia":
|
|
19
|
+
e = o ? "Nuevo registro" : "Emergencia", l = { backgroundColor: o ? i : v, color: "#f7f7f7" }, a = m;
|
|
20
|
+
break;
|
|
21
|
+
case "Reasignación":
|
|
22
|
+
e = o ? "Nuevo registro" : "Reasignación", l = { backgroundColor: o ? i : b, color: "#f7f7f7" }, a = h;
|
|
23
|
+
break;
|
|
24
|
+
default:
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return /* @__PURE__ */ g("div", { style: { position: "relative", display: "inline-block" }, children: [
|
|
28
|
+
/* @__PURE__ */ r(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
onMouseEnter: () => s(!0),
|
|
32
|
+
onMouseLeave: () => s(!1),
|
|
33
|
+
style: {
|
|
34
|
+
...n
|
|
35
|
+
},
|
|
36
|
+
className: "icon-solicitud",
|
|
37
|
+
children: /* @__PURE__ */ r(a, {})
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
c && /* @__PURE__ */ r(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
style: {
|
|
44
|
+
position: "absolute",
|
|
45
|
+
top: "50%",
|
|
46
|
+
left: "110%",
|
|
47
|
+
transform: "translateY(-50%)",
|
|
48
|
+
backgroundColor: "#eb7575",
|
|
49
|
+
color: "#fff",
|
|
50
|
+
padding: "8px 12px",
|
|
51
|
+
borderRadius: "8px",
|
|
52
|
+
fontSize: "0.9em",
|
|
53
|
+
whiteSpace: "nowrap",
|
|
54
|
+
boxShadow: "0 2px 6px rgba(0, 0, 0, 0.15)",
|
|
55
|
+
opacity: c ? 1 : 0,
|
|
56
|
+
visibility: c ? "visible" : "hidden",
|
|
57
|
+
zIndex: 1e3,
|
|
58
|
+
transition: "opacity 0.3s ease, visibility 0.3s ease",
|
|
59
|
+
...l
|
|
60
|
+
},
|
|
61
|
+
children: e
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
] });
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
S as IconoTabla
|
|
68
|
+
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
2
2
|
import * as y from "react";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { u as x, c as N } from "
|
|
6
|
-
import '
|
|
3
|
+
import k from "react";
|
|
4
|
+
import { k as $ } from "../../../index-PYPwtOs4.js";
|
|
5
|
+
import { u as x, c as N } from "../../../ThemeProvider-DwZMEupk.js";
|
|
6
|
+
import '../../../assets/Tabla.css';const v = /* @__PURE__ */ y.forwardRef(({
|
|
7
7
|
bsPrefix: n,
|
|
8
|
-
className:
|
|
8
|
+
className: a,
|
|
9
9
|
striped: i,
|
|
10
10
|
bordered: c,
|
|
11
11
|
borderless: p,
|
|
12
12
|
hover: g,
|
|
13
13
|
size: d,
|
|
14
14
|
variant: h,
|
|
15
|
-
responsive:
|
|
15
|
+
responsive: s,
|
|
16
16
|
...b
|
|
17
17
|
}, f) => {
|
|
18
|
-
const o = x(n, "table"), t = N(
|
|
18
|
+
const o = x(n, "table"), t = N(a, o, h && `${o}-${h}`, d && `${o}-${d}`, i && `${o}-${typeof i == "string" ? `striped-${i}` : "striped"}`, c && `${o}-bordered`, p && `${o}-borderless`, g && `${o}-hover`), l = /* @__PURE__ */ e("table", {
|
|
19
19
|
...b,
|
|
20
20
|
className: t,
|
|
21
21
|
ref: f
|
|
22
22
|
});
|
|
23
|
-
if (
|
|
23
|
+
if (s) {
|
|
24
24
|
let r = `${o}-responsive`;
|
|
25
|
-
return typeof
|
|
25
|
+
return typeof s == "string" && (r = `${r}-${s}`), /* @__PURE__ */ e("div", {
|
|
26
26
|
className: r,
|
|
27
27
|
children: l
|
|
28
28
|
});
|
|
@@ -30,19 +30,19 @@ import '../../assets/Tabla.css';const v = /* @__PURE__ */ y.forwardRef(({
|
|
|
30
30
|
return l;
|
|
31
31
|
}), B = ({
|
|
32
32
|
columns: n,
|
|
33
|
-
filteredData:
|
|
33
|
+
filteredData: a,
|
|
34
34
|
tableData: i,
|
|
35
35
|
hasMoreData: c,
|
|
36
36
|
setHasMoreData: p,
|
|
37
37
|
visibleData: g,
|
|
38
38
|
setVisibleData: d,
|
|
39
39
|
handleCellClick: h,
|
|
40
|
-
totalDias:
|
|
40
|
+
totalDias: s,
|
|
41
41
|
isShared: b
|
|
42
42
|
}) => {
|
|
43
43
|
const f = (t) => {
|
|
44
|
-
if (
|
|
45
|
-
const l = t /
|
|
44
|
+
if (s) {
|
|
45
|
+
const l = t / s * 100;
|
|
46
46
|
return l <= 25 ? { backgroundColor: "#3AB34A", color: "#FFFFFF" } : l <= 50 ? { backgroundColor: "#F8EB10", color: "#000000" } : l <= 75 ? { backgroundColor: "#F79122", color: "#000000" } : { backgroundColor: "#E91720", color: "#FFFFFF" };
|
|
47
47
|
}
|
|
48
48
|
return { backgroundColor: "transparent", color: "inherit" };
|
|
@@ -51,12 +51,12 @@ import '../../assets/Tabla.css';const v = /* @__PURE__ */ y.forwardRef(({
|
|
|
51
51
|
const { scrollTop: l, clientHeight: r, scrollHeight: m } = t.currentTarget;
|
|
52
52
|
m - l <= r + 50 && c && d((F) => {
|
|
53
53
|
const C = F + 5;
|
|
54
|
-
return C >=
|
|
54
|
+
return C >= a.length && p(!1), Math.min(C, a.length);
|
|
55
55
|
});
|
|
56
56
|
}, children: /* @__PURE__ */ u(v, { striped: !0, hover: !0, children: [
|
|
57
57
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: n.map((t, l) => /* @__PURE__ */ e("th", { className: "table-header-unp", children: t.label }, l)) }) }),
|
|
58
58
|
/* @__PURE__ */ u("tbody", { children: [
|
|
59
|
-
i.slice(0, g).map((t, l) => /* @__PURE__ */ u(
|
|
59
|
+
i.slice(0, g).map((t, l) => /* @__PURE__ */ u(k.Fragment, { children: [
|
|
60
60
|
/* @__PURE__ */ e("tr", { children: n.map((r, m) => /* @__PURE__ */ e(
|
|
61
61
|
"td",
|
|
62
62
|
{
|
|
@@ -94,16 +94,16 @@ import '../../assets/Tabla.css';const v = /* @__PURE__ */ y.forwardRef(({
|
|
|
94
94
|
},
|
|
95
95
|
m
|
|
96
96
|
)) }),
|
|
97
|
-
b && t.estadoRegistro === "en_gestion" && !
|
|
98
|
-
height: "
|
|
97
|
+
b && t.estadoRegistro === "en_gestion" && !a.some((r) => r.estadoRegistro === "en_gestion" && a.indexOf(r) > l) && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: n.length, className: "text-center", style: { padding: "0 0 0 0" }, children: /* @__PURE__ */ e("div", { style: {
|
|
98
|
+
height: "2rem",
|
|
99
99
|
display: "flex",
|
|
100
100
|
flexDirection: "row",
|
|
101
101
|
justifyContent: "center",
|
|
102
102
|
alignItems: "center",
|
|
103
103
|
fontWeight: "600",
|
|
104
104
|
color: l % 2 === 0 ? "#365072" : "#303D50",
|
|
105
|
-
backgroundColor: l % 2 === 0 ? "#fefefe" : "#
|
|
106
|
-
}, children: /* @__PURE__ */ e(
|
|
105
|
+
backgroundColor: l % 2 === 0 ? "#fefefe" : "#f9fafa"
|
|
106
|
+
}, children: /* @__PURE__ */ e($, { style: { fontSize: "1.3rem" } }) }) }) })
|
|
107
107
|
] }, l)),
|
|
108
108
|
c && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: n.length, className: "text-center", children: "Cargando más datos..." }) })
|
|
109
109
|
] })
|
package/dist/tables.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { TablaRegistros as a } from "./tables/
|
|
1
|
+
import { TablaRegistros as a } from "./tables/tabla-registros/TablaRegistros.js";
|
|
2
|
+
import { IconoTabla as t } from "./tables/tabla-registros/icono-tabla/IconoTabla.js";
|
|
2
3
|
export {
|
|
4
|
+
t as IconoTabla,
|
|
3
5
|
a as TablaRegistros
|
|
4
6
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Logo as s } from "../logo/Logo.js";
|
|
3
|
+
import '../../assets/Encabezado.css';const r = ({ titulo: a = "", subtitulo: n = "" }) => /* @__PURE__ */ i("div", { className: "title-container", children: [
|
|
4
|
+
/* @__PURE__ */ i("div", { className: "logo-subtitle-container", children: [
|
|
5
|
+
/* @__PURE__ */ e("div", { className: "red-section" }),
|
|
6
|
+
/* @__PURE__ */ e(s, { type: "entidad", variant: "unp", color: "gris", height: "62" })
|
|
7
|
+
] }),
|
|
8
|
+
/* @__PURE__ */ i("div", { className: "subtitle-container", children: [
|
|
9
|
+
/* @__PURE__ */ e("span", { className: "title", children: a || "Unidad Nacional de Protección" }),
|
|
10
|
+
/* @__PURE__ */ e("span", { className: "subtitle", children: n })
|
|
11
|
+
] })
|
|
12
|
+
] });
|
|
13
|
+
export {
|
|
14
|
+
r as Encabezado
|
|
15
|
+
};
|