1 <div flex layout="row" layout-align="start center" ng-init="vm.onInit()">
4 class="ms-search-bar-expander md-icon-button"
5 aria-label="Expand Search Bar"
7 ng-if="!vm.resultsLoading || vm.collapsed"
10 id="ms-search-bar-icon"
11 md-font-icon="icon-magnify"
13 ng-class="{'{{ vm.iconColor }}': vm.iconColor && vm.collapsed }"
17 class="ms-search-bar-loader"
19 layout-align="center center"
20 ng-if="vm.resultsLoading && !vm.collapsed"
25 md-mode="indeterminate"
26 ></md-progress-circular>
31 focus-on="!vm.collapsed"
36 ng-model-options="vm.queryOptions"
37 ng-blur="vm.blurCollapse()"
38 ng-keydown="vm.handleKeydown($event)"
41 class="ms-search-bar-collapser md-icon-button"
42 ng-click="vm.collapse()"
43 aria-label="Collapse Search Bar"
45 <md-icon md-font-icon="icon-close" class="icon s24"></md-icon>
48 <div class="ms-search-bar-results" ng-if="vm.results" ms-scroll>
49 <div class="no-results" ng-if="vm.results.length === 0">No Results!</div>
53 ng-repeat="result in vm.results"
54 ng-click="vm.handleResultClick(result)"
55 ng-mouseenter="vm.handleMouseenter($index)"
56 ng-mousedown="vm.absorbEvent($event)"
57 ng-class="{'selected': $index == vm.selectedResultIndex}"
60 <div layout="row" layout-align="start center">
61 <div class="icon-container" layout="row" layout-align="center center">
62 <i ng-if="result.icon" class="icon {{ result.icon }}"></i>
63 <div ng-if="!result.icon" class="square md-accent-bg"></div>
66 <div class="title">{{ result.title }}</div>
67 <div class="description" ng-if="result.description">
68 {{ result.description }}