/** Core */
import { CoreComponent } from "cmf.core/src/core";
/** Angular2 */
import * as ng from "@angular/core";
import { Cmf } from "cmf.lbos";
/**
* Entity Item
*/
export interface EntityItem {
entity: Cmf.Foundation.BusinessObjects.Entity;
selected: boolean;
}
/**
* The Find Entities Interactive component.
*
* Use this component to search entities by name of a specific entity type.
* The entities will appear in listed boxes that can support drag and drop.
* The list is paginated and you can also specify a number of items per page.
*
* ## Example
*
* Assume this HTML Template
*
* ```html
*
*
*
*
* ```
* @class FindEntitiesInteractive
*/
export declare class FindEntitiesInteractive extends CoreComponent implements ng.AfterViewInit, ng.OnChanges {
private _elementRef;
/**
* reference type for navigation icon
*/
private _referenceType;
/**
* Search bar placeholder
*/
_searchPlaceholder: string;
/**
* Current selected page
*/
_currentPage: number;
/**
* Entity items in pages
*/
_pages: Array>;
/**
* Search Text
*/
_searchText: string;
/**
* Text input child
*/
private _input;
/**
* List child
*/
private _listRef;
/**
* Entity Type Name
*/
entityTypeName: string;
/**
* Number of items per page
*/
itemsPerPage: number;
/**
* When an Entity Item was dragged
*/
itemDragStarted: ng.EventEmitter;
/**
* When an Entity Item was selected
*/
itemSelected: ng.EventEmitter;
/**
* @method constructor
*/
constructor(_elementRef: ng.ElementRef);
/**
* After view init
*/
ngAfterViewInit(): void;
/**
* On changes
*/
ngOnChanges(changes: ng.SimpleChanges): void;
/**
* On enter key down
*/
private onKeyDown;
/**
* When Search text change
*/
onSearchTextChange(event: any): void;
/**
* When item dragged
*/
onItemDragStart(event: any, item: EntityItem): void;
/**
* On item clicked
*/
onItemClicked(item: EntityItem): void;
/**
* Build entity query
*/
private buildQuery;
/**
* Build entity filter collection
*/
private buildEntityFilterCollection;
/**
* Build entity query field collection
*/
private buildFieldCollection;
/**
* Build entity query filter collection
*/
private buildFilterCollection;
/**
* Go to next page
*/
nextPage(): void;
/**
* Go to last page
*/
lastPage(): void;
/**
* Go to previous page
*/
previousPage(): void;
/**
* Go to first page
*/
firstPage(): void;
/**
* Reset search
*/
resetSearch(): void;
/**
* Make a search to find entities by name
*/
makeSearch(searchText: string): void;
}
export declare class FindEntitiesInteractiveModule {
}