react-ecosistema-unp 1.9.1 → 1.9.6
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/data/tarjeta-datos/TarjetaDatos.js +1 -1
- package/dist/{index-DDjnZyBf.js → index-DV5CcUu9.js} +2 -2
- package/dist/lib/tables/tabla-registros/TablaRegistros.d.ts +1 -0
- package/dist/lib/tables/tabla-registros/buscador/Buscador.d.ts +1 -0
- package/dist/lib/tables/tabla-registros/encabezado-tabla/EncabezadoTabla.d.ts +1 -0
- package/dist/lib/utils/unp-historico/UnpHistorico.d.ts +5 -1
- package/dist/shared/app-list/AppList.js +1 -1
- package/dist/shared/iconos-sistema/logout-button/LogoutButton.js +1 -1
- package/dist/tables/tabla-registros/TablaRegistros.js +263 -261
- package/dist/tables/tabla-registros/buscador/Buscador.js +44 -14
- package/dist/tables/tabla-registros/encabezado-tabla/EncabezadoTabla.js +23 -16
- package/dist/tables/tabla-registros/modal-v2/EcoModal.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 +1 -1
- package/dist/ui/items-modal/ItemsModal.js +1 -1
- package/dist/utils/unp-historico/UnpHistorico.js +16 -16
- package/package.json +1 -1
|
@@ -1,24 +1,54 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { useState as c, useEffect as g } from "react";
|
|
4
|
+
import { y as N } from "../../../index-DV5CcUu9.js";
|
|
5
|
+
import { F as x, a as h } from "../../../FormGroup-BLpFcIN5.js";
|
|
6
|
+
import { u as $, c as v } from "../../../ThemeProvider-Bs1j1Nwi.js";
|
|
7
|
+
import '../../../assets/Buscador.css';const u = /* @__PURE__ */ d.forwardRef(({
|
|
8
|
+
bsPrefix: a,
|
|
9
|
+
variant: r,
|
|
10
|
+
animation: s = "border",
|
|
11
|
+
size: o,
|
|
12
|
+
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
13
|
+
as: i = "div",
|
|
14
|
+
className: t,
|
|
15
|
+
...m
|
|
16
|
+
}, l) => {
|
|
17
|
+
a = $(a, "spinner");
|
|
18
|
+
const e = `${a}-${s}`;
|
|
19
|
+
return /* @__PURE__ */ n(i, {
|
|
20
|
+
ref: l,
|
|
21
|
+
...m,
|
|
22
|
+
className: v(t, e, o && `${e}-${o}`, r && `text-${r}`)
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
u.displayName = "Spinner";
|
|
26
|
+
const j = ({ onSearch: a, onFetchTableSearch: r }) => {
|
|
27
|
+
const [s, o] = c(""), [i, t] = c(!1), m = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), l = (e) => {
|
|
28
|
+
const p = m(e.target.value);
|
|
29
|
+
a(p), o(e.target.value);
|
|
30
|
+
};
|
|
31
|
+
return g(() => {
|
|
32
|
+
if (t(!1), !r) return;
|
|
33
|
+
t(!0);
|
|
34
|
+
const e = setTimeout(() => {
|
|
35
|
+
r(s), t(!1);
|
|
36
|
+
}, 2500);
|
|
37
|
+
return () => clearTimeout(e);
|
|
38
|
+
}, [s]), /* @__PURE__ */ n("div", { className: "search-container", children: /* @__PURE__ */ f(x, { className: "d-flex align-items-center mx-1 position-relative", children: [
|
|
39
|
+
/* @__PURE__ */ n(
|
|
40
|
+
h,
|
|
9
41
|
{
|
|
10
42
|
type: "text",
|
|
11
43
|
className: "me-0 input-with-icon",
|
|
12
44
|
placeholder: "Ingrese un criterio de búsqueda...",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
r(o);
|
|
16
|
-
}
|
|
45
|
+
value: s,
|
|
46
|
+
onChange: l
|
|
17
47
|
}
|
|
18
48
|
),
|
|
19
|
-
/* @__PURE__ */
|
|
49
|
+
i ? /* @__PURE__ */ n(u, { animation: "grow", size: "sm", className: "input-icon" }) : /* @__PURE__ */ n(N, { className: "input-icon" })
|
|
20
50
|
] }) });
|
|
21
51
|
};
|
|
22
52
|
export {
|
|
23
|
-
|
|
53
|
+
j as BusquedaInput
|
|
24
54
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Encabezado as
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Encabezado as s } from "../../../ui/encabezado/Encabezado.js";
|
|
3
3
|
import "../../../ui/subtitulo/Subtitulo.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import '../../../assets/EcoModalStyles.css';import '../../../assets/Modal.css';import '../../../assets/ContenedorVentana.css';import '../../../assets/IconoTooltip.css';import '../../../assets/ItemsModal.css';import '../../../assets/Logo.css';import '../../../assets/Bootstrap.css';import '../../../assets/Paginador.css';import '../../../assets/ContenidoModal.css';/* empty css */
|
|
@@ -14,22 +14,29 @@ import "react-router-dom";
|
|
|
14
14
|
import "../../../index-BrykDZgK.js";
|
|
15
15
|
/* empty css */
|
|
16
16
|
import "../../../Animacion-ThNL9iiY.js";
|
|
17
|
-
import { BusquedaInput as
|
|
18
|
-
const
|
|
19
|
-
title:
|
|
20
|
-
subtitle:
|
|
21
|
-
data:
|
|
22
|
-
setSearchTerm:
|
|
23
|
-
extraInput: o
|
|
24
|
-
// enableColumnSearch
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
import { BusquedaInput as d } from "../buscador/Buscador.js";
|
|
18
|
+
const k = ({
|
|
19
|
+
title: t,
|
|
20
|
+
subtitle: p,
|
|
21
|
+
data: n,
|
|
22
|
+
setSearchTerm: a,
|
|
23
|
+
extraInput: o,
|
|
24
|
+
// enableColumnSearch,
|
|
25
|
+
onFetchTableSearch: i
|
|
26
|
+
}) => /* @__PURE__ */ m("div", { className: "unp-row", children: [
|
|
27
|
+
/* @__PURE__ */ r(s, { title: t, subtitle: p }),
|
|
28
|
+
/* @__PURE__ */ m("div", { className: "inputs-container", children: [
|
|
29
|
+
(n.length > 0 || i) && // && !enableColumnSearch
|
|
30
|
+
/* @__PURE__ */ r(
|
|
31
|
+
d,
|
|
32
|
+
{
|
|
33
|
+
onSearch: a,
|
|
34
|
+
onFetchTableSearch: i
|
|
35
|
+
}
|
|
36
|
+
),
|
|
30
37
|
o && /* @__PURE__ */ r("div", { children: o })
|
|
31
38
|
] })
|
|
32
39
|
] });
|
|
33
40
|
export {
|
|
34
|
-
|
|
41
|
+
k as EncabezadoTabla
|
|
35
42
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useRef as I, useEffect as u } from "react";
|
|
3
3
|
import { R as M } from "../../../index-BrykDZgK.js";
|
|
4
|
-
import { q as A, r as B } from "../../../index-
|
|
4
|
+
import { q as A, r as B } from "../../../index-DV5CcUu9.js";
|
|
5
5
|
import '../../../assets/EcoModalStyles.css';/* empty css */
|
|
6
6
|
const X = ({
|
|
7
7
|
show: r,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import Z, { useState as m, useEffect as L } from "react";
|
|
3
|
-
import { v as S, w } from "../../../index-
|
|
3
|
+
import { v as S, w } from "../../../index-DV5CcUu9.js";
|
|
4
4
|
import { a as ee, b as te, c as re, d as se } from "../../../index-D3WseyJh.js";
|
|
5
5
|
import { T as oe } from "../../../Table-C5ydZooy.js";
|
|
6
6
|
import { F as ie, a as ne } 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-DV5CcUu9.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-DV5CcUu9.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 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 g, k as h, l as G, m as H } from "../../index-
|
|
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-DV5CcUu9.js";
|
|
4
4
|
import '../../assets/IconoTooltip.css';/* empty css */
|
|
5
5
|
const _ = ({ recordType: x, taken: o = !0, customIcon: l }) => {
|
|
6
6
|
const [a, b] = M(!1);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { useNavigate as s } from "react-router-dom";
|
|
3
|
-
import { t as i, u as n } from "../../index-
|
|
3
|
+
import { t as i, u as n } from "../../index-DV5CcUu9.js";
|
|
4
4
|
import { G as c } from "../../iconBase-LROS5hdG.js";
|
|
5
5
|
import '../../assets/ItemsModal.css';/* empty css */
|
|
6
6
|
function m(o) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, Fragment as s, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { useState as l, useEffect as
|
|
2
|
+
import { useState as l, useEffect as N } from "react";
|
|
3
3
|
import '../../assets/EcoModalStyles.css';import '../../assets/Modal.css';import '../../assets/ContenedorVentana.css';import '../../assets/IconoTooltip.css';import '../../assets/ItemsModal.css';import '../../assets/Paginador.css';import '../../assets/ContenidoModal.css';import '../../assets/Encabezado.css';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
|
/* empty css */
|
|
@@ -8,9 +8,9 @@ import "../../cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
|
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
|
-
import { TarjetaInfo as
|
|
12
|
-
import { F as
|
|
13
|
-
import { fetchHistorico as
|
|
11
|
+
import { TarjetaInfo as b } from "../../cards/tarjeta-info/TarjetaInfo.js";
|
|
12
|
+
import { F as u } from "../../index-D3WseyJh.js";
|
|
13
|
+
import { fetchHistorico as f } from "./FetchHistorico.js";
|
|
14
14
|
/* empty css */
|
|
15
15
|
import "../../ui/subtitulo/Subtitulo.js";
|
|
16
16
|
/* empty css */
|
|
@@ -22,24 +22,24 @@ import "react-router-dom";
|
|
|
22
22
|
/* empty css */
|
|
23
23
|
import "../../index-BrykDZgK.js";
|
|
24
24
|
/* empty css */
|
|
25
|
-
import { Animacion as
|
|
26
|
-
import { T as
|
|
27
|
-
const
|
|
28
|
-
const [c,
|
|
25
|
+
import { Animacion as v } from "../../ui/animacion/Animacion.js";
|
|
26
|
+
import { T as g } from "../../Table-C5ydZooy.js";
|
|
27
|
+
const K = ({ nuip: r, showMessage: h = !0 }) => {
|
|
28
|
+
const [c, m] = l({
|
|
29
29
|
sintesisHechos1: !1,
|
|
30
30
|
sintesisHehcos2: !1
|
|
31
|
-
}), [d,
|
|
32
|
-
|
|
31
|
+
}), [d, p] = l([]), [o, x] = l(!1), n = (e) => {
|
|
32
|
+
m((i) => ({
|
|
33
33
|
...i,
|
|
34
34
|
[e]: !i[e]
|
|
35
35
|
}));
|
|
36
36
|
};
|
|
37
|
-
return
|
|
37
|
+
return N(() => {
|
|
38
38
|
(async () => {
|
|
39
|
-
const i = await
|
|
40
|
-
|
|
39
|
+
const i = await f(r, x);
|
|
40
|
+
p(i);
|
|
41
41
|
})();
|
|
42
|
-
}, [r]), /* @__PURE__ */ t(s, { children: d && d.length > 0 && !o ? /* @__PURE__ */ t(s, { children: d.sort((e, i) => e.ordenTrabajo < i.ordenTrabajo ? 1 : -1).map((e, i) => /* @__PURE__ */ t(
|
|
42
|
+
}, [r]), /* @__PURE__ */ t(s, { children: d && d.length > 0 && !o ? /* @__PURE__ */ t(s, { children: d.sort((e, i) => e.ordenTrabajo < i.ordenTrabajo ? 1 : -1).map((e, i) => /* @__PURE__ */ t(b, { icon: u, label: `OT ${e.ordenTrabajo} • ${e.tipoEstudio}`, children: /* @__PURE__ */ t(g, { striped: !0, bordered: !0, children: /* @__PURE__ */ a("tbody", { children: [
|
|
43
43
|
/* @__PURE__ */ a("tr", { children: [
|
|
44
44
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Evaluado" }) }),
|
|
45
45
|
/* @__PURE__ */ t("td", { className: "text-start", children: e.nombreCompleto && e.nombreCompleto })
|
|
@@ -151,12 +151,12 @@ const J = ({ nuip: r }) => {
|
|
|
151
151
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Tipo de anulación" }) }),
|
|
152
152
|
/* @__PURE__ */ t("td", { className: "text-start", children: e.tipoAnulacion && e.tipoAnulacion })
|
|
153
153
|
] })
|
|
154
|
-
] }) }) }, i)) }) : o ? /* @__PURE__ */ t(
|
|
154
|
+
] }) }) }, i)) }) : o ? /* @__PURE__ */ t(v, { type: "loading_parrot", width: 200 }) : h && /* @__PURE__ */ a(s, { children: [
|
|
155
155
|
"No hay información disponible para la identificación ",
|
|
156
156
|
r,
|
|
157
157
|
"."
|
|
158
158
|
] }) });
|
|
159
159
|
};
|
|
160
160
|
export {
|
|
161
|
-
|
|
161
|
+
K as UnpHistorico
|
|
162
162
|
};
|