Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vk-reports

Package Overview
Dependencies
Maintainers
1
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vk-reports - npm Package Compare versions

Comparing version 0.6.11 to 0.6.12

2

bundles/vk-reports.umd.min.js

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common/http"),require("@angular/forms"),require("@angular/common"),require("@angular/router"),require("@angular/material/snack-bar"),require("@angular/material"),require("ngx-spinner"),require("ag-grid-angular"),require("@angular/flex-layout"),require("@fortawesome/angular-fontawesome"),require("@fortawesome/free-solid-svg-icons"),require("@angular/animations"),require("@angular/platform-browser"),require("rxjs"),require("rxjs/operators"),require("@ng-select/ng-select"),require("exceljs/dist/exceljs.min.js"),require("file-saver"),require("pdfmake/build/pdfmake"),require("pdfmake/build/vfs_fonts")):"function"==typeof define&&define.amd?define("vk-reports",["exports","@angular/core","@angular/common/http","@angular/forms","@angular/common","@angular/router","@angular/material/snack-bar","@angular/material","ngx-spinner","ag-grid-angular","@angular/flex-layout","@fortawesome/angular-fontawesome","@fortawesome/free-solid-svg-icons","@angular/animations","@angular/platform-browser","rxjs","rxjs/operators","@ng-select/ng-select","exceljs/dist/exceljs.min.js","file-saver","pdfmake/build/pdfmake","pdfmake/build/vfs_fonts"],e):e((t=t||self)["vk-reports"]={},t.ng.core,t.ng.common.http,t.ng.forms,t.ng.common,t.ng.router,t.ng.material["snack-bar"],t.ng.material,t.ngxSpinner,t.agGridAngular,t.ng["flex-layout"],t.angularFontawesome,t.freeSolidSvgIcons,t.ng.animations,t.ng.platformBrowser,t.rxjs,t.rxjs.operators,t.ngSelect,t.exceljs_min_js,t.fileSaver,t.pdfMake,t.pdfFonts)}(this,function(t,e,i,n,r,o,a,s,l,p,c,d,u,g,f,m,h,b,x,y,v,w){"use strict";v=v&&v.hasOwnProperty("default")?v.default:v,w=w&&w.hasOwnProperty("default")?w.default:w;var C=function(){function t(t){this._sanitizer=t}return t.prototype.ngOnInit=function(){},t.prototype.agInit=function(t){var e=t.value;this.sanitize(e)},t.prototype.refresh=function(t){return this.cellvalue=t.value,!0},t.prototype.sanitize=function(t){return this.cellvalue=this._sanitizer.bypassSecurityTrustHtml(t),this.cellvalue},t.decorators=[{type:e.Component,args:[{selector:"app-customized-cell",template:'<div [innerHTML]="cellvalue"></div>',styles:[""]}]}],t.ctorParameters=function(){return[{type:f.DomSanitizer}]},t}(),D=function(){function t(t){this.http=t,this.filterValues=[],this.getFilteredDataEvent=new e.EventEmitter,this.updatePaginatorDataEvent=new e.EventEmitter,this.loadReportDataEvent=new e.EventEmitter,this.openSubReportDialogEvent=new e.EventEmitter,this.closeSubReportDialogEvent=new e.EventEmitter,this.showErrorSubReportDialogEvent=new e.EventEmitter}return t.prototype.getReports=function(){return this._setAuthHeaders(this.accessToken),this.http.get(this.apiBaseUrl+"get-all",{headers:this.authHeaders})},t.prototype.getConfig=function(t){return this._setAuthHeaders(this.accessToken),this.http.get(this.apiBaseUrl+"get-config?reportId="+t,{headers:this.authHeaders})},t.prototype.getData=function(t,e){if(e){var i=[];this.filterValues.forEach(function(t){t.value&&i.push(t)});var n=encodeURIComponent(JSON.stringify(i));return this.http.get(this.apiBaseUrl+"get-data?reportId="+t+"&filterAsJSON="+n,{headers:this.authHeaders})}return this.http.get(this.apiBaseUrl+"get-data?reportId="+t,{headers:this.authHeaders})},t.prototype.getSubReportConfig=function(t){return this._setAuthHeaders(this.accessToken),this.http.get(this.apiBaseUrl+"get-config?reportId="+t,{headers:this.authHeaders})},t.prototype.getSubReportData=function(t,e){return this.http.get(this.apiBaseUrl+"get-data?reportId="+t+"&filterAsJSON="+e,{headers:this.authHeaders})},t.prototype.initialFilterData=function(t){this.filterValues.push(t)},t.prototype.resetFilterValues=function(){this.filterValues=[]},t.prototype.setFilterData=function(t){this.filterValues.forEach(function(e){e.id===t.id&&(e.value=t.value)})},t.prototype._setAuthHeaders=function(t){var e="Bearer "+t;this.authHeaders=new i.HttpHeaders({"Content-Type":"application/json",Authorization:e})},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:i.HttpClient}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(i.HttpClient))},token:t,providedIn:"root"}),t}(),S=function(){function t(t){this.reportService=t,this.gridReady=!1,this.dataGridReady=!1,this.loading=!0,this.defaultColDef={resizable:!0},this.mainFrameworkComponents={customizedCell:C},this.subReportId=this.reportService.subReportData.id;var e=this.reportService.subReportData.filters;this.filtersAsJSON=encodeURIComponent(JSON.stringify(e))}return t.prototype.ngOnInit=function(){this.getSubReport()},t.prototype.getSubReport=function(){var t=this;this.reportService.getSubReportConfig(this.subReportId).subscribe(function(e){e.success?(t.mainConfig=e.data.mainConfig,t.getSubReportData()):(t.loading=!1,t.errorMessage=e.errorsMessages.join(". "),t.reportService.showErrorSubReportDialogEvent.emit(t.errorMessage),t.reportService.closeSubReportDialogEvent.emit())})},t.prototype.getSubReportData=function(){var t=this;this.reportService.getSubReportData(this.subReportId,this.filtersAsJSON).subscribe(function(e){e.success?(t.mainColumnDefs=e.data.mainHeaders,t.mainRowData=e.data.mainData,t.dataGridReady=!0,t.loading=!1):(t.loading=!1,t.errorMessage=e.errorsMessages.join(". "),t.reportService.closeSubReportDialogEvent.emit(),t.reportService.showErrorSubReportDialogEvent.emit(t.errorMessage))})},t.prototype.onGridReady=function(t){var e=this;this.gridApi=t.api,this.gridColumnApi=t.columnApi,t.api.setRowData(this.mainRowData),this.gridApi.paginationSetPageSize(10),this.gridApi.setDomLayout("autoHeight"),this.gridReady=!0,setTimeout(function(){e.autoSizeAll()},300)},t.prototype.autoSizeAll=function(){var t=[];this.gridColumnApi.getAllColumns().forEach(function(e){t.push(e.colId)}),this.gridColumnApi.autoSizeColumns(t)},t.prototype.closeDialog=function(){this.reportService.closeSubReportDialogEvent.emit()},t.decorators=[{type:e.Component,args:[{selector:"app-sub-report",template:'<ng-container *ngIf="loading; else mainTemplate">\r\n <div class="loading">\r\n <mat-progress-bar color="warn" mode="indeterminate"></mat-progress-bar>\r\n <p>Cargando ...</p>\r\n </div>\r\n </ng-container>\r\n\r\n\r\n \r\n<ng-template #mainTemplate>\r\n \r\n<div *ngIf="dataGridReady">\r\n <div class="title-header">\r\n <app-title-subtitle *ngIf="mainConfig.showTitle" [title]="mainConfig.title"\r\n [subtitle]="mainConfig.subtitle"></app-title-subtitle>\r\n <button mat-icon-button (click)=" closeDialog()" aria-label="Cerrar reporte">\r\n <mat-icon aria-hidden="false">close</mat-icon>\r\n </button>\r\n </div>\r\n <div class="actions-container">\r\n <app-actions *ngIf="mainConfig.export" [title]="mainConfig.title" [export]="mainConfig.export"\r\n [agGrid]="agGrid"></app-actions>\r\n </div>\r\n\r\n <ag-grid-angular #agGrid class="ag-theme-balham" [animateRows]="true" \r\n [rowData]="mainRowData"\r\n [columnDefs]="mainColumnDefs" [defaultColDef]="defaultColDef" \r\n rowSelection="single"\r\n pagination="true" [suppressPaginationPanel]="true" \r\n (gridReady)="onGridReady($event)"\r\n [frameworkComponents]="mainFrameworkComponents">\r\n </ag-grid-angular>\r\n\r\n <app-paginator *ngIf="mainConfig.paginator && gridReady" [agGrid]="agGrid"></app-paginator>\r\n\r\n</div>\r\n</ng-template>\r\n',styles:[".button-container{text-align:right;margin-bottom:10px}.title-header{display:flex;flex-flow:row;align-items:flex-start;justify-content:space-between;padding:10px}.title-header .close{background:0 0}.actions-container{padding:10px;background:#333;display:flex;flex-direction:row;justify-content:space-between;align-items:center;color:#fff}"]}]}],t.ctorParameters=function(){return[{type:D}]},t}(),F=function(){function t(t){this.reportService=t}return t.prototype.ngOnInit=function(){},t.prototype.agInit=function(t){this.cellvalue=t.value,this.myStyles={backgroundColor:t.value.backgroundColor,color:t.value.labelColor}},t.prototype.refresh=function(t){return this.cellvalue=t.value,!0},t.prototype.openDialog=function(){this.reportService.openSubReportDialogEvent.emit(this.cellvalue)},t.decorators=[{type:e.Component,args:[{selector:"app-customized-button-cell",template:'\x3c!-- <div><button mat-flat-button [ngStyle]="myStyles" (click)="openDialog()">{{cellvalue.label}}</button></div> --\x3e\r\n\x3c!-- <div><mat-chip [ngStyle]="myStyles" (click)="openDialog()">{{cellvalue.label}}</mat-chip></div> --\x3e\r\n<mat-chip-list class="mat-chip-list-stacked" #chipList>\r\n <mat-chip [ngStyle]="myStyles" (click)="openDialog()">{{cellvalue.label}}</mat-chip>\r\n</mat-chip-list>',styles:[".align{text-align:center;align-content:center}"]}]}],t.ctorParameters=function(){return[{type:D}]},t}(),R=function(){function t(t,e,i,n){var r=this;this.reportService=t,this.snack=e,this.spinner=i,this.dialog=n,this.OpenNewTab=!0,this.reportIdInput=null,this.reportListFlag=!0,this.dataReady=!1,this.reportFlag=!1,this.configLoading=!0,this.dataLoading=!1,this.error=!1,this.showFilters=!1,this.filtersFlag=!1,this.footerGridReady=!1,this.mainGridReady=!1,this.defaultColDef={resizable:!0,minWidth:5},this.gridOptions={rowHeight:34},this.getFilteredDataSubscription=this.reportService.getFilteredDataEvent.subscribe(function(){return r.getReportData(r.idReport,!0)}),this.getReportDataSubscription=this.reportService.loadReportDataEvent.subscribe(function(t){r.idReport=t,r.loadReport(t)}),this.openSubReportDialogSubscription=this.reportService.openSubReportDialogEvent.subscribe(function(t){r.reportService.subReportData=t,r.openSubReport()}),this.closeSubReportDialogSubscription=this.reportService.closeSubReportDialogEvent.subscribe(function(){r.closeSubReport()}),this.showErrorSubReportDialogSubscription=this.reportService.showErrorSubReportDialogEvent.subscribe(function(t){r.openSnackBar(t)})}return t.prototype.ngOnInit=function(){if(this.reportService.apiBaseUrl=this.ApiBaseUrl,this.reportService.openNewTab=this.OpenNewTab,this.reportService.accessToken=this.accessToken,this.reportService.resetFilterValues(),this.spinner.show(),this.footerFrameworkComponents={customizedCell:C},this.mainFrameworkComponents={customizedCell:C,customizedButtonCell:F},null!==this.reportIdInput)return this.idReport=this.reportIdInput,void this.loadReport(this.idReport);this.getAllReports()},t.prototype.getAllReports=function(){var t=this;this.reportService.getReports().subscribe(function(e){e.success?(t.categories=e.data.categories.sort(function(t,e){return t.order-e.order}),t.reports=e.data.reports,t.filteredReports=t.reports,t.dataReady=!0,t.spinner.hide()):(t.spinner.hide(),t.errorMessage=e.errorsMessages.join(". "),t.openSnackBar(t.errorMessage))})},t.prototype.getReportsFromCategory=function(t){return this.filteredReports.filter(function(e){return e.category===t}).sort(function(t,e){return t.order-e.order})},t.prototype.onSearchChange=function(t){this.filteredReports=this.reports.filter(function(e){return e.title.toLowerCase().includes(t.toLowerCase())||e.subtitle.toLowerCase().includes(t.toLowerCase())})},t.prototype.openSnackBar=function(t){this.snack.open(t,"Cerrar",{duration:5e3})},t.prototype.loadReport=function(t){this.getReport(t),this.reportListFlag=!1,this.reportFlag=!0,this.filtersFlag=!1},t.prototype.getReport=function(t){var e=this;this.spinner.show(),this.reportService.getConfig(t).subscribe(function(i){i.success?(e.error=!1,e.mainConfig=i.data.mainConfig,0!==e.mainConfig.filters.length&&(e.filtersFlag=!0),e.footerConfig=i.data.footerConfig,e.configLoading=!1,e.getReportData(t,!1)):(e.configLoading=!1,e.error=!0,e.spinner.hide(),e.errorMessage=i.errorsMessages.join(". "))})},t.prototype.getReportData=function(t,e){var i=this;this.spinner.show(),this.dataLoading=!0,e?this.reportService.getData(t,e).subscribe(function(t){t.success?(i.mainGridReady=!1,i.mainColumnDefs=t.data.mainHeaders,i.footerColumnDefs=t.data.footerHeaders,i.mainRowData=t.data.mainData,i.footerRowData=t.data.footerData,i.reportService.updatePaginatorDataEvent.emit(),i.dataLoading=!1,i.error=!1,i.spinner.hide(),i.showFilter(),i.reportService.resetFilterValues()):(i.dataLoading=!1,i.error=!0,i.spinner.hide(),i.errorMessage=t.errorsMessages.join(". "))}):this.reportService.getData(t,e).subscribe(function(t){t.success?(i.mainColumnDefs=t.data.mainHeaders,i.footerColumnDefs=t.data.footerHeaders,i.mainRowData=t.data.mainData,i.footerRowData=t.data.footerData,i.dataLoading=!1,i.error=!1,i.spinner.hide()):(i.dataLoading=!1,i.error=!0,i.spinner.hide(),i.errorMessage=t.errorsMessages.join(". "))})},t.prototype.onGridReady=function(t){var e=this;this.mainGridApi=t.api,this.mainGridColumnApi=t.columnApi,t.api.setRowData(this.mainRowData),this.mainGridApi.paginationSetPageSize(10),this.mainGridApi.setDomLayout("autoHeight"),this.mainGridReady=!0,this.mainConfig.noHeader&&this.mainGridApi.setHeaderHeight(0),setTimeout(function(){e.autoSizeAll()},300)},t.prototype.autoSizeAll=function(){var t=[];this.mainGridColumnApi.getAllColumns().forEach(function(e){"customizedButtonCell"!=e.userProvidedColDef.cellRenderer&&t.push(e.colId)}),this.mainGridColumnApi.autoSizeColumns(t)},t.prototype.onGridFooterReady=function(t){this.footerGridApi=t.api,this.footerGridColumnApi=t.columnApi,t.api.setRowData(this.footerRowData),this.footerGridApi.paginationSetPageSize(10),this.footerGridApi.setDomLayout("autoHeight"),this.footerGridReady=!0,this.footerConfig.noHeader&&this.footerGridApi.setHeaderHeight(0),this.footerGridApi.sizeColumnsToFit()},t.prototype.showFilter=function(){this.showFilters=!this.showFilters},t.prototype.goBack=function(){this.reportListFlag=!0,this.reportFlag=!1,this.configLoading=!0,this.dataLoading=!1,this.error=!1,this.showFilters=!1,this.footerGridReady=!1,this.mainGridReady=!1,this.dataReady=!1,this.spinner.show(),this.reportService.resetFilterValues(),this.getAllReports()},t.prototype.openSubReport=function(){this.dialogRef=this.dialog.open(S,{width:"100%",height:"90%",panelClass:"full-width-dialog"})},t.prototype.closeSubReport=function(){this.dialogRef.close()},t.decorators=[{type:e.Component,args:[{selector:"reports-lib",template:'\x3c!-- REPORT LIST --\x3e\n<div *ngIf="reportListFlag">\n <div class="report-wrapper">\n <div class="title-container">\n <p class="reports-title">Reportes</p>\n <input class="search" placeholder="Buscar reportes" type="text"\n (input)="onSearchChange($event.target.value)">\n </div>\n <div *ngFor="let category of categories">\n <app-reports-by-category *ngIf="dataReady && (getReportsFromCategory(category.id).length > 0)"\n [category]="category" [reports]="getReportsFromCategory(category.id)"></app-reports-by-category>\n </div>\n </div>\n</div>\n\n<ngx-spinner type="ball-spin-clockwise" size="medium" color="#d32020">\n <p class="spinner-text">Cargando...</p>\n</ngx-spinner>\n\n\x3c!-- REPORT --\x3e\n<div *ngIf="reportFlag">\n <div *ngIf="!configLoading && !dataLoading">\n <div *ngIf="!error else errorPanel">\n <div>\n <div class="title-header">\n <app-title-subtitle *ngIf="mainConfig.showTitle" [title]="mainConfig.title"\n [subtitle]="mainConfig.subtitle"></app-title-subtitle>\n <button *ngIf="!OpenNewTab" mat-icon-button (click)="goBack()" aria-label="Cerrar reporte">\n <mat-icon aria-hidden="false">close</mat-icon>\n </button>\n </div>\n <div class="actions-container">\n <button mat-button class="filter" *ngIf="filtersFlag" (click)="showFilter()">\n <mat-icon>filter_list</mat-icon> Filtros\n </button>\n <app-actions *ngIf="mainConfig.export" [title]="mainConfig.title" [export]="mainConfig.export"\n [agGrid]="agGrid"></app-actions>\n </div>\n <div *ngIf="filtersFlag">\n <app-filters [@isFiltersVisible]="showFilters" [filters]="mainConfig.filters" [idReport]="idReport"></app-filters>\n </div>\n </div>\n <div class="table-container">\n <ag-grid-angular #agGrid class="ag-theme-balham" [animateRows]="true" [rowData]="mainRowData"\n [columnDefs]="mainColumnDefs" [defaultColDef]="defaultColDef" rowSelection="single"\n pagination="true" [suppressPaginationPanel]="true" (gridReady)="onGridReady($event)"\n [frameworkComponents]="mainFrameworkComponents" [gridOptions]="gridOptions">\n </ag-grid-angular>\n </div>\n <div>\n <app-paginator *ngIf="mainConfig.paginator && mainGridReady" [agGrid]="agGrid"></app-paginator>\n </div>\n <br>\n \x3c!-- <div>\n <app-title-subtitle *ngIf="footerConfig.showTitle" [title]="footerConfig.title"\n [subtitle]="footerConfig.subtitle"></app-title-subtitle>\n\n <app-actions *ngIf="footerConfig.export" [title]="footerConfig.title" [export]="footerConfig.export"\n [agGrid]="agGridFooter"></app-actions>\n\n <button *ngIf="footerConfig.filters" (click)="showFilter()"> <fa-icon class="icon" [icon]="[\'fas\', \'filter\']"></fa-icon> Filtros</button>\n <div *ngIf="footerConfig.filters">\n <app-filters *ngIf="showFilters" [filters]="footerConfig.filters" [idReport]="idReport"></app-filters>\n </div>\n \n <app-paginator *ngIf="footerConfig.paginator && footerGridReady" [agGrid]="agGridFooter">\n </app-paginator>\n\n </div> --\x3e\n\n <ag-grid-angular #agGridFooter class="ag-theme-balham" [animateRows]="true" [rowData]="footerRowData"\n [columnDefs]="footerColumnDefs" rowSelection="single" pagination="true" [suppressPaginationPanel]="true"\n (gridReady)="onGridFooterReady($event)" [frameworkComponents]="footerFrameworkComponents">\n </ag-grid-angular>\n\n </div>\n </div>\n\n <ng-template #errorPanel>\n <div class="error-panel">\n <label><b>Error al cargar reporte</b></label>\n <br>\n <label>{{errorMessage}}</label>\n <br>\n <button *ngIf="!OpenNewTab" mat-raised-button class="back-button" (click)="goBack()">Volver</button>\n </div>\n </ng-template>\n\n</div>',animations:[g.trigger("isFiltersVisible",[g.state("true",g.style({opacity:1,transform:"scaleY(1.0)",transformOrigin:"top center",position:"inherit"})),g.state("false",g.style({opacity:0,transform:"scaleY(0.0)",transformOrigin:"top center",position:"absolute"})),g.transition("1 => 0",g.animate("300ms ease-in-out")),g.transition("0 => 1",g.animate("300ms ease-in-out"))])],styles:[".report-wrapper{width:100%;background-color:#f5f5f5;padding:10px;box-sizing:border-box;font-family:Roboto,sans-serif;height:100vh}.title-container{display:flex;flex-direction:column;padding:10px;margin:10px 0;background-color:#d32020}.title-container .reports-title{margin:0 0 10px;color:#fff;font-size:24px;font-weight:500}.title-container .search{width:100%}.back-button{margin-top:10px;margin-bottom:20px;text-align:right;color:#fff;background:#000}.spinner-text{color:#fff;font-family:Arial,Helvetica,sans-serif}.icon{font-size:23px}.filter-button{margin-top:20px;margin-bottom:20px;margin-right:20px;text-align:right}.title-header{display:flex;flex-flow:row;align-items:flex-start;justify-content:space-between;background:#d32020;padding:10px;color:#fff}.title-header .close{background:0 0}.actions-container{padding:10px;background:#333;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.actions-container .filter{color:#fff}.error-panel{text-align:center}label{font-size:14px;color:#888}input{background-color:#fff;border:.5px solid #707070;border-radius:2px;padding:5px 10px;display:block;color:#000;font-size:15px;height:35px;box-sizing:border-box;transition:.3s ease-in-out;outline:0}input:focus,input:hover{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}.table-container ::ng-deep .ag-theme-balham{font-family:Roboto,sans-serif}.table-container ::ng-deep .ag-theme-balham .ag-header{font-family:Roboto,sans-serif;font-weight:500;color:#333}@media (min-width:425px){.title-container{flex-direction:row;align-items:center;justify-content:space-between}.title-container .reports-title{margin:0}.title-container .search{font-size:14px;max-width:200px}}@media (min-width:768px){.formRow{margin-bottom:15px}.actions-container{justify-content:flex-end}}"]}]}],t.ctorParameters=function(){return[{type:D},{type:s.MatSnackBar},{type:l.NgxSpinnerService},{type:s.MatDialog}]},t.propDecorators={ApiBaseUrl:[{type:e.Input}],accessToken:[{type:e.Input}],OpenNewTab:[{type:e.Input}],reportIdInput:[{type:e.Input}],agGrid:[{type:e.ViewChild,args:["agGrid",{static:!1}]}],agGridFooter:[{type:e.ViewChild,args:["agGridFooter",{static:!1}]}]},t}(),k=function(){function t(t){this.reportService=t,this.invalidDate=!1}return t.prototype.ngOnInit=function(){if(this.dateFilter.data.defaultValue){var t=new Date(this.dateFilter.data.defaultValue+" 00:00:00");this.filterData={id:this.dateFilter.id,value:t}}else this.filterData={id:this.dateFilter.id};this.reportService.initialFilterData(this.filterData)},t.prototype.onDateChange=function(t){var e=new Date(t.target.value+" 00:00:00"),i=new Date(this.dateFilter.data.maxValue);e>new Date(this.dateFilter.data.minValue)&&e<i?(this.invalidDate=!1,this.filterData.value=e.toString(),this.reportService.setFilterData(this.filterData)):this.invalidDate=!0},t.decorators=[{type:e.Component,args:[{selector:"app-date-filter",template:' <div class="formRow">\n <label>{{ dateFilter.label }}</label>\n <input #date type="date" [value]="dateFilter.data.defaultValue"\n [min]="dateFilter.data.minValue" [max]="dateFilter.data.maxValue"\n (input)="onDateChange($event)">\n <small *ngIf="invalidDate"> Fecha inválida</small>\n </div> \n ',styles:["input[type=date]{font-family:Roboto,Helvetica,sans-serif;width:100%;margin-top:7px;background-color:#fff;border:.5px solid #707070;border-radius:2px;padding:5px 10px;display:block;color:#000;font-size:15px;height:35px;box-sizing:border-box;transition:.3s ease-in-out;outline:0}small{color:red}input:focus,input:hover{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}@media (min-width:768px){.formRow{margin-bottom:15px}}label{font-size:14px;color:#888}"]}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={dateFilter:[{type:e.Input}]},t}(),I=function(){function t(t){this.reportService=t,this.multiple=!1,this.selectedFilters=[]}return t.prototype.ngOnInit=function(){3===this.dropdownFilter.type&&(this.multiple=!0),this.filterData={id:this.dropdownFilter.id},this.reportService.initialFilterData(this.filterData)},t.prototype.onSelectChange=function(t){var e=[];void 0!==t&&(this.multiple?(t.forEach(function(t){e.push(t.key)}),this.filterData.value=e):this.filterData.value=t.key,this.reportService.setFilterData(this.filterData))},t.decorators=[{type:e.Component,args:[{selector:"app-dropdown-filter",template:'<div class="formRow">\n <label>{{ dropdownFilter.label }}</label>\n <ng-select #select class="select"\n [multiple]="multiple"\n [items]="dropdownFilter.data.dataSource"\n [bindLabel]="dropdownFilter.data.valueName"\n [bindValue]="dropdownFilter.data.keyName"\n [placeholder]="dropdownFilter.data.placeholder"\n [closeOnSelect]="!multiple"\n [(ngModel)]="selectedFilters"\n (change)="onSelectChange($event)">\n <ng-template ng-option-tmp let-item="item" \n let-item$="item$" let-index="index">\n <input id="item-{{index}}" type="checkbox"\n [ngModel]="item$.selected"/> \n {{item.description}}\n </ng-template>\n <ng-template ng-multi-label-tmp let-items="items" >\n <div class="ng-value" *ngFor="let item of items | slice:0:1">\n <span class="ng-value-label"> {{item.description}}</span>\n </div>\n <div class="ng-value" *ngIf="items.length > 1">\n <span class="ng-value-label">{{items.length - 1}} more...</span>\n </div>\n </ng-template>\n </ng-select>\n</div>\n',styles:[".select{width:100%;margin-top:7px;min-width:175px}::ng-deep .ng-select .ng-select-container{background-color:#fff;border:.5px solid #707070;border-radius:2px;min-height:35px;transition:.3s ease-in-out}::ng-deep .ng-select .ng-select-container:focus,::ng-deep .ng-select .ng-select-container:hover{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}::ng-deep .ng-select.ng-select-single .ng-select-container{height:35px}::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:8px;font-size:15px}label{font-size:14px;color:#888}"]}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={dropdownFilter:[{type:e.Input}]},t}(),P=function(){function t(t){this.reportService=t,this.invalidNumber=!1}return t.prototype.ngOnInit=function(){if(this.numericFilter.data.defaultValue){var t=this.numericFilter.data.defaultValue.toString();this.filterData={id:this.numericFilter.id,value:t}}else this.filterData={id:this.numericFilter.id};this.reportService.initialFilterData(this.filterData)},t.prototype.onNumberChange=function(t){var e=t.target.value,i=String(e);e>this.numericFilter.data.minValue&&e<this.numericFilter.data.maxValue&&i.length<this.numericFilter.data.maxLength?(this.invalidNumber=!1,this.filterData.value=i,this.reportService.setFilterData(this.filterData)):this.invalidNumber=!0},t.decorators=[{type:e.Component,args:[{selector:"app-numeric-filter",template:'<div class="formRow">\n <label>{{ numericFilter.label }} </label>\n <input type="number" \n [min]="numericFilter.data.minValue" \n [max]="numericFilter.data.maxValue"\n [attr.maxlength]="numericFilter.data.maxLength" \n (keyup)="onNumberChange($event)" \n [placeholder]="numericFilter.data.placeholder"\n [value]="numericFilter.data.defaultValue">\n \n <small *ngIf="invalidNumber"> Campo Inválido</small>\n\n</div> \n \n',styles:["input{margin-top:7px;width:100%;background-color:#fff;border:.5px solid #707070;border-radius:2px;padding:5px 10px;display:block;color:#000;font-size:15px;height:35px;box-sizing:border-box;transition:.3s ease-in-out;outline:0}input:focus,input:hover{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}@media (min-width:768px){.formRow{margin-bottom:15px}}label{font-size:14px;color:#888}"]}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={numericFilter:[{type:e.Input}]},t}(),z=function(){function t(t){this.reportService=t}return t.prototype.ngOnInit=function(){this.filterData={id:this.textFilter.id},this.reportService.initialFilterData(this.filterData)},t.prototype.onTextChange=function(t){this.filterData.value=t,this.reportService.setFilterData(this.filterData)},t.decorators=[{type:e.Component,args:[{selector:"app-text-filter",template:'<div class="formRow">\n <label>{{ textFilter.label }} </label>\n <input type="text" [attr.maxlength]="textFilter.data.maxLength" [placeholder]="textFilter.data.placeholder"\n (input)="onTextChange($event.target.value)">\n</div>',styles:["input{margin-top:7px;background-color:#fff;border:.5px solid #707070;border-radius:2px;padding:5px 10px;display:block;color:#000;font-size:15px;height:35px;box-sizing:border-box;transition:.3s ease-in-out;outline:0}input:focus,input:hover{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}@media (min-width:768px){.formRow{margin-bottom:15px}}label{font-size:14px;color:#888}"]}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={textFilter:[{type:e.Input}]},t}(),G=function(){function t(t){this.http=t}return t.prototype.getAllFilters=function(t){return this.http.get("../../../assets/autocomplete.json").pipe(h.map(function(t){return t}))},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:i.HttpClient}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(i.HttpClient))},token:t,providedIn:"root"}),t}(),M=function(){function t(t,e){this.autocompleteService=t,this.reportService=e,this.dataReady=!1,this.multiple=!1,this.selectedFilters=[],this.autocompleteFilterData=[],this.searchTerms=new m.Subject}return t.prototype.ngOnInit=function(){this.filterData={id:this.autocompleteFilterConfig.id},this.reportService.initialFilterData(this.filterData),7===this.autocompleteFilterConfig.type&&(this.multiple=!0),this.initGetFilteredData()},t.prototype.initGetFilteredData=function(){var t=this;this.searchTerms.pipe(h.startWith(""),h.debounceTime(400),h.distinctUntilChanged(),h.switchMap(function(e){return t.autocompleteService.getAllFilters(e)})).subscribe(function(e){return t.filteredDataHandler(e)})},t.prototype.filteredDataHandler=function(t){this.autocompleteFilterData=t,this.dataReady=!0},t.prototype.search=function(t){this.searchTerms.next(t)},t.prototype.onSelectChange=function(t){var e=[];void 0!==t&&(this.multiple?(t.forEach(function(t){e.push(t.key.toString())}),this.filterData.value=e):this.filterData.value=t.key.toString(),this.reportService.setFilterData(this.filterData))},t.decorators=[{type:e.Component,args:[{selector:"app-autocomplete-filter",template:'<div class="formRow">\n <label>{{ autocompleteFilterConfig.label }}</label>\n <ng-select class="autocomplete"\n [disabled] ="!dataReady"\n [items]="autocompleteFilterData.dataSource"\n [bindLabel]="autocompleteFilterData.valueName"\n [bindValue]="autocompleteFilterData.keyName"\n (search)="search($event)"\n [multiple]="multiple"\n [closeOnSelect]="!multiple"\n [(ngModel)]="selectedFilters"\n (change)="onSelectChange($event)">\n\n <ng-template ng-option-tmp let-item="item" let-item$="item$" let-index="index">\n <input id="item-{{index}}" type="checkbox"\n [ngModel]="item$.selected"/> {{item.description}}\n </ng-template>\n\n <ng-template ng-multi-label-tmp let-items="items" >\n <div class="ng-value" *ngFor="let item of items | slice:0:1">\n <span class="ng-value-label"> {{item.description}}</span>\n </div>\n <div class="ng-value" *ngIf="items.length > 1">\n <span class="ng-value-label">{{items.length - 1}} more...</span>\n </div>\n </ng-template>\n </ng-select>\n</div>',styles:[".autocomplete{font-size:15px;margin-top:7px;min-width:175px}::ng-deep ng-select ::ng-deep .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{display:flex;align-items:center;padding:0 10px;font-size:15px}::ng-deep ng-select ::ng-deep .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#333;color:#fff}::ng-deep ng-select ::ng-deep .ng-dropdown-panel.ng-select-bottom{border-bottom-right-radius:2px;border-bottom-left-radius:2px;border-color:#000;transition:.3s ease-in-out}::ng-deep ng-select .ng-select-container .ng-value-container .ng-input{top:8px!important}::ng-deep ng-select .ng-select-container .ng-value-container .ng-input input{padding:0;height:auto}::ng-deep .ng-select.ng-select-opened>.ng-select-container{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}label{font-size:14px;color:#888}"]}]}],t.ctorParameters=function(){return[{type:G},{type:D}]},t.propDecorators={autocompleteFilterConfig:[{type:e.Input}]},t}(),E=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[k,I,P,z,M],exports:[k,I,P,z,M],imports:[r.CommonModule,n.FormsModule,o.RouterModule,b.NgSelectModule]}]}],t}(),A=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[],exports:[],imports:[r.CommonModule,n.FormsModule,E],providers:[],bootstrap:[]}]}],t}(),T=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[],exports:[],imports:[r.CommonModule,n.FormsModule],providers:[],bootstrap:[]}]}],t}(),j=function(){function t(t){this.reportService=t,this.openNewTab=this.reportService.openNewTab}return t.prototype.ngOnInit=function(){},t.prototype.goToReport=function(t){this.openNewTab?window.open(window.location.href+"/"+t):this.reportService.loadReportDataEvent.emit(t)},t.decorators=[{type:e.Component,args:[{selector:"app-reports-by-category",template:'<p class="category-title">{{category.name}}</p>\n<div *ngFor="let report of reports">\n <button class="single-report" (click)="goToReport(report.id)">\n <span>{{ report.title }}</span>\n <mat-icon>chevron_right</mat-icon>\n </button>\n</div>',styles:[".category-title{color:#000;font-weight:500;font-size:16px;line-height:2;text-align:left;width:100%;border-bottom:1px solid #a9a9a9;margin-bottom:10px}.single-report{display:flex;flex-flow:row;align-items:center;justify-content:space-between;background-color:#fff;margin-bottom:6px;border-radius:3px;border:1px solid #d9d9d9;transition:.3s ease-in-out}button{font-size:13px;text-decoration:none;padding:7px;display:block;width:100%;transition:.3s ease-in-out;z-index:2;border:none;background:0 0;text-align:left;cursor:pointer}button:focus,button:hover{transition:.3s ease-in-out;color:#d32020}input{background-color:#fff;border:.5px solid #707070;border-radius:2px;padding:5px 10px;display:block;color:#000;font-size:15px;height:35px;box-sizing:border-box;transition:.3s ease-in-out;outline:0}input:focus,input:hover{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}@media (min-width:768px){.formRow{margin-bottom:15px}}"]}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={category:[{type:e.Input}],reports:[{type:e.Input}]},t}(),L=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Component,args:[{selector:"app-title-subtitle",template:'<h1>{{title}}</h1>\n<h2 *ngIf="subtitle">{{subtitle}}</h2>\n',styles:["h1{font-size:1.2em;font-weight:400;margin:0 0 5px}h2{font-size:.8em;line-height:1.5;font-weight:400;margin:0}@media (min-width:768px){h1{font-size:1.4em}h2{font-size:.9em}}"]}]}],t.ctorParameters=function(){return[]},t.propDecorators={title:[{type:e.Input}],subtitle:[{type:e.Input}]},t}(),O=function(){function t(t){this.datePipe=t}return t.prototype.transformDate=function(){var t=new Date;return this.datePipe.transform(t,"dd/MM/yyyy HH:mm")},t.prototype.generateExcel=function(t,e,i){var n=new x.Workbook,r=n.addWorksheet("VK Report"),o=r.addRow([i]);o.font={name:"Calibri",family:4,size:16,color:{argb:"F8F6F6"}},o.alignment={horizontal:"left",vertical:"middle"},o.getCell(1).fill={type:"pattern",pattern:"solid",fgColor:{argb:"AC1717"}},o.getCell(1).border={top:{style:"medium"},left:{style:"medium"},bottom:{style:"medium"},right:{style:"medium"}},r.mergeCells("A1:J2");var a=this.transformDate()+" - Cantidad de registros: "+e.length,s=r.addRow([a]);s.font={name:"Calibri",family:4,size:14},s.alignment={horizontal:"left",vertical:"middle"},r.mergeCells("A3:J4"),r.addRow([]);var l=r.addRow(t);l.font={name:"Calibri",family:4,size:11,color:{argb:"F8F6F6"}},l.eachCell(function(t,e){t.fill={type:"pattern",pattern:"solid",fgColor:{argb:"AC1717"},bgColor:{}},t.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),e[0].toString().split(",").forEach(function(e,i){var n=Math.max(e.length,t[i].length);r.getColumn(i+1).width=1.6*n}),r.addRows(e),n.xlsx.writeBuffer().then(function(t){var e=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});y.saveAs(e,i)})},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:r.DatePipe}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(r.DatePipe))},token:t,providedIn:"root"}),t}();v.vfs=w.pdfMake.vfs;var H=function(){function t(t){this.excelService=t,this.csv=!1,this.pdf=!1,this.excel=!1}return t.prototype.ngOnInit=function(){this.csv=this.export.csv,this.pdf=this.export.pdf,this.excel=this.export.excel},t.prototype.exportCSV=function(){var t={columnKeys:[]};this.agGrid.columnDefs.forEach(function(e){"customizedButtonCell"!=e.cellRenderer&&t.columnKeys.push(e.field)}),this.agGrid.api.exportDataAsCsv(t)},t.prototype.generatePdf=function(){this.getColumns(!0),this.getData(!0);var t={pageOrientation:"landscape",content:[{layout:"lightHorizontalLines",table:{headerRows:1,widths:this.widths,body:this.body}}]};v.createPdf(t).download(this.title)},t.prototype.generateExcel=function(){this.getColumns(!1),this.getData(!1),this.excelService.generateExcel(this.columns,this.dataExcel,this.title)},t.prototype.getColumns=function(t){var e=this;this.keysCustomizedCell=[],this.keysSubReportButton=[],this.columns=[],this.widths=[],this.body=[],this.agGrid.columnApi.getAllColumns().forEach(function(i){if("customizedCell"===i.getColDef().cellRenderer&&e.keysCustomizedCell.push(i.getColDef().field),"customizedButtonCell"!==i.getColDef().cellRenderer){var n=i.getColDef().headerName;t?(e.columns.push(n),e.widths.push("auto")):e.columns.push(n)}else e.keysSubReportButton.push(i.getColDef().field)})},t.prototype.getData=function(t){var e=this;this.dataExcel=[],this.body=[];var i=this.agGrid.rowData;t&&this.body.push(this.columns),i.forEach(function(i){var n=[];Object.keys(i).map(function(t){(i[t],-1===e.keysSubReportButton.indexOf(t))&&(-1!=e.keysCustomizedCell.indexOf(t)&&(-1!=i[t].indexOf("<")?(i[t].split("<").concat().forEach(function(e){-1!=e.indexOf(">")&&""!=e.split(">")[1]&&(i[t]=e.split(">")[1])}),n.push(i[t])):n.push(i[t])))});t?e.body.push(n):e.dataExcel.push(n)})},t.decorators=[{type:e.Component,args:[{selector:"app-actions",template:'\x3c!-- <mat-menu #saveAsMenu="matMenu"> --\x3e\r\n <button *ngIf="csv" class="menu" mat-button (click)=" exportCSV()"><fa-icon class="icon" [icon]="[\'fas\', \'file-csv\']"></fa-icon> CSV</button>\r\n <button *ngIf="pdf" class="menu" mat-button (click)="generatePdf()" ><fa-icon class="icon" [icon]="[\'fas\', \'file-pdf\']"></fa-icon> PDF</button>\r\n <button *ngIf="excel" class="menu" mat-button (click)="generateExcel()" ><fa-icon class="icon" [icon]="[\'fas\', \'file-excel\']"></fa-icon> EXCEL</button>\r\n\x3c!-- </mat-menu>\r\n<button mat-button class="menu" [matMenuTriggerFor]="saveAsMenu">\r\n <mat-icon>save_alt</mat-icon> Guardar como\r\n</button> --\x3e',styles:[".menu{color:#fff}.icon{font-size:20px}"]}]}],t.ctorParameters=function(){return[{type:O}]},t.propDecorators={title:[{type:e.Input}],agGrid:[{type:e.Input}],export:[{type:e.Input}]},t}(),B=function(){function t(t){this.reportService=t}return t.prototype.ngOnInit=function(){this.filters!==[]&&this.filters[0].order&&(this.filters=this.filters.sort(function(t,e){return t.order-e.order}))},t.prototype.getFilteredData=function(){this.reportService.getFilteredDataEvent.emit()},t.decorators=[{type:e.Component,args:[{selector:"app-filters",template:'<div class="filter-container">\n <p class="filter-title">Filtrar reporte</p>\n <div fxLayout="column" fxLayout.gt-xs="row wrap" fxLayoutGap="15px"\n fxLayoutAlign="start start">\n <div class="filter" fxFlex="100" fxFlex.gt-xs="0 1 calc(25% - 15px)" fxFlex.gt-sm="0 1 calc(20% - 15px)" *ngFor="let filter of filters; let i = index">\n <app-date-filter *ngIf="(filter.order === (i + 1)) && (filter.type === 1)" [dateFilter]="filter">\n </app-date-filter>\n\n <app-dropdown-filter *ngIf="(filter.order === (i + 1)) && ((filter.type === 2) || (filter.type === 3))"\n [dropdownFilter]="filter">\n </app-dropdown-filter>\n\n <app-numeric-filter *ngIf="(filter.order === (i + 1)) && (filter.type === 4)" [numericFilter]="filter">\n </app-numeric-filter>\n\n <app-text-filter *ngIf="(filter.order === (i + 1)) && (filter.type === 5)" [textFilter]="filter">\n </app-text-filter>\n\n <app-autocomplete-filter *ngIf="(filter.order === (i + 1)) && ((filter.type === 6) || (filter.type === 7))"\n [autocompleteFilterConfig]="filter">\n </app-autocomplete-filter>\n </div>\n </div>\n <button mat-raised-button class="filter-button" (click)="getFilteredData()">Aplicar Filtros</button>\n</div>',styles:[".filter-title{margin:0 0 10px;padding:5px 0;font-weight:500;border-bottom:1px solid #333}.filter-button{margin-top:20px;margin-bottom:20px;text-align:right;color:#fff;background:#000}.filter-container{padding:10px}.filter{width:100%}label{font-size:14px;color:#888}"]}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={idReport:[{type:e.Input}],filters:[{type:e.Input}]},t}(),N=function(){function t(t){var e=this;this.reportService=t,this.updatePaginatorDataEvent=this.reportService.updatePaginatorDataEvent.subscribe(function(){return e.initPaginator()})}return t.prototype.ngOnInit=function(){this.initPaginator()},t.prototype.initPaginator=function(){this.getcurrentPage(),this.getTotalPages(),this.getPages()},t.prototype.onBtFirst=function(){this.agGrid.api.paginationGoToFirstPage(),this.getcurrentPage()},t.prototype.onBtLast=function(){this.agGrid.api.paginationGoToLastPage(),this.getcurrentPage(),this.getPages()},t.prototype.onBtNext=function(){this.agGrid.api.paginationGoToNextPage(),this.getcurrentPage()},t.prototype.onBtPrevious=function(){this.agGrid.api.paginationGoToPreviousPage(),this.getcurrentPage()},t.prototype.showRows=function(t){this.agGrid.api.paginationSetPageSize(t),this.getTotalPages(),this.getPages()},t.prototype.getcurrentPage=function(){this.currentPage=this.agGrid.api.paginationGetCurrentPage()+1},t.prototype.getTotalPages=function(){this.totalPages=this.agGrid.api.paginationGetTotalPages()},t.prototype.getPages=function(){this.pages=this.agGrid.api.paginationGetPageSize()},t.prototype.goToPage=function(t){var e=t.target.value;this.agGrid.api.paginationGoToPage(e-1),this.getcurrentPage()},t.prototype.showRow=function(t){var e=t.target.value;this.agGrid.api.paginationSetPageSize(e),this.getTotalPages(),this.getPages()},t.decorators=[{type:e.Component,args:[{selector:"app-paginator",template:'<div class="paginator-container">\n <div class="paginator-buttons">\n <button (click)="onBtFirst()" aria-label="Primera página" mat-icon-button>\n <mat-icon>first_page</mat-icon>\n </button>\n <button (click)="onBtPrevious()" aria-label="Página anterior" mat-icon-button>\n <mat-icon>chevron_left</mat-icon>\n </button>\n \n <input (change)="goToPage($event)" size="4" type="number" [value]="currentPage">\n\n <button (click)="onBtNext()" aria-label="Página siguiente" mat-icon-button>\n <mat-icon>chevron_right</mat-icon>\n </button>\n <button (click)="onBtLast()" aria-label="Última página" mat-icon-button>\n <mat-icon>last_page</mat-icon>\n </button>\n </div>\n <p class="paginator-text">Página {{ currentPage }} de {{totalPages}}</p>\n <div class="items-per-page">\n <input (change)="showRow($event)" min="1" max="100" maxlength="3" #rows type="number" [value]="pages" name="itemsPerPage"><label for="itemsPerPage">registros por página</label> \n </div>\n</div>\n\n\n\x3c!-- <button (click)="showRows(rows.value)" >Mostrar</button> --\x3e',styles:[".paginator-container{background-color:#fff;border-radius:5px;padding:10px 0;max-width:300px;margin:10px auto 0;box-shadow:3px 3px 15px 0 rgba(0,0,0,.15)}.paginator-container .paginator-buttons{display:flex;flex-direction:row;align-items:center;justify-content:center}.paginator-container .paginator-buttons input{max-width:40px;text-align:center}.paginator-container .paginator-text{font-size:12px;margin:5px 0;text-align:center}.paginator-container .items-per-page{display:flex;flex-direction:row;align-items:center;justify-content:center;border-top:1px solid #000;margin:0 20px;padding-top:10px}.paginator-container .items-per-page input{max-width:60px;text-align:center}.paginator-container .items-per-page label{margin-left:5px;font-size:12px}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input{background-color:#fff;border:.5px solid #707070;border-radius:2px;padding:5px 10px;display:block;color:#000;font-size:15px;height:35px;box-sizing:border-box;transition:.3s ease-in-out;outline:0}input:focus,input:hover{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}input[type=number]{-moz-appearance:textfield}.icon{font-size:30px}@media (min-width:768px){.paginator-container{display:flex;flex-direction:row;align-items:center;justify-items:center;max-width:550px}.paginator-container .paginator-text{margin-left:5px}.paginator-container .items-per-page{border-top:0;border-left:1px solid #000;padding-top:0;padding-left:10px}}"]}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={agGrid:[{type:e.Input}]},t}(),V=function(){function t(t){t.addIcons(u.faFileCsv,u.faFileExcel,u.faFilePdf),t.addIconPacks(u.fas)}return t.decorators=[{type:e.NgModule,args:[{declarations:[R,j,C,F,L,H,B,N,S],exports:[R,j,C,F,L,H,B,N,S],entryComponents:[S,L],imports:[r.CommonModule,n.FormsModule,s.MatIconModule,l.NgxSpinnerModule,i.HttpClientModule,A,T,a.MatSnackBarModule,E,d.FontAwesomeModule,p.AgGridModule.withComponents([C,F]),s.MatButtonModule,c.FlexLayoutModule,o.RouterModule,s.MatDialogModule,s.MatProgressBarModule,s.MatChipsModule],providers:[r.DatePipe]}]}],t.ctorParameters=function(){return[{type:d.FaIconLibrary}]},t}(),q=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[V],exports:[V]}]}],t}();t.VKReportsModule=q,t.ɵa=V,t.ɵb=R,t.ɵc=D,t.ɵd=j,t.ɵe=C,t.ɵf=F,t.ɵg=L,t.ɵh=H,t.ɵi=O,t.ɵj=B,t.ɵk=N,t.ɵl=S,t.ɵm=A,t.ɵn=E,t.ɵo=k,t.ɵp=I,t.ɵq=P,t.ɵr=z,t.ɵs=M,t.ɵt=G,t.ɵu=T,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common/http"),require("@angular/forms"),require("@angular/common"),require("@angular/router"),require("@angular/material/snack-bar"),require("@angular/material"),require("ngx-spinner"),require("ag-grid-angular"),require("@angular/flex-layout"),require("@fortawesome/angular-fontawesome"),require("@fortawesome/free-solid-svg-icons"),require("@angular/animations"),require("@angular/platform-browser"),require("rxjs"),require("rxjs/operators"),require("@ng-select/ng-select"),require("exceljs/dist/exceljs.min.js"),require("file-saver"),require("pdfmake/build/pdfmake"),require("pdfmake/build/vfs_fonts")):"function"==typeof define&&define.amd?define("vk-reports",["exports","@angular/core","@angular/common/http","@angular/forms","@angular/common","@angular/router","@angular/material/snack-bar","@angular/material","ngx-spinner","ag-grid-angular","@angular/flex-layout","@fortawesome/angular-fontawesome","@fortawesome/free-solid-svg-icons","@angular/animations","@angular/platform-browser","rxjs","rxjs/operators","@ng-select/ng-select","exceljs/dist/exceljs.min.js","file-saver","pdfmake/build/pdfmake","pdfmake/build/vfs_fonts"],e):e((t=t||self)["vk-reports"]={},t.ng.core,t.ng.common.http,t.ng.forms,t.ng.common,t.ng.router,t.ng.material["snack-bar"],t.ng.material,t.ngxSpinner,t.agGridAngular,t.ng["flex-layout"],t.angularFontawesome,t.freeSolidSvgIcons,t.ng.animations,t.ng.platformBrowser,t.rxjs,t.rxjs.operators,t.ngSelect,t.exceljs_min_js,t.fileSaver,t.pdfMake,t.pdfFonts)}(this,function(t,e,i,n,o,r,a,s,l,p,c,u,d,g,f,m,h,b,x,y,v,w){"use strict";v=v&&v.hasOwnProperty("default")?v.default:v,w=w&&w.hasOwnProperty("default")?w.default:w;var C=function(){function t(t){this._sanitizer=t}return t.prototype.ngOnInit=function(){},t.prototype.agInit=function(t){var e=t.value;this.sanitize(e)},t.prototype.refresh=function(t){return this.cellvalue=t.value,!0},t.prototype.sanitize=function(t){return this.cellvalue=this._sanitizer.bypassSecurityTrustHtml(t),this.cellvalue},t.decorators=[{type:e.Component,args:[{selector:"app-customized-cell",template:'<div [innerHTML]="cellvalue"></div>',styles:[""]}]}],t.ctorParameters=function(){return[{type:f.DomSanitizer}]},t}(),D=function(){function t(t){this.http=t,this.filterValues=[],this.getFilteredDataEvent=new e.EventEmitter,this.updatePaginatorDataEvent=new e.EventEmitter,this.loadReportDataEvent=new e.EventEmitter,this.openSubReportDialogEvent=new e.EventEmitter,this.closeSubReportDialogEvent=new e.EventEmitter,this.showErrorSubReportDialogEvent=new e.EventEmitter}return t.prototype.getReports=function(){return this._setAuthHeaders(this.accessToken),this.http.get("../../../assets/reports.json")},t.prototype.getConfig=function(t){return this._setAuthHeaders(this.accessToken),this.http.get("../../../assets/config-html-mainyfoot.json")},t.prototype.getData=function(t,e){if(e){var i=[];this.filterValues.forEach(function(t){t.value&&i.push(t)});var n=encodeURIComponent(JSON.stringify(i));return this.http.get(this.apiBaseUrl+"get-data?reportId="+t+"&filterAsJSON="+n,{headers:this.authHeaders})}return this.http.get("../../../assets/data-html-mainyfoot.json")},t.prototype.getSubReportConfig=function(t){return this._setAuthHeaders(this.accessToken),this.http.get(this.apiBaseUrl+"get-config?reportId="+t,{headers:this.authHeaders})},t.prototype.getSubReportData=function(t,e){return this.http.get(this.apiBaseUrl+"get-data?reportId="+t+"&filterAsJSON="+e,{headers:this.authHeaders})},t.prototype.initialFilterData=function(t){this.filterValues.push(t)},t.prototype.resetFilterValues=function(){this.filterValues=[]},t.prototype.setFilterData=function(t){this.filterValues.forEach(function(e){e.id===t.id&&(e.value=t.value)})},t.prototype._setAuthHeaders=function(t){var e="Bearer "+t;this.authHeaders=new i.HttpHeaders({"Content-Type":"application/json",Authorization:e})},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:i.HttpClient}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(i.HttpClient))},token:t,providedIn:"root"}),t}(),S=function(){function t(t){this.reportService=t,this.gridReady=!1,this.dataGridReady=!1,this.loading=!0,this.defaultColDef={resizable:!0},this.mainFrameworkComponents={customizedCell:C},this.subReportId=this.reportService.subReportData.id;var e=this.reportService.subReportData.filters;this.filtersAsJSON=encodeURIComponent(JSON.stringify(e))}return t.prototype.ngOnInit=function(){this.getSubReport()},t.prototype.getSubReport=function(){var t=this;this.reportService.getSubReportConfig(this.subReportId).subscribe(function(e){e.success?(t.mainConfig=e.data.mainConfig,t.getSubReportData()):(t.loading=!1,t.errorMessage=e.errorsMessages.join(". "),t.reportService.showErrorSubReportDialogEvent.emit(t.errorMessage),t.reportService.closeSubReportDialogEvent.emit())})},t.prototype.getSubReportData=function(){var t=this;this.reportService.getSubReportData(this.subReportId,this.filtersAsJSON).subscribe(function(e){e.success?(t.mainColumnDefs=e.data.mainHeaders,t.mainRowData=e.data.mainData,t.dataGridReady=!0,t.loading=!1):(t.loading=!1,t.errorMessage=e.errorsMessages.join(". "),t.reportService.closeSubReportDialogEvent.emit(),t.reportService.showErrorSubReportDialogEvent.emit(t.errorMessage))})},t.prototype.onGridReady=function(t){var e=this;this.gridApi=t.api,this.gridColumnApi=t.columnApi,t.api.setRowData(this.mainRowData),this.gridApi.paginationSetPageSize(10),this.gridApi.setDomLayout("autoHeight"),this.gridReady=!0,setTimeout(function(){e.autoSizeAll()},300)},t.prototype.autoSizeAll=function(){var t=[];this.gridColumnApi.getAllColumns().forEach(function(e){t.push(e.colId)}),this.gridColumnApi.autoSizeColumns(t)},t.prototype.closeDialog=function(){this.reportService.closeSubReportDialogEvent.emit()},t.decorators=[{type:e.Component,args:[{selector:"app-sub-report",template:'<ng-container *ngIf="loading; else mainTemplate">\r\n <div class="loading">\r\n <mat-progress-bar color="warn" mode="indeterminate"></mat-progress-bar>\r\n <p>Cargando ...</p>\r\n </div>\r\n </ng-container>\r\n\r\n\r\n \r\n<ng-template #mainTemplate>\r\n \r\n<div *ngIf="dataGridReady">\r\n <div class="title-header">\r\n <app-title-subtitle *ngIf="mainConfig.showTitle" [title]="mainConfig.title"\r\n [subtitle]="mainConfig.subtitle"></app-title-subtitle>\r\n <button mat-icon-button (click)=" closeDialog()" aria-label="Cerrar reporte">\r\n <mat-icon aria-hidden="false">close</mat-icon>\r\n </button>\r\n </div>\r\n <div class="actions-container">\r\n <app-actions *ngIf="mainConfig.export" [title]="mainConfig.title" [export]="mainConfig.export"\r\n [agGrid]="agGrid"></app-actions>\r\n </div>\r\n\r\n <ag-grid-angular #agGrid class="ag-theme-balham" [animateRows]="true" \r\n [rowData]="mainRowData"\r\n [columnDefs]="mainColumnDefs" [defaultColDef]="defaultColDef" \r\n rowSelection="single"\r\n pagination="true" [suppressPaginationPanel]="true" \r\n (gridReady)="onGridReady($event)"\r\n [frameworkComponents]="mainFrameworkComponents">\r\n </ag-grid-angular>\r\n\r\n <app-paginator *ngIf="mainConfig.paginator && gridReady" [agGrid]="agGrid"></app-paginator>\r\n\r\n</div>\r\n</ng-template>\r\n',styles:[".button-container{text-align:right;margin-bottom:10px}.title-header{display:flex;flex-flow:row;align-items:flex-start;justify-content:space-between;padding:10px}.title-header .close{background:0 0}.actions-container{padding:10px;background:#333;display:flex;flex-direction:row;justify-content:space-between;align-items:center;color:#fff}"]}]}],t.ctorParameters=function(){return[{type:D}]},t}(),F=function(){function t(t){this.reportService=t}return t.prototype.ngOnInit=function(){},t.prototype.agInit=function(t){this.cellvalue=t.value,this.myStyles={backgroundColor:t.value.backgroundColor,color:t.value.labelColor}},t.prototype.refresh=function(t){return this.cellvalue=t.value,!0},t.prototype.openDialog=function(){this.reportService.openSubReportDialogEvent.emit(this.cellvalue)},t.decorators=[{type:e.Component,args:[{selector:"app-customized-button-cell",template:'\x3c!-- <div><button mat-flat-button [ngStyle]="myStyles" (click)="openDialog()">{{cellvalue.label}}</button></div> --\x3e\r\n\x3c!-- <div><mat-chip [ngStyle]="myStyles" (click)="openDialog()">{{cellvalue.label}}</mat-chip></div> --\x3e\r\n<mat-chip-list class="mat-chip-list-stacked" #chipList>\r\n <mat-chip [ngStyle]="myStyles" (click)="openDialog()">{{cellvalue.label}}</mat-chip>\r\n</mat-chip-list>',styles:[".align{text-align:center;align-content:center}"]}]}],t.ctorParameters=function(){return[{type:D}]},t}(),R=function(){function t(t,e,i,n){var o=this;this.reportService=t,this.snack=e,this.spinner=i,this.dialog=n,this.OpenNewTab=!0,this.reportIdInput=null,this.reportListFlag=!0,this.dataReady=!1,this.reportFlag=!1,this.configLoading=!0,this.dataLoading=!1,this.error=!1,this.showFilters=!1,this.filtersFlag=!1,this.footerGridReady=!1,this.mainGridReady=!1,this.defaultColDef={resizable:!0,minWidth:5},this.gridOptions={rowHeight:34},this.getFilteredDataSubscription=this.reportService.getFilteredDataEvent.subscribe(function(){return o.getReportData(o.idReport,!0)}),this.getReportDataSubscription=this.reportService.loadReportDataEvent.subscribe(function(t){o.idReport=t,o.loadReport(t)}),this.openSubReportDialogSubscription=this.reportService.openSubReportDialogEvent.subscribe(function(t){o.reportService.subReportData=t,o.openSubReport()}),this.closeSubReportDialogSubscription=this.reportService.closeSubReportDialogEvent.subscribe(function(){o.closeSubReport()}),this.showErrorSubReportDialogSubscription=this.reportService.showErrorSubReportDialogEvent.subscribe(function(t){o.openSnackBar(t)})}return t.prototype.ngOnInit=function(){if(this.reportService.apiBaseUrl=this.ApiBaseUrl,this.reportService.openNewTab=this.OpenNewTab,this.reportService.accessToken=this.accessToken,this.reportService.resetFilterValues(),this.spinner.show(),this.footerFrameworkComponents={customizedCell:C},this.mainFrameworkComponents={customizedCell:C,customizedButtonCell:F},null!==this.reportIdInput)return this.idReport=this.reportIdInput,void this.loadReport(this.idReport);this.getAllReports()},t.prototype.getAllReports=function(){var t=this;this.reportService.getReports().subscribe(function(e){e.success?(t.categories=e.data.categories.sort(function(t,e){return t.order-e.order}),t.reports=e.data.reports,t.filteredReports=t.reports,t.dataReady=!0,t.spinner.hide()):(t.spinner.hide(),t.errorMessage=e.errorsMessages.join(". "),t.openSnackBar(t.errorMessage))})},t.prototype.getReportsFromCategory=function(t){return this.filteredReports.filter(function(e){return e.category===t}).sort(function(t,e){return t.order-e.order})},t.prototype.onSearchChange=function(t){this.filteredReports=this.reports.filter(function(e){return e.title.toLowerCase().includes(t.toLowerCase())||e.subtitle.toLowerCase().includes(t.toLowerCase())})},t.prototype.openSnackBar=function(t){this.snack.open(t,"Cerrar",{duration:5e3})},t.prototype.loadReport=function(t){this.getReport(t),this.reportListFlag=!1,this.reportFlag=!0,this.filtersFlag=!1},t.prototype.getReport=function(t){var e=this;this.spinner.show(),this.reportService.getConfig(t).subscribe(function(i){i.success?(e.error=!1,e.mainConfig=i.data.mainConfig,0!==e.mainConfig.filters.length&&(e.filtersFlag=!0),e.footerConfig=i.data.footerConfig,e.configLoading=!1,e.getReportData(t,!1)):(e.configLoading=!1,e.error=!0,e.spinner.hide(),e.errorMessage=i.errorsMessages.join(". "))})},t.prototype.getReportData=function(t,e){var i=this;this.spinner.show(),this.dataLoading=!0,e?this.reportService.getData(t,e).subscribe(function(t){t.success?(i.mainGridReady=!1,i.mainColumnDefs=t.data.mainHeaders,i.footerColumnDefs=t.data.footerHeaders,i.mainRowData=t.data.mainData,i.footerRowData=t.data.footerData,i.reportService.updatePaginatorDataEvent.emit(),i.dataLoading=!1,i.error=!1,i.spinner.hide(),i.showFilter(),i.reportService.resetFilterValues()):(i.dataLoading=!1,i.error=!0,i.spinner.hide(),i.errorMessage=t.errorsMessages.join(". "))}):this.reportService.getData(t,e).subscribe(function(t){t.success?(i.mainColumnDefs=t.data.mainHeaders,i.footerColumnDefs=t.data.footerHeaders,i.mainRowData=t.data.mainData,i.footerRowData=t.data.footerData,i.dataLoading=!1,i.error=!1,i.spinner.hide()):(i.dataLoading=!1,i.error=!0,i.spinner.hide(),i.errorMessage=t.errorsMessages.join(". "))})},t.prototype.onGridReady=function(t){var e=this;this.mainGridApi=t.api,this.mainGridColumnApi=t.columnApi,t.api.setRowData(this.mainRowData),this.mainGridApi.paginationSetPageSize(10),this.mainGridApi.setDomLayout("autoHeight"),this.mainGridReady=!0,this.mainConfig.noHeader&&this.mainGridApi.setHeaderHeight(0),setTimeout(function(){e.autoSizeAll()},300)},t.prototype.autoSizeAll=function(){var t=[];this.mainGridColumnApi.getAllColumns().forEach(function(e){"customizedButtonCell"!=e.userProvidedColDef.cellRenderer&&t.push(e.colId)}),this.mainGridColumnApi.autoSizeColumns(t)},t.prototype.onGridFooterReady=function(t){this.footerGridApi=t.api,this.footerGridColumnApi=t.columnApi,t.api.setRowData(this.footerRowData),this.footerGridApi.paginationSetPageSize(10),this.footerGridApi.setDomLayout("autoHeight"),this.footerGridReady=!0,this.footerConfig.noHeader&&this.footerGridApi.setHeaderHeight(0),this.footerGridApi.sizeColumnsToFit()},t.prototype.showFilter=function(){this.showFilters=!this.showFilters},t.prototype.goBack=function(){this.reportListFlag=!0,this.reportFlag=!1,this.configLoading=!0,this.dataLoading=!1,this.error=!1,this.showFilters=!1,this.footerGridReady=!1,this.mainGridReady=!1,this.dataReady=!1,this.spinner.show(),this.reportService.resetFilterValues(),this.getAllReports()},t.prototype.openSubReport=function(){this.dialogRef=this.dialog.open(S,{width:"100%",height:"90%",panelClass:"full-width-dialog"})},t.prototype.closeSubReport=function(){this.dialogRef.close()},t.decorators=[{type:e.Component,args:[{selector:"reports-lib",template:'\x3c!-- REPORT LIST --\x3e\n<div *ngIf="reportListFlag">\n <div class="report-wrapper">\n <div class="title-container">\n <p class="reports-title">Reportes</p>\n <input class="search" placeholder="Buscar reportes" type="text"\n (input)="onSearchChange($event.target.value)">\n </div>\n <div *ngFor="let category of categories">\n <app-reports-by-category *ngIf="dataReady && (getReportsFromCategory(category.id).length > 0)"\n [category]="category" [reports]="getReportsFromCategory(category.id)"></app-reports-by-category>\n </div>\n </div>\n</div>\n\n<ngx-spinner type="ball-spin-clockwise" size="medium" color="#d32020">\n <p class="spinner-text">Cargando...</p>\n</ngx-spinner>\n\n\x3c!-- REPORT --\x3e\n<div *ngIf="reportFlag">\n <div *ngIf="!configLoading && !dataLoading">\n <div *ngIf="!error else errorPanel">\n <div>\n <div class="title-header">\n <app-title-subtitle *ngIf="mainConfig.showTitle" [title]="mainConfig.title"\n [subtitle]="mainConfig.subtitle"></app-title-subtitle>\n <button *ngIf="!OpenNewTab" mat-icon-button (click)="goBack()" aria-label="Cerrar reporte">\n <mat-icon aria-hidden="false">close</mat-icon>\n </button>\n </div>\n <div class="actions-container">\n <button mat-button class="filter" *ngIf="filtersFlag" (click)="showFilter()">\n <mat-icon>filter_list</mat-icon> Filtros\n </button>\n <app-actions *ngIf="mainConfig.export" [title]="mainConfig.title" [export]="mainConfig.export"\n [agGrid]="agGrid"></app-actions>\n </div>\n <div *ngIf="filtersFlag">\n <app-filters [@isFiltersVisible]="showFilters" [filters]="mainConfig.filters" [idReport]="idReport"></app-filters>\n </div>\n </div>\n <div class="table-container">\n <ag-grid-angular #agGrid class="ag-theme-balham" [animateRows]="true" [rowData]="mainRowData"\n [columnDefs]="mainColumnDefs" [defaultColDef]="defaultColDef" rowSelection="single"\n pagination="true" [suppressPaginationPanel]="true" (gridReady)="onGridReady($event)"\n [frameworkComponents]="mainFrameworkComponents" [gridOptions]="gridOptions">\n </ag-grid-angular>\n </div>\n <div>\n <app-paginator *ngIf="mainConfig.paginator && mainGridReady" [agGrid]="agGrid"></app-paginator>\n </div>\n <br>\n \x3c!-- <div>\n <app-title-subtitle *ngIf="footerConfig.showTitle" [title]="footerConfig.title"\n [subtitle]="footerConfig.subtitle"></app-title-subtitle>\n\n <app-actions *ngIf="footerConfig.export" [title]="footerConfig.title" [export]="footerConfig.export"\n [agGrid]="agGridFooter"></app-actions>\n\n <button *ngIf="footerConfig.filters" (click)="showFilter()"> <fa-icon class="icon" [icon]="[\'fas\', \'filter\']"></fa-icon> Filtros</button>\n <div *ngIf="footerConfig.filters">\n <app-filters *ngIf="showFilters" [filters]="footerConfig.filters" [idReport]="idReport"></app-filters>\n </div>\n \n <app-paginator *ngIf="footerConfig.paginator && footerGridReady" [agGrid]="agGridFooter">\n </app-paginator>\n\n </div> --\x3e\n\n <ag-grid-angular #agGridFooter class="ag-theme-balham" [animateRows]="true" [rowData]="footerRowData"\n [columnDefs]="footerColumnDefs" rowSelection="single" pagination="true" [suppressPaginationPanel]="true"\n (gridReady)="onGridFooterReady($event)" [frameworkComponents]="footerFrameworkComponents">\n </ag-grid-angular>\n\n </div>\n </div>\n\n <ng-template #errorPanel>\n <div class="error-panel">\n <label><b>Error al cargar reporte</b></label>\n <br>\n <label>{{errorMessage}}</label>\n <br>\n <button *ngIf="!OpenNewTab" mat-raised-button class="back-button" (click)="goBack()">Volver</button>\n </div>\n </ng-template>\n\n</div>',animations:[g.trigger("isFiltersVisible",[g.state("true",g.style({opacity:1,transform:"scaleY(1.0)",transformOrigin:"top center",position:"inherit"})),g.state("false",g.style({opacity:0,transform:"scaleY(0.0)",transformOrigin:"top center",position:"absolute"})),g.transition("1 => 0",g.animate("300ms ease-in-out")),g.transition("0 => 1",g.animate("300ms ease-in-out"))])],styles:[".report-wrapper{width:100%;background-color:#f5f5f5;padding:10px;box-sizing:border-box;font-family:Roboto,sans-serif;height:100vh}.title-container{display:flex;flex-direction:column;padding:10px;margin:10px 0;background-color:#d32020}.title-container .reports-title{margin:0 0 10px;color:#fff;font-size:24px;font-weight:500}.title-container .search{width:100%}.back-button{margin-top:10px;margin-bottom:20px;text-align:right;color:#fff;background:#000}.spinner-text{color:#fff;font-family:Arial,Helvetica,sans-serif}.icon{font-size:23px}.filter-button{margin-top:20px;margin-bottom:20px;margin-right:20px;text-align:right}.title-header{display:flex;flex-flow:row;align-items:flex-start;justify-content:space-between;background:#d32020;padding:10px;color:#fff}.title-header .close{background:0 0}.actions-container{padding:10px;background:#333;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.actions-container .filter{color:#fff}.error-panel{text-align:center}label{font-size:14px;color:#888}input{background-color:#fff;border:.5px solid #707070;border-radius:2px;padding:5px 10px;display:block;color:#000;font-size:15px;height:35px;box-sizing:border-box;transition:.3s ease-in-out;outline:0}input:focus,input:hover{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}.table-container ::ng-deep .ag-theme-balham{font-family:Roboto,sans-serif}.table-container ::ng-deep .ag-theme-balham .ag-header{font-family:Roboto,sans-serif;font-weight:500;color:#333}@media (min-width:425px){.title-container{flex-direction:row;align-items:center;justify-content:space-between}.title-container .reports-title{margin:0}.title-container .search{font-size:14px;max-width:200px}}@media (min-width:768px){.formRow{margin-bottom:15px}.actions-container{justify-content:flex-end}}"]}]}],t.ctorParameters=function(){return[{type:D},{type:s.MatSnackBar},{type:l.NgxSpinnerService},{type:s.MatDialog}]},t.propDecorators={ApiBaseUrl:[{type:e.Input}],accessToken:[{type:e.Input}],OpenNewTab:[{type:e.Input}],reportIdInput:[{type:e.Input}],agGrid:[{type:e.ViewChild,args:["agGrid",{static:!1}]}],agGridFooter:[{type:e.ViewChild,args:["agGridFooter",{static:!1}]}]},t}(),k=function(){function t(t){this.reportService=t,this.invalidDate=!1}return t.prototype.ngOnInit=function(){if(this.dateFilter.data.defaultValue){var t=new Date(this.dateFilter.data.defaultValue+" 00:00:00");this.filterData={id:this.dateFilter.id,value:t}}else this.filterData={id:this.dateFilter.id};this.reportService.initialFilterData(this.filterData)},t.prototype.onDateChange=function(t){var e=new Date(t.target.value+" 00:00:00"),i=new Date(this.dateFilter.data.maxValue);e>new Date(this.dateFilter.data.minValue)&&e<i?(this.invalidDate=!1,this.filterData.value=e.toString(),this.reportService.setFilterData(this.filterData)):this.invalidDate=!0},t.decorators=[{type:e.Component,args:[{selector:"app-date-filter",template:' <div class="formRow">\n <label>{{ dateFilter.label }}</label>\n <input #date type="date" [value]="dateFilter.data.defaultValue"\n [min]="dateFilter.data.minValue" [max]="dateFilter.data.maxValue"\n (input)="onDateChange($event)">\n <small *ngIf="invalidDate"> Fecha inválida</small>\n </div> \n ',styles:["input[type=date]{font-family:Roboto,Helvetica,sans-serif;width:100%;margin-top:7px;background-color:#fff;border:.5px solid #707070;border-radius:2px;padding:5px 10px;display:block;color:#000;font-size:15px;height:35px;box-sizing:border-box;transition:.3s ease-in-out;outline:0}small{color:red}input:focus,input:hover{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}@media (min-width:768px){.formRow{margin-bottom:15px}}label{font-size:14px;color:#888}"]}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={dateFilter:[{type:e.Input}]},t}(),I=function(){function t(t){this.reportService=t,this.multiple=!1,this.selectedFilters=[]}return t.prototype.ngOnInit=function(){3===this.dropdownFilter.type&&(this.multiple=!0),this.filterData={id:this.dropdownFilter.id},this.reportService.initialFilterData(this.filterData)},t.prototype.onSelectChange=function(t){var e=[];void 0!==t&&(this.multiple?(t.forEach(function(t){e.push(t.key)}),this.filterData.value=e):this.filterData.value=t.key,this.reportService.setFilterData(this.filterData))},t.decorators=[{type:e.Component,args:[{selector:"app-dropdown-filter",template:'<div class="formRow">\n <label>{{ dropdownFilter.label }}</label>\n <ng-select #select class="select"\n [multiple]="multiple"\n [items]="dropdownFilter.data.dataSource"\n [bindLabel]="dropdownFilter.data.valueName"\n [bindValue]="dropdownFilter.data.keyName"\n [placeholder]="dropdownFilter.data.placeholder"\n [closeOnSelect]="!multiple"\n [(ngModel)]="selectedFilters"\n (change)="onSelectChange($event)">\n <ng-template ng-option-tmp let-item="item" \n let-item$="item$" let-index="index">\n <input id="item-{{index}}" type="checkbox"\n [ngModel]="item$.selected"/> \n {{item.description}}\n </ng-template>\n <ng-template ng-multi-label-tmp let-items="items" >\n <div class="ng-value" *ngFor="let item of items | slice:0:1">\n <span class="ng-value-label"> {{item.description}}</span>\n </div>\n <div class="ng-value" *ngIf="items.length > 1">\n <span class="ng-value-label">{{items.length - 1}} more...</span>\n </div>\n </ng-template>\n </ng-select>\n</div>\n',styles:[".select{width:100%;margin-top:7px;min-width:175px}::ng-deep .ng-select .ng-select-container{background-color:#fff;border:.5px solid #707070;border-radius:2px;min-height:35px;transition:.3s ease-in-out}::ng-deep .ng-select .ng-select-container:focus,::ng-deep .ng-select .ng-select-container:hover{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}::ng-deep .ng-select.ng-select-single .ng-select-container{height:35px}::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:8px;font-size:15px}label{font-size:14px;color:#888}"]}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={dropdownFilter:[{type:e.Input}]},t}(),P=function(){function t(t){this.reportService=t,this.invalidNumber=!1}return t.prototype.ngOnInit=function(){if(this.numericFilter.data.defaultValue){var t=this.numericFilter.data.defaultValue.toString();this.filterData={id:this.numericFilter.id,value:t}}else this.filterData={id:this.numericFilter.id};this.reportService.initialFilterData(this.filterData)},t.prototype.onNumberChange=function(t){var e=t.target.value,i=String(e);e>this.numericFilter.data.minValue&&e<this.numericFilter.data.maxValue&&i.length<this.numericFilter.data.maxLength?(this.invalidNumber=!1,this.filterData.value=i,this.reportService.setFilterData(this.filterData)):this.invalidNumber=!0},t.decorators=[{type:e.Component,args:[{selector:"app-numeric-filter",template:'<div class="formRow">\n <label>{{ numericFilter.label }} </label>\n <input type="number" \n [min]="numericFilter.data.minValue" \n [max]="numericFilter.data.maxValue"\n [attr.maxlength]="numericFilter.data.maxLength" \n (keyup)="onNumberChange($event)" \n [placeholder]="numericFilter.data.placeholder"\n [value]="numericFilter.data.defaultValue">\n \n <small *ngIf="invalidNumber"> Campo Inválido</small>\n\n</div> \n \n',styles:["input{margin-top:7px;width:100%;background-color:#fff;border:.5px solid #707070;border-radius:2px;padding:5px 10px;display:block;color:#000;font-size:15px;height:35px;box-sizing:border-box;transition:.3s ease-in-out;outline:0}input:focus,input:hover{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}@media (min-width:768px){.formRow{margin-bottom:15px}}label{font-size:14px;color:#888}"]}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={numericFilter:[{type:e.Input}]},t}(),z=function(){function t(t){this.reportService=t}return t.prototype.ngOnInit=function(){this.filterData={id:this.textFilter.id},this.reportService.initialFilterData(this.filterData)},t.prototype.onTextChange=function(t){this.filterData.value=t,this.reportService.setFilterData(this.filterData)},t.decorators=[{type:e.Component,args:[{selector:"app-text-filter",template:'<div class="formRow">\n <label>{{ textFilter.label }} </label>\n <input type="text" [attr.maxlength]="textFilter.data.maxLength" [placeholder]="textFilter.data.placeholder"\n (input)="onTextChange($event.target.value)">\n</div>',styles:["input{margin-top:7px;background-color:#fff;border:.5px solid #707070;border-radius:2px;padding:5px 10px;display:block;color:#000;font-size:15px;height:35px;box-sizing:border-box;transition:.3s ease-in-out;outline:0}input:focus,input:hover{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}@media (min-width:768px){.formRow{margin-bottom:15px}}label{font-size:14px;color:#888}"]}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={textFilter:[{type:e.Input}]},t}(),G=function(){function t(t){this.http=t}return t.prototype.getAllFilters=function(t){return this.http.get("../../../assets/autocomplete.json").pipe(h.map(function(t){return t}))},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:i.HttpClient}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(i.HttpClient))},token:t,providedIn:"root"}),t}(),M=function(){function t(t,e){this.autocompleteService=t,this.reportService=e,this.dataReady=!1,this.multiple=!1,this.selectedFilters=[],this.autocompleteFilterData=[],this.searchTerms=new m.Subject}return t.prototype.ngOnInit=function(){this.filterData={id:this.autocompleteFilterConfig.id},this.reportService.initialFilterData(this.filterData),7===this.autocompleteFilterConfig.type&&(this.multiple=!0),this.initGetFilteredData()},t.prototype.initGetFilteredData=function(){var t=this;this.searchTerms.pipe(h.startWith(""),h.debounceTime(400),h.distinctUntilChanged(),h.switchMap(function(e){return t.autocompleteService.getAllFilters(e)})).subscribe(function(e){return t.filteredDataHandler(e)})},t.prototype.filteredDataHandler=function(t){this.autocompleteFilterData=t,this.dataReady=!0},t.prototype.search=function(t){this.searchTerms.next(t)},t.prototype.onSelectChange=function(t){var e=[];void 0!==t&&(this.multiple?(t.forEach(function(t){e.push(t.key.toString())}),this.filterData.value=e):this.filterData.value=t.key.toString(),this.reportService.setFilterData(this.filterData))},t.decorators=[{type:e.Component,args:[{selector:"app-autocomplete-filter",template:'<div class="formRow">\n <label>{{ autocompleteFilterConfig.label }}</label>\n <ng-select class="autocomplete"\n [disabled] ="!dataReady"\n [items]="autocompleteFilterData.dataSource"\n [bindLabel]="autocompleteFilterData.valueName"\n [bindValue]="autocompleteFilterData.keyName"\n (search)="search($event)"\n [multiple]="multiple"\n [closeOnSelect]="!multiple"\n [(ngModel)]="selectedFilters"\n (change)="onSelectChange($event)">\n\n <ng-template ng-option-tmp let-item="item" let-item$="item$" let-index="index">\n <input id="item-{{index}}" type="checkbox"\n [ngModel]="item$.selected"/> {{item.description}}\n </ng-template>\n\n <ng-template ng-multi-label-tmp let-items="items" >\n <div class="ng-value" *ngFor="let item of items | slice:0:1">\n <span class="ng-value-label"> {{item.description}}</span>\n </div>\n <div class="ng-value" *ngIf="items.length > 1">\n <span class="ng-value-label">{{items.length - 1}} more...</span>\n </div>\n </ng-template>\n </ng-select>\n</div>',styles:[".autocomplete{font-size:15px;margin-top:7px;min-width:175px}::ng-deep ng-select ::ng-deep .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{display:flex;align-items:center;padding:0 10px;font-size:15px}::ng-deep ng-select ::ng-deep .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#333;color:#fff}::ng-deep ng-select ::ng-deep .ng-dropdown-panel.ng-select-bottom{border-bottom-right-radius:2px;border-bottom-left-radius:2px;border-color:#000;transition:.3s ease-in-out}::ng-deep ng-select .ng-select-container .ng-value-container .ng-input{top:8px!important}::ng-deep ng-select .ng-select-container .ng-value-container .ng-input input{padding:0;height:auto}::ng-deep .ng-select.ng-select-opened>.ng-select-container{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}label{font-size:14px;color:#888}"]}]}],t.ctorParameters=function(){return[{type:G},{type:D}]},t.propDecorators={autocompleteFilterConfig:[{type:e.Input}]},t}(),E=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[k,I,P,z,M],exports:[k,I,P,z,M],imports:[o.CommonModule,n.FormsModule,r.RouterModule,b.NgSelectModule]}]}],t}(),A=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[],exports:[],imports:[o.CommonModule,n.FormsModule,E],providers:[],bootstrap:[]}]}],t}(),j=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[],exports:[],imports:[o.CommonModule,n.FormsModule],providers:[],bootstrap:[]}]}],t}(),T=function(){function t(t){this.reportService=t,this.openNewTab=this.reportService.openNewTab}return t.prototype.ngOnInit=function(){},t.prototype.goToReport=function(t){this.openNewTab?window.open(window.location.href+"/"+t):this.reportService.loadReportDataEvent.emit(t)},t.decorators=[{type:e.Component,args:[{selector:"app-reports-by-category",template:'<p class="category-title">{{category.name}}</p>\n<div *ngFor="let report of reports">\n <button class="single-report" (click)="goToReport(report.id)">\n <span>{{ report.title }}</span>\n <mat-icon>chevron_right</mat-icon>\n </button>\n</div>',styles:[".category-title{color:#000;font-weight:500;font-size:16px;line-height:2;text-align:left;width:100%;border-bottom:1px solid #a9a9a9;margin-bottom:10px}.single-report{display:flex;flex-flow:row;align-items:center;justify-content:space-between;background-color:#fff;margin-bottom:6px;border-radius:3px;border:1px solid #d9d9d9;transition:.3s ease-in-out}button{font-size:13px;text-decoration:none;padding:7px;display:block;width:100%;transition:.3s ease-in-out;z-index:2;border:none;background:0 0;text-align:left;cursor:pointer}button:focus,button:hover{transition:.3s ease-in-out;color:#d32020}input{background-color:#fff;border:.5px solid #707070;border-radius:2px;padding:5px 10px;display:block;color:#000;font-size:15px;height:35px;box-sizing:border-box;transition:.3s ease-in-out;outline:0}input:focus,input:hover{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}@media (min-width:768px){.formRow{margin-bottom:15px}}"]}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={category:[{type:e.Input}],reports:[{type:e.Input}]},t}(),L=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Component,args:[{selector:"app-title-subtitle",template:'<h1>{{title}}</h1>\n<h2 *ngIf="subtitle">{{subtitle}}</h2>\n',styles:["h1{font-size:1.2em;font-weight:400;margin:0 0 5px}h2{font-size:.8em;line-height:1.5;font-weight:400;margin:0}@media (min-width:768px){h1{font-size:1.4em}h2{font-size:.9em}}"]}]}],t.ctorParameters=function(){return[]},t.propDecorators={title:[{type:e.Input}],subtitle:[{type:e.Input}]},t}(),O=function(){function t(t){this.datePipe=t}return t.prototype.transformDate=function(){var t=new Date;return this.datePipe.transform(t,"dd/MM/yyyy HH:mm")},t.prototype.generateExcel=function(t,e,i){var n=new x.Workbook,o=n.addWorksheet("VK Report"),r=o.addRow([i]);r.font={name:"Calibri",family:4,size:16,color:{argb:"F8F6F6"}},r.alignment={horizontal:"left",vertical:"middle"},r.getCell(1).fill={type:"pattern",pattern:"solid",fgColor:{argb:"AC1717"}},r.getCell(1).border={top:{style:"medium"},left:{style:"medium"},bottom:{style:"medium"},right:{style:"medium"}},o.mergeCells("A1:J2");var a=this.transformDate()+" - Cantidad de registros: "+e.length,s=o.addRow([a]);s.font={name:"Calibri",family:4,size:14},s.alignment={horizontal:"left",vertical:"middle"},o.mergeCells("A3:J4"),o.addRow([]);var l=o.addRow(t);l.font={name:"Calibri",family:4,size:11,color:{argb:"F8F6F6"}},l.eachCell(function(t,e){t.fill={type:"pattern",pattern:"solid",fgColor:{argb:"AC1717"},bgColor:{}},t.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),e[0].toString().split(",").forEach(function(e,i){var n=Math.max(e.length,t[i].length);o.getColumn(i+1).width=1.6*n}),o.addRows(e),n.xlsx.writeBuffer().then(function(t){var e=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});y.saveAs(e,i)})},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:o.DatePipe}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(o.DatePipe))},token:t,providedIn:"root"}),t}();v.vfs=w.pdfMake.vfs;var H=function(){function t(t){this.excelService=t,this.csv=!1,this.pdf=!1,this.excel=!1}return t.prototype.ngOnInit=function(){this.csv=this.export.csv,this.pdf=this.export.pdf,this.excel=this.export.excel},t.prototype.exportCSV=function(){var t={columnKeys:[]};this.agGrid.columnDefs.forEach(function(e){"customizedButtonCell"!=e.cellRenderer&&t.columnKeys.push(e.field)}),this.agGrid.api.exportDataAsCsv(t)},t.prototype.generatePdf=function(){this.getColumns(!0),this.getData(!0);var t={pageOrientation:"landscape",content:[{layout:"lightHorizontalLines",table:{headerRows:1,widths:this.widths,body:this.body}}]};v.createPdf(t).open()},t.prototype.generateExcel=function(){this.getColumns(!1),this.getData(!1),this.excelService.generateExcel(this.columns,this.dataExcel,this.title)},t.prototype.getColumns=function(t){var e=this;this.keysCustomizedCell=[],this.keysSubReportButton=[],this.columns=[],this.widths=[],this.body=[],this.agGrid.columnApi.getAllColumns().forEach(function(i){if("customizedCell"===i.getColDef().cellRenderer&&e.keysCustomizedCell.push(i.getColDef().field),"customizedButtonCell"!==i.getColDef().cellRenderer){var n=i.getColDef().headerName;t?(e.columns.push(n),e.widths.push("auto")):e.columns.push(n)}else e.keysSubReportButton.push(i.getColDef().field)})},t.prototype.getData=function(t){var e=this;this.dataExcel=[],this.body=[];var i=this.agGrid.rowData;t&&this.body.push(this.columns),i.forEach(function(i){var n=[];Object.keys(i).map(function(t){(i[t],-1===e.keysSubReportButton.indexOf(t))&&(-1!=e.keysCustomizedCell.indexOf(t)&&(-1!=i[t].indexOf("<")?(i[t].split("<").concat().forEach(function(e){-1!=e.indexOf(">")&&""!=e.split(">")[1]&&(i[t]=e.split(">")[1])}),n.push(i[t])):n.push(i[t])))});t?e.body.push(n):e.dataExcel.push(n)})},t.decorators=[{type:e.Component,args:[{selector:"app-actions",template:'\x3c!-- <mat-menu #saveAsMenu="matMenu"> --\x3e\r\n <button *ngIf="csv" class="menu" mat-button (click)=" exportCSV()"><fa-icon class="icon" [icon]="[\'fas\', \'file-csv\']"></fa-icon> CSV</button>\r\n <button *ngIf="pdf" class="menu" mat-button (click)="generatePdf()" ><fa-icon class="icon" [icon]="[\'fas\', \'file-pdf\']"></fa-icon> PDF</button>\r\n <button *ngIf="excel" class="menu" mat-button (click)="generateExcel()" ><fa-icon class="icon" [icon]="[\'fas\', \'file-excel\']"></fa-icon> EXCEL</button>\r\n\x3c!-- </mat-menu>\r\n<button mat-button class="menu" [matMenuTriggerFor]="saveAsMenu">\r\n <mat-icon>save_alt</mat-icon> Guardar como\r\n</button> --\x3e',styles:[".menu{color:#fff}.icon{font-size:20px}"]}]}],t.ctorParameters=function(){return[{type:O}]},t.propDecorators={title:[{type:e.Input}],agGrid:[{type:e.Input}],export:[{type:e.Input}]},t}(),N=function(){function t(t){this.reportService=t}return t.prototype.ngOnInit=function(){this.filters!==[]&&this.filters[0].order&&(this.filters=this.filters.sort(function(t,e){return t.order-e.order}))},t.prototype.getFilteredData=function(){this.reportService.getFilteredDataEvent.emit()},t.decorators=[{type:e.Component,args:[{selector:"app-filters",template:'<div class="filter-container">\n <p class="filter-title">Filtrar reporte</p>\n <div fxLayout="column" fxLayout.gt-xs="row wrap" fxLayoutGap="15px"\n fxLayoutAlign="start start">\n <div class="filter" fxFlex="100" fxFlex.gt-xs="0 1 calc(25% - 15px)" fxFlex.gt-sm="0 1 calc(20% - 15px)" *ngFor="let filter of filters; let i = index">\n <app-date-filter *ngIf="(filter.order === (i + 1)) && (filter.type === 1)" [dateFilter]="filter">\n </app-date-filter>\n\n <app-dropdown-filter *ngIf="(filter.order === (i + 1)) && ((filter.type === 2) || (filter.type === 3))"\n [dropdownFilter]="filter">\n </app-dropdown-filter>\n\n <app-numeric-filter *ngIf="(filter.order === (i + 1)) && (filter.type === 4)" [numericFilter]="filter">\n </app-numeric-filter>\n\n <app-text-filter *ngIf="(filter.order === (i + 1)) && (filter.type === 5)" [textFilter]="filter">\n </app-text-filter>\n\n <app-autocomplete-filter *ngIf="(filter.order === (i + 1)) && ((filter.type === 6) || (filter.type === 7))"\n [autocompleteFilterConfig]="filter">\n </app-autocomplete-filter>\n </div>\n </div>\n <button mat-raised-button class="filter-button" (click)="getFilteredData()">Aplicar Filtros</button>\n</div>',styles:[".filter-title{margin:0 0 10px;padding:5px 0;font-weight:500;border-bottom:1px solid #333}.filter-button{margin-top:20px;margin-bottom:20px;text-align:right;color:#fff;background:#000}.filter-container{padding:10px}.filter{width:100%}label{font-size:14px;color:#888}"]}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={idReport:[{type:e.Input}],filters:[{type:e.Input}]},t}(),B=function(){function t(t){var e=this;this.reportService=t,this.updatePaginatorDataEvent=this.reportService.updatePaginatorDataEvent.subscribe(function(){return e.initPaginator()})}return t.prototype.ngOnInit=function(){this.initPaginator()},t.prototype.initPaginator=function(){this.getcurrentPage(),this.getTotalPages(),this.getPages()},t.prototype.onBtFirst=function(){this.agGrid.api.paginationGoToFirstPage(),this.getcurrentPage()},t.prototype.onBtLast=function(){this.agGrid.api.paginationGoToLastPage(),this.getcurrentPage(),this.getPages()},t.prototype.onBtNext=function(){this.agGrid.api.paginationGoToNextPage(),this.getcurrentPage()},t.prototype.onBtPrevious=function(){this.agGrid.api.paginationGoToPreviousPage(),this.getcurrentPage()},t.prototype.showRows=function(t){this.agGrid.api.paginationSetPageSize(t),this.getTotalPages(),this.getPages()},t.prototype.getcurrentPage=function(){this.currentPage=this.agGrid.api.paginationGetCurrentPage()+1},t.prototype.getTotalPages=function(){this.totalPages=this.agGrid.api.paginationGetTotalPages()},t.prototype.getPages=function(){this.pages=this.agGrid.api.paginationGetPageSize()},t.prototype.goToPage=function(t){var e=t.target.value;this.agGrid.api.paginationGoToPage(e-1),this.getcurrentPage()},t.prototype.showRow=function(t){var e=t.target.value;this.agGrid.api.paginationSetPageSize(e),this.getTotalPages(),this.getPages()},t.decorators=[{type:e.Component,args:[{selector:"app-paginator",template:'<div class="paginator-container">\n <div class="paginator-buttons">\n <button (click)="onBtFirst()" aria-label="Primera página" mat-icon-button>\n <mat-icon>first_page</mat-icon>\n </button>\n <button (click)="onBtPrevious()" aria-label="Página anterior" mat-icon-button>\n <mat-icon>chevron_left</mat-icon>\n </button>\n \n <input (change)="goToPage($event)" size="4" type="number" [value]="currentPage">\n\n <button (click)="onBtNext()" aria-label="Página siguiente" mat-icon-button>\n <mat-icon>chevron_right</mat-icon>\n </button>\n <button (click)="onBtLast()" aria-label="Última página" mat-icon-button>\n <mat-icon>last_page</mat-icon>\n </button>\n </div>\n <p class="paginator-text">Página {{ currentPage }} de {{totalPages}}</p>\n <div class="items-per-page">\n <input (change)="showRow($event)" min="1" max="100" maxlength="3" #rows type="number" [value]="pages" name="itemsPerPage"><label for="itemsPerPage">registros por página</label> \n </div>\n</div>\n\n\n\x3c!-- <button (click)="showRows(rows.value)" >Mostrar</button> --\x3e',styles:[".paginator-container{background-color:#fff;border-radius:5px;padding:10px 0;max-width:300px;margin:10px auto 0;box-shadow:3px 3px 15px 0 rgba(0,0,0,.15)}.paginator-container .paginator-buttons{display:flex;flex-direction:row;align-items:center;justify-content:center}.paginator-container .paginator-buttons input{max-width:40px;text-align:center}.paginator-container .paginator-text{font-size:12px;margin:5px 0;text-align:center}.paginator-container .items-per-page{display:flex;flex-direction:row;align-items:center;justify-content:center;border-top:1px solid #000;margin:0 20px;padding-top:10px}.paginator-container .items-per-page input{max-width:60px;text-align:center}.paginator-container .items-per-page label{margin-left:5px;font-size:12px}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input{background-color:#fff;border:.5px solid #707070;border-radius:2px;padding:5px 10px;display:block;color:#000;font-size:15px;height:35px;box-sizing:border-box;transition:.3s ease-in-out;outline:0}input:focus,input:hover{border-color:#000;box-shadow:0 0 4px 0 rgba(0,0,0,.2);transition:.3s ease-in-out}input[type=number]{-moz-appearance:textfield}.icon{font-size:30px}@media (min-width:768px){.paginator-container{display:flex;flex-direction:row;align-items:center;justify-items:center;max-width:550px}.paginator-container .paginator-text{margin-left:5px}.paginator-container .items-per-page{border-top:0;border-left:1px solid #000;padding-top:0;padding-left:10px}}"]}]}],t.ctorParameters=function(){return[{type:D}]},t.propDecorators={agGrid:[{type:e.Input}]},t}(),V=function(){function t(t){t.addIcons(d.faFileCsv,d.faFileExcel,d.faFilePdf),t.addIconPacks(d.fas)}return t.decorators=[{type:e.NgModule,args:[{declarations:[R,T,C,F,L,H,N,B,S],exports:[R,T,C,F,L,H,N,B,S],entryComponents:[S,L],imports:[o.CommonModule,n.FormsModule,s.MatIconModule,l.NgxSpinnerModule,i.HttpClientModule,A,j,a.MatSnackBarModule,E,u.FontAwesomeModule,p.AgGridModule.withComponents([C,F]),s.MatButtonModule,c.FlexLayoutModule,r.RouterModule,s.MatDialogModule,s.MatProgressBarModule,s.MatChipsModule],providers:[o.DatePipe]}]}],t.ctorParameters=function(){return[{type:u.FaIconLibrary}]},t}(),q=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[V],exports:[V]}]}],t}();t.VKReportsModule=q,t.ɵa=V,t.ɵb=R,t.ɵc=D,t.ɵd=T,t.ɵe=C,t.ɵf=F,t.ɵg=L,t.ɵh=H,t.ɵi=O,t.ɵj=N,t.ɵk=B,t.ɵl=S,t.ɵm=A,t.ɵn=E,t.ɵo=k,t.ɵp=I,t.ɵq=P,t.ɵr=z,t.ɵs=M,t.ɵt=G,t.ɵu=j,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=vk-reports.umd.min.js.map

@@ -67,4 +67,4 @@ /**

};
// pdfMake.createPdf(documentDefinition).open();
pdfMake.createPdf(documentDefinition).download(this.title);
// pdfMake.createPdf(documentDefinition).download(this.title);
pdfMake.createPdf(documentDefinition).open();
}

@@ -220,2 +220,2 @@ /**

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9ucy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly92ay1yZXBvcnRzLyIsInNvdXJjZXMiOlsibGliL3JlcG9ydHMvY29tcG9uZW50cy9yZXBvcnQvY29tcG9uZW50cy9hY3Rpb25zL2FjdGlvbnMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6RCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDaEQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFFL0UsT0FBTyxPQUFPLE1BQU0sdUJBQXVCLENBQUM7QUFDNUMsT0FBTyxRQUFRLE1BQU0seUJBQXlCLENBQUM7QUFDL0MsT0FBTyxDQUFDLEdBQUcsR0FBRyxRQUFRLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQztBQVFuQyxNQUFNLE9BQU8sZ0JBQWdCOzs7O0lBb0IzQixZQUFtQixZQUFnQztRQUFoQyxpQkFBWSxHQUFaLFlBQVksQ0FBb0I7UUFsQm5ELFFBQUcsR0FBWSxLQUFLLENBQUM7U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sdW1ucy5wdXNoKGhlYWRlck5hbWUpO1xuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmtleXNTdWJSZXBvcnRCdXR0b24ucHVzaChjb2x1bW4uZ2V0Q29sRGVmKCkuZmllbGQpO1xuICAgICAgfVxuICAgIH0pO1xuICB9XG5cbiAgZ2V0RGF0YShleHBvcnRQOiBib29sZWFuKSB7XG4gICAgdGhpcy5kYXRhRXhjZWwgPSBbXTtcbiAgICB0aGlzLmJvZHkgPSBbXTtcbiAgICBsZXQgcm93cyA9IHRoaXMuYWdHcmlkLnJvd0RhdGE7XG4gICAgaWYgKGV4cG9ydFApIHtcbiAgICAgIHRoaXMuYm9keS5wdXNoKHRoaXMuY29sdW1ucyk7XG4gICAgfVxuICAgIHJvd3MuZm9yRWFjaCgocm93KSA9PiB7XG4gICAgICBsZXQgZGF0YU5vQnV0dG9uID0gW107XG4gICAgICBsZXQgZGF0YSA9IE9iamVjdC5rZXlzKHJvdykubWFwKChrZXkpID0+IHtcbiAgICAgICAgcm93W2tleV07XG4gICAgICAgIGlmICh0aGlzLmtleXNTdWJSZXBvcnRCdXR0b24uaW5kZXhPZihrZXkpID09PSAtMSkge1xuICAgICAgICAgIGlmICh0aGlzLmtleXNDdXN0b21pemVkQ2VsbC5pbmRleE9mKGtleSkgIT0gLTEpIHtcbiAgICAgICAgICAgIGlmIChyb3dba2V5XS5pbmRleE9mKCc8JykgIT0gLTEpIHtcbiAgICAgICAgICAgICAgbGV0IGFycmF5Um93ID0gcm93W2tleV0uc3BsaXQoJzwnKS5jb25jYXQoKTtcbiAgICAgICAgICAgICAgYXJyYXlSb3cuZm9yRWFjaChlbGVtZW50ID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoZWxlbWVudC5pbmRleE9mKCc+JykgIT0gLTEpIHtcbiAgICAgICAgICAgICAgICAgIGlmIChlbGVtZW50LnNwbGl0KCc+JylbMV0gIT0gJycpIHtcbiAgICAgICAgICAgICAgICAgICAgcm93W2tleV0gPSBlbGVtZW50LnNwbGl0KCc+JylbMV07XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgZGF0YU5vQnV0dG9uLnB1c2gocm93W2tleV0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgZGF0YU5vQnV0dG9uLnB1c2gocm93W2tleV0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICB9KTtcbiAgICAgIGlmIChleHBvcnRQKSB7XG4gICAgICAgIHRoaXMuYm9keS5wdXNoKGRhdGFOb0J1dHRvbik7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmRhdGFFeGNlbC5wdXNoKGRhdGFOb0J1dHRvbik7XG4gICAgICB9XG4gICAgfSk7XG4gIH1cblxufVxuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9ucy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly92ay1yZXBvcnRzLyIsInNvdXJjZXMiOlsibGliL3JlcG9ydHMvY29tcG9uZW50cy9yZXBvcnQvY29tcG9uZW50cy9hY3Rpb25zL2FjdGlvbnMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6RCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDaEQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFFL0UsT0FBTyxPQUFPLE1BQU0sdUJBQXVCLENBQUM7QUFDNUMsT0FBTyxRQUFRLE1BQU0seUJBQXlCLENBQUM7QUFDL0MsT0FBTyxDQUFDLEdBQUcsR0F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oKS5oZWFkZXJOYW1lO1xuICAgICAgICBpZiAoZXhwb3J0UCkge1xuICAgICAgICAgIHRoaXMuY29sdW1ucy5wdXNoKGhlYWRlck5hbWUpO1xuICAgICAgICAgIHRoaXMud2lkdGhzLnB1c2goJ2F1dG8nKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICB0aGlzLmNvbHVtbnMucHVzaChoZWFkZXJOYW1lKTtcbiAgICAgICAgfVxuICAgICAgfSBlbHNlIHtcbiAgICAgICAgdGhpcy5rZXlzU3ViUmVwb3J0QnV0dG9uLnB1c2goY29sdW1uLmdldENvbERlZigpLmZpZWxkKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxuXG4gIGdldERhdGEoZXhwb3J0UDogYm9vbGVhbikge1xuICAgIHRoaXMuZGF0YUV4Y2VsID0gW107XG4gICAgdGhpcy5ib2R5ID0gW107XG4gICAgbGV0IHJvd3MgPSB0aGlzLmFnR3JpZC5yb3dEYXRhO1xuICAgIGlmIChleHBvcnRQKSB7XG4gICAgICB0aGlzLmJvZHkucHVzaCh0aGlzLmNvbHVtbnMpO1xuICAgIH1cbiAgICByb3dzLmZvckVhY2goKHJvdykgPT4ge1xuICAgICAgbGV0IGRhdGFOb0J1dHRvbiA9IFtdO1xuICAgICAgbGV0IGRhdGEgPSBPYmplY3Qua2V5cyhyb3cpLm1hcCgoa2V5KSA9PiB7XG4gICAgICAgIHJvd1trZXldO1xuICAgICAgICBpZiAodGhpcy5rZXlzU3ViUmVwb3J0QnV0dG9uLmluZGV4T2Yoa2V5KSA9PT0gLTEpIHtcbiAgICAgICAgICBpZiAodGhpcy5rZXlzQ3VzdG9taXplZENlbGwuaW5kZXhPZihrZXkpICE9IC0xKSB7XG4gICAgICAgICAgICBpZiAocm93W2tleV0uaW5kZXhPZignPCcpICE9IC0xKSB7XG4gICAgICAgICAgICAgIGxldCBhcnJheVJvdyA9IHJvd1trZXldLnNwbGl0KCc8JykuY29uY2F0KCk7XG4gICAgICAgICAgICAgIGFycmF5Um93LmZvckVhY2goZWxlbWVudCA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKGVsZW1lbnQuaW5kZXhPZignPicpICE9IC0xKSB7XG4gICAgICAgICAgICAgICAgICBpZiAoZWxlbWVudC5zcGxpdCgnPicpWzFdICE9ICcnKSB7XG4gICAgICAgICAgICAgICAgICAgIHJvd1trZXldID0gZWxlbWVudC5zcGxpdCgnPicpWzFdO1xuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIGRhdGFOb0J1dHRvbi5wdXNoKHJvd1trZXldKTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIGRhdGFOb0J1dHRvbi5wdXNoKHJvd1trZXldKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgfSk7XG4gICAgICBpZiAoZXhwb3J0UCkge1xuICAgICAgICB0aGlzLmJvZHkucHVzaChkYXRhTm9CdXR0b24pO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgdGhpcy5kYXRhRXhjZWwucHVzaChkYXRhTm9CdXR0b24pO1xuICAgICAgfVxuICAgIH0pO1xuICB9XG5cbn1cbiJdfQ==

@@ -28,4 +28,4 @@ /**

this._setAuthHeaders(this.accessToken);
return this.http.get(`${this.apiBaseUrl}get-all`, { headers: this.authHeaders });
// return this.http.get('../../../assets/reports.json');
// return this.http.get<IAllReports>(`${this.apiBaseUrl}get-all`, { headers: this.authHeaders });
return this.http.get('../../../assets/reports.json');
}

@@ -38,6 +38,6 @@ /**

this._setAuthHeaders(this.accessToken);
return this.http.get(`${this.apiBaseUrl}get-config?reportId=${reportId}`, { headers: this.authHeaders });
// return this.http.get<IGeneralReportConfig>(`${this.apiBaseUrl}get-config?reportId=${reportId}`, { headers: this.authHeaders });
// return this.http.get<IGeneralReportConfig>('../../../assets/grid-config.json');
// return this.http.get('../../../assets/grid-footer-html-config.json');
// return this.http.get('../../../assets/config-html-mainyfoot.json');
return this.http.get('../../../assets/config-html-mainyfoot.json');
}

@@ -68,6 +68,6 @@ /**

else {
return this.http.get(`${this.apiBaseUrl}get-data?reportId=${reportId}`, { headers: this.authHeaders });
// return this.http.get<IGeneralReportData>(`${this.apiBaseUrl}get-data?reportId=${reportId}`, { headers: this.authHeaders });
// return this.http.get<IGeneralReportData>('../../../assets/grid-data.json');
// return this.http.get('../../../assets/grid-footer-html-data.json');
// return this.http.get('../../../assets/data-html-mainyfoot.json');
return this.http.get('../../../assets/data-html-mainyfoot.json');
}

@@ -176,2 +176,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly92ay1yZXBvcnRzLyIsInNvdXJjZXMiOlsibGliL3JlcG9ydHMvc2VydmljZXMvcmVwb3J0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxVQUFVLEVBQUUsV0FBVyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7OztBQVUvRCxNQUFNLE9BQU8sYUFBYTs7OztJQXdCeEIsWUFBbUIsSUFBZ0I7UUFBaEIsU0FBSSxHQUFKLElBQUksQ0FBWTtRQWQzQixpQkFBWSxHQUFrQixFQUFFLENBQUM7UUFFekMseUJBQW9CLEdBQXNCLElBQUksWUFBWSxFQUFFLENBQUM7UUFFN0QsNkJBQXdCLEdBQXNCLElBQUksWUFBWSxFQUFFLENBQUM7UUFFakUsd0JBQW1CLEdBQXNCLElBQUksWUFBWSxFQUFFLENBQUM7UUFFNUQsNkJBQXdCLEdBQXNCLElBQUksWUFBWSxFQUFFLENBQUM7UUFFakUsOEJBQXlCLEdBQXNC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ZXJEYXRhLmlkKSB7XG4gICAgICAgIGZpbHRlci52YWx1ZSA9IGZpbHRlckRhdGEudmFsdWU7XG4gICAgICB9XG4gICAgfSk7XG4gIH1cblxuICBwcml2YXRlIF9zZXRBdXRoSGVhZGVycyhhY2Nlc3NfdG9rZW46IHN0cmluZykge1xuICAgIGNvbnN0IHVzZXJUb2tlbiA9ICdCZWFyZXIgJyArIGFjY2Vzc190b2tlbjtcbiAgICB0aGlzLmF1dGhIZWFkZXJzID0gbmV3IEh0dHBIZWFkZXJzKHsgJ0NvbnRlbnQtVHlwZSc6ICdhcHBsaWNhdGlvbi9qc29uJywgJ0F1dGhvcml6YXRpb24nOiB1c2VyVG9rZW4gfSk7XG4gIH1cbn1cbiJdfQ==

@@ -73,4 +73,4 @@ /**

};
// pdfMake.createPdf(documentDefinition).open();
pdfMake.createPdf(documentDefinition).download(this.title);
// pdfMake.createPdf(documentDefinition).download(this.title);
pdfMake.createPdf(documentDefinition).open();
};

@@ -241,2 +241,2 @@ /**

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9ucy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly92ay1yZXBvcnRzLyIsInNvdXJjZXMiOlsibGliL3JlcG9ydHMvY29tcG9uZW50cy9yZXBvcnQvY29tcG9uZW50cy9hY3Rpb25zL2FjdGlvbnMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6RCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDaEQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFFL0UsT0FBTyxPQUFPLE1BQU0sdUJBQXVCLENBQUM7QUFDNUMsT0FBTyxRQUFRLE1BQU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yoa2V5KSAhPSAtMSkge1xuICAgICAgICAgICAgaWYgKHJvd1trZXldLmluZGV4T2YoJzwnKSAhPSAtMSkge1xuICAgICAgICAgICAgICBsZXQgYXJyYXlSb3cgPSByb3dba2V5XS5zcGxpdCgnPCcpLmNvbmNhdCgpO1xuICAgICAgICAgICAgICBhcnJheVJvdy5mb3JFYWNoKGVsZW1lbnQgPT4ge1xuICAgICAgICAgICAgICAgIGlmIChlbGVtZW50LmluZGV4T2YoJz4nKSAhPSAtMSkge1xuICAgICAgICAgICAgICAgICAgaWYgKGVsZW1lbnQuc3BsaXQoJz4nKVsxXSAhPSAnJykge1xuICAgICAgICAgICAgICAgICAgICByb3dba2V5XSA9IGVsZW1lbnQuc3BsaXQoJz4nKVsxXTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICBkYXRhTm9CdXR0b24ucHVzaChyb3dba2V5XSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICBkYXRhTm9CdXR0b24ucHVzaChyb3dba2V5XSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgIH0pO1xuICAgICAgaWYgKGV4cG9ydFApIHtcbiAgICAgICAgdGhpcy5ib2R5LnB1c2goZGF0YU5vQnV0dG9uKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMuZGF0YUV4Y2VsLnB1c2goZGF0YU5vQnV0dG9uKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxuXG59XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9ucy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly92ay1yZXBvcnRzLyIsInNvdXJjZXMiOlsibGliL3JlcG9ydHMvY29tcG9uZW50cy9yZXBvcnQvY29tcG9uZW50cy9hY3Rpb25zL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d3MuZm9yRWFjaCgocm93KSA9PiB7XG4gICAgICBsZXQgZGF0YU5vQnV0dG9uID0gW107XG4gICAgICBsZXQgZGF0YSA9IE9iamVjdC5rZXlzKHJvdykubWFwKChrZXkpID0+IHtcbiAgICAgICAgcm93W2tleV07XG4gICAgICAgIGlmICh0aGlzLmtleXNTdWJSZXBvcnRCdXR0b24uaW5kZXhPZihrZXkpID09PSAtMSkge1xuICAgICAgICAgIGlmICh0aGlzLmtleXNDdXN0b21pemVkQ2VsbC5pbmRleE9mKGtleSkgIT0gLTEpIHtcbiAgICAgICAgICAgIGlmIChyb3dba2V5XS5pbmRleE9mKCc8JykgIT0gLTEpIHtcbiAgICAgICAgICAgICAgbGV0IGFycmF5Um93ID0gcm93W2tleV0uc3BsaXQoJzwnKS5jb25jYXQoKTtcbiAgICAgICAgICAgICAgYXJyYXlSb3cuZm9yRWFjaChlbGVtZW50ID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoZWxlbWVudC5pbmRleE9mKCc+JykgIT0gLTEpIHtcbiAgICAgICAgICAgICAgICAgIGlmIChlbGVtZW50LnNwbGl0KCc+JylbMV0gIT0gJycpIHtcbiAgICAgICAgICAgICAgICAgICAgcm93W2tleV0gPSBlbGVtZW50LnNwbGl0KCc+JylbMV07XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgZGF0YU5vQnV0dG9uLnB1c2gocm93W2tleV0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgZGF0YU5vQnV0dG9uLnB1c2gocm93W2tleV0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICB9KTtcbiAgICAgIGlmIChleHBvcnRQKSB7XG4gICAgICAgIHRoaXMuYm9keS5wdXNoKGRhdGFOb0J1dHRvbik7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmRhdGFFeGNlbC5wdXNoKGRhdGFOb0J1dHRvbik7XG4gICAgICB9XG4gICAgfSk7XG4gIH1cblxufVxuIl19

@@ -28,4 +28,4 @@ /**

this._setAuthHeaders(this.accessToken);
return this.http.get(this.apiBaseUrl + "get-all", { headers: this.authHeaders });
// return this.http.get('../../../assets/reports.json');
// return this.http.get<IAllReports>(`${this.apiBaseUrl}get-all`, { headers: this.authHeaders });
return this.http.get('../../../assets/reports.json');
};

@@ -42,6 +42,6 @@ /**

this._setAuthHeaders(this.accessToken);
return this.http.get(this.apiBaseUrl + "get-config?reportId=" + reportId, { headers: this.authHeaders });
// return this.http.get<IGeneralReportConfig>(`${this.apiBaseUrl}get-config?reportId=${reportId}`, { headers: this.authHeaders });
// return this.http.get<IGeneralReportConfig>('../../../assets/grid-config.json');
// return this.http.get('../../../assets/grid-footer-html-config.json');
// return this.http.get('../../../assets/config-html-mainyfoot.json');
return this.http.get('../../../assets/config-html-mainyfoot.json');
};

@@ -77,6 +77,6 @@ /**

else {
return this.http.get(this.apiBaseUrl + "get-data?reportId=" + reportId, { headers: this.authHeaders });
// return this.http.get<IGeneralReportData>(`${this.apiBaseUrl}get-data?reportId=${reportId}`, { headers: this.authHeaders });
// return this.http.get<IGeneralReportData>('../../../assets/grid-data.json');
// return this.http.get('../../../assets/grid-footer-html-data.json');
// return this.http.get('../../../assets/data-html-mainyfoot.json');
return this.http.get('../../../assets/data-html-mainyfoot.json');
}

@@ -212,2 +212,2 @@ };

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly92ay1yZXBvcnRzLyIsInNvdXJjZXMiOlsibGliL3JlcG9ydHMvc2VydmljZXMvcmVwb3J0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZ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ZXQtZGF0YT9yZXBvcnRJZD0ke3N1YlJlcG9ydElkfSZmaWx0ZXJBc0pTT049JHtmaWx0ZXJzfWAsIHsgaGVhZGVyczogdGhpcy5hdXRoSGVhZGVycyB9KTtcbiAgICAvLyByZXR1cm4gdGhpcy5odHRwLmdldCgnLi4vLi4vLi4vYXNzZXRzL3N1Yi1kYXRhLmpzb24nKTtcbiAgfVxuXG4gIGluaXRpYWxGaWx0ZXJEYXRhKGZpbHRlckRhdGE6IElGaWx0ZXJEYXRhKSB7XG4gICAgdGhpcy5maWx0ZXJWYWx1ZXMucHVzaChmaWx0ZXJEYXRhKTtcbiAgfVxuXG4gIHJlc2V0RmlsdGVyVmFsdWVzKCkge1xuICAgIHRoaXMuZmlsdGVyVmFsdWVzID0gW107XG4gIH1cblxuICBzZXRGaWx0ZXJEYXRhKGZpbHRlckRhdGE6IElGaWx0ZXJEYXRhKSB7XG4gICAgdGhpcy5maWx0ZXJWYWx1ZXMuZm9yRWFjaChmaWx0ZXIgPT4ge1xuICAgICAgaWYgKGZpbHRlci5pZCA9PT0gZmlsdGVyRGF0YS5pZCkge1xuICAgICAgICBmaWx0ZXIudmFsdWUgPSBmaWx0ZXJEYXRhLnZhbHVlO1xuICAgICAgfVxuICAgIH0pO1xuICB9XG5cbiAgcHJpdmF0ZSBfc2V0QXV0aEhlYWRlcnMoYWNjZXNzX3Rva2VuOiBzdHJpbmcpIHtcbiAgICBjb25zdCB1c2VyVG9rZW4gPSAnQmVhcmVyICcgKyBhY2Nlc3NfdG9rZW47XG4gICAgdGhpcy5hdXRoSGVhZGVycyA9IG5ldyBIdHRwSGVhZGVycyh7ICdDb250ZW50LVR5cGUnOiAnYXBwbGljYXRpb24vanNvbicsICdBdXRob3JpemF0aW9uJzogdXNlclRva2VuIH0pO1xuICB9XG59XG4iXX0=
import { EventEmitter } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { IFilterData } from '../models/filter-data.interface';
import { IAllReports } from '../models/all-reports.interface';
import { IGeneralReportConfig } from '../models/general-report-config.interface';

@@ -22,5 +21,5 @@ import { IGeneralReportData } from '../models/grid-data.interface';

constructor(http: HttpClient);
getReports(): import("rxjs").Observable<IAllReports>;
getConfig(reportId: number): import("rxjs").Observable<IGeneralReportConfig>;
getData(reportId: number, filters: boolean): import("rxjs").Observable<IGeneralReportData>;
getReports(): import("rxjs").Observable<Object>;
getConfig(reportId: number): import("rxjs").Observable<Object>;
getData(reportId: number, filters: boolean): import("rxjs").Observable<Object>;
getSubReportConfig(subReportId: number): import("rxjs").Observable<IGeneralReportConfig>;

@@ -27,0 +26,0 @@ getSubReportData(subReportId: number, filters: string): import("rxjs").Observable<IGeneralReportData>;

{
"name": "vk-reports",
"version": "0.6.11",
"version": "0.6.12",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": "^8.2.12",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc