@sumaris-net/ngx-components 1.22.10 → 1.22.11-rc1

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.22.10",
4
+ "version": "1.22.11-rc1",
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';
@@ -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;
@@ -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;