@sumaris-net/ngx-components 2.6.4-rc10 → 2.6.4-rc11

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.6.4-rc10",
4
+ "version": "2.6.4-rc11",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -8,6 +8,7 @@ import { GraphqlService } from '../../core/graphql/graphql.service';
8
8
  import { BaseEntityGraphqlMutations, BaseEntityGraphqlQueries, BaseEntityService, BaseEntityServiceOptions } from '../../core/services/base-entity-service.class';
9
9
  import { PlatformService } from '../../core/services/platform.service';
10
10
  import { StoreObject } from '@apollo/client/core';
11
+ import { AccountService } from '../../core/services/account.service';
11
12
  import * as i0 from "@angular/core";
12
13
  export interface INamedFilter<T extends INamedFilter<T>> extends IEntity<T, number> {
13
14
  name: string;
@@ -48,7 +49,6 @@ export interface INamedFilterServiceLoadOptions extends EntitiesServiceLoadOptio
48
49
  withContent: boolean;
49
50
  }
50
51
  export interface INamedFilterService<T extends INamedFilter<T>, F extends EntityFilter<F, T>> extends IEntitiesService<T, F, INamedFilterServiceWatchOptions>, IEntityService<T, number, INamedFilterServiceLoadOptions>, SuggestService<T, F> {
51
- defaultFilter(): F;
52
52
  suggestFilter(searchText: string, filter?: Partial<F>): F;
53
53
  }
54
54
  export interface INamedFilterQueries extends BaseEntityGraphqlQueries {
@@ -57,17 +57,18 @@ export interface INamedFilterQueries extends BaseEntityGraphqlQueries {
57
57
  export declare abstract class AbstractNamedFilterService<T extends NamedFilter<T>, F extends NamedFilterFilter<F, T>, WO extends INamedFilterServiceWatchOptions = INamedFilterServiceWatchOptions, LO extends INamedFilterServiceLoadOptions = INamedFilterServiceLoadOptions, Q extends INamedFilterQueries = INamedFilterQueries, M extends BaseEntityGraphqlMutations = BaseEntityGraphqlMutations> extends BaseEntityService<T, F, number, WO, LO, Q, M> implements INamedFilterService<T, F> {
58
58
  protected graphql: GraphqlService;
59
59
  protected platform: PlatformService;
60
+ protected account: AccountService;
60
61
  protected dataType: new () => T;
61
62
  protected filterType: new () => F;
62
63
  protected options: BaseEntityServiceOptions<T, number, Q, M>;
63
- protected constructor(graphql: GraphqlService, platform: PlatformService, dataType: new () => T, filterType: new () => F, options: BaseEntityServiceOptions<T, number, Q, M>);
64
- abstract defaultFilter(): F;
64
+ protected constructor(graphql: GraphqlService, platform: PlatformService, account: AccountService, dataType: new () => T, filterType: new () => F, options: BaseEntityServiceOptions<T, number, Q, M>);
65
65
  watchAll(offset: number, size: number, sortBy?: string, sortDirection?: SortDirection, filter?: F, options?: WO): Observable<LoadResult<T>>;
66
66
  loadAll(offset: number, size: number, sortBy?: string, sortDirection?: SortDirection, filter?: Partial<F>, options?: LO & {
67
67
  debug?: boolean;
68
68
  }): Promise<LoadResult<T>>;
69
69
  suggest(value: any, filter: Partial<F>): Promise<LoadResult<T>>;
70
70
  suggestFilter(searchText: string, filter?: Partial<F>): F;
71
+ asFilter(source: any): F;
71
72
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractNamedFilterService<any, any, any, any, any, any>, never>;
72
73
  static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractNamedFilterService<any, any, any, any, any, any>, never, never, {}, {}, never, never, false>;
73
74
  }