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
- Loading branch information
Showing
13 changed files
with
482 additions
and
109 deletions.
There are no files selected for viewing
45 changes: 20 additions & 25 deletions
45
lib/core/form/components/widgets/amount/amount.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 |
---|---|---|
@@ -1,26 +1,21 @@ | ||
<div class="adf-amount-widget__container adf-amount-widget {{field.className}}" | ||
[class.adf-invalid]="!field.isValid && isTouched()" | ||
[class.adf-readonly]="field.readOnly"> | ||
<label class="adf-label" | ||
[attr.for]="field.id">{{field.name | translate }}<span class="adf-asterisk" *ngIf="isRequired()">*</span></label> | ||
<mat-form-field class="adf-amount-widget__input" [hideRequiredMarker]="true"> | ||
<span matPrefix class="adf-amount-widget__prefix-spacing">{{ currency }} </span> | ||
<input matInput | ||
[matTooltip]="field.tooltip" | ||
matTooltipPosition="above" | ||
matTooltipShowDelay="1000" | ||
class="adf-input" | ||
type="text" | ||
[id]="field.id" | ||
[required]="isRequired()" | ||
[placeholder]="placeholder" | ||
[value]="field.value" | ||
[(ngModel)]="field.value" | ||
(ngModelChange)="onFieldChanged(field)" | ||
[disabled]="field.readOnly" | ||
(blur)="markAsTouched()"> | ||
</mat-form-field> | ||
<error-widget [error]="field.validationSummary"></error-widget> | ||
<error-widget *ngIf="isInvalidFieldRequired() && isTouched()" | ||
required="{{ 'FORM.FIELD.REQUIRED' | translate }}"></error-widget> | ||
</div> | ||
[class.adf-invalid]="!field.isValid && isTouched()" [class.adf-readonly]="field.readOnly" | ||
[class.adf-left-label-input-container]="field.leftLabels"> | ||
<div> | ||
<label class="adf-label" | ||
[class.adf-left-label]="field.leftLabels" [attr.for]="field.id">{{field.name | translate }}<span class="adf-asterisk" *ngIf="isRequired()">*</span></label> | ||
</div> | ||
<div> | ||
<mat-form-field class="adf-amount-widget__input" [hideRequiredMarker]="true"> | ||
<span matPrefix class="adf-amount-widget__prefix-spacing">{{ currency }} </span> | ||
<input matInput [matTooltip]="field.tooltip" matTooltipPosition="above" matTooltipShowDelay="1000" | ||
class="adf-input" type="text" [id]="field.id" [required]="isRequired()" | ||
[placeholder]="placeholder" [value]="field.value" [(ngModel)]="field.value" | ||
(ngModelChange)="onFieldChanged(field)" [disabled]="field.readOnly" | ||
(blur)="markAsTouched()"> | ||
</mat-form-field> | ||
<error-widget [error]="field.validationSummary"></error-widget> | ||
<error-widget *ngIf="isInvalidFieldRequired() && isTouched()" | ||
required="{{ 'FORM.FIELD.REQUIRED' | translate }}"></error-widget> | ||
</div> | ||
</div> |
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
60 changes: 33 additions & 27 deletions
60
lib/process-services-cloud/src/lib/form/components/widgets/date/date-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 |
---|---|---|
@@ -1,29 +1,35 @@ | ||
<div class="{{field.className}}" id="data-widget" [class.adf-invalid]="!field.isValid && isTouched()"> | ||
<mat-form-field class="adf-date-widget" [hideRequiredMarker]="true"> | ||
<label class="adf-label" [attr.for]="field.id">{{field.name | translate }} ({{field.dateDisplayFormat}})<span class="adf-asterisk" | ||
<div class="{{field.className}}" id="data-widget" [class.adf-invalid]="!field.isValid && isTouched()" [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 }} ({{field.dateDisplayFormat}})<span class="adf-asterisk" | ||
*ngIf="isRequired()">*</span></label> | ||
<input matInput | ||
[id]="field.id" | ||
[value]="field.value" | ||
[required]="isRequired()" | ||
[disabled]="field.readOnly" | ||
(change)="onDateChanged($any($event).srcElement.value)" | ||
[placeholder]="field.placeholder" | ||
[matTooltip]="field.tooltip" | ||
(blur)="markAsTouched()" | ||
matTooltipPosition="above" | ||
matTooltipShowDelay="1000"> | ||
<mat-datepicker-toggle matSuffix [for]="datePicker" [disabled]="field.readOnly" ></mat-datepicker-toggle> | ||
</mat-form-field> | ||
<error-widget [error]="field.validationSummary"></error-widget> | ||
<error-widget *ngIf="isInvalidFieldRequired() && isTouched()" required="{{ 'FORM.FIELD.REQUIRED' | translate }}"></error-widget> | ||
<mat-datepicker #datePicker [touchUi]="true" [startAt]="field.value | adfMomentDate: field.dateDisplayFormat" [disabled]="field.readOnly"></mat-datepicker> | ||
<input | ||
type="hidden" | ||
[matDatepicker]="datePicker" | ||
[value]="field.value | adfMomentDate: field.dateDisplayFormat" | ||
[min]="minDate" | ||
[max]="maxDate" | ||
[disabled]="field.readOnly" | ||
(dateInput)="onDateChanged($any($event).targetElement.value)"> | ||
</div> | ||
<div> | ||
<mat-form-field class="adf-date-widget" [class.adf-left-label-input-datepicker]="field.leftLabels" [hideRequiredMarker]="true"> | ||
<label class="adf-label" *ngIf="!field.leftLabels" [attr.for]="field.id">{{field.name | translate }} ({{field.dateDisplayFormat}})<span class="adf-asterisk" | ||
*ngIf="isRequired()">*</span></label> | ||
<input matInput | ||
[id]="field.id" | ||
[value]="field.value" | ||
[required]="isRequired()" | ||
[disabled]="field.readOnly" | ||
(change)="onDateChanged($any($event).srcElement.value)" | ||
[placeholder]="field.placeholder" | ||
[matTooltip]="field.tooltip" | ||
(blur)="markAsTouched()" | ||
matTooltipPosition="above" | ||
matTooltipShowDelay="1000"> | ||
<mat-datepicker-toggle matSuffix [for]="datePicker" [disabled]="field.readOnly" ></mat-datepicker-toggle> | ||
</mat-form-field> | ||
<error-widget [error]="field.validationSummary"></error-widget> | ||
<error-widget *ngIf="isInvalidFieldRequired() && isTouched()" required="{{ 'FORM.FIELD.REQUIRED' | translate }}"></error-widget> | ||
<mat-datepicker #datePicker [touchUi]="true" [startAt]="field.value | adfMomentDate: field.dateDisplayFormat" [disabled]="field.readOnly"></mat-datepicker> | ||
<input | ||
type="hidden" | ||
[matDatepicker]="datePicker" | ||
[value]="field.value | adfMomentDate: field.dateDisplayFormat" | ||
[min]="minDate" | ||
[max]="maxDate" | ||
[disabled]="field.readOnly" | ||
(dateInput)="onDateChanged($any($event).targetElement.value)"> | ||
</div> | ||
</div> |
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
Oops, something went wrong.