@sumaris-net/ngx-components 2.4.12-rc1 → 2.4.12-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/esm2020/src/app/core/services/model/filter.model.mjs +1 -1
- package/esm2020/src/app/social/user-event/notification/user-event-notification.list.mjs +16 -6
- package/fesm2015/sumaris-net.ngx-components.mjs +14 -4
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +14 -4
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/social/user-event/notification/user-event-notification.list.d.ts +7 -4
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, InjectionToken, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
2
|
import { IUserEvent, IUserEventFilter, IUserEventAction } from '../user-event.model';
|
|
3
3
|
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
4
4
|
import { IonContent, IonItem, PopoverController } from '@ionic/angular';
|
|
@@ -7,6 +7,7 @@ import { LocalSettingsService } from '../../../core/services/local-settings.serv
|
|
|
7
7
|
import { FetchMoreFn, LoadResult } from '../../../shared/services/entity-service.class';
|
|
8
8
|
import { SortDirection } from '@angular/material/sort';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
+
export declare const APP_USER_EVENT_LIST_INFINITE_SCROLL_THRESHOLD: InjectionToken<string>;
|
|
10
11
|
export interface UserEventNotificationListOptions<E extends IUserEvent<any> = IUserEvent<any>, F extends IUserEventFilter<any> = IUserEventFilter<any>> {
|
|
11
12
|
debug?: boolean;
|
|
12
13
|
titleI18n?: string;
|
|
@@ -19,6 +20,7 @@ export declare class UserEventNotificationList<E extends IUserEvent<any> = IUser
|
|
|
19
20
|
protected popoverController: PopoverController;
|
|
20
21
|
protected settings: LocalSettingsService;
|
|
21
22
|
userEventService: IUserEventService<E, IUserEventFilter<any>>;
|
|
23
|
+
infiniteScrollThresholdFromToken: string;
|
|
22
24
|
protected _subscriptions: Subscription;
|
|
23
25
|
protected _fetchMoreFn: FetchMoreFn<LoadResult<E>>;
|
|
24
26
|
protected _fetchMoreSubscription: Subscription;
|
|
@@ -33,6 +35,7 @@ export declare class UserEventNotificationList<E extends IUserEvent<any> = IUser
|
|
|
33
35
|
sortDirection: SortDirection;
|
|
34
36
|
filter: Partial<F>;
|
|
35
37
|
enableInfiniteScroll: boolean;
|
|
38
|
+
infiniteScrollThreshold: string;
|
|
36
39
|
set pageSize(value: number);
|
|
37
40
|
get pageSize(): number;
|
|
38
41
|
readEvent: EventEmitter<E>;
|
|
@@ -40,7 +43,7 @@ export declare class UserEventNotificationList<E extends IUserEvent<any> = IUser
|
|
|
40
43
|
ionContent: IonContent;
|
|
41
44
|
ionItems: QueryList<IonItem>;
|
|
42
45
|
get canFetchMore(): boolean;
|
|
43
|
-
constructor(cd: ChangeDetectorRef, popoverController: PopoverController, settings: LocalSettingsService, userEventService: IUserEventService<E, IUserEventFilter<any
|
|
46
|
+
constructor(cd: ChangeDetectorRef, popoverController: PopoverController, settings: LocalSettingsService, userEventService: IUserEventService<E, IUserEventFilter<any>>, infiniteScrollThresholdFromToken: string);
|
|
44
47
|
ngOnInit(): void;
|
|
45
48
|
ngOnDestroy(): void;
|
|
46
49
|
click(event: Event, userEvent: E): void;
|
|
@@ -57,6 +60,6 @@ export declare class UserEventNotificationList<E extends IUserEvent<any> = IUser
|
|
|
57
60
|
trackByFn(index: number, item: E): number;
|
|
58
61
|
protected initInfiniteScroll(threshold?: string): Promise<void>;
|
|
59
62
|
protected markForCheck(): void;
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserEventNotificationList<any, any>, [null, null, { optional: true; }, { optional: true; }]>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserEventNotificationList<any, any>, "app-user-event-notification-list", never, { "debug": "debug"; "mobile": "mobile"; "titleI18n": "titleI18n"; "sortBy": "sortBy"; "sortDirection": "sortDirection"; "filter": "filter"; "enableInfiniteScroll": "enableInfiniteScroll"; "pageSize": "pageSize"; }, { "readEvent": "readEvent"; "readEvents": "readEvents"; }, never, never, false>;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserEventNotificationList<any, any>, [null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserEventNotificationList<any, any>, "app-user-event-notification-list", never, { "debug": "debug"; "mobile": "mobile"; "titleI18n": "titleI18n"; "sortBy": "sortBy"; "sortDirection": "sortDirection"; "filter": "filter"; "enableInfiniteScroll": "enableInfiniteScroll"; "infiniteScrollThreshold": "infiniteScrollThreshold"; "pageSize": "pageSize"; }, { "readEvent": "readEvent"; "readEvents": "readEvents"; }, never, never, false>;
|
|
62
65
|
}
|