ngx-techlify-core 18.14.0 → 18.17.0
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/esm2022/lib/login/login-form-fields/login-form-fields.component.mjs +10 -4
- package/esm2022/lib/login/login.component.mjs +1 -1
- package/esm2022/lib/material.module.mjs +8 -4
- package/esm2022/lib/user/app-admin-user-view/app-admin-user-view.component.mjs +66 -0
- package/esm2022/lib/user/app-admin-user-view/app-admin-user-view.module.mjs +55 -0
- package/esm2022/lib/user/app-admin-user-view/app-admin-user-view.routes.mjs +22 -0
- package/esm2022/lib/user/user-enable-button-component/user-enable-button.component.mjs +42 -13
- package/esm2022/lib/user/user-view.component.mjs +6 -6
- package/esm2022/lib/user/user.module.mjs +11 -5
- package/esm2022/lib/user/user.routes.mjs +2 -1
- package/esm2022/lib/user/users-view-all.component.mjs +9 -3
- package/esm2022/lib/user-menu/user-menu.component.mjs +39 -0
- package/esm2022/lib/user-menu/user-menu.module.mjs +28 -0
- package/esm2022/public-api.mjs +7 -1
- package/fesm2022/ngx-techlify-core.mjs +346 -133
- package/fesm2022/ngx-techlify-core.mjs.map +1 -1
- package/lib/login/login-form-fields/login-form-fields.component.d.ts +2 -1
- package/lib/material.module.d.ts +2 -1
- package/lib/user/app-admin-user-view/app-admin-user-view.component.d.ts +27 -0
- package/lib/user/app-admin-user-view/app-admin-user-view.module.d.ts +15 -0
- package/lib/user/app-admin-user-view/app-admin-user-view.routes.d.ts +7 -0
- package/lib/user/user-enable-button-component/user-enable-button.component.d.ts +3 -1
- package/lib/user/user.module.d.ts +1 -1
- package/lib/user/users-view-all.component.d.ts +3 -1
- package/lib/user-menu/user-menu.component.d.ts +17 -0
- package/lib/user-menu/user-menu.module.d.ts +13 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
|
@@ -20,6 +20,7 @@ export declare class LoginFormFieldsComponent extends TechlifyFormComponentInter
|
|
|
20
20
|
private errorHandler;
|
|
21
21
|
private ngxPermissionsService;
|
|
22
22
|
userConfig?: MultiUserConfig;
|
|
23
|
+
isEnableLoginRedirect: boolean;
|
|
23
24
|
isWorking: boolean;
|
|
24
25
|
form: UntypedFormGroup;
|
|
25
26
|
loginError: {
|
|
@@ -36,5 +37,5 @@ export declare class LoginFormFieldsComponent extends TechlifyFormComponentInter
|
|
|
36
37
|
backToLogin(): void;
|
|
37
38
|
redirect(provider: any): void;
|
|
38
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoginFormFieldsComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LoginFormFieldsComponent, "app-login-form-fields", never, { "userConfig": { "alias": "userConfig"; "required": false; }; }, {}, never, never, true, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoginFormFieldsComponent, "app-login-form-fields", never, { "userConfig": { "alias": "userConfig"; "required": false; }; "isEnableLoginRedirect": { "alias": "isEnableLoginRedirect"; "required": false; }; }, {}, never, never, true, never>;
|
|
40
41
|
}
|
package/lib/material.module.d.ts
CHANGED
|
@@ -21,8 +21,9 @@ import * as i19 from "@angular/material/button-toggle";
|
|
|
21
21
|
import * as i20 from "@angular/material/sidenav";
|
|
22
22
|
import * as i21 from "@angular/material/progress-bar";
|
|
23
23
|
import * as i22 from "@angular/material/slide-toggle";
|
|
24
|
+
import * as i23 from "@angular/material/tabs";
|
|
24
25
|
export declare class MaterialModule {
|
|
25
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, never, [typeof i1.MatButtonModule, typeof i2.MatCheckboxModule, typeof i3.MatCommonModule, typeof i4.MatDialogModule, typeof i5.MatFormFieldModule, typeof i6.MatIconModule, typeof i7.MatInputModule, typeof i3.MatLineModule, typeof i8.MatMenuModule, typeof i3.MatNativeDateModule, typeof i3.MatOptionModule, typeof i9.MatProgressSpinnerModule, typeof i3.MatPseudoCheckboxModule, typeof i3.MatRippleModule, typeof i10.MatSelectModule, typeof i11.MatSortModule, typeof i12.MatTableModule, typeof i13.MatCardModule, typeof i14.MatDividerModule, typeof i15.MatChipsModule, typeof i16.MatDatepickerModule, typeof i17.MatListModule, typeof i18.MatTooltipModule, typeof i19.MatButtonToggleModule, typeof i20.MatSidenavModule, typeof i21.MatProgressBarModule, typeof i22.MatSlideToggleModule]>;
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, never, [typeof i1.MatButtonModule, typeof i2.MatCheckboxModule, typeof i3.MatCommonModule, typeof i4.MatDialogModule, typeof i5.MatFormFieldModule, typeof i6.MatIconModule, typeof i7.MatInputModule, typeof i3.MatLineModule, typeof i8.MatMenuModule, typeof i3.MatNativeDateModule, typeof i3.MatOptionModule, typeof i9.MatProgressSpinnerModule, typeof i3.MatPseudoCheckboxModule, typeof i3.MatRippleModule, typeof i10.MatSelectModule, typeof i11.MatSortModule, typeof i12.MatTableModule, typeof i13.MatCardModule, typeof i14.MatDividerModule, typeof i15.MatChipsModule, typeof i16.MatDatepickerModule, typeof i17.MatListModule, typeof i18.MatTooltipModule, typeof i19.MatButtonToggleModule, typeof i20.MatSidenavModule, typeof i21.MatProgressBarModule, typeof i22.MatSlideToggleModule, typeof i23.MatTabsModule]>;
|
|
27
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
|
|
28
29
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
4
|
+
import { UserService } from '../user.service';
|
|
5
|
+
import { ConfigService, HttpService } from '../../core';
|
|
6
|
+
import { CurrentUserService } from '../current-user.service';
|
|
7
|
+
import { User } from '../user.model';
|
|
8
|
+
import { UserTypeEnum } from '../user-type.enum';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class AppAdminUserViewComponent implements OnInit {
|
|
11
|
+
private userService;
|
|
12
|
+
private route;
|
|
13
|
+
config: ConfigService;
|
|
14
|
+
private http;
|
|
15
|
+
private dialog;
|
|
16
|
+
currentUserService: CurrentUserService;
|
|
17
|
+
constructor(userService: UserService, route: ActivatedRoute, config: ConfigService, http: HttpService, dialog: MatDialog, currentUserService: CurrentUserService);
|
|
18
|
+
user: User;
|
|
19
|
+
currentUser: User;
|
|
20
|
+
protected readonly UserTypeEnum: typeof UserTypeEnum;
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
loadUser(userId: any): void;
|
|
23
|
+
enableOrDisableUser(action: any): void;
|
|
24
|
+
editUser(user: any): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppAdminUserViewComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppAdminUserViewComponent, "app-admin-user-view", never, {}, {}, never, never, false, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./app-admin-user-view.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../material.module";
|
|
5
|
+
import * as i4 from "@angular/flex-layout";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "../../login-history-for-user/login-history-for-user.module";
|
|
8
|
+
import * as i7 from "../../audit-log/audit-log-list/audit-log-list.module";
|
|
9
|
+
import * as i8 from "./app-admin-user-view.routes";
|
|
10
|
+
import * as i9 from "../user.module";
|
|
11
|
+
export declare class AppAdminUserViewModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppAdminUserViewModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppAdminUserViewModule, [typeof i1.AppAdminUserViewComponent], [typeof i2.CommonModule, typeof i3.MaterialModule, typeof i4.FlexLayoutModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.LoginHistoryForUserModule, typeof i7.AuditLogListModule, typeof i8.AppAdminUserViewRoutingProvider, typeof i9.UserModule], [typeof i1.AppAdminUserViewComponent]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AppAdminUserViewModule>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/router";
|
|
3
|
+
export declare class AppAdminUserViewRoutingProvider {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppAdminUserViewRoutingProvider, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppAdminUserViewRoutingProvider, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AppAdminUserViewRoutingProvider>;
|
|
7
|
+
}
|
|
@@ -3,16 +3,18 @@ import { User } from '../user.model';
|
|
|
3
3
|
import { UserService } from '../user.service';
|
|
4
4
|
import { AlertService } from '../../core';
|
|
5
5
|
import { CurrentUserService } from '../current-user.service';
|
|
6
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class UserEnableButtonComponent implements OnInit {
|
|
8
9
|
private service;
|
|
9
10
|
private alertService;
|
|
10
11
|
currentUserService: CurrentUserService;
|
|
12
|
+
private dialog;
|
|
11
13
|
user: any;
|
|
12
14
|
isUseIcons: boolean;
|
|
13
15
|
currentUser: User;
|
|
14
16
|
onSave: EventEmitter<User>;
|
|
15
|
-
constructor(service: UserService, alertService: AlertService, currentUserService: CurrentUserService);
|
|
17
|
+
constructor(service: UserService, alertService: AlertService, currentUserService: CurrentUserService, dialog: MatDialog);
|
|
16
18
|
ngOnInit(): void;
|
|
17
19
|
enableUser(): void;
|
|
18
20
|
disableUser(): void;
|
|
@@ -25,6 +25,6 @@ import * as i23 from "@angular/material/sort";
|
|
|
25
25
|
import * as i24 from "../data-table/data-table.module";
|
|
26
26
|
export declare class UserModule {
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserModule, never>;
|
|
28
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UserModule, [typeof i1.UsersViewAllComponent, typeof i2.UserFormComponent, typeof i3.UserExploreComponent, typeof i4.UserViewComponent, typeof i5.UserEnableButtonComponent, typeof i6.UserClientsListComponent, typeof i7.UserClientEnableDisableButtonComponent, typeof i8.UserSessionsComponent], [typeof i9.CommonModule, typeof i10.UserRoutingProvider, typeof i11.MaterialModule, typeof i12.FlexLayoutModule, typeof i13.FormsModule, typeof i13.ReactiveFormsModule, typeof i14.FileDropperModule, typeof i15.DocumentViewerModule, typeof i16.InfiniteScrollModule, typeof i17.LoginHistoryForUserModule, typeof i18.AuditLogListModule, typeof i19.MatTabsModule, typeof i20.SearchableSelectorModule, typeof i21.MatProgressBarModule, typeof i22.MatTableModule, typeof i23.MatSortModule, typeof i24.DataTableModule], [typeof i1.UsersViewAllComponent, typeof i5.UserEnableButtonComponent, typeof i6.UserClientsListComponent, typeof i7.UserClientEnableDisableButtonComponent]>;
|
|
28
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UserModule, [typeof i1.UsersViewAllComponent, typeof i2.UserFormComponent, typeof i3.UserExploreComponent, typeof i4.UserViewComponent, typeof i5.UserEnableButtonComponent, typeof i6.UserClientsListComponent, typeof i7.UserClientEnableDisableButtonComponent, typeof i8.UserSessionsComponent], [typeof i9.CommonModule, typeof i10.UserRoutingProvider, typeof i11.MaterialModule, typeof i12.FlexLayoutModule, typeof i13.FormsModule, typeof i13.ReactiveFormsModule, typeof i14.FileDropperModule, typeof i15.DocumentViewerModule, typeof i16.InfiniteScrollModule, typeof i17.LoginHistoryForUserModule, typeof i18.AuditLogListModule, typeof i19.MatTabsModule, typeof i20.SearchableSelectorModule, typeof i21.MatProgressBarModule, typeof i22.MatTableModule, typeof i23.MatSortModule, typeof i24.DataTableModule], [typeof i4.UserViewComponent, typeof i1.UsersViewAllComponent, typeof i5.UserEnableButtonComponent, typeof i6.UserClientsListComponent, typeof i7.UserClientEnableDisableButtonComponent, typeof i8.UserSessionsComponent, typeof i6.UserClientsListComponent]>;
|
|
29
29
|
static ɵinj: i0.ɵɵInjectorDeclaration<UserModule>;
|
|
30
30
|
}
|
|
@@ -33,8 +33,10 @@ export declare class UsersViewAllComponent extends TechlifyListingControllerInte
|
|
|
33
33
|
displayedColumns: string[];
|
|
34
34
|
scrollContainer: string;
|
|
35
35
|
models: any[];
|
|
36
|
+
isAppAdminUser: boolean;
|
|
36
37
|
constructor(http: HttpService, alertService: AlertService, currentUserService: CurrentUserService, userConfigService: UserConfigService, dialog: MatDialog, userService: UserService, fb: UntypedFormBuilder, requestHelperService: RequestHelperService, activatedRoute: ActivatedRoute);
|
|
37
38
|
ngOnInit(): void;
|
|
39
|
+
getUserViewRoute(user: any): any;
|
|
38
40
|
private createForm;
|
|
39
41
|
loadData(): void;
|
|
40
42
|
createOrEditUser(user?: any): void;
|
|
@@ -54,5 +56,5 @@ export declare class UsersViewAllComponent extends TechlifyListingControllerInte
|
|
|
54
56
|
getUserType(user: any): string;
|
|
55
57
|
resetPassword(user: any): void;
|
|
56
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersViewAllComponent, never>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UsersViewAllComponent, "app-users-view-all", never, { "clientId": { "alias": "clientId"; "required": false; }; "userTypeIds": { "alias": "userTypeIds"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, never, false, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UsersViewAllComponent, "app-users-view-all", never, { "clientId": { "alias": "clientId"; "required": false; }; "userTypeIds": { "alias": "userTypeIds"; "required": false; }; "title": { "alias": "title"; "required": false; }; "isAppAdminUser": { "alias": "isAppAdminUser"; "required": false; }; }, {}, never, never, false, never>;
|
|
58
60
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import { User } from '../user';
|
|
3
|
+
import { AlertService, AuthenticationService, CredentialsService, ErrorHandlerService } from '../core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class UserMenuComponent {
|
|
6
|
+
private router;
|
|
7
|
+
private errorHandler;
|
|
8
|
+
private alertService;
|
|
9
|
+
private credentialsService;
|
|
10
|
+
private authenticationService;
|
|
11
|
+
user: User;
|
|
12
|
+
constructor(router: Router, errorHandler: ErrorHandlerService, alertService: AlertService, credentialsService: CredentialsService, authenticationService: AuthenticationService);
|
|
13
|
+
get username(): string | null;
|
|
14
|
+
logout(): Promise<void>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserMenuComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserMenuComponent, "app-user-menu", never, {}, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./user-menu.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/material/button";
|
|
5
|
+
import * as i4 from "@angular/material/menu";
|
|
6
|
+
import * as i5 from "@angular/router";
|
|
7
|
+
import * as i6 from "../techlify-company-switcher/techlify-company-switcher.module";
|
|
8
|
+
import * as i7 from "@angular/material/icon";
|
|
9
|
+
export declare class UserMenuModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserMenuModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UserMenuModule, [typeof i1.UserMenuComponent], [typeof i2.CommonModule, typeof i3.MatButton, typeof i4.MatMenu, typeof i4.MatMenuItem, typeof i5.RouterLink, typeof i4.MatMenuTrigger, typeof i6.TechlifyCompanySwitcherModule, typeof i7.MatIcon], [typeof i1.UserMenuComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UserMenuModule>;
|
|
13
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -116,6 +116,7 @@ export * from './lib/role/permission/permission.module';
|
|
|
116
116
|
export * from './lib/signup/signup.module';
|
|
117
117
|
export * from './lib/user-selector/user-selector.module';
|
|
118
118
|
export * from './lib/user/user.module';
|
|
119
|
+
export * from './lib/user/user-view.component';
|
|
119
120
|
export * from './lib/access-control-config/access-control-config.module';
|
|
120
121
|
export * from './lib/ngx-techlify-users/ngx-techlify-users.module';
|
|
121
122
|
export * from './lib/restrictors';
|
|
@@ -136,3 +137,7 @@ export * from './lib/app-admin/app-admin.module';
|
|
|
136
137
|
export * from './lib/app-admin/app-admin-home/app-admin-home.component';
|
|
137
138
|
export * from './lib/app-admin/tenant/tenant-list-widget/tenant-list-widget.component';
|
|
138
139
|
export * from './lib/pipes/wrap.pipe';
|
|
140
|
+
export * from './lib/user-menu/user-menu.module';
|
|
141
|
+
export * from './lib/user-menu/user-menu.component';
|
|
142
|
+
export * from './lib/user/app-admin-user-view/app-admin-user-view.module';
|
|
143
|
+
export * from './lib/user/app-admin-user-view/app-admin-user-view.component';
|