@sumaris-net/ngx-components 1.22.5 → 1.22.8
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 +11 -143
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/social/user-event/notification/user-event-notification.component.js +3 -3
- package/esm2015/src/app/social/user-event/notification/user-event-notification.list.js +3 -3
- package/esm2015/src/app/social/user-event/user-event.model.js +5 -1
- package/esm2015/src/app/social/user-event/user-event.module.js +3 -3
- package/esm2015/src/app/social/user-event/user-event.service.js +5 -96
- package/esm2015/src/app/social/user-event/user-events.table.js +3 -31
- package/fesm2015/sumaris-net.ngx-components.js +11 -124
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/social/user-event/user-event.model.d.ts +2 -0
- package/src/app/social/user-event/user-event.service.d.ts +2 -14
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import { Entity, EntityAsObjectOptions, IEntity } from '../../core/services/mode
|
|
|
3
3
|
import { EntityFilter, IEntityFilter } from '../../core/services/model/filter.model';
|
|
4
4
|
import { FilterFn } from '../../shared/services/entity-service.class';
|
|
5
5
|
import { AppColors, IconRef } from '../../shared/types';
|
|
6
|
+
import { StoreObject } from '@apollo/client/core';
|
|
6
7
|
export declare const UserEventTypes: {
|
|
7
8
|
DEBUG_DATA: string;
|
|
8
9
|
INBOX_MESSAGE: string;
|
|
@@ -63,6 +64,7 @@ export declare class UserEventFilter extends EntityFilter<UserEventFilter, UserE
|
|
|
63
64
|
excludeRead: boolean;
|
|
64
65
|
fromObject(source: any, opts?: any): void;
|
|
65
66
|
protected buildFilter(): FilterFn<UserEvent>[];
|
|
67
|
+
asObject(opts?: EntityAsObjectOptions): StoreObject;
|
|
66
68
|
}
|
|
67
69
|
export interface UserEventAction {
|
|
68
70
|
name: string | any;
|
|
@@ -6,16 +6,13 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
6
6
|
import { IUserEvent, IUserEventFilter, UserEvent, UserEventFilter } 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
|
-
import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
10
|
-
import { OverlayEventDetail } from '@ionic/core';
|
|
11
|
-
import { ToastController } from '@ionic/angular';
|
|
12
9
|
import { TranslateService } from '@ngx-translate/core';
|
|
13
10
|
import { NetworkService } from '../../core/services/network.service';
|
|
14
11
|
import { BaseGraphqlService, BaseGraphqlServiceOptions } from '../../core/services/base-graphql-service.class';
|
|
15
12
|
import { Environment } from '../../../environments/environment.class';
|
|
16
13
|
import { Moment } from 'moment';
|
|
17
14
|
import { IStartableService } from '../../shared/services/startable-service.class';
|
|
18
|
-
export declare const
|
|
15
|
+
export declare const USER_EVENT_SERVICE: InjectionToken<IUserEventService<any, any, UserEventWatchOptions>>;
|
|
19
16
|
export declare interface UserEventWatchOptions extends EntitiesServiceWatchOptions {
|
|
20
17
|
withContent?: boolean;
|
|
21
18
|
}
|
|
@@ -121,18 +118,9 @@ export declare class UserEventService extends AbstractUserEventService<UserEvent
|
|
|
121
118
|
protected accountService: AccountService;
|
|
122
119
|
protected network: NetworkService;
|
|
123
120
|
protected translate: TranslateService;
|
|
124
|
-
protected toastController: ToastController;
|
|
125
121
|
protected environment: Environment;
|
|
126
|
-
constructor(graphql: GraphqlService, accountService: AccountService, network: NetworkService, translate: TranslateService,
|
|
127
|
-
showToastErrorWithContext(opts: {
|
|
128
|
-
error?: any;
|
|
129
|
-
message?: string;
|
|
130
|
-
context: any | (() => any) | Promise<any>;
|
|
131
|
-
}): Promise<void>;
|
|
132
|
-
sendDataForDebug(data: any): Promise<UserEvent>;
|
|
122
|
+
constructor(graphql: GraphqlService, accountService: AccountService, network: NetworkService, translate: TranslateService, environment: Environment);
|
|
133
123
|
asFilter(filter: Partial<UserEventFilter>): UserEventFilter;
|
|
134
124
|
fromObject(source: any): UserEvent;
|
|
135
|
-
protected convertObjectToString(data: any): string;
|
|
136
|
-
protected showToast<T = any>(opts: ShowToastOptions): Promise<OverlayEventDetail<T>>;
|
|
137
125
|
protected fillDefaultProperties(entity: UserEvent): void;
|
|
138
126
|
}
|