@ng-select/ng-select
Advanced tools
Comparing version 0.24.1 to 0.25.0
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs/Subject"),require("rxjs/observable/merge"),require("rxjs/operators"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","rxjs/Subject","rxjs/observable/merge","rxjs/operators","@angular/forms","@angular/common"],t):t((e["ng-select"]=e["ng-select"]||{},e["ng-select"]["ng-select"]={}),e.ng.core,e.Rx,e.Rx.Observable,e.Rx.Observable.prototype,e.ng.forms,e.ng.common)}(this,function(e,t,n,i,o,s,r){"use strict";function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,s=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)r.push(i.value)}catch(l){o={error:l}}finally{try{i&&!i.done&&(n=s["return"])&&n.call(s)}finally{if(o)throw o.error}}return r}function a(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}function c(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return m[e]||e})}var p=function(){return function(e){this.template=e}}();p.decorators=[{type:t.Directive,args:[{selector:"[ng-option-tmp]"}]}],p.ctorParameters=function(){return[{type:t.TemplateRef}]};var d=function(){return function(e){this.template=e}}();d.decorators=[{type:t.Directive,args:[{selector:"[ng-label-tmp]"}]}],d.ctorParameters=function(){return[{type:t.TemplateRef}]};var u=function(){return function(e){this.template=e}}();u.decorators=[{type:t.Directive,args:[{selector:"[ng-header-tmp]"}]}],u.ctorParameters=function(){return[{type:t.TemplateRef}]};var h=function(){return function(e){this.template=e}}();h.decorators=[{type:t.Directive,args:[{selector:"[ng-footer-tmp]"}]}],h.ctorParameters=function(){return[{type:t.TemplateRef}]};var g={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};g[g.Tab]="Tab",g[g.Enter]="Enter",g[g.Esc]="Esc",g[g.Space]="Space",g[g.ArrowUp]="ArrowUp",g[g.ArrowDown]="ArrowDown",g[g.Backspace]="Backspace";var m={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},f=function(){function e(e){this._ngSelect=e,this._items=[],this._filteredItems=[],this._markedIndex=-1,this._selected=[]}return Object.defineProperty(e.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filteredItems",{get:function(){return this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markedItem",{get:function(){return this._filteredItems[this._markedIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markedIndex",{get:function(){return this._markedIndex},enumerable:!0,configurable:!0}),e.prototype.setItems=function(e,t){var n=this;void 0===t&&(t=!1),this._items=e.map(function(e,i){return n.mapItem(e,t,i)}),this._filteredItems=a(this._items)},e.prototype.select=function(e){e.selected||this.maxItemsSelected()||(this._ngSelect.multiple||this.clearSelected(),this._selected.push(e),e.selected=!0)},e.prototype.maxItemsSelected=function(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this._selected.length},e.prototype.findItem=function(e){var t=this;if(this._ngSelect.bindValue)return this._items.find(function(n){return t.resolveNested(n.value,t._ngSelect.bindValue)===e});var n=this._items.findIndex(function(t){return t.value===e});return n>-1?this._items[n]:this._items.find(function(n){return n.label&&n.label===t.resolveNested(e,t._ngSelect.bindLabel)})},e.prototype.unselect=function(e){this._selected=this._selected.filter(function(t){return t!==e}),e.selected=!1},e.prototype.unselectLast=function(){0!==this._selected.length&&(this._selected[this._selected.length-1].selected=!1,this._selected.splice(this._selected.length-1,1))},e.prototype.addItem=function(e){var t={index:this._items.length,label:this.resolveNested(e,this._ngSelect.bindLabel),value:e};return this._items.push(t),this._filteredItems.push(t),t},e.prototype.clearSelected=function(){this._selected.forEach(function(e){e.selected=!1,e.marked=!1}),this._selected=[]},e.prototype.filter=function(e){var t=this._getDefaultFilterFunc(e);this._filteredItems=e?this._items.filter(function(e){return t(e)}):this._items},e.prototype.clearFilter=function(){this._filteredItems=a(this._items)},e.prototype.unmarkItem=function(){this._markedIndex=-1},e.prototype.markNextItem=function(){this._stepToItem(1)},e.prototype.markPreviousItem=function(){this._stepToItem(-1)},e.prototype.markItem=function(e){this._markedIndex=this._filteredItems.indexOf(e)},e.prototype.markSelectedOrDefault=function(e){if(0!==this._filteredItems.length){var t=this._filteredItems.indexOf(this._lastSelectedItem);this._lastSelectedItem&&t>-1?this._markedIndex=t:this._markedIndex=e?0:-1}},e.prototype.resolveNested=function(e,t){if(-1===t.indexOf("."))return e[t];for(var n=t.split("."),i=e,o=0,s=n.length;o<s;++o){if(null==i)return null;i=i[n[o]]}return i},e.prototype.mapItem=function(e,t,n){var i=e,o=null;return t?(i=e,o=e):o=this.resolveNested(i,this._ngSelect.bindLabel),{index:n,label:o,value:i,disabled:i.disabled}},e.prototype._getNextItemIndex=function(e){return e>0?this._markedIndex===this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1},e.prototype._stepToItem=function(e){if(0!==this._filteredItems.length)for(this._markedIndex=this._getNextItemIndex(e);this.markedItem.disabled;)this._stepToItem(e)},e.prototype._getDefaultFilterFunc=function(e){return function(t){return c(t.label?t.label.toString():"").toLowerCase().indexOf(c(e).toLowerCase())>-1}},Object.defineProperty(e.prototype,"_lastSelectedItem",{get:function(){return this._selected[this._selected.length-1]},enumerable:!0,configurable:!0}),e}(),v=function(){function e(e){this.elementRef=e,this.stateChange$=new n.Subject,this._disabled=!1}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=this._isDisabled(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})},e.prototype._isDisabled=function(e){return null!=e&&""+e!="false"},e}();v.decorators=[{type:t.Component,args:[{selector:"ng-option",changeDetection:t.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],v.ctorParameters=function(){return[{type:t.ElementRef}]},v.propDecorators={value:[{type:t.Input}],disabled:[{type:t.Input}]};var y=function(){function e(){}return e.prototype.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)},e}();y.decorators=[{type:t.Injectable}],y.ctorParameters=function(){return[]};var b=function(){function e(){}return e.prototype.calculateItems=function(e,t,n){var i=e.childHeight*e.itemsLength;t.scrollTop>i&&(t.scrollTop=i);var o=Math.max(0,t.scrollTop)/i*e.itemsLength,s=Math.min(e.itemsLength,Math.ceil(o)+(e.itemsPerCol+1)),r=s,l=Math.max(0,r-e.itemsPerCol-1),a=Math.min(l,Math.floor(o)),c=e.childHeight*Math.ceil(a)-e.childHeight*Math.min(a,n);return c=isNaN(c)?0:c,a=isNaN(a)?-1:a,s=isNaN(s)?-1:s,a-=n,a=Math.max(0,a),s+=n,s=Math.min(e.itemsLength,s),{topPadding:c,scrollHeight:i,start:a,end:s}},e.prototype.calculateDimensions=function(e,t,n,i){var o=n.getBoundingClientRect(),s=i.children[t]?i.children[t].getBoundingClientRect():{width:o.width,height:o.height,top:0},r=Math.max(1,Math.floor(o.height/s.height));return{itemsLength:e,viewWidth:o.width,viewHeight:o.height,childWidth:s.width,childHeight:s.height,itemsPerCol:r}},e}();b.decorators=[{type:t.Injectable}],b.ctorParameters=function(){return[]};var _=function(){function e(e,n,i,o,s,r){this._renderer=n,this._elementRef=i,this._zone=o,this._virtualScrollService=s,this._window=r,this.items=[],this.bufferAmount=4,this.virtualScroll=!1,this.update=new t.EventEmitter,this.scrollToEnd=new t.EventEmitter,this.positionChange=new t.EventEmitter,this.currentPosition="bottom",this._startupLoop=!0,this._isScrolledToMarked=!1,this._scrollToEndFired=!1,this._disposeScrollListener=function(){},this._disposeDocumentResizeListener=function(){},this._selectElementRef=e.elementRef,this._itemsList=e.itemsList}return e.prototype.ngOnInit=function(){this._handleScroll(),this.appendTo&&this._handleAppendTo()},e.prototype.ngOnChanges=function(e){e.position&&e.position.currentValue&&(this.currentPosition=e.position.currentValue,"auto"===this.currentPosition&&this._autoPositionDropdown(),this.appendTo&&this._updateDropdownPosition()),e.items&&this._handleItemsChange(e.items)},e.prototype.ngOnDestroy=function(){this._disposeDocumentResizeListener(),this._disposeScrollListener()},e.prototype.refresh=function(){var e=this;this._zone.runOutsideAngular(function(){e._window.requestAnimationFrame(function(){return e._updateItems()})})},e.prototype.scrollInto=function(e){if(e){var t=this.items.indexOf(e);if(!(t<0||t>=this.items.length)){var n=this._calculateDimensions(this.virtualScroll?0:t),i=this.scrollElementRef.nativeElement,o=Math.floor(n.viewHeight/n.childHeight)-1;if(this.virtualScroll)i.scrollTop=t*n.childHeight-n.childHeight*Math.min(t,o);else{var s=this.contentElementRef.nativeElement,r=Array.from(s.children).slice(0,t).reduce(function(e,t){return e+t.clientHeight},0);i.scrollTop=r-n.childHeight*Math.min(t,o)}}}},e.prototype.scrollIntoTag=function(){var e=this.scrollElementRef.nativeElement,t=this._calculateDimensions();e.scrollTop=t.childHeight*(t.itemsLength+1)},e.prototype._handleScroll=function(){var e=this;this._disposeScrollListener=this._renderer.listen(this.scrollElementRef.nativeElement,"scroll",function(){e.refresh(),e._fireScrollToEnd()})},e.prototype._handleItemsChange=function(e){this._scrollToEndFired=!1,this._previousStart=undefined,this._previousEnd=undefined,(e!==undefined&&e.previousValue===undefined||e.previousValue!==undefined&&0===e.previousValue.length)&&(this._startupLoop=!0),this.items=e.currentValue||[],this.refresh()},e.prototype._updateItems=function(){var e=this;if(t.NgZone.assertNotInAngularZone(),this.virtualScroll){var n=function(){var t=e._calculateDimensions(),i=e._virtualScrollService.calculateItems(t,e.scrollElementRef.nativeElement,e.bufferAmount||0);e.paddingElementRef.nativeElement.style.height=i.scrollHeight+"px";var o="translateY("+i.topPadding+"px)";if(e.contentElementRef.nativeElement.style.transform=o,i.start!==e._previousStart||i.end!==e._previousEnd)e._zone.run(function(){e.update.emit(e.items.slice(i.start,i.end))}),e._previousStart=i.start,e._previousEnd=i.end,!0===e._startupLoop&&n();else if(!0===e._startupLoop)return e._startupLoop=!1,void e._scrollToMarked()};n()}else this._zone.run(function(){e.update.emit(e.items.slice()),e._scrollToMarked()})},e.prototype._fireScrollToEnd=function(){if(!this._scrollToEndFired){var e=this.scrollElementRef.nativeElement,t=this._elementRef.nativeElement,n=this.virtualScroll?this.paddingElementRef.nativeElement:this.contentElementRef.nativeElement;e.scrollTop+t.clientHeight>=n.clientHeight&&(this.scrollToEnd.emit(),this._scrollToEndFired=!0)}},e.prototype._calculateDimensions=function(e){return void 0===e&&(e=0),this._virtualScrollService.calculateDimensions(this.items.length,e,this.scrollElementRef.nativeElement,this.contentElementRef.nativeElement)},e.prototype._handleDocumentResize=function(){var e=this;this.appendTo&&(this._disposeDocumentResizeListener=this._renderer.listen("window","resize",function(){e._updateDropdownPosition()}))},e.prototype._scrollToMarked=function(){this._isScrolledToMarked||(this._isScrolledToMarked=!0,this.scrollInto(this._itemsList.markedItem))},e.prototype._handleAppendTo=function(){var e=document.querySelector(this.appendTo);if(!e)throw new Error("appendTo selector "+this.appendTo+" did not found any parent element");this._updateDropdownPosition(),e.appendChild(this._elementRef.nativeElement),this._handleDocumentResize()},e.prototype._updateDropdownPosition=function(){var e=document.querySelector(this.appendTo)||document.body,t=this._selectElementRef.nativeElement.getBoundingClientRect(),n=this._elementRef.nativeElement,i=e.getBoundingClientRect(),o=t.top-i.top,s=t.left-i.left,r="bottom"===this.currentPosition?t.height:-n.clientHeight;n.style.top=o+r+"px",n.style.bottom="auto",n.style.left=s+"px",n.style.width=t.width+"px"},e.prototype._autoPositionDropdown=function(){var e=this,t=this._elementRef.nativeElement.querySelector(".ng-option");if(this.items.length>0&&!t)setTimeout(function(){e._autoPositionDropdown()},50);else{var n=this._selectElementRef.nativeElement.getBoundingClientRect(),i=document.documentElement.scrollTop||document.body.scrollTop;n.top+window.pageYOffset+n.height+this._elementRef.nativeElement.getBoundingClientRect().height>i+document.documentElement.clientHeight?this.currentPosition="top":this.currentPosition="bottom",this.positionChange.emit(this.currentPosition)}},e}();_.decorators=[{type:t.Component,args:[{changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,selector:"ng-dropdown-panel",template:'\n <div *ngIf="headerTemplate" class="ng-dropdown-header" ngProjectAs="header" header>\n <ng-container [ngTemplateOutlet]="headerTemplate"></ng-container>\n </div>\n <div #scroll class="ng-dropdown-panel-items scroll-host">\n <div #padding [class.total-padding]="virtualScroll"></div>\n <div #content [class.scrollable-content]="virtualScroll && items.length > 0">\n <ng-content></ng-content>\n </div>\n </div>\n <div *ngIf="footerTemplate" class="ng-dropdown-footer" ngProjectAs="footer" footer>\n <ng-container [ngTemplateOutlet]="footerTemplate"></ng-container>\n </div>\n ',styles:[".ng-dropdown-panel{\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n position:absolute;\n width:100%;\n z-index:1000;\n -webkit-overflow-scrolling:touch; }\n .ng-dropdown-panel .ng-dropdown-panel-items{\n display:block;\n height:auto;\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n max-height:240px;\n overflow-y:auto; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n cursor:pointer;\n display:block; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{\n font-weight:bold;\n text-decoration:underline; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{\n cursor:default; }\n .ng-dropdown-panel .scroll-host{\n overflow:hidden;\n overflow-y:auto;\n position:relative;\n display:block;\n -webkit-overflow-scrolling:touch; }\n .ng-dropdown-panel .scrollable-content{\n top:0;\n left:0;\n width:100%;\n height:100%;\n position:absolute; }\n .ng-dropdown-panel .total-padding{\n width:1px;\n opacity:0; }\n"],host:{"[class.top]":'currentPosition === "top"',"[class.bottom]":'currentPosition === "bottom"'}}]}],_.ctorParameters=function(){return[{type:I,decorators:[{type:t.Inject,args:[t.forwardRef(function(){return I})]}]},{type:t.Renderer2},{type:t.ElementRef},{type:t.NgZone},{type:b},{type:y}]},_.propDecorators={items:[{type:t.Input}],position:[{type:t.Input}],appendTo:[{type:t.Input}],bufferAmount:[{type:t.Input}],virtualScroll:[{type:t.Input}],headerTemplate:[{type:t.Input}],footerTemplate:[{type:t.Input}],update:[{type:t.Output}],scrollToEnd:[{type:t.Output}],positionChange:[{type:t.Output}],contentElementRef:[{type:t.ViewChild,args:["content",{read:t.ElementRef}]}],scrollElementRef:[{type:t.ViewChild,args:["scroll",{read:t.ElementRef}]}],paddingElementRef:[{type:t.ViewChild,args:["padding",{read:t.ElementRef}]}]};var w=new t.InjectionToken("ng-select-default-options"),I=function(){function e(e,i,o){var s=this;this.changeDetectorRef=i,this.elementRef=o,this.items=[],this.clearable=!0,this.markFirst=!0,this.loading=!1,this.closeOnSelect=!0,this.bufferAmount=4,this.virtualScroll=!1,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.blurEvent=new t.EventEmitter,this.focusEvent=new t.EventEmitter,this.changeEvent=new t.EventEmitter,this.openEvent=new t.EventEmitter,this.closeEvent=new t.EventEmitter,this.searchEvent=new t.EventEmitter,this.clearEvent=new t.EventEmitter,this.addEvent=new t.EventEmitter,this.removeEvent=new t.EventEmitter,this.scrollToEnd=new t.EventEmitter,this.isOpen=!1,this.isFocused=!1,this.isDisabled=!1,this.itemsList=new f(this),this.viewPortItems=[],this.filterValue=null,this.currentDropdownPosition="bottom",this._ngModel=null,this._defaultLabel="label",this._defaultValue="value",this._typeaheadLoading=!1,this._destroy$=new n.Subject,this._onChange=function(e){},this._onTouched=function(){},this.clearItem=function(e){var t=s.selectedItems.find(function(t){return t.value===e});s.unselect(t)},this._mergeGlobalConfig(e)}return Object.defineProperty(e.prototype,"filtered",{get:function(){return!!this.filterValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedItems",{get:function(){return this.itemsList.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading||this._typeaheadLoading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasValue",{get:function(){return this.selectedItems.length>0},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.dropdownPosition&&(this.currentDropdownPosition=e.dropdownPosition.currentValue)},e.prototype.ngAfterViewInit=function(){this.ngOptions.length>0&&0===this.items.length&&this._setItemsFromNgOptions()},e.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},e.prototype.handleKeyDown=function(e){if(g[e.which])switch(e.which){case g.ArrowDown:this._handleArrowDown(e);break;case g.ArrowUp:this._handleArrowUp(e);break;case g.Space:this._handleSpace(e);break;case g.Enter:this._handleEnter(e);break;case g.Tab:this._handleTab(e);break;case g.Esc:this.close();break;case g.Backspace:this._handleBackspace()}},e.prototype.handleArrowClick=function(e){e.stopPropagation(),this.isOpen?this.close():this.open()},e.prototype.handleClearClick=function(e){e.stopPropagation(),this.hasValue&&this.clearModel(),this._clearSearch(),this.focusSearchInput(),this._isTypeahead&&this.typeahead.next(null),this.clearEvent.emit()},e.prototype.clearModel=function(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())},e.prototype.writeValue=function(e){this._ngModel=e,this._validateWriteValue(e),this.itemsList.clearSelected(),this._selectWriteValue(e),this.detectChanges()},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.isDisabled=e,this.detectChanges()},e.prototype.toggle=function(){this.isOpen?this.close():this.open()},e.prototype.open=function(){this.isDisabled||this.isOpen||this.itemsList.maxItemsSelected()||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.filterValue||this.focusSearchInput(),this.detectChanges())},e.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this._clearSearch(),this._onTouched(),this.closeEvent.emit(),this.detectChanges())},e.prototype.toggleItem=function(e){!e||e.disabled||this.isDisabled||(this.multiple&&e.selected?this.unselect(e):this.select(e))},e.prototype.select=function(e){e.selected||(this.itemsList.select(e),this._clearSearch(),this._updateNgModel(),this.addEvent.emit(e.value)),this.closeOnSelect&&this.close()},e.prototype.unselect=function(e){this.itemsList.unselect(e),this._updateNgModel(),this.removeEvent.emit(e)},e.prototype.selectTag=function(){var e,t=this;this.addTag instanceof Function?e=this.addTag(this.filterValue):((n={})[this.bindLabel]=this.filterValue,e=n),e instanceof Promise?e.then(function(e){return t.select(t.itemsList.addItem(e))})["catch"](function(){}):e&&this.select(this.itemsList.addItem(e));var n},e.prototype.showClear=function(){return this.clearable&&(this.hasValue||this.filterValue)&&!this.isDisabled},e.prototype.showAddTag=function(){var e=this;return this.addTag&&this.filterValue&&!this.itemsList.filteredItems.some(function(t){return t.label.toLowerCase()===e.filterValue.toLowerCase()})&&!this.isLoading},e.prototype.showFilter=function(){return!this.isDisabled},e.prototype.showNoItemsFound=function(){var e=0===this.itemsList.filteredItems.length;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this.filterValue&&!this.isLoading)&&!this.showAddTag()},e.prototype.showTypeToSearch=function(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this.filterValue&&!this.isLoading},e.prototype.onFilter=function(e){this.searchable&&(this.filterValue=e,this.open(),this._isTypeahead?(this._typeaheadLoading=!0,this.typeahead.next(this.filterValue)):(this.itemsList.filter(this.filterValue),this.itemsList.markSelectedOrDefault(this.markFirst)))},e.prototype.onInputFocus=function(){this.isFocused=!0,this.focusEvent.emit(null)},e.prototype.onInputBlur=function(){this.isFocused=!1,this.blurEvent.emit(null),this.isOpen||this.isDisabled||this._onTouched()},e.prototype.onItemHover=function(e){e.disabled||this.itemsList.markItem(e)},e.prototype.detectChanges=function(){this.changeDetectorRef.destroyed||this.changeDetectorRef.detectChanges()},e.prototype.focusSearchInput=function(){this.filterInput.nativeElement.focus(),this.filterInput.nativeElement.select()},e.prototype._setItems=function(e){var t=e[0];this.bindLabel=this.bindLabel||this._defaultLabel;var n=t&&!(t instanceof Object);this.itemsList.setItems(e,n),this._isDefined(this._ngModel)&&e.length>0&&(this.itemsList.clearSelected(),this._selectWriteValue(this._ngModel)),this._isTypeahead&&(this._typeaheadLoading=!1,this.itemsList.markSelectedOrDefault(this.markFirst))},e.prototype._setItemsFromNgOptions=function(){var e=this;this.bindLabel=this.bindLabel||this._defaultLabel,this.bindValue=this.bindValue||this._defaultValue;var t=function(t){e.items=t.map(function(e){return{value:e.value,label:e.elementRef.nativeElement.innerHTML,disabled:e.disabled}}),e.itemsList.setItems(e.items,!1),e._isDefined(e._ngModel)&&(e.itemsList.clearSelected(),e._selectWriteValue(e._ngModel)),e.detectChanges()},n=function(){var t=i.merge(e.ngOptions.changes,e._destroy$);i.merge.apply(void 0,a(e.ngOptions.map(function(e){return e.stateChange$}))).pipe(o.takeUntil(t)).subscribe(function(t){e.itemsList.findItem(t.value).disabled=t.disabled,e.changeDetectorRef.markForCheck()})};this.ngOptions.changes.pipe(o.startWith(this.ngOptions),o.takeUntil(this._destroy$)).subscribe(function(e){t(e),n()})},e.prototype._validateWriteValue=function(e){var t=this;if(this._isDefined(e)){var n=function(e){if(e instanceof Object&&t.bindValue)throw new Error("Binding object with bindValue is not allowed.")};if(this.multiple){if(!Array.isArray(e))throw new Error("Multiple select model should be array.");e.forEach(function(e){return n(e)})}else n(e)}},e.prototype._selectWriteValue=function(e){var t=this;if(this._isDefined(e)){var n=function(e){var n=t.itemsList.findItem(e);if(n)t.itemsList.select(n);else{var i=e instanceof Object,o=!i&&!t.bindValue;(i||o)&&t.itemsList.select(t.itemsList.mapItem(e,o,null))}};this.multiple?e.forEach(function(e){n(e)}):n(e)}},e.prototype._updateNgModel=function(){var e=this,t=this._value;this._isDefined(t)?this.bindValue?(t=Array.isArray(t)?t.map(function(t){return e.itemsList.resolveNested(t,e.bindValue)}):this.itemsList.resolveNested(t,this.bindValue),this._onChange(t)):this._onChange(t):this._onChange(null),this._ngModel=t,this.changeEvent.emit(this._value),this.changeDetectorRef.markForCheck()},e.prototype._clearSearch=function(){this.filterValue=null,this.itemsList.clearFilter()},e.prototype._scrollToMarked=function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollInto(this.itemsList.markedItem)},e.prototype._scrollToTag=function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollIntoTag()},e.prototype._handleTab=function(e){this.isOpen&&this.close()},e.prototype._handleEnter=function(e){this.isOpen&&(this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.addTag&&this.selectTag()),e.preventDefault()},e.prototype._handleSpace=function(e){this.isOpen||(this.open(),e.preventDefault())},e.prototype._handleArrowDown=function(e){this.nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()},e.prototype._handleArrowUp=function(e){this.isOpen&&(this.nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())},e.prototype.nextItemIsTag=function(e){var t=this.itemsList.markedIndex+e;return this.addTag&&this.filterValue&&this.itemsList.markedItem&&(t<0||t===this.itemsList.filteredItems.length)},e.prototype._handleBackspace=function(){!this.filterValue&&this.clearable&&this.hasValue&&(this.multiple?(this.itemsList.unselectLast(),this._updateNgModel()):this.clearModel())},Object.defineProperty(e.prototype,"_isTypeahead",{get:function(){return this.typeahead&&this.typeahead.observers.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_value",{get:function(){if(this.multiple)return this.selectedItems.map(function(e){return e.value});var e=this.selectedItems[0];return e?e.value:null},enumerable:!0,configurable:!0}),e.prototype._mergeGlobalConfig=function(e){this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText},e.prototype._isDefined=function(e){return null!==e&&e!==undefined},e}();I.decorators=[{type:t.Component,args:[{selector:"ng-select",template:'<div (click)="searchable ? open() : toggle()" class="ng-control">\n <div class="ng-value-container">\n <div class="ng-placeholder">{{placeholder}}</div>\n <div [class.disabled]="item.disabled" class="ng-value" *ngFor="let item of selectedItems">\n <ng-template #defaultLabelTemplate>\n <span class="ng-value-icon left" (click)="unselect(item); $event.stopPropagation()" aria-hidden="true">×</span>\n <span class="ng-value-label" [innerHTML]="item.label"></span>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="labelTemplate || defaultLabelTemplate"\n [ngTemplateOutletContext]="{ item: item.value, clear: clearItem, label: item.label }">\n </ng-template>\n </div>\n <div *ngIf="showFilter()" class="ng-input">\n <input #filterInput\n type="text"\n autocomplete="off"\n [readOnly]="!searchable"\n [value]="filterValue"\n (input)="onFilter(filterInput.value)"\n (focus)="onInputFocus()"\n (blur)="onInputBlur()"\n (change)="$event.stopPropagation()"\n role="combobox">\n </div>\n </div>\n <div class="ng-spinner-loader" *ngIf="isLoading"></div>\n <span *ngIf="showClear()" (click)="handleClearClick($event)" class="ng-clear-zone" title="{{clearAllText}}">\n <span class="ng-clear" aria-hidden="true">×</span>\n </span>\n <span (click)="handleArrowClick($event)" class="ng-arrow-zone">\n <span class="ng-arrow"></span>\n </span>\n</div>\n<div class="ng-overlay-container" *ngIf="isOpen">\n <div class="ng-overlay" (click)="close()" ></div>\n</div>\n<ng-dropdown-panel *ngIf="isOpen"\n class="ng-dropdown-panel"\n [virtualScroll]="virtualScroll"\n [bufferAmount]="bufferAmount"\n [appendTo]="appendTo"\n [position]="dropdownPosition"\n [headerTemplate]="headerTemplate"\n [footerTemplate]="footerTemplate"\n [items]="itemsList.filteredItems"\n (update)="viewPortItems = $event"\n (positionChange)="currentDropdownPosition = $event"\n (scrollToEnd)="scrollToEnd.emit($event)"\n [ngClass]="{\'multiple\': multiple}">\n <ng-container>\n <div class="ng-option" role="option" (click)="toggleItem(item)" (mousedown)="$event.preventDefault()" (mouseover)="onItemHover(item)"\n *ngFor="let item of viewPortItems"\n [class.disabled]="item.disabled"\n [class.selected]="item.selected"\n [class.marked]="item === itemsList.markedItem">\n <ng-template #defaultOptionTemplate>\n <span class="ng-option-label" [innerHTML]="item.label" [ngOptionHighlight]="filterValue"></span>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="optionTemplate || defaultOptionTemplate"\n [ngTemplateOutletContext]="{ item: item.value, index: item.index, searchTerm: filterValue }">\n </ng-template>\n </div>\n <div class="ng-option" [class.marked]="!itemsList.markedItem" (mouseover)="itemsList.unmarkItem()" role="option" (click)="selectTag()" *ngIf="showAddTag()">\n <span><span class="ng-tag-label">{{addTagText}}</span>"{{filterValue}}"</span>\n </div>\n </ng-container>\n <div class="ng-option disabled" *ngIf="showNoItemsFound()">\n {{notFoundText}}\n </div>\n <div class="ng-option disabled" *ngIf="showTypeToSearch()">\n {{typeToSearchText}}\n </div>\n <div class="ng-option disabled" *ngIf="isLoading && itemsList.filteredItems.length === 0">\n {{loadingText}}\n </div>\n</ng-dropdown-panel>\n',styles:[".ng-select{\n position:relative;\n display:block;\n -webkit-box-sizing:border-box;\n box-sizing:border-box; }\n .ng-select div,\n .ng-select input,\n .ng-select span{\n -webkit-box-sizing:border-box;\n box-sizing:border-box; }\n .ng-select [hidden]{\n display:none; }\n .ng-select.searchable .ng-control .ng-value-container .ng-input{\n opacity:1; }\n .ng-select.opened .ng-control{\n z-index:1001; }\n .ng-select.disabled .ng-control .ng-value-container .ng-placeholder,\n .ng-select.disabled .ng-control .ng-value-container .ng-value{\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n cursor:default; }\n .ng-select.disabled .ng-arrow-zone{\n cursor:default; }\n .ng-select.ng-selected .ng-control .ng-value-container .ng-placeholder, .ng-select.filtered .ng-control .ng-value-container .ng-placeholder{\n display:none; }\n .ng-select .ng-control{\n color:#333;\n cursor:default;\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n outline:none;\n overflow:hidden;\n position:relative;\n width:100%; }\n .ng-select .ng-control .ng-value-container{\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n -webkit-box-flex:1;\n -ms-flex:1;\n flex:1; }\n .ng-select .ng-control .ng-value-container .ng-input{\n opacity:0; }\n .ng-select .ng-control .ng-value-container .ng-input > input{\n -webkit-box-sizing:content-box;\n box-sizing:content-box;\n background:none transparent;\n border:0 none;\n -webkit-box-shadow:none;\n box-shadow:none;\n outline:none;\n cursor:default;\n width:100%; }\n .ng-select.ng-single.filtered .ng-control .ng-value-container .ng-value{\n visibility:hidden; }\n .ng-select.ng-single .ng-control .ng-value-container{\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-value{\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-value .ng-value-icon{\n display:none; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-input{\n position:absolute;\n left:0;\n width:100%; }\n .ng-select.ng-multiple.disabled > .ng-control .ng-value-container .ng-value .ng-value-icon{\n display:none; }\n .ng-select.ng-multiple .ng-control .ng-value-container{\n -ms-flex-wrap:wrap;\n flex-wrap:wrap; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder{\n position:absolute; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value{\n white-space:nowrap; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value.disabled .ng-value-icon{\n display:none; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-icon{\n cursor:pointer; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-input{\n -webkit-box-flex:1;\n -ms-flex:1;\n flex:1;\n z-index:2; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder{\n z-index:1; }\n .ng-select .ng-clear-zone{\n cursor:pointer;\n position:relative;\n width:17px;\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none; }\n .ng-select .ng-clear-zone .ng-clear{\n display:inline-block;\n font-size:18px;\n line-height:1; }\n .ng-select .ng-spinner-loader{\n border-radius:50%;\n width:17px;\n height:17px;\n margin-right:5px;\n font-size:10px;\n position:relative;\n text-indent:-9999em;\n border-top:2px solid rgba(66, 66, 66, 0.2);\n border-right:2px solid rgba(66, 66, 66, 0.2);\n border-bottom:2px solid rgba(66, 66, 66, 0.2);\n border-left:2px solid #424242;\n -webkit-transform:translateZ(0);\n transform:translateZ(0);\n -webkit-animation:load8 0.8s infinite linear;\n animation:load8 0.8s infinite linear; }\n .ng-select .ng-spinner-loader:after{\n border-radius:50%;\n width:17px;\n height:17px; }\n@-webkit-keyframes load8{\n 0%{\n -webkit-transform:rotate(0deg);\n transform:rotate(0deg); }\n 100%{\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg); } }\n@keyframes load8{\n 0%{\n -webkit-transform:rotate(0deg);\n transform:rotate(0deg); }\n 100%{\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg); } }\n .ng-select .ng-arrow-zone{\n cursor:pointer;\n position:relative;\n text-align:center;\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none; }\n .ng-select .ng-arrow-zone .ng-arrow{\n display:inline-block;\n height:0;\n width:0;\n position:relative; }\n .ng-select .ng-overlay-container{\n pointer-events:none;\n top:0;\n left:0;\n height:100%;\n width:100%;\n position:fixed;\n z-index:1000; }\n .ng-select .ng-overlay-container .ng-overlay{\n top:0;\n bottom:0;\n left:0;\n right:0;\n opacity:0;\n position:absolute;\n pointer-events:auto;\n z-index:1000; }\n"],providers:[{provide:s.NG_VALUE_ACCESSOR,useExisting:t.forwardRef(function(){return I}),multi:!0}],encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{role:"dropdown","class":"ng-select","[class.top]":'currentDropdownPosition === "top"',"[class.bottom]":'currentDropdownPosition === "bottom"',"[class.ng-single]":"!multiple","[class.ng-selected]":"hasValue"}}]}],I.ctorParameters=function(){return[{type:undefined,decorators:[{type:t.Inject,args:[w]}]},{type:t.ChangeDetectorRef},{type:t.ElementRef}]},I.propDecorators={items:[{type:t.Input}],bindLabel:[{type:t.Input}],bindValue:[{type:t.Input}],clearable:[{type:t.Input}],markFirst:[{type:t.Input}],placeholder:[{type:t.Input}],notFoundText:[{type:t.Input}],typeToSearchText:[{type:t.Input}],addTagText:[{type:t.Input}],loadingText:[{type:t.Input}],clearAllText:[{type:t.Input}],dropdownPosition:[{type:t.Input}],appendTo:[{type:t.Input}],loading:[{type:t.Input}],closeOnSelect:[{type:t.Input}],maxSelectedItems:[{type:t.Input}],bufferAmount:[{type:t.Input}],virtualScroll:[{type:t.Input}],typeahead:[{type:t.Input},{type:t.HostBinding,args:["class.typeahead"]}],multiple:[{type:t.Input},{type:t.HostBinding,args:["class.ng-multiple"]}],addTag:[{type:t.Input},{type:t.HostBinding,args:["class.taggable"]}],searchable:[{type:t.Input},{type:t.HostBinding,args:["class.searchable"]}],blurEvent:[{type:t.Output,args:["blur"]}],focusEvent:[{type:t.Output,args:["focus"]}],changeEvent:[{type:t.Output,args:["change"]}],openEvent:[{type:t.Output,args:["open"]}],closeEvent:[{type:t.Output,args:["close"]}],searchEvent:[{type:t.Output,args:["search"]}],clearEvent:[{type:t.Output,args:["clear"]}],addEvent:[{type:t.Output,args:["add"]}],removeEvent:[{type:t.Output,args:["remove"]}],scrollToEnd:[{type:t.Output,args:["scrollToEnd"]}],optionTemplate:[{type:t.ContentChild,args:[p,{read:t.TemplateRef}]}],labelTemplate:[{type:t.ContentChild,args:[d,{read:t.TemplateRef}]}],headerTemplate:[{type:t.ContentChild,args:[u,{read:t.TemplateRef}]}],footerTemplate:[{type:t.ContentChild,args:[h,{read:t.TemplateRef}]}],dropdownPanel:[{type:t.ViewChild,args:[t.forwardRef(function(){return _})]}],ngOptions:[{type:t.ContentChildren,args:[v,{descendants:!0}]}],filterInput:[{type:t.ViewChild,args:["filterInput"]}],isOpen:[{type:t.HostBinding,args:["class.opened"]}],isFocused:[{type:t.HostBinding,args:["class.focused"]}],isDisabled:[{type:t.HostBinding,args:["class.disabled"]}],filtered:[{type:t.HostBinding,args:["class.filtered"]}],handleKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}]};var T=function(){function e(e,t){this.elementRef=e,this.renderer=t}return e.prototype.ngOnChanges=function(){this._highlightLabelWithSearchTerm()},e.prototype._highlightLabelWithSearchTerm=function(){var e=this.label?this.label.toString():"";if(e&&this.term){var t=c(e).toLowerCase().indexOf(c(this.term).toLowerCase());t>-1?this._setInnerHtml(e.substring(0,t)+"<span class='highlighted'>"+e.substr(t,this.term.length)+"</span>"+e.substring(t+this.term.length,e.length)):this._setInnerHtml(e)}else this._setInnerHtml(e)},e.prototype._setInnerHtml=function(e){this.renderer.setProperty(this.elementRef.nativeElement,"innerHTML",e)},e}();T.decorators=[{type:t.Directive,args:[{selector:"[ngOptionHighlight]"}]}],T.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},T.propDecorators={term:[{type:t.Input,args:["ngOptionHighlight"]}],label:[{type:t.Input,args:["innerHTML"]}]};var x=function(){return function(){}}();x.decorators=[{type:t.NgModule,args:[{declarations:[_,v,I,T,p,d,u,h],imports:[r.CommonModule],exports:[I,v,T,p,d,u,h],providers:[y,b,{provide:w,useValue:{notFoundText:"No items found",typeToSearchText:"Type to search",addTagText:"Add item",loadingText:"Loading...",clearAllText:"Clear all",disableVirtualScroll:!1}}]}]}],x.ctorParameters=function(){return[]},e.NgSelectComponent=I,e.NG_SELECT_DEFAULT_CONFIG=w,e.NgSelectModule=x,e.ɵe=_,e.ɵi=T,e.ɵh=v,e.ɵd=h,e.ɵc=u,e.ɵb=d,e.ɵa=p,e.ɵf=b,e.ɵg=y,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs/Subject"),require("rxjs/observable/merge"),require("rxjs/operators"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","rxjs/Subject","rxjs/observable/merge","rxjs/operators","@angular/forms","@angular/common"],t):t((e["ng-select"]=e["ng-select"]||{},e["ng-select"]["ng-select"]={}),e.ng.core,e.Rx,e.Rx.Observable,e.Rx.Observable.prototype,e.ng.forms,e.ng.common)}(this,function(e,t,n,i,o,s,r){"use strict";function l(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,s=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)r.push(i.value)}catch(l){o={error:l}}finally{try{i&&!i.done&&(n=s["return"])&&n.call(s)}finally{if(o)throw o.error}}return r}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e}function p(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return v[e]||e})}var d=function(){return function(e){this.template=e}}();d.decorators=[{type:t.Directive,args:[{selector:"[ng-option-tmp]"}]}],d.ctorParameters=function(){return[{type:t.TemplateRef}]};var u=function(){return function(e){this.template=e}}();u.decorators=[{type:t.Directive,args:[{selector:"[ng-optgroup-tmp]"}]}],u.ctorParameters=function(){return[{type:t.TemplateRef}]};var h=function(){return function(e){this.template=e}}();h.decorators=[{type:t.Directive,args:[{selector:"[ng-label-tmp]"}]}],h.ctorParameters=function(){return[{type:t.TemplateRef}]};var g=function(){return function(e){this.template=e}}();g.decorators=[{type:t.Directive,args:[{selector:"[ng-header-tmp]"}]}],g.ctorParameters=function(){return[{type:t.TemplateRef}]};var m=function(){return function(e){this.template=e}}();m.decorators=[{type:t.Directive,args:[{selector:"[ng-footer-tmp]"}]}],m.ctorParameters=function(){return[{type:t.TemplateRef}]};var f={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};f[f.Tab]="Tab",f[f.Enter]="Enter",f[f.Esc]="Esc",f[f.Space]="Space",f[f.ArrowUp]="ArrowUp",f[f.ArrowDown]="ArrowDown",f[f.Backspace]="Backspace";var v={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},y=function(){function e(e){this._ngSelect=e,this._items=[],this._filteredItems=[],this._markedIndex=-1,this._selected=[]}return Object.defineProperty(e.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filteredItems",{get:function(){return this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markedItem",{get:function(){return this._filteredItems[this._markedIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markedIndex",{get:function(){return this._markedIndex},enumerable:!0,configurable:!0}),e.prototype.setItems=function(e,t){var n=this;void 0===t&&(t=!1),this._items=e.map(function(e,i){return n.mapItem(e,t,i)}),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):this._groups={undefined:this._items},this._filteredItems=c(this._items)},e.prototype.select=function(e){e.selected||this.maxItemsSelected()||(this._ngSelect.multiple||this.clearSelected(),this._selected.push(e),e.selected=!0)},e.prototype.maxItemsSelected=function(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this._selected.length},e.prototype.findItem=function(e){var t=this;if(this._ngSelect.bindValue)return this._items.find(function(n){return!n.hasChildren&&t.resolveNested(n.value,t._ngSelect.bindValue)===e});var n=this._items.findIndex(function(t){return t.value===e});return n>-1?this._items[n]:this._items.find(function(n){return!n.hasChildren&&n.label&&n.label===t.resolveNested(e,t._ngSelect.bindLabel)})},e.prototype.unselect=function(e){this._selected=this._selected.filter(function(t){return t!==e}),e.selected=!1},e.prototype.unselectLast=function(){0!==this._selected.length&&(this._selected[this._selected.length-1].selected=!1,this._selected.splice(this._selected.length-1,1))},e.prototype.addItem=function(e){var t={index:this._items.length,label:this.resolveNested(e,this._ngSelect.bindLabel),value:e};return this._items.push(t),this._filteredItems.push(t),t},e.prototype.clearSelected=function(){this._selected.forEach(function(e){e.selected=!1,e.marked=!1}),this._selected=[]},e.prototype.filter=function(e){if(e){this._filteredItems=[],e=p(e).toLocaleLowerCase();var t=this;try{for(var n=l(Object.keys(this._groups)),i=n.next();!i.done;i=n.next())!function(n){var i=[];try{for(var o=l(t._groups[n]),s=o.next();!s.done;s=o.next()){var r=s.value;p(r.label).toLocaleLowerCase().indexOf(e)>-1&&i.push(r)}}catch(f){h={error:f}}finally{try{s&&!s.done&&(g=o["return"])&&g.call(o)}finally{if(h)throw h.error}}if(i.length>0){var d=a(i.slice(-1),1)[0];if(d.parent){var u=t._items.find(function(e){return e===d.parent});t._filteredItems.push(u)}(m=t._filteredItems).push.apply(m,c(i))}var h,g,m}(i.value)}catch(r){o={error:r}}finally{try{i&&!i.done&&(s=n["return"])&&s.call(n)}finally{if(o)throw o.error}}var o,s}else this._filteredItems=this._items},e.prototype.clearFilter=function(){this._filteredItems=c(this._items)},e.prototype.unmarkItem=function(){this._markedIndex=-1},e.prototype.markNextItem=function(){this._stepToItem(1)},e.prototype.markPreviousItem=function(){this._stepToItem(-1)},e.prototype.markItem=function(e){this._markedIndex=this._filteredItems.indexOf(e)},e.prototype.markSelectedOrDefault=function(e){if(0!==this._filteredItems.length){var t=this._filteredItems.indexOf(this._lastSelectedItem);this._lastSelectedItem&&t>-1?this._markedIndex=t:this._markedIndex=e?0:-1}},e.prototype.resolveNested=function(e,t){if(-1===t.indexOf("."))return e[t];for(var n=t.split("."),i=e,o=0,s=n.length;o<s;++o){if(null==i)return null;i=i[n[o]]}return i},e.prototype.mapItem=function(e,t,n){var i=e,o=null;return t?(i=e,o=e):o=this.resolveNested(i,this._ngSelect.bindLabel),{index:n,label:o||"",value:i,disabled:i.disabled}},e.prototype._getNextItemIndex=function(e){return e>0?this._markedIndex===this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1},e.prototype._stepToItem=function(e){if(0!==this._filteredItems.length)for(this._markedIndex=this._getNextItemIndex(e);this.markedItem.disabled;)this._stepToItem(e)},Object.defineProperty(e.prototype,"_lastSelectedItem",{get:function(){return this._selected[this._selected.length-1]},enumerable:!0,configurable:!0}),e.prototype._groupBy=function(e,t){return e.reduce(function(e,n){var i=n.value[t];return e[i]=e[i]||[],e[i].push(n),e},{})},e.prototype._flatten=function(e){var t=this,n=0;return Object.keys(e).reduce(function(i,o){var s={label:o,hasChildren:!0,index:n,disabled:!0};s.value={},s.value[t._ngSelect.groupBy]=o,i.push(s),n++;var r=e[o].map(function(e){return e.parent=s,e.hasChildren=!1,n++,e});return i.push.apply(i,c(r)),i},[])},e}(),b=function(){function e(e){this.elementRef=e,this.stateChange$=new n.Subject,this._disabled=!1}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=this._isDisabled(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})},e.prototype._isDisabled=function(e){return null!=e&&""+e!="false"},e}();b.decorators=[{type:t.Component,args:[{selector:"ng-option",changeDetection:t.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],b.ctorParameters=function(){return[{type:t.ElementRef}]},b.propDecorators={value:[{type:t.Input}],disabled:[{type:t.Input}]};var _=function(){function e(){}return e.prototype.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)},e}();_.decorators=[{type:t.Injectable}],_.ctorParameters=function(){return[]};var w=function(){function e(){}return e.prototype.calculateItems=function(e,t,n){var i=e.childHeight*e.itemsLength;t.scrollTop>i&&(t.scrollTop=i);var o=Math.max(0,t.scrollTop)/i*e.itemsLength,s=Math.min(e.itemsLength,Math.ceil(o)+(e.itemsPerCol+1)),r=s,l=Math.max(0,r-e.itemsPerCol-1),a=Math.min(l,Math.floor(o)),c=e.childHeight*Math.ceil(a)-e.childHeight*Math.min(a,n);return c=isNaN(c)?0:c,a=isNaN(a)?-1:a,s=isNaN(s)?-1:s,a-=n,a=Math.max(0,a),s+=n,s=Math.min(e.itemsLength,s),{topPadding:c,scrollHeight:i,start:a,end:s}},e.prototype.calculateDimensions=function(e,t,n,i){var o=n.getBoundingClientRect(),s=i.children[t]?i.children[t].getBoundingClientRect():{width:o.width,height:o.height,top:0},r=Math.max(1,Math.floor(o.height/s.height));return{itemsLength:e,viewWidth:o.width,viewHeight:o.height,childWidth:s.width,childHeight:s.height,itemsPerCol:r}},e}();w.decorators=[{type:t.Injectable}],w.ctorParameters=function(){return[]};var I=function(){function e(e,n,i,o,s,r){this._renderer=n,this._elementRef=i,this._zone=o,this._virtualScrollService=s,this._window=r,this.items=[],this.bufferAmount=4,this.virtualScroll=!1,this.update=new t.EventEmitter,this.scrollToEnd=new t.EventEmitter,this.positionChange=new t.EventEmitter,this.currentPosition="bottom",this._startupLoop=!0,this._isScrolledToMarked=!1,this._scrollToEndFired=!1,this._disposeScrollListener=function(){},this._disposeDocumentResizeListener=function(){},this._selectElementRef=e.elementRef,this._itemsList=e.itemsList}return e.prototype.ngOnInit=function(){this._handleScroll(),this.appendTo&&this._handleAppendTo()},e.prototype.ngOnChanges=function(e){e.position&&e.position.currentValue&&(this.currentPosition=e.position.currentValue,"auto"===this.currentPosition&&this._autoPositionDropdown(),this.appendTo&&this._updateDropdownPosition()),e.items&&this._handleItemsChange(e.items)},e.prototype.ngOnDestroy=function(){this._disposeDocumentResizeListener(),this._disposeScrollListener()},e.prototype.refresh=function(){var e=this;this._zone.runOutsideAngular(function(){e._window.requestAnimationFrame(function(){return e._updateItems()})})},e.prototype.scrollInto=function(e){if(e){var t=this.items.indexOf(e);if(!(t<0||t>=this.items.length)){var n=this._calculateDimensions(this.virtualScroll?0:t),i=this.scrollElementRef.nativeElement,o=Math.floor(n.viewHeight/n.childHeight)-1;if(this.virtualScroll)i.scrollTop=t*n.childHeight-n.childHeight*Math.min(t,o);else{var s=this.contentElementRef.nativeElement,r=Array.from(s.children).slice(0,t).reduce(function(e,t){return e+t.clientHeight},0);i.scrollTop=r-n.childHeight*Math.min(t,o)}}}},e.prototype.scrollIntoTag=function(){var e=this.scrollElementRef.nativeElement,t=this._calculateDimensions();e.scrollTop=t.childHeight*(t.itemsLength+1)},e.prototype._handleScroll=function(){var e=this;this._disposeScrollListener=this._renderer.listen(this.scrollElementRef.nativeElement,"scroll",function(){e.refresh(),e._fireScrollToEnd()})},e.prototype._handleItemsChange=function(e){this._scrollToEndFired=!1,this._previousStart=undefined,this._previousEnd=undefined,(e!==undefined&&e.previousValue===undefined||e.previousValue!==undefined&&0===e.previousValue.length)&&(this._startupLoop=!0),this.items=e.currentValue||[],this.refresh()},e.prototype._updateItems=function(){var e=this;if(t.NgZone.assertNotInAngularZone(),this.virtualScroll){var n=function(){var t=e._calculateDimensions(),i=e._virtualScrollService.calculateItems(t,e.scrollElementRef.nativeElement,e.bufferAmount||0);e.paddingElementRef.nativeElement.style.height=i.scrollHeight+"px";var o="translateY("+i.topPadding+"px)";if(e.contentElementRef.nativeElement.style.transform=o,i.start!==e._previousStart||i.end!==e._previousEnd)e._zone.run(function(){e.update.emit(e.items.slice(i.start,i.end))}),e._previousStart=i.start,e._previousEnd=i.end,!0===e._startupLoop&&n();else if(!0===e._startupLoop)return e._startupLoop=!1,void e._scrollToMarked()};n()}else this._zone.run(function(){e.update.emit(e.items.slice()),e._scrollToMarked()})},e.prototype._fireScrollToEnd=function(){if(!this._scrollToEndFired){var e=this.scrollElementRef.nativeElement,t=this._elementRef.nativeElement,n=this.virtualScroll?this.paddingElementRef.nativeElement:this.contentElementRef.nativeElement;e.scrollTop+t.clientHeight>=n.clientHeight&&(this.scrollToEnd.emit(),this._scrollToEndFired=!0)}},e.prototype._calculateDimensions=function(e){return void 0===e&&(e=0),this._virtualScrollService.calculateDimensions(this.items.length,e,this.scrollElementRef.nativeElement,this.contentElementRef.nativeElement)},e.prototype._handleDocumentResize=function(){var e=this;this.appendTo&&(this._disposeDocumentResizeListener=this._renderer.listen("window","resize",function(){e._updateDropdownPosition()}))},e.prototype._scrollToMarked=function(){this._isScrolledToMarked||(this._isScrolledToMarked=!0,this.scrollInto(this._itemsList.markedItem))},e.prototype._handleAppendTo=function(){var e=document.querySelector(this.appendTo);if(!e)throw new Error("appendTo selector "+this.appendTo+" did not found any parent element");this._updateDropdownPosition(),e.appendChild(this._elementRef.nativeElement),this._handleDocumentResize()},e.prototype._updateDropdownPosition=function(){var e=document.querySelector(this.appendTo)||document.body,t=this._selectElementRef.nativeElement.getBoundingClientRect(),n=this._elementRef.nativeElement,i=e.getBoundingClientRect(),o=t.top-i.top,s=t.left-i.left,r="bottom"===this.currentPosition?t.height:-n.clientHeight;n.style.top=o+r+"px",n.style.bottom="auto",n.style.left=s+"px",n.style.width=t.width+"px"},e.prototype._autoPositionDropdown=function(){var e=this,t=this._elementRef.nativeElement.querySelector(".ng-option");if(this.items.length>0&&!t)setTimeout(function(){e._autoPositionDropdown()},50);else{var n=this._selectElementRef.nativeElement.getBoundingClientRect(),i=document.documentElement.scrollTop||document.body.scrollTop;n.top+window.pageYOffset+n.height+this._elementRef.nativeElement.getBoundingClientRect().height>i+document.documentElement.clientHeight?this.currentPosition="top":this.currentPosition="bottom",this.positionChange.emit(this.currentPosition)}},e}();I.decorators=[{type:t.Component,args:[{changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,selector:"ng-dropdown-panel",template:'\n <div *ngIf="headerTemplate" class="ng-dropdown-header" ngProjectAs="header" header>\n <ng-container [ngTemplateOutlet]="headerTemplate"></ng-container>\n </div>\n <div #scroll class="ng-dropdown-panel-items scroll-host">\n <div #padding [class.total-padding]="virtualScroll"></div>\n <div #content [class.scrollable-content]="virtualScroll && items.length > 0">\n <ng-content></ng-content>\n </div>\n </div>\n <div *ngIf="footerTemplate" class="ng-dropdown-footer" ngProjectAs="footer" footer>\n <ng-container [ngTemplateOutlet]="footerTemplate"></ng-container>\n </div>\n ',styles:[".ng-dropdown-panel{\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n position:absolute;\n width:100%;\n z-index:1000;\n -webkit-overflow-scrolling:touch; }\n .ng-dropdown-panel .ng-dropdown-panel-items{\n display:block;\n height:auto;\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n max-height:240px;\n overflow-y:auto; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n cursor:pointer;\n display:block;\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{\n font-weight:bold;\n text-decoration:underline; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{\n cursor:default; }\n .ng-dropdown-panel .scroll-host{\n overflow:hidden;\n overflow-y:auto;\n position:relative;\n display:block;\n -webkit-overflow-scrolling:touch; }\n .ng-dropdown-panel .scrollable-content{\n top:0;\n left:0;\n width:100%;\n height:100%;\n position:absolute; }\n .ng-dropdown-panel .total-padding{\n width:1px;\n opacity:0; }\n"],host:{"[class.top]":'currentPosition === "top"',"[class.bottom]":'currentPosition === "bottom"'}}]}],I.ctorParameters=function(){return[{type:x,decorators:[{type:t.Inject,args:[t.forwardRef(function(){return x})]}]},{type:t.Renderer2},{type:t.ElementRef},{type:t.NgZone},{type:w},{type:_}]},I.propDecorators={items:[{type:t.Input}],position:[{type:t.Input}],appendTo:[{type:t.Input}],bufferAmount:[{type:t.Input}],virtualScroll:[{type:t.Input}],headerTemplate:[{type:t.Input}],footerTemplate:[{type:t.Input}],update:[{type:t.Output}],scrollToEnd:[{type:t.Output}],positionChange:[{type:t.Output}],contentElementRef:[{type:t.ViewChild,args:["content",{read:t.ElementRef}]}],scrollElementRef:[{type:t.ViewChild,args:["scroll",{read:t.ElementRef}]}],paddingElementRef:[{type:t.ViewChild,args:["padding",{read:t.ElementRef}]}]};var T=new t.InjectionToken("ng-select-default-options"),x=function(){function e(e,i,o){var s=this;this._cd=i,this.elementRef=o,this.items=[],this.clearable=!0,this.markFirst=!0,this.loading=!1,this.closeOnSelect=!0,this.bufferAmount=4,this.virtualScroll=!1,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.blurEvent=new t.EventEmitter,this.focusEvent=new t.EventEmitter,this.changeEvent=new t.EventEmitter,this.openEvent=new t.EventEmitter,this.closeEvent=new t.EventEmitter,this.searchEvent=new t.EventEmitter,this.clearEvent=new t.EventEmitter,this.addEvent=new t.EventEmitter,this.removeEvent=new t.EventEmitter,this.scrollToEnd=new t.EventEmitter,this.isOpen=!1,this.isFocused=!1,this.isDisabled=!1,this.itemsList=new y(this),this.viewPortItems=[],this.filterValue=null,this.currentDropdownPosition="bottom",this._ngModel=null,this._defaultLabel="label",this._defaultValue="value",this._typeaheadLoading=!1,this._destroy$=new n.Subject,this._onChange=function(e){},this._onTouched=function(){},this.clearItem=function(e){var t=s.selectedItems.find(function(t){return t.value===e});s.unselect(t)},this._mergeGlobalConfig(e)}return Object.defineProperty(e.prototype,"filtered",{get:function(){return!!this.filterValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedItems",{get:function(){return this.itemsList.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading||this._typeaheadLoading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasValue",{get:function(){return this.selectedItems.length>0},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.dropdownPosition&&(this.currentDropdownPosition=e.dropdownPosition.currentValue)},e.prototype.ngAfterViewInit=function(){this.ngOptions.length>0&&0===this.items.length&&this._setItemsFromNgOptions()},e.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},e.prototype.handleKeyDown=function(e){if(f[e.which])switch(e.which){case f.ArrowDown:this._handleArrowDown(e);break;case f.ArrowUp:this._handleArrowUp(e);break;case f.Space:this._handleSpace(e);break;case f.Enter:this._handleEnter(e);break;case f.Tab:this._handleTab(e);break;case f.Esc:this.close();break;case f.Backspace:this._handleBackspace()}},e.prototype.handleArrowClick=function(e){e.stopPropagation(),this.isOpen?this.close():this.open()},e.prototype.handleClearClick=function(e){e.stopPropagation(),this.hasValue&&this.clearModel(),this._clearSearch(),this.focusSearchInput(),this._isTypeahead&&this.typeahead.next(null),this.clearEvent.emit()},e.prototype.clearModel=function(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())},e.prototype.writeValue=function(e){this._ngModel=e,this._validateWriteValue(e),this.itemsList.clearSelected(),this._selectWriteValue(e),this.detectChanges()},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.isDisabled=e,this.detectChanges()},e.prototype.toggle=function(){this.isOpen?this.close():this.open()},e.prototype.open=function(){this.isDisabled||this.isOpen||this.itemsList.maxItemsSelected()||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.filterValue||this.focusSearchInput(),this.detectChanges())},e.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this._clearSearch(),this._onTouched(),this.closeEvent.emit(),this.detectChanges())},e.prototype.toggleItem=function(e){!e||e.disabled||this.isDisabled||(this.multiple&&e.selected?this.unselect(e):this.select(e))},e.prototype.select=function(e){e.selected||(this.itemsList.select(e),this._clearSearch(),this._updateNgModel(),this.addEvent.emit(e.value)),this.closeOnSelect&&this.close()},e.prototype.unselect=function(e){this.itemsList.unselect(e),this._updateNgModel(),this.removeEvent.emit(e)},e.prototype.selectTag=function(){var e,t=this;this.addTag instanceof Function?e=this.addTag(this.filterValue):((n={})[this.bindLabel]=this.filterValue,e=n),e instanceof Promise?e.then(function(e){return t.select(t.itemsList.addItem(e))})["catch"](function(){}):e&&this.select(this.itemsList.addItem(e));var n},e.prototype.showClear=function(){return this.clearable&&(this.hasValue||this.filterValue)&&!this.isDisabled},e.prototype.showAddTag=function(){var e=this;return this.addTag&&this.filterValue&&!this.itemsList.filteredItems.some(function(t){return t.label.toLowerCase()===e.filterValue.toLowerCase()})&&!this.isLoading},e.prototype.showFilter=function(){return!this.isDisabled},e.prototype.showNoItemsFound=function(){var e=0===this.itemsList.filteredItems.length;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this.filterValue&&!this.isLoading)&&!this.showAddTag()},e.prototype.showTypeToSearch=function(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this.filterValue&&!this.isLoading},e.prototype.filter=function(e){this.searchable&&(this.filterValue=e,this.open(),this._isTypeahead?(this._typeaheadLoading=!0,this.typeahead.next(this.filterValue)):(this.itemsList.filter(this.filterValue),this.itemsList.markSelectedOrDefault(this.markFirst)))},e.prototype.onInputFocus=function(){this.isFocused=!0,this.focusEvent.emit(null)},e.prototype.onInputBlur=function(){this.isFocused=!1,this.blurEvent.emit(null),this.isOpen||this.isDisabled||this._onTouched()},e.prototype.onItemHover=function(e){e.disabled||this.itemsList.markItem(e)},e.prototype.detectChanges=function(){this._cd.destroyed||this._cd.detectChanges()},e.prototype.focusSearchInput=function(){this.filterInput.nativeElement.focus(),this.filterInput.nativeElement.select()},e.prototype._setItems=function(e){var t=e[0];this.bindLabel=this.bindLabel||this._defaultLabel;var n=t&&!(t instanceof Object);this.itemsList.setItems(e,n),this._isDefined(this._ngModel)&&e.length>0&&(this.itemsList.clearSelected(),this._selectWriteValue(this._ngModel)),this._isTypeahead&&(this._typeaheadLoading=!1,this.itemsList.markSelectedOrDefault(this.markFirst))},e.prototype._setItemsFromNgOptions=function(){var e=this;this.bindLabel=this.bindLabel||this._defaultLabel,this.bindValue=this.bindValue||this._defaultValue;var t=function(t){e.items=t.map(function(e){return{value:e.value,label:e.elementRef.nativeElement.innerHTML,disabled:e.disabled}}),e.itemsList.setItems(e.items,!1),e._isDefined(e._ngModel)&&(e.itemsList.clearSelected(),e._selectWriteValue(e._ngModel)),e.detectChanges()},n=function(){var t=i.merge(e.ngOptions.changes,e._destroy$);i.merge.apply(void 0,c(e.ngOptions.map(function(e){return e.stateChange$}))).pipe(o.takeUntil(t)).subscribe(function(t){e.itemsList.findItem(t.value).disabled=t.disabled,e._cd.markForCheck()})};this.ngOptions.changes.pipe(o.startWith(this.ngOptions),o.takeUntil(this._destroy$)).subscribe(function(e){t(e),n()})},e.prototype._validateWriteValue=function(e){var t=this;if(this._isDefined(e)){var n=function(e){if(e instanceof Object&&t.bindValue)throw new Error("Binding object with bindValue is not allowed.")};if(this.multiple){if(!Array.isArray(e))throw new Error("Multiple select model should be array.");e.forEach(function(e){return n(e)})}else n(e)}},e.prototype._selectWriteValue=function(e){var t=this;if(this._isDefined(e)){var n=function(e){var n=t.itemsList.findItem(e);if(n)t.itemsList.select(n);else{var i=e instanceof Object,o=!i&&!t.bindValue;(i||o)&&t.itemsList.select(t.itemsList.mapItem(e,o,null))}};this.multiple?e.forEach(function(e){n(e)}):n(e)}},e.prototype._updateNgModel=function(){var e=this,t=this._value;this._isDefined(t)?this.bindValue?(t=Array.isArray(t)?t.map(function(t){return e.itemsList.resolveNested(t,e.bindValue)}):this.itemsList.resolveNested(t,this.bindValue),this._onChange(t)):this._onChange(t):this._onChange(null),this._ngModel=t,this.changeEvent.emit(this._value),this._cd.markForCheck()},e.prototype._clearSearch=function(){this.filterValue=null,this.itemsList.clearFilter()},e.prototype._scrollToMarked=function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollInto(this.itemsList.markedItem)},e.prototype._scrollToTag=function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollIntoTag()},e.prototype._handleTab=function(e){this.isOpen&&this.close()},e.prototype._handleEnter=function(e){this.isOpen&&(this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.addTag&&this.selectTag()),e.preventDefault()},e.prototype._handleSpace=function(e){this.isOpen||(this.open(),e.preventDefault())},e.prototype._handleArrowDown=function(e){this.nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()},e.prototype._handleArrowUp=function(e){this.isOpen&&(this.nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())},e.prototype.nextItemIsTag=function(e){var t=this.itemsList.markedIndex+e;return this.addTag&&this.filterValue&&this.itemsList.markedItem&&(t<0||t===this.itemsList.filteredItems.length)},e.prototype._handleBackspace=function(){!this.filterValue&&this.clearable&&this.hasValue&&(this.multiple?(this.itemsList.unselectLast(),this._updateNgModel()):this.clearModel())},Object.defineProperty(e.prototype,"_isTypeahead",{get:function(){return this.typeahead&&this.typeahead.observers.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_value",{get:function(){if(this.multiple)return this.selectedItems.map(function(e){return e.value});var e=this.selectedItems[0];return e?e.value:null},enumerable:!0,configurable:!0}),e.prototype._mergeGlobalConfig=function(e){this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText},e.prototype._isDefined=function(e){return null!==e&&e!==undefined},e}();x.decorators=[{type:t.Component,args:[{selector:"ng-select",template:'<div (click)="searchable ? open() : toggle()" [class.ng-has-value]="hasValue" class="ng-control">\n <div class="ng-value-container">\n <div class="ng-placeholder">{{placeholder}}</div>\n <div [class.disabled]="item.disabled" class="ng-value" *ngFor="let item of selectedItems">\n <ng-template #defaultLabelTemplate>\n <span class="ng-value-icon left" (click)="unselect(item); $event.stopPropagation()" aria-hidden="true">×</span>\n <span class="ng-value-label" [innerHTML]="item.label"></span>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="labelTemplate || defaultLabelTemplate"\n [ngTemplateOutletContext]="{ item: item.value, clear: clearItem, label: item.label }">\n </ng-template>\n </div>\n <div *ngIf="showFilter()" class="ng-input">\n <input #filterInput\n type="text"\n autocomplete="off"\n [readOnly]="!searchable"\n [value]="filterValue"\n (input)="filter(filterInput.value)"\n (focus)="onInputFocus()"\n (blur)="onInputBlur()"\n (change)="$event.stopPropagation()"\n role="combobox">\n </div>\n </div>\n <div class="ng-spinner-loader" *ngIf="isLoading"></div>\n <span *ngIf="showClear()" (click)="handleClearClick($event)" class="ng-clear-zone" title="{{clearAllText}}">\n <span class="ng-clear" aria-hidden="true">×</span>\n </span>\n <span (click)="handleArrowClick($event)" class="ng-arrow-zone">\n <span class="ng-arrow"></span>\n </span>\n</div>\n<div class="ng-overlay-container" *ngIf="isOpen">\n <div class="ng-overlay" (click)="close()" ></div>\n</div>\n<ng-dropdown-panel *ngIf="isOpen"\n class="ng-dropdown-panel"\n [virtualScroll]="virtualScroll"\n [bufferAmount]="bufferAmount"\n [appendTo]="appendTo"\n [position]="dropdownPosition"\n [headerTemplate]="headerTemplate"\n [footerTemplate]="footerTemplate"\n [items]="itemsList.filteredItems"\n (update)="viewPortItems = $event"\n (positionChange)="currentDropdownPosition = $event"\n (scrollToEnd)="scrollToEnd.emit($event)"\n [ngClass]="{\'multiple\': multiple}">\n <ng-container>\n <div class="ng-option" role="option" (click)="toggleItem(item)" (mousedown)="$event.preventDefault()" (mouseover)="onItemHover(item)"\n *ngFor="let item of viewPortItems"\n [class.disabled]="item.disabled"\n [class.selected]="item.selected"\n [class.ng-optgroup]="item.hasChildren"\n [class.ng-option]="!item.hasChildren"\n [class.ng-option-child]="!!item.parent"\n [class.marked]="item === itemsList.markedItem">\n <ng-template #defaultOptionTemplate>\n <span class="ng-option-label" [innerHTML]="item.label" [ngOptionHighlight]="filterValue"></span>\n </ng-template>\n <ng-template #defaultOptGroupTemplate>\n <span class="ng-option-label" [innerHTML]="item.label" [ngOptionHighlight]="filterValue"></span>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="item.hasChildren ? (optgroupTemplate || defaultOptGroupTemplate) : (optionTemplate || defaultOptionTemplate)"\n [ngTemplateOutletContext]="{ item: item.value, index: item.index, searchTerm: filterValue }">\n </ng-template>\n </div>\n <div class="ng-option" [class.marked]="!itemsList.markedItem" (mouseover)="itemsList.unmarkItem()" role="option" (click)="selectTag()" *ngIf="showAddTag()">\n <span><span class="ng-tag-label">{{addTagText}}</span>"{{filterValue}}"</span>\n </div>\n </ng-container>\n <div class="ng-option disabled" *ngIf="showNoItemsFound()">\n {{notFoundText}}\n </div>\n <div class="ng-option disabled" *ngIf="showTypeToSearch()">\n {{typeToSearchText}}\n </div>\n <div class="ng-option disabled" *ngIf="isLoading && itemsList.filteredItems.length === 0">\n {{loadingText}}\n </div>\n</ng-dropdown-panel>\n',styles:[".ng-select{\n position:relative;\n display:block;\n -webkit-box-sizing:border-box;\n box-sizing:border-box; }\n .ng-select div,\n .ng-select input,\n .ng-select span{\n -webkit-box-sizing:border-box;\n box-sizing:border-box; }\n .ng-select [hidden]{\n display:none; }\n .ng-select.searchable .ng-control .ng-value-container .ng-input{\n opacity:1; }\n .ng-select.opened .ng-control{\n z-index:1001; }\n .ng-select.disabled .ng-control .ng-value-container .ng-placeholder,\n .ng-select.disabled .ng-control .ng-value-container .ng-value{\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n cursor:default; }\n .ng-select.disabled .ng-arrow-zone{\n cursor:default; }\n .ng-select .ng-has-value .ng-placeholder, .ng-select.filtered .ng-placeholder{\n display:none; }\n .ng-select .ng-control{\n color:#333;\n cursor:default;\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n outline:none;\n overflow:hidden;\n position:relative;\n width:100%; }\n .ng-select .ng-control .ng-value-container{\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n -webkit-box-flex:1;\n -ms-flex:1;\n flex:1; }\n .ng-select .ng-control .ng-value-container .ng-input{\n opacity:0; }\n .ng-select .ng-control .ng-value-container .ng-input > input{\n -webkit-box-sizing:content-box;\n box-sizing:content-box;\n background:none transparent;\n border:0 none;\n -webkit-box-shadow:none;\n box-shadow:none;\n outline:none;\n cursor:default;\n width:100%; }\n .ng-select.ng-single.filtered .ng-control .ng-value-container .ng-value{\n visibility:hidden; }\n .ng-select.ng-single .ng-control .ng-value-container{\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-value{\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-value .ng-value-icon{\n display:none; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-input{\n position:absolute;\n left:0;\n width:100%; }\n .ng-select.ng-multiple.disabled > .ng-control .ng-value-container .ng-value .ng-value-icon{\n display:none; }\n .ng-select.ng-multiple .ng-control .ng-value-container{\n -ms-flex-wrap:wrap;\n flex-wrap:wrap; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder{\n position:absolute; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value{\n white-space:nowrap; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value.disabled .ng-value-icon{\n display:none; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-icon{\n cursor:pointer; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-input{\n -webkit-box-flex:1;\n -ms-flex:1;\n flex:1;\n z-index:2; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder{\n z-index:1; }\n .ng-select .ng-clear-zone{\n cursor:pointer;\n position:relative;\n width:17px;\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none; }\n .ng-select .ng-clear-zone .ng-clear{\n display:inline-block;\n font-size:18px;\n line-height:1; }\n .ng-select .ng-spinner-loader{\n border-radius:50%;\n width:17px;\n height:17px;\n margin-right:5px;\n font-size:10px;\n position:relative;\n text-indent:-9999em;\n border-top:2px solid rgba(66, 66, 66, 0.2);\n border-right:2px solid rgba(66, 66, 66, 0.2);\n border-bottom:2px solid rgba(66, 66, 66, 0.2);\n border-left:2px solid #424242;\n -webkit-transform:translateZ(0);\n transform:translateZ(0);\n -webkit-animation:load8 0.8s infinite linear;\n animation:load8 0.8s infinite linear; }\n .ng-select .ng-spinner-loader:after{\n border-radius:50%;\n width:17px;\n height:17px; }\n@-webkit-keyframes load8{\n 0%{\n -webkit-transform:rotate(0deg);\n transform:rotate(0deg); }\n 100%{\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg); } }\n@keyframes load8{\n 0%{\n -webkit-transform:rotate(0deg);\n transform:rotate(0deg); }\n 100%{\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg); } }\n .ng-select .ng-arrow-zone{\n cursor:pointer;\n position:relative;\n text-align:center;\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none; }\n .ng-select .ng-arrow-zone .ng-arrow{\n display:inline-block;\n height:0;\n width:0;\n position:relative; }\n .ng-select .ng-overlay-container{\n pointer-events:none;\n top:0;\n left:0;\n height:100%;\n width:100%;\n position:fixed;\n z-index:1000; }\n .ng-select .ng-overlay-container .ng-overlay{\n top:0;\n bottom:0;\n left:0;\n right:0;\n opacity:0;\n position:absolute;\n pointer-events:auto;\n z-index:1000; }\n"],providers:[{provide:s.NG_VALUE_ACCESSOR,useExisting:t.forwardRef(function(){return x}),multi:!0}],encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{role:"dropdown","class":"ng-select","[class.top]":'currentDropdownPosition === "top"',"[class.bottom]":'currentDropdownPosition === "bottom"',"[class.ng-single]":"!multiple"}}]}],x.ctorParameters=function(){return[{type:undefined,decorators:[{type:t.Inject,args:[T]}]},{type:t.ChangeDetectorRef},{type:t.ElementRef}]},x.propDecorators={items:[{type:t.Input}],bindLabel:[{type:t.Input}],bindValue:[{type:t.Input}],clearable:[{type:t.Input}],markFirst:[{type:t.Input}],placeholder:[{type:t.Input}],notFoundText:[{type:t.Input}],typeToSearchText:[{type:t.Input}],addTagText:[{type:t.Input}],loadingText:[{type:t.Input}],clearAllText:[{type:t.Input}],dropdownPosition:[{type:t.Input}],appendTo:[{type:t.Input}],loading:[{type:t.Input}],closeOnSelect:[{type:t.Input}],maxSelectedItems:[{type:t.Input}],groupBy:[{type:t.Input}],bufferAmount:[{type:t.Input}],virtualScroll:[{type:t.Input}],typeahead:[{type:t.Input},{type:t.HostBinding,args:["class.typeahead"]}],multiple:[{type:t.Input},{type:t.HostBinding,args:["class.ng-multiple"]}],addTag:[{type:t.Input},{type:t.HostBinding,args:["class.taggable"]}],searchable:[{type:t.Input},{type:t.HostBinding,args:["class.searchable"]}],blurEvent:[{type:t.Output,args:["blur"]}],focusEvent:[{type:t.Output,args:["focus"]}],changeEvent:[{type:t.Output,args:["change"]}],openEvent:[{type:t.Output,args:["open"]}],closeEvent:[{type:t.Output,args:["close"]}],searchEvent:[{type:t.Output,args:["search"]}],clearEvent:[{type:t.Output,args:["clear"]}],addEvent:[{type:t.Output,args:["add"]}],removeEvent:[{type:t.Output,args:["remove"]}],scrollToEnd:[{type:t.Output,args:["scrollToEnd"]}],optionTemplate:[{type:t.ContentChild,args:[d,{read:t.TemplateRef}]}],optgroupTemplate:[{type:t.ContentChild,args:[u,{read:t.TemplateRef}]}],labelTemplate:[{type:t.ContentChild,args:[h,{read:t.TemplateRef}]}],headerTemplate:[{type:t.ContentChild,args:[g,{read:t.TemplateRef}]}],footerTemplate:[{type:t.ContentChild,args:[m,{read:t.TemplateRef}]}],dropdownPanel:[{type:t.ViewChild,args:[t.forwardRef(function(){return I})]}],ngOptions:[{type:t.ContentChildren,args:[b,{descendants:!0}]}],filterInput:[{type:t.ViewChild,args:["filterInput"]}],isOpen:[{type:t.HostBinding,args:["class.opened"]}],isFocused:[{type:t.HostBinding,args:["class.focused"]}],isDisabled:[{type:t.HostBinding,args:["class.disabled"]}],filtered:[{type:t.HostBinding,args:["class.filtered"]}],handleKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}]};var E=function(){function e(e,t){this.elementRef=e,this.renderer=t}return e.prototype.ngOnChanges=function(){this._highlightLabelWithSearchTerm()},e.prototype._highlightLabelWithSearchTerm=function(){var e=this.label?this.label.toString():"";if(e&&this.term){var t=p(e).toLowerCase().indexOf(p(this.term).toLowerCase());t>-1?this._setInnerHtml(e.substring(0,t)+"<span class='highlighted'>"+e.substr(t,this.term.length)+"</span>"+e.substring(t+this.term.length,e.length)):this._setInnerHtml(e)}else this._setInnerHtml(e)},e.prototype._setInnerHtml=function(e){this.renderer.setProperty(this.elementRef.nativeElement,"innerHTML",e)},e}();E.decorators=[{type:t.Directive,args:[{selector:"[ngOptionHighlight]"}]}],E.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},E.propDecorators={term:[{type:t.Input,args:["ngOptionHighlight"]}],label:[{type:t.Input,args:["innerHTML"]}]};var O=function(){return function(){}}();O.decorators=[{type:t.NgModule,args:[{declarations:[I,b,x,E,u,d,h,g,m],imports:[r.CommonModule],exports:[x,b,E,u,d,h,g,m],providers:[_,w,{provide:T,useValue:{notFoundText:"No items found",typeToSearchText:"Type to search",addTagText:"Add item",loadingText:"Loading...",clearAllText:"Clear all",disableVirtualScroll:!1}}]}]}],O.ctorParameters=function(){return[]},e.NgSelectComponent=x,e.NG_SELECT_DEFAULT_CONFIG=T,e.NgSelectModule=O,e.ɵf=I,e.ɵj=E,e.ɵi=b,e.ɵe=m,e.ɵd=g,e.ɵc=h,e.ɵb=u,e.ɵa=d,e.ɵg=w,e.ɵh=_,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ng-select.umd.min.js.map |
@@ -5,7 +5,7 @@ /** | ||
export * from './index'; | ||
export { NgDropdownPanelComponent as ɵe } from './ng-select/ng-dropdown-panel.component'; | ||
export { NgOptionHighlightDirective as ɵi } from './ng-select/ng-option-highlight.directive'; | ||
export { NgOptionComponent as ɵh } from './ng-select/ng-option.component'; | ||
export { NgFooterTemplateDirective as ɵd, NgHeaderTemplateDirective as ɵc, NgLabelTemplateDirective as ɵb, NgOptionTemplateDirective as ɵa } from './ng-select/ng-templates.directive'; | ||
export { VirtualScrollService as ɵf } from './ng-select/virtual-scroll.service'; | ||
export { WindowService as ɵg } from './ng-select/window.service'; | ||
export { NgDropdownPanelComponent as ɵf } from './ng-select/ng-dropdown-panel.component'; | ||
export { NgOptionHighlightDirective as ɵj } from './ng-select/ng-option-highlight.directive'; | ||
export { NgOptionComponent as ɵi } from './ng-select/ng-option.component'; | ||
export { NgFooterTemplateDirective as ɵe, NgHeaderTemplateDirective as ɵd, NgLabelTemplateDirective as ɵc, NgOptgroupTemplateDirective as ɵb, NgOptionTemplateDirective as ɵa } from './ng-select/ng-templates.directive'; | ||
export { VirtualScrollService as ɵg } from './ng-select/virtual-scroll.service'; | ||
export { WindowService as ɵh } from './ng-select/window.service'; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"NgSelectComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ng-select","template":"<div (click)=\"searchable ? open() : toggle()\" class=\"ng-control\">\n <div class=\"ng-value-container\">\n <div class=\"ng-placeholder\">{{placeholder}}</div>\n <div [class.disabled]=\"item.disabled\" class=\"ng-value\" *ngFor=\"let item of selectedItems\">\n <ng-template #defaultLabelTemplate>\n <span class=\"ng-value-icon left\" (click)=\"unselect(item); $event.stopPropagation()\" aria-hidden=\"true\">×</span>\n <span class=\"ng-value-label\" [innerHTML]=\"item.label\"></span>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"labelTemplate || defaultLabelTemplate\"\n [ngTemplateOutletContext]=\"{ item: item.value, clear: clearItem, label: item.label }\">\n </ng-template>\n </div>\n\n <div *ngIf=\"showFilter()\" class=\"ng-input\">\n <input #filterInput\n type=\"text\"\n autocomplete=\"off\"\n [readOnly]=\"!searchable\"\n [value]=\"filterValue\"\n (input)=\"onFilter(filterInput.value)\"\n (focus)=\"onInputFocus()\"\n (blur)=\"onInputBlur()\"\n (change)=\"$event.stopPropagation()\"\n role=\"combobox\">\n </div>\n </div>\n\n <div class=\"ng-spinner-loader\" *ngIf=\"isLoading\"></div>\n\n <span *ngIf=\"showClear()\" (click)=\"handleClearClick($event)\" class=\"ng-clear-zone\" title=\"{{clearAllText}}\">\n <span class=\"ng-clear\" aria-hidden=\"true\">×</span>\n </span>\n\n <span (click)=\"handleArrowClick($event)\" class=\"ng-arrow-zone\">\n <span class=\"ng-arrow\"></span>\n </span>\n</div>\n\n<div class=\"ng-overlay-container\" *ngIf=\"isOpen\">\n <div class=\"ng-overlay\" (click)=\"close()\" ></div>\n</div>\n\n<ng-dropdown-panel *ngIf=\"isOpen\"\n class=\"ng-dropdown-panel\"\n [virtualScroll]=\"virtualScroll\"\n [bufferAmount]=\"bufferAmount\"\n [appendTo]=\"appendTo\"\n [position]=\"dropdownPosition\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\"\n [items]=\"itemsList.filteredItems\"\n (update)=\"viewPortItems = $event\"\n (positionChange)=\"currentDropdownPosition = $event\"\n (scrollToEnd)=\"scrollToEnd.emit($event)\"\n [ngClass]=\"{'multiple': multiple}\">\n \n <ng-container>\n <div class=\"ng-option\" role=\"option\" (click)=\"toggleItem(item)\" (mousedown)=\"$event.preventDefault()\" (mouseover)=\"onItemHover(item)\"\n *ngFor=\"let item of viewPortItems\"\n [class.disabled]=\"item.disabled\"\n [class.selected]=\"item.selected\"\n [class.marked]=\"item === itemsList.markedItem\">\n\n <ng-template #defaultOptionTemplate>\n <span class=\"ng-option-label\" [innerHTML]=\"item.label\" [ngOptionHighlight]=\"filterValue\"></span>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"optionTemplate || defaultOptionTemplate\"\n [ngTemplateOutletContext]=\"{ item: item.value, index: item.index, searchTerm: filterValue }\">\n </ng-template>\n </div>\n\n <div class=\"ng-option\" [class.marked]=\"!itemsList.markedItem\" (mouseover)=\"itemsList.unmarkItem()\" role=\"option\" (click)=\"selectTag()\" *ngIf=\"showAddTag()\">\n <span><span class=\"ng-tag-label\">{{addTagText}}</span>\"{{filterValue}}\"</span>\n </div>\n </ng-container>\n\n <div class=\"ng-option disabled\" *ngIf=\"showNoItemsFound()\">\n {{notFoundText}}\n </div>\n\n <div class=\"ng-option disabled\" *ngIf=\"showTypeToSearch()\">\n {{typeToSearchText}}\n </div>\n\n <div class=\"ng-option disabled\" *ngIf=\"isLoading && itemsList.filteredItems.length === 0\">\n {{loadingText}}\n </div>\n</ng-dropdown-panel>\n","styles":[".ng-select{\n position:relative;\n display:block;\n -webkit-box-sizing:border-box;\n box-sizing:border-box; }\n .ng-select div,\n .ng-select input,\n .ng-select span{\n -webkit-box-sizing:border-box;\n box-sizing:border-box; }\n .ng-select [hidden]{\n display:none; }\n .ng-select.searchable .ng-control .ng-value-container .ng-input{\n opacity:1; }\n .ng-select.opened .ng-control{\n z-index:1001; }\n .ng-select.disabled .ng-control .ng-value-container .ng-placeholder,\n .ng-select.disabled .ng-control .ng-value-container .ng-value{\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n cursor:default; }\n .ng-select.disabled .ng-arrow-zone{\n cursor:default; }\n .ng-select.ng-selected .ng-control .ng-value-container .ng-placeholder, .ng-select.filtered .ng-control .ng-value-container .ng-placeholder{\n display:none; }\n .ng-select .ng-control{\n color:#333;\n cursor:default;\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n outline:none;\n overflow:hidden;\n position:relative;\n width:100%; }\n .ng-select .ng-control .ng-value-container{\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n -webkit-box-flex:1;\n -ms-flex:1;\n flex:1; }\n .ng-select .ng-control .ng-value-container .ng-input{\n opacity:0; }\n .ng-select .ng-control .ng-value-container .ng-input > input{\n -webkit-box-sizing:content-box;\n box-sizing:content-box;\n background:none transparent;\n border:0 none;\n -webkit-box-shadow:none;\n box-shadow:none;\n outline:none;\n cursor:default;\n width:100%; }\n .ng-select.ng-single.filtered .ng-control .ng-value-container .ng-value{\n visibility:hidden; }\n .ng-select.ng-single .ng-control .ng-value-container{\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-value{\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-value .ng-value-icon{\n display:none; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-input{\n position:absolute;\n left:0;\n width:100%; }\n .ng-select.ng-multiple.disabled > .ng-control .ng-value-container .ng-value .ng-value-icon{\n display:none; }\n .ng-select.ng-multiple .ng-control .ng-value-container{\n -ms-flex-wrap:wrap;\n flex-wrap:wrap; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder{\n position:absolute; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value{\n white-space:nowrap; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value.disabled .ng-value-icon{\n display:none; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-icon{\n cursor:pointer; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-input{\n -webkit-box-flex:1;\n -ms-flex:1;\n flex:1;\n z-index:2; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder{\n z-index:1; }\n .ng-select .ng-clear-zone{\n cursor:pointer;\n position:relative;\n width:17px;\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none; }\n .ng-select .ng-clear-zone .ng-clear{\n display:inline-block;\n font-size:18px;\n line-height:1; }\n .ng-select .ng-spinner-loader{\n border-radius:50%;\n width:17px;\n height:17px;\n margin-right:5px;\n font-size:10px;\n position:relative;\n text-indent:-9999em;\n border-top:2px solid rgba(66, 66, 66, 0.2);\n border-right:2px solid rgba(66, 66, 66, 0.2);\n border-bottom:2px solid rgba(66, 66, 66, 0.2);\n border-left:2px solid #424242;\n -webkit-transform:translateZ(0);\n transform:translateZ(0);\n -webkit-animation:load8 0.8s infinite linear;\n animation:load8 0.8s infinite linear; }\n .ng-select .ng-spinner-loader:after{\n border-radius:50%;\n width:17px;\n height:17px; }\n\n@-webkit-keyframes load8{\n 0%{\n -webkit-transform:rotate(0deg);\n transform:rotate(0deg); }\n 100%{\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg); } }\n\n@keyframes load8{\n 0%{\n -webkit-transform:rotate(0deg);\n transform:rotate(0deg); }\n 100%{\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg); } }\n .ng-select .ng-arrow-zone{\n cursor:pointer;\n position:relative;\n text-align:center;\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none; }\n .ng-select .ng-arrow-zone .ng-arrow{\n display:inline-block;\n height:0;\n width:0;\n position:relative; }\n .ng-select .ng-overlay-container{\n pointer-events:none;\n top:0;\n left:0;\n height:100%;\n width:100%;\n position:fixed;\n z-index:1000; }\n .ng-select .ng-overlay-container .ng-overlay{\n top:0;\n bottom:0;\n left:0;\n right:0;\n opacity:0;\n position:absolute;\n pointer-events:auto;\n z-index:1000; }\n"],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR"},"useExisting":{"__symbolic":"reference","name":"NgSelectComponent"},"multi":true}],"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"},"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"host":{"role":"dropdown","class":"ng-select","[class.top]":"currentDropdownPosition === \"top\"","[class.bottom]":"currentDropdownPosition === \"bottom\"","[class.ng-single]":"!multiple","[class.ng-selected]":"hasValue"}}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"bindLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"bindValue":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"clearable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"markFirst":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"placeholder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"notFoundText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"typeToSearchText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"addTagText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"loadingText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"clearAllText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dropdownPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"appendTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"loading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"closeOnSelect":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxSelectedItems":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"bufferAmount":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"virtualScroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"typeahead":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.typeahead"]}]}],"multiple":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.ng-multiple"]}]}],"addTag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.taggable"]}]}],"searchable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.searchable"]}]}],"blurEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["blur"]}]}],"focusEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["focus"]}]}],"changeEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["change"]}]}],"openEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["open"]}]}],"closeEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["close"]}]}],"searchEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["search"]}]}],"clearEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["clear"]}]}],"addEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["add"]}]}],"removeEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["remove"]}]}],"scrollToEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["scrollToEnd"]}]}],"optionTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵa"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef"}}]}]}],"labelTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵb"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef"}}]}]}],"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵc"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef"}}]}]}],"footerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵd"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef"}}]}]}],"dropdownPanel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":[{"__symbolic":"reference","name":"ɵe"}]}]}],"ngOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"ɵh"},{"descendants":true}]}]}],"filterInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["filterInput"]}]}],"isOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.opened"]}]}],"isFocused":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.focused"]}]}],"isDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.disabled"]}]}],"filtered":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.filtered"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"NG_SELECT_DEFAULT_CONFIG"}]}],null,null],"parameters":[{"__symbolic":"reference","name":"NgSelectConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"handleKeyDown":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["keydown",["$event"]]}]}],"handleArrowClick":[{"__symbolic":"method"}],"handleClearClick":[{"__symbolic":"method"}],"clearModel":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"toggleItem":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"unselect":[{"__symbolic":"method"}],"selectTag":[{"__symbolic":"method"}],"showClear":[{"__symbolic":"method"}],"showAddTag":[{"__symbolic":"method"}],"showFilter":[{"__symbolic":"method"}],"showNoItemsFound":[{"__symbolic":"method"}],"showTypeToSearch":[{"__symbolic":"method"}],"onFilter":[{"__symbolic":"method"}],"onInputFocus":[{"__symbolic":"method"}],"onInputBlur":[{"__symbolic":"method"}],"onItemHover":[{"__symbolic":"method"}],"detectChanges":[{"__symbolic":"method"}],"focusSearchInput":[{"__symbolic":"method"}],"_setItems":[{"__symbolic":"method"}],"_setItemsFromNgOptions":[{"__symbolic":"method"}],"_validateWriteValue":[{"__symbolic":"method"}],"_selectWriteValue":[{"__symbolic":"method"}],"_updateNgModel":[{"__symbolic":"method"}],"_clearSearch":[{"__symbolic":"method"}],"_scrollToMarked":[{"__symbolic":"method"}],"_scrollToTag":[{"__symbolic":"method"}],"_handleTab":[{"__symbolic":"method"}],"_handleEnter":[{"__symbolic":"method"}],"_handleSpace":[{"__symbolic":"method"}],"_handleArrowDown":[{"__symbolic":"method"}],"_handleArrowUp":[{"__symbolic":"method"}],"nextItemIsTag":[{"__symbolic":"method"}],"_handleBackspace":[{"__symbolic":"method"}],"_mergeGlobalConfig":[{"__symbolic":"method"}],"_isDefined":[{"__symbolic":"method"}]}},"NG_SELECT_DEFAULT_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ng-select-default-options"]},"NgSelectModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"exports":[{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"}],"providers":[{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵf"},{"provide":{"__symbolic":"reference","name":"NG_SELECT_DEFAULT_CONFIG"},"useValue":{"notFoundText":"No items found","typeToSearchText":"Type to search","addTagText":"Add item","loadingText":"Loading...","clearAllText":"Clear all","disableVirtualScroll":false}}]}]}],"members":{}},"NgOption":{"__symbolic":"interface"},"NgSelectConfig":{"__symbolic":"interface"},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng-option-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng-label-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng-header-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng-footer-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"},"selector":"ng-dropdown-panel","template":"\n <div *ngIf=\"headerTemplate\" class=\"ng-dropdown-header\" ngProjectAs=\"header\" header>\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"></ng-container>\n </div>\n <div #scroll class=\"ng-dropdown-panel-items scroll-host\">\n <div #padding [class.total-padding]=\"virtualScroll\"></div>\n <div #content [class.scrollable-content]=\"virtualScroll && items.length > 0\">\n <ng-content></ng-content>\n </div>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"ng-dropdown-footer\" ngProjectAs=\"footer\" footer>\n <ng-container [ngTemplateOutlet]=\"footerTemplate\"></ng-container>\n </div>\n ","styles":[".ng-dropdown-panel{\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n position:absolute;\n width:100%;\n z-index:1000;\n -webkit-overflow-scrolling:touch; }\n .ng-dropdown-panel .ng-dropdown-panel-items{\n display:block;\n height:auto;\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n max-height:240px;\n overflow-y:auto; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n cursor:pointer;\n display:block; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{\n font-weight:bold;\n text-decoration:underline; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{\n cursor:default; }\n .ng-dropdown-panel .scroll-host{\n overflow:hidden;\n overflow-y:auto;\n position:relative;\n display:block;\n -webkit-overflow-scrolling:touch; }\n .ng-dropdown-panel .scrollable-content{\n top:0;\n left:0;\n width:100%;\n height:100%;\n position:absolute; }\n .ng-dropdown-panel .total-padding{\n width:1px;\n opacity:0; }\n"],"host":{"[class.top]":"currentPosition === \"top\"","[class.bottom]":"currentPosition === \"bottom\""}}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"appendTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"bufferAmount":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"virtualScroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"footerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"scrollToEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"positionChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"contentElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["content",{"read":{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}}]}]}],"scrollElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["scroll",{"read":{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}}]}]}],"paddingElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["padding",{"read":{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"NgSelectComponent"}]}],null,null,null,null,null],"parameters":[{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵg"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"refresh":[{"__symbolic":"method"}],"scrollInto":[{"__symbolic":"method"}],"scrollIntoTag":[{"__symbolic":"method"}],"_handleScroll":[{"__symbolic":"method"}],"_handleItemsChange":[{"__symbolic":"method"}],"_updateItems":[{"__symbolic":"method"}],"_fireScrollToEnd":[{"__symbolic":"method"}],"_calculateDimensions":[{"__symbolic":"method"}],"_handleDocumentResize":[{"__symbolic":"method"}],"_scrollToMarked":[{"__symbolic":"method"}],"_handleAppendTo":[{"__symbolic":"method"}],"_updateDropdownPosition":[{"__symbolic":"method"}],"_autoPositionDropdown":[{"__symbolic":"method"}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"calculateItems":[{"__symbolic":"method"}],"calculateDimensions":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"requestAnimationFrame":[{"__symbolic":"method"}]}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ng-option","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"template":"<ng-content></ng-content>"}]}],"members":{"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnChanges":[{"__symbolic":"method"}],"_isDisabled":[{"__symbolic":"method"}]}},"ɵi":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ngOptionHighlight]"}]}],"members":{"term":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["ngOptionHighlight"]}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["innerHTML"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"}]}],"ngOnChanges":[{"__symbolic":"method"}],"_highlightLabelWithSearchTerm":[{"__symbolic":"method"}],"_setInnerHtml":[{"__symbolic":"method"}]}}},"origins":{"NgSelectComponent":"./ng-select/ng-select.component","NG_SELECT_DEFAULT_CONFIG":"./ng-select/ng-select.component","NgSelectModule":"./ng-select/ng-select.module","NgOption":"./ng-select/ng-select.types","NgSelectConfig":"./ng-select/ng-select.types","ɵa":"./ng-select/ng-templates.directive","ɵb":"./ng-select/ng-templates.directive","ɵc":"./ng-select/ng-templates.directive","ɵd":"./ng-select/ng-templates.directive","ɵe":"./ng-select/ng-dropdown-panel.component","ɵf":"./ng-select/virtual-scroll.service","ɵg":"./ng-select/window.service","ɵh":"./ng-select/ng-option.component","ɵi":"./ng-select/ng-option-highlight.directive"},"importAs":"@ng-select/ng-select"} | ||
{"__symbolic":"module","version":4,"metadata":{"NgSelectComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ng-select","template":"<div (click)=\"searchable ? open() : toggle()\" [class.ng-has-value]=\"hasValue\" class=\"ng-control\">\n <div class=\"ng-value-container\">\n <div class=\"ng-placeholder\">{{placeholder}}</div>\n <div [class.disabled]=\"item.disabled\" class=\"ng-value\" *ngFor=\"let item of selectedItems\">\n <ng-template #defaultLabelTemplate>\n <span class=\"ng-value-icon left\" (click)=\"unselect(item); $event.stopPropagation()\" aria-hidden=\"true\">×</span>\n <span class=\"ng-value-label\" [innerHTML]=\"item.label\"></span>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"labelTemplate || defaultLabelTemplate\"\n [ngTemplateOutletContext]=\"{ item: item.value, clear: clearItem, label: item.label }\">\n </ng-template>\n </div>\n\n <div *ngIf=\"showFilter()\" class=\"ng-input\">\n <input #filterInput\n type=\"text\"\n autocomplete=\"off\"\n [readOnly]=\"!searchable\"\n [value]=\"filterValue\"\n (input)=\"filter(filterInput.value)\"\n (focus)=\"onInputFocus()\"\n (blur)=\"onInputBlur()\"\n (change)=\"$event.stopPropagation()\"\n role=\"combobox\">\n </div>\n </div>\n\n <div class=\"ng-spinner-loader\" *ngIf=\"isLoading\"></div>\n\n <span *ngIf=\"showClear()\" (click)=\"handleClearClick($event)\" class=\"ng-clear-zone\" title=\"{{clearAllText}}\">\n <span class=\"ng-clear\" aria-hidden=\"true\">×</span>\n </span>\n\n <span (click)=\"handleArrowClick($event)\" class=\"ng-arrow-zone\">\n <span class=\"ng-arrow\"></span>\n </span>\n</div>\n\n<div class=\"ng-overlay-container\" *ngIf=\"isOpen\">\n <div class=\"ng-overlay\" (click)=\"close()\" ></div>\n</div>\n\n<ng-dropdown-panel *ngIf=\"isOpen\"\n class=\"ng-dropdown-panel\"\n [virtualScroll]=\"virtualScroll\"\n [bufferAmount]=\"bufferAmount\"\n [appendTo]=\"appendTo\"\n [position]=\"dropdownPosition\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\"\n [items]=\"itemsList.filteredItems\"\n (update)=\"viewPortItems = $event\"\n (positionChange)=\"currentDropdownPosition = $event\"\n (scrollToEnd)=\"scrollToEnd.emit($event)\"\n [ngClass]=\"{'multiple': multiple}\">\n \n <ng-container>\n <div class=\"ng-option\" role=\"option\" (click)=\"toggleItem(item)\" (mousedown)=\"$event.preventDefault()\" (mouseover)=\"onItemHover(item)\"\n *ngFor=\"let item of viewPortItems\"\n [class.disabled]=\"item.disabled\"\n [class.selected]=\"item.selected\"\n [class.ng-optgroup]=\"item.hasChildren\"\n [class.ng-option]=\"!item.hasChildren\"\n [class.ng-option-child]=\"!!item.parent\"\n [class.marked]=\"item === itemsList.markedItem\">\n\n <ng-template #defaultOptionTemplate>\n <span class=\"ng-option-label\" [innerHTML]=\"item.label\" [ngOptionHighlight]=\"filterValue\"></span>\n </ng-template>\n\n <ng-template #defaultOptGroupTemplate>\n <span class=\"ng-option-label\" [innerHTML]=\"item.label\" [ngOptionHighlight]=\"filterValue\"></span>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"item.hasChildren ? (optgroupTemplate || defaultOptGroupTemplate) : (optionTemplate || defaultOptionTemplate)\"\n [ngTemplateOutletContext]=\"{ item: item.value, index: item.index, searchTerm: filterValue }\">\n </ng-template>\n </div>\n\n <div class=\"ng-option\" [class.marked]=\"!itemsList.markedItem\" (mouseover)=\"itemsList.unmarkItem()\" role=\"option\" (click)=\"selectTag()\" *ngIf=\"showAddTag()\">\n <span><span class=\"ng-tag-label\">{{addTagText}}</span>\"{{filterValue}}\"</span>\n </div>\n </ng-container>\n\n <div class=\"ng-option disabled\" *ngIf=\"showNoItemsFound()\">\n {{notFoundText}}\n </div>\n\n <div class=\"ng-option disabled\" *ngIf=\"showTypeToSearch()\">\n {{typeToSearchText}}\n </div>\n\n <div class=\"ng-option disabled\" *ngIf=\"isLoading && itemsList.filteredItems.length === 0\">\n {{loadingText}}\n </div>\n</ng-dropdown-panel>\n","styles":[".ng-select{\n position:relative;\n display:block;\n -webkit-box-sizing:border-box;\n box-sizing:border-box; }\n .ng-select div,\n .ng-select input,\n .ng-select span{\n -webkit-box-sizing:border-box;\n box-sizing:border-box; }\n .ng-select [hidden]{\n display:none; }\n .ng-select.searchable .ng-control .ng-value-container .ng-input{\n opacity:1; }\n .ng-select.opened .ng-control{\n z-index:1001; }\n .ng-select.disabled .ng-control .ng-value-container .ng-placeholder,\n .ng-select.disabled .ng-control .ng-value-container .ng-value{\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n cursor:default; }\n .ng-select.disabled .ng-arrow-zone{\n cursor:default; }\n .ng-select .ng-has-value .ng-placeholder, .ng-select.filtered .ng-placeholder{\n display:none; }\n .ng-select .ng-control{\n color:#333;\n cursor:default;\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n outline:none;\n overflow:hidden;\n position:relative;\n width:100%; }\n .ng-select .ng-control .ng-value-container{\n display:-webkit-box;\n display:-ms-flexbox;\n display:flex;\n -webkit-box-flex:1;\n -ms-flex:1;\n flex:1; }\n .ng-select .ng-control .ng-value-container .ng-input{\n opacity:0; }\n .ng-select .ng-control .ng-value-container .ng-input > input{\n -webkit-box-sizing:content-box;\n box-sizing:content-box;\n background:none transparent;\n border:0 none;\n -webkit-box-shadow:none;\n box-shadow:none;\n outline:none;\n cursor:default;\n width:100%; }\n .ng-select.ng-single.filtered .ng-control .ng-value-container .ng-value{\n visibility:hidden; }\n .ng-select.ng-single .ng-control .ng-value-container{\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-value{\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-value .ng-value-icon{\n display:none; }\n .ng-select.ng-single .ng-control .ng-value-container .ng-input{\n position:absolute;\n left:0;\n width:100%; }\n .ng-select.ng-multiple.disabled > .ng-control .ng-value-container .ng-value .ng-value-icon{\n display:none; }\n .ng-select.ng-multiple .ng-control .ng-value-container{\n -ms-flex-wrap:wrap;\n flex-wrap:wrap; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder{\n position:absolute; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value{\n white-space:nowrap; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value.disabled .ng-value-icon{\n display:none; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-icon{\n cursor:pointer; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-input{\n -webkit-box-flex:1;\n -ms-flex:1;\n flex:1;\n z-index:2; }\n .ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder{\n z-index:1; }\n .ng-select .ng-clear-zone{\n cursor:pointer;\n position:relative;\n width:17px;\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none; }\n .ng-select .ng-clear-zone .ng-clear{\n display:inline-block;\n font-size:18px;\n line-height:1; }\n .ng-select .ng-spinner-loader{\n border-radius:50%;\n width:17px;\n height:17px;\n margin-right:5px;\n font-size:10px;\n position:relative;\n text-indent:-9999em;\n border-top:2px solid rgba(66, 66, 66, 0.2);\n border-right:2px solid rgba(66, 66, 66, 0.2);\n border-bottom:2px solid rgba(66, 66, 66, 0.2);\n border-left:2px solid #424242;\n -webkit-transform:translateZ(0);\n transform:translateZ(0);\n -webkit-animation:load8 0.8s infinite linear;\n animation:load8 0.8s infinite linear; }\n .ng-select .ng-spinner-loader:after{\n border-radius:50%;\n width:17px;\n height:17px; }\n\n@-webkit-keyframes load8{\n 0%{\n -webkit-transform:rotate(0deg);\n transform:rotate(0deg); }\n 100%{\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg); } }\n\n@keyframes load8{\n 0%{\n -webkit-transform:rotate(0deg);\n transform:rotate(0deg); }\n 100%{\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg); } }\n .ng-select .ng-arrow-zone{\n cursor:pointer;\n position:relative;\n text-align:center;\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none; }\n .ng-select .ng-arrow-zone .ng-arrow{\n display:inline-block;\n height:0;\n width:0;\n position:relative; }\n .ng-select .ng-overlay-container{\n pointer-events:none;\n top:0;\n left:0;\n height:100%;\n width:100%;\n position:fixed;\n z-index:1000; }\n .ng-select .ng-overlay-container .ng-overlay{\n top:0;\n bottom:0;\n left:0;\n right:0;\n opacity:0;\n position:absolute;\n pointer-events:auto;\n z-index:1000; }\n"],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR"},"useExisting":{"__symbolic":"reference","name":"NgSelectComponent"},"multi":true}],"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"},"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"host":{"role":"dropdown","class":"ng-select","[class.top]":"currentDropdownPosition === \"top\"","[class.bottom]":"currentDropdownPosition === \"bottom\"","[class.ng-single]":"!multiple"}}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"bindLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"bindValue":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"clearable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"markFirst":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"placeholder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"notFoundText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"typeToSearchText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"addTagText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"loadingText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"clearAllText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dropdownPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"appendTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"loading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"closeOnSelect":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"maxSelectedItems":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"groupBy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"bufferAmount":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"virtualScroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"typeahead":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.typeahead"]}]}],"multiple":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.ng-multiple"]}]}],"addTag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.taggable"]}]}],"searchable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.searchable"]}]}],"blurEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["blur"]}]}],"focusEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["focus"]}]}],"changeEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["change"]}]}],"openEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["open"]}]}],"closeEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["close"]}]}],"searchEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["search"]}]}],"clearEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["clear"]}]}],"addEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["add"]}]}],"removeEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["remove"]}]}],"scrollToEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"},"arguments":["scrollToEnd"]}]}],"optionTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵa"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef"}}]}]}],"optgroupTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵb"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef"}}]}]}],"labelTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵc"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef"}}]}]}],"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵd"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef"}}]}]}],"footerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵe"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef"}}]}]}],"dropdownPanel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":[{"__symbolic":"reference","name":"ɵf"}]}]}],"ngOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"ɵi"},{"descendants":true}]}]}],"filterInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["filterInput"]}]}],"isOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.opened"]}]}],"isFocused":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.focused"]}]}],"isDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.disabled"]}]}],"filtered":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.filtered"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"NG_SELECT_DEFAULT_CONFIG"}]}],null,null],"parameters":[{"__symbolic":"reference","name":"NgSelectConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"handleKeyDown":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["keydown",["$event"]]}]}],"handleArrowClick":[{"__symbolic":"method"}],"handleClearClick":[{"__symbolic":"method"}],"clearModel":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"toggleItem":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"unselect":[{"__symbolic":"method"}],"selectTag":[{"__symbolic":"method"}],"showClear":[{"__symbolic":"method"}],"showAddTag":[{"__symbolic":"method"}],"showFilter":[{"__symbolic":"method"}],"showNoItemsFound":[{"__symbolic":"method"}],"showTypeToSearch":[{"__symbolic":"method"}],"filter":[{"__symbolic":"method"}],"onInputFocus":[{"__symbolic":"method"}],"onInputBlur":[{"__symbolic":"method"}],"onItemHover":[{"__symbolic":"method"}],"detectChanges":[{"__symbolic":"method"}],"focusSearchInput":[{"__symbolic":"method"}],"_setItems":[{"__symbolic":"method"}],"_setItemsFromNgOptions":[{"__symbolic":"method"}],"_validateWriteValue":[{"__symbolic":"method"}],"_selectWriteValue":[{"__symbolic":"method"}],"_updateNgModel":[{"__symbolic":"method"}],"_clearSearch":[{"__symbolic":"method"}],"_scrollToMarked":[{"__symbolic":"method"}],"_scrollToTag":[{"__symbolic":"method"}],"_handleTab":[{"__symbolic":"method"}],"_handleEnter":[{"__symbolic":"method"}],"_handleSpace":[{"__symbolic":"method"}],"_handleArrowDown":[{"__symbolic":"method"}],"_handleArrowUp":[{"__symbolic":"method"}],"nextItemIsTag":[{"__symbolic":"method"}],"_handleBackspace":[{"__symbolic":"method"}],"_mergeGlobalConfig":[{"__symbolic":"method"}],"_isDefined":[{"__symbolic":"method"}]}},"NG_SELECT_DEFAULT_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["ng-select-default-options"]},"NgSelectModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"exports":[{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","name":"ɵi"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"}],"providers":[{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵg"},{"provide":{"__symbolic":"reference","name":"NG_SELECT_DEFAULT_CONFIG"},"useValue":{"notFoundText":"No items found","typeToSearchText":"Type to search","addTagText":"Add item","loadingText":"Loading...","clearAllText":"Clear all","disableVirtualScroll":false}}]}]}],"members":{}},"NgOption":{"__symbolic":"interface"},"NgSelectConfig":{"__symbolic":"interface"},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng-option-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng-optgroup-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng-label-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng-header-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng-footer-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"},"selector":"ng-dropdown-panel","template":"\n <div *ngIf=\"headerTemplate\" class=\"ng-dropdown-header\" ngProjectAs=\"header\" header>\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"></ng-container>\n </div>\n <div #scroll class=\"ng-dropdown-panel-items scroll-host\">\n <div #padding [class.total-padding]=\"virtualScroll\"></div>\n <div #content [class.scrollable-content]=\"virtualScroll && items.length > 0\">\n <ng-content></ng-content>\n </div>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"ng-dropdown-footer\" ngProjectAs=\"footer\" footer>\n <ng-container [ngTemplateOutlet]=\"footerTemplate\"></ng-container>\n </div>\n ","styles":[".ng-dropdown-panel{\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n position:absolute;\n width:100%;\n z-index:1000;\n -webkit-overflow-scrolling:touch; }\n .ng-dropdown-panel .ng-dropdown-panel-items{\n display:block;\n height:auto;\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n max-height:240px;\n overflow-y:auto; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{\n -webkit-box-sizing:border-box;\n box-sizing:border-box;\n cursor:pointer;\n display:block;\n white-space:nowrap;\n overflow:hidden;\n text-overflow:ellipsis; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{\n font-weight:bold;\n text-decoration:underline; }\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{\n cursor:default; }\n .ng-dropdown-panel .scroll-host{\n overflow:hidden;\n overflow-y:auto;\n position:relative;\n display:block;\n -webkit-overflow-scrolling:touch; }\n .ng-dropdown-panel .scrollable-content{\n top:0;\n left:0;\n width:100%;\n height:100%;\n position:absolute; }\n .ng-dropdown-panel .total-padding{\n width:1px;\n opacity:0; }\n"],"host":{"[class.top]":"currentPosition === \"top\"","[class.bottom]":"currentPosition === \"bottom\""}}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"appendTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"bufferAmount":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"virtualScroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"footerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"scrollToEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"positionChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"contentElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["content",{"read":{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}}]}]}],"scrollElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["scroll",{"read":{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}}]}]}],"paddingElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["padding",{"read":{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"NgSelectComponent"}]}],null,null,null,null,null],"parameters":[{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵh"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"refresh":[{"__symbolic":"method"}],"scrollInto":[{"__symbolic":"method"}],"scrollIntoTag":[{"__symbolic":"method"}],"_handleScroll":[{"__symbolic":"method"}],"_handleItemsChange":[{"__symbolic":"method"}],"_updateItems":[{"__symbolic":"method"}],"_fireScrollToEnd":[{"__symbolic":"method"}],"_calculateDimensions":[{"__symbolic":"method"}],"_handleDocumentResize":[{"__symbolic":"method"}],"_scrollToMarked":[{"__symbolic":"method"}],"_handleAppendTo":[{"__symbolic":"method"}],"_updateDropdownPosition":[{"__symbolic":"method"}],"_autoPositionDropdown":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"calculateItems":[{"__symbolic":"method"}],"calculateDimensions":[{"__symbolic":"method"}]}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"requestAnimationFrame":[{"__symbolic":"method"}]}},"ɵi":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ng-option","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy"},"member":"OnPush"},"template":"<ng-content></ng-content>"}]}],"members":{"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnChanges":[{"__symbolic":"method"}],"_isDisabled":[{"__symbolic":"method"}]}},"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ngOptionHighlight]"}]}],"members":{"term":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["ngOptionHighlight"]}]}],"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["innerHTML"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"}]}],"ngOnChanges":[{"__symbolic":"method"}],"_highlightLabelWithSearchTerm":[{"__symbolic":"method"}],"_setInnerHtml":[{"__symbolic":"method"}]}}},"origins":{"NgSelectComponent":"./ng-select/ng-select.component","NG_SELECT_DEFAULT_CONFIG":"./ng-select/ng-select.component","NgSelectModule":"./ng-select/ng-select.module","NgOption":"./ng-select/ng-select.types","NgSelectConfig":"./ng-select/ng-select.types","ɵa":"./ng-select/ng-templates.directive","ɵb":"./ng-select/ng-templates.directive","ɵc":"./ng-select/ng-templates.directive","ɵd":"./ng-select/ng-templates.directive","ɵe":"./ng-select/ng-templates.directive","ɵf":"./ng-select/ng-dropdown-panel.component","ɵg":"./ng-select/virtual-scroll.service","ɵh":"./ng-select/window.service","ɵi":"./ng-select/ng-option.component","ɵj":"./ng-select/ng-option-highlight.directive"},"importAs":"@ng-select/ng-select"} |
@@ -7,2 +7,3 @@ import { NgOption } from './ng-select.types'; | ||
private _filteredItems; | ||
private _groups; | ||
private _markedIndex; | ||
@@ -39,4 +40,5 @@ private _selected; | ||
private _stepToItem(steps); | ||
private _getDefaultFilterFunc(term); | ||
private readonly _lastSelectedItem; | ||
private _groupBy(items, prop); | ||
private _flatten(groups); | ||
} |
@@ -11,3 +11,3 @@ import { Subject } from 'rxjs/Subject'; | ||
export declare class NgSelectComponent implements OnDestroy, OnChanges, AfterViewInit, ControlValueAccessor { | ||
private changeDetectorRef; | ||
private _cd; | ||
elementRef: ElementRef; | ||
@@ -30,2 +30,3 @@ items: any[]; | ||
maxSelectedItems: number; | ||
groupBy: string; | ||
bufferAmount: number; | ||
@@ -51,2 +52,3 @@ virtualScroll: boolean; | ||
optionTemplate: TemplateRef<any>; | ||
optgroupTemplate: TemplateRef<any>; | ||
labelTemplate: TemplateRef<any>; | ||
@@ -74,3 +76,3 @@ headerTemplate: TemplateRef<any>; | ||
clearItem: (item: any) => void; | ||
constructor(config: NgSelectConfig, changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef); | ||
constructor(config: NgSelectConfig, _cd: ChangeDetectorRef, elementRef: ElementRef); | ||
readonly selectedItems: NgOption[]; | ||
@@ -102,3 +104,3 @@ readonly isLoading: boolean; | ||
showTypeToSearch(): boolean; | ||
onFilter(term: string): void; | ||
filter(term: string): void; | ||
onInputFocus(): void; | ||
@@ -105,0 +107,0 @@ onInputBlur(): void; |
@@ -9,2 +9,4 @@ export interface NgOption { | ||
value?: string | Object; | ||
parent?: NgOption; | ||
hasChildren?: boolean; | ||
} | ||
@@ -11,0 +13,0 @@ export declare enum KeyCode { |
@@ -6,2 +6,6 @@ import { TemplateRef } from '@angular/core'; | ||
} | ||
export declare class NgOptgroupTemplateDirective { | ||
template: TemplateRef<any>; | ||
constructor(template: TemplateRef<any>); | ||
} | ||
export declare class NgLabelTemplateDirective { | ||
@@ -8,0 +12,0 @@ template: TemplateRef<any>; |
{ | ||
"$schema": "../node_modules/ng-packagr/package.schema.json", | ||
"name": "@ng-select/ng-select", | ||
"version": "0.24.1", | ||
"version": "0.25.0", | ||
"description": "Angular ng-select - All in One UI Select, Multiselect and Autocomplete", | ||
@@ -6,0 +6,0 @@ "author": "@ng-select/ng-select", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
932778
8138