UNPKG

@railzai/railz-visualizations

Version:
54 lines (53 loc) 1.91 kB
import { RVConfiguration, RVOptions, RVFilterIncomeStatementsType } from '../../types'; export declare class IncomeStatements { /** * Configuration information like authentication configuration */ readonly configuration: RVConfiguration; /** * Filter information to query the backend APIs */ readonly filter: RVFilterIncomeStatementsType; /** * For whitelabeling styling */ readonly options: RVOptions; private loading; private _configuration; private _filter; private _options; private _summary; private errorStatusCode; private chartOptions; private containerRef?; private debouncedChart; /** * Validates if configuration was passed correctly before setting filter * @param configuration - Config for authentication * @param filter - filter to decide chart type to show * @param options: Whitelabeling options * @param triggerRequest - indicate if api request should be made */ private validateParams; watchContainerRef(newValue: HTMLDivElement, _: HTMLDivElement): void; repaintChartOnResize(): Promise<void>; watchConfiguration(newValue: RVConfiguration, oldValue: RVConfiguration): Promise<void>; watchFilter(newValue: RVFilterIncomeStatementsType, oldValue: RVFilterIncomeStatementsType): Promise<void>; watchOptions(newValue: RVOptions, oldValue: RVOptions): Promise<void>; private propsUpdated; /** * Request report data based on filter and configuration param * Formats retrieved data into Highcharts format using formatData * Updated Highchart params using updateHighchartsParams */ private requestReportData; /** * Using getHighchartsParams,Combine generic stacked bar line * chart options and formatted data based on the report type * into one option for highcharts */ private updateHighchartsParams; componentWillLoad(): void; private renderMain; render(): HTMLElement; }