vk-reports
Advanced tools
Comparing version 0.6.15 to 0.6.16
@@ -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=[];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=[];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[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})}); | ||
//# sourceMappingURL=vk-reports.umd.min.js.map |
@@ -73,3 +73,3 @@ /** | ||
let filterValue = []; | ||
if (selectedItems !== undefined) { | ||
if (!selectedItems.type && selectedItems !== undefined) { | ||
if (this.multiple) { | ||
@@ -136,2 +136,2 @@ selectedItems.forEach((/** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLC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ZXIocmVzcG9uc2UpKTtcbiAgfVxuXG4gIGZpbHRlcmVkRGF0YUhhbmRsZXIocmVzcG9uc2U6IElEYXRhQXV0b2NvbXBsZXRlW10pOiB2b2lkIHtcbiAgICB0aGlzLmF1dG9jb21wbGV0ZUZpbHRlckRhdGEgPSByZXNwb25zZTtcbiAgICB0aGlzLmRhdGFSZWFkeSA9IHRydWU7XG4gIH1cblxuICBzZWFyY2godGVybTogc3RyaW5nKTogdm9pZCB7XG4gICAgdGhpcy5zZWFyY2hUZXJtcy5uZXh0KHRlcm0pO1xuICB9XG5cbiAgb25TZWxlY3RDaGFuZ2Uoc2VsZWN0ZWRJdGVtcykge1xuICAgIGxldCBmaWx0ZXJWYWx1ZTogYW55W10gPSBbXTtcbiAgICBpZiggIXNlbGVjdGVkSXRlbXMudHlwZSAmJiBzZWxlY3RlZEl0ZW1zICE9PSB1bmRlZmluZWQpIHtcbiAgICAgIGlmICggdGhpcy5tdWx0aXBsZSApIHtcbiAgICAgICAgc2VsZWN0ZWRJdGVtcy5mb3JFYWNoKGl0ZW0gPT4ge1xuICAgICAgICAgIGZpbHRlclZhbHVlLnB1c2goaXRlbS5rZXkudG9TdHJpbmcoKSk7XG4gICAgICAgIH0pO1xuICAgICAgICB0aGlzLmZpbHRlckRhdGEudmFsdWUgPSBmaWx0ZXJWYWx1ZTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMuZmlsdGVyRGF0YS52YWx1ZSA9IHNlbGVjdGVkSXRlbXMua2V5LnRvU3RyaW5nKCk7XG4gICAgICB9XG4gICAgICB0aGlzLnJlcG9ydFNlcnZpY2Uuc2V0RmlsdGVyRGF0YSh0aGlzLmZpbHRlckRhdGEpO1xuICAgIH1cbiAgIFxuICB9XG5cblxufVxuIl19 |
@@ -35,3 +35,3 @@ /** | ||
let filterValue = []; | ||
if (selectedItems !== undefined) { | ||
if (!selectedItems.type && selectedItems !== undefined) { | ||
if (this.multiple) { | ||
@@ -83,2 +83,2 @@ selected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aXMubXVsdGlwbGUgPSB0cnVlO1xuICAgIH1cblxuICAgIHRoaXMuZmlsdGVyRGF0YSA9IHtcbiAgICAgIGlkOiB0aGlzLmRyb3Bkb3duRmlsdGVyLmlkXG4gICAgfVxuICAgIHRoaXMucmVwb3J0U2VydmljZS5pbml0aWFsRmlsdGVyRGF0YSh0aGlzLmZpbHRlckRhdGEpO1xuICB9XG5cbiAgb25TZWxlY3RDaGFuZ2Uoc2VsZWN0ZWRJdGVtcykge1xuICAgIGxldCBmaWx0ZXJWYWx1ZTogYW55W10gPSBbXTtcbiAgICBpZiAoICFzZWxlY3RlZEl0ZW1zLnR5cGUgJiYgc2VsZWN0ZWRJdGVtcyAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICBpZiAodGhpcy5tdWx0aXBsZSkge1xuICAgICAgICBzZWxlY3RlZEl0ZW1zLmZvckVhY2goaXRlbSA9PiB7XG4gICAgICAgICAgZmlsdGVyVmFsdWUucHVzaChpdGVtLmtleSk7XG4gICAgICAgIH0pO1xuICAgICAgICB0aGlzLmZpbHRlckRhdGEudmFsdWUgPSBmaWx0ZXJWYWx1ZTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMuZmlsdGVyRGF0YS52YWx1ZSA9IHNlbGVjdGVkSXRlbXMua2V5O1xuICAgICAgfVxuICAgICAgdGhpcy5yZXBvcnRTZXJ2aWNlLnNldEZpbHRlckRhdGEodGhpcy5maWx0ZXJEYXRhKTtcbiAgICB9XG5cbiAgfVxuXG59XG4iXX0= |
@@ -88,3 +88,3 @@ /** | ||
var filterValue = []; | ||
if (selectedItems !== undefined) { | ||
if (!selectedItems.type && selectedItems !== undefined) { | ||
if (this.multiple) { | ||
@@ -153,2 +153,2 @@ selectedItems.forEach((/** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2NvbXBsZXRlLWZpbHRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6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fVxuICAgXG4gIH1cblxuXG59XG4iXX0= |
@@ -39,3 +39,3 @@ /** | ||
var filterValue = []; | ||
if (selectedItems !== undefined) { | ||
if (!selectedItems.type && selectedItems !== undefined) { | ||
if (this.multiple) { | ||
@@ -89,2 +89,2 @@ selectedItems.forEach((/** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24tZmlsdGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL3ZrLXJlcG9ydHMvIiwic291cmNlcyI6WyJsaWIvcmVwb3J0cy9jb21wb25lbnRzL3JlcG9ydC9jb21wb25lbnRzL2ZpbHRlcnMvZHJvcGRvd24tZmlsdGVyL2Ryb3Bkb3duLWZpbHRlci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBS3pELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3Q0FBd0MsQ0FBQztBQUV2RTtJQWFFLGlDQUFvQixhQUE0QjtRQUE1QixrQkFBYSxHQUFiLGFBQWEsQ0FBZTtRQU5oRCxhQUFRLEdBQUcsS0FBSyxDQUFDO1FBQ2pCLG9CQUFlLEdBQUcsRUFBRSxDQUFDO0lBTXJCLENBQUM7Ozs7SUFFRCwwQ0FBUTs7O0lBQVI7UUFDRSxJQUFJLElBQUksQ0FBQyxjQUFjLENBQUMsSUFBSSxLQUFLLENBQUMsRUFBRTtZQUNsQyxJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksQ0FBQztTQUN0QjtRQUVELElBQUksQ0FBQyxVQUFVLEdBQUc7WUFDaEIsRUFBRSxFQUFFLElBQUksQ0FBQyxjQUFjLENBQUMsRUFBRTtTQUMzQixDQUFBO1FBQ0QsSUFBSSxDQUFDLGFBQWEsQ0FBQyxpQkFBaUIsQ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
"name": "vk-reports", | ||
"version": "0.6.15", | ||
"version": "0.6.16", | ||
"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
1191525
12517