@sumaris-net/ngx-components 18.5.2 → 18.5.4-alpha1
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/src/app/core/account/account.page.mjs +4 -4
- package/esm2022/src/app/core/account/password/change-password.form.mjs +11 -8
- package/esm2022/src/app/core/account/password/change-password.page.mjs +10 -4
- package/esm2022/src/app/core/auth/reset-password.modal.mjs +16 -4
- package/esm2022/src/app/core/form/entity/tab-editor.class.mjs +3 -1
- package/esm2022/src/app/core/form/username/username.form.mjs +10 -7
- package/esm2022/src/app/core/services/account.service.mjs +7 -7
- package/esm2022/src/app/core/services/errors.mjs +4 -2
- package/fesm2022/sumaris-net.ngx-components.mjs +143 -126
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/auth/reset-password.modal.d.ts +3 -0
- package/src/app/core/install/install-upgrade-card.component.d.ts +1 -1
- package/src/app/core/services/errors.d.ts +2 -0
- package/src/assets/i18n/en-US.json +3 -1
- package/src/assets/i18n/en.json +3 -1
- package/src/assets/i18n/fr.json +4 -2
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import { ModalController, ToastController } from '@ionic/angular';
|
|
|
3
3
|
import { AccountService } from '../services/account.service';
|
|
4
4
|
import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
5
5
|
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
+
import { Subscription, TeardownLogic } from 'rxjs';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class AppResetPasswordModal implements OnInit {
|
|
8
9
|
protected accountService: AccountService;
|
|
@@ -10,6 +11,7 @@ export declare class AppResetPasswordModal implements OnInit {
|
|
|
10
11
|
protected toastController: ToastController;
|
|
11
12
|
protected translate: TranslateService;
|
|
12
13
|
protected cd: ChangeDetectorRef;
|
|
14
|
+
protected readonly subscription: Subscription;
|
|
13
15
|
protected sending: boolean;
|
|
14
16
|
username: string;
|
|
15
17
|
usernamePlaceholder: string;
|
|
@@ -20,6 +22,7 @@ export declare class AppResetPasswordModal implements OnInit {
|
|
|
20
22
|
cancel(): Promise<void>;
|
|
21
23
|
doSubmit(event?: any): Promise<void>;
|
|
22
24
|
protected showToast(opts: ShowToastOptions): Promise<void>;
|
|
25
|
+
protected registerSubscription(teardown: TeardownLogic): void;
|
|
23
26
|
protected markForCheck(): void;
|
|
24
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppResetPasswordModal, never>;
|
|
25
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<AppResetPasswordModal, "app-reset-password-modal", never, { "username": { "alias": "username"; "required": false; }; "usernamePlaceholder": { "alias": "usernamePlaceholder"; "required": false; }; "emailValidator": { "alias": "emailValidator"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -45,7 +45,7 @@ export declare class AppInstallUpgradeCard implements OnInit, OnDestroy {
|
|
|
45
45
|
download(event: Event, link: InstallAppLink): Promise<void>;
|
|
46
46
|
openFile(event: Event, link: InstallAppLink): Promise<void>;
|
|
47
47
|
tryOnline(): Promise<void>;
|
|
48
|
-
getPlatformName(platform: 'android' | 'ios' | 'electron'): "" | "
|
|
48
|
+
getPlatformName(platform: 'android' | 'ios' | 'electron'): "" | "Android" | "iOS" | "desktop";
|
|
49
49
|
asLink(value: any): InstallAppLink;
|
|
50
50
|
private checkNeedInstallOrUpdate;
|
|
51
51
|
private getCompatibleInstallLinks;
|
|
@@ -40,6 +40,8 @@ export declare const ErrorCodes: {
|
|
|
40
40
|
INTERNAL_SERVER_ERROR: number;
|
|
41
41
|
AUTH_CHALLENGE_ERROR: number;
|
|
42
42
|
AUTH_SERVER_ERROR: number;
|
|
43
|
+
AUTH_SEND_RESET_PASSWORD_EMAIL_ERROR: number;
|
|
44
|
+
AUTH_RESET_PUBKEY_ERROR: number;
|
|
43
45
|
AUTH_UPDATE_PUBKEY_ERROR: number;
|
|
44
46
|
LOAD_CONFIG_ERROR: number;
|
|
45
47
|
SAVE_CONFIG_ERROR: number;
|
|
@@ -392,7 +392,9 @@
|
|
|
392
392
|
},
|
|
393
393
|
"ERROR": {
|
|
394
394
|
"SUBSCRIBE_ERROR": "Error while listening account's changes.",
|
|
395
|
-
"
|
|
395
|
+
"SEND_RESET_PASSWORD_EMAIL_ERROR": "Password reset request failed.<br/><small>Please <b>check your input</b>, as this identifier appears to be unknown.<br/>If the issue persists, please <b>contact your administrator</b>.</small>",
|
|
396
|
+
"UPDATE_PUBKEY_ERROR": "Failed to update the password.<br/><small>If the issue persists, please <b>contact your administrator</b>.</small>",
|
|
397
|
+
"RESET_PUBKEY_ERROR": "Failed to reset the password.<br/><small>Ensure you are using <b>the correct reset link</b>. If the issue persists, please <b>contact your administrator</b>.</small>"
|
|
396
398
|
}
|
|
397
399
|
},
|
|
398
400
|
"SETTINGS": {
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -391,7 +391,9 @@
|
|
|
391
391
|
},
|
|
392
392
|
"ERROR": {
|
|
393
393
|
"SUBSCRIBE_ERROR": "Error while listening account's changes.",
|
|
394
|
-
"
|
|
394
|
+
"SEND_RESET_PASSWORD_EMAIL_ERROR": "Password reset request failed.<br/><small>Please <b>check your input</b>, as this identifier appears to be unknown.<br/>If the issue persists, please <b>contact your administrator</b>.</small>",
|
|
395
|
+
"UPDATE_PUBKEY_ERROR": "Failed to update the password.<br/><small>If the issue persists, please <b>contact your administrator</b>.</small>",
|
|
396
|
+
"RESET_PUBKEY_ERROR": "Failed to reset the password.<br/><small>Ensure you are using <b>the correct reset link</b>. If the issue persists, please <b>contact your administrator</b>.</small>"
|
|
395
397
|
}
|
|
396
398
|
},
|
|
397
399
|
"SETTINGS": {
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -391,7 +391,9 @@
|
|
|
391
391
|
},
|
|
392
392
|
"ERROR": {
|
|
393
393
|
"SUBSCRIBE_ERROR": "Échec de l'abonnement distant au compte utilisateur.",
|
|
394
|
-
"
|
|
394
|
+
"SEND_RESET_PASSWORD_EMAIL_ERROR": "Échec de la demande de réinitialisation,<br/><small>Veuillez <b>vérifiez votre saisie</b>, car cet identifiant semble inconnu.<br/>Si le problème persiste, veuillez <b>contacter votre administrateur</b>.</small>",
|
|
395
|
+
"UPDATE_PUBKEY_ERROR": "Échec du changement du mot de passe.<br/><small>Si le problème persiste, veuillez <b>contacter votre administrateur</b>",
|
|
396
|
+
"RESET_PUBKEY_ERROR": "Échec du changement du mot de passe.<br/><small>Vérifiez que vous utilisez <b>le bon lien de réinitialisation</b>. Si le problème persiste, veuillez <b>contacter votre administrateur</b>"
|
|
395
397
|
}
|
|
396
398
|
},
|
|
397
399
|
"SETTINGS": {
|
|
@@ -507,7 +509,7 @@
|
|
|
507
509
|
"UPDATE_OFFLINE_MODE_HELP": "Avant la mise à jour, <b>veuillez synchroniser vos éventuelles marées terminées</b>."
|
|
508
510
|
},
|
|
509
511
|
"ERROR": {
|
|
510
|
-
"NOT_COMPATIBLE_PEER": "L'application fonctionne en <b>mode hors-ligne</b>, car le nœud réseau <b>utilise une version obsolète</b>.<br/><small>Si le problème persiste, veuillez <b>
|
|
512
|
+
"NOT_COMPATIBLE_PEER": "L'application fonctionne en <b>mode hors-ligne</b>, car le nœud réseau <b>utilise une version obsolète</b>.<br/><small>Si le problème persiste, veuillez <b>contacter votre administrateur</b> ou utilisez un nœud v{{version}} ou supérieur.</small>"
|
|
511
513
|
}
|
|
512
514
|
},
|
|
513
515
|
"SOCIAL": {
|
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": "18.5.
|
|
5
|
+
"version": "18.5.4-alpha1",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|