@sumaris-net/ngx-components 2.4.127 → 2.4.128

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.127",
4
+ "version": "2.4.128",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
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 "./src/app/core/table/testing/table-validator.service";
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
- static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
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;
@@ -47,13 +47,15 @@ export declare class MenuService extends StartableObservableService<MenuItem[]>
47
47
  addSubMenuItems(newItems: MenuItem[], opts?: AddSubMenuItemsOption): Promise<boolean[]>;
48
48
  addSubMenuItem(newItem: MenuItem, opts?: AddSubMenuItemsOption): Promise<boolean>;
49
49
  removeSubMenuItem(item: MenuItem): void;
50
- protected _addSubMenuItem(newItem: MenuItem, opts?: AddSubMenuItemsOption): boolean;
50
+ detachSubMenuItem(pathParam: MenuPathParam): void;
51
51
  protected ngOnStart(): Promise<MenuItem[]>;
52
- protected loadMenuItems(config: Configuration | null, account: Account | null): Promise<void>;
53
- protected findExistingItem(item: MenuItem, items?: MenuItem[]): MenuItem;
54
- protected findParent(childItem: MenuItem, availableParents?: MenuItem[]): MenuItem;
55
- protected addMenuToParent(parent: MenuItem, child: MenuItem): void;
56
- protected detachSubMenus(currentPathParam: MenuPathParam, items?: MenuItem[], excludedItems?: MenuItem[]): MenuItem[];
52
+ protected _addSubMenuItem(newItem: MenuItem, opts?: AddSubMenuItemsOption): boolean;
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
  }