import { ChartDataSet } from '@/services/data/tuples/chart-types' ; import { Paragraph } from '@/services/data/tuples/paragraph' ; import { Report } from '@/services/data/tuples/report-types' ; import { ChartOptions } from './chart-utils/types' ; export enum ReportEventTypes { /** use report structure in client side, only works on editing */ DO_RELOAD_DATA_ON_EDITING = 'do-reload-data-on-editing' , /** use report structure in client side, force do */ DO_RELOAD_DATA_BY_CLIENT = 'do-reload-data-by-client' , DO_DELETE_REPORT = 'do-delete-report' , DO_DELETE_PARAGRAPH = 'do-delete-paragraph' , REPORT_MOVE_OR_RESIZE_COMPLETED = 'report-move-or-resize-completed' , PARAGRAPH_MOVE_OR_RESIZE_COMPLETED = 'paragraph-move-or-resize-completed' , STRUCTURE_CHANGED = 'structure-changed' , STYLE_CHANGED = 'styled-changed' , DATA_SAVED = 'data-saved' , ASK_REPORT_STRUCTURE_CHANGED = 'ask-report-structure-changed' , /** use report structure in server side */ DO_REFRESH = 'do-refresh' , ASK_DOWNLOAD_CHART = 'ask-download-chart' , CHART_OPTIONS_READY = 'chart-options-ready' , ASK_DATA = 'ask-data' , DATA_LOADED = 'data-loaded' , REPAINTED = 'repainted' , THUMBNAIL_CAUGHT = 'thumbnail-caught' } export interface ReportEventBus { fire ( type , report ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , paragraph ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , paragraph ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report , onChangedGet ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report , onChartBase64Ready ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report , options ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report , onLoaded ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report , dataset ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , report ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }