@csmart/ngc-smart-core 1.13.19 → 1.13.21
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/README.md +24 -24
- package/csmart-ngc-smart-core.d.ts +5 -5
- package/esm2020/csmart-ngc-smart-core.mjs +4 -4
- package/esm2020/lib/ngc-smart-core.module.mjs +97 -97
- package/esm2020/lib/smart-auth/smart-access-control-config.mjs +12 -12
- package/esm2020/lib/smart-auth/smart-access-control.directive.mjs +39 -40
- package/esm2020/lib/smart-auth/smart-auth.service.mjs +505 -505
- package/esm2020/lib/smart-auth/smart-authorization-guard.service.mjs +35 -35
- package/esm2020/lib/smart-auth/smart-error.component.mjs +37 -37
- package/esm2020/lib/smart-auth/smart-login-staff-resolver.service.mjs +59 -59
- package/esm2020/lib/smart-auth/smart-selected-offender-resolver.service.mjs +49 -49
- package/esm2020/lib/smart-navbar/smart-navbar-config.mjs +2 -2
- package/esm2020/lib/smart-navbar/smart-navbar.component.mjs +167 -167
- package/esm2020/lib/smart-navbar/smart-navbar.service.mjs +63 -63
- package/esm2020/lib/smart-offender-header/smart-offender-header.component.mjs +151 -151
- package/esm2020/lib/smart-offender-header/smart-offender-header.service.mjs +41 -41
- package/esm2020/lib/smart-staff-offender-options/smart-staff-offender-options-resolver.service.mjs +25 -25
- package/esm2020/lib/smart-staff-offender-options/smart-staff-offender-options.component.mjs +78 -78
- package/esm2020/lib/smart-staff-offender-options/smart-staff-offender-options.service.mjs +132 -132
- package/esm2020/lib/smart-storage/smart-storage-model.mjs +30 -30
- package/esm2020/lib/smart-storage/xdm.service.mjs +171 -158
- package/esm2020/public-api.mjs +20 -20
- package/fesm2015/csmart-ngc-smart-core.mjs +1530 -1518
- package/fesm2015/csmart-ngc-smart-core.mjs.map +1 -1
- package/fesm2020/csmart-ngc-smart-core.mjs +1516 -1504
- package/fesm2020/csmart-ngc-smart-core.mjs.map +1 -1
- package/lib/ngc-smart-core.module.d.ts +20 -20
- package/lib/smart-auth/smart-access-control-config.d.ts +17 -17
- package/lib/smart-auth/smart-access-control.directive.d.ts +14 -14
- package/lib/smart-auth/smart-auth.service.d.ts +41 -41
- package/lib/smart-auth/smart-authorization-guard.service.d.ts +13 -13
- package/lib/smart-auth/smart-error.component.d.ts +17 -17
- package/lib/smart-auth/smart-login-staff-resolver.service.d.ts +13 -13
- package/lib/smart-auth/smart-selected-offender-resolver.service.d.ts +15 -15
- package/lib/smart-navbar/smart-navbar-config.d.ts +7 -7
- package/lib/smart-navbar/smart-navbar.component.d.ts +40 -40
- package/lib/smart-navbar/smart-navbar.service.d.ts +12 -12
- package/lib/smart-offender-header/smart-offender-header.component.d.ts +32 -32
- package/lib/smart-offender-header/smart-offender-header.service.d.ts +18 -18
- package/lib/smart-staff-offender-options/smart-staff-offender-options-resolver.service.d.ts +11 -11
- package/lib/smart-staff-offender-options/smart-staff-offender-options.component.d.ts +22 -22
- package/lib/smart-staff-offender-options/smart-staff-offender-options.service.d.ts +19 -19
- package/lib/smart-storage/smart-storage-model.d.ts +58 -58
- package/lib/smart-storage/xdm.service.d.ts +42 -42
- package/package.json +1 -1
- package/public-api.d.ts +16 -16
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./smart-offender-header/smart-offender-header.component";
|
|
3
|
-
import * as i2 from "./smart-navbar/smart-navbar.component";
|
|
4
|
-
import * as i3 from "./smart-auth/smart-error.component";
|
|
5
|
-
import * as i4 from "./smart-staff-offender-options/smart-staff-offender-options.component";
|
|
6
|
-
import * as i5 from "./smart-auth/smart-access-control.directive";
|
|
7
|
-
import * as i6 from "@angular/common";
|
|
8
|
-
import * as i7 from "@angular/common/http";
|
|
9
|
-
import * as i8 from "@angular/material/button";
|
|
10
|
-
import * as i9 from "@angular/material/menu";
|
|
11
|
-
import * as i10 from "@angular/material/tabs";
|
|
12
|
-
import * as i11 from "@angular/material/select";
|
|
13
|
-
import * as i12 from "@angular/material/card";
|
|
14
|
-
import * as i13 from "@angular/material/checkbox";
|
|
15
|
-
import * as i14 from "@angular/forms";
|
|
16
|
-
export declare class NgcSmartCoreModule {
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgcSmartCoreModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgcSmartCoreModule, [typeof i1.SmartOffenderHeaderComponent, typeof i2.SmartNavbarComponent, typeof i3.SmartErrorComponent, typeof i4.SmartStaffOffenderOptionsComponent, typeof i5.SmartAccessControlDirective], [typeof i6.CommonModule, typeof i7.HttpClientModule, typeof i8.MatButtonModule, typeof i9.MatMenuModule, typeof i10.MatTabsModule, typeof i11.MatSelectModule, typeof i12.MatCardModule, typeof i13.MatCheckboxModule, typeof i14.ReactiveFormsModule], [typeof i1.SmartOffenderHeaderComponent, typeof i2.SmartNavbarComponent, typeof i3.SmartErrorComponent, typeof i4.SmartStaffOffenderOptionsComponent, typeof i5.SmartAccessControlDirective]>;
|
|
19
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NgcSmartCoreModule>;
|
|
20
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./smart-offender-header/smart-offender-header.component";
|
|
3
|
+
import * as i2 from "./smart-navbar/smart-navbar.component";
|
|
4
|
+
import * as i3 from "./smart-auth/smart-error.component";
|
|
5
|
+
import * as i4 from "./smart-staff-offender-options/smart-staff-offender-options.component";
|
|
6
|
+
import * as i5 from "./smart-auth/smart-access-control.directive";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
import * as i7 from "@angular/common/http";
|
|
9
|
+
import * as i8 from "@angular/material/button";
|
|
10
|
+
import * as i9 from "@angular/material/menu";
|
|
11
|
+
import * as i10 from "@angular/material/tabs";
|
|
12
|
+
import * as i11 from "@angular/material/select";
|
|
13
|
+
import * as i12 from "@angular/material/card";
|
|
14
|
+
import * as i13 from "@angular/material/checkbox";
|
|
15
|
+
import * as i14 from "@angular/forms";
|
|
16
|
+
export declare class NgcSmartCoreModule {
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgcSmartCoreModule, never>;
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgcSmartCoreModule, [typeof i1.SmartOffenderHeaderComponent, typeof i2.SmartNavbarComponent, typeof i3.SmartErrorComponent, typeof i4.SmartStaffOffenderOptionsComponent, typeof i5.SmartAccessControlDirective], [typeof i6.CommonModule, typeof i7.HttpClientModule, typeof i8.MatButtonModule, typeof i9.MatMenuModule, typeof i10.MatTabsModule, typeof i11.MatSelectModule, typeof i12.MatCardModule, typeof i13.MatCheckboxModule, typeof i14.ReactiveFormsModule], [typeof i1.SmartOffenderHeaderComponent, typeof i2.SmartNavbarComponent, typeof i3.SmartErrorComponent, typeof i4.SmartStaffOffenderOptionsComponent, typeof i5.SmartAccessControlDirective]>;
|
|
19
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgcSmartCoreModule>;
|
|
20
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
2
|
-
export interface SmartAccessControlConfig {
|
|
3
|
-
appModuleId: string;
|
|
4
|
-
route: ActivatedRouteSnapshot;
|
|
5
|
-
accessType: AccessType;
|
|
6
|
-
roleId: string;
|
|
7
|
-
}
|
|
8
|
-
export declare enum AccessType {
|
|
9
|
-
READ = "read",
|
|
10
|
-
CREATE = "create",
|
|
11
|
-
UPDATE = "update",
|
|
12
|
-
DELETE = "delete",
|
|
13
|
-
EXPUNGE = "expunge",
|
|
14
|
-
ASSIGN = "assign",
|
|
15
|
-
REOPEN = "reopen",
|
|
16
|
-
CLOSE = "close"
|
|
17
|
-
}
|
|
1
|
+
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
2
|
+
export interface SmartAccessControlConfig {
|
|
3
|
+
appModuleId: string;
|
|
4
|
+
route: ActivatedRouteSnapshot;
|
|
5
|
+
accessType: AccessType;
|
|
6
|
+
roleId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare enum AccessType {
|
|
9
|
+
READ = "read",
|
|
10
|
+
CREATE = "create",
|
|
11
|
+
UPDATE = "update",
|
|
12
|
+
DELETE = "delete",
|
|
13
|
+
EXPUNGE = "expunge",
|
|
14
|
+
ASSIGN = "assign",
|
|
15
|
+
REOPEN = "reopen",
|
|
16
|
+
CLOSE = "close"
|
|
17
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { OnInit, ElementRef } from '@angular/core';
|
|
2
|
-
import { SmartAuthService } from './smart-auth.service';
|
|
3
|
-
import { SmartAccessControlConfig } from './smart-access-control-config';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SmartAccessControlDirective implements OnInit {
|
|
6
|
-
private elementRef;
|
|
7
|
-
private auth;
|
|
8
|
-
accessControlConfig: SmartAccessControlConfig;
|
|
9
|
-
constructor(elementRef: ElementRef, auth: SmartAuthService);
|
|
10
|
-
ngOnInit(): void;
|
|
11
|
-
checkAccess(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmartAccessControlDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SmartAccessControlDirective, "[accessControl]", never, { "accessControlConfig": "accessControlConfig"; }, {}, never>;
|
|
14
|
-
}
|
|
1
|
+
import { OnInit, ElementRef } from '@angular/core';
|
|
2
|
+
import { SmartAuthService } from './smart-auth.service';
|
|
3
|
+
import { SmartAccessControlConfig } from './smart-access-control-config';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SmartAccessControlDirective implements OnInit {
|
|
6
|
+
private elementRef;
|
|
7
|
+
private auth;
|
|
8
|
+
accessControlConfig: SmartAccessControlConfig;
|
|
9
|
+
constructor(elementRef: ElementRef, auth: SmartAuthService);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
checkAccess(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartAccessControlDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SmartAccessControlDirective, "[accessControl]", never, { "accessControlConfig": "accessControlConfig"; }, {}, never>;
|
|
14
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { MsalService } from '@azure/msal-angular';
|
|
4
|
-
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
5
|
-
import { LoginStaff, SelectedOffender, Role } from '../smart-storage/smart-storage-model';
|
|
6
|
-
import { XdmService } from '../smart-storage/xdm.service';
|
|
7
|
-
import { SmartAccessControlConfig } from './smart-access-control-config';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class SmartAuthService {
|
|
10
|
-
private http;
|
|
11
|
-
private authnService;
|
|
12
|
-
private xdmService;
|
|
13
|
-
private smartDataServiceUrl;
|
|
14
|
-
private smartDomainFormatUrl;
|
|
15
|
-
loginStaff: LoginStaff;
|
|
16
|
-
selectedOffender: SelectedOffender;
|
|
17
|
-
constructor(http: HttpClient, authnService: MsalService, xdmService: XdmService, smartDataServiceUrl: any, smartDomainFormatUrl: string);
|
|
18
|
-
getLoginStaff(): Observable<LoginStaff>;
|
|
19
|
-
get userName(): string;
|
|
20
|
-
private getTeamUrl;
|
|
21
|
-
private isSameHost;
|
|
22
|
-
redirectToTeam(loginStaff: LoginStaff): void;
|
|
23
|
-
setSelectedOffender(selectedOffender: SelectedOffender): Promise<void>;
|
|
24
|
-
logout(): void;
|
|
25
|
-
setPermission(appModuleId: string, route: ActivatedRouteSnapshot): Promise<void>;
|
|
26
|
-
checkPermission(accessControlConfig: SmartAccessControlConfig): boolean;
|
|
27
|
-
canAppFeatureActivate(loginStaff: LoginStaff, feature: string, appModuleId?: any): boolean;
|
|
28
|
-
hasIntakeRole(roles: Role[]): boolean;
|
|
29
|
-
private hasAppFeaturePermission;
|
|
30
|
-
private isExternalRole;
|
|
31
|
-
private isIntakeRole;
|
|
32
|
-
private disableHtmlElement;
|
|
33
|
-
private hideHtmlElement;
|
|
34
|
-
private getStaff;
|
|
35
|
-
private query;
|
|
36
|
-
private get findStaffQuery();
|
|
37
|
-
private getStaffOffenderRelation;
|
|
38
|
-
private getRolePermissions;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmartAuthService, never>;
|
|
40
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SmartAuthService>;
|
|
41
|
-
}
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { MsalService } from '@azure/msal-angular';
|
|
4
|
+
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
5
|
+
import { LoginStaff, SelectedOffender, Role } from '../smart-storage/smart-storage-model';
|
|
6
|
+
import { XdmService } from '../smart-storage/xdm.service';
|
|
7
|
+
import { SmartAccessControlConfig } from './smart-access-control-config';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class SmartAuthService {
|
|
10
|
+
private http;
|
|
11
|
+
private authnService;
|
|
12
|
+
private xdmService;
|
|
13
|
+
private smartDataServiceUrl;
|
|
14
|
+
private smartDomainFormatUrl;
|
|
15
|
+
loginStaff: LoginStaff;
|
|
16
|
+
selectedOffender: SelectedOffender;
|
|
17
|
+
constructor(http: HttpClient, authnService: MsalService, xdmService: XdmService, smartDataServiceUrl: any, smartDomainFormatUrl: string);
|
|
18
|
+
getLoginStaff(): Observable<LoginStaff>;
|
|
19
|
+
get userName(): string;
|
|
20
|
+
private getTeamUrl;
|
|
21
|
+
private isSameHost;
|
|
22
|
+
redirectToTeam(loginStaff: LoginStaff): void;
|
|
23
|
+
setSelectedOffender(selectedOffender: SelectedOffender): Promise<void>;
|
|
24
|
+
logout(): void;
|
|
25
|
+
setPermission(appModuleId: string, route: ActivatedRouteSnapshot): Promise<void>;
|
|
26
|
+
checkPermission(accessControlConfig: SmartAccessControlConfig): boolean;
|
|
27
|
+
canAppFeatureActivate(loginStaff: LoginStaff, feature: string, appModuleId?: any): boolean;
|
|
28
|
+
hasIntakeRole(roles: Role[]): boolean;
|
|
29
|
+
private hasAppFeaturePermission;
|
|
30
|
+
private isExternalRole;
|
|
31
|
+
private isIntakeRole;
|
|
32
|
+
private disableHtmlElement;
|
|
33
|
+
private hideHtmlElement;
|
|
34
|
+
private getStaff;
|
|
35
|
+
private query;
|
|
36
|
+
private get findStaffQuery();
|
|
37
|
+
private getStaffOffenderRelation;
|
|
38
|
+
private getRolePermissions;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartAuthService, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartAuthService>;
|
|
41
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { CanActivate, ActivatedRouteSnapshot } from '@angular/router';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { LoginStaff } from '../smart-storage/smart-storage-model';
|
|
4
|
-
import { SmartAuthService } from './smart-auth.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class SmartAuthorizationGuard implements CanActivate {
|
|
7
|
-
authnService: SmartAuthService;
|
|
8
|
-
loginStaff: LoginStaff;
|
|
9
|
-
constructor(authnService: SmartAuthService);
|
|
10
|
-
canActivate(route: ActivatedRouteSnapshot): Observable<boolean>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmartAuthorizationGuard, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SmartAuthorizationGuard>;
|
|
13
|
-
}
|
|
1
|
+
import { CanActivate, ActivatedRouteSnapshot } from '@angular/router';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { LoginStaff } from '../smart-storage/smart-storage-model';
|
|
4
|
+
import { SmartAuthService } from './smart-auth.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SmartAuthorizationGuard implements CanActivate {
|
|
7
|
+
authnService: SmartAuthService;
|
|
8
|
+
loginStaff: LoginStaff;
|
|
9
|
+
constructor(authnService: SmartAuthService);
|
|
10
|
+
canActivate(route: ActivatedRouteSnapshot): Observable<boolean>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartAuthorizationGuard, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartAuthorizationGuard>;
|
|
13
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { MsalService } from '@azure/msal-angular';
|
|
3
|
-
import { ActivatedRoute } from '@angular/router';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SmartErrorComponent implements OnInit {
|
|
6
|
-
private authnService;
|
|
7
|
-
private route;
|
|
8
|
-
private smartWebPortalUrl;
|
|
9
|
-
type: string;
|
|
10
|
-
message: string;
|
|
11
|
-
constructor(authnService: MsalService, route: ActivatedRoute, smartWebPortalUrl: string);
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
logout(): void;
|
|
14
|
-
portal(): void;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmartErrorComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmartErrorComponent, "app-smart-error", never, {}, {}, never, never>;
|
|
17
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MsalService } from '@azure/msal-angular';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SmartErrorComponent implements OnInit {
|
|
6
|
+
private authnService;
|
|
7
|
+
private route;
|
|
8
|
+
private smartWebPortalUrl;
|
|
9
|
+
type: string;
|
|
10
|
+
message: string;
|
|
11
|
+
constructor(authnService: MsalService, route: ActivatedRoute, smartWebPortalUrl: string);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
logout(): void;
|
|
14
|
+
portal(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartErrorComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartErrorComponent, "app-smart-error", never, {}, {}, never, never>;
|
|
17
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { SmartAuthService } from './smart-auth.service';
|
|
4
|
-
import { LoginStaff } from '../smart-storage/smart-storage-model';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class LoginStaffResolverService implements Resolve<LoginStaff> {
|
|
7
|
-
private authnService;
|
|
8
|
-
private router;
|
|
9
|
-
constructor(authnService: SmartAuthService, router: Router);
|
|
10
|
-
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<LoginStaff> | Observable<never>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoginStaffResolverService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoginStaffResolverService>;
|
|
13
|
-
}
|
|
1
|
+
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { SmartAuthService } from './smart-auth.service';
|
|
4
|
+
import { LoginStaff } from '../smart-storage/smart-storage-model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class LoginStaffResolverService implements Resolve<LoginStaff> {
|
|
7
|
+
private authnService;
|
|
8
|
+
private router;
|
|
9
|
+
constructor(authnService: SmartAuthService, router: Router);
|
|
10
|
+
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<LoginStaff> | Observable<never>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoginStaffResolverService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoginStaffResolverService>;
|
|
13
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { NgZone } from '@angular/core';
|
|
2
|
-
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { SelectedOffender } from '../smart-storage/smart-storage-model';
|
|
5
|
-
import { XdmService } from '../smart-storage/xdm.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class SelectedOffenderResolverService implements Resolve<SelectedOffender> {
|
|
8
|
-
private service;
|
|
9
|
-
private zone;
|
|
10
|
-
private router;
|
|
11
|
-
constructor(service: XdmService, zone: NgZone, router: Router);
|
|
12
|
-
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<SelectedOffender> | Observable<never>;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectedOffenderResolverService, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SelectedOffenderResolverService>;
|
|
15
|
-
}
|
|
1
|
+
import { NgZone } from '@angular/core';
|
|
2
|
+
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { SelectedOffender } from '../smart-storage/smart-storage-model';
|
|
5
|
+
import { XdmService } from '../smart-storage/xdm.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class SelectedOffenderResolverService implements Resolve<SelectedOffender> {
|
|
8
|
+
private service;
|
|
9
|
+
private zone;
|
|
10
|
+
private router;
|
|
11
|
+
constructor(service: XdmService, zone: NgZone, router: Router);
|
|
12
|
+
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<SelectedOffender> | Observable<never>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectedOffenderResolverService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SelectedOffenderResolverService>;
|
|
15
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface SmartNavbarConfig {
|
|
2
|
-
appModuleId: string;
|
|
3
|
-
name: string;
|
|
4
|
-
url: string;
|
|
5
|
-
offenderSpecificFlag: boolean;
|
|
6
|
-
displayOrder: number;
|
|
7
|
-
}
|
|
1
|
+
export interface SmartNavbarConfig {
|
|
2
|
+
appModuleId: string;
|
|
3
|
+
name: string;
|
|
4
|
+
url: string;
|
|
5
|
+
offenderSpecificFlag: boolean;
|
|
6
|
+
displayOrder: number;
|
|
7
|
+
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { OnInit, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
-
import { MatTabGroup } from '@angular/material/tabs';
|
|
3
|
-
import { MsalService } from '@azure/msal-angular';
|
|
4
|
-
import { SmartNavbarConfig } from './smart-navbar-config';
|
|
5
|
-
import { SmartNavbarService } from './smart-navbar.service';
|
|
6
|
-
import { XdmService } from '../smart-storage/xdm.service';
|
|
7
|
-
import { SelectedOffender, LoginStaff } from '../smart-storage/smart-storage-model';
|
|
8
|
-
import { Subscription } from 'rxjs';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class SmartNavbarComponent implements OnInit, OnChanges, OnDestroy {
|
|
11
|
-
private navbarConfigService;
|
|
12
|
-
private xdmService;
|
|
13
|
-
private authnService;
|
|
14
|
-
serviceApiUrl: string;
|
|
15
|
-
appModuleId: string;
|
|
16
|
-
tabGroup: MatTabGroup;
|
|
17
|
-
selectedOffender: SelectedOffender;
|
|
18
|
-
loginStaff: LoginStaff;
|
|
19
|
-
offenderSubscription: Subscription;
|
|
20
|
-
staffSubscription: Subscription;
|
|
21
|
-
navbarConfigs: SmartNavbarConfig[];
|
|
22
|
-
constructor(navbarConfigService: SmartNavbarService, xdmService: XdmService, authnService: MsalService);
|
|
23
|
-
ngOnChanges(): void;
|
|
24
|
-
ngOnInit(): void;
|
|
25
|
-
ngOnDestroy(): void;
|
|
26
|
-
logout(): void;
|
|
27
|
-
get isAuthenticated(): boolean;
|
|
28
|
-
getAppModuleUrl(config: SmartNavbarConfig): string;
|
|
29
|
-
hasAppModulePermission(appModuleId: any): boolean;
|
|
30
|
-
get hasExternalUserRole(): boolean;
|
|
31
|
-
checkDVIPPermission(config: SmartNavbarConfig): boolean;
|
|
32
|
-
get hasDVIPRole(): boolean;
|
|
33
|
-
private isDVIPRole;
|
|
34
|
-
checkVictimPermission(config: SmartNavbarConfig): boolean;
|
|
35
|
-
get hasVictimRole(): boolean;
|
|
36
|
-
private isVictimRole;
|
|
37
|
-
private isExternalRole;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmartNavbarComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmartNavbarComponent, "app-smart-navbar", never, { "serviceApiUrl": "serviceApiUrl"; "appModuleId": "appModuleId"; }, {}, never, never>;
|
|
40
|
-
}
|
|
1
|
+
import { OnInit, OnChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { MatTabGroup } from '@angular/material/tabs';
|
|
3
|
+
import { MsalService } from '@azure/msal-angular';
|
|
4
|
+
import { SmartNavbarConfig } from './smart-navbar-config';
|
|
5
|
+
import { SmartNavbarService } from './smart-navbar.service';
|
|
6
|
+
import { XdmService } from '../smart-storage/xdm.service';
|
|
7
|
+
import { SelectedOffender, LoginStaff } from '../smart-storage/smart-storage-model';
|
|
8
|
+
import { Subscription } from 'rxjs';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class SmartNavbarComponent implements OnInit, OnChanges, OnDestroy {
|
|
11
|
+
private navbarConfigService;
|
|
12
|
+
private xdmService;
|
|
13
|
+
private authnService;
|
|
14
|
+
serviceApiUrl: string;
|
|
15
|
+
appModuleId: string;
|
|
16
|
+
tabGroup: MatTabGroup;
|
|
17
|
+
selectedOffender: SelectedOffender;
|
|
18
|
+
loginStaff: LoginStaff;
|
|
19
|
+
offenderSubscription: Subscription;
|
|
20
|
+
staffSubscription: Subscription;
|
|
21
|
+
navbarConfigs: SmartNavbarConfig[];
|
|
22
|
+
constructor(navbarConfigService: SmartNavbarService, xdmService: XdmService, authnService: MsalService);
|
|
23
|
+
ngOnChanges(): void;
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
logout(): void;
|
|
27
|
+
get isAuthenticated(): boolean;
|
|
28
|
+
getAppModuleUrl(config: SmartNavbarConfig): string;
|
|
29
|
+
hasAppModulePermission(appModuleId: any): boolean;
|
|
30
|
+
get hasExternalUserRole(): boolean;
|
|
31
|
+
checkDVIPPermission(config: SmartNavbarConfig): boolean;
|
|
32
|
+
get hasDVIPRole(): boolean;
|
|
33
|
+
private isDVIPRole;
|
|
34
|
+
checkVictimPermission(config: SmartNavbarConfig): boolean;
|
|
35
|
+
get hasVictimRole(): boolean;
|
|
36
|
+
private isVictimRole;
|
|
37
|
+
private isExternalRole;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartNavbarComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartNavbarComponent, "app-smart-navbar", never, { "serviceApiUrl": "serviceApiUrl"; "appModuleId": "appModuleId"; }, {}, never, never>;
|
|
40
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { SmartNavbarConfig } from './smart-navbar-config';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SmartNavbarService {
|
|
6
|
-
private http;
|
|
7
|
-
configs: SmartNavbarConfig[];
|
|
8
|
-
constructor(http: HttpClient);
|
|
9
|
-
getNavbarConfigs(serviceApiUrl: string): Observable<SmartNavbarConfig[]>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmartNavbarService, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SmartNavbarService>;
|
|
12
|
-
}
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { SmartNavbarConfig } from './smart-navbar-config';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SmartNavbarService {
|
|
6
|
+
private http;
|
|
7
|
+
configs: SmartNavbarConfig[];
|
|
8
|
+
constructor(http: HttpClient);
|
|
9
|
+
getNavbarConfigs(serviceApiUrl: string): Observable<SmartNavbarConfig[]>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartNavbarService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartNavbarService>;
|
|
12
|
+
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { XdmService } from '../smart-storage/xdm.service';
|
|
3
|
-
import { SelectedOffender, LoginStaff } from '../smart-storage/smart-storage-model';
|
|
4
|
-
import { Subscription } from 'rxjs';
|
|
5
|
-
import { MsalService } from '@azure/msal-angular';
|
|
6
|
-
import { FormControl } from '@angular/forms';
|
|
7
|
-
import { SmartOffenderHeaderService } from './smart-offender-header.service';
|
|
8
|
-
import { Router } from '@angular/router';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class SmartOffenderHeaderComponent implements OnInit, OnDestroy {
|
|
11
|
-
private xdmService;
|
|
12
|
-
private authnService;
|
|
13
|
-
private smartOffenderHeaderService;
|
|
14
|
-
private router;
|
|
15
|
-
selectedOffender: SelectedOffender;
|
|
16
|
-
loginStaff: LoginStaff;
|
|
17
|
-
subscription: Subscription;
|
|
18
|
-
selectedOffenderControl$: FormControl;
|
|
19
|
-
offenderQueryList: SelectedOffender[];
|
|
20
|
-
offenderQuerySubscription: Subscription;
|
|
21
|
-
constructor(xdmService: XdmService, authnService: MsalService, smartOffenderHeaderService: SmartOffenderHeaderService, router: Router);
|
|
22
|
-
ngOnInit(): void;
|
|
23
|
-
get isAuthenticated(): boolean;
|
|
24
|
-
ngOnDestroy(): void;
|
|
25
|
-
private onOffenderSelected;
|
|
26
|
-
private setSelectedOffenderControl;
|
|
27
|
-
private reloadCurrentRoute;
|
|
28
|
-
private hasIntakeRole;
|
|
29
|
-
private isIntakeRole;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmartOffenderHeaderComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmartOffenderHeaderComponent, "app-smart-offender-header", never, {}, {}, never, never>;
|
|
32
|
-
}
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { XdmService } from '../smart-storage/xdm.service';
|
|
3
|
+
import { SelectedOffender, LoginStaff } from '../smart-storage/smart-storage-model';
|
|
4
|
+
import { Subscription } from 'rxjs';
|
|
5
|
+
import { MsalService } from '@azure/msal-angular';
|
|
6
|
+
import { FormControl } from '@angular/forms';
|
|
7
|
+
import { SmartOffenderHeaderService } from './smart-offender-header.service';
|
|
8
|
+
import { Router } from '@angular/router';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class SmartOffenderHeaderComponent implements OnInit, OnDestroy {
|
|
11
|
+
private xdmService;
|
|
12
|
+
private authnService;
|
|
13
|
+
private smartOffenderHeaderService;
|
|
14
|
+
private router;
|
|
15
|
+
selectedOffender: SelectedOffender;
|
|
16
|
+
loginStaff: LoginStaff;
|
|
17
|
+
subscription: Subscription;
|
|
18
|
+
selectedOffenderControl$: FormControl;
|
|
19
|
+
offenderQueryList: SelectedOffender[];
|
|
20
|
+
offenderQuerySubscription: Subscription;
|
|
21
|
+
constructor(xdmService: XdmService, authnService: MsalService, smartOffenderHeaderService: SmartOffenderHeaderService, router: Router);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
get isAuthenticated(): boolean;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
private onOffenderSelected;
|
|
26
|
+
private setSelectedOffenderControl;
|
|
27
|
+
private reloadCurrentRoute;
|
|
28
|
+
private hasIntakeRole;
|
|
29
|
+
private isIntakeRole;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartOffenderHeaderComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartOffenderHeaderComponent, "app-smart-offender-header", never, {}, {}, never, never>;
|
|
32
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SmartOffenderHeaderService {
|
|
5
|
-
private smartDataServiceUrl;
|
|
6
|
-
private http;
|
|
7
|
-
constructor(smartDataServiceUrl: any, http: HttpClient);
|
|
8
|
-
getStaffOffenders(staffId: number): Observable<AssignedOffender[]>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmartOffenderHeaderService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SmartOffenderHeaderService>;
|
|
11
|
-
}
|
|
12
|
-
export interface AssignedOffender {
|
|
13
|
-
offenderId: number;
|
|
14
|
-
offenderName: string;
|
|
15
|
-
pdId: string;
|
|
16
|
-
birthDate: Date;
|
|
17
|
-
gender: string;
|
|
18
|
-
}
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SmartOffenderHeaderService {
|
|
5
|
+
private smartDataServiceUrl;
|
|
6
|
+
private http;
|
|
7
|
+
constructor(smartDataServiceUrl: any, http: HttpClient);
|
|
8
|
+
getStaffOffenders(staffId: number): Observable<AssignedOffender[]>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartOffenderHeaderService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartOffenderHeaderService>;
|
|
11
|
+
}
|
|
12
|
+
export interface AssignedOffender {
|
|
13
|
+
offenderId: number;
|
|
14
|
+
offenderName: string;
|
|
15
|
+
pdId: string;
|
|
16
|
+
birthDate: Date;
|
|
17
|
+
gender: string;
|
|
18
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Resolve } from '@angular/router';
|
|
2
|
-
import { SmartStaffOffenderOptionsService } from './smart-staff-offender-options.service';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SmartStaffOffenderOptionsResolverService implements Resolve<Observable<any>> {
|
|
6
|
-
private offenderService;
|
|
7
|
-
constructor(offenderService: SmartStaffOffenderOptionsService);
|
|
8
|
-
resolve(): Observable<any>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmartStaffOffenderOptionsResolverService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SmartStaffOffenderOptionsResolverService>;
|
|
11
|
-
}
|
|
1
|
+
import { Resolve } from '@angular/router';
|
|
2
|
+
import { SmartStaffOffenderOptionsService } from './smart-staff-offender-options.service';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SmartStaffOffenderOptionsResolverService implements Resolve<Observable<any>> {
|
|
6
|
+
private offenderService;
|
|
7
|
+
constructor(offenderService: SmartStaffOffenderOptionsService);
|
|
8
|
+
resolve(): Observable<any>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartStaffOffenderOptionsResolverService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartStaffOffenderOptionsResolverService>;
|
|
11
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { SmartStaffOffenderOptionsService } from './smart-staff-offender-options.service';
|
|
3
|
-
import { FormGroup } from '@angular/forms';
|
|
4
|
-
import { LoginStaff } from '../smart-storage/smart-storage-model';
|
|
5
|
-
import { ActivatedRoute } from '@angular/router';
|
|
6
|
-
import { XdmService } from '../smart-storage/xdm.service';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class SmartStaffOffenderOptionsComponent implements OnInit {
|
|
9
|
-
private route;
|
|
10
|
-
private offenderService;
|
|
11
|
-
private xdmService;
|
|
12
|
-
loginStaff: LoginStaff;
|
|
13
|
-
offenderListOptions: Array<any>;
|
|
14
|
-
frmGroup: FormGroup;
|
|
15
|
-
constructor(route: ActivatedRoute, offenderService: SmartStaffOffenderOptionsService, xdmService: XdmService);
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
private fillForm;
|
|
18
|
-
private createForm;
|
|
19
|
-
onSave(): void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmartStaffOffenderOptionsComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmartStaffOffenderOptionsComponent, "lib-smart-staff-offender-options", never, {}, {}, never, never>;
|
|
22
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { SmartStaffOffenderOptionsService } from './smart-staff-offender-options.service';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { LoginStaff } from '../smart-storage/smart-storage-model';
|
|
5
|
+
import { ActivatedRoute } from '@angular/router';
|
|
6
|
+
import { XdmService } from '../smart-storage/xdm.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SmartStaffOffenderOptionsComponent implements OnInit {
|
|
9
|
+
private route;
|
|
10
|
+
private offenderService;
|
|
11
|
+
private xdmService;
|
|
12
|
+
loginStaff: LoginStaff;
|
|
13
|
+
offenderListOptions: Array<any>;
|
|
14
|
+
frmGroup: FormGroup;
|
|
15
|
+
constructor(route: ActivatedRoute, offenderService: SmartStaffOffenderOptionsService, xdmService: XdmService);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
private fillForm;
|
|
18
|
+
private createForm;
|
|
19
|
+
onSave(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartStaffOffenderOptionsComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartStaffOffenderOptionsComponent, "lib-smart-staff-offender-options", never, {}, {}, never, never>;
|
|
22
|
+
}
|