@sumaris-net/ngx-components 2.4.46 → 2.4.48

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.46",
4
+ "version": "2.4.48",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, InjectionToken, Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { AccountService } from '../services/account.service';
3
3
  import { LocaleConfig, LocalSettings, UsageMode } from '../services/model/settings.model';
4
4
  import { UntypedFormArray, UntypedFormBuilder } from '@angular/forms';
@@ -15,7 +15,9 @@ import { Property } from '../../shared/types';
15
15
  import { Router } from '@angular/router';
16
16
  import { CanLeave } from '../../shared/guard/component-dirty.guard';
17
17
  import { ISelectPeerModalOptions } from '../peer/select-peer.modal';
18
+ import { MenuItem } from '../menu/menu.model';
18
19
  import * as i0 from "@angular/core";
20
+ export declare const APP_SETTINGS_MENU_ITEMS: InjectionToken<MenuItem[]>;
19
21
  export declare class SettingsPage extends AppForm<LocalSettings> implements OnInit, OnDestroy, CanLeave {
20
22
  protected platform: PlatformService;
21
23
  protected router: Router;
@@ -32,6 +34,7 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
32
34
  mobile: boolean;
33
35
  saving: boolean;
34
36
  usageModes: UsageMode[];
37
+ menuItems: MenuItem[];
35
38
  propertyDefinitions: FormFieldDefinition[];
36
39
  propertyDefinitionsByKey: FormFieldDefinitionMap;
37
40
  propertyDefinitionsByIndex: {
@@ -42,7 +45,7 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
42
45
  get accountInheritance(): boolean;
43
46
  get isLogin(): boolean;
44
47
  get propertiesForm(): UntypedFormArray;
45
- constructor(injector: Injector, platform: PlatformService, router: Router, validatorService: LocalSettingsValidatorService, alertCtrl: AlertController, translate: TranslateService, formBuilder: UntypedFormBuilder, accountService: AccountService, settings: LocalSettingsService, cd: ChangeDetectorRef, network: NetworkService, locales: LocaleConfig[]);
48
+ constructor(injector: Injector, platform: PlatformService, router: Router, validatorService: LocalSettingsValidatorService, alertCtrl: AlertController, translate: TranslateService, formBuilder: UntypedFormBuilder, accountService: AccountService, settings: LocalSettingsService, cd: ChangeDetectorRef, network: NetworkService, locales: LocaleConfig[], menuItems?: MenuItem[]);
46
49
  ngOnInit(): Promise<void>;
47
50
  getPropertyDefinition(index: number): FormFieldDefinition;
48
51
  updatePropertyDefinition(index: number): FormFieldDefinition;
@@ -57,9 +60,10 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
57
60
  cancel(event?: Event): Promise<void>;
58
61
  close(event?: Event): Promise<boolean>;
59
62
  clearCache(event?: Event): Promise<void>;
63
+ executeAction(event: Event, item: MenuItem): Promise<void>;
60
64
  protected getValue(): Promise<LocalSettings>;
61
65
  protected getJsonValueToSave(): Promise<any>;
62
66
  protected markForCheck(): void;
63
- static ɵfac: i0.ɵɵFactoryDeclaration<SettingsPage, never>;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingsPage, [null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
64
68
  static ɵcmp: i0.ɵɵComponentDeclaration<SettingsPage, "page-settings", never, {}, {}, never, never, false>;
65
69
  }
@@ -124,11 +124,7 @@ export declare class Beans {
124
124
  static isEmpty<T>(data: T, keys?: KeysEnum<T> | string[], opts?: {
125
125
  blankStringLikeEmpty?: boolean;
126
126
  }): boolean;
127
- static collectById<T>(array: T[]): {
128
- [key: string]: T;
129
- };
130
- static collectByProperty<T>(array: T[], propertyName: keyof T): {
131
- [key: string]: T;
132
- };
127
+ static collectById<T>(array: T[]): KeyValueType<T[]>;
128
+ static collectByProperty: typeof collectByProperty;
133
129
  }
134
130
  export declare function findParentWithClass(elem: HTMLElement, className: string): HTMLElement;
@@ -6,6 +6,6 @@ import * as i4 from "../../shared/shared.module";
6
6
  import * as i5 from "@ngx-translate/core";
7
7
  export declare class JobModule {
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<JobModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<JobModule, [typeof i1.JobProgressionIcon, typeof i2.JobProgressionList], [typeof i3.CommonModule, typeof i4.SharedModule, typeof i5.TranslateModule], [typeof i1.JobProgressionIcon]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<JobModule, [typeof i1.JobProgressionIcon, typeof i2.JobProgressionList], [typeof i3.CommonModule, typeof i4.SharedModule, typeof i5.TranslateModule], [typeof i1.JobProgressionIcon, typeof i2.JobProgressionList]>;
10
10
  static ɵinj: i0.ɵɵInjectorDeclaration<JobModule>;
11
11
  }