@sumaris-net/ngx-components 1.5.9 → 1.6.1

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": "1.5.9",
4
+ "version": "1.6.1",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -41,9 +41,17 @@ export declare abstract class AppEditor<T = any, ID = number, O = any> implement
41
41
  private _subscription;
42
42
  protected _enabled: boolean;
43
43
  protected _dirty: boolean;
44
- protected _loading: boolean;
45
44
  protected _$ready: BehaviorSubject<boolean>;
45
+ protected _$loading: BehaviorSubject<boolean>;
46
46
  protected toastController: ToastController;
47
+ /**
48
+ * @deprecated
49
+ */
50
+ protected set _loading(value: boolean);
51
+ /**
52
+ * @deprecated
53
+ */
54
+ protected get _loading(): boolean;
47
55
  debug: boolean;
48
56
  previousDataId: ID;
49
57
  submitted: boolean;
@@ -5,7 +5,7 @@ import { OnDestroy } from '@angular/core';
5
5
  import { SortDirection } from '@angular/material/sort';
6
6
  import { CollectionViewer } from '@angular/cdk/collections';
7
7
  import { TableDataSourceOptions } from '@e-is/ngx-material-table/src/app/ngx-material-table/table-data-source';
8
- import { EntitiesServiceWatchOptions, IEntitiesService, LoadResult } from '../../shared/services/entity-service.class';
8
+ import { EntitiesServiceWatchOptions, FetchMoreFn, IEntitiesService, LoadResult } from '../../shared/services/entity-service.class';
9
9
  export declare interface AppTableDataServiceOptions<O extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions> extends EntitiesServiceWatchOptions {
10
10
  [key: string]: any;
11
11
  saveOnlyDirtyRows?: boolean;
@@ -30,6 +30,7 @@ export declare class EntitiesTableDataSource<T extends IEntity<T, ID>, F = any,
30
30
  protected _useValidator: boolean;
31
31
  protected _stopWatching$: Subject<any>;
32
32
  protected _editingRowCount: number;
33
+ protected _fetchMoreFn: FetchMoreFn<LoadResult<T>>;
33
34
  loadingSubject: BehaviorSubject<boolean>;
34
35
  get serviceOptions(): AppTableDataServiceOptions<O>;
35
36
  set serviceOptions(value: AppTableDataServiceOptions<O>);
@@ -66,6 +67,10 @@ export declare class EntitiesTableDataSource<T extends IEntity<T, ID>, F = any,
66
67
  deleteAll(rows: TableElement<T>[]): Promise<any>;
67
68
  getRows(): Promise<TableElement<T>[]>;
68
69
  asyncCreateNew(insertAt?: number): Promise<void>;
70
+ getData(): Promise<T[]>;
71
+ fetchMore(opts?: {
72
+ emitEvent: boolean;
73
+ }): Promise<void>;
69
74
  markAsLoading(): void;
70
75
  markAsLoaded(): void;
71
76
  }
@@ -13,6 +13,8 @@ export declare interface WaitForOptions {
13
13
  checkPeriod?: number;
14
14
  timeout?: number;
15
15
  }
16
+ export declare function firstTrue(obs: Observable<boolean>): Observable<void>;
17
+ export declare function firstFalse(obs: Observable<boolean>): Observable<void>;
16
18
  /**
17
19
  * Wait form a predicate return true. This need to implement AppFormUtils.waitWhilePending(), AppFormUtils.waitIdle()
18
20
  * @param predicate