@adaptabletools/adaptable
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
43 lines (42 loc) • 2.45 kB
TypeScript
import { ExportApi } from '../ExportApi';
import { ExportState, Report, ReportFormatType, ReportNameType, SystemReportFormat, SystemReportName } from '../../AdaptableState/ExportState';
import { ApiBase } from './ApiBase';
import { AdaptableForm } from '../../AdaptableState/Common/AdaptableForm';
import { CustomDestination, ExportDestinationType, ExportFormContext, ExportResultData, SystemExportDestination } from '../../AdaptableOptions/ExportOptions';
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
import { ExportInternalApi } from '../Internal/ExportInternalApi';
import { AdaptableColumn } from '../../types';
export declare class ExportApiImpl extends ApiBase implements ExportApi {
internalApi: ExportInternalApi;
constructor(_adaptable: IAdaptable);
getExportState(): ExportState;
getCurrentReportName(): string;
getCurrentReport(): Report;
getReportByName(reportName: string): Report | undefined;
getReportById(id: Report['Uuid']): Report;
getDestinationByName(destinationName: ExportDestinationType): SystemExportDestination | CustomDestination | undefined;
getAvailableSystemReports(): SystemReportName[];
getAvailableSystemFormats(): SystemReportFormat[];
getAvailableSystemDestinations(): SystemExportDestination[];
getAllExportDestinations(): ExportDestinationType[];
getAllFormats(): ReportFormatType[];
getAllReports(): Report[];
selectReport(reportName: ReportNameType | null): void;
clearReport(): void;
selectFormat(reportFormat: ReportFormatType | null): void;
clearFormat(): void;
getCustomDestinations(): CustomDestination[];
isExportDestinationCustom(destinationName: string): boolean;
getExportDestinationForm(destinationName: string): AdaptableForm<ExportFormContext> | undefined;
canExportToExcel(): boolean;
canExportToCsv(): boolean;
openExportSettingsPanel(): void;
updateReport(report: Report): Report;
updateReports(reports: Report[]): Report[];
getCustomReports(): Report[];
isColumnExportable(adaptableColumn: AdaptableColumn): boolean;
getSupportedExportDestinations(reportFormat: ReportFormatType): ExportDestinationType[];
exportReport(reportName: ReportNameType, format: ReportFormatType, destination?: ExportDestinationType): Promise<void>;
getReportData(reportName: ReportNameType, format: ReportFormatType): Promise<ExportResultData>;
private processExport;
}