-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
My Account v2 views including: - My Information - My Email Address - Update Password and Security - Update Communications (Preferred Communication Channel) - Privacy And Settings (Consent Management)
- Loading branch information
Showing
85 changed files
with
3,831 additions
and
34 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
[] |
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 @@ | ||
[] |
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 @@ | ||
[] |
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
21 changes: 21 additions & 0 deletions
21
feature-libs/user/profile/assets/translations/en/my-account-v2-email.18n.ts
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,21 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 SAP Spartacus team <[email protected]> | ||
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export const myAccountV2Email = { | ||
myAccountV2Email: { | ||
myEmailAddress: 'My Email Address', | ||
email: 'Email', | ||
emailAddress: 'Email Address', | ||
newEmailAddress: 'New Email Address', | ||
confirmNewEmailAddress: 'Confirm New Email Address', | ||
emailPlaceHolder: 'Enter email', | ||
passwordPlaceHolder: 'Enter password', | ||
password: 'Password', | ||
reloginIndicator: | ||
'You need to log in again after setting a new email address.', | ||
}, | ||
}; |
31 changes: 31 additions & 0 deletions
31
feature-libs/user/profile/assets/translations/en/my-account-v2-password.i18n.ts
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,31 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 SAP Spartacus team <[email protected]> | ||
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export const myAccountV2Password = { | ||
myAccountV2PasswordForm: { | ||
oldPassword: { | ||
label: 'Old Password', | ||
placeholder: 'Enter Old Password', | ||
}, | ||
oldPasswordIsRequired: 'Old password is required.', | ||
newPassword: { | ||
label: 'New Password', | ||
placeholder: 'Enter New Password', | ||
}, | ||
passwordMinRequirements: | ||
'Password must be six characters minimum, with one uppercase letter, one number, one symbol', | ||
confirmPassword: { | ||
label: 'Confirm New Password', | ||
placeholder: 'Confirm New Password', | ||
}, | ||
reloginIndicator: 'You need to log in again after setting password.', | ||
bothPasswordMustMatch: 'Both password must match', | ||
passwordUpdateSuccess: 'Password updated with success', | ||
accessDeniedError: 'Access is denied', | ||
newPasswordTitle: 'My Password', | ||
}, | ||
}; |
18 changes: 18 additions & 0 deletions
18
feature-libs/user/profile/assets/translations/en/my-account-v2-user-profile.18n.ts
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,18 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 SAP Spartacus team <[email protected]> | ||
* SPDX-FileCopyrightText: 2024 SAP Spartacus team <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export const myAccountV2UserProfile = { | ||
myAccountV2UserProfile: { | ||
myEmailAddress: 'My Email Address', | ||
myInformation: 'My Information', | ||
name: 'Name', | ||
customerId: 'CustomerId', | ||
title: 'Title', | ||
firstName: 'First name', | ||
lastName: 'Last name', | ||
}, | ||
}; |
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
115 changes: 115 additions & 0 deletions
115
feature-libs/user/profile/components/update-email/my-account-v2-email.component.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,115 @@ | ||
<cx-spinner | ||
class="overlay" | ||
*ngIf="(isUpdating$ | async) || !(user$ | async); $" | ||
> | ||
</cx-spinner> | ||
<div> | ||
<div class="flex-line"> | ||
<label class="headertext" | ||
>{{ 'myAccountV2Email.myEmailAddress' | cxTranslate }} | ||
</label> | ||
<button class="editButton" *ngIf="!isEditing" (click)="onEdit()"> | ||
{{ 'common.edit' | cxTranslate }} | ||
</button> | ||
</div> | ||
<div> | ||
<div *ngIf="!isEditing"> | ||
<div class="flex-line"> | ||
<label class="text-head"> | ||
{{ 'myAccountV2Email.email' | cxTranslate }} | ||
</label> | ||
<label class="value"> | ||
{{ (user$ | async)?.uid }} | ||
</label> | ||
</div> | ||
</div> | ||
</div> | ||
<cx-message | ||
*ngIf="isEditing && showingAlert" | ||
[text]="'myAccountV2Email.reloginIndicator' | cxTranslate" | ||
[type]="globalMessageType.MSG_TYPE_INFO" | ||
(closeMessage)="closeDialogConfirmationAlert()" | ||
></cx-message> | ||
<div *ngIf="isEditing" class="email-editing-area"> | ||
<form (ngSubmit)="onSubmit()" [formGroup]="form"> | ||
<label> | ||
<span class="text-head">{{ | ||
'myAccountV2Email.emailAddress' | cxTranslate | ||
}}</span> | ||
<input | ||
type="text" | ||
class="form-control" | ||
[value]="(user$ | async)?.uid" | ||
readonly | ||
/> | ||
</label> | ||
|
||
<label> | ||
<span class="text-head">{{ | ||
'myAccountV2Email.newEmailAddress' | cxTranslate | ||
}}</span> | ||
<input | ||
required="true" | ||
type="email" | ||
name="email" | ||
formControlName="email" | ||
placeholder="{{ 'myAccountV2Email.emailPlaceHolder' | cxTranslate }}" | ||
class="form-control" | ||
/> | ||
<cx-form-errors [control]="form.get('email')"></cx-form-errors> | ||
</label> | ||
|
||
<label> | ||
<span class="text-head">{{ | ||
'myAccountV2Email.confirmNewEmailAddress' | cxTranslate | ||
}}</span> | ||
<input | ||
required="true" | ||
type="email" | ||
name="confirmEmail" | ||
formControlName="confirmEmail" | ||
placeholder="{{ 'myAccountV2Email.emailPlaceHolder' | cxTranslate }}" | ||
class="form-control" | ||
/> | ||
<cx-form-errors [control]="form.get('confirmEmail')"></cx-form-errors> | ||
</label> | ||
|
||
<label> | ||
<span class="label-content, text-head">{{ | ||
'myAccountV2Email.password' | cxTranslate | ||
}}</span> | ||
<input | ||
required="true" | ||
type="password" | ||
name="password" | ||
formControlName="password" | ||
placeholder="{{ | ||
'myAccountV2Email.passwordPlaceHolder' | cxTranslate | ||
}}" | ||
class="form-control" | ||
autocomplete="new-password" | ||
[attr.aria-label]=" | ||
'myAccountV2Email.passwordPlaceHolder' | cxTranslate | ||
" | ||
cxPasswordVisibilitySwitch | ||
/> | ||
<cx-form-errors [control]="form.get('password')"></cx-form-errors> | ||
</label> | ||
|
||
<div class="btn-group-row"> | ||
<div class="btn-group"> | ||
<button class="btn button-cancel button" (click)="cancelEdit()"> | ||
{{ 'common.cancel' | cxTranslate }} | ||
</button> | ||
<button | ||
class="btn btn-primary button" | ||
(click)="onSubmit()" | ||
[disabled]="form.disabled" | ||
> | ||
{{ 'common.save' | cxTranslate }} | ||
</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> |
Oops, something went wrong.