utn-cli 2.1.40 → 2.1.41
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/package.json
CHANGED
|
@@ -7,12 +7,7 @@ import { MatIconModule } from '@angular/material/icon';
|
|
|
7
7
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
8
8
|
import { MatDialog } from '@angular/material/dialog';
|
|
9
9
|
import { MatDividerModule } from '@angular/material/divider';
|
|
10
|
-
import {
|
|
11
|
-
import { MensajesComponent } from '../../../Componentes/Nucleo/mensajes/mensajes.component';
|
|
12
|
-
import { MensajeConfirmacionHTMLComponent } from '../../../Componentes/Nucleo/mensaje-confirmacion-html/mensaje-confirmacion-html';
|
|
13
|
-
import { ReporteDeSugerenciasComponent } from '../../../Componentes/Nucleo/reporte-de-sugerencias/reporte-de-sugerencias.component';
|
|
14
|
-
import { EstadisticasDelModuloComponent } from '../../../Componentes/Nucleo/estadisticas-del-modulo/estadisticas-del-modulo.component';
|
|
15
|
-
import { ReordenarMenuComponent, ItemDeMenuDialog } from '../../../Componentes/Nucleo/reordenar-menu/reordenar-menu.component';
|
|
10
|
+
import type { ItemDeMenuDialog } from '../../../Componentes/Nucleo/reordenar-menu/reordenar-menu.component';
|
|
16
11
|
|
|
17
12
|
import { MatMenuModule } from '@angular/material/menu';
|
|
18
13
|
|
|
@@ -112,13 +107,14 @@ export class ContenedorComponentesComponent implements OnInit, OnDestroy, AfterV
|
|
|
112
107
|
});
|
|
113
108
|
}
|
|
114
109
|
|
|
115
|
-
abrirDialogReordenarMenu(): void {
|
|
110
|
+
async abrirDialogReordenarMenu(): Promise<void> {
|
|
116
111
|
const itemsVisibles: ItemDeMenuDialog[] = this.itemsDeMenuVisibles.map(i => ({
|
|
117
112
|
id: i.id,
|
|
118
113
|
etiqueta: i.etiqueta,
|
|
119
114
|
icono: i.icono
|
|
120
115
|
}));
|
|
121
116
|
|
|
117
|
+
const { ReordenarMenuComponent } = await import('../../../Componentes/Nucleo/reordenar-menu/reordenar-menu.component');
|
|
122
118
|
this.dialog.open(ReordenarMenuComponent, { data: { items: itemsVisibles } })
|
|
123
119
|
.afterClosed()
|
|
124
120
|
.subscribe((resultado: ItemDeMenuDialog[] | undefined) => {
|
|
@@ -174,7 +170,7 @@ export class ContenedorComponentesComponent implements OnInit, OnDestroy, AfterV
|
|
|
174
170
|
}, 60000);
|
|
175
171
|
});
|
|
176
172
|
|
|
177
|
-
this.http.get(this.datosGlobalesService.ObtenerURL() + 'misc/inicializar').subscribe((datos: any) => {
|
|
173
|
+
this.http.get(this.datosGlobalesService.ObtenerURL() + 'misc/inicializar').subscribe(async (datos: any) => {
|
|
178
174
|
const body = datos.body;
|
|
179
175
|
|
|
180
176
|
this.TienePermiso = body.TienePermiso;
|
|
@@ -196,6 +192,8 @@ export class ContenedorComponentesComponent implements OnInit, OnDestroy, AfterV
|
|
|
196
192
|
this.EnlaceDelVideo = body.EnlaceDelVideo;
|
|
197
193
|
this.Mensajes = body.Notificaciones;
|
|
198
194
|
|
|
195
|
+
const { MensajeConfirmacionHTMLComponent } = await import('../../../Componentes/Nucleo/mensaje-confirmacion-html/mensaje-confirmacion-html');
|
|
196
|
+
|
|
199
197
|
if (body.Consentimiento?.Aceptaciones === 0) {
|
|
200
198
|
const ConsentimientoInformadoId = body.Consentimiento.Consentimiento[0].ConsentimientoInformadoId;
|
|
201
199
|
this.dialog.open(MensajeConfirmacionHTMLComponent, {
|
|
@@ -260,10 +258,10 @@ export class ContenedorComponentesComponent implements OnInit, OnDestroy, AfterV
|
|
|
260
258
|
}
|
|
261
259
|
|
|
262
260
|
irAMensajes(): void {
|
|
263
|
-
this.http.get(this.datosGlobalesService.ObtenerURL() + 'misc/obtenerNotificaciones').subscribe((datos: any) => {
|
|
264
|
-
|
|
265
|
-
this.dialog.open(MensajesComponent, { data });
|
|
266
|
-
})
|
|
261
|
+
this.http.get(this.datosGlobalesService.ObtenerURL() + 'misc/obtenerNotificaciones').subscribe(async (datos: any) => {
|
|
262
|
+
const { MensajesComponent } = await import('../../../Componentes/Nucleo/mensajes/mensajes.component');
|
|
263
|
+
this.dialog.open(MensajesComponent, { data: datos.body });
|
|
264
|
+
});
|
|
267
265
|
}
|
|
268
266
|
|
|
269
267
|
irAAyuda(): void {
|
|
@@ -282,7 +280,8 @@ export class ContenedorComponentesComponent implements OnInit, OnDestroy, AfterV
|
|
|
282
280
|
window.open(this.EnlaceDelVideo, '_blank', 'noopener,noreferrer');
|
|
283
281
|
}
|
|
284
282
|
|
|
285
|
-
irASoporte(): void {
|
|
283
|
+
async irASoporte(): Promise<void> {
|
|
284
|
+
const { ReporteDeIncidenciasComponent } = await import('../../../Componentes/Nucleo/reporte-de-incidencias/reporte-de-incidencias.component');
|
|
286
285
|
this.dialog.open(ReporteDeIncidenciasComponent);
|
|
287
286
|
}
|
|
288
287
|
|
|
@@ -309,12 +308,14 @@ export class ContenedorComponentesComponent implements OnInit, OnDestroy, AfterV
|
|
|
309
308
|
})
|
|
310
309
|
}
|
|
311
310
|
|
|
312
|
-
irASugerencias(): void {
|
|
311
|
+
async irASugerencias(): Promise<void> {
|
|
312
|
+
const { ReporteDeSugerenciasComponent } = await import('../../../Componentes/Nucleo/reporte-de-sugerencias/reporte-de-sugerencias.component');
|
|
313
313
|
this.dialog.open(ReporteDeSugerenciasComponent);
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
irAEstadisticasDelModulo(): void {
|
|
317
|
-
this.http.get(this.datosGlobalesService.ObtenerURL() + 'misc/obtenerVistas').subscribe((datos: any) => {
|
|
317
|
+
this.http.get(this.datosGlobalesService.ObtenerURL() + 'misc/obtenerVistas').subscribe(async (datos: any) => {
|
|
318
|
+
const { EstadisticasDelModuloComponent } = await import('../../../Componentes/Nucleo/estadisticas-del-modulo/estadisticas-del-modulo.component');
|
|
318
319
|
this.dialog.open(EstadisticasDelModuloComponent, { data: datos.body });
|
|
319
320
|
});
|
|
320
321
|
}
|