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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, Fragment as N, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useEffect as p } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { l as v } from "../../index-CcQhl4DX.js";
|
|
4
4
|
import '../../assets/ContenidoModal.css';/* empty css */
|
|
5
5
|
const y = ({ title: d, children: h, buttons: s, isShowing: i, setIsShowing: u = () => {
|
|
6
6
|
} }) => {
|
|
@@ -32,7 +32,7 @@ const y = ({ title: d, children: h, buttons: s, isShowing: i, setIsShowing: u =
|
|
|
32
32
|
/* @__PURE__ */ e("span", { className: "tooltip-text", children: l.title })
|
|
33
33
|
] }, n)) }),
|
|
34
34
|
!c && /* @__PURE__ */ e("div", { className: `close-group ${i ? "show" : "hide"}`, children: /* @__PURE__ */ e(
|
|
35
|
-
|
|
35
|
+
v,
|
|
36
36
|
{
|
|
37
37
|
className: "icon-close-registro",
|
|
38
38
|
onClick: () => {
|
|
@@ -1,72 +1,108 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { F as
|
|
1
|
+
import { jsxs as S, jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { useState as M } from "react";
|
|
3
|
+
import { F as A, a as U, b as j, c as L, d as B, e as D, f as J, g as W, h as z, i as P, j as Y, k as q } from "../../index-CcQhl4DX.js";
|
|
4
4
|
import '../../assets/IconoTooltip.css';/* empty css */
|
|
5
|
-
const
|
|
6
|
-
const [a,
|
|
7
|
-
let
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
return 0.2126 *
|
|
5
|
+
const X = ({ recordType: m, taken: o = !0, customIcon: l }) => {
|
|
6
|
+
const [a, t] = M(!1);
|
|
7
|
+
let c = "", r = {}, e = null, h = { color: o ? "#287cd1" : "#c8c8c8" };
|
|
8
|
+
const x = "#28a19d", F = "#ed7e3e", d = "#3e52ed", u = "#ed3e49", b = "#edd958", N = "#18a871", g = "#db493b", p = "#6845e6", C = "#c2e545", w = "#43b1dd", y = "#de6f43", v = "#6b6e6e", s = "#666666f4", i = (I) => {
|
|
9
|
+
const n = I.replace(/^#/, ""), E = parseInt(n.slice(0, 2), 16) / 255, T = parseInt(n.slice(2, 4), 16) / 255, R = parseInt(n.slice(4, 6), 16) / 255;
|
|
10
|
+
return 0.2126 * E + 0.7152 * T + 0.0722 * R;
|
|
11
11
|
};
|
|
12
12
|
if (l)
|
|
13
|
-
|
|
14
|
-
backgroundColor: o ? l.color :
|
|
15
|
-
color: o &&
|
|
16
|
-
},
|
|
13
|
+
c = o ? l.tooltipText : "Nuevo registro", r = {
|
|
14
|
+
backgroundColor: o ? l.color : s,
|
|
15
|
+
color: o && i(l.color) > 0.5 ? "#141414" : "#fcfcfc"
|
|
16
|
+
}, e = l.icon;
|
|
17
17
|
else
|
|
18
|
-
switch (
|
|
18
|
+
switch (m) {
|
|
19
19
|
case "Individual":
|
|
20
|
-
|
|
21
|
-
backgroundColor: o ?
|
|
20
|
+
c = o ? "Individual" : "Nuevo registro", r = {
|
|
21
|
+
backgroundColor: o ? x : s,
|
|
22
22
|
color: "#fcfcfc"
|
|
23
|
-
},
|
|
23
|
+
}, e = q;
|
|
24
24
|
break;
|
|
25
25
|
case "Colectivo":
|
|
26
|
-
|
|
27
|
-
backgroundColor: o ?
|
|
26
|
+
c = o ? "Colectivo" : "Nuevo registro", r = {
|
|
27
|
+
backgroundColor: o ? F : s,
|
|
28
28
|
color: "#fcfcfc"
|
|
29
|
-
},
|
|
29
|
+
}, e = Y;
|
|
30
30
|
break;
|
|
31
31
|
case "Jurídico":
|
|
32
|
-
|
|
33
|
-
backgroundColor: o ?
|
|
34
|
-
color: o &&
|
|
35
|
-
},
|
|
32
|
+
c = o ? "Jurídico" : "Nuevo registro", r = {
|
|
33
|
+
backgroundColor: o ? d : s,
|
|
34
|
+
color: o && i(d) > 0.5 ? "#141414" : "#fcfcfc"
|
|
35
|
+
}, e = P;
|
|
36
36
|
break;
|
|
37
37
|
case "Emergencia":
|
|
38
|
-
|
|
39
|
-
backgroundColor: o ? u :
|
|
40
|
-
color: o &&
|
|
41
|
-
},
|
|
38
|
+
c = o ? "Emergencia" : "Nuevo registro", r = {
|
|
39
|
+
backgroundColor: o ? u : s,
|
|
40
|
+
color: o && i(u) > 0.5 ? "#141414" : "#fcfcfc"
|
|
41
|
+
}, e = z;
|
|
42
42
|
break;
|
|
43
43
|
case "Reasignación":
|
|
44
|
-
|
|
45
|
-
backgroundColor: o ?
|
|
46
|
-
color: o &&
|
|
47
|
-
},
|
|
44
|
+
c = o ? "Reasignación" : "Nuevo registro", r = {
|
|
45
|
+
backgroundColor: o ? b : s,
|
|
46
|
+
color: o && i(b) > 0.5 ? "#141414" : "#fcfcfc"
|
|
47
|
+
}, e = W;
|
|
48
|
+
break;
|
|
49
|
+
case "CTAR":
|
|
50
|
+
c = o ? "CTAR" : "Nuevo registro", r = {
|
|
51
|
+
backgroundColor: o ? N : s,
|
|
52
|
+
color: "#fcfcfc"
|
|
53
|
+
}, e = J;
|
|
54
|
+
break;
|
|
55
|
+
case "Inactivaciones":
|
|
56
|
+
c = o ? "Inactivaciones" : "Nuevo registro", r = {
|
|
57
|
+
backgroundColor: o ? g : s,
|
|
58
|
+
color: o && i(g) > 0.5 ? "#141414" : "#fcfcfc"
|
|
59
|
+
}, e = D;
|
|
60
|
+
break;
|
|
61
|
+
case "Desmonte":
|
|
62
|
+
c = o ? "Desmonte" : "Nuevo registro", r = {
|
|
63
|
+
backgroundColor: o ? p : s,
|
|
64
|
+
color: o && i(p) > 0.5 ? "#141414" : "#fcfcfc"
|
|
65
|
+
}, e = B;
|
|
66
|
+
break;
|
|
67
|
+
case "Implementación":
|
|
68
|
+
c = o ? "Implementación" : "Nuevo registro", r = {
|
|
69
|
+
backgroundColor: o ? C : s,
|
|
70
|
+
color: o && i(C) > 0.5 ? "#141414" : "#fcfcfc"
|
|
71
|
+
}, e = L;
|
|
72
|
+
break;
|
|
73
|
+
case "Correspondencia":
|
|
74
|
+
c = o ? "Correspondencia" : "Nuevo registro", r = {
|
|
75
|
+
backgroundColor: o ? w : s,
|
|
76
|
+
color: "#fcfcfc"
|
|
77
|
+
}, e = j;
|
|
78
|
+
break;
|
|
79
|
+
case "Uso indebido":
|
|
80
|
+
c = o ? "Uso indebido" : "Nuevo registro", r = {
|
|
81
|
+
backgroundColor: o ? y : s,
|
|
82
|
+
color: "#fcfcfc"
|
|
83
|
+
}, e = U;
|
|
48
84
|
break;
|
|
49
85
|
default:
|
|
50
|
-
|
|
51
|
-
backgroundColor: o ?
|
|
52
|
-
color: o &&
|
|
53
|
-
},
|
|
86
|
+
c = o ? "Registro" : "Nuevo registro", r = {
|
|
87
|
+
backgroundColor: o ? v : s,
|
|
88
|
+
color: o && i(v) > 0.5 ? "#141414" : "#fcfcfc"
|
|
89
|
+
}, e = A;
|
|
54
90
|
break;
|
|
55
91
|
}
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
92
|
+
return /* @__PURE__ */ S("div", { style: { position: "relative", display: "inline-block" }, children: [
|
|
93
|
+
/* @__PURE__ */ f(
|
|
58
94
|
"div",
|
|
59
95
|
{
|
|
60
|
-
onMouseEnter: () =>
|
|
61
|
-
onMouseLeave: () =>
|
|
96
|
+
onMouseEnter: () => t(!0),
|
|
97
|
+
onMouseLeave: () => t(!1),
|
|
62
98
|
style: {
|
|
63
|
-
...
|
|
99
|
+
...h
|
|
64
100
|
},
|
|
65
101
|
className: "icon-solicitud",
|
|
66
|
-
children: /* @__PURE__ */
|
|
102
|
+
children: /* @__PURE__ */ f(e, {})
|
|
67
103
|
}
|
|
68
104
|
),
|
|
69
|
-
a && /* @__PURE__ */
|
|
105
|
+
a && /* @__PURE__ */ f(
|
|
70
106
|
"div",
|
|
71
107
|
{
|
|
72
108
|
style: {
|
|
@@ -83,13 +119,13 @@ const B = ({ recordType: b, taken: o = !0, customIcon: l }) => {
|
|
|
83
119
|
visibility: a ? "visible" : "hidden",
|
|
84
120
|
zIndex: 1e3,
|
|
85
121
|
transition: "opacity 0.3s ease, visibility 0.3s ease",
|
|
86
|
-
...
|
|
122
|
+
...r
|
|
87
123
|
},
|
|
88
|
-
children:
|
|
124
|
+
children: c
|
|
89
125
|
}
|
|
90
126
|
)
|
|
91
127
|
] });
|
|
92
128
|
};
|
|
93
129
|
export {
|
|
94
|
-
|
|
130
|
+
X as IconoTooltip
|
|
95
131
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useNavigate as
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { useNavigate as s } from "react-router-dom";
|
|
3
|
+
import { n as i, o as n } from "../../index-CcQhl4DX.js";
|
|
4
4
|
import { G as c } from "../../iconBase-LROS5hdG.js";
|
|
5
5
|
import '../../assets/ItemsModal.css';/* empty css */
|
|
6
|
-
function m(
|
|
7
|
-
return c({ tag: "svg", attr: { viewBox: "0 0 32 32" }, child: [{ tag: "path", attr: { d: "M 15 4 L 15 20.5625 L 9.71875 15.28125 L 8.28125 16.71875 L 15.28125 23.71875 L 16 24.40625 L 16.71875 23.71875 L 23.71875 16.71875 L 22.28125 15.28125 L 17 20.5625 L 17 4 Z M 7 26 L 7 28 L 25 28 L 25 26 Z" }, child: [] }] })(
|
|
6
|
+
function m(o) {
|
|
7
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 32 32" }, child: [{ tag: "path", attr: { d: "M 15 4 L 15 20.5625 L 9.71875 15.28125 L 8.28125 16.71875 L 15.28125 23.71875 L 16 24.40625 L 16.71875 23.71875 L 23.71875 16.71875 L 22.28125 15.28125 L 17 20.5625 L 17 4 Z M 7 26 L 7 28 L 25 28 L 25 26 Z" }, child: [] }] })(o);
|
|
8
8
|
}
|
|
9
|
-
const N = ({ sections:
|
|
10
|
-
const e =
|
|
11
|
-
return /* @__PURE__ */ t("div", { className: "listado-tarjetas", children:
|
|
12
|
-
/* @__PURE__ */
|
|
9
|
+
const N = ({ sections: o }) => {
|
|
10
|
+
const e = s();
|
|
11
|
+
return /* @__PURE__ */ t("div", { className: "listado-tarjetas", children: o.map((a, r) => /* @__PURE__ */ l("div", { className: "tarjeta-listado-row", children: [
|
|
12
|
+
/* @__PURE__ */ l(
|
|
13
13
|
"div",
|
|
14
14
|
{
|
|
15
15
|
className: "tarjeta-listado-container",
|
|
16
16
|
onClick: () => e(a.route, { state: a.state }),
|
|
17
17
|
children: [
|
|
18
|
-
/* @__PURE__ */
|
|
18
|
+
/* @__PURE__ */ l("div", { className: "tarjeta-listado-label-container", children: [
|
|
19
19
|
/* @__PURE__ */ t(a.icon, { className: "tarjeta-listado-process-menu" }),
|
|
20
20
|
/* @__PURE__ */ t("span", { children: a.label })
|
|
21
21
|
] }),
|
|
22
|
-
"closed" in a && /* @__PURE__ */ t("div", { className: "tarjeta-listado-state-container", children: a.closed ? /* @__PURE__ */ t(
|
|
22
|
+
"closed" in a && /* @__PURE__ */ t("div", { className: "tarjeta-listado-state-container", children: a.closed ? /* @__PURE__ */ t(i, { style: { color: "#3AB34A" } }) : /* @__PURE__ */ t(n, { style: { color: "#E2E2E2" } }) })
|
|
23
23
|
]
|
|
24
24
|
}
|
|
25
25
|
),
|