/*! * devextreme-angular-test * Version: 17.2.8 * Build date: Mon Feb 05 2018 * * Copyright (c) 2012 - 2018 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-angular */ import { ElementRef, NgZone, OnDestroy, Injector, EventEmitter, OnInit, AfterViewInit, OnChanges, DoCheck, SimpleChanges, QueryList } from '@angular/core'; import DevExpress from 'devextreme/bundles/dx.all'; import DxLookup from 'devextreme/ui/lookup'; import { DxValidatorComponent } from './validator'; import { ControlValueAccessor } from '@angular/forms'; import { DxComponent } from '../core/component'; import { DxTemplateHost } from '../core/template-host'; import { NestedOptionHost } from '../core/nested-option'; import { WatcherHelper } from '../core/watcher-helper'; import { IterableDifferHelper } from '../core/iterable-differ-helper'; import { DxiItemComponent } from './nested/item-dxi'; /** * The Lookup is a widget that allows an end user to search for an item in a collection shown in a drop-down menu. */ export declare class DxLookupComponent extends DxComponent implements OnDestroy, OnInit, AfterViewInit, ControlValueAccessor, OnChanges, DoCheck { private _watcherHelper; private _idh; instance: DxLookup; validator: DxValidatorComponent; /** * Specifies the shortcut key that sets focus on the widget. */ accessKey: string; /** * Specifies whether or not the widget changes its state when interacting with a user. */ activeStateEnabled: boolean; /** * Configures widget visibility animations. This object contains two fields: show and hide. */ animation: any; /** * The text displayed on the Apply button. */ applyButtonText: string; /** * Specifies the way an end-user applies the selected value. */ applyValueMode: string; attr: any; /** * The text displayed on the Cancel button. */ cancelButtonText: string; /** * Specifies whether or not the widget cleans the search box when the popup window is displayed. */ cleanSearchOnOpening: boolean; /** * The text displayed on the Clear button. */ clearButtonText: string; /** * A Boolean value specifying whether or not a widget is closed if a user clicks outside of the overlaying window. */ closeOnOutsideClick: boolean | Function; /** * A data source used to fetch data to be displayed by the widget. */ dataSource: DevExpress.data.DataSource | DevExpress.data.DataSourceOptions | string | Array; /** * Specifies whether widget content is rendered when the widget is shown or when rendering the widget. */ deferRendering: boolean; /** * Specifies whether the widget responds to user interaction. */ disabled: boolean; /** * Specifies the name of the data source item field whose value is displayed by the widget. */ displayExpr: Function | string; /** * Returns the value currently displayed by the widget. */ displayValue: string; /** * Specifies a custom template for the drop-down button. */ dropDownButtonTemplate: any; /** * Specifies the attributes to be attached to the widget's root element. */ elementAttr: any; /** * This option is deprecated, because the functionality controlled by it was not supposed to belong to the Lookup widget. Instead, we suggest that you use the SelectBox widget with the acceptCustomValue option set to true. */ fieldEditEnabled: any; /** * The template to be used for rendering the widget text field. */ fieldTemplate: any; /** * Specifies whether the widget can be focused using keyboard navigation. */ focusStateEnabled: boolean; /** * A Boolean value specifying whether or not to display the lookup in full-screen mode. */ fullScreen: boolean; /** * A Boolean value specifying whether or not to group widget items. */ grouped: boolean; /** * Specifies a custom template for a group caption. */ groupTemplate: any; /** * Specifies the widget's height. */ height: number | Function | string; /** * Specifies text for a hint that appears when a user pauses on the widget. */ hint: string; /** * Specifies whether the widget changes its state when a user pauses on it. */ hoverStateEnabled: boolean; /** * Specifies the attributes to be passed on to the underlying HTML element. */ inputAttr: any; /** * Specifies whether the editor's value is valid. */ isValid: boolean; /** * An array of items displayed by the widget. */ items: Array; /** * Specifies a custom template for an item. */ itemTemplate: any; /** * The minimum number of characters that must be entered into the text box to begin a search. Applies only if searchEnabled is true. */ minSearchLength: number; /** * The value to be assigned to the `name` attribute of the underlying HTML element. */ name: string; /** * The text displayed on the button used to load the next page from the data source. */ nextButtonText: string; /** * The text or HTML markup displayed by the widget if the item collection is empty. */ noDataText: string; /** * Specifies whether or not the drop-down editor is displayed. */ opened: boolean; /** * Specifies the text shown in the pullDown panel, which is displayed when the widget is scrolled to the bottom. */ pageLoadingText: string; /** * Specifies whether the next page is loaded when a user scrolls the widget to the bottom or when the "next" button is clicked. */ pageLoadMode: string; /** * Use the DataSource paging opportunities instead. */ pagingEnabled: boolean; /** * The text displayed by the widget when nothing is selected. */ placeholder: string; /** * The height of the widget popup element. */ popupHeight: number | Function | string; /** * The width of the widget popup element. */ popupWidth: number | Function | string; /** * An object defining widget positioning options. */ position: DevExpress.positionConfig; /** * Specifies the text displayed in the pullDown panel when the widget is pulled below the refresh threshold. */ pulledDownText: string; /** * Specifies the text shown in the pullDown panel while the list is being pulled down to the refresh threshold. */ pullingDownText: string; /** * A Boolean value specifying whether or not the widget supports the "pull down to refresh" gesture. */ pullRefreshEnabled: boolean; /** * Specifies the text displayed in the pullDown panel while the widget is being refreshed. */ refreshingText: string; /** * Switches the widget to a right-to-left representation. */ rtlEnabled: boolean; /** * Specifies whether the search box is visible. */ searchEnabled: boolean; /** * Specifies the name of a data source item field or an expression whose value is compared to the search criterion. */ searchExpr: Function | Array; /** * Specifies the binary operation used to filter data. */ searchMode: string; /** * The text that is provided as a hint in the lookup's search bar. */ searchPlaceholder: string; /** * Specifies the time delay, in milliseconds, after the last character has been typed in, before a search is executed. */ searchTimeout: number; /** * Gets the currently selected item. */ selectedItem: any; /** * A Boolean value specifying whether or not the main screen is inactive while the lookup is active. */ shading: boolean; /** * Specifies whether to display the Cancel button in the lookup window. */ showCancelButton: boolean; /** * Specifies whether or not to display the Clear button in the lookup window. */ showClearButton: boolean; /** * Specifies whether or not the widget displays unfiltered values until a user types a number of characters exceeding the minSearchLength option value. */ showDataBeforeSearch: boolean; /** * Use the pageLoadMode option instead. */ showNextButton: boolean; /** * A Boolean value specifying whether or not to display the title in the popup window. */ showPopupTitle: boolean; /** * Specifies the number of the element when the Tab key is used for navigating. */ tabIndex: number; /** * The read-only option that holds the text displayed by the widget input element. */ text: string; /** * The title of the lookup window. */ title: string; /** * A template to be used for rendering the widget title. */ titleTemplate: any; /** * Specifies whether or not the widget uses native scrolling. */ useNativeScrolling: boolean; /** * Specifies whether or not to show lookup contents in a Popover widget. */ usePopover: boolean; /** * Specifies information on the validation error when using a custom validation engine. Should be changed at runtime along with the isValid option. */ validationError: any; /** * Specifies how the message about the validation rules that are not satisfied by this editor's value is displayed. */ validationMessageMode: string; /** * Specifies the currently selected value. May be an object if dataSource contains objects and valueExpr is not set. */ value: any; /** * Specifies DOM event names that update a widget's value. */ valueChangeEvent: string; /** * Specifies which data field provides the widget's value. When this option is not set, the value is the entire data object. */ valueExpr: Function | string; /** * Specifies whether the widget is visible. */ visible: boolean; /** * Specifies the widget's width. */ width: number | Function | string; /** * A handler for the closed event. */ onClosed: EventEmitter; /** * A handler for the contentReady event. Executed when the widget's content is ready. This handler may be executed multiple times during the widget's lifetime depending on the number of times its content changes. */ onContentReady: EventEmitter; /** * A handler for the disposing event. Executed when the widget is removed from the DOM using the remove(), empty(), or html() jQuery methods only. */ onDisposing: EventEmitter; /** * A handler for the initialized event. Executed only once, after the widget is initialized. */ onInitialized: EventEmitter; /** * A handler for the itemClick event. */ onItemClick: EventEmitter; /** * A handler for the opened event. */ onOpened: EventEmitter; /** * A handler for the optionChanged event. Executed after an option of the widget is changed. */ onOptionChanged: EventEmitter; /** * A handler for the pageLoading event. */ onPageLoading: EventEmitter; /** * A handler for the pullRefresh event. */ onPullRefresh: EventEmitter; /** * A handler for the scroll event. */ onScroll: EventEmitter; /** * A handler for the selectionChanged event. */ onSelectionChanged: EventEmitter; /** * A handler for the titleRendered event. */ onTitleRendered: EventEmitter; /** * A handler for the valueChanged event. */ onValueChanged: EventEmitter; /** * A handler for the accessKeyChange event. */ accessKeyChange: EventEmitter; /** * A handler for the activeStateEnabledChange event. */ activeStateEnabledChange: EventEmitter; /** * A handler for the animationChange event. */ animationChange: EventEmitter; /** * A handler for the applyButtonTextChange event. */ applyButtonTextChange: EventEmitter; /** * A handler for the applyValueModeChange event. */ applyValueModeChange: EventEmitter; /** * A handler for the attrChange event. */ attrChange: EventEmitter; /** * A handler for the cancelButtonTextChange event. */ cancelButtonTextChange: EventEmitter; /** * A handler for the cleanSearchOnOpeningChange event. */ cleanSearchOnOpeningChange: EventEmitter; /** * A handler for the clearButtonTextChange event. */ clearButtonTextChange: EventEmitter; /** * A handler for the closeOnOutsideClickChange event. */ closeOnOutsideClickChange: EventEmitter; /** * A handler for the dataSourceChange event. */ dataSourceChange: EventEmitter>; /** * A handler for the deferRenderingChange event. */ deferRenderingChange: EventEmitter; /** * A handler for the disabledChange event. */ disabledChange: EventEmitter; /** * A handler for the displayExprChange event. */ displayExprChange: EventEmitter; /** * A handler for the displayValueChange event. */ displayValueChange: EventEmitter; /** * A handler for the dropDownButtonTemplateChange event. */ dropDownButtonTemplateChange: EventEmitter; /** * A handler for the elementAttrChange event. */ elementAttrChange: EventEmitter; /** * A handler for the fieldEditEnabledChange event. */ fieldEditEnabledChange: EventEmitter; /** * A handler for the fieldTemplateChange event. */ fieldTemplateChange: EventEmitter; /** * A handler for the focusStateEnabledChange event. */ focusStateEnabledChange: EventEmitter; /** * A handler for the fullScreenChange event. */ fullScreenChange: EventEmitter; /** * A handler for the groupedChange event. */ groupedChange: EventEmitter; /** * A handler for the groupTemplateChange event. */ groupTemplateChange: EventEmitter; /** * A handler for the heightChange event. */ heightChange: EventEmitter; /** * A handler for the hintChange event. */ hintChange: EventEmitter; /** * A handler for the hoverStateEnabledChange event. */ hoverStateEnabledChange: EventEmitter; /** * A handler for the inputAttrChange event. */ inputAttrChange: EventEmitter; /** * A handler for the isValidChange event. */ isValidChange: EventEmitter; /** * A handler for the itemsChange event. */ itemsChange: EventEmitter>; /** * A handler for the itemTemplateChange event. */ itemTemplateChange: EventEmitter; /** * A handler for the minSearchLengthChange event. */ minSearchLengthChange: EventEmitter; /** * A handler for the nameChange event. */ nameChange: EventEmitter; /** * A handler for the nextButtonTextChange event. */ nextButtonTextChange: EventEmitter; /** * A handler for the noDataTextChange event. */ noDataTextChange: EventEmitter; /** * A handler for the openedChange event. */ openedChange: EventEmitter; /** * A handler for the pageLoadingTextChange event. */ pageLoadingTextChange: EventEmitter; /** * A handler for the pageLoadModeChange event. */ pageLoadModeChange: EventEmitter; /** * A handler for the pagingEnabledChange event. */ pagingEnabledChange: EventEmitter; /** * A handler for the placeholderChange event. */ placeholderChange: EventEmitter; /** * A handler for the popupHeightChange event. */ popupHeightChange: EventEmitter; /** * A handler for the popupWidthChange event. */ popupWidthChange: EventEmitter; /** * A handler for the positionChange event. */ positionChange: EventEmitter; /** * A handler for the pulledDownTextChange event. */ pulledDownTextChange: EventEmitter; /** * A handler for the pullingDownTextChange event. */ pullingDownTextChange: EventEmitter; /** * A handler for the pullRefreshEnabledChange event. */ pullRefreshEnabledChange: EventEmitter; /** * A handler for the refreshingTextChange event. */ refreshingTextChange: EventEmitter; /** * A handler for the rtlEnabledChange event. */ rtlEnabledChange: EventEmitter; /** * A handler for the searchEnabledChange event. */ searchEnabledChange: EventEmitter; /** * A handler for the searchExprChange event. */ searchExprChange: EventEmitter>; /** * A handler for the searchModeChange event. */ searchModeChange: EventEmitter; /** * A handler for the searchPlaceholderChange event. */ searchPlaceholderChange: EventEmitter; /** * A handler for the searchTimeoutChange event. */ searchTimeoutChange: EventEmitter; /** * A handler for the selectedItemChange event. */ selectedItemChange: EventEmitter; /** * A handler for the shadingChange event. */ shadingChange: EventEmitter; /** * A handler for the showCancelButtonChange event. */ showCancelButtonChange: EventEmitter; /** * A handler for the showClearButtonChange event. */ showClearButtonChange: EventEmitter; /** * A handler for the showDataBeforeSearchChange event. */ showDataBeforeSearchChange: EventEmitter; /** * A handler for the showNextButtonChange event. */ showNextButtonChange: EventEmitter; /** * A handler for the showPopupTitleChange event. */ showPopupTitleChange: EventEmitter; /** * A handler for the tabIndexChange event. */ tabIndexChange: EventEmitter; /** * A handler for the textChange event. */ textChange: EventEmitter; /** * A handler for the titleChange event. */ titleChange: EventEmitter; /** * A handler for the titleTemplateChange event. */ titleTemplateChange: EventEmitter; /** * A handler for the useNativeScrollingChange event. */ useNativeScrollingChange: EventEmitter; /** * A handler for the usePopoverChange event. */ usePopoverChange: EventEmitter; /** * A handler for the validationErrorChange event. */ validationErrorChange: EventEmitter; /** * A handler for the validationMessageModeChange event. */ validationMessageModeChange: EventEmitter; /** * A handler for the valueChange event. */ valueChange: EventEmitter; /** * A handler for the valueChangeEventChange event. */ valueChangeEventChange: EventEmitter; /** * A handler for the valueExprChange event. */ valueExprChange: EventEmitter; /** * A handler for the visibleChange event. */ visibleChange: EventEmitter; /** * A handler for the widthChange event. */ widthChange: EventEmitter; onBlur: EventEmitter; change(_: any): void; touched: () => void; itemsChildren: QueryList; constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, injector: Injector, _watcherHelper: WatcherHelper, _idh: IterableDifferHelper, optionHost: NestedOptionHost); protected _createInstance(element: any, options: any): DxLookup; writeValue(value: any): void; setDisabledState(isDisabled: boolean): void; registerOnChange(fn: (_: any) => void): void; registerOnTouched(fn: () => void): void; _createWidget(element: any): void; ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; setupChanges(prop: string, changes: SimpleChanges): void; ngDoCheck(): void; _setOption(name: string, value: any): void; ngOnInit(): void; ngAfterViewInit(): void; } export declare class DxLookupModule { }