vk-reports
Advanced tools
Comparing version 0.6.18 to 0.6.19
@@ -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,o,r,a,s,l,p,c,d,u,g,f,m,h,b,y,x,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}(),R=function(){function t(t){this.reportService=t,this.gridReady=!1,this.footerGridReady=!1,this.dataGridReady=!1,this.loading=!0,this.defaultColDef={resizable:!0},this.mainFrameworkComponents={customizedCell:C},this.footerFrameworkComponents={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.footerColumnDefs=e.data.footerHeaders,t.footerRowData=e.data.footerData,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.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.footerGridApi.sizeColumnsToFit()},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" [rowData]="mainRowData"\r\n [columnDefs]="mainColumnDefs" [defaultColDef]="defaultColDef" rowSelection="single" pagination="true"\r\n [suppressPaginationPanel]="true" (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 <ag-grid-angular #agGridFooter class="ag-theme-balham" [animateRows]="true" [rowData]="footerRowData"\r\n [columnDefs]="footerColumnDefs" rowSelection="single" pagination="true" [suppressPaginationPanel]="true"\r\n (gridReady)="onGridFooterReady($event)" [frameworkComponents]="footerFrameworkComponents">\r\n </ag-grid-angular>\r\n\r\n </div>\r\n</ng-template>',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}(),S=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(R,{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 #content 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}],content:[{type:e.ViewChild,args:["content",{static:!1}]}],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=[];t.type||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}(),G=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}(),z=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=[];t.type||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:z},{type:D}]},t.propDecorators={autocompleteFilterConfig:[{type:e.Input}]},t}(),A=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[k,I,P,G,M],exports:[k,I,P,G,M],imports:[o.CommonModule,n.FormsModule,r.RouterModule,b.NgSelectModule]}]}],t}(),E=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[],exports:[],imports:[o.CommonModule,n.FormsModule,A],providers:[],bootstrap:[]}]}],t}(),T=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[],exports:[],imports:[o.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}(),H=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}(),L=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 y.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"});x.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 O=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:L}]},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:[S,j,C,F,H,O,B,N,R],exports:[S,j,C,F,H,O,B,N,R],entryComponents:[R,H],imports:[o.CommonModule,n.FormsModule,s.MatIconModule,l.NgxSpinnerModule,i.HttpClientModule,E,T,a.MatSnackBarModule,A,d.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: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=S,t.ɵc=D,t.ɵd=j,t.ɵe=C,t.ɵf=F,t.ɵg=H,t.ɵh=O,t.ɵi=L,t.ɵj=B,t.ɵk=N,t.ɵl=R,t.ɵm=E,t.ɵn=A,t.ɵo=k,t.ɵp=I,t.ɵq=P,t.ɵr=G,t.ɵs=M,t.ɵt=z,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,d,u,g,f,m,h,b,y,x,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}(),R=function(){function t(t){this.reportService=t,this.gridReady=!1,this.footerGridReady=!1,this.dataGridReady=!1,this.loading=!0,this.defaultColDef={resizable:!0},this.mainFrameworkComponents={customizedCell:C},this.footerFrameworkComponents={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.footerColumnDefs=e.data.footerHeaders,t.footerRowData=e.data.footerData,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.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.footerGridApi.sizeColumnsToFit()},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" [rowData]="mainRowData"\r\n [columnDefs]="mainColumnDefs" [defaultColDef]="defaultColDef" rowSelection="single" pagination="true"\r\n [suppressPaginationPanel]="true" (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 <ag-grid-angular #agGridFooter class="ag-theme-balham" [animateRows]="true" [rowData]="footerRowData"\r\n [columnDefs]="footerColumnDefs" rowSelection="single" pagination="true" [suppressPaginationPanel]="true"\r\n (gridReady)="onGridFooterReady($event)" [frameworkComponents]="footerFrameworkComponents">\r\n </ag-grid-angular>\r\n\r\n </div>\r\n</ng-template>',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}(),S=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(R,{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 #content 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}],content:[{type:e.ViewChild,args:["content",{static:!1}]}],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=[];t.type||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}(),G=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}(),z=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=[];t.type||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:z},{type:D}]},t.propDecorators={autocompleteFilterConfig:[{type:e.Input}]},t}(),A=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[k,I,P,G,M],exports:[k,I,P,G,M],imports:[o.CommonModule,n.FormsModule,r.RouterModule,b.NgSelectModule]}]}],t}(),E=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[],exports:[],imports:[o.CommonModule,n.FormsModule,A],providers:[],bootstrap:[]}]}],t}(),T=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[],exports:[],imports:[o.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}(),H=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}(),L=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 y.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.length>0)&&(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"});x.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 O=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.title.includes(".")&&(this.title=this.title.replace(".","")),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:L}]},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:[S,j,C,F,H,O,B,N,R],exports:[S,j,C,F,H,O,B,N,R],entryComponents:[R,H],imports:[o.CommonModule,n.FormsModule,s.MatIconModule,l.NgxSpinnerModule,i.HttpClientModule,E,T,a.MatSnackBarModule,A,d.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: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=S,t.ɵc=D,t.ɵd=j,t.ɵe=C,t.ɵf=F,t.ɵg=H,t.ɵh=O,t.ɵi=L,t.ɵj=B,t.ɵk=N,t.ɵl=R,t.ɵm=E,t.ɵn=A,t.ɵo=k,t.ɵp=I,t.ɵq=P,t.ɵr=G,t.ɵs=M,t.ɵt=z,t.ɵu=T,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=vk-reports.umd.min.js.map |
@@ -76,2 +76,5 @@ /** | ||
this.getData(false); | ||
if (this.title.includes('.')) { | ||
this.title = this.title.replace(".", ""); | ||
} | ||
this.excelService.generateExcel(this.columns, this.dataExcel, this.title); | ||
@@ -220,2 +223,2 @@ } | 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d3MgPSB0aGlzLmFnR3JpZC5yb3dEYXRhO1xuICAgIGlmIChleHBvcnRQKSB7XG4gICAgICB0aGlzLmJvZHkucHVzaCh0aGlzLmNvbHVtbnMpO1xuICAgIH1cbiAgICByb3dzLmZvckVhY2goKHJvdykgPT4ge1xuICAgICAgbGV0IGRhdGFOb0J1dHRvbiA9IFtdO1xuICAgICAgbGV0IGRhdGEgPSBPYmplY3Qua2V5cyhyb3cpLm1hcCgoa2V5KSA9PiB7XG4gICAgICAgIHJvd1trZXldO1xuICAgICAgICBpZiAodGhpcy5rZXlzU3ViUmVwb3J0QnV0dG9uLmluZGV4T2Yoa2V5KSA9PT0gLTEpIHtcbiAgICAgICAgICBpZiAodGhpcy5rZXlzQ3VzdG9taXplZENlbGwuaW5kZXhPZihrZXkpICE9IC0xKSB7XG4gICAgICAgICAgICBpZiAocm93W2tleV0uaW5kZXhPZignPCcpICE9IC0xKSB7XG4gICAgICAgICAgICAgIGxldCBhcnJheVJvdyA9IHJvd1trZXldLnNwbGl0KCc8JykuY29uY2F0KCk7XG4gICAgICAgICAgICAgIGFycmF5Um93LmZvckVhY2goZWxlbWVudCA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKGVsZW1lbnQuaW5kZXhPZignPicpICE9IC0xKSB7XG4gICAgICAgICAgICAgICAgICBpZiAoZWxlbWVudC5zcGxpdCgnPicpWzFdICE9ICcnKSB7XG4gICAgICAgICAgICAgICAgICAgIHJvd1trZXldID0gZWxlbWVudC5zcGxpdCgnPicpWzFdO1xuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIGRhdGFOb0J1dHRvbi5wdXNoKHJvd1trZXldKTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIGRhdGFOb0J1dHRvbi5wdXNoKHJvd1trZXldKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cblxuICA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lZigpLmhlYWRlck5hbWU7XG4gICAgICAgIGlmIChleHBvcnRQKSB7XG4gICAgICAgICAgdGhpcy5jb2x1bW5zLnB1c2goaGVhZGVyTmFtZSk7XG4gICAgICAgICAgdGhpcy53aWR0aHMucHVzaCgnYXV0bycpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIHRoaXMuY29sdW1ucy5wdXNoKGhlYWRlck5hbWUpO1xuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmtleXNTdWJSZXBvcnRCdXR0b24ucHVzaChjb2x1bW4uZ2V0Q29sRGVmKCkuZmllbGQpO1xuICAgICAgfVxuICAgIH0pO1xuICB9XG5cbiAgZ2V0RGF0YShleHBvcnRQOiBib29sZWFuKSB7XG4gICAgdGhpcy5kYXRhRXhjZWwgPSBbXTtcbiAgICB0aGlzLmJvZHkgPSBbXTtcbiAgICBsZXQgcm93cyA9IHRoaXMuYWdHcmlkLnJvd0RhdGE7XG4gICAgaWYgKGV4cG9ydFApIHtcbiAgICAgIHRoaXMuYm9keS5wdXNoKHRoaXMuY29sdW1ucyk7XG4gICAgfVxuICAgIHJvd3MuZm9yRWFjaCgocm93KSA9PiB7XG4gICAgICBsZXQgZGF0YU5vQnV0dG9uID0gW107XG4gICAgICBsZXQgZGF0YSA9IE9iamVjdC5rZXlzKHJvdykubWFwKChrZXkpID0+IHtcbiAgICAgICAgcm93W2tleV07XG4gICAgICAgIGlmICh0aGlzLmtleXNTdWJSZXBvcnRCdXR0b24uaW5kZXhPZihrZXkpID09PSAtMSkge1xuICAgICAgICAgIGlmICh0aGlzLmtleXNDdXN0b21pemVkQ2VsbC5pbmRleE9mKGtleSkgIT0gLTEpIHtcbiAgICAgICAgICAgIGlmIChyb3dba2V5XS5pbmRleE9mKCc8JykgIT0gLTEpIHtcbiAgICAgICAgICAgICAgbGV0IGFycmF5Um93ID0gcm93W2tleV0uc3BsaXQoJzwnKS5jb25jYXQoKTtcbiAgICAgICAgICAgICAgYXJyYXlSb3cuZm9yRWFjaChlbGVtZW50ID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoZWxlbWVudC5pbmRleE9mKCc+JykgIT0gLTEpIHtcbiAgICAgICAgICAgICAgICAgIGlmIChlbGVtZW50LnNwbGl0KCc+JylbMV0gIT0gJycpIHtcbiAgICAgICAgICAgICAgICAgICAgcm93W2tleV0gPSBlbGVtZW50LnNwbGl0KCc+JylbMV07XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgZGF0YU5vQnV0dG9uLnB1c2gocm93W2tleV0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgZGF0YU5vQnV0dG9uLnB1c2gocm93W2tleV0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICB9KTtcbiAgICAgIGlmIChleHBvcnRQKSB7XG4gICAgICAgIHRoaXMuYm9keS5wdXNoKGRhdGFOb0J1dHRvbik7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmRhdGFFeGNlbC5wdXNoKGRhdGFOb0J1dHRvbik7XG4gICAgICB9XG4gICAgfSk7XG4gIH1cblxufVxuIl19 |
@@ -81,17 +81,19 @@ /** | ||
})); | ||
/** @type {?} */ | ||
let firstRow = body[0].toString().split(','); | ||
firstRow.forEach((/** | ||
* @param {?} column | ||
* @param {?} index | ||
* @return {?} | ||
*/ | ||
(column, index) => { | ||
if (body.length > 0) { | ||
/** @type {?} */ | ||
let columnLength = Math.max(column.length, headers[index].length); | ||
/** @type {?} */ | ||
let firstCol = worksheet.getColumn(index + 1); | ||
firstCol.width = columnLength * 1.6; | ||
})); | ||
worksheet.addRows(body); | ||
let firstRow = body[0].toString().split(','); | ||
firstRow.forEach((/** | ||
* @param {?} column | ||
* @param {?} index | ||
* @return {?} | ||
*/ | ||
(column, index) => { | ||
/** @type {?} */ | ||
let columnLength = Math.max(column.length, headers[index].length); | ||
/** @type {?} */ | ||
let firstCol = worksheet.getColumn(index + 1); | ||
firstCol.width = columnLength * 1.6; | ||
})); | ||
worksheet.addRows(body); | ||
} | ||
workbook.xlsx.writeBuffer().then((/** | ||
@@ -125,2 +127,2 @@ * @param {?} data | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwb3J0LWV4Y2VsLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly92ay1yZXBvcnRzLyIsInNvdXJjZXMiOlsibGliL3JlcG9ydHMvc2VydmljZXMvZXhwb3J0LWV4Y2VsLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRTNDLE9BQU8sS0FBSyxLQUFLLE1BQU0sNkJBQTZCLENBQUM7QUFDckQsT0FBTyxLQUFLLEVBQUUsTUFBTSxZQUFZLENBQUM7OztBQUtqQyxNQUFNLE9BQU8sa0JBQWtCOzs7O0lBRTdCLFlBQW9CLFFBQWtCO1FBQWxCLGFBQVEsR0FBUixRQUFRLENBQVU7SUFBSSxDQUFDOzs7O0lBRTNDLGFBQWE7O1lBQ1AsSUFBSSxHQUFHLElBQUksSUFBSSxFQUFFO1FBQ3JCLE9BQU8sSUFBSSxDQUFDLFFBQVEsQ0FBQyxTQUFTLENBQUMsSUFBSSxFQUFFLGtCQUFrQixDQUFDLENBQUMsQ0FBQyw0QkFBNEI7SUFDeEYsQ0FBQzs7Ozs7OztJQUVELGFBQWEsQ0FBQyxPQUFpQixFQUFFLElBQWMsRUFBRSxLQUFhOzs7O1lBSXhELFFBQVEsR0FBRyxJQUFJLEtBQUssQ0FBQyxRQUFRLEVBQUU7OztZQUkvQixTQUFTLEdBQU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| ||
if (this.title.includes('.')) { | ||
this.title = this.title.replace(".", ""); | ||
} | ||
this.excelService.generateExcel(this.columns, this.dataExcel, this.title); | ||
@@ -241,2 +244,2 @@ }; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9ucy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly92ay1yZXBvcnRzLyIsInNvdXJjZXMiOlsibGliL3JlcG9ydHMvY29tcG9uZW50cy9yZXBvcnQvY29tcG9uZW50cy9hY3Rpb25zL2FjdGlvbnMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6RCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDaEQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFFL0UsT0FBTyxPQUFPLE1BQU0sdUJBQXVCLENBQUM7QUFDNUMsT0FBTyxRQUFRLE1BQU0seUJBQXlCLENBQUM7QUFDL0MsT0FBTyxDQUFDLEdBQUcsR0FBRyxRQUFRLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQztBQUduQztJQXlCRSwwQkFBbUIsWUFBZ0M7UUFBaEMsaUJBQVksR0FBWixZQUFZLENBQW9CO1FBbEJuRCxRQUFHLEdBQVksS0FBSyxDQUFDO1FBQ3JCLFFBQUcsR0FBWSxLQUFLLENBQUM7UUFDckIsVUFBSyxHQUFZLEtBQUssQ0FBQztJQWdCZ0MsQ0FBQzs7OztJQUV4RCxtQ0FBUTs7O0lBQVI7UUFDRSxJQUFJLENBQUMsR0FBRyxHQUFHLElBQUksQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDO1FBQzNCLElBQUksQ0FBQyxHQUFHLEdBQUcsSUFBS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x1bW4uZ2V0Q29sRGVmKCkuZmllbGQpO1xuICAgICAgfVxuICAgIH0pO1xuICB9XG5cbiAgZ2V0RGF0YShleHBvcnRQOiBib29sZWFuKSB7XG4gICAgdGhpcy5kYXRhRXhjZWwgPSBbXTtcbiAgICB0aGlzLmJvZHkgPSBbXTtcbiAgICBsZXQgcm93cyA9IHRoaXMuYWdHcmlkLnJvd0RhdGE7XG4gICAgaWYgKGV4cG9ydFApIHtcbiAgICAgIHRoaXMuYm9keS5wdXNoKHRoaXMuY29sdW1ucyk7XG4gICAgfVxuICAgIHJvd3MuZm9yRWFjaCgocm93KSA9PiB7XG4gICAgICBsZXQgZGF0YU5vQnV0dG9uID0gW107XG4gICAgICBsZXQgZGF0YSA9IE9iamVjdC5rZXlzKHJvdykubWFwKChrZXkpID0+IHtcbiAgICAgICAgcm93W2tleV07XG4gICAgICAgIGlmICh0aGlzLmtleXNTdWJSZXBvcnRCdXR0b24uaW5kZXhPZihrZXkpID09PSAtMSkge1xuICAgICAgICAgIGlmICh0aGlzLmtleXNDdXN0b21pemVkQ2VsbC5pbmRleE9mKGtleSkgIT0gLTEpIHtcbiAgICAgICAgICAgIGlmIChyb3dba2V5XS5pbmRleE9mKCc8JykgIT0gLTEpIHtcbiAgICAgICAgICAgICAgbGV0IGFycmF5Um93ID0gcm93W2tleV0uc3BsaXQoJzwnKS5jb25jYXQoKTtcbiAgICAgICAgICAgICAgYXJyYXlSb3cuZm9yRWFjaChlbGVtZW50ID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoZWxlbWVudC5pbmRleE9mKCc+JykgIT0gLTEpIHtcbiAgICAgICAgICAgICAgICAgIGlmIChlbGVtZW50LnNwbGl0KCc+JylbMV0gIT0gJycpIHtcbiAgICAgICAgICAgICAgICAgICAgcm93W2tleV0gPSBlbGVtZW50LnNwbGl0KCc+JylbMV07XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgZGF0YU5vQnV0dG9uLnB1c2gocm93W2tleV0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgZGF0YU5vQnV0dG9uLnB1c2gocm93W2tleV0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICB9KTtcbiAgICAgIGlmIChleHBvcnRQKSB7XG4gICAgICAgIHRoaXMuYm9keS5wdXNoKGRhdGFOb0J1dHRvbik7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmRhdGFFeGNlbC5wdXNoKGRhdGFOb0J1dHRvbik7XG4gICAgICB9XG4gICAgfSk7XG4gIH1cblxufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9ucy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly92ay1yZXBvcnRzLyIsInNvdXJjZXMiOlsibGliL3JlcG9ydHMvY29tcG9uZW50cy9yZXBvcnQvY29tcG9uZW50cy9hY3Rpb25zL2FjdGlvbnMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6RCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDaEQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFFL0UsT0FBTyxPQUFPLE1BQU0sdUJBQXVCLENBQUM7QUFDNUMsT0FBTyxRQUFRLE1BQU0seUJBQXlCLENBQUM7QUFDL0MsT0FBTyxDQUFDLEdBQUcsR0FBRyxRQUFRLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQztBQUduQztJQXlCRSwwQkFBbUIsWUFBZ0M7UUFBaEMsaUJBQVksR0FBWixZQUFZLENBQW9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XMua2V5c1N1YlJlcG9ydEJ1dHRvbi5pbmRleE9mKGtleSkgPT09IC0xKSB7XG4gICAgICAgICAgaWYgKHRoaXMua2V5c0N1c3RvbWl6ZWRDZWxsLmluZGV4T2Yoa2V5KSAhPSAtMSkge1xuICAgICAgICAgICAgaWYgKHJvd1trZXldLmluZGV4T2YoJzwnKSAhPSAtMSkge1xuICAgICAgICAgICAgICBsZXQgYXJyYXlSb3cgPSByb3dba2V5XS5zcGxpdCgnPCcpLmNvbmNhdCgpO1xuICAgICAgICAgICAgICBhcnJheVJvdy5mb3JFYWNoKGVsZW1lbnQgPT4ge1xuICAgICAgICAgICAgICAgIGlmIChlbGVtZW50LmluZGV4T2YoJz4nKSAhPSAtMSkge1xuICAgICAgICAgICAgICAgICAgaWYgKGVsZW1lbnQuc3BsaXQoJz4nKVsxXSAhPSAnJykge1xuICAgICAgICAgICAgICAgICAgICByb3dba2V5XSA9IGVsZW1lbnQuc3BsaXQoJz4nKVsxXTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICBkYXRhTm9CdXR0b24ucHVzaChyb3dba2V5XSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICBkYXRhTm9CdXR0b24ucHVzaChyb3dba2V5XSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgIH0pO1xuICAgICAgaWYgKGV4cG9ydFApIHtcbiAgICAgICAgdGhpcy5ib2R5LnB1c2goZGF0YU5vQnV0dG9uKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMuZGF0YUV4Y2VsLnB1c2goZGF0YU5vQnV0dG9uKTtcbiAgICAgIH1cbiAgICB9KTtcbiAgfVxuXG59XG4iXX0= |
@@ -87,17 +87,19 @@ /** | ||
})); | ||
/** @type {?} */ | ||
var firstRow = body[0].toString().split(','); | ||
firstRow.forEach((/** | ||
* @param {?} column | ||
* @param {?} index | ||
* @return {?} | ||
*/ | ||
function (column, index) { | ||
if (body.length > 0) { | ||
/** @type {?} */ | ||
var columnLength = Math.max(column.length, headers[index].length); | ||
/** @type {?} */ | ||
var firstCol = worksheet.getColumn(index + 1); | ||
firstCol.width = columnLength * 1.6; | ||
})); | ||
worksheet.addRows(body); | ||
var firstRow = body[0].toString().split(','); | ||
firstRow.forEach((/** | ||
* @param {?} column | ||
* @param {?} index | ||
* @return {?} | ||
*/ | ||
function (column, index) { | ||
/** @type {?} */ | ||
var columnLength = Math.max(column.length, headers[index].length); | ||
/** @type {?} */ | ||
var firstCol = worksheet.getColumn(index + 1); | ||
firstCol.width = columnLength * 1.6; | ||
})); | ||
worksheet.addRows(body); | ||
} | ||
workbook.xlsx.writeBuffer().then((/** | ||
@@ -133,2 +135,2 @@ * @param {?} data | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwb3J0LWV4Y2VsLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly92ay1yZXBvcnRzLyIsInNvdXJjZXMiOlsibGliL3JlcG9ydHMvc2VydmljZXMvZXhwb3J0LWV4Y2VsLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRTNDLE9BQU8sS0FBSyxLQUFLLE1BQU0sNkJBQTZCLENBQUM7QUFDckQsT0FBTyxLQUFLLEVBQUUsTUFBTSxZQUFZLENBQUM7OztBQUVqQztJQUtFLDRCQUFvQixRQUFrQjtRQUFsQixhQUFRLEdBQVIsUUFBUSxDQUFVO0lBQUksQ0FBQzs7OztJQUUzQywwQ0FBYTs7O0lBQWI7O1lBQ00sSUFBSSxHQUFHLElBQUksSUFB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bigoZGF0YSkgPT4ge1xuICAgICAgbGV0IGJsb2IgPSBuZXcgQmxvYihbZGF0YV0sIHsgdHlwZTogJ2FwcGxpY2F0aW9uL3ZuZC5vcGVueG1sZm9ybWF0cy1vZmZpY2Vkb2N1bWVudC5zcHJlYWRzaGVldG1sLnNoZWV0JyB9KTtcbiAgICAgIGZzLnNhdmVBcyhibG9iLCB0aXRsZSk7XG4gICAgfSlcbiAgfVxuXG59XG5cblxuIl19 |
{ | ||
"name": "vk-reports", | ||
"version": "0.6.18", | ||
"version": "0.6.19", | ||
"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
1193138
12542