Skip to content

Commit

Permalink
add version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dnauck committed Dec 6, 2014
1 parent 62fb76e commit f8b8bbe
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
41 changes: 41 additions & 0 deletions build/angular-advanced-searchbox.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<div class="advancedSearchBox" ng-class="{active:focus}" ng-init="focus = false" ng-click="!focus ? setSearchFocus = true : null">
<span ng-show="searchParams.length < 1 && searchQuery.length === 0" class="search-icon glyphicon glyphicon-search"></span>
<a ng-href="" ng-show="searchParams.length > 0 || searchQuery.length > 0" ng-click="removeAll()" role="button">
<span class="remove-all-icon glyphicon glyphicon-trash"></span>
</a>
<div>
<div class="search-parameter" ng-repeat="searchParam in searchParams">
<a ng-href="" ng-click="removeSearchParam($index)" role="button">
<span class="remove glyphicon glyphicon-trash"></span>
</a>
<div class="key">{{searchParam.name}}:</div>
<div class="value">
<span ng-show="!searchParam.editMode" ng-click="enterEditMode($index)">{{searchParam.value}}</span>
<input name="value"
type="text"
nit-auto-size-input
nit-set-focus="searchParam.editMode"
ng-keydown="keydown($event, $index)"
ng-blur="leaveEditMode($index)"
ng-show="searchParam.editMode"
ng-model="searchParam.value"
placeholder="{{searchParam.placeholder}}" />
</div>
</div>
<input name="searchbox"
class="search-parameter-input"
type="text"
nit-set-focus="setSearchFocus"
ng-keydown="keydown($event)"
placeholder="{{placeholder}}"
ng-focus="focus = true"
ng-blur="focus = false"
typeahead-on-select="typeaheadOnSelect($item, $model, $label)"
typeahead="parameter as parameter.name for parameter in parameters | filter:{name:$viewValue} | limitTo:8"
ng-model="searchQuery" />
</div>
<div class="search-parameter-suggestions" ng-show="parameters && focus">
<span class="title">Parameter Suggestions:</span>
<span class="search-parameter" ng-repeat="param in parameters | limitTo:8" ng-mousedown="addSearchParam(param)">{{param.name}}</span>
</div>
</div>
8 changes: 8 additions & 0 deletions build/angular-advanced-searchbox.min.css

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

7 changes: 7 additions & 0 deletions build/angular-advanced-searchbox.min.js

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

0 comments on commit f8b8bbe

Please sign in to comment.