@ng-select/ng-select
Advanced tools
Comparing version 0.2.5 to 0.3.0
@@ -1,3 +0,3 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/forms","@angular/common"],e):e(t.ngSelect=t.ngSelect||{},t.ng.core,t.ng.forms,t.ng.common)}(this,function(t,e,r,i){"use strict";function n(t){var e=function(t){return _[t]||t};return t.replace(/[^\u0000-\u007E]/g,e)}function o(t,e){return e={exports:{}},t(e,e.exports),e.exports}function s(t){return"function"==typeof t}function a(t){return null!=t&&"object"==typeof t}function l(){try{return R.apply(this,arguments)}catch(t){return F.errorObject.e=t,F.errorObject}}function c(t){return R=t,l}function u(t){return t.reduce(function(t,e){return t.concat(e instanceof G.UnsubscriptionError?e.errors:e)},[])}function p(t,e,r){if(t){if(t instanceof ot.Subscriber)return t;if(t[tt.rxSubscriber])return t[tt.rxSubscriber]()}return t||e||r?new ot.Subscriber(t,e,r):new ot.Subscriber(X.empty)}function h(t){return t&&"function"==typeof t.schedule}function d(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}function f(t,e,r,i){var n=new Jt.InnerSubscriber(t,r,i);if(n.closed)return null;if(e instanceof pt.Observable)return e._isScalar?(n.next(e.value),n.complete(),null):e.subscribe(n);if(Bt.isArrayLike(e)){for(var o=0,s=e.length;o<s&&!n.closed;o++)n.next(e[o]);n.closed||n.complete()}else{if($t.isPromise(e))return e.then(function(t){n.closed||(n.next(t),n.complete())},function(t){return n.error(t)}).then(null,function(t){j.root.setTimeout(function(){throw t})}),n;if(e&&"function"==typeof e[Zt.iterator])for(var a=e[Zt.iterator]();;){var l=a.next();if(l.done){n.complete();break}if(n.next(l.value),n.closed)break}else if(e&&"function"==typeof e[lt.observable]){var c=e[lt.observable]();if("function"==typeof c.subscribe)return c.subscribe(new Jt.InnerSubscriber(t,r,i));n.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var u=H.isObject(e)?"an invalid object":"'"+e+"'",p="You provided "+u+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";n.error(new TypeError(p))}}return null}function b(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&M.isArray(t[0])&&(t=t[0].slice()),t.unshift(this),this.lift.call(new Mt.ArrayObservable(t),new ie(r))}function m(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=null,i=null;return It.isScheduler(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&M.isArray(t[0])&&(t=t[0]),new Mt.ArrayObservable(t,i).lift(new ae.CombineLatestOperator(r))}function y(t){return{ngModule:fe,providers:[{provide:E,useValue:t}]}}var g=function(){function t(t){this.template=t}return t.decorators=[{type:e.Directive,args:[{selector:"[ng-option-tmp]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),v=function(){function t(t){this.template=t}return t.decorators=[{type:e.Directive,args:[{selector:"[ng-label-tmp]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),w=function(){function t(t,r,i){this.element=t,this.zone=r,this.renderer=i,this.items=[],this.bufferAmount=0,this.update=new e.EventEmitter,this.startupLoop=!0,this.disposeScrollListener=function(){}}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this.items&&this.items.length>20},enumerable:!0,configurable:!0}),t.prototype.handleScroll=function(){var t=this,e=function(){if(!t.enabled)return void t.update.emit(t.items);t.refresh()};this.disposeScrollListener=this.renderer.listen(this.element.nativeElement,"scroll",e)},t.prototype.ngOnInit=function(){this.handleScroll(),this.scrollbarWidth=0,this.scrollbarHeight=0},t.prototype.ngOnDestroy=function(){this.disposeScrollListener()},t.prototype.ngOnChanges=function(t){this.previousStart=void 0,this.previousEnd=void 0;var e=t.items||{};(void 0!==t.items&&void 0===e.previousValue||void 0!==e.previousValue&&0===e.previousValue.length)&&(this.startupLoop=!0),this.items=e.currentValue,this.refresh()},t.prototype.refresh=function(){var t=this;if(!this.enabled)return void this.update.emit(this.items);this.zone.runOutsideAngular(function(){requestAnimationFrame(function(){return t.calculateItems()})})},t.prototype.scrollInto=function(t){var e=this.element.nativeElement,r=(this.items||[]).indexOf(t);if(!(r<0||r>=(this.items||[]).length)){var i=this.calculateDimensions(),n=Math.floor(i.viewHeight/i.childHeight)-1;e.scrollTop=Math.floor(r/i.itemsPerRow)*i.childHeight-i.childHeight*Math.min(r,n),this.refresh()}},t.prototype.countItemsPerRow=function(){var t,e,r=this.contentElementRef.nativeElement.children;for(e=0;e<r.length&&(void 0===t||t===r[e].offsetTop);e++)t=r[e].offsetTop;return e},t.prototype.getElementsOffset=function(){var t=0;return this.containerElementRef&&this.containerElementRef.nativeElement&&(t+=this.containerElementRef.nativeElement.offsetTop),t},t.prototype.calculateDimensions=function(){var t,e=this.element.nativeElement,r=this.items||[],i=r.length,n=e.clientWidth-this.scrollbarWidth,o=e.clientHeight-this.scrollbarHeight;if(void 0===this.childWidth||void 0===this.childHeight){var s=this.contentElementRef.nativeElement;this.containerElementRef&&this.containerElementRef.nativeElement&&(s=this.containerElementRef.nativeElement),t=s.children[0]?s.children[0].getBoundingClientRect():{width:n,height:o}}var a=this.childWidth||t.width,l=this.childHeight||t.height,c=Math.max(1,this.countItemsPerRow()),u=Math.max(1,Math.floor(n/a)),p=Math.max(1,Math.floor(o/l)),h=Math.max(0,e.scrollTop);return 1===p&&Math.floor(h/this.scrollHeight*i)+u>=i&&(c=u),{itemCount:i,viewWidth:n,viewHeight:o,childWidth:a,childHeight:l,itemsPerRow:c,itemsPerCol:p,itemsPerRowByCalc:u}},t.prototype.calculateItems=function(){var t=this;e.NgZone.assertNotInAngularZone();var r=this.element.nativeElement,i=this.calculateDimensions(),n=this.items||[],o=this.getElementsOffset();this.scrollHeight=i.childHeight*i.itemCount/i.itemsPerRow,r.scrollTop>this.scrollHeight&&(r.scrollTop=this.scrollHeight+o);var s=Math.max(0,r.scrollTop-o),a=s/this.scrollHeight*i.itemCount/i.itemsPerRow,l=Math.min(i.itemCount,Math.ceil(a)*i.itemsPerRow+i.itemsPerRow*(i.itemsPerCol+1)),c=l,u=l%i.itemsPerRow;u&&(c=l+i.itemsPerRow-u);var p=Math.max(0,c-i.itemsPerCol*i.itemsPerRow-i.itemsPerRow),h=Math.min(p,Math.floor(a)*i.itemsPerRow);this.topPadding=i.childHeight*Math.ceil(h/i.itemsPerRow)-i.childHeight*Math.min(h,this.bufferAmount),h=isNaN(h)?-1:h,l=isNaN(l)?-1:l,h-=this.bufferAmount,h=Math.max(0,h),l+=this.bufferAmount,l=Math.min(n.length,l),h!==this.previousStart||l!==this.previousEnd?(this.zone.run(function(){t.update.emit(n.slice(h,l))}),this.previousStart=h,this.previousEnd=l,!0===this.startupLoop&&this.refresh()):!0===this.startupLoop&&(this.startupLoop=!1,this.refresh())},t.decorators=[{type:e.Component,args:[{selector:"virtual-scroll,[virtualScroll]",exportAs:"virtualScroll",template:"\n <div *ngIf=\"enabled\" class=\"total-padding\" [style.height]=\"scrollHeight + 'px'\"></div>\n <div #content\n [class.scrollable-content]=\"enabled\"\n [style.transform]=\"enabled ? 'translateY(' + topPadding + 'px)' : 'none'\"\n [style.webkitTransform]=\"enabled ? 'translateY(' + topPadding + 'px)' : 'none'\">\n <ng-content></ng-content>\n </div>\n ",host:{"[style.overflow-y]":"parentScroll ? 'hidden' : 'auto'"},styles:["\n :host {\n overflow: hidden;\n position: relative;\n display: block;\n -webkit-overflow-scrolling: touch;\n }\n\n .scrollable-content {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n }\n\n .total-padding {\n width: 1px;\n opacity: 0;\n }\n "]}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:e.Renderer2}]},t.propDecorators={items:[{type:e.Input}],scrollbarWidth:[{type:e.Input}],scrollbarHeight:[{type:e.Input}],childWidth:[{type:e.Input}],childHeight:[{type:e.Input}],bufferAmount:[{type:e.Input}],update:[{type:e.Output}],contentElementRef:[{type:e.ViewChild,args:["content",{read:e.ElementRef}]}],containerElementRef:[{type:e.ContentChild,args:["container"]}]},t}(),x=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule],exports:[w],declarations:[w]}]}],t.ctorParameters=function(){return[]},t}(),O={};O.Tab=9,O.Enter=13,O.Esc=27,O.Space=32,O.ArrowUp=38,O.ArrowDown=40,O.Backspace=8,O[O.Tab]="Tab",O[O.Enter]="Enter",O[O.Esc]="Esc",O[O.Space]="Space",O[O.ArrowUp]="ArrowUp",O[O.ArrowDown]="ArrowDown",O[O.Backspace]="Backspace";var E=function(){function t(){this.notFoundText="",this.typeToSearchText=""}return t}(),_={"Ⓐ":"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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},S=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},I=function(){function t(){this.items=[],this.filteredItems=[],this._markedIndex=-1,this._selected=[],this._multiple=!1}return Object.defineProperty(t.prototype,"value",{get:function(){return this._multiple?this._selected:this._selected[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markedItem",{get:function(){return this.filteredItems[this._markedIndex]},enumerable:!0,configurable:!0}),t.prototype.setItems=function(t){this.items=this.mapItems(t),this.filteredItems=this.items.slice()},t.prototype.setMultiple=function(t){this._multiple=t,this.clearSelected()},t.prototype.select=function(t){this._multiple||this.clearSelected(),this._selected.push(t),t.selected=!0},t.prototype.findItem=function(t,e,r){if(r)return this.items.find(function(e){return e[r]===t});var i=this.items.indexOf(t);return i>-1?this.items[i]:this.items.find(function(r){return r[e]===t[e]})},t.prototype.unselect=function(t){this._selected=this._selected.filter(function(e){return e!==t}),t.selected=!1},t.prototype.unselectLastItem=function(){0!==this._selected.length&&(this._selected[this._selected.length-1].selected=!1,this._selected.splice(this._selected.length-1,1))},t.prototype.clearSelected=function(){this._selected.forEach(function(t){t.selected=!1,t.marked=!1}),this._selected=[]},t.prototype.filter=function(t,e){var r=this.getDefaultFilterFunc(t,e);this.filteredItems=t?this.items.filter(function(t){return r(t)}):this.items,this._markedIndex=0},t.prototype.clearFilter=function(){this.filteredItems=this.items.slice()},t.prototype.markNextItem=function(){this.stepToItem(1)},t.prototype.markPreviousItem=function(){this.stepToItem(-1)},t.prototype.markItem=function(t){void 0===t&&(t=null),0!==this.filteredItems.length&&(t=t||this.lastSelectedItem,this._markedIndex=t?this.filteredItems.indexOf(t):0)},t.prototype.getNextItemIndex=function(t){return t>0?this._markedIndex===this.filteredItems.length-1?0:this._markedIndex+1:0===this._markedIndex?this.filteredItems.length-1:this._markedIndex-1},t.prototype.stepToItem=function(t){if(0!==this.filteredItems.length)for(this._markedIndex=this.getNextItemIndex(t);this.markedItem.disabled;)this.stepToItem(t)},t.prototype.getDefaultFilterFunc=function(t,e){return function(r){return n(r[e]).toUpperCase().indexOf(n(t).toUpperCase())>-1}},Object.defineProperty(t.prototype,"lastSelectedItem",{get:function(){return this._selected[this._selected.length-1]},enumerable:!0,configurable:!0}),t.prototype.mapItems=function(t){return t.map(function(t,e){return S({index:e},t)})},t}(),T="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},k="undefined"!=typeof window&&window,P="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,C=void 0!==T&&T,L=k||C||P,A=L;!function(){if(!L)throw new Error("RxJS could not find any global context (window, self, global)")}();var R,j={root:A},V=s,D={isFunction:V},U=Array.isArray||function(t){return t&&"number"==typeof t.length},M={isArray:U},z=a,H={isObject:z},N={e:{}},F={errorObject:N},W=c,B={tryCatch:W},Y=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},$=function(t){function e(e){t.call(this),this.errors=e;var r=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return Y(e,t),e}(Error),Z=$,G={UnsubscriptionError:Z},K=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var r=this,i=r._parent,n=r._parents,o=r._unsubscribe,s=r._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a=-1,l=n?n.length:0;i;)i.remove(this),i=++a<l&&n[a]||null;if(D.isFunction(o)){var c=B.tryCatch(o).call(this);c===F.errorObject&&(e=!0,t=t||(F.errorObject.e instanceof G.UnsubscriptionError?u(F.errorObject.e.errors):[F.errorObject.e]))}if(M.isArray(s))for(a=-1,l=s.length;++a<l;){var p=s[a];if(H.isObject(p)){var c=B.tryCatch(p.unsubscribe).call(p);if(c===F.errorObject){e=!0,t=t||[];var h=F.errorObject.e;h instanceof G.UnsubscriptionError?t=t.concat(u(h.errors)):t.push(h)}}}if(e)throw new G.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var r=e;switch(typeof e){case"function":r=new t(e);case"object":if(r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if("function"!=typeof r._addParent){var i=r;r=new t,r._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(r),r._addParent(this),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.prototype._addParent=function(t){var e=this,r=e._parent,i=e._parents;r&&r!==t?i?-1===i.indexOf(t)&&i.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}(),q=K,J={Subscription:q},Q={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}},X={empty:Q},tt=o(function(t,e){var r=j.root.Symbol;e.rxSubscriber="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber}),et=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},rt=function(t){function e(r,i,n){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=X.empty;break;case 1:if(!r){this.destination=X.empty;break}if("object"==typeof r){r instanceof e?(this.destination=r,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new nt(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new nt(this,r,i,n)}}return et(e,t),e.prototype[tt.rxSubscriber]=function(){return this},e.create=function(t,r,i){var n=new e(t,r,i);return n.syncErrorThrowable=!1,n},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,r=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=r,this},e}(J.Subscription),it=rt,nt=function(t){function e(e,r,i,n){t.call(this),this._parentSubscriber=e;var o,s=this;D.isFunction(r)?o=r:r&&(o=r.next,i=r.error,n=r.complete,r!==X.empty&&(s=Object.create(r),D.isFunction(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=n}return et(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,r){try{e.call(this._context,r)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(rt),ot={Subscriber:it},st=p,at={toSubscriber:st},lt=o(function(t,e){function r(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}e.getSymbolObservable=r,e.observable=r(j.root),e.$$observable=e.observable}),ct=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var i=this.operator,n=at.toSubscriber(t,e,r);if(i?i.call(n,this.source):n.add(this.source?this._subscribe(n):this._trySubscribe(n)),n.syncErrorThrowable&&(n.syncErrorThrowable=!1,n.syncErrorThrown))throw n.syncErrorValue;return n},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var r=this;if(e||(j.root.Rx&&j.root.Rx.config&&j.root.Rx.config.Promise?e=j.root.Rx.config.Promise:j.root.Promise&&(e=j.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,i){var n;n=r.subscribe(function(e){if(n)try{t(e)}catch(t){i(t),n.unsubscribe()}else t(e)},i,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[lt.observable]=function(){return this},t.create=function(e){return new t(e)},t}(),ut=ct,pt={Observable:ut},ht=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},dt=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return ht(e,t),e}(Error),ft=dt,bt={ObjectUnsubscribedError:ft},mt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},yt=function(t){function e(e,r){t.call(this),this.subject=e,this.subscriber=r,this.closed=!1}return mt(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(J.Subscription),gt=yt,vt={SubjectSubscription:gt},wt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},xt=function(t){function e(e){t.call(this,e),this.destination=e}return wt(e,t),e}(ot.Subscriber),Ot=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return wt(e,t),e.prototype[tt.rxSubscriber]=function(){return new xt(this)},e.prototype.lift=function(t){var e=new _t(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new bt.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,r=e.length,i=e.slice(),n=0;n<r;n++)i[n].next(t)},e.prototype.error=function(t){if(this.closed)throw new bt.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,i=e.slice(),n=0;n<r;n++)i[n].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new bt.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),i=0;i<e;i++)r[i].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new bt.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new bt.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),J.Subscription.EMPTY):this.isStopped?(t.complete(),J.Subscription.EMPTY):(this.observers.push(t),new vt.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new pt.Observable;return t.source=this,t},e.create=function(t,e){return new _t(t,e)},e}(pt.Observable),Et=Ot,_t=function(t){function e(e,r){t.call(this),this.destination=e,this.source=r}return wt(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):J.Subscription.EMPTY},e}(Ot),St=h,It={isScheduler:St},Tt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},kt=function(t){function e(e,r){t.call(this),this.value=e,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return Tt(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.done,r=t.value,i=t.subscriber;if(e)return void i.complete();i.next(r),i.closed||(t.done=!0,this.schedule(t))},e.prototype._subscribe=function(t){var r=this.value,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{done:!1,value:r,subscriber:t});t.next(r),t.closed||t.complete()},e}(pt.Observable),Pt=kt,Ct={ScalarObservable:Pt},Lt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},At=function(t){function e(e){t.call(this),this.scheduler=e}return Lt(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(pt.Observable),Rt=At,jt={EmptyObservable:Rt},Vt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Dt=function(t){function e(e,r){t.call(this),this.array=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return Vt(e,t),e.create=function(t,r){return new e(t,r)},e.of=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var i=t[t.length-1];It.isScheduler(i)?t.pop():i=null;var n=t.length;return n>1?new e(t,i):1===n?new Ct.ScalarObservable(t[0],i):new jt.EmptyObservable(i)},e.dispatch=function(t){var e=t.array,r=t.index,i=t.count,n=t.subscriber;if(r>=i)return void n.complete();n.next(e[r]),n.closed||(t.index=r+1,this.schedule(t))},e.prototype._subscribe=function(t){var r=this.array,i=r.length,n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{array:r,index:0,count:i,subscriber:t});for(var o=0;o<i&&!t.closed;o++)t.next(r[o]);t.complete()},e}(pt.Observable),Ut=Dt,Mt={ArrayObservable:Ut},zt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Ht=function(t){function e(){t.apply(this,arguments)}return zt(e,t),e.prototype.notifyNext=function(t,e,r,i,n){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e | ||
}(ot.Subscriber),Nt=Ht,Ft={OuterSubscriber:Nt},Wt=function(t){return t&&"number"==typeof t.length},Bt={isArrayLike:Wt},Yt=d,$t={isPromise:Yt},Zt=o(function(t,e){function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var r=t.Set;if(r&&"function"==typeof(new r)["@@iterator"])return"@@iterator";var i=t.Map;if(i)for(var n=Object.getOwnPropertyNames(i.prototype),o=0;o<n.length;++o){var s=n[o];if("entries"!==s&&"size"!==s&&i.prototype[s]===i.prototype.entries)return s}return"@@iterator"}e.symbolIteratorPonyfill=r,e.iterator=r(j.root),e.$$iterator=e.iterator}),Gt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Kt=function(t){function e(e,r,i){t.call(this),this.parent=e,this.outerValue=r,this.outerIndex=i,this.index=0}return Gt(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(ot.Subscriber),qt=Kt,Jt={InnerSubscriber:qt},Qt=f,Xt={subscribeToResult:Qt},te=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},ee={},re=b,ie=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new oe(t,this.project))},t}(),ne=ie,oe=function(t){function e(e,r){t.call(this,e),this.project=r,this.active=0,this.values=[],this.observables=[]}return te(e,t),e.prototype._next=function(t){this.values.push(ee),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var i=t[r];this.add(Xt.subscribeToResult(this,i,i,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,i,n){var o=this.values,s=o[r],a=this.toRespond?s===ee?--this.toRespond:this.toRespond:0;o[r]=e,0===a&&(this.project?this._tryProject(o):this.destination.next(o.slice()))},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Ft.OuterSubscriber),se=oe,ae={combineLatest:re,CombineLatestOperator:ne,CombineLatestSubscriber:se},le=m,ce={combineLatest:le};pt.Observable.combineLatest=ce.combineLatest;var ue=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},pe=(function(t){function e(e,r,i){t.call(this,e),this.observables=r,this.project=i,this.toRespond=[];var n=r.length;this.values=new Array(n);for(var o=0;o<n;o++)this.toRespond.push(o);for(var o=0;o<n;o++){var s=r[o];this.add(Xt.subscribeToResult(this,s,s,o))}}ue(e,t),e.prototype.notifyNext=function(t,e,r,i,n){this.values[r]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(r);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}(Ft.OuterSubscriber),{provide:r.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return he}),multi:!0}),he=function(){function t(t,r,i,n){this.changeDetectorRef=r,this.elementRef=i,this.renderer=n,this.clearable=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.multiple=!1,this.blurEvent=new e.EventEmitter,this.focusEvent=new e.EventEmitter,this.changeEvent=new e.EventEmitter,this.openEvent=new e.EventEmitter,this.closeEvent=new e.EventEmitter,this.searchEvent=new e.EventEmitter,this.isOpen=!1,this.isFocused=!1,this.isDisabled=!1,this.itemsList=new I,this.viewPortItems=[],this.isLoading=!1,this.filterValue=null,this._items$=new Et,this._writeValue$=new Et,this._checkWriteValue=!1,this._writeValueHandler$=null,this.onChange=function(t){},this.onTouched=function(){},this.disposeDocumentClickListener=function(){},this.mergeConfig(t),this.handleWriteValue()}return Object.defineProperty(t.prototype,"single",{get:function(){return!this.multiple},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.itemsList.items},set:function(t){this.setItems(t||[]),this._items$.next(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.itemsList.value},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.handleDocumentClick(),this.bindLabel=this.bindLabel||"label"},t.prototype.ngOnChanges=function(t){t.multiple&&this.itemsList.setMultiple(t.multiple.currentValue)},t.prototype.ngOnDestroy=function(){this.changeDetectorRef.detach(),this.disposeDocumentClickListener(),this._writeValueHandler$.unsubscribe()},t.prototype.handleKeyDown=function(t){if(O[t.which])switch(t.which){case O.ArrowDown:this.handleArrowDown(t);break;case O.ArrowUp:this.handleArrowUp(t);break;case O.Space:this.handleSpace(t);break;case O.Enter:this.handleEnter(t);break;case O.Tab:this.handleTab(t);break;case O.Esc:this.close();break;case O.Backspace:this.handleBackspace()}},t.prototype.handleArrowClick=function(t){t.stopPropagation(),this.isOpen?this.close():this.open()},t.prototype.handleSelectClick=function(t){t.stopPropagation(),this.open()},t.prototype.handleClearClick=function(t){t.stopPropagation(),this.clear()},t.prototype.clear=function(){this.clearable&&(this.itemsList.clearSelected(),this.clearSearch(),this.notifyModelChanged(),this.isTypeahead()&&this.typeahead.next(this.filterValue))},t.prototype.writeValue=function(t){this._checkWriteValue=!0,this._writeValue$.next(t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.isDisabled=t},t.prototype.open=function(){this.isDisabled||this.isOpen||(this.isOpen=!0,this.itemsList.markItem(),this.scrollToMarked(),this.focusSearchInput(),this.openEvent.emit())},t.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.clearSearch(),this.closeEvent.emit())},t.prototype.getLabelValue=function(t){return t?t[this.bindLabel]:""},t.prototype.getDisplayTemplateContext=function(){return this.itemsList.value?{item:this.itemsList.value}:{item:{}}},t.prototype.toggle=function(t){!t||t.disabled||this.isDisabled||(this.multiple&&t.selected?this.unselect(t):this.select(t))},t.prototype.select=function(t){this._checkWriteValue=!1,t.selected||(this.itemsList.select(t),this.clearSearch(),this.updateModel()),this.single&&this.close()},t.prototype.unselect=function(t){this.itemsList.unselect(t),this.updateModel()},t.prototype.showPlaceholder=function(){return this.placeholder&&!this.isValueSet(this.value)&&!this.filterValue},t.prototype.showValue=function(){return!this.filterValue&&this.isValueSet(this.value)},t.prototype.showClear=function(){return this.clearable&&(this.isValueSet(this.value)||this.filterValue)&&!this.isDisabled},t.prototype.showFilter=function(){return!this.isDisabled},t.prototype.showNoItemsFound=function(){var t=0===this.itemsList.filteredItems.length;return t&&!this.isTypeahead()||t&&this.isTypeahead()&&this.filterValue&&!this.isLoading},t.prototype.showTypeToSearch=function(){return 0===this.itemsList.filteredItems.length&&this.isTypeahead()&&!this.filterValue&&!this.isLoading},t.prototype.onFilter=function(t){this.isOpen||this.open(),this.filterValue=t.target.value,this.isTypeahead()?(this.isLoading=!0,this.typeahead.next(this.filterValue)):this.itemsList.filter(this.filterValue,this.bindLabel)},t.prototype.onInputFocus=function(){this.isFocused=!0,this.focusEvent.emit(null)},t.prototype.onInputBlur=function(){this.isFocused=!1,this.blurEvent.emit(null),this.isOpen||this.isDisabled||this.onTouched()},t.prototype.onItemHover=function(t){t.disabled||this.itemsList.markItem(t)},t.prototype.handleWriteValue=function(){var t=this;this._writeValueHandler$=ut.combineLatest(this._items$,this._writeValue$).subscribe(function(e){if(t._checkWriteValue){var r=e[1];t.validateWriteValue(r),t.itemsList.clearSelected(),r&&(t.multiple?r.forEach(function(e){t.selectWriteValue(e)}):t.selectWriteValue(r)),t.detectChanges()}})},t.prototype.setItems=function(t){this.itemsList.setItems(t),this.isTypeahead()&&(this.isLoading=!1,this.itemsList.markItem())},t.prototype.handleDocumentClick=function(){var t=this,e=function(e){if(!t.elementRef.nativeElement.contains(e.target)){var r=t.getDropdownMenu();r&&r.contains(e.target)||(t.isFocused&&t.onInputBlur(),t.isOpen&&t.close())}};this.disposeDocumentClickListener=this.renderer.listen("document","click",e)},t.prototype.validateWriteValue=function(t){var e=this;if(t){var r=function(t){if(t instanceof Object&&e.bindValue)throw new Error("Binding object with bindValue is not allowed.")};if(this.multiple){if(!Array.isArray(t))throw new Error("Multiple select model should be array.");t.forEach(function(t){return r(t)})}else r(t)}},t.prototype.selectWriteValue=function(t){var e=this.itemsList.findItem(t,this.bindLabel,this.bindValue);e&&this.itemsList.select(e)},t.prototype.updateModel=function(){this.notifyModelChanged(),this.changeDetectorRef.markForCheck()},t.prototype.clearSearch=function(){this.filterValue=null,this.itemsList.clearFilter()},t.prototype.focusSearchInput=function(){var t=this;setTimeout(function(){t.filterInput.nativeElement.focus()})},t.prototype.scrollToMarked=function(){this.dropdownList.scrollInto(this.itemsList.markedItem)},t.prototype.handleTab=function(t){this.isOpen&&this.close()},t.prototype.handleEnter=function(t){this.isOpen&&this.toggle(this.itemsList.markedItem),t.preventDefault()},t.prototype.handleSpace=function(t){this.isOpen||(this.open(),t.preventDefault())},t.prototype.handleArrowDown=function(t){this.isOpen?(this.itemsList.markNextItem(),this.scrollToMarked()):this.open(),t.preventDefault()},t.prototype.handleArrowUp=function(t){this.itemsList.markPreviousItem(),this.scrollToMarked(),t.preventDefault()},t.prototype.handleBackspace=function(){this.filterValue||(this.multiple?(this.itemsList.unselectLastItem(),this.updateModel()):this.clear())},t.prototype.notifyModelChanged=function(){var t=this,e=this.itemsList.value;if(e)if(this.bindValue){var r=Array.isArray(e)?e.map(function(e){return e[t.bindValue]}):e[this.bindValue];this.onChange(r)}else this.onChange(e);else this.onChange(null);this.changeEvent.emit(e)},t.prototype.getDropdownMenu=function(){return this.isOpen&&this.dropdownList?this.elementRef.nativeElement.querySelector(".as-menu-outer"):null},t.prototype.isTypeahead=function(){return this.typeahead&&this.typeahead.observers.length>0},t.prototype.detectChanges=function(){this.changeDetectorRef.destroyed||this.changeDetectorRef.detectChanges()},t.prototype.isValueSet=function(t){return this.multiple?!!t&&t.length>0:!!t},t.prototype.mergeConfig=function(t){t&&(this.notFoundText=t.notFoundText||this.notFoundText,this.typeToSearchText=t.typeToSearchText||this.typeToSearchText)},t.decorators=[{type:e.Component,args:[{selector:"ng-select",template:'<div (click)="handleSelectClick($event)" class="as-control"> <span class="as-multi-value-wrapper"> <span class="as-placeholder" *ngIf="showPlaceholder()">{{placeholder}}</span> <ng-container *ngIf="!multiple;else multipleValue"> <div class="as-value" *ngIf="showValue()"> <span class="as-value-label" role="option" aria-selected="true"> <ng-template *ngIf="labelTemplate" [ngTemplateOutlet]="labelTemplate" [ngTemplateOutletContext]="getDisplayTemplateContext()"> </ng-template> <span *ngIf="!labelTemplate">{{getLabelValue(value)}}</span> </span> </div> </ng-container> <ng-template #multipleValue> <div class="as-value" *ngFor="let item of value"> <span class="as-clear" (click)="unselect(item)" aria-hidden="true">×</span> <span class="as-value-label" aria-selected="true">{{getLabelValue(item)}}</span> </div> </ng-template> <div *ngIf="showFilter()" class="as-input"> <input #filterInput [value]="filterValue" (input)="onFilter($event)" (focus)="onInputFocus($event)" (blur)="onInputBlur($event)" role="combobox" aria-expanded="false" aria-owns="" aria-haspopup="false"> </div> </span> <spinner class="as-spinner-zone" *ngIf="isLoading"></spinner> <span *ngIf="showClear()" (click)="handleClearClick($event)" class="as-clear-zone" title="Clear all" aria-label="Clear all"> <span class="as-clear" aria-hidden="true">×</span> </span> <span (click)="handleArrowClick($event)" class="as-arrow-zone"> <span class="as-arrow"></span> </span> </div> <div class="as-menu-outer"> <virtual-scroll role="listbox" class="as-menu" [bufferAmount]="4" [items]="itemsList.filteredItems" (update)="viewPortItems = $event"> <div class="as-option" role="option" (click)="toggle(item)" (mousedown)="$event.preventDefault()" (mouseover)="onItemHover(item)" *ngFor="let item of viewPortItems" [class.disabled]="item.disabled" [class.selected]="item.selected" [class.marked]="item === itemsList.markedItem"> <span *ngIf="!optionTemplate">{{item[bindLabel]}}</span> <ng-template *ngIf="optionTemplate" [ngTemplateOutlet]="optionTemplate" [ngTemplateOutletContext]="{ item: item, index: item.index }"> </ng-template> </div> </virtual-scroll> <div class="as-menu" *ngIf="showNoItemsFound()"> <div class="as-option disabled"> {{notFoundText}} </div> </div> <div class="as-menu" *ngIf="showTypeToSearch()"> <div class="as-option disabled"> {{typeToSearchText}} </div> </div> </div> ',styles:["ng-select { position: relative; display: block; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } ng-select div, ng-select input, ng-select span, ng-select virtual-scroll { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } ng-select virtual-scroll { display: block; height: auto; } ng-select.opened > .as-control { border-bottom-right-radius: 0; border-bottom-left-radius: 0; background: #fff; border-color: #b3b3b3 #ccc #d9d9d9; } ng-select.opened > .as-control .as-arrow { top: -2px; border-color: transparent transparent #999; border-width: 0 5px 5px; } ng-select.opened > .as-control .as-arrow:hover { border-color: transparent transparent #666; } ng-select.opened .as-menu-outer { visibility: visible; } ng-select.focused:not(.opened) > .as-control { border-color: #007eff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 126, 255, 0.1); } ng-select.disabled > .as-control { background-color: #f9f9f9; } ng-select .as-control { background-color: #fff; border-radius: 4px; border: 1px solid #ccc; color: #333; cursor: default; display: table; border-spacing: 0; border-collapse: separate; height: 36px; outline: none; overflow: hidden; position: relative; width: 100%; } ng-select .as-control:hover { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); } ng-select .as-placeholder, ng-select.as-single > .as-control .as-value { bottom: 0; color: #aaa; left: 0; line-height: 34px; padding-left: 10px; padding-right: 10px; position: absolute; right: 0; top: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } ng-select .as-placeholder .as-value-label, ng-select.as-single > .as-control .as-value .as-value-label { color: #333; } ng-select.as-multiple.disabled > .as-control .as-value { background-color: #f9f9f9; border: 1px solid #e3e3e3; } ng-select.as-multiple.disabled > .as-control .as-value .as-clear { display: none; } ng-select.as-multiple > .as-control .as-value { background-color: #f5faff; border-radius: 2px; border: 1px solid #c2e0ff; display: inline-block; font-size: 0.9em; line-height: 1.4; margin-left: 5px; margin-top: 5px; vertical-align: top; } ng-select.as-multiple > .as-control .as-value .as-clear { cursor: pointer; border-bottom-right-radius: 2px; border-top-right-radius: 2px; border-right: 1px solid #c2e0ff; padding: 1px 5px 3px; } ng-select.as-multiple > .as-control .as-value .as-clear:hover { background-color: #d8eafd; } ng-select.as-multiple > .as-control .as-value .as-value-label { border-bottom-right-radius: 2px; border-top-right-radius: 2px; cursor: default; padding: 2px 5px; } ng-select .as-input { height: 34px; padding-left: 10px; padding-right: 10px; vertical-align: middle; display: inline-block; } ng-select .as-input > input { min-width: 5px; box-sizing: content-box; background: none transparent; border: 0 none; box-shadow: none; cursor: default; display: inline-block; font-family: inherit; font-size: inherit; margin: 0; outline: none; line-height: 14px; /* For IE 8 compatibility */ padding: 8px 0 12px; /* For IE 8 compatibility */ -webkit-appearance: none; } ng-select .as-menu-outer { visibility: hidden; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: #fff; border: 1px solid #ccc; border-top-color: #e6e6e6; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); box-sizing: border-box; margin-top: -1px; max-height: 242px; position: absolute; top: 100%; width: 100%; z-index: 1; -webkit-overflow-scrolling: touch; } ng-select .as-menu { max-height: 240px; overflow-y: auto; } ng-select .as-option { box-sizing: border-box; background-color: #fff; color: #666666; cursor: pointer; display: block; padding: 8px 10px; } ng-select .as-option:last-child { border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } ng-select .as-option.selected { background-color: #f5faff; color: #333; } ng-select .as-option.marked { background-color: #ebf5ff; color: #333; } ng-select .as-option.disabled { color: #cccccc; cursor: default; } ng-select .as-clear-zone { -webkit-animation: Select-animation-fadeIn 200ms; -o-animation: Select-animation-fadeIn 200ms; animation: Select-animation-fadeIn 200ms; color: #999; cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 17px; } ng-select .as-clear-zone .as-clear { display: inline-block; font-size: 18px; line-height: 1; } ng-select .as-clear-zone .as-clear:hover { color: #D0021B; } ng-select .as-spinner-zone { cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 25px; padding-right: 5px; padding-top: 5px; } ng-select .as-arrow-zone { cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 25px; padding-right: 5px; } ng-select .as-arrow-zone .as-arrow { border-color: #999 transparent transparent; border-style: solid; border-width: 5px 5px 2.5px; display: inline-block; height: 0; width: 0; position: relative; } ng-select .as-arrow-zone .as-arrow:hover { border-top-color: #666; } "],providers:[pe],encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{role:"dropdown"}}]}],t.ctorParameters=function(){return[{type:E,decorators:[{type:e.Optional}]},{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.Renderer2}]},t.propDecorators={optionTemplate:[{type:e.ContentChild,args:[g,{read:e.TemplateRef}]}],labelTemplate:[{type:e.ContentChild,args:[v,{read:e.TemplateRef}]}],dropdownList:[{type:e.ViewChild,args:[w]}],filterInput:[{type:e.ViewChild,args:["filterInput"]}],bindLabel:[{type:e.Input}],bindValue:[{type:e.Input}],clearable:[{type:e.Input}],placeholder:[{type:e.Input}],notFoundText:[{type:e.Input}],typeToSearchText:[{type:e.Input}],typeahead:[{type:e.Input}],multiple:[{type:e.Input},{type:e.HostBinding,args:["class.as-multiple"]}],blurEvent:[{type:e.Output,args:["blur"]}],focusEvent:[{type:e.Output,args:["focus"]}],changeEvent:[{type:e.Output,args:["change"]}],openEvent:[{type:e.Output,args:["open"]}],closeEvent:[{type:e.Output,args:["close"]}],searchEvent:[{type:e.Output,args:["search"]}],single:[{type:e.HostBinding,args:["class.as-single"]}],isOpen:[{type:e.HostBinding,args:["class.opened"]}],isFocused:[{type:e.HostBinding,args:["class.focused"]}],isDisabled:[{type:e.HostBinding,args:["class.disabled"]}],items:[{type:e.Input}],handleKeyDown:[{type:e.HostListener,args:["keydown",["$event"]]}]},t}(),de=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"spinner",template:'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n width="20px" height="20px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">\n <path fill="#777" d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z">\n <animateTransform attributeType="xml"\n attributeName="transform"\n type="rotate"\n from="0 25 25"\n to="360 25 25"\n dur="0.6s"\n repeatCount="indefinite"/>\n </path>\n </svg>'}]}],t.ctorParameters=function(){return[]},t}(),fe=function(){function t(){}return t.forRoot=function(t){return y(t)},t.forChild=function(t){return y(t)},t.decorators=[{type:e.NgModule,args:[{declarations:[he,g,v,de],imports:[r.FormsModule,i.CommonModule,x],exports:[he,g,v]}]}],t.ctorParameters=function(){return[]},t}();t.NgSelectComponent=he,t.NgSelectModule=fe,t.NgSelectConfig=E,t.ɵb=v,t.ɵa=g,t.ɵe=de,t.ɵc=w,t.ɵd=x,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/forms","@angular/common"],t):t(e.ngSelect=e.ngSelect||{},e.ng.core,e.ng.forms,e.ng.common)}(this,function(e,t,n,r){"use strict";function i(e){var t=function(e){return _[e]||e};return e.replace(/[^\u0000-\u007E]/g,t)}function o(e,t){return t={exports:{}},e(t,t.exports),t.exports}function s(e){return"function"==typeof e}function l(e){return null!=e&&"object"==typeof e}function c(){try{return j.apply(this,arguments)}catch(e){return F.errorObject.e=e,F.errorObject}}function a(e){return j=e,c}function u(e){return e.reduce(function(e,t){return e.concat(t instanceof G.UnsubscriptionError?t.errors:t)},[])}function p(e,t,n){if(e){if(e instanceof oe.Subscriber)return e;if(e[ee.rxSubscriber])return e[ee.rxSubscriber]()}return e||t||n?new oe.Subscriber(e,t,n):new oe.Subscriber(X.empty)}function h(e){return e&&"function"==typeof e.schedule}function d(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}function f(e,t,n,r){var i=new Je.InnerSubscriber(e,n,r);if(i.closed)return null;if(t instanceof pe.Observable)return t._isScalar?(i.next(t.value),i.complete(),null):t.subscribe(i);if(Be.isArrayLike(t)){for(var o=0,s=t.length;o<s&&!i.closed;o++)i.next(t[o]);i.closed||i.complete()}else{if($e.isPromise(t))return t.then(function(e){i.closed||(i.next(e),i.complete())},function(e){return i.error(e)}).then(null,function(e){R.root.setTimeout(function(){throw e})}),i;if(t&&"function"==typeof t[Ze.iterator])for(var l=t[Ze.iterator]();;){var c=l.next();if(c.done){i.complete();break}if(i.next(c.value),i.closed)break}else if(t&&"function"==typeof t[ce.observable]){var a=t[ce.observable]();if("function"==typeof a.subscribe)return a.subscribe(new Je.InnerSubscriber(e,n,r));i.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var u=H.isObject(t)?"an invalid object":"'"+t+"'",p="You provided "+u+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";i.error(new TypeError(p))}}return null}function b(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&M.isArray(e[0])&&(e=e[0].slice()),e.unshift(this),this.lift.call(new Me.ArrayObservable(e),new rt(n))}function g(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=null,r=null;return Ie.isScheduler(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&M.isArray(e[0])&&(e=e[0]),new Me.ArrayObservable(e,r).lift(new lt.CombineLatestOperator(n))}function m(e){return{ngModule:ft,providers:[{provide:E,useValue:e}]}}var y=function(){function e(e){this.template=e}return e.decorators=[{type:t.Directive,args:[{selector:"[ng-option-tmp]"}]}],e.ctorParameters=function(){return[{type:t.TemplateRef}]},e}(),v=function(){function e(e){this.template=e}return e.decorators=[{type:t.Directive,args:[{selector:"[ng-label-tmp]"}]}],e.ctorParameters=function(){return[{type:t.TemplateRef}]},e}(),w=function(){function e(e,n,r){this.element=e,this.zone=n,this.renderer=r,this.items=[],this.bufferAmount=0,this.update=new t.EventEmitter,this.startupLoop=!0,this.disposeScrollListener=function(){}}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this.items&&this.items.length>20},enumerable:!0,configurable:!0}),e.prototype.handleScroll=function(){var e=this,t=function(){if(!e.enabled)return void e.update.emit(e.items);e.refresh()};this.disposeScrollListener=this.renderer.listen(this.element.nativeElement,"scroll",t)},e.prototype.ngOnInit=function(){this.handleScroll(),this.scrollbarWidth=0,this.scrollbarHeight=0},e.prototype.ngOnDestroy=function(){this.disposeScrollListener()},e.prototype.ngOnChanges=function(e){this.previousStart=void 0,this.previousEnd=void 0;var t=e.items||{};(void 0!==e.items&&void 0===t.previousValue||void 0!==t.previousValue&&0===t.previousValue.length)&&(this.startupLoop=!0),this.items=t.currentValue,this.refresh()},e.prototype.refresh=function(){var e=this;if(!this.enabled)return void this.update.emit(this.items);this.zone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.calculateItems()})})},e.prototype.scrollInto=function(e){var t=this.element.nativeElement,n=(this.items||[]).indexOf(e);if(!(n<0||n>=(this.items||[]).length)){var r=this.calculateDimensions(),i=Math.floor(r.viewHeight/r.childHeight)-1;t.scrollTop=Math.floor(n/r.itemsPerRow)*r.childHeight-r.childHeight*Math.min(n,i),this.refresh()}},e.prototype.countItemsPerRow=function(){var e,t,n=this.contentElementRef.nativeElement.children;for(t=0;t<n.length&&(void 0===e||e===n[t].offsetTop);t++)e=n[t].offsetTop;return t},e.prototype.getElementsOffset=function(){var e=0;return this.containerElementRef&&this.containerElementRef.nativeElement&&(e+=this.containerElementRef.nativeElement.offsetTop),e},e.prototype.calculateDimensions=function(){var e,t=this.element.nativeElement,n=this.items||[],r=n.length,i=t.clientWidth-this.scrollbarWidth,o=t.clientHeight-this.scrollbarHeight;if(void 0===this.childWidth||void 0===this.childHeight){var s=this.contentElementRef.nativeElement;this.containerElementRef&&this.containerElementRef.nativeElement&&(s=this.containerElementRef.nativeElement),e=s.children[0]?s.children[0].getBoundingClientRect():{width:i,height:o}}var l=this.childWidth||e.width,c=this.childHeight||e.height,a=Math.max(1,this.countItemsPerRow()),u=Math.max(1,Math.floor(i/l)),p=Math.max(1,Math.floor(o/c)),h=Math.max(0,t.scrollTop);return 1===p&&Math.floor(h/this.scrollHeight*r)+u>=r&&(a=u),{itemCount:r,viewWidth:i,viewHeight:o,childWidth:l,childHeight:c,itemsPerRow:a,itemsPerCol:p,itemsPerRowByCalc:u}},e.prototype.calculateItems=function(){var e=this;t.NgZone.assertNotInAngularZone();var n=this.element.nativeElement,r=this.calculateDimensions(),i=this.items||[],o=this.getElementsOffset();this.scrollHeight=r.childHeight*r.itemCount/r.itemsPerRow,n.scrollTop>this.scrollHeight&&(n.scrollTop=this.scrollHeight+o);var s=Math.max(0,n.scrollTop-o),l=s/this.scrollHeight*r.itemCount/r.itemsPerRow,c=Math.min(r.itemCount,Math.ceil(l)*r.itemsPerRow+r.itemsPerRow*(r.itemsPerCol+1)),a=c,u=c%r.itemsPerRow;u&&(a=c+r.itemsPerRow-u);var p=Math.max(0,a-r.itemsPerCol*r.itemsPerRow-r.itemsPerRow),h=Math.min(p,Math.floor(l)*r.itemsPerRow);this.topPadding=r.childHeight*Math.ceil(h/r.itemsPerRow)-r.childHeight*Math.min(h,this.bufferAmount),h=isNaN(h)?-1:h,c=isNaN(c)?-1:c,h-=this.bufferAmount,h=Math.max(0,h),c+=this.bufferAmount,c=Math.min(i.length,c),h!==this.previousStart||c!==this.previousEnd?(this.zone.run(function(){e.update.emit(i.slice(h,c))}),this.previousStart=h,this.previousEnd=c,!0===this.startupLoop&&this.refresh()):!0===this.startupLoop&&(this.startupLoop=!1,this.refresh())},e.decorators=[{type:t.Component,args:[{selector:"virtual-scroll,[virtualScroll]",exportAs:"virtualScroll",template:"\n <div *ngIf=\"enabled\" class=\"total-padding\" [style.height]=\"scrollHeight + 'px'\"></div>\n <div #content\n [class.scrollable-content]=\"enabled\"\n [style.transform]=\"enabled ? 'translateY(' + topPadding + 'px)' : 'none'\"\n [style.webkitTransform]=\"enabled ? 'translateY(' + topPadding + 'px)' : 'none'\">\n <ng-content></ng-content>\n </div>\n ",host:{"[style.overflow-y]":"parentScroll ? 'hidden' : 'auto'"},styles:["\n :host {\n overflow: hidden;\n position: relative;\n display: block;\n -webkit-overflow-scrolling: touch;\n }\n\n .scrollable-content {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n }\n\n .total-padding {\n width: 1px;\n opacity: 0;\n }\n "]}]}],e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.NgZone},{type:t.Renderer2}]},e.propDecorators={items:[{type:t.Input}],scrollbarWidth:[{type:t.Input}],scrollbarHeight:[{type:t.Input}],childWidth:[{type:t.Input}],childHeight:[{type:t.Input}],bufferAmount:[{type:t.Input}],update:[{type:t.Output}],contentElementRef:[{type:t.ViewChild,args:["content",{read:t.ElementRef}]}],containerElementRef:[{type:t.ContentChild,args:["container"]}]},e}(),x=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],exports:[w],declarations:[w]}]}],e.ctorParameters=function(){return[]},e}(),O={};O.Tab=9,O.Enter=13,O.Esc=27,O.Space=32,O.ArrowUp=38,O.ArrowDown=40,O.Backspace=8,O[O.Tab]="Tab",O[O.Enter]="Enter",O[O.Esc]="Esc",O[O.Space]="Space",O[O.ArrowUp]="ArrowUp",O[O.ArrowDown]="ArrowDown",O[O.Backspace]="Backspace";var E=function(){function e(){this.notFoundText="",this.typeToSearchText=""}return e}(),_={"Ⓐ":"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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},I=function(){function e(){this.items=[],this.filteredItems=[],this._markedIndex=-1,this._selected=[],this._multiple=!1}return 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}),e.prototype.setItems=function(e){this.items=this.mapItems(e),this.filteredItems=this.items.slice()},e.prototype.setMultiple=function(e){this._multiple=e,this.clearSelected()},e.prototype.select=function(e){this._multiple||this.clearSelected(),this._selected.push(e),e.selected=!0},e.prototype.findItem=function(e,t,n){if(n)return this.items.find(function(t){return t[n]===e});var r=this.items.indexOf(e);return r>-1?this.items[r]:this.items.find(function(n){return n[t]===e[t]})},e.prototype.unselect=function(e){this._selected=this._selected.filter(function(t){return t!==e}),e.selected=!1},e.prototype.unselectLastItem=function(){0!==this._selected.length&&(this._selected[this._selected.length-1].selected=!1,this._selected.splice(this._selected.length-1,1))},e.prototype.clearSelected=function(){this._selected.forEach(function(e){e.selected=!1,e.marked=!1}),this._selected=[]},e.prototype.filter=function(e,t){var n=this.getDefaultFilterFunc(e,t);this.filteredItems=e?this.items.filter(function(e){return n(e)}):this.items,this._markedIndex=0},e.prototype.clearFilter=function(){this.filteredItems=this.items.slice()},e.prototype.markNextItem=function(){this.stepToItem(1)},e.prototype.markPreviousItem=function(){this.stepToItem(-1)},e.prototype.markItem=function(e){void 0===e&&(e=null),0!==this.filteredItems.length&&(e=e||this.lastSelectedItem,this._markedIndex=e?this.filteredItems.indexOf(e):0)},e.prototype.getNextItemIndex=function(e){return e>0?this._markedIndex===this.filteredItems.length-1?0:this._markedIndex+1:0===this._markedIndex?this.filteredItems.length-1:this._markedIndex-1},e.prototype.stepToItem=function(e){if(0!==this.filteredItems.length)for(this._markedIndex=this.getNextItemIndex(e);this.markedItem.disabled;)this.stepToItem(e)},e.prototype.getDefaultFilterFunc=function(e,t){return function(n){return i(n[t]).toUpperCase().indexOf(i(e).toUpperCase())>-1}},Object.defineProperty(e.prototype,"lastSelectedItem",{get:function(){return this._selected[this._selected.length-1]},enumerable:!0,configurable:!0}),e.prototype.mapItems=function(e){return e.map(function(e,t){return S({index:t},e)})},e}(),T="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},k="undefined"!=typeof window&&window,P="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,C=void 0!==T&&T,A=k||C||P,L=A;!function(){if(!A)throw new Error("RxJS could not find any global context (window, self, global)")}();var j,R={root:L},V=s,D={isFunction:V},U=Array.isArray||function(e){return e&&"number"==typeof e.length},M={isArray:U},z=l,H={isObject:z},N={e:{}},F={errorObject:N},W=a,B={tryCatch:W},Y=T&&T.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},$=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return Y(t,e),t}(Error),Z=$,G={UnsubscriptionError:Z},K=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this,r=n._parent,i=n._parents,o=n._unsubscribe,s=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var l=-1,c=i?i.length:0;r;)r.remove(this),r=++l<c&&i[l]||null;if(D.isFunction(o)){var a=B.tryCatch(o).call(this);a===F.errorObject&&(t=!0,e=e||(F.errorObject.e instanceof G.UnsubscriptionError?u(F.errorObject.e.errors):[F.errorObject.e]))}if(M.isArray(s))for(l=-1,c=s.length;++l<c;){var p=s[l];if(H.isObject(p)){var a=B.tryCatch(p.unsubscribe).call(p);if(a===F.errorObject){t=!0,e=e||[];var h=F.errorObject.e;h instanceof G.UnsubscriptionError?e=e.concat(u(h.errors)):e.push(h)}}}if(t)throw new G.UnsubscriptionError(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new e,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this,n=t._parent,r=t._parents;n&&n!==e?r?-1===r.indexOf(e)&&r.push(e):this._parents=[e]:this._parent=e},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}(),q=K,J={Subscription:q},Q={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}},X={empty:Q},ee=o(function(e,t){var n=R.root.Symbol;t.rxSubscriber="function"==typeof n&&"function"==typeof n.for?n.for("rxSubscriber"):"@@rxSubscriber",t.$$rxSubscriber=t.rxSubscriber}),te=T&&T.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ne=function(e){function t(n,r,i){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=X.empty;break;case 1:if(!n){this.destination=X.empty;break}if("object"==typeof n){n instanceof t?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new ie(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new ie(this,n,r,i)}}return te(t,e),t.prototype[ee.rxSubscriber]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this,t=e._parent,n=e._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=n,this},t}(J.Subscription),re=ne,ie=function(e){function t(t,n,r,i){e.call(this),this._parentSubscriber=t;var o,s=this;D.isFunction(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==X.empty&&(s=Object.create(n),D.isFunction(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=r,this._complete=i}return te(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,n){try{t.call(this._context,n)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(ne),oe={Subscriber:re},se=p,le={toSubscriber:se},ce=o(function(e,t){function n(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}t.getSymbolObservable=n,t.observable=n(R.root),t.$$observable=t.observable}),ae=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,i=le.toSubscriber(e,t,n);if(r?r.call(i,this.source):i.add(this.source?this._subscribe(i):this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var n=this;if(t||(R.root.Rx&&R.root.Rx.config&&R.root.Rx.config.Promise?t=R.root.Rx.config.Promise:R.root.Promise&&(t=R.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,r){var i;i=n.subscribe(function(t){if(i)try{e(t)}catch(e){r(e),i.unsubscribe()}else e(t)},r,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[ce.observable]=function(){return this},e.create=function(t){return new e(t)},e}(),ue=ae,pe={Observable:ue},he=T&&T.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},de=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return he(t,e),t}(Error),fe=de,be={ObjectUnsubscribedError:fe},ge=T&&T.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},me=function(e){function t(t,n){e.call(this),this.subject=t,this.subscriber=n,this.closed=!1}return ge(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(J.Subscription),ye=me,ve={SubjectSubscription:ye},we=T&&T.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},xe=function(e){function t(t){e.call(this,t),this.destination=t}return we(t,e),t}(oe.Subscriber),Oe=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return we(t,e),t.prototype[ee.rxSubscriber]=function(){return new xe(this)},t.prototype.lift=function(e){var t=new _e(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new be.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)},t.prototype.error=function(e){if(this.closed)throw new be.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new be.ObjectUnsubscribedError;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new be.ObjectUnsubscribedError;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new be.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),J.Subscription.EMPTY):this.isStopped?(e.complete(),J.Subscription.EMPTY):(this.observers.push(e),new ve.SubjectSubscription(this,e))},t.prototype.asObservable=function(){var e=new pe.Observable;return e.source=this,e},t.create=function(e,t){return new _e(e,t)},t}(pe.Observable),Ee=Oe,_e=function(e){function t(t,n){e.call(this),this.destination=t,this.source=n}return we(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):J.Subscription.EMPTY},t}(Oe),Se=h,Ie={isScheduler:Se},Te=T&&T.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ke=function(e){function t(t,n){e.call(this),this.value=t,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return Te(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.done,n=e.value,r=e.subscriber;if(t)return void r.complete();r.next(n),r.closed||(e.done=!0,this.schedule(e))},t.prototype._subscribe=function(e){var n=this.value,r=this.scheduler;if(r)return r.schedule(t.dispatch,0,{done:!1,value:n,subscriber:e});e.next(n),e.closed||e.complete()},t}(pe.Observable),Pe=ke,Ce={ScalarObservable:Pe},Ae=T&&T.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Le=function(e){function t(t){e.call(this),this.scheduler=t}return Ae(t,e),t.create=function(e){return new t(e)},t.dispatch=function(e){e.subscriber.complete()},t.prototype._subscribe=function(e){var n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{subscriber:e});e.complete()},t}(pe.Observable),je=Le,Re={EmptyObservable:je},Ve=T&&T.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},De=function(e){function t(t,n){e.call(this),this.array=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return Ve(t,e),t.create=function(e,n){return new t(e,n)},t.of=function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=e[e.length-1];Ie.isScheduler(r)?e.pop():r=null;var i=e.length;return i>1?new t(e,r):1===i?new Ce.ScalarObservable(e[0],r):new Re.EmptyObservable(r)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.count,i=e.subscriber;if(n>=r)return void i.complete();i.next(t[n]),i.closed||(e.index=n+1,this.schedule(e))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var o=0;o<r&&!e.closed;o++)e.next(n[o]);e.complete()},t}(pe.Observable),Ue=De,Me={ArrayObservable:Ue},ze=T&&T.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},He=function(e){function t(){e.apply(this,arguments)}return ze(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(oe.Subscriber),Ne=He,Fe={OuterSubscriber:Ne | ||
},We=function(e){return e&&"number"==typeof e.length},Be={isArrayLike:We},Ye=d,$e={isPromise:Ye},Ze=o(function(e,t){function n(e){var t=e.Symbol;if("function"==typeof t)return t.iterator||(t.iterator=t("iterator polyfill")),t.iterator;var n=e.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=e.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}t.symbolIteratorPonyfill=n,t.iterator=n(R.root),t.$$iterator=t.iterator}),Ge=T&&T.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Ke=function(e){function t(t,n,r){e.call(this),this.parent=t,this.outerValue=n,this.outerIndex=r,this.index=0}return Ge(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(oe.Subscriber),qe=Ke,Je={InnerSubscriber:qe},Qe=f,Xe={subscribeToResult:Qe},et=T&&T.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},tt={},nt=b,rt=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new ot(e,this.project))},e}(),it=rt,ot=function(e){function t(t,n){e.call(this,t),this.project=n,this.active=0,this.values=[],this.observables=[]}return et(t,e),t.prototype._next=function(e){this.values.push(tt),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(Xe.subscribeToResult(this,r,r,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){var o=this.values,s=o[n],l=this.toRespond?s===tt?--this.toRespond:this.toRespond:0;o[n]=t,0===l&&(this.project?this._tryProject(o):this.destination.next(o.slice()))},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(Fe.OuterSubscriber),st=ot,lt={combineLatest:nt,CombineLatestOperator:it,CombineLatestSubscriber:st},ct=g,at={combineLatest:ct};pe.Observable.combineLatest=at.combineLatest;var ut=T&&T.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},pt=(function(e){function t(t,n,r){e.call(this,t),this.observables=n,this.project=r,this.toRespond=[];var i=n.length;this.values=new Array(i);for(var o=0;o<i;o++)this.toRespond.push(o);for(var o=0;o<i;o++){var s=n[o];this.add(Xe.subscribeToResult(this,s,s,o))}}ut(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.values[n]=t;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)}}(Fe.OuterSubscriber),{provide:n.NG_VALUE_ACCESSOR,useExisting:t.forwardRef(function(){return ht}),multi:!0}),ht=function(){function e(e,n,r,i){var o=this;this.changeDetectorRef=n,this.elementRef=r,this.renderer=i,this.clearable=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.multiple=!1,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.isOpen=!1,this.isFocused=!1,this.isDisabled=!1,this.itemsList=new I,this.viewPortItems=[],this.isLoading=!1,this.filterValue=null,this._items$=new Ee,this._writeValue$=new Ee,this._checkWriteValue=!1,this._writeValueHandler$=null,this.onChange=function(e){},this.onTouched=function(){},this.disposeDocumentClickListener=function(){},this.clearItem=function(e){return o.unselect(e)},this.mergeConfig(e),this.handleWriteValue()}return Object.defineProperty(e.prototype,"single",{get:function(){return!this.multiple},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filtered",{get:function(){return!!this.filterValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.itemsList.items},set:function(e){this.setItems(e||[]),this._items$.next(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedItems",{get:function(){return this.itemsList.value},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.handleDocumentClick(),this.bindLabel=this.bindLabel||"label"},e.prototype.ngOnChanges=function(e){e.multiple&&this.itemsList.setMultiple(e.multiple.currentValue)},e.prototype.ngOnDestroy=function(){this.changeDetectorRef.detach(),this.disposeDocumentClickListener(),this._writeValueHandler$.unsubscribe()},e.prototype.handleKeyDown=function(e){if(O[e.which])switch(e.which){case O.ArrowDown:this.handleArrowDown(e);break;case O.ArrowUp:this.handleArrowUp(e);break;case O.Space:this.handleSpace(e);break;case O.Enter:this.handleEnter(e);break;case O.Tab:this.handleTab(e);break;case O.Esc:this.close();break;case O.Backspace:this.handleBackspace()}},e.prototype.handleArrowClick=function(e){e.stopPropagation(),this.isOpen?this.close():this.open()},e.prototype.handleSelectClick=function(e){e.stopPropagation(),this.open()},e.prototype.handleClearClick=function(e){e.stopPropagation(),this.clear()},e.prototype.clear=function(){this.clearable&&(this.itemsList.clearSelected(),this.clearSearch(),this.notifyModelChanged(),this.isTypeahead()&&this.typeahead.next(this.filterValue))},e.prototype.writeValue=function(e){this._checkWriteValue=!0,this._writeValue$.next(e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.isDisabled=e},e.prototype.open=function(){this.isDisabled||this.isOpen||(this.isOpen=!0,this.itemsList.markItem(),this.scrollToMarked(),this.focusSearchInput(),this.openEvent.emit())},e.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.clearSearch(),this.closeEvent.emit())},e.prototype.toggle=function(e){!e||e.disabled||this.isDisabled||(this.multiple&&e.selected?this.unselect(e):this.select(e))},e.prototype.select=function(e){this._checkWriteValue=!1,e.selected||(this.itemsList.select(e),this.clearSearch(),this.updateModel()),this.single&&this.close()},e.prototype.unselect=function(e){this.itemsList.unselect(e),this.updateModel()},e.prototype.showPlaceholder=function(){return this.placeholder&&!this.isValueSet(this.selectedItems)&&!this.filterValue},e.prototype.showClear=function(){return this.clearable&&(this.isValueSet(this.selectedItems)||this.filterValue)&&!this.isDisabled},e.prototype.showFilter=function(){return!this.isDisabled},e.prototype.showNoItemsFound=function(){var e=0===this.itemsList.filteredItems.length;return e&&!this.isTypeahead()||e&&this.isTypeahead()&&this.filterValue&&!this.isLoading},e.prototype.showTypeToSearch=function(){return 0===this.itemsList.filteredItems.length&&this.isTypeahead()&&!this.filterValue&&!this.isLoading},e.prototype.onFilter=function(e){this.isOpen||this.open(),this.filterValue=e.target.value,this.isTypeahead()?(this.isLoading=!0,this.typeahead.next(this.filterValue)):this.itemsList.filter(this.filterValue,this.bindLabel)},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.handleWriteValue=function(){var e=this;this._writeValueHandler$=ue.combineLatest(this._items$,this._writeValue$).subscribe(function(t){if(e._checkWriteValue){var n=t[1];e.validateWriteValue(n),e.itemsList.clearSelected(),n&&(e.multiple?n.forEach(function(t){e.selectWriteValue(t)}):e.selectWriteValue(n)),e.detectChanges()}})},e.prototype.setItems=function(e){this.itemsList.setItems(e),this.isTypeahead()&&(this.isLoading=!1,this.itemsList.markItem())},e.prototype.handleDocumentClick=function(){var e=this,t=function(t){if(!e.elementRef.nativeElement.contains(t.target)){var n=e.getDropdownMenu();n&&n.contains(t.target)||(e.isFocused&&e.onInputBlur(),e.isOpen&&e.close())}};this.disposeDocumentClickListener=this.renderer.listen("document","click",t)},e.prototype.validateWriteValue=function(e){var t=this;if(e){var n=function(e){if(e instanceof Object&&t.bindValue)throw new Error("Binding object with bindValue is not allowed.")};if(this.multiple){if(!Array.isArray(e))throw new Error("Multiple select model should be array.");e.forEach(function(e){return n(e)})}else n(e)}},e.prototype.selectWriteValue=function(e){var t=this.itemsList.findItem(e,this.bindLabel,this.bindValue);t&&this.itemsList.select(t)},e.prototype.updateModel=function(){this.notifyModelChanged(),this.changeDetectorRef.markForCheck()},e.prototype.clearSearch=function(){this.filterValue=null,this.itemsList.clearFilter()},e.prototype.focusSearchInput=function(){var e=this;setTimeout(function(){e.filterInput.nativeElement.focus()})},e.prototype.scrollToMarked=function(){this.dropdownList.scrollInto(this.itemsList.markedItem)},e.prototype.handleTab=function(e){this.isOpen&&this.close()},e.prototype.handleEnter=function(e){this.isOpen&&this.toggle(this.itemsList.markedItem),e.preventDefault()},e.prototype.handleSpace=function(e){this.isOpen||(this.open(),e.preventDefault())},e.prototype.handleArrowDown=function(e){this.isOpen?(this.itemsList.markNextItem(),this.scrollToMarked()):this.open(),e.preventDefault()},e.prototype.handleArrowUp=function(e){this.itemsList.markPreviousItem(),this.scrollToMarked(),e.preventDefault()},e.prototype.handleBackspace=function(){this.filterValue||(this.multiple?(this.itemsList.unselectLastItem(),this.updateModel()):this.clear())},e.prototype.notifyModelChanged=function(){var e=this,t=this.value;if(t)if(this.bindValue){var n=Array.isArray(t)?t.map(function(t){return t[e.bindValue]}):t[this.bindValue];this.onChange(n)}else this.onChange(t);else this.onChange(null);this.changeEvent.emit(t)},e.prototype.getDropdownMenu=function(){return this.isOpen&&this.dropdownList?this.elementRef.nativeElement.querySelector(".ng-menu-outer"):null},e.prototype.isTypeahead=function(){return this.typeahead&&this.typeahead.observers.length>0},e.prototype.detectChanges=function(){this.changeDetectorRef.destroyed||this.changeDetectorRef.detectChanges()},Object.defineProperty(e.prototype,"value",{get:function(){return this.multiple?this.selectedItems:this.selectedItems[0]||null},enumerable:!0,configurable:!0}),e.prototype.isValueSet=function(e){return!!e&&e.length>0},e.prototype.mergeConfig=function(e){e&&(this.notFoundText=e.notFoundText||this.notFoundText,this.typeToSearchText=e.typeToSearchText||this.typeToSearchText)},e.decorators=[{type:t.Component,args:[{selector:"ng-select",template:'<div (click)="handleSelectClick($event)" class="ng-control"> <div class="ng-value-container"> <div class="ng-placeholder" *ngIf="showPlaceholder()">{{placeholder}}</div> <ng-template #defaultLabelTemplate let-item="item"> <div class="ng-value-wrapper default"> <span class="ng-value-icon left" (click)="unselect(item); $event.stopPropagation()" aria-hidden="true">×</span> <span class="ng-value-label">{{item[bindLabel]}}</span> </div> </ng-template> <div class="ng-value" *ngFor="let item of selectedItems"> <ng-template [ngTemplateOutlet]="labelTemplate || defaultLabelTemplate" [ngTemplateOutletContext]="{ item: item, clear: clearItem }"> </ng-template> </div> <div *ngIf="showFilter()" class="ng-input"> <input #filterInput [value]="filterValue" (input)="onFilter($event)" (focus)="onInputFocus($event)" (blur)="onInputBlur($event)" role="combobox" aria-expanded="false" aria-owns="" aria-haspopup="false"> </div> </div> <spinner class="ng-spinner-zone" *ngIf="isLoading"></spinner> <span *ngIf="showClear()" (click)="handleClearClick($event)" class="ng-clear-zone" title="Clear all" aria-label="Clear all"> <span class="ng-clear" aria-hidden="true">×</span> </span> <span (click)="handleArrowClick($event)" class="ng-arrow-zone"> <span class="ng-arrow"></span> </span> </div> <div class="ng-menu-outer"> <virtual-scroll role="listbox" class="ng-menu" [bufferAmount]="4" [items]="itemsList.filteredItems" (update)="viewPortItems = $event"> <div class="ng-option" role="option" (click)="toggle(item)" (mousedown)="$event.preventDefault()" (mouseover)="onItemHover(item)" *ngFor="let item of viewPortItems" [class.disabled]="item.disabled" [class.selected]="item.selected" [class.marked]="item === itemsList.markedItem"> <ng-template #defaultOptionTemplate> <span>{{item[bindLabel]}}</span> </ng-template> <ng-template [ngTemplateOutlet]="optionTemplate || defaultOptionTemplate" [ngTemplateOutletContext]="{ item: item, index: item.index }"> </ng-template> </div> </virtual-scroll> <div class="ng-menu" *ngIf="showNoItemsFound()"> <div class="ng-option disabled"> {{notFoundText}} </div> </div> <div class="ng-menu" *ngIf="showTypeToSearch()"> <div class="ng-option disabled"> {{typeToSearchText}} </div> </div> </div> ',styles:["ng-select { position: relative; display: block; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } ng-select div, ng-select input, ng-select span, ng-select virtual-scroll { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } ng-select virtual-scroll { display: block; height: auto; } ng-select.opened > .ng-control { border-bottom-right-radius: 0; border-bottom-left-radius: 0; background: #fff; border-color: #b3b3b3 #ccc #d9d9d9; } ng-select.opened > .ng-control .ng-arrow { top: -2px; border-color: transparent transparent #999; border-width: 0 5px 5px; } ng-select.opened > .ng-control .ng-arrow:hover { border-color: transparent transparent #666; } ng-select.opened .ng-menu-outer { visibility: visible; } ng-select:not(.opened) .ng-control .ng-value-container .ng-input { opacity: 0; } ng-select.focused:not(.opened) > .ng-control { border-color: #007eff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 126, 255, 0.1); } ng-select.disabled { pointer-events: none; } ng-select.disabled > .ng-control { background-color: #f9f9f9; } ng-select .ng-control { background-color: #fff; border-radius: 4px; border: 1px solid #ccc; color: #333; cursor: default; display: flex; align-items: center; border-spacing: 0; border-collapse: separate; min-height: 36px; outline: none; overflow: hidden; position: relative; width: 100%; } ng-select .ng-control:hover { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); } ng-select .ng-control .ng-value-container { display: flex; flex: 1; align-items: center; padding-left: 10px; } ng-select .ng-control .ng-value-container .ng-placeholder { color: #aaa; } ng-select .ng-control .ng-value-container .ng-input > input { min-width: 5px; box-sizing: content-box; background: none transparent; border: 0 none; box-shadow: none; outline: none; cursor: default; width: 100%; } ng-select.ng-single.filtered .ng-control .ng-value-container .ng-value { visibility: hidden; } ng-select.ng-single .ng-control .ng-value-container { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } ng-select.ng-single .ng-control .ng-value-container .ng-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } ng-select.ng-single .ng-control .ng-value-container .ng-value .ng-value-wrapper { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } ng-select.ng-single .ng-control .ng-value-container .ng-value .ng-value-wrapper .ng-value-icon { display: none; } ng-select.ng-single .ng-control .ng-value-container .ng-input { position: absolute; left: 0; padding-left: 10px; padding-right: 50px; width: 100%; } ng-select.ng-multiple.disabled > .ng-control .ng-value-container .ng-value .ng-value-wrapper.default { background-color: #f9f9f9; border: 1px solid #e3e3e3; } ng-select.ng-multiple.disabled > .ng-control .ng-value-container .ng-value .ng-value-wrapper.default .ng-value-icon { display: none; } ng-select.ng-multiple .ng-control .ng-value-container { padding-top: 5px; flex-wrap: wrap; padding-left: 7px; } ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder { position: absolute; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value { font-size: 0.9em; padding-right: 5px; padding-bottom: 5px; white-space: nowrap; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-wrapper { display: flex; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-wrapper.default { background-color: #f5faff; border-radius: 2px; border: 1px solid #c2e0ff; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-wrapper.default .ng-value-icon:hover { background-color: #d8eafd; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-wrapper.default .ng-value-icon.left { border-right: 1px solid #c2e0ff; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-wrapper.default .ng-value-icon.right { border-left: 1px solid #c2e0ff; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-wrapper .ng-value-label { padding: 0 5px; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-wrapper .ng-value-icon { padding: 0 5px; cursor: pointer; } ng-select.ng-multiple .ng-control .ng-value-container .ng-input { flex: 1; padding-bottom: 5px; padding-left: 3px; } ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder { padding-bottom: 5px; padding-left: 3px; } ng-select .ng-menu-outer { visibility: hidden; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: #fff; border: 1px solid #ccc; border-top-color: #e6e6e6; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); box-sizing: border-box; margin-top: -1px; max-height: 242px; position: absolute; top: 100%; width: 100%; z-index: 1; -webkit-overflow-scrolling: touch; } ng-select .ng-menu { max-height: 240px; overflow-y: auto; } ng-select .ng-option { box-sizing: border-box; background-color: #fff; color: #666666; cursor: pointer; display: block; padding: 8px 10px; } ng-select .ng-option:last-child { border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } ng-select .ng-option.selected { background-color: #f5faff; color: #333; } ng-select .ng-option.marked { background-color: #ebf5ff; color: #333; } ng-select .ng-option.disabled { color: #cccccc; cursor: default; } ng-select .ng-clear-zone { -webkit-animation: Select-animation-fadeIn 200ms; -o-animation: Select-animation-fadeIn 200ms; animation: Select-animation-fadeIn 200ms; color: #999; cursor: pointer; position: relative; width: 17px; } ng-select .ng-clear-zone .ng-clear { display: inline-block; font-size: 18px; line-height: 1; } ng-select .ng-clear-zone .ng-clear:hover { color: #D0021B; } ng-select .ng-spinner-zone { cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 25px; padding-right: 5px; padding-top: 5px; } ng-select .ng-arrow-zone { cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 25px; padding-right: 5px; } ng-select .ng-arrow-zone .ng-arrow { border-color: #999 transparent transparent; border-style: solid; border-width: 5px 5px 2.5px; display: inline-block; height: 0; width: 0; position: relative; } ng-select .ng-arrow-zone .ng-arrow:hover { border-top-color: #666; } "],providers:[pt],encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{role:"dropdown"}}]}],e.ctorParameters=function(){return[{type:E,decorators:[{type:t.Optional}]},{type:t.ChangeDetectorRef},{type:t.ElementRef},{type:t.Renderer2}]},e.propDecorators={optionTemplate:[{type:t.ContentChild,args:[y,{read:t.TemplateRef}]}],labelTemplate:[{type:t.ContentChild,args:[v,{read:t.TemplateRef}]}],dropdownList:[{type:t.ViewChild,args:[w]}],filterInput:[{type:t.ViewChild,args:["filterInput"]}],bindLabel:[{type:t.Input}],bindValue:[{type:t.Input}],clearable:[{type:t.Input}],placeholder:[{type:t.Input}],notFoundText:[{type:t.Input}],typeToSearchText:[{type:t.Input}],typeahead:[{type:t.Input}],multiple:[{type:t.Input},{type:t.HostBinding,args:["class.ng-multiple"]}],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"]}],single:[{type:t.HostBinding,args:["class.ng-single"]}],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"]}],items:[{type:t.Input}],handleKeyDown:[{type:t.HostListener,args:["keydown",["$event"]]}]},e}(),dt=function(){function e(){}return e.decorators=[{type:t.Component,args:[{selector:"spinner",template:'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n width="20px" height="20px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">\n <path fill="#777" d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z">\n <animateTransform attributeType="xml"\n attributeName="transform"\n type="rotate"\n from="0 25 25"\n to="360 25 25"\n dur="0.6s"\n repeatCount="indefinite"/>\n </path>\n </svg>'}]}],e.ctorParameters=function(){return[]},e}(),ft=function(){function e(){}return e.forRoot=function(e){return m(e)},e.forChild=function(e){return m(e)},e.decorators=[{type:t.NgModule,args:[{declarations:[ht,y,v,dt],imports:[n.FormsModule,r.CommonModule,x],exports:[ht,y,v]}]}],e.ctorParameters=function(){return[]},e}();e.NgSelectComponent=ht,e.NgSelectModule=ft,e.NgSelectConfig=E,e.ɵb=v,e.ɵa=y,e.ɵe=dt,e.ɵc=w,e.ɵd=x,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ng-select.umd.min.js.map |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":3,"metadata":{"NgSelectComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ng-select","template":"<div (click)=\"handleSelectClick($event)\" class=\"as-control\"> <span class=\"as-multi-value-wrapper\"> <span class=\"as-placeholder\" *ngIf=\"showPlaceholder()\">{{placeholder}}</span> <ng-container *ngIf=\"!multiple;else multipleValue\"> <div class=\"as-value\" *ngIf=\"showValue()\"> <span class=\"as-value-label\" role=\"option\" aria-selected=\"true\"> <ng-template *ngIf=\"labelTemplate\" [ngTemplateOutlet]=\"labelTemplate\" [ngTemplateOutletContext]=\"getDisplayTemplateContext()\"> </ng-template> <span *ngIf=\"!labelTemplate\">{{getLabelValue(value)}}</span> </span> </div> </ng-container> <ng-template #multipleValue> <div class=\"as-value\" *ngFor=\"let item of value\"> <span class=\"as-clear\" (click)=\"unselect(item)\" aria-hidden=\"true\">×</span> <span class=\"as-value-label\" aria-selected=\"true\">{{getLabelValue(item)}}</span> </div> </ng-template> <div *ngIf=\"showFilter()\" class=\"as-input\"> <input #filterInput [value]=\"filterValue\" (input)=\"onFilter($event)\" (focus)=\"onInputFocus($event)\" (blur)=\"onInputBlur($event)\" role=\"combobox\" aria-expanded=\"false\" aria-owns=\"\" aria-haspopup=\"false\"> </div> </span> <spinner class=\"as-spinner-zone\" *ngIf=\"isLoading\"></spinner> <span *ngIf=\"showClear()\" (click)=\"handleClearClick($event)\" class=\"as-clear-zone\" title=\"Clear all\" aria-label=\"Clear all\"> <span class=\"as-clear\" aria-hidden=\"true\">×</span> </span> <span (click)=\"handleArrowClick($event)\" class=\"as-arrow-zone\"> <span class=\"as-arrow\"></span> </span> </div> <div class=\"as-menu-outer\"> <virtual-scroll role=\"listbox\" class=\"as-menu\" [bufferAmount]=\"4\" [items]=\"itemsList.filteredItems\" (update)=\"viewPortItems = $event\"> <div class=\"as-option\" role=\"option\" (click)=\"toggle(item)\" (mousedown)=\"$event.preventDefault()\" (mouseover)=\"onItemHover(item)\" *ngFor=\"let item of viewPortItems\" [class.disabled]=\"item.disabled\" [class.selected]=\"item.selected\" [class.marked]=\"item === itemsList.markedItem\"> <span *ngIf=\"!optionTemplate\">{{item[bindLabel]}}</span> <ng-template *ngIf=\"optionTemplate\" [ngTemplateOutlet]=\"optionTemplate\" [ngTemplateOutletContext]=\"{ item: item, index: item.index }\"> </ng-template> </div> </virtual-scroll> <div class=\"as-menu\" *ngIf=\"showNoItemsFound()\"> <div class=\"as-option disabled\"> {{notFoundText}} </div> </div> <div class=\"as-menu\" *ngIf=\"showTypeToSearch()\"> <div class=\"as-option disabled\"> {{typeToSearchText}} </div> </div> </div> ","styles":["ng-select { position: relative; display: block; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } ng-select div, ng-select input, ng-select span, ng-select virtual-scroll { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } ng-select virtual-scroll { display: block; height: auto; } ng-select.opened > .as-control { border-bottom-right-radius: 0; border-bottom-left-radius: 0; background: #fff; border-color: #b3b3b3 #ccc #d9d9d9; } ng-select.opened > .as-control .as-arrow { top: -2px; border-color: transparent transparent #999; border-width: 0 5px 5px; } ng-select.opened > .as-control .as-arrow:hover { border-color: transparent transparent #666; } ng-select.opened .as-menu-outer { visibility: visible; } ng-select.focused:not(.opened) > .as-control { border-color: #007eff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 126, 255, 0.1); } ng-select.disabled > .as-control { background-color: #f9f9f9; } ng-select .as-control { background-color: #fff; border-radius: 4px; border: 1px solid #ccc; color: #333; cursor: default; display: table; border-spacing: 0; border-collapse: separate; height: 36px; outline: none; overflow: hidden; position: relative; width: 100%; } ng-select .as-control:hover { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); } ng-select .as-placeholder, ng-select.as-single > .as-control .as-value { bottom: 0; color: #aaa; left: 0; line-height: 34px; padding-left: 10px; padding-right: 10px; position: absolute; right: 0; top: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } ng-select .as-placeholder .as-value-label, ng-select.as-single > .as-control .as-value .as-value-label { color: #333; } ng-select.as-multiple.disabled > .as-control .as-value { background-color: #f9f9f9; border: 1px solid #e3e3e3; } ng-select.as-multiple.disabled > .as-control .as-value .as-clear { display: none; } ng-select.as-multiple > .as-control .as-value { background-color: #f5faff; border-radius: 2px; border: 1px solid #c2e0ff; display: inline-block; font-size: 0.9em; line-height: 1.4; margin-left: 5px; margin-top: 5px; vertical-align: top; } ng-select.as-multiple > .as-control .as-value .as-clear { cursor: pointer; border-bottom-right-radius: 2px; border-top-right-radius: 2px; border-right: 1px solid #c2e0ff; padding: 1px 5px 3px; } ng-select.as-multiple > .as-control .as-value .as-clear:hover { background-color: #d8eafd; } ng-select.as-multiple > .as-control .as-value .as-value-label { border-bottom-right-radius: 2px; border-top-right-radius: 2px; cursor: default; padding: 2px 5px; } ng-select .as-input { height: 34px; padding-left: 10px; padding-right: 10px; vertical-align: middle; display: inline-block; } ng-select .as-input > input { min-width: 5px; box-sizing: content-box; background: none transparent; border: 0 none; box-shadow: none; cursor: default; display: inline-block; font-family: inherit; font-size: inherit; margin: 0; outline: none; line-height: 14px; /* For IE 8 compatibility */ padding: 8px 0 12px; /* For IE 8 compatibility */ -webkit-appearance: none; } ng-select .as-menu-outer { visibility: hidden; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: #fff; border: 1px solid #ccc; border-top-color: #e6e6e6; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); box-sizing: border-box; margin-top: -1px; max-height: 242px; position: absolute; top: 100%; width: 100%; z-index: 1; -webkit-overflow-scrolling: touch; } ng-select .as-menu { max-height: 240px; overflow-y: auto; } ng-select .as-option { box-sizing: border-box; background-color: #fff; color: #666666; cursor: pointer; display: block; padding: 8px 10px; } ng-select .as-option:last-child { border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } ng-select .as-option.selected { background-color: #f5faff; color: #333; } ng-select .as-option.marked { background-color: #ebf5ff; color: #333; } ng-select .as-option.disabled { color: #cccccc; cursor: default; } ng-select .as-clear-zone { -webkit-animation: Select-animation-fadeIn 200ms; -o-animation: Select-animation-fadeIn 200ms; animation: Select-animation-fadeIn 200ms; color: #999; cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 17px; } ng-select .as-clear-zone .as-clear { display: inline-block; font-size: 18px; line-height: 1; } ng-select .as-clear-zone .as-clear:hover { color: #D0021B; } ng-select .as-spinner-zone { cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 25px; padding-right: 5px; padding-top: 5px; } ng-select .as-arrow-zone { cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 25px; padding-right: 5px; } ng-select .as-arrow-zone .as-arrow { border-color: #999 transparent transparent; border-style: solid; border-width: 5px 5px 2.5px; display: inline-block; height: 0; width: 0; position: relative; } ng-select .as-arrow-zone .as-arrow:hover { border-top-color: #666; } "],"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"}}]}],"members":{"optionTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵa"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef"}}]}]}],"labelTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵb"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef"}}]}]}],"dropdownList":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":[{"__symbolic":"reference","name":"ɵc"}]}]}],"filterInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["filterInput"]}]}],"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"}}]}],"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"}}]}],"typeahead":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"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.as-multiple"]}]}],"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"]}]}],"single":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.as-single"]}]}],"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"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],null,null,null],"parameters":[{"__symbolic":"reference","name":"NgSelectConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"}]}],"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__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"}],"handleSelectClick":[{"__symbolic":"method"}],"handleClearClick":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"getLabelValue":[{"__symbolic":"method"}],"getDisplayTemplateContext":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"unselect":[{"__symbolic":"method"}],"showPlaceholder":[{"__symbolic":"method"}],"showValue":[{"__symbolic":"method"}],"showClear":[{"__symbolic":"method"}],"showFilter":[{"__symbolic":"method"}],"showNoItemsFound":[{"__symbolic":"method"}],"showTypeToSearch":[{"__symbolic":"method"}],"onFilter":[{"__symbolic":"method"}],"onInputFocus":[{"__symbolic":"method"}],"onInputBlur":[{"__symbolic":"method"}],"onItemHover":[{"__symbolic":"method"}],"handleWriteValue":[{"__symbolic":"method"}],"setItems":[{"__symbolic":"method"}],"handleDocumentClick":[{"__symbolic":"method"}],"validateWriteValue":[{"__symbolic":"method"}],"selectWriteValue":[{"__symbolic":"method"}],"updateModel":[{"__symbolic":"method"}],"clearSearch":[{"__symbolic":"method"}],"focusSearchInput":[{"__symbolic":"method"}],"scrollToMarked":[{"__symbolic":"method"}],"handleTab":[{"__symbolic":"method"}],"handleEnter":[{"__symbolic":"method"}],"handleSpace":[{"__symbolic":"method"}],"handleArrowDown":[{"__symbolic":"method"}],"handleArrowUp":[{"__symbolic":"method"}],"handleBackspace":[{"__symbolic":"method"}],"notifyModelChanged":[{"__symbolic":"method"}],"getDropdownMenu":[{"__symbolic":"method"}],"isTypeahead":[{"__symbolic":"method"}],"detectChanges":[{"__symbolic":"method"}],"isValueSet":[{"__symbolic":"method"}],"mergeConfig":[{"__symbolic":"method"}]}},"NgSelectModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵe"}],"imports":[{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule"},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","name":"ɵd"}],"exports":[{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Reference to a non-exported function","line":38,"character":9,"context":{"name":"provideModule"},"module":"./src/ng-select.module"}},"forChild":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Reference to a non-exported function","line":38,"character":9,"context":{"name":"provideModule"},"module":"./src/ng-select.module"}}}},"NgOption":{"__symbolic":"interface"},"NgSelectConfig":{"__symbolic":"class","members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng-option-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng-label-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"virtual-scroll,[virtualScroll]","exportAs":"virtualScroll","template":"\n <div *ngIf=\"enabled\" class=\"total-padding\" [style.height]=\"scrollHeight + 'px'\"></div>\n <div #content\n [class.scrollable-content]=\"enabled\"\n [style.transform]=\"enabled ? 'translateY(' + topPadding + 'px)' : 'none'\"\n [style.webkitTransform]=\"enabled ? 'translateY(' + topPadding + 'px)' : 'none'\">\n <ng-content></ng-content>\n </div>\n ","host":{"[style.overflow-y]":"parentScroll ? 'hidden' : 'auto'"},"styles":["\n :host {\n overflow: hidden;\n position: relative;\n display: block;\n -webkit-overflow-scrolling: touch;\n }\n\n .scrollable-content {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n }\n\n .total-padding {\n width: 1px;\n opacity: 0;\n }\n "]}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"scrollbarWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"scrollbarHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"childWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"childHeight":[{"__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"}}]}],"update":[{"__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"}}]}]}],"containerElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":["container"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"}]}],"handleScroll":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"refresh":[{"__symbolic":"method"}],"scrollInto":[{"__symbolic":"method"}],"countItemsPerRow":[{"__symbolic":"method"}],"getElementsOffset":[{"__symbolic":"method"}],"calculateDimensions":[{"__symbolic":"method"}],"calculateItems":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"exports":[{"__symbolic":"reference","name":"ɵc"}],"declarations":[{"__symbolic":"reference","name":"ɵc"}]}]}],"members":{}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"spinner","template":"\n <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n width=\"20px\" height=\"20px\" viewBox=\"0 0 50 50\" style=\"enable-background:new 0 0 50 50;\" xml:space=\"preserve\">\n <path fill=\"#777\" d=\"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z\">\n <animateTransform attributeType=\"xml\"\n attributeName=\"transform\"\n type=\"rotate\"\n from=\"0 25 25\"\n to=\"360 25 25\"\n dur=\"0.6s\"\n repeatCount=\"indefinite\"/>\n </path>\n </svg>"}]}],"members":{}}},"origins":{"NgSelectComponent":"./src/ng-select.component","NgSelectModule":"./src/ng-select.module","NgOption":"./src/ng-select.types","NgSelectConfig":"./src/ng-select.types","ɵa":"./src/ng-templates.directive","ɵb":"./src/ng-templates.directive","ɵc":"./src/virtual-scroll.component","ɵd":"./src/virtual-scroll.component","ɵe":"./src/spinner.component"},"importAs":"@ng-select/ng-select"} | ||
{"__symbolic":"module","version":3,"metadata":{"NgSelectComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ng-select","template":"<div (click)=\"handleSelectClick($event)\" class=\"ng-control\"> <div class=\"ng-value-container\"> <div class=\"ng-placeholder\" *ngIf=\"showPlaceholder()\">{{placeholder}}</div> <ng-template #defaultLabelTemplate let-item=\"item\"> <div class=\"ng-value-wrapper default\"> <span class=\"ng-value-icon left\" (click)=\"unselect(item); $event.stopPropagation()\" aria-hidden=\"true\">×</span> <span class=\"ng-value-label\">{{item[bindLabel]}}</span> </div> </ng-template> <div class=\"ng-value\" *ngFor=\"let item of selectedItems\"> <ng-template [ngTemplateOutlet]=\"labelTemplate || defaultLabelTemplate\" [ngTemplateOutletContext]=\"{ item: item, clear: clearItem }\"> </ng-template> </div> <div *ngIf=\"showFilter()\" class=\"ng-input\"> <input #filterInput [value]=\"filterValue\" (input)=\"onFilter($event)\" (focus)=\"onInputFocus($event)\" (blur)=\"onInputBlur($event)\" role=\"combobox\" aria-expanded=\"false\" aria-owns=\"\" aria-haspopup=\"false\"> </div> </div> <spinner class=\"ng-spinner-zone\" *ngIf=\"isLoading\"></spinner> <span *ngIf=\"showClear()\" (click)=\"handleClearClick($event)\" class=\"ng-clear-zone\" title=\"Clear all\" aria-label=\"Clear all\"> <span class=\"ng-clear\" aria-hidden=\"true\">×</span> </span> <span (click)=\"handleArrowClick($event)\" class=\"ng-arrow-zone\"> <span class=\"ng-arrow\"></span> </span> </div> <div class=\"ng-menu-outer\"> <virtual-scroll role=\"listbox\" class=\"ng-menu\" [bufferAmount]=\"4\" [items]=\"itemsList.filteredItems\" (update)=\"viewPortItems = $event\"> <div class=\"ng-option\" role=\"option\" (click)=\"toggle(item)\" (mousedown)=\"$event.preventDefault()\" (mouseover)=\"onItemHover(item)\" *ngFor=\"let item of viewPortItems\" [class.disabled]=\"item.disabled\" [class.selected]=\"item.selected\" [class.marked]=\"item === itemsList.markedItem\"> <ng-template #defaultOptionTemplate> <span>{{item[bindLabel]}}</span> </ng-template> <ng-template [ngTemplateOutlet]=\"optionTemplate || defaultOptionTemplate\" [ngTemplateOutletContext]=\"{ item: item, index: item.index }\"> </ng-template> </div> </virtual-scroll> <div class=\"ng-menu\" *ngIf=\"showNoItemsFound()\"> <div class=\"ng-option disabled\"> {{notFoundText}} </div> </div> <div class=\"ng-menu\" *ngIf=\"showTypeToSearch()\"> <div class=\"ng-option disabled\"> {{typeToSearchText}} </div> </div> </div> ","styles":["ng-select { position: relative; display: block; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } ng-select div, ng-select input, ng-select span, ng-select virtual-scroll { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } ng-select virtual-scroll { display: block; height: auto; } ng-select.opened > .ng-control { border-bottom-right-radius: 0; border-bottom-left-radius: 0; background: #fff; border-color: #b3b3b3 #ccc #d9d9d9; } ng-select.opened > .ng-control .ng-arrow { top: -2px; border-color: transparent transparent #999; border-width: 0 5px 5px; } ng-select.opened > .ng-control .ng-arrow:hover { border-color: transparent transparent #666; } ng-select.opened .ng-menu-outer { visibility: visible; } ng-select:not(.opened) .ng-control .ng-value-container .ng-input { opacity: 0; } ng-select.focused:not(.opened) > .ng-control { border-color: #007eff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 126, 255, 0.1); } ng-select.disabled { pointer-events: none; } ng-select.disabled > .ng-control { background-color: #f9f9f9; } ng-select .ng-control { background-color: #fff; border-radius: 4px; border: 1px solid #ccc; color: #333; cursor: default; display: flex; align-items: center; border-spacing: 0; border-collapse: separate; min-height: 36px; outline: none; overflow: hidden; position: relative; width: 100%; } ng-select .ng-control:hover { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); } ng-select .ng-control .ng-value-container { display: flex; flex: 1; align-items: center; padding-left: 10px; } ng-select .ng-control .ng-value-container .ng-placeholder { color: #aaa; } ng-select .ng-control .ng-value-container .ng-input > input { min-width: 5px; box-sizing: content-box; background: none transparent; border: 0 none; box-shadow: none; outline: none; cursor: default; width: 100%; } ng-select.ng-single.filtered .ng-control .ng-value-container .ng-value { visibility: hidden; } ng-select.ng-single .ng-control .ng-value-container { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } ng-select.ng-single .ng-control .ng-value-container .ng-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } ng-select.ng-single .ng-control .ng-value-container .ng-value .ng-value-wrapper { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } ng-select.ng-single .ng-control .ng-value-container .ng-value .ng-value-wrapper .ng-value-icon { display: none; } ng-select.ng-single .ng-control .ng-value-container .ng-input { position: absolute; left: 0; padding-left: 10px; padding-right: 50px; width: 100%; } ng-select.ng-multiple.disabled > .ng-control .ng-value-container .ng-value .ng-value-wrapper.default { background-color: #f9f9f9; border: 1px solid #e3e3e3; } ng-select.ng-multiple.disabled > .ng-control .ng-value-container .ng-value .ng-value-wrapper.default .ng-value-icon { display: none; } ng-select.ng-multiple .ng-control .ng-value-container { padding-top: 5px; flex-wrap: wrap; padding-left: 7px; } ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder { position: absolute; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value { font-size: 0.9em; padding-right: 5px; padding-bottom: 5px; white-space: nowrap; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-wrapper { display: flex; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-wrapper.default { background-color: #f5faff; border-radius: 2px; border: 1px solid #c2e0ff; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-wrapper.default .ng-value-icon:hover { background-color: #d8eafd; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-wrapper.default .ng-value-icon.left { border-right: 1px solid #c2e0ff; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-wrapper.default .ng-value-icon.right { border-left: 1px solid #c2e0ff; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-wrapper .ng-value-label { padding: 0 5px; } ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-wrapper .ng-value-icon { padding: 0 5px; cursor: pointer; } ng-select.ng-multiple .ng-control .ng-value-container .ng-input { flex: 1; padding-bottom: 5px; padding-left: 3px; } ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder { padding-bottom: 5px; padding-left: 3px; } ng-select .ng-menu-outer { visibility: hidden; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: #fff; border: 1px solid #ccc; border-top-color: #e6e6e6; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); box-sizing: border-box; margin-top: -1px; max-height: 242px; position: absolute; top: 100%; width: 100%; z-index: 1; -webkit-overflow-scrolling: touch; } ng-select .ng-menu { max-height: 240px; overflow-y: auto; } ng-select .ng-option { box-sizing: border-box; background-color: #fff; color: #666666; cursor: pointer; display: block; padding: 8px 10px; } ng-select .ng-option:last-child { border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } ng-select .ng-option.selected { background-color: #f5faff; color: #333; } ng-select .ng-option.marked { background-color: #ebf5ff; color: #333; } ng-select .ng-option.disabled { color: #cccccc; cursor: default; } ng-select .ng-clear-zone { -webkit-animation: Select-animation-fadeIn 200ms; -o-animation: Select-animation-fadeIn 200ms; animation: Select-animation-fadeIn 200ms; color: #999; cursor: pointer; position: relative; width: 17px; } ng-select .ng-clear-zone .ng-clear { display: inline-block; font-size: 18px; line-height: 1; } ng-select .ng-clear-zone .ng-clear:hover { color: #D0021B; } ng-select .ng-spinner-zone { cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 25px; padding-right: 5px; padding-top: 5px; } ng-select .ng-arrow-zone { cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 25px; padding-right: 5px; } ng-select .ng-arrow-zone .ng-arrow { border-color: #999 transparent transparent; border-style: solid; border-width: 5px 5px 2.5px; display: inline-block; height: 0; width: 0; position: relative; } ng-select .ng-arrow-zone .ng-arrow:hover { border-top-color: #666; } "],"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"}}]}],"members":{"optionTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵa"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef"}}]}]}],"labelTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":[{"__symbolic":"reference","name":"ɵb"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef"}}]}]}],"dropdownList":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":[{"__symbolic":"reference","name":"ɵc"}]}]}],"filterInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild"},"arguments":["filterInput"]}]}],"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"}}]}],"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"}}]}],"typeahead":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"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"]}]}],"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"]}]}],"single":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.ng-single"]}]}],"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":"Optional"}}],null,null,null],"parameters":[{"__symbolic":"reference","name":"NgSelectConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"}]}],"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__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"}],"handleSelectClick":[{"__symbolic":"method"}],"handleClearClick":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"unselect":[{"__symbolic":"method"}],"showPlaceholder":[{"__symbolic":"method"}],"showClear":[{"__symbolic":"method"}],"showFilter":[{"__symbolic":"method"}],"showNoItemsFound":[{"__symbolic":"method"}],"showTypeToSearch":[{"__symbolic":"method"}],"onFilter":[{"__symbolic":"method"}],"onInputFocus":[{"__symbolic":"method"}],"onInputBlur":[{"__symbolic":"method"}],"onItemHover":[{"__symbolic":"method"}],"handleWriteValue":[{"__symbolic":"method"}],"setItems":[{"__symbolic":"method"}],"handleDocumentClick":[{"__symbolic":"method"}],"validateWriteValue":[{"__symbolic":"method"}],"selectWriteValue":[{"__symbolic":"method"}],"updateModel":[{"__symbolic":"method"}],"clearSearch":[{"__symbolic":"method"}],"focusSearchInput":[{"__symbolic":"method"}],"scrollToMarked":[{"__symbolic":"method"}],"handleTab":[{"__symbolic":"method"}],"handleEnter":[{"__symbolic":"method"}],"handleSpace":[{"__symbolic":"method"}],"handleArrowDown":[{"__symbolic":"method"}],"handleArrowUp":[{"__symbolic":"method"}],"handleBackspace":[{"__symbolic":"method"}],"notifyModelChanged":[{"__symbolic":"method"}],"getDropdownMenu":[{"__symbolic":"method"}],"isTypeahead":[{"__symbolic":"method"}],"detectChanges":[{"__symbolic":"method"}],"isValueSet":[{"__symbolic":"method"}],"mergeConfig":[{"__symbolic":"method"}]}},"NgSelectModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵe"}],"imports":[{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule"},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","name":"ɵd"}],"exports":[{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Reference to a non-exported function","line":38,"character":9,"context":{"name":"provideModule"},"module":"./src/ng-select.module"}},"forChild":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Reference to a non-exported function","line":38,"character":9,"context":{"name":"provideModule"},"module":"./src/ng-select.module"}}}},"NgOption":{"__symbolic":"interface"},"NgSelectConfig":{"__symbolic":"class","members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng-option-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ng-label-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"virtual-scroll,[virtualScroll]","exportAs":"virtualScroll","template":"\n <div *ngIf=\"enabled\" class=\"total-padding\" [style.height]=\"scrollHeight + 'px'\"></div>\n <div #content\n [class.scrollable-content]=\"enabled\"\n [style.transform]=\"enabled ? 'translateY(' + topPadding + 'px)' : 'none'\"\n [style.webkitTransform]=\"enabled ? 'translateY(' + topPadding + 'px)' : 'none'\">\n <ng-content></ng-content>\n </div>\n ","host":{"[style.overflow-y]":"parentScroll ? 'hidden' : 'auto'"},"styles":["\n :host {\n overflow: hidden;\n position: relative;\n display: block;\n -webkit-overflow-scrolling: touch;\n }\n\n .scrollable-content {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n }\n\n .total-padding {\n width: 1px;\n opacity: 0;\n }\n "]}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"scrollbarWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"scrollbarHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"childWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"childHeight":[{"__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"}}]}],"update":[{"__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"}}]}]}],"containerElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild"},"arguments":["container"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"}]}],"handleScroll":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"refresh":[{"__symbolic":"method"}],"scrollInto":[{"__symbolic":"method"}],"countItemsPerRow":[{"__symbolic":"method"}],"getElementsOffset":[{"__symbolic":"method"}],"calculateDimensions":[{"__symbolic":"method"}],"calculateItems":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"exports":[{"__symbolic":"reference","name":"ɵc"}],"declarations":[{"__symbolic":"reference","name":"ɵc"}]}]}],"members":{}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"spinner","template":"\n <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n width=\"20px\" height=\"20px\" viewBox=\"0 0 50 50\" style=\"enable-background:new 0 0 50 50;\" xml:space=\"preserve\">\n <path fill=\"#777\" d=\"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z\">\n <animateTransform attributeType=\"xml\"\n attributeName=\"transform\"\n type=\"rotate\"\n from=\"0 25 25\"\n to=\"360 25 25\"\n dur=\"0.6s\"\n repeatCount=\"indefinite\"/>\n </path>\n </svg>"}]}],"members":{}}},"origins":{"NgSelectComponent":"./src/ng-select.component","NgSelectModule":"./src/ng-select.module","NgOption":"./src/ng-select.types","NgSelectConfig":"./src/ng-select.types","ɵa":"./src/ng-templates.directive","ɵb":"./src/ng-templates.directive","ɵc":"./src/virtual-scroll.component","ɵd":"./src/virtual-scroll.component","ɵe":"./src/spinner.component"},"importAs":"@ng-select/ng-select"} |
{ | ||
"name": "@ng-select/ng-select", | ||
"version": "0.2.5", | ||
"version": "0.3.0", | ||
"description": "Angular native ui select", | ||
@@ -31,3 +31,3 @@ "main": "./bundles/ng-select.umd.js", | ||
"build-demo": "rimraf dist && webpack --progress --profile --bail", | ||
"serve-demo": "webpack-dev-server --inline --progress --port 8080", | ||
"start": "webpack-dev-server --inline --progress --port 8080", | ||
"test-watch": "karma start karma.conf.js --no-single-run --auto-watch", | ||
@@ -45,15 +45,15 @@ "test": "karma start karma.conf.js --single-run", | ||
"peerDependencies": { | ||
"@angular/common": ">=2.4.10 <5.0.0", | ||
"@angular/core": ">=2.4.10 <5.0.0", | ||
"@angular/forms": ">=2.4.10 <5.0.0" | ||
"@angular/common": ">=4.0.0 <5.0.0", | ||
"@angular/core": ">=.0.0 <5.0.0", | ||
"@angular/forms": ">=.0.0 <5.0.0" | ||
}, | ||
"devDependencies": { | ||
"@angular/common": "^4.3.5", | ||
"@angular/compiler": "^4.3.5", | ||
"@angular/compiler-cli": "^4.3.5", | ||
"@angular/core": "^4.3.5", | ||
"@angular/forms": "^4.3.5", | ||
"@angular/platform-browser": "^4.3.5", | ||
"@angular/platform-browser-dynamic": "^4.3.5", | ||
"@angular/router": "^4.3.5", | ||
"@angular/common": "^4.4.4", | ||
"@angular/compiler": "^4.4.4", | ||
"@angular/compiler-cli": "^4.4.4", | ||
"@angular/core": "^4.4.4", | ||
"@angular/forms": "^4.4.4", | ||
"@angular/platform-browser": "^4.4.4", | ||
"@angular/platform-browser-dynamic": "^4.4.4", | ||
"@angular/router": "^4.4.4", | ||
"@angularclass/hmr": "^1.0.1", | ||
@@ -60,0 +60,0 @@ "@angularclass/hmr-loader": "^3.0.4", |
@@ -91,5 +91,3 @@ [![npm version](https://badge.fury.io/js/%40ng-select%2Fng-select.svg)](https://badge.fury.io/js/%40ng-select%2Fng-select) | ||
## Examples | ||
### API | ||
## API | ||
| Input | Type | Default | Required | Description | | ||
@@ -114,2 +112,22 @@ | ------------- | ------------- | ------------- | ------------- | ------------- | | ||
# Change Detection | ||
Ng-select component implements `OnPush` change detection which means the dirty checking checks for immutable | ||
data types. That means if you do object mutations like: | ||
```javascript | ||
this.items.push({id: 1, name: 'New item'}) | ||
``` | ||
Component will not detect a change. Instead you need to do: | ||
```javascript | ||
this.items.push({id: 1, name: 'New item'}) | ||
this.items = [...this.items]; | ||
``` | ||
This will cause the component to detect the change and update. Some might have concerns that | ||
this is a pricey operation, however, it is much more performant than running `ngDoCheck` and | ||
constantly diffing the array. | ||
## Examples | ||
### Basic example | ||
@@ -242,3 +260,3 @@ This example in [Plunkr](https://plnkr.co/edit/tjxQgDY2Pn8RRPsoVAa0?p=preview) | ||
### More demos | ||
Visit https://github.com/ng-select/ng-select/tree/master/src/demo/app for more examples | ||
Visit [demos](https://github.com/ng-select/ng-select/tree/master/src/demo/app) for more examples. | ||
@@ -248,3 +266,3 @@ | ||
Contributions are welcome. You can start by looking at issues with label Help wanted https://github.com/ng-select/ng-select/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22 or creating new Issue with proposal or bug report. | ||
Contributions are welcome. You can start by looking at [issues](https://github.com/ng-select/ng-select/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22) with label *Help wanted* or creating new Issue with proposal or bug report. | ||
Note that we are using https://conventionalcommits.org/ commits format. | ||
@@ -260,10 +278,10 @@ | ||
cd ng-select | ||
npm install | ||
npm run serve-demo | ||
yarn | ||
yarn run start | ||
``` | ||
### Testing | ||
``` | ||
npm run test | ||
yarn run test | ||
or | ||
npm run test-watch | ||
yarn run test-watch | ||
``` | ||
@@ -288,2 +306,2 @@ | ||
## Credits | ||
This component is inspired by https://github.com/JedWatson/react-select and https://github.com/rintoj/angular2-virtual-scroll. Check theirs amazing work and components :) | ||
This component is inspired by [React select](https://github.com/JedWatson/react-select) and [Vitual scroll](https://github.com/rintoj/angular2-virtual-scroll). Check theirs amazing work and components :) |
@@ -8,3 +8,3 @@ import { NgOption } from './ng-select.types'; | ||
private _multiple; | ||
readonly value: NgOption | NgOption[]; | ||
readonly value: NgOption[]; | ||
readonly markedItem: NgOption; | ||
@@ -11,0 +11,0 @@ setItems(items: NgOption[]): void; |
@@ -31,2 +31,3 @@ import { OnInit, OnDestroy, OnChanges, ChangeDetectorRef, EventEmitter, TemplateRef, ElementRef, Renderer2 } from '@angular/core'; | ||
searchEvent: EventEmitter<{}>; | ||
clearEvent: EventEmitter<NgOption>; | ||
readonly single: boolean; | ||
@@ -36,2 +37,3 @@ isOpen: boolean; | ||
isDisabled: boolean; | ||
readonly filtered: boolean; | ||
itemsList: ItemsList; | ||
@@ -48,5 +50,6 @@ viewPortItems: NgOption[]; | ||
private disposeDocumentClickListener; | ||
clearItem: (item: any) => void; | ||
constructor(config: NgSelectConfig, changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef, renderer: Renderer2); | ||
items: NgOption[]; | ||
readonly value: NgOption | NgOption[]; | ||
readonly selectedItems: NgOption[]; | ||
ngOnInit(): void; | ||
@@ -66,6 +69,2 @@ ngOnChanges(changes: any): void; | ||
close(): void; | ||
getLabelValue(value: NgOption): any; | ||
getDisplayTemplateContext(): { | ||
item: NgOption | NgOption[]; | ||
}; | ||
toggle(item: NgOption): void; | ||
@@ -75,3 +74,2 @@ select(item: NgOption): void; | ||
showPlaceholder(): boolean; | ||
showValue(): boolean; | ||
showClear(): boolean; | ||
@@ -104,4 +102,5 @@ showFilter(): boolean; | ||
private detectChanges(); | ||
private readonly value; | ||
private isValueSet(value); | ||
private mergeConfig(config); | ||
} |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
1411388
12564
302