verben-authentication-ui 0.3.9 → 0.4.1
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/components/auth-callback/auth-callback.component.mjs +22 -15
- package/esm2022/lib/components/button/button.component.mjs +3 -6
- package/esm2022/lib/components/mail/mail.component.mjs +1 -1
- package/esm2022/lib/components/o-auth/o-auth.component.mjs +28 -30
- package/esm2022/lib/components/otp-input/otp-input.component.mjs +15 -4
- package/esm2022/lib/components/role-control/ChildrenType.mjs +6 -0
- package/esm2022/lib/components/role-control/MappedRole.mjs +2 -0
- package/esm2022/lib/components/role-control/MappedRoleAction.mjs +2 -0
- package/esm2022/lib/components/role-control/MappedRoleContext.mjs +2 -0
- package/esm2022/lib/components/role-control/UIActions.mjs +7 -0
- package/esm2022/lib/components/role-control/UIs.mjs +40 -0
- package/esm2022/lib/components/role-control/base-table-style.mjs +53 -0
- package/esm2022/lib/components/role-control/role-control.component.mjs +792 -0
- package/esm2022/lib/components/role-control/role-control.module.mjs +18 -0
- package/esm2022/lib/components/role-control/role-control.service.mjs +52 -0
- package/esm2022/lib/components/sign-in/sign-in.component.mjs +27 -30
- package/esm2022/lib/components/sign-up/sign-up.component.mjs +24 -22
- package/esm2022/lib/components/sso/helper.mjs +4 -2
- package/esm2022/lib/components/two-factor-auth-otp/two-factor-auth-otp.component.mjs +1 -1
- package/esm2022/lib/components/user-management/helper.mjs +4 -2
- package/esm2022/lib/components/user-management/user-management.component.mjs +11 -10
- package/esm2022/lib/components/user-request/user-request.component.mjs +15 -7
- package/esm2022/lib/components/user-request-approval/helper.mjs +4 -2
- package/esm2022/lib/components/user-request-approval/user-request-approval.component.mjs +2 -2
- package/esm2022/lib/models/PagedResult.mjs +1 -1
- package/esm2022/lib/models/Role.mjs +2 -0
- package/esm2022/lib/models/RoleAction.mjs +2 -0
- package/esm2022/lib/models/RoleContext.mjs +2 -0
- package/esm2022/lib/models/UserRequest.mjs +1 -1
- package/esm2022/lib/models/auth-mechanism.mjs +1 -1
- package/esm2022/lib/models/base.mjs +1 -1
- package/esm2022/lib/models/oauth-resp.mjs +2 -0
- package/esm2022/lib/services/authorization.service.mjs +24 -0
- package/esm2022/lib/services/util.service.mjs +9 -2
- package/esm2022/lib/shared/shared.module.mjs +81 -0
- package/esm2022/public-api.mjs +4 -1
- package/fesm2022/verben-authentication-ui.mjs +1204 -126
- package/fesm2022/verben-authentication-ui.mjs.map +1 -1
- package/lib/components/auth-callback/auth-callback.component.d.ts +6 -6
- package/lib/components/button/button.component.d.ts +1 -2
- package/lib/components/o-auth/o-auth.component.d.ts +6 -12
- package/lib/components/otp-input/otp-input.component.d.ts +1 -0
- package/lib/components/role-control/ChildrenType.d.ts +4 -0
- package/lib/components/role-control/MappedRole.d.ts +7 -0
- package/lib/components/role-control/MappedRoleAction.d.ts +4 -0
- package/lib/components/role-control/MappedRoleContext.d.ts +8 -0
- package/lib/components/role-control/UIActions.d.ts +5 -0
- package/lib/components/role-control/UIs.d.ts +38 -0
- package/lib/components/role-control/base-table-style.d.ts +1 -0
- package/lib/components/role-control/role-control.component.d.ts +76 -0
- package/lib/components/role-control/role-control.module.d.ts +8 -0
- package/lib/components/role-control/role-control.service.d.ts +9 -0
- package/lib/components/sign-in/sign-in.component.d.ts +3 -10
- package/lib/components/user-request/user-request.component.d.ts +2 -0
- package/lib/models/PagedResult.d.ts +6 -0
- package/lib/models/Role.d.ts +8 -0
- package/lib/models/RoleAction.d.ts +8 -0
- package/lib/models/RoleContext.d.ts +8 -0
- package/lib/models/UserRequest.d.ts +1 -0
- package/lib/models/auth-mechanism.d.ts +1 -0
- package/lib/models/base.d.ts +3 -1
- package/lib/models/oauth-resp.d.ts +6 -0
- package/lib/services/authorization.service.d.ts +14 -0
- package/lib/services/util.service.d.ts +1 -0
- package/lib/shared/shared.module.d.ts +9 -0
- package/package.json +2 -1
- package/public-api.d.ts +3 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class AuthCallbackComponent implements OnInit {
|
|
5
5
|
private router;
|
|
6
|
+
private route;
|
|
6
7
|
code: string;
|
|
7
8
|
previousUrl: string;
|
|
9
|
+
type: string;
|
|
8
10
|
redirectText?: string;
|
|
9
|
-
|
|
10
|
-
height: number;
|
|
11
|
-
color: string;
|
|
12
|
-
constructor(router: Router);
|
|
11
|
+
constructor(router: Router, route: ActivatedRoute);
|
|
13
12
|
ngOnInit(): void;
|
|
13
|
+
getType(): void;
|
|
14
14
|
handleRedirect(): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthCallbackComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AuthCallbackComponent, "verben-auth-callback", never, { "redirectText": { "alias": "redirectText"; "required": false; };
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthCallbackComponent, "verben-auth-callback", never, { "redirectText": { "alias": "redirectText"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
@@ -10,9 +10,8 @@ export declare class ButtonComponent {
|
|
|
10
10
|
pd: string;
|
|
11
11
|
buttonClass: string;
|
|
12
12
|
disabled: boolean;
|
|
13
|
-
isLoading?: boolean;
|
|
14
13
|
buttonClick: EventEmitter<void>;
|
|
15
14
|
handleClick(): void;
|
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "lib-button", never, { "text": { "alias": "text"; "required": false; }; "color": { "alias": "color"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "width": { "alias": "width"; "required": false; }; "pd": { "alias": "pd"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; };
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "lib-button", never, { "text": { "alias": "text"; "required": false; }; "color": { "alias": "color"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "width": { "alias": "width"; "required": false; }; "pd": { "alias": "pd"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, never, false, never>;
|
|
18
17
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { AuthMechanism } from '../../models/auth-mechanism';
|
|
3
|
-
import {
|
|
4
|
-
import { HttpWebRequestService } from '../../services/http-web-request.service';
|
|
5
|
-
import { UtilService } from '../../services/util.service';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
declare global {
|
|
8
6
|
interface Window {
|
|
@@ -10,27 +8,23 @@ declare global {
|
|
|
10
8
|
}
|
|
11
9
|
}
|
|
12
10
|
export declare class OAuthComponent implements OnInit {
|
|
13
|
-
private route;
|
|
14
|
-
private server;
|
|
15
|
-
private utilService;
|
|
16
11
|
private router;
|
|
17
12
|
showGoogle: boolean;
|
|
18
13
|
showMicrosoft: boolean;
|
|
19
14
|
showApple: boolean;
|
|
20
15
|
authMechanisms: AuthMechanism[] | null;
|
|
21
|
-
|
|
22
|
-
googleClick: EventEmitter<void>;
|
|
23
|
-
appleClick: EventEmitter<void>;
|
|
16
|
+
emitMechanismFn: EventEmitter<string>;
|
|
24
17
|
page: string;
|
|
25
|
-
|
|
18
|
+
type: string;
|
|
19
|
+
constructor(router: Router);
|
|
26
20
|
ngOnInit(): void;
|
|
27
21
|
loadPage(): void;
|
|
28
22
|
loadGoogleScript(): void;
|
|
29
23
|
oAuthWithGoogle(data: AuthMechanism): void;
|
|
30
24
|
oAuthWithApple(): void;
|
|
31
|
-
oAuthWithMicrosoft(): void;
|
|
25
|
+
oAuthWithMicrosoft(data: AuthMechanism): void;
|
|
32
26
|
checkForValue(value: string): "" | "google-logo" | "apple-logo" | "microsoft-logo";
|
|
33
27
|
handleOauthClick(value: AuthMechanism): void | "";
|
|
34
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<OAuthComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OAuthComponent, "verben-o-auth", never, { "authMechanisms": { "alias": "authMechanisms"; "required": false; }; }, { "
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OAuthComponent, "verben-o-auth", never, { "authMechanisms": { "alias": "authMechanisms"; "required": false; }; }, { "emitMechanismFn": "emitMechanismFn"; }, never, never, false, never>;
|
|
36
30
|
}
|
|
@@ -12,6 +12,7 @@ export declare class OtpInputComponent implements OnInit {
|
|
|
12
12
|
get otpArray(): FormArray;
|
|
13
13
|
handleInput(event: any, index: number): void;
|
|
14
14
|
handleKeydown(event: KeyboardEvent, index: number): void;
|
|
15
|
+
handlePaste(event: ClipboardEvent): void;
|
|
15
16
|
private focusNextInput;
|
|
16
17
|
private focusPreviousInput;
|
|
17
18
|
private emitOtp;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RoleContext } from '../../models/RoleContext';
|
|
2
|
+
import { ChildrenType } from './ChildrenType';
|
|
3
|
+
import { MappedRoleAction } from './MappedRoleAction';
|
|
4
|
+
export interface MappedRoleContext extends RoleContext {
|
|
5
|
+
Selected: boolean;
|
|
6
|
+
RoleActions: MappedRoleAction[];
|
|
7
|
+
ChildrenType: ChildrenType;
|
|
8
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare enum UIs {
|
|
2
|
+
ProductDistribution = "ProductDistribution",
|
|
3
|
+
Terminals = "Terminals",
|
|
4
|
+
Meters = "Meters",
|
|
5
|
+
ProductInbound = "ProductInbound",
|
|
6
|
+
TerminalDocumentation = "TerminalDocumentation",
|
|
7
|
+
Laboratories = "Laboratories",
|
|
8
|
+
Surveyors = "Surveyors",
|
|
9
|
+
Products = "Products",
|
|
10
|
+
Stocks = "Stocks",
|
|
11
|
+
Tanks = "Tanks",
|
|
12
|
+
Customers = "Customers",
|
|
13
|
+
ProductAllocation = "ProductAllocation",
|
|
14
|
+
ReleaseManagement = "ReleaseManagement",
|
|
15
|
+
ProductPricing = "ProductPricing",
|
|
16
|
+
Purchases = "Purchases",
|
|
17
|
+
Agents = "Agents",
|
|
18
|
+
Banks = "Banks",
|
|
19
|
+
Vendors = "Vendors",
|
|
20
|
+
Vessels = "Vessels",
|
|
21
|
+
ExpenseList = "ExpenseList",
|
|
22
|
+
ProcurementDocumentation = "ProcurementDocumentation",
|
|
23
|
+
Journal = "Journal",
|
|
24
|
+
JournalTemplate = "JournalTemplate",
|
|
25
|
+
RecurringJournal = "RecurringJournal",
|
|
26
|
+
InterCompanyJournal = "InterCompanyJournal",
|
|
27
|
+
InterCompanyJournalTemplate = "InterCompanyJournalTemplate",
|
|
28
|
+
UserManagement = "UserManagement",
|
|
29
|
+
AccessRequest = "AccessRequest",
|
|
30
|
+
RolesAndPermissions = "RolesAndPermissions",
|
|
31
|
+
AuditTrail = "AuditTrail",
|
|
32
|
+
LogViewer = "LogViewer",
|
|
33
|
+
MessageHistory = "MessageHistory",
|
|
34
|
+
MessageConfig = "MessageConfig",
|
|
35
|
+
MessageList = "MessageList",
|
|
36
|
+
Config = "Config",
|
|
37
|
+
Reports = "Reports"
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const baseStyle: any;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { RoleControlService } from './role-control.service';
|
|
3
|
+
import { CardData, CardDataViewComponent, ColumnDefinition, DataViewComponent, IDataFilter } from 'verben-ng-ui';
|
|
4
|
+
import { Role } from '../../models/Role';
|
|
5
|
+
import { RoleContext } from '../../models/RoleContext';
|
|
6
|
+
import { RoleAction } from '../../models/RoleAction';
|
|
7
|
+
import { MappedRole } from './MappedRole';
|
|
8
|
+
import { AuthorizationService } from '../../services/authorization.service';
|
|
9
|
+
import { ChildrenType } from './ChildrenType';
|
|
10
|
+
import { FormBuilder } from '@angular/forms';
|
|
11
|
+
import { UtilService } from '../../services/util.service';
|
|
12
|
+
import { HttpWebRequestService } from '../../services/http-web-request.service';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class RoleControlComponent implements OnInit {
|
|
15
|
+
private authService;
|
|
16
|
+
private roleControlSvc;
|
|
17
|
+
private utilService;
|
|
18
|
+
private server;
|
|
19
|
+
private cdr;
|
|
20
|
+
private fb;
|
|
21
|
+
visibleColumnDef: ColumnDefinition<MappedRole>[];
|
|
22
|
+
styles: any;
|
|
23
|
+
data: MappedRole[];
|
|
24
|
+
cardData: CardData[];
|
|
25
|
+
currentData: CardData | null;
|
|
26
|
+
currentExpandedCard: CardData | null;
|
|
27
|
+
cardContext: CardData | null;
|
|
28
|
+
cardContextHistory: CardData[];
|
|
29
|
+
cardContextHistoryData: CardData[][];
|
|
30
|
+
cardDataView: CardDataViewComponent;
|
|
31
|
+
dataView: DataViewComponent;
|
|
32
|
+
visibleColumns: IDataFilter[];
|
|
33
|
+
filterArray: IDataFilter[];
|
|
34
|
+
sortOptions: IDataFilter[];
|
|
35
|
+
childPermissionRef: ChildrenType;
|
|
36
|
+
constructor(authService: AuthorizationService, roleControlSvc: RoleControlService, utilService: UtilService, server: HttpWebRequestService, cdr: ChangeDetectorRef, fb: FormBuilder);
|
|
37
|
+
ngOnInit(): Promise<void>;
|
|
38
|
+
getAllRoles(): Promise<Role[] | undefined>;
|
|
39
|
+
findParent(cardData: CardData[], target: CardData): CardData | null;
|
|
40
|
+
isCheckboxDisabled(item: CardData): boolean;
|
|
41
|
+
setUpMappedData(data: Role[]): void;
|
|
42
|
+
setUpCardData(): void;
|
|
43
|
+
getFormattedName(name: string): string;
|
|
44
|
+
viewDetailsFromTable(data: MappedRole): void;
|
|
45
|
+
viewDetails(context: CardData): void;
|
|
46
|
+
viewDetailsChild(context: CardData): void;
|
|
47
|
+
roleCardClicked(item: CardData): void;
|
|
48
|
+
toggleChildren(item: CardData): void;
|
|
49
|
+
closeDetails(): void;
|
|
50
|
+
getCardSubCaption(item: CardData): string;
|
|
51
|
+
getUpdatedRole(role: MappedRole): Role;
|
|
52
|
+
saveRole(): Promise<void>;
|
|
53
|
+
saveRoleDynamic(item: CardData): Promise<void>;
|
|
54
|
+
saveDataAll(): void;
|
|
55
|
+
updateTable(): void;
|
|
56
|
+
onViewChange(isGridView: boolean): void;
|
|
57
|
+
onStateChange(event: {
|
|
58
|
+
key: string;
|
|
59
|
+
value: boolean;
|
|
60
|
+
}): void;
|
|
61
|
+
showTableView: boolean;
|
|
62
|
+
onSelectionChange(selectedRows: Role[]): void;
|
|
63
|
+
retryMessage(): void;
|
|
64
|
+
onColumnsUpdated(updatedColumns: IDataFilter[]): void;
|
|
65
|
+
onSortUpdated(updatedSorts: IDataFilter[]): void;
|
|
66
|
+
handleExport(exportedData: Partial<any>[]): void;
|
|
67
|
+
private downloadCSV;
|
|
68
|
+
getMockRoles(): Role[];
|
|
69
|
+
mockNames: string[];
|
|
70
|
+
randomName(): string;
|
|
71
|
+
randomContexts(): RoleContext[];
|
|
72
|
+
randomActions(): RoleAction[];
|
|
73
|
+
editValue(value: MappedRole): void;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RoleControlComponent, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RoleControlComponent, "lib-role-control", never, {}, {}, never, never, false, never>;
|
|
76
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./role-control.component";
|
|
3
|
+
import * as i2 from "../../shared/shared.module";
|
|
4
|
+
export declare class RoleControlModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RoleControlModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RoleControlModule, [typeof i1.RoleControlComponent], [typeof i2.SharedModule], [typeof i1.RoleControlComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RoleControlModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ColumnDefinition } from 'verben-ng-ui';
|
|
2
|
+
import { MappedRole } from './MappedRole';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class RoleControlService {
|
|
5
|
+
constructor();
|
|
6
|
+
get roleColumns(): ColumnDefinition<MappedRole>[];
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RoleControlService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RoleControlService>;
|
|
9
|
+
}
|
|
@@ -8,13 +8,8 @@ import { ResponseKeyValue } from '../../models/ResponseKeyValue';
|
|
|
8
8
|
import { EnvironmentService } from '../../services/environment.service';
|
|
9
9
|
import { AuthMechanism } from '../../models/auth-mechanism';
|
|
10
10
|
import { ActivatedRoute } from '@angular/router';
|
|
11
|
+
import { IOauthResp } from '../../models/oauth-resp';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
|
-
interface IOauthResp {
|
|
13
|
-
AccessToken: string;
|
|
14
|
-
Email: string;
|
|
15
|
-
FirstName: string;
|
|
16
|
-
LastName: string;
|
|
17
|
-
}
|
|
18
13
|
export declare class SignInComponent implements OnInit {
|
|
19
14
|
private fb;
|
|
20
15
|
private server;
|
|
@@ -68,6 +63,8 @@ export declare class SignInComponent implements OnInit {
|
|
|
68
63
|
secret: string;
|
|
69
64
|
isLoading: boolean;
|
|
70
65
|
code: string;
|
|
66
|
+
type: string;
|
|
67
|
+
mechanismType: string;
|
|
71
68
|
OauthData: IOauthResp;
|
|
72
69
|
constructor(fb: FormBuilder, server: HttpWebRequestService, utilService: UtilService, envSvc: EnvironmentService, route: ActivatedRoute);
|
|
73
70
|
ngOnInit(): Promise<void>;
|
|
@@ -75,9 +72,6 @@ export declare class SignInComponent implements OnInit {
|
|
|
75
72
|
checkForm(): boolean;
|
|
76
73
|
verifyUserDetails(): Promise<void>;
|
|
77
74
|
submit(type: string): Promise<void>;
|
|
78
|
-
handleGoogleAuth(): void;
|
|
79
|
-
handleMicrosoft(): void;
|
|
80
|
-
handleAppleAuth(): void;
|
|
81
75
|
get styles(): {
|
|
82
76
|
'background-color': string;
|
|
83
77
|
'box-shadow': string;
|
|
@@ -93,4 +87,3 @@ export declare class SignInComponent implements OnInit {
|
|
|
93
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<SignInComponent, never>;
|
|
94
88
|
static ɵcmp: i0.ɵɵComponentDeclaration<SignInComponent, "verben-sign-in", never, { "headlingText": { "alias": "headlingText"; "required": false; }; "width": { "alias": "width"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; "pd": { "alias": "pd"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "headlingClass": { "alias": "headlingClass"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "boxShadow": { "alias": "boxShadow"; "required": false; }; "border": { "alias": "border"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "height": { "alias": "height"; "required": false; }; "forgetPasswordClass": { "alias": "forgetPasswordClass"; "required": false; }; "requestAccessClass": { "alias": "requestAccessClass"; "required": false; }; "createAccountClass": { "alias": "createAccountClass"; "required": false; }; "createAccountLinkClass": { "alias": "createAccountLinkClass"; "required": false; }; "forgetPasswordLink": { "alias": "forgetPasswordLink"; "required": false; }; "createAccountLink": { "alias": "createAccountLink"; "required": false; }; "requestAccessLink": { "alias": "requestAccessLink"; "required": false; }; "btnClass": { "alias": "btnClass"; "required": false; }; "btnBgColor": { "alias": "btnBgColor"; "required": false; }; "btnColor": { "alias": "btnColor"; "required": false; }; "btnBorder": { "alias": "btnBorder"; "required": false; }; "btnBorderRadius": { "alias": "btnBorderRadius"; "required": false; }; "btnPd": { "alias": "btnPd"; "required": false; }; "btnText": { "alias": "btnText"; "required": false; }; "inputLabelColor": { "alias": "inputLabelColor"; "required": false; }; "inputBgColor": { "alias": "inputBgColor"; "required": false; }; "inputBorder": { "alias": "inputBorder"; "required": false; }; "inputBorderRadius": { "alias": "inputBorderRadius"; "required": false; }; "termsErrorText": { "alias": "termsErrorText"; "required": false; }; }, { "formSubmit": "formSubmit"; "onSubmitEnd": "onSubmitEnd"; "onGoogleAuthResponse": "onGoogleAuthResponse"; "onSubmitGoogleAuth": "onSubmitGoogleAuth"; "googleClick": "googleClick"; "microsoftClick": "microsoftClick"; "appleClick": "appleClick"; }, never, never, false, never>;
|
|
95
89
|
}
|
|
96
|
-
export {};
|
|
@@ -28,6 +28,7 @@ export declare class UserRequestComponent {
|
|
|
28
28
|
pd: string;
|
|
29
29
|
isFormEditable: boolean;
|
|
30
30
|
apiKey: string;
|
|
31
|
+
hidePassword: boolean;
|
|
31
32
|
isCode: boolean;
|
|
32
33
|
text: string;
|
|
33
34
|
color: string;
|
|
@@ -51,6 +52,7 @@ export declare class UserRequestComponent {
|
|
|
51
52
|
AuthMechanisms: AuthMechanism[] | null;
|
|
52
53
|
showform: boolean;
|
|
53
54
|
code: string;
|
|
55
|
+
type: string;
|
|
54
56
|
constructor(fb: FormBuilder, server: HttpWebRequestService, utilService: UtilService, envSvc: EnvironmentService, route: ActivatedRoute);
|
|
55
57
|
passwordMatchValidator(control: AbstractControl): ValidationErrors | null;
|
|
56
58
|
get passwordMismatchError(): boolean;
|
package/lib/models/base.d.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const AUTHORIZATION_CONFIG: InjectionToken<AuthorizationConfig[]>;
|
|
4
|
+
export interface AuthorizationConfig {
|
|
5
|
+
Name: string;
|
|
6
|
+
Actions: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare class AuthorizationService {
|
|
9
|
+
private auth;
|
|
10
|
+
constructor(auth: AuthorizationConfig[]);
|
|
11
|
+
get authorizationConfig(): AuthorizationConfig[];
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthorizationService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthorizationService>;
|
|
14
|
+
}
|
|
@@ -3,6 +3,7 @@ export declare class UtilService {
|
|
|
3
3
|
private parentUtilService;
|
|
4
4
|
constructor(parentUtilService: any);
|
|
5
5
|
sendBI(state: boolean): void;
|
|
6
|
+
showInfo(message: string): void;
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<UtilService, [{ optional: true; }]>;
|
|
7
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<UtilService>;
|
|
8
9
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "verben-ng-ui";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class SharedModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.CommonModule], [typeof i1.CommonModule, typeof i2.DataTableModule, typeof i2.CardModule, typeof i2.SvgModule, typeof i2.DataViewModule, typeof i2.CardDataViewModule, typeof i2.SortTableModule, typeof i2.VisibleColumnModule, typeof i2.TableFilterModule, typeof i2.DataExportModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i2.VerbenaInputModule, typeof i2.VerbenaButtonModule, typeof i2.VerbenaBadgeModule, typeof i2.VerbenDialogueModule, typeof i2.DropDownModule, typeof i2.VerbenaTextareaModule, typeof i2.VerbenaSwitchModule, typeof i2.VerbenPopUpModule, typeof i2.ChipModule]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
9
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -29,3 +29,6 @@ export * from './lib/components/user-request-approval/user-request-approval.serv
|
|
|
29
29
|
export * from './lib/components/auth-callback/auth-callback.component';
|
|
30
30
|
export * from './lib/components/auth-callback/auth-callback.module';
|
|
31
31
|
export * from './lib/services/environment.service';
|
|
32
|
+
export * from './lib/services/authorization.service';
|
|
33
|
+
export * from './lib/components/role-control/role-control.component';
|
|
34
|
+
export * from './lib/components/role-control/role-control.module';
|