import { Component, ViewChild, ComponentFactoryResolver, ViewContainerRef, OnInit, SimpleChanges, EventEmitter, Output, NgZone } from '@angular/core';
import { VisAsstResponseUpdateOptions } from "../VisAsstResponseUpdateOptions";
// import { IVisual } from "../IVisual/IVisual"
import { VisAsstResponseConstructorOptions } from "../VisAsstResponseConstructorOptions"
//import { DashboardService } from 'src/components/dashboard/dashboard.service';
// Added by nikhil on 11-11-2021 for Create an new visual HTML and xsl[Start]
//import { GproDesignService } from '../../gpro_design/gpro_design.service';
// Added by nikhil on 11-11-2021 for Create an new visual HTML and xsl[Start]

@Component({
    selector: 'vis_asst_response',
    templateUrl: './vis_asst_response.component.html',
    styleUrls: ['./vis_asst_response.component.css']
  })
  export class VisAsstResponseComponent implements OnInit {

    formats: any = [];
    slice:any = {
        rows: [],
        columns: [],
        measures: []
    }
    mapping:any = {};
    @Output() openDrillDown: EventEmitter<any> = new EventEmitter<any>();
    @Output() onRowSelect: EventEmitter<any> = new EventEmitter<any>();
	//Added by nikhil on 08-12-2021 for xsl visuals
	@Output() onSetLayoutData: EventEmitter<any> = new EventEmitter<any>();
    callbackMethods:any = {}
    linkOptions:any;
    visualLayout:any;
    updOptions:any;
    reportFilters:any
    xAxis:any = [];
	// Added by nikhil on 11-11-2021 for Create an new visual HTML and xsl
    //constructor(public dashboardService: DashboardService, public zone: NgZone, public gproService: GproDesignService){}
	
    
    ngOnInit()
    {
        console.log('Calling ngOnint of vis_asst_response')
        this.callbackMethods['openDrillDown'] = this.openDrillDown
        this.callbackMethods['onRowSelect'] = this.onRowSelect
    }

    ngAfterViewInit()
    {
       
    }

    buildVisualFormats( visualOptions : VisAsstResponseUpdateOptions |any)
    {
       
    }

    buildFormats(elem:any)
    {
       
    }


}