@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
25 lines (24 loc) • 1.21 kB
TypeScript
import { ReplaySubject } from "rxjs";
import { EventBus, IEvent } from "@nova-ui/bits";
import { DynamicComponentCreator } from "./dynamic-component-creator.service";
import { IComponentConfiguration, IPizza, IPizzagna } from "../../types";
import { IPizzagnaProperty } from "../functions/get-pizzagna-property-path";
/**
* This service allows pizzagna sub-components to read data of other components and initiate changes of property values
*/
export declare class PizzagnaService {
private eventBus;
private dynamicComponentCreator;
constructor(eventBus: EventBus<IEvent>, dynamicComponentCreator: DynamicComponentCreator);
pizzagna: IPizzagna;
pizzaChanged: ReplaySubject<IPizza>;
private components;
updatePizzagna(pizzagna: IPizzagna): void;
updateComponents(components: IPizza): void;
getComponent(refId: string): IComponentConfiguration;
setProperty(property: IPizzagnaProperty | string, value: any): void;
createComponentsFromTemplateWithProperties(parentPath: string, components: any): void;
createComponentsFromTemplate(parentPath: string, componentIds: string[]): void;
removeComponents(ids: string | string[]): void;
private removeComponent;
}