UNPKG

@nova-ui/dashboards

Version:

Nova Dashboards is a framework designed to provide feature developers with a common solution for presenting data coming from various sources within a single view, as well as a set of predefined widget visualizations that are 100% configuration-driven and

29 lines (28 loc) 1.34 kB
import { AfterViewInit, OnDestroy } from "@angular/core"; import { FormGroup } from "@angular/forms"; import { Subject } from "rxjs"; import { EventBus, IEvent } from "@nova-ui/bits"; import { PizzagnaService } from "../../../pizzagna/services/pizzagna.service"; import { IPizzagna, IPizzagnaLayer } from "../../../types"; import { PreviewService } from "../preview.service"; import { IConfiguratorConverter } from "./types"; import * as i0 from "@angular/core"; export declare abstract class BaseConverter implements AfterViewInit, IConfiguratorConverter, OnDestroy { protected eventBus: EventBus<IEvent>; private previewService; protected pizzagnaService: PizzagnaService; component: any; componentId: string; readonly destroy$: Subject<void>; constructor(eventBus: EventBus<IEvent>, previewService: PreviewService, pizzagnaService: PizzagnaService); ngAfterViewInit(): void; abstract buildForm(): void; abstract toPreview(form: FormGroup): void; setComponent(component: any, componentId: string): void; getPreview(): IPizzagnaLayer; updatePreview(preview: IPizzagnaLayer): void; updateFormPizzagna(pizzagna: IPizzagna): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<BaseConverter, never>; static ɵprov: i0.ɵɵInjectableDeclaration<BaseConverter>; }