Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
4f40477 publish-0.0.28
Browse files Browse the repository at this point in the history
  • Loading branch information
krupa310 committed Aug 11, 2017
1 parent 23caa39 commit f8ce4fe
Show file tree
Hide file tree
Showing 20 changed files with 60 additions and 31 deletions.
1 change: 1 addition & 0 deletions autocomplete/autocomplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export declare class Md2Autocomplete implements AfterContentInit, ControlValueAc
* input event listner
* @param event
*/
_handleKeyup(event: KeyboardEvent): void;
_handleKeydown(event: KeyboardEvent): void;
/**
* select option
Expand Down
2 changes: 1 addition & 1 deletion autocomplete/autocomplete.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div class="md2-autocomplete-trigger" [class.is-focused]="_inputFocused || isMenuVisible"><input [(ngModel)]="_inputValue" type="text" autocomplete="off" [readonly]="readonly" [tabindex]="disabled ? -1 : tabindex" [disabled]="disabled" class="md2-autocomplete-input" (focus)="_handleFocus()" (blur)="_handleBlur()" (keydown)="_handleKeydown($event)" (change)="$event.stopPropagation()"> <span class="md2-autocomplete-placeholder" [class.has-value]="_inputValue">{{ placeholder }} </span><svg *ngIf="_inputValue && !required && !disabled" (click)="_onClear()" width="24" height="24" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg></div><ul *ngIf="isMenuVisible" class="md2-autocomplete-menu" (mouseenter)="_handleMouseEnter()" (mouseleave)="_handleMouseLeave()"><li class="md2-option" *ngFor="let l of _list; let i = index;" [class.focus]="_focusedOption === i" (click)="_selectOption($event, i)"><div class="md2-text" [innerHtml]="l.text | highlight:_inputValue"></div></li></ul>
<div class="md2-autocomplete-trigger" [class.is-focused]="_inputFocused || isMenuVisible"><input [(ngModel)]="_inputValue" type="text" autocomplete="off" [readonly]="readonly" [tabindex]="disabled ? -1 : tabindex" [disabled]="disabled" class="md2-autocomplete-input" (focus)="_handleFocus()" (blur)="_handleBlur()" (keydown)="_handleKeydown($event)" (keyup)="_handleKeyup($event)" (change)="$event.stopPropagation()"> <span class="md2-autocomplete-placeholder" [class.has-value]="_inputValue">{{ placeholder }} </span><svg *ngIf="_inputValue && !required && !disabled" (click)="_onClear()" width="24" height="24" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg></div><ul *ngIf="isMenuVisible" class="md2-autocomplete-menu" (mouseenter)="_handleMouseEnter()" (mouseleave)="_handleMouseLeave()"><li class="md2-option" *ngFor="let l of _list; let i = index;" [class.focus]="_focusedOption === i" (click)="_selectOption($event, i)"><div class="md2-text" [innerHtml]="l.text | highlight:_inputValue"></div></li></ul>
6 changes: 4 additions & 2 deletions autocomplete/autocomplete.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion autocomplete/autocomplete.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion autocomplete/autocomplete.metadata.json

Large diffs are not rendered by default.

Loading

0 comments on commit f8ce4fe

Please sign in to comment.