@sumaris-net/ngx-components 18.5.1 → 18.5.3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "18.5.1",
4
+ "version": "18.5.3",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -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>;
@@ -50,6 +50,8 @@ export declare class AppPropertiesForm<O = any, T extends Property<O> = Property
50
50
  addButtonText: string;
51
51
  addButtonTitle: string;
52
52
  showAddButton: boolean;
53
+ panelClass: string;
54
+ panelWidth: string;
53
55
  /**
54
56
  * @deprecated Use addButtonTitle instead
55
57
  * @param value
@@ -80,7 +82,7 @@ export declare class AppPropertiesForm<O = any, T extends Property<O> = Property
80
82
  protected markForCheck(): void;
81
83
  protected isEmptyProperty(obj: Property): boolean;
82
84
  static ɵfac: i0.ɵɵFactoryDeclaration<AppPropertiesForm<any, any, any>, [null, null, null, null, null, { optional: true; }]>;
83
- static ɵcmp: i0.ɵɵComponentDeclaration<AppPropertiesForm<any, any, any>, "app-properties-form", never, { "formArrayName": { "alias": "formArrayName"; "required": false; }; "formArray": { "alias": "formArray"; "required": false; }; "options": { "alias": "options"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "showHintKey": { "alias": "showHintKey"; "required": false; }; "hintKeyPrefix": { "alias": "hintKeyPrefix"; "required": false; }; "showMoreButton": { "alias": "showMoreButton"; "required": false; }; "addButtonText": { "alias": "addButtonText"; "required": false; }; "addButtonTitle": { "alias": "addButtonTitle"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; "showMoreButtonTitle": { "alias": "showMoreButtonTitle"; "required": false; }; "definitions": { "alias": "definitions"; "required": false; }; }, {}, never, never, false, never>;
85
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppPropertiesForm<any, any, any>, "app-properties-form", never, { "formArrayName": { "alias": "formArrayName"; "required": false; }; "formArray": { "alias": "formArray"; "required": false; }; "options": { "alias": "options"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "showHintKey": { "alias": "showHintKey"; "required": false; }; "hintKeyPrefix": { "alias": "hintKeyPrefix"; "required": false; }; "showMoreButton": { "alias": "showMoreButton"; "required": false; }; "addButtonText": { "alias": "addButtonText"; "required": false; }; "addButtonTitle": { "alias": "addButtonTitle"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "showMoreButtonTitle": { "alias": "showMoreButtonTitle"; "required": false; }; "definitions": { "alias": "definitions"; "required": false; }; }, {}, never, never, false, never>;
84
86
  static ngAcceptInputType_mobile: unknown;
85
87
  static ngAcceptInputType_showHintKey: unknown;
86
88
  static ngAcceptInputType_showMoreButton: unknown;
@@ -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;
@@ -80,7 +80,7 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
80
80
  handleRefresh(event: BeforeUnloadEvent): void;
81
81
  protected openAccountPage(): Promise<boolean>;
82
82
  protected toggleDarkMode(enable?: boolean): Promise<void>;
83
- protected toggleShowOptionKey(): void;
83
+ protected toggleShowOptionKeys(): void;
84
84
  protected devToggleDebug(): void;
85
85
  protected markForCheck(): void;
86
86
  static ɵfac: i0.ɵɵFactoryDeclaration<SettingsPage, [null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
@@ -392,7 +392,9 @@
392
392
  },
393
393
  "ERROR": {
394
394
  "SUBSCRIBE_ERROR": "Error while listening account's changes.",
395
- "UPDATE_PUBKEY_ERROR": "Password change failed.<br/><small>If the problem persists, please contact your administrator</small>"
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": {
@@ -391,7 +391,9 @@
391
391
  },
392
392
  "ERROR": {
393
393
  "SUBSCRIBE_ERROR": "Error while listening account's changes.",
394
- "UPDATE_PUBKEY_ERROR": "Password change failed.<br/><small>If the problem persists, please contact your administrator</small>"
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": {
@@ -391,7 +391,9 @@
391
391
  },
392
392
  "ERROR": {
393
393
  "SUBSCRIBE_ERROR": "Échec de l'abonnement distant au compte utilisateur.",
394
- "UPDATE_PUBKEY_ERROR": "Échec du changement du mot de passe.<br/><small>Si le problème persiste, veuillez <b>contactez votre administrateur</b>"
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>contactez votre administrateur</b> ou utilisez un nœud v{{version}} ou supérieur.</small>"
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": {
@@ -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.1",
5
+ "version": "18.5.3",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{