@sumaris-net/ngx-components 2.4.114 → 2.4.115
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/doc/changelog.md +3 -0
- package/esm2020/public_api.mjs +2 -1
- package/esm2020/src/app/admin/services/filter/person.filter.mjs +1 -1
- package/esm2020/src/app/admin/services/person.service.mjs +9 -1
- package/esm2020/src/app/core/form/entity/editor.class.mjs +6 -6
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +5 -2
- package/esm2020/src/app/core/form/text-popover/text-popover.component.mjs +1 -1
- package/esm2020/src/app/core/menu/menu.component.mjs +32 -197
- package/esm2020/src/app/core/menu/menu.model.mjs +38 -13
- package/esm2020/src/app/core/menu/menu.service.mjs +249 -18
- package/esm2020/src/app/core/menu/testing/menu-other.testing.mjs +52 -0
- package/esm2020/src/app/core/menu/testing/menu.testing.mjs +68 -51
- package/esm2020/src/app/core/menu/testing/menu.testing.module.mjs +41 -6
- package/esm2020/src/app/core/services/crypto.service.mjs +14 -21
- package/esm2020/src/app/core/services/model/account.model.mjs +1 -1
- package/esm2020/src/app/core/services/model/config.model.mjs +1 -1
- package/esm2020/src/app/core/services/model/department.model.mjs +1 -1
- package/esm2020/src/app/core/services/model/peer.model.mjs +1 -1
- package/esm2020/src/app/core/services/model/person.model.mjs +1 -1
- package/esm2020/src/app/core/services/model/referential.model.mjs +1 -1
- package/esm2020/src/app/core/services/model/settings.model.mjs +1 -1
- package/esm2020/src/app/core/services/platform.service.mjs +3 -2
- package/esm2020/src/app/core/services/storage/entities-storage.service.mjs +1 -1
- package/esm2020/src/app/core/services/testing/referential-filter.model.mjs +1 -1
- package/esm2020/src/app/shared/file/json.utils.mjs +3 -3
- package/esm2020/src/app/shared/image/gallery/testing/gallegry.model.testing.mjs +1 -1
- package/esm2020/src/app/shared/image/gallery/testing/gallery.service.testing.mjs +1 -1
- package/esm2020/src/app/shared/interceptors/progess.interceptor.mjs +1 -1
- package/esm2020/src/app/shared/services/startable-observable-service.class.mjs +1 -1
- package/esm2020/src/app/shared/services/startable-service.class.mjs +1 -1
- package/esm2020/src/app/social/job/progression/job-progression.model.mjs +1 -1
- package/esm2020/src/app/social/message/message.model.mjs +1 -1
- package/esm2020/src/app/social/user-event/testing/user-event.testing.model.mjs +1 -1
- package/fesm2015/sumaris-net.ngx-components.mjs +917 -739
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +910 -736
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +7 -5
- package/public_api.d.ts +1 -0
- package/src/app/admin/services/person.service.d.ts +5 -0
- package/src/app/core/form/text-popover/text-popover.component.d.ts +2 -1
- package/src/app/core/menu/menu.component.d.ts +10 -19
- package/src/app/core/menu/menu.model.d.ts +17 -7
- package/src/app/core/menu/menu.service.d.ts +51 -11
- package/src/app/core/menu/testing/menu-other.testing.d.ts +13 -0
- package/src/app/core/menu/testing/menu.testing.d.ts +16 -3
- package/src/app/core/menu/testing/menu.testing.module.d.ts +6 -5
- package/src/app/core/services/crypto.service.d.ts +7 -7
- package/src/app/core/services/platform.service.d.ts +3 -2
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.
|
|
4
|
+
"version": "2.4.115",
|
|
5
5
|
"author": "contact@e-is.pro",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"readmeFilename": "README.md",
|
|
@@ -9,17 +9,19 @@
|
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@noble/ed25519": "^1.7.
|
|
12
|
+
"@noble/ed25519": "^1.7.3",
|
|
13
13
|
"@rx-angular/cdk": "^14.0.0",
|
|
14
14
|
"@rx-angular/state": "^14.0.0",
|
|
15
15
|
"@rx-angular/template": "^14.0.0",
|
|
16
16
|
"clone": "~2.1.2",
|
|
17
|
-
"tslib": "~2.
|
|
17
|
+
"tslib": "~2.6.2",
|
|
18
|
+
"@polkadot/util": "~12.5.1",
|
|
19
|
+
"@polkadot/util-crypto": "~12.5.1"
|
|
18
20
|
},
|
|
19
21
|
"peerDependencies": {
|
|
20
|
-
"@angular-devkit/build-angular": "~14.2.
|
|
22
|
+
"@angular-devkit/build-angular": "~14.2.13",
|
|
21
23
|
"@angular/compiler-cli": "~14.3.0",
|
|
22
|
-
"@apollo/client": "~3.
|
|
24
|
+
"@apollo/client": "~3.8.5",
|
|
23
25
|
"@ionic/storage": "~3.0.6",
|
|
24
26
|
"d3": "~7.6.1",
|
|
25
27
|
"localforage": "~1.10.0",
|
package/public_api.d.ts
CHANGED
|
@@ -259,6 +259,7 @@ export * from './src/app/shared/audio/audio.testing';
|
|
|
259
259
|
export * from './src/app/shared/audio/audio.testing.module';
|
|
260
260
|
export * from './src/app/core/menu/testing/menu.testing';
|
|
261
261
|
export * from './src/app/core/menu/testing/menu.testing.module';
|
|
262
|
+
export * from './src/app/core/menu/testing/menu-other.testing';
|
|
262
263
|
export * from './src/app/core/core.testing.module';
|
|
263
264
|
export * from './src/app/core/services/testing/referential-filter.model';
|
|
264
265
|
export * from './src/app/core/services/testing/referential.validator';
|
|
@@ -38,6 +38,11 @@ export declare class PersonService extends BaseEntityService<Person, PersonFilte
|
|
|
38
38
|
progression?: BehaviorSubject<number>;
|
|
39
39
|
maxProgression?: number;
|
|
40
40
|
}): Promise<void>;
|
|
41
|
+
loadByPubkey(pubkey: string, opts?: {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
fetchPolicy?: FetchPolicy;
|
|
44
|
+
toEntity?: boolean;
|
|
45
|
+
}): Promise<Person>;
|
|
41
46
|
protected asObject(source: Person | any): any;
|
|
42
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<PersonService, never>;
|
|
43
48
|
static ɵprov: i0.ɵɵInjectableDeclaration<PersonService>;
|
|
@@ -19,6 +19,7 @@ export interface TextPopoverOptions {
|
|
|
19
19
|
showHeader?: boolean;
|
|
20
20
|
headerColor?: Color;
|
|
21
21
|
headerButtons?: TextPopoverButton[];
|
|
22
|
+
showFooter?: boolean;
|
|
22
23
|
}
|
|
23
24
|
export interface TextPopoverButton {
|
|
24
25
|
text?: string;
|
|
@@ -33,7 +34,7 @@ export interface TextPopoverButton {
|
|
|
33
34
|
export declare class TextPopover implements OnInit, AfterViewInit, OnDestroy, TextPopoverOptions {
|
|
34
35
|
protected popoverController: PopoverController;
|
|
35
36
|
protected translate: TranslateService;
|
|
36
|
-
static show(ctrl: PopoverController, event: Event, opts: TextPopoverOptions, popoverOpts?: PopoverOptions): Promise<OverlayEventDetail>;
|
|
37
|
+
static show(ctrl: PopoverController, event: Event, opts: TextPopoverOptions, popoverOpts?: Partial<PopoverOptions>): Promise<OverlayEventDetail>;
|
|
37
38
|
form: TextForm;
|
|
38
39
|
showHeader: boolean;
|
|
39
40
|
headerColor: Color;
|
|
@@ -3,11 +3,11 @@ import { AlertController, IonSplitPane, MenuController, ModalController, NavCont
|
|
|
3
3
|
import { Account } from '../services/model/account.model';
|
|
4
4
|
import { AccountService } from '../services/account.service';
|
|
5
5
|
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
-
import { BehaviorSubject } from 'rxjs';
|
|
7
6
|
import { ConfigService } from '../services/config.service';
|
|
8
7
|
import { PlatformService } from '../services/platform.service';
|
|
9
8
|
import { MenuService, SplitPaneShowWhen } from './menu.service';
|
|
10
9
|
import { MenuItem, MenuOptions } from './menu.model';
|
|
10
|
+
import { ActivatedRoute } from '@angular/router';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare const APP_MENU_ITEMS: InjectionToken<MenuItem[]>;
|
|
13
13
|
export declare const APP_MENU_OPTIONS: InjectionToken<MenuOptions>;
|
|
@@ -23,6 +23,7 @@ export declare class MenuComponent implements OnInit {
|
|
|
23
23
|
protected cd: ChangeDetectorRef;
|
|
24
24
|
protected menuService: MenuService;
|
|
25
25
|
protected environment: any;
|
|
26
|
+
protected route: ActivatedRoute;
|
|
26
27
|
protected options: MenuOptions;
|
|
27
28
|
protected items: MenuItem[];
|
|
28
29
|
id: string;
|
|
@@ -38,15 +39,19 @@ export declare class MenuComponent implements OnInit {
|
|
|
38
39
|
accountName: string;
|
|
39
40
|
accountAvatar: string;
|
|
40
41
|
accountEmail: string;
|
|
41
|
-
$
|
|
42
|
+
private readonly _$toggled;
|
|
43
|
+
private readonly _$opened;
|
|
44
|
+
private readonly _$splitPaneWhen;
|
|
45
|
+
private readonly _$enabled;
|
|
42
46
|
private readonly _debug;
|
|
43
47
|
private _subscription;
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
constructor(platformService: PlatformService, accountService: AccountService, navController: NavController, menu: MenuController, modalCtrl: ModalController, alertController: AlertController, translate: TranslateService, configService: ConfigService, cd: ChangeDetectorRef, menuService: MenuService, environment: any, route: ActivatedRoute, // Modal editor give 'null'
|
|
49
|
+
options: MenuOptions, items: MenuItem[]);
|
|
46
50
|
ngOnInit(): Promise<void>;
|
|
47
51
|
onLogin(account: Account): Promise<void>;
|
|
48
52
|
onLogout(skipRedirect?: boolean): Promise<void>;
|
|
49
53
|
logout(): Promise<void>;
|
|
54
|
+
trackByFn(index: number, menu: MenuItem): string;
|
|
50
55
|
enable(value: boolean): Promise<void>;
|
|
51
56
|
open(): Promise<boolean>;
|
|
52
57
|
close(): Promise<boolean>;
|
|
@@ -55,21 +60,7 @@ export declare class MenuComponent implements OnInit {
|
|
|
55
60
|
toggleSplitPaneShow(event?: Event): Promise<void>;
|
|
56
61
|
doAction(action: string, event: Event): Promise<void>;
|
|
57
62
|
onSwipeRight(event: any): boolean;
|
|
58
|
-
protected refreshMenuItems(): void;
|
|
59
63
|
protected detectChanges(): void;
|
|
60
|
-
|
|
61
|
-
skipExisting: boolean;
|
|
62
|
-
}): void;
|
|
63
|
-
protected cleanItem(item: MenuItem): void;
|
|
64
|
-
protected findExistingItem(item: MenuItem, items?: MenuItem[]): MenuItem;
|
|
65
|
-
protected findParent(childItem: MenuItem, items?: MenuItem[]): MenuItem;
|
|
66
|
-
protected addMenuToParent(parent: MenuItem, child: MenuItem): MenuItem[];
|
|
67
|
-
protected splitPathParam(pathWithParam: string): {
|
|
68
|
-
path: string;
|
|
69
|
-
params: {
|
|
70
|
-
[key: string]: string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
74
65
|
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "app-menu", never, { "id": "id"; "menuId": "menuId"; "side": "side"; "contentId": "contentId"; "logo": "logo"; "appName": "appName"; "appVersion": "appVersion"; }, {}, never, ["*", "[headerBottomRight]"], false>;
|
|
75
66
|
}
|
|
@@ -2,6 +2,8 @@ import { UserProfileLabel } from '../services/model/person.model';
|
|
|
2
2
|
import { Configuration } from '../services/model/config.model';
|
|
3
3
|
import { AccountService } from '../services/account.service';
|
|
4
4
|
import { IconRef } from '../../shared/types';
|
|
5
|
+
import { BehaviorSubject } from "rxjs";
|
|
6
|
+
import { MenuPathParam } from "./menu.service";
|
|
5
7
|
export interface MenuItem extends IconRef {
|
|
6
8
|
title: string;
|
|
7
9
|
path?: string;
|
|
@@ -22,26 +24,34 @@ export interface MenuItem extends IconRef {
|
|
|
22
24
|
parentPathParams?: {
|
|
23
25
|
[key: string]: string;
|
|
24
26
|
};
|
|
25
|
-
children?: MenuItem[]
|
|
27
|
+
$children?: BehaviorSubject<MenuItem[]>;
|
|
26
28
|
}
|
|
27
29
|
export declare class MenuItems {
|
|
28
30
|
/**
|
|
29
31
|
* Compare, without checking the children
|
|
30
|
-
* @param
|
|
31
|
-
* @param
|
|
32
|
+
* @param mainItem
|
|
33
|
+
* @param otherItem
|
|
32
34
|
*/
|
|
33
|
-
static isSame(
|
|
34
|
-
|
|
35
|
+
static isSame(mainItem: MenuItem, otherItem: MenuItem): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* All key/value of the mainParams should exist (and be equals) in the other params
|
|
38
|
+
* @param mainParams
|
|
39
|
+
* @param otherParams
|
|
40
|
+
*/
|
|
41
|
+
static isSameParams(mainParams: {
|
|
35
42
|
[key: string]: string;
|
|
36
|
-
},
|
|
43
|
+
}, otherParams: {
|
|
37
44
|
[key: string]: string;
|
|
38
45
|
}): boolean;
|
|
39
|
-
static isParent(child: MenuItem, parent: MenuItem): boolean;
|
|
46
|
+
static isParent(child: MenuItem, parent: MenuItem | MenuPathParam): boolean;
|
|
40
47
|
static checkIfVisible(item: MenuItem, accountService: AccountService, config: Configuration, opts?: {
|
|
41
48
|
isLogin?: boolean;
|
|
42
49
|
debug?: boolean;
|
|
43
50
|
logPrefix?: string;
|
|
44
51
|
}): boolean;
|
|
52
|
+
static parsePathWithQuery(pathWithQuery: string): MenuPathParam;
|
|
53
|
+
static getUrl(item: MenuItem): string;
|
|
54
|
+
static getUrlFromPathAndParams(path: string, params?: any): string;
|
|
45
55
|
}
|
|
46
56
|
export declare class MenuOptions {
|
|
47
57
|
}
|
|
@@ -1,27 +1,67 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
2
3
|
import { MenuItem } from './menu.model';
|
|
4
|
+
import { Router } from '@angular/router';
|
|
5
|
+
import { StartableService } from '../../shared/services/startable-service.class';
|
|
6
|
+
import { Environment } from '../../../environments/environment.class';
|
|
7
|
+
import { PlatformService } from '../services/platform.service';
|
|
8
|
+
import { Moment } from 'moment';
|
|
9
|
+
import { AccountService } from '../services/account.service';
|
|
10
|
+
import { ConfigService } from '../services/config.service';
|
|
11
|
+
import { Account } from '../services/model/account.model';
|
|
3
12
|
import * as i0 from "@angular/core";
|
|
4
13
|
export declare type SplitPaneShowWhen = boolean | 'lg';
|
|
5
14
|
export declare const DEFAULT_MENU_SHOW_WHEN: SplitPaneShowWhen;
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
15
|
+
export interface AddSubMenuItemsOption {
|
|
16
|
+
skipIfExists: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface AddSubMenuItems {
|
|
19
|
+
items: MenuItem[];
|
|
20
|
+
opts?: AddSubMenuItemsOption;
|
|
21
|
+
}
|
|
22
|
+
export interface MenuPathParam {
|
|
23
|
+
path: string;
|
|
24
|
+
params: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export declare class MenuService extends StartableService<MenuItem[], any> {
|
|
29
|
+
protected platformService: PlatformService;
|
|
30
|
+
protected configService: ConfigService;
|
|
31
|
+
protected accountService: AccountService;
|
|
32
|
+
protected router: Router;
|
|
33
|
+
protected environment: Environment;
|
|
34
|
+
onLoginChange: Subject<Account>;
|
|
35
|
+
onUpdateMenu: EventEmitter<any>;
|
|
36
|
+
readonly $items: BehaviorSubject<MenuItem[]>;
|
|
37
|
+
protected lastAccountUpdateDate: Moment | string;
|
|
38
|
+
private _logPrefix;
|
|
39
|
+
private _config;
|
|
12
40
|
private readonly _$toggled;
|
|
13
41
|
private readonly _$opened;
|
|
14
42
|
private readonly _$splitPaneWhen;
|
|
15
43
|
private readonly _$enabled;
|
|
16
|
-
private
|
|
44
|
+
private get rootItems();
|
|
45
|
+
constructor(platformService: PlatformService, configService: ConfigService, accountService: AccountService, router: Router, environment: Environment, rootItems?: MenuItem[]);
|
|
46
|
+
get opened(): Observable<boolean>;
|
|
47
|
+
get splitPaneWhen(): Observable<SplitPaneShowWhen>;
|
|
48
|
+
get enabled(): Observable<boolean>;
|
|
17
49
|
toggle(): void;
|
|
18
50
|
enable(value: boolean): void;
|
|
19
51
|
setSplitPaneShowWhen(value: SplitPaneShowWhen): void;
|
|
20
52
|
toggleSplitPaneWhen(): void;
|
|
21
|
-
clearSubMenuItems(): void;
|
|
22
|
-
addSubMenuItem(value: MenuItem): void;
|
|
23
53
|
_markAsOpened(): void;
|
|
24
54
|
_markAsClosed(): void;
|
|
25
|
-
|
|
55
|
+
addSubMenuItems(newItems: MenuItem[], opts?: AddSubMenuItemsOption): Promise<void>;
|
|
56
|
+
protected ngOnStart(): Promise<MenuItem[]>;
|
|
57
|
+
protected refreshMenuItems(): void;
|
|
58
|
+
protected addSubMenuItem(newItem: MenuItem, opts?: AddSubMenuItemsOption): Promise<void>;
|
|
59
|
+
protected prepareItem(item: MenuItem): MenuItem;
|
|
60
|
+
protected findExistingItem(item: MenuItem, items?: MenuItem[]): MenuItem;
|
|
61
|
+
protected findParent(childItem: MenuItem, parentItems?: MenuItem[]): MenuItem;
|
|
62
|
+
protected addMenuToParent(parent: MenuItem, child: MenuItem): void;
|
|
63
|
+
protected detachSubMenus(currentPathParam: MenuPathParam, items?: MenuItem[], excludedItems?: MenuItem[]): MenuItem[];
|
|
64
|
+
protected isVisibleForRoute(item: MenuItem, currentPathParam: MenuPathParam): void;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuService, [null, null, null, null, null, { optional: true; }]>;
|
|
26
66
|
static ɵprov: i0.ɵɵInjectableDeclaration<MenuService>;
|
|
27
67
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MenuService } from '../menu.service';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { AlertController, NavController } from '@ionic/angular';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { MenuTestingPage } from './menu.testing';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class OtherMenuTestingPage extends MenuTestingPage {
|
|
8
|
+
constructor(route: ActivatedRoute, // Modal editor give 'null'
|
|
9
|
+
router: Router, navController: NavController, alertCtrl: AlertController, translate: TranslateService, menuService: MenuService);
|
|
10
|
+
initSubMenu(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OtherMenuTestingPage, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OtherMenuTestingPage, "app-testing-menu-other", never, {}, {}, never, never, false>;
|
|
13
|
+
}
|
|
@@ -1,20 +1,33 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
2
|
import { MenuService } from '../menu.service';
|
|
3
3
|
import { AppTabEditor } from '../../form/entity/editor.class';
|
|
4
4
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
5
|
import { AlertController, NavController } from '@ionic/angular';
|
|
6
6
|
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
+
import { MatTab } from "@angular/material/tabs";
|
|
8
|
+
import { Subject } from "rxjs";
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class MenuTestingPage extends AppTabEditor implements OnInit, OnDestroy {
|
|
9
|
-
|
|
10
|
+
export declare class MenuTestingPage extends AppTabEditor implements OnInit, OnDestroy, AfterViewInit {
|
|
11
|
+
protected menuService: MenuService;
|
|
12
|
+
static tabsChanges: Subject<MatTab[]>;
|
|
13
|
+
protected logPrefix: string;
|
|
14
|
+
protected childPath: string;
|
|
15
|
+
protected title: string;
|
|
16
|
+
protected secondTabTitle: string;
|
|
17
|
+
protected parentPath: string;
|
|
18
|
+
protected thirdTabTitle: any;
|
|
19
|
+
tabs: QueryList<MatTab>;
|
|
10
20
|
constructor(route: ActivatedRoute, // Modal editor give 'null'
|
|
11
21
|
router: Router, navController: NavController, alertCtrl: AlertController, translate: TranslateService, menuService: MenuService);
|
|
12
22
|
ngOnInit(): void;
|
|
23
|
+
ngAfterViewInit(): void;
|
|
13
24
|
ngOnDestroy(): void;
|
|
14
25
|
load(id?: number, options?: any): Promise<void>;
|
|
15
26
|
get isNewData(): boolean;
|
|
16
27
|
reload(): Promise<void>;
|
|
17
28
|
save(event: Event | undefined, options: any): Promise<boolean>;
|
|
29
|
+
protected toggleThird(): void;
|
|
30
|
+
protected initSubMenu(): void;
|
|
18
31
|
protected getFirstInvalidTabIndex(): number;
|
|
19
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuTestingPage, never>;
|
|
20
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<MenuTestingPage, "app-testing-menu", never, {}, {}, never, never, false>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./menu.testing";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "@angular/
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
3
|
+
import * as i2 from "./menu-other.testing";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/router";
|
|
6
|
+
import * as i5 from "../menu.module";
|
|
7
|
+
import * as i6 from "../../../shared/shared.module";
|
|
7
8
|
export declare class MenuTestingModule {
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuTestingModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MenuTestingModule, [typeof i1.MenuTestingPage], [typeof
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MenuTestingModule, [typeof i1.MenuTestingPage, typeof i2.OtherMenuTestingPage], [typeof i3.CommonModule, typeof i4.RouterModule, typeof i5.AppMenuModule, typeof i6.SharedModule], [typeof i4.RouterModule, typeof i1.MenuTestingPage, typeof i2.OtherMenuTestingPage]>;
|
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<MenuTestingModule>;
|
|
11
12
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ScryptParams } from '@polkadot/util-crypto/scrypt/types';
|
|
2
2
|
import { Keypair } from '@polkadot/util-crypto/types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare const ED25519_SEED_LENGTH = 32;
|
|
5
5
|
export declare const SCRYPT_PARAMS: {
|
|
6
|
-
SIMPLE:
|
|
7
|
-
DEFAULT:
|
|
8
|
-
SECURE:
|
|
9
|
-
HARDEST:
|
|
10
|
-
EXTREME:
|
|
6
|
+
SIMPLE: ScryptParams;
|
|
7
|
+
DEFAULT: ScryptParams;
|
|
8
|
+
SECURE: ScryptParams;
|
|
9
|
+
HARDEST: ScryptParams;
|
|
10
|
+
EXTREME: ScryptParams;
|
|
11
11
|
};
|
|
12
12
|
export { Keypair };
|
|
13
13
|
export declare class CryptoService {
|
|
@@ -21,7 +21,7 @@ export declare class CryptoService {
|
|
|
21
21
|
* @param password
|
|
22
22
|
* @param scryptParams
|
|
23
23
|
*/
|
|
24
|
-
static scryptKeypair(salt: string, password: string, scryptParams?:
|
|
24
|
+
static scryptKeypair(salt: string, password: string, scryptParams?: ScryptParams): Promise<Keypair>;
|
|
25
25
|
/**
|
|
26
26
|
* Sign a message, from a key pair
|
|
27
27
|
*/
|
|
@@ -10,6 +10,7 @@ import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
|
10
10
|
import { TranslateService } from '@ngx-translate/core';
|
|
11
11
|
import { AccountService } from './account.service';
|
|
12
12
|
import { Observable } from 'rxjs';
|
|
13
|
+
import { Environment } from '../../../environments/environment.class';
|
|
13
14
|
import { ConfigService } from './config.service';
|
|
14
15
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
15
16
|
import { Downloader, DownloadRequest } from '@ionic-native/downloader/ngx';
|
|
@@ -36,7 +37,7 @@ export declare class PlatformService extends StartableService {
|
|
|
36
37
|
private configService;
|
|
37
38
|
private cache;
|
|
38
39
|
private audioProvider;
|
|
39
|
-
protected environment:
|
|
40
|
+
protected environment: Environment;
|
|
40
41
|
private loggingService;
|
|
41
42
|
private downloader;
|
|
42
43
|
private _logger;
|
|
@@ -45,7 +46,7 @@ export declare class PlatformService extends StartableService {
|
|
|
45
46
|
private _capacitor;
|
|
46
47
|
private _android;
|
|
47
48
|
private _ios;
|
|
48
|
-
constructor(ionicPlatform: Platform, cdkPlatform: CdkPlatform, toastController: ToastController, translate: TranslateService, dateAdapter: MomentDateAdapter, storageService: StorageService, entitiesStorage: EntitiesStorage, settings: LocalSettingsService, networkService: NetworkService, accountService: AccountService, configService: ConfigService, cache: CacheService, audioProvider: AudioProvider, environment:
|
|
49
|
+
constructor(ionicPlatform: Platform, cdkPlatform: CdkPlatform, toastController: ToastController, translate: TranslateService, dateAdapter: MomentDateAdapter, storageService: StorageService, entitiesStorage: EntitiesStorage, settings: LocalSettingsService, networkService: NetworkService, accountService: AccountService, configService: ConfigService, cache: CacheService, audioProvider: AudioProvider, environment: Environment, loggingService: ILoggingService, downloader: Downloader);
|
|
49
50
|
private _downloadingJobs;
|
|
50
51
|
private checkAppVersionTimer;
|
|
51
52
|
is(platformName: Platforms): boolean;
|