ngx-techlify-core 18.78.0 → 18.80.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/audit-log/audit-log-view/audit-log-view.component.mjs +12 -10
- package/esm2022/lib/base-model/techlify-list/techlify-list.component.mjs +3 -3
- package/esm2022/lib/core/form-validator.service.mjs +2 -2
- package/esm2022/lib/core/index.mjs +1 -2
- package/esm2022/lib/request-helper/request-helper.service.mjs +14 -4
- package/esm2022/lib/user/app-admin-user-list/app-admin-user-list.component.mjs +158 -0
- package/esm2022/lib/user/app-admin-user-view/app-admin-user-view.component.mjs +17 -31
- package/esm2022/lib/user/app-admin-user-view/app-admin-user-view.module.mjs +5 -16
- package/esm2022/lib/user/index.mjs +3 -3
- package/esm2022/lib/user/user-form/user-form.component.mjs +204 -0
- package/esm2022/lib/user/user-list/user-list.component.mjs +156 -0
- package/esm2022/lib/user/user-view.component.mjs +17 -31
- package/esm2022/lib/user/user.module.mjs +12 -64
- package/esm2022/lib/user/user.routes.mjs +3 -3
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/ngx-techlify-core.mjs +384 -482
- package/fesm2022/ngx-techlify-core.mjs.map +1 -1
- package/lib/audit-log/audit-log-view/audit-log-view.component.d.ts +3 -3
- package/lib/core/index.d.ts +0 -1
- package/lib/request-helper/request-helper.service.d.ts +9 -0
- package/lib/user/app-admin-user-list/app-admin-user-list.component.d.ts +40 -0
- package/lib/user/app-admin-user-view/app-admin-user-view.component.d.ts +3 -4
- package/lib/user/app-admin-user-view/app-admin-user-view.module.d.ts +8 -10
- package/lib/user/index.d.ts +2 -2
- package/lib/user/user-form/user-form.component.d.ts +43 -0
- package/lib/user/user-list/user-list.component.d.ts +38 -0
- package/lib/user/user-view.component.d.ts +3 -4
- package/lib/user/user.module.d.ts +13 -26
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/esm2022/lib/core/dataManager.service.mjs +0 -119
- package/esm2022/lib/user/user-form.component.mjs +0 -225
- package/esm2022/lib/user/users-view-all.component.mjs +0 -169
- package/lib/core/dataManager.service.d.ts +0 -73
- package/lib/user/user-form.component.d.ts +0 -53
- package/lib/user/users-view-all.component.d.ts +0 -42
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { HttpService } from './http.service';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Service that provides a wrapper for retrieving data from the server
|
|
5
|
-
* @deprecated use HttpService Instead
|
|
6
|
-
* @author Joshua Kissoon
|
|
7
|
-
* @since 20170709
|
|
8
|
-
*/
|
|
9
|
-
export declare class DataManager {
|
|
10
|
-
private http;
|
|
11
|
-
constructor(http: HttpService);
|
|
12
|
-
/**
|
|
13
|
-
* Callback wrapper for the HTTP GET Call
|
|
14
|
-
*
|
|
15
|
-
* @param urlq The query part of the URL to be sent to the server
|
|
16
|
-
*
|
|
17
|
-
* @author Joshua Kissoon
|
|
18
|
-
* @since 20160826
|
|
19
|
-
* @updated 20170711 to add parameters
|
|
20
|
-
*/
|
|
21
|
-
GET(urlq: string, params?: {}): any;
|
|
22
|
-
/**
|
|
23
|
-
* Callback wrapper for the HTTP POST Call
|
|
24
|
-
*
|
|
25
|
-
* @param urlq The query part of the URL to be sent to the server
|
|
26
|
-
* @param object The object containing the POST data to be sent
|
|
27
|
-
*
|
|
28
|
-
* @author Joshua Kissoon
|
|
29
|
-
* @since 20160826
|
|
30
|
-
*/
|
|
31
|
-
POST(urlq: string, object: any): any;
|
|
32
|
-
/**
|
|
33
|
-
* Callback wrapper for the HTTP POST Call
|
|
34
|
-
*
|
|
35
|
-
* @param urlq The query part of the URL to be sent to the server
|
|
36
|
-
* @param object The object containing the POST data to be sent
|
|
37
|
-
*
|
|
38
|
-
* @author Joshua Kissoon
|
|
39
|
-
* @since 20160826
|
|
40
|
-
*/
|
|
41
|
-
POSTRAW(urlq: string, object: any): any;
|
|
42
|
-
/**
|
|
43
|
-
* Callback wrapper for the HTTP PUT Call
|
|
44
|
-
*
|
|
45
|
-
* @param urlq The query part of the URL to be sent to the server
|
|
46
|
-
* @param object The object containing the PUT data to be sent
|
|
47
|
-
*
|
|
48
|
-
* @author Joshua Kissoon
|
|
49
|
-
* @since 20160826
|
|
50
|
-
*/
|
|
51
|
-
PUT(urlq: string, object: any): any;
|
|
52
|
-
/**
|
|
53
|
-
* Callback wrapper for the HTTP PATCH Call
|
|
54
|
-
*
|
|
55
|
-
* @param urlq The query part of the URL to be sent to the server
|
|
56
|
-
* @param object The object containing the PUT data to be sent
|
|
57
|
-
*
|
|
58
|
-
* @author Joshua Kissoon
|
|
59
|
-
* @since 20161107
|
|
60
|
-
*/
|
|
61
|
-
PATCH(urlq: string, object: any): any;
|
|
62
|
-
/**
|
|
63
|
-
* Callback wrapper for the HTTP DELETE Call
|
|
64
|
-
*
|
|
65
|
-
* @param urlq The query part of the URL to be sent to the server
|
|
66
|
-
*
|
|
67
|
-
* @author Joshua Kissoon
|
|
68
|
-
* @since 20160826
|
|
69
|
-
*/
|
|
70
|
-
DELETE(urlq: string): any;
|
|
71
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DataManager, never>;
|
|
72
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DataManager>;
|
|
73
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { UntypedFormGroup, UntypedFormBuilder, UntypedFormArray } from '@angular/forms';
|
|
3
|
-
import { AlertService, ErrorHandlerService, FormValidatorService, HttpService } from '../core';
|
|
4
|
-
import { User } from './user.model';
|
|
5
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
6
|
-
import { UserService } from './user.service';
|
|
7
|
-
import { MultiUserConfig } from '../user-config/user-config.model';
|
|
8
|
-
import { UserConfigService } from '../user-config/user-config.service';
|
|
9
|
-
import { FileDropperConfig } from "../file-dropper";
|
|
10
|
-
import { ViewerConfig } from "../document-viewer";
|
|
11
|
-
import { CurrentUserService } from './current-user.service';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class UserFormComponent implements OnInit {
|
|
14
|
-
dialogRef: MatDialogRef<UserFormComponent>;
|
|
15
|
-
user: any;
|
|
16
|
-
private http;
|
|
17
|
-
private alertService;
|
|
18
|
-
private errorHandler;
|
|
19
|
-
private fb;
|
|
20
|
-
private formValidatorService;
|
|
21
|
-
private userService;
|
|
22
|
-
private currentUserService;
|
|
23
|
-
userConfigService: UserConfigService;
|
|
24
|
-
userId: number;
|
|
25
|
-
onSave: EventEmitter<User>;
|
|
26
|
-
isWorking: boolean;
|
|
27
|
-
userForm: UntypedFormGroup;
|
|
28
|
-
isPasswordRequired: boolean;
|
|
29
|
-
updateMode: boolean;
|
|
30
|
-
config: MultiUserConfig;
|
|
31
|
-
userTypes: any;
|
|
32
|
-
roles: any[];
|
|
33
|
-
fileConfig: FileDropperConfig;
|
|
34
|
-
viewerConfig: ViewerConfig;
|
|
35
|
-
fileList: any[];
|
|
36
|
-
constructor(dialogRef: MatDialogRef<UserFormComponent>, user: any, http: HttpService, alertService: AlertService, errorHandler: ErrorHandlerService, fb: UntypedFormBuilder, formValidatorService: FormValidatorService, userService: UserService, currentUserService: CurrentUserService, userConfigService: UserConfigService);
|
|
37
|
-
get roleForms(): UntypedFormArray;
|
|
38
|
-
get canUpdateUserCredential(): boolean;
|
|
39
|
-
ngOnInit(): void;
|
|
40
|
-
loadRoles(): void;
|
|
41
|
-
save(): Promise<void>;
|
|
42
|
-
roleSelected(event: any, roleId: number): void;
|
|
43
|
-
/** Method to evaluate form fields*/
|
|
44
|
-
isFieldValid(field: string): any;
|
|
45
|
-
/** Method to find error in form fields*/
|
|
46
|
-
getErrorMessage(field: string): any;
|
|
47
|
-
closeDialog(): void;
|
|
48
|
-
fileChanged(event: any): Promise<void>;
|
|
49
|
-
removeFile(): Promise<void>;
|
|
50
|
-
uploadEntityFile(file: File): Promise<Object>;
|
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserFormComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserFormComponent, "user-form", never, { "userId": { "alias": "userId"; "required": false; }; }, { "onSave": "onSave"; }, never, never, false, never>;
|
|
53
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { User } from './user.model';
|
|
3
|
-
import { CurrentUserService } from './current-user.service';
|
|
4
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
5
|
-
import { UserService } from './user.service';
|
|
6
|
-
import { MultiUserConfig, UserConfigService } from '../user-config';
|
|
7
|
-
import { UntypedFormBuilder } from '@angular/forms';
|
|
8
|
-
import { AlertService } from '../core';
|
|
9
|
-
import { TechlifyListComponent } from '../base-model';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class UsersViewAllComponent extends TechlifyListComponent implements OnInit {
|
|
12
|
-
private alertService;
|
|
13
|
-
currentUserService: CurrentUserService;
|
|
14
|
-
userConfigService: UserConfigService;
|
|
15
|
-
private dialog;
|
|
16
|
-
protected service: UserService;
|
|
17
|
-
private fb;
|
|
18
|
-
clientId: number;
|
|
19
|
-
userTypeIds: number[];
|
|
20
|
-
currentUser: User;
|
|
21
|
-
config: MultiUserConfig;
|
|
22
|
-
user: User;
|
|
23
|
-
title: string;
|
|
24
|
-
displayedColumns: string[];
|
|
25
|
-
scrollContainer: string;
|
|
26
|
-
models: any[];
|
|
27
|
-
isAppAdminUser: boolean;
|
|
28
|
-
constructor(alertService: AlertService, currentUserService: CurrentUserService, userConfigService: UserConfigService, dialog: MatDialog, service: UserService, fb: UntypedFormBuilder);
|
|
29
|
-
ngOnInit(): void;
|
|
30
|
-
getUserViewRoute(user: any): any;
|
|
31
|
-
loadData(): void;
|
|
32
|
-
createOrEditUser(user?: any): void;
|
|
33
|
-
/**
|
|
34
|
-
* Get the user type for the current client.
|
|
35
|
-
*
|
|
36
|
-
* @param user User
|
|
37
|
-
*/
|
|
38
|
-
getUserType(user: any): string;
|
|
39
|
-
resetPassword(user: any): void;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UsersViewAllComponent, never>;
|
|
41
|
-
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>;
|
|
42
|
-
}
|