UNPKG

@c8y/ngx-components

Version:

Angular modules for Cumulocity IoT applications

36 lines 1.75 kB
import { ContextDashboard } from '@c8y/ngx-components/context-dashboard'; import { OnInit } from '@angular/core'; import { DroppedFile, ThemeOptions } from '@c8y/ngx-components'; import { EditorComponent } from '@c8y/ngx-components/editor'; import { JSONValidationError } from './json-validation.service'; import * as i0 from "@angular/core"; export declare class DashboardJsonEditorComponent implements OnInit { infoText: "Import / Export allows copying dashboard configurations between assets using JSON files. You can export a dashboard's setup and import it to another asset.\n\nNote: Basic knowledge of dashboard JSON structure is required."; editorComponent: EditorComponent; dashboard: ContextDashboard; valueString: string; errors: import("@angular/core").WritableSignal<JSONValidationError[]>; editorDirty: boolean; editorTheme: ThemeOptions; isExporting: boolean; isImporting: boolean; editorOptions: EditorComponent['editorOptions']; private dashboardDetailService; private jsonValidationService; private importExportWidgetsService; private valueChange; private destroy$; private currentSchemas; ngOnInit(): void; ngOnDestroy(): void; dashboardJSONChange(value: string): void; assignSchema(): Promise<void>; validate(): Promise<void>; applyChanges(): void; export(): Promise<void>; import(file: DroppedFile[]): Promise<void>; private getEditorTheme; static ɵfac: i0.ɵɵFactoryDeclaration<DashboardJsonEditorComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<DashboardJsonEditorComponent, "c8y-dashboard-json-editor", never, {}, {}, never, never, true, never>; } //# sourceMappingURL=dashboard-json-editor.component.d.ts.map