@sumaris-net/ngx-components 2.4.12-rc1 → 2.4.12-rc3
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/public_api.mjs +3 -2
- 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 +15 -5
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +15 -5
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +2 -1
- package/src/app/social/user-event/notification/user-event-notification.list.d.ts +7 -4
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -209,6 +209,7 @@ export * from './src/app/social/user-event/user-event.module';
|
|
|
209
209
|
export * from './src/app/social/user-event/user-event.model';
|
|
210
210
|
export * from './src/app/social/user-event/user-event.service';
|
|
211
211
|
export * from './src/app/social/user-event/notification/user-event-notification.icon';
|
|
212
|
+
export * from './src/app/social/user-event/notification/user-event-notification.list';
|
|
212
213
|
export * from './src/app/social/job/job.module';
|
|
213
214
|
export * from './src/app/social/job/progression/job-progression.service';
|
|
214
215
|
export * from './src/app/social/job/progression/job-progression.model';
|
|
@@ -257,7 +258,7 @@ export * from './src/app/core/form/text-popover/testing/text-popover.testing.mod
|
|
|
257
258
|
export * from './src/app/core/form/text-popover/testing/text-popover.testing';
|
|
258
259
|
export * from './src/app/core/form/properties/testing/properties-form.test';
|
|
259
260
|
export * from './src/app/core/form/properties/testing/properties-form.testing.module';
|
|
260
|
-
export { suggestFromArray } from
|
|
261
|
+
export { suggestFromArray } from './src/app/shared/services';
|
|
261
262
|
export * from './src/app/social/social.testing.module';
|
|
262
263
|
export * from './src/app/social/user-event/testing/user-event.testing.module';
|
|
263
264
|
export * from './src/app/social/user-event/testing/user-event.testing';
|
|
@@ -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
|
}
|