@trudb/tru-common-lib 0.0.678 → 0.0.681
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/components/login/tru-login.mjs +6 -3
- package/esm2020/lib/components/toolbar/user-profile/tru-toolbar-user-profile.mjs +13 -12
- package/esm2020/lib/services/tru-app-environment.mjs +11 -16
- package/esm2020/lib/services/tru-user.mjs +20 -20
- package/fesm2015/trudb-tru-common-lib.mjs +82 -88
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +82 -87
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/toolbar/user-profile/tru-toolbar-user-profile.d.ts +3 -1
- package/lib/services/tru-app-environment.d.ts +2 -5
- package/lib/services/tru-user.d.ts +3 -6
- package/package.json +1 -1
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { TruAppEnvironment } from '../../../services/tru-app-environment';
|
|
2
|
+
import { TruUser } from '../../../services/tru-user';
|
|
2
3
|
import { TruDesktopManager } from '../../desktop/services/tru-desktop-manager';
|
|
3
4
|
import { TruAuth } from '../../login/services/tru-auth';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class TruToolbarUserProfile {
|
|
6
7
|
private desktopManager;
|
|
7
8
|
private appEnvironment;
|
|
9
|
+
private user;
|
|
8
10
|
private auth;
|
|
9
11
|
initial: string | null | undefined;
|
|
10
12
|
name: string | null | undefined;
|
|
11
13
|
email: string | null | undefined;
|
|
12
|
-
constructor(desktopManager: TruDesktopManager, appEnvironment: TruAppEnvironment, auth: TruAuth);
|
|
14
|
+
constructor(desktopManager: TruDesktopManager, appEnvironment: TruAppEnvironment, user: TruUser, auth: TruAuth);
|
|
13
15
|
onChangePasswordButtonClicked: () => void;
|
|
14
16
|
onLogoutButtonClicked: () => void;
|
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruToolbarUserProfile, never>;
|
|
@@ -8,9 +8,9 @@ export interface ActionEventCompleted {
|
|
|
8
8
|
entities?: Array<Entity>;
|
|
9
9
|
}
|
|
10
10
|
export declare class TruAppEnvironment {
|
|
11
|
+
private truUser;
|
|
11
12
|
private _appUri;
|
|
12
13
|
private _maxRecordCount;
|
|
13
|
-
private _user;
|
|
14
14
|
private _isSaving;
|
|
15
15
|
private _saveComplete;
|
|
16
16
|
private _revertComplete;
|
|
@@ -35,12 +35,9 @@ export declare class TruAppEnvironment {
|
|
|
35
35
|
onSaveComplete$: Observable<ActionEventCompleted | null>;
|
|
36
36
|
onRevertComplete$: Observable<ActionEventCompleted | null>;
|
|
37
37
|
onDeleteComplete$: Observable<ActionEventCompleted | null>;
|
|
38
|
-
constructor();
|
|
38
|
+
constructor(truUser: TruUser);
|
|
39
39
|
get appUri(): string;
|
|
40
40
|
set appUri(uri: string);
|
|
41
|
-
get user(): TruUser | null;
|
|
42
|
-
set user(user: TruUser | null);
|
|
43
|
-
get activeUserRef(): number;
|
|
44
41
|
get isSaving(): boolean;
|
|
45
42
|
set isSaving(isSaving: boolean);
|
|
46
43
|
get maxRecordCount(): number;
|
|
@@ -6,19 +6,16 @@ export declare class TruUser implements ITruUser {
|
|
|
6
6
|
private _lastName;
|
|
7
7
|
private _email;
|
|
8
8
|
private _roles;
|
|
9
|
+
private _userSet;
|
|
9
10
|
constructor();
|
|
10
11
|
get activeUserRef(): number;
|
|
11
|
-
set activeUserRef(ref: number);
|
|
12
12
|
get username(): string | null;
|
|
13
|
-
set username(username: string | null);
|
|
14
13
|
get firstName(): string | null;
|
|
15
|
-
set firstName(firstName: string | null);
|
|
16
14
|
get lastName(): string | null;
|
|
17
|
-
set lastName(lastName: string | null);
|
|
18
15
|
get email(): string | null;
|
|
19
|
-
|
|
20
|
-
set roles(roles: string[] | null);
|
|
16
|
+
get roles(): string[] | null;
|
|
21
17
|
hasRoles: (roles: string[]) => boolean;
|
|
18
|
+
create: (user: ITruUser) => void;
|
|
22
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruUser, never>;
|
|
23
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<TruUser>;
|
|
24
21
|
}
|