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,16 +1,16 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { Location } from '@angular/common';
|
|
4
|
-
import {
|
|
4
|
+
import { AuditLogService } from '../audit-log.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class AuditLogViewComponent implements OnInit {
|
|
7
|
-
private
|
|
7
|
+
private auditLogService;
|
|
8
8
|
private route;
|
|
9
9
|
private location;
|
|
10
10
|
logInfo: any;
|
|
11
11
|
showDeltaChanges: boolean;
|
|
12
12
|
changeList: any[];
|
|
13
|
-
constructor(
|
|
13
|
+
constructor(auditLogService: AuditLogService, route: ActivatedRoute, location: Location);
|
|
14
14
|
ngOnInit(): void;
|
|
15
15
|
getTransformedChanges(): void;
|
|
16
16
|
fetchLogDetail(logId: any): Promise<void>;
|
package/lib/core/index.d.ts
CHANGED
|
@@ -17,6 +17,5 @@ export * from './route-reusable-strategy';
|
|
|
17
17
|
export * from './storage.service';
|
|
18
18
|
export * from './techlify-config.model';
|
|
19
19
|
export * from './token.interceptor';
|
|
20
|
-
export * from './dataManager.service';
|
|
21
20
|
export * from './filter.service';
|
|
22
21
|
export * from './environment.service';
|
|
@@ -13,6 +13,15 @@ export declare class RequestHelperService {
|
|
|
13
13
|
* @param formConfig FormConfig
|
|
14
14
|
*/
|
|
15
15
|
updateFormWithQueryParams(formGroup: UntypedFormGroup, formConfig: any): void;
|
|
16
|
+
/**
|
|
17
|
+
* Update the form values from a plain, request-shaped filters object
|
|
18
|
+
* (i.e. the same comma-separated/formatted shape produced by `convertToFormData`,
|
|
19
|
+
* such as route query params or a saved view's persisted filters).
|
|
20
|
+
* @param formGroup FormGroup
|
|
21
|
+
* @param params Request-shaped filters object
|
|
22
|
+
* @param formConfig FormConfig
|
|
23
|
+
*/
|
|
24
|
+
updateFormWithParams(formGroup: UntypedFormGroup, params: any, formConfig: any): void;
|
|
16
25
|
/**
|
|
17
26
|
* Convert the object to form data for the request.
|
|
18
27
|
* @param data Data Object
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { UntypedFormBuilder } from '@angular/forms';
|
|
3
|
+
import { User } from '../user.model';
|
|
4
|
+
import { CurrentUserService } from '../current-user.service';
|
|
5
|
+
import { UserService } from '../user.service';
|
|
6
|
+
import { UserFormComponent } from '../user-form/user-form.component';
|
|
7
|
+
import { MultiUserConfig, UserConfigService } from '../../user-config';
|
|
8
|
+
import { AlertService } from '../../core';
|
|
9
|
+
import { TechlifyListComponent } from '../../base-model';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class AppAdminUserList extends TechlifyListComponent implements OnInit {
|
|
12
|
+
private alertService;
|
|
13
|
+
currentUserService: CurrentUserService;
|
|
14
|
+
userConfigService: UserConfigService;
|
|
15
|
+
protected service: UserService;
|
|
16
|
+
private fb;
|
|
17
|
+
clientId: number;
|
|
18
|
+
userTypeIds: number[];
|
|
19
|
+
currentUser: User;
|
|
20
|
+
config: MultiUserConfig;
|
|
21
|
+
user: User;
|
|
22
|
+
title: string;
|
|
23
|
+
displayedColumns: string[];
|
|
24
|
+
scrollContainer: string;
|
|
25
|
+
models: any[];
|
|
26
|
+
userFormComponent: typeof UserFormComponent;
|
|
27
|
+
constructor(alertService: AlertService, currentUserService: CurrentUserService, userConfigService: UserConfigService, service: UserService, fb: UntypedFormBuilder);
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
getUserViewRoute(user: any): string;
|
|
30
|
+
loadData(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Get the user type for the current client.
|
|
33
|
+
*
|
|
34
|
+
* @param user User
|
|
35
|
+
*/
|
|
36
|
+
getUserType(user: any): string;
|
|
37
|
+
resetPassword(user: any): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppAdminUserList, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppAdminUserList, "app-admin-user-list", never, { "clientId": { "alias": "clientId"; "required": false; }; "userTypeIds": { "alias": "userTypeIds"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>;
|
|
40
|
+
}
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
2
|
import { ActivatedRoute } from '@angular/router';
|
|
4
3
|
import { UserService } from '../user.service';
|
|
5
4
|
import { ConfigService, HttpService } from '../../core';
|
|
6
5
|
import { CurrentUserService } from '../current-user.service';
|
|
7
6
|
import { User } from '../user.model';
|
|
8
7
|
import { UserTypeEnum } from '../user-type.enum';
|
|
8
|
+
import { UserFormComponent } from '../user-form/user-form.component';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class AppAdminUserViewComponent implements OnInit {
|
|
11
11
|
private userService;
|
|
12
12
|
private route;
|
|
13
13
|
config: ConfigService;
|
|
14
14
|
private http;
|
|
15
|
-
private dialog;
|
|
16
15
|
currentUserService: CurrentUserService;
|
|
17
|
-
constructor(userService: UserService, route: ActivatedRoute, config: ConfigService, http: HttpService,
|
|
16
|
+
constructor(userService: UserService, route: ActivatedRoute, config: ConfigService, http: HttpService, currentUserService: CurrentUserService);
|
|
18
17
|
user: User;
|
|
19
18
|
currentUser: User;
|
|
19
|
+
userFormComponent: typeof UserFormComponent;
|
|
20
20
|
protected readonly UserTypeEnum: typeof UserTypeEnum;
|
|
21
21
|
ngOnInit(): void;
|
|
22
22
|
loadUser(userId: any): void;
|
|
23
23
|
enableOrDisableUser(action: any): void;
|
|
24
|
-
editUser(user: any): void;
|
|
25
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppAdminUserViewComponent, never>;
|
|
26
25
|
static ɵcmp: i0.ɵɵComponentDeclaration<AppAdminUserViewComponent, "app-admin-user-view", never, {}, {}, never, never, false, never>;
|
|
27
26
|
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./app-admin-user-view.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "../../
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "../../user-clients-list/user-clients-list.module";
|
|
11
|
-
import * as i10 from "../user-sessions/user-sessions/user-sessions.module";
|
|
3
|
+
import * as i2 from "../../shared.module";
|
|
4
|
+
import * as i3 from "@angular/flex-layout";
|
|
5
|
+
import * as i4 from "../../login-history-for-user/login-history-for-user.module";
|
|
6
|
+
import * as i5 from "../../audit-log/audit-log-list/audit-log-list.module";
|
|
7
|
+
import * as i6 from "./app-admin-user-view.routes";
|
|
8
|
+
import * as i7 from "../../user-clients-list/user-clients-list.module";
|
|
9
|
+
import * as i8 from "../user-sessions/user-sessions/user-sessions.module";
|
|
12
10
|
export declare class AppAdminUserViewModule {
|
|
13
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppAdminUserViewModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AppAdminUserViewModule, [typeof i1.AppAdminUserViewComponent], [typeof i2.
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppAdminUserViewModule, [typeof i1.AppAdminUserViewComponent], [typeof i2.SharedModule, typeof i3.FlexLayoutModule, typeof i4.LoginHistoryForUserModule, typeof i5.AuditLogListModule, typeof i6.AppAdminUserViewRoutingProvider, typeof i7.UserClientsListModule, typeof i8.UserSessionsModule], [typeof i1.AppAdminUserViewComponent]>;
|
|
15
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<AppAdminUserViewModule>;
|
|
16
14
|
}
|
package/lib/user/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from './current-user.service';
|
|
2
2
|
export * from './user-explore.component';
|
|
3
|
-
export * from './user-form.component';
|
|
3
|
+
export * from './user-form/user-form.component';
|
|
4
4
|
export * from './user.model';
|
|
5
5
|
export * from './user.service';
|
|
6
|
-
export * from './
|
|
6
|
+
export * from './user-list/user-list.component';
|
|
7
7
|
export * from './user.routes';
|
|
8
8
|
export * from '../user-clients-list/user-clients-list.component';
|
|
9
9
|
export * from '../user-clients-list/user-clients-list.module';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormArray } from '@angular/forms';
|
|
3
|
+
import { HttpService } from '../../core';
|
|
4
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
5
|
+
import { UserService } from '../user.service';
|
|
6
|
+
import { MultiUserConfig } from '../../user-config/user-config.model';
|
|
7
|
+
import { UserConfigService } from '../../user-config/user-config.service';
|
|
8
|
+
import { FileDropperConfig } from "../../file-dropper";
|
|
9
|
+
import { ViewerConfig } from "../../document-viewer";
|
|
10
|
+
import { CurrentUserService } from '../current-user.service';
|
|
11
|
+
import { TechlifyFormComponent } from '../../base-model';
|
|
12
|
+
import { FormValidatorService } from '../../core/form-validator.service';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class UserFormComponent extends TechlifyFormComponent implements OnInit {
|
|
15
|
+
dialogRef: MatDialogRef<UserFormComponent>;
|
|
16
|
+
data: any;
|
|
17
|
+
private http;
|
|
18
|
+
private fb;
|
|
19
|
+
protected formValidatorService: FormValidatorService;
|
|
20
|
+
protected userService: UserService;
|
|
21
|
+
private currentUserService;
|
|
22
|
+
userConfigService: UserConfigService;
|
|
23
|
+
isPasswordRequired: boolean;
|
|
24
|
+
config: MultiUserConfig;
|
|
25
|
+
userTypes: any;
|
|
26
|
+
roles: any[];
|
|
27
|
+
fileConfig: FileDropperConfig;
|
|
28
|
+
viewerConfig: ViewerConfig;
|
|
29
|
+
fileList: any[];
|
|
30
|
+
errorMessages: any;
|
|
31
|
+
constructor(dialogRef: MatDialogRef<UserFormComponent>, data: any, http: HttpService, fb: UntypedFormBuilder, formValidatorService: FormValidatorService, userService: UserService, currentUserService: CurrentUserService, userConfigService: UserConfigService);
|
|
32
|
+
get roleForms(): UntypedFormArray;
|
|
33
|
+
get canUpdateUserCredential(): boolean;
|
|
34
|
+
ngOnInit(): void;
|
|
35
|
+
loadRoles(): void;
|
|
36
|
+
save(): void;
|
|
37
|
+
roleSelected(event: any, roleId: number): void;
|
|
38
|
+
fileChanged(event: any): Promise<void>;
|
|
39
|
+
removeFile(): Promise<void>;
|
|
40
|
+
uploadEntityFile(file: File): Promise<Object>;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserFormComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserFormComponent, "app-user-form", never, {}, {}, never, never, true, never>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { User } from '../user.model';
|
|
3
|
+
import { CurrentUserService } from '../current-user.service';
|
|
4
|
+
import { UserService } from '../user.service';
|
|
5
|
+
import { UserFormComponent } from '../user-form/user-form.component';
|
|
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 UserListComponent extends TechlifyListComponent implements OnInit {
|
|
12
|
+
private alertService;
|
|
13
|
+
currentUserService: CurrentUserService;
|
|
14
|
+
userConfigService: UserConfigService;
|
|
15
|
+
protected service: UserService;
|
|
16
|
+
private fb;
|
|
17
|
+
userTypeIds: number[];
|
|
18
|
+
currentUser: User;
|
|
19
|
+
config: MultiUserConfig;
|
|
20
|
+
user: User;
|
|
21
|
+
title: string;
|
|
22
|
+
displayedColumns: string[];
|
|
23
|
+
scrollContainer: string;
|
|
24
|
+
models: any[];
|
|
25
|
+
userFormComponent: typeof UserFormComponent;
|
|
26
|
+
constructor(alertService: AlertService, currentUserService: CurrentUserService, userConfigService: UserConfigService, service: UserService, fb: UntypedFormBuilder);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
loadData(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Get the user type for the current client.
|
|
31
|
+
*
|
|
32
|
+
* @param user User
|
|
33
|
+
*/
|
|
34
|
+
getUserType(user: any): string;
|
|
35
|
+
resetPassword(user: any): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserListComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserListComponent, "app-user-list", never, { "userTypeIds": { "alias": "userTypeIds"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>;
|
|
38
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
2
|
import { ActivatedRoute } from '@angular/router';
|
|
4
3
|
import { ConfigService, HttpService } from '../core';
|
|
4
|
+
import { UserFormComponent } from './user-form/user-form.component';
|
|
5
5
|
import { User } from './user.model';
|
|
6
6
|
import { UserService } from './user.service';
|
|
7
7
|
import { CurrentUserService } from './current-user.service';
|
|
@@ -18,16 +18,15 @@ export declare class UserViewComponent implements OnInit {
|
|
|
18
18
|
private route;
|
|
19
19
|
config: ConfigService;
|
|
20
20
|
private http;
|
|
21
|
-
private dialog;
|
|
22
21
|
currentUserService: CurrentUserService;
|
|
23
|
-
constructor(userService: UserService, route: ActivatedRoute, config: ConfigService, http: HttpService,
|
|
22
|
+
constructor(userService: UserService, route: ActivatedRoute, config: ConfigService, http: HttpService, currentUserService: CurrentUserService);
|
|
24
23
|
user: User;
|
|
25
24
|
currentUser: User;
|
|
25
|
+
userFormComponent: typeof UserFormComponent;
|
|
26
26
|
protected readonly UserTypeEnum: typeof UserTypeEnum;
|
|
27
27
|
ngOnInit(): void;
|
|
28
28
|
loadUser(userId: any): void;
|
|
29
29
|
enableOrDisableUser(action: any): void;
|
|
30
|
-
editUser(user: any): void;
|
|
31
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserViewComponent, never>;
|
|
32
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserViewComponent, "user-view", never, {}, {}, never, never, false, never>;
|
|
33
32
|
}
|
|
@@ -1,31 +1,18 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./
|
|
3
|
-
import * as i2 from "./user-
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "./user
|
|
6
|
-
import * as i5 from "@angular/
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "../
|
|
9
|
-
import * as i8 from "@angular/
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "../
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "../login-history-for-user/login-history-for-user.module";
|
|
15
|
-
import * as i14 from "../audit-log/audit-log-list/audit-log-list.module";
|
|
16
|
-
import * as i15 from "@angular/material/tabs";
|
|
17
|
-
import * as i16 from "../searchable-selector/searchable-selector.module";
|
|
18
|
-
import * as i17 from "@angular/material/progress-bar";
|
|
19
|
-
import * as i18 from "@angular/material/table";
|
|
20
|
-
import * as i19 from "@angular/material/sort";
|
|
21
|
-
import * as i20 from "../data-table/data-table.module";
|
|
22
|
-
import * as i21 from "./user-enable-button-component/user-enable-button.module";
|
|
23
|
-
import * as i22 from "../user-clients-list/user-clients-list.module";
|
|
24
|
-
import * as i23 from "./user-sessions/user-sessions/user-sessions.module";
|
|
25
|
-
import * as i24 from "../techlify-icon/techlify-icon.module";
|
|
26
|
-
import * as i25 from "../delete-button/techlify-delete-button.component";
|
|
2
|
+
import * as i1 from "./user-explore.component";
|
|
3
|
+
import * as i2 from "./user-view.component";
|
|
4
|
+
import * as i3 from "../shared.module";
|
|
5
|
+
import * as i4 from "./user.routes";
|
|
6
|
+
import * as i5 from "@angular/flex-layout";
|
|
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 "@angular/material/tabs";
|
|
10
|
+
import * as i9 from "./user-enable-button-component/user-enable-button.module";
|
|
11
|
+
import * as i10 from "../user-clients-list/user-clients-list.module";
|
|
12
|
+
import * as i11 from "./user-sessions/user-sessions/user-sessions.module";
|
|
13
|
+
import * as i12 from "./user-list/user-list.component";
|
|
27
14
|
export declare class UserModule {
|
|
28
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserModule, never>;
|
|
29
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UserModule, [typeof i1.
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UserModule, [typeof i1.UserExploreComponent, typeof i2.UserViewComponent], [typeof i3.SharedModule, typeof i4.UserRoutingProvider, typeof i5.FlexLayoutModule, typeof i6.LoginHistoryForUserModule, typeof i7.AuditLogListModule, typeof i8.MatTabsModule, typeof i9.UserEnableButtonModule, typeof i10.UserClientsListModule, typeof i11.UserSessionsModule, typeof i12.UserListComponent], [typeof i2.UserViewComponent, typeof i12.UserListComponent, typeof i9.UserEnableButtonModule, typeof i10.UserClientsListModule, typeof i11.UserSessionsModule]>;
|
|
30
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<UserModule>;
|
|
31
18
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -154,6 +154,7 @@ export * from './lib/user-menu/user-menu.module';
|
|
|
154
154
|
export * from './lib/user-menu/user-menu.component';
|
|
155
155
|
export * from './lib/user/app-admin-user-view/app-admin-user-view.module';
|
|
156
156
|
export * from './lib/user/app-admin-user-view/app-admin-user-view.component';
|
|
157
|
+
export * from './lib/user/app-admin-user-list/app-admin-user-list.component';
|
|
157
158
|
export * from './lib/user/user-enable-button-component/user-enable-button.module';
|
|
158
159
|
export * from './lib/user/user-enable-button-component/user-enable-button.component';
|
|
159
160
|
export * from './lib/techlify-icon/techlify-icon.module';
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./http.service";
|
|
4
|
-
/**
|
|
5
|
-
* Service that provides a wrapper for retrieving data from the server
|
|
6
|
-
* @deprecated use HttpService Instead
|
|
7
|
-
* @author Joshua Kissoon
|
|
8
|
-
* @since 20170709
|
|
9
|
-
*/
|
|
10
|
-
export class DataManager {
|
|
11
|
-
constructor(http) {
|
|
12
|
-
this.http = http;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Callback wrapper for the HTTP GET Call
|
|
16
|
-
*
|
|
17
|
-
* @param urlq The query part of the URL to be sent to the server
|
|
18
|
-
*
|
|
19
|
-
* @author Joshua Kissoon
|
|
20
|
-
* @since 20160826
|
|
21
|
-
* @updated 20170711 to add parameters
|
|
22
|
-
*/
|
|
23
|
-
GET(urlq, params = {}) {
|
|
24
|
-
return this.http
|
|
25
|
-
.get(urlq, { params: params })
|
|
26
|
-
.toPromise();
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Callback wrapper for the HTTP POST Call
|
|
30
|
-
*
|
|
31
|
-
* @param urlq The query part of the URL to be sent to the server
|
|
32
|
-
* @param object The object containing the POST data to be sent
|
|
33
|
-
*
|
|
34
|
-
* @author Joshua Kissoon
|
|
35
|
-
* @since 20160826
|
|
36
|
-
*/
|
|
37
|
-
POST(urlq, object) {
|
|
38
|
-
if (null == object) {
|
|
39
|
-
object = { "blank": "blank" };
|
|
40
|
-
}
|
|
41
|
-
return this.http
|
|
42
|
-
.post(urlq, object)
|
|
43
|
-
.toPromise();
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Callback wrapper for the HTTP POST Call
|
|
47
|
-
*
|
|
48
|
-
* @param urlq The query part of the URL to be sent to the server
|
|
49
|
-
* @param object The object containing the POST data to be sent
|
|
50
|
-
*
|
|
51
|
-
* @author Joshua Kissoon
|
|
52
|
-
* @since 20160826
|
|
53
|
-
*/
|
|
54
|
-
POSTRAW(urlq, object) {
|
|
55
|
-
if (null == object) {
|
|
56
|
-
object = { "blank": "blank" };
|
|
57
|
-
}
|
|
58
|
-
return this.http
|
|
59
|
-
.skipHeader()
|
|
60
|
-
.post(urlq, object)
|
|
61
|
-
.toPromise();
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Callback wrapper for the HTTP PUT Call
|
|
65
|
-
*
|
|
66
|
-
* @param urlq The query part of the URL to be sent to the server
|
|
67
|
-
* @param object The object containing the PUT data to be sent
|
|
68
|
-
*
|
|
69
|
-
* @author Joshua Kissoon
|
|
70
|
-
* @since 20160826
|
|
71
|
-
*/
|
|
72
|
-
PUT(urlq, object) {
|
|
73
|
-
if (null == object) {
|
|
74
|
-
object = { "blank": "blank" };
|
|
75
|
-
}
|
|
76
|
-
return this.http
|
|
77
|
-
.put(urlq, object)
|
|
78
|
-
.toPromise();
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Callback wrapper for the HTTP PATCH Call
|
|
82
|
-
*
|
|
83
|
-
* @param urlq The query part of the URL to be sent to the server
|
|
84
|
-
* @param object The object containing the PUT data to be sent
|
|
85
|
-
*
|
|
86
|
-
* @author Joshua Kissoon
|
|
87
|
-
* @since 20161107
|
|
88
|
-
*/
|
|
89
|
-
PATCH(urlq, object) {
|
|
90
|
-
if (null == object) {
|
|
91
|
-
object = { "blank": "blank" };
|
|
92
|
-
}
|
|
93
|
-
return this.http
|
|
94
|
-
.patch(urlq, object)
|
|
95
|
-
.toPromise();
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Callback wrapper for the HTTP DELETE Call
|
|
99
|
-
*
|
|
100
|
-
* @param urlq The query part of the URL to be sent to the server
|
|
101
|
-
*
|
|
102
|
-
* @author Joshua Kissoon
|
|
103
|
-
* @since 20160826
|
|
104
|
-
*/
|
|
105
|
-
DELETE(urlq) {
|
|
106
|
-
return this.http
|
|
107
|
-
.delete(urlq)
|
|
108
|
-
.toPromise();
|
|
109
|
-
}
|
|
110
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DataManager, deps: [{ token: i1.HttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
111
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DataManager, providedIn: 'root' }); }
|
|
112
|
-
}
|
|
113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DataManager, decorators: [{
|
|
114
|
-
type: Injectable,
|
|
115
|
-
args: [{
|
|
116
|
-
providedIn: 'root'
|
|
117
|
-
}]
|
|
118
|
-
}], ctorParameters: () => [{ type: i1.HttpService }] });
|
|
119
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YU1hbmFnZXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC10ZWNobGlmeS1jb3JlL3NyYy9saWIvY29yZS9kYXRhTWFuYWdlci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQUczQzs7Ozs7R0FLRztBQUlILE1BQU0sT0FBTyxXQUFXO0lBRXBCLFlBQW9CLElBQWlCO1FBQWpC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aGUgUE9TVCBkYXRhIHRvIGJlIHNlbnRcclxuICAgICAqIFxyXG4gICAgICogQGF1dGhvciBKb3NodWEgS2lzc29vblxyXG4gICAgICogQHNpbmNlIDIwMTYwODI2XHJcbiAgICAgKi9cclxuICAgIFBPU1QodXJscTogc3RyaW5nLCBvYmplY3Q6IGFueSk6IGFueSB7XHJcbiAgICAgICAgaWYgKG51bGwgPT0gb2JqZWN0KSB7XHJcbiAgICAgICAgICAgIG9iamVjdCA9IHsgXCJibGFua1wiOiBcImJsYW5rXCIgfTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiB0aGlzLmh0dHBcclxuICAgICAgICAgICAgLnBvc3QodXJscSwgb2JqZWN0KVxyXG4gICAgICAgICAgICAudG9Qcm9taXNlKCk7XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBDYWxsYmFjayB3cmFwcGVyIGZvciB0aGUgSFRUUCBQT1NUIENhbGxcclxuICAgICAqIFxyXG4gICAgICogQHBhcmFtIHVybHEgVGhlIHF1ZXJ5IHBhcnQgb2YgdGhlIFVSTCB0byBiZSBzZW50IHRvIHRoZSBzZXJ2ZXJcclxuICAgICAqIEBwYXJhbSBvYmplY3QgVGhlIG9iamVjdCBjb250YWluaW5nIHRoZSBQT1NUIGRhdGEgdG8gYmUgc2VudFxyXG4gICAgICogXHJcbiAgICAgKiBAYXV0aG9yIEpvc2h1YSBLaXNzb29uXHJcbiAgICAgKiBAc2luY2UgMjAxNjA4MjZcclxuICAgICAqL1xyXG4gICAgUE9TVFJBVyh1cmxxOiBzdHJpbmcsIG9iamVjdDogYW55KTogYW55IHtcclxuICAgICAgICBpZiAobnVsbCA9PSBvYmplY3QpIHtcclxuICAgICAgICAgICAgb2JqZWN0ID0geyBcImJsYW5rXCI6IFwiYmxhbmtcIiB9O1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cFxyXG4gICAgICAgICAgICAuc2tpcEhl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gc2VudFxyXG4gICAgICogXHJcbiAgICAgKiBAYXV0aG9yIEpvc2h1YSBLaXNzb29uXHJcbiAgICAgKiBAc2luY2UgMjAxNjExMDdcclxuICAgICAqL1xyXG4gICAgUEFUQ0godXJscTogc3RyaW5nLCBvYmplY3Q6IGFueSk6IGFueSB7XHJcbiAgICAgICAgaWYgKG51bGwgPT0gb2JqZWN0KSB7XHJcbiAgICAgICAgICAgIG9iamVjdCA9IHsgXCJibGFua1wiOiBcImJsYW5rXCIgfTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiB0aGlzLmh0dHBcclxuICAgICAgICAgICAgLnBhdGNoKHVybHEsIG9iamVjdClcclxuICAgICAgICAgICAgLnRvUHJvbWlzZSgpO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICogQ2FsbGJhY2sgd3JhcHBlciBmb3IgdGhlIEhUVFAgREVMRVRFIENhbGxcclxuICAgICAqIFxyXG4gICAgICogQHBhcmFtIHVybHEgVGhlIHF1ZXJ5IHBhcnQgb2YgdGhlIFVSTCB0byBiZSBzZW50IHRvIHRoZSBzZXJ2ZXJcclxuICAgICAqIFxyXG4gICAgICogQGF1dGhvciBKb3NodWEgS2lzc29vblxyXG4gICAgICogQHNpbmNlIDIwMTYwODI2XHJcbiAgICAgKi9cclxuICAgIERFTEVURSh1cmxxOiBzdHJpbmcpOiBhbnkge1xyXG4gICAgICAgIHJldHVybiB0aGlzLmh0dHBcclxuICAgICAgICAgICAgLmRlbGV0ZSh1cmxxKVxyXG4gICAgICAgICAgICAudG9Qcm9taXNlKCk7XHJcbiAgICB9XHJcblxyXG59Il19
|