react-ecosistema-unp 1.5.0 → 1.5.1
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/cards/tarjeta/nuevo-elemento/NuevoElemento.js +1 -1
- package/dist/cards/tarjeta-info/TarjetaInfo.js +1 -1
- package/dist/{index-pCr0mQ1L.js → index-CZLknVmR.js} +2 -2
- package/dist/shared/app-list/AppList.js +1 -1
- package/dist/tables/tabla-registros/buscador/Buscador.js +1 -1
- package/dist/tables/tabla-registros/tabla/Tabla.js +1 -1
- package/dist/ui/contenido-modal/ContenidoModal.js +1 -1
- package/dist/ui/contenido-modal/ContenidoModalv0.1.js +1 -1
- package/dist/ui/icono-tooltip/IconoTooltip.js +35 -29
- package/dist/ui/items-modal/ItemsModal.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { o as s } from "../../../index-
|
|
2
|
+
import { o as s } from "../../../index-CZLknVmR.js";
|
|
3
3
|
import '../../../assets/Bootstrap.css';/* empty css */
|
|
4
4
|
import { B as a } from "../../../Button-B87TJYml.js";
|
|
5
5
|
const d = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as r, useRef as d, useEffect as u } from "react";
|
|
3
|
-
import { t as j, u as N } from "../../index-
|
|
3
|
+
import { t as j, u as N } from "../../index-CZLknVmR.js";
|
|
4
4
|
import '../../assets/UnpHistorico.css';const C = ({ icon: c, label: l, show: h = !1, children: o }) => {
|
|
5
5
|
const [e, i] = r(h), [f, s] = r(0), a = d(null);
|
|
6
6
|
return u(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { useState as p, useEffect as m } from "react";
|
|
3
3
|
import { F as l, e as d, f as h, g as f, h as v } from "../../index-CgSyrJ_X.js";
|
|
4
|
-
import { v as g } from "../../index-
|
|
4
|
+
import { v as g } from "../../index-CZLknVmR.js";
|
|
5
5
|
import { G as u } from "../../iconBase-LROS5hdG.js";
|
|
6
6
|
import { j as z } from "../../index-CuHybtft.js";
|
|
7
7
|
import '../../assets/Modal.css';import '../../assets/ContenedorVentana.css';import '../../assets/IconoTooltip.css';import '../../assets/ItemsModal.css';import '../../assets/Bootstrap.css';import '../../assets/Paginador.css';import '../../assets/ContenidoModal.css';import '../../assets/Encabezado.css';import '../../assets/Logo.css';import '../../assets/AppList.css';/* empty css */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { s as t } from "../../../index-
|
|
2
|
+
import { s as t } from "../../../index-CZLknVmR.js";
|
|
3
3
|
import { F as i, a as l } from "../../../FormGroup-BLpFcIN5.js";
|
|
4
4
|
import '../../../assets/Buscador.css';const d = ({ onSearch: r }) => {
|
|
5
5
|
const n = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import _, { useState as j } from "react";
|
|
3
|
-
import { r as A } from "../../../index-
|
|
3
|
+
import { r as A } from "../../../index-CZLknVmR.js";
|
|
4
4
|
import { a as G, b as R, c as E } from "../../../index-CgSyrJ_X.js";
|
|
5
5
|
import { T as z } from "../../../Table-C5ydZooy.js";
|
|
6
6
|
import { F as M, a as O } from "../../../FormGroup-BLpFcIN5.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as s, Fragment as N, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import p, { useState as o } from "react";
|
|
3
|
-
import { n as v } from "../../index-
|
|
3
|
+
import { n as v } from "../../index-CZLknVmR.js";
|
|
4
4
|
import '../../assets/ContenidoModal.css';/* empty css */
|
|
5
5
|
const x = ({ title: u, modalContent: i, children: d }) => {
|
|
6
6
|
const [a, l] = o(0), [m, c] = o(!0), [r, n] = o(!1);
|
|
@@ -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 { n as v } from "../../index-
|
|
3
|
+
import { n as v } from "../../index-CZLknVmR.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
|
} }) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as L, jsx as
|
|
1
|
+
import { jsxs as L, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { useState as M } from "react";
|
|
3
|
-
import { F as A, a as U, b as j, c as B, d as J, e as W, f as z, g as P, h as Y, i as q, j as
|
|
3
|
+
import { F as A, a as U, b as j, c as B, d as J, e as W, f as z, g as P, h as Y, i as q, j as g, k as h, l as G, m as H } from "../../index-CZLknVmR.js";
|
|
4
4
|
import '../../assets/IconoTooltip.css';/* empty css */
|
|
5
5
|
const _ = ({ recordType: x, taken: o = !0, customIcon: l }) => {
|
|
6
|
-
const [a,
|
|
6
|
+
const [a, b] = M(!1);
|
|
7
7
|
let c = "", r = {}, e = null, I = { color: o ? "#287cd1" : "#c8c8c8" };
|
|
8
|
-
const f = "#28a19d", n = "#ed7e3e",
|
|
9
|
-
const
|
|
10
|
-
return 0.2126 *
|
|
8
|
+
const f = "#28a19d", n = "#ed7e3e", d = "#3e52ed", C = "#ed3e49", v = "#edd958", w = "#18a871", p = "#db493b", m = "#6845e6", F = "#c2e545", R = "#43b1dd", y = "#de6f43", N = "#6b6e6e", i = "#666666f4", s = (E) => {
|
|
9
|
+
const t = E.replace(/^#/, ""), T = parseInt(t.slice(0, 2), 16) / 255, D = parseInt(t.slice(2, 4), 16) / 255, S = parseInt(t.slice(4, 6), 16) / 255;
|
|
10
|
+
return 0.2126 * T + 0.7152 * D + 0.0722 * S;
|
|
11
11
|
};
|
|
12
12
|
if (l)
|
|
13
13
|
c = o ? l.tooltipText : "Nuevo registro", r = {
|
|
@@ -33,7 +33,7 @@ const _ = ({ recordType: x, taken: o = !0, customIcon: l }) => {
|
|
|
33
33
|
c = o ? "Formulario en línea" : "Nuevo registro", r = {
|
|
34
34
|
backgroundColor: o ? f : i,
|
|
35
35
|
color: "#fcfcfc"
|
|
36
|
-
}, e =
|
|
36
|
+
}, e = g;
|
|
37
37
|
break;
|
|
38
38
|
case "Digitador Formulario Individual":
|
|
39
39
|
c = o ? "Digitador" : "Nuevo registro", r = {
|
|
@@ -46,7 +46,7 @@ const _ = ({ recordType: x, taken: o = !0, customIcon: l }) => {
|
|
|
46
46
|
c = o ? "Formulario en línea" : "Nuevo registro", r = {
|
|
47
47
|
backgroundColor: o ? f : i,
|
|
48
48
|
color: "#fcfcfc"
|
|
49
|
-
}, e =
|
|
49
|
+
}, e = g;
|
|
50
50
|
break;
|
|
51
51
|
case "Digitador Formulario Colectivo":
|
|
52
52
|
c = o ? "Digitador" : "Nuevo registro", r = {
|
|
@@ -54,22 +54,28 @@ const _ = ({ recordType: x, taken: o = !0, customIcon: l }) => {
|
|
|
54
54
|
color: "#fcfcfc"
|
|
55
55
|
}, e = h;
|
|
56
56
|
break;
|
|
57
|
+
case "Formularios en linea Recurso Reposicion":
|
|
58
|
+
c = o ? "Recurso de reposición" : "Nuevo registro", r = {
|
|
59
|
+
backgroundColor: o ? d : i,
|
|
60
|
+
color: "#fcfcfc"
|
|
61
|
+
}, e = g;
|
|
62
|
+
break;
|
|
57
63
|
case "Jurídico":
|
|
58
64
|
c = o ? "Jurídico" : "Nuevo registro", r = {
|
|
59
|
-
backgroundColor: o ?
|
|
60
|
-
color: o && s(
|
|
65
|
+
backgroundColor: o ? d : i,
|
|
66
|
+
color: o && s(d) > 0.5 ? "#141414" : "#fcfcfc"
|
|
61
67
|
}, e = q;
|
|
62
68
|
break;
|
|
63
69
|
case "Emergencia":
|
|
64
70
|
c = o ? "Emergencia" : "Nuevo registro", r = {
|
|
65
|
-
backgroundColor: o ?
|
|
66
|
-
color: o && s(
|
|
71
|
+
backgroundColor: o ? C : i,
|
|
72
|
+
color: o && s(C) > 0.5 ? "#141414" : "#fcfcfc"
|
|
67
73
|
}, e = Y;
|
|
68
74
|
break;
|
|
69
75
|
case "Reasignación":
|
|
70
76
|
c = o ? "Reasignación" : "Nuevo registro", r = {
|
|
71
|
-
backgroundColor: o ?
|
|
72
|
-
color: o && s(
|
|
77
|
+
backgroundColor: o ? v : i,
|
|
78
|
+
color: o && s(v) > 0.5 ? "#141414" : "#fcfcfc"
|
|
73
79
|
}, e = P;
|
|
74
80
|
break;
|
|
75
81
|
case "CTAR":
|
|
@@ -80,55 +86,55 @@ const _ = ({ recordType: x, taken: o = !0, customIcon: l }) => {
|
|
|
80
86
|
break;
|
|
81
87
|
case "Inactivaciones":
|
|
82
88
|
c = o ? "Inactivaciones" : "Nuevo registro", r = {
|
|
83
|
-
backgroundColor: o ?
|
|
84
|
-
color: o && s(
|
|
89
|
+
backgroundColor: o ? p : i,
|
|
90
|
+
color: o && s(p) > 0.5 ? "#141414" : "#fcfcfc"
|
|
85
91
|
}, e = W;
|
|
86
92
|
break;
|
|
87
93
|
case "Desmonte":
|
|
88
94
|
c = o ? "Desmonte" : "Nuevo registro", r = {
|
|
89
|
-
backgroundColor: o ?
|
|
90
|
-
color: o && s(
|
|
95
|
+
backgroundColor: o ? m : i,
|
|
96
|
+
color: o && s(m) > 0.5 ? "#141414" : "#fcfcfc"
|
|
91
97
|
}, e = J;
|
|
92
98
|
break;
|
|
93
99
|
case "Implementación":
|
|
94
100
|
c = o ? "Implementación" : "Nuevo registro", r = {
|
|
95
|
-
backgroundColor: o ?
|
|
96
|
-
color: o && s(
|
|
101
|
+
backgroundColor: o ? F : i,
|
|
102
|
+
color: o && s(F) > 0.5 ? "#141414" : "#fcfcfc"
|
|
97
103
|
}, e = B;
|
|
98
104
|
break;
|
|
99
105
|
case "Correspondencia":
|
|
100
106
|
c = o ? "Correspondencia" : "Nuevo registro", r = {
|
|
101
|
-
backgroundColor: o ?
|
|
107
|
+
backgroundColor: o ? R : i,
|
|
102
108
|
color: "#fcfcfc"
|
|
103
109
|
}, e = j;
|
|
104
110
|
break;
|
|
105
111
|
case "Uso indebido":
|
|
106
112
|
c = o ? "Uso indebido" : "Nuevo registro", r = {
|
|
107
|
-
backgroundColor: o ?
|
|
113
|
+
backgroundColor: o ? y : i,
|
|
108
114
|
color: "#fcfcfc"
|
|
109
115
|
}, e = U;
|
|
110
116
|
break;
|
|
111
117
|
default:
|
|
112
118
|
c = o ? "Registro" : "Nuevo registro", r = {
|
|
113
|
-
backgroundColor: o ?
|
|
114
|
-
color: o && s(
|
|
119
|
+
backgroundColor: o ? N : i,
|
|
120
|
+
color: o && s(N) > 0.5 ? "#141414" : "#fcfcfc"
|
|
115
121
|
}, e = A;
|
|
116
122
|
break;
|
|
117
123
|
}
|
|
118
124
|
return /* @__PURE__ */ L("div", { style: { position: "relative", display: "inline-block" }, children: [
|
|
119
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ u(
|
|
120
126
|
"div",
|
|
121
127
|
{
|
|
122
|
-
onMouseEnter: () =>
|
|
123
|
-
onMouseLeave: () =>
|
|
128
|
+
onMouseEnter: () => b(!0),
|
|
129
|
+
onMouseLeave: () => b(!1),
|
|
124
130
|
style: {
|
|
125
131
|
...I
|
|
126
132
|
},
|
|
127
133
|
className: "icon-solicitud",
|
|
128
|
-
children: /* @__PURE__ */
|
|
134
|
+
children: /* @__PURE__ */ u(e, {})
|
|
129
135
|
}
|
|
130
136
|
),
|
|
131
|
-
a && /* @__PURE__ */
|
|
137
|
+
a && /* @__PURE__ */ u(
|
|
132
138
|
"div",
|
|
133
139
|
{
|
|
134
140
|
style: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { useNavigate as s } from "react-router-dom";
|
|
3
|
-
import { p as i, q as n } from "../../index-
|
|
3
|
+
import { p as i, q as n } from "../../index-CZLknVmR.js";
|
|
4
4
|
import { G as c } from "../../iconBase-LROS5hdG.js";
|
|
5
5
|
import '../../assets/ItemsModal.css';/* empty css */
|
|
6
6
|
function m(l) {
|