Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* [AAE-6093] - fixed rest option for cloud widget * [AAE-6093] - reverted app config change * [AAE-6093] - fixed naming * [AAE-6093] - fixed radio button complete task and added support for rest url with the new feature * [AAE-6093] - removed test value * [AAE-6093] - fixed lint * [AAE-6093] - fixed lint * [AAE-6093] - merged fix for dropdown
- Loading branch information
1 parent
c596a06
commit 7481001
Showing
12 changed files
with
431 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...vices-cloud/src/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<div class="adf-radio-buttons-widget-cloud {{field.className}}" | ||
[class.adf-invalid]="!field.isValid" [class.adf-readonly]="field.readOnly" [id]="field.id"> | ||
<div class="adf-radio-button-container"> | ||
<label class="adf-label" [attr.for]="field.id">{{field.name | translate }}<span *ngIf="isRequired()">*</span></label> | ||
<mat-radio-group class="adf-radio-group" [(ngModel)]="field.value" [disabled]="field.readOnly"> | ||
<mat-radio-button | ||
[matTooltip]="field.tooltip" | ||
matTooltipPosition="above" | ||
matTooltipShowDelay="1000" | ||
[id]="field.id + '-' + opt.id" | ||
[name]="field.id" | ||
[value]="opt.id" | ||
[checked]="field.value === opt.id" | ||
(change)="onOptionClick(opt.id)" | ||
color="primary" | ||
class="adf-radio-button" *ngFor="let opt of field.options" > | ||
{{opt.name}} | ||
</mat-radio-button> | ||
</mat-radio-group> | ||
</div> | ||
<error-widget [error]="field.validationSummary" ></error-widget> | ||
<error-widget *ngIf="isInvalidFieldRequired()" required="{{ 'FORM.FIELD.REQUIRED' | translate }}"></error-widget> | ||
</div> |
20 changes: 20 additions & 0 deletions
20
...vices-cloud/src/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.adf { | ||
|
||
&-radio-button-container { | ||
margin-bottom: 15px; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
&-radio-group { | ||
margin-top: 15px; | ||
margin-left: 5px; | ||
display: inline-flex; | ||
flex-direction: column; | ||
} | ||
|
||
&-radio-button { | ||
margin: 5px; | ||
} | ||
|
||
} |
Oops, something went wrong.