|
24 | 24 |
|
25 | 25 | @if ((isHierarchicalVocabulary() | async) !== true) { |
26 | 26 | <div class="position-relative right-addon"> |
27 | | - @if (searching || loadingInitialValue) { |
28 | | - <i class="fas fa-circle-notch fa-spin fa-2x fa-fw text-primary position-absolute mt-1 p-0" aria-hidden="true"></i> |
29 | | - } |
30 | | - @if (!searching && !loadingInitialValue) { |
31 | | - <i |
32 | | - dsAuthorityConfidenceState |
33 | | - class="far fa-circle fa-2x fa-fw position-absolute mt-1 p-0" |
34 | | - aria-hidden="true" |
35 | | - [authorityValue]="currentValue" |
36 | | - (whenClickOnConfidenceNotAccepted)="whenClickOnConfidenceNotAccepted($event)"></i> |
37 | | - } |
| 27 | + <div class="authority-icons position-absolute d-flex align-items-center"> |
| 28 | + @if (searching || loadingInitialValue) { |
| 29 | + <i class="fas fa-circle-notch fa-spin fa-2x fa-fw text-primary my-auto p-0" aria-hidden="true"></i> |
| 30 | + } |
| 31 | + @if (!searching && !loadingInitialValue) { |
| 32 | + <i |
| 33 | + dsAuthorityConfidenceState |
| 34 | + class="far fa-circle fa-2x fa-fw my-auto p-0" |
| 35 | + aria-hidden="true" |
| 36 | + [authorityValue]="currentValue" |
| 37 | + (whenClickOnConfidenceNotAccepted)="whenClickOnConfidenceNotAccepted($event)"></i> |
| 38 | + } |
| 39 | + </div> |
38 | 40 | <input #instance="ngbTypeahead" |
39 | | - class="form-control" |
40 | | - [attr.aria-labelledby]="'label_' + model.id" |
41 | | - [attr.autoComplete]="model.autoComplete" |
42 | | - [attr.aria-label]="model.label | translate" |
43 | | - [class.is-invalid]="showErrorMessages" |
44 | | - [id]="model.id" |
45 | | - [inputFormatter]="formatter" |
46 | | - [name]="model.name" |
47 | | - [ngbTypeahead]="search" |
48 | | - [placeholder]="model.placeholder" |
49 | | - [readonly]="model.readOnly" |
50 | | - [disabled]="model.readOnly" |
51 | | - [resultTemplate]="rt" |
52 | | - [type]="model.inputType" |
53 | | - [(ngModel)]="currentValue" |
54 | | - (blur)="onBlur($event)" |
55 | | - (focus)="onFocus($event)" |
56 | | - (change)="onChange($event)" |
57 | | - (input)="onInput($event)" |
58 | | - (selectItem)="onSelectItem($event)"> |
| 41 | + class="form-control" |
| 42 | + [attr.aria-labelledby]="'label_' + model.id" |
| 43 | + [attr.autoComplete]="model.autoComplete" |
| 44 | + [attr.aria-label]="model.label | translate" |
| 45 | + [class.is-invalid]="showErrorMessages" |
| 46 | + [id]="model.id" |
| 47 | + [inputFormatter]="formatter" |
| 48 | + [name]="model.name" |
| 49 | + [ngbTypeahead]="search" |
| 50 | + [placeholder]="model.placeholder" |
| 51 | + [readonly]="model.readOnly" |
| 52 | + [disabled]="model.readOnly" |
| 53 | + [resultTemplate]="rt" |
| 54 | + [type]="model.inputType" |
| 55 | + [(ngModel)]="currentValue" |
| 56 | + (blur)="onBlur($event)" |
| 57 | + (focus)="onFocus($event)" |
| 58 | + (change)="onChange($event)" |
| 59 | + (input)="onInput($event)" |
| 60 | + (selectItem)="onSelectItem($event)"> |
59 | 61 | @if (searchFailed) { |
60 | 62 | <div class="invalid-feedback">Sorry, suggestions could not be loaded.</div> |
61 | 63 | } |
|
65 | 67 | @if ((isHierarchicalVocabulary() | async)) { |
66 | 68 | <div class="position-relative right-addon"> |
67 | 69 | <i class="dropdown-toggle position-absolute tree-toggle" (click)="openTree($event)" |
68 | | - aria-hidden="true"></i> |
| 70 | + aria-hidden="true"></i> |
69 | 71 | <input class="form-control" |
70 | | - [attr.aria-labelledby]="'label_' + model.id" |
71 | | - [attr.autoComplete]="model.autoComplete" |
72 | | - [attr.aria-label]="model.label | translate" |
73 | | - [class.is-invalid]="showErrorMessages" |
74 | | - [class.tree-input]="!model.readOnly" |
75 | | - [id]="id" |
76 | | - [name]="model.name" |
77 | | - [placeholder]="model.placeholder" |
78 | | - [readonly]="true" |
79 | | - [disabled]="model.readOnly" |
80 | | - [type]="model.inputType" |
81 | | - [value]="currentValue?.display" |
82 | | - (focus)="onFocus($event)" |
83 | | - (change)="onChange($event)" |
84 | | - (click)="openTree($event)" |
85 | | - (keydown)="$event.preventDefault()" |
86 | | - (keypress)="$event.preventDefault()" |
87 | | - (keyup)="$event.preventDefault()"> |
| 72 | + [attr.aria-labelledby]="'label_' + model.id" |
| 73 | + [attr.autoComplete]="model.autoComplete" |
| 74 | + [attr.aria-label]="model.label | translate" |
| 75 | + [class.is-invalid]="showErrorMessages" |
| 76 | + [class.tree-input]="!model.readOnly" |
| 77 | + [id]="id" |
| 78 | + [name]="model.name" |
| 79 | + [placeholder]="model.placeholder" |
| 80 | + [readonly]="true" |
| 81 | + [disabled]="model.readOnly" |
| 82 | + [type]="model.inputType" |
| 83 | + [value]="currentValue?.display" |
| 84 | + (focus)="onFocus($event)" |
| 85 | + (change)="onChange($event)" |
| 86 | + (click)="openTree($event)" |
| 87 | + (keydown)="$event.preventDefault()" |
| 88 | + (keypress)="$event.preventDefault()" |
| 89 | + (keyup)="$event.preventDefault()"> |
88 | 90 | </div> |
89 | 91 | } |
0 commit comments