react-ecosistema-unp 1.2.3 → 1.2.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
.subtitulo-contenedor-fila{display:flex;justify-content:space-between;align-items:center}.subtitulo-contenedor-icon-subtitle{display:flex;justify-content:start;align-items:center}.subtitulo-icon{font-size:1.25rem;color:#303d50;margin-right:.66rem}.subtitulo-subtitle{font-size:1.1rem;font-weight:700;color:#303d50}
|
|
1
|
+
.subtitulo-contenedor-fila{display:flex;justify-content:space-between;align-items:center}.subtitulo-contenedor-icon-subtitle{display:flex;justify-content:start;align-items:center}.subtitulo-icon{font-size:1.25rem;color:#303d50;margin-right:.66rem;flex-shrink:0}.subtitulo-subtitle{font-size:1.1rem;font-weight:700;color:#303d50}
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { jsxs as o, jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as o, jsx as e, Fragment as C } from "react/jsx-runtime";
|
|
2
|
+
import a from "react";
|
|
3
3
|
import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { C as
|
|
6
|
-
import { C as
|
|
7
|
-
import { B as
|
|
8
|
-
const
|
|
5
|
+
import { C as N, a as S } from "../../Card-BXqmurzN.js";
|
|
6
|
+
import { C as x } from "../../CardBody-RoDe1y90.js";
|
|
7
|
+
import { B as h } from "../../Button-DMwpnJlD.js";
|
|
8
|
+
const B = {
|
|
9
9
|
marginBottom: "20px",
|
|
10
10
|
width: "100px"
|
|
11
|
-
},
|
|
11
|
+
}, A = ({
|
|
12
12
|
title: c,
|
|
13
13
|
header: s = !1,
|
|
14
|
-
children:
|
|
14
|
+
children: n,
|
|
15
15
|
method: l = "get",
|
|
16
16
|
validated: d = !1,
|
|
17
17
|
onSubmit: u,
|
|
18
18
|
hasPaddingTop: y = !0,
|
|
19
|
-
onClose:
|
|
19
|
+
onClose: r,
|
|
20
|
+
hasBody: f = !0
|
|
20
21
|
}) => {
|
|
21
|
-
const
|
|
22
|
-
(t) =>
|
|
23
|
-
),
|
|
22
|
+
const i = a.Children.toArray(n), g = i[0] && a.isValidElement(i[0]) && i[0].type.displayName === "Subtitulo", m = i.filter(
|
|
23
|
+
(t) => a.isValidElement(t) && t.type.displayName === "SeccionTarjeta"
|
|
24
|
+
), b = m.length > 0, j = a.Children.map(n, (t, p) => a.isValidElement(t) && t.type.displayName === "SeccionTarjeta" ? a.cloneElement(t, {
|
|
24
25
|
isGray: t.props.isGray ?? p % 2 === 1,
|
|
25
26
|
isLast: t.props.isLast ?? p === m.length - 1
|
|
26
27
|
}) : t);
|
|
@@ -32,14 +33,14 @@ const h = {
|
|
|
32
33
|
onSubmit: u,
|
|
33
34
|
className: d ? "was-validated" : "",
|
|
34
35
|
children: [
|
|
35
|
-
/* @__PURE__ */ o(
|
|
36
|
+
/* @__PURE__ */ o(N, { className: "border-0 tarjeta-unp", children: [
|
|
36
37
|
/* @__PURE__ */ o(
|
|
37
|
-
|
|
38
|
+
S,
|
|
38
39
|
{
|
|
39
40
|
className: "bg-unp text-light tarjeta-header-unp",
|
|
40
41
|
style: {
|
|
41
|
-
paddingTop:
|
|
42
|
-
paddingBottom:
|
|
42
|
+
paddingTop: r ? "0.55rem" : "1rem",
|
|
43
|
+
paddingBottom: r ? "0.55rem" : "1rem",
|
|
43
44
|
fontSize: s ? "1.125rem" : "1.075rem",
|
|
44
45
|
fontWeight: s ? 500 : "",
|
|
45
46
|
display: "flex",
|
|
@@ -47,18 +48,18 @@ const h = {
|
|
|
47
48
|
alignItems: "center"
|
|
48
49
|
},
|
|
49
50
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
|
|
51
|
+
/* @__PURE__ */ e("span", { style: { marginLeft: s && r ? "auto" : "" }, children: c }),
|
|
52
|
+
r && /* @__PURE__ */ e("button", { className: "card-close-button", onClick: r, type: "button", children: "×" })
|
|
52
53
|
]
|
|
53
54
|
}
|
|
54
55
|
),
|
|
55
|
-
|
|
56
|
+
b ? j : f ? /* @__PURE__ */ e(x, { className: `${g || !y ? "pt-0" : ""}`, children: n }) : /* @__PURE__ */ e(C, { children: n })
|
|
56
57
|
] }),
|
|
57
|
-
l === "post" && /* @__PURE__ */
|
|
58
|
+
l === "post" && /* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "end" }, children: /* @__PURE__ */ e(h, { variant: "unp_send", style: B, type: "submit", children: "Enviar" }) })
|
|
58
59
|
]
|
|
59
60
|
}
|
|
60
61
|
);
|
|
61
62
|
};
|
|
62
63
|
export {
|
|
63
|
-
|
|
64
|
+
A as Tarjeta
|
|
64
65
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as t, Fragment as i, jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as t, Fragment as i, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as o, useEffect as x } from "react";
|
|
3
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
4
|
/* empty css */
|
|
5
5
|
import "../../cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
|
|
@@ -11,134 +11,134 @@ import { TarjetaInfo as N } from "../../cards/tarjeta-info/TarjetaInfo.js";
|
|
|
11
11
|
import { F as b } from "../../index-COVtBfm6.js";
|
|
12
12
|
import { fetchHistorico as p } from "./FetchHistorico.js";
|
|
13
13
|
import { T as u } from "../../Table-dmTfkFLf.js";
|
|
14
|
-
const D = ({ endpoint:
|
|
15
|
-
const [c,
|
|
14
|
+
const D = ({ endpoint: n, nuip: d }) => {
|
|
15
|
+
const [c, h] = o({
|
|
16
16
|
sintesisHechos1: !1,
|
|
17
17
|
sintesisHehcos2: !1
|
|
18
|
-
}), [r, m] =
|
|
19
|
-
|
|
20
|
-
...
|
|
21
|
-
[e]: !
|
|
18
|
+
}), [r, m] = o([]), l = (e) => {
|
|
19
|
+
h((s) => ({
|
|
20
|
+
...s,
|
|
21
|
+
[e]: !s[e]
|
|
22
22
|
}));
|
|
23
23
|
};
|
|
24
24
|
return x(() => {
|
|
25
25
|
(async () => {
|
|
26
|
-
const
|
|
27
|
-
m(
|
|
26
|
+
const s = await p(n, d);
|
|
27
|
+
m(s);
|
|
28
28
|
})();
|
|
29
|
-
}, [d]), /* @__PURE__ */ t(i, { children: r && r.length > 0 ? /* @__PURE__ */ t(i, { children: r.sort((e,
|
|
30
|
-
/* @__PURE__ */
|
|
29
|
+
}, [d]), /* @__PURE__ */ t(i, { children: r && r.length > 0 ? /* @__PURE__ */ t(i, { children: r.sort((e, s) => e.ordenTrabajo < s.ordenTrabajo ? 1 : -1).map((e, s) => /* @__PURE__ */ t(N, { icon: b, label: `OT ${e.ordenTrabajo} • ${e.tipoEstudio}`, children: /* @__PURE__ */ t(u, { striped: !0, bordered: !0, children: /* @__PURE__ */ a("tbody", { children: [
|
|
30
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
31
31
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Evaluado" }) }),
|
|
32
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.nombreCompleto })
|
|
32
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.nombreCompleto && e.nombreCompleto })
|
|
33
33
|
] }),
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
35
35
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Nuip" }) }),
|
|
36
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.nuip })
|
|
36
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.nuip && e.nuip })
|
|
37
37
|
] }),
|
|
38
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
39
39
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Ubicación" }) }),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
e.departamento,
|
|
40
|
+
/* @__PURE__ */ a("td", { className: "text-start", children: [
|
|
41
|
+
e.departamento && e.departamento,
|
|
42
42
|
", ",
|
|
43
|
-
e.municipio
|
|
43
|
+
e.municipio && e.municipio
|
|
44
44
|
] })
|
|
45
45
|
] }),
|
|
46
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
47
47
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Celular" }) }),
|
|
48
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.celularEvaluado })
|
|
48
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.celularEvaluado && e.celularEvaluado })
|
|
49
49
|
] }),
|
|
50
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
51
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 })
|
|
52
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.correoEvaluado && e.correoEvaluado })
|
|
53
53
|
] }),
|
|
54
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
55
55
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Factor diferencial" }) }),
|
|
56
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.factorDiferencial })
|
|
56
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.factorDiferencial && e.factorDiferencial })
|
|
57
57
|
] }),
|
|
58
58
|
/* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: 2 }) }),
|
|
59
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
60
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 })
|
|
61
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.analistaRiesgo && e.analistaRiesgo })
|
|
62
62
|
] }),
|
|
63
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
64
64
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Estado OT" }) }),
|
|
65
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.EstadoOT })
|
|
65
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.EstadoOT && e.EstadoOT })
|
|
66
66
|
] }),
|
|
67
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
68
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 })
|
|
69
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.tipoEstudio && e.tipoEstudio })
|
|
70
70
|
] }),
|
|
71
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
72
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 })
|
|
73
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.evaluacionRiesgo && e.evaluacionRiesgo })
|
|
74
74
|
] }),
|
|
75
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
76
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 })
|
|
77
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.FechaAutorizacion && e.FechaAutorizacion })
|
|
78
78
|
] }),
|
|
79
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
80
80
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Población" }) }),
|
|
81
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.poblacion })
|
|
81
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.poblacion && e.poblacion })
|
|
82
82
|
] }),
|
|
83
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
84
84
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Subpoblación" }) }),
|
|
85
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.subpoblacion })
|
|
85
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.subpoblacion && e.subpoblacion })
|
|
86
86
|
] }),
|
|
87
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
88
88
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Cargo" }) }),
|
|
89
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.cargo_evaluado })
|
|
89
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.cargo_evaluado && e.cargo_evaluado })
|
|
90
90
|
] }),
|
|
91
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
92
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 })
|
|
93
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.fechaEntrevista && e.fechaEntrevista })
|
|
94
94
|
] }),
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
96
96
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Síntesis de hechos #1" }) }),
|
|
97
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.sintesisHechos1 && /* @__PURE__ */ a(i, { children: [
|
|
98
98
|
c.sintesisHechos1 ? e.sintesisHechos1 + " " : e.sintesisHechos1.slice(0, 250) + "... ",
|
|
99
99
|
/* @__PURE__ */ t("a", { className: "link-primary", onClick: () => l("sintesisHechos1"), children: c.sintesisHechos1 ? "Ver menos" : "Ver más" })
|
|
100
|
-
] })
|
|
100
|
+
] }) })
|
|
101
101
|
] }),
|
|
102
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
103
103
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Síntesos de hechos #2" }) }),
|
|
104
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.sintesisHechos2 && /* @__PURE__ */ a(i, { children: [
|
|
105
105
|
c.sintesisHechos2 ? e.sintesisHechos2 + " " : e.sintesisHechos2.slice(0, 250) + "... ",
|
|
106
106
|
/* @__PURE__ */ t("a", { className: "link-primary", onClick: () => l("sintesisHechos2"), children: c.sintesisHechos2 ? "Ver menos" : "Ver más" })
|
|
107
|
-
] })
|
|
107
|
+
] }) })
|
|
108
108
|
] }),
|
|
109
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
110
110
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Desplazamiento" }) }),
|
|
111
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.desplazamientos })
|
|
111
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.desplazamientos && e.desplazamientos })
|
|
112
112
|
] }),
|
|
113
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
114
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 })
|
|
115
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.contextoPublico && e.contextoPublico })
|
|
116
116
|
] }),
|
|
117
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
118
118
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Observaciones CIAT" }) }),
|
|
119
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.observacionesCIAT })
|
|
119
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.observacionesCIAT && e.observacionesCIAT })
|
|
120
120
|
] }),
|
|
121
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
122
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 })
|
|
123
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.medidasProteccion && e.medidasProteccion })
|
|
124
124
|
] }),
|
|
125
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
126
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 })
|
|
127
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.medidasEmergencia && e.medidasEmergencia })
|
|
128
128
|
] }),
|
|
129
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
130
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 })
|
|
131
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.ponderacionMatriz && e.ponderacionMatriz })
|
|
132
132
|
] }),
|
|
133
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
134
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 })
|
|
135
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.motivoInactivacion && e.motivoInactivacion })
|
|
136
136
|
] }),
|
|
137
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
138
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 })
|
|
139
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.tipoAnulacion && e.tipoAnulacion })
|
|
140
140
|
] })
|
|
141
|
-
] }) }) },
|
|
141
|
+
] }) }) }, s)) }) : /* @__PURE__ */ t(i, { children: "No hay información disponible." }) });
|
|
142
142
|
};
|
|
143
143
|
export {
|
|
144
144
|
D as UnpHistorico
|