@trudb/tru-common-lib 0.0.683 → 0.0.696
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/password-dialog/tru-password-dialog-module.mjs +20 -0
- package/esm2020/lib/components/password-dialog/tru-password-dialog.mjs +44 -0
- package/esm2020/lib/components/toolbar/user-profile/tru-toolbar-user-profile.mjs +14 -17
- package/esm2020/lib/services/tru-ui-notification.mjs +14 -1
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/trudb-tru-common-lib.mjs +76 -18
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +74 -17
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/password-dialog/tru-password-dialog-module.d.ts +10 -0
- package/lib/components/password-dialog/tru-password-dialog.d.ts +23 -0
- package/lib/components/toolbar/user-profile/tru-toolbar-user-profile.d.ts +3 -5
- package/lib/services/tru-ui-notification.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tru-password-dialog";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../../material.module";
|
|
6
|
+
export declare class TruPasswordDialogModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruPasswordDialogModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TruPasswordDialogModule, [typeof i1.TruPasswordDialog], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.MaterialModule], [typeof i1.TruPasswordDialog]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TruPasswordDialogModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { FormControl } from '@angular/forms';
|
|
4
|
+
import { TruAppEnvironment } from '../../services/tru-app-environment';
|
|
5
|
+
import { TruUser } from '../../services/tru-user';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class TruPasswordDialog implements OnInit {
|
|
8
|
+
dialogRef: MatDialogRef<TruPasswordDialog>;
|
|
9
|
+
private user;
|
|
10
|
+
private appEnvironment;
|
|
11
|
+
data: TruPasswordDialog;
|
|
12
|
+
newPasswordControl: FormControl;
|
|
13
|
+
confirmPasswordControl: FormControl;
|
|
14
|
+
message: string | null;
|
|
15
|
+
private userEntity;
|
|
16
|
+
constructor(dialogRef: MatDialogRef<TruPasswordDialog>, user: TruUser, appEnvironment: TruAppEnvironment, data: TruPasswordDialog);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
canSubmit: () => any;
|
|
19
|
+
onConfirm(): void;
|
|
20
|
+
onDismiss(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruPasswordDialog, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TruPasswordDialog, "tru-password-dialog", never, {}, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TruUiNotification } from '../../../services/tru-ui-notification';
|
|
2
2
|
import { TruUser } from '../../../services/tru-user';
|
|
3
|
-
import { TruDesktopManager } from '../../desktop/services/tru-desktop-manager';
|
|
4
3
|
import { TruAuth } from '../../login/services/tru-auth';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class TruToolbarUserProfile {
|
|
7
|
-
private desktopManager;
|
|
8
|
-
private appEnvironment;
|
|
9
6
|
private user;
|
|
10
7
|
private auth;
|
|
8
|
+
private uiNotification;
|
|
11
9
|
initial: string | null | undefined;
|
|
12
10
|
name: string | null | undefined;
|
|
13
11
|
email: string | null | undefined;
|
|
14
|
-
constructor(
|
|
12
|
+
constructor(user: TruUser, auth: TruAuth, uiNotification: TruUiNotification);
|
|
15
13
|
onChangePasswordButtonClicked: () => void;
|
|
16
14
|
onLogoutButtonClicked: () => void;
|
|
17
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruToolbarUserProfile, never>;
|
|
@@ -30,6 +30,7 @@ export declare class TruUiNotification {
|
|
|
30
30
|
showErrorDialog: (title: string, message: string) => void;
|
|
31
31
|
showExportDialog: () => Promise<boolean>;
|
|
32
32
|
confirm: (title: string, message: string, displayCancelButton?: boolean, displayConfirmButton?: boolean, cancelButtonName?: string, confirmButtonName?: string) => Promise<boolean>;
|
|
33
|
+
changePassword: () => Promise<boolean>;
|
|
33
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruUiNotification, never>;
|
|
34
35
|
static ɵprov: i0.ɵɵInjectableDeclaration<TruUiNotification>;
|
|
35
36
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -64,6 +64,8 @@ export * from './lib/components/layout/group-box/tru-group-box';
|
|
|
64
64
|
export * from './lib/components/layout/group-box/tru-group-box-module';
|
|
65
65
|
export * from './lib/components/layout/row/tru-row';
|
|
66
66
|
export * from './lib/components/layout/row/tru-row-module';
|
|
67
|
+
export * from './lib/components/password-dialog/tru-password-dialog';
|
|
68
|
+
export * from './lib/components/password-dialog/tru-password-dialog-module';
|
|
67
69
|
export * from './lib/components/toolbar/tru-toolbar';
|
|
68
70
|
export * from './lib/components/toolbar/tru-toolbar-module';
|
|
69
71
|
export * from './lib/components/toolbar/menu/tru-toolbar-menu';
|