@sumaris-net/ngx-components 2.12.16-rc2 → 2.12.16-rc4
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/public_api.mjs +5 -1
- package/esm2022/src/app/admin/users/users.mjs +3 -3
- package/esm2022/src/app/core/account/account.module.mjs +17 -4
- package/esm2022/src/app/core/account/account.page.mjs +14 -5
- package/esm2022/src/app/core/account/password/change-password.form.mjs +60 -0
- package/esm2022/src/app/core/account/password/change-password.module.mjs +22 -0
- package/esm2022/src/app/core/account/password/change-password.page.mjs +144 -0
- package/esm2022/src/app/core/auth/auth.form.mjs +41 -22
- package/esm2022/src/app/core/auth/auth.module.mjs +14 -5
- package/esm2022/src/app/core/auth/reset-password.modal.mjs +77 -0
- package/esm2022/src/app/core/core.module.mjs +5 -1
- package/esm2022/src/app/core/form/form.module.mjs +7 -3
- package/esm2022/src/app/core/form/username/username.form.mjs +52 -0
- package/esm2022/src/app/core/form/username/username.module.mjs +20 -0
- package/esm2022/src/app/core/home/home.mjs +23 -9
- package/esm2022/src/app/core/register/register-confirm.page.mjs +10 -8
- package/esm2022/src/app/core/register/register.form.mjs +3 -3
- package/esm2022/src/app/core/services/account.service.mjs +96 -12
- package/esm2022/src/app/core/services/config/core.config.mjs +7 -1
- package/esm2022/src/app/core/services/errors.mjs +2 -1
- package/esm2022/src/app/core/settings/settings.page.mjs +3 -3
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.config.mjs +1 -1
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +55 -72
- package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +3 -3
- package/esm2022/src/app/shared/named-filter/named-filter-selector.component.mjs +5 -4
- package/esm2022/src/app/shared/pipes/highlight.pipe.mjs +2 -2
- package/esm2022/src/app/shared/toolbar/toolbar.mjs +13 -8
- package/esm2022/src/app/shared/validator/validators.mjs +13 -1
- package/esm2022/src/environments/environment.mjs +12 -6
- package/fesm2022/sumaris-net.ngx-components.mjs +714 -237
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +5 -4
- package/public_api.d.ts +4 -0
- package/src/app/core/account/account.module.d.ts +2 -1
- package/src/app/core/account/account.page.d.ts +23 -14
- package/src/app/core/account/password/change-password.form.d.ts +19 -0
- package/src/app/core/account/password/change-password.module.d.ts +11 -0
- package/src/app/core/account/password/change-password.page.d.ts +36 -0
- package/src/app/core/auth/auth.form.d.ts +11 -9
- package/src/app/core/auth/auth.module.d.ts +6 -4
- package/src/app/core/auth/reset-password.modal.d.ts +26 -0
- package/src/app/core/core.module.d.ts +2 -1
- package/src/app/core/form/form.module.d.ts +2 -1
- package/src/app/core/form/username/username.form.d.ts +19 -0
- package/src/app/core/form/username/username.module.d.ts +9 -0
- package/src/app/core/home/home.d.ts +9 -1
- package/src/app/core/services/account.service.d.ts +8 -0
- package/src/app/core/services/config/core.config.d.ts +1 -0
- package/src/app/core/services/errors.d.ts +1 -0
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/app/shared/material/autocomplete/material.autocomplete.config.d.ts +1 -0
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +2 -0
- package/src/app/shared/toolbar/toolbar.d.ts +5 -0
- package/src/app/shared/validator/validators.d.ts +2 -0
- package/src/assets/i18n/en-US.json +26 -12
- package/src/assets/i18n/en.json +26 -13
- package/src/assets/i18n/fr.json +20 -9
- package/src/assets/manifest.json +1 -1
- package/src/theme/_ionic.globals.scss +1 -0
- package/src/theme/_mixins.scss +1 -0
package/src/assets/i18n/en.json
CHANGED
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
"BTN_DECIMAL_SEPARATOR": ".",
|
|
66
66
|
"EMPTY_OPTION": "(Empty)",
|
|
67
67
|
"All_OPTION": "(All)",
|
|
68
|
-
|
|
69
68
|
"DATE_PATTERN": "DD/MM/YYYY",
|
|
70
69
|
"DATE_TIME_PATTERN": "DD/MM/YYYY HH:mm",
|
|
71
70
|
"DATE_TIME_SECONDS_PATTERN": "DD/MM/YYYY HH:mm:ss",
|
|
@@ -77,7 +76,6 @@
|
|
|
77
76
|
"DATE_YEAR_PLACEHOLDER": "yyyy",
|
|
78
77
|
"DATE_PLACEHOLDER": "dd/mm/yyyy",
|
|
79
78
|
"DATE_TIME_PLACEHOLDER": "dd/mm/yyyy hh:mm",
|
|
80
|
-
|
|
81
79
|
"LAT_LONG": {
|
|
82
80
|
"DDMMSS_PLACEHOLDER": "DD° MM' SS\"",
|
|
83
81
|
"DDMM_PLACEHOLDER": "DD° MM.MMM'",
|
|
@@ -92,9 +90,7 @@
|
|
|
92
90
|
"LONG_SIGN_E": "E",
|
|
93
91
|
"LONG_SIGN_W": "W"
|
|
94
92
|
},
|
|
95
|
-
|
|
96
93
|
"METADATA": "Metadata:",
|
|
97
|
-
|
|
98
94
|
"DAY_UNIT": "j",
|
|
99
95
|
"DATE": "Date",
|
|
100
96
|
"TIME": "Time",
|
|
@@ -103,10 +99,8 @@
|
|
|
103
99
|
"TIME_PLACEHOLDER": "hh:mm",
|
|
104
100
|
"DURATION_PLACEHOLDER": "hhh:mm",
|
|
105
101
|
"DURATION_DOTS": "Duration:",
|
|
106
|
-
|
|
107
102
|
"YES": "Yes",
|
|
108
103
|
"NO": "No",
|
|
109
|
-
"DEBUG": "Debug",
|
|
110
104
|
|
|
111
105
|
"UPDATED_ON": "Last modification on",
|
|
112
106
|
"RECORDER": "Recorder",
|
|
@@ -122,10 +116,12 @@
|
|
|
122
116
|
"HAS_ERROR": "Please correct errors in the form"
|
|
123
117
|
},
|
|
124
118
|
"PAGINATOR": {
|
|
125
|
-
"ITEMS_PER_PAGE":"Items per page",
|
|
126
|
-
"NEXT_PAGE":"Next page",
|
|
127
|
-
"PREVIOUS_PAGE":"Previous page",
|
|
128
|
-
"OF": "on"
|
|
119
|
+
"ITEMS_PER_PAGE": "Items per page",
|
|
120
|
+
"NEXT_PAGE": "Next page",
|
|
121
|
+
"PREVIOUS_PAGE": "Previous page",
|
|
122
|
+
"OF": "on",
|
|
123
|
+
"FIRST_PAGE": "First page",
|
|
124
|
+
"LAST_PAGE": "Last page"
|
|
129
125
|
},
|
|
130
126
|
"TABLE": {
|
|
131
127
|
"FILTERED_PARENTHESIS": "(filtered)"
|
|
@@ -221,7 +217,6 @@
|
|
|
221
217
|
"LOGOUT": "Logout",
|
|
222
218
|
"ABOUT": "About",
|
|
223
219
|
"BTN_MY_ACCOUNT": "My account",
|
|
224
|
-
|
|
225
220
|
"TRIPS": "Trips",
|
|
226
221
|
"LOGBOOKS": "Logbooks",
|
|
227
222
|
"OCCASIONS": "Occasions",
|
|
@@ -258,11 +253,22 @@
|
|
|
258
253
|
"BTN_LOGIN": "Log In",
|
|
259
254
|
"BTN_REGISTER": "Sign up",
|
|
260
255
|
"NO_ACCOUNT_QUESTION": "Don't have an account?",
|
|
256
|
+
"RESET_PASSWORD_QUESTION": "Don't have access to your account anymore?",
|
|
257
|
+
"BTN_RESET_PASSWORD": "Reset your password",
|
|
261
258
|
"OFFLINE_MODE": "Force offline mode?",
|
|
262
259
|
"LOGOUT": {
|
|
263
260
|
"CONFIRM_TITLE": "Confirmation",
|
|
264
261
|
"CONFIRM_MESSAGE": "Are you sure you want to logout?",
|
|
265
262
|
"BTN_CONFIRM": "Yes, continue"
|
|
263
|
+
},
|
|
264
|
+
"RESET_PASSWORD": {
|
|
265
|
+
"TITLE": "Password Reset",
|
|
266
|
+
"HELP": "Please enter your account username. A <b>recovery link</b> will then be sent to you by email:",
|
|
267
|
+
"BTN_SEND": "Send request"
|
|
268
|
+
},
|
|
269
|
+
"CONFIRM": {
|
|
270
|
+
"RESET_PASSWORD_SENT": "Request sent! You should receive a recovery link by email.",
|
|
271
|
+
"PASSWORD_CHANGED": "Password updated <b>successfully</b>!"
|
|
266
272
|
}
|
|
267
273
|
},
|
|
268
274
|
"REGISTER": {
|
|
@@ -327,6 +333,11 @@
|
|
|
327
333
|
"VALUE": "Value"
|
|
328
334
|
}
|
|
329
335
|
},
|
|
336
|
+
"SECURITY": {
|
|
337
|
+
"TITLE": "Security",
|
|
338
|
+
"PASSWORD": "Password",
|
|
339
|
+
"BTN_CHANGE_PASSWORD": "Change the password"
|
|
340
|
+
},
|
|
330
341
|
"TOKENS": {
|
|
331
342
|
"TITLE": "Tokens",
|
|
332
343
|
"DESCRIPTION": "Authentication tokens",
|
|
@@ -363,7 +374,8 @@
|
|
|
363
374
|
"RELOADED": "Your user account has been updated!"
|
|
364
375
|
},
|
|
365
376
|
"ERROR": {
|
|
366
|
-
"SUBSCRIBE_ERROR": "Error while listening account's changes."
|
|
377
|
+
"SUBSCRIBE_ERROR": "Error while listening account's changes.",
|
|
378
|
+
"UPDATE_PUBKEY_ERROR": "Password change failed.<br/><small>If the problem persists, please contact your administrator</small>"
|
|
367
379
|
}
|
|
368
380
|
},
|
|
369
381
|
"SETTINGS": {
|
|
@@ -384,7 +396,7 @@
|
|
|
384
396
|
"USAGE_MODE": "Usage mode",
|
|
385
397
|
"USAGE_MODE_FIELD": "<b>On field</b> mode",
|
|
386
398
|
"USAGE_MODE_DESK": "<b>In office</b> mode",
|
|
387
|
-
"USAGE_MODES":
|
|
399
|
+
"USAGE_MODES": {
|
|
388
400
|
"FIELD": "On field",
|
|
389
401
|
"DESK": "In office"
|
|
390
402
|
},
|
|
@@ -587,6 +599,7 @@
|
|
|
587
599
|
"FIELD_NOT_VALID_PATTERN": "Invalid format",
|
|
588
600
|
"FIELD_NOT_VALID_PUBKEY": "Invalid public key",
|
|
589
601
|
"FIELD_NOT_UNIQUE": "Value already used",
|
|
602
|
+
"FIELD_NOT_EQUALS": "Value not equals",
|
|
590
603
|
"SPACE_NOT_ALLOW": "Spaces or special characters not allowed",
|
|
591
604
|
"SCRYPT_ERROR": "Unable to create account keys",
|
|
592
605
|
"INVALID_OR_INCOMPLETE_FILL": "Invalid or incomplete fill",
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
"BTN_DECIMAL_SEPARATOR": ",",
|
|
66
66
|
"EMPTY_OPTION": "(Vide)",
|
|
67
67
|
"All_OPTION": "(Tous)",
|
|
68
|
-
|
|
69
68
|
"DATE_PATTERN": "DD/MM/YYYY",
|
|
70
69
|
"DATE_TIME_PATTERN": "DD/MM/YYYY HH:mm",
|
|
71
70
|
"DATE_TIME_SECONDS_PATTERN": "DD/MM/YYYY HH:mm:ss",
|
|
@@ -77,7 +76,6 @@
|
|
|
77
76
|
"DATE_YEAR_PLACEHOLDER": "aaaa",
|
|
78
77
|
"DATE_PLACEHOLDER": "jj/mm/aaaa",
|
|
79
78
|
"DATE_TIME_PLACEHOLDER": "jj/mm/aaaa hh:mm",
|
|
80
|
-
|
|
81
79
|
"LAT_LONG": {
|
|
82
80
|
"DDMMSS_PLACEHOLDER": "DD° MM' SS\"",
|
|
83
81
|
"DDMM_PLACEHOLDER": "DD° MM.MMM'",
|
|
@@ -92,9 +90,7 @@
|
|
|
92
90
|
"LONG_SIGN_E": "E",
|
|
93
91
|
"LONG_SIGN_W": "W"
|
|
94
92
|
},
|
|
95
|
-
|
|
96
93
|
"METADATA": "Metadata:",
|
|
97
|
-
|
|
98
94
|
"DAY_UNIT": "j",
|
|
99
95
|
"DATE": "Date",
|
|
100
96
|
"TIME": "Heure",
|
|
@@ -103,12 +99,10 @@
|
|
|
103
99
|
"TIME_PLACEHOLDER": "hh:mm",
|
|
104
100
|
"DURATION_PLACEHOLDER": "hhh:mm",
|
|
105
101
|
"DURATION_DOTS": "Durée :",
|
|
106
|
-
|
|
107
102
|
"YES": "Oui",
|
|
108
103
|
"NO": "Non",
|
|
109
|
-
"DEBUG": "Debug",
|
|
110
104
|
|
|
111
|
-
"UPDATED_ON": "
|
|
105
|
+
"UPDATED_ON": "Mis à jour le",
|
|
112
106
|
"RECORDER": "Saisisseur",
|
|
113
107
|
"RESULT_COUNT": "{{count}} résultats",
|
|
114
108
|
"NO_RESULT": "Aucun résultat",
|
|
@@ -223,7 +217,6 @@
|
|
|
223
217
|
"LOGOUT": "Se déconnecter",
|
|
224
218
|
"ABOUT": "À propos",
|
|
225
219
|
"BTN_MY_ACCOUNT": "Mon compte",
|
|
226
|
-
|
|
227
220
|
"TRIPS": "Marées",
|
|
228
221
|
"LOGBOOKS": "Logbooks",
|
|
229
222
|
"OCCASIONS": "Sorties",
|
|
@@ -260,11 +253,22 @@
|
|
|
260
253
|
"BTN_LOGIN": "Se connecter",
|
|
261
254
|
"BTN_REGISTER": "Créer un compte",
|
|
262
255
|
"NO_ACCOUNT_QUESTION": "Vous n'avez pas encore de compte ?",
|
|
256
|
+
"RESET_PASSWORD_QUESTION": "Vous n'avez plus accès à votre compte ?",
|
|
257
|
+
"BTN_RESET_PASSWORD": "Réinitialiser votre mot de passe",
|
|
263
258
|
"OFFLINE_MODE": "Forcer le mode hors-ligne ?",
|
|
264
259
|
"LOGOUT": {
|
|
265
260
|
"CONFIRM_TITLE": "Confirmation",
|
|
266
261
|
"CONFIRM_MESSAGE": "Êtes-vous sûr de vouloir vous déconnecter ?",
|
|
267
262
|
"BTN_CONFIRM": "Oui, continuer"
|
|
263
|
+
},
|
|
264
|
+
"RESET_PASSWORD": {
|
|
265
|
+
"TITLE": "Réinitialisation du mot de passe",
|
|
266
|
+
"HELP": "Veuillez saisir votre identifiant de compte. Un <b>lien de récupération</b> vous sera ensuite envoyé par email :",
|
|
267
|
+
"BTN_SEND": "Envoyer la demande"
|
|
268
|
+
},
|
|
269
|
+
"CONFIRM": {
|
|
270
|
+
"RESET_PASSWORD_SENT": "Demande envoyée ! Vous devriez <b>recevoir un lien de récupération</b> par email.",
|
|
271
|
+
"PASSWORD_CHANGED": "Mot de passe mis à jour <b>avec succès</b> !"
|
|
268
272
|
}
|
|
269
273
|
},
|
|
270
274
|
"REGISTER": {
|
|
@@ -329,6 +333,11 @@
|
|
|
329
333
|
"VALUE": "Valeur"
|
|
330
334
|
}
|
|
331
335
|
},
|
|
336
|
+
"SECURITY": {
|
|
337
|
+
"TITLE": "Sécurité",
|
|
338
|
+
"PASSWORD": "Mot de passe",
|
|
339
|
+
"BTN_CHANGE_PASSWORD": "Changer le mot de passe"
|
|
340
|
+
},
|
|
332
341
|
"TOKENS": {
|
|
333
342
|
"TITLE": "Jetons",
|
|
334
343
|
"DESCRIPTION": "Liste des jetons d'authentification",
|
|
@@ -365,7 +374,8 @@
|
|
|
365
374
|
"RELOADED": "Votre compte utilisateur a été <b>actualisé</b> !"
|
|
366
375
|
},
|
|
367
376
|
"ERROR": {
|
|
368
|
-
"SUBSCRIBE_ERROR": "Échec de l'abonnement distant au compte utilisateur."
|
|
377
|
+
"SUBSCRIBE_ERROR": "Échec de l'abonnement distant au compte utilisateur.",
|
|
378
|
+
"UPDATE_PUBKEY_ERROR": "Échec du changement du mot de passe.<br/><small>Si le problème persiste, veuillez <b>contactez votre administrateur</b>"
|
|
369
379
|
}
|
|
370
380
|
},
|
|
371
381
|
"SETTINGS": {
|
|
@@ -589,6 +599,7 @@
|
|
|
589
599
|
"FIELD_NOT_VALID_PATTERN": "Format incorrect",
|
|
590
600
|
"FIELD_NOT_VALID_PUBKEY": "Clé publique invalide",
|
|
591
601
|
"FIELD_NOT_UNIQUE": "Valeur déjà utilisée",
|
|
602
|
+
"FIELD_NOT_EQUALS": "Valeur différente",
|
|
592
603
|
"SPACE_NOT_ALLOW": "Espaces ou caractères spéciaux non autorisés",
|
|
593
604
|
"SCRYPT_ERROR": "Erreur de generation des clefs d'ouverture du compte",
|
|
594
605
|
"INVALID_OR_INCOMPLETE_FILL": "Saisie incomplète ou invalide",
|
package/src/assets/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "ngx-sumaris-components",
|
|
3
3
|
"short_name": "ngx-sumaris-components",
|
|
4
4
|
"manifest_version": 1,
|
|
5
|
-
"version": "2.12.16-
|
|
5
|
+
"version": "2.12.16-rc4",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|
|
@@ -68,6 +68,7 @@ $dark-disabled-text: rgba(black, 0.38);
|
|
|
68
68
|
$light-primary-text: white;
|
|
69
69
|
$light-secondary-text: rgba(white, 0.7);
|
|
70
70
|
$light-disabled-text: rgba(white, 0.5);
|
|
71
|
+
$card-background-color: rgba(white, 0.7);
|
|
71
72
|
|
|
72
73
|
// Default General Colors
|
|
73
74
|
// --------------------------------------------------
|
package/src/theme/_mixins.scss
CHANGED
|
@@ -114,6 +114,7 @@
|
|
|
114
114
|
--ion-backdrop-color: #{$text-color};
|
|
115
115
|
--ion-backdrop-color-rgb: #{$text-color-rgb};
|
|
116
116
|
--ion-backdrop-opacity: 0.32;
|
|
117
|
+
--ion-card-background-color: #{$card-background-color};
|
|
117
118
|
|
|
118
119
|
--expansion-panel-padding: var(--ion-padding);
|
|
119
120
|
--expansion-panel-header-padding: var(--ion-padding);
|