blob: 5dc4f5d59ba3832bc056d9b81eee0cc22bb9e2ef [file] [log] [blame]
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/material/icon"),require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("@angular/cdk/portal"),require("@angular/cdk/coercion"),require("@angular/cdk/keycodes"),require("@angular/material/chips"),require("@angular/material/input"),require("@angular/material/core"),require("@angular/material/autocomplete"),require("rxjs"),require("rxjs/operators"),require("@covalent/core/common")):"function"==typeof define&&define.amd?define("@covalent/core/chips",["exports","@angular/material/icon","@angular/core","@angular/common","@angular/forms","@angular/cdk/portal","@angular/cdk/coercion","@angular/cdk/keycodes","@angular/material/chips","@angular/material/input","@angular/material/core","@angular/material/autocomplete","rxjs","rxjs/operators","@covalent/core/common"],t):t((e.covalent=e.covalent||{},e.covalent.core=e.covalent.core||{},e.covalent.core.chips={}),e.ng.material.icon,e.ng.core,e.ng.common,e.ng.forms,e.ng.cdk.portal,e.ng.cdk.coercion,e.ng.cdk.keycodes,e.ng.material.chips,e.ng.material.input,e.ng.material.core,e.ng.material.autocomplete,e.rxjs,e.rxjs.operators,e.covalent.core.common)}(this,function(e,t,r,i,a,o,n,s,c,p,d,l,h,u,m){"use strict";var f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function b(e,t){function i(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var g,_=(b(y,g=o.TemplatePortalDirective),y.decorators=[{type:r.Directive,args:[{selector:"[td-chip]ng-template"}]}],y.ctorParameters=function(){return[{type:r.TemplateRef},{type:r.ViewContainerRef}]},y);function y(e,t){return g.call(this,e,t)||this}var v,C=(b(k,v=o.TemplatePortalDirective),k.decorators=[{type:r.Directive,args:[{selector:"[td-autocomplete-option]ng-template"}]}],k.ctorParameters=function(){return[{type:r.TemplateRef},{type:r.ViewContainerRef}]},k);function k(e,t){return v.call(this,e,t)||this}function x(e){this._changeDetectorRef=e}var w,R=m.mixinControlValueAccessor(m.mixinDisabled(x),[]),A=(b(O,w=R),Object.defineProperty(O.prototype,"focused",{get:function(){return this._focused},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"items",{get:function(){return this._items},set:function(e){this._items=e,this._setFirstOptionActive(),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"stacked",{get:function(){return this._stacked},set:function(e){this._stacked=n.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"inputPosition",{get:function(){return this._inputPosition},set:function(e){this._inputPosition=e},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"requireMatch",{get:function(){return this._requireMatch},set:function(e){this._requireMatch=n.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"required",{get:function(){return this._required},set:function(e){this._required=n.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"chipAddition",{get:function(){return this._chipAddition},set:function(e){this._chipAddition=e,this._toggleInput()},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"canAddChip",{get:function(){return this.chipAddition&&!this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"chipRemoval",{get:function(){return this._chipRemoval},set:function(e){this._chipRemoval=e},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"canRemoveChip",{get:function(){return this.chipRemoval&&!this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"displayPlaceHolder",{get:function(){return this.canAddChip?this._required?this.placeholder+" *":this.placeholder:""},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"color",{get:function(){return this._color},set:function(e){e&&(this._renderer.removeClass(this._elementRef.nativeElement,"mat-"+this._color),this._color=e,this._renderer.addClass(this._elementRef.nativeElement,"mat-"+this._color))},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"tabIndex",{get:function(){return this.disabled?-1:this._tabIndex},enumerable:!0,configurable:!0}),O.prototype.focusListener=function(e){this._isMousedown||this.focus(),e.preventDefault()},O.prototype.mousedownListener=function(e){var t=this;this._isMousedown=!0,h.timer().toPromise().then(function(){t._isMousedown=!1})},O.prototype.clickListener=function(e){var t=e.target;(t===this._elementRef.nativeElement||-1<t.className.indexOf("td-chips-wrapper"))&&(this.focus(),e.preventDefault(),e.stopPropagation())},O.prototype.keydownListener=function(e){var t=this;switch(e.keyCode){case s.TAB:h.timer().toPromise().then(function(){t.removeFocusedState()});break;case s.ESCAPE:this._inputChild.focused?(this._nativeInput.nativeElement.blur(),this.removeFocusedState(),this._closeAutocomplete()):this.focus()}},O.prototype.ngOnInit=function(){var t=this;this._inputValueChangesSubs=this.inputControl.valueChanges.pipe(u.debounceTime(this.debounce)).subscribe(function(e){t.onInputChange.emit(e||"")}),this._changeDetectorRef.markForCheck()},O.prototype.ngAfterViewInit=function(){this._watchOutsideClick(),this._changeDetectorRef.markForCheck()},O.prototype.ngDoCheck=function(){this.value&&this.value.length!==this._length&&(this._length=this.value.length,this.onChange(this.value))},O.prototype.ngOnDestroy=function(){this._outsideClickSubs.unsubscribe(),this._inputValueChangesSubs.unsubscribe()},O.prototype._setInternalClick=function(){this._internalClick=!0},O.prototype.onDisabledChange=function(e){this._toggleInput()},O.prototype._handleAddChip=function(){var e;if(this.requireMatch){var t=this._options.toArray().filter(function(e){return e.active});if(0<t.length&&(e=t[0].value,t[0].setInactiveStyles()),!e)return!1}else if(this._autocompleteTrigger.activeOption)e=this._autocompleteTrigger.activeOption.value,this._autocompleteTrigger.activeOption.setInactiveStyles();else if(""===(e=this._inputChild.value).trim())return!1;return this.addChip(e)},O.prototype.addChip=function(t){var i=this;return this._closeAutocomplete(),h.timer(this.debounce).toPromise().then(function(){i.setFocusedState(),i._setFirstOptionActive(),i._openAutocomplete()}),this.inputControl.setValue(""),!(-1<this.value.findIndex(function(e){return i.compareWith(e,t)})||(this.value.push(t),this.onAdd.emit(t),this.onChange(this.value),this._changeDetectorRef.markForCheck(),0))},O.prototype.removeChip=function(e){var t=this.value.splice(e,1);return 0!==t.length&&(e===this._totalChips-1&&0===e?this._inputChild.focus():e<this._totalChips-1?this._focusChip(e+1):0<e&&this._focusChip(e-1),this.onRemove.emit(t[0]),this.onChange(this.value),this.inputControl.setValue(""),this._changeDetectorRef.markForCheck(),!0)},O.prototype._handleChipBlur=function(e,t){this.onChipBlur.emit(t)},O.prototype._handleChipFocus=function(e,t){this.setFocusedState(),this.onChipFocus.emit(t)},O.prototype._handleFocus=function(){return this.setFocusedState(),this._setFirstOptionActive(),!0},O.prototype.setFocusedState=function(){this.disabled||(this._focused=!0,this._tabIndex=-1,this._changeDetectorRef.markForCheck())},O.prototype.removeFocusedState=function(){this._focused=!1,this._tabIndex=0,this._changeDetectorRef.markForCheck()},O.prototype.focus=function(){this.canAddChip?this._inputChild.focus():this.disabled||this._focusFirstChip()},O.prototype._inputKeydown=function(e){switch(e.keyCode){case s.UP_ARROW:this.requireMatch&&1<this._options.length&&this._options.toArray()[0].active&&this._internalActivateOption&&(this._options.toArray()[0].setInactiveStyles(),this._internalActivateOption=!1,e.preventDefault());break;case s.LEFT_ARROW:case s.DELETE:case s.BACKSPACE:this._closeAutocomplete(),this._inputChild.value||(this._focusLastChip(),e.preventDefault());break;case s.RIGHT_ARROW:this._closeAutocomplete(),this._inputChild.value||(this._focusFirstChip(),e.preventDefault())}},O.prototype._chipKeydown=function(e,t){switch(e.keyCode){case s.DELETE:case s.BACKSPACE:this.canRemoveChip&&this.removeChip(t);break;case s.UP_ARROW:case s.LEFT_ARROW:0===t?this.canAddChip&&e.keyCode===s.LEFT_ARROW?this._inputChild.focus():this._focusLastChip():0<t&&this._focusChip(t-1),e.preventDefault();break;case s.DOWN_ARROW:case s.RIGHT_ARROW:t===this._totalChips-1?this.canAddChip&&e.keyCode===s.RIGHT_ARROW?this._inputChild.focus():this._focusFirstChip():t<this._totalChips-1&&this._focusChip(t+1),e.preventDefault()}},O.prototype._removeInputDisplay=function(){return""},O.prototype._openAutocomplete=function(){this._autocompleteTrigger.panelOpen||(this._autocompleteTrigger.openPanel(),this._changeDetectorRef.markForCheck())},O.prototype._closeAutocomplete=function(){this._autocompleteTrigger.panelOpen&&(this._autocompleteTrigger.closePanel(),this._changeDetectorRef.markForCheck())},Object.defineProperty(O.prototype,"_totalChips",{get:function(){return this._chipsChildren.toArray().length},enumerable:!0,configurable:!0}),O.prototype._focusChip=function(e){-1<e&&this._totalChips>e&&this._chipsChildren.toArray()[e].focus()},O.prototype._focusFirstChip=function(){this._focusChip(0)},O.prototype._focusLastChip=function(){this._focusChip(this._totalChips-1)},O.prototype._toggleInput=function(){this.canAddChip?this.inputControl.enable():this.inputControl.disable(),this._changeDetectorRef.markForCheck()},O.prototype._setFirstOptionActive=function(){var e=this;this.requireMatch&&h.timer().toPromise().then(function(){e.focused&&e._options&&0<e._options.length&&(e._options.toArray().forEach(function(e){e.setInactiveStyles()}),e._options.toArray()[0].setActiveStyles(),e._internalActivateOption=!0,e._changeDetectorRef.markForCheck())})},O.prototype._watchOutsideClick=function(){var i=this;return this._document&&(this._outsideClickSubs=h.merge(h.fromEvent(this._document,"click"),h.fromEvent(this._document,"touchend")).pipe(u.debounceTime(this._touchendDebounce),u.filter(function(e){var t=e.target;return setTimeout(function(){i._internalClick=!1}),i.focused&&t!==i._elementRef.nativeElement&&!i._elementRef.nativeElement.contains(t)&&!i._internalClick})).subscribe(function(){i.focused&&(i._autocompleteTrigger.closePanel(),i.removeFocusedState(),i.onTouched(),i._changeDetectorRef.markForCheck())})),undefined},O.decorators=[{type:r.Component,args:[{providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return O}),multi:!0}],selector:"td-chips",inputs:["disabled","value"],template:'<div class="td-chips-wrapper"\n [class.td-chips-stacked]="stacked"\n [class.td-chips-input-before-position]="inputPosition === \'before\'">\n <ng-template let-chip let-first="first" let-index="index" ngFor [ngForOf]="value">\n <mat-basic-chip [class.td-chip-disabled]="disabled"\n [class.td-chip-after-pad]="!canRemoveChip"\n [disableRipple]="true"\n [color]="color"\n (keydown)="_chipKeydown($event, index)"\n (blur)="_handleChipBlur($event, chip)"\n (focus)="_handleChipFocus($event, chip)">\n <div class="td-chip" [class.td-chip-stacked]="stacked">\n <span class="td-chip-content">\n <span *ngIf="!_chipTemplate?.templateRef">{{chip}}</span>\n <ng-template\n *ngIf="_chipTemplate?.templateRef"\n [ngTemplateOutlet]="_chipTemplate?.templateRef"\n [ngTemplateOutletContext]="{ chip: chip }">\n </ng-template>\n </span>\n <mat-icon *ngIf="canRemoveChip" class="td-chip-removal" (click)="_internalClick = removeChip(index)">\n cancel\n </mat-icon>\n </div>\n </mat-basic-chip>\n </ng-template>\n <mat-form-field floatLabel="never"\n class="td-chips-form-field"\n [style.width.px]="canAddChip ? null : 0"\n [style.height.px]="canAddChip ? null : 0"\n [color]="color">\n <input matInput\n #input\n [tabIndex]="-1"\n [matAutocomplete]="autocomplete"\n [formControl]="inputControl"\n [placeholder]="displayPlaceHolder"\n (keydown)="_inputKeydown($event)"\n (keyup.enter)="_handleAddChip()"\n (focus)="_handleFocus()">\n </mat-form-field>\n <mat-autocomplete #autocomplete="matAutocomplete"\n [displayWith]="_removeInputDisplay"\n (optionSelected)="addChip($event.option.value)">\n <ng-template let-item let-first="first" ngFor [ngForOf]="items">\n <mat-option (click)="_setInternalClick()" [value]="item">\n <span *ngIf="!_autocompleteOptionTemplate?.templateRef">{{item}}</span>\n <ng-template\n *ngIf="_autocompleteOptionTemplate?.templateRef"\n [ngTemplateOutlet]="_autocompleteOptionTemplate?.templateRef"\n [ngTemplateOutletContext]="{ option: item }">\n </ng-template>\n </mat-option>\n </ng-template>\n </mat-autocomplete>\n</div>\n<div *ngIf="chipAddition" class="mat-form-field-underline"\n [class.mat-disabled]="disabled">\n <span class="mat-form-field-ripple"\n [class.mat-focused]="focused"></span>\n</div>\n<ng-content></ng-content>',changeDetection:r.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;padding:0 5px;min-height:48px}:host .td-chips-wrapper{min-height:42px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}:host .td-chips-wrapper.td-chips-stacked .mat-basic-chip,:host .td-chips-wrapper.td-chips-stacked .td-chips-form-field{width:100%}:host .td-chips-wrapper.td-chips-input-before-position .td-chips-form-field{-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}:host .td-chip,:host .td-chip>.td-chip-content{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;max-width:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;min-width:0}:host .td-chip.td-chip-stacked,:host .td-chip>.td-chip-content.td-chip-stacked{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}:host ::ng-deep .mat-form-field-wrapper{padding-bottom:2px}:host ::ng-deep .mat-basic-chip{display:inline-block;cursor:default;border-radius:16px;margin:8px 8px 0 0;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;position:relative}html[dir=rtl] :host ::ng-deep .mat-basic-chip{margin:8px 0 0 8px;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip{margin:8px 0 0 8px;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip{margin:8px 0 0 8px;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip{min-height:32px;line-height:32px;font-size:13px;padding:0 0 0 12px}html[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip{padding:0 12px 0 0;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip{padding:0 12px 0 0;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip{padding:0 12px 0 0;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip .td-chip bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{display:inline-block;-webkit-box-ordinal-group:-19;-ms-flex-order:-20;order:-20;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center;height:32px;width:32px;margin:0 8px 0 -12px;border-radius:50%;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-box-sizing:border-box;box-sizing:border-box}html[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{margin:0 -12px 0 8px;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{margin:0 -12px 0 8px;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{margin:0 -12px 0 8px;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar] bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar] bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 12px 0 0}html[dir=rtl] :host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 0 0 12px;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 0 0 12px;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 0 0 12px;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip.td-chip-after-pad bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip.td-chip-after-pad bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip mat-icon.td-chip-removal{margin:0 4px;font-size:21px;line-height:22px}:host ::ng-deep .mat-basic-chip mat-icon.td-chip-removal:hover{cursor:pointer}:host ::ng-deep .td-chips-stacked .mat-basic-chip{margin:4px 0}:host ::ng-deep .td-chips-stacked .mat-basic-chip:first-of-type{margin:8px 0 4px}:host ::ng-deep .td-chips-stacked .mat-basic-chip:last-of-type{margin:4px 0 8px}:host .mat-form-field-underline{position:relative;height:1px;width:100%;bottom:0}:host .mat-form-field-underline.mat-disabled{background-position:0;bottom:-4px;background-color:transparent}:host .mat-form-field-underline .mat-form-field-ripple{position:absolute;height:2px;top:0;width:100%;-webkit-transform-origin:50%;-ms-transform-origin:50%;transform-origin:50%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);visibility:hidden;opacity:0;-webkit-transition:background-color .3s cubic-bezier(.55,0,.55,.2);transition:background-color .3s cubic-bezier(.55,0,.55,.2)}:host .mat-form-field-underline .mat-form-field-ripple.mat-focused{visibility:visible;opacity:1;-webkit-transform:scaleX(1);-ms-transform:scaleX(1);transform:scaleX(1);-webkit-transition:background-color .3s cubic-bezier(.55,0,.55,.2),-webkit-transform 150ms linear;transition:transform 150ms linear,background-color .3s cubic-bezier(.55,0,.55,.2),-webkit-transform 150ms linear}:host.ng-invalid .mat-form-field-underline .mat-form-field-ripple{visibility:visible;opacity:1;-webkit-transform:scaleX(1);-ms-transform:scaleX(1);transform:scaleX(1);-webkit-transition:background-color .3s cubic-bezier(.55,0,.55,.2),-webkit-transform 150ms linear;transition:transform 150ms linear,background-color .3s cubic-bezier(.55,0,.55,.2),-webkit-transform 150ms linear}:host ::ng-deep mat-form-field .mat-form-field-underline{display:none}"]}]}],O.ctorParameters=function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:undefined,decorators:[{type:r.Optional},{type:r.Inject,args:[i.DOCUMENT]}]},{type:r.ChangeDetectorRef}]},O.propDecorators={_nativeInput:[{type:r.ViewChild,args:["input"]}],_inputChild:[{type:r.ViewChild,args:[p.MatInput]}],_autocompleteTrigger:[{type:r.ViewChild,args:[l.MatAutocompleteTrigger]}],_chipsChildren:[{type:r.ViewChildren,args:[c.MatChip]}],_chipTemplate:[{type:r.ContentChild,args:[_]}],_autocompleteOptionTemplate:[{type:r.ContentChild,args:[C]}],_options:[{type:r.ViewChildren,args:[d.MatOption]}],items:[{type:r.Input,args:["items"]}],stacked:[{type:r.Input,args:["stacked"]}],inputPosition:[{type:r.Input,args:["inputPosition"]}],requireMatch:[{type:r.Input,args:["requireMatch"]}],required:[{type:r.Input,args:["required"]}],chipAddition:[{type:r.Input,args:["chipAddition"]}],chipRemoval:[{type:r.Input,args:["chipRemoval"]}],placeholder:[{type:r.Input,args:["placeholder"]}],debounce:[{type:r.Input,args:["debounce"]}],color:[{type:r.Input,args:["color"]}],onAdd:[{type:r.Output,args:["add"]}],onRemove:[{type:r.Output,args:["remove"]}],onInputChange:[{type:r.Output,args:["inputChange"]}],onChipFocus:[{type:r.Output,args:["chipFocus"]}],onChipBlur:[{type:r.Output,args:["chipBlur"]}],tabIndex:[{type:r.HostBinding,args:["attr.tabindex"]}],compareWith:[{type:r.Input,args:["compareWith"]}],focusListener:[{type:r.HostListener,args:["focus",["$event"]]}],mousedownListener:[{type:r.HostListener,args:["mousedown",["$event"]]}],clickListener:[{type:r.HostListener,args:["click",["$event"]]}],keydownListener:[{type:r.HostListener,args:["keydown",["$event"]]}]},O);function O(e,t,i,o){var n=w.call(this,o)||this;return n._elementRef=e,n._renderer=t,n._document=i,n._outsideClickSubs=h.Subscription.EMPTY,n._inputValueChangesSubs=h.Subscription.EMPTY,n._isMousedown=!1,n._length=0,n._stacked=!1,n._requireMatch=!1,n._color="primary",n._inputPosition="after",n._chipAddition=!0,n._chipRemoval=!0,n._focused=!1,n._required=!1,n._tabIndex=0,n._touchendDebounce=100,n._internalClick=!1,n._internalActivateOption=!1,n.inputControl=new a.FormControl,n.debounce=200,n.onAdd=new r.EventEmitter,n.onRemove=new r.EventEmitter,n.onInputChange=new r.EventEmitter,n.onChipFocus=new r.EventEmitter,n.onChipBlur=new r.EventEmitter,n.compareWith=function(e,t){return e===t},n._renderer.addClass(n._elementRef.nativeElement,"mat-"+n._color),n}var I=(P.decorators=[{type:r.NgModule,args:[{imports:[a.ReactiveFormsModule,i.CommonModule,p.MatInputModule,t.MatIconModule,c.MatChipsModule,l.MatAutocompleteModule],declarations:[A,_,C],exports:[A,_,C]}]}],P);function P(){}e.CovalentChipsModule=I,e.TdChipDirective=_,e.TdAutocompleteOptionDirective=C,e.TdChipsBase=x,e._TdChipsMixinBase=R,e.TdChipsComponent=A,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=covalent-core-chips.umd.min.js.map