@sumaris-net/ngx-components 2.4.61 → 2.4.62
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/doc/changelog.md +1 -1
- package/esm2020/src/app/core/peer/select-peer.modal.mjs +2 -2
- package/esm2020/src/app/core/services/network.service.mjs +5 -13
- package/esm2020/src/app/core/services/network.utils.mjs +10 -11
- package/esm2020/src/app/core/settings/settings.page.mjs +3 -3
- package/esm2020/src/app/shared/http/http.utils.mjs +5 -5
- package/esm2020/src/app/shared/storage/storage-explorer.component.mjs +3 -3
- package/esm2020/src/environments/environment.mjs +1 -6
- package/fesm2015/sumaris-net.ngx-components.mjs +25 -40
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +22 -36
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +4 -4
- package/src/app/core/services/network.utils.d.ts +6 -7
- package/src/assets/i18n/en-US.json +22 -3
- package/src/assets/i18n/en.json +22 -3
- package/src/assets/i18n/fr.json +10 -7
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": "2.4.
|
|
4
|
+
"version": "2.4.62",
|
|
5
5
|
"author": "contact@e-is.pro",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"readmeFilename": "README.md",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"tslib": "~2.3.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@angular-devkit/build-angular": "~14.2.
|
|
21
|
-
"@angular/compiler-cli": "~14.2.
|
|
22
|
-
"@apollo/client": "~3.7.
|
|
20
|
+
"@angular-devkit/build-angular": "~14.2.12",
|
|
21
|
+
"@angular/compiler-cli": "~14.2.12",
|
|
22
|
+
"@apollo/client": "~3.7.12",
|
|
23
23
|
"@ionic/storage": "~3.0.6",
|
|
24
24
|
"d3": "~7.6.1",
|
|
25
25
|
"localforage": "~1.10.0",
|
|
@@ -22,11 +22,10 @@ export interface AppManifest {
|
|
|
22
22
|
display?: string;
|
|
23
23
|
}
|
|
24
24
|
export declare class NetworkUtils {
|
|
25
|
-
static getNodeInfo:
|
|
25
|
+
static getNodeInfo(http: HttpClient, peer: string | Peer, opts?: {
|
|
26
|
+
headers?: HttpHeaders | {
|
|
27
|
+
[header: string]: string | string[];
|
|
28
|
+
};
|
|
29
|
+
responseType?: 'json';
|
|
30
|
+
}): Promise<NodeInfo>;
|
|
26
31
|
}
|
|
27
|
-
export declare function getNodeInfo(http: HttpClient, peer: string | Peer, opts?: {
|
|
28
|
-
headers?: HttpHeaders | {
|
|
29
|
-
[header: string]: string | string[];
|
|
30
|
-
};
|
|
31
|
-
responseType?: 'json';
|
|
32
|
-
}): Promise<NodeInfo>;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"BTN_APPLY": "Apply",
|
|
11
11
|
"BTN_BURST_INPUT": "Burst mode",
|
|
12
12
|
"BTN_BURST_INPUT_HELP": "Enable burst mode",
|
|
13
|
+
"BTN_COPY": "Copy",
|
|
13
14
|
"BTN_CLEAR": "Clear",
|
|
14
15
|
"BTN_CLOSE": "Close",
|
|
15
16
|
"BTN_DONE": "Done",
|
|
@@ -109,6 +110,8 @@
|
|
|
109
110
|
"RESULT_COUNT": "{{count}} results",
|
|
110
111
|
"NO_RESULT": "No result",
|
|
111
112
|
"LOADING_DOTS": "Loading...",
|
|
113
|
+
"PLEASE_WAIT": "Please wait...",
|
|
114
|
+
"NO_DATA": "No data",
|
|
112
115
|
"MISSING": "Missing",
|
|
113
116
|
|
|
114
117
|
"DISPLAYED_COLUMNS": "Displayed columns",
|
|
@@ -258,6 +261,9 @@
|
|
|
258
261
|
}
|
|
259
262
|
},
|
|
260
263
|
"REFERENTIAL": {
|
|
264
|
+
"LABEL": "Code",
|
|
265
|
+
"NAME": "Name",
|
|
266
|
+
"TYPE": "Type",
|
|
261
267
|
"STATUS_ENUM": {
|
|
262
268
|
"ENABLE": "Enable",
|
|
263
269
|
"DISABLE": "Disable",
|
|
@@ -304,6 +310,8 @@
|
|
|
304
310
|
"OFFLINE_MODE": "Force offline mode? (experimental)",
|
|
305
311
|
"DATA_ENTRY_DIVIDER": "Data entry settings",
|
|
306
312
|
"USAGE_MODE": "Usage mode",
|
|
313
|
+
"USAGE_MODE_FIELD": "<b>On field</b> mode",
|
|
314
|
+
"USAGE_MODE_DESK": "<b>In office</b> mode",
|
|
307
315
|
"USAGE_MODES": {
|
|
308
316
|
"FIELD": "On field",
|
|
309
317
|
"DESK": "In office"
|
|
@@ -404,7 +412,8 @@
|
|
|
404
412
|
"EMPTY": "No notification",
|
|
405
413
|
"READ_ALL": "Mark all as read"
|
|
406
414
|
},
|
|
407
|
-
"
|
|
415
|
+
"TYPE": "Type",
|
|
416
|
+
"ICON": "Icon",
|
|
408
417
|
"CREATION_DATE": "Date/Time",
|
|
409
418
|
"MESSAGE": "Message",
|
|
410
419
|
"BTN_COPY_TO_LOCAL": "Copy locally",
|
|
@@ -443,6 +452,7 @@
|
|
|
443
452
|
"SAVE_USER_EVENT_ERROR": "Error while saving user notification",
|
|
444
453
|
"SUBSCRIBE_USER_EVENTS_ERROR": "Error while listening user events changes",
|
|
445
454
|
"SEND_MESSAGE_ERROR": "Error while sending message",
|
|
455
|
+
"LOAD_JOB_PROGRESSIONS_ERROR": "Error while loading job progressions",
|
|
446
456
|
"SUBSCRIBE_JOB_PROGRESSION_ERROR": "Error while listening job progression changes"
|
|
447
457
|
},
|
|
448
458
|
"INFO": {
|
|
@@ -459,7 +469,12 @@
|
|
|
459
469
|
},
|
|
460
470
|
"IMAGE": {
|
|
461
471
|
"BTN_CAMERA_SOURCE": "Take a picture",
|
|
462
|
-
"BTN_GALLERY_SOURCE": "Open gallery"
|
|
472
|
+
"BTN_GALLERY_SOURCE": "Open gallery",
|
|
473
|
+
"GALLERY": {
|
|
474
|
+
"BTN_EDIT_TITLE": "Edit title",
|
|
475
|
+
"BTN_ADD_TITLE": "Add a title",
|
|
476
|
+
"TITLE": "Title"
|
|
477
|
+
}
|
|
463
478
|
},
|
|
464
479
|
"ERROR": {
|
|
465
480
|
"ALERT_HEADER": "Error",
|
|
@@ -494,6 +509,7 @@
|
|
|
494
509
|
"FIELD_NOT_UNIQUE": "Value already used",
|
|
495
510
|
"SPACE_NOT_ALLOW": "Spaces or special characters not allowed",
|
|
496
511
|
"SCRYPT_ERROR": "Unable to create account keys",
|
|
512
|
+
"INVALID_OR_INCOMPLETE_FILL": "Invalid or incomplete fill",
|
|
497
513
|
"UNKNOWN_ACCOUNT_EMAIL": "No account matches this email.",
|
|
498
514
|
"BAD_PASSWORD": "Incorrect password.",
|
|
499
515
|
"EMAIL_ALREADY_REGISTERED": "Email already registered",
|
|
@@ -546,7 +562,9 @@
|
|
|
546
562
|
"LOAD_ERROR": "Error while loading",
|
|
547
563
|
"SAVE_ERROR": "Error while saving",
|
|
548
564
|
"SUBSCRIBE_ERROR": "Error while subscribe to changes",
|
|
549
|
-
"
|
|
565
|
+
"FIELD_NOT_EXISTS": "This value not exists",
|
|
566
|
+
"FIREFOX_NO_STORAGE": "The application cannot run with Firefox in 'private' mode or without keeping navigation history",
|
|
567
|
+
"FEATURE_NOT_IMPLEMENTED": "Feature not implemented! <small><br/>Please contact your administrator.</small>"
|
|
550
568
|
},
|
|
551
569
|
"CONFIRM": {
|
|
552
570
|
"ALERT_HEADER": "Confirmation",
|
|
@@ -567,6 +585,7 @@
|
|
|
567
585
|
"INFO": {
|
|
568
586
|
"ALERT_HEADER": "Information",
|
|
569
587
|
"SYNCHRONIZATION_SUCCEED": "Synchronization completed! <br/> The data has been received by the server.",
|
|
588
|
+
"COPY_SUCCEED": "Copy successfully!",
|
|
570
589
|
"DEBUG_DATA_SEND": "Help request sent to administrator",
|
|
571
590
|
"DATA_MIGRATION_STARTED": "Data recovery in progress. <br/><b>Please wait ...</b>",
|
|
572
591
|
"DATA_MIGRATION_SUCCEED": "Data recovery <b>completed successfully</b>!",
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"BTN_APPLY": "Apply",
|
|
11
11
|
"BTN_BURST_INPUT": "Burst mode",
|
|
12
12
|
"BTN_BURST_INPUT_HELP": "Enable burst mode",
|
|
13
|
+
"BTN_COPY": "Copy",
|
|
13
14
|
"BTN_CLEAR": "Clear",
|
|
14
15
|
"BTN_CLOSE": "Close",
|
|
15
16
|
"BTN_DONE": "Done",
|
|
@@ -109,6 +110,8 @@
|
|
|
109
110
|
"RESULT_COUNT": "{{count}} results",
|
|
110
111
|
"NO_RESULT": "No result",
|
|
111
112
|
"LOADING_DOTS": "Loading...",
|
|
113
|
+
"PLEASE_WAIT": "Please wait...",
|
|
114
|
+
"NO_DATA": "No data",
|
|
112
115
|
"MISSING": "Missing",
|
|
113
116
|
|
|
114
117
|
"DISPLAYED_COLUMNS": "Displayed columns",
|
|
@@ -258,6 +261,9 @@
|
|
|
258
261
|
}
|
|
259
262
|
},
|
|
260
263
|
"REFERENTIAL": {
|
|
264
|
+
"LABEL": "Code",
|
|
265
|
+
"NAME": "Name",
|
|
266
|
+
"TYPE": "Type",
|
|
261
267
|
"STATUS_ENUM": {
|
|
262
268
|
"ENABLE": "Enable",
|
|
263
269
|
"DISABLE": "Disable",
|
|
@@ -304,6 +310,8 @@
|
|
|
304
310
|
"OFFLINE_MODE": "Force offline mode? (experimental)",
|
|
305
311
|
"DATA_ENTRY_DIVIDER": "Data entry settings",
|
|
306
312
|
"USAGE_MODE": "Usage mode",
|
|
313
|
+
"USAGE_MODE_FIELD": "<b>On field</b> mode",
|
|
314
|
+
"USAGE_MODE_DESK": "<b>In office</b> mode",
|
|
307
315
|
"USAGE_MODES": {
|
|
308
316
|
"FIELD": "On field",
|
|
309
317
|
"DESK": "In office"
|
|
@@ -404,7 +412,8 @@
|
|
|
404
412
|
"EMPTY": "No notification",
|
|
405
413
|
"READ_ALL": "Mark all as read"
|
|
406
414
|
},
|
|
407
|
-
"
|
|
415
|
+
"TYPE": "Type",
|
|
416
|
+
"ICON": "Icon",
|
|
408
417
|
"CREATION_DATE": "Date/Time",
|
|
409
418
|
"MESSAGE": "Message",
|
|
410
419
|
"BTN_COPY_TO_LOCAL": "Copy locally",
|
|
@@ -443,6 +452,7 @@
|
|
|
443
452
|
"SAVE_USER_EVENT_ERROR": "Error while saving user notification",
|
|
444
453
|
"SUBSCRIBE_USER_EVENTS_ERROR": "Error while listening user events changes",
|
|
445
454
|
"SEND_MESSAGE_ERROR": "Error while sending message",
|
|
455
|
+
"LOAD_JOB_PROGRESSIONS_ERROR": "Error while loading job progressions",
|
|
446
456
|
"SUBSCRIBE_JOB_PROGRESSION_ERROR": "Error while listening job progression changes"
|
|
447
457
|
},
|
|
448
458
|
"INFO": {
|
|
@@ -459,7 +469,12 @@
|
|
|
459
469
|
},
|
|
460
470
|
"IMAGE": {
|
|
461
471
|
"BTN_CAMERA_SOURCE": "Take a picture",
|
|
462
|
-
"BTN_GALLERY_SOURCE": "Open gallery"
|
|
472
|
+
"BTN_GALLERY_SOURCE": "Open gallery",
|
|
473
|
+
"GALLERY": {
|
|
474
|
+
"BTN_EDIT_TITLE": "Edit title",
|
|
475
|
+
"BTN_ADD_TITLE": "Add a title",
|
|
476
|
+
"TITLE": "Title"
|
|
477
|
+
}
|
|
463
478
|
},
|
|
464
479
|
"ERROR": {
|
|
465
480
|
"ALERT_HEADER": "Error",
|
|
@@ -494,6 +509,7 @@
|
|
|
494
509
|
"FIELD_NOT_UNIQUE": "Value already used",
|
|
495
510
|
"SPACE_NOT_ALLOW": "Spaces or special characters not allowed",
|
|
496
511
|
"SCRYPT_ERROR": "Unable to create account keys",
|
|
512
|
+
"INVALID_OR_INCOMPLETE_FILL": "Invalid or incomplete fill",
|
|
497
513
|
"UNKNOWN_ACCOUNT_EMAIL": "No account matches this email.",
|
|
498
514
|
"BAD_PASSWORD": "Incorrect password.",
|
|
499
515
|
"EMAIL_ALREADY_REGISTERED": "Email already registered",
|
|
@@ -546,7 +562,9 @@
|
|
|
546
562
|
"LOAD_ERROR": "Error while loading",
|
|
547
563
|
"SAVE_ERROR": "Error while saving",
|
|
548
564
|
"SUBSCRIBE_ERROR": "Error while subscribe to changes",
|
|
549
|
-
"
|
|
565
|
+
"FIELD_NOT_EXISTS": "This value not exists",
|
|
566
|
+
"FIREFOX_NO_STORAGE": "The application cannot run with Firefox in 'private' mode or without keeping navigation history",
|
|
567
|
+
"FEATURE_NOT_IMPLEMENTED": "Feature not implemented! <small><br/>Please contact your administrator.</small>"
|
|
550
568
|
},
|
|
551
569
|
"CONFIRM": {
|
|
552
570
|
"ALERT_HEADER": "Confirmation",
|
|
@@ -567,6 +585,7 @@
|
|
|
567
585
|
"INFO": {
|
|
568
586
|
"ALERT_HEADER": "Information",
|
|
569
587
|
"SYNCHRONIZATION_SUCCEED": "Synchronization completed! <br/> The data has been received by the server.",
|
|
588
|
+
"COPY_SUCCEED": "Copy successfully!",
|
|
570
589
|
"DEBUG_DATA_SEND": "Help request sent to administrator",
|
|
571
590
|
"DATA_MIGRATION_STARTED": "Data recovery in progress. <br/><b>Please wait ...</b>",
|
|
572
591
|
"DATA_MIGRATION_SUCCEED": "Data recovery <b>completed successfully</b>!",
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -105,7 +105,6 @@
|
|
|
105
105
|
"YES": "Oui",
|
|
106
106
|
"NO": "Non",
|
|
107
107
|
|
|
108
|
-
"DEBUG": "Debug",
|
|
109
108
|
"UPDATED_ON": "Mise à jour le",
|
|
110
109
|
"RECORDER": "Saisisseur",
|
|
111
110
|
"RESULT_COUNT": "{{count}} résultats",
|
|
@@ -405,7 +404,8 @@
|
|
|
405
404
|
"EMPTY": "Aucune notification",
|
|
406
405
|
"READ_ALL": "Tout marquer comme lu"
|
|
407
406
|
},
|
|
408
|
-
"
|
|
407
|
+
"TYPE": "Type",
|
|
408
|
+
"ICON": "Icône",
|
|
409
409
|
"CREATION_DATE": "Date/Heure",
|
|
410
410
|
"MESSAGE": "Message",
|
|
411
411
|
"BTN_COPY_TO_LOCAL": "Copier localement",
|
|
@@ -413,9 +413,10 @@
|
|
|
413
413
|
"COPIED_LOCALLY": "Copier localement avec succès"
|
|
414
414
|
},
|
|
415
415
|
"TYPE_ENUM": {
|
|
416
|
-
"DEBUG_DATA": "
|
|
417
|
-
"INBOX_MESSAGE": "
|
|
418
|
-
"FEED": "Actualité"
|
|
416
|
+
"DEBUG_DATA": "Problème remonté par <a>{{issuer}}</a> : <b>{{message}}</b>",
|
|
417
|
+
"INBOX_MESSAGE": "Vous avez <b>reçu un message</b> de <a>{{issuer}}</a>",
|
|
418
|
+
"FEED": "Actualité",
|
|
419
|
+
"JOB": "{{name}}<br/><b>{{status}}</b>"
|
|
419
420
|
}
|
|
420
421
|
},
|
|
421
422
|
"JOB": {
|
|
@@ -444,7 +445,8 @@
|
|
|
444
445
|
"SAVE_USER_EVENT_ERROR": "Erreur de sauvegarde de la notification",
|
|
445
446
|
"SUBSCRIBE_USER_EVENTS_ERROR": "Erreur lors de l'abonnement aux notifications",
|
|
446
447
|
"SEND_MESSAGE_ERROR": "Erreur lors de l'envoi du message",
|
|
447
|
-
"
|
|
448
|
+
"LOAD_JOB_PROGRESSIONS_ERROR": "Erreur lors du chargement des tâches",
|
|
449
|
+
"SUBSCRIBE_JOB_PROGRESSION_ERROR": "Erreur lors de l'abonnement à une tâche"
|
|
448
450
|
},
|
|
449
451
|
"INFO": {
|
|
450
452
|
"MESSAGE_SENT": "Message <b>envoyé</b>"
|
|
@@ -500,6 +502,7 @@
|
|
|
500
502
|
"FIELD_NOT_UNIQUE": "Valeur déjà utilisée",
|
|
501
503
|
"SPACE_NOT_ALLOW": "Espaces ou caractères spéciaux non autorisés",
|
|
502
504
|
"SCRYPT_ERROR": "Erreur de generation des clefs d'ouverture du compte",
|
|
505
|
+
"INVALID_OR_INCOMPLETE_FILL": "Saisie incomplète ou invalide",
|
|
503
506
|
"UNKNOWN_ACCOUNT_EMAIL": "Aucun compte ne correspond à cet email.",
|
|
504
507
|
"BAD_PASSWORD": "Mot de passe incorrect.",
|
|
505
508
|
"EMAIL_ALREADY_REGISTERED": "Email déjà enregistrée",
|
|
@@ -574,7 +577,7 @@
|
|
|
574
577
|
},
|
|
575
578
|
"INFO": {
|
|
576
579
|
"ALERT_HEADER": "Information",
|
|
577
|
-
"SYNCHRONIZATION_SUCCEED": "Synchronisation terminée avec succès !<br/>Les données ont bien été recues par le serveur.",
|
|
580
|
+
"SYNCHRONIZATION_SUCCEED": "Synchronisation <b>terminée avec succès</b> !<br/>Les données ont bien été recues par le serveur.",
|
|
578
581
|
"COPY_SUCCEED": "Copier avec succès !",
|
|
579
582
|
"DEBUG_DATA_SEND": "Demande d'aide envoyée à l'administrateur.",
|
|
580
583
|
"DATA_MIGRATION_STARTED": "Restauration de données en cours.<br/><b>Veuillez patienter...</b>",
|