react-ecosistema-unp 2.1.0 → 2.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/{AppList-BshxZhoN.js → AppList-DORGpC4I.js} +84 -84
- package/dist/assets/DocumentoVisorEstado.css +1 -0
- package/dist/assets/EcoDataTable.css +1 -1
- package/dist/assets/EcoDataTableBandejaFooter.css +1 -1
- package/dist/assets/SileoNotifications.css +1 -1
- package/dist/cards/tarjeta/nuevo-elemento/NuevoElemento.js +1 -1
- package/dist/cards/tarjeta-info/TarjetaInfo.js +1 -1
- package/dist/data/tarjeta-datos/TarjetaDatos.js +1 -1
- package/dist/{index-C4MBu_wk.js → index-B96iRUpt.js} +38 -34
- package/dist/{index-h-TtOxhs.js → index-BqaJxgOF.js} +182 -170
- package/dist/lib/tables/custom-data-table/CustomDataTable.d.ts +2 -0
- package/dist/lib/tables/custom-data-table-split/CustomDataTableSplit.d.ts +3 -1
- package/dist/lib/tables/eco-data-table/components/EcoDataTable/EcoDataTable.d.ts +1 -1
- package/dist/lib/tables/eco-data-table/components/EcoDataTableBandejaFooter.d.ts +8 -1
- package/dist/lib/tables/eco-data-table/hooks/useEcoTableSelection.d.ts +1 -0
- package/dist/lib/tables/eco-data-table/types.d.ts +7 -0
- package/dist/lib/ui/animacion/Animacion.d.ts +1 -0
- package/dist/lib/ui.d.ts +1 -0
- package/dist/lib/utils/modal-radicados/DocumentoVisorEstado.d.ts +18 -0
- package/dist/lib/utils/modal-radicados/ModalDocumento.d.ts +26 -0
- package/dist/lib/utils/modal-radicados/VisorDocumento.d.ts +8 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/shared/app-list/AppList.js +2 -2
- package/dist/shared/iconos-sistema/IconosSistema.js +1 -1
- package/dist/shared/iconos-sistema/logout-button/LogoutButton.js +1 -1
- package/dist/shared/menu-lateral/MenuLateral.js +4 -3
- package/dist/shared/notificacion-usuario/NotificacionUsuario.js +6 -5
- package/dist/shared/ventana-tabs/VentanaTabs.js +1 -1
- package/dist/tables/custom-data-table/CustomDataTable.js +549 -547
- package/dist/tables/custom-data-table-split/CustomDataTableSplit.js +68 -65
- package/dist/tables/custom-table-toolbar/CustomTableToolbar.js +1 -1
- package/dist/tables/eco-data-table/components/EcoDataTable/EcoDataTable.js +190 -149
- package/dist/tables/eco-data-table/components/EcoDataTableBandejaFooter.js +36 -26
- package/dist/tables/eco-data-table/hooks/useEcoTableSelection.js +9 -8
- package/dist/tables/tabla-registros/buscador/Buscador.js +1 -1
- package/dist/tables/tabla-registros/modal-v2/EcoModal.js +11 -11
- package/dist/tables/tabla-registros/tabla/Tabla.js +22 -22
- package/dist/ui/alertas/AlertaFormulario.js +1 -1
- package/dist/ui/card-gestion-lateral/CardGestionLateral.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/contenido-modal-v2/ContenidoModalV2.js +1 -1
- package/dist/ui/contenido-modal-v2/ModalV2Menu.js +1 -1
- package/dist/ui/datos-basicos-card/DatosBasicosCard.js +1 -1
- package/dist/ui/icono-tooltip/IconoTooltip.js +10 -10
- package/dist/ui/items-modal/ItemsModal.js +1 -1
- package/dist/ui/nav-formularios-lateral/NavFormulariosLateral.js +1 -1
- package/dist/ui/notificacion-popover-v2/NotificacionPopoverV2.js +50 -50
- package/dist/ui/resumen-evaluacion/ResumenEvaluacion.js +5 -5
- package/dist/ui/status-filter-bar/StatusFilterBar.js +8 -8
- package/dist/ui/status-semaphore/StatusSemaphore.js +1 -1
- package/dist/ui/stepper-v2/StepperV2.js +1 -1
- package/dist/utils/eco-provider/EcoContext.js +4 -3
- package/dist/utils/modal-radicados/AuxRadicadosComponents/TarjetaRadicado.js +12 -12
- package/dist/utils/modal-radicados/DocumentoVisorEstado.js +125 -0
- package/dist/utils/modal-radicados/ModalDocumento.js +155 -170
- package/dist/utils/modal-radicados/ModalRadicado.js +34 -34
- package/dist/utils/modal-radicados/VisorDocumento.js +61 -61
- package/dist/utils/notifications/EcoToaster.js +26 -25
- package/dist/utils/unp-historico/UnpHistorico.js +1 -1
- package/dist/utils.js +29 -27
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useRef as M, useEffect as u } from "react";
|
|
3
3
|
import { R as q } from "../../../index-DdZBtIJj.js";
|
|
4
|
-
import {
|
|
4
|
+
import { s as A, t as B } from "../../../index-BqaJxgOF.js";
|
|
5
5
|
import '../../../assets/EcoModalStyles.css';/* empty css */
|
|
6
6
|
const X = ({
|
|
7
7
|
show: r,
|
|
@@ -13,7 +13,7 @@ const X = ({
|
|
|
13
13
|
onToggleMaximize: p,
|
|
14
14
|
showMaximizeButton: E = !1,
|
|
15
15
|
modalType: o = "primary",
|
|
16
|
-
primaryPosition:
|
|
16
|
+
primaryPosition: a = "right",
|
|
17
17
|
disableClose: h = !1,
|
|
18
18
|
hasSecondaryModalOpen: R = !1,
|
|
19
19
|
otherModalOpen: n = !1,
|
|
@@ -22,9 +22,9 @@ const X = ({
|
|
|
22
22
|
hasBody: j = !0,
|
|
23
23
|
showOverlay: D = !0
|
|
24
24
|
}) => {
|
|
25
|
-
const [b, v] = m(!1), [c, _] = m(!1), [g, w] = m(!1),
|
|
26
|
-
u(() => (w(!0),
|
|
27
|
-
w(!1),
|
|
25
|
+
const [b, v] = m(!1), [c, _] = m(!1), [g, w] = m(!1), t = M(null);
|
|
26
|
+
u(() => (w(!0), t.current || (t.current = document.createElement("div"), t.current.className = `eco_modal_portal_${o}`, document.body.appendChild(t.current)), () => {
|
|
27
|
+
w(!1), t.current && (document.body.contains(t.current) && document.body.removeChild(t.current), t.current = null);
|
|
28
28
|
}), [o]), u(() => {
|
|
29
29
|
const e = document.body;
|
|
30
30
|
return r ? (v(!0), e.classList.add("eco_modal_open")) : (_(!0), setTimeout(() => {
|
|
@@ -35,7 +35,7 @@ const X = ({
|
|
|
35
35
|
}, [r, g]), u(() => {
|
|
36
36
|
const e = document.body;
|
|
37
37
|
o === "primary" && (e.classList.remove("eco_modal_primary_right", "eco_modal_primary_left"), e.classList.add(
|
|
38
|
-
|
|
38
|
+
a === "left" ? "eco_modal_primary_left" : "eco_modal_primary_right"
|
|
39
39
|
));
|
|
40
40
|
const d = () => {
|
|
41
41
|
if (!(r && n && !l)) {
|
|
@@ -47,13 +47,13 @@ const X = ({
|
|
|
47
47
|
return d(), window.addEventListener("resize", d), () => {
|
|
48
48
|
o === "primary" && e.classList.remove("eco_modal_primary_right", "eco_modal_primary_left"), e.classList.remove("eco_modal_two_modals_50", "eco_modal_two_modals_large"), window.removeEventListener("resize", d);
|
|
49
49
|
};
|
|
50
|
-
}, [o,
|
|
51
|
-
const x = () => o === "primary" ?
|
|
50
|
+
}, [o, a, r, n, l]);
|
|
51
|
+
const x = () => o === "primary" ? a === "center" ? "eco_modal_primary_center" : `eco_modal_primary_${a}` : `eco_modal_secondary_${a === "left" ? "right" : "left"}`, W = () => {
|
|
52
52
|
const e = ["eco_modal_overlay"];
|
|
53
|
-
return D && e.push("eco_modal_overlay_bg"), o === "primary" ? e.push(`eco_modal_primary_${
|
|
53
|
+
return D && e.push("eco_modal_overlay_bg"), o === "primary" ? e.push(`eco_modal_primary_${a}`) : e.push("eco_modal_secondary_overlay"), b && !c && e.push("eco_modal_show"), c && e.push("eco_modal_hide"), e.join(" ");
|
|
54
54
|
}, z = () => {
|
|
55
55
|
const e = ["eco_modal_container", o, x()];
|
|
56
|
-
return b && !c && e.push("eco_modal_show"), c && e.push("eco_modal_hide"), l && e.push("eco_modal_maximized"),
|
|
56
|
+
return b && !c && e.push("eco_modal_show"), c && e.push("eco_modal_hide"), l && e.push("eco_modal_maximized"), a === "center" && e.push("eco_modal_centered"), e.join(" ");
|
|
57
57
|
}, C = o === "primary" ? h || R : h, F = o === "primary" && r && n, O = () => {
|
|
58
58
|
!C && o === "primary" && k && (_(!0), setTimeout(() => {
|
|
59
59
|
f(), _(!1);
|
|
@@ -111,7 +111,7 @@ const X = ({
|
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
113
|
) });
|
|
114
|
-
return
|
|
114
|
+
return t.current ? q.createPortal(L, t.current) : L;
|
|
115
115
|
};
|
|
116
116
|
export {
|
|
117
117
|
X as EcoModal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import L, { useState as m, useEffect as S } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { X as w, Y as ee } from "../../../index-BqaJxgOF.js";
|
|
4
|
+
import { n as te, o as re, p as se, j as oe } from "../../../index-B96iRUpt.js";
|
|
5
5
|
import { T as ie } from "../../../Table-cUZFLrPi.js";
|
|
6
6
|
import { b as ne } from "../../../FormGroup-B8RAswur.js";
|
|
7
7
|
import { F as ae } from "../../../FormControl-DshWdHuR.js";
|
|
@@ -10,11 +10,11 @@ import '../../../assets/Tabla.css';const ke = ({
|
|
|
10
10
|
columns: h,
|
|
11
11
|
displayedData: f,
|
|
12
12
|
// tableData,
|
|
13
|
-
hasMoreData:
|
|
13
|
+
hasMoreData: D,
|
|
14
14
|
// setHasMoreData,
|
|
15
15
|
visibleData: N,
|
|
16
|
-
setVisibleData:
|
|
17
|
-
handleCellClick:
|
|
16
|
+
setVisibleData: P,
|
|
17
|
+
handleCellClick: U,
|
|
18
18
|
totalDias: v,
|
|
19
19
|
isShared: b,
|
|
20
20
|
//
|
|
@@ -27,20 +27,20 @@ import '../../../assets/Tabla.css';const ke = ({
|
|
|
27
27
|
enableRowSelection: u = !1,
|
|
28
28
|
// Indicador para aumentar la selección de casos por gestionar
|
|
29
29
|
extendedSelection: A,
|
|
30
|
-
cellSelectionColor:
|
|
30
|
+
cellSelectionColor: V,
|
|
31
31
|
//
|
|
32
32
|
onLoadMore: B,
|
|
33
33
|
isFiltering: j,
|
|
34
34
|
showColumnCount: C
|
|
35
35
|
}) => {
|
|
36
|
-
const [l,
|
|
36
|
+
const [l, X] = m({
|
|
37
37
|
key: null,
|
|
38
38
|
direction: null
|
|
39
|
-
}), [c,
|
|
39
|
+
}), [c, Y] = m([]), [y, G] = m(null), [k, H] = m(null);
|
|
40
40
|
S(() => {
|
|
41
41
|
F == null || F(c);
|
|
42
42
|
}, [c]);
|
|
43
|
-
const
|
|
43
|
+
const $ = (e, o) => {
|
|
44
44
|
const s = k || I, i = s.findIndex((p) => p.numeroRegistro === e);
|
|
45
45
|
if (i === -1) return;
|
|
46
46
|
const n = s[i], t = c.includes(e);
|
|
@@ -49,31 +49,31 @@ import '../../../assets/Tabla.css';const ke = ({
|
|
|
49
49
|
a = c.filter((p) => p !== e), a.length === 0 && (H(null), G(null));
|
|
50
50
|
else if (c.length === 0) {
|
|
51
51
|
a = [e], G(n.tipoMesa);
|
|
52
|
-
const p = n.tipoMesa,
|
|
53
|
-
H([...
|
|
52
|
+
const p = n.tipoMesa, K = s.filter((g) => g.tipoMesa === p && g.numeroRegistro !== e), O = s.filter((g) => g.tipoMesa !== p), W = s.findIndex((g) => g.numeroRegistro === e), Q = O.slice(0, W), Z = O.slice(W);
|
|
53
|
+
H([...Q, n, ...K, ...Z]);
|
|
54
54
|
} else {
|
|
55
55
|
if (y && n.tipoMesa !== y) return;
|
|
56
56
|
a = [...c, e];
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
Y(a);
|
|
59
59
|
}, E = { i: 0 }, z = (e) => {
|
|
60
60
|
if (v) {
|
|
61
61
|
const o = e / v * 100;
|
|
62
62
|
return o <= 25 ? { backgroundColor: "#3AB34A", color: "#FFFFFF" } : o <= 50 ? { backgroundColor: "#F8EB10", color: "#000000" } : o <= 75 ? { backgroundColor: "#F79122", color: "#000000" } : { backgroundColor: "#E91720", color: "#FFFFFF" };
|
|
63
63
|
}
|
|
64
64
|
return { backgroundColor: "transparent", color: "inherit" };
|
|
65
|
-
},
|
|
65
|
+
}, q = (e) => {
|
|
66
66
|
const { scrollTop: o, clientHeight: s, scrollHeight: i } = e.currentTarget;
|
|
67
67
|
if (i - o <= s + 50) {
|
|
68
|
-
if (
|
|
68
|
+
if (P((n) => {
|
|
69
69
|
const t = n + 10;
|
|
70
70
|
return Math.min(t, f.length);
|
|
71
71
|
}), j)
|
|
72
72
|
return;
|
|
73
73
|
f.length - N < 5 && B && B();
|
|
74
74
|
}
|
|
75
|
-
},
|
|
76
|
-
|
|
75
|
+
}, J = (e) => {
|
|
76
|
+
X((o) => ({
|
|
77
77
|
key: e,
|
|
78
78
|
direction: o.key === e && o.direction === "asc" ? "desc" : "asc"
|
|
79
79
|
}));
|
|
@@ -94,7 +94,7 @@ import '../../../assets/Tabla.css';const ke = ({
|
|
|
94
94
|
return typeof s == "number" && typeof i == "number" ? l.direction === "asc" ? s - i : i - s : typeof s == "string" && typeof i == "string" ? l.direction === "asc" ? s.localeCompare(i) : i.localeCompare(s) : 0;
|
|
95
95
|
});
|
|
96
96
|
})(), x = k || (l.direction === "asc" || l.direction === "desc" ? I : f);
|
|
97
|
-
return /* @__PURE__ */ r("div", { className: "table_container", children: /* @__PURE__ */ r("div", { className: "table-scroll", onScroll:
|
|
97
|
+
return /* @__PURE__ */ r("div", { className: "table_container", children: /* @__PURE__ */ r("div", { className: "table-scroll", onScroll: q, children: /* @__PURE__ */ d(ie, { striped: !0, hover: !0, children: [
|
|
98
98
|
/* @__PURE__ */ d("thead", { children: [
|
|
99
99
|
/* @__PURE__ */ d("tr", { children: [
|
|
100
100
|
u && /* @__PURE__ */ r("th", { className: "table-header-unp" }),
|
|
@@ -103,7 +103,7 @@ import '../../../assets/Tabla.css';const ke = ({
|
|
|
103
103
|
"th",
|
|
104
104
|
{
|
|
105
105
|
className: "table-header-unp",
|
|
106
|
-
onClick: () => (e.sorter || _) &&
|
|
106
|
+
onClick: () => (e.sorter || _) && J(e.key),
|
|
107
107
|
style: { cursor: R ? "pointer" : "default" },
|
|
108
108
|
children: [
|
|
109
109
|
e.label,
|
|
@@ -165,7 +165,7 @@ import '../../../assets/Tabla.css';const ke = ({
|
|
|
165
165
|
cursor: i ? "not-allowed" : "pointer"
|
|
166
166
|
},
|
|
167
167
|
onClick: (t) => {
|
|
168
|
-
t.stopPropagation(), i ||
|
|
168
|
+
t.stopPropagation(), i || $(e.numeroRegistro);
|
|
169
169
|
},
|
|
170
170
|
children: n ? /* @__PURE__ */ r(oe, { size: 18, style: { color: "#505050ff" } }) : /* @__PURE__ */ r(w, { size: 18, style: { color: "#505050ff" } })
|
|
171
171
|
}
|
|
@@ -174,10 +174,10 @@ import '../../../assets/Tabla.css';const ke = ({
|
|
|
174
174
|
h.map((t, a) => /* @__PURE__ */ r(
|
|
175
175
|
"td",
|
|
176
176
|
{
|
|
177
|
-
onClick: () => s ?
|
|
177
|
+
onClick: () => s ? U(t, e) : {},
|
|
178
178
|
style: {
|
|
179
179
|
cursor: (t.hasModal || t.redirectTo) && s ? "pointer" : "default",
|
|
180
|
-
"--cell-selection-bg-color":
|
|
180
|
+
"--cell-selection-bg-color": V || void 0
|
|
181
181
|
},
|
|
182
182
|
className: s ? t.redirectTo ? "cell-redirect" : t.hasModal ? "cell-with-modal" : "" : "",
|
|
183
183
|
children: t.key === "diasHabiles" ? /* @__PURE__ */ r(
|
|
@@ -225,7 +225,7 @@ import '../../../assets/Tabla.css';const ke = ({
|
|
|
225
225
|
}, children: /* @__PURE__ */ r(ee, { style: { fontSize: "1.3rem" } }) }) }) })
|
|
226
226
|
] }, o);
|
|
227
227
|
}),
|
|
228
|
-
|
|
228
|
+
D && !j && /* @__PURE__ */ r("tr", { children: /* @__PURE__ */ r("td", { colSpan: h.length, className: "text-center", children: "Cargando más datos..." }) })
|
|
229
229
|
] })
|
|
230
230
|
] }) }) });
|
|
231
231
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as t, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { U as n, R as m, V as u, i as f, W as N } from "../../index-BqaJxgOF.js";
|
|
3
3
|
import '../../assets/AlertaFormulario.css';/* empty css */
|
|
4
4
|
const g = ({
|
|
5
5
|
variant: r = "info",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f } from "react";
|
|
3
|
-
import { f as d, g, h as v } from "../../index-
|
|
3
|
+
import { f as d, g, h as v } from "../../index-B96iRUpt.js";
|
|
4
4
|
import '../../assets/CardGestionLateral.css';/* empty css */
|
|
5
5
|
const F = ({
|
|
6
6
|
title: t,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, Fragment as p, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import f, { useState as o } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { r as v } from "../../index-BqaJxgOF.js";
|
|
4
4
|
import '../../assets/ContenidoModal.css';/* empty css */
|
|
5
5
|
const y = ({ title: N, modalContent: s, children: d, extraElement: m }) => {
|
|
6
6
|
const [a, l] = o(0), [h, 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 {
|
|
3
|
+
import { r as v } from "../../index-BqaJxgOF.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,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { useState as t } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { r as I } from "../../index-BqaJxgOF.js";
|
|
4
4
|
import { EncabezadoModalV2 as S } from "./EncabezadoModalV2.js";
|
|
5
5
|
import '../../assets/ContenidoModalV2.css';/* empty css */
|
|
6
6
|
import { ModalV2Menu as H } from "./ModalV2Menu.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { u as i } from "../../index-BqaJxgOF.js";
|
|
3
3
|
import '../../assets/ContenidoModalV2.css';/* empty css */
|
|
4
4
|
const t = ({ sections: d, className: n = "" }) => /* @__PURE__ */ a("div", { className: `modal-v2-menu ${n}`, children: d.map((l, s) => /* @__PURE__ */ m("div", { className: "modal-v2-menu__section", children: [
|
|
5
5
|
l.title && /* @__PURE__ */ a("h6", { className: "modal-v2-menu__section-title", children: l.title }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as b } from "react";
|
|
3
|
-
import { b as v, c as h, d as N, F as p, e as u } from "../../index-
|
|
3
|
+
import { b as v, c as h, d as N, F as p, e as u } from "../../index-B96iRUpt.js";
|
|
4
4
|
import '../../assets/DatosBasicosCard.css';/* empty css */
|
|
5
5
|
const f = ({
|
|
6
6
|
nombre: d,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as A, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { useState as L } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { w as M, x as U, y as B, z as j, A as z, B as J, C as W, D as G, i as H, E as P, m as g, G as h, H as Y, I as q } from "../../index-BqaJxgOF.js";
|
|
4
4
|
import '../../assets/IconoTooltip.css';/* empty css */
|
|
5
5
|
const _ = ({ recordType: x, taken: o = !0, customIcon: l }) => {
|
|
6
6
|
const [a, b] = L(!1);
|
|
7
|
-
let r = "", c = {}, e = null,
|
|
8
|
-
const f = "#28a19d", n = "#ed7e3e", d = "#3e52ed", C = "#ed3e49", v = "#edd958",
|
|
7
|
+
let r = "", c = {}, e = null, I = { color: o ? "#287cd1" : "#c8c8c8" };
|
|
8
|
+
const f = "#28a19d", n = "#ed7e3e", d = "#3e52ed", C = "#ed3e49", v = "#edd958", w = "#18a871", p = "#db493b", m = "#6845e6", F = "#c2e545", y = "#43b1dd", R = "#de6f43", N = "#6b6e6e", i = "#666666f4", s = (E) => {
|
|
9
9
|
const t = E.replace(/^#/, ""), D = parseInt(t.slice(0, 2), 16) / 255, T = parseInt(t.slice(2, 4), 16) / 255, S = parseInt(t.slice(4, 6), 16) / 255;
|
|
10
10
|
return 0.2126 * D + 0.7152 * T + 0.0722 * S;
|
|
11
11
|
};
|
|
@@ -20,13 +20,13 @@ const _ = ({ recordType: x, taken: o = !0, customIcon: l }) => {
|
|
|
20
20
|
r = o ? "Individual" : "Nuevo registro", c = {
|
|
21
21
|
backgroundColor: o ? f : i,
|
|
22
22
|
color: "#fcfcfc"
|
|
23
|
-
}, e =
|
|
23
|
+
}, e = q;
|
|
24
24
|
break;
|
|
25
25
|
case "Colectivo":
|
|
26
26
|
r = o ? "Colectivo" : "Nuevo registro", c = {
|
|
27
27
|
backgroundColor: o ? n : i,
|
|
28
28
|
color: "#fcfcfc"
|
|
29
|
-
}, e =
|
|
29
|
+
}, e = Y;
|
|
30
30
|
break;
|
|
31
31
|
// Individual
|
|
32
32
|
case "Formularios en linea Individual":
|
|
@@ -64,23 +64,23 @@ const _ = ({ recordType: x, taken: o = !0, customIcon: l }) => {
|
|
|
64
64
|
r = o ? "Jurídico" : "Nuevo registro", c = {
|
|
65
65
|
backgroundColor: o ? d : i,
|
|
66
66
|
color: o && s(d) > 0.5 ? "#141414" : "#fcfcfc"
|
|
67
|
-
}, e =
|
|
67
|
+
}, e = P;
|
|
68
68
|
break;
|
|
69
69
|
case "Emergencia":
|
|
70
70
|
r = o ? "Emergencia" : "Nuevo registro", c = {
|
|
71
71
|
backgroundColor: o ? C : i,
|
|
72
72
|
color: o && s(C) > 0.5 ? "#141414" : "#fcfcfc"
|
|
73
|
-
}, e =
|
|
73
|
+
}, e = H;
|
|
74
74
|
break;
|
|
75
75
|
case "Reasignación":
|
|
76
76
|
r = o ? "Reasignación" : "Nuevo registro", c = {
|
|
77
77
|
backgroundColor: o ? v : i,
|
|
78
78
|
color: o && s(v) > 0.5 ? "#141414" : "#fcfcfc"
|
|
79
|
-
}, e =
|
|
79
|
+
}, e = G;
|
|
80
80
|
break;
|
|
81
81
|
case "CTAR":
|
|
82
82
|
r = o ? "CTAR" : "Nuevo registro", c = {
|
|
83
|
-
backgroundColor: o ?
|
|
83
|
+
backgroundColor: o ? w : i,
|
|
84
84
|
color: "#fcfcfc"
|
|
85
85
|
}, e = W;
|
|
86
86
|
break;
|
|
@@ -128,7 +128,7 @@ const _ = ({ recordType: x, taken: o = !0, customIcon: l }) => {
|
|
|
128
128
|
onMouseEnter: () => b(!0),
|
|
129
129
|
onMouseLeave: () => b(!1),
|
|
130
130
|
style: {
|
|
131
|
-
...
|
|
131
|
+
...I
|
|
132
132
|
},
|
|
133
133
|
className: "icon-solicitud",
|
|
134
134
|
children: /* @__PURE__ */ u(e, {})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import { useNavigate as i } from "react-router-dom";
|
|
3
|
-
import {
|
|
3
|
+
import { W as n } from "../../index-BqaJxgOF.js";
|
|
4
4
|
import { G as s } from "../../iconBase-DSKTHwal.js";
|
|
5
5
|
import '../../assets/ItemsModal.css';/* empty css */
|
|
6
6
|
function m(t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { useState as C } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { P as k, Q as x, R as F, S as v, v as L, T as $ } from "../../index-BqaJxgOF.js";
|
|
4
4
|
import '../../assets/NavFormulariosLateral.css';/* empty css */
|
|
5
5
|
const y = ({
|
|
6
6
|
items: c,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as a, jsxs as N, Fragment as me } from "react/jsx-runtime";
|
|
2
2
|
import * as _ from "react";
|
|
3
3
|
import pe, { useLayoutEffect as ve, useEffect as L, useRef as x, useMemo as ee, useState as j, useCallback as w, cloneElement as z } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { a8 as ge, T as Ee, a9 as ye, U as we, V as G, W as Ne } from "../../index-BqaJxgOF.js";
|
|
5
5
|
import { Animacion as be } from "../animacion/Animacion.js";
|
|
6
6
|
import '../../assets/NotificacionPopoverV2.css';/* empty css */
|
|
7
7
|
import { c as D } from "../../index-ZphT3dr_.js";
|
|
8
8
|
import { u as S, a as te } from "../../ThemeProvider-Cv61y4Uy.js";
|
|
9
|
-
import { a as Oe, b as
|
|
9
|
+
import { a as Oe, b as Te, g as Re, c as X, d as xe, m as Ce, e as Fe, f as _e, h as Pe, i as Le } from "../../useIsomorphicEffect-DH-agvLb.js";
|
|
10
10
|
import { P as Se } from "../../index-DNv2B0Nc.js";
|
|
11
11
|
import { w as $e } from "../../warning-DfuoVnCC.js";
|
|
12
12
|
import { c as De, o as ne, l as Ue, u as oe } from "../../useMergedRefs-YI9EGKd_.js";
|
|
13
13
|
import { g as A, i as je, e as V } from "../../TransitionWrapper-BCUEVCwA.js";
|
|
14
14
|
import { R as Be } from "../../index-DdZBtIJj.js";
|
|
15
|
-
import { u as I, N as ke, F as
|
|
15
|
+
import { u as I, N as ke, F as Y } from "../../NoopTransition-D8AxBGEr.js";
|
|
16
16
|
import { u as ie } from "../../useEventCallback-Bfo0-hwZ.js";
|
|
17
17
|
const Me = typeof global < "u" && // @ts-ignore
|
|
18
18
|
global.navigator && // @ts-ignore
|
|
19
|
-
global.navigator.product === "ReactNative", He = typeof document < "u",
|
|
19
|
+
global.navigator.product === "ReactNative", He = typeof document < "u", q = He || Me ? ve : L;
|
|
20
20
|
function Ve() {
|
|
21
21
|
const e = x(!0), t = x(() => e.current);
|
|
22
22
|
return L(() => (e.current = !0, () => {
|
|
@@ -51,7 +51,7 @@ function Ae() {
|
|
|
51
51
|
}, []);
|
|
52
52
|
}
|
|
53
53
|
const H = (e, t) => De ? e == null ? (t || ne()).body : (typeof e == "function" && (e = e()), e && "current" in e && (e = e.current), e && ("nodeType" in e || e.getBoundingClientRect) ? e : null) : null;
|
|
54
|
-
function
|
|
54
|
+
function J(e, t) {
|
|
55
55
|
const n = Oe(), [o, i] = j(() => H(e, n == null ? void 0 : n.document));
|
|
56
56
|
if (!o) {
|
|
57
57
|
const r = H(e);
|
|
@@ -84,8 +84,8 @@ function Ge(e) {
|
|
|
84
84
|
addEndListener: u,
|
|
85
85
|
children: d
|
|
86
86
|
} = e, l = Ke(e, Ie);
|
|
87
|
-
const h = x(null), p = I(h, A(d)), s = (y) => (
|
|
88
|
-
y && h.current && y(h.current,
|
|
87
|
+
const h = x(null), p = I(h, A(d)), s = (y) => (T) => {
|
|
88
|
+
y && h.current && y(h.current, T);
|
|
89
89
|
}, v = w(s(t), [t]), g = w(s(n), [n]), b = w(s(o), [o]), f = w(s(i), [i]), E = w(s(r), [r]), m = w(s(c), [c]), O = w(s(u), [u]);
|
|
90
90
|
return Object.assign({}, l, {
|
|
91
91
|
nodeRef: h
|
|
@@ -104,9 +104,9 @@ function Ge(e) {
|
|
|
104
104
|
}, u && {
|
|
105
105
|
addEndListener: O
|
|
106
106
|
}, {
|
|
107
|
-
children: typeof d == "function" ? (y,
|
|
107
|
+
children: typeof d == "function" ? (y, T) => (
|
|
108
108
|
// TODO: Types for RTG missing innerProps, so need to cast.
|
|
109
|
-
d(y, Object.assign({},
|
|
109
|
+
d(y, Object.assign({}, T, {
|
|
110
110
|
ref: p
|
|
111
111
|
}))
|
|
112
112
|
) : /* @__PURE__ */ z(d, {
|
|
@@ -114,8 +114,8 @@ function Ge(e) {
|
|
|
114
114
|
})
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
-
const
|
|
118
|
-
function
|
|
117
|
+
const Xe = ["component"];
|
|
118
|
+
function Ye(e, t) {
|
|
119
119
|
if (e == null) return {};
|
|
120
120
|
var n = {};
|
|
121
121
|
for (var o in e) if ({}.hasOwnProperty.call(e, o)) {
|
|
@@ -124,21 +124,21 @@ function Xe(e, t) {
|
|
|
124
124
|
}
|
|
125
125
|
return n;
|
|
126
126
|
}
|
|
127
|
-
const
|
|
127
|
+
const qe = /* @__PURE__ */ _.forwardRef((e, t) => {
|
|
128
128
|
let {
|
|
129
129
|
component: n
|
|
130
|
-
} = e, o =
|
|
130
|
+
} = e, o = Ye(e, Xe);
|
|
131
131
|
const i = Ge(o);
|
|
132
132
|
return /* @__PURE__ */ a(n, Object.assign({
|
|
133
133
|
ref: t
|
|
134
134
|
}, i));
|
|
135
135
|
});
|
|
136
|
-
function
|
|
136
|
+
function Je({
|
|
137
137
|
in: e,
|
|
138
138
|
onTransition: t
|
|
139
139
|
}) {
|
|
140
140
|
const n = x(null), o = x(!0), i = ie(t);
|
|
141
|
-
return
|
|
141
|
+
return q(() => {
|
|
142
142
|
if (!n.current)
|
|
143
143
|
return;
|
|
144
144
|
let r = !1;
|
|
@@ -150,11 +150,11 @@ function qe({
|
|
|
150
150
|
}), () => {
|
|
151
151
|
r = !0;
|
|
152
152
|
};
|
|
153
|
-
}, [e, i]),
|
|
153
|
+
}, [e, i]), q(() => (o.current = !1, () => {
|
|
154
154
|
o.current = !0;
|
|
155
155
|
}), []), n;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Qe({
|
|
158
158
|
children: e,
|
|
159
159
|
in: t,
|
|
160
160
|
onExited: n,
|
|
@@ -163,7 +163,7 @@ function Je({
|
|
|
163
163
|
}) {
|
|
164
164
|
const [r, c] = j(!t);
|
|
165
165
|
t && r && c(!1);
|
|
166
|
-
const u =
|
|
166
|
+
const u = Je({
|
|
167
167
|
in: !!t,
|
|
168
168
|
onTransition: (l) => {
|
|
169
169
|
const h = () => {
|
|
@@ -179,13 +179,13 @@ function Je({
|
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
function Ze(e, t, n) {
|
|
182
|
-
return e ? /* @__PURE__ */ a(
|
|
182
|
+
return e ? /* @__PURE__ */ a(qe, Object.assign({}, n, {
|
|
183
183
|
component: e
|
|
184
|
-
})) : t ? /* @__PURE__ */ a(
|
|
184
|
+
})) : t ? /* @__PURE__ */ a(Qe, Object.assign({}, n, {
|
|
185
185
|
transition: t
|
|
186
186
|
})) : /* @__PURE__ */ a(ke, Object.assign({}, n));
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Q(e, t) {
|
|
189
189
|
return e.classList ? !!t && e.classList.contains(t) : (" " + (e.className.baseVal || e.className) + " ").indexOf(" " + t + " ") !== -1;
|
|
190
190
|
}
|
|
191
191
|
const et = () => {
|
|
@@ -195,7 +195,7 @@ function tt(e, t, {
|
|
|
195
195
|
clickTrigger: o
|
|
196
196
|
} = {}) {
|
|
197
197
|
const i = t || et;
|
|
198
|
-
|
|
198
|
+
Te(e, i, {
|
|
199
199
|
disabled: n,
|
|
200
200
|
clickTrigger: o
|
|
201
201
|
});
|
|
@@ -204,7 +204,7 @@ function tt(e, t, {
|
|
|
204
204
|
});
|
|
205
205
|
L(() => {
|
|
206
206
|
if (n || e == null) return;
|
|
207
|
-
const c = ne(
|
|
207
|
+
const c = ne(Re(e));
|
|
208
208
|
let u = (c.defaultView || window).event;
|
|
209
209
|
const d = Ue(c, "keyup", (l) => {
|
|
210
210
|
if (l === u) {
|
|
@@ -227,7 +227,7 @@ const se = /* @__PURE__ */ _.forwardRef((e, t) => {
|
|
|
227
227
|
popperConfig: c = {},
|
|
228
228
|
transition: u,
|
|
229
229
|
runTransition: d
|
|
230
|
-
} = e, [l, h] =
|
|
230
|
+
} = e, [l, h] = X(), [p, s] = X(), v = I(h, t), g = J(e.container), b = J(e.target), [f, E] = j(!e.show), m = xe(b, l, Ce({
|
|
231
231
|
placement: i,
|
|
232
232
|
enableEvents: !!e.show,
|
|
233
233
|
containerPadding: r || 5,
|
|
@@ -246,7 +246,7 @@ const se = /* @__PURE__ */ _.forwardRef((e, t) => {
|
|
|
246
246
|
}), !y)
|
|
247
247
|
return null;
|
|
248
248
|
const {
|
|
249
|
-
onExit:
|
|
249
|
+
onExit: T,
|
|
250
250
|
onExiting: F,
|
|
251
251
|
onEnter: C,
|
|
252
252
|
onEntering: B,
|
|
@@ -270,7 +270,7 @@ const se = /* @__PURE__ */ _.forwardRef((e, t) => {
|
|
|
270
270
|
mountOnEnter: !0,
|
|
271
271
|
unmountOnExit: !0,
|
|
272
272
|
children: $,
|
|
273
|
-
onExit:
|
|
273
|
+
onExit: T,
|
|
274
274
|
onExiting: F,
|
|
275
275
|
onExited: O,
|
|
276
276
|
onEnter: C,
|
|
@@ -400,9 +400,9 @@ function it(e) {
|
|
|
400
400
|
if (e)
|
|
401
401
|
return e;
|
|
402
402
|
if (t.current) {
|
|
403
|
-
if (
|
|
403
|
+
if (Q(t.current, n))
|
|
404
404
|
return ue.POPPER_OFFSET;
|
|
405
|
-
if (
|
|
405
|
+
if (Q(t.current, o))
|
|
406
406
|
return ot.TOOLTIP_OFFSET;
|
|
407
407
|
}
|
|
408
408
|
return [0, 0];
|
|
@@ -421,14 +421,14 @@ function rt(e, t) {
|
|
|
421
421
|
}
|
|
422
422
|
const fe = /* @__PURE__ */ _.forwardRef(({
|
|
423
423
|
children: e,
|
|
424
|
-
transition: t =
|
|
424
|
+
transition: t = Y,
|
|
425
425
|
popperConfig: n = {},
|
|
426
426
|
rootClose: o = !1,
|
|
427
427
|
placement: i = "top",
|
|
428
428
|
show: r = !1,
|
|
429
429
|
...c
|
|
430
430
|
}, u) => {
|
|
431
|
-
const d = x({}), [l, h] = j(null), [p, s] = it(c.offset), v = oe(u, p), g = t === !0 ?
|
|
431
|
+
const d = x({}), [l, h] = j(null), [p, s] = it(c.offset), v = oe(u, p), g = t === !0 ? Y : t || void 0, b = Fe((f) => {
|
|
432
432
|
h(f), n == null || n.onFirstUpdate == null || n.onFirstUpdate(f);
|
|
433
433
|
});
|
|
434
434
|
return _e(() => {
|
|
@@ -454,16 +454,16 @@ const fe = /* @__PURE__ */ _.forwardRef(({
|
|
|
454
454
|
}) => {
|
|
455
455
|
var y;
|
|
456
456
|
rt(f, E);
|
|
457
|
-
const
|
|
457
|
+
const T = m == null ? void 0 : m.placement, F = Object.assign(d.current, {
|
|
458
458
|
state: m == null ? void 0 : m.state,
|
|
459
459
|
scheduleUpdate: m == null ? void 0 : m.update,
|
|
460
|
-
placement:
|
|
460
|
+
placement: T,
|
|
461
461
|
outOfBoundaries: (m == null || (y = m.state) == null || (y = y.modifiersData.hide) == null ? void 0 : y.isReferenceHidden) || !1,
|
|
462
462
|
strategy: n.strategy
|
|
463
463
|
}), C = !!l;
|
|
464
464
|
return typeof e == "function" ? e({
|
|
465
465
|
...f,
|
|
466
|
-
placement:
|
|
466
|
+
placement: T,
|
|
467
467
|
show: O,
|
|
468
468
|
...!t && O && {
|
|
469
469
|
className: "show"
|
|
@@ -473,7 +473,7 @@ const fe = /* @__PURE__ */ _.forwardRef(({
|
|
|
473
473
|
hasDoneInitialMeasure: C
|
|
474
474
|
}) : /* @__PURE__ */ _.cloneElement(e, {
|
|
475
475
|
...f,
|
|
476
|
-
placement:
|
|
476
|
+
placement: T,
|
|
477
477
|
arrowProps: E,
|
|
478
478
|
popper: F,
|
|
479
479
|
hasDoneInitialMeasure: C,
|
|
@@ -515,8 +515,8 @@ const at = ({
|
|
|
515
515
|
onFocus: m,
|
|
516
516
|
onBlur: O,
|
|
517
517
|
onClick: y
|
|
518
|
-
} = typeof n != "function" ? _.Children.only(n).props : {},
|
|
519
|
-
s(V(
|
|
518
|
+
} = typeof n != "function" ? _.Children.only(n).props : {}, T = (R) => {
|
|
519
|
+
s(V(R));
|
|
520
520
|
}, F = w(() => {
|
|
521
521
|
if (v.clear(), g.current = "show", !E.show) {
|
|
522
522
|
f(!0);
|
|
@@ -533,18 +533,18 @@ const at = ({
|
|
|
533
533
|
v.set(() => {
|
|
534
534
|
g.current === "hide" && f(!1);
|
|
535
535
|
}, E.hide);
|
|
536
|
-
}, [E.hide, f, v]), B = w((...
|
|
537
|
-
F(), m == null || m(...
|
|
538
|
-
}, [F, m]), k = w((...
|
|
539
|
-
C(), O == null || O(...
|
|
540
|
-
}, [C, O]), $ = w((...
|
|
541
|
-
f(!b), y == null || y(...
|
|
542
|
-
}, [y, f, b]), M = w((...
|
|
543
|
-
Z(F,
|
|
544
|
-
}, [F]), he = w((...
|
|
545
|
-
Z(C,
|
|
536
|
+
}, [E.hide, f, v]), B = w((...R) => {
|
|
537
|
+
F(), m == null || m(...R);
|
|
538
|
+
}, [F, m]), k = w((...R) => {
|
|
539
|
+
C(), O == null || O(...R);
|
|
540
|
+
}, [C, O]), $ = w((...R) => {
|
|
541
|
+
f(!b), y == null || y(...R);
|
|
542
|
+
}, [y, f, b]), M = w((...R) => {
|
|
543
|
+
Z(F, R, "fromElement");
|
|
544
|
+
}, [F]), he = w((...R) => {
|
|
545
|
+
Z(C, R, "toElement");
|
|
546
546
|
}, [C]), U = e == null ? [] : [].concat(e), P = {
|
|
547
|
-
ref:
|
|
547
|
+
ref: T
|
|
548
548
|
};
|
|
549
549
|
return U.indexOf("click") !== -1 && (P.onClick = $), U.indexOf("focus") !== -1 && (P.onFocus = B, P.onBlur = k), U.indexOf("hover") !== -1 && (process.env.NODE_ENV !== "production" && $e(U.length > 1, '[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'), P.onMouseOver = M, P.onMouseOut = he), /* @__PURE__ */ N(me, {
|
|
550
550
|
children: [typeof n == "function" ? n(P) : /* @__PURE__ */ z(n, P), /* @__PURE__ */ a(fe, {
|
|
@@ -662,7 +662,7 @@ const at = ({
|
|
|
662
662
|
)) }),
|
|
663
663
|
/* @__PURE__ */ a("div", { className: "eco-notif-footer", children: /* @__PURE__ */ a("button", { onClick: c, children: "Ver todas las notificaciones" }) })
|
|
664
664
|
] });
|
|
665
|
-
},
|
|
665
|
+
}, Tt = ({
|
|
666
666
|
count: e = 0,
|
|
667
667
|
placement: t = "bottom",
|
|
668
668
|
...n
|
|
@@ -683,6 +683,6 @@ const at = ({
|
|
|
683
683
|
);
|
|
684
684
|
};
|
|
685
685
|
export {
|
|
686
|
-
|
|
687
|
-
|
|
686
|
+
Tt as NotificacionBellV2,
|
|
687
|
+
Tt as default
|
|
688
688
|
};
|