@sumaris-net/ngx-components 1.22.9 → 1.22.11-rc2

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 (33) hide show
  1. package/bundles/sumaris-net.ngx-components.umd.js +480 -49
  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 +11 -2
  7. package/esm2015/src/app/core/menu/menu.component.js +2 -2
  8. package/esm2015/src/app/social/job/testing/job-progression.testing.js +48 -0
  9. package/esm2015/src/app/social/job/testing/job-progression.testing.service.js +30 -0
  10. package/esm2015/src/app/social/job/testing/job.testing.module.js +25 -0
  11. package/esm2015/src/app/social/social.module.js +6 -1
  12. package/esm2015/src/app/social/social.testing.module.js +39 -0
  13. package/esm2015/src/app/social/user-event/notification/user-event-notification.icon.js +94 -0
  14. package/esm2015/src/app/social/user-event/notification/user-event-notification.list.js +17 -15
  15. package/esm2015/src/app/social/user-event/testing/user-event.testing.js +162 -0
  16. package/esm2015/src/app/social/user-event/testing/user-event.testing.module.js +25 -0
  17. package/esm2015/src/app/social/user-event/testing/user-event.testing.service.js +6 -3
  18. package/esm2015/src/app/social/user-event/user-event.module.js +4 -4
  19. package/esm2015/src/app/social/user-event/user-event.service.js +8 -8
  20. package/fesm2015/sumaris-net.ngx-components.js +414 -38
  21. package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
  22. package/package.json +1 -1
  23. package/public_api.d.ts +8 -1
  24. package/src/app/social/job/testing/job-progression.testing.d.ts +11 -0
  25. package/src/app/social/job/testing/job-progression.testing.service.d.ts +10 -0
  26. package/src/app/social/job/testing/job.testing.module.d.ts +2 -0
  27. package/src/app/social/social.testing.module.d.ts +4 -0
  28. package/src/app/social/user-event/notification/{user-event-notification.component.d.ts → user-event-notification.icon.d.ts} +3 -2
  29. package/src/app/social/user-event/testing/user-event.testing.d.ts +22 -0
  30. package/src/app/social/user-event/testing/user-event.testing.module.d.ts +2 -0
  31. package/src/app/social/user-event/user-event.service.d.ts +4 -4
  32. package/sumaris-net.ngx-components.metadata.json +1 -1
  33. package/esm2015/src/app/social/user-event/notification/user-event-notification.component.js +0 -89
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.22.9",
4
+ "version": "1.22.11-rc2",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
package/public_api.d.ts CHANGED
@@ -171,7 +171,7 @@ export * from './src/app/social/user-event/user-event.module';
171
171
  export * from './src/app/social/user-event/user-event.model';
172
172
  export * from './src/app/social/user-event/user-event.fragments';
173
173
  export * from './src/app/social/user-event/user-event.service';
174
- export * from './src/app/social/user-event/notification/user-event-notification.component';
174
+ export * from './src/app/social/user-event/notification/user-event-notification.icon';
175
175
  export * from './src/app/social/job/job.module';
176
176
  export * from './src/app/social/job/job.model';
177
177
  export * from './src/app/social/job/job.service';
@@ -206,3 +206,10 @@ export * from './src/app/core/table/testing/table.testing';
206
206
  export * from './src/app/core/text-popover/testing/text-popover.testing.module';
207
207
  export * from './src/app/core/text-popover/testing/text-popover.testing';
208
208
  export { suggestFromArray } from "./src/app/shared/services";
209
+ export * from './src/app/social/social.testing.module';
210
+ export * from './src/app/social/user-event/testing/user-event.testing.module';
211
+ export * from './src/app/social/user-event/testing/user-event.testing';
212
+ export * from './src/app/social/user-event/testing/user-event.testing.service';
213
+ export * from './src/app/social/job/testing/job.testing.module';
214
+ export * from './src/app/social/job/testing/job-progression.testing';
215
+ export * from './src/app/social/job/testing/job-progression.testing.service';
@@ -0,0 +1,11 @@
1
+ import { JobProgressionComponent, JobProgressionOptions } from '../progression/job-progression.component';
2
+ import { JobProgression } from '../job.model';
3
+ export declare class JobProgressionTestingPage {
4
+ jobProgression: JobProgressionComponent;
5
+ nJob: number;
6
+ job: JobProgression;
7
+ options: JobProgressionOptions;
8
+ constructor();
9
+ incrementJob(value: number): void;
10
+ addJob(): void;
11
+ }
@@ -0,0 +1,10 @@
1
+ import { IJobProgressionService } from '../job.service';
2
+ import { FetchPolicy } from '@apollo/client/core';
3
+ import { Observable } from 'rxjs';
4
+ import { JobProgression } from '../job.model';
5
+ export declare class JobProgressionTestService implements IJobProgressionService {
6
+ listenChanges(id: number, options?: {
7
+ interval?: number;
8
+ fetchPolicy?: FetchPolicy;
9
+ }): Observable<JobProgression>;
10
+ }
@@ -0,0 +1,2 @@
1
+ export declare class JobTestingModule {
2
+ }
@@ -0,0 +1,4 @@
1
+ import { TestingPage } from '../shared/testing/tests.page';
2
+ export declare const SOCIAL_TESTING_PAGES: TestingPage[];
3
+ export declare class SocialTestingModule {
4
+ }
@@ -4,14 +4,15 @@ import { PopoverController } from '@ionic/angular';
4
4
  import { IUserEventService } from '../user-event.service';
5
5
  import { IUserEvent, IUserEventFilter } from '../user-event.model';
6
6
  import { AccountService } from '../../../core/services/account.service';
7
- export declare class UserEventNotificationComponent implements OnInit, OnDestroy {
7
+ export declare class AppUserEventNotificationIcon implements OnInit, OnDestroy {
8
8
  userEventService: IUserEventService<IUserEvent<any>, IUserEventFilter<any>>;
9
9
  protected accountService: AccountService;
10
10
  protected popoverController: PopoverController;
11
11
  debug: boolean;
12
12
  titleI18n: string;
13
13
  disabled: boolean;
14
- get count(): Observable<number>;
14
+ filter: any;
15
+ get countChanges(): Observable<number>;
15
16
  private _logPrefix;
16
17
  private _readEvent;
17
18
  private _readEvents;
@@ -0,0 +1,22 @@
1
+ import { UserEvent } from '../user-event.model';
2
+ import { Router } from '@angular/router';
3
+ import { AlertController } from '@ionic/angular';
4
+ import { TranslateService } from '@ngx-translate/core';
5
+ import { UserEventTestService } from './user-event.testing.service';
6
+ import { AppUserEventNotificationIcon } from '../notification/user-event-notification.icon';
7
+ export declare class UserEventTestingPage {
8
+ protected userEventService: UserEventTestService;
9
+ protected router: Router;
10
+ protected alertController: AlertController;
11
+ protected translateService: TranslateService;
12
+ notification: AppUserEventNotificationIcon;
13
+ constructor(userEventService: UserEventTestService, router: Router, alertController: AlertController, translateService: TranslateService);
14
+ protected customize(userEvent: UserEvent): void;
15
+ addNotification(): void;
16
+ addError(): void;
17
+ addWarning(): void;
18
+ addDebug(): void;
19
+ addNotificationWithLink(): void;
20
+ addNotificationWithAction(): void;
21
+ protected showMessage(text: string): Promise<void>;
22
+ }
@@ -0,0 +1,2 @@
1
+ export declare class UserEventTestingModule {
2
+ }
@@ -2,7 +2,7 @@ import { InjectionToken, OnDestroy } from '@angular/core';
2
2
  import { FetchPolicy } from '@apollo/client/core';
3
3
  import { AccountService } from '../../core/services/account.service';
4
4
  import { GraphqlService } from '../../core/graphql/graphql.service';
5
- import { BehaviorSubject, Observable } from 'rxjs';
5
+ import { BehaviorSubject, Observable, Subject } from 'rxjs';
6
6
  import { IUserEvent, IUserEventFilter } from './user-event.model';
7
7
  import { SortDirection } from '@angular/material/sort';
8
8
  import { EntitiesServiceWatchOptions, EntityServiceLoadOptions, IEntitiesService, LoadResult, Page } from '../../shared/services/entity-service.class';
@@ -40,7 +40,7 @@ export interface UserEventServiceOptions<Q extends IUserEventQueries = IUserEven
40
40
  subscriptions?: Partial<S>;
41
41
  }
42
42
  export interface IUserEventService<E extends IUserEvent<E>, F extends IUserEventFilter<E>, WO extends UserEventWatchOptions = UserEventWatchOptions> extends IEntitiesService<E, F, WO>, IStartableService {
43
- userEventCount: Observable<number>;
43
+ countSubject: Observable<number>;
44
44
  add(entity: E): any;
45
45
  count(filter: Partial<F>, options?: {
46
46
  fetchPolicy?: FetchPolicy;
@@ -68,12 +68,12 @@ export declare abstract class AbstractUserEventService<E extends IUserEvent<E, a
68
68
  protected readonly queries: Q;
69
69
  protected readonly mutations: Partial<M>;
70
70
  protected readonly subscriptions: Partial<S>;
71
- protected count$: BehaviorSubject<number>;
71
+ protected readonly _countSubject: BehaviorSubject<number>;
72
72
  protected resetCountDate: Moment;
73
73
  protected listeners: IUserEventListener<E>[];
74
74
  private _subscriptions;
75
75
  private _listenSubscription;
76
- get userEventCount(): Observable<number>;
76
+ get countSubject(): Subject<number>;
77
77
  protected constructor(graphql: GraphqlService, accountService: AccountService, network: NetworkService, translate: TranslateService, options: UserEventServiceOptions<Q, M, S>);
78
78
  protected ngOnStart(): Promise<void>;
79
79
  ngOnDestroy(): void;