@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
29 lines • 1.25 kB
TypeScript
import { ContextDashboard } from '@c8y/ngx-components/context-dashboard';
import { DroppedFile } from '@c8y/ngx-components';
import * as i0 from "@angular/core";
export declare class ImportExportWidgetsService {
private dynamicComponentService;
private injector;
private alertService;
private dashboardDetailService;
private modal;
/**
* Export the dashboard to a JSON file. If the widget has an export method, it will be called to export
* the widget's configuration.
* @param dashboard Context dashboard to be exported
*/
export(dashboard: ContextDashboard): Promise<void>;
/**
* Import the dashboard from a JSON file. If the widget has an import method, it will be called to import
* widget's configuration.
* @param file JSON file with context dashboard configuration
*/
import(file: DroppedFile[]): Promise<string>;
private assignWidgetAssets;
private findWidgetsWithSuggestedDevice;
private getObjectByPath;
private updateWidgets;
static ɵfac: i0.ɵɵFactoryDeclaration<ImportExportWidgetsService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ImportExportWidgetsService>;
}
//# sourceMappingURL=import-export-widgets.service.d.ts.map