@mediusinc/mng-commons 0.4.5 → 0.4.6
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/lib/mng-commons.module.mjs +5 -3
- package/esm2020/lib/services/commons.service.mjs +55 -81
- package/esm2020/lib/services/internal/commons-init.provider.mjs +4 -0
- package/esm2020/lib/services/internal/commons-init.service.mjs +44 -0
- package/esm2020/lib/services/internal/index.mjs +3 -0
- package/esm2020/lib/services/providers/index.mjs +1 -2
- package/fesm2015/mediusinc-mng-commons.mjs +97 -83
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +94 -82
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/services/commons.service.d.ts +5 -7
- package/lib/services/internal/commons-init.provider.d.ts +3 -0
- package/lib/services/internal/commons-init.service.d.ts +16 -0
- package/lib/services/internal/index.d.ts +2 -0
- package/lib/services/providers/index.d.ts +0 -1
- package/package.json +1 -1
- package/esm2020/lib/services/providers/commons-init.provider.mjs +0 -4
- package/lib/services/providers/commons-init.provider.d.ts +0 -3
|
@@ -5,18 +5,16 @@ import { PrimeNGConfig } from 'primeng/api';
|
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { MngModuleConfig } from '../config/models';
|
|
7
7
|
import { IUser, MngMenuItem } from '../models';
|
|
8
|
-
import { MngConfigurationService } from './configuration.service';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export declare class MngCommonsService {
|
|
11
10
|
private router;
|
|
12
11
|
private primengConfig;
|
|
13
12
|
private translate;
|
|
14
13
|
private titleService;
|
|
15
|
-
private configurationService;
|
|
16
14
|
private moduleConfig;
|
|
17
15
|
private localStorage;
|
|
18
|
-
private
|
|
19
|
-
private
|
|
16
|
+
private routerEventsSubscription?;
|
|
17
|
+
private translateLangChangeSubscription?;
|
|
20
18
|
private _menuMode;
|
|
21
19
|
private _menuModeSubject;
|
|
22
20
|
private _menuItems;
|
|
@@ -30,7 +28,7 @@ export declare class MngCommonsService {
|
|
|
30
28
|
private _colorScheme;
|
|
31
29
|
private _user?;
|
|
32
30
|
private userSubject;
|
|
33
|
-
constructor(router: Router, primengConfig: PrimeNGConfig, translate: TranslateService, titleService: Title,
|
|
31
|
+
constructor(router: Router, primengConfig: PrimeNGConfig, translate: TranslateService, titleService: Title, moduleConfig: MngModuleConfig, localStorage: Storage);
|
|
34
32
|
get appName(): string;
|
|
35
33
|
get appOwner(): string;
|
|
36
34
|
get appLogoLight(): string;
|
|
@@ -60,7 +58,7 @@ export declare class MngCommonsService {
|
|
|
60
58
|
get user(): IUser | undefined;
|
|
61
59
|
set user(user: IUser | undefined);
|
|
62
60
|
get user$(): Observable<IUser | undefined>;
|
|
63
|
-
|
|
61
|
+
reset(): void;
|
|
64
62
|
menuChangeActiveKey(key: string): void;
|
|
65
63
|
menuReset(): void;
|
|
66
64
|
private updateBreadcrumbs;
|
|
@@ -69,6 +67,6 @@ export declare class MngCommonsService {
|
|
|
69
67
|
private createBreadcrumb;
|
|
70
68
|
setPageTitle(title?: string): void;
|
|
71
69
|
private formatPageTitle;
|
|
72
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsService,
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsService, never>;
|
|
73
71
|
static ɵprov: i0.ɵɵInjectableDeclaration<MngCommonsService>;
|
|
74
72
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { MngCommonsService } from '../commons.service';
|
|
4
|
+
import { MngConfigurationService } from '../configuration.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MngCommonsInitService {
|
|
7
|
+
private translate;
|
|
8
|
+
private configurationService;
|
|
9
|
+
private mngCommons;
|
|
10
|
+
private readonly commonsInitializers;
|
|
11
|
+
private isInitialized;
|
|
12
|
+
constructor(translate: TranslateService, configurationService: MngConfigurationService, mngCommons: MngCommonsService, commonsInitializers: ReadonlyArray<() => Observable<unknown>>);
|
|
13
|
+
initialize(): Observable<void>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsInitService, [null, null, null, { optional: true; }]>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MngCommonsInitService>;
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export function mngCommonsInitializerProvider(mngCommons) {
|
|
2
|
-
return () => mngCommons.initialize();
|
|
3
|
-
}
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9ucy1pbml0LnByb3ZpZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9zZXJ2aWNlcy9wcm92aWRlcnMvY29tbW9ucy1pbml0LnByb3ZpZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlBLE1BQU0sVUFBVSw2QkFBNkIsQ0FBQyxVQUE2QjtJQUN2RSxPQUFPLEdBQUcsRUFBRSxDQUFDLFVBQVUsQ0FBQyxVQUFVLEVBQUUsQ0FBQztBQUN6QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtPYnNlcnZhYmxlfSBmcm9tICdyeGpzJztcblxuaW1wb3J0IHtNbmdDb21tb25zU2VydmljZX0gZnJvbSAnLi4vY29tbW9ucy5zZXJ2aWNlJztcblxuZXhwb3J0IGZ1bmN0aW9uIG1uZ0NvbW1vbnNJbml0aWFsaXplclByb3ZpZGVyKG1uZ0NvbW1vbnM6IE1uZ0NvbW1vbnNTZXJ2aWNlKTogKCkgPT4gT2JzZXJ2YWJsZTxib29sZWFuPiB7XG4gICAgcmV0dXJuICgpID0+IG1uZ0NvbW1vbnMuaW5pdGlhbGl6ZSgpO1xufVxuIl19
|