@sumaris-net/ngx-components 1.21.0-beta17 → 1.21.0-beta18

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.
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-beta17",
4
+ "version": "1.21.0-beta18",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,27 +1,21 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  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
- import { Account } from '../../../core/services/model/account.model';
8
7
  export declare class UserEventNotificationComponent implements OnInit, OnDestroy {
9
8
  userEventService: IUserEventService<IUserEvent<any>, IUserEventFilter<any>>;
10
9
  protected accountService: AccountService;
11
10
  protected popoverController: PopoverController;
12
- protected cd: ChangeDetectorRef;
13
11
  debug: boolean;
14
12
  titleI18n: string;
15
13
  disabled: boolean;
16
14
  get count(): Observable<number>;
17
- private _listenSubscription;
18
15
  private _logPrefix;
19
16
  private _readEvent;
20
- constructor(userEventService: IUserEventService<IUserEvent<any>, IUserEventFilter<any>>, accountService: AccountService, popoverController: PopoverController, cd: ChangeDetectorRef);
17
+ constructor(userEventService: IUserEventService<IUserEvent<any>, IUserEventFilter<any>>, accountService: AccountService, popoverController: PopoverController);
21
18
  ngOnInit(): Promise<void>;
22
19
  showList(event: UIEvent): Promise<void>;
23
20
  ngOnDestroy(): void;
24
- protected onLogin(account: Account): Promise<void>;
25
- protected onLogout(): void;
26
- protected markForCheck(): void;
27
21
  }
@@ -65,9 +65,11 @@ export declare abstract class AbstractUserEventService<E extends IUserEvent<E, a
65
65
  protected environment: Environment;
66
66
  private _count$;
67
67
  protected _subscriptions: Subscription;
68
+ private _listenSubscription;
68
69
  protected listeners: IUserEventListener<E>[];
69
70
  get userEventCount(): Observable<number>;
70
71
  protected constructor(graphql: GraphqlService, accountService: AccountService, network: NetworkService, translate: TranslateService, queries: IUserEventQueries, mutations: IUserEventMutations, subscriptions: IUserEventSubscriptions, environment: Environment);
72
+ protected ngOnStart(): Promise<void>;
71
73
  ngOnDestroy(): void;
72
74
  abstract asFilter(filter: Partial<F>): F;
73
75
  abstract fromObject(source: any): E;
@@ -91,6 +93,8 @@ export declare abstract class AbstractUserEventService<E extends IUserEvent<E, a
91
93
  saveAll(data: E[], opts?: any): Promise<E[]>;
92
94
  markAsRead(entity: E): Promise<void>;
93
95
  registerListener(listener: IUserEventListener<E>): void;
96
+ protected onLogin(): Promise<void>;
97
+ protected onLogout(): void;
94
98
  protected processUserEvent(source: any, that?: AbstractUserEventService<E, F>): E;
95
99
  protected defaultMarkAsRead(userEvent: E): Promise<void>;
96
100
  protected defaultFilter(): F;