@sumaris-net/ngx-components 1.21.0-beta1 → 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 (25) hide show
  1. package/bundles/sumaris-net.ngx-components.umd.js +66 -30
  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/esm2015/public_api.js +5 -2
  6. package/esm2015/src/app/core/menu/menu.component.js +9 -2
  7. package/esm2015/src/app/social/job/progression/job-progression.component.js +34 -13
  8. package/esm2015/src/app/social/job/progression/job-progression.list.js +2 -2
  9. package/esm2015/src/app/social/social.module.js +3 -2
  10. package/esm2015/src/app/social/user-event/notification/user-event-notification.component.js +12 -5
  11. package/esm2015/src/app/social/user-event/notification/user-event-notification.list.js +2 -2
  12. package/esm2015/src/app/social/user-event/user-event.service.js +1 -1
  13. package/esm2015/sumaris-net.ngx-components.js +8 -11
  14. package/fesm2015/sumaris-net.ngx-components.js +52 -17
  15. package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
  16. package/package.json +1 -1
  17. package/public_api.d.ts +4 -1
  18. package/src/app/social/job/progression/job-progression.component.d.ts +12 -3
  19. package/src/app/social/social.module.d.ts +8 -0
  20. package/src/app/social/user-event/notification/user-event-notification.component.d.ts +0 -1
  21. package/src/assets/i18n/en-US.json +9 -3
  22. package/src/assets/i18n/en.json +9 -3
  23. package/src/assets/i18n/fr.json +9 -3
  24. package/sumaris-net.ngx-components.d.ts +7 -10
  25. package/sumaris-net.ngx-components.metadata.json +1 -1
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": "1.21.0-beta1",
4
+ "version": "1.21.0-beta2",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
package/public_api.d.ts CHANGED
@@ -164,14 +164,17 @@ export * from './src/app/core/menu/menu.service';
164
164
  export { EntityClass, EntityClasses } from './src/app/core/services/model/entity.decorators';
165
165
  export * from './src/app/social/social.module';
166
166
  export * from './src/app/social/social.errors';
167
+ export * from './src/app/social/user-event/user-event.module';
167
168
  export * from './src/app/social/user-event/user-event.model';
168
169
  export * from './src/app/social/user-event/user-event.fragments';
169
170
  export * from './src/app/social/user-event/user-event.service';
170
171
  export * from './src/app/social/user-event/user-events.table';
171
172
  export * from './src/app/social/user-event/notification/user-event-notification.component';
172
- export * from './src/app/social/job/job.service';
173
+ export * from './src/app/social/job/job.module';
173
174
  export * from './src/app/social/job/job.model';
175
+ export * from './src/app/social/job/job.service';
174
176
  export * from './src/app/social/job/progression/job-progression.component';
177
+ export * from './src/app/social/message/message.module';
175
178
  export * from './src/app/social/message/message.model';
176
179
  export * from './src/app/social/message/message.service';
177
180
  export * from './src/app/social/message/message.form';
@@ -4,21 +4,30 @@ import { ProgressSpinnerMode } from '@angular/material/progress-spinner';
4
4
  import { IJobProgressionService } from '../job.service';
5
5
  import { JobProgression } from '../job.model';
6
6
  import { PopoverController } from '@ionic/angular';
7
+ export interface JobProgressionOptions {
8
+ autoHide: boolean;
9
+ autoHideDelay: number;
10
+ autoRemove: boolean;
11
+ autoRemoveDelay: number;
12
+ }
7
13
  export declare class JobProgressionComponent implements OnInit, OnDestroy {
8
14
  protected jobProgressionService: IJobProgressionService;
9
15
  protected popoverController: PopoverController;
10
16
  protected cd: ChangeDetectorRef;
11
17
  debug: boolean;
12
18
  titleI18n: string;
13
- autoRemove: boolean;
14
- autoHide: boolean;
15
- autoHideDelay: number;
19
+ options: JobProgressionOptions;
16
20
  jobFinished: EventEmitter<number>;
21
+ visible: boolean;
17
22
  disabled: boolean;
18
23
  color: ThemePalette;
19
24
  mode: ProgressSpinnerMode;
20
25
  value: number;
21
26
  jobProgressions: JobProgression[];
27
+ protected autoHide: boolean;
28
+ protected autoHideDelay: number;
29
+ protected autoRemove: boolean;
30
+ protected autoRemoveDelay: number;
22
31
  private _subscriptions;
23
32
  private _subscriptionsById;
24
33
  private _logPrefix;
@@ -1,2 +1,10 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { JobProgressionOptions } from './job/progression/job-progression.component';
3
+ export interface SocialModuleOptions {
4
+ showUserEventNotification: boolean;
5
+ showJobProgression: boolean;
6
+ jobProgressionOptions: JobProgressionOptions;
7
+ }
8
+ export declare const SocialModuleOptionsToken: InjectionToken<SocialModuleOptions>;
1
9
  export declare class SocialModule {
2
10
  }
@@ -15,7 +15,6 @@ export declare class UserEventNotificationComponent implements OnInit, OnDestroy
15
15
  userEventsSubject: BehaviorSubject<IUserEvent<any, string, import("../user-event.model").EventLevel>[]>;
16
16
  get count(): Observable<number>;
17
17
  private _subscriptions;
18
- private _subscription;
19
18
  private _logPrefix;
20
19
  private _readEvent;
21
20
  constructor(userEventService: IUserEventService<IUserEvent<any>, IUserEventFilter<any>>, accountService: AccountService, popoverController: PopoverController, cd: ChangeDetectorRef);
@@ -387,7 +387,10 @@
387
387
  },
388
388
  "SOCIAL": {
389
389
  "USER_EVENT": {
390
- "TITLE": "Notifications",
390
+ "NOTIFICATION": {
391
+ "TITLE": "Notifications",
392
+ "EMPTY": "No notification"
393
+ },
391
394
  "EVENT_TYPE": "Type",
392
395
  "CREATION_DATE": "Date/Time",
393
396
  "MESSAGE": "Message",
@@ -401,8 +404,11 @@
401
404
  "FEED": "Feed"
402
405
  }
403
406
  },
404
- "JOB_PROGRESSION": {
405
- "TITLE": "Running tasks"
407
+ "JOB": {
408
+ "PROGRESSION": {
409
+ "TITLE": "Running tasks",
410
+ "EMPTY": "No running task"
411
+ }
406
412
  },
407
413
  "MESSAGE": {
408
414
  "TYPE": "Message type",
@@ -387,7 +387,10 @@
387
387
  },
388
388
  "SOCIAL": {
389
389
  "USER_EVENT": {
390
- "TITLE": "Notifications",
390
+ "NOTIFICATION": {
391
+ "TITLE": "Notifications",
392
+ "EMPTY": "No notification"
393
+ },
391
394
  "EVENT_TYPE": "Type",
392
395
  "CREATION_DATE": "Date/Time",
393
396
  "MESSAGE": "Message",
@@ -401,8 +404,11 @@
401
404
  "FEED": "Feed"
402
405
  }
403
406
  },
404
- "JOB_PROGRESSION": {
405
- "TITLE": "Running tasks"
407
+ "JOB": {
408
+ "PROGRESSION": {
409
+ "TITLE": "Running tasks",
410
+ "EMPTY": "No running task"
411
+ }
406
412
  },
407
413
  "MESSAGE": {
408
414
  "TYPE": "Message type",
@@ -390,7 +390,10 @@
390
390
  },
391
391
  "SOCIAL": {
392
392
  "USER_EVENT": {
393
- "TITLE": "Notifications",
393
+ "NOTIFICATION": {
394
+ "TITLE": "Notifications",
395
+ "EMPTY": "Aucune notification"
396
+ },
394
397
  "EVENT_TYPE": "Type",
395
398
  "CREATION_DATE": "Date/Heure",
396
399
  "MESSAGE": "Message",
@@ -404,8 +407,11 @@
404
407
  "FEED": "Actualité"
405
408
  }
406
409
  },
407
- "JOB_PROGRESSION": {
408
- "TITLE": "Liste des tâches en cours"
410
+ "JOB": {
411
+ "PROGRESSION": {
412
+ "TITLE": "Liste des tâches en cours",
413
+ "EMPTY": "Aucune tâche en cours"
414
+ }
409
415
  },
410
416
  "MESSAGE": {
411
417
  "TYPE": "Type d'envoi",
@@ -10,15 +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 ɵr } from './src/app/shared/material/badge/badge-icon.test';
14
- export { DateTestPage as ɵp } 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 ɵq } 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 ɵt } from './src/app/shared/toast/toast.testing';
19
- export { ToastTestingModule as ɵs } from './src/app/shared/toast/toast.testing.module';
20
- export { JobModule as ɵm } from './src/app/social/job/job.module';
21
- export { JobProgressionList as ɵn } from './src/app/social/job/progression/job-progression.list';
22
- export { MessageModule as ɵo } from './src/app/social/message/message.module';
23
- export { UserEventNotificationList as ɵl } from './src/app/social/user-event/notification/user-event-notification.list';
24
- export { UserEventModule as ɵk } from './src/app/social/user-event/user-event.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';