@sumaris-net/ngx-components 2.4.11 → 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "2.4.11",
4
+ "version": "2.4.12-rc2",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -10,6 +10,9 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@noble/ed25519": "^1.7.1",
13
+ "@rx-angular/cdk": "^1.0.0-rc.4",
14
+ "@rx-angular/state": "^1.7.0",
15
+ "@rx-angular/template": "^1.0.0-rc.5",
13
16
  "clone": "~2.1.2",
14
17
  "tslib": "~2.3.1"
15
18
  },
@@ -7,6 +7,17 @@ export interface IEntityFilter<F extends IEntityFilter<F, T, ID, AO, FO>, T exte
7
7
  countNotEmptyCriteria(): number;
8
8
  }
9
9
  export declare abstract class EntityFilter<F extends EntityFilter<F, T, ID, AO, FO>, T extends IEntity<T, any>, ID = number, AO extends EntityAsObjectOptions = EntityAsObjectOptions, FO = any> extends Entity<F, ID, AO, FO> implements IEntityFilter<F, T, ID, AO, FO> {
10
+ /**
11
+ * Compose some filter functions: all should return true
12
+ * @param filterFns
13
+ */
14
+ static composeFilters<T extends IEntity<T, any>>(filterFns: FilterFn<T>[]): FilterFn<T>;
15
+ static compose<F extends EntityFilter<F, T>, T extends IEntity<T>>(filters: F[]): FilterFn<T>;
16
+ /**
17
+ * Compose some filter functions: all should return true
18
+ * @param filterFns
19
+ */
20
+ static composeFns<T extends IEntity<T, any>>(filterFns: FilterFn<T>[]): FilterFn<T>;
10
21
  constructor(__typename?: string);
11
22
  /**
12
23
  * Clean a filter, before sending to the pod (e.g convert dates, remove internal properties, etc.)
@@ -4,6 +4,5 @@ export declare const isWindows: (win?: Window) => boolean;
4
4
  export declare const isTouchUi: (win?: Window) => boolean;
5
5
  export declare const isIOS: (win: Window) => boolean;
6
6
  export declare const isAndroid: (win: Window) => boolean;
7
- export declare const isCordova: (win: any) => boolean;
8
7
  export declare const isCapacitor: (win: any) => boolean;
9
8
  export declare const isMobile: (win: Window) => any;
@@ -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
  }