@everymatrix/general-registration 1.73.0 → 1.73.2

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.
@@ -33,6 +33,10 @@
33
33
  justify-content: center;
34
34
  text-align: center;
35
35
  }
36
+ .registration__loading-message {
37
+ padding-top: 20px;
38
+ text-align: center;
39
+ }
36
40
  .registration__form {
37
41
  display: grid;
38
42
  grid-template-columns: repeat(1, 1fr);
@@ -257,6 +257,7 @@ export class GeneralRegistration {
257
257
  // Trigger events in subwidgets.
258
258
  this.emitValue = true;
259
259
  this.errorMessage = '';
260
+ this.registerErrors = false;
260
261
  this.setRegisterStep();
261
262
  }
262
263
  backHandler(e) {
@@ -795,7 +796,7 @@ export class GeneralRegistration {
795
796
  }
796
797
  render() {
797
798
  if (this.isLoading && !this.registerErrors) {
798
- return h("p", null, "Please wait, loading ...");
799
+ return h("p", { class: `registration registration__loading-message` }, translate('loadingMessage', this.language));
799
800
  }
800
801
  else if (!this.isLoading && this.registerErrors) {
801
802
  return this.renderErrorMessage(this.errorMessage);
@@ -54,6 +54,7 @@ export const TRANSLATIONS = {
54
54
  "generalError": "Something went wrong... Please try again.",
55
55
  "successMessage": "Register successful",
56
56
  "requestTwofaError": "There was an error when sending the code",
57
+ "loadingMessage": "Please wait, loading...",
57
58
  //Prod old errors which will be deleted after prod is updated to new keys.
58
59
  "GmErr_BadRequest_Duplicate_User": 'A user with this information already exists.',
59
60
  "GmErr_BadRequest_PasswordContainsUsername": "The password cannot be the same as the username.",
@@ -139,6 +140,7 @@ export const TRANSLATIONS = {
139
140
  "generalError": "Valami hiba történt... Próbáld újra.",
140
141
  "requestTwofaError": "Hiba történt a kód elküldésekor",
141
142
  "successMessage": "Sikeres regisztráció",
143
+ "loadingMessage": "Kérjük, várjon, betöltés folyamatban...",
142
144
  //Prod old errors which will be deleted after prod is updated to new keys.
143
145
  "GmErr_BadRequest_Duplicate_User": 'Egy ilyen információval rendelkező felhasználó már létezik.',
144
146
  "GmErr_BadRequest_PasswordContainsUsername": "A jelszó nem lehet azonos a felhasználónévvel.",
@@ -224,6 +226,7 @@ export const TRANSLATIONS = {
224
226
  "generalError": "Korisnik s ovim podacima već postoji.",
225
227
  "requestTwofaError": "Došlo je do pogreške prilikom slanja koda",
226
228
  "successMessage": "Register successful",
229
+ "loadingMessage": "Molimo pričekajte, učitavanje...",
227
230
  //Prod old errors which will be deleted after prod is updated to new keys.
228
231
  "GmErr_BadRequest_Duplicate_User": 'Korisnik s ovim informacijama već postoji.',
229
232
  "GmErr_BadRequest_PasswordContainsUsername": "Lozinka ne može biti ista kao korisničko ime.",
@@ -309,6 +312,7 @@ export const TRANSLATIONS = {
309
312
  "generalError": 'Alguma coisa deu errado. Por favor tente outra vez',
310
313
  "requestTwofaError": "Ocorreu um erro ao enviar o código",
311
314
  "successMessage": 'Registro bem-sucedido',
315
+ "loadingMessage": "Por favor, aguarde, carregando...",
312
316
  //Prod old errors which will be deleted after prod is updated to new keys.
313
317
  "GmErr_BadRequest_Duplicate_User": 'Um usuário com essas informações já existe.',
314
318
  "GmErr_BadRequest_PasswordContainsUsername": "A senha não pode ser igual ao nome de usuário.",
@@ -394,6 +398,7 @@ export const TRANSLATIONS = {
394
398
  "generalError": 'Algo salió mal... Por favor intente de nuevo',
395
399
  "requestTwofaError": "Se produjo un error al enviar el código",
396
400
  "successMessage": 'Registro exitoso',
401
+ "loadingMessage": "Por favor, espera, cargando...",
397
402
  //Prod old errors which will be deleted after prod is updated to new keys.
398
403
  "GmErr_BadRequest_Duplicate_User": 'Ya existe un usuario con esta información.',
399
404
  "GmErr_BadRequest_PasswordContainsUsername": "La contraseña no puede ser la misma que el nombre de usuario.",
@@ -479,6 +484,7 @@ export const TRANSLATIONS = {
479
484
  "generalError": "Bir şeyler ters gitti... Lütfen tekrar deneyin.",
480
485
  "requestTwofaError": "Kod gönderilirken bir hata oluştu",
481
486
  "successMessage": "Kayıt başarılı",
487
+ "loadingMessage": "Lütfen bekleyin, yükleniyor...",
482
488
  //Prod old errors which will be deleted after prod is updated to new keys.
483
489
  "GmErr_BadRequest_Duplicate_User": 'Bu bilgilerle bir kullanıcı zaten mevcut.',
484
490
  "GmErr_BadRequest_PasswordContainsUsername": "Parola kullanıcı adı ile aynı olamaz.",
@@ -564,6 +570,7 @@ export const TRANSLATIONS = {
564
570
  "generalError": "Something went wrong... Please try again.",
565
571
  "requestTwofaError": "There was an error when sending the code",
566
572
  "successMessage": "Register successful",
573
+ "loadingMessage": "Please wait, loading...",
567
574
  //Prod old errors which will be deleted after prod is updated to new keys.
568
575
  "GmErr_BadRequest_Duplicate_User": 'A user with this information already exists.',
569
576
  "GmErr_BadRequest_PasswordContainsUsername": "The password cannot be the same as the username.",
@@ -649,6 +656,7 @@ export const TRANSLATIONS = {
649
656
  "generalError": "Ceva a mers prost... Vă rugăm să încercați din nou.",
650
657
  "requestTwofaError": "A apărut o eroare la trimiterea codului",
651
658
  "successMessage": "Înregistrare reușită",
659
+ "loadingMessage": "Vă rugăm așteptați, se încarcă...",
652
660
  //Prod old errors which will be deleted after prod is updated to new keys.
653
661
  "GmErr_BadRequest_Duplicate_User": 'Un utilizator cu aceste informații există deja.',
654
662
  "GmErr_BadRequest_PasswordContainsUsername": "Parola nu poate fi aceeași cu numele de utilizator.",
@@ -731,6 +739,7 @@ export const TRANSLATIONS = {
731
739
  "nextButton": "Suivant",
732
740
  "backButton": "Retour",
733
741
  "requestTwofaError": "Une erreur est survenue lors de l'envoi du code",
742
+ "loadingMessage": "Veuillez patienter, chargement...",
734
743
  //Prod old errors which will be deleted after prod is updated to new keys.
735
744
  "GmErr_BadRequest_Duplicate_User": 'Un utilisateur avec ces informations existe déjà.',
736
745
  "GmErr_BadRequest_PasswordContainsUsername": "Le mot de passe ne peut pas être le même que le nom d'utilisateur.",
@@ -816,6 +825,7 @@ export const TRANSLATIONS = {
816
825
  "generalError": "Algo salió mal... Por favor, inténtalo de nuevo.",
817
826
  "requestTwofaError": "Se produjo un error al enviar el código",
818
827
  "successMessage": "Registro exitoso",
828
+ "loadingMessage": "Por favor, espera, cargando...",
819
829
  //Prod old errors which will be deleted after prod is updated to new keys.
820
830
  "GmErr_BadRequest_Duplicate_User": 'Ya existe un usuario con esta información.',
821
831
  "GmErr_BadRequest_PasswordContainsUsername": "La contraseña no puede ser la misma que el nombre de usuario.",
@@ -901,6 +911,7 @@ export const TRANSLATIONS = {
901
911
  "generalError": "Algo deu errado... Por favor, tente novamente.",
902
912
  "requestTwofaError": "Ocorreu um erro ao enviar o código",
903
913
  "successMessage": "Registro bem-sucedido",
914
+ "loadingMessage": "Por favor, aguarde, a carregar...",
904
915
  //Prod old errors which will be deleted after prod is updated to new keys.
905
916
  "GmErr_BadRequest_Duplicate_User": 'Um usuário com essas informações já existe.',
906
917
  "GmErr_BadRequest_PasswordContainsUsername": "A senha não pode ser igual ao nome de usuário.",
@@ -986,6 +997,7 @@ export const TRANSLATIONS = {
986
997
  "generalError": "Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",
987
998
  "requestTwofaError": "Beim Senden des Codes ist ein Fehler aufgetreten",
988
999
  "successMessage": "Registrierung erfolgreich",
1000
+ "loadingMessage": "Bitte warten, wird geladen...",
989
1001
  //Prod old errors which will be deleted after prod is updated to new keys.
990
1002
  "GmErr_BadRequest_Duplicate_User": 'Ein Benutzer mit diesen Informationen existiert bereits.',
991
1003
  "GmErr_BadRequest_PasswordContainsUsername": "Das Passwort darf nicht mit dem Benutzernamen übereinstimmen.",