UNPKG

ngx-bootstrap

Version:
1,119 lines 94.2 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { __values } from "tslib"; /* tslint:disable:max-file-line-count */ import { ChangeDetectorRef, Directive, ElementRef, EventEmitter, HostListener, Input, Output, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core'; import { NgControl } from '@angular/forms'; import { from, isObservable } from 'rxjs'; import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader'; import { debounceTime, filter, mergeMap, switchMap, toArray, tap } from 'rxjs/operators'; import { TypeaheadContainerComponent } from './typeahead-container.component'; import { TypeaheadMatch } from './typeahead-match.class'; import { TypeaheadConfig } from './typeahead.config'; import { getValueFromObject, latinize, tokenize } from './typeahead-utils'; import { TypeaheadOrder } from './typeahead-order.class'; var TypeaheadDirective = /** @class */ (function () { function TypeaheadDirective(cis, config, changeDetection, element, ngControl, renderer, viewContainerRef) { this.changeDetection = changeDetection; this.element = element; this.ngControl = ngControl; this.renderer = renderer; /** * minimal no of characters that needs to be entered before * typeahead kicks-in. When set to 0, typeahead shows on focus with full * list of options (limited as normal by typeaheadOptionsLimit) */ this.typeaheadMinLength = void 0; /** * turn on/off animation */ this.isAnimated = false; /** * should be used only in case of typeahead attribute is Observable of array. * If true - loading of options will be async, otherwise - sync. * true make sense if options array is large. */ this.typeaheadAsync = void 0; /** * match latin symbols. * If true the word súper would match super and vice versa. */ this.typeaheadLatinize = true; /** * Can be use to search words by inserting a single white space between each characters * for example 'C a l i f o r n i a' will match 'California'. */ this.typeaheadSingleWords = true; /** * should be used only in case typeaheadSingleWords attribute is true. * Sets the word delimiter to break words. Defaults to space. */ this.typeaheadWordDelimiters = ' '; /** * Can be used to conduct a search of multiple items and have suggestion not for the * whole value of the input but for the value that comes after a delimiter provided via * typeaheadMultipleSearchDelimiters attribute. This option can only be used together with * typeaheadSingleWords option if typeaheadWordDelimiters and typeaheadPhraseDelimiters * are different from typeaheadMultipleSearchDelimiters to avoid conflict in determining * when to delimit multiple searches and when a single word. */ this.typeaheadMultipleSearch = void 0; /** * should be used only in case typeaheadMultipleSearch attribute is true. * Sets the multiple search delimiter to know when to start a new search. Defaults to comma. * If space needs to be used, then explicitly set typeaheadWordDelimiters to something else than space * because space is used by default OR set typeaheadSingleWords attribute to false if you don't need * to use it together with multiple search. */ this.typeaheadMultipleSearchDelimiters = ','; /** * should be used only in case typeaheadSingleWords attribute is true. * Sets the word delimiter to match exact phrase. * Defaults to simple and double quotes. */ this.typeaheadPhraseDelimiters = '\'"'; /** * specifies if typeahead is scrollable */ this.typeaheadScrollable = false; /** * specifies number of options to show in scroll view */ this.typeaheadOptionsInScrollableView = 5; /** * fired when an options list was opened and the user clicked Tab * If a value equal true, it will be chosen first or active item in the list * If value equal false, it will be chosen an active item in the list or nothing */ this.typeaheadSelectFirstItem = true; /** * makes active first item in a list */ this.typeaheadIsFirstItemActive = true; /** * fired when 'busy' state of this component was changed, * fired on async mode only, returns boolean */ this.typeaheadLoading = new EventEmitter(); /** * fired on every key event and returns true * in case of matches are not detected */ this.typeaheadNoResults = new EventEmitter(); /** * fired when option was selected, return object with data of this option */ this.typeaheadOnSelect = new EventEmitter(); /** * fired when blur event occurs. returns the active item */ this.typeaheadOnBlur = new EventEmitter(); /** * This attribute indicates that the dropdown should be opened upwards */ this.dropup = false; this.isOpen = false; this.list = 'list'; this.isActiveItemChanged = false; this.isFocused = false; this.cancelRequestOnFocusLost = false; // tslint:disable-next-line:no-any this.keyUpEventEmitter = new EventEmitter(); this._matches = []; this.placement = 'bottom left'; this._subscriptions = []; this._typeahead = cis.createLoader(element, viewContainerRef, renderer) .provide({ provide: TypeaheadConfig, useValue: config }); Object.assign(this, { typeaheadHideResultsOnBlur: config.hideResultsOnBlur, cancelRequestOnFocusLost: config.cancelRequestOnFocusLost, typeaheadSelectFirstItem: config.selectFirstItem, typeaheadIsFirstItemActive: config.isFirstItemActive, typeaheadMinLength: config.minLength, adaptivePosition: config.adaptivePosition, isAnimated: config.isAnimated }); } /** * @return {?} */ TypeaheadDirective.prototype.ngOnInit = /** * @return {?} */ function () { this.typeaheadOptionsLimit = this.typeaheadOptionsLimit || 20; this.typeaheadMinLength = this.typeaheadMinLength === void 0 ? 1 : this.typeaheadMinLength; this.typeaheadWaitMs = this.typeaheadWaitMs || 0; // async should be false in case of array if (this.typeaheadAsync === undefined && !(isObservable(this.typeahead))) { this.typeaheadAsync = false; } if (isObservable(this.typeahead)) { this.typeaheadAsync = true; } if (this.typeaheadAsync) { this.asyncActions(); } else { this.syncActions(); } this.checkDelimitersConflict(); }; /** * @param {?} e * @return {?} */ // tslint:disable-next-line:no-any TypeaheadDirective.prototype.onInput = /** * @param {?} e * @return {?} */ function (e) { // For `<input>`s, use the `value` property. For others that don't have a // `value` (such as `<span contenteditable="true">`), use either // `textContent` or `innerText` (depending on which one is supported, i.e. // Firefox or IE). /** @type {?} */ var value = e.target.value !== undefined ? e.target.value : e.target.textContent !== undefined ? e.target.textContent : e.target.innerText; if (value != null && value.trim().length >= this.typeaheadMinLength) { this.typeaheadLoading.emit(true); this.keyUpEventEmitter.emit(e.target.value); } else { this.typeaheadLoading.emit(false); this.typeaheadNoResults.emit(false); this.hide(); } }; /** * @param {?} event * @return {?} */ TypeaheadDirective.prototype.onChange = /** * @param {?} event * @return {?} */ function (event) { if (this._container) { // esc /* tslint:disable-next-line: deprecation */ if (event.keyCode === 27 || event.key === 'Escape') { this.hide(); return; } // up /* tslint:disable-next-line: deprecation */ if (event.keyCode === 38 || event.key === 'ArrowUp') { this.isActiveItemChanged = true; this._container.prevActiveMatch(); return; } // down /* tslint:disable-next-line: deprecation */ if (event.keyCode === 40 || event.key === 'ArrowDown') { this.isActiveItemChanged = true; this._container.nextActiveMatch(); return; } // enter /* tslint:disable-next-line: deprecation */ if (event.keyCode === 13 || event.key === 'Enter') { this._container.selectActiveMatch(); return; } } }; /** * @return {?} */ TypeaheadDirective.prototype.onFocus = /** * @return {?} */ function () { var _this = this; this.isFocused = true; // add setTimeout to fix issue #5251 // to get and emit updated value if it's changed on focus setTimeout((/** * @return {?} */ function () { if (_this.typeaheadMinLength === 0) { _this.typeaheadLoading.emit(true); _this.keyUpEventEmitter.emit(_this.element.nativeElement.value || ''); } }), 0); }; /** * @return {?} */ TypeaheadDirective.prototype.onBlur = /** * @return {?} */ function () { this.isFocused = false; if (this._container && !this._container.isFocused) { this.typeaheadOnBlur.emit(this._container.active); } if (!this.container && this._matches.length === 0) { this.typeaheadOnBlur.emit(new TypeaheadMatch(this.element.nativeElement.value, this.element.nativeElement.value, false)); } }; /** * @param {?} event * @return {?} */ TypeaheadDirective.prototype.onKeydown = /** * @param {?} event * @return {?} */ function (event) { // no container - no problems if (!this._container) { return; } /* tslint:disable-next-line: deprecation */ if (event.keyCode === 9 || event.key === 'Tab') { this.onBlur(); } /* tslint:disable-next-line: deprecation */ if (event.keyCode === 9 || event.key === 'Tab' || event.keyCode === 13 || event.key === 'Enter') { event.preventDefault(); if (this.typeaheadSelectFirstItem) { this._container.selectActiveMatch(); return; } if (!this.typeaheadSelectFirstItem) { this._container.selectActiveMatch(this.isActiveItemChanged); this.isActiveItemChanged = false; this.hide(); } } }; /** * @param {?} match * @return {?} */ TypeaheadDirective.prototype.changeModel = /** * @param {?} match * @return {?} */ function (match) { /** @type {?} */ var valueStr; if (this.typeaheadMultipleSearch) { /** @type {?} */ var tokens = this._allEnteredValue.split(new RegExp("([" + this.typeaheadMultipleSearchDelimiters + "]+)")); this._allEnteredValue = tokens.slice(0, tokens.length - 1).concat(match.value).join(''); valueStr = this._allEnteredValue; } else { valueStr = match.value; } this.ngControl.viewToModelUpdate(valueStr); (this.ngControl.control).setValue(valueStr); this.changeDetection.markForCheck(); this.hide(); }; Object.defineProperty(TypeaheadDirective.prototype, "matches", { get: /** * @return {?} */ function () { return this._matches; }, enumerable: true, configurable: true }); /** * @return {?} */ TypeaheadDirective.prototype.show = /** * @return {?} */ function () { var _this = this; this._typeahead .attach(TypeaheadContainerComponent) .to(this.container) .position({ attachment: (this.dropup ? 'top' : 'bottom') + " left" }) .show({ typeaheadRef: this, placement: this.placement, animation: false, dropup: this.dropup }); this._outsideClickListener = this.renderer.listen('document', 'click', (/** * @param {?} e * @return {?} */ function (e) { if (_this.typeaheadMinLength === 0 && _this.element.nativeElement.contains(e.target)) { return undefined; } if (!_this.typeaheadHideResultsOnBlur || _this.element.nativeElement.contains(e.target)) { return undefined; } _this.onOutsideClick(); })); this._container = this._typeahead.instance; this._container.parent = this; // This improves the speed as it won't have to be done for each list item /** @type {?} */ var normalizedQuery = (this.typeaheadLatinize ? latinize(this.ngControl.control.value) : this.ngControl.control.value) .toString() .toLowerCase(); this._container.query = this.tokenizeQuery(normalizedQuery); this._container.matches = this._matches; this.element.nativeElement.focus(); this._container.activeChangeEvent.subscribe((/** * @param {?} activeId * @return {?} */ function (activeId) { _this.activeDescendant = activeId; _this.changeDetection.markForCheck(); })); this.isOpen = true; }; /** * @return {?} */ TypeaheadDirective.prototype.hide = /** * @return {?} */ function () { if (this._typeahead.isShown) { this._typeahead.hide(); this._outsideClickListener(); this._container = null; this.isOpen = false; this.changeDetection.markForCheck(); } }; /** * @return {?} */ TypeaheadDirective.prototype.onOutsideClick = /** * @return {?} */ function () { if (this._container && !this._container.isFocused) { this.hide(); } }; /** * @return {?} */ TypeaheadDirective.prototype.ngOnDestroy = /** * @return {?} */ function () { var e_1, _a; try { // clean up subscriptions for (var _b = __values(this._subscriptions), _c = _b.next(); !_c.done; _c = _b.next()) { var sub = _c.value; sub.unsubscribe(); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } this._typeahead.dispose(); }; /** * @protected * @return {?} */ TypeaheadDirective.prototype.asyncActions = /** * @protected * @return {?} */ function () { var _this = this; this._subscriptions.push(this.keyUpEventEmitter .pipe(debounceTime(this.typeaheadWaitMs), tap((/** * @param {?} value * @return {?} */ function (value) { _this._allEnteredValue = value; })), switchMap((/** * @return {?} */ function () { return _this.typeahead; }))) .subscribe((/** * @param {?} matches * @return {?} */ function (matches) { _this.finalizeAsyncCall(matches); }))); }; /** * @protected * @return {?} */ TypeaheadDirective.prototype.syncActions = /** * @protected * @return {?} */ function () { var _this = this; this._subscriptions.push(this.keyUpEventEmitter .pipe(debounceTime(this.typeaheadWaitMs), mergeMap((/** * @param {?} value * @return {?} */ function (value) { _this._allEnteredValue = value; /** @type {?} */ var normalizedQuery = _this.normalizeQuery(value); return from(_this.typeahead) .pipe(filter((/** * @param {?} option * @return {?} */ function (option) { return option && _this.testMatch(_this.normalizeOption(option), normalizedQuery); })), toArray()); }))) .subscribe((/** * @param {?} matches * @return {?} */ function (matches) { _this.finalizeAsyncCall(matches); }))); }; /** * @protected * @param {?} option * @return {?} */ TypeaheadDirective.prototype.normalizeOption = /** * @protected * @param {?} option * @return {?} */ function (option) { /** @type {?} */ var optionValue = getValueFromObject(option, this.typeaheadOptionField); /** @type {?} */ var normalizedOption = this.typeaheadLatinize ? latinize(optionValue) : optionValue; return normalizedOption.toLowerCase(); }; /** * @protected * @param {?} currentQuery * @return {?} */ TypeaheadDirective.prototype.tokenizeQuery = /** * @protected * @param {?} currentQuery * @return {?} */ function (currentQuery) { /** @type {?} */ var query = currentQuery; if (this.typeaheadMultipleSearch && this.typeaheadSingleWords) { if (!this.haveCommonCharacters("" + this.typeaheadPhraseDelimiters + this.typeaheadWordDelimiters, this.typeaheadMultipleSearchDelimiters)) { // single words and multiple search delimiters are different, can be used together query = tokenize((/** @type {?} */ (query)), this.typeaheadWordDelimiters, this.typeaheadPhraseDelimiters, this.typeaheadMultipleSearchDelimiters); } } else if (this.typeaheadSingleWords) { query = tokenize((/** @type {?} */ (query)), this.typeaheadWordDelimiters, this.typeaheadPhraseDelimiters); } else { // multiple searches query = tokenize((/** @type {?} */ (query)), null, null, this.typeaheadMultipleSearchDelimiters); } return query; }; /** * @protected * @param {?} value * @return {?} */ TypeaheadDirective.prototype.normalizeQuery = /** * @protected * @param {?} value * @return {?} */ function (value) { // If singleWords, break model here to not be doing extra work on each iteration /** @type {?} */ var normalizedQuery = (this.typeaheadLatinize ? latinize(value) : value) .toString() .toLowerCase(); normalizedQuery = this.tokenizeQuery(normalizedQuery); return normalizedQuery; }; /** * @protected * @param {?} match * @param {?} test * @return {?} */ TypeaheadDirective.prototype.testMatch = /** * @protected * @param {?} match * @param {?} test * @return {?} */ function (match, test) { /** @type {?} */ var spaceLength; if (typeof test === 'object') { spaceLength = test.length; for (var i = 0; i < spaceLength; i += 1) { if (test[i].length > 0 && match.indexOf(test[i]) < 0) { return false; } } return true; } return match.indexOf(test) >= 0; }; /** * @protected * @param {?} matches * @return {?} */ TypeaheadDirective.prototype.finalizeAsyncCall = /** * @protected * @param {?} matches * @return {?} */ function (matches) { this.prepareMatches(matches || []); this.typeaheadLoading.emit(false); this.typeaheadNoResults.emit(!this.hasMatches()); if (!this.hasMatches()) { this.hide(); return; } if (!this.isFocused && this.cancelRequestOnFocusLost) { return; } if (this._container) { // fix: remove usage of ngControl internals /** @type {?} */ var _controlValue = (this.typeaheadLatinize ? latinize(this.ngControl.control.value) : this.ngControl.control.value) || ''; // This improves the speed as it won't have to be done for each list item /** @type {?} */ var normalizedQuery = _controlValue.toString().toLowerCase(); this._container.query = this.tokenizeQuery(normalizedQuery); this._container.matches = this._matches; } else { this.show(); } }; /** * @protected * @param {?} options * @return {?} */ TypeaheadDirective.prototype.prepareMatches = /** * @protected * @param {?} options * @return {?} */ function (options) { var _this = this; /** @type {?} */ var limited = options.slice(0, this.typeaheadOptionsLimit); /** @type {?} */ var sorted = !this.typeaheadOrderBy ? limited : this.orderMatches(limited); if (this.typeaheadGroupField) { /** @type {?} */ var matches_1 = []; // extract all group names /** @type {?} */ var groups = sorted .map((/** * @param {?} option * @return {?} */ function (option) { return getValueFromObject(option, _this.typeaheadGroupField); })) .filter((/** * @param {?} v * @param {?} i * @param {?} a * @return {?} */ function (v, i, a) { return a.indexOf(v) === i; })); groups.forEach((/** * @param {?} group * @return {?} */ function (group) { // add group header to array of matches matches_1.push(new TypeaheadMatch(group, group, true)); // add each item of group to array of matches matches_1 = matches_1.concat(sorted .filter((/** * @param {?} option * @return {?} */ function (option) { return getValueFromObject(option, _this.typeaheadGroupField) === group; })) .map((/** * @param {?} option * @return {?} */ function (option) { return new TypeaheadMatch(option, getValueFromObject(option, _this.typeaheadOptionField)); }))); })); this._matches = matches_1; } else { this._matches = sorted.map(( // tslint:disable-next-line:no-any // tslint:disable-next-line:no-any /** * @param {?} option * @return {?} */ function (option) { return new TypeaheadMatch(option, getValueFromObject(option, _this.typeaheadOptionField)); })); } }; /** * @protected * @param {?} options * @return {?} */ TypeaheadDirective.prototype.orderMatches = /** * @protected * @param {?} options * @return {?} */ function (options) { if (!options.length) { return options; } if (this.typeaheadOrderBy !== null && this.typeaheadOrderBy !== undefined && typeof this.typeaheadOrderBy === 'object' && Object.keys(this.typeaheadOrderBy).length === 0) { // tslint:disable-next-line:no-console console.error('Field and direction properties for typeaheadOrderBy have to be set according to documentation!'); return options; } var _a = this.typeaheadOrderBy, field = _a.field, direction = _a.direction; if (!direction || !(direction === 'asc' || direction === 'desc')) { // tslint:disable-next-line:no-console console.error('typeaheadOrderBy direction has to equal "asc" or "desc". Please follow the documentation.'); return options; } if (typeof options[0] === 'string') { return direction === 'asc' ? options.sort() : options.sort().reverse(); } if (!field || typeof field !== 'string') { // tslint:disable-next-line:no-console console.error('typeaheadOrderBy field has to set according to the documentation.'); return options; } return options.sort((/** * @param {?} a * @param {?} b * @return {?} */ function (a, b) { /** @type {?} */ var stringA = getValueFromObject(a, field); /** @type {?} */ var stringB = getValueFromObject(b, field); if (stringA < stringB) { return direction === 'asc' ? -1 : 1; } if (stringA > stringB) { return direction === 'asc' ? 1 : -1; } return 0; })); }; /** * @protected * @return {?} */ TypeaheadDirective.prototype.hasMatches = /** * @protected * @return {?} */ function () { return this._matches.length > 0; }; /** * @protected * @return {?} */ TypeaheadDirective.prototype.checkDelimitersConflict = /** * @protected * @return {?} */ function () { if (this.typeaheadMultipleSearch && this.typeaheadSingleWords && (this.haveCommonCharacters("" + this.typeaheadPhraseDelimiters + this.typeaheadWordDelimiters, this.typeaheadMultipleSearchDelimiters))) { throw new Error("Delimiters used in typeaheadMultipleSearchDelimiters must be different\n from delimiters used in typeaheadWordDelimiters (current value: " + this.typeaheadWordDelimiters + ") and\n typeaheadPhraseDelimiters (current value: " + this.typeaheadPhraseDelimiters + ").\n Please refer to the documentation"); } }; /** * @protected * @param {?} str1 * @param {?} str2 * @return {?} */ TypeaheadDirective.prototype.haveCommonCharacters = /** * @protected * @param {?} str1 * @param {?} str2 * @return {?} */ function (str1, str2) { for (var i = 0; i < str1.length; i++) { if (str1.charAt(i).indexOf(str2) > -1) { return true; } } return false; }; TypeaheadDirective.decorators = [ { type: Directive, args: [{ selector: '[typeahead]', exportAs: 'bs-typeahead', host: { '[attr.aria-activedescendant]': 'activeDescendant', '[attr.aria-owns]': 'isOpen ? this._container.popupId : null', '[attr.aria-expanded]': 'isOpen', '[attr.aria-autocomplete]': 'list' } },] } ]; /** @nocollapse */ TypeaheadDirective.ctorParameters = function () { return [ { type: ComponentLoaderFactory }, { type: TypeaheadConfig }, { type: ChangeDetectorRef }, { type: ElementRef }, { type: NgControl }, { type: Renderer2 }, { type: ViewContainerRef } ]; }; TypeaheadDirective.propDecorators = { typeahead: [{ type: Input }], typeaheadMinLength: [{ type: Input }], adaptivePosition: [{ type: Input }], isAnimated: [{ type: Input }], typeaheadWaitMs: [{ type: Input }], typeaheadOptionsLimit: [{ type: Input }], typeaheadOptionField: [{ type: Input }], typeaheadGroupField: [{ type: Input }], typeaheadOrderBy: [{ type: Input }], typeaheadAsync: [{ type: Input }], typeaheadLatinize: [{ type: Input }], typeaheadSingleWords: [{ type: Input }], typeaheadWordDelimiters: [{ type: Input }], typeaheadMultipleSearch: [{ type: Input }], typeaheadMultipleSearchDelimiters: [{ type: Input }], typeaheadPhraseDelimiters: [{ type: Input }], typeaheadItemTemplate: [{ type: Input }], optionsListTemplate: [{ type: Input }], typeaheadScrollable: [{ type: Input }], typeaheadOptionsInScrollableView: [{ type: Input }], typeaheadHideResultsOnBlur: [{ type: Input }], typeaheadSelectFirstItem: [{ type: Input }], typeaheadIsFirstItemActive: [{ type: Input }], typeaheadLoading: [{ type: Output }], typeaheadNoResults: [{ type: Output }], typeaheadOnSelect: [{ type: Output }], typeaheadOnBlur: [{ type: Output }], container: [{ type: Input }], dropup: [{ type: Input }], onInput: [{ type: HostListener, args: ['input', ['$event'],] }], onChange: [{ type: HostListener, args: ['keyup', ['$event'],] }], onFocus: [{ type: HostListener, args: ['click',] }, { type: HostListener, args: ['focus',] }], onBlur: [{ type: HostListener, args: ['blur',] }], onKeydown: [{ type: HostListener, args: ['keydown', ['$event'],] }] }; return TypeaheadDirective; }()); export { TypeaheadDirective }; if (false) { /** * options source, can be Array of strings, objects or * an Observable for external matching process * @type {?} */ TypeaheadDirective.prototype.typeahead; /** * minimal no of characters that needs to be entered before * typeahead kicks-in. When set to 0, typeahead shows on focus with full * list of options (limited as normal by typeaheadOptionsLimit) * @type {?} */ TypeaheadDirective.prototype.typeaheadMinLength; /** * sets use adaptive position * @type {?} */ TypeaheadDirective.prototype.adaptivePosition; /** * turn on/off animation * @type {?} */ TypeaheadDirective.prototype.isAnimated; /** * minimal wait time after last character typed before typeahead kicks-in * @type {?} */ TypeaheadDirective.prototype.typeaheadWaitMs; /** * maximum length of options items list. The default value is 20 * @type {?} */ TypeaheadDirective.prototype.typeaheadOptionsLimit; /** * when options source is an array of objects, the name of field * that contains the options value, we use array item as option in case * of this field is missing. Supports nested properties and methods. * @type {?} */ TypeaheadDirective.prototype.typeaheadOptionField; /** * when options source is an array of objects, the name of field that * contains the group value, matches are grouped by this field when set. * @type {?} */ TypeaheadDirective.prototype.typeaheadGroupField; /** * Used to specify a custom order of matches. When options source is an array of objects * a field for sorting has to be set up. In case of options source is an array of string, * a field for sorting is absent. The ordering direction could be changed to ascending or descending. * @type {?} */ TypeaheadDirective.prototype.typeaheadOrderBy; /** * should be used only in case of typeahead attribute is Observable of array. * If true - loading of options will be async, otherwise - sync. * true make sense if options array is large. * @type {?} */ TypeaheadDirective.prototype.typeaheadAsync; /** * match latin symbols. * If true the word súper would match super and vice versa. * @type {?} */ TypeaheadDirective.prototype.typeaheadLatinize; /** * Can be use to search words by inserting a single white space between each characters * for example 'C a l i f o r n i a' will match 'California'. * @type {?} */ TypeaheadDirective.prototype.typeaheadSingleWords; /** * should be used only in case typeaheadSingleWords attribute is true. * Sets the word delimiter to break words. Defaults to space. * @type {?} */ TypeaheadDirective.prototype.typeaheadWordDelimiters; /** * Can be used to conduct a search of multiple items and have suggestion not for the * whole value of the input but for the value that comes after a delimiter provided via * typeaheadMultipleSearchDelimiters attribute. This option can only be used together with * typeaheadSingleWords option if typeaheadWordDelimiters and typeaheadPhraseDelimiters * are different from typeaheadMultipleSearchDelimiters to avoid conflict in determining * when to delimit multiple searches and when a single word. * @type {?} */ TypeaheadDirective.prototype.typeaheadMultipleSearch; /** * should be used only in case typeaheadMultipleSearch attribute is true. * Sets the multiple search delimiter to know when to start a new search. Defaults to comma. * If space needs to be used, then explicitly set typeaheadWordDelimiters to something else than space * because space is used by default OR set typeaheadSingleWords attribute to false if you don't need * to use it together with multiple search. * @type {?} */ TypeaheadDirective.prototype.typeaheadMultipleSearchDelimiters; /** * should be used only in case typeaheadSingleWords attribute is true. * Sets the word delimiter to match exact phrase. * Defaults to simple and double quotes. * @type {?} */ TypeaheadDirective.prototype.typeaheadPhraseDelimiters; /** * used to specify a custom item template. * Template variables exposed are called item and index; * @type {?} */ TypeaheadDirective.prototype.typeaheadItemTemplate; /** * used to specify a custom options list template. * Template variables: matches, itemTemplate, query * @type {?} */ TypeaheadDirective.prototype.optionsListTemplate; /** * specifies if typeahead is scrollable * @type {?} */ TypeaheadDirective.prototype.typeaheadScrollable; /** * specifies number of options to show in scroll view * @type {?} */ TypeaheadDirective.prototype.typeaheadOptionsInScrollableView; /** * used to hide result on blur * @type {?} */ TypeaheadDirective.prototype.typeaheadHideResultsOnBlur; /** * fired when an options list was opened and the user clicked Tab * If a value equal true, it will be chosen first or active item in the list * If value equal false, it will be chosen an active item in the list or nothing * @type {?} */ TypeaheadDirective.prototype.typeaheadSelectFirstItem; /** * makes active first item in a list * @type {?} */ TypeaheadDirective.prototype.typeaheadIsFirstItemActive; /** * fired when 'busy' state of this component was changed, * fired on async mode only, returns boolean * @type {?} */ TypeaheadDirective.prototype.typeaheadLoading; /** * fired on every key event and returns true * in case of matches are not detected * @type {?} */ TypeaheadDirective.prototype.typeaheadNoResults; /** * fired when option was selected, return object with data of this option * @type {?} */ TypeaheadDirective.prototype.typeaheadOnSelect; /** * fired when blur event occurs. returns the active item * @type {?} */ TypeaheadDirective.prototype.typeaheadOnBlur; /** * A selector specifying the element the typeahead should be appended to. * @type {?} */ TypeaheadDirective.prototype.container; /** * This attribute indicates that the dropdown should be opened upwards * @type {?} */ TypeaheadDirective.prototype.dropup; /** * if false don't focus the input element the typeahead directive is associated with on selection * @type {?} */ TypeaheadDirective.prototype.activeDescendant; /** @type {?} */ TypeaheadDirective.prototype.isOpen; /** @type {?} */ TypeaheadDirective.prototype.list; /** @type {?} */ TypeaheadDirective.prototype._container; /** @type {?} */ TypeaheadDirective.prototype.isActiveItemChanged; /** @type {?} */ TypeaheadDirective.prototype.isFocused; /** @type {?} */ TypeaheadDirective.prototype.cancelRequestOnFocusLost; /** * @type {?} * @protected */ TypeaheadDirective.prototype.keyUpEventEmitter; /** * @type {?} * @protected */ TypeaheadDirective.prototype._matches; /** * @type {?} * @protected */ TypeaheadDirective.prototype.placement; /** * @type {?} * @private */ TypeaheadDirective.prototype._typeahead; /** * @type {?} * @private */ TypeaheadDirective.prototype._subscriptions; /** * @type {?} * @private */ TypeaheadDirective.prototype._outsideClickListener; /** * @type {?} * @private */ TypeaheadDirective.prototype._allEnteredValue; /** * @type {?} * @private */ TypeaheadDirective.prototype.changeDetection; /** * @type {?} * @private */ TypeaheadDirective.prototype.element; /** * @type {?} * @private */ TypeaheadDirective.prototype.ngControl; /** * @type {?} * @private */ TypeaheadDirective.prototype.renderer; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZWFoZWFkLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1ib290c3RyYXAvdHlwZWFoZWFkLyIsInNvdXJjZXMiOlsidHlwZWFoZWFkLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFDQSxPQUFPLEVBQ0wsaUJBQWlCLEVBQ2pCLFNBQVMsRUFDVCxVQUFVLEVBQ1YsWUFBWSxFQUNaLFlBQVksRUFDWixLQUFLLEVBR0wsTUFBTSxFQUNOLFNBQVMsRUFDVCxXQUFXLEVBQ1gsZ0JBQWdCLEVBQ2pCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUUzQyxPQUFPLEVBQUUsSUFBSSxFQUFnQixZQUFZLEVBQWMsTUFBTSxNQUFNLENBQUM7QUFDcEUsT0FBTyxFQUFtQixzQkFBc0IsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ3pGLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxFQUFFLFFBQVEsRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRXpGLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQzlFLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDckQsT0FBTyxFQUFFLG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