react-ecosistema-unp 2.0.1 → 2.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 (69) 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/EcoModalStyles.css +1 -1
  6. package/dist/assets/SileoNotifications.css +1 -1
  7. package/dist/cards/tarjeta/nuevo-elemento/NuevoElemento.js +1 -1
  8. package/dist/cards/tarjeta-info/TarjetaInfo.js +1 -1
  9. package/dist/data/tarjeta-datos/TarjetaDatos.js +1 -1
  10. package/dist/{index-C4MBu_wk.js → index-B96iRUpt.js} +38 -34
  11. package/dist/{index-h-TtOxhs.js → index-BqaJxgOF.js} +182 -170
  12. package/dist/{SileoNotifications-BESOBARG.js → index-C1R4rkuA.js} +1 -1
  13. package/dist/lib/tables/custom-data-table/CustomDataTable.d.ts +2 -0
  14. package/dist/lib/tables/custom-data-table-split/CustomDataTableSplit.d.ts +7 -3
  15. package/dist/lib/tables/eco-data-table/components/EcoDataTable/EcoDataTable.d.ts +1 -1
  16. package/dist/lib/tables/eco-data-table/components/EcoDataTableBandejaFooter.d.ts +8 -1
  17. package/dist/lib/tables/eco-data-table/hooks/useEcoTableSelection.d.ts +1 -0
  18. package/dist/lib/tables/eco-data-table/types.d.ts +7 -0
  19. package/dist/lib/ui/animacion/Animacion.d.ts +1 -0
  20. package/dist/lib/ui.d.ts +1 -0
  21. package/dist/lib/utils/eco-provider/EcoContext.d.ts +4 -2
  22. package/dist/lib/utils/modal-radicados/DocumentoVisorEstado.d.ts +18 -0
  23. package/dist/lib/utils/modal-radicados/ModalDocumento.d.ts +26 -0
  24. package/dist/lib/utils/modal-radicados/VisorDocumento.d.ts +8 -0
  25. package/dist/lib/utils/notifications/EcoToaster.d.ts +18 -0
  26. package/dist/lib/utils/notifications/SileoNotifications.d.ts +23 -7
  27. package/dist/lib/utils.d.ts +2 -1
  28. package/dist/shared/app-list/AppList.js +2 -2
  29. package/dist/shared/iconos-sistema/IconosSistema.js +1 -1
  30. package/dist/shared/iconos-sistema/logout-button/LogoutButton.js +1 -1
  31. package/dist/shared/menu-lateral/MenuLateral.js +6 -4
  32. package/dist/shared/notificacion-usuario/NotificacionUsuario.js +61 -59
  33. package/dist/shared/ventana-tabs/VentanaTabs.js +1 -1
  34. package/dist/tables/custom-data-table/CustomDataTable.js +551 -548
  35. package/dist/tables/custom-data-table-split/CustomDataTableSplit.js +186 -173
  36. package/dist/tables/custom-table-toolbar/CustomTableToolbar.js +1 -1
  37. package/dist/tables/eco-data-table/components/EcoDataTable/EcoDataTable.js +190 -149
  38. package/dist/tables/eco-data-table/components/EcoDataTableBandejaFooter.js +36 -26
  39. package/dist/tables/eco-data-table/hooks/useEcoTableSelection.js +9 -8
  40. package/dist/tables/tabla-registros/buscador/Buscador.js +1 -1
  41. package/dist/tables/tabla-registros/modal-v2/EcoModal.js +11 -11
  42. package/dist/tables/tabla-registros/tabla/Tabla.js +22 -22
  43. package/dist/ui/alertas/AlertaFormulario.js +1 -1
  44. package/dist/ui/card-gestion-lateral/CardGestionLateral.js +1 -1
  45. package/dist/ui/contenido-modal/ContenidoModal.js +1 -1
  46. package/dist/ui/contenido-modal/ContenidoModalv0.1.js +1 -1
  47. package/dist/ui/contenido-modal-v2/ContenidoModalV2.js +1 -1
  48. package/dist/ui/contenido-modal-v2/ModalV2Menu.js +1 -1
  49. package/dist/ui/datos-basicos-card/DatosBasicosCard.js +1 -1
  50. package/dist/ui/icono-tooltip/IconoTooltip.js +10 -10
  51. package/dist/ui/items-modal/ItemsModal.js +1 -1
  52. package/dist/ui/nav-formularios-lateral/NavFormulariosLateral.js +1 -1
  53. package/dist/ui/notificacion-popover-v2/NotificacionPopoverV2.js +50 -50
  54. package/dist/ui/resumen-evaluacion/ResumenEvaluacion.js +5 -5
  55. package/dist/ui/status-filter-bar/StatusFilterBar.js +8 -8
  56. package/dist/ui/status-semaphore/StatusSemaphore.js +1 -1
  57. package/dist/ui/stepper-v2/StepperV2.js +1 -1
  58. package/dist/utils/eco-provider/EcoContext.js +11 -8
  59. package/dist/utils/modal-radicados/AuxRadicadosComponents/TarjetaRadicado.js +12 -12
  60. package/dist/utils/modal-radicados/DocumentoVisorEstado.js +125 -0
  61. package/dist/utils/modal-radicados/ModalDocumento.js +155 -170
  62. package/dist/utils/modal-radicados/ModalRadicado.js +34 -34
  63. package/dist/utils/modal-radicados/VisorDocumento.js +61 -61
  64. package/dist/utils/notifications/EcoToaster.js +48 -0
  65. package/dist/utils/notifications/SileoNotifications.js +62 -55
  66. package/dist/utils/unp-historico/UnpHistorico.js +1 -1
  67. package/dist/utils/websocket-manager/websocket.js +22 -18
  68. package/dist/utils.js +29 -24
  69. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { jsx as e, jsxs as l, Fragment as q } from "react/jsx-runtime";
2
- import { useState as C, useRef as ne, useCallback as re, useMemo as z, useEffect as se } from "react";
3
- import '../../assets/Trazabilidad.css';import '../../assets/TarjetaInfo.css';import '../../assets/ContenedorTarjeta.css';import '../../assets/SmartTextArea.css';import '../../assets/EcoFooter.css';import '../../assets/ResumenEvaluacion.css';import '../../assets/AlertaFormulario.css';import '../../assets/SeccionFormulario.css';import '../../assets/NotificacionPopoverV2.css';import '../../assets/CardGestionLateral.css';import '../../assets/NavFormulariosLateral.css';import '../../assets/DatosBasicosCard.css';import '../../assets/StatusFilterBar.css';import '../../assets/StatusSemaphore.css';import '../../assets/SeccionTarjetaLectura.css';import '../../assets/TarjetaLectura.css';import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';import '../../assets/Modal.css';import '../../assets/ContenedorVentana.css';import '../../assets/IconoTooltip.css';import '../../assets/ItemsModal.css';import '../../assets/StepperV2.css';import '../../assets/Paginador.css';import '../../assets/ContenidoModalV2.css';import '../../assets/ContenidoModal.css';import '../../assets/Encabezado.css';import '../../assets/Logo.css';import '../../assets/CustomDataTableSplit.css';/* empty css */
1
+ import { jsx as e, jsxs as l, Fragment as G } from "react/jsx-runtime";
2
+ import { useState as C, useRef as ne, useCallback as oe, useMemo as W, useEffect as le } from "react";
3
+ import '../../assets/SileoNotifications.css';import '../../assets/Trazabilidad.css';import '../../assets/TarjetaInfo.css';import '../../assets/ContenedorTarjeta.css';import '../../assets/DocumentoVisorEstado.css';import '../../assets/SmartTextArea.css';import '../../assets/EcoFooter.css';import '../../assets/ResumenEvaluacion.css';import '../../assets/AlertaFormulario.css';import '../../assets/SeccionFormulario.css';import '../../assets/NotificacionPopoverV2.css';import '../../assets/CardGestionLateral.css';import '../../assets/NavFormulariosLateral.css';import '../../assets/DatosBasicosCard.css';import '../../assets/StatusFilterBar.css';import '../../assets/StatusSemaphore.css';import '../../assets/SeccionTarjetaLectura.css';import '../../assets/TarjetaLectura.css';import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';import '../../assets/Modal.css';import '../../assets/ContenedorVentana.css';import '../../assets/IconoTooltip.css';import '../../assets/ItemsModal.css';import '../../assets/StepperV2.css';import '../../assets/Paginador.css';import '../../assets/ContenidoModalV2.css';import '../../assets/ContenidoModal.css';import '../../assets/Encabezado.css';import '../../assets/Logo.css';import '../../assets/CustomDataTableSplit.css';/* empty css */
4
4
  /* empty css */
5
5
  import "../../ui/subtitulo/Subtitulo.js";
6
6
  /* empty css */
@@ -12,16 +12,16 @@ import "react-router-dom";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
- import { EcoModal as Ne } from "../tabla-registros/modal-v2/EcoModal.js";
15
+ import { EcoModal as Me } from "../tabla-registros/modal-v2/EcoModal.js";
16
16
  import "../../ui/animacion/Animacion.js";
17
17
  /* empty css */
18
18
  /* empty css */
19
19
  import "../../cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
20
20
  /* empty css */
21
21
  /* empty css */
22
- import { TableSkeleton as ve } from "../../ui/table-skeleton/TableSkeleton.js";
22
+ import { TableSkeleton as be } from "../../ui/table-skeleton/TableSkeleton.js";
23
23
  /* empty css */
24
- import { PaginadorV2 as oe } from "../../ui/paginador-v2/PaginadorV2.js";
24
+ import { PaginadorV2 as ce } from "../../ui/paginador-v2/PaginadorV2.js";
25
25
  /* empty css */
26
26
  /* empty css */
27
27
  /* empty css */
@@ -32,229 +32,242 @@ import { PaginadorV2 as oe } from "../../ui/paginador-v2/PaginadorV2.js";
32
32
  /* empty css */
33
33
  /* empty css */
34
34
  /* empty css */
35
- import { formatDate as G } from "../../utils/formatters/dateFormatter.js";
35
+ import { formatDate as J } from "../../utils/formatters/dateFormatter.js";
36
36
  import "../../index-Cy8qF6oY.js";
37
37
  import "../../utils/websocket-manager/WebSocketContext.js";
38
+ /* empty css */
38
39
  /* empty css */
39
40
  /* empty css */
40
41
  /* empty css */
41
- import "../../SileoNotifications-BESOBARG.js";
42
+ /* empty css */
43
+ import "../../index-C1R4rkuA.js";
44
+ import "../../index-DdZBtIJj.js";
42
45
  import "../../auth/contexts/AuthContex.js";
43
46
  /* empty css */
44
- import { T as xe } from "../../Table-cUZFLrPi.js";
45
- function P(s, r) {
46
- return s[r];
47
+ import { T as ke } from "../../Table-cUZFLrPi.js";
48
+ function P(n, s) {
49
+ return n[s];
47
50
  }
48
- function be(s, r) {
49
- const c = s, h = c.uuid ?? c.id ?? c.numeroRegistro;
50
- return h != null ? String(h) : r;
51
+ function Ce(n, s) {
52
+ const c = n, u = c.uuid ?? c.id ?? c.numeroRegistro;
53
+ return u != null ? String(u) : s;
51
54
  }
52
- function $(s, r, c) {
53
- return P(s, r) === c;
55
+ function j(n, s, c) {
56
+ return P(n, s) === c;
54
57
  }
55
- function ke(s, r) {
56
- if (r.filterValue) return r.filterValue(s);
57
- const c = P(s, r.key);
58
- return c == null ? "" : r.isDate ? G(String(c)) : String(c);
58
+ function Pe(n, s) {
59
+ if (s.filterValue) return s.filterValue(n);
60
+ const c = P(n, s.key);
61
+ return c == null ? "" : s.isDate ? J(String(c)) : String(c);
59
62
  }
60
- function ht({
61
- columns: s,
62
- data: r,
63
+ function vt({
64
+ columns: n,
65
+ data: s,
63
66
  isShared: c = !1,
64
- splitField: h = "estadoRegistro",
67
+ splitField: u = "estadoRegistro",
65
68
  firstSectionValue: y = "en_gestion",
66
69
  sectionLabels: T = ["", "Por gestionar"],
67
- renderModalContent: R,
70
+ renderModalContent: O,
68
71
  title: g,
69
72
  subtitle: f,
70
- isLoading: le,
71
- headerActions: B,
72
- getRowStyle: L,
73
+ isLoading: ie,
74
+ headerActions: R,
75
+ getRowStyle: _,
73
76
  pageSize: N = 10,
74
- getRowKey: j = be,
75
- rowSelection: i,
76
- infiniteScroll: d,
77
+ getRowKey: E = Ce,
78
+ rowSelection: d,
79
+ infiniteScroll: m,
77
80
  enableColumnFilters: v = !1,
78
- stickyHeader: O = !0,
79
- toolbar: m
81
+ stickyHeader: K = !0,
82
+ toolbar: h,
83
+ onRowClick: $,
84
+ closeModalOut: de = !0
80
85
  }) {
81
- var ae;
82
- const [ce, J] = C(!1), [Q, ie] = C(null), [U, de] = C(null), [me, X] = C(!1), [W, _] = C(1), [x, pe] = C({}), Y = ne(null), Z = ne(null), D = s.length + (i ? 1 : 0), F = re(
83
- (t, a) => ((i == null ? void 0 : i.getRowKey) ?? j)(t, a),
84
- [i, j]
85
- ), o = z(() => {
86
- if (!v) return r;
87
- const t = Object.entries(x).filter(([, a]) => a.trim());
88
- return t.length === 0 ? r : r.filter(
89
- (a) => t.every(([p, u]) => {
90
- const M = s.find((K) => K.key === p);
91
- if (!M || M.filterable === !1) return !0;
92
- const I = u.trim().toLowerCase();
93
- return ke(a, M).toLowerCase().includes(I);
86
+ var se;
87
+ const [me, Q] = C(!1), [U, pe] = C(null), [X, he] = C(null), [ue, Y] = C(!1), [q, F] = C(1), [x, ge] = C({}), Z = ne(null), H = ne(null), D = n.length + (d ? 1 : 0), V = oe(
88
+ (a, t) => ((d == null ? void 0 : d.getRowKey) ?? E)(a, t),
89
+ [d, E]
90
+ ), o = W(() => {
91
+ if (!v) return s;
92
+ const a = Object.entries(x).filter(([, t]) => t.trim());
93
+ return a.length === 0 ? s : s.filter(
94
+ (t) => a.every(([i, p]) => {
95
+ const k = n.find((L) => L.key === i);
96
+ if (!k || k.filterable === !1) return !0;
97
+ const I = p.trim().toLowerCase();
98
+ return Pe(t, k).toLowerCase().includes(I);
94
99
  })
95
100
  );
96
- }, [r, x, v, s]), V = z(
97
- () => v && Object.values(x).some((t) => t.trim()),
101
+ }, [s, x, v, n]), A = W(
102
+ () => v && Object.values(x).some((a) => a.trim()),
98
103
  [v, x]
99
104
  );
100
- se(() => {
101
- _(1);
102
- }, [r, x]);
103
- const H = Math.max(1, Math.ceil(o.length / N)), E = (W - 1) * N, b = !!d, he = z(
104
- () => o.slice(E, E + N),
105
- [o, E, N]
106
- ), A = b ? o : he, k = b ? 0 : E;
107
- se(() => {
108
- if (!d) return;
109
- const t = Y.current, a = Z.current;
110
- if (!t || !a) return;
111
- const p = new IntersectionObserver(
112
- (u) => {
113
- u.some((I) => I.isIntersecting) && d.hasMore && !d.isLoadingMore && d.onLoadMore();
105
+ le(() => {
106
+ F(1);
107
+ }, [s, x]);
108
+ const w = Math.max(1, Math.ceil(o.length / N)), z = (q - 1) * N, M = !!m, fe = W(
109
+ () => o.slice(z, z + N),
110
+ [o, z, N]
111
+ ), S = M ? o : fe, b = M ? 0 : z;
112
+ le(() => {
113
+ if (!m) return;
114
+ const a = Z.current, t = H.current;
115
+ if (!a || !t) return;
116
+ const i = new IntersectionObserver(
117
+ (p) => {
118
+ p.some((I) => I.isIntersecting) && m.hasMore && !m.isLoadingMore && m.onLoadMore();
114
119
  },
115
- { root: t, rootMargin: "160px 0px", threshold: 0 }
120
+ { root: a, rootMargin: "160px 0px", threshold: 0 }
116
121
  );
117
- return p.observe(a), () => p.disconnect();
118
- }, [d, r.length]);
119
- const w = re(
120
- (t, a) => {
121
- !R || !a.hasModal || (ie(t), de(a), J(!0));
122
+ return i.observe(t), () => i.disconnect();
123
+ }, [m, s.length]);
124
+ const ee = oe(
125
+ (a, t, i) => {
126
+ const p = typeof t.hasModal == "function" ? t.hasModal(a) : !!t.hasModal;
127
+ !O || !p || (i == null || i.stopPropagation(), pe(a), he(t), Q(!0));
122
128
  },
123
- [R]
124
- ), S = () => {
125
- J(!1), X(!1);
126
- }, ee = z(() => {
127
- const t = [];
128
- if (c && k > 0) {
129
- const a = o[k - 1], p = o[k];
130
- a && p && $(a, h, y) && !$(p, h, y) && t.push(
131
- /* @__PURE__ */ e("tr", { className: "eco-split-section-row", children: /* @__PURE__ */ e("td", { colSpan: D, className: "eco-split-section-cell", children: /* @__PURE__ */ e("div", { className: "eco-split-section-bar", children: T[1] }) }) }, `split-top-${k}`)
129
+ [O]
130
+ ), te = () => {
131
+ Q(!1), Y(!1);
132
+ }, ae = W(() => {
133
+ const a = [];
134
+ if (c && b > 0) {
135
+ const t = o[b - 1], i = o[b];
136
+ t && i && j(t, u, y) && !j(i, u, y) && a.push(
137
+ /* @__PURE__ */ e("tr", { className: "eco-split-section-row", children: /* @__PURE__ */ e("td", { colSpan: D, className: "eco-split-section-cell", children: /* @__PURE__ */ e("div", { className: "eco-split-section-bar", children: T[1] }) }) }, `split-top-${b}`)
132
138
  );
133
139
  }
134
- return A.forEach((a, p) => {
135
- const u = k + p;
136
- if (c && u > 0) {
137
- const n = o[u - 1], ye = o[u];
138
- n && $(n, h, y) && !$(ye, h, y) && t.push(
139
- /* @__PURE__ */ e("tr", { className: "eco-split-section-row", children: /* @__PURE__ */ e("td", { colSpan: D, className: "eco-split-section-cell", children: /* @__PURE__ */ e("div", { className: "eco-split-section-bar", children: T[1] }) }) }, `split-${u}`)
140
+ return S.forEach((t, i) => {
141
+ const p = b + i;
142
+ if (c && p > 0) {
143
+ const r = o[p - 1], B = o[p];
144
+ r && j(r, u, y) && !j(B, u, y) && a.push(
145
+ /* @__PURE__ */ e("tr", { className: "eco-split-section-row", children: /* @__PURE__ */ e("td", { colSpan: D, className: "eco-split-section-cell", children: /* @__PURE__ */ e("div", { className: "eco-split-section-bar", children: T[1] }) }) }, `split-${p}`)
140
146
  );
141
147
  }
142
- const M = j(a, u), I = i ? F(a, u) : null, K = i != null && i.selectedKey != null && String(i.selectedKey) === String(I);
143
- t.push(
148
+ const k = E(t, p), I = d ? V(t, p) : null, L = d != null && d.selectedKey != null && String(d.selectedKey) === String(I);
149
+ a.push(
144
150
  /* @__PURE__ */ l(
145
151
  "tr",
146
152
  {
147
- className: K ? "eco-row-selected" : void 0,
148
- style: L ? L(a) : void 0,
153
+ className: `${L ? "eco-row-selected" : ""} ${$ ? "eco-row-clickable" : ""}`,
154
+ style: {
155
+ cursor: $ ? "pointer" : void 0,
156
+ ..._ ? _(t) : {}
157
+ },
158
+ onClick: () => $ == null ? void 0 : $(t),
149
159
  children: [
150
- i ? /* @__PURE__ */ e(
160
+ d ? /* @__PURE__ */ e(
151
161
  "td",
152
162
  {
153
163
  className: "eco-select-cell",
154
- onClick: (n) => n.stopPropagation(),
155
- onKeyDown: (n) => n.stopPropagation(),
164
+ onClick: (r) => r.stopPropagation(),
165
+ onKeyDown: (r) => r.stopPropagation(),
156
166
  children: /* @__PURE__ */ e(
157
167
  "input",
158
168
  {
159
169
  type: "radio",
160
170
  name: "eco-table-row-selection",
161
- checked: K === !0,
162
- onChange: () => i.onSelect(a),
171
+ checked: L === !0,
172
+ onChange: () => d.onSelect(t),
163
173
  "aria-label": "Seleccionar fila para exportar"
164
174
  }
165
175
  )
166
176
  }
167
177
  ) : null,
168
- s.map((n) => /* @__PURE__ */ e(
169
- "td",
170
- {
171
- onClick: () => w(a, n),
172
- style: n.hasModal ? { cursor: "pointer" } : void 0,
173
- className: `
174
- ${n.hasModal ? "eco-has-modal-cell" : ""}
175
- ${n.noPadding ? "eco-no-padding-cell" : ""}
176
- `,
177
- children: n.hasModal ? /* @__PURE__ */ e("div", { className: "eco-cell-modal-trigger", children: n.renderComponent ? n.renderComponent(a) : n.isDate ? G(String(P(a, n.key) ?? "")) : String(P(a, n.key) ?? "—") }) : n.renderComponent ? n.renderComponent(a) : n.isDate ? G(String(P(a, n.key) ?? "")) : String(P(a, n.key) ?? "—")
178
- },
179
- n.key
180
- ))
178
+ n.map((r) => {
179
+ const B = typeof r.hasModal == "function" ? r.hasModal(t) : !!r.hasModal;
180
+ return /* @__PURE__ */ e(
181
+ "td",
182
+ {
183
+ onClick: (xe) => ee(t, r, xe),
184
+ style: B ? { cursor: "pointer" } : void 0,
185
+ className: `
186
+ ${B ? "eco-has-modal-cell" : ""}
187
+ ${r.noPadding ? "eco-no-padding-cell" : ""}
188
+ `,
189
+ children: B ? /* @__PURE__ */ e("div", { className: "eco-cell-modal-trigger", children: r.renderComponent ? r.renderComponent(t) : r.isDate ? J(String(P(t, r.key) ?? "")) : String(P(t, r.key) ?? "—") }) : r.renderComponent ? r.renderComponent(t) : r.isDate ? J(String(P(t, r.key) ?? "")) : String(P(t, r.key) ?? "—")
190
+ },
191
+ r.key
192
+ );
193
+ })
181
194
  ]
182
195
  },
183
- M
196
+ k
184
197
  )
185
198
  );
186
- }), t;
199
+ }), a;
187
200
  }, [
188
- A,
201
+ S,
189
202
  o,
190
- k,
191
- s,
203
+ b,
204
+ n,
192
205
  c,
193
- h,
206
+ u,
194
207
  y,
195
208
  T,
196
- j,
197
- L,
198
- w,
199
- i,
200
- F,
209
+ E,
210
+ _,
211
+ ee,
212
+ d,
213
+ V,
201
214
  D
202
- ]), ue = /* @__PURE__ */ l("thead", { children: [
215
+ ]), ye = /* @__PURE__ */ l("thead", { children: [
203
216
  /* @__PURE__ */ l("tr", { children: [
204
- i ? /* @__PURE__ */ e("th", { scope: "col", className: "eco-select-cell", "aria-label": "Selección", children: "Sel." }) : null,
205
- s.map((t) => /* @__PURE__ */ e("th", { children: t.label }, t.key))
217
+ d ? /* @__PURE__ */ e("th", { scope: "col", className: "eco-select-cell", "aria-label": "Selección", children: "Sel." }) : null,
218
+ n.map((a) => /* @__PURE__ */ e("th", { children: a.label }, a.key))
206
219
  ] }),
207
220
  v ? /* @__PURE__ */ l("tr", { className: "eco-column-filter-row", children: [
208
- i ? /* @__PURE__ */ e("th", { scope: "col", className: "eco-column-filter-cell" }) : null,
209
- s.map((t) => /* @__PURE__ */ e("th", { scope: "col", className: "eco-column-filter-cell", children: t.filterable === !1 ? null : /* @__PURE__ */ e(
221
+ d ? /* @__PURE__ */ e("th", { scope: "col", className: "eco-column-filter-cell" }) : null,
222
+ n.map((a) => /* @__PURE__ */ e("th", { scope: "col", className: "eco-column-filter-cell", children: a.filterable === !1 ? null : /* @__PURE__ */ e(
210
223
  "input",
211
224
  {
212
225
  type: "search",
213
226
  className: "eco-column-filter-input",
214
227
  placeholder: "Filtrar…",
215
- value: x[t.key] ?? "",
216
- onChange: (a) => pe((p) => ({ ...p, [t.key]: a.target.value })),
217
- "aria-label": `Filtrar ${t.label}`
228
+ value: x[a.key] ?? "",
229
+ onChange: (t) => ge((i) => ({ ...i, [a.key]: t.target.value })),
230
+ "aria-label": `Filtrar ${a.label}`
218
231
  }
219
- ) }, `filter-${t.key}`))
232
+ ) }, `filter-${a.key}`))
220
233
  ] }) : null
221
- ] }), ge = /* @__PURE__ */ e("tbody", { children: ee.length > 0 ? ee : /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: D, className: "text-center py-5 text-muted", children: "No se encontraron registros para mostrar." }) }) }), te = V && o.length !== r.length ? /* @__PURE__ */ l(q, { children: [
234
+ ] }), Ne = /* @__PURE__ */ e("tbody", { children: ae.length > 0 ? ae : /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: D, className: "text-center py-5 text-muted", children: "No se encontraron registros para mostrar." }) }) }), re = A && o.length !== s.length ? /* @__PURE__ */ l(G, { children: [
222
235
  "Mostrando ",
223
236
  /* @__PURE__ */ e("strong", { children: o.length }),
224
237
  " de ",
225
- /* @__PURE__ */ e("strong", { children: r.length }),
238
+ /* @__PURE__ */ e("strong", { children: s.length }),
226
239
  " registros"
227
- ] }) : /* @__PURE__ */ l(q, { children: [
240
+ ] }) : /* @__PURE__ */ l(G, { children: [
228
241
  "Total de registros: ",
229
242
  /* @__PURE__ */ e("strong", { children: o.length })
230
- ] }), fe = O ? /* @__PURE__ */ l("div", { className: "eco-custom-pagination eco-table-footer", "aria-live": "polite", children: [
231
- /* @__PURE__ */ e("span", { className: "eco-pagination-info", children: te }),
232
- b ? null : /* @__PURE__ */ e("div", { className: "eco-table-footer-pagination", children: /* @__PURE__ */ e(
233
- oe,
243
+ ] }), ve = K ? /* @__PURE__ */ l("div", { className: "eco-custom-pagination eco-table-footer", "aria-live": "polite", children: [
244
+ /* @__PURE__ */ e("span", { className: "eco-pagination-info", children: re }),
245
+ M ? null : /* @__PURE__ */ e("div", { className: "eco-table-footer-pagination", children: /* @__PURE__ */ e(
246
+ ce,
234
247
  {
235
- currentPage: W,
236
- totalPages: H,
237
- onPageChange: _,
248
+ currentPage: q,
249
+ totalPages: w,
250
+ onPageChange: F,
238
251
  totalRecords: o.length,
239
252
  pageSize: N
240
253
  }
241
254
  ) })
242
- ] }) : b ? /* @__PURE__ */ e("div", { className: "eco-custom-pagination eco-table-infinite-total", "aria-live": "polite", children: /* @__PURE__ */ e("span", { className: "eco-pagination-info", children: te }) }) : /* @__PURE__ */ e(
243
- oe,
255
+ ] }) : M ? /* @__PURE__ */ e("div", { className: "eco-custom-pagination eco-table-infinite-total", "aria-live": "polite", children: /* @__PURE__ */ e("span", { className: "eco-pagination-info", children: re }) }) : /* @__PURE__ */ e(
256
+ ce,
244
257
  {
245
- currentPage: W,
246
- totalPages: H,
247
- onPageChange: _,
258
+ currentPage: q,
259
+ totalPages: w,
260
+ onPageChange: F,
248
261
  totalRecords: o.length,
249
262
  pageSize: N
250
263
  }
251
264
  );
252
- return le ? /* @__PURE__ */ e(ve, { columns: D }) : /* @__PURE__ */ l(
265
+ return ie ? /* @__PURE__ */ e(be, { columns: D }) : /* @__PURE__ */ l(
253
266
  "div",
254
267
  {
255
- className: `eco-custom-data-table-wrapper custom-data-table-split${O ? " custom-data-table-split--sticky" : ""}`,
268
+ className: `eco-custom-data-table-wrapper custom-data-table-split${K ? " custom-data-table-split--sticky" : ""}`,
256
269
  children: [
257
- g ?? f ?? B ?? m ? /* @__PURE__ */ l(
270
+ g ?? f ?? R ?? h ? /* @__PURE__ */ l(
258
271
  "div",
259
272
  {
260
273
  className: `eco-custom-data-table-header ${!g && !f ? "compact" : ""}`,
@@ -273,66 +286,66 @@ function ht({
273
286
  g ? /* @__PURE__ */ e("h2", { style: { fontSize: "1.5rem", fontWeight: 700, color: "#1a202c", marginBottom: "4px" }, children: g }) : null,
274
287
  f ? /* @__PURE__ */ e("p", { style: { fontSize: "0.9rem", color: "#718096", margin: 0 }, children: f }) : null
275
288
  ] }),
276
- m || B ? /* @__PURE__ */ l("div", { className: "eco-custom-data-table-toolbar-actions", children: [
277
- m != null && m.onSearch ? /* @__PURE__ */ l("div", { className: "eco-custom-data-table-search-wrapper", children: [
289
+ h || R ? /* @__PURE__ */ l("div", { className: "eco-custom-data-table-toolbar-actions", children: [
290
+ h != null && h.onSearch ? /* @__PURE__ */ l("div", { className: "eco-custom-data-table-search-wrapper", children: [
278
291
  /* @__PURE__ */ e(
279
292
  "input",
280
293
  {
281
294
  type: "search",
282
295
  className: "eco-custom-data-table-search-input",
283
- placeholder: m.searchPlaceholder ?? "Buscar…",
284
- value: m.searchTerm ?? "",
285
- onChange: (t) => {
286
- var a;
287
- return (a = m.onSearch) == null ? void 0 : a.call(m, t.target.value);
296
+ placeholder: h.searchPlaceholder ?? "Buscar…",
297
+ value: h.searchTerm ?? "",
298
+ onChange: (a) => {
299
+ var t;
300
+ return (t = h.onSearch) == null ? void 0 : t.call(h, a.target.value);
288
301
  },
289
- "aria-label": m.searchPlaceholder ?? "Buscar en la tabla"
302
+ "aria-label": h.searchPlaceholder ?? "Buscar en la tabla"
290
303
  }
291
304
  ),
292
305
  /* @__PURE__ */ e("span", { className: "eco-search-icon-inside", "aria-hidden": "true", children: "⌕" })
293
306
  ] }) : null,
294
- v && V ? /* @__PURE__ */ l("span", { className: "eco-table-count-badge", children: [
307
+ v && A ? /* @__PURE__ */ l("span", { className: "eco-table-count-badge", children: [
295
308
  o.length,
296
309
  " de ",
297
- r.length
310
+ s.length
298
311
  ] }) : null,
299
- B ? /* @__PURE__ */ e("div", { className: "eco-table-actions-wrap", style: { display: "flex", alignItems: "center", flexShrink: 0 }, children: B }) : null
312
+ R ? /* @__PURE__ */ e("div", { className: "eco-table-actions-wrap", style: { display: "flex", alignItems: "center", flexShrink: 0 }, children: R }) : null
300
313
  ] }) : null
301
314
  ]
302
315
  }
303
316
  ) : null,
304
- c && o.some((t) => $(t, h, y)) && ((ae = T[0]) != null && ae.trim()) ? /* @__PURE__ */ e("div", { className: "eco-split-section-caption", children: T[0] }) : null,
317
+ c && o.some((a) => j(a, u, y)) && ((se = T[0]) != null && se.trim()) ? /* @__PURE__ */ e("div", { className: "eco-split-section-caption", children: T[0] }) : null,
305
318
  /* @__PURE__ */ l(
306
319
  "div",
307
320
  {
308
- ref: Y,
309
- className: `eco-custom-data-table-container${O ? " eco-table-sticky-header" : ""}${!O && b ? " eco-table-infinite-scroll" : ""}`,
321
+ ref: Z,
322
+ className: `eco-custom-data-table-container${K ? " eco-table-sticky-header" : ""}${!K && M ? " eco-table-infinite-scroll" : ""}`,
310
323
  children: [
311
- /* @__PURE__ */ l(xe, { className: "eco-custom-data-table", borderless: !0, children: [
312
- ue,
313
- ge
324
+ /* @__PURE__ */ l(ke, { className: "eco-custom-data-table", borderless: !0, children: [
325
+ ye,
326
+ Ne
314
327
  ] }),
315
- b && (d != null && d.hasMore) ? /* @__PURE__ */ l(q, { children: [
316
- d != null && d.isLoadingMore ? /* @__PURE__ */ e("div", { className: "eco-infinite-loading text-muted small py-2 text-center", children: "Cargando más solicitudes…" }) : null,
317
- /* @__PURE__ */ e("div", { ref: Z, className: "eco-infinite-sentinel", "aria-hidden": !0 })
328
+ M && (m != null && m.hasMore) ? /* @__PURE__ */ l(G, { children: [
329
+ m != null && m.isLoadingMore ? /* @__PURE__ */ e("div", { className: "eco-infinite-loading text-muted small py-2 text-center", children: "Cargando más solicitudes…" }) : null,
330
+ /* @__PURE__ */ e("div", { ref: H, className: "eco-infinite-sentinel", "aria-hidden": !0 })
318
331
  ] }) : null
319
332
  ]
320
333
  }
321
334
  ),
322
- fe,
323
- R ? /* @__PURE__ */ e(
324
- Ne,
335
+ ve,
336
+ O ? /* @__PURE__ */ e(
337
+ Me,
325
338
  {
326
- show: ce,
327
- onHide: S,
328
- closeModalOut: !0,
339
+ show: me,
340
+ onHide: te,
341
+ closeModalOut: de,
329
342
  title: "",
330
343
  modalType: "primary",
331
344
  showMaximizeButton: !0,
332
- isMaximized: me,
333
- onToggleMaximize: () => X((t) => !t),
345
+ isMaximized: ue,
346
+ onToggleMaximize: () => Y((a) => !a),
334
347
  hasBody: !0,
335
- children: Q && U ? R(Q, U, S) : /* @__PURE__ */ e("div", { className: "p-4", children: /* @__PURE__ */ e("p", { children: "No hay contenido disponible para este modal." }) })
348
+ children: U && X ? O(U, X, te) : /* @__PURE__ */ e("div", { className: "p-4", children: /* @__PURE__ */ e("p", { children: "No hay contenido disponible para este modal." }) })
336
349
  }
337
350
  ) : null
338
351
  ]
@@ -340,5 +353,5 @@ function ht({
340
353
  );
341
354
  }
342
355
  export {
343
- ht as CustomDataTableSplit
356
+ vt as CustomDataTableSplit
344
357
  };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { i as y } from "../../index-C4MBu_wk.js";
2
+ import { i as y } from "../../index-B96iRUpt.js";
3
3
  import { StatusFilterBar as w } from "../../ui/status-filter-bar/StatusFilterBar.js";
4
4
  import '../../assets/CustomTableToolbar.css';const N = ({
5
5
  onSearch: i,