/** Core */ import { CoreComponent } from "cmf.core/src/core"; import Cmf from "cmf.lbos"; /** Angular */ import * as ng from "@angular/core"; /** * @whatItDoes * * This components will be responsabile of setting State Model and State Model State for a given instance. * The control will only appear if the entity type of the given instance has state models available within the system. * * @howToUse * * This component is used with the inputs mentioned below. * * ### Inputs * * `any` : **instance** - The instance of the entity type that will be used to set current State Model and State Model State * * ### Outputs * * ### Example * To use the component, assume this HTML Template as an example: * * ```HTML * * * ``` * * @description * * ## EntityStateModelEditor Component * * ### Dependencies * * #### Components * * PropertyEditorModule: `cmf.core.business.controls` * #### Directives * */ export declare class EntityStateModelEditor extends CoreComponent implements ng.OnChanges { private _elementRef; /** * The received instance */ instance: any; /** * Entity type */ entityType: Cmf.Foundation.BusinessObjects.EntityType; /** * Flag that controls wether entity type hasStateModels */ hasStateModels: boolean; /** * The Entity Type Name of the Entity Type */ entityTypeName: string; /** * Constructor * * @param viewContainerRef the reference to the component view container */ constructor(viewContainerRef: ng.ViewContainerRef, _elementRef: ng.ElementRef); /** * Angular ngOnChanges method responsible to handle operations when instance changes */ ngOnChanges(changes: ng.SimpleChanges): void; /** * Update the instance state model * @param stateModelId Newly selected state model */ stateModelChanged(stateModelId: string): void; /** * Triggered when the state model state changes * @param stateModelStateId New state model State Id */ stateModelStateChanged(stateModelStateId: string): void; } export declare class EntityStateModelEditorModule { }