general-library-union 2.7.3 → 2.7.5
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/data-exporter-table.utils.mjs +4 -4
- package/esm2022/src/app/core/servicios/interceptores/loading-interceptor.mjs +37 -0
- package/esm2022/src/app/core/servicios/spinner-service.mjs +22 -0
- package/fesm2022/general-library-union.mjs +57 -5
- 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/data-exporter-table.utils.d.ts +1 -1
- package/src/app/core/servicios/interceptores/loading-interceptor.d.ts +11 -0
- package/src/app/core/servicios/spinner-service.d.ts +9 -0
- package/src/styles/primeng/sass/overrides/_theme_styles_dark.scss +0 -4
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -157,3 +157,5 @@ export * from './src/app/webcommon/pipes/reporte-fuente.pipe';
|
|
|
157
157
|
export * from './src/app/webcommon/pages/fuente-reporte/fuente-reporte.component';
|
|
158
158
|
export * from './src/app/webcommon/popups/popup-sentencia/popup-sentencia.component';
|
|
159
159
|
export * from './src/app/webcommon/pages/cargue-plantilla/cargue-plantilla-general/cargue-plantilla-general.component';
|
|
160
|
+
export * from './src/app/core/servicios/spinner-service';
|
|
161
|
+
export * from './src/app/core/servicios/interceptores/loading-interceptor';
|
|
@@ -3,7 +3,7 @@ export declare class DataExporter {
|
|
|
3
3
|
constructor();
|
|
4
4
|
exportPdf(lista: any[], exportColumns: any[], nombreArchivo: string): void;
|
|
5
5
|
exportExcel(lista: any[], nombreArchivo: string): Promise<void>;
|
|
6
|
-
exportExcelColumnas(lista: any[], nombreArchivo: string, columnas: string[]): Promise<void>;
|
|
6
|
+
exportExcelColumnas(lista: any[], nombreArchivo: string, columnas: string[], nombreHoja?: string): Promise<void>;
|
|
7
7
|
saveAsExcelFile(buffer: any, fileName: string): void;
|
|
8
8
|
exportCSV(lista: any[], columnas: string[], nombreArchivo: string): void;
|
|
9
9
|
convertirAFormatoCSV(data: any[], columns: string[]): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { SpinnerService } from '../spinner-service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LoadingInterceptor implements HttpInterceptor {
|
|
6
|
+
private spinnerService;
|
|
7
|
+
constructor(spinnerService: SpinnerService);
|
|
8
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingInterceptor, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingInterceptor>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SpinnerService {
|
|
3
|
+
private spinnerSubject;
|
|
4
|
+
spinner$: import("rxjs").Observable<boolean>;
|
|
5
|
+
show(): void;
|
|
6
|
+
hide(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpinnerService>;
|
|
9
|
+
}
|
|
@@ -871,10 +871,6 @@ body {
|
|
|
871
871
|
padding: 5px;
|
|
872
872
|
}
|
|
873
873
|
|
|
874
|
-
// .p-toast.p-toast-top-right, .p-toast.p-toast-top-left, .p-toast.p-toast-top-center {
|
|
875
|
-
// z-index: 1105 !important;
|
|
876
|
-
// }
|
|
877
|
-
|
|
878
874
|
.my-toast.toast-text-small .p-toast-detail {
|
|
879
875
|
font-size: 0.7rem !important;
|
|
880
876
|
line-height: 18px !important;
|