/** Angular2 */ import * as ng from "@angular/core"; /** Core */ import { CoreComponent } from "cmf.core/src/core"; export interface ListItem { name: string; iconClass: string; customAttribute?: string; } /** * @whatItDoes * Page designer list component - used to list metadata widgets, instantiated widgets, and linkable elements * * @howToUse * This component is used with the inputs and outputs mentioned below. * * ### Inputs * `string` : **nameFilter** - Filter that will be compared with the name ; * `Array` : **items** - Items to display in the list ; * `string` : **noItemsText** - Text that is displayed when no items are listed ; * `string` : **noItemsFoundText** - Text that is displayed when no items are listed after a search . * * ### Outputs * `any` : **dragStart** - The selected item drag start event ; * `any` : **itemSelected** - Triggered when an item was selected . * * ### Example * To use the component, assume this HTML Template as an example: * * ```HTML * * ``` * */ export declare class List extends CoreComponent implements ng.OnChanges { _elementRef: ng.ElementRef; /** * Info text that is displayed when no items are listed */ _infoText: string; /** * List of available items, after a filter by name has been performed */ _filteredItems: Array; /** * Items to display in the list */ items: Array; /** * Filter that will be compared with the name */ nameFilter: string; /** * Text that is displayed when no items are listed */ noItemsText: string; /** * Text that is displayed when no items are listed after a search */ noItemsFoundText: string; /** * The selected item drag start event */ dragStart: ng.EventEmitter; /** * An item was selected */ itemSelected: ng.EventEmitter; constructor(_elementRef: ng.ElementRef); /** * Based on the listType updates info text */ private updateInfoText; /** * Uses the widget list to build a filtered version of the widget list */ private filterList; /** * On filter change - update item list */ onFilterChange(value: string): void; /** * On item drag start - notify parent component */ onItemDragStart(value: any): void; /** * On item select - notify parent component */ onItemSelect(value: any): void; /** * On changes - update filtered widget list */ ngOnChanges(changes: any): void; } export declare class ListModule { }