react-ecosistema-unp 2.1.0 → 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.
- package/dist/{AppList-BshxZhoN.js → AppList-DORGpC4I.js} +84 -84
- package/dist/assets/DocumentoVisorEstado.css +1 -0
- package/dist/assets/EcoDataTable.css +1 -1
- package/dist/assets/EcoDataTableBandejaFooter.css +1 -1
- package/dist/assets/SileoNotifications.css +1 -1
- 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-C4MBu_wk.js → index-B96iRUpt.js} +38 -34
- package/dist/{index-h-TtOxhs.js → index-BqaJxgOF.js} +182 -170
- package/dist/lib/tables/custom-data-table/CustomDataTable.d.ts +2 -0
- package/dist/lib/tables/custom-data-table-split/CustomDataTableSplit.d.ts +3 -1
- package/dist/lib/tables/eco-data-table/components/EcoDataTable/EcoDataTable.d.ts +1 -1
- package/dist/lib/tables/eco-data-table/components/EcoDataTableBandejaFooter.d.ts +8 -1
- package/dist/lib/tables/eco-data-table/hooks/useEcoTableSelection.d.ts +1 -0
- package/dist/lib/tables/eco-data-table/types.d.ts +7 -0
- package/dist/lib/ui/animacion/Animacion.d.ts +1 -0
- package/dist/lib/ui.d.ts +1 -0
- package/dist/lib/utils/modal-radicados/DocumentoVisorEstado.d.ts +18 -0
- package/dist/lib/utils/modal-radicados/ModalDocumento.d.ts +26 -0
- package/dist/lib/utils/modal-radicados/VisorDocumento.d.ts +8 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/shared/app-list/AppList.js +2 -2
- package/dist/shared/iconos-sistema/IconosSistema.js +1 -1
- package/dist/shared/iconos-sistema/logout-button/LogoutButton.js +1 -1
- package/dist/shared/menu-lateral/MenuLateral.js +4 -3
- package/dist/shared/notificacion-usuario/NotificacionUsuario.js +6 -5
- package/dist/shared/ventana-tabs/VentanaTabs.js +1 -1
- package/dist/tables/custom-data-table/CustomDataTable.js +549 -547
- package/dist/tables/custom-data-table-split/CustomDataTableSplit.js +68 -65
- package/dist/tables/custom-table-toolbar/CustomTableToolbar.js +1 -1
- package/dist/tables/eco-data-table/components/EcoDataTable/EcoDataTable.js +190 -149
- package/dist/tables/eco-data-table/components/EcoDataTableBandejaFooter.js +36 -26
- package/dist/tables/eco-data-table/hooks/useEcoTableSelection.js +9 -8
- package/dist/tables/tabla-registros/buscador/Buscador.js +1 -1
- package/dist/tables/tabla-registros/modal-v2/EcoModal.js +11 -11
- package/dist/tables/tabla-registros/tabla/Tabla.js +22 -22
- package/dist/ui/alertas/AlertaFormulario.js +1 -1
- package/dist/ui/card-gestion-lateral/CardGestionLateral.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/contenido-modal-v2/ContenidoModalV2.js +1 -1
- package/dist/ui/contenido-modal-v2/ModalV2Menu.js +1 -1
- package/dist/ui/datos-basicos-card/DatosBasicosCard.js +1 -1
- package/dist/ui/icono-tooltip/IconoTooltip.js +10 -10
- package/dist/ui/items-modal/ItemsModal.js +1 -1
- package/dist/ui/nav-formularios-lateral/NavFormulariosLateral.js +1 -1
- package/dist/ui/notificacion-popover-v2/NotificacionPopoverV2.js +50 -50
- package/dist/ui/resumen-evaluacion/ResumenEvaluacion.js +5 -5
- package/dist/ui/status-filter-bar/StatusFilterBar.js +8 -8
- package/dist/ui/status-semaphore/StatusSemaphore.js +1 -1
- package/dist/ui/stepper-v2/StepperV2.js +1 -1
- package/dist/utils/eco-provider/EcoContext.js +4 -3
- package/dist/utils/modal-radicados/AuxRadicadosComponents/TarjetaRadicado.js +12 -12
- package/dist/utils/modal-radicados/DocumentoVisorEstado.js +125 -0
- package/dist/utils/modal-radicados/ModalDocumento.js +155 -170
- package/dist/utils/modal-radicados/ModalRadicado.js +34 -34
- package/dist/utils/modal-radicados/VisorDocumento.js +61 -61
- package/dist/utils/notifications/EcoToaster.js +26 -25
- package/dist/utils/unp-historico/UnpHistorico.js +1 -1
- package/dist/utils.js +29 -27
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l, Fragment as G } from "react/jsx-runtime";
|
|
2
|
-
import { useState as C, useRef as
|
|
3
|
-
import '../../assets/SileoNotifications.css';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 */
|
|
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,14 +12,14 @@ import "react-router-dom";
|
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { EcoModal as
|
|
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
|
|
22
|
+
import { TableSkeleton as be } from "../../ui/table-skeleton/TableSkeleton.js";
|
|
23
23
|
/* empty css */
|
|
24
24
|
import { PaginadorV2 as ce } from "../../ui/paginador-v2/PaginadorV2.js";
|
|
25
25
|
/* empty css */
|
|
@@ -35,32 +35,34 @@ import { PaginadorV2 as ce } from "../../ui/paginador-v2/PaginadorV2.js";
|
|
|
35
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
42
|
/* empty css */
|
|
42
43
|
import "../../index-C1R4rkuA.js";
|
|
44
|
+
import "../../index-DdZBtIJj.js";
|
|
43
45
|
import "../../auth/contexts/AuthContex.js";
|
|
44
46
|
/* empty css */
|
|
45
|
-
import { T as
|
|
46
|
-
function P(
|
|
47
|
-
return
|
|
47
|
+
import { T as ke } from "../../Table-cUZFLrPi.js";
|
|
48
|
+
function P(n, s) {
|
|
49
|
+
return n[s];
|
|
48
50
|
}
|
|
49
|
-
function
|
|
50
|
-
const c =
|
|
51
|
-
return u != null ? String(u) :
|
|
51
|
+
function Ce(n, s) {
|
|
52
|
+
const c = n, u = c.uuid ?? c.id ?? c.numeroRegistro;
|
|
53
|
+
return u != null ? String(u) : s;
|
|
52
54
|
}
|
|
53
|
-
function j(
|
|
54
|
-
return P(
|
|
55
|
+
function j(n, s, c) {
|
|
56
|
+
return P(n, s) === c;
|
|
55
57
|
}
|
|
56
|
-
function
|
|
57
|
-
if (
|
|
58
|
-
const c = P(
|
|
59
|
-
return c == null ? "" :
|
|
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);
|
|
60
62
|
}
|
|
61
|
-
function
|
|
62
|
-
columns:
|
|
63
|
-
data:
|
|
63
|
+
function vt({
|
|
64
|
+
columns: n,
|
|
65
|
+
data: s,
|
|
64
66
|
isShared: c = !1,
|
|
65
67
|
splitField: u = "estadoRegistro",
|
|
66
68
|
firstSectionValue: y = "en_gestion",
|
|
@@ -72,40 +74,41 @@ function ft({
|
|
|
72
74
|
headerActions: R,
|
|
73
75
|
getRowStyle: _,
|
|
74
76
|
pageSize: N = 10,
|
|
75
|
-
getRowKey: E =
|
|
77
|
+
getRowKey: E = Ce,
|
|
76
78
|
rowSelection: d,
|
|
77
79
|
infiniteScroll: m,
|
|
78
80
|
enableColumnFilters: v = !1,
|
|
79
81
|
stickyHeader: K = !0,
|
|
80
82
|
toolbar: h,
|
|
81
|
-
onRowClick:
|
|
83
|
+
onRowClick: $,
|
|
84
|
+
closeModalOut: de = !0
|
|
82
85
|
}) {
|
|
83
|
-
var
|
|
84
|
-
const [
|
|
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(
|
|
85
88
|
(a, t) => ((d == null ? void 0 : d.getRowKey) ?? E)(a, t),
|
|
86
89
|
[d, E]
|
|
87
90
|
), o = W(() => {
|
|
88
|
-
if (!v) return
|
|
91
|
+
if (!v) return s;
|
|
89
92
|
const a = Object.entries(x).filter(([, t]) => t.trim());
|
|
90
|
-
return a.length === 0 ?
|
|
93
|
+
return a.length === 0 ? s : s.filter(
|
|
91
94
|
(t) => a.every(([i, p]) => {
|
|
92
|
-
const k =
|
|
95
|
+
const k = n.find((L) => L.key === i);
|
|
93
96
|
if (!k || k.filterable === !1) return !0;
|
|
94
97
|
const I = p.trim().toLowerCase();
|
|
95
|
-
return
|
|
98
|
+
return Pe(t, k).toLowerCase().includes(I);
|
|
96
99
|
})
|
|
97
100
|
);
|
|
98
|
-
}, [
|
|
101
|
+
}, [s, x, v, n]), A = W(
|
|
99
102
|
() => v && Object.values(x).some((a) => a.trim()),
|
|
100
103
|
[v, x]
|
|
101
104
|
);
|
|
102
105
|
le(() => {
|
|
103
106
|
F(1);
|
|
104
|
-
}, [
|
|
105
|
-
const w = Math.max(1, Math.ceil(o.length / N)), z = (q - 1) * N, M = !!m,
|
|
107
|
+
}, [s, x]);
|
|
108
|
+
const w = Math.max(1, Math.ceil(o.length / N)), z = (q - 1) * N, M = !!m, fe = W(
|
|
106
109
|
() => o.slice(z, z + N),
|
|
107
110
|
[o, z, N]
|
|
108
|
-
), S = M ? o :
|
|
111
|
+
), S = M ? o : fe, b = M ? 0 : z;
|
|
109
112
|
le(() => {
|
|
110
113
|
if (!m) return;
|
|
111
114
|
const a = Z.current, t = H.current;
|
|
@@ -117,11 +120,11 @@ function ft({
|
|
|
117
120
|
{ root: a, rootMargin: "160px 0px", threshold: 0 }
|
|
118
121
|
);
|
|
119
122
|
return i.observe(t), () => i.disconnect();
|
|
120
|
-
}, [m,
|
|
123
|
+
}, [m, s.length]);
|
|
121
124
|
const ee = oe(
|
|
122
125
|
(a, t, i) => {
|
|
123
126
|
const p = typeof t.hasModal == "function" ? t.hasModal(a) : !!t.hasModal;
|
|
124
|
-
!O || !p || (i == null || i.stopPropagation(),
|
|
127
|
+
!O || !p || (i == null || i.stopPropagation(), pe(a), he(t), Q(!0));
|
|
125
128
|
},
|
|
126
129
|
[O]
|
|
127
130
|
), te = () => {
|
|
@@ -137,8 +140,8 @@ function ft({
|
|
|
137
140
|
return S.forEach((t, i) => {
|
|
138
141
|
const p = b + i;
|
|
139
142
|
if (c && p > 0) {
|
|
140
|
-
const
|
|
141
|
-
|
|
143
|
+
const r = o[p - 1], B = o[p];
|
|
144
|
+
r && j(r, u, y) && !j(B, u, y) && a.push(
|
|
142
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}`)
|
|
143
146
|
);
|
|
144
147
|
}
|
|
@@ -158,8 +161,8 @@ function ft({
|
|
|
158
161
|
"td",
|
|
159
162
|
{
|
|
160
163
|
className: "eco-select-cell",
|
|
161
|
-
onClick: (
|
|
162
|
-
onKeyDown: (
|
|
164
|
+
onClick: (r) => r.stopPropagation(),
|
|
165
|
+
onKeyDown: (r) => r.stopPropagation(),
|
|
163
166
|
children: /* @__PURE__ */ e(
|
|
164
167
|
"input",
|
|
165
168
|
{
|
|
@@ -172,20 +175,20 @@ function ft({
|
|
|
172
175
|
)
|
|
173
176
|
}
|
|
174
177
|
) : null,
|
|
175
|
-
|
|
176
|
-
const B = typeof
|
|
178
|
+
n.map((r) => {
|
|
179
|
+
const B = typeof r.hasModal == "function" ? r.hasModal(t) : !!r.hasModal;
|
|
177
180
|
return /* @__PURE__ */ e(
|
|
178
181
|
"td",
|
|
179
182
|
{
|
|
180
|
-
onClick: (
|
|
183
|
+
onClick: (xe) => ee(t, r, xe),
|
|
181
184
|
style: B ? { cursor: "pointer" } : void 0,
|
|
182
185
|
className: `
|
|
183
186
|
${B ? "eco-has-modal-cell" : ""}
|
|
184
|
-
${
|
|
187
|
+
${r.noPadding ? "eco-no-padding-cell" : ""}
|
|
185
188
|
`,
|
|
186
|
-
children: B ? /* @__PURE__ */ e("div", { className: "eco-cell-modal-trigger", children:
|
|
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) ?? "—")
|
|
187
190
|
},
|
|
188
|
-
|
|
191
|
+
r.key
|
|
189
192
|
);
|
|
190
193
|
})
|
|
191
194
|
]
|
|
@@ -198,7 +201,7 @@ function ft({
|
|
|
198
201
|
S,
|
|
199
202
|
o,
|
|
200
203
|
b,
|
|
201
|
-
|
|
204
|
+
n,
|
|
202
205
|
c,
|
|
203
206
|
u,
|
|
204
207
|
y,
|
|
@@ -209,36 +212,36 @@ function ft({
|
|
|
209
212
|
d,
|
|
210
213
|
V,
|
|
211
214
|
D
|
|
212
|
-
]),
|
|
215
|
+
]), ye = /* @__PURE__ */ l("thead", { children: [
|
|
213
216
|
/* @__PURE__ */ l("tr", { children: [
|
|
214
217
|
d ? /* @__PURE__ */ e("th", { scope: "col", className: "eco-select-cell", "aria-label": "Selección", children: "Sel." }) : null,
|
|
215
|
-
|
|
218
|
+
n.map((a) => /* @__PURE__ */ e("th", { children: a.label }, a.key))
|
|
216
219
|
] }),
|
|
217
220
|
v ? /* @__PURE__ */ l("tr", { className: "eco-column-filter-row", children: [
|
|
218
221
|
d ? /* @__PURE__ */ e("th", { scope: "col", className: "eco-column-filter-cell" }) : null,
|
|
219
|
-
|
|
222
|
+
n.map((a) => /* @__PURE__ */ e("th", { scope: "col", className: "eco-column-filter-cell", children: a.filterable === !1 ? null : /* @__PURE__ */ e(
|
|
220
223
|
"input",
|
|
221
224
|
{
|
|
222
225
|
type: "search",
|
|
223
226
|
className: "eco-column-filter-input",
|
|
224
227
|
placeholder: "Filtrar…",
|
|
225
228
|
value: x[a.key] ?? "",
|
|
226
|
-
onChange: (t) =>
|
|
229
|
+
onChange: (t) => ge((i) => ({ ...i, [a.key]: t.target.value })),
|
|
227
230
|
"aria-label": `Filtrar ${a.label}`
|
|
228
231
|
}
|
|
229
232
|
) }, `filter-${a.key}`))
|
|
230
233
|
] }) : null
|
|
231
|
-
] }),
|
|
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: [
|
|
232
235
|
"Mostrando ",
|
|
233
236
|
/* @__PURE__ */ e("strong", { children: o.length }),
|
|
234
237
|
" de ",
|
|
235
|
-
/* @__PURE__ */ e("strong", { children:
|
|
238
|
+
/* @__PURE__ */ e("strong", { children: s.length }),
|
|
236
239
|
" registros"
|
|
237
240
|
] }) : /* @__PURE__ */ l(G, { children: [
|
|
238
241
|
"Total de registros: ",
|
|
239
242
|
/* @__PURE__ */ e("strong", { children: o.length })
|
|
240
|
-
] }),
|
|
241
|
-
/* @__PURE__ */ e("span", { className: "eco-pagination-info", children:
|
|
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 }),
|
|
242
245
|
M ? null : /* @__PURE__ */ e("div", { className: "eco-table-footer-pagination", children: /* @__PURE__ */ e(
|
|
243
246
|
ce,
|
|
244
247
|
{
|
|
@@ -249,7 +252,7 @@ function ft({
|
|
|
249
252
|
pageSize: N
|
|
250
253
|
}
|
|
251
254
|
) })
|
|
252
|
-
] }) : M ? /* @__PURE__ */ e("div", { className: "eco-custom-pagination eco-table-infinite-total", "aria-live": "polite", children: /* @__PURE__ */ e("span", { className: "eco-pagination-info", children:
|
|
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(
|
|
253
256
|
ce,
|
|
254
257
|
{
|
|
255
258
|
currentPage: q,
|
|
@@ -259,7 +262,7 @@ function ft({
|
|
|
259
262
|
pageSize: N
|
|
260
263
|
}
|
|
261
264
|
);
|
|
262
|
-
return ie ? /* @__PURE__ */ e(
|
|
265
|
+
return ie ? /* @__PURE__ */ e(be, { columns: D }) : /* @__PURE__ */ l(
|
|
263
266
|
"div",
|
|
264
267
|
{
|
|
265
268
|
className: `eco-custom-data-table-wrapper custom-data-table-split${K ? " custom-data-table-split--sticky" : ""}`,
|
|
@@ -304,23 +307,23 @@ function ft({
|
|
|
304
307
|
v && A ? /* @__PURE__ */ l("span", { className: "eco-table-count-badge", children: [
|
|
305
308
|
o.length,
|
|
306
309
|
" de ",
|
|
307
|
-
|
|
310
|
+
s.length
|
|
308
311
|
] }) : null,
|
|
309
312
|
R ? /* @__PURE__ */ e("div", { className: "eco-table-actions-wrap", style: { display: "flex", alignItems: "center", flexShrink: 0 }, children: R }) : null
|
|
310
313
|
] }) : null
|
|
311
314
|
]
|
|
312
315
|
}
|
|
313
316
|
) : null,
|
|
314
|
-
c && o.some((a) => j(a, u, y)) && ((
|
|
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,
|
|
315
318
|
/* @__PURE__ */ l(
|
|
316
319
|
"div",
|
|
317
320
|
{
|
|
318
321
|
ref: Z,
|
|
319
322
|
className: `eco-custom-data-table-container${K ? " eco-table-sticky-header" : ""}${!K && M ? " eco-table-infinite-scroll" : ""}`,
|
|
320
323
|
children: [
|
|
321
|
-
/* @__PURE__ */ l(
|
|
322
|
-
|
|
323
|
-
|
|
324
|
+
/* @__PURE__ */ l(ke, { className: "eco-custom-data-table", borderless: !0, children: [
|
|
325
|
+
ye,
|
|
326
|
+
Ne
|
|
324
327
|
] }),
|
|
325
328
|
M && (m != null && m.hasMore) ? /* @__PURE__ */ l(G, { children: [
|
|
326
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,
|
|
@@ -329,17 +332,17 @@ function ft({
|
|
|
329
332
|
]
|
|
330
333
|
}
|
|
331
334
|
),
|
|
332
|
-
|
|
335
|
+
ve,
|
|
333
336
|
O ? /* @__PURE__ */ e(
|
|
334
|
-
|
|
337
|
+
Me,
|
|
335
338
|
{
|
|
336
|
-
show:
|
|
339
|
+
show: me,
|
|
337
340
|
onHide: te,
|
|
338
|
-
closeModalOut:
|
|
341
|
+
closeModalOut: de,
|
|
339
342
|
title: "",
|
|
340
343
|
modalType: "primary",
|
|
341
344
|
showMaximizeButton: !0,
|
|
342
|
-
isMaximized:
|
|
345
|
+
isMaximized: ue,
|
|
343
346
|
onToggleMaximize: () => Y((a) => !a),
|
|
344
347
|
hasBody: !0,
|
|
345
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." }) })
|
|
@@ -350,5 +353,5 @@ function ft({
|
|
|
350
353
|
);
|
|
351
354
|
}
|
|
352
355
|
export {
|
|
353
|
-
|
|
356
|
+
vt as CustomDataTableSplit
|
|
354
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-
|
|
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,
|