@sumaris-net/ngx-components 2.4.0-rc1 → 2.4.0-rc3

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.0-rc1",
4
+ "version": "2.4.0-rc3",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -4,7 +4,7 @@ import { Platform } from '@ionic/angular';
4
4
  import { Entity, IEntity } from '../model/entity.model';
5
5
  import { LoadResult } from '../../../shared/services/entity-service.class';
6
6
  import { EntityStorageLoadOptions, EntityStore, EntityStoreTypePolicy } from './entity-store.class';
7
- import { ProgressBarService } from '../../../shared/services/progress-bar.service';
7
+ import { IProgressBarService } from '../../../shared/services/progress-bar.service';
8
8
  import { Environment } from '../../../../environments/environment.class';
9
9
  import { StartableService } from '../../../shared/services/startable-service.class';
10
10
  import { IStorage } from '../../../shared/services/storage/storage.utils';
@@ -29,7 +29,7 @@ export declare class EntitiesStorage extends StartableService<EntityStorageMap>
29
29
  private _dirty;
30
30
  private _saving;
31
31
  get dirty(): boolean;
32
- constructor(platform: Platform, progressBarService: ProgressBarService, storage: IStorage, environment: Environment, typePolicies: EntitiesStorageTypePolicies);
32
+ constructor(platform: Platform, progressBarService: IProgressBarService, storage: IStorage, environment: Environment, typePolicies: EntitiesStorageTypePolicies);
33
33
  ngOnStart(): Promise<EntityStorageMap>;
34
34
  protected ngOnStop(): Promise<void>;
35
35
  watchAll<T extends Entity<T>>(entityName: string, variables: {
@@ -102,7 +102,7 @@ export declare class EntitiesStorage extends StartableService<EntityStorageMap>
102
102
  protected storeLocally(opts?: {
103
103
  skipIfPristine: boolean;
104
104
  }): Promise<void>;
105
- static ɵfac: i0.ɵɵFactoryDeclaration<EntitiesStorage, [null, null, null, null, { optional: true; }]>;
105
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntitiesStorage, [null, { optional: true; }, null, null, { optional: true; }]>;
106
106
  static ɵprov: i0.ɵɵInjectableDeclaration<EntitiesStorage>;
107
107
  }
108
108
  export {};
@@ -1,8 +1,8 @@
1
1
  import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { ProgressBarService } from '../services/progress-bar.service';
3
+ import { IProgressBarService } from '../services/progress-bar.service';
4
4
  export declare class ProgressInterceptor implements HttpInterceptor {
5
5
  private progressBarService;
6
- constructor(progressBarService: ProgressBarService);
6
+ constructor(progressBarService: IProgressBarService);
7
7
  intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
8
8
  }
@@ -1,8 +1,15 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, InjectionToken } from '@angular/core';
2
2
  import { ProgressBarMode } from '@angular/material/progress-bar';
3
3
  import * as i0 from "@angular/core";
4
+ export declare const APP_PROGRESS_BAR_SERVICE: InjectionToken<IProgressBarService>;
4
5
  export declare type ProgressMode = ProgressBarMode;
5
- export declare class ProgressBarService {
6
+ export interface IProgressBarService {
7
+ onProgressChanged: EventEmitter<ProgressBarMode>;
8
+ list(): number;
9
+ increase(): any;
10
+ decrease(): any;
11
+ }
12
+ export declare class ProgressBarService implements IProgressBarService {
6
13
  private _requestsRunning;
7
14
  onProgressChanged: EventEmitter<ProgressBarMode>;
8
15
  list(): number;
@@ -1,5 +1,5 @@
1
1
  import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { ProgressBarService } from '../services/progress-bar.service';
2
+ import { IProgressBarService } from '../services/progress-bar.service';
3
3
  import { ActivatedRoute, Router } from '@angular/router';
4
4
  import { IonMenuToggle, IonRouterOutlet, IonSearchbar } from '@ionic/angular';
5
5
  import { Observable } from 'rxjs';
@@ -44,7 +44,7 @@ export declare class ToolbarComponent implements ToolbarToken, OnInit, OnDestroy
44
44
  showSearchBar: boolean;
45
45
  searchbar: IonSearchbar;
46
46
  menuToggle: IonMenuToggle;
47
- constructor(route: ActivatedRoute, router: Router, routerOutlet: IonRouterOutlet, cd: ChangeDetectorRef, progressBarService: ProgressBarService);
47
+ constructor(route: ActivatedRoute, router: Router, routerOutlet: IonRouterOutlet, cd: ChangeDetectorRef, progressBarService: IProgressBarService);
48
48
  ngOnInit(): void;
49
49
  ngOnDestroy(): void;
50
50
  toggleSearchBar(): Promise<void>;