react-ecosistema-unp 1.0.6 → 1.2.0
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/{NotificacionUsuario-xD2pyELE.js → NotificacionUsuario-B0uOnywk.js} +147 -151
- package/dist/Table-dmTfkFLf.js +32 -0
- package/dist/assets/IconosSistema.css +1 -1
- package/dist/cards/tarjeta/Tarjeta.js +4 -3
- package/dist/cards/tarjeta/contenedor-tarjeta/ContenedorTarjeta.js +5 -4
- package/dist/cards/tarjeta/nuevo-elemento/NuevoElemento.js +1 -1
- package/dist/cards/tarjeta-info/TarjetaInfo.js +2 -2
- package/dist/cards/tarjeta-lectura/TarjetaLectura.js +16 -15
- package/dist/cards/tarjeta-lectura/seccion-tarjeta-lectura/SeccionTarjetaLectura.js +7 -6
- package/dist/index-COVtBfm6.js +11 -0
- package/dist/{index-D_9gBL0I.js → index-CcQhl4DX.js} +51 -27
- package/dist/lib/utils/unp-historico/FetchHistorico.d.ts +2 -0
- package/dist/lib/utils/unp-historico/UnpHistorico.d.ts +7 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/shared/iconos-sistema/IconosSistema.js +7 -5
- package/dist/shared/notificacion-usuario/NotificacionUsuario.js +2 -1
- package/dist/shared/ventana-tabs/VentanaTabs.js +1 -1
- package/dist/tables/tabla-registros/buscador/Buscador.js +1 -1
- package/dist/tables/tabla-registros/encabezado-tabla/EncabezadoTabla.js +2 -2
- package/dist/tables/tabla-registros/tabla/Tabla.js +43 -69
- package/dist/ui/contenido-modal/ContenidoModal.js +2 -2
- package/dist/ui/contenido-modal/ContenidoModalv0.1.js +2 -2
- package/dist/ui/icono-tooltip/IconoTooltip.js +82 -46
- package/dist/ui/items-modal/ItemsModal.js +11 -11
- package/dist/ui/logo/Logo.js +3 -2
- package/dist/utils/unp-historico/FetchHistorico.js +12 -0
- package/dist/utils/unp-historico/UnpHistorico.js +145 -0
- package/dist/utils.js +6 -4
- package/package.json +1 -1
- /package/dist/assets/{TarjetaInfo.css → UnpHistorico.css} +0 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { jsx as t, Fragment as i, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as n, useEffect as x } from "react";
|
|
3
|
+
import '../../assets/SeccionTarjetaLectura.css';import '../../assets/Logo.css';import '../../assets/TarjetaLectura.css';import '../../assets/ContenedorTarjeta.css';import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';import '../../assets/UnpHistorico.css';/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
import "../../cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
import { TarjetaInfo as N } from "../../cards/tarjeta-info/TarjetaInfo.js";
|
|
11
|
+
import { F as b } from "../../index-COVtBfm6.js";
|
|
12
|
+
import { fetchHistorico as p } from "./FetchHistorico.js";
|
|
13
|
+
import { T as u } from "../../Table-dmTfkFLf.js";
|
|
14
|
+
const I = ({ endpoint: h, nuip: d }) => {
|
|
15
|
+
const [c, o] = n({
|
|
16
|
+
sintesisHechos1: !1,
|
|
17
|
+
sintesisHehcos2: !1
|
|
18
|
+
}), [r, m] = n([]), l = (e) => {
|
|
19
|
+
o((a) => ({
|
|
20
|
+
...a,
|
|
21
|
+
[e]: !a[e]
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
return x(() => {
|
|
25
|
+
(async () => {
|
|
26
|
+
const a = await p(h, d);
|
|
27
|
+
m(a);
|
|
28
|
+
})();
|
|
29
|
+
}, [d]), /* @__PURE__ */ t(i, { children: r && r.length > 0 ? /* @__PURE__ */ t(i, { children: r.sort((e, a) => e.ordenTrabajo < a.ordenTrabajo ? 1 : -1).map((e, a) => /* @__PURE__ */ t(N, { icon: b, label: `OT ${e.ordenTrabajo} • ${e.tipoEstudio}`, children: /* @__PURE__ */ t(u, { striped: !0, bordered: !0, children: /* @__PURE__ */ s("tbody", { children: [
|
|
30
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
31
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Evaluado" }) }),
|
|
32
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.nombreCompleto })
|
|
33
|
+
] }),
|
|
34
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
35
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Nuip" }) }),
|
|
36
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.nuip })
|
|
37
|
+
] }),
|
|
38
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
39
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Ubicación" }) }),
|
|
40
|
+
/* @__PURE__ */ s("td", { className: "text-start", children: [
|
|
41
|
+
e.departamento,
|
|
42
|
+
", ",
|
|
43
|
+
e.municipio
|
|
44
|
+
] })
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
47
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Celular" }) }),
|
|
48
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.celularEvaluado })
|
|
49
|
+
] }),
|
|
50
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
51
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Correo electrónico" }) }),
|
|
52
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.correoEvaluado })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
55
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Factor diferencial" }) }),
|
|
56
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.factorDiferencial })
|
|
57
|
+
] }),
|
|
58
|
+
" ",
|
|
59
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
60
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Analista de riesgo" }) }),
|
|
61
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.analistaRiesgo })
|
|
62
|
+
] }),
|
|
63
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
64
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Estado OT" }) }),
|
|
65
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.EstadoOT })
|
|
66
|
+
] }),
|
|
67
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
68
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Tipo de estudio" }) }),
|
|
69
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.tipoEstudio })
|
|
70
|
+
] }),
|
|
71
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
72
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Evaluación de riesgo anterior" }) }),
|
|
73
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.evaluacionRiesgo })
|
|
74
|
+
] }),
|
|
75
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
76
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Fecha autorización" }) }),
|
|
77
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.FechaAutorizacion })
|
|
78
|
+
] }),
|
|
79
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
80
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Población" }) }),
|
|
81
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.poblacion })
|
|
82
|
+
] }),
|
|
83
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
84
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Subpoblación" }) }),
|
|
85
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.subpoblacion })
|
|
86
|
+
] }),
|
|
87
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
88
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Cargo" }) }),
|
|
89
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.cargo_evaluado })
|
|
90
|
+
] }),
|
|
91
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
92
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Fecha de entrevista" }) }),
|
|
93
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.fechaEntrevista })
|
|
94
|
+
] }),
|
|
95
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
96
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Síntesis de hechos #1" }) }),
|
|
97
|
+
/* @__PURE__ */ s("td", { className: "text-start", children: [
|
|
98
|
+
c.sintesisHechos1 ? e.sintesisHechos1 + " " : e.sintesisHechos1.slice(0, 250) + "... ",
|
|
99
|
+
/* @__PURE__ */ t("a", { className: "link-primary", onClick: () => l("sintesisHechos1"), children: c.sintesisHechos1 ? "Ver menos" : "Ver más" })
|
|
100
|
+
] })
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
103
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Síntesos de hechos #2" }) }),
|
|
104
|
+
/* @__PURE__ */ s("td", { className: "text-start", children: [
|
|
105
|
+
c.sintesisHechos2 ? e.sintesisHechos2 + " " : e.sintesisHechos2.slice(0, 250) + "... ",
|
|
106
|
+
/* @__PURE__ */ t("a", { className: "link-primary", onClick: () => l("sintesisHechos2"), children: c.sintesisHechos2 ? "Ver menos" : "Ver más" })
|
|
107
|
+
] })
|
|
108
|
+
] }),
|
|
109
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
110
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Desplazamiento" }) }),
|
|
111
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.desplazamientos })
|
|
112
|
+
] }),
|
|
113
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
114
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Contexto público" }) }),
|
|
115
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.contextoPublico })
|
|
116
|
+
] }),
|
|
117
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
118
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Observaciones CIAT" }) }),
|
|
119
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.observacionesCIAT })
|
|
120
|
+
] }),
|
|
121
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
122
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Medidas de protección vigentes" }) }),
|
|
123
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.medidasProteccion })
|
|
124
|
+
] }),
|
|
125
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
126
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Medidas de emergencia" }) }),
|
|
127
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.medidasEmergencia })
|
|
128
|
+
] }),
|
|
129
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
130
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Ponderación de la matriz" }) }),
|
|
131
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.ponderacionMatriz })
|
|
132
|
+
] }),
|
|
133
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
134
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Motivo de la inactivación" }) }),
|
|
135
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.motivoInactivacion })
|
|
136
|
+
] }),
|
|
137
|
+
/* @__PURE__ */ s("tr", { children: [
|
|
138
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Tipo de anulación" }) }),
|
|
139
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.tipoAnulacion })
|
|
140
|
+
] })
|
|
141
|
+
] }) }) }, a)) }) : /* @__PURE__ */ t(i, { children: "No hay información disponible." }) });
|
|
142
|
+
};
|
|
143
|
+
export {
|
|
144
|
+
I as UnpHistorico
|
|
145
|
+
};
|
package/dist/utils.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { AuthProvider as e } from "./auth/contexts/AuthContex.js";
|
|
2
|
-
import { ProtectedRoute as
|
|
3
|
-
import { UserRoute as
|
|
2
|
+
import { ProtectedRoute as p } from "./utils/components/ProtectedRoute.js";
|
|
3
|
+
import { UserRoute as m } from "./utils/components/UserRoute.js";
|
|
4
|
+
import { UnpHistorico as i } from "./utils/unp-historico/UnpHistorico.js";
|
|
4
5
|
export {
|
|
5
6
|
e as AuthProvider,
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
p as ProtectedRoute,
|
|
8
|
+
i as UnpHistorico,
|
|
9
|
+
m as UserRoute
|
|
8
10
|
};
|
package/package.json
CHANGED
|
File without changes
|