general-library-union 2.4.57 → 2.4.58
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/esm2022/public-api.mjs +4 -1
- package/esm2022/src/app/core/servicios/utils.service.mjs +5 -1
- package/esm2022/src/app/publico/pages/timeout/timeout.page.mjs +3 -3
- package/esm2022/src/app/seguridad/constantes/ConstantesGenerales.mjs +30 -0
- package/esm2022/src/app/seguridad/modelos/ColumnaFuenteModel.mjs +9 -0
- package/esm2022/src/app/seguridad/modelos/ColumnaWraperModel.mjs +6 -0
- package/esm2022/src/app/seguridad/modelos/ForeingWraperModel.mjs +6 -0
- package/esm2022/src/app/seguridad/modelos/JoinFromModel.mjs +5 -0
- package/esm2022/src/app/seguridad/modelos/LlaveForaneaModel.mjs +7 -0
- package/esm2022/src/app/seguridad/modelos/ObjetoReporteModel.mjs +6 -0
- package/esm2022/src/app/seguridad/modelos/TablaFromModel.mjs +5 -0
- package/esm2022/src/app/webcommon/pages/fuente-reporte/fuente-reporte.component.mjs +696 -0
- package/esm2022/src/app/webcommon/popups/popup-tablas-fuente/popup-tablas-fuente.component.mjs +107 -0
- package/esm2022/src/app/webcommon/services/reportes.service.mjs +43 -1
- package/esm2022/src/environments/environment.mjs +2 -2
- package/fesm2022/general-library-union.mjs +909 -56
- package/fesm2022/general-library-union.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/src/app/core/servicios/utils.service.d.ts +1 -0
- package/src/app/seguridad/constantes/ConstantesGenerales.d.ts +25 -0
- package/src/app/seguridad/modelos/ColumnaFuenteModel.d.ts +8 -0
- package/src/app/seguridad/modelos/ColumnaWraperModel.d.ts +6 -0
- package/src/app/seguridad/modelos/ForeingWraperModel.d.ts +6 -0
- package/src/app/seguridad/modelos/JoinFromModel.d.ts +4 -0
- package/src/app/seguridad/modelos/LlaveForaneaModel.d.ts +6 -0
- package/src/app/seguridad/modelos/ObjetoReporteModel.d.ts +5 -0
- package/src/app/seguridad/modelos/TablaFromModel.d.ts +4 -0
- package/src/app/webcommon/pages/fuente-reporte/fuente-reporte.component.d.ts +118 -0
- package/src/app/webcommon/popups/popup-tablas-fuente/popup-tablas-fuente.component.d.ts +32 -0
- package/src/app/webcommon/services/reportes.service.d.ts +16 -0
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -152,3 +152,5 @@ export * from './src/app/shared/componentes/input-helper-seleccion-plantilla/inp
|
|
|
152
152
|
export * from './src/app/core/servicios/data-exporter-table.utils';
|
|
153
153
|
export * from './src/app/webcommon/pipes/fuente.pipe';
|
|
154
154
|
export * from './src/app/webcommon/pipes/reporte-fuente.pipe';
|
|
155
|
+
export * from './src/app/webcommon/pages/fuente-reporte/fuente-reporte.component';
|
|
156
|
+
export * from './src/app/webcommon/popups/popup-sentencia/popup-sentencia.component';
|
|
@@ -36,6 +36,7 @@ export declare class UtilsService {
|
|
|
36
36
|
getItem(key: string, defaultValue?: string): string | undefined;
|
|
37
37
|
cambiarTema(tema: ('temaClaro' | 'temaOscuro')): void;
|
|
38
38
|
calcularPosicionDialog(): void;
|
|
39
|
+
validarPalabra(texto: string): boolean;
|
|
39
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
|
40
41
|
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
|
|
41
42
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const ConstantesGenerales: {
|
|
2
|
+
listaSiNo: Map<string, string>;
|
|
3
|
+
listaEstado: Map<string, string>;
|
|
4
|
+
MENSAJE_INGRESAR: string;
|
|
5
|
+
MENSAJE_GUARDAR: string;
|
|
6
|
+
MENSAJE_ACTUALIZAR: string;
|
|
7
|
+
MENSAJE_ACTUALIZAR_VARIOS: string;
|
|
8
|
+
MENSAJE_ACTUALIZAR_NO: string;
|
|
9
|
+
MENSAJE_ELIMINAR_VARIOS_CONFIRMAR: string;
|
|
10
|
+
MENSAJE_ELIMINAR_CONFIRMAR: string;
|
|
11
|
+
MENSAJE_ELIMINAR: string;
|
|
12
|
+
MENSAJE_ELIMINAR_VARIOS: string;
|
|
13
|
+
MENSAJE_ELIMINAR_NO: string;
|
|
14
|
+
MENSAJE_CANCELAR: string;
|
|
15
|
+
MENSAJE_GUARDAR_NO: string;
|
|
16
|
+
MENSAJE_YA_EXISTE: string;
|
|
17
|
+
MENSAJE_ORDEN_REPETIDO: string;
|
|
18
|
+
MENSAJE_NO_EXISTE: string;
|
|
19
|
+
MENSAJE_GENERAR_REPORTE: string;
|
|
20
|
+
MENSAJE_FIN_GENERAR_REPORTE: string;
|
|
21
|
+
MENSAJE_INCOMPLETA: string;
|
|
22
|
+
MENSAJE_DUPLICADA: string;
|
|
23
|
+
ESTADO_ACTIVO: string;
|
|
24
|
+
PORCENTAJE: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { ToastService } from './../../../core/servicios/toast.service';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { ColumnaFuenteModel } from '../../../seguridad/modelos/ColumnaFuenteModel';
|
|
4
|
+
import { FuenteDatoModel } from '../../../seguridad/modelos/FuenteDato';
|
|
5
|
+
import { ReporteColumnaModel } from '../../../seguridad/modelos/ReporteColumna';
|
|
6
|
+
import { TablaFromModel } from '../../../seguridad/modelos/TablaFromModel';
|
|
7
|
+
import { JoinFromModel } from '../../../seguridad/modelos/JoinFromModel';
|
|
8
|
+
import { ReportesService } from '../../services/reportes.service';
|
|
9
|
+
import { GeneralService } from '../../../shared/servicios/general.service';
|
|
10
|
+
import { ColumnaWraperModel } from '../../../seguridad/modelos/ColumnaWraperModel';
|
|
11
|
+
import { UtilsService } from '../../../core/servicios/utils.service';
|
|
12
|
+
import { ConfirmationService, MenuItem, MessageService } from 'primeng/api';
|
|
13
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
14
|
+
import { MenuService } from '../../../core/servicios/menu.service';
|
|
15
|
+
import { PopupTablasFuenteComponent } from '../../popups/popup-tablas-fuente/popup-tablas-fuente.component';
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
export declare class FuenteReporteComponent implements OnInit {
|
|
18
|
+
private menuService;
|
|
19
|
+
private notificationBusService;
|
|
20
|
+
private reportesSvc;
|
|
21
|
+
private generalSvc;
|
|
22
|
+
private utilsService;
|
|
23
|
+
private confirmationService;
|
|
24
|
+
private translateService;
|
|
25
|
+
messageService: MessageService;
|
|
26
|
+
fuente: FuenteDatoModel;
|
|
27
|
+
vistaVisualizar: string;
|
|
28
|
+
tablasFrom: TablaFromModel[];
|
|
29
|
+
joinsFrom: JoinFromModel[];
|
|
30
|
+
columnas: ReporteColumnaModel[];
|
|
31
|
+
listaColumnas: any[];
|
|
32
|
+
listaJoin: any[];
|
|
33
|
+
col1: string;
|
|
34
|
+
col2: string;
|
|
35
|
+
campos: ColumnaFuenteModel[];
|
|
36
|
+
camposSeleccionar: ColumnaWraperModel[];
|
|
37
|
+
mostrarSeleccionar: boolean;
|
|
38
|
+
campoFormula: ColumnaFuenteModel;
|
|
39
|
+
actual: number;
|
|
40
|
+
tabPrincipal: number;
|
|
41
|
+
basico: boolean;
|
|
42
|
+
seleccionGeneral: boolean;
|
|
43
|
+
foraneas: any[];
|
|
44
|
+
descripcion: string;
|
|
45
|
+
query: string;
|
|
46
|
+
paginador: FuenteDatoModel[];
|
|
47
|
+
filtro: FuenteDatoModel;
|
|
48
|
+
paginator: {
|
|
49
|
+
rows: number;
|
|
50
|
+
totalRecords: number;
|
|
51
|
+
};
|
|
52
|
+
columns: any[];
|
|
53
|
+
filters: any[];
|
|
54
|
+
loading: boolean;
|
|
55
|
+
menu: MenuItem[];
|
|
56
|
+
items: MenuItem[];
|
|
57
|
+
mapaMensajes: Map<number, string>;
|
|
58
|
+
popupTablasFuenteUI: PopupTablasFuenteComponent;
|
|
59
|
+
constructor(menuService: MenuService, notificationBusService: ToastService, reportesSvc: ReportesService, generalSvc: GeneralService, utilsService: UtilsService, confirmationService: ConfirmationService, translateService: TranslateService, messageService: MessageService);
|
|
60
|
+
ngOnInit(): void;
|
|
61
|
+
load(event: any): Promise<void>;
|
|
62
|
+
colocarFiltro(): void;
|
|
63
|
+
limpiarCampos(): void;
|
|
64
|
+
siguiente(): Promise<void>;
|
|
65
|
+
private cargarListasColumnas;
|
|
66
|
+
terminarPasos(): Promise<void>;
|
|
67
|
+
adicionarForanea(evento: any): Promise<void>;
|
|
68
|
+
eliminar(): Promise<void>;
|
|
69
|
+
setRespuesta(respuesta: boolean): Promise<void>;
|
|
70
|
+
anterior(): void;
|
|
71
|
+
validarQuery(): Promise<void>;
|
|
72
|
+
adicionarJoin(): void;
|
|
73
|
+
eliminarJoin(ae: any): void;
|
|
74
|
+
eliminarTabla(ae: any): void;
|
|
75
|
+
buscarTabla(): void;
|
|
76
|
+
setTablaSeleccionada(tablaSeleccionada: string): void;
|
|
77
|
+
private cargarTablaEnLista;
|
|
78
|
+
cambioJoin(ce: any): void;
|
|
79
|
+
editarCampo(evento: any): void;
|
|
80
|
+
editarWhere(): void;
|
|
81
|
+
setFormula(formula: any): void;
|
|
82
|
+
adicionarColumnas(): void;
|
|
83
|
+
agregarSeleccionados(): void;
|
|
84
|
+
ocultarSeleccionar(): void;
|
|
85
|
+
verDetalle(evento: any): Promise<void>;
|
|
86
|
+
nuevo(): void;
|
|
87
|
+
cargasOpciones(): void;
|
|
88
|
+
regresar(): void;
|
|
89
|
+
private validar;
|
|
90
|
+
/**
|
|
91
|
+
* Registra/actualiza la informacion general de la fuente de datos
|
|
92
|
+
*/
|
|
93
|
+
guardar(): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Registra/actualiza las columnas generados para la fuente de datos como registros de tipo 'ColumnaFuente'
|
|
96
|
+
*/
|
|
97
|
+
guardarCampos(): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Verifica que los valores asociados a los campos para la creacion de las columnas de la fuente sean válidos
|
|
100
|
+
* @return false en caso de que los valores asignados a los campos sean nulos o no sean palabras válidas de acuerdo
|
|
101
|
+
* con las condiciones dadas por ValidadorUtil.validarPalabra()),
|
|
102
|
+
* en caso contrario retorna true
|
|
103
|
+
*/
|
|
104
|
+
private validarCampos;
|
|
105
|
+
/**
|
|
106
|
+
* Construye las columnas de la fuente de datos, con base en los campos obtenidos
|
|
107
|
+
* de la consulta SQL asociada
|
|
108
|
+
*/
|
|
109
|
+
construirColumnas(): Promise<void>;
|
|
110
|
+
private validarWizard;
|
|
111
|
+
private generarSqlFrom;
|
|
112
|
+
private generarSqlJoin;
|
|
113
|
+
initStep(): void;
|
|
114
|
+
actualizarSeleccion(booleanogeneral: boolean): void;
|
|
115
|
+
todosSeleccionados(): boolean;
|
|
116
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FuenteReporteComponent, never>;
|
|
117
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FuenteReporteComponent, "app-fuente-reporte", never, {}, {}, never, never, true, never>;
|
|
118
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ObjetoReporteModel } from '../../../seguridad/modelos/ObjetoReporteModel';
|
|
3
|
+
import { ReportesService } from '../../services/reportes.service';
|
|
4
|
+
import { UtilsService } from '../../../core/servicios/utils.service';
|
|
5
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class PopupTablasFuenteComponent {
|
|
8
|
+
private reportesSvc;
|
|
9
|
+
private utilsService;
|
|
10
|
+
private translateService;
|
|
11
|
+
paginadorTablas: ObjetoReporteModel[];
|
|
12
|
+
filtroTabla: string;
|
|
13
|
+
visible: boolean;
|
|
14
|
+
filtro: ObjetoReporteModel;
|
|
15
|
+
filters: any[];
|
|
16
|
+
paginator: {
|
|
17
|
+
rows: number;
|
|
18
|
+
totalRecords: number;
|
|
19
|
+
};
|
|
20
|
+
loading: boolean;
|
|
21
|
+
columns: any[];
|
|
22
|
+
aplicarDestinoOcultar: EventEmitter<any>;
|
|
23
|
+
constructor(reportesSvc: ReportesService, utilsService: UtilsService, translateService: TranslateService);
|
|
24
|
+
load(event: any): Promise<void>;
|
|
25
|
+
colocarFiltro(): void;
|
|
26
|
+
buscarTabla(destino: string): void;
|
|
27
|
+
seleccionarTabla(evento: any): void;
|
|
28
|
+
mostrarPopup(): void;
|
|
29
|
+
ocultarPopup(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupTablasFuenteComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopupTablasFuenteComponent, "app-popup-tablas-fuente", never, {}, { "aplicarDestinoOcultar": "aplicarDestinoOcultar"; }, never, never, true, never>;
|
|
32
|
+
}
|
|
@@ -3,6 +3,9 @@ import { GeneralModel } from '../../seguridad/modelos/GeneralModel';
|
|
|
3
3
|
import { ErrorIntecertorService } from '../../core/servicios/error-interceptor.service';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { CookieService } from 'ngx-cookie-service';
|
|
6
|
+
import { FuenteDatoModel } from '../../seguridad/modelos/FuenteDato';
|
|
7
|
+
import { ColumnaFuenteModel } from '../../seguridad/modelos/ColumnaFuenteModel';
|
|
8
|
+
import { ObjetoReporteModel } from '../../seguridad/modelos/ObjetoReporteModel';
|
|
6
9
|
import * as i0 from "@angular/core";
|
|
7
10
|
export declare class ReportesService {
|
|
8
11
|
private httpClient;
|
|
@@ -14,6 +17,19 @@ export declare class ReportesService {
|
|
|
14
17
|
obtenerProcesoExterno(general: any): Observable<any>;
|
|
15
18
|
getUrl(): string | null;
|
|
16
19
|
obtenerRutaPlantilla(general: any): Observable<any>;
|
|
20
|
+
getLlaves(tablas: string[]): Observable<any>;
|
|
21
|
+
validarQuery(query: string): Observable<any>;
|
|
22
|
+
eliminarFuenteDatosConHijos(query: FuenteDatoModel): Observable<any>;
|
|
23
|
+
getColumnasSql(query: string): Observable<ColumnaFuenteModel[]>;
|
|
24
|
+
actualizarColumnasFuente(fuente: FuenteDatoModel, columnas: ColumnaFuenteModel[]): Observable<void>;
|
|
25
|
+
insertarFuenteDato(fuente: FuenteDatoModel): Observable<any>;
|
|
26
|
+
actualizarFuenteDato(fuente: FuenteDatoModel): Observable<void>;
|
|
27
|
+
consultarUnicaFuenteDato(filtro: FuenteDatoModel): Observable<any>;
|
|
28
|
+
consultarColumnasFuente(filtro: ColumnaFuenteModel): Observable<ColumnaFuenteModel[]>;
|
|
29
|
+
consultarFuenteDato(fuente: FuenteDatoModel): Observable<FuenteDatoModel[]>;
|
|
30
|
+
cantidadFuenteDato(fuente: FuenteDatoModel): Observable<number>;
|
|
31
|
+
getObjetos(fuente: ObjetoReporteModel): Observable<ObjetoReporteModel[]>;
|
|
32
|
+
getCantidadObjetos(fuente: ObjetoReporteModel): Observable<number>;
|
|
17
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReportesService, never>;
|
|
18
34
|
static ɵprov: i0.ɵɵInjectableDeclaration<ReportesService>;
|
|
19
35
|
}
|