@sumaris-net/ngx-components 1.20.35 → 1.21.0-beta2

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 (71) hide show
  1. package/bundles/sumaris-net.ngx-components.umd.js +1100 -319
  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 +0 -9
  6. package/esm2015/public_api.js +8 -3
  7. package/esm2015/src/app/core/icon/icon.component.js +5 -2
  8. package/esm2015/src/app/core/menu/menu.component.js +9 -2
  9. package/esm2015/src/app/core/table/table.class.js +11 -11
  10. package/esm2015/src/app/shared/functions.js +60 -1
  11. package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +4 -5
  12. package/esm2015/src/app/shared/material/autocomplete/testing/autocomplete.test.js +7 -10
  13. package/esm2015/src/app/shared/material/chips/material.chips.js +2 -3
  14. package/esm2015/src/app/shared/material/chips/testing/chips.test.js +2 -3
  15. package/esm2015/src/app/shared/material/datetime/material.date.js +2 -3
  16. package/esm2015/src/app/shared/material/datetime/material.datetime.js +2 -3
  17. package/esm2015/src/app/shared/pipes/arrays.pipe.js +1 -1
  18. package/esm2015/src/app/shared/pipes/form.pipes.js +4 -2
  19. package/esm2015/src/app/shared/pipes/highlight.pipe.js +4 -4
  20. package/esm2015/src/app/shared/pipes/string.pipes.js +18 -7
  21. package/esm2015/src/app/shared/services/memory-entity-service.class.js +1 -13
  22. package/esm2015/src/app/shared/types.js +1 -1
  23. package/esm2015/src/app/social/job/job.model.js +24 -0
  24. package/esm2015/src/app/social/job/job.module.js +25 -0
  25. package/esm2015/src/app/social/job/job.service.js +54 -0
  26. package/esm2015/src/app/social/job/progression/job-progression.component.js +192 -0
  27. package/esm2015/src/app/social/job/progression/job-progression.list.js +20 -0
  28. package/esm2015/src/app/social/message/message.module.js +25 -0
  29. package/esm2015/src/app/social/social.errors.js +5 -2
  30. package/esm2015/src/app/social/social.module.js +10 -15
  31. package/esm2015/src/app/social/user-event/notification/user-event-notification.component.js +95 -0
  32. package/esm2015/src/app/social/user-event/notification/user-event-notification.list.js +39 -0
  33. package/esm2015/src/app/social/user-event/user-event.model.js +58 -2
  34. package/esm2015/src/app/social/user-event/user-event.module.js +28 -0
  35. package/esm2015/src/app/social/user-event/user-event.service.js +294 -166
  36. package/esm2015/src/app/social/user-event/user-events.table.js +17 -12
  37. package/esm2015/sumaris-net.ngx-components.js +8 -6
  38. package/fesm2015/sumaris-net.ngx-components.js +931 -284
  39. package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
  40. package/package.json +2 -3
  41. package/public_api.d.ts +7 -2
  42. package/src/app/core/icon/icon.component.d.ts +4 -4
  43. package/src/app/core/table/table.class.d.ts +6 -8
  44. package/src/app/shared/functions.d.ts +9 -0
  45. package/src/app/shared/material/autocomplete/testing/autocomplete.test.d.ts +2 -1
  46. package/src/app/shared/material/badge/badge-icon.test.d.ts +1 -1
  47. package/src/app/shared/pipes/form.pipes.d.ts +2 -1
  48. package/src/app/shared/services/memory-entity-service.class.d.ts +0 -6
  49. package/src/app/shared/types.d.ts +4 -0
  50. package/src/app/social/job/job.model.d.ts +32 -0
  51. package/src/app/social/job/job.module.d.ts +2 -0
  52. package/src/app/social/job/job.service.d.ts +23 -0
  53. package/src/app/social/job/progression/job-progression.component.d.ts +43 -0
  54. package/src/app/social/job/progression/job-progression.list.d.ts +12 -0
  55. package/src/app/social/message/message.module.d.ts +2 -0
  56. package/src/app/social/social.errors.d.ts +3 -0
  57. package/src/app/social/social.module.d.ts +8 -0
  58. package/src/app/social/user-event/notification/user-event-notification.component.d.ts +25 -0
  59. package/src/app/social/user-event/notification/user-event-notification.list.d.ts +20 -0
  60. package/src/app/social/user-event/user-event.model.d.ts +51 -6
  61. package/src/app/social/user-event/user-event.module.d.ts +2 -0
  62. package/src/app/social/user-event/user-event.service.d.ts +80 -51
  63. package/src/app/social/user-event/user-events.table.d.ts +6 -6
  64. package/src/assets/i18n/en-US.json +15 -2
  65. package/src/assets/i18n/en.json +15 -2
  66. package/src/assets/i18n/fr.json +14 -1
  67. package/src/theme/_ngx-components.scss +7 -0
  68. package/sumaris-net.ngx-components.d.ts +7 -5
  69. package/sumaris-net.ngx-components.metadata.json +1 -1
  70. package/esm2015/src/app/shared/services.js +0 -61
  71. package/src/app/shared/services.d.ts +0 -9
@@ -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
  }
@@ -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,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",
@@ -390,6 +390,10 @@
390
390
  },
391
391
  "SOCIAL": {
392
392
  "USER_EVENT": {
393
+ "NOTIFICATION": {
394
+ "TITLE": "Notifications",
395
+ "EMPTY": "Aucune notification"
396
+ },
393
397
  "EVENT_TYPE": "Type",
394
398
  "CREATION_DATE": "Date/Heure",
395
399
  "MESSAGE": "Message",
@@ -403,6 +407,12 @@
403
407
  "FEED": "Actualité"
404
408
  }
405
409
  },
410
+ "JOB": {
411
+ "PROGRESSION": {
412
+ "TITLE": "Liste des tâches en cours",
413
+ "EMPTY": "Aucune tâche en cours"
414
+ }
415
+ },
406
416
  "MESSAGE": {
407
417
  "TYPE": "Type d'envoi",
408
418
  "RECIPIENTS": "Destinataires",
@@ -419,8 +429,11 @@
419
429
  },
420
430
  "ERROR": {
421
431
  "LOAD_USER_EVENTS_ERROR": "Erreur de chargement des notifications",
432
+ "COUNT_USER_EVENT_ERROR": "Erreur de comptage des notifications",
422
433
  "SAVE_USER_EVENT_ERROR": "Erreur de sauvegarde de la notification",
423
- "SEND_MESSAGE_ERROR": "Erreur lors de l'envoi du message"
434
+ "SUBSCRIBE_USER_EVENTS_ERROR": "Erreur lors de l'abonnement aux notifications",
435
+ "SEND_MESSAGE_ERROR": "Erreur lors de l'envoi du message",
436
+ "SUBSCRIBE_JOB_PROGRESSION_ERROR": "Erreur lors de l'abonnement à la progression de tâche"
424
437
  },
425
438
  "INFO": {
426
439
  "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 {
@@ -10,10 +10,12 @@ 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 ɵo } from './src/app/shared/material/badge/badge-icon.test';
14
+ export { DateTestPage as ɵm } 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 ɵn } 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 ɵq } from './src/app/shared/toast/toast.testing';
19
+ export { ToastTestingModule as ɵp } from './src/app/shared/toast/toast.testing.module';
20
+ export { JobProgressionList as ɵl } 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';