react-ecosistema-unp 1.2.1 → 1.2.3
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/assets/Tarjeta.css +1 -1
- package/dist/cards/tarjeta/Tarjeta.js +37 -32
- package/dist/cards/tarjeta-info/TarjetaInfo.js +22 -19
- package/dist/lib/cards/tarjeta/Tarjeta.d.ts +1 -0
- package/dist/shared/iconos-sistema/IconosSistema.js +12 -12
- package/dist/utils/unp-historico/UnpHistorico.js +3 -3
- package/package.json +1 -1
package/dist/assets/Tarjeta.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.bg-unp{border-radius:6px 6px 0 0!important;background-color:#303d50!important}.tarjeta-unp{border-radius:12px!important;box-shadow:0 6px 10px #00000019;border-bottom-left-radius:12px;margin-bottom:1.5rem}.tarjeta-header-unp{border-top-left-radius:12px!important;border-top-right-radius:12px!important}
|
|
1
|
+
.bg-unp{border-radius:6px 6px 0 0!important;background-color:#303d50!important}.tarjeta-unp{border-radius:12px!important;box-shadow:0 6px 10px #00000019;border-bottom-left-radius:12px;margin-bottom:1.5rem}.tarjeta-header-unp{border-top-left-radius:12px!important;border-top-right-radius:12px!important}.card-close-button{background:none;border:none;font-size:1.5em;cursor:pointer;color:#fff;margin-left:auto}.card-close-button:hover{color:#d36269}
|
|
@@ -1,59 +1,64 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import e from "react";
|
|
3
3
|
import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { C as j, a as
|
|
6
|
-
import { C as
|
|
7
|
-
import { B as
|
|
8
|
-
const
|
|
5
|
+
import { C as j, a as C } from "../../Card-BXqmurzN.js";
|
|
6
|
+
import { C as N } from "../../CardBody-RoDe1y90.js";
|
|
7
|
+
import { B as S } from "../../Button-DMwpnJlD.js";
|
|
8
|
+
const h = {
|
|
9
9
|
marginBottom: "20px",
|
|
10
10
|
width: "100px"
|
|
11
|
-
},
|
|
12
|
-
title:
|
|
13
|
-
header:
|
|
14
|
-
children:
|
|
15
|
-
method:
|
|
11
|
+
}, L = ({
|
|
12
|
+
title: c,
|
|
13
|
+
header: s = !1,
|
|
14
|
+
children: i,
|
|
15
|
+
method: l = "get",
|
|
16
16
|
validated: d = !1,
|
|
17
|
-
onSubmit:
|
|
18
|
-
hasPaddingTop: y = !0
|
|
17
|
+
onSubmit: u,
|
|
18
|
+
hasPaddingTop: y = !0,
|
|
19
|
+
onClose: a
|
|
19
20
|
}) => {
|
|
20
|
-
const
|
|
21
|
+
const n = e.Children.toArray(i), f = n[0] && e.isValidElement(n[0]) && n[0].type.displayName === "Subtitulo", m = n.filter(
|
|
21
22
|
(t) => e.isValidElement(t) && t.type.displayName === "SeccionTarjeta"
|
|
22
|
-
),
|
|
23
|
-
isGray: t.props.isGray ??
|
|
24
|
-
isLast: t.props.isLast ??
|
|
23
|
+
), g = m.length > 0, b = e.Children.map(i, (t, p) => e.isValidElement(t) && t.type.displayName === "SeccionTarjeta" ? e.cloneElement(t, {
|
|
24
|
+
isGray: t.props.isGray ?? p % 2 === 1,
|
|
25
|
+
isLast: t.props.isLast ?? p === m.length - 1
|
|
25
26
|
}) : t);
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ o(
|
|
27
28
|
"form",
|
|
28
29
|
{
|
|
29
|
-
method:
|
|
30
|
+
method: l,
|
|
30
31
|
noValidate: !0,
|
|
31
|
-
onSubmit:
|
|
32
|
+
onSubmit: u,
|
|
32
33
|
className: d ? "was-validated" : "",
|
|
33
34
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
35
|
+
/* @__PURE__ */ o(j, { className: "border-0 tarjeta-unp", children: [
|
|
36
|
+
/* @__PURE__ */ o(
|
|
37
|
+
C,
|
|
37
38
|
{
|
|
38
39
|
className: "bg-unp text-light tarjeta-header-unp",
|
|
39
40
|
style: {
|
|
40
|
-
paddingTop: "1rem",
|
|
41
|
-
paddingBottom: "1rem",
|
|
42
|
-
fontSize:
|
|
43
|
-
fontWeight:
|
|
44
|
-
display:
|
|
45
|
-
justifyContent:
|
|
41
|
+
paddingTop: a ? "0.55rem" : "1rem",
|
|
42
|
+
paddingBottom: a ? "0.55rem" : "1rem",
|
|
43
|
+
fontSize: s ? "1.125rem" : "1.075rem",
|
|
44
|
+
fontWeight: s ? 500 : "",
|
|
45
|
+
display: "flex",
|
|
46
|
+
justifyContent: s ? "center" : "space-between",
|
|
47
|
+
alignItems: "center"
|
|
46
48
|
},
|
|
47
|
-
children:
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ r("span", { style: { marginLeft: s && a ? "auto" : "" }, children: c }),
|
|
51
|
+
a && /* @__PURE__ */ r("button", { className: "card-close-button", onClick: a, type: "button", children: "×" })
|
|
52
|
+
]
|
|
48
53
|
}
|
|
49
54
|
),
|
|
50
|
-
|
|
55
|
+
g ? b : /* @__PURE__ */ r(N, { className: `${f || !y ? "pt-0" : ""}`, children: i })
|
|
51
56
|
] }),
|
|
52
|
-
|
|
57
|
+
l === "post" && /* @__PURE__ */ r("div", { style: { display: "flex", justifyContent: "end" }, children: /* @__PURE__ */ r(S, { variant: "unp_send", style: h, type: "submit", children: "Enviar" }) })
|
|
53
58
|
]
|
|
54
59
|
}
|
|
55
60
|
);
|
|
56
61
|
};
|
|
57
62
|
export {
|
|
58
|
-
|
|
63
|
+
L as Tarjeta
|
|
59
64
|
};
|
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
import { jsxs as n, jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { q as j, r as
|
|
4
|
-
import '../../assets/UnpHistorico.css';const
|
|
5
|
-
const [
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as r, useRef as d, useEffect as u } from "react";
|
|
3
|
+
import { q as j, r as N } from "../../index-CcQhl4DX.js";
|
|
4
|
+
import '../../assets/UnpHistorico.css';const C = ({ icon: c, label: l, show: h = !1, children: o }) => {
|
|
5
|
+
const [e, i] = r(h), [f, s] = r(0), a = d(null);
|
|
6
|
+
return u(() => {
|
|
7
|
+
if (!a.current) return;
|
|
8
|
+
const m = a.current;
|
|
9
|
+
(() => {
|
|
10
|
+
s(e ? m.scrollHeight : 0);
|
|
11
|
+
})();
|
|
12
|
+
}, [e, o]), /* @__PURE__ */ n("div", { className: "tarjeta-info-container", children: [
|
|
9
13
|
/* @__PURE__ */ n("div", { className: "tarjeta-info-titulo-container", children: [
|
|
10
14
|
/* @__PURE__ */ n("div", { className: "tarjeta-info-label-container", children: [
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
15
|
+
/* @__PURE__ */ t(c, { className: "tarjeta-info-icon" }),
|
|
16
|
+
/* @__PURE__ */ t("span", { children: l })
|
|
13
17
|
] }),
|
|
14
|
-
/* @__PURE__ */
|
|
18
|
+
/* @__PURE__ */ t("div", { className: "tarjeta-info-show-container", children: e ? /* @__PURE__ */ t(
|
|
15
19
|
j,
|
|
16
20
|
{
|
|
17
21
|
className: "tarjeta-info-show-button",
|
|
18
|
-
onClick: () =>
|
|
22
|
+
onClick: () => i(!e)
|
|
19
23
|
}
|
|
20
|
-
) : /* @__PURE__ */
|
|
21
|
-
|
|
24
|
+
) : /* @__PURE__ */ t(
|
|
25
|
+
N,
|
|
22
26
|
{
|
|
23
27
|
className: "tarjeta-info-show-button",
|
|
24
|
-
onClick: () =>
|
|
28
|
+
onClick: () => i(!e)
|
|
25
29
|
}
|
|
26
30
|
) })
|
|
27
31
|
] }),
|
|
28
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ t(
|
|
29
33
|
"div",
|
|
30
34
|
{
|
|
31
35
|
className: "tarjeta-info-children-container",
|
|
32
36
|
style: { height: `${f}px` },
|
|
33
|
-
ref: a,
|
|
34
|
-
children: /* @__PURE__ */ e("div", { className: "tarjeta-info-content", children: h })
|
|
37
|
+
children: /* @__PURE__ */ t("div", { className: "tarjeta-info-content", ref: a, children: o })
|
|
35
38
|
}
|
|
36
39
|
)
|
|
37
40
|
] });
|
|
38
41
|
};
|
|
39
42
|
export {
|
|
40
|
-
|
|
43
|
+
C as TarjetaInfo
|
|
41
44
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { N as
|
|
3
|
-
import '../../assets/IconosSistema.css';const p = ({ elements: s }) => /* @__PURE__ */
|
|
4
|
-
s && s.slice(0, 5).map((
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
|
|
1
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { N as r } from "../../NotificacionUsuario-B0uOnywk.js";
|
|
3
|
+
import '../../assets/IconosSistema.css';const p = ({ elements: s }) => /* @__PURE__ */ c("div", { className: "iconos-sistema-container", children: [
|
|
4
|
+
s && s.slice(0, 5).map((i, a) => /* @__PURE__ */ c("div", { className: "icono-sistema-tooltip-container", children: [
|
|
5
|
+
/* @__PURE__ */ o(
|
|
6
|
+
i.icon,
|
|
7
7
|
{
|
|
8
8
|
className: "iconos-sistema-icon",
|
|
9
|
-
onClick:
|
|
9
|
+
onClick: i.action
|
|
10
10
|
},
|
|
11
|
-
|
|
11
|
+
a
|
|
12
12
|
),
|
|
13
|
-
|
|
14
|
-
] })),
|
|
15
|
-
s && /* @__PURE__ */
|
|
13
|
+
i.label && /* @__PURE__ */ o("span", { className: "icono-sistema-tooltip-text", children: i.label })
|
|
14
|
+
] }, a)),
|
|
15
|
+
s && /* @__PURE__ */ o(
|
|
16
16
|
"div",
|
|
17
17
|
{
|
|
18
18
|
style: {
|
|
@@ -25,7 +25,7 @@ import '../../assets/IconosSistema.css';const p = ({ elements: s }) => /* @__PUR
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
),
|
|
28
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(r, {}) })
|
|
29
29
|
] });
|
|
30
30
|
export {
|
|
31
31
|
p as IconosSistema
|
|
@@ -11,7 +11,7 @@ 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
|
|
14
|
+
const D = ({ endpoint: h, nuip: d }) => {
|
|
15
15
|
const [c, o] = n({
|
|
16
16
|
sintesisHechos1: !1,
|
|
17
17
|
sintesisHehcos2: !1
|
|
@@ -55,7 +55,7 @@ const I = ({ endpoint: h, nuip: d }) => {
|
|
|
55
55
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Factor diferencial" }) }),
|
|
56
56
|
/* @__PURE__ */ t("td", { className: "text-start", children: e.factorDiferencial })
|
|
57
57
|
] }),
|
|
58
|
-
"
|
|
58
|
+
/* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: 2 }) }),
|
|
59
59
|
/* @__PURE__ */ s("tr", { children: [
|
|
60
60
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Analista de riesgo" }) }),
|
|
61
61
|
/* @__PURE__ */ t("td", { className: "text-start", children: e.analistaRiesgo })
|
|
@@ -141,5 +141,5 @@ const I = ({ endpoint: h, nuip: d }) => {
|
|
|
141
141
|
] }) }) }, a)) }) : /* @__PURE__ */ t(i, { children: "No hay información disponible." }) });
|
|
142
142
|
};
|
|
143
143
|
export {
|
|
144
|
-
|
|
144
|
+
D as UnpHistorico
|
|
145
145
|
};
|