@sumaris-net/ngx-components 2.4.45 → 2.4.47
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/src/app/admin/users/users.mjs +2 -2
- package/esm2020/src/app/core/account/account.page.mjs +1 -1
- package/esm2020/src/app/core/form/properties/properties.form.mjs +1 -1
- package/esm2020/src/app/core/register/register.form.mjs +1 -1
- package/esm2020/src/app/core/settings/settings.page.mjs +31 -11
- package/esm2020/src/app/shared/form/field.component.mjs +6 -4
- package/fesm2015/sumaris-net.ngx-components.mjs +36 -12
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +34 -12
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/settings/settings.page.d.ts +7 -3
- package/src/app/shared/form/field.component.d.ts +2 -1
package/package.json
CHANGED
|
@@ -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,
|
|
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
|
}
|
|
@@ -32,6 +32,7 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
32
32
|
floatLabel: FloatLabelType;
|
|
33
33
|
tabindex: number;
|
|
34
34
|
autofocus: boolean;
|
|
35
|
+
clearable: boolean;
|
|
35
36
|
chipColor: ThemePalette | PredefinedColors;
|
|
36
37
|
debug: boolean;
|
|
37
38
|
classList: string;
|
|
@@ -66,5 +67,5 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
66
67
|
}): void;
|
|
67
68
|
protected updateTabIndex(timeout?: number): void;
|
|
68
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppFormField, [null, null, null, { optional: true; }]>;
|
|
69
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppFormField, "app-form-field", never, { "definition": "definition"; "required": "required"; "readonly": "readonly"; "disabled": "disabled"; "formControl": "formControl"; "formControlName": "formControlName"; "placeholder": "placeholder"; "compact": "compact"; "floatLabel": "floatLabel"; "tabindex": "tabindex"; "autofocus": "autofocus"; "chipColor": "chipColor"; "debug": "debug"; "classList": "class"; }, { "onKeyupEnter": "keyup.enter"; }, never, ["[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]"], false>;
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppFormField, "app-form-field", never, { "definition": "definition"; "required": "required"; "readonly": "readonly"; "disabled": "disabled"; "formControl": "formControl"; "formControlName": "formControlName"; "placeholder": "placeholder"; "compact": "compact"; "floatLabel": "floatLabel"; "tabindex": "tabindex"; "autofocus": "autofocus"; "clearable": "clearable"; "chipColor": "chipColor"; "debug": "debug"; "classList": "class"; }, { "onKeyupEnter": "keyup.enter"; }, never, ["[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]"], false>;
|
|
70
71
|
}
|