@sumaris-net/ngx-components 2.4.138 → 2.4.140
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/esm2020/src/app/core/menu/menu.service.mjs +6 -7
- package/esm2020/src/app/core/menu/sub-menu-tab.directive.mjs +2 -5
- package/esm2020/src/app/core/services/platform.service.mjs +14 -16
- package/esm2020/src/app/core/services/storage/entities-storage.service.mjs +10 -10
- package/fesm2015/sumaris-net.ngx-components.mjs +169 -174
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +150 -155
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/menu/menu.service.d.ts +1 -1
- package/src/app/core/services/platform.service.d.ts +2 -4
- package/src/app/core/services/storage/entities-storage.service.d.ts +3 -3
package/package.json
CHANGED
|
@@ -25,12 +25,12 @@ export declare class MenuService extends StartableObservableService<MenuItem[]>
|
|
|
25
25
|
protected accountService: AccountService;
|
|
26
26
|
protected router: Router;
|
|
27
27
|
protected environment: Environment;
|
|
28
|
-
protected options?: MenuOptions;
|
|
29
28
|
readonly accountChanges: BehaviorSubject<Account>;
|
|
30
29
|
readonly pinnedEvent: EventEmitter<MenuItem>;
|
|
31
30
|
private _staticItems;
|
|
32
31
|
private _detachedSubItems;
|
|
33
32
|
private _itemCounter;
|
|
33
|
+
private readonly _options;
|
|
34
34
|
private readonly _logPrefix;
|
|
35
35
|
private readonly _$opened;
|
|
36
36
|
private readonly _$splitPaneWhen;
|
|
@@ -15,7 +15,6 @@ import { ConfigService } from './config.service';
|
|
|
15
15
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
16
16
|
import { Downloader, DownloadRequest } from '@ionic-native/downloader/ngx';
|
|
17
17
|
import { StartableService } from '../../shared/services/startable-service.class';
|
|
18
|
-
import { StorageService } from '../../shared/storage/storage.service';
|
|
19
18
|
import { OpenOptions } from '@capacitor/browser';
|
|
20
19
|
import { ILoggingService } from '../../shared/logging/logger.model';
|
|
21
20
|
import * as i0 from "@angular/core";
|
|
@@ -29,7 +28,6 @@ export declare class PlatformService extends StartableService {
|
|
|
29
28
|
private toastController;
|
|
30
29
|
private translate;
|
|
31
30
|
private dateAdapter;
|
|
32
|
-
private storageService;
|
|
33
31
|
private entitiesStorage;
|
|
34
32
|
private settings;
|
|
35
33
|
private networkService;
|
|
@@ -46,7 +44,7 @@ export declare class PlatformService extends StartableService {
|
|
|
46
44
|
private _capacitor;
|
|
47
45
|
private _android;
|
|
48
46
|
private _ios;
|
|
49
|
-
constructor(ionicPlatform: Platform, cdkPlatform: CdkPlatform, toastController: ToastController, translate: TranslateService, dateAdapter: MomentDateAdapter,
|
|
47
|
+
constructor(ionicPlatform: Platform, cdkPlatform: CdkPlatform, toastController: ToastController, translate: TranslateService, dateAdapter: MomentDateAdapter, entitiesStorage: EntitiesStorage, settings: LocalSettingsService, networkService: NetworkService, accountService: AccountService, configService: ConfigService, cache: CacheService, audioProvider: AudioProvider, environment: Environment, loggingService: ILoggingService, downloader: Downloader);
|
|
50
48
|
private _downloadingJobs;
|
|
51
49
|
private checkAppVersionTimer;
|
|
52
50
|
is(platformName: Platforms): boolean;
|
|
@@ -91,6 +89,6 @@ export declare class PlatformService extends StartableService {
|
|
|
91
89
|
}): Promise<void>;
|
|
92
90
|
protected showToast(opts: ShowToastOptions): Promise<HTMLIonToastElement>;
|
|
93
91
|
protected onStartupError(err: any): Promise<void>;
|
|
94
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformService, [null, null, null, null, null, null, null, null, null, null, null, null, null,
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformService, [null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
95
93
|
static ɵprov: i0.ɵɵInjectableDeclaration<PlatformService>;
|
|
96
94
|
}
|
|
@@ -18,9 +18,9 @@ declare interface EntityStorageMap {
|
|
|
18
18
|
}
|
|
19
19
|
export declare class EntitiesStorage extends StartableService<EntityStorageMap> {
|
|
20
20
|
private platform;
|
|
21
|
-
private progressBarService;
|
|
22
21
|
private storage;
|
|
23
22
|
protected environment: Environment;
|
|
23
|
+
private progressBarService?;
|
|
24
24
|
static readonly TRASH_PREFIX = "Trash#";
|
|
25
25
|
static readonly REMOTE_PREFIX = "Remote#";
|
|
26
26
|
private readonly _typePolicies;
|
|
@@ -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,
|
|
32
|
+
constructor(platform: Platform, storage: IStorage, environment: Environment, progressBarService?: IProgressBarService, 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, { optional: true; },
|
|
105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntitiesStorage, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
106
106
|
static ɵprov: i0.ɵɵInjectableDeclaration<EntitiesStorage>;
|
|
107
107
|
}
|
|
108
108
|
export {};
|