primeng
Version:
[](https://opensource.org/licenses/MIT) [](https://badge.fury.io/js/primeng) [ • 25 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@angular/animations"),require("primeng/inputtext"),require("primeng/button"),require("primeng/ripple"),require("primeng/api"),require("primeng/dom"),require("primeng/utils"),require("@angular/forms")):"function"==typeof define&&define.amd?define("primeng/autocomplete",["exports","@angular/core","@angular/common","@angular/animations","primeng/inputtext","primeng/button","primeng/ripple","primeng/api","primeng/dom","primeng/utils","@angular/forms"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).primeng=t.primeng||{},t.primeng.autocomplete={}),t.ng.core,t.ng.common,t.ng.animations,t.primeng.inputtext,t.primeng.button,t.primeng.ripple,t.primeng.api,t.primeng.dom,t.primeng.utils,t.ng.forms)}(this,(function(t,e,i,n,o,l,s,a,p,r,u){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */Object.create;function h(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,l=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=l.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}return s}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t}Object.create;var m={provide:u.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return g})),multi:!0},g=function(){function t(t,i,n,o){this.el=t,this.renderer=i,this.cd=n,this.differs=o,this.minLength=1,this.delay=300,this.type="text",this.autoZIndex=!0,this.baseZIndex=0,this.dropdownIcon="pi pi-chevron-down",this.unique=!0,this.completeOnFocus=!1,this.completeMethod=new e.EventEmitter,this.onSelect=new e.EventEmitter,this.onUnselect=new e.EventEmitter,this.onFocus=new e.EventEmitter,this.onBlur=new e.EventEmitter,this.onDropdownClick=new e.EventEmitter,this.onClear=new e.EventEmitter,this.onKeyUp=new e.EventEmitter,this.onShow=new e.EventEmitter,this.onHide=new e.EventEmitter,this.scrollHeight="200px",this.dropdownMode="blank",this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.autocomplete="off",this.onModelChange=function(){},this.onModelTouched=function(){},this.overlayVisible=!1,this.focus=!1,this.inputFieldValue=null,this.differ=o.find([]).create(null),this.listId=r.UniqueComponentId()+"_list"}return Object.defineProperty(t.prototype,"suggestions",{get:function(){return this._suggestions},set:function(t){this._suggestions=t,this.handleSuggestionsChange()},enumerable:!1,configurable:!0}),t.prototype.ngAfterViewChecked=function(){var t=this;this.suggestionsUpdated&&this.overlay&&this.overlay.offsetParent&&(setTimeout((function(){t.overlay&&t.alignOverlay()}),1),this.suggestionsUpdated=!1),this.highlightOptionChanged&&(setTimeout((function(){if(t.overlay){var e=p.DomHandler.findSingle(t.overlay,"li.p-highlight");e&&p.DomHandler.scrollInView(t.overlay,e)}}),1),this.highlightOptionChanged=!1)},t.prototype.handleSuggestionsChange=function(){null!=this._suggestions&&this.loading&&(this.highlightOption=null,this._suggestions.length?(this.noResults=!1,this.show(),this.suggestionsUpdated=!0,this.autoHighlight&&(this.highlightOption=this._suggestions[0])):(this.noResults=!0,this.emptyMessage?(this.show(),this.suggestionsUpdated=!0):this.hide()),this.loading=!1)},t.prototype.ngAfterContentInit=function(){var t=this;this.templates.forEach((function(e){switch(e.getType()){case"item":t.itemTemplate=e.template;break;case"group":t.groupTemplate=e.template;break;case"selectedItem":t.selectedItemTemplate=e.template;break;default:t.itemTemplate=e.template}}))},t.prototype.writeValue=function(t){this.value=t,this.filled=this.value&&""!=this.value,this.updateInputField(),this.cd.markForCheck()},t.prototype.getOptionGroupChildren=function(t){return this.optionGroupChildren?r.ObjectUtils.resolveFieldData(t,this.optionGroupChildren):t.items},t.prototype.getOptionGroupLabel=function(t){return this.optionGroupLabel?r.ObjectUtils.resolveFieldData(t,this.optionGroupLabel):null!=t.label?t.label:t},t.prototype.registerOnChange=function(t){this.onModelChange=t},t.prototype.registerOnTouched=function(t){this.onModelTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t,this.cd.markForCheck()},t.prototype.onInput=function(t){var e=this;if(this.inputKeyDown||!p.DomHandler.isIE()){this.timeout&&clearTimeout(this.timeout);var i=t.target.value;this.multiple||this.forceSelection||this.onModelChange(i),0!==i.length||this.multiple||(this.hide(),this.onClear.emit(t),this.onModelChange(i)),i.length>=this.minLength?this.timeout=setTimeout((function(){e.search(t,i)}),this.delay):this.hide(),this.updateFilledState(),this.inputKeyDown=!1}},t.prototype.onInputClick=function(t){this.documentClickListener&&(this.inputClick=!0)},t.prototype.search=function(t,e){null!=e&&(this.loading=!0,this.completeMethod.emit({originalEvent:t,query:e}))},t.prototype.selectItem=function(t,e){void 0===e&&(e=!0),this.forceSelectionUpdateModelTimeout&&(clearTimeout(this.forceSelectionUpdateModelTimeout),this.forceSelectionUpdateModelTimeout=null),this.multiple?(this.multiInputEL.nativeElement.value="",this.value=this.value||[],this.isSelected(t)&&this.unique||(this.value=c(this.value,[t]),this.onModelChange(this.value))):(this.inputEL.nativeElement.value=this.field?r.ObjectUtils.resolveFieldData(t,this.field)||"":t,this.value=t,this.onModelChange(this.value)),this.onSelect.emit(t),this.updateFilledState(),e&&(this.itemClicked=!0,this.focusInput())},t.prototype.show=function(){if(this.multiInputEL||this.inputEL){var t=this.multiple?this.multiInputEL.nativeElement.ownerDocument.activeElement==this.multiInputEL.nativeElement:this.inputEL.nativeElement.ownerDocument.activeElement==this.inputEL.nativeElement;!this.overlayVisible&&t&&(this.overlayVisible=!0)}},t.prototype.onOverlayAnimationStart=function(t){switch(t.toState){case"visible":this.overlay=t.element,this.appendOverlay(),this.autoZIndex&&(this.overlay.style.zIndex=String(this.baseZIndex+ ++p.DomHandler.zindex)),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.onShow.emit(t);break;case"void":this.onOverlayHide()}},t.prototype.appendOverlay=function(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):p.DomHandler.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=p.DomHandler.getWidth(this.el.nativeElement.children[0])+"px"))},t.prototype.resolveFieldData=function(t){return this.field?r.ObjectUtils.resolveFieldData(t,this.field):t},t.prototype.restoreOverlayAppend=function(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)},t.prototype.alignOverlay=function(){this.appendTo?p.DomHandler.absolutePosition(this.overlay,this.multiple?this.multiContainerEL.nativeElement:this.inputEL.nativeElement):p.DomHandler.relativePosition(this.overlay,this.multiple?this.multiContainerEL.nativeElement:this.inputEL.nativeElement)},t.prototype.hide=function(){this.overlayVisible=!1,this.cd.markForCheck()},t.prototype.handleDropdownClick=function(t){if(this.overlayVisible)this.hide();else{this.focusInput();var e=this.multiple?this.multiInputEL.nativeElement.value:this.inputEL.nativeElement.value;"blank"===this.dropdownMode?this.search(t,""):"current"===this.dropdownMode&&this.search(t,e),this.onDropdownClick.emit({originalEvent:t,query:e})}},t.prototype.focusInput=function(){this.multiple?this.multiInputEL.nativeElement.focus():this.inputEL.nativeElement.focus()},t.prototype.removeItem=function(t){var e=p.DomHandler.index(t),i=this.value[e];this.value=this.value.filter((function(t,i){return i!=e})),this.onModelChange(this.value),this.updateFilledState(),this.onUnselect.emit(i)},t.prototype.onKeydown=function(t){if(this.overlayVisible)switch(t.which){case 40:if(this.group)if(-1!==(n=this.findOptionGroupIndex(this.highlightOption,this.suggestions))){var e=n.itemIndex+1;e<this.getOptionGroupChildren(this.suggestions[n.groupIndex]).length?(this.highlightOption=this.getOptionGroupChildren(this.suggestions[n.groupIndex])[e],this.highlightOptionChanged=!0):this.suggestions[n.groupIndex+1]&&(this.highlightOption=this.getOptionGroupChildren(this.suggestions[n.groupIndex+1])[0],this.highlightOptionChanged=!0)}else this.highlightOption=this.getOptionGroupChildren(this.suggestions[0])[0];else if(-1!=(n=this.findOptionIndex(this.highlightOption,this.suggestions))){var i=n+1;i!=this.suggestions.length&&(this.highlightOption=this.suggestions[i],this.highlightOptionChanged=!0)}else this.highlightOption=this.suggestions[0];t.preventDefault();break;case 38:var n;if(this.group){if(-1!==(n=this.findOptionGroupIndex(this.highlightOption,this.suggestions)))if((l=n.itemIndex-1)>=0)this.highlightOption=this.getOptionGroupChildren(this.suggestions[n.groupIndex])[l],this.highlightOptionChanged=!0;else if(l<0){var o=this.suggestions[n.groupIndex-1];o&&(this.highlightOption=this.getOptionGroupChildren(o)[this.getOptionGroupChildren(o).length-1],this.highlightOptionChanged=!0)}}else if((n=this.findOptionIndex(this.highlightOption,this.suggestions))>0){var l=n-1;this.highlightOption=this.suggestions[l],this.highlightOptionChanged=!0}t.preventDefault();break;case 13:this.highlightOption&&(this.selectItem(this.highlightOption),this.hide()),t.preventDefault();break;case 27:this.hide(),t.preventDefault();break;case 9:this.highlightOption&&this.selectItem(this.highlightOption),this.hide()}else 40===t.which&&this.suggestions&&this.search(t,t.target.value);if(this.multiple)switch(t.which){case 8:if(this.value&&this.value.length&&!this.multiInputEL.nativeElement.value){this.value=c(this.value);var s=this.value.pop();this.onModelChange(this.value),this.updateFilledState(),this.onUnselect.emit(s)}}this.inputKeyDown=!0},t.prototype.onKeyup=function(t){this.onKeyUp.emit(t)},t.prototype.onInputFocus=function(t){if(!this.itemClicked&&this.completeOnFocus){var e=this.multiple?this.multiInputEL.nativeElement.value:this.inputEL.nativeElement.value;this.search(t,e)}this.focus=!0,this.onFocus.emit(t),this.itemClicked=!1},t.prototype.onInputBlur=function(t){this.focus=!1,this.onModelTouched(),this.onBlur.emit(t)},t.prototype.onInputChange=function(t){var e,i,n=this;if(this.forceSelection){var o=!1,l=t.target.value.trim();if(this.suggestions){var s=function(t){var e=a.field?r.ObjectUtils.resolveFieldData(t,a.field):t;if(e&&l===e.trim())return o=!0,a.forceSelectionUpdateModelTimeout=setTimeout((function(){n.selectItem(t,!1)}),250),"break"},a=this;try{for(var p=h(this.suggestions),u=p.next();!u.done;u=p.next()){if("break"===s(u.value))break}}catch(t){e={error:t}}finally{try{u&&!u.done&&(i=p.return)&&i.call(p)}finally{if(e)throw e.error}}}o||(this.multiple?this.multiInputEL.nativeElement.value="":(this.value=null,this.inputEL.nativeElement.value=""),this.onClear.emit(t),this.onModelChange(this.value),this.updateFilledState())}},t.prototype.onInputPaste=function(t){this.onKeydown(t)},t.prototype.isSelected=function(t){var e=!1;if(this.value&&this.value.length)for(var i=0;i<this.value.length;i++)if(r.ObjectUtils.equals(this.value[i],t,this.dataKey)){e=!0;break}return e},t.prototype.findOptionIndex=function(t,e){var i=-1;if(e)for(var n=0;n<e.length;n++)if(r.ObjectUtils.equals(t,e[n])){i=n;break}return i},t.prototype.findOptionGroupIndex=function(t,e){var i,n;if(e)for(var o=0;o<e.length&&(i=o,-1===(n=this.findOptionIndex(t,this.getOptionGroupChildren(e[o]))));o++);return-1!==n?{groupIndex:i,itemIndex:n}:-1},t.prototype.updateFilledState=function(){this.multiple?this.filled=this.value&&this.value.length||this.multiInputEL&&this.multiInputEL.nativeElement&&""!=this.multiInputEL.nativeElement.value:this.filled=this.inputFieldValue&&""!=this.inputFieldValue||this.inputEL&&this.inputEL.nativeElement&&""!=this.inputEL.nativeElement.value},t.prototype.updateInputField=function(){var t=this.value?this.field?r.ObjectUtils.resolveFieldData(this.value,this.field)||"":this.value:"";this.inputFieldValue=t,this.inputEL&&this.inputEL.nativeElement&&(this.inputEL.nativeElement.value=t),this.updateFilledState()},t.prototype.bindDocumentClickListener=function(){var t=this;if(!this.documentClickListener){var e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentClickListener=this.renderer.listen(e,"click",(function(e){3!==e.which&&(t.inputClick||t.isDropdownClick(e)||t.hide(),t.inputClick=!1,t.cd.markForCheck())}))}},t.prototype.isDropdownClick=function(t){if(this.dropdown){var e=t.target;return e===this.dropdownButton.nativeElement||e.parentNode===this.dropdownButton.nativeElement}return!1},t.prototype.unbindDocumentClickListener=function(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)},t.prototype.bindDocumentResizeListener=function(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)},t.prototype.unbindDocumentResizeListener=function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)},t.prototype.onWindowResize=function(){this.hide()},t.prototype.bindScrollListener=function(){var t=this;this.scrollHandler||(this.scrollHandler=new p.ConnectedOverlayScrollHandler(this.containerEL.nativeElement,(function(){t.overlayVisible&&t.hide()}))),this.scrollHandler.bindScrollListener()},t.prototype.unbindScrollListener=function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},t.prototype.onOverlayHide=function(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null,this.onHide.emit()},t.prototype.ngOnDestroy=function(){this.forceSelectionUpdateModelTimeout&&(clearTimeout(this.forceSelectionUpdateModelTimeout),this.forceSelectionUpdateModelTimeout=null),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.restoreOverlayAppend(),this.onOverlayHide()},t}();g.decorators=[{type:e.Component,args:[{selector:"p-autoComplete",template:'\n <span #container [ngClass]="{\'p-autocomplete p-component\':true,\'p-autocomplete-dd\':dropdown,\'p-autocomplete-multiple\':multiple}" [ngStyle]="style" [class]="styleClass">\n <input *ngIf="!multiple" #in [attr.type]="type" [attr.id]="inputId" [ngStyle]="inputStyle" [class]="inputStyleClass" [autocomplete]="autocomplete" [attr.required]="required" [attr.name]="name"\n class="p-autocomplete-input p-inputtext p-component" [ngClass]="{\'p-autocomplete-dd-input\':dropdown,\'p-disabled\': disabled}" [value]="inputFieldValue" aria-autocomplete="list" [attr.aria-controls]="listId" role="searchbox" [attr.aria-expanded]="overlayVisible" aria-haspopup="true" [attr.aria-activedescendant]="\'p-highlighted-option\'"\n (click)="onInputClick($event)" (input)="onInput($event)" (keydown)="onKeydown($event)" (keyup)="onKeyup($event)" [attr.autofocus]="autofocus" (focus)="onInputFocus($event)" (blur)="onInputBlur($event)" (change)="onInputChange($event)" (paste)="onInputPaste($event)"\n [attr.placeholder]="placeholder" [attr.size]="size" [attr.maxlength]="maxlength" [attr.tabindex]="tabindex" [readonly]="readonly" [disabled]="disabled" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledBy" [attr.aria-required]="required"\n ><ul *ngIf="multiple" #multiContainer class="p-autocomplete-multiple-container p-component p-inputtext" [ngClass]="{\'p-disabled\':disabled,\'p-focus\':focus}" (click)="multiIn.focus()">\n <li #token *ngFor="let val of value" class="p-autocomplete-token">\n <ng-container *ngTemplateOutlet="selectedItemTemplate; context: {$implicit: val}"></ng-container>\n <span *ngIf="!selectedItemTemplate" class="p-autocomplete-token-label">{{resolveFieldData(val)}}</span>\n <span class="p-autocomplete-token-icon pi pi-times-circle" (click)="removeItem(token)" *ngIf="!disabled"></span>\n </li>\n <li class="p-autocomplete-input-token">\n <input #multiIn [attr.type]="type" [attr.id]="inputId" [disabled]="disabled" [attr.placeholder]="(value&&value.length ? null : placeholder)" [attr.tabindex]="tabindex" [attr.maxlength]="maxlength" (input)="onInput($event)" (click)="onInputClick($event)"\n (keydown)="onKeydown($event)" [readonly]="readonly" (keyup)="onKeyup($event)" [attr.autofocus]="autofocus" (focus)="onInputFocus($event)" (blur)="onInputBlur($event)" (change)="onInputChange($event)" (paste)="onInputPaste($event)" [autocomplete]="autocomplete"\n [ngStyle]="inputStyle" [class]="inputStyleClass" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledBy" [attr.aria-required]="required"\n aria-autocomplete="list" [attr.aria-controls]="listId" role="searchbox" [attr.aria-expanded]="overlayVisible" aria-haspopup="true" [attr.aria-activedescendant]="\'p-highlighted-option\'">\n </li>\n </ul>\n <i *ngIf="loading" class="p-autocomplete-loader pi pi-spinner pi-spin"></i><button #ddBtn type="button" pButton [icon]="dropdownIcon" class="p-autocomplete-dropdown" [disabled]="disabled" pRipple\n (click)="handleDropdownClick($event)" *ngIf="dropdown" [attr.tabindex]="tabindex"></button>\n <div #panel *ngIf="overlayVisible" [ngClass]="[\'p-autocomplete-panel p-component\']" [style.max-height]="scrollHeight" [ngStyle]="panelStyle" [class]="panelStyleClass"\n [@overlayAnimation]="{value: \'visible\', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}" (@overlayAnimation.start)="onOverlayAnimationStart($event)">\n <ul role="listbox" [attr.id]="listId" class="p-autocomplete-items">\n <ng-container *ngIf="group">\n <ng-template ngFor let-optgroup [ngForOf]="suggestions">\n <li class="p-autocomplete-item-group">\n <span *ngIf="!groupTemplate">{{getOptionGroupLabel(optgroup)||\'empty\'}}</span>\n <ng-container *ngTemplateOutlet="groupTemplate; context: {$implicit: optgroup}"></ng-container>\n </li>\n <ng-container *ngTemplateOutlet="itemslist; context: {$implicit: getOptionGroupChildren(optgroup)}"></ng-container>\n </ng-template>\n </ng-container>\n <ng-container *ngIf="!group">\n <ng-container *ngTemplateOutlet="itemslist; context: {$implicit: suggestions}"></ng-container>\n </ng-container>\n <ng-template #itemslist let-suggestionsToDisplay>\n <li role="option" *ngFor="let option of suggestionsToDisplay; let idx = index" class="p-autocomplete-item" pRipple [ngClass]="{\'p-highlight\': (option === highlightOption)}" [id]="highlightOption == option ? \'p-highlighted-option\':\'\'" (click)="selectItem(option)">\n <span *ngIf="!itemTemplate">{{resolveFieldData(option)}}</span>\n <ng-container *ngTemplateOutlet="itemTemplate; context: {$implicit: option, index: idx}"></ng-container>\n </li>\n <li *ngIf="noResults && emptyMessage" class="p-autocomplete-emptymessage p-autocomplete-item">{{emptyMessage}}</li>\n </ng-template>\n </ul>\n </div>\n </span>\n ',animations:[n.trigger("overlayAnimation",[n.transition(":enter",[n.style({opacity:0,transform:"scaleY(0.8)"}),n.animate("{{showTransitionParams}}")]),n.transition(":leave",[n.animate("{{hideTransitionParams}}",n.style({opacity:0}))])])],host:{"[class.p-inputwrapper-filled]":"filled","[class.p-inputwrapper-focus]":"(focus && !disabled) || overlayVisible"},providers:[m],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,styles:[".p-autocomplete{display:inline-flex;position:relative}.p-autocomplete-loader{margin-top:-.5rem;position:absolute;top:50%}.p-autocomplete-dd .p-autocomplete-input{flex:1 1 auto;width:1%}.p-autocomplete-dd .p-autocomplete-input,.p-autocomplete-dd .p-autocomplete-multiple-container{border-bottom-right-radius:0;border-top-right-radius:0}.p-autocomplete-dd .p-autocomplete-dropdown{border-bottom-left-radius:0;border-top-left-radius:0}.p-autocomplete .p-autocomplete-panel{min-width:100%}.p-autocomplete-panel{overflow:auto;position:absolute}.p-autocomplete-items{list-style-type:none;margin:0;padding:0}.p-autocomplete-item{cursor:pointer;overflow:hidden;position:relative;white-space:nowrap}.p-autocomplete-multiple-container{align-items:center;cursor:text;display:flex;flex-wrap:wrap;list-style-type:none;margin:0;overflow:hidden;padding:0}.p-autocomplete-token{align-items:center;cursor:default;display:inline-flex;flex:0 0 auto}.p-autocomplete-token-icon{cursor:pointer}.p-autocomplete-input-token{display:inline-flex;flex:1 1 auto}.p-autocomplete-input-token input{background-color:transparent;border:0;border-radius:0;box-shadow:none;margin:0;outline:0 none;padding:0;width:100%}.p-fluid .p-autocomplete{display:flex}.p-fluid .p-autocomplete-dd .p-autocomplete-input{width:1%}"]}]}],g.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:e.ChangeDetectorRef},{type:e.IterableDiffers}]},g.propDecorators={minLength:[{type:e.Input}],delay:[{type:e.Input}],style:[{type:e.Input}],panelStyle:[{type:e.Input}],styleClass:[{type:e.Input}],panelStyleClass:[{type:e.Input}],inputStyle:[{type:e.Input}],inputId:[{type:e.Input}],inputStyleClass:[{type:e.Input}],placeholder:[{type:e.Input}],readonly:[{type:e.Input}],disabled:[{type:e.Input}],maxlength:[{type:e.Input}],name:[{type:e.Input}],required:[{type:e.Input}],size:[{type:e.Input}],appendTo:[{type:e.Input}],autoHighlight:[{type:e.Input}],forceSelection:[{type:e.Input}],type:[{type:e.Input}],autoZIndex:[{type:e.Input}],baseZIndex:[{type:e.Input}],ariaLabel:[{type:e.Input}],ariaLabelledBy:[{type:e.Input}],dropdownIcon:[{type:e.Input}],unique:[{type:e.Input}],group:[{type:e.Input}],completeOnFocus:[{type:e.Input}],completeMethod:[{type:e.Output}],onSelect:[{type:e.Output}],onUnselect:[{type:e.Output}],onFocus:[{type:e.Output}],onBlur:[{type:e.Output}],onDropdownClick:[{type:e.Output}],onClear:[{type:e.Output}],onKeyUp:[{type:e.Output}],onShow:[{type:e.Output}],onHide:[{type:e.Output}],field:[{type:e.Input}],scrollHeight:[{type:e.Input}],dropdown:[{type:e.Input}],dropdownMode:[{type:e.Input}],multiple:[{type:e.Input}],tabindex:[{type:e.Input}],dataKey:[{type:e.Input}],emptyMessage:[{type:e.Input}],showTransitionOptions:[{type:e.Input}],hideTransitionOptions:[{type:e.Input}],autofocus:[{type:e.Input}],autocomplete:[{type:e.Input}],optionGroupChildren:[{type:e.Input}],optionGroupLabel:[{type:e.Input}],containerEL:[{type:e.ViewChild,args:["container"]}],inputEL:[{type:e.ViewChild,args:["in"]}],multiInputEL:[{type:e.ViewChild,args:["multiIn"]}],multiContainerEL:[{type:e.ViewChild,args:["multiContainer"]}],dropdownButton:[{type:e.ViewChild,args:["ddBtn"]}],templates:[{type:e.ContentChildren,args:[a.PrimeTemplate]}],suggestions:[{type:e.Input}]};var y=function(){};y.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,o.InputTextModule,l.ButtonModule,a.SharedModule,s.RippleModule],exports:[g,a.SharedModule],declarations:[g]}]}],t.AUTOCOMPLETE_VALUE_ACCESSOR=m,t.AutoComplete=g,t.AutoCompleteModule=y,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=primeng-autocomplete.umd.min.js.map