@sumaris-net/ngx-components 2.4.127 → 2.4.129
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/public_api.mjs +2 -2
- package/esm2020/src/app/core/menu/menu.component.mjs +17 -6
- package/esm2020/src/app/core/menu/menu.model.mjs +16 -7
- package/esm2020/src/app/core/menu/menu.service.mjs +75 -58
- package/esm2020/src/app/core/menu/sub-menu-tab.directive.mjs +13 -13
- package/esm2020/src/app/core/menu/testing/menu-other.testing.mjs +8 -25
- package/esm2020/src/app/core/menu/testing/menu.testing.mjs +14 -8
- package/esm2020/src/app/core/menu/testing/menu.testing.module.mjs +11 -6
- package/esm2020/src/environments/environment.mjs +5 -5
- package/fesm2015/sumaris-net.ngx-components.mjs +143 -114
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +144 -114
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
- package/src/app/core/menu/menu.component.d.ts +5 -3
- package/src/app/core/menu/menu.model.d.ts +2 -0
- package/src/app/core/menu/menu.service.d.ts +10 -8
- package/src/app/core/menu/testing/menu.testing.d.ts +5 -1
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -286,4 +286,4 @@ export * from './src/app/social/job/testing/job-progression.testing.service';
|
|
|
286
286
|
export { MatAutocompleteConfigHolder } from './src/app/shared/material/autocomplete/material.autocomplete.config';
|
|
287
287
|
export { MatAutocompleteFieldAddOptions } from './src/app/shared/material/autocomplete/material.autocomplete.config';
|
|
288
288
|
export { MatAutocompleteFieldConfig } from './src/app/shared/material/autocomplete/material.autocomplete.config';
|
|
289
|
-
export { TableValidatorService } from
|
|
289
|
+
export { TableValidatorService } from './src/app/core/table/testing/table-validator.service';
|
|
@@ -7,7 +7,7 @@ import { ConfigService } from '../services/config.service';
|
|
|
7
7
|
import { PlatformService } from '../services/platform.service';
|
|
8
8
|
import { MenuService, SplitPaneShowWhen } from './menu.service';
|
|
9
9
|
import { MenuItem, MenuOptions } from './menu.model';
|
|
10
|
-
import { ActivatedRoute } from '@angular/router';
|
|
10
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
11
11
|
import { RxStrategyNames } from '@rx-angular/cdk/render-strategies';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare const APP_MENU_ITEMS: InjectionToken<MenuItem[]>;
|
|
@@ -23,6 +23,7 @@ export declare class MenuComponent implements OnInit {
|
|
|
23
23
|
protected configService: ConfigService;
|
|
24
24
|
protected cd: ChangeDetectorRef;
|
|
25
25
|
protected menuService: MenuService;
|
|
26
|
+
protected router: Router;
|
|
26
27
|
protected environment: any;
|
|
27
28
|
protected route: ActivatedRoute;
|
|
28
29
|
protected options: MenuOptions;
|
|
@@ -43,7 +44,7 @@ export declare class MenuComponent implements OnInit {
|
|
|
43
44
|
accountEmail: string;
|
|
44
45
|
private readonly _debug;
|
|
45
46
|
private _subscription;
|
|
46
|
-
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'
|
|
47
|
+
constructor(platformService: PlatformService, accountService: AccountService, navController: NavController, menu: MenuController, modalCtrl: ModalController, alertController: AlertController, translate: TranslateService, configService: ConfigService, cd: ChangeDetectorRef, menuService: MenuService, router: Router, environment: any, route: ActivatedRoute, // Modal editor give 'null'
|
|
47
48
|
options: MenuOptions, items: MenuItem[]);
|
|
48
49
|
ngOnInit(): Promise<void>;
|
|
49
50
|
onLogin(account: Account): Promise<void>;
|
|
@@ -66,6 +67,7 @@ export declare class MenuComponent implements OnInit {
|
|
|
66
67
|
}): void;
|
|
67
68
|
protected detectChanges(): void;
|
|
68
69
|
protected markForCheck(): void;
|
|
69
|
-
|
|
70
|
+
protected togglePinSubMenu(event: Event, item: MenuItem): void;
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, [null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
70
72
|
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "app-menu", never, { "id": "id"; "menuId": "menuId"; "side": "side"; "contentId": "contentId"; "logo": "logo"; "appName": "appName"; "appVersion": "appVersion"; "rxStrategy": "rxStrategy"; }, {}, never, ["*", "[headerBottomRight]"], false>;
|
|
71
73
|
}
|
|
@@ -27,6 +27,7 @@ export interface MenuItem extends IconRef {
|
|
|
27
27
|
parentPathParams?: {
|
|
28
28
|
[key: string]: string;
|
|
29
29
|
};
|
|
30
|
+
pinned?: boolean;
|
|
30
31
|
$children?: BehaviorSubject<MenuItem[]>;
|
|
31
32
|
}
|
|
32
33
|
export declare class MenuItems {
|
|
@@ -55,6 +56,7 @@ export declare class MenuItems {
|
|
|
55
56
|
debug?: boolean;
|
|
56
57
|
logPrefix?: string;
|
|
57
58
|
}): boolean;
|
|
59
|
+
static isPinned(item: MenuItem): any;
|
|
58
60
|
static parsePathWithQuery(pathWithQuery: string): MenuPathParam;
|
|
59
61
|
static getUrl(item: MenuItem): string;
|
|
60
62
|
static getUrlFromPathAndParams(path: string, params?: any): string;
|
|
@@ -44,16 +44,18 @@ export declare class MenuService extends StartableObservableService<MenuItem[]>
|
|
|
44
44
|
toggleSplitPaneWhen(): void;
|
|
45
45
|
_markAsOpened(): void;
|
|
46
46
|
_markAsClosed(): void;
|
|
47
|
-
addSubMenuItems(newItems: MenuItem[], opts?: AddSubMenuItemsOption): Promise<
|
|
48
|
-
addSubMenuItem(newItem: MenuItem, opts?: AddSubMenuItemsOption): Promise<
|
|
47
|
+
addSubMenuItems(newItems: MenuItem[], opts?: AddSubMenuItemsOption): Promise<MenuItem[]>;
|
|
48
|
+
addSubMenuItem(newItem: MenuItem, opts?: AddSubMenuItemsOption): Promise<MenuItem>;
|
|
49
49
|
removeSubMenuItem(item: MenuItem): void;
|
|
50
|
-
|
|
50
|
+
detachSubMenuItem(pathParam: MenuPathParam): void;
|
|
51
51
|
protected ngOnStart(): Promise<MenuItem[]>;
|
|
52
|
-
protected
|
|
53
|
-
protected
|
|
54
|
-
protected
|
|
55
|
-
protected
|
|
56
|
-
protected
|
|
52
|
+
protected _addSubMenuItem(newItem: MenuItem, opts?: AddSubMenuItemsOption): MenuItem;
|
|
53
|
+
protected _loadMenuItems(config: Configuration | null, account: Account | null): Promise<void>;
|
|
54
|
+
protected _findExistingItem(item: MenuItem, items?: MenuItem[]): MenuItem;
|
|
55
|
+
protected _findParent(childItem: MenuItem, availableParents?: MenuItem[]): MenuItem;
|
|
56
|
+
protected _addMenuToParent(parent: MenuItem, child: MenuItem): void;
|
|
57
|
+
protected _detachStoreAndRestore(pathParam: MenuPathParam): void;
|
|
58
|
+
protected _detachSubMenus(currentPathParam: MenuPathParam, items?: MenuItem[], excludedItems?: MenuItem[]): MenuItem[];
|
|
57
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuService, [null, null, null, null, null, { optional: true; }]>;
|
|
58
60
|
static ɵprov: i0.ɵɵInjectableDeclaration<MenuService>;
|
|
59
61
|
}
|
|
@@ -4,6 +4,7 @@ import { AppTabEditor } from '../../form/entity/editor.class';
|
|
|
4
4
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
5
|
import { AlertController, IonToggle, NavController } from '@ionic/angular';
|
|
6
6
|
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
+
import { BehaviorSubject } from 'rxjs';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class MenuTestingPage extends AppTabEditor implements OnInit, OnDestroy, AfterViewInit {
|
|
9
10
|
protected menuService: MenuService;
|
|
@@ -11,9 +12,12 @@ export declare class MenuTestingPage extends AppTabEditor implements OnInit, OnD
|
|
|
11
12
|
protected logPrefix: string;
|
|
12
13
|
protected childPath: string;
|
|
13
14
|
protected title: string;
|
|
14
|
-
protected secondTabTitle: string;
|
|
15
15
|
protected thirdTabTitle: string;
|
|
16
16
|
protected parentPath: string;
|
|
17
|
+
protected showOtherLinks: boolean;
|
|
18
|
+
protected $secondTabTitle: BehaviorSubject<string>;
|
|
19
|
+
protected set secondTabTitle(value: string);
|
|
20
|
+
protected get secondTabTitle(): string;
|
|
17
21
|
constructor(route: ActivatedRoute, // Modal editor give 'null'
|
|
18
22
|
router: Router, navController: NavController, alertCtrl: AlertController, translate: TranslateService, menuService: MenuService);
|
|
19
23
|
ngOnInit(): void;
|