SiChangePasswordComponent documentation¶
selector
si-change-passwordA component for changing user passwords with strength validation and policy enforcement.
This component provides a form for users to change their password, including password strength indicators, policy validation, and confirmation fields. It supports custom password policies and displays inline notifications for alerts.
Example:
<si-change-password
[passwordStrength]="passwordPolicy"
[passwordPolicyContent]="policyTemplate"
[changePasswordAlert]="alertConfig"
(changePasswordRequested)="handlePasswordChange($event)"
(back)="handleBack()">
</si-change-password>
Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| backButtonLabel ¶ | TranslatableString | $localize`:@@SI_CHANGE_PASSWORD.BACK:Back` | Description of back button. |
| changeButtonLabel ¶ | TranslatableString | $localize`:@@SI_CHANGE_PASSWORD.CHANGE:Change` | Label for change password button. |
| changePasswordAlert ¶ | AlertConfig | Config to enable/disable password related error/alerts. | |
| confirmPasswordLabel ¶ | TranslatableString | $localize`:@@SI_CHANGE_PASSWORD.CONFIRM_PASSWORD:Confirm password` | Label for confirm password input field. |
| disableChange ¶ | boolean | false | Disables the change password button. |
| heading ¶ | TranslatableString | $localize`:@@SI_CHANGE_PASSWORD.CHANGE_PASSWORD:Change password` | Change password heading. |
| newPasswordLabel ¶ | TranslatableString | $localize`:@@SI_CHANGE_PASSWORD.NEW_PASSWORD:New password` | Label for new password input field. |
| passwordPolicyContent | (string | TemplateRef<unknown>) | Description of the password policy requirements. | |
| passwordPolicyTitle ¶ | TranslatableString | $localize`:@@SI_CHANGE_PASSWORD.PASSWORD_POLICY:Password policy` | Title of the password policy. |
| passwordStrength | PasswordPolicy | Description of the password policy requirements. | |
| subheading ¶ | TranslatableString | $localize`:@@SI_CHANGE_PASSWORD.CHANGE_FACTORY_PASSWORD:Factory set password must be changed` | Short description of the action to perform. |
Output Properties¶
| Name | Type | Description |
|---|---|---|
| back ¶ | void | Emits on back click. |
| changePasswordRequested ¶ | ChangePassword | Emits password on change event. |
| passwordStrengthChanged ¶ | (number | void) | The number indicating the number of rules which still can be met. ( -2 --\> 2 rules are still unmet, 0 --\> all met) |
| valueChanged ¶ | ChangePassword | Emits password on value change. |
Types Documentation¶
| Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit . Equivalent to a normal string in usage and functionality. |
|---|
|
|
|
Translatable import imported from @siemens/element-translate-ng |
|---|
|
Except where otherwise noted, content on this site is licensed under MIT License.