Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | 4x | <div #searchBox class="search clearfix" [ngClass]="{ focus: searchBoxFocus, 'scaled-up': searchBoxScaledUp }"> <input #searchInput [placeholder]="configuration?.placeholder || ''" autocomplete="off" type="search" id="header-search-input" class="form-control searchTerm search-input" (input)="handleInput($event.target)" [value]="inputSearchTerms$ | async" (focus)="handleFocus(true)" (keydown.enter)="submitSearch(searchInput.value)" [attr.aria-label]="'search.searchbox.label' | translate" /> <ng-container *ngIf="configuration?.autoSuggest && suggestions$ | async as results; else initialState"> <div *ngIf="(searchBoxResults$ | async) && (hasMinimumCharCount$ | async); else noResults" id="search-suggest-layer" class="search-suggest-container" aria-labelledby="header-search-input" > <div class="col-12 d-flex flex-column" [ngClass]="{ 'col-md-5': results.products?.length }" > <ish-suggest-keywords *ngIf="results.keywords?.length" [keywords]="results.keywords" [inputTerms$]="inputSearchTerms$" (submitSearch)="submitSearch($event)" [maxAutoSuggests]="configuration?.maxAutoSuggests" /> <ish-suggest-categories *ngIf="results.categories?.length" [categories]="results.categories" [inputTerms$]="inputSearchTerms$" (routeChange)="resetInput()" [maxAutoSuggests]="3" /> <ish-suggest-brands *ngIf="results.brands?.length" [brands]="results.brands" [inputTerms$]="inputSearchTerms$" (routeChange)="resetInput()" [maxAutoSuggests]="3" /> </div> <div *ngIf="results.products?.length" [ngClass]="{ 'col-md-7': results.keywords.length || results.brands.length || results.categories.length, 'products-only': !results.keywords.length && !results.brands.length && !results.categories.length }" class="col-12" > <ish-suggest-products [products]="results.products" [inputTerms$]="inputSearchTerms$" [deviceType]="deviceType" (routeChange)="resetInput()" [maxAutoSuggests]="8" /> </div> <div class="col-12"> <div class="show-all"> <button type="button" class="btn btn-link" [title]="'search.searchbox.button.title' | translate" (click)="submitSearch(searchInput.value)" > {{ 'suggest.view_all.link' | translate }} </button> </div> </div> </div> <ng-template #noResults> <div *ngIf="(hasMinimumCharCount$ | async) || (searchedTerms$ | async)" class="search-suggest-container" aria-live="polite" > <div *ngIf="hasMinimumCharCount$ | async" class="col-12"> <div class="d-flex justify-content-start headline">{{ 'suggest.no_results.headline' | translate }}</div> <p>{{ 'suggest.no_results.text' | translate }}</p> </div> <div *ngIf="searchedTerms$ | async" class="col-12"> <ish-suggest-search-terms [maxRecentlySearchedWords]="5" [inputTerms$]="inputSearchTerms$" (submitSearch)="submitSearch($event)" /> </div> </div> </ng-template> </ng-container> <ng-template #initialState> <div *ngIf="(searchedTerms$ | async) && configuration?.autoSuggest" class="search-suggest-container"> <div class="col-12"> <ish-suggest-search-terms [maxRecentlySearchedWords]="5" [inputTerms$]="inputSearchTerms$" (submitSearch)="submitSearch($event)" /> </div> </div> </ng-template> <div *ngIf="searchSuggestLoading$ | async" class="loading"></div> <div class="buttons"> <!-- Clear input button --> <button *ngIf="inputSearchTerms$ | async" class="btn btn-reset" type="reset" name="reset" [title]="'search.searchbox.button.reset.title' | translate" (focus)="handleFocus(true)" (click)="handleResetButton($event); setFocusOnSearchInput()" > <fa-icon [icon]="['fas', 'times']" class="searchbox-icon" /> </button> <!-- Search button --> <button class="btn btn-secondary btn-search" type="submit" name="search" [title]="'search.searchbox.button.title' | translate" (focus)="handleFocus(true)" (click)="submitSearch(searchInput.value)" > <!-- search button with icon --> <ng-container *ngIf="!configuration?.buttonText; else textBlock"> <fa-icon [icon]="['fas', usedIcon]" class="searchbox-icon" /> </ng-container> <!-- search button with text --> <ng-template #textBlock> {{ configuration?.buttonText }} </ng-template> </button> </div> </div> <div class="search-suggest-backdrop" [ngClass]="{ show: searchBoxFocus }"></div> |