@litigiovirtual/ius-alertas 0.1.0 → 0.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.
|
@@ -3,8 +3,58 @@ import * as i0 from '@angular/core';
|
|
|
3
3
|
import { InjectionToken, makeEnvironmentProviders, inject, Injectable, signal, computed, effect, untracked, input, numberAttribute, output, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
4
|
import { catchError, of, Subject, switchMap, EMPTY, map, finalize } from 'rxjs';
|
|
5
5
|
import { HubConnectionBuilder } from '@microsoft/signalr';
|
|
6
|
+
import { DOCUMENT } from '@angular/common';
|
|
6
7
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
7
|
-
import { ToastService, DrawerComponent, DropdownComponent, EmptyStateComponent, FlexComponent, IconButtonComponent, IllustrationComponent, IusDrawerHeaderActionsDirective, IusDropdownTriggerDirective, NotificationItemComponent, SectionHeaderComponent, SkeletonComponent, StatusStateComponent } from '@litigiovirtual/ius-design-components';
|
|
8
|
+
import { ToastService, ButtonComponent, DrawerComponent, DropdownComponent, EmptyStateComponent, FlexComponent, IconButtonComponent, IllustrationComponent, IusDrawerHeaderActionsDirective, IusDropdownTriggerDirective, IusModalFooterDirective, ModalComponent, NotificationItemComponent, SectionHeaderComponent, SkeletonComponent, StatusStateComponent, TextAreaComponent } from '@litigiovirtual/ius-design-components';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* El destino de la alerta con `alerta=<id>`; null si no hay destino, si la ruta no es relativa (como la valida el Auth al
|
|
12
|
+
* recibirla) o si el prefijo no tiene web conocida.
|
|
13
|
+
*/
|
|
14
|
+
function resolverDestino(destino, alertaID, app, urlApps) {
|
|
15
|
+
if (!destino) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
const separador = destino.indexOf(':');
|
|
19
|
+
if (separador < 0) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
const prefijo = destino.slice(0, separador);
|
|
23
|
+
const relativa = destino.slice(separador + 1);
|
|
24
|
+
// Pegada a la base, una ruta sin su «/» o con «//» cambia de host («@evil.com», «.evil.com»).
|
|
25
|
+
if (!esRutaRelativa(relativa)) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
const ruta = conAlerta(relativa, alertaID);
|
|
29
|
+
if (prefijo === app) {
|
|
30
|
+
return { tipo: 'interno', ruta };
|
|
31
|
+
}
|
|
32
|
+
// Sin hasOwn, «constructor» o «toString» salen del prototipo del objeto.
|
|
33
|
+
const base = Object.hasOwn(urlApps, prefijo) ? urlApps[prefijo] : undefined;
|
|
34
|
+
if (!base) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return { tipo: 'externo', url: base.replace(/\/+$/, '') + ruta };
|
|
38
|
+
}
|
|
39
|
+
/** El path de una ruta interna, sin query ni fragmento: sirve para saber si el destino es la pantalla actual. */
|
|
40
|
+
function pathDeRuta(ruta) {
|
|
41
|
+
return ruta.split('#')[0].split('?')[0];
|
|
42
|
+
}
|
|
43
|
+
/** La misma regla que `EsDestinoRelativo` del Auth: «/» y algo más, sin «//», sin «\» ni caracteres de control. */
|
|
44
|
+
function esRutaRelativa(ruta) {
|
|
45
|
+
return /^\/[^/]/.test(ruta) && !/[\\\u0000-\u001f\u007f-\u009f]/.test(ruta);
|
|
46
|
+
}
|
|
47
|
+
/** Un `alerta=` que ya traiga el destino se reemplaza; los demás parámetros quedan tal cual, sin recodificar. */
|
|
48
|
+
function conAlerta(ruta, alertaID) {
|
|
49
|
+
const almohadilla = ruta.indexOf('#');
|
|
50
|
+
const sinFragmento = almohadilla < 0 ? ruta : ruta.slice(0, almohadilla);
|
|
51
|
+
const fragmento = almohadilla < 0 ? '' : ruta.slice(almohadilla);
|
|
52
|
+
const interrogacion = sinFragmento.indexOf('?');
|
|
53
|
+
const path = interrogacion < 0 ? sinFragmento : sinFragmento.slice(0, interrogacion);
|
|
54
|
+
const parametros = interrogacion < 0 ? [] : sinFragmento.slice(interrogacion + 1).split('&');
|
|
55
|
+
const otros = parametros.filter(p => p !== '' && p.split('=')[0] !== 'alerta');
|
|
56
|
+
return `${path}?${[...otros, `alerta=${alertaID}`].join('&')}${fragmento}`;
|
|
57
|
+
}
|
|
8
58
|
|
|
9
59
|
/** En el orden del catálogo: es el orden del filtro. */
|
|
10
60
|
const MODULOS_ALERTA = {
|
|
@@ -31,14 +81,40 @@ class AlertasApiService {
|
|
|
31
81
|
return this.responder(this.http.get(this.url('Pendientes'), { params: { accountID }, headers: this.cabeceras() }));
|
|
32
82
|
}
|
|
33
83
|
marcarVista(accountID, alertaID) {
|
|
34
|
-
return this.responder(this.http.put(this.url('MarcarVista'),
|
|
84
|
+
return this.responder(this.http.put(this.url('MarcarVista'), null, {
|
|
85
|
+
params: { accountID, alertaID },
|
|
86
|
+
headers: this.cabeceras(),
|
|
87
|
+
}));
|
|
35
88
|
}
|
|
36
89
|
marcarTodasVistas(accountID) {
|
|
37
|
-
return this.responder(this.http.put(this.url('MarcarTodasVistas'),
|
|
90
|
+
return this.responder(this.http.put(this.url('MarcarTodasVistas'), null, {
|
|
91
|
+
params: { accountID },
|
|
92
|
+
headers: this.cabeceras(),
|
|
93
|
+
}));
|
|
94
|
+
}
|
|
95
|
+
destinoNoDisponible(accountID, alertaID) {
|
|
96
|
+
return this.responder(this.http.put(this.url('DestinoNoDisponible'), null, {
|
|
97
|
+
params: { accountID, alertaID },
|
|
98
|
+
headers: this.cabeceras(),
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
solicitudCupo(accountID, solicitudCupoID) {
|
|
102
|
+
return this.responder(this.http.get(this.urlSubscripciones('SolicitudCupo'), {
|
|
103
|
+
params: { accountID, solicitudCupoID },
|
|
104
|
+
headers: this.cabeceras(),
|
|
105
|
+
}));
|
|
106
|
+
}
|
|
107
|
+
resolverSolicitudCupo(cuerpo) {
|
|
108
|
+
return this.responder(this.http.put(this.urlSubscripciones('ResolverSolicitudCupo'), cuerpo, {
|
|
109
|
+
headers: this.cabeceras(),
|
|
110
|
+
}));
|
|
38
111
|
}
|
|
39
112
|
url(accion) {
|
|
40
113
|
return `${this.config.urlAuth}/api/v1/Alert/${accion}`;
|
|
41
114
|
}
|
|
115
|
+
urlSubscripciones(accion) {
|
|
116
|
+
return `${this.config.urlAuth}/api/v1/Subscripciones/${accion}`;
|
|
117
|
+
}
|
|
42
118
|
// Explícito: la cookie de sesión no viaja al dominio del Auth (azurewebsites.net).
|
|
43
119
|
cabeceras() {
|
|
44
120
|
return new HttpHeaders({ Authorization: `Bearer ${this.config.token()}` });
|
|
@@ -206,9 +282,13 @@ function modulosConPendientes(alertas) {
|
|
|
206
282
|
function hayMarcables(alertas) {
|
|
207
283
|
return alertas.some(a => !a.seDecideEnSitio);
|
|
208
284
|
}
|
|
285
|
+
/**
|
|
286
|
+
* Con ids cuentan solo ellos: la referencia no lleva `tipoReferencia`, y una «Tarea» y una «Asignacion» pueden compartir
|
|
287
|
+
* número. La referencia queda para los avisos sin ids (`DismissFromAmacode`).
|
|
288
|
+
*/
|
|
209
289
|
function coincideConSalida(a, salida) {
|
|
210
|
-
if (salida.alertaIDs
|
|
211
|
-
return
|
|
290
|
+
if (salida.alertaIDs)
|
|
291
|
+
return salida.alertaIDs.includes(a.alertaID);
|
|
212
292
|
if (!salida.aplicacionOrigen || !salida.referenciaOrigenId)
|
|
213
293
|
return false;
|
|
214
294
|
return (a.aplicacionOrigen === salida.aplicacionOrigen &&
|
|
@@ -218,7 +298,26 @@ function coincideConSalida(a, salida) {
|
|
|
218
298
|
|
|
219
299
|
const ERROR_GENERICO = 'El servicio no respondió. Vuelve a intentarlo.';
|
|
220
300
|
const ALERTA_NO_ENCONTRADA = 'ALERTA_NO_ENCONTRADA';
|
|
301
|
+
const SOLICITUD_CUPO = 'SolicitudCupo';
|
|
302
|
+
/** La solicitud ya no existe, ya se resolvió o ya no se puede ver: lo que menciona la alerta se perdió (AC6/AC7). */
|
|
303
|
+
const SOLICITUD_PERDIDA = [
|
|
304
|
+
'SOLICITUD_CUPO_NOT_FOUND',
|
|
305
|
+
'SOLICITUD_CUPO_YA_RESUELTA',
|
|
306
|
+
'DETALLE_CONTRATO_NOT_FOUND',
|
|
307
|
+
'SUBSCRIPTION_PERMISSION_REQUIRED',
|
|
308
|
+
];
|
|
221
309
|
const MINUTO_MS = 60_000;
|
|
310
|
+
/** El error genérico solo con una falla real; un rechazo con código trae su propio mensaje. */
|
|
311
|
+
function mensajeDeError(respuesta) {
|
|
312
|
+
const fallaReal = !respuesta.code || respuesta.code === SERVICIO_NO_DISPONIBLE;
|
|
313
|
+
return fallaReal ? ERROR_GENERICO : respuesta.message || ERROR_GENERICO;
|
|
314
|
+
}
|
|
315
|
+
function solicitudPerdida(respuesta) {
|
|
316
|
+
return !respuesta.isSuccess && SOLICITUD_PERDIDA.includes(respuesta.code ?? '');
|
|
317
|
+
}
|
|
318
|
+
function solicitudAprobada(cupos) {
|
|
319
|
+
return cupos === 1 ? 'Solicitud aprobada · 1 cupo asignado' : `Solicitud aprobada · ${cupos} cupos asignados`;
|
|
320
|
+
}
|
|
222
321
|
/** El panel de alertas de la cuenta activa: lo que pinta la campana y el drawer, en vivo. */
|
|
223
322
|
class AlertasState {
|
|
224
323
|
constructor() {
|
|
@@ -226,6 +325,7 @@ class AlertasState {
|
|
|
226
325
|
this.api = inject(AlertasApiService);
|
|
227
326
|
this.hub = inject(AlertasHubService);
|
|
228
327
|
this.toast = inject(ToastService);
|
|
328
|
+
this.doc = inject(DOCUMENT);
|
|
229
329
|
this.iniciado = signal(false, /* @ts-ignore */
|
|
230
330
|
...(ngDevMode ? [{ debugName: "iniciado" }] : /* istanbul ignore next */ []));
|
|
231
331
|
this.lista = signal([], /* @ts-ignore */
|
|
@@ -240,11 +340,22 @@ class AlertasState {
|
|
|
240
340
|
...(ngDevMode ? [{ debugName: "_saliendo" }] : /* istanbul ignore next */ []));
|
|
241
341
|
this._ahora = signal(ahoraEnColombia(), /* @ts-ignore */
|
|
242
342
|
...(ngDevMode ? [{ debugName: "_ahora" }] : /* istanbul ignore next */ []));
|
|
343
|
+
this._descarte = signal(null, /* @ts-ignore */
|
|
344
|
+
...(ngDevMode ? [{ debugName: "_descarte" }] : /* istanbul ignore next */ []));
|
|
345
|
+
this._rechazo = signal(null, /* @ts-ignore */
|
|
346
|
+
...(ngDevMode ? [{ debugName: "_rechazo" }] : /* istanbul ignore next */ []));
|
|
347
|
+
this._resolviendo = signal(new Set(), /* @ts-ignore */
|
|
348
|
+
...(ngDevMode ? [{ debugName: "_resolviendo" }] : /* istanbul ignore next */ []));
|
|
243
349
|
this.cargas = new Subject();
|
|
244
350
|
/** Lo que cambió mientras viaja una carga: se reaplica sobre su respuesta, que puede ser anterior. */
|
|
245
351
|
this.enVuelo = null;
|
|
246
|
-
/**
|
|
352
|
+
/**
|
|
353
|
+
* Con el PUT que la saca del Auth pendiente («vista» o destino no disponible), una recarga puede leer la base antes
|
|
354
|
+
* del commit: no vuelven a entrar.
|
|
355
|
+
*/
|
|
247
356
|
this.marcando = new Set();
|
|
357
|
+
/** Cada apertura (y cada reset) deja sin efecto la verificación de la anterior: gana la última. */
|
|
358
|
+
this.aperturas = 0;
|
|
248
359
|
this.abierto = this._abierto.asReadonly();
|
|
249
360
|
this.estado = this._estado.asReadonly();
|
|
250
361
|
this.filtro = this._filtro.asReadonly();
|
|
@@ -252,6 +363,12 @@ class AlertasState {
|
|
|
252
363
|
this.saliendo = this._saliendo.asReadonly();
|
|
253
364
|
/** Hora de pared de Colombia (ver `ahoraEnColombia`); se refresca cada minuto con el panel abierto. */
|
|
254
365
|
this.ahora = this._ahora.asReadonly();
|
|
366
|
+
/** La alerta que espera «Descartar y continuar» (AC5). */
|
|
367
|
+
this.descarte = this._descarte.asReadonly();
|
|
368
|
+
/** La solicitud de cupo con el modal de rechazo abierto. */
|
|
369
|
+
this.rechazo = this._rechazo.asReadonly();
|
|
370
|
+
/** Las solicitudes, por `alertaID`, con Aprobar o Rechazar en vuelo. */
|
|
371
|
+
this.resolviendo = this._resolviendo.asReadonly();
|
|
255
372
|
this.vigentes = computed(() => this.lista().filter(a => !this._saliendo().has(a.alertaID)), /* @ts-ignore */
|
|
256
373
|
...(ngDevMode ? [{ debugName: "vigentes" }] : /* istanbul ignore next */ []));
|
|
257
374
|
/** El número de la campana. */
|
|
@@ -271,7 +388,7 @@ class AlertasState {
|
|
|
271
388
|
.pipe(switchMap(cuenta => (cuenta === undefined ? EMPTY : this.api.pendientes(cuenta).pipe(map(r => ({ cuenta, r }))))), takeUntilDestroyed())
|
|
272
389
|
.subscribe(({ cuenta, r }) => this.alCargar(cuenta, r));
|
|
273
390
|
this.hub.llegadas$.pipe(takeUntilDestroyed()).subscribe(alerta => this.alLlegar(alerta));
|
|
274
|
-
this.hub.salidas$.pipe(takeUntilDestroyed()).subscribe(salida => this.
|
|
391
|
+
this.hub.salidas$.pipe(takeUntilDestroyed()).subscribe(salida => this.alSalir(salida));
|
|
275
392
|
this.hub.conectado$.pipe(takeUntilDestroyed()).subscribe(() => this.recargar());
|
|
276
393
|
this.config.sesionCerrada$.pipe(takeUntilDestroyed()).subscribe(() => this.alCerrarSesion());
|
|
277
394
|
effect(() => {
|
|
@@ -344,6 +461,73 @@ class AlertasState {
|
|
|
344
461
|
this.devolver(cuenta, marcables, r);
|
|
345
462
|
});
|
|
346
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* «Ver detalle» o la tarjeta: lleva a su destino sin quitarla (AC2, AC3). Las informativas no se abren, ni la solicitud
|
|
466
|
+
* con Aprobar o Rechazar en vuelo: su verificación respondería YA_RESUELTA y saldrían dos avisos.
|
|
467
|
+
*/
|
|
468
|
+
abrir(alerta) {
|
|
469
|
+
if (alerta.clase === 'info' || this._resolviendo().has(alerta.alertaID))
|
|
470
|
+
return;
|
|
471
|
+
this.aperturas++;
|
|
472
|
+
const destino = this.destinoDe(alerta);
|
|
473
|
+
this.cerrar();
|
|
474
|
+
// Sin destino no hay a dónde ir ni cambios que perder: solo se cierra el panel.
|
|
475
|
+
if (!destino)
|
|
476
|
+
return;
|
|
477
|
+
if (this.pideDescarte(destino)) {
|
|
478
|
+
this._descarte.set(alerta);
|
|
479
|
+
return;
|
|
480
|
+
}
|
|
481
|
+
this.irA(alerta);
|
|
482
|
+
}
|
|
483
|
+
confirmarDescarte() {
|
|
484
|
+
const alerta = this._descarte();
|
|
485
|
+
if (!alerta)
|
|
486
|
+
return;
|
|
487
|
+
this.aperturas++;
|
|
488
|
+
this.config.cambiosSinGuardar?.descartar();
|
|
489
|
+
this._descarte.set(null);
|
|
490
|
+
// Descartar puede llevar a otra pantalla (el «Cancelar» de un formulario vuelve a su lista): no es que la persona se fuera.
|
|
491
|
+
this.irA(alerta, true);
|
|
492
|
+
}
|
|
493
|
+
/** Sigo donde estaba, con el panel cerrado. */
|
|
494
|
+
cancelarDescarte() {
|
|
495
|
+
this._descarte.set(null);
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* La pantalla de destino ya no muestra lo que menciona la alerta (AC6/AC7): sale y el Auth deja de tenerla.
|
|
499
|
+
* No exige que esté en la lista: la pantalla puede avisar antes de que el panel cargue.
|
|
500
|
+
*/
|
|
501
|
+
destinoNoDisponible(alertaID) {
|
|
502
|
+
const cuenta = this.config.cuentaActiva();
|
|
503
|
+
if (cuenta === undefined || this.marcando.has(alertaID))
|
|
504
|
+
return;
|
|
505
|
+
this.sacar(a => a.alertaID === alertaID);
|
|
506
|
+
// Con una falla no vuelve: el Auth la sigue teniendo y la trae la próxima carga.
|
|
507
|
+
this.mientrasSeMarca([alertaID], this.api.destinoNoDisponible(cuenta, alertaID)).subscribe();
|
|
508
|
+
}
|
|
509
|
+
/** Aprueba lo pedido, sin confirmación (inventario 4.6). */
|
|
510
|
+
aprobar(alerta) {
|
|
511
|
+
this.resolverSolicitud(alerta, { aprobar: true }, r => {
|
|
512
|
+
this.toast.success(solicitudAprobada(r.object?.cuposAprobados ?? 0));
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
pedirRechazo(alerta) {
|
|
516
|
+
this._rechazo.set(alerta);
|
|
517
|
+
}
|
|
518
|
+
cancelarRechazo() {
|
|
519
|
+
this._rechazo.set(null);
|
|
520
|
+
}
|
|
521
|
+
/** Con una falla, el modal sigue abierto y conserva la razón para reintentar. */
|
|
522
|
+
rechazar(razon) {
|
|
523
|
+
const alerta = this._rechazo();
|
|
524
|
+
if (!alerta)
|
|
525
|
+
return;
|
|
526
|
+
this.resolverSolicitud(alerta, { aprobar: false, razon: razon.trim() }, () => {
|
|
527
|
+
this.cerrarRechazo(alerta);
|
|
528
|
+
this.toast.success('Solicitud rechazada');
|
|
529
|
+
});
|
|
530
|
+
}
|
|
347
531
|
/** Fin de la transición de salida. */
|
|
348
532
|
quitar(alertaID) {
|
|
349
533
|
this.soltar([alertaID]);
|
|
@@ -357,6 +541,10 @@ class AlertasState {
|
|
|
357
541
|
this._saliendo.set(new Set());
|
|
358
542
|
this._filtro.set(null);
|
|
359
543
|
this._estado.set('cargando');
|
|
544
|
+
this._descarte.set(null);
|
|
545
|
+
this._rechazo.set(null);
|
|
546
|
+
this._resolviendo.set(new Set());
|
|
547
|
+
this.aperturas++;
|
|
360
548
|
}
|
|
361
549
|
recargar() {
|
|
362
550
|
const cuenta = this.config.cuentaActiva();
|
|
@@ -392,6 +580,18 @@ class AlertasState {
|
|
|
392
580
|
this.toast.info(`${modulo} · ${alerta.titulo}`, { message: alerta.descripcion });
|
|
393
581
|
}
|
|
394
582
|
}
|
|
583
|
+
alSalir(salida) {
|
|
584
|
+
const rechazo = this._rechazo();
|
|
585
|
+
const descarte = this._descarte();
|
|
586
|
+
// Como el Drawer de F11 (inventario 4.15): si otro la resolvió, el modal ya no tiene qué decidir.
|
|
587
|
+
if (rechazo && coincideConSalida(rechazo, salida))
|
|
588
|
+
this._rechazo.set(null);
|
|
589
|
+
// Una solicitud resuelta tampoco tiene a dónde llevar: su descarte se cierra y los cambios se quedan. Un destino que no
|
|
590
|
+
// se decide en el sitio sigue ahí aunque la alerta salga.
|
|
591
|
+
if (descarte?.seDecideEnSitio && coincideConSalida(descarte, salida))
|
|
592
|
+
this._descarte.set(null);
|
|
593
|
+
this.sacar(a => coincideConSalida(a, salida));
|
|
594
|
+
}
|
|
395
595
|
alCerrarSesion() {
|
|
396
596
|
this.iniciado.set(false);
|
|
397
597
|
this._abierto.set(false);
|
|
@@ -413,8 +613,94 @@ class AlertasState {
|
|
|
413
613
|
return;
|
|
414
614
|
this.soltar(alertas.map(a => a.alertaID));
|
|
415
615
|
this.aplicar(lista => [...lista, ...alertas.filter(a => !lista.some(b => b.alertaID === a.alertaID))]);
|
|
416
|
-
|
|
417
|
-
|
|
616
|
+
this.toast.error(mensajeDeError(respuesta));
|
|
617
|
+
}
|
|
618
|
+
/** Una solicitud se verifica antes de salir: si se perdió, se dice aquí en vez de llevar a una pantalla vacía. */
|
|
619
|
+
irA(alerta, trasDescartar = false) {
|
|
620
|
+
const destino = this.destinoDe(alerta);
|
|
621
|
+
const cuenta = this.config.cuentaActiva();
|
|
622
|
+
if (!destino)
|
|
623
|
+
return;
|
|
624
|
+
if (alerta.tipoReferencia !== SOLICITUD_CUPO || cuenta === undefined) {
|
|
625
|
+
this.navegar(destino);
|
|
626
|
+
return;
|
|
627
|
+
}
|
|
628
|
+
const apertura = this.aperturas;
|
|
629
|
+
const pantalla = trasDescartar ? null : this.doc.location.pathname;
|
|
630
|
+
this.api.solicitudCupo(cuenta, Number(alerta.referenciaOrigenId)).subscribe(r => {
|
|
631
|
+
// Hexti puede tardar hasta el timeout del Auth: si mientras tanto se abrió otra o cambió la sesión, esta ya no manda.
|
|
632
|
+
if (apertura !== this.aperturas || cuenta !== this.config.cuentaActiva())
|
|
633
|
+
return;
|
|
634
|
+
// Tampoco si la persona se fue a otra pantalla por el menú: ya no quiere ir. Se compara el path porque la pantalla puede limpiar su
|
|
635
|
+
// propia query (replaceUrl) en ese rato sin que la persona se haya ido.
|
|
636
|
+
if (pantalla !== null && this.doc.location.pathname !== pantalla)
|
|
637
|
+
return;
|
|
638
|
+
// Una falla real (Hexti o el Auth caídos) no dice que no exista: se navega igual.
|
|
639
|
+
if (solicitudPerdida(r)) {
|
|
640
|
+
this.perdida(alerta, r.message);
|
|
641
|
+
return;
|
|
642
|
+
}
|
|
643
|
+
// Mientras se verificaba pudo empezar una edición.
|
|
644
|
+
if (this.pideDescarte(destino)) {
|
|
645
|
+
this._descarte.set(alerta);
|
|
646
|
+
return;
|
|
647
|
+
}
|
|
648
|
+
this.navegar(destino);
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
/** En la misma pantalla el destino se aplica sobre ella: no se sale de nada ni hay cambios que perder. */
|
|
652
|
+
pideDescarte(destino) {
|
|
653
|
+
const mismaPantalla = destino.tipo === 'interno' && pathDeRuta(destino.ruta) === this.doc.location.pathname;
|
|
654
|
+
return !mismaPantalla && !!this.config.cambiosSinGuardar?.hay();
|
|
655
|
+
}
|
|
656
|
+
navegar(destino) {
|
|
657
|
+
if (destino.tipo === 'interno') {
|
|
658
|
+
this.config.navegar(destino.ruta);
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
this.doc.location.href = destino.url;
|
|
662
|
+
}
|
|
663
|
+
destinoDe(alerta) {
|
|
664
|
+
return resolverDestino(alerta.destino, alerta.alertaID, this.config.app, this.config.urlApps);
|
|
665
|
+
}
|
|
666
|
+
/** D5 en espera: la propuesta por defecto es que salga igual y se avise con el `message` del backend. */
|
|
667
|
+
perdida(alerta, mensaje) {
|
|
668
|
+
this.destinoNoDisponible(alerta.alertaID);
|
|
669
|
+
this.toast.error(mensaje || ERROR_GENERICO);
|
|
670
|
+
}
|
|
671
|
+
/** Una sola resolución en vuelo por solicitud. Con otro código o una falla real, la alerta se queda. */
|
|
672
|
+
resolverSolicitud(alerta, decision, alResolver) {
|
|
673
|
+
const cuenta = this.config.cuentaActiva();
|
|
674
|
+
const id = alerta.alertaID;
|
|
675
|
+
if (cuenta === undefined || this._resolviendo().has(id))
|
|
676
|
+
return;
|
|
677
|
+
this._resolviendo.update(ids => new Set([...ids, id]));
|
|
678
|
+
this.api
|
|
679
|
+
.resolverSolicitudCupo({ accountID: cuenta, solicitudCupoID: Number(alerta.referenciaOrigenId), ...decision })
|
|
680
|
+
.pipe(finalize(() => this._resolviendo.update(ids => new Set([...ids].filter(i => i !== id)))))
|
|
681
|
+
.subscribe(r => {
|
|
682
|
+
// Si ya no está en `resolviendo`, un reset (cambio de cuenta o cierre de sesión) la soltó: es de antes.
|
|
683
|
+
if (!this._resolviendo().has(id) || cuenta !== this.config.cuentaActiva())
|
|
684
|
+
return;
|
|
685
|
+
if (r.isSuccess) {
|
|
686
|
+
// El Auth cierra el aviso de todos, también el de quien resuelve, antes de responder: su DismissAlert suele
|
|
687
|
+
// llegar primero. Sacarla otra vez no la duplica, y el aviso de éxito va igual.
|
|
688
|
+
this.sacar(a => a.alertaID === id);
|
|
689
|
+
alResolver(r);
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
if (solicitudPerdida(r)) {
|
|
693
|
+
this.cerrarRechazo(alerta);
|
|
694
|
+
this.perdida(alerta, r.message);
|
|
695
|
+
return;
|
|
696
|
+
}
|
|
697
|
+
this.toast.error(mensajeDeError(r));
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
/** Solo si el modal sigue siendo el de esta solicitud: pudo cancelarse y abrirse otro mientras viajaba. */
|
|
701
|
+
cerrarRechazo(alerta) {
|
|
702
|
+
if (this._rechazo()?.alertaID === alerta.alertaID)
|
|
703
|
+
this._rechazo.set(null);
|
|
418
704
|
}
|
|
419
705
|
mientrasSeMarca(ids, peticion) {
|
|
420
706
|
ids.forEach(id => this.marcando.add(id));
|
|
@@ -449,6 +735,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
449
735
|
|
|
450
736
|
/** Valor de «Todos los módulos» en el filtro. */
|
|
451
737
|
const TODOS = 'todas';
|
|
738
|
+
/** Las acciones de una solicitud de cupo: se deciden en el sitio, sin salir de la pantalla. */
|
|
739
|
+
const ACCIONES_SOLICITUD = [
|
|
740
|
+
{ key: 'aprobar', label: 'Aprobar', primary: true },
|
|
741
|
+
{ key: 'rechazar', label: 'Rechazar' },
|
|
742
|
+
];
|
|
452
743
|
/** El panel de alertas (inventario F6·HU-1 §2–§6): solo pinta lo que recibe y avisa lo que pide el usuario. */
|
|
453
744
|
class AlertasPanelComponent {
|
|
454
745
|
constructor() {
|
|
@@ -473,6 +764,15 @@ class AlertasPanelComponent {
|
|
|
473
764
|
/** Hora de pared de Colombia (`ahoraEnColombia`): de ella salen «hace N» y la hora. */
|
|
474
765
|
this.ahora = input.required(/* @ts-ignore */
|
|
475
766
|
...(ngDevMode ? [{ debugName: "ahora" }] : /* istanbul ignore next */ []));
|
|
767
|
+
/** La alerta que espera «Descartar y continuar». */
|
|
768
|
+
this.descarte = input(null, /* @ts-ignore */
|
|
769
|
+
...(ngDevMode ? [{ debugName: "descarte" }] : /* istanbul ignore next */ []));
|
|
770
|
+
/** La solicitud de cupo con el modal de rechazo abierto. */
|
|
771
|
+
this.rechazo = input(null, /* @ts-ignore */
|
|
772
|
+
...(ngDevMode ? [{ debugName: "rechazo" }] : /* istanbul ignore next */ []));
|
|
773
|
+
/** Las solicitudes con Aprobar o Rechazar en vuelo. */
|
|
774
|
+
this.resolviendo = input(new Set(), /* @ts-ignore */
|
|
775
|
+
...(ngDevMode ? [{ debugName: "resolviendo" }] : /* istanbul ignore next */ []));
|
|
476
776
|
this.cerrar = output();
|
|
477
777
|
this.reintentar = output();
|
|
478
778
|
this.filtrar = output();
|
|
@@ -483,6 +783,13 @@ class AlertasPanelComponent {
|
|
|
483
783
|
this.quitada = output();
|
|
484
784
|
/** «Ver detalle» o la tarjeta de una alerta de acción (HU-2). */
|
|
485
785
|
this.abrirAlerta = output();
|
|
786
|
+
/** «Aprobar» o «Rechazar» de una solicitud de cupo. */
|
|
787
|
+
this.accionAlerta = output();
|
|
788
|
+
this.confirmarDescarte = output();
|
|
789
|
+
this.cancelarDescarte = output();
|
|
790
|
+
/** La razón que escribió quien rechaza. */
|
|
791
|
+
this.confirmarRechazo = output();
|
|
792
|
+
this.cancelarRechazo = output();
|
|
486
793
|
/** Con un filtro, la lista puede quedar vacía aunque haya pendientes de otros módulos. */
|
|
487
794
|
this.hayPendientes = computed(() => this.grupos().length > 0 || this.modulos().length > 0, /* @ts-ignore */
|
|
488
795
|
...(ngDevMode ? [{ debugName: "hayPendientes" }] : /* istanbul ignore next */ []));
|
|
@@ -497,6 +804,16 @@ class AlertasPanelComponent {
|
|
|
497
804
|
...(ngDevMode ? [{ debugName: "cuerpo" }] : /* istanbul ignore next */ []));
|
|
498
805
|
this.conAcciones = computed(() => this.estado() === 'listo' && this.hayPendientes(), /* @ts-ignore */
|
|
499
806
|
...(ngDevMode ? [{ debugName: "conAcciones" }] : /* istanbul ignore next */ []));
|
|
807
|
+
/** Se limpia cada vez que cambia la solicitud del modal de rechazo. */
|
|
808
|
+
this.razon = signal('', /* @ts-ignore */
|
|
809
|
+
...(ngDevMode ? [{ debugName: "razon" }] : /* istanbul ignore next */ []));
|
|
810
|
+
this.sinRazon = computed(() => this.razon().trim() === '', /* @ts-ignore */
|
|
811
|
+
...(ngDevMode ? [{ debugName: "sinRazon" }] : /* istanbul ignore next */ []));
|
|
812
|
+
this.rechazando = computed(() => {
|
|
813
|
+
const alerta = this.rechazo();
|
|
814
|
+
return alerta !== null && this.resolviendo().has(alerta.alertaID);
|
|
815
|
+
}, /* @ts-ignore */
|
|
816
|
+
...(ngDevMode ? [{ debugName: "rechazando" }] : /* istanbul ignore next */ []));
|
|
500
817
|
this.valorFiltro = computed(() => this.filtro() ?? TODOS, /* @ts-ignore */
|
|
501
818
|
...(ngDevMode ? [{ debugName: "valorFiltro" }] : /* istanbul ignore next */ []));
|
|
502
819
|
this.tooltipFiltro = computed(() => {
|
|
@@ -518,20 +835,37 @@ class AlertasPanelComponent {
|
|
|
518
835
|
modulo: MODULOS_ALERTA[alerta.modulo],
|
|
519
836
|
tiempo: tiempoDeAlerta(alerta.fechaRegistro, ahora),
|
|
520
837
|
deAccion: alerta.clase !== 'info',
|
|
838
|
+
acciones: this.accionesDe(alerta),
|
|
521
839
|
})),
|
|
522
840
|
}));
|
|
523
841
|
}, /* @ts-ignore */
|
|
524
842
|
...(ngDevMode ? [{ debugName: "secciones" }] : /* istanbul ignore next */ []));
|
|
843
|
+
effect(() => {
|
|
844
|
+
this.rechazo();
|
|
845
|
+
this.razon.set('');
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
/** Cada acción se deshabilita mientras su solicitud se resuelve. */
|
|
849
|
+
accionesDe(alerta) {
|
|
850
|
+
if (!alerta.seDecideEnSitio || alerta.tipoReferencia !== 'SolicitudCupo') {
|
|
851
|
+
return [];
|
|
852
|
+
}
|
|
853
|
+
const enVuelo = this.resolviendo().has(alerta.alertaID);
|
|
854
|
+
return ACCIONES_SOLICITUD.map(accion => ({ ...accion, disabled: enVuelo }));
|
|
855
|
+
}
|
|
856
|
+
alAccionar(alerta, key) {
|
|
857
|
+
this.accionAlerta.emit({ alerta, accion: key === 'aprobar' ? 'aprobar' : 'rechazar' });
|
|
525
858
|
}
|
|
526
859
|
alFiltrar(valor) {
|
|
527
860
|
this.filtrar.emit(valor === TODOS || valor === undefined ? null : valor);
|
|
528
861
|
}
|
|
529
862
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AlertasPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
530
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AlertasPanelComponent, isStandalone: true, selector: "ius-alertas-panel", inputs: { offsetTop: { classPropertyName: "offsetTop", publicName: "offsetTop", isSignal: true, isRequired: false, transformFunction: null }, abierto: { classPropertyName: "abierto", publicName: "abierto", isSignal: true, isRequired: false, transformFunction: null }, estado: { classPropertyName: "estado", publicName: "estado", isSignal: true, isRequired: false, transformFunction: null }, grupos: { classPropertyName: "grupos", publicName: "grupos", isSignal: true, isRequired: false, transformFunction: null }, modulos: { classPropertyName: "modulos", publicName: "modulos", isSignal: true, isRequired: false, transformFunction: null }, filtro: { classPropertyName: "filtro", publicName: "filtro", isSignal: true, isRequired: false, transformFunction: null }, hayMarcables: { classPropertyName: "hayMarcables", publicName: "hayMarcables", isSignal: true, isRequired: false, transformFunction: null }, saliendo: { classPropertyName: "saliendo", publicName: "saliendo", isSignal: true, isRequired: false, transformFunction: null }, ahora: { classPropertyName: "ahora", publicName: "ahora", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { cerrar: "cerrar", reintentar: "reintentar", filtrar: "filtrar", marcarVista: "marcarVista", marcarTodas: "marcarTodas", quitada: "quitada", abrirAlerta: "abrirAlerta" }, ngImport: i0, template: "<ius-drawer\n side=\"right\"\n size=\"sm\"\n title=\"Alertas\"\n showClose\n [showScrim]=\"false\"\n [closeOnScrim]=\"false\"\n [offsetTop]=\"offsetTop()\"\n [open]=\"abierto()\"\n (closed)=\"cerrar.emit()\"\n>\n @if (conAcciones()) {\n <div iusDrawerHeaderActions ius-flex gap=\"xxs\" align=\"center\">\n @if (modulos().length > 1) {\n <ius-dropdown\n selectable\n placement=\"bottom-end\"\n label=\"Filtrar por m\u00F3dulo\"\n ariaLabel=\"Filtrar por m\u00F3dulo\"\n [items]=\"opciones()\"\n [value]=\"valorFiltro()\"\n (valueChange)=\"alFiltrar($event.value)\"\n >\n <ius-icon-button\n iusDropdownTrigger\n icon=\"filter_list\"\n shape=\"circle\"\n size=\"small\"\n ariaLabel=\"Filtrar\"\n [variant]=\"filtro() ? 'secondary' : 'tertiary'\"\n [tooltip]=\"tooltipFiltro()\"\n />\n </ius-dropdown>\n }\n <ius-icon-button\n icon=\"done_all\"\n variant=\"tertiary\"\n shape=\"circle\"\n size=\"small\"\n tooltip=\"Marcar todas como vistas\"\n ariaLabel=\"Marcar todas como vistas\"\n [disabled]=\"!hayMarcables()\"\n (clicked)=\"marcarTodas.emit()\"\n />\n </div>\n }\n\n @switch (cuerpo()) {\n @case ('cargando') {\n <div ius-flex direction=\"column\" gap=\"sm\">\n @for (pieza of [0, 1, 2, 3]; track pieza) {\n <ius-skeleton variant=\"rect\" height=\"56px\" />\n }\n </div>\n }\n @case ('error') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-status-state\n status=\"error\"\n size=\"compact\"\n title=\"No se cargaron las alertas\"\n [illustrationTemplate]=\"ilustracionError\"\n [primaryAction]=\"{ label: 'Reintentar', icon: 'refresh' }\"\n (primaryClick)=\"reintentar.emit()\"\n />\n </div>\n }\n @case ('al-dia') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-empty-state\n size=\"compact\"\n variant=\"no-data\"\n illustration=\"empty-inbox\"\n title=\"Est\u00E1s al d\u00EDa\"\n description=\"Cuando pase algo en tus procesos, tus tareas o tu cuenta, te avisamos aqu\u00ED.\"\n />\n </div>\n }\n @case ('sin-resultados') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-empty-state\n size=\"compact\"\n variant=\"no-results\"\n title=\"No hay alertas de este m\u00F3dulo\"\n primaryAction=\"Ver todas\"\n [illustration]=\"true\"\n (primaryClick)=\"filtrar.emit(null)\"\n />\n </div>\n }\n @default {\n <div ius-flex direction=\"column\" gap=\"md\">\n @for (seccion of secciones(); track seccion.dia) {\n <div ius-flex direction=\"column\" gap=\"xs\">\n <ius-section-header variant=\"group\" [count]=\"seccion.alertas.length\">{{ seccion.etiqueta }}</ius-section-header>\n <div>\n @for (fila of seccion.filas; track fila.alerta.alertaID) {\n <ius-notification-item\n [kind]=\"fila.deAccion ? 'action' : 'info'\"\n [icon]=\"fila.modulo.icono\"\n [module]=\"fila.modulo.etiqueta\"\n [title]=\"fila.alerta.titulo\"\n [message]=\"fila.alerta.descripcion\"\n [time]=\"fila.tiempo\"\n [dismissible]=\"!fila.alerta.seDecideEnSitio\"\n [leaving]=\"saliendo().has(fila.alerta.alertaID)\"\n (opened)=\"abrirAlerta.emit(fila.alerta)\"\n (dismissed)=\"marcarVista.emit(fila.alerta.alertaID)\"\n (exited)=\"quitada.emit(fila.alerta.alertaID)\"\n />\n }\n </div>\n </div>\n }\n </div>\n }\n }\n</ius-drawer>\n\n<ng-template #ilustracionError>\n <ius-illustration name=\"screenError\" size=\"small\" />\n</ng-template>\n", styles: [".ius-alertas-panel__centro{min-height:100%}\n"], dependencies: [{ kind: "component", type: DrawerComponent, selector: "ius-drawer", inputs: ["open", "defaultOpen", "side", "size", "title", "centerTitle", "showBack", "showClose", "closeOnScrim", "closeOnEsc", "showScrim", "offsetTop", "ariaLabel"], outputs: ["closed", "openChange", "back"] }, { kind: "component", type: DropdownComponent, selector: "ius-dropdown", inputs: ["items", "selectable", "value", "label", "triggerLabel", "triggerIcon", "tone", "variant", "placement", "open", "defaultOpen", "ariaLabel"], outputs: ["valueChange", "openChange"] }, { kind: "component", type: EmptyStateComponent, selector: "ius-empty-state", inputs: ["variant", "size", "tone", "icon", "illustration", "illustrationTemplate", "title", "description", "primaryAction", "secondaryAction", "actionsTemplate", "role"], outputs: ["primaryClick", "secondaryClick"] }, { kind: "component", type: FlexComponent, selector: "ius-flex, [ius-flex]", inputs: ["direction", "gap", "align", "justify", "wrap", "inline"] }, { kind: "component", type: IconButtonComponent, selector: "ius-icon-button", inputs: ["icon", "variant", "size", "shape", "disabled", "type", "ariaLabel", "tooltip", "ariaPressed", "ariaExpanded", "ariaControls", "ariaHaspopup", "tooltipPlacement"], outputs: ["clicked"] }, { kind: "component", type: IllustrationComponent, selector: "ius-illustration", inputs: ["name", "size", "title"] }, { kind: "directive", type: IusDrawerHeaderActionsDirective, selector: "[iusDrawerHeaderActions]" }, { kind: "directive", type: IusDropdownTriggerDirective, selector: "[iusDropdownTrigger]" }, { kind: "component", type: NotificationItemComponent, selector: "ius-notification-item", inputs: ["kind", "icon", "module", "title", "message", "time", "unread", "dismissible", "openLabel", "dismissLabel", "actions", "leaving"], outputs: ["opened", "dismissed", "actionClick", "exited"] }, { kind: "component", type: SectionHeaderComponent, selector: "ius-section-header", inputs: ["icon", "count", "variant", "accent", "collapsible", "collapsed", "sticky", "ariaLabel"], outputs: ["toggle"] }, { kind: "component", type: SkeletonComponent, selector: "ius-skeleton", inputs: ["variant", "width", "height", "radius", "lines", "lastLineWidth", "bars", "gap", "animation", "loading", "ariaLabel"] }, { kind: "component", type: StatusStateComponent, selector: "ius-status-state", inputs: ["status", "code", "showCode", "title", "description", "illustrationTemplate", "icon", "tone", "size", "primaryAction", "secondaryAction", "role"], outputs: ["primaryClick", "secondaryClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
863
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AlertasPanelComponent, isStandalone: true, selector: "ius-alertas-panel", inputs: { offsetTop: { classPropertyName: "offsetTop", publicName: "offsetTop", isSignal: true, isRequired: false, transformFunction: null }, abierto: { classPropertyName: "abierto", publicName: "abierto", isSignal: true, isRequired: false, transformFunction: null }, estado: { classPropertyName: "estado", publicName: "estado", isSignal: true, isRequired: false, transformFunction: null }, grupos: { classPropertyName: "grupos", publicName: "grupos", isSignal: true, isRequired: false, transformFunction: null }, modulos: { classPropertyName: "modulos", publicName: "modulos", isSignal: true, isRequired: false, transformFunction: null }, filtro: { classPropertyName: "filtro", publicName: "filtro", isSignal: true, isRequired: false, transformFunction: null }, hayMarcables: { classPropertyName: "hayMarcables", publicName: "hayMarcables", isSignal: true, isRequired: false, transformFunction: null }, saliendo: { classPropertyName: "saliendo", publicName: "saliendo", isSignal: true, isRequired: false, transformFunction: null }, ahora: { classPropertyName: "ahora", publicName: "ahora", isSignal: true, isRequired: true, transformFunction: null }, descarte: { classPropertyName: "descarte", publicName: "descarte", isSignal: true, isRequired: false, transformFunction: null }, rechazo: { classPropertyName: "rechazo", publicName: "rechazo", isSignal: true, isRequired: false, transformFunction: null }, resolviendo: { classPropertyName: "resolviendo", publicName: "resolviendo", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cerrar: "cerrar", reintentar: "reintentar", filtrar: "filtrar", marcarVista: "marcarVista", marcarTodas: "marcarTodas", quitada: "quitada", abrirAlerta: "abrirAlerta", accionAlerta: "accionAlerta", confirmarDescarte: "confirmarDescarte", cancelarDescarte: "cancelarDescarte", confirmarRechazo: "confirmarRechazo", cancelarRechazo: "cancelarRechazo" }, ngImport: i0, template: "<ius-drawer\n side=\"right\"\n size=\"sm\"\n title=\"Alertas\"\n showClose\n [showScrim]=\"false\"\n [closeOnScrim]=\"false\"\n [offsetTop]=\"offsetTop()\"\n [open]=\"abierto()\"\n (closed)=\"cerrar.emit()\"\n>\n @if (conAcciones()) {\n <div iusDrawerHeaderActions ius-flex gap=\"xxs\" align=\"center\">\n @if (modulos().length > 1) {\n <ius-dropdown\n selectable\n placement=\"bottom-end\"\n label=\"Filtrar por m\u00F3dulo\"\n ariaLabel=\"Filtrar por m\u00F3dulo\"\n [items]=\"opciones()\"\n [value]=\"valorFiltro()\"\n (valueChange)=\"alFiltrar($event.value)\"\n >\n <ius-icon-button\n iusDropdownTrigger\n icon=\"filter_list\"\n shape=\"circle\"\n size=\"small\"\n ariaLabel=\"Filtrar\"\n [variant]=\"filtro() ? 'secondary' : 'tertiary'\"\n [tooltip]=\"tooltipFiltro()\"\n />\n </ius-dropdown>\n }\n <ius-icon-button\n icon=\"done_all\"\n variant=\"tertiary\"\n shape=\"circle\"\n size=\"small\"\n tooltip=\"Marcar todas como vistas\"\n ariaLabel=\"Marcar todas como vistas\"\n [disabled]=\"!hayMarcables()\"\n (clicked)=\"marcarTodas.emit()\"\n />\n </div>\n }\n\n @switch (cuerpo()) {\n @case ('cargando') {\n <div ius-flex direction=\"column\" gap=\"sm\">\n @for (pieza of [0, 1, 2, 3]; track pieza) {\n <ius-skeleton variant=\"rect\" height=\"56px\" />\n }\n </div>\n }\n @case ('error') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-status-state\n status=\"error\"\n size=\"compact\"\n title=\"No se cargaron las alertas\"\n [illustrationTemplate]=\"ilustracionError\"\n [primaryAction]=\"{ label: 'Reintentar', icon: 'refresh' }\"\n (primaryClick)=\"reintentar.emit()\"\n />\n </div>\n }\n @case ('al-dia') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-empty-state\n size=\"compact\"\n variant=\"no-data\"\n illustration=\"empty-inbox\"\n title=\"Est\u00E1s al d\u00EDa\"\n description=\"Cuando pase algo en tus procesos, tus tareas o tu cuenta, te avisamos aqu\u00ED.\"\n />\n </div>\n }\n @case ('sin-resultados') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-empty-state\n size=\"compact\"\n variant=\"no-results\"\n title=\"No hay alertas de este m\u00F3dulo\"\n primaryAction=\"Ver todas\"\n [illustration]=\"true\"\n (primaryClick)=\"filtrar.emit(null)\"\n />\n </div>\n }\n @default {\n <div ius-flex direction=\"column\" gap=\"md\">\n @for (seccion of secciones(); track seccion.dia) {\n <div ius-flex direction=\"column\" gap=\"xs\">\n <ius-section-header variant=\"group\" [count]=\"seccion.alertas.length\">{{ seccion.etiqueta }}</ius-section-header>\n <div>\n @for (fila of seccion.filas; track fila.alerta.alertaID) {\n <ius-notification-item\n [kind]=\"fila.deAccion ? 'action' : 'info'\"\n [icon]=\"fila.modulo.icono\"\n [module]=\"fila.modulo.etiqueta\"\n [title]=\"fila.alerta.titulo\"\n [message]=\"fila.alerta.descripcion\"\n [time]=\"fila.tiempo\"\n [dismissible]=\"!fila.alerta.seDecideEnSitio\"\n [leaving]=\"saliendo().has(fila.alerta.alertaID)\"\n [actions]=\"fila.acciones\"\n (opened)=\"abrirAlerta.emit(fila.alerta)\"\n (actionClick)=\"alAccionar(fila.alerta, $event)\"\n (dismissed)=\"marcarVista.emit(fila.alerta.alertaID)\"\n (exited)=\"quitada.emit(fila.alerta.alertaID)\"\n />\n }\n </div>\n </div>\n }\n </div>\n }\n }\n</ius-drawer>\n\n@if (rechazo()) {\n <ius-modal\n open\n size=\"small\"\n title=\"\u00BFRechazar la solicitud?\"\n (closed)=\"cancelarRechazo.emit()\"\n >\n <ius-text-area\n label=\"Raz\u00F3n del rechazo\"\n placeholder=\"Expl\u00EDcale al solicitante por qu\u00E9 no apruebas la solicitud\"\n required\n rows=\"3\"\n (valueChange)=\"razon.set($event)\"\n />\n <div iusModalFooter ius-flex justify=\"end\" gap=\"xs\">\n <ius-button variant=\"tertiary\" label=\"Cancelar\" (clicked)=\"cancelarRechazo.emit()\" />\n <ius-button\n variant=\"danger\"\n prefixIcon=\"close\"\n label=\"Rechazar solicitud\"\n [disabled]=\"sinRazon() || rechazando()\"\n (clicked)=\"confirmarRechazo.emit(razon())\"\n />\n </div>\n </ius-modal>\n}\n\n@if (descarte()) {\n <ius-modal\n open\n size=\"small\"\n dividers\n icon=\"help\"\n iconTone=\"warning\"\n destructive\n title=\"\u00BFDescartar los cambios?\"\n description=\"Tienes cambios sin guardar en esta pantalla.\"\n secondaryLabel=\"Cancelar\"\n primaryLabel=\"Descartar y continuar\"\n (closed)=\"cancelarDescarte.emit()\"\n (secondary)=\"cancelarDescarte.emit()\"\n (primary)=\"confirmarDescarte.emit()\"\n />\n}\n\n<ng-template #ilustracionError>\n <ius-illustration name=\"screenError\" size=\"small\" />\n</ng-template>\n", styles: [".ius-alertas-panel__centro{min-height:100%}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "ius-button", inputs: ["variant", "label", "prefixIcon", "sufixIcon", "dynamic", "loading", "status", "disabled", "pressed", "fullWidth", "type", "ariaLabel", "ariaCurrent", "action", "size"], outputs: ["clicked"] }, { kind: "component", type: DrawerComponent, selector: "ius-drawer", inputs: ["open", "defaultOpen", "side", "size", "title", "centerTitle", "showBack", "showClose", "closeOnScrim", "closeOnEsc", "showScrim", "offsetTop", "ariaLabel"], outputs: ["closed", "openChange", "back"] }, { kind: "component", type: DropdownComponent, selector: "ius-dropdown", inputs: ["items", "selectable", "value", "label", "triggerLabel", "triggerIcon", "tone", "variant", "placement", "open", "defaultOpen", "ariaLabel"], outputs: ["valueChange", "openChange"] }, { kind: "component", type: EmptyStateComponent, selector: "ius-empty-state", inputs: ["variant", "size", "tone", "icon", "illustration", "illustrationTemplate", "title", "description", "primaryAction", "secondaryAction", "actionsTemplate", "role"], outputs: ["primaryClick", "secondaryClick"] }, { kind: "component", type: FlexComponent, selector: "ius-flex, [ius-flex]", inputs: ["direction", "gap", "align", "justify", "wrap", "inline"] }, { kind: "component", type: IconButtonComponent, selector: "ius-icon-button", inputs: ["icon", "variant", "size", "shape", "disabled", "type", "ariaLabel", "tooltip", "ariaPressed", "ariaExpanded", "ariaControls", "ariaHaspopup", "tooltipPlacement"], outputs: ["clicked"] }, { kind: "component", type: IllustrationComponent, selector: "ius-illustration", inputs: ["name", "size", "title"] }, { kind: "directive", type: IusDrawerHeaderActionsDirective, selector: "[iusDrawerHeaderActions]" }, { kind: "directive", type: IusDropdownTriggerDirective, selector: "[iusDropdownTrigger]" }, { kind: "directive", type: IusModalFooterDirective, selector: "[iusModalFooter]" }, { kind: "component", type: ModalComponent, selector: "ius-modal", inputs: ["open", "size", "title", "description", "icon", "iconTone", "showClose", "primaryLabel", "primaryLoading", "primaryDisabled", "destructive", "secondaryLabel", "dividers", "closeOnScrim", "closeOnEsc", "zIndex", "ariaLabel"], outputs: ["closed", "primary", "secondary"] }, { kind: "component", type: NotificationItemComponent, selector: "ius-notification-item", inputs: ["kind", "icon", "module", "title", "message", "time", "unread", "dismissible", "openLabel", "dismissLabel", "actions", "leaving"], outputs: ["opened", "dismissed", "actionClick", "exited"] }, { kind: "component", type: SectionHeaderComponent, selector: "ius-section-header", inputs: ["icon", "count", "variant", "accent", "collapsible", "collapsed", "sticky", "ariaLabel"], outputs: ["toggle"] }, { kind: "component", type: SkeletonComponent, selector: "ius-skeleton", inputs: ["variant", "width", "height", "radius", "lines", "lastLineWidth", "bars", "gap", "animation", "loading", "ariaLabel"] }, { kind: "component", type: StatusStateComponent, selector: "ius-status-state", inputs: ["status", "code", "showCode", "title", "description", "illustrationTemplate", "icon", "tone", "size", "primaryAction", "secondaryAction", "role"], outputs: ["primaryClick", "secondaryClick"] }, { kind: "component", type: TextAreaComponent, selector: "ius-text-area", inputs: ["label", "placeholder", "required", "helpText", "errorText", "showHelpText", "showIconHelp", "iconHelpTitle", "iconHelpContent", "name", "rows", "maxRows", "autoGrow", "resizable", "maxLength", "showCount", "error", "disabled", "size", "state"], outputs: ["valueChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
531
864
|
}
|
|
532
865
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AlertasPanelComponent, decorators: [{
|
|
533
866
|
type: Component,
|
|
534
867
|
args: [{ selector: 'ius-alertas-panel', standalone: true, imports: [
|
|
868
|
+
ButtonComponent,
|
|
535
869
|
DrawerComponent,
|
|
536
870
|
DropdownComponent,
|
|
537
871
|
EmptyStateComponent,
|
|
@@ -540,12 +874,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
540
874
|
IllustrationComponent,
|
|
541
875
|
IusDrawerHeaderActionsDirective,
|
|
542
876
|
IusDropdownTriggerDirective,
|
|
877
|
+
IusModalFooterDirective,
|
|
878
|
+
ModalComponent,
|
|
543
879
|
NotificationItemComponent,
|
|
544
880
|
SectionHeaderComponent,
|
|
545
881
|
SkeletonComponent,
|
|
546
882
|
StatusStateComponent,
|
|
547
|
-
|
|
548
|
-
|
|
883
|
+
TextAreaComponent,
|
|
884
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ius-drawer\n side=\"right\"\n size=\"sm\"\n title=\"Alertas\"\n showClose\n [showScrim]=\"false\"\n [closeOnScrim]=\"false\"\n [offsetTop]=\"offsetTop()\"\n [open]=\"abierto()\"\n (closed)=\"cerrar.emit()\"\n>\n @if (conAcciones()) {\n <div iusDrawerHeaderActions ius-flex gap=\"xxs\" align=\"center\">\n @if (modulos().length > 1) {\n <ius-dropdown\n selectable\n placement=\"bottom-end\"\n label=\"Filtrar por m\u00F3dulo\"\n ariaLabel=\"Filtrar por m\u00F3dulo\"\n [items]=\"opciones()\"\n [value]=\"valorFiltro()\"\n (valueChange)=\"alFiltrar($event.value)\"\n >\n <ius-icon-button\n iusDropdownTrigger\n icon=\"filter_list\"\n shape=\"circle\"\n size=\"small\"\n ariaLabel=\"Filtrar\"\n [variant]=\"filtro() ? 'secondary' : 'tertiary'\"\n [tooltip]=\"tooltipFiltro()\"\n />\n </ius-dropdown>\n }\n <ius-icon-button\n icon=\"done_all\"\n variant=\"tertiary\"\n shape=\"circle\"\n size=\"small\"\n tooltip=\"Marcar todas como vistas\"\n ariaLabel=\"Marcar todas como vistas\"\n [disabled]=\"!hayMarcables()\"\n (clicked)=\"marcarTodas.emit()\"\n />\n </div>\n }\n\n @switch (cuerpo()) {\n @case ('cargando') {\n <div ius-flex direction=\"column\" gap=\"sm\">\n @for (pieza of [0, 1, 2, 3]; track pieza) {\n <ius-skeleton variant=\"rect\" height=\"56px\" />\n }\n </div>\n }\n @case ('error') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-status-state\n status=\"error\"\n size=\"compact\"\n title=\"No se cargaron las alertas\"\n [illustrationTemplate]=\"ilustracionError\"\n [primaryAction]=\"{ label: 'Reintentar', icon: 'refresh' }\"\n (primaryClick)=\"reintentar.emit()\"\n />\n </div>\n }\n @case ('al-dia') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-empty-state\n size=\"compact\"\n variant=\"no-data\"\n illustration=\"empty-inbox\"\n title=\"Est\u00E1s al d\u00EDa\"\n description=\"Cuando pase algo en tus procesos, tus tareas o tu cuenta, te avisamos aqu\u00ED.\"\n />\n </div>\n }\n @case ('sin-resultados') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-empty-state\n size=\"compact\"\n variant=\"no-results\"\n title=\"No hay alertas de este m\u00F3dulo\"\n primaryAction=\"Ver todas\"\n [illustration]=\"true\"\n (primaryClick)=\"filtrar.emit(null)\"\n />\n </div>\n }\n @default {\n <div ius-flex direction=\"column\" gap=\"md\">\n @for (seccion of secciones(); track seccion.dia) {\n <div ius-flex direction=\"column\" gap=\"xs\">\n <ius-section-header variant=\"group\" [count]=\"seccion.alertas.length\">{{ seccion.etiqueta }}</ius-section-header>\n <div>\n @for (fila of seccion.filas; track fila.alerta.alertaID) {\n <ius-notification-item\n [kind]=\"fila.deAccion ? 'action' : 'info'\"\n [icon]=\"fila.modulo.icono\"\n [module]=\"fila.modulo.etiqueta\"\n [title]=\"fila.alerta.titulo\"\n [message]=\"fila.alerta.descripcion\"\n [time]=\"fila.tiempo\"\n [dismissible]=\"!fila.alerta.seDecideEnSitio\"\n [leaving]=\"saliendo().has(fila.alerta.alertaID)\"\n [actions]=\"fila.acciones\"\n (opened)=\"abrirAlerta.emit(fila.alerta)\"\n (actionClick)=\"alAccionar(fila.alerta, $event)\"\n (dismissed)=\"marcarVista.emit(fila.alerta.alertaID)\"\n (exited)=\"quitada.emit(fila.alerta.alertaID)\"\n />\n }\n </div>\n </div>\n }\n </div>\n }\n }\n</ius-drawer>\n\n@if (rechazo()) {\n <ius-modal\n open\n size=\"small\"\n title=\"\u00BFRechazar la solicitud?\"\n (closed)=\"cancelarRechazo.emit()\"\n >\n <ius-text-area\n label=\"Raz\u00F3n del rechazo\"\n placeholder=\"Expl\u00EDcale al solicitante por qu\u00E9 no apruebas la solicitud\"\n required\n rows=\"3\"\n (valueChange)=\"razon.set($event)\"\n />\n <div iusModalFooter ius-flex justify=\"end\" gap=\"xs\">\n <ius-button variant=\"tertiary\" label=\"Cancelar\" (clicked)=\"cancelarRechazo.emit()\" />\n <ius-button\n variant=\"danger\"\n prefixIcon=\"close\"\n label=\"Rechazar solicitud\"\n [disabled]=\"sinRazon() || rechazando()\"\n (clicked)=\"confirmarRechazo.emit(razon())\"\n />\n </div>\n </ius-modal>\n}\n\n@if (descarte()) {\n <ius-modal\n open\n size=\"small\"\n dividers\n icon=\"help\"\n iconTone=\"warning\"\n destructive\n title=\"\u00BFDescartar los cambios?\"\n description=\"Tienes cambios sin guardar en esta pantalla.\"\n secondaryLabel=\"Cancelar\"\n primaryLabel=\"Descartar y continuar\"\n (closed)=\"cancelarDescarte.emit()\"\n (secondary)=\"cancelarDescarte.emit()\"\n (primary)=\"confirmarDescarte.emit()\"\n />\n}\n\n<ng-template #ilustracionError>\n <ius-illustration name=\"screenError\" size=\"small\" />\n</ng-template>\n", styles: [".ius-alertas-panel__centro{min-height:100%}\n"] }]
|
|
885
|
+
}], ctorParameters: () => [], propDecorators: { offsetTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsetTop", required: false }] }], abierto: [{ type: i0.Input, args: [{ isSignal: true, alias: "abierto", required: false }] }], estado: [{ type: i0.Input, args: [{ isSignal: true, alias: "estado", required: false }] }], grupos: [{ type: i0.Input, args: [{ isSignal: true, alias: "grupos", required: false }] }], modulos: [{ type: i0.Input, args: [{ isSignal: true, alias: "modulos", required: false }] }], filtro: [{ type: i0.Input, args: [{ isSignal: true, alias: "filtro", required: false }] }], hayMarcables: [{ type: i0.Input, args: [{ isSignal: true, alias: "hayMarcables", required: false }] }], saliendo: [{ type: i0.Input, args: [{ isSignal: true, alias: "saliendo", required: false }] }], ahora: [{ type: i0.Input, args: [{ isSignal: true, alias: "ahora", required: true }] }], descarte: [{ type: i0.Input, args: [{ isSignal: true, alias: "descarte", required: false }] }], rechazo: [{ type: i0.Input, args: [{ isSignal: true, alias: "rechazo", required: false }] }], resolviendo: [{ type: i0.Input, args: [{ isSignal: true, alias: "resolviendo", required: false }] }], cerrar: [{ type: i0.Output, args: ["cerrar"] }], reintentar: [{ type: i0.Output, args: ["reintentar"] }], filtrar: [{ type: i0.Output, args: ["filtrar"] }], marcarVista: [{ type: i0.Output, args: ["marcarVista"] }], marcarTodas: [{ type: i0.Output, args: ["marcarTodas"] }], quitada: [{ type: i0.Output, args: ["quitada"] }], abrirAlerta: [{ type: i0.Output, args: ["abrirAlerta"] }], accionAlerta: [{ type: i0.Output, args: ["accionAlerta"] }], confirmarDescarte: [{ type: i0.Output, args: ["confirmarDescarte"] }], cancelarDescarte: [{ type: i0.Output, args: ["cancelarDescarte"] }], confirmarRechazo: [{ type: i0.Output, args: ["confirmarRechazo"] }], cancelarRechazo: [{ type: i0.Output, args: ["cancelarRechazo"] }] } });
|
|
549
886
|
|
|
550
887
|
/** El panel conectado a `AlertasState`: cada web monta solo esta etiqueta. */
|
|
551
888
|
class IusAlertasComponent {
|
|
@@ -553,11 +890,17 @@ class IusAlertasComponent {
|
|
|
553
890
|
this.alertas = inject(AlertasState);
|
|
554
891
|
/** Alto del encabezado de la web. */
|
|
555
892
|
this.offsetTop = input(0, { ...(ngDevMode ? { debugName: "offsetTop" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
556
|
-
|
|
557
|
-
|
|
893
|
+
}
|
|
894
|
+
alAccionar(alerta, accion) {
|
|
895
|
+
if (accion === 'aprobar') {
|
|
896
|
+
this.alertas.aprobar(alerta);
|
|
897
|
+
}
|
|
898
|
+
else {
|
|
899
|
+
this.alertas.pedirRechazo(alerta);
|
|
900
|
+
}
|
|
558
901
|
}
|
|
559
902
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: IusAlertasComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
560
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: IusAlertasComponent, isStandalone: true, selector: "ius-alertas", inputs: { offsetTop: { classPropertyName: "offsetTop", publicName: "offsetTop", isSignal: true, isRequired: false, transformFunction: null } },
|
|
903
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: IusAlertasComponent, isStandalone: true, selector: "ius-alertas", inputs: { offsetTop: { classPropertyName: "offsetTop", publicName: "offsetTop", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `<ius-alertas-panel
|
|
561
904
|
[offsetTop]="offsetTop()"
|
|
562
905
|
[abierto]="alertas.abierto()"
|
|
563
906
|
[estado]="alertas.estado()"
|
|
@@ -567,14 +910,22 @@ class IusAlertasComponent {
|
|
|
567
910
|
[hayMarcables]="alertas.hayMarcables()"
|
|
568
911
|
[saliendo]="alertas.saliendo()"
|
|
569
912
|
[ahora]="alertas.ahora()"
|
|
913
|
+
[descarte]="alertas.descarte()"
|
|
914
|
+
[rechazo]="alertas.rechazo()"
|
|
915
|
+
[resolviendo]="alertas.resolviendo()"
|
|
570
916
|
(cerrar)="alertas.cerrar()"
|
|
571
917
|
(reintentar)="alertas.reintentar()"
|
|
572
918
|
(filtrar)="alertas.filtrar($event)"
|
|
573
919
|
(marcarVista)="alertas.marcarVista($event)"
|
|
574
920
|
(marcarTodas)="alertas.marcarTodasVistas()"
|
|
575
921
|
(quitada)="alertas.quitar($event)"
|
|
576
|
-
(abrirAlerta)="
|
|
577
|
-
|
|
922
|
+
(abrirAlerta)="alertas.abrir($event)"
|
|
923
|
+
(accionAlerta)="alAccionar($event.alerta, $event.accion)"
|
|
924
|
+
(confirmarDescarte)="alertas.confirmarDescarte()"
|
|
925
|
+
(cancelarDescarte)="alertas.cancelarDescarte()"
|
|
926
|
+
(confirmarRechazo)="alertas.rechazar($event)"
|
|
927
|
+
(cancelarRechazo)="alertas.cancelarRechazo()"
|
|
928
|
+
/>`, isInline: true, dependencies: [{ kind: "component", type: AlertasPanelComponent, selector: "ius-alertas-panel", inputs: ["offsetTop", "abierto", "estado", "grupos", "modulos", "filtro", "hayMarcables", "saliendo", "ahora", "descarte", "rechazo", "resolviendo"], outputs: ["cerrar", "reintentar", "filtrar", "marcarVista", "marcarTodas", "quitada", "abrirAlerta", "accionAlerta", "confirmarDescarte", "cancelarDescarte", "confirmarRechazo", "cancelarRechazo"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
578
929
|
}
|
|
579
930
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: IusAlertasComponent, decorators: [{
|
|
580
931
|
type: Component,
|
|
@@ -592,21 +943,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
592
943
|
[hayMarcables]="alertas.hayMarcables()"
|
|
593
944
|
[saliendo]="alertas.saliendo()"
|
|
594
945
|
[ahora]="alertas.ahora()"
|
|
946
|
+
[descarte]="alertas.descarte()"
|
|
947
|
+
[rechazo]="alertas.rechazo()"
|
|
948
|
+
[resolviendo]="alertas.resolviendo()"
|
|
595
949
|
(cerrar)="alertas.cerrar()"
|
|
596
950
|
(reintentar)="alertas.reintentar()"
|
|
597
951
|
(filtrar)="alertas.filtrar($event)"
|
|
598
952
|
(marcarVista)="alertas.marcarVista($event)"
|
|
599
953
|
(marcarTodas)="alertas.marcarTodasVistas()"
|
|
600
954
|
(quitada)="alertas.quitar($event)"
|
|
601
|
-
(abrirAlerta)="
|
|
955
|
+
(abrirAlerta)="alertas.abrir($event)"
|
|
956
|
+
(accionAlerta)="alAccionar($event.alerta, $event.accion)"
|
|
957
|
+
(confirmarDescarte)="alertas.confirmarDescarte()"
|
|
958
|
+
(cancelarDescarte)="alertas.cancelarDescarte()"
|
|
959
|
+
(confirmarRechazo)="alertas.rechazar($event)"
|
|
960
|
+
(cancelarRechazo)="alertas.cancelarRechazo()"
|
|
602
961
|
/>`,
|
|
603
962
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
604
963
|
}]
|
|
605
|
-
}], propDecorators: { offsetTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsetTop", required: false }] }]
|
|
964
|
+
}], propDecorators: { offsetTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsetTop", required: false }] }] } });
|
|
606
965
|
|
|
607
966
|
/**
|
|
608
967
|
* Generated bundle index. Do not edit.
|
|
609
968
|
*/
|
|
610
969
|
|
|
611
|
-
export { ALERTAS_CONFIG, AlertasApiService, AlertasHubService, AlertasPanelComponent, AlertasState, IusAlertasComponent, MODULOS_ALERTA, SERVICIO_NO_DISPONIBLE, agruparAlertasPorDia, ahoraEnColombia, claveAlerta, coincideConSalida, esDelPanel, etiquetaDia, hayMarcables, horaCorta, modulosConPendientes, provideAlertas, tiempoDeAlerta };
|
|
970
|
+
export { ALERTAS_CONFIG, AlertasApiService, AlertasHubService, AlertasPanelComponent, AlertasState, IusAlertasComponent, MODULOS_ALERTA, SERVICIO_NO_DISPONIBLE, agruparAlertasPorDia, ahoraEnColombia, claveAlerta, coincideConSalida, esDelPanel, etiquetaDia, hayMarcables, horaCorta, modulosConPendientes, pathDeRuta, provideAlertas, resolverDestino, tiempoDeAlerta };
|
|
612
971
|
//# sourceMappingURL=litigiovirtual-ius-alertas.mjs.map
|