@ng-select/ng-select
Advanced tools
Comparing version 0.27.1 to 0.28.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){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 w[e]||e})}function d(e){return null!==e&&e!==undefined}function u(e){return d(e)&&"object"==typeof e}function h(e){return e instanceof Promise}function g(e){return e instanceof Function}var m=function(){return function(e){this.template=e}}();m.decorators=[{type:t.Directive,args:[{selector:"[ng-option-tmp]"}]}],m.ctorParameters=function(){return[{type:t.TemplateRef}]};var f=function(){return function(e){this.template=e}}();f.decorators=[{type:t.Directive,args:[{selector:"[ng-optgroup-tmp]"}]}],f.ctorParameters=function(){return[{type:t.TemplateRef}]};var v=function(){return function(e){this.template=e}}();v.decorators=[{type:t.Directive,args:[{selector:"[ng-label-tmp]"}]}],v.ctorParameters=function(){return[{type:t.TemplateRef}]};var y=function(){return function(e){this.template=e}}();y.decorators=[{type:t.Directive,args:[{selector:"[ng-header-tmp]"}]}],y.ctorParameters=function(){return[{type:t.TemplateRef}]};var b=function(){return function(e){this.template=e}}();b.decorators=[{type:t.Directive,args:[{selector:"[ng-footer-tmp]"}]}],b.ctorParameters=function(){return[{type:t.TemplateRef}]};var _={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};_[_.Tab]="Tab",_[_.Enter]="Enter",_[_.Esc]="Esc",_[_.Space]="Space",_[_.ArrowUp]="ArrowUp",_[_.ArrowDown]="ArrowDown",_[_.Backspace]="Backspace";var w={"Ⓐ":"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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},I=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){var t=this;this._items=e.map(function(e,n){return t.mapItem(e,n)}),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=this.mapItem(e,this._items.length);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(!u(e))return e;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){var n=this.resolveNested(e,this._ngSelect.bindLabel);return{index:t,label:d(n)?n.toString():"",value:e,disabled:e.disabled}},e.prototype.updateSelectedItem=function(e,t){this._selected[t]=e},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:!t._ngSelect.selectableGroup};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}(),T=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}();T.decorators=[{type:t.Component,args:[{selector:"ng-option",changeDetection:t.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],T.ctorParameters=function(){return[{type:t.ElementRef}]},T.propDecorators={value:[{type:t.Input}],disabled:[{type:t.Input}]};var x=function(){function e(){}return e.prototype.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)},e}();x.decorators=[{type:t.Injectable}],x.ctorParameters=function(){return[]};var E=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}();E.decorators=[{type:t.Injectable}],E.ctorParameters=function(){return[]};var O=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}();O.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"'}}]}],O.ctorParameters=function(){return[{type:k,decorators:[{type:t.Inject,args:[t.forwardRef(function(){return k})]}]},{type:t.Renderer2},{type:t.ElementRef},{type:t.NgZone},{type:E},{type:x}]},O.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 L=new t.InjectionToken("ng-select-default-options"),k=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.selectableGroup=!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 I(this),this.viewPortItems=[],this.filterValue=null,this.currentDropdownPosition="bottom",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(_[e.which])switch(e.which){case _.ArrowDown:this._handleArrowDown(e);break;case _.ArrowUp:this._handleArrowUp(e);break;case _.Space:this._handleSpace(e);break;case _.Enter:this._handleEnter(e);break;case _.Tab:this._handleTab(e);break;case _.Esc:this.close();break;case _.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){e!==undefined&&(this._validateWriteValue(e),this._handleWriteValue(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;h(e=g(this.addTag)?this.addTag(this.filterValue):this._primitive?this.filterValue:(n={},n[this.bindLabel]=this.filterValue,n))?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,this._primitive=!u(t),this.itemsList.setItems(e),e.length>0&&this.hasValue&&this._updateSelectedItems(),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),e.hasValue&&e._updateSelectedItems(),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(d(e)){var n=function(e){if(u(e)&&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._handleWriteValue=function(e){var t=this,n=e&&Array.isArray(e)&&0===e.length;if(null===e||n)this.itemsList.clearSelected();else{var i=function(e){var n=t.itemsList.findItem(e);if(n)t.itemsList.select(n);else{var i=u(e),o=!i&&!t.bindValue;i||o?t.itemsList.select(t.itemsList.mapItem(e,null)):t.bindValue&&((s={})[t.bindLabel]=null,s[t.bindValue]=e,n=s,t.itemsList.select(t.itemsList.mapItem(n,null)))}var s};this.multiple?e.forEach(function(e){i(e)}):i(e)}},e.prototype._updateSelectedItems=function(){var e=this;this.selectedItems.forEach(function(t,n){var i=e.bindValue?t.value[e.bindValue]:t.value,o=e.itemsList.findItem(i);o&&t!==o&&(o.selected=!0,e.itemsList.updateSelectedItem(o,n))})},e.prototype._updateNgModel=function(){var e=[];try{for(var t=l(this.selectedItems),n=t.next();!n.done;n=t.next()){var i=n.value;if(this.bindValue){var o=null;o=i.hasChildren?i.value[this.groupBy]:this.itemsList.resolveNested(i.value,this.bindValue),e.push(o)}else e.push(i.value)}}catch(a){s={error:a}}finally{try{n&&!n.done&&(r=t["return"])&&r.call(t)}finally{if(s)throw s.error}}this.multiple?(this._onChange(e),this.changeEvent.emit(this.selectedItems.map(function(e){return e.value}))):(this._onChange(d(e[0])?e[0]:null),this.changeEvent.emit(this.selectedItems[0]&&this.selectedItems[0].value)),this._cd.markForCheck();var s,r},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.stopPropagation()},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}),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}();k.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 k}),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"}}]}],k.ctorParameters=function(){return[{type:undefined,decorators:[{type:t.Inject,args:[L]}]},{type:t.ChangeDetectorRef},{type:t.ElementRef}]},k.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}],selectableGroup:[{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:[m,{read:t.TemplateRef}]}],optgroupTemplate:[{type:t.ContentChild,args:[f,{read:t.TemplateRef}]}],labelTemplate:[{type:t.ContentChild,args:[v,{read:t.TemplateRef}]}],headerTemplate:[{type:t.ContentChild,args:[y,{read:t.TemplateRef}]}],footerTemplate:[{type:t.ContentChild,args:[b,{read:t.TemplateRef}]}],dropdownPanel:[{type:t.ViewChild,args:[t.forwardRef(function(){return O})]}],ngOptions:[{type:t.ContentChildren,args:[T,{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 S=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}();S.decorators=[{type:t.Directive,args:[{selector:"[ngOptionHighlight]"}]}],S.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},S.propDecorators={term:[{type:t.Input,args:["ngOptionHighlight"]}],label:[{type:t.Input,args:["innerHTML"]}]};var C=function(){return function(){}}();C.decorators=[{type:t.NgModule,args:[{declarations:[O,T,k,S,f,m,v,y,b],imports:[r.CommonModule],exports:[k,T,S,f,m,v,y,b],providers:[x,E,{provide:L,useValue:{notFoundText:"No items found",typeToSearchText:"Type to search",addTagText:"Add item",loadingText:"Loading...",clearAllText:"Clear all",disableVirtualScroll:!1}}]}]}],C.ctorParameters=function(){return[]},e.NgSelectComponent=k,e.NG_SELECT_DEFAULT_CONFIG=L,e.NgSelectModule=C,e.ɵf=O,e.ɵj=S,e.ɵi=T,e.ɵe=b,e.ɵd=y,e.ɵc=v,e.ɵb=f,e.ɵa=m,e.ɵg=E,e.ɵh=x,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,r,s){"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,r=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(l){o={error:l}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(o)throw o.error}}return s}function p(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e}function c(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return x[e]||e})}function u(e){return null!==e&&e!==undefined}function d(e){return u(e)&&"object"==typeof e}function h(e){return e instanceof Promise}function g(e){return e instanceof Function}var m=function(){return function(e){this.template=e}}();m.decorators=[{type:t.Directive,args:[{selector:"[ng-option-tmp]"}]}],m.ctorParameters=function(){return[{type:t.TemplateRef}]};var f=function(){return function(e){this.template=e}}();f.decorators=[{type:t.Directive,args:[{selector:"[ng-optgroup-tmp]"}]}],f.ctorParameters=function(){return[{type:t.TemplateRef}]};var v=function(){return function(e){this.template=e}}();v.decorators=[{type:t.Directive,args:[{selector:"[ng-label-tmp]"}]}],v.ctorParameters=function(){return[{type:t.TemplateRef}]};var y=function(){return function(e){this.template=e}}();y.decorators=[{type:t.Directive,args:[{selector:"[ng-header-tmp]"}]}],y.ctorParameters=function(){return[{type:t.TemplateRef}]};var b=function(){return function(e){this.template=e}}();b.decorators=[{type:t.Directive,args:[{selector:"[ng-footer-tmp]"}]}],b.ctorParameters=function(){return[{type:t.TemplateRef}]};var _=function(){return function(e){this.template=e}}();_.decorators=[{type:t.Directive,args:[{selector:"[ng-notfound-tmp]"}]}],_.ctorParameters=function(){return[{type:t.TemplateRef}]};var T=function(){return function(e){this.template=e}}();T.decorators=[{type:t.Directive,args:[{selector:"[ng-typetosearch-tmp]"}]}],T.ctorParameters=function(){return[{type:t.TemplateRef}]};var w=function(){return function(e){this.template=e}}();w.decorators=[{type:t.Directive,args:[{selector:"[ng-loadingtext-tmp]"}]}],w.ctorParameters=function(){return[{type:t.TemplateRef}]};var I={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};I[I.Tab]="Tab",I[I.Enter]="Enter",I[I.Esc]="Esc",I[I.Space]="Space",I[I.ArrowUp]="ArrowUp",I[I.ArrowDown]="ArrowDown",I[I.Backspace]="Backspace";var x={"Ⓐ":"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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},E=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){var t=this;this._items=e.map(function(e,n){return t.mapItem(e,n)}),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=p(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=this.mapItem(e,this._items.length);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=c(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]),r=o.next();!r.done;r=o.next()){var s=r.value;c(s.label).toLocaleLowerCase().indexOf(e)>-1&&i.push(s)}}catch(f){h={error:f}}finally{try{r&&!r.done&&(g=o["return"])&&g.call(o)}finally{if(h)throw h.error}}if(i.length>0){var u=a(i.slice(-1),1)[0];if(u.parent){var d=t._items.find(function(e){return e===u.parent});t._filteredItems.push(d)}(m=t._filteredItems).push.apply(m,p(i))}var h,g,m}(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n["return"])&&r.call(n)}finally{if(o)throw o.error}}var o,r}else this._filteredItems=this._items},e.prototype.clearFilter=function(){this._filteredItems=p(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(!d(e))return e;if(-1===t.indexOf("."))return e[t];for(var n=t.split("."),i=e,o=0,r=n.length;o<r;++o){if(null==i)return null;i=i[n[o]]}return i},e.prototype.mapItem=function(e,t){var n=this.resolveNested(e,this._ngSelect.bindLabel);return{index:t,label:u(n)?n.toString():"",value:e,disabled:e.disabled}},e.prototype.updateSelectedItem=function(e,t){this._selected[t]=e},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 r={label:o,hasChildren:!0,index:n,disabled:!t._ngSelect.selectableGroup};r.value={},r.value[t._ngSelect.groupBy]=o,i.push(r),n++;var s=e[o].map(function(e){return e.parent=r,e.hasChildren=!1,n++,e});return i.push.apply(i,p(s)),i},[])},e}(),O=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}();O.decorators=[{type:t.Component,args:[{selector:"ng-option",changeDetection:t.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],O.ctorParameters=function(){return[{type:t.ElementRef}]},O.propDecorators={value:[{type:t.Input}],disabled:[{type:t.Input}]};var L=function(){function e(){}return e.prototype.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)},e}();L.decorators=[{type:t.Injectable}],L.ctorParameters=function(){return[]};var S=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,r=Math.min(e.itemsLength,Math.ceil(o)+(e.itemsPerCol+1)),s=r,l=Math.max(0,s-e.itemsPerCol-1),a=Math.min(l,Math.floor(o)),p=e.childHeight*Math.ceil(a)-e.childHeight*Math.min(a,n);return p=isNaN(p)?0:p,a=isNaN(a)?-1:a,r=isNaN(r)?-1:r,a-=n,a=Math.max(0,a),r+=n,r=Math.min(e.itemsLength,r),{topPadding:p,scrollHeight:i,start:a,end:r}},e.prototype.calculateDimensions=function(e,t,n,i){var o=n.getBoundingClientRect(),r=i.children[t]?i.children[t].getBoundingClientRect():{width:o.width,height:o.height,top:0},s=Math.max(1,Math.floor(o.height/r.height));return{itemsLength:e,viewWidth:o.width,viewHeight:o.height,childWidth:r.width,childHeight:r.height,itemsPerCol:s}},e}();S.decorators=[{type:t.Injectable}],S.ctorParameters=function(){return[]};var k=function(){function e(e,n,i,o,r,s){this._renderer=n,this._elementRef=i,this._zone=o,this._virtualScrollService=r,this._window=s,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 r=this.contentElementRef.nativeElement,s=Array.from(r.children).slice(0,t).reduce(function(e,t){return e+t.clientHeight},0);i.scrollTop=s-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,r=t.left-i.left,s="bottom"===this.currentPosition?t.height:-n.clientHeight;n.style.top=o+s+"px",n.style.bottom="auto",n.style.left=r+"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}();k.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"'}}]}],k.ctorParameters=function(){return[{type:A,decorators:[{type:t.Inject,args:[t.forwardRef(function(){return A})]}]},{type:t.Renderer2},{type:t.ElementRef},{type:t.NgZone},{type:S},{type:L}]},k.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 C=new t.InjectionToken("ng-select-default-options"),A=function(){function e(e,i,o){var r=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.selectableGroup=!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 E(this),this.viewPortItems=[],this.filterValue=null,this.currentDropdownPosition="bottom",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=r.selectedItems.find(function(t){return t.value===e});r.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(I[e.which])switch(e.which){case I.ArrowDown:this._handleArrowDown(e);break;case I.ArrowUp:this._handleArrowUp(e);break;case I.Space:this._handleSpace(e);break;case I.Enter:this._handleEnter(e);break;case I.Tab:this._handleTab(e);break;case I.Esc:this.close();break;case I.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){e!==undefined&&(this.itemsList.clearSelected(),this._validateWriteValue(e),this._handleWriteValue(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;h(e=g(this.addTag)?this.addTag(this.filterValue):this._primitive?this.filterValue:(n={},n[this.bindLabel]=this.filterValue,n))?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,this._primitive=!d(t),this.itemsList.setItems(e),e.length>0&&this.hasValue&&this._updateSelectedItems(),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),e.hasValue&&e._updateSelectedItems(),e.detectChanges()},n=function(){var t=i.merge(e.ngOptions.changes,e._destroy$);i.merge.apply(void 0,p(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(u(e)){var n=function(e){if(d(e)&&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._handleWriteValue=function(e){var t=this,n=e&&Array.isArray(e)&&0===e.length;if(null!==e&&!n){var i=function(e){var n=t.itemsList.findItem(e);if(n)t.itemsList.select(n);else{var i=d(e),o=!i&&!t.bindValue;i||o?t.itemsList.select(t.itemsList.mapItem(e,null)):t.bindValue&&((r={})[t.bindLabel]=null,r[t.bindValue]=e,n=r,t.itemsList.select(t.itemsList.mapItem(n,null)))}var r};this.multiple?e.forEach(function(e){i(e)}):i(e)}},e.prototype._updateSelectedItems=function(){var e=this;this.selectedItems.forEach(function(t,n){var i=e.bindValue?t.value[e.bindValue]:t.value,o=e.itemsList.findItem(i);o&&t!==o&&(o.selected=!0,e.itemsList.updateSelectedItem(o,n))})},e.prototype._updateNgModel=function(){var e=[];try{for(var t=l(this.selectedItems),n=t.next();!n.done;n=t.next()){var i=n.value;if(this.bindValue){var o=null;o=i.hasChildren?i.value[this.groupBy]:this.itemsList.resolveNested(i.value,this.bindValue),e.push(o)}else e.push(i.value)}}catch(a){r={error:a}}finally{try{n&&!n.done&&(s=t["return"])&&s.call(t)}finally{if(r)throw r.error}}this.multiple?(this._onChange(e),this.changeEvent.emit(this.selectedItems.map(function(e){return e.value}))):(this._onChange(u(e[0])?e[0]:null),this.changeEvent.emit(this.selectedItems[0]&&this.selectedItems[0].value)),this._cd.markForCheck();var r,s},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.stopPropagation()},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}),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}();A.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 <ng-container *ngIf="showNoItemsFound()">\n <ng-template #defaultNotfoundTemplate>\n <div class="ng-option disabled" [innerHTML]="notFoundText" *ngIf="showNoItemsFound()"></div>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="notFoundTemplate || defaultNotfoundTemplate"\n [ngTemplateOutletContext]="{ searchTerm: filterValue }">\n </ng-template>\n </ng-container>\n <ng-container *ngIf="showTypeToSearch()">\n <ng-template #defaultTypeToSearchTemplate>\n <div class="ng-option disabled" [innerHTML]="typeToSearchText"></div>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="typeToSearchTemplate || defaultTypeToSearchTemplate">\n </ng-template>\n </ng-container>\n <ng-container *ngIf="isLoading && itemsList.filteredItems.length === 0">\n <ng-template #defaultLoadingTextTemplate>\n <div class="ng-option disabled" [innerHTML]="loadingText"></div>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="loadingTextTemplate || defaultLoadingTextTemplate"\n [ngTemplateOutletContext]="{ searchTerm: filterValue }">\n </ng-template>\n </ng-container>\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:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef(function(){return A}),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"}}]}],A.ctorParameters=function(){return[{type:undefined,decorators:[{type:t.Inject,args:[C]}]},{type:t.ChangeDetectorRef},{type:t.ElementRef}]},A.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}],selectableGroup:[{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:[m,{read:t.TemplateRef}]}],optgroupTemplate:[{type:t.ContentChild,args:[f,{read:t.TemplateRef}]}],labelTemplate:[{type:t.ContentChild,args:[v,{read:t.TemplateRef}]}],headerTemplate:[{type:t.ContentChild,args:[y,{read:t.TemplateRef}]}],footerTemplate:[{type:t.ContentChild,args:[b,{read:t.TemplateRef}]}],notFoundTemplate:[{type:t.ContentChild,args:[_,{read:t.TemplateRef}]}],typeToSearchTemplate:[{type:t.ContentChild,args:[T,{read:t.TemplateRef}]}],loadingTextTemplate:[{type:t.ContentChild,args:[w,{read:t.TemplateRef}]}],dropdownPanel:[{type:t.ViewChild,args:[t.forwardRef(function(){return k})]}],ngOptions:[{type:t.ContentChildren,args:[O,{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 D=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}();D.decorators=[{type:t.Directive,args:[{selector:"[ngOptionHighlight]"}]}],D.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2}]},D.propDecorators={term:[{type:t.Input,args:["ngOptionHighlight"]}],label:[{type:t.Input,args:["innerHTML"]}]};var R=function(){return function(){}}();R.decorators=[{type:t.NgModule,args:[{declarations:[k,O,A,D,f,m,v,y,b,_,T,w],imports:[s.CommonModule],exports:[A,O,D,f,m,v,y,b,_,T,w],providers:[L,S,{provide:C,useValue:{notFoundText:"No items found",typeToSearchText:"Type to search",addTagText:"Add item",loadingText:"Loading...",clearAllText:"Clear all",disableVirtualScroll:!1}}]}]}],R.ctorParameters=function(){return[]},e.NgSelectComponent=A,e.NG_SELECT_DEFAULT_CONFIG=C,e.NgSelectModule=R,e.ɵi=k,e.ɵm=D,e.ɵl=O,e.ɵe=b,e.ɵd=y,e.ɵc=v,e.ɵh=w,e.ɵf=_,e.ɵb=f,e.ɵa=m,e.ɵg=T,e.ɵj=S,e.ɵk=L,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ng-select.umd.min.js.map |
@@ -5,7 +5,7 @@ /** | ||
export * from './index'; | ||
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'; | ||
export { NgDropdownPanelComponent as ɵi } from './ng-select/ng-dropdown-panel.component'; | ||
export { NgOptionHighlightDirective as ɵm } from './ng-select/ng-option-highlight.directive'; | ||
export { NgOptionComponent as ɵl } from './ng-select/ng-option.component'; | ||
export { NgFooterTemplateDirective as ɵe, NgHeaderTemplateDirective as ɵd, NgLabelTemplateDirective as ɵc, NgLoadingTextTemplateDirective as ɵh, NgNotFoundTemplateDirective as ɵf, NgOptgroupTemplateDirective as ɵb, NgOptionTemplateDirective as ɵa, NgTypeToSearchTemplateDirective as ɵg } from './ng-select/ng-templates.directive'; | ||
export { VirtualScrollService as ɵj } from './ng-select/virtual-scroll.service'; | ||
export { WindowService as ɵk } 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-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"}}]}],"selectableGroup":[{"__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"}],"_handleWriteValue":[{"__symbolic":"method"}],"_updateSelectedItems":[{"__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"}]}},"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"} | ||
{"__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 <ng-container *ngIf=\"showNoItemsFound()\">\n <ng-template #defaultNotfoundTemplate>\n <div class=\"ng-option disabled\" [innerHTML]=\"notFoundText\" *ngIf=\"showNoItemsFound()\"></div>\n </ng-template>\n \n <ng-template\n [ngTemplateOutlet]=\"notFoundTemplate || defaultNotfoundTemplate\"\n [ngTemplateOutletContext]=\"{ searchTerm: filterValue }\">\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"showTypeToSearch()\">\n <ng-template #defaultTypeToSearchTemplate>\n <div class=\"ng-option disabled\" [innerHTML]=\"typeToSearchText\"></div>\n </ng-template>\n \n <ng-template\n [ngTemplateOutlet]=\"typeToSearchTemplate || defaultTypeToSearchTemplate\">\n </ng-template>\n </ng-container>\n \n <ng-container *ngIf=\"isLoading && itemsList.filteredItems.length === 0\">\n <ng-template #defaultLoadingTextTemplate>\n <div class=\"ng-option disabled\" [innerHTML]=\"loadingText\"></div>\n </ng-template>\n \n <ng-template\n [ngTemplateOutlet]=\"loadingTextTemplate || defaultLoadingTextTemplate\"\n [ngTemplateOutletContext]=\"{ searchTerm: filterValue }\">\n </ng-template>\n </ng-container>\n\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"}}]}],"selectableGroup":[{"__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"}}]}]}],"notFoundTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵf"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef"}}]}]}],"typeToSearchTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵg"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef"}}]}]}],"loadingTextTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵh"},{"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":"ɵi"}]}]}],"ngOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren"},"arguments":[{"__symbolic":"reference","name":"ɵl"},{"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"}],"_handleWriteValue":[{"__symbolic":"method"}],"_updateSelectedItems":[{"__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"}]}},"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":"ɵi"},{"__symbolic":"reference","name":"ɵl"},{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","name":"ɵm"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵh"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"exports":[{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","name":"ɵl"},{"__symbolic":"reference","name":"ɵm"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵh"}],"providers":[{"__symbolic":"reference","name":"ɵk"},{"__symbolic":"reference","name":"ɵj"},{"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":"Directive"},"arguments":[{"selector":"[ng-notfound-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng-typetosearch-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng-loadingtext-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵi":{"__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":"ɵj"},{"__symbolic":"reference","name":"ɵk"}]}],"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"}]}},"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"calculateItems":[{"__symbolic":"method"}],"calculateDimensions":[{"__symbolic":"method"}]}},"ɵk":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"requestAnimationFrame":[{"__symbolic":"method"}]}},"ɵl":{"__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"}]}},"ɵm":{"__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-templates.directive","ɵg":"./ng-select/ng-templates.directive","ɵh":"./ng-select/ng-templates.directive","ɵi":"./ng-select/ng-dropdown-panel.component","ɵj":"./ng-select/virtual-scroll.service","ɵk":"./ng-select/window.service","ɵl":"./ng-select/ng-option.component","ɵm":"./ng-select/ng-option-highlight.directive"},"importAs":"@ng-select/ng-select"} |
@@ -56,2 +56,5 @@ import { Subject } from 'rxjs/Subject'; | ||
footerTemplate: TemplateRef<any>; | ||
notFoundTemplate: TemplateRef<any>; | ||
typeToSearchTemplate: TemplateRef<any>; | ||
loadingTextTemplate: TemplateRef<any>; | ||
dropdownPanel: NgDropdownPanelComponent; | ||
@@ -58,0 +61,0 @@ ngOptions: QueryList<NgOptionComponent>; |
@@ -22,1 +22,13 @@ import { TemplateRef } from '@angular/core'; | ||
} | ||
export declare class NgNotFoundTemplateDirective { | ||
template: TemplateRef<any>; | ||
constructor(template: TemplateRef<any>); | ||
} | ||
export declare class NgTypeToSearchTemplateDirective { | ||
template: TemplateRef<any>; | ||
constructor(template: TemplateRef<any>); | ||
} | ||
export declare class NgLoadingTextTemplateDirective { | ||
template: TemplateRef<any>; | ||
constructor(template: TemplateRef<any>); | ||
} |
{ | ||
"$schema": "../node_modules/ng-packagr/package.schema.json", | ||
"name": "@ng-select/ng-select", | ||
"version": "0.27.1", | ||
"version": "0.28.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
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
973378
8429