-
Notifications
You must be signed in to change notification settings - Fork 269
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-20848 Add display external property widget * revert css changes * AAE-20848 validate validatable types * AAE-20848 implement suggestions * fix lint
- Loading branch information
Showing
11 changed files
with
411 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,7 +143,8 @@ | |
"xsrf", | ||
"BPMECM", | ||
"berseria", | ||
"zestiria" | ||
"zestiria", | ||
"validatable" | ||
], | ||
"dictionaries": [ | ||
"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
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
30 changes: 30 additions & 0 deletions
30
...b/form/components/widgets/display-external-property/display-external-property.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,30 @@ | ||
<div | ||
class="adf-textfield adf-display-external-property-widget {{ field.className }}" | ||
[class.adf-invalid]="!field.isValid && isTouched()" | ||
[class.adf-readonly]="field.readOnly" | ||
[class.adf-left-label-input-container]="field.leftLabels" | ||
> | ||
<div *ngIf="field.leftLabels"> | ||
<label class="adf-label adf-left-label" [attr.for]="field.id"> | ||
{{ field.name | translate }}<span class="adf-asterisk" *ngIf="isRequired()">*</span> | ||
</label> | ||
</div> | ||
|
||
<div> | ||
<mat-form-field [hideRequiredMarker]="true"> | ||
<label class="adf-label" *ngIf="!field.leftLabels" [attr.for]="field.id"> | ||
{{ field.name | translate }}<span class="adf-asterisk" *ngIf="isRequired()">*</span> | ||
</label> | ||
<input matInput | ||
class="adf-input" | ||
type="text" | ||
data-automation-id="adf-display-external-property-widget" | ||
[id]="field.id" | ||
[formControl]="propertyControl" | ||
> | ||
</mat-form-field> | ||
|
||
<ng-container *ngIf="!previewState"> | ||
<error-widget *ngIf="propertyLoadFailed" [required]="'FORM.FIELD.EXTERNAL_PROPERTY_LOAD_FAILED' | translate"></error-widget> | ||
</ng-container> | ||
</div> |
9 changes: 9 additions & 0 deletions
9
...b/form/components/widgets/display-external-property/display-external-property.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,9 @@ | ||
.adf { | ||
&-display-external-property-widget { | ||
width: 100%; | ||
|
||
.adf-label { | ||
top: 20px; | ||
} | ||
} | ||
} |
Oops, something went wrong.