@sumaris-net/ngx-components 1.22.8 → 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.
Files changed (25) hide show
  1. package/bundles/sumaris-net.ngx-components.umd.js +202 -509
  2. package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
  3. package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
  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 +2 -3
  7. package/esm2015/src/app/core/menu/menu.component.js +2 -2
  8. package/esm2015/src/app/social/social.module.js +7 -2
  9. package/esm2015/src/app/social/user-event/notification/user-event-notification.icon.js +94 -0
  10. package/esm2015/src/app/social/user-event/notification/user-event-notification.list.js +17 -15
  11. package/esm2015/src/app/social/user-event/testing/user-event.testing.service.js +6 -3
  12. package/esm2015/src/app/social/user-event/user-event.module.js +5 -13
  13. package/esm2015/src/app/social/user-event/user-event.service.js +11 -89
  14. package/esm2015/sumaris-net.ngx-components.js +7 -8
  15. package/fesm2015/sumaris-net.ngx-components.js +176 -434
  16. package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
  17. package/package.json +1 -1
  18. package/public_api.d.ts +1 -2
  19. package/src/app/social/user-event/notification/{user-event-notification.component.d.ts → user-event-notification.icon.d.ts} +3 -2
  20. package/src/app/social/user-event/user-event.service.d.ts +5 -17
  21. package/sumaris-net.ngx-components.d.ts +6 -7
  22. package/sumaris-net.ngx-components.metadata.json +1 -1
  23. package/esm2015/src/app/social/user-event/notification/user-event-notification.component.js +0 -89
  24. package/esm2015/src/app/social/user-event/user-events.table.js +0 -131
  25. package/src/app/social/user-event/user-events.table.d.ts +0 -58
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.8",
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,8 +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/user-events.table';
175
- 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';
176
175
  export * from './src/app/social/job/job.module';
177
176
  export * from './src/app/social/job/job.model';
178
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,14 +2,13 @@ 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';
6
- import { IUserEvent, IUserEventFilter, UserEvent, UserEventFilter } from './user-event.model';
5
+ import { BehaviorSubject, Observable, Subject } from 'rxjs';
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';
9
9
  import { TranslateService } from '@ngx-translate/core';
10
10
  import { NetworkService } from '../../core/services/network.service';
11
11
  import { BaseGraphqlService, BaseGraphqlServiceOptions } from '../../core/services/base-graphql-service.class';
12
- import { Environment } from '../../../environments/environment.class';
13
12
  import { Moment } from 'moment';
14
13
  import { IStartableService } from '../../shared/services/startable-service.class';
15
14
  export declare const USER_EVENT_SERVICE: InjectionToken<IUserEventService<any, any, UserEventWatchOptions>>;
@@ -41,7 +40,7 @@ export interface UserEventServiceOptions<Q extends IUserEventQueries = IUserEven
41
40
  subscriptions?: Partial<S>;
42
41
  }
43
42
  export interface IUserEventService<E extends IUserEvent<E>, F extends IUserEventFilter<E>, WO extends UserEventWatchOptions = UserEventWatchOptions> extends IEntitiesService<E, F, WO>, IStartableService {
44
- userEventCount: Observable<number>;
43
+ countSubject: Observable<number>;
45
44
  add(entity: E): any;
46
45
  count(filter: Partial<F>, options?: {
47
46
  fetchPolicy?: FetchPolicy;
@@ -69,12 +68,12 @@ export declare abstract class AbstractUserEventService<E extends IUserEvent<E, a
69
68
  protected readonly queries: Q;
70
69
  protected readonly mutations: Partial<M>;
71
70
  protected readonly subscriptions: Partial<S>;
72
- protected count$: BehaviorSubject<number>;
71
+ protected readonly _countSubject: BehaviorSubject<number>;
73
72
  protected resetCountDate: Moment;
74
73
  protected listeners: IUserEventListener<E>[];
75
74
  private _subscriptions;
76
75
  private _listenSubscription;
77
- get userEventCount(): Observable<number>;
76
+ get countSubject(): Subject<number>;
78
77
  protected constructor(graphql: GraphqlService, accountService: AccountService, network: NetworkService, translate: TranslateService, options: UserEventServiceOptions<Q, M, S>);
79
78
  protected ngOnStart(): Promise<void>;
80
79
  ngOnDestroy(): void;
@@ -113,14 +112,3 @@ export declare abstract class AbstractUserEventService<E extends IUserEvent<E, a
113
112
  protected unreadEvents(events: E[]): number;
114
113
  protected copyIdAndUpdateDate(source: E, target: E): void;
115
114
  }
116
- export declare class UserEventService extends AbstractUserEventService<UserEvent, UserEventFilter> {
117
- protected graphql: GraphqlService;
118
- protected accountService: AccountService;
119
- protected network: NetworkService;
120
- protected translate: TranslateService;
121
- protected environment: Environment;
122
- constructor(graphql: GraphqlService, accountService: AccountService, network: NetworkService, translate: TranslateService, environment: Environment);
123
- asFilter(filter: Partial<UserEventFilter>): UserEventFilter;
124
- fromObject(source: any): UserEvent;
125
- protected fillDefaultProperties(entity: UserEvent): void;
126
- }
@@ -9,13 +9,12 @@ export { AccountValidatorService as ɵe } from './src/app/core/services/validato
9
9
  export { LocalSettingsValidatorService as ɵh } from './src/app/core/services/validator/local-settings.validator';
10
10
  export { UserSettingsValidatorService as ɵg } from './src/app/core/services/validator/user-settings.validator';
11
11
  export { isFocusableElement as ɵc } from './src/app/shared/focusable';
12
- export { MatBadgeIconTestPage as ɵo } from './src/app/shared/material/badge/badge-icon.test';
13
- export { DateTestPage as ɵm } from './src/app/shared/material/datetime/testing/mat-date.test';
12
+ export { MatBadgeIconTestPage as ɵn } from './src/app/shared/material/badge/badge-icon.test';
13
+ export { DateTestPage as ɵl } from './src/app/shared/material/datetime/testing/mat-date.test';
14
14
  export { MatNumpadDomService as ɵb } from './src/app/shared/material/numpad/numpad.dom-service';
15
- export { NumpadTestPage as ɵn } from './src/app/shared/material/numpad/testing/numpad.test';
15
+ export { NumpadTestPage as ɵm } from './src/app/shared/material/numpad/testing/numpad.test';
16
16
  export { CustomReuseStrategy as ɵa } from './src/app/shared/shared-routing.module';
17
- export { ToastTestingPage as ɵq } from './src/app/shared/toast/toast.testing';
18
- export { ToastTestingModule as ɵp } from './src/app/shared/toast/toast.testing.module';
19
- export { JobProgressionList as ɵl } from './src/app/social/job/progression/job-progression.list';
17
+ export { ToastTestingPage as ɵp } from './src/app/shared/toast/toast.testing';
18
+ export { ToastTestingModule as ɵo } from './src/app/shared/toast/toast.testing.module';
19
+ export { JobProgressionList as ɵk } from './src/app/social/job/progression/job-progression.list';
20
20
  export { UserEventNotificationList as ɵj } from './src/app/social/user-event/notification/user-event-notification.list';
21
- export { UserEventTestService as ɵk } from './src/app/social/user-event/testing/user-event.testing.service';