@sumaris-net/ngx-components 1.21.7 → 1.22.0

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.
Files changed (56) hide show
  1. package/bundles/sumaris-net.ngx-components.umd.js +1305 -200
  2. package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
  3. package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
  4. package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
  5. package/doc/changelog.md +3 -0
  6. package/esm2015/public_api.js +8 -1
  7. package/esm2015/src/app/core/form/editor.class.js +7 -11
  8. package/esm2015/src/app/core/icon/icon.component.js +5 -2
  9. package/esm2015/src/app/core/menu/menu.component.js +2 -2
  10. package/esm2015/src/app/shared/pipes/date-diff-duration.pipe.js +9 -5
  11. package/esm2015/src/app/shared/types.js +1 -1
  12. package/esm2015/src/app/social/job/job.model.js +26 -0
  13. package/esm2015/src/app/social/job/job.module.js +25 -0
  14. package/esm2015/src/app/social/job/job.service.js +54 -0
  15. package/esm2015/src/app/social/job/progression/job-progression.component.js +200 -0
  16. package/esm2015/src/app/social/job/progression/job-progression.list.js +20 -0
  17. package/esm2015/src/app/social/message/message.module.js +25 -0
  18. package/esm2015/src/app/social/social.errors.js +5 -2
  19. package/esm2015/src/app/social/social.module.js +10 -15
  20. package/esm2015/src/app/social/user-event/notification/user-event-notification.component.js +89 -0
  21. package/esm2015/src/app/social/user-event/notification/user-event-notification.list.js +78 -0
  22. package/esm2015/src/app/social/user-event/testing/user-event.testing.service.js +73 -0
  23. package/esm2015/src/app/social/user-event/user-event.model.js +58 -2
  24. package/esm2015/src/app/social/user-event/user-event.module.js +33 -0
  25. package/esm2015/src/app/social/user-event/user-event.service.js +412 -173
  26. package/esm2015/src/app/social/user-event/user-events.table.js +18 -13
  27. package/esm2015/sumaris-net.ngx-components.js +9 -6
  28. package/fesm2015/sumaris-net.ngx-components.js +1122 -259
  29. package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
  30. package/package.json +1 -1
  31. package/public_api.d.ts +7 -0
  32. package/src/app/core/icon/icon.component.d.ts +4 -4
  33. package/src/app/shared/material/badge/badge-icon.test.d.ts +1 -1
  34. package/src/app/shared/pipes/date-diff-duration.pipe.d.ts +6 -2
  35. package/src/app/shared/types.d.ts +4 -0
  36. package/src/app/social/job/job.model.d.ts +33 -0
  37. package/src/app/social/job/job.module.d.ts +2 -0
  38. package/src/app/social/job/job.service.d.ts +23 -0
  39. package/src/app/social/job/progression/job-progression.component.d.ts +44 -0
  40. package/src/app/social/job/progression/job-progression.list.d.ts +12 -0
  41. package/src/app/social/message/message.module.d.ts +2 -0
  42. package/src/app/social/social.errors.d.ts +3 -0
  43. package/src/app/social/social.module.d.ts +8 -0
  44. package/src/app/social/user-event/notification/user-event-notification.component.d.ts +22 -0
  45. package/src/app/social/user-event/notification/user-event-notification.list.d.ts +30 -0
  46. package/src/app/social/user-event/testing/user-event.testing.service.d.ts +35 -0
  47. package/src/app/social/user-event/user-event.model.d.ts +52 -8
  48. package/src/app/social/user-event/user-event.module.d.ts +2 -0
  49. package/src/app/social/user-event/user-event.service.d.ts +101 -51
  50. package/src/app/social/user-event/user-events.table.d.ts +6 -6
  51. package/src/assets/i18n/en-US.json +15 -2
  52. package/src/assets/i18n/en.json +16 -2
  53. package/src/assets/i18n/fr.json +15 -1
  54. package/src/theme/_ngx-components.scss +8 -0
  55. package/sumaris-net.ngx-components.d.ts +8 -5
  56. package/sumaris-net.ngx-components.metadata.json +1 -1
@@ -387,6 +387,10 @@
387
387
  },
388
388
  "SOCIAL": {
389
389
  "USER_EVENT": {
390
+ "NOTIFICATION": {
391
+ "TITLE": "Notifications",
392
+ "EMPTY": "No notification"
393
+ },
390
394
  "EVENT_TYPE": "Type",
391
395
  "CREATION_DATE": "Date/Time",
392
396
  "MESSAGE": "Message",
@@ -400,6 +404,12 @@
400
404
  "FEED": "Feed"
401
405
  }
402
406
  },
407
+ "JOB": {
408
+ "PROGRESSION": {
409
+ "TITLE": "Running tasks",
410
+ "EMPTY": "No running task"
411
+ }
412
+ },
403
413
  "MESSAGE": {
404
414
  "TYPE": "Message type",
405
415
  "RECIPIENTS": "Recipients",
@@ -416,8 +426,11 @@
416
426
  },
417
427
  "ERROR": {
418
428
  "LOAD_USER_EVENTS_ERROR": "Error while loading notifications",
429
+ "COUNT_USER_EVENT_ERROR": "Error while counting notifications",
419
430
  "SAVE_USER_EVENT_ERROR": "Error while saving user notification",
420
- "SEND_MESSAGE_ERROR": "Error while sending message"
431
+ "SUBSCRIBE_USER_EVENTS_ERROR": "Error while listening user events changes",
432
+ "SEND_MESSAGE_ERROR": "Error while sending message",
433
+ "SUBSCRIBE_JOB_PROGRESSION_ERROR": "Error while listening job progression changes"
421
434
  },
422
435
  "INFO": {
423
436
  "MESSAGE_SENT": "Message <b>sent</b>"
@@ -506,7 +519,7 @@
506
519
  "SAVE_ENTITY_ERROR": "Error while saving",
507
520
  "SAVE_ENTITIES_ERROR": "Error while saving the list",
508
521
  "DELETE_ENTITY_ERROR": "Error while deleting. <small><br/>If the problem persists, please contact your administrator.</small>",
509
- "SUBSCRIBE_ENTITY_ERROR": "Error while subscribing to remte changes",
522
+ "SUBSCRIBE_ENTITY_ERROR": "Error while subscribing to remote changes",
510
523
  "CONTROL_ENTITY_ERROR": "Error while checking data validity",
511
524
  "TERMINATE_ENTITY_ERROR": "Cannot terminate entry. <small><br/>If the problem persists, please contact your administrator.</small>",
512
525
  "VALIDATE_ENTITY_ERROR": "Error when validating data",
@@ -387,6 +387,11 @@
387
387
  },
388
388
  "SOCIAL": {
389
389
  "USER_EVENT": {
390
+ "NOTIFICATION": {
391
+ "TITLE": "Notifications",
392
+ "EMPTY": "No notification",
393
+ "READ_ALL": "Mark all as read"
394
+ },
390
395
  "EVENT_TYPE": "Type",
391
396
  "CREATION_DATE": "Date/Time",
392
397
  "MESSAGE": "Message",
@@ -400,6 +405,12 @@
400
405
  "FEED": "Feed"
401
406
  }
402
407
  },
408
+ "JOB": {
409
+ "PROGRESSION": {
410
+ "TITLE": "Running tasks",
411
+ "EMPTY": "No running task"
412
+ }
413
+ },
403
414
  "MESSAGE": {
404
415
  "TYPE": "Message type",
405
416
  "RECIPIENTS": "Recipients",
@@ -416,8 +427,11 @@
416
427
  },
417
428
  "ERROR": {
418
429
  "LOAD_USER_EVENTS_ERROR": "Error while loading notifications",
430
+ "COUNT_USER_EVENT_ERROR": "Error while counting notifications",
419
431
  "SAVE_USER_EVENT_ERROR": "Error while saving user notification",
420
- "SEND_MESSAGE_ERROR": "Error while sending message"
432
+ "SUBSCRIBE_USER_EVENTS_ERROR": "Error while listening user events changes",
433
+ "SEND_MESSAGE_ERROR": "Error while sending message",
434
+ "SUBSCRIBE_JOB_PROGRESSION_ERROR": "Error while listening job progression changes"
421
435
  },
422
436
  "INFO": {
423
437
  "MESSAGE_SENT": "Message <b>sent</b>"
@@ -506,7 +520,7 @@
506
520
  "SAVE_ENTITY_ERROR": "Error while saving",
507
521
  "SAVE_ENTITIES_ERROR": "Error while saving the list",
508
522
  "DELETE_ENTITY_ERROR": "Error while deleting. <small><br/>If the problem persists, please contact your administrator.</small>",
509
- "SUBSCRIBE_ENTITY_ERROR": "Error while subscribing to remte changes",
523
+ "SUBSCRIBE_ENTITY_ERROR": "Error while subscribing to remote changes",
510
524
  "CONTROL_ENTITY_ERROR": "Error while checking data validity",
511
525
  "TERMINATE_ENTITY_ERROR": "Cannot terminate entry. <small><br/>If the problem persists, please contact your administrator.</small>",
512
526
  "VALIDATE_ENTITY_ERROR": "Error when validating data",
@@ -390,6 +390,11 @@
390
390
  },
391
391
  "SOCIAL": {
392
392
  "USER_EVENT": {
393
+ "NOTIFICATION": {
394
+ "TITLE": "Notifications",
395
+ "EMPTY": "Aucune notification",
396
+ "READ_ALL": "Marquer tout comme lu"
397
+ },
393
398
  "EVENT_TYPE": "Type",
394
399
  "CREATION_DATE": "Date/Heure",
395
400
  "MESSAGE": "Message",
@@ -403,6 +408,12 @@
403
408
  "FEED": "Actualité"
404
409
  }
405
410
  },
411
+ "JOB": {
412
+ "PROGRESSION": {
413
+ "TITLE": "Liste des tâches en cours",
414
+ "EMPTY": "Aucune tâche en cours"
415
+ }
416
+ },
406
417
  "MESSAGE": {
407
418
  "TYPE": "Type d'envoi",
408
419
  "RECIPIENTS": "Destinataires",
@@ -419,8 +430,11 @@
419
430
  },
420
431
  "ERROR": {
421
432
  "LOAD_USER_EVENTS_ERROR": "Erreur de chargement des notifications",
433
+ "COUNT_USER_EVENT_ERROR": "Erreur de comptage des notifications",
422
434
  "SAVE_USER_EVENT_ERROR": "Erreur de sauvegarde de la notification",
423
- "SEND_MESSAGE_ERROR": "Erreur lors de l'envoi du message"
435
+ "SUBSCRIBE_USER_EVENTS_ERROR": "Erreur lors de l'abonnement aux notifications",
436
+ "SEND_MESSAGE_ERROR": "Erreur lors de l'envoi du message",
437
+ "SUBSCRIBE_JOB_PROGRESSION_ERROR": "Erreur lors de l'abonnement à la progression de tâche"
424
438
  },
425
439
  "INFO": {
426
440
  "MESSAGE_SENT": "Message <b>envoyé</b>"
@@ -326,10 +326,16 @@ mat-option:not(:last-of-type) {
326
326
  margin-left: 8px;
327
327
  }
328
328
  }
329
+
330
+ ion-list,
329
331
  .mat-select-panel,
330
332
  .mat-menu-panel,
331
333
  .mat-autocomplete-panel {
332
334
 
335
+ &.ion-list-popover {
336
+ padding: 0 !important;
337
+ }
338
+
333
339
  /* Avoid bad display, when opening panel for the first time */
334
340
  &.ng-trigger-transformPanel {
335
341
  ion-searchbar.mat-select-header,
@@ -363,6 +369,7 @@ mat-option:not(:last-of-type) {
363
369
  }
364
370
  }
365
371
 
372
+ ion-row.ion-list-header,
366
373
  ion-row.mat-select-header,
367
374
  ion-row.mat-menu-header,
368
375
  ion-row.mat-autocomplete-header {
@@ -395,6 +402,7 @@ mat-option:not(:last-of-type) {
395
402
 
396
403
  }
397
404
 
405
+ ion-row.ion-list-footer,
398
406
  ion-row.mat-select-footer,
399
407
  ion-row.mat-menu-footer,
400
408
  ion-row.mat-autocomplete-footer,
@@ -10,10 +10,13 @@ export { AccountValidatorService as ɵe } from './src/app/core/services/validato
10
10
  export { LocalSettingsValidatorService as ɵh } from './src/app/core/services/validator/local-settings.validator';
11
11
  export { UserSettingsValidatorService as ɵg } from './src/app/core/services/validator/user-settings.validator';
12
12
  export { isFocusableElement as ɵc } from './src/app/shared/focusable';
13
- export { MatBadgeIconTestPage as ɵm } from './src/app/shared/material/badge/badge-icon.test';
14
- export { DateTestPage as ɵk } from './src/app/shared/material/datetime/testing/mat-date.test';
13
+ export { MatBadgeIconTestPage as ɵp } from './src/app/shared/material/badge/badge-icon.test';
14
+ export { DateTestPage as ɵn } from './src/app/shared/material/datetime/testing/mat-date.test';
15
15
  export { MatNumpadDomService as ɵb } from './src/app/shared/material/numpad/numpad.dom-service';
16
- export { NumpadTestPage as ɵl } from './src/app/shared/material/numpad/testing/numpad.test';
16
+ export { NumpadTestPage as ɵo } from './src/app/shared/material/numpad/testing/numpad.test';
17
17
  export { CustomReuseStrategy as ɵa } from './src/app/shared/shared-routing.module';
18
- export { ToastTestingPage as ɵo } from './src/app/shared/toast/toast.testing';
19
- export { ToastTestingModule as ɵn } from './src/app/shared/toast/toast.testing.module';
18
+ export { ToastTestingPage as ɵr } from './src/app/shared/toast/toast.testing';
19
+ export { ToastTestingModule as ɵq } from './src/app/shared/toast/toast.testing.module';
20
+ export { JobProgressionList as ɵm } from './src/app/social/job/progression/job-progression.list';
21
+ export { UserEventNotificationList as ɵk } from './src/app/social/user-event/notification/user-event-notification.list';
22
+ export { UserEventTestService as ɵl } from './src/app/social/user-event/testing/user-event.testing.service';