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