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.
Files changed (30) hide show
  1. package/dist/{NotificacionUsuario-xD2pyELE.js → NotificacionUsuario-B0uOnywk.js} +147 -151
  2. package/dist/Table-dmTfkFLf.js +32 -0
  3. package/dist/assets/IconosSistema.css +1 -1
  4. package/dist/cards/tarjeta/Tarjeta.js +4 -3
  5. package/dist/cards/tarjeta/contenedor-tarjeta/ContenedorTarjeta.js +5 -4
  6. package/dist/cards/tarjeta/nuevo-elemento/NuevoElemento.js +1 -1
  7. package/dist/cards/tarjeta-info/TarjetaInfo.js +2 -2
  8. package/dist/cards/tarjeta-lectura/TarjetaLectura.js +16 -15
  9. package/dist/cards/tarjeta-lectura/seccion-tarjeta-lectura/SeccionTarjetaLectura.js +7 -6
  10. package/dist/index-COVtBfm6.js +11 -0
  11. package/dist/{index-D_9gBL0I.js → index-CcQhl4DX.js} +51 -27
  12. package/dist/lib/utils/unp-historico/FetchHistorico.d.ts +2 -0
  13. package/dist/lib/utils/unp-historico/UnpHistorico.d.ts +7 -0
  14. package/dist/lib/utils.d.ts +1 -0
  15. package/dist/shared/iconos-sistema/IconosSistema.js +7 -5
  16. package/dist/shared/notificacion-usuario/NotificacionUsuario.js +2 -1
  17. package/dist/shared/ventana-tabs/VentanaTabs.js +1 -1
  18. package/dist/tables/tabla-registros/buscador/Buscador.js +1 -1
  19. package/dist/tables/tabla-registros/encabezado-tabla/EncabezadoTabla.js +2 -2
  20. package/dist/tables/tabla-registros/tabla/Tabla.js +43 -69
  21. package/dist/ui/contenido-modal/ContenidoModal.js +2 -2
  22. package/dist/ui/contenido-modal/ContenidoModalv0.1.js +2 -2
  23. package/dist/ui/icono-tooltip/IconoTooltip.js +82 -46
  24. package/dist/ui/items-modal/ItemsModal.js +11 -11
  25. package/dist/ui/logo/Logo.js +3 -2
  26. package/dist/utils/unp-historico/FetchHistorico.js +12 -0
  27. package/dist/utils/unp-historico/UnpHistorico.js +145 -0
  28. package/dist/utils.js +6 -4
  29. package/package.json +1 -1
  30. /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 { f } from "../../index-D_9gBL0I.js";
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
- f,
35
+ v,
36
36
  {
37
37
  className: "icon-close-registro",
38
38
  onClick: () => {
@@ -1,72 +1,108 @@
1
- import { jsxs as N, jsx as n } from "react/jsx-runtime";
2
- import { useState as w } from "react";
3
- import { F as E, a as M, b as T, c as R, d as S, e as I } from "../../index-D_9gBL0I.js";
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 B = ({ recordType: b, taken: o = !0, customIcon: l }) => {
6
- const [a, d] = w(!1);
7
- let e = "", c = {}, r = null, v = { color: o ? "#287cd1" : "#c8c8c8" };
8
- const C = "#28a19d", h = "#ed7e3e", f = "#3e52edf8", u = "#ed3e49f8", p = "#edd958", g = "#6b6e6e", i = "#666666f4", s = (x) => {
9
- const t = x.replace(/^#/, ""), m = parseInt(t.slice(0, 2), 16) / 255, y = parseInt(t.slice(2, 4), 16) / 255, F = parseInt(t.slice(4, 6), 16) / 255;
10
- return 0.2126 * m + 0.7152 * y + 0.0722 * F;
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
- e = o ? l.tooltipText : "Nuevo registro", c = {
14
- backgroundColor: o ? l.color : i,
15
- color: o && s(l.color) > 0.5 ? "#141414" : "#fcfcfc"
16
- }, r = l.icon;
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 (b) {
18
+ switch (m) {
19
19
  case "Individual":
20
- e = o ? "Individual" : "Nuevo registro", c = {
21
- backgroundColor: o ? C : i,
20
+ c = o ? "Individual" : "Nuevo registro", r = {
21
+ backgroundColor: o ? x : s,
22
22
  color: "#fcfcfc"
23
- }, r = I;
23
+ }, e = q;
24
24
  break;
25
25
  case "Colectivo":
26
- e = o ? "Colectivo" : "Nuevo registro", c = {
27
- backgroundColor: o ? h : i,
26
+ c = o ? "Colectivo" : "Nuevo registro", r = {
27
+ backgroundColor: o ? F : s,
28
28
  color: "#fcfcfc"
29
- }, r = S;
29
+ }, e = Y;
30
30
  break;
31
31
  case "Jurídico":
32
- e = o ? "Jurídico" : "Nuevo registro", c = {
33
- backgroundColor: o ? f : i,
34
- color: o && s(f) > 0.5 ? "#141414" : "#fcfcfc"
35
- }, r = R;
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
- e = o ? "Emergencia" : "Nuevo registro", c = {
39
- backgroundColor: o ? u : i,
40
- color: o && s(u) > 0.5 ? "#141414" : "#fcfcfc"
41
- }, r = T;
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
- e = o ? "Reasignación" : "Nuevo registro", c = {
45
- backgroundColor: o ? p : i,
46
- color: o && s(p) > 0.5 ? "#141414" : "#fcfcfc"
47
- }, r = M;
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
- e = o ? "Registro" : "Nuevo registro", c = {
51
- backgroundColor: o ? g : i,
52
- color: o && s(g) > 0.5 ? "#141414" : "#fcfcfc"
53
- }, r = E;
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__ */ N("div", { style: { position: "relative", display: "inline-block" }, children: [
57
- /* @__PURE__ */ n(
92
+ return /* @__PURE__ */ S("div", { style: { position: "relative", display: "inline-block" }, children: [
93
+ /* @__PURE__ */ f(
58
94
  "div",
59
95
  {
60
- onMouseEnter: () => d(!0),
61
- onMouseLeave: () => d(!1),
96
+ onMouseEnter: () => t(!0),
97
+ onMouseLeave: () => t(!1),
62
98
  style: {
63
- ...v
99
+ ...h
64
100
  },
65
101
  className: "icon-solicitud",
66
- children: /* @__PURE__ */ n(r, {})
102
+ children: /* @__PURE__ */ f(e, {})
67
103
  }
68
104
  ),
69
- a && /* @__PURE__ */ n(
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
- ...c
122
+ ...r
87
123
  },
88
- children: e
124
+ children: c
89
125
  }
90
126
  )
91
127
  ] });
92
128
  };
93
129
  export {
94
- B as IconoTooltip
130
+ X as IconoTooltip
95
131
  };
@@ -1,25 +1,25 @@
1
- import { jsx as t, jsxs as o } from "react/jsx-runtime";
2
- import { useNavigate as i } from "react-router-dom";
3
- import { h as s, i as n } from "../../index-D_9gBL0I.js";
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(l) {
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: [] }] })(l);
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: l }) => {
10
- const e = i();
11
- return /* @__PURE__ */ t("div", { className: "listado-tarjetas", children: l.map((a, r) => /* @__PURE__ */ o("div", { className: "tarjeta-listado-row", children: [
12
- /* @__PURE__ */ o(
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__ */ o("div", { className: "tarjeta-listado-label-container", children: [
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(s, { style: { color: "#3AB34A" } }) : /* @__PURE__ */ t(n, { style: { color: "#E2E2E2" } }) })
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
  ),