@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.
- package/bundles/sumaris-net.ngx-components.umd.js +480 -49
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +6 -0
- package/esm2015/public_api.js +11 -2
- package/esm2015/src/app/core/menu/menu.component.js +2 -2
- package/esm2015/src/app/social/job/testing/job-progression.testing.js +48 -0
- package/esm2015/src/app/social/job/testing/job-progression.testing.service.js +30 -0
- package/esm2015/src/app/social/job/testing/job.testing.module.js +25 -0
- package/esm2015/src/app/social/social.module.js +6 -1
- package/esm2015/src/app/social/social.testing.module.js +39 -0
- package/esm2015/src/app/social/user-event/notification/user-event-notification.icon.js +94 -0
- package/esm2015/src/app/social/user-event/notification/user-event-notification.list.js +17 -15
- package/esm2015/src/app/social/user-event/testing/user-event.testing.js +162 -0
- package/esm2015/src/app/social/user-event/testing/user-event.testing.module.js +25 -0
- package/esm2015/src/app/social/user-event/testing/user-event.testing.service.js +6 -3
- package/esm2015/src/app/social/user-event/user-event.module.js +4 -4
- package/esm2015/src/app/social/user-event/user-event.service.js +8 -8
- package/fesm2015/sumaris-net.ngx-components.js +414 -38
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +8 -1
- package/src/app/social/job/testing/job-progression.testing.d.ts +11 -0
- package/src/app/social/job/testing/job-progression.testing.service.d.ts +10 -0
- package/src/app/social/job/testing/job.testing.module.d.ts +2 -0
- package/src/app/social/social.testing.module.d.ts +4 -0
- package/src/app/social/user-event/notification/{user-event-notification.component.d.ts → user-event-notification.icon.d.ts} +3 -2
- package/src/app/social/user-event/testing/user-event.testing.d.ts +22 -0
- package/src/app/social/user-event/testing/user-event.testing.module.d.ts +2 -0
- package/src/app/social/user-event/user-event.service.d.ts +4 -4
- package/sumaris-net.ngx-components.metadata.json +1 -1
- package/esm2015/src/app/social/user-event/notification/user-event-notification.component.js +0 -89
package/package.json
CHANGED
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.
|
|
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
|
+
}
|
|
@@ -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
|
|
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
|
-
|
|
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
|
+
}
|
|
@@ -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
|
-
|
|
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
|
|
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
|
|
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;
|