@sumaris-net/ngx-components 1.21.8 → 1.22.1

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 (62) hide show
  1. package/bundles/sumaris-net.ngx-components.umd.js +4056 -2920
  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 +6 -0
  6. package/esm2015/public_api.js +8 -1
  7. package/esm2015/src/app/core/core.module.js +5 -5
  8. package/esm2015/src/app/core/icon/icon.component.js +5 -2
  9. package/esm2015/src/app/core/icon/icon.module.js +26 -0
  10. package/esm2015/src/app/core/menu/menu.component.js +9 -5
  11. package/esm2015/src/app/core/menu/menu.model.js +3 -1
  12. package/esm2015/src/app/core/menu/menu.module.js +4 -2
  13. package/esm2015/src/app/shared/pipes/date-diff-duration.pipe.js +9 -5
  14. package/esm2015/src/app/shared/types.js +1 -1
  15. package/esm2015/src/app/social/job/job.model.js +26 -0
  16. package/esm2015/src/app/social/job/job.module.js +25 -0
  17. package/esm2015/src/app/social/job/job.service.js +54 -0
  18. package/esm2015/src/app/social/job/progression/job-progression.component.js +200 -0
  19. package/esm2015/src/app/social/job/progression/job-progression.list.js +20 -0
  20. package/esm2015/src/app/social/message/message.module.js +25 -0
  21. package/esm2015/src/app/social/social.errors.js +5 -2
  22. package/esm2015/src/app/social/social.module.js +10 -15
  23. package/esm2015/src/app/social/user-event/notification/user-event-notification.component.js +89 -0
  24. package/esm2015/src/app/social/user-event/notification/user-event-notification.list.js +78 -0
  25. package/esm2015/src/app/social/user-event/testing/user-event.testing.service.js +73 -0
  26. package/esm2015/src/app/social/user-event/user-event.model.js +58 -2
  27. package/esm2015/src/app/social/user-event/user-event.module.js +33 -0
  28. package/esm2015/src/app/social/user-event/user-event.service.js +412 -173
  29. package/esm2015/src/app/social/user-event/user-events.table.js +18 -13
  30. package/esm2015/sumaris-net.ngx-components.js +17 -13
  31. package/fesm2015/sumaris-net.ngx-components.js +3269 -2374
  32. package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
  33. package/package.json +1 -1
  34. package/public_api.d.ts +7 -0
  35. package/src/app/core/icon/icon.component.d.ts +4 -4
  36. package/src/app/core/icon/icon.module.d.ts +2 -0
  37. package/src/app/core/menu/menu.component.d.ts +7 -5
  38. package/src/app/core/menu/menu.model.d.ts +3 -0
  39. package/src/app/shared/material/badge/badge-icon.test.d.ts +1 -1
  40. package/src/app/shared/pipes/date-diff-duration.pipe.d.ts +6 -2
  41. package/src/app/shared/types.d.ts +4 -0
  42. package/src/app/social/job/job.model.d.ts +33 -0
  43. package/src/app/social/job/job.module.d.ts +2 -0
  44. package/src/app/social/job/job.service.d.ts +23 -0
  45. package/src/app/social/job/progression/job-progression.component.d.ts +44 -0
  46. package/src/app/social/job/progression/job-progression.list.d.ts +12 -0
  47. package/src/app/social/message/message.module.d.ts +2 -0
  48. package/src/app/social/social.errors.d.ts +3 -0
  49. package/src/app/social/social.module.d.ts +8 -0
  50. package/src/app/social/user-event/notification/user-event-notification.component.d.ts +22 -0
  51. package/src/app/social/user-event/notification/user-event-notification.list.d.ts +30 -0
  52. package/src/app/social/user-event/testing/user-event.testing.service.d.ts +35 -0
  53. package/src/app/social/user-event/user-event.model.d.ts +52 -8
  54. package/src/app/social/user-event/user-event.module.d.ts +2 -0
  55. package/src/app/social/user-event/user-event.service.d.ts +101 -51
  56. package/src/app/social/user-event/user-events.table.d.ts +6 -6
  57. package/src/assets/i18n/en-US.json +17 -3
  58. package/src/assets/i18n/en.json +18 -3
  59. package/src/assets/i18n/fr.json +17 -2
  60. package/src/theme/_ngx-components.scss +8 -0
  61. package/sumaris-net.ngx-components.d.ts +16 -12
  62. package/sumaris-net.ngx-components.metadata.json +1 -1
@@ -1,8 +1,8 @@
1
1
  import { ChangeDetectorRef, Injector, OnInit } from '@angular/core';
2
2
  import { TableElement } from '@e-is/ngx-material-table';
3
- import { UserEventFilter, UserEventService } from './user-event.service';
3
+ import { IUserEventService } from './user-event.service';
4
4
  import { AccountService } from '../../core/services/account.service';
5
- import { UserEvent, UserEventAction } from './user-event.model';
5
+ import { UserEvent, UserEventAction, UserEventFilter } from './user-event.model';
6
6
  import { Moment } from 'moment';
7
7
  import { AppTable } from '../../core/table/table.class';
8
8
  import { SortDirection } from '@angular/material/sort';
@@ -35,7 +35,7 @@ export interface UserEventIcon {
35
35
  }
36
36
  export declare class UserEventsTable extends AppTable<UserEvent, UserEventFilter> implements OnInit {
37
37
  protected accountService: AccountService;
38
- protected service: UserEventService;
38
+ protected service: IUserEventService<UserEvent, UserEventFilter>;
39
39
  protected entities: EntitiesStorage;
40
40
  protected cd: ChangeDetectorRef;
41
41
  protected environment: any;
@@ -47,12 +47,12 @@ export declare class UserEventsTable extends AppTable<UserEvent, UserEventFilter
47
47
  withContent: boolean;
48
48
  defaultSortBy: string;
49
49
  defaultSortDirection: SortDirection;
50
- constructor(injector: Injector, accountService: AccountService, service: UserEventService, entities: EntitiesStorage, cd: ChangeDetectorRef, environment: any);
50
+ constructor(injector: Injector, accountService: AccountService, service: IUserEventService<UserEvent, UserEventFilter>, entities: EntitiesStorage, cd: ChangeDetectorRef, environment: any);
51
51
  ngOnInit(): void;
52
52
  start(): Promise<void>;
53
53
  getIcon(source: UserEvent): UserEventIcon;
54
54
  getDetail(source: UserEvent): Partial<UserEventDetail<IEntity<any>> & {
55
- actions: UserEventAction<any>[];
55
+ actions: UserEventAction[];
56
56
  }>;
57
- doAction(action: UserEventAction<any>, row: TableElement<UserEvent>): Promise<void>;
57
+ doAction(action: UserEventAction, row: TableElement<UserEvent>): Promise<void>;
58
58
  }
@@ -195,7 +195,8 @@
195
195
  "FOOTER_VERSION_ABOUT": "v{{version}} | About",
196
196
  "LOCAL_SETTINGS": "Settings",
197
197
  "LOGOUT": "Logout",
198
- "ABOUT": "About"
198
+ "ABOUT": "About",
199
+ "BTN_MY_ACCOUNT": "My account"
199
200
  },
200
201
  "ABOUT": {
201
202
  "TITLE": "About",
@@ -387,6 +388,10 @@
387
388
  },
388
389
  "SOCIAL": {
389
390
  "USER_EVENT": {
391
+ "NOTIFICATION": {
392
+ "TITLE": "Notifications",
393
+ "EMPTY": "No notification"
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",
@@ -195,7 +195,8 @@
195
195
  "FOOTER_VERSION_ABOUT": "v{{version}} | About",
196
196
  "LOCAL_SETTINGS": "Settings",
197
197
  "LOGOUT": "Logout",
198
- "ABOUT": "About"
198
+ "ABOUT": "About",
199
+ "BTN_MY_ACCOUNT": "My account"
199
200
  },
200
201
  "ABOUT": {
201
202
  "TITLE": "About",
@@ -387,6 +388,11 @@
387
388
  },
388
389
  "SOCIAL": {
389
390
  "USER_EVENT": {
391
+ "NOTIFICATION": {
392
+ "TITLE": "Notifications",
393
+ "EMPTY": "No notification",
394
+ "READ_ALL": "Mark all as read"
395
+ },
390
396
  "EVENT_TYPE": "Type",
391
397
  "CREATION_DATE": "Date/Time",
392
398
  "MESSAGE": "Message",
@@ -400,6 +406,12 @@
400
406
  "FEED": "Feed"
401
407
  }
402
408
  },
409
+ "JOB": {
410
+ "PROGRESSION": {
411
+ "TITLE": "Running tasks",
412
+ "EMPTY": "No running task"
413
+ }
414
+ },
403
415
  "MESSAGE": {
404
416
  "TYPE": "Message type",
405
417
  "RECIPIENTS": "Recipients",
@@ -416,8 +428,11 @@
416
428
  },
417
429
  "ERROR": {
418
430
  "LOAD_USER_EVENTS_ERROR": "Error while loading notifications",
431
+ "COUNT_USER_EVENT_ERROR": "Error while counting notifications",
419
432
  "SAVE_USER_EVENT_ERROR": "Error while saving user notification",
420
- "SEND_MESSAGE_ERROR": "Error while sending message"
433
+ "SUBSCRIBE_USER_EVENTS_ERROR": "Error while listening user events changes",
434
+ "SEND_MESSAGE_ERROR": "Error while sending message",
435
+ "SUBSCRIBE_JOB_PROGRESSION_ERROR": "Error while listening job progression changes"
421
436
  },
422
437
  "INFO": {
423
438
  "MESSAGE_SENT": "Message <b>sent</b>"
@@ -506,7 +521,7 @@
506
521
  "SAVE_ENTITY_ERROR": "Error while saving",
507
522
  "SAVE_ENTITIES_ERROR": "Error while saving the list",
508
523
  "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",
524
+ "SUBSCRIBE_ENTITY_ERROR": "Error while subscribing to remote changes",
510
525
  "CONTROL_ENTITY_ERROR": "Error while checking data validity",
511
526
  "TERMINATE_ENTITY_ERROR": "Cannot terminate entry. <small><br/>If the problem persists, please contact your administrator.</small>",
512
527
  "VALIDATE_ENTITY_ERROR": "Error when validating data",
@@ -195,7 +195,8 @@
195
195
  "FOOTER_VERSION_ABOUT": "v{{version}} | à propos",
196
196
  "LOCAL_SETTINGS": "Paramètres",
197
197
  "LOGOUT": "Se déconnecter",
198
- "ABOUT": "À propos"
198
+ "ABOUT": "À propos",
199
+ "BTN_MY_ACCOUNT": "Mon compte"
199
200
  },
200
201
  "ABOUT": {
201
202
  "TITLE": "À propos",
@@ -390,6 +391,11 @@
390
391
  },
391
392
  "SOCIAL": {
392
393
  "USER_EVENT": {
394
+ "NOTIFICATION": {
395
+ "TITLE": "Notifications",
396
+ "EMPTY": "Aucune notification",
397
+ "READ_ALL": "Tout marquer comme lu"
398
+ },
393
399
  "EVENT_TYPE": "Type",
394
400
  "CREATION_DATE": "Date/Heure",
395
401
  "MESSAGE": "Message",
@@ -403,6 +409,12 @@
403
409
  "FEED": "Actualité"
404
410
  }
405
411
  },
412
+ "JOB": {
413
+ "PROGRESSION": {
414
+ "TITLE": "Liste des tâches en cours",
415
+ "EMPTY": "Aucune tâche en cours"
416
+ }
417
+ },
406
418
  "MESSAGE": {
407
419
  "TYPE": "Type d'envoi",
408
420
  "RECIPIENTS": "Destinataires",
@@ -419,8 +431,11 @@
419
431
  },
420
432
  "ERROR": {
421
433
  "LOAD_USER_EVENTS_ERROR": "Erreur de chargement des notifications",
434
+ "COUNT_USER_EVENT_ERROR": "Erreur de comptage des notifications",
422
435
  "SAVE_USER_EVENT_ERROR": "Erreur de sauvegarde de la notification",
423
- "SEND_MESSAGE_ERROR": "Erreur lors de l'envoi du message"
436
+ "SUBSCRIBE_USER_EVENTS_ERROR": "Erreur lors de l'abonnement aux notifications",
437
+ "SEND_MESSAGE_ERROR": "Erreur lors de l'envoi du message",
438
+ "SUBSCRIBE_JOB_PROGRESSION_ERROR": "Erreur lors de l'abonnement à la progression de tâche"
424
439
  },
425
440
  "INFO": {
426
441
  "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,
@@ -2,18 +2,22 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  export * from './public_api';
5
- export { AppIconComponent as ɵj } from './src/app/core/icon/icon.component';
6
- export { AppUpdateOfflineModeCard as ɵi } from './src/app/core/offline/update-offline-mode-card.component';
7
- export { RegisterForm as ɵd } from './src/app/core/register/form/form-register';
8
- export { RegisterModal as ɵf } from './src/app/core/register/modal/modal-register';
9
- export { AccountValidatorService as ɵe } from './src/app/core/services/validator/account.validator';
10
- export { LocalSettingsValidatorService as ɵh } from './src/app/core/services/validator/local-settings.validator';
11
- export { UserSettingsValidatorService as ɵg } from './src/app/core/services/validator/user-settings.validator';
5
+ export { AppIconComponent as ɵe } from './src/app/core/icon/icon.component';
6
+ export { AppIconModule as ɵd } from './src/app/core/icon/icon.module';
7
+ export { AppUpdateOfflineModeCard as ɵm } from './src/app/core/offline/update-offline-mode-card.component';
8
+ export { RegisterForm as ɵh } from './src/app/core/register/form/form-register';
9
+ export { RegisterModal as ɵj } from './src/app/core/register/modal/modal-register';
10
+ export { AccountValidatorService as ɵi } from './src/app/core/services/validator/account.validator';
11
+ export { LocalSettingsValidatorService as ɵl } from './src/app/core/services/validator/local-settings.validator';
12
+ export { UserSettingsValidatorService as ɵk } from './src/app/core/services/validator/user-settings.validator';
12
13
  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';
14
+ export { MatBadgeIconTestPage as ɵq } from './src/app/shared/material/badge/badge-icon.test';
15
+ export { DateTestPage as ɵo } from './src/app/shared/material/datetime/testing/mat-date.test';
15
16
  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';
17
+ export { NumpadTestPage as ɵp } from './src/app/shared/material/numpad/testing/numpad.test';
17
18
  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';
19
+ export { ToastTestingPage as ɵs } from './src/app/shared/toast/toast.testing';
20
+ export { ToastTestingModule as ɵr } from './src/app/shared/toast/toast.testing.module';
21
+ export { JobProgressionList as ɵn } from './src/app/social/job/progression/job-progression.list';
22
+ export { UserEventNotificationList as ɵf } from './src/app/social/user-event/notification/user-event-notification.list';
23
+ export { UserEventTestService as ɵg } from './src/app/social/user-event/testing/user-event.testing.service';