|
1 |
| -<div class="psdk-user-reference"> |
| 1 | +<div> |
2 | 2 | <div *ngIf="displayMode$; else noDisplayMode">
|
3 | 3 | <component-mapper name="FieldValueList" [props]="{ label$, value$, displayMode$ }"></component-mapper>
|
4 | 4 | </div>
|
5 | 5 | <ng-template #noDisplayMode>
|
6 |
| - <div *ngIf="type === 'operator'"> |
7 |
| - <component-mapper name="Operator" [props]="{ pConn$ }"></component-mapper> |
8 |
| - </div> |
9 |
| - <div [formGroup]="formGroup$" *ngIf="type === 'dropdown'"> |
10 |
| - <mat-form-field class="psdk-full-width" subscriptSizing="dynamic" [hintLabel]="helperText"> |
11 |
| - <mat-select [required]="bRequired$" [formControl]="fieldControl" [attr.data-test-id]="testId" (selectionChange)="fieldOnChange($event)"> |
12 |
| - <mat-option *ngFor="let opt of options$" [value]="opt.key"> |
13 |
| - {{ opt.value }} |
14 |
| - </mat-option> |
15 |
| - </mat-select> |
16 |
| - <mat-label>{{ label$ }}</mat-label> |
17 |
| - <mat-error *ngIf="fieldControl.invalid"> |
18 |
| - {{ getErrorMessage() }} |
19 |
| - </mat-error> |
20 |
| - </mat-form-field> |
21 |
| - </div> |
22 |
| - <div [formGroup]="formGroup$" *ngIf="type === 'searchbox'"> |
23 |
| - <mat-form-field class="psdk-full-width" subscriptSizing="dynamic" [hintLabel]="helperText"> |
24 |
| - <mat-label>{{ label$ }}</mat-label> |
25 |
| - <input |
26 |
| - matInput |
27 |
| - [placeholder]="placeholder" |
28 |
| - [formControl]="fieldControl" |
29 |
| - [required]="bRequired$" |
30 |
| - [matAutocomplete]="auto" |
31 |
| - [attr.data-test-id]="testId" |
32 |
| - (blur)="fieldOnBlur($event)" |
33 |
| - /> |
34 |
| - <mat-autocomplete #auto="matAutocomplete" autoActiveFirstOption (optionSelected)="optionChanged($event)"> |
35 |
| - <mat-option *ngFor="let opt of filteredOptions | async" [value]="opt.value"> |
36 |
| - <span>{{ opt.value }}</span> |
37 |
| - </mat-option> |
38 |
| - </mat-autocomplete> |
39 |
| - <mat-error *ngIf="fieldControl.invalid"> |
40 |
| - {{ getErrorMessage() }} |
41 |
| - </mat-error> |
42 |
| - </mat-form-field> |
| 6 | + <div class="psdk-user-reference"> |
| 7 | + <div *ngIf="type === 'operator'"> |
| 8 | + <component-mapper name="Operator" [props]="{ pConn$ }"></component-mapper> |
| 9 | + </div> |
| 10 | + <div [formGroup]="formGroup$" *ngIf="type === 'dropdown'"> |
| 11 | + <mat-form-field class="psdk-full-width" subscriptSizing="dynamic" [hintLabel]="helperText"> |
| 12 | + <mat-select [required]="bRequired$" [formControl]="fieldControl" [attr.data-test-id]="testId" (selectionChange)="fieldOnChange($event)"> |
| 13 | + <mat-option *ngFor="let opt of options$" [value]="opt.key"> |
| 14 | + {{ opt.value }} |
| 15 | + </mat-option> |
| 16 | + </mat-select> |
| 17 | + <mat-label>{{ label$ }}</mat-label> |
| 18 | + <mat-error *ngIf="fieldControl.invalid"> |
| 19 | + {{ getErrorMessage() }} |
| 20 | + </mat-error> |
| 21 | + </mat-form-field> |
| 22 | + </div> |
| 23 | + <div [formGroup]="formGroup$" *ngIf="type === 'searchbox'"> |
| 24 | + <mat-form-field class="psdk-full-width" subscriptSizing="dynamic" [hintLabel]="helperText"> |
| 25 | + <mat-label>{{ label$ }}</mat-label> |
| 26 | + <input |
| 27 | + matInput |
| 28 | + [placeholder]="placeholder" |
| 29 | + [formControl]="fieldControl" |
| 30 | + [required]="bRequired$" |
| 31 | + [matAutocomplete]="auto" |
| 32 | + [attr.data-test-id]="testId" |
| 33 | + (blur)="fieldOnBlur($event)" |
| 34 | + /> |
| 35 | + <mat-autocomplete #auto="matAutocomplete" autoActiveFirstOption (optionSelected)="optionChanged($event)"> |
| 36 | + <mat-option *ngFor="let opt of filteredOptions | async" [value]="opt.value"> |
| 37 | + <span>{{ opt.value }}</span> |
| 38 | + </mat-option> |
| 39 | + </mat-autocomplete> |
| 40 | + <mat-error *ngIf="fieldControl.invalid"> |
| 41 | + {{ getErrorMessage() }} |
| 42 | + </mat-error> |
| 43 | + </mat-form-field> |
| 44 | + </div> |
43 | 45 | </div>
|
44 | 46 | </ng-template>
|
45 | 47 | </div>
|
0 commit comments