@sumaris-net/ngx-components 2.7.4 → 2.7.5-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.7.4",
4
+ "version": "2.7.5-rc2",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -2,7 +2,7 @@ import { ChangeDetectorRef, EventEmitter, Injector, OnInit } from '@angular/core
2
2
  import { UntypedFormBuilder } from '@angular/forms';
3
3
  import { PopoverController, ToastController } from '@ionic/angular';
4
4
  import { AppForm } from '../../core/form/form.class';
5
- import { INamedFilterService } from './named-filter.service';
5
+ import { INamedFilterService, NamedFilterLoadOptions, NamedFilterWatchOptions } from './named-filter.service';
6
6
  import { MatAutocompleteField } from '../material/autocomplete/material.autocomplete';
7
7
  import { INamedFilter, INamedFilterFilter, NamedFilter } from './named-filter.model';
8
8
  import { MatAutocompleteFieldConfig } from '../material/autocomplete/material.autocomplete.config';
@@ -13,7 +13,7 @@ export declare class NamedFilterSelector extends AppForm<any> implements OnInit
13
13
  protected cd: ChangeDetectorRef;
14
14
  protected toastController: ToastController;
15
15
  protected popoverController: PopoverController;
16
- protected dataService: INamedFilterService<INamedFilter<any>, INamedFilterFilter<any, any>>;
16
+ protected dataService: INamedFilterService<INamedFilter<any>, INamedFilterFilter<any, any>, NamedFilterWatchOptions, NamedFilterLoadOptions>;
17
17
  protected logPrefix: string;
18
18
  private _entityName;
19
19
  private _deleteDisabled;
@@ -30,7 +30,7 @@ export declare class NamedFilterSelector extends AppForm<any> implements OnInit
30
30
  filterSelected: EventEmitter<any>;
31
31
  filterDeleted: EventEmitter<NamedFilter<NamedFilter<any>>>;
32
32
  autocompleteField: MatAutocompleteField;
33
- constructor(injector: Injector, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, toastController: ToastController, popoverController: PopoverController, dataService: INamedFilterService<INamedFilter<any>, INamedFilterFilter<any, any>>);
33
+ constructor(injector: Injector, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, toastController: ToastController, popoverController: PopoverController, dataService: INamedFilterService<INamedFilter<any>, INamedFilterFilter<any, any>, NamedFilterWatchOptions, NamedFilterLoadOptions>);
34
34
  get isNew(): boolean;
35
35
  get saveDisabled(): boolean;
36
36
  get deleteDisabled(): boolean;
@@ -1,15 +1,21 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- import { IEntitiesService, IEntityService, LoadResult, SuggestService } from '../services/entity-service.class';
2
+ import { EntitiesServiceLoadOptions, EntityServiceWatchOptions, IEntitiesService, IEntityService, LoadResult, SuggestService } from '../services/entity-service.class';
3
3
  import { GraphqlService } from '../../core/graphql/graphql.service';
4
4
  import { BaseEntityService, BaseEntityServiceOptions } from '../../core/services/base-entity-service.class';
5
5
  import { PlatformService } from '../../core/services/platform.service';
6
6
  import { AccountService } from '../../core/services/account.service';
7
7
  import { INamedFilter, INamedFilterFilter, NamedFilter, NamedFilterFilter } from './named-filter.model';
8
8
  import * as i0 from "@angular/core";
9
- export declare const APP_NAMED_FILTER_SERVICE: InjectionToken<INamedFilterService<any, any>>;
10
- export interface INamedFilterService<T extends INamedFilter<T>, F extends INamedFilterFilter<F, T>> extends IEntitiesService<T, F>, IEntityService<T, number>, SuggestService<T, F> {
9
+ export declare const APP_NAMED_FILTER_SERVICE: InjectionToken<INamedFilterService<any, any, any, any>>;
10
+ export interface INamedFilterService<T extends INamedFilter<T>, F extends INamedFilterFilter<F, T>, WO extends NamedFilterWatchOptions, LO extends NamedFilterLoadOptions> extends IEntitiesService<T, F, WO>, IEntityService<T, number, LO>, SuggestService<T, F> {
11
11
  }
12
- export declare abstract class AbstractNamedFilterService<T extends NamedFilter<T>, F extends NamedFilterFilter<F, T>> extends BaseEntityService<T, F, number> implements INamedFilterService<T, F> {
12
+ export interface NamedFilterWatchOptions extends EntityServiceWatchOptions {
13
+ withContent?: boolean;
14
+ }
15
+ export interface NamedFilterLoadOptions extends EntitiesServiceLoadOptions {
16
+ withContent?: boolean;
17
+ }
18
+ export declare abstract class AbstractNamedFilterService<T extends NamedFilter<T>, F extends NamedFilterFilter<F, T>, WO extends NamedFilterWatchOptions = NamedFilterWatchOptions, LO extends NamedFilterLoadOptions = NamedFilterLoadOptions> extends BaseEntityService<T, F, number> implements INamedFilterService<T, F, WO, LO> {
13
19
  protected graphql: GraphqlService;
14
20
  protected platform: PlatformService;
15
21
  protected account: AccountService;
@@ -21,6 +27,6 @@ export declare abstract class AbstractNamedFilterService<T extends NamedFilter<T
21
27
  asSuggestFilter(searchText: string, filter?: Partial<F>): F;
22
28
  asFilter(source: any): F;
23
29
  protected fillDefaultProperties(source: T): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractNamedFilterService<any, any>, never>;
25
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractNamedFilterService<any, any>, never, never, {}, {}, never, never, false, never>;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractNamedFilterService<any, any, any, any>, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractNamedFilterService<any, any, any, any>, never, never, {}, {}, never, never, false, never>;
26
32
  }
@@ -12,6 +12,12 @@ export declare class Environment {
12
12
  baseUrl: string;
13
13
  connectionTimeout?: number;
14
14
  sameUrlPeer?: boolean;
15
+ peer?: {
16
+ host: string;
17
+ port: number;
18
+ useSsl?: boolean;
19
+ path?: string;
20
+ } | undefined | null;
15
21
  defaultPeer?: {
16
22
  host: string;
17
23
  port: number;