/** Core */ import { CoreComponent } from "cmf.core/src/core"; import Cmf from "cmf.lbos"; /** Angular2 */ import * as ng from "@angular/core"; /** * LookupSelectExpanded business component. Used to select an item of a given lookup table collection * * ## Example * * Assume this HTML Template * * ```html * * * * ``` */ export declare class LookupSelectExpanded extends CoreComponent { /** * The value change event, so the component can inform the upper components that the selected value has changed */ valueChanged: ng.EventEmitter; /** * Defines if the component is required to be filled by the user * * @property {boolean} */ _required: boolean; /** * The id of the lookup table to get the values from */ private _lookupTableId; /** * The name/key of the lookup table to get the values from */ private _lookupTableName; /** * The object field that will be used to sort the values of a lookup table */ private _lookupTableOrderField; /** * The currently selected/inserted value of the comboBox component */ private _value; /** * The lookupTable object that contains the collection used to populate the ComboBox component. This object is not used directly by the component. * This field is set when property lookupTableId or property lookupTableName are updated */ private _lookupTable; /** * The data collection used to populate the ComboBox component. It's expected that at least two fields exist: 'Value' and 'Description'. * This field is set when property lookupTableId or property lookupTableName are updated */ _lookupTableItems: Cmf.Foundation.BusinessObjects.LookupTableValue[]; /** * 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 */ private _itemsToIgnore; /** * Based on the currently lookup table object, updates the items that populate the combo box * * @return {void} */ private _updateLookupItems; /** * If order field exists - ReOrder lookup table items * * @return {void} */ private _updateLookupItemsOrder; /** * Property _required getter * * @return {boolean} current value of property _required */ /** * Property _required setter * * @param {string | boolean} [value] new value for property _required */ required: string | boolean; /** * Property lookupTableId getter * * @return {string} current value for property lookupTableId */ /** * Property lookupTableId setter. This method also sets the value of properties _lookupTableName, _lookupTable and _lookupTableItems * * @param {string} [value] new value for property lookupTableId */ lookupTableId: string; /** * Property lookupTableName getter * * @return {string} current value for property lookupTableName */ /** * Property lookupTableName setter. This method also sets the value of properties _lookupTableId, _lookupTable and _lookupTableItems * * @param {string} [value] new value for property lookupTableName */ lookupTableName: string; /** * Property lookupTableOrderField getter * * @return {string} [value] current value of property lookupTableOrderField */ /** * Property lookupTableOrderField setter * * @param {string} [value] new value of property lookupTableOrderField */ lookupTableOrderField: string; /** * Property value getter * * @return {any} component current value */ /** * Property value setter. This method also notifies the parent component. * * @param {any} [value] new value */ value: any; /** * Property itemsToIgnore getter * * @return {string[]} array fo items to ignore */ /** * Property itemsToIgnore. * * @param {string[]} [value] new value for property selected value */ itemsToIgnore: string[]; constructor(); /** * When selected value changes - notify parent component * * @method onInit */ onSelectedChange(event: Event): void; } export declare class LookupSelectExpandedModule { }