@sumaris-net/ngx-components 2.4.112 → 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 +4 -1
- package/esm2020/public_api.mjs +4 -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 +7 -7
- 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/graphql/graphql.service.mjs +4 -1
- package/esm2020/src/app/core/menu/menu.component.mjs +33 -94
- package/esm2020/src/app/core/menu/menu.model.mjs +45 -1
- package/esm2020/src/app/core/menu/menu.service.mjs +250 -7
- package/esm2020/src/app/core/menu/testing/menu-other.testing.mjs +52 -0
- package/esm2020/src/app/core/menu/testing/menu.testing.mjs +106 -0
- package/esm2020/src/app/core/menu/testing/menu.testing.module.mjs +79 -0
- package/esm2020/src/app/core/services/account.service.mjs +2 -2
- 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/network.service.mjs +9 -6
- 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/core/table/table-select-columns.component.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/material/autocomplete/material.autocomplete.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/shared/shared.testing.module.mjs +15 -7
- package/esm2020/src/app/shared/toast/toast.testing.mjs +1 -1
- package/esm2020/src/app/shared/toolbar/toolbar.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/esm2020/src/app/social/user-event/user-event.service.mjs +3 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +1031 -589
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +1025 -589
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +8 -6
- package/public_api.d.ts +3 -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 +17 -13
- package/src/app/core/menu/menu.model.d.ts +30 -1
- package/src/app/core/menu/menu.service.d.ts +49 -3
- package/src/app/core/menu/testing/menu-other.testing.d.ts +13 -0
- package/src/app/core/menu/testing/menu.testing.d.ts +34 -0
- package/src/app/core/menu/testing/menu.testing.module.d.ts +12 -0
- package/src/app/core/services/account.service.d.ts +1 -1
- package/src/app/core/services/crypto.service.d.ts +7 -7
- package/src/app/core/services/network.service.d.ts +1 -1
- package/src/app/core/services/platform.service.d.ts +3 -2
- package/src/app/shared/shared.testing.module.d.ts +2 -1
- package/src/assets/i18n/en-US.json +1 -0
- package/src/assets/i18n/en.json +1 -0
- package/src/assets/i18n/fr.json +1 -0
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.
|
|
21
|
-
"@angular/compiler-cli": "~14.
|
|
22
|
-
"@apollo/client": "~3.
|
|
22
|
+
"@angular-devkit/build-angular": "~14.2.13",
|
|
23
|
+
"@angular/compiler-cli": "~14.3.0",
|
|
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
|
@@ -257,6 +257,9 @@ export * from './src/app/shared/image/gallery/testing/gallery.testing';
|
|
|
257
257
|
export * from './src/app/shared/image/gallery/testing/gallery.testing.module';
|
|
258
258
|
export * from './src/app/shared/audio/audio.testing';
|
|
259
259
|
export * from './src/app/shared/audio/audio.testing.module';
|
|
260
|
+
export * from './src/app/core/menu/testing/menu.testing';
|
|
261
|
+
export * from './src/app/core/menu/testing/menu.testing.module';
|
|
262
|
+
export * from './src/app/core/menu/testing/menu-other.testing';
|
|
260
263
|
export * from './src/app/core/core.testing.module';
|
|
261
264
|
export * from './src/app/core/services/testing/referential-filter.model';
|
|
262
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,17 +23,9 @@ 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
|
-
private readonly _debug;
|
|
29
|
-
private _subscription;
|
|
30
|
-
private _config;
|
|
31
|
-
loading: boolean;
|
|
32
|
-
isLogin: boolean;
|
|
33
|
-
accountName: string;
|
|
34
|
-
accountAvatar: string;
|
|
35
|
-
accountEmail: string;
|
|
36
|
-
$items: BehaviorSubject<MenuItem[]>;
|
|
37
29
|
id: string;
|
|
38
30
|
menuId: string;
|
|
39
31
|
side: string;
|
|
@@ -42,11 +34,24 @@ export declare class MenuComponent implements OnInit {
|
|
|
42
34
|
appName: string;
|
|
43
35
|
appVersion: string;
|
|
44
36
|
splitPane: IonSplitPane;
|
|
45
|
-
|
|
37
|
+
loading: boolean;
|
|
38
|
+
isLogin: boolean;
|
|
39
|
+
accountName: string;
|
|
40
|
+
accountAvatar: string;
|
|
41
|
+
accountEmail: string;
|
|
42
|
+
private readonly _$toggled;
|
|
43
|
+
private readonly _$opened;
|
|
44
|
+
private readonly _$splitPaneWhen;
|
|
45
|
+
private readonly _$enabled;
|
|
46
|
+
private readonly _debug;
|
|
47
|
+
private _subscription;
|
|
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,8 +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
|
-
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; }]>;
|
|
61
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>;
|
|
62
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;
|
|
@@ -15,14 +17,41 @@ export interface MenuItem extends IconRef {
|
|
|
15
17
|
titleArgs?: {
|
|
16
18
|
[key: string]: string;
|
|
17
19
|
};
|
|
18
|
-
|
|
20
|
+
pathParams?: {
|
|
21
|
+
[key: string]: string;
|
|
22
|
+
};
|
|
23
|
+
parentPath?: string;
|
|
24
|
+
parentPathParams?: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
};
|
|
27
|
+
$children?: BehaviorSubject<MenuItem[]>;
|
|
19
28
|
}
|
|
20
29
|
export declare class MenuItems {
|
|
30
|
+
/**
|
|
31
|
+
* Compare, without checking the children
|
|
32
|
+
* @param mainItem
|
|
33
|
+
* @param otherItem
|
|
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: {
|
|
42
|
+
[key: string]: string;
|
|
43
|
+
}, otherParams: {
|
|
44
|
+
[key: string]: string;
|
|
45
|
+
}): boolean;
|
|
46
|
+
static isParent(child: MenuItem, parent: MenuItem | MenuPathParam): boolean;
|
|
21
47
|
static checkIfVisible(item: MenuItem, accountService: AccountService, config: Configuration, opts?: {
|
|
22
48
|
isLogin?: boolean;
|
|
23
49
|
debug?: boolean;
|
|
24
50
|
logPrefix?: string;
|
|
25
51
|
}): boolean;
|
|
52
|
+
static parsePathWithQuery(pathWithQuery: string): MenuPathParam;
|
|
53
|
+
static getUrl(item: MenuItem): string;
|
|
54
|
+
static getUrlFromPathAndParams(path: string, params?: any): string;
|
|
26
55
|
}
|
|
27
56
|
export declare class MenuOptions {
|
|
28
57
|
}
|
|
@@ -1,12 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
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';
|
|
2
12
|
import * as i0 from "@angular/core";
|
|
3
13
|
export declare type SplitPaneShowWhen = boolean | 'lg';
|
|
4
14
|
export declare const DEFAULT_MENU_SHOW_WHEN: SplitPaneShowWhen;
|
|
5
|
-
export
|
|
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;
|
|
6
40
|
private readonly _$toggled;
|
|
7
41
|
private readonly _$opened;
|
|
8
42
|
private readonly _$splitPaneWhen;
|
|
9
43
|
private readonly _$enabled;
|
|
44
|
+
private get rootItems();
|
|
45
|
+
constructor(platformService: PlatformService, configService: ConfigService, accountService: AccountService, router: Router, environment: Environment, rootItems?: MenuItem[]);
|
|
10
46
|
get opened(): Observable<boolean>;
|
|
11
47
|
get splitPaneWhen(): Observable<SplitPaneShowWhen>;
|
|
12
48
|
get enabled(): Observable<boolean>;
|
|
@@ -16,6 +52,16 @@ export declare class MenuService {
|
|
|
16
52
|
toggleSplitPaneWhen(): void;
|
|
17
53
|
_markAsOpened(): void;
|
|
18
54
|
_markAsClosed(): void;
|
|
19
|
-
|
|
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; }]>;
|
|
20
66
|
static ɵprov: i0.ɵɵInjectableDeclaration<MenuService>;
|
|
21
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
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { MenuService } from '../menu.service';
|
|
3
|
+
import { AppTabEditor } from '../../form/entity/editor.class';
|
|
4
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
|
+
import { AlertController, NavController } from '@ionic/angular';
|
|
6
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
+
import { MatTab } from "@angular/material/tabs";
|
|
8
|
+
import { Subject } from "rxjs";
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
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>;
|
|
20
|
+
constructor(route: ActivatedRoute, // Modal editor give 'null'
|
|
21
|
+
router: Router, navController: NavController, alertCtrl: AlertController, translate: TranslateService, menuService: MenuService);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
ngAfterViewInit(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
load(id?: number, options?: any): Promise<void>;
|
|
26
|
+
get isNewData(): boolean;
|
|
27
|
+
reload(): Promise<void>;
|
|
28
|
+
save(event: Event | undefined, options: any): Promise<boolean>;
|
|
29
|
+
protected toggleThird(): void;
|
|
30
|
+
protected initSubMenu(): void;
|
|
31
|
+
protected getFirstInvalidTabIndex(): number;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuTestingPage, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuTestingPage, "app-testing-menu", never, {}, {}, never, never, false>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./menu.testing";
|
|
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";
|
|
8
|
+
export declare class MenuTestingModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuTestingModule, never>;
|
|
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]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MenuTestingModule>;
|
|
12
|
+
}
|
|
@@ -89,7 +89,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
91
|
* @param recorderDepartment
|
|
92
|
-
* @deprecated use ProgramRefService.
|
|
92
|
+
* @deprecated use ProgramRefService.canUserWriteEntity() instead
|
|
93
93
|
*/
|
|
94
94
|
canUserWriteDataForDepartment(recorderDepartment: Referential | any): boolean;
|
|
95
95
|
register(data: RegisterData): Promise<Account>;
|
|
@@ -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
|
*/
|
|
@@ -29,7 +29,6 @@ export declare class NetworkService extends StartableObservableService<Peer, Pee
|
|
|
29
29
|
private http;
|
|
30
30
|
protected environment: any;
|
|
31
31
|
private loggingService;
|
|
32
|
-
private network;
|
|
33
32
|
private translate;
|
|
34
33
|
private toastController;
|
|
35
34
|
onPeerChanges: import("rxjs").Observable<string>;
|
|
@@ -37,6 +36,7 @@ export declare class NetworkService extends StartableObservableService<Peer, Pee
|
|
|
37
36
|
onResetNetworkCache: EventEmitter<any>;
|
|
38
37
|
private readonly _mobile;
|
|
39
38
|
private readonly _logger;
|
|
39
|
+
private readonly _network;
|
|
40
40
|
private _timerSubscription;
|
|
41
41
|
private readonly _timerRefreshPeriod;
|
|
42
42
|
private readonly _timerRefreshCondition;
|
|
@@ -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;
|
|
@@ -9,9 +9,10 @@ import * as i6 from "./upload-file/testing/upload-file.testing.module";
|
|
|
9
9
|
import * as i7 from "./image/gallery/testing/gallery.testing.module";
|
|
10
10
|
import * as i8 from "./audio/audio.testing.module";
|
|
11
11
|
import * as i9 from "./storage/storage-explorer.module";
|
|
12
|
+
import * as i10 from "../core/menu/testing/menu.testing.module";
|
|
12
13
|
export declare const SHARED_TESTING_PAGES: TestingPage[];
|
|
13
14
|
export declare class SharedTestingModule {
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedTestingModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedTestingModule, never, [typeof i1.CommonModule, typeof i2.IonicModule, typeof i3.TranslateModule, typeof i4.MaterialTestingModule, typeof i5.ToastTestingModule, typeof i6.UploadFileTestingModule, typeof i7.ImageGalleryTestingModule, typeof i8.AudioTestingModule, typeof i9.StorageExplorerModule], [typeof i4.MaterialTestingModule, typeof i5.ToastTestingModule, typeof i6.UploadFileTestingModule, typeof i7.ImageGalleryTestingModule, typeof i8.AudioTestingModule, typeof i9.StorageExplorerModule]>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedTestingModule, never, [typeof i1.CommonModule, typeof i2.IonicModule, typeof i3.TranslateModule, typeof i4.MaterialTestingModule, typeof i5.ToastTestingModule, typeof i6.UploadFileTestingModule, typeof i7.ImageGalleryTestingModule, typeof i8.AudioTestingModule, typeof i9.StorageExplorerModule, typeof i10.MenuTestingModule], [typeof i4.MaterialTestingModule, typeof i5.ToastTestingModule, typeof i6.UploadFileTestingModule, typeof i7.ImageGalleryTestingModule, typeof i8.AudioTestingModule, typeof i9.StorageExplorerModule, typeof i10.MenuTestingModule]>;
|
|
16
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedTestingModule>;
|
|
17
18
|
}
|
package/src/assets/i18n/en.json
CHANGED