|
1 | 1 | <mat-toolbar data-test="toolbar" class="toolbar" #componentsContainer> |
2 | 2 | <div *ngIf="isMultipleSelectionEnabled" data-test="toolbar-number-of-items" class="command-bar-number-of-items">{{ selection.selected.length > 0 ? (selection.selected.length + ' / ') : '' }}{{ totalItems }}</div> |
3 | 3 | <% if (options.hasSearchBar) { %> |
4 | | - <mat-form-field data-test="search-form-field-<%= options.componentType %>" *ngIf="!isInCollapsedMenu('search-form-field-<%= options.componentType %>')" appearance="fill" #toolbarComp> |
5 | | - <mat-label data-test="search-label">{{ 'search' | transloco }}</mat-label> |
| 4 | + <mat-form-field class="search-input" data-test="search-form-field-<%= options.componentType %>" *ngIf="!isInCollapsedMenu('search-form-field-<%= options.componentType %>')" appearance="fill" #toolbarComp> |
6 | 5 | <input |
7 | 6 | #searchInput |
8 | 7 | data-test="search-input" |
9 | 8 | matInput |
10 | 9 | [formControl]="filterService.searchString" |
11 | 10 | type="text" |
| 11 | + placeholder="{{ 'search' | transloco }}" |
12 | 12 | (keyup.enter)="triggerReloadFilter()" |
13 | 13 | (focus)="searchFocused = true" |
14 | 14 | (blur)="searchFocused = false"/> |
|
36 | 36 | <% if (options.componentType === 'table' && options.hasSearchBar) { %> |
37 | 37 | <ng-container *ngIf="hasAdvancedSearch"> |
38 | 38 | <mat-form-field data-test="form-field-select" *ngIf="!isInCollapsedMenu('form-field-select')" appearance="fill" #toolbarComp> |
39 | | - <mat-label data-test="select-label">{{ 'advancedSearch' | transloco }}</mat-label> |
40 | | - <mat-select data-test="select" [formControl]="filterService.selectedStringColumn"> |
| 39 | + <mat-select data-test="select" [formControl]="filterService.selectedStringColumn" placeholder="{{ 'advancedSearch' | transloco }}"> |
41 | 40 | <mat-option [value]="filterService.advancedSearchAllValue">{{ 'allTextFields' | transloco }}</mat-option> |
42 | 41 | <mat-option *ngFor="let searchField of filterService.stringColumns" [value]="searchField"> |
43 | 42 | <span>{{ '<%= options.translationPath %>' + searchField + '.preferredName' | transloco }}</span> |
|
243 | 242 | <% if (options.componentType === 'table' && options.hasSearchBar) { %> |
244 | 243 | <ng-container *ngIf="hasAdvancedSearch"> |
245 | 244 | <mat-form-field data-test="form-field-select" id="form-field-select" *ngIf="!isInCollapsedMenu('form-field-select')" appearance="fill" #toolbarComp> |
246 | | - <mat-label data-test="select-label">{{ 'advancedSearch' | transloco }}</mat-label> |
247 | | - <mat-select data-test="select" [formControl]="filterService.selectedStringColumn"> |
| 245 | + <mat-select data-test="select" [formControl]="filterService.selectedStringColumn" placeholder="{{ 'advancedSearch' | transloco }}"> |
248 | 246 | <mat-option [value]="filterService.advancedSearchAllValue">{{ 'allTextFields' | transloco }}</mat-option> |
249 | 247 | <mat-option *ngFor="let searchField of filterService.stringColumns" [value]="searchField"> |
250 | 248 | <span>{{ '<%= options.translationPath %>' + searchField + '.preferredName' | transloco }}</span> |
|
261 | 259 | <ng-container *ngIf="hasAdvancedSearch"> |
262 | 260 | <div mat-menu-item *ngIf="isInCollapsedMenu('form-field-select')"> |
263 | 261 | <mat-form-field data-test="form-field-select" id="form-field-select" appearance="fill"> |
264 | | - <mat-label data-test="select-label">{{ 'advancedSearch' | transloco }}</mat-label> |
265 | | - <mat-select data-test="select" [formControl]="filterService.selectedStringColumn"> |
| 262 | + <mat-select data-test="select" [formControl]="filterService.selectedStringColumn" placeholder="{{ 'advancedSearch' | transloco }}"> |
266 | 263 | <mat-option [value]="filterService.advancedSearchAllValue">{{ 'allTextFields' | transloco }}</mat-option> |
267 | 264 | <mat-option *ngFor="let searchField of filterService.stringColumns" [value]="searchField"> |
268 | 265 | <span>{{ '<%= options.translationPath %>' + searchField + '.preferredName' | transloco }}</span> |
|
0 commit comments