Skip to content

Commit d78a9f4

Browse files
author
Sharma
committed
Fixed issues in Field comps
1 parent 98b3815 commit d78a9f4

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

packages/angular-sdk-components/src/lib/_components/field/phone/phone.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<component-mapper *ngIf="bVisible$ !== false" name="FieldValueList" [props]="{ label$, value$, displayMode$ }"></component-mapper>
33
</div>
44
<ng-template #noDisplayMode>
5-
<div *ngIf="!bReadonly$ && bHasForm$; else noEdit">
5+
<div *ngIf="bHasForm$; else noEdit">
66
<div #f="ngForm" [formGroup]="formGroup$" *ngIf="bVisible$">
77
<mat-form-field class="psdk-full-width" subscriptSizing="dynamic" [hintLabel]="helperText">
88
<ngx-mat-intl-tel-input
@@ -11,7 +11,7 @@
1111
[preferredCountries]="['us']"
1212
[enablePlaceholder]="true"
1313
[enableSearch]="true"
14-
[disabled]="bDisabled$"
14+
[disabled]="bDisabled$ || bReadonly$"
1515
(change)="fieldOnChange()"
1616
(blur)="fieldOnBlur()"
1717
>

packages/angular-sdk-components/src/lib/_components/field/radio-buttons/radio-buttons.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
<div [formGroup]="formGroup$" *ngIf="bVisible$">
1010
<mat-form-field class="psdk-radio-form" subscriptSizing="dynamic" [hintLabel]="helperText">
1111
<span class="psdk-label-wrapper-readonly">
12-
<label class="psdk-label-readonly">{{ label$ }}</label>
12+
<mat-label class="psdk-label-readonly">{{ label$ }}</mat-label>
1313
</span>
1414
<!-- <mat-label>{{label$}}</mat-label> -->
15-
<input matInput [placeholder]="placeholder" style="display: none" />
15+
<input matInput [placeholder]="placeholder" style="display: none" [required]="bRequired$" />
1616
<mat-radio-group
1717
[value]="value$"
1818
[required]="bRequired$"

packages/angular-sdk-components/src/lib/_components/field/text-area/text-area.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<component-mapper *ngIf="bVisible$ !== false" name="FieldValueList" [props]="{ label$, value$, displayMode$ }"></component-mapper>
33
</div>
44
<ng-template #noDisplayMode>
5-
<div *ngIf="!bReadonly$ && bHasForm$; else noEdit">
5+
<div *ngIf="bHasForm$; else noEdit">
66
<div [formGroup]="formGroup$">
77
<div *ngIf="bVisible$">
88
<mat-form-field class="psdk-full-width" subscriptSizing="dynamic" [hintLabel]="helperText">
@@ -15,6 +15,7 @@
1515
[value]="value$"
1616
[required]="bRequired$"
1717
[disabled]="bDisabled$"
18+
[readonly]="bReadonly$"
1819
[formControl]="fieldControl"
1920
(change)="fieldOnChange($event)"
2021
(blur)="fieldOnBlur($event)"

packages/angular-sdk-components/src/lib/_components/field/text/text.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class TextComponent implements OnInit, OnDestroy {
138138
// day: 'numeric'
139139
// }).format(new Date(sVal + "T00:00"));
140140

141-
return this.utils.generateDate(sVal, 'Date-Long-Custom-YYYY');
141+
return this.utils.generateDate(sVal, 'Date-DayMonthYear-Custom');
142142
}
143143

144144
generateDateTime(sVal): string {

0 commit comments

Comments
 (0)