react-ecosistema-unp 2.1.0 → 2.3.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 (68) hide show
  1. package/dist/{AppList-BshxZhoN.js → AppList-DORGpC4I.js} +84 -84
  2. package/dist/assets/DocumentoVisorEstado.css +1 -0
  3. package/dist/assets/EcoDataTable.css +1 -1
  4. package/dist/assets/EcoDataTableBandejaFooter.css +1 -1
  5. package/dist/assets/SileoNotifications.css +1 -1
  6. package/dist/cards/tarjeta/nuevo-elemento/NuevoElemento.js +1 -1
  7. package/dist/cards/tarjeta-info/TarjetaInfo.js +1 -1
  8. package/dist/data/tarjeta-datos/TarjetaDatos.js +1 -1
  9. package/dist/{index-C4MBu_wk.js → index-B96iRUpt.js} +38 -34
  10. package/dist/{index-h-TtOxhs.js → index-BqaJxgOF.js} +182 -170
  11. package/dist/lib/shared/menu-lateral/MenuLateral.d.ts +4 -0
  12. package/dist/lib/shared/menu-lateral/colorUtils.d.ts +4 -0
  13. package/dist/lib/shared/ventana-lienzo/VentanaLienzo.d.ts +4 -0
  14. package/dist/lib/shared/ventana-tabs/VentanaTabs.d.ts +4 -0
  15. package/dist/lib/tables/custom-data-table/CustomDataTable.d.ts +2 -0
  16. package/dist/lib/tables/custom-data-table-split/CustomDataTableSplit.d.ts +3 -1
  17. package/dist/lib/tables/eco-data-table/components/EcoDataTable/EcoDataTable.d.ts +1 -1
  18. package/dist/lib/tables/eco-data-table/components/EcoDataTableBandejaFooter.d.ts +8 -1
  19. package/dist/lib/tables/eco-data-table/hooks/useEcoTableSelection.d.ts +1 -0
  20. package/dist/lib/tables/eco-data-table/types.d.ts +7 -0
  21. package/dist/lib/ui/animacion/Animacion.d.ts +1 -0
  22. package/dist/lib/ui.d.ts +1 -0
  23. package/dist/lib/utils/modal-radicados/DocumentoVisorEstado.d.ts +18 -0
  24. package/dist/lib/utils/modal-radicados/ModalDocumento.d.ts +26 -0
  25. package/dist/lib/utils/modal-radicados/VisorDocumento.d.ts +8 -0
  26. package/dist/lib/utils.d.ts +1 -0
  27. package/dist/shared/app-list/AppList.js +2 -2
  28. package/dist/shared/iconos-sistema/IconosSistema.js +1 -1
  29. package/dist/shared/iconos-sistema/logout-button/LogoutButton.js +1 -1
  30. package/dist/shared/menu-lateral/MenuLateral.js +140 -125
  31. package/dist/shared/menu-lateral/colorUtils.js +47 -0
  32. package/dist/shared/notificacion-usuario/NotificacionUsuario.js +6 -5
  33. package/dist/shared/ventana-lienzo/VentanaLienzo.js +28 -24
  34. package/dist/shared/ventana-tabs/VentanaTabs.js +93 -89
  35. package/dist/tables/custom-data-table/CustomDataTable.js +549 -547
  36. package/dist/tables/custom-data-table-split/CustomDataTableSplit.js +68 -65
  37. package/dist/tables/custom-table-toolbar/CustomTableToolbar.js +1 -1
  38. package/dist/tables/eco-data-table/components/EcoDataTable/EcoDataTable.js +190 -149
  39. package/dist/tables/eco-data-table/components/EcoDataTableBandejaFooter.js +36 -26
  40. package/dist/tables/eco-data-table/hooks/useEcoTableSelection.js +9 -8
  41. package/dist/tables/tabla-registros/buscador/Buscador.js +1 -1
  42. package/dist/tables/tabla-registros/modal-v2/EcoModal.js +11 -11
  43. package/dist/tables/tabla-registros/tabla/Tabla.js +22 -22
  44. package/dist/ui/alertas/AlertaFormulario.js +1 -1
  45. package/dist/ui/card-gestion-lateral/CardGestionLateral.js +1 -1
  46. package/dist/ui/contenido-modal/ContenidoModal.js +1 -1
  47. package/dist/ui/contenido-modal/ContenidoModalv0.1.js +1 -1
  48. package/dist/ui/contenido-modal-v2/ContenidoModalV2.js +1 -1
  49. package/dist/ui/contenido-modal-v2/ModalV2Menu.js +1 -1
  50. package/dist/ui/datos-basicos-card/DatosBasicosCard.js +1 -1
  51. package/dist/ui/icono-tooltip/IconoTooltip.js +10 -10
  52. package/dist/ui/items-modal/ItemsModal.js +1 -1
  53. package/dist/ui/nav-formularios-lateral/NavFormulariosLateral.js +1 -1
  54. package/dist/ui/notificacion-popover-v2/NotificacionPopoverV2.js +50 -50
  55. package/dist/ui/resumen-evaluacion/ResumenEvaluacion.js +5 -5
  56. package/dist/ui/status-filter-bar/StatusFilterBar.js +8 -8
  57. package/dist/ui/status-semaphore/StatusSemaphore.js +1 -1
  58. package/dist/ui/stepper-v2/StepperV2.js +1 -1
  59. package/dist/utils/eco-provider/EcoContext.js +4 -3
  60. package/dist/utils/modal-radicados/AuxRadicadosComponents/TarjetaRadicado.js +12 -12
  61. package/dist/utils/modal-radicados/DocumentoVisorEstado.js +125 -0
  62. package/dist/utils/modal-radicados/ModalDocumento.js +155 -170
  63. package/dist/utils/modal-radicados/ModalRadicado.js +34 -34
  64. package/dist/utils/modal-radicados/VisorDocumento.js +61 -61
  65. package/dist/utils/notifications/EcoToaster.js +26 -25
  66. package/dist/utils/unp-historico/UnpHistorico.js +1 -1
  67. package/dist/utils.js +29 -27
  68. package/package.json +1 -1
@@ -1,38 +1,42 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import a from "react";
3
- import { IconosSistema as v } from "../iconos-sistema/IconosSistema.js";
4
- import { BreadcrumbNav as g } from "../breadcrumb/Breadcrumb.js";
5
- import { MenuLateral as h } from "../menu-lateral/MenuLateral.js";
6
- import { EcoFooter as N } from "../../ui/eco-footer/EcoFooter.js";
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import n from "react";
3
+ import { IconosSistema as h } from "../iconos-sistema/IconosSistema.js";
4
+ import { BreadcrumbNav as N } from "../breadcrumb/Breadcrumb.js";
5
+ import { MenuLateral as b } from "../menu-lateral/MenuLateral.js";
6
+ import { EcoFooter as x } from "../../ui/eco-footer/EcoFooter.js";
7
7
  import '../../assets/VentanaLienzo.css';const L = ({
8
8
  children: t,
9
9
  items: r,
10
- extraInput: m,
11
- showConnectionStatus: s = !1,
10
+ extraInput: s,
11
+ showConnectionStatus: m = !1,
12
12
  notificationType: i = "normal",
13
13
  showFooter: l = !0,
14
- showSideMenu: o = !0,
15
- extraMenuItems: c
14
+ showSideMenu: a = !0,
15
+ extraMenuItems: c,
16
+ menuColor: u,
17
+ showBaseMenuItems: d = !0
16
18
  }) => {
17
- const [d, p] = a.useState(!1), u = a.useCallback(() => {
18
- p((f) => !f);
19
+ const [p, f] = n.useState(!1), v = n.useCallback(() => {
20
+ f((g) => !g);
19
21
  }, []);
20
- return /* @__PURE__ */ n(a.Fragment, { children: [
21
- /* @__PURE__ */ e(v, { elements: m, notificationType: i }),
22
- o && /* @__PURE__ */ e(
23
- h,
22
+ return /* @__PURE__ */ o(n.Fragment, { children: [
23
+ /* @__PURE__ */ e(h, { elements: s, notificationType: i }),
24
+ a && /* @__PURE__ */ e(
25
+ b,
24
26
  {
25
- onToggle: u,
26
- isOpen: d,
27
- showConnectionStatus: s,
28
- extraMenuItems: c
27
+ onToggle: v,
28
+ isOpen: p,
29
+ showConnectionStatus: m,
30
+ extraMenuItems: c,
31
+ color: u,
32
+ showBaseItems: d
29
33
  }
30
34
  ),
31
- /* @__PURE__ */ n("div", { className: `main-section${o ? " has-side-menu" : ""}`, children: [
32
- /* @__PURE__ */ e(g, { items: r }),
33
- /* @__PURE__ */ n("div", { className: "ventana-lienzo-container", children: [
35
+ /* @__PURE__ */ o("div", { className: `main-section${a ? " has-side-menu" : ""}`, children: [
36
+ /* @__PURE__ */ e(N, { items: r }),
37
+ /* @__PURE__ */ o("div", { className: "ventana-lienzo-container", children: [
34
38
  /* @__PURE__ */ e("div", { className: "ventana-lienzo-body", children: t }),
35
- l && /* @__PURE__ */ e(N, {})
39
+ l && /* @__PURE__ */ e(x, {})
36
40
  ] })
37
41
  ] })
38
42
  ] });
@@ -1,16 +1,16 @@
1
- import { jsx as s, jsxs as j } from "react/jsx-runtime";
1
+ import { jsx as l, jsxs as j } from "react/jsx-runtime";
2
2
  import * as $ from "react";
3
- import x, { useRef as E, useContext as T, useEffect as F } from "react";
3
+ import x, { useRef as O, useContext as T, useEffect as F } from "react";
4
4
  import { MenuLateral as H } from "../menu-lateral/MenuLateral.js";
5
5
  import { IconosSistema as M } from "../iconos-sistema/IconosSistema.js";
6
6
  import '../../assets/Bootstrap.css';/* empty css */
7
7
  import { u as D } from "../../useIsomorphicEffect-DH-agvLb.js";
8
8
  import { T as W, b as Y, g as z, a as G } from "../../TabPane-D71zhQGl.js";
9
9
  import { c as k } from "../../index-ZphT3dr_.js";
10
- import { N as J, u as Q, a as X, d as Z, b as ee, q as te, c as L, e as ne } from "../../AppList-BshxZhoN.js";
10
+ import { N as J, u as Q, a as X, d as Z, b as ee, q as te, c as B, e as ne } from "../../AppList-DORGpC4I.js";
11
11
  import { u as ae } from "../../NoopTransition-D8AxBGEr.js";
12
- import { S as I, T as re, m as oe } from "../../TabContext-Du6X9q-A.js";
13
- import { u as B } from "../../ThemeProvider-Cv61y4Uy.js";
12
+ import { S as E, T as re, m as oe } from "../../TabContext-Du6X9q-A.js";
13
+ import { u as L } from "../../ThemeProvider-Cv61y4Uy.js";
14
14
  import { c as se } from "../../CardHeaderContext-DVw0yHuy.js";
15
15
  import { m as P, f as le } from "../../ElementChildren-67NLtZ0A.js";
16
16
  const ie = ["as", "onSelect", "activeKey", "role", "onKeyDown"];
@@ -29,61 +29,61 @@ const A = () => {
29
29
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
30
30
  as: a = "div",
31
31
  onSelect: n,
32
- activeKey: r,
32
+ activeKey: s,
33
33
  role: c,
34
- onKeyDown: u
34
+ onKeyDown: d
35
35
  } = t, f = ce(t, ie);
36
- const p = Q(), m = E(!1), o = T(I), l = T(re);
37
- let b, N;
38
- l && (c = c || "tablist", r = l.activeKey, b = l.getControlledId, N = l.getControllerId);
39
- const v = E(null), y = (i) => {
40
- const d = v.current;
41
- if (!d) return null;
42
- const C = te(d, `[${R}]:not([aria-disabled=true])`), S = d.querySelector("[aria-selected=true]");
36
+ const b = Q(), m = O(!1), v = T(E), r = T(re);
37
+ let o, N;
38
+ r && (c = c || "tablist", s = r.activeKey, o = r.getControlledId, N = r.getControllerId);
39
+ const p = O(null), y = (i) => {
40
+ const u = p.current;
41
+ if (!u) return null;
42
+ const C = te(u, `[${R}]:not([aria-disabled=true])`), S = u.querySelector("[aria-selected=true]");
43
43
  if (!S || S !== document.activeElement) return null;
44
- const w = C.indexOf(S);
45
- if (w === -1) return null;
46
- let K = w + i;
44
+ const I = C.indexOf(S);
45
+ if (I === -1) return null;
46
+ let K = I + i;
47
47
  return K >= C.length && (K = 0), K < 0 && (K = C.length - 1), C[K];
48
- }, h = (i, d) => {
49
- i != null && (n == null || n(i, d), o == null || o(i, d));
48
+ }, h = (i, u) => {
49
+ i != null && (n == null || n(i, u), v == null || v(i, u));
50
50
  }, g = (i) => {
51
- if (u == null || u(i), !l)
51
+ if (d == null || d(i), !r)
52
52
  return;
53
- let d;
53
+ let u;
54
54
  switch (i.key) {
55
55
  case "ArrowLeft":
56
56
  case "ArrowUp":
57
- d = y(-1);
57
+ u = y(-1);
58
58
  break;
59
59
  case "ArrowRight":
60
60
  case "ArrowDown":
61
- d = y(1);
61
+ u = y(1);
62
62
  break;
63
63
  default:
64
64
  return;
65
65
  }
66
- d && (i.preventDefault(), h(d.dataset[ee("EventKey")] || null, i), m.current = !0, p());
66
+ u && (i.preventDefault(), h(u.dataset[ee("EventKey")] || null, i), m.current = !0, b());
67
67
  };
68
68
  F(() => {
69
- if (v.current && m.current) {
70
- const i = v.current.querySelector(`[${R}][aria-selected=true]`);
69
+ if (p.current && m.current) {
70
+ const i = p.current.querySelector(`[${R}][aria-selected=true]`);
71
71
  i == null || i.focus();
72
72
  }
73
73
  m.current = !1;
74
74
  });
75
- const V = ae(e, v);
76
- return /* @__PURE__ */ s(I.Provider, {
75
+ const V = ae(e, p);
76
+ return /* @__PURE__ */ l(E.Provider, {
77
77
  value: h,
78
- children: /* @__PURE__ */ s(X.Provider, {
78
+ children: /* @__PURE__ */ l(X.Provider, {
79
79
  value: {
80
80
  role: c,
81
81
  // used by NavLink to determine it's role
82
- activeKey: oe(r),
83
- getControlledId: b || A,
82
+ activeKey: oe(s),
83
+ getControlledId: o || A,
84
84
  getControllerId: N || A
85
85
  },
86
- children: /* @__PURE__ */ s(a, Object.assign({}, f, {
86
+ children: /* @__PURE__ */ l(a, Object.assign({}, f, {
87
87
  onKeyDown: g,
88
88
  ref: V,
89
89
  role: c
@@ -92,58 +92,58 @@ const A = () => {
92
92
  });
93
93
  });
94
94
  _.displayName = "Nav";
95
- const de = Object.assign(_, {
95
+ const ue = Object.assign(_, {
96
96
  Item: J
97
- }), O = /* @__PURE__ */ $.forwardRef(({
97
+ }), w = /* @__PURE__ */ $.forwardRef(({
98
98
  className: t,
99
99
  bsPrefix: e,
100
100
  as: a = "div",
101
101
  ...n
102
- }, r) => (e = B(e, "nav-item"), /* @__PURE__ */ s(a, {
103
- ref: r,
102
+ }, s) => (e = L(e, "nav-item"), /* @__PURE__ */ l(a, {
103
+ ref: s,
104
104
  className: k(t, e),
105
105
  ...n
106
106
  })));
107
- O.displayName = "NavItem";
107
+ w.displayName = "NavItem";
108
108
  const q = /* @__PURE__ */ $.forwardRef((t, e) => {
109
109
  const {
110
110
  as: a = "div",
111
111
  bsPrefix: n,
112
- variant: r,
112
+ variant: s,
113
113
  fill: c = !1,
114
- justify: u = !1,
114
+ justify: d = !1,
115
115
  navbar: f,
116
- navbarScroll: p,
116
+ navbarScroll: b,
117
117
  className: m,
118
- activeKey: o,
119
- ...l
118
+ activeKey: v,
119
+ ...r
120
120
  } = D(t, {
121
121
  activeKey: "onSelect"
122
- }), b = B(n, "nav");
123
- let N, v, y = !1;
122
+ }), o = L(n, "nav");
123
+ let N, p, y = !1;
124
124
  const h = T(ne), g = T(se);
125
125
  return h ? (N = h.bsPrefix, y = f ?? !0) : g && ({
126
- cardHeaderBsPrefix: v
127
- } = g), /* @__PURE__ */ s(de, {
126
+ cardHeaderBsPrefix: p
127
+ } = g), /* @__PURE__ */ l(ue, {
128
128
  as: a,
129
129
  ref: e,
130
- activeKey: o,
130
+ activeKey: v,
131
131
  className: k(m, {
132
- [b]: !y,
132
+ [o]: !y,
133
133
  [`${N}-nav`]: y,
134
- [`${N}-nav-scroll`]: y && p,
135
- [`${v}-${r}`]: !!v,
136
- [`${b}-${r}`]: !!r,
137
- [`${b}-fill`]: c,
138
- [`${b}-justified`]: u
134
+ [`${N}-nav-scroll`]: y && b,
135
+ [`${p}-${s}`]: !!p,
136
+ [`${o}-${s}`]: !!s,
137
+ [`${o}-fill`]: c,
138
+ [`${o}-justified`]: d
139
139
  }),
140
- ...l
140
+ ...r
141
141
  });
142
142
  });
143
143
  q.displayName = "Nav";
144
- const ue = Object.assign(q, {
145
- Item: O,
146
- Link: L
144
+ const de = Object.assign(q, {
145
+ Item: w,
146
+ Link: B
147
147
  });
148
148
  function fe(t) {
149
149
  let e;
@@ -156,20 +156,20 @@ function me(t) {
156
156
  title: e,
157
157
  eventKey: a,
158
158
  disabled: n,
159
- tabClassName: r,
159
+ tabClassName: s,
160
160
  tabAttrs: c,
161
- id: u
161
+ id: d
162
162
  } = t.props;
163
- return e == null ? null : /* @__PURE__ */ s(O, {
163
+ return e == null ? null : /* @__PURE__ */ l(w, {
164
164
  as: "li",
165
165
  role: "presentation",
166
- children: /* @__PURE__ */ s(L, {
166
+ children: /* @__PURE__ */ l(B, {
167
167
  as: "button",
168
168
  type: "button",
169
169
  eventKey: a,
170
170
  disabled: n,
171
- id: u,
172
- className: r,
171
+ id: d,
172
+ className: s,
173
173
  ...c,
174
174
  children: e
175
175
  })
@@ -180,74 +180,78 @@ const U = (t) => {
180
180
  id: e,
181
181
  onSelect: a,
182
182
  transition: n,
183
- mountOnEnter: r = !1,
183
+ mountOnEnter: s = !1,
184
184
  unmountOnExit: c = !1,
185
- variant: u = "tabs",
185
+ variant: d = "tabs",
186
186
  children: f,
187
- activeKey: p = fe(f),
187
+ activeKey: b = fe(f),
188
188
  ...m
189
189
  } = D(t, {
190
190
  activeKey: "onSelect"
191
191
  });
192
192
  return /* @__PURE__ */ j(W, {
193
193
  id: e,
194
- activeKey: p,
194
+ activeKey: b,
195
195
  onSelect: a,
196
196
  transition: z(n),
197
- mountOnEnter: r,
197
+ mountOnEnter: s,
198
198
  unmountOnExit: c,
199
- children: [/* @__PURE__ */ s(ue, {
199
+ children: [/* @__PURE__ */ l(de, {
200
200
  id: e,
201
201
  ...m,
202
202
  role: "tablist",
203
203
  as: "ul",
204
- variant: u,
204
+ variant: d,
205
205
  children: P(f, me)
206
- }), /* @__PURE__ */ s(Y, {
207
- children: P(f, (o) => {
208
- const l = {
209
- ...o.props
206
+ }), /* @__PURE__ */ l(Y, {
207
+ children: P(f, (v) => {
208
+ const r = {
209
+ ...v.props
210
210
  };
211
- return delete l.title, delete l.disabled, delete l.tabClassName, delete l.tabAttrs, /* @__PURE__ */ s(G, {
212
- ...l
211
+ return delete r.title, delete r.disabled, delete r.tabClassName, delete r.tabAttrs, /* @__PURE__ */ l(G, {
212
+ ...r
213
213
  });
214
214
  })
215
215
  })]
216
216
  });
217
217
  };
218
218
  U.displayName = "Tabs";
219
- const we = ({
219
+ const Ie = ({
220
220
  children: t,
221
221
  extraInput: e,
222
222
  showConnectionStatus: a = !1,
223
223
  showSideMenu: n = !0,
224
- extraMenuItems: r
224
+ extraMenuItems: s,
225
+ menuColor: c,
226
+ showBaseMenuItems: d = !0
225
227
  }) => {
226
- const [c, u] = x.useState(!1), [f, p] = x.useState(void 0), m = x.useCallback(() => {
227
- u((o) => !o);
228
+ const [f, b] = x.useState(!1), [m, v] = x.useState(void 0), r = x.useCallback(() => {
229
+ b((o) => !o);
228
230
  }, []);
229
231
  return /* @__PURE__ */ j(x.Fragment, { children: [
230
- /* @__PURE__ */ s(M, { elements: e }),
231
- n && /* @__PURE__ */ s(
232
+ /* @__PURE__ */ l(M, { elements: e }),
233
+ n && /* @__PURE__ */ l(
232
234
  H,
233
235
  {
234
- onToggle: m,
235
- isOpen: c,
236
+ onToggle: r,
237
+ isOpen: f,
236
238
  showConnectionStatus: a,
237
- extraMenuItems: r
239
+ extraMenuItems: s,
240
+ color: c,
241
+ showBaseItems: d
238
242
  }
239
243
  ),
240
- /* @__PURE__ */ s("div", { className: `main-section${n ? " has-side-menu" : ""}`, children: /* @__PURE__ */ s(
244
+ /* @__PURE__ */ l("div", { className: `main-section${n ? " has-side-menu" : ""}`, children: /* @__PURE__ */ l(
241
245
  U,
242
246
  {
243
247
  id: "controlled-tab",
244
- activeKey: f,
245
- onSelect: (o) => p(o !== null ? o : void 0),
248
+ activeKey: m,
249
+ onSelect: (o) => v(o !== null ? o : void 0),
246
250
  children: x.Children.map(t, (o) => x.isValidElement(o) ? o : null)
247
251
  }
248
252
  ) })
249
253
  ] });
250
254
  };
251
255
  export {
252
- we as VentanaTabs
256
+ Ie as VentanaTabs
253
257
  };