@sumaris-net/ngx-components 2.6.4-rc7 → 2.6.4-rc9

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-rc7",
4
+ "version": "2.6.4-rc9",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -199,6 +199,7 @@ export declare class FormArrayHelper<T = Entity<any>, C extends AbstractControl
199
199
  */
200
200
  add(value?: T, options?: {
201
201
  emitEvent: boolean;
202
+ insertAt?: number;
202
203
  }): boolean;
203
204
  removeAt(index: number): boolean;
204
205
  resize(length: number, options?: {
@@ -281,6 +282,7 @@ export declare class AppFormArray<T extends Entity<T>, C extends AbstractControl
281
282
  */
282
283
  add(value?: T, options?: {
283
284
  emitEvent: boolean;
285
+ insertAt?: number;
284
286
  }): void;
285
287
  removeAt(index: number, options?: {
286
288
  emitEvent: boolean;
@@ -38,6 +38,7 @@ export declare function disableControls(form: UntypedFormGroup, paths: string[],
38
38
  }): void;
39
39
  export declare function addValueInArray(arrayControl: UntypedFormArray, createControl: (value?: any) => AbstractControl, equals: (v1: any, v2: any) => boolean, isEmpty: (value: any) => boolean, value: any, options?: {
40
40
  emitEvent: boolean;
41
+ insertAt?: number;
41
42
  }): boolean;
42
43
  /**
43
44
  * Set an array using given default values. Each default value will be pass to the 'createControl()' function
@@ -5,9 +5,6 @@ import { Entity, EntityAsObjectOptions, IEntity } from '../../core/services/mode
5
5
  import { EntityFilter, IEntityFilter } from '../../core/services/model/filter.model';
6
6
  import { EntitiesServiceLoadOptions, EntitiesServiceWatchOptions, IEntitiesService, IEntityService, LoadResult, SuggestService } from '../services/entity-service.class';
7
7
  import { GraphqlService } from '../../core/graphql/graphql.service';
8
- import { AccountService } from '../../core/services/account.service';
9
- import { NetworkService } from '../../core/services/network.service';
10
- import { TranslateService } from '@ngx-translate/core';
11
8
  import { BaseEntityGraphqlMutations, BaseEntityGraphqlQueries, BaseEntityService, BaseEntityServiceOptions } from '../../core/services/base-entity-service.class';
12
9
  import { PlatformService } from '../../core/services/platform.service';
13
10
  import { StoreObject } from '@apollo/client/core';
@@ -54,19 +51,16 @@ export interface INamedFilterService<T extends INamedFilter<T>, F extends Entity
54
51
  defaultFilter(): F;
55
52
  suggestFilter(searchText: string, filter?: Partial<F>): F;
56
53
  }
57
- interface INamedFilterQueries extends BaseEntityGraphqlQueries {
54
+ export interface INamedFilterQueries extends BaseEntityGraphqlQueries {
58
55
  loadAllWithContent: any;
59
56
  }
60
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> {
61
58
  protected graphql: GraphqlService;
62
59
  protected platform: PlatformService;
63
- protected accountService: AccountService;
64
60
  protected dataType: new () => T;
65
61
  protected filterType: new () => F;
66
- protected network: NetworkService;
67
- protected translate: TranslateService;
68
62
  protected options: BaseEntityServiceOptions<T, number, Q, M>;
69
- protected constructor(graphql: GraphqlService, platform: PlatformService, accountService: AccountService, dataType: new () => T, filterType: new () => F, network: NetworkService, translate: TranslateService, 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>);
70
64
  abstract defaultFilter(): F;
71
65
  watchAll(offset: number, size: number, sortBy?: string, sortDirection?: SortDirection, filter?: F, options?: WO): Observable<LoadResult<T>>;
72
66
  loadAll(offset: number, size: number, sortBy?: string, sortDirection?: SortDirection, filter?: Partial<F>, options?: LO & {
@@ -77,4 +71,3 @@ export declare abstract class AbstractNamedFilterService<T extends NamedFilter<T
77
71
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractNamedFilterService<any, any, any, any, any, any>, never>;
78
72
  static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractNamedFilterService<any, any, any, any, any, any>, never, never, {}, {}, never, never, false>;
79
73
  }
80
- export {};