valtech-components 2.0.921 → 2.0.923
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/organisms/change-password-modal/change-password-modal.component.mjs +3 -1
- package/esm2022/lib/components/organisms/fun-header/fun-header.component.mjs +4 -1
- package/esm2022/lib/components/organisms/fun-header/types.mjs +1 -1
- package/esm2022/lib/services/i18n/default-content.mjs +5 -3
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +10 -3
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +2 -2
- package/lib/components/atoms/text/text.component.d.ts +1 -1
- package/lib/components/atoms/user-avatar/user-avatar.component.d.ts +1 -1
- package/lib/components/molecules/features-list/features-list.component.d.ts +1 -1
- package/lib/components/organisms/article/article.component.d.ts +4 -4
- package/lib/components/organisms/fun-header/types.d.ts +2 -0
- package/lib/components/organisms/toolbar/toolbar.component.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -54,7 +54,7 @@ import 'prismjs/components/prism-json';
|
|
|
54
54
|
* Current version of valtech-components.
|
|
55
55
|
* This is automatically updated during the publish process.
|
|
56
56
|
*/
|
|
57
|
-
const VERSION = '2.0.
|
|
57
|
+
const VERSION = '2.0.923';
|
|
58
58
|
|
|
59
59
|
// Control de estado de refresco (singleton a nivel de módulo)
|
|
60
60
|
let isRefreshing = false;
|
|
@@ -7228,7 +7228,7 @@ const VALTECH_DEFAULT_CONTENT = {
|
|
|
7228
7228
|
resetTitle: 'Restablecer contraseña',
|
|
7229
7229
|
resetDescription: 'Hemos enviado un código de verificación a tu correo.',
|
|
7230
7230
|
newPassword: 'Nueva contraseña',
|
|
7231
|
-
newPasswordHint: 'Mínimo 8 caracteres',
|
|
7231
|
+
newPasswordHint: 'Mínimo 8 caracteres, con mayúscula, minúscula, número y carácter especial',
|
|
7232
7232
|
resetSubmit: 'Cambiar contraseña',
|
|
7233
7233
|
passwordUpdated: '¡Contraseña actualizada! Ya puedes iniciar sesión.',
|
|
7234
7234
|
// Change password (sesión activa)
|
|
@@ -7240,6 +7240,7 @@ const VALTECH_DEFAULT_CONTENT = {
|
|
|
7240
7240
|
passwordChangedSuccess: '¡Contraseña actualizada!',
|
|
7241
7241
|
errorCurrentPasswordWrong: 'La contraseña actual es incorrecta',
|
|
7242
7242
|
errorSamePassword: 'La nueva contraseña debe ser diferente a la actual',
|
|
7243
|
+
errorPasswordTooWeak: 'La contraseña debe incluir al menos 8 caracteres, una mayúscula, una minúscula, un número y un carácter especial',
|
|
7243
7244
|
// Change email (3 pasos)
|
|
7244
7245
|
changeEmailTitle: 'Cambiar email',
|
|
7245
7246
|
changeEmailStep1Description: 'Ingresa tu contraseña actual y el nuevo email.',
|
|
@@ -7411,7 +7412,7 @@ const VALTECH_DEFAULT_CONTENT = {
|
|
|
7411
7412
|
resetTitle: 'Reset password',
|
|
7412
7413
|
resetDescription: 'We have sent a verification code to your email.',
|
|
7413
7414
|
newPassword: 'New password',
|
|
7414
|
-
newPasswordHint: '
|
|
7415
|
+
newPasswordHint: 'Min. 8 characters, with uppercase, lowercase, number and special character',
|
|
7415
7416
|
resetSubmit: 'Change password',
|
|
7416
7417
|
passwordUpdated: 'Password updated! You can now sign in.',
|
|
7417
7418
|
// Change password (active session)
|
|
@@ -7423,6 +7424,7 @@ const VALTECH_DEFAULT_CONTENT = {
|
|
|
7423
7424
|
passwordChangedSuccess: 'Password updated!',
|
|
7424
7425
|
errorCurrentPasswordWrong: 'Current password is incorrect',
|
|
7425
7426
|
errorSamePassword: 'New password must be different from the current one',
|
|
7427
|
+
errorPasswordTooWeak: 'Password must include at least 8 characters, one uppercase, one lowercase, one number and one special character',
|
|
7426
7428
|
// Change email (3 steps)
|
|
7427
7429
|
changeEmailTitle: 'Change email',
|
|
7428
7430
|
changeEmailStep1Description: 'Enter your current password and the new email.',
|
|
@@ -31367,6 +31369,8 @@ class ChangePasswordModalComponent {
|
|
|
31367
31369
|
return this.t('errorSamePassword');
|
|
31368
31370
|
case 'AUTHV2_PASSWORD_ALREADY_SET':
|
|
31369
31371
|
return this.t('errorPasswordAlreadySet');
|
|
31372
|
+
case 'VALIDATION_MISSING_REQUIRED_FIELDS':
|
|
31373
|
+
return this.t('errorPasswordTooWeak');
|
|
31370
31374
|
default:
|
|
31371
31375
|
return this.t('errorGeneric');
|
|
31372
31376
|
}
|
|
@@ -35780,6 +35784,9 @@ class FunHeaderComponent {
|
|
|
35780
35784
|
const style = {};
|
|
35781
35785
|
const isDark = this.theme.IsDark;
|
|
35782
35786
|
const background = isDark ? this.props.backgroundDark || this.props.background : this.props.background;
|
|
35787
|
+
if (this.props.paddingTop) {
|
|
35788
|
+
style['paddingTop'] = this.props.paddingTop;
|
|
35789
|
+
}
|
|
35783
35790
|
if (this.props.paddingBottom) {
|
|
35784
35791
|
style['paddingBottom'] = this.props.paddingBottom;
|
|
35785
35792
|
}
|