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.
@@ -1,5 +1,5 @@
1
1
  import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
- import { o as s } from "../../../index-pCr0mQ1L.js";
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-pCr0mQ1L.js";
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(() => {
@@ -79,8 +79,8 @@ export {
79
79
  i as g,
80
80
  f as h,
81
81
  m as i,
82
- C as j,
83
- M as k,
82
+ M as j,
83
+ C as k,
84
84
  B as l,
85
85
  x as m,
86
86
  L as n,
@@ -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-pCr0mQ1L.js";
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-pCr0mQ1L.js";
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-pCr0mQ1L.js";
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-pCr0mQ1L.js";
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-pCr0mQ1L.js";
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 t } from "react/jsx-runtime";
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 h, k as N, l as G, m as H } from "../../index-pCr0mQ1L.js";
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, u] = M(!1);
6
+ const [a, b] = M(!1);
7
7
  let c = "", r = {}, e = null, I = { color: o ? "#287cd1" : "#c8c8c8" };
8
- const f = "#28a19d", n = "#ed7e3e", g = "#3e52ed", b = "#ed3e49", C = "#edd958", w = "#18a871", v = "#db493b", p = "#6845e6", m = "#c2e545", y = "#43b1dd", E = "#de6f43", F = "#6b6e6e", i = "#666666f4", s = (T) => {
9
- const d = T.replace(/^#/, ""), D = parseInt(d.slice(0, 2), 16) / 255, R = parseInt(d.slice(2, 4), 16) / 255, S = parseInt(d.slice(4, 6), 16) / 255;
10
- return 0.2126 * D + 0.7152 * R + 0.0722 * S;
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 = N;
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 = N;
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 ? g : i,
60
- color: o && s(g) > 0.5 ? "#141414" : "#fcfcfc"
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 ? b : i,
66
- color: o && s(b) > 0.5 ? "#141414" : "#fcfcfc"
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 ? C : i,
72
- color: o && s(C) > 0.5 ? "#141414" : "#fcfcfc"
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 ? v : i,
84
- color: o && s(v) > 0.5 ? "#141414" : "#fcfcfc"
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 ? p : i,
90
- color: o && s(p) > 0.5 ? "#141414" : "#fcfcfc"
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 ? m : i,
96
- color: o && s(m) > 0.5 ? "#141414" : "#fcfcfc"
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 ? y : i,
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 ? E : i,
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 ? F : i,
114
- color: o && s(F) > 0.5 ? "#141414" : "#fcfcfc"
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__ */ t(
125
+ /* @__PURE__ */ u(
120
126
  "div",
121
127
  {
122
- onMouseEnter: () => u(!0),
123
- onMouseLeave: () => u(!1),
128
+ onMouseEnter: () => b(!0),
129
+ onMouseLeave: () => b(!1),
124
130
  style: {
125
131
  ...I
126
132
  },
127
133
  className: "icon-solicitud",
128
- children: /* @__PURE__ */ t(e, {})
134
+ children: /* @__PURE__ */ u(e, {})
129
135
  }
130
136
  ),
131
- a && /* @__PURE__ */ t(
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-pCr0mQ1L.js";
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) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "react-ecosistema-unp",
3
3
  "author": "Ecosistema de Información - Unidad Nacional de Protección",
4
4
  "private": false,
5
- "version": "1.5.0",
5
+ "version": "1.5.1",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {