/** Core */ import { CoreComponent } from "cmf.core/src/core"; import * as Lbos from "cmf.lbos"; /** Nested components */ import { BusinessComboBox } from "../comboBox/comboBox"; /** Services */ import { ComboBoxService, EntityComboBoxDef } from "./entityComboBoxService"; /** Angular */ import * as ng from "@angular/core"; /** * @whatItDoes * * EntityComboBox business component. Used to select an entity type among all the entity types available in the system. * * @howToUse * * This component is used with the inputs and outputs mentioned below. * * ### Inputs * `string` : **placeholder** - Defines the component placeholder - overriding the default component placeholder (lookupTableName). * `boolean` : **disabled** - Defines if the element is disabled to be filed. * `boolean` : **required** - Defines if the component requires a value. Default is false. * `string[]` : **itemsToIgnore** - An array of items to ignore. The items of the array will be compared with the field Value of the lookUpTableValue. * `any` : **value** - The currently selected value of the comboBox component. * `Lbos.Cmf.Foundation.Common.ReferenceType` : **referenceType** - Sets the Reference Type to be used as filter. * `boolean` : **singleElementPreSelect** - Defines if the component should pre-select when there's only one element available. Default is 'true'. * `boolean` : **includeRelations** - Defines if should include relation entity types. * * ### Outputs * `any` : **valueChanged** - When the selected value of the component changes, this output informs the upper components that the selected value was changed. * * ## Example * To use the component, assume this HTML Template as an example: * * ```HTML * * * ``` * * @description * * ## EntityComboBox Component * * ### Dependencies * * #### Components * * _This component does not depend on any component_ * * #### Services * * ComboBoxService : `cmf.core.business.controls` * * #### Directives * _This component does not depend on any directive_ * */ export declare class EntityComboBox extends CoreComponent implements EntityComboBoxDef, ng.OnChanges, ng.OnInit { private _referenceType; private _entityComboBoxService; /** * Defines if should include relation entity types */ includeRelations: boolean; /** * Defines if the element is disabled to be filed */ disabled: boolean; /** * The currently selected value of the comboBox component * * @property {string} selected value of the select component */ value: any; /** * Defines if the component requires a value. Default is false. */ required: boolean; /** * Defines the component placeholder - overriding the default component placeholder (lookupTableName) */ placeholder: string; /** * Defines if the component should pre-select when there's only one element available. Default is 'true'. */ singleElementPreSelect: boolean; /** * An array of items to ignore. The items of the array will be compared with the field Value of the lookUpTableValue * * @property {string[]} array of Values to Ignore */ itemsToIgnore: string[]; /** * Sets the Reference Type to be used as filter */ /** * Gets the Reference Type to be used as filter */ referenceType: Lbos.Cmf.Foundation.Common.ReferenceType; businessComboBox: BusinessComboBox; /** * Defines if we want only the entities with state models inside */ onlyWithStateModels: boolean; /** * The selected value change event, so the component can inform the upper components that the selected value has changed * * @property {ng.EventEmitter} init event */ valueChanged: ng.EventEmitter; constructor(_entityComboBoxService: ComboBoxService); ngOnChanges(changes: ng.SimpleChanges): void; ngOnInit(): void; /** * When selected value changes - notify parent component */ onValueChange(value: any): void; } export declare class EntityComboBoxModule { }