UNPKG

@c8y/ngx-components

Version:

Angular modules for Cumulocity IoT applications

31 lines 1.37 kB
import { AppStateService } from '@c8y/ngx-components'; import { CockpitConfig } from '@c8y/ngx-components/cockpit-config'; import { WidgetConfigService } from '@c8y/ngx-components/context-dashboard'; import { Observable, Subject } from 'rxjs'; import { HtmlWidget } from './html-widget.model'; import * as i0 from "@angular/core"; export declare class HtmlWidgetConfigService { readonly DEFAULT_AUTO_SAVE_DEBOUNCE = 1000; codeChange$: Subject<{ value: string; type: "css" | "code"; }>; widgetConfigService: WidgetConfigService; appState: AppStateService; destroy$: Subject<void>; init$: Observable<HtmlWidget>; config$: Observable<HtmlWidget>; codeEditorChangeConfig$: Observable<HtmlWidget>; configChanged$: Subject<HtmlWidget>; initConfig(appConfig: CockpitConfig, widgetConfig: HtmlWidget): Observable<HtmlWidget>; destroy(): void; save(config: HtmlWidget): void; changeCode(value: string): void; changeCss(value: string): void; enableAdvancedMode(currentConfig: HtmlWidget): HtmlWidget; initDefaultMode(advancedSecurity?: boolean): HtmlWidget; private mapLegacyConfig; static ɵfac: i0.ɵɵFactoryDeclaration<HtmlWidgetConfigService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<HtmlWidgetConfigService>; } //# sourceMappingURL=html-widget-config.service.d.ts.map