@sumaris-net/ngx-components 2.4.7 → 2.4.9
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/core/form/entity/entity-editor.class.mjs +4 -1
- package/esm2020/src/app/core/services/local-settings.service.mjs +8 -3
- package/fesm2015/sumaris-net.ngx-components.mjs +10 -2
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +10 -2
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/entity/entity-editor.class.d.ts +1 -0
- package/src/app/core/services/local-settings.service.d.ts +8 -3
package/package.json
CHANGED
|
@@ -72,6 +72,7 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
|
|
|
72
72
|
get isOnFieldMode(): boolean;
|
|
73
73
|
get isNewData(): boolean;
|
|
74
74
|
get service(): S;
|
|
75
|
+
protected get pathIdAttribute(): string;
|
|
75
76
|
protected constructor(injector: Injector, dataType: new () => T, dataService?: S, options?: AppEditorOptions);
|
|
76
77
|
ngOnInit(): void;
|
|
77
78
|
ngAfterViewInit(): void;
|
|
@@ -13,13 +13,17 @@ import { StartableService } from '../../shared/services/startable-service.class'
|
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
export declare const SETTINGS_STORAGE_KEY = "settings";
|
|
15
15
|
export declare const SETTINGS_TRANSIENT_PROPERTIES: string[];
|
|
16
|
-
export
|
|
17
|
-
|
|
16
|
+
export interface LocalSettingsOptions {
|
|
17
|
+
serializeAsString?: boolean;
|
|
18
|
+
options: FormFieldDefinitionMap;
|
|
19
|
+
}
|
|
18
20
|
export declare interface AddToPageHistoryOptions {
|
|
19
21
|
removePathQueryParams?: boolean;
|
|
20
22
|
removeTitleSmallTag?: boolean;
|
|
21
23
|
emitEvent?: boolean;
|
|
22
24
|
}
|
|
25
|
+
export declare const APP_LOCAL_SETTINGS: InjectionToken<Partial<LocalSettings>>;
|
|
26
|
+
export declare const APP_LOCAL_SETTINGS_OPTIONS: InjectionToken<LocalSettingsOptions>;
|
|
23
27
|
export declare class LocalSettingsService extends StartableService<LocalSettings> {
|
|
24
28
|
private translate;
|
|
25
29
|
private platform;
|
|
@@ -28,6 +32,7 @@ export declare class LocalSettingsService extends StartableService<LocalSettings
|
|
|
28
32
|
private readonly defaultSettings;
|
|
29
33
|
onChange: Subject<LocalSettings>;
|
|
30
34
|
private readonly _optionDefs;
|
|
35
|
+
private readonly _serializeAsString;
|
|
31
36
|
private _$persist;
|
|
32
37
|
get settings(): LocalSettings;
|
|
33
38
|
get locale(): string;
|
|
@@ -36,7 +41,7 @@ export declare class LocalSettingsService extends StartableService<LocalSettings
|
|
|
36
41
|
get mobile(): boolean;
|
|
37
42
|
set mobile(value: boolean);
|
|
38
43
|
get pageHistory(): HistoryPageReference[];
|
|
39
|
-
constructor(translate: TranslateService, platform: Platform, storage: Storage, environment: Environment, defaultSettings: LocalSettings,
|
|
44
|
+
constructor(translate: TranslateService, platform: Platform, storage: Storage, environment: Environment, defaultSettings: LocalSettings, options: LocalSettingsOptions);
|
|
40
45
|
ngOnStart(): Promise<LocalSettings>;
|
|
41
46
|
protected ngOnStop(): Promise<void>;
|
|
42
47
|
isUsageMode(mode: UsageMode): boolean;
|