@csmart/ngc-smart-victim 1.18.9 → 1.18.13
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/csmart-ngc-smart-victim.mjs +5 -0
- package/esm2022/lib/caseNote/caseNote.component.mjs +194 -0
- package/esm2022/lib/common-dialog/common-dialog.component.mjs +23 -0
- package/esm2022/lib/common-dialog/common-dialog.module.mjs +34 -0
- package/esm2022/lib/common-dialog/common-dialog.service.mjs +33 -0
- package/esm2022/lib/contact/contact.component.mjs +140 -0
- package/esm2022/lib/email.services.mjs +42 -0
- package/esm2022/lib/intake.service.mjs +57 -0
- package/esm2022/lib/safetyPlan/serviceProvider.component.mjs +99 -0
- package/esm2022/lib/safetyPlan/victimSafetyPlan.component.mjs +116 -0
- package/esm2022/lib/safetyPlan/victimSafetyPlanDetail.component.mjs +340 -0
- package/esm2022/lib/shared/app.shared.module.mjs +215 -0
- package/esm2022/lib/shared/validators/date.validator.mjs +59 -0
- package/esm2022/lib/shared/validators/index.mjs +2 -0
- package/esm2022/lib/smart-victim-delete-confirm.component.mjs +44 -0
- package/esm2022/lib/smart-victim-detail/smart-victim-detail.component.mjs +1155 -0
- package/esm2022/lib/smart-victim.component.mjs +317 -0
- package/esm2022/lib/smart-victim.model.mjs +142 -0
- package/esm2022/lib/smart-victim.module.mjs +128 -0
- package/esm2022/lib/smart-victim.service.mjs +370 -0
- package/esm2022/lib/victim-routing.module.mjs +41 -0
- package/esm2022/lib/victimSearch/VictimSearchFilter.mjs +3 -0
- package/esm2022/lib/victimSearch/victimSearchForm.component.mjs +38 -0
- package/esm2022/public-api.mjs +11 -0
- package/fesm2022/csmart-ngc-smart-victim.mjs +3342 -0
- package/fesm2022/csmart-ngc-smart-victim.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/caseNote/caseNote.component.d.ts +51 -0
- package/lib/common-dialog/common-dialog.component.d.ts +14 -0
- package/lib/common-dialog/common-dialog.module.d.ts +8 -0
- package/lib/common-dialog/common-dialog.service.d.ts +11 -0
- package/lib/contact/contact.component.d.ts +40 -0
- package/lib/email.services.d.ts +11 -0
- package/lib/intake.service.d.ts +57 -0
- package/lib/safetyPlan/serviceProvider.component.d.ts +19 -0
- package/lib/safetyPlan/victimSafetyPlan.component.d.ts +54 -0
- package/lib/safetyPlan/victimSafetyPlanDetail.component.d.ts +62 -0
- package/lib/shared/app.shared.module.d.ts +33 -0
- package/lib/shared/validators/date.validator.d.ts +9 -0
- package/lib/shared/validators/index.d.ts +1 -0
- package/lib/smart-victim-delete-confirm.component.d.ts +12 -0
- package/lib/smart-victim-detail/smart-victim-detail.component.d.ts +129 -0
- package/lib/smart-victim.component.d.ts +69 -0
- package/lib/smart-victim.model.d.ts +211 -0
- package/lib/smart-victim.module.d.ts +49 -0
- package/lib/smart-victim.service.d.ts +71 -0
- package/lib/victim-routing.module.d.ts +7 -0
- package/{src/lib/victimSearch/VictimSearchFilter.ts → lib/victimSearch/VictimSearchFilter.d.ts} +7 -9
- package/lib/victimSearch/victimSearchForm.component.d.ts +14 -0
- package/package.json +21 -6
- package/{src/public-api.ts → public-api.d.ts} +7 -12
- package/karma.conf.js +0 -32
- package/ng-package.json +0 -7
- package/src/lib/caseNote/caseNote.component.css +0 -22
- package/src/lib/caseNote/caseNote.component.html +0 -188
- package/src/lib/caseNote/caseNote.component.ts +0 -265
- package/src/lib/common-dialog/common-dialog.component.css +0 -10
- package/src/lib/common-dialog/common-dialog.component.html +0 -23
- package/src/lib/common-dialog/common-dialog.component.spec.ts +0 -25
- package/src/lib/common-dialog/common-dialog.component.ts +0 -21
- package/src/lib/common-dialog/common-dialog.module.ts +0 -22
- package/src/lib/common-dialog/common-dialog.service.ts +0 -35
- package/src/lib/contact/contact.component.css +0 -22
- package/src/lib/contact/contact.component.html +0 -124
- package/src/lib/contact/contact.component.ts +0 -176
- package/src/lib/email-notification.service.ts +0 -42
- package/src/lib/email.services.ts +0 -51
- package/src/lib/http.service.ts +0 -34
- package/src/lib/intake.service.ts +0 -82
- package/src/lib/loader.service.ts +0 -11
- package/src/lib/safetyPlan/serviceProvider.component.ts +0 -94
- package/src/lib/safetyPlan/victimSafetyPlan.component.css +0 -27
- package/src/lib/safetyPlan/victimSafetyPlan.component.html +0 -85
- package/src/lib/safetyPlan/victimSafetyPlan.component.ts +0 -178
- package/src/lib/safetyPlan/victimSafetyPlanDetail.component.html +0 -234
- package/src/lib/safetyPlan/victimSafetyPlanDetail.component.ts +0 -492
- package/src/lib/shared/app.shared.module.ts +0 -111
- package/src/lib/shared/validators/date.validator.ts +0 -73
- package/src/lib/shared/validators/index.ts +0 -1
- package/src/lib/smart-victim-delete-confirm.component.ts +0 -35
- package/src/lib/smart-victim-detail/smart-victim-detail.component.css +0 -43
- package/src/lib/smart-victim-detail/smart-victim-detail.component.html +0 -869
- package/src/lib/smart-victim-detail/smart-victim-detail.component.spec.ts +0 -25
- package/src/lib/smart-victim-detail/smart-victim-detail.component.ts +0 -1387
- package/src/lib/smart-victim.component.css +0 -245
- package/src/lib/smart-victim.component.html +0 -132
- package/src/lib/smart-victim.component.spec.ts +0 -25
- package/src/lib/smart-victim.component.ts +0 -333
- package/src/lib/smart-victim.model.ts +0 -301
- package/src/lib/smart-victim.module.ts +0 -110
- package/src/lib/smart-victim.service.spec.ts +0 -12
- package/src/lib/smart-victim.service.ts +0 -557
- package/src/lib/victim-routing.module.ts +0 -35
- package/src/lib/victimSearch/victimSearchForm.component.html +0 -35
- package/src/lib/victimSearch/victimSearchForm.component.ts +0 -41
- package/src/test.ts +0 -16
- package/tsconfig.lib.json +0 -36
- package/tsconfig.spec.json +0 -17
- package/tslint.json +0 -17
package/index.d.ts
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
import { OnInit, AfterViewInit } from '@angular/core';
|
2
|
+
import { NgcSmartVictimService } from '../smart-victim.service';
|
3
|
+
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
4
|
+
import { CommonDialogService } from '.././common-dialog/common-dialog.service';
|
5
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
6
|
+
import { LoginStaff } from '@csmart/ngc-smart-core';
|
7
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
8
|
+
import { CaseNote } from '../smart-victim.model';
|
9
|
+
import { SmartAuthService } from '@csmart/ngc-smart-core';
|
10
|
+
import { MatTableDataSource } from '@angular/material/table';
|
11
|
+
import { EmailService } from '../email.services';
|
12
|
+
import * as i0 from "@angular/core";
|
13
|
+
export declare class CaseNoteComponent implements OnInit, AfterViewInit {
|
14
|
+
private formBuilder;
|
15
|
+
private _victimServicesComponent;
|
16
|
+
private commonDialogService;
|
17
|
+
snackBar: MatSnackBar;
|
18
|
+
private route;
|
19
|
+
private router;
|
20
|
+
private smartAuthService;
|
21
|
+
private emailService;
|
22
|
+
offenderId: number;
|
23
|
+
loginStaff: LoginStaff;
|
24
|
+
hiddenDetailFlag: boolean;
|
25
|
+
caseNoteList: CaseNote[];
|
26
|
+
caseNote: CaseNote;
|
27
|
+
editCaseNote: CaseNote;
|
28
|
+
errorMessage: string;
|
29
|
+
contactTypes: any[];
|
30
|
+
contactPurposes: any[];
|
31
|
+
result: any;
|
32
|
+
victimName: string;
|
33
|
+
staffId: number;
|
34
|
+
victimId: number;
|
35
|
+
private sub;
|
36
|
+
caseNoteDataSource: MatTableDataSource<unknown, import("@angular/material/paginator").MatPaginator>;
|
37
|
+
addDisableFlag: boolean;
|
38
|
+
hiddenAddNewFlag: boolean;
|
39
|
+
caseNoteForm: UntypedFormGroup;
|
40
|
+
constructor(formBuilder: UntypedFormBuilder, _victimServicesComponent: NgcSmartVictimService, commonDialogService: CommonDialogService, snackBar: MatSnackBar, route: ActivatedRoute, router: Router, smartAuthService: SmartAuthService, emailService: EmailService);
|
41
|
+
private initForm;
|
42
|
+
ngAfterViewInit(): void;
|
43
|
+
ngOnInit(): void;
|
44
|
+
onEditCaseNote(victimCaseNoteId: number): void;
|
45
|
+
onDeleteCaseNote(victimCaseNoteId: number): void;
|
46
|
+
onAddNew(): void;
|
47
|
+
back(): void;
|
48
|
+
saveCaseNote(): void;
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaseNoteComponent, never>;
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaseNoteComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
51
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class CommonDialogComponent implements OnInit {
|
5
|
+
commondialogRef: MatDialogRef<CommonDialogComponent>;
|
6
|
+
title: string;
|
7
|
+
message: string;
|
8
|
+
cmdYesTitle: string;
|
9
|
+
cmdNoTitle: string;
|
10
|
+
constructor(commondialogRef: MatDialogRef<CommonDialogComponent>);
|
11
|
+
ngOnInit(): void;
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonDialogComponent, never>;
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommonDialogComponent, "app-common-dialog", never, {}, {}, never, never, false, never>;
|
14
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./common-dialog.component";
|
3
|
+
import * as i2 from "../shared/app.shared.module";
|
4
|
+
export declare class CommonDialogModule {
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonDialogModule, never>;
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CommonDialogModule, [typeof i1.CommonDialogComponent], [typeof i2.SharedModule], [typeof i1.CommonDialogComponent]>;
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CommonDialogModule>;
|
8
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Observable } from 'rxjs';
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class CommonDialogService {
|
5
|
+
private dialog;
|
6
|
+
constructor(dialog: MatDialog);
|
7
|
+
confirm(title: string, message: string, cmdYesTitle: string, cmdNoTitle: string): Observable<boolean>;
|
8
|
+
warning(title: string, message: string, cmdOkTitle: string): Observable<boolean>;
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonDialogService, never>;
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CommonDialogService>;
|
11
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { OnInit, AfterViewInit } from '@angular/core';
|
2
|
+
import { NgcSmartVictimService } from '../smart-victim.service';
|
3
|
+
import { UntypedFormGroup } from '@angular/forms';
|
4
|
+
import { LoginStaff } from '@csmart/ngc-smart-core';
|
5
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
6
|
+
import { Contact } from '../smart-victim.model';
|
7
|
+
import { SmartAuthService } from '@csmart/ngc-smart-core';
|
8
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
9
|
+
import * as i0 from "@angular/core";
|
10
|
+
export declare class ContactComponent implements OnInit, AfterViewInit {
|
11
|
+
private _victimServicesComponent;
|
12
|
+
snackBar: MatSnackBar;
|
13
|
+
private route;
|
14
|
+
private router;
|
15
|
+
private smartAuthService;
|
16
|
+
offenderId: number;
|
17
|
+
loginStaff: LoginStaff;
|
18
|
+
contact: Contact;
|
19
|
+
editContact: Contact;
|
20
|
+
errorMessage: string;
|
21
|
+
contactMethods: any[];
|
22
|
+
contactBy: any[];
|
23
|
+
result: any;
|
24
|
+
victimName: string;
|
25
|
+
staffId: number;
|
26
|
+
victimId: number;
|
27
|
+
hiddenAddNewFlag: boolean;
|
28
|
+
contactForm: UntypedFormGroup;
|
29
|
+
private sub;
|
30
|
+
staff: any;
|
31
|
+
constructor(_victimServicesComponent: NgcSmartVictimService, snackBar: MatSnackBar, route: ActivatedRoute, router: Router, smartAuthService: SmartAuthService);
|
32
|
+
ngAfterViewInit(): void;
|
33
|
+
ngOnInit(): void;
|
34
|
+
onEditContact(victimContactId: number): void;
|
35
|
+
onAddNew(): void;
|
36
|
+
back(): void;
|
37
|
+
saveContact(): void;
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContactComponent, never>;
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContactComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
40
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Apollo } from 'apollo-angular';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class EmailService {
|
5
|
+
private apollo;
|
6
|
+
constructor(apollo: Apollo);
|
7
|
+
createCaseNoteEmail(templateId: string, offenderId: number, modifiedBy: number): Observable<any>;
|
8
|
+
createEmail(emailTemplateId: string, parameters: string, modifiedBy: number): Observable<any>;
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmailService, never>;
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EmailService>;
|
11
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class IntakeServicesComponent {
|
5
|
+
private http;
|
6
|
+
private smartOffenderServiceUrl;
|
7
|
+
constructor(http: HttpClient, smartOffenderServiceUrl: string);
|
8
|
+
getIntakeByOffender(offenderId: any): Observable<Intake>;
|
9
|
+
updateIntakeSteps(offenderId: number, intakeStepStatus: IntakeStepStatusModel): Observable<Object>;
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IntakeServicesComponent, never>;
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IntakeServicesComponent>;
|
12
|
+
}
|
13
|
+
export interface Intake {
|
14
|
+
intakeId: number;
|
15
|
+
offenderId: number;
|
16
|
+
intakeOffenderReportStatusId?: any;
|
17
|
+
startDate: string;
|
18
|
+
endDate?: any;
|
19
|
+
assignmentId?: any;
|
20
|
+
modifiedBy: number;
|
21
|
+
}
|
22
|
+
export interface IntakeStepStatus {
|
23
|
+
intakeStepStatusId: number;
|
24
|
+
intakeId: number;
|
25
|
+
intakeStepId: string;
|
26
|
+
completedDate: Date;
|
27
|
+
modifiedBy: number;
|
28
|
+
}
|
29
|
+
export interface IntakeStepStatusModel {
|
30
|
+
offenderId: number;
|
31
|
+
intakeStepId: string;
|
32
|
+
modifiedBy: number;
|
33
|
+
}
|
34
|
+
export declare class IntakeStep {
|
35
|
+
static PhysicalInformation: string;
|
36
|
+
static Photo: string;
|
37
|
+
static HousingInformation: string;
|
38
|
+
static DocketInformation: string;
|
39
|
+
static Alias: string;
|
40
|
+
static IntakeBasicInformation: string;
|
41
|
+
static ContactInformation: string;
|
42
|
+
static DeceasedInformation: string;
|
43
|
+
static DriversLicense: string;
|
44
|
+
static EmploymentInformation: string;
|
45
|
+
static GangAffiliation: string;
|
46
|
+
static HealthInsurance: string;
|
47
|
+
static Identification: string;
|
48
|
+
static InternetIdentifier: string;
|
49
|
+
static MilitaryService: string;
|
50
|
+
static School: string;
|
51
|
+
static SelectiveService: string;
|
52
|
+
static Vehicle: string;
|
53
|
+
static VictimInformation: string;
|
54
|
+
static WarrantInformation: string;
|
55
|
+
static RunningRecord: string;
|
56
|
+
static Signature: string;
|
57
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
3
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
4
|
+
import { ProvidersDialogData } from '../smart-victim.model';
|
5
|
+
import { NgcSmartVictimService } from '../smart-victim.service';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare class SeriveProviderComponent implements OnInit {
|
8
|
+
private formBuilder;
|
9
|
+
dialogRef: MatDialogRef<SeriveProviderComponent>;
|
10
|
+
private _victimServicesComponent;
|
11
|
+
data: ProvidersDialogData;
|
12
|
+
spForm: UntypedFormGroup;
|
13
|
+
programProviders: [];
|
14
|
+
constructor(formBuilder: UntypedFormBuilder, dialogRef: MatDialogRef<SeriveProviderComponent>, _victimServicesComponent: NgcSmartVictimService, data: ProvidersDialogData);
|
15
|
+
cancel(): void;
|
16
|
+
ngOnInit(): void;
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SeriveProviderComponent, never>;
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SeriveProviderComponent, "app-service-provider", never, {}, {}, never, never, false, never>;
|
19
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { OnInit, AfterViewInit } from '@angular/core';
|
2
|
+
import { NgcSmartVictimService } from '../smart-victim.service';
|
3
|
+
import { VictimSafetyPlan, VictimServiceDetail, VictimServiceStatusHistory } from '../smart-victim.model';
|
4
|
+
import { MatDialog } from '@angular/material/dialog';
|
5
|
+
import { CommonDialogService } from '.././common-dialog/common-dialog.service';
|
6
|
+
import { HttpClient } from '@angular/common/http';
|
7
|
+
import { LoginStaff } from '@csmart/ngc-smart-core';
|
8
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
9
|
+
import { SmartAuthService } from '@csmart/ngc-smart-core';
|
10
|
+
import { MatTableDataSource } from '@angular/material/table';
|
11
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
12
|
+
import * as i0 from "@angular/core";
|
13
|
+
export declare class VictimSafetyPlanComponent implements OnInit, AfterViewInit {
|
14
|
+
private _victimServicesComponent;
|
15
|
+
private commonDialogService;
|
16
|
+
private http;
|
17
|
+
dialog: MatDialog;
|
18
|
+
private route;
|
19
|
+
private router;
|
20
|
+
snackBar: MatSnackBar;
|
21
|
+
private smartAuthService;
|
22
|
+
loginStaff: LoginStaff;
|
23
|
+
offenderId: number;
|
24
|
+
hiddenDetailFlag: boolean;
|
25
|
+
hiddenAddNewFlag: boolean;
|
26
|
+
safetyPlans: VictimSafetyPlan[];
|
27
|
+
safetyPlan: VictimSafetyPlan;
|
28
|
+
editSafetyPlan: VictimSafetyPlan;
|
29
|
+
errorMessage: string;
|
30
|
+
contactTypes: any[];
|
31
|
+
contactPurposes: any[];
|
32
|
+
victimServiceTypes: any[];
|
33
|
+
victimSafetyPlans: VictimSafetyPlan[];
|
34
|
+
victimServiceStatus: any[];
|
35
|
+
victimServiceStatusHistories: VictimServiceStatusHistory[];
|
36
|
+
queryString: string;
|
37
|
+
victimServiceDetail: VictimServiceDetail[];
|
38
|
+
myVictimServiceId: number;
|
39
|
+
result: any;
|
40
|
+
victimName: string;
|
41
|
+
staffId: number;
|
42
|
+
victimId: number;
|
43
|
+
private sub;
|
44
|
+
safetyPlanDataSource: MatTableDataSource<unknown, import("@angular/material/paginator").MatPaginator>;
|
45
|
+
constructor(_victimServicesComponent: NgcSmartVictimService, commonDialogService: CommonDialogService, http: HttpClient, dialog: MatDialog, route: ActivatedRoute, router: Router, snackBar: MatSnackBar, smartAuthService: SmartAuthService);
|
46
|
+
ngAfterViewInit(): void;
|
47
|
+
ngOnInit(): void;
|
48
|
+
goToSafetyPlanDetail(victimServiceId: number): void;
|
49
|
+
onAddNew(): void;
|
50
|
+
onDeleteSafetyPlan(victimServiceId: number): void;
|
51
|
+
back(): void;
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VictimSafetyPlanComponent, never>;
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VictimSafetyPlanComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
54
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { NgcSmartVictimService } from '../smart-victim.service';
|
3
|
+
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
4
|
+
import { VictimSafetyPlan, VictimServiceDetail, VictimServiceTypeProgramProviderModel, ProviderListCollectionModel } from '../smart-victim.model';
|
5
|
+
import { MatDialog } from '@angular/material/dialog';
|
6
|
+
import { CommonDialogService } from '.././common-dialog/common-dialog.service';
|
7
|
+
import { HttpClient } from '@angular/common/http';
|
8
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
9
|
+
import { LoginStaff } from '@csmart/ngc-smart-core';
|
10
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
11
|
+
import { MatTableDataSource } from '@angular/material/table';
|
12
|
+
import * as i0 from "@angular/core";
|
13
|
+
export declare class VictimSafetyPlanDetailComponent implements OnInit {
|
14
|
+
dialog: MatDialog;
|
15
|
+
private _victimServicesComponent;
|
16
|
+
private http;
|
17
|
+
snackBar: MatSnackBar;
|
18
|
+
private route;
|
19
|
+
private router;
|
20
|
+
private commonDialogService;
|
21
|
+
private formBuilder;
|
22
|
+
hiddenAddNewFlag: boolean;
|
23
|
+
safetyPlans: VictimSafetyPlan[];
|
24
|
+
safetyPlan: VictimSafetyPlan;
|
25
|
+
editSafetyPlan: VictimSafetyPlan;
|
26
|
+
errorMessage: string;
|
27
|
+
contactTypes: any[];
|
28
|
+
contactPurposes: any[];
|
29
|
+
victimServiceTypes: any[];
|
30
|
+
victimSafetyPlans: VictimSafetyPlan[];
|
31
|
+
victimServiceStatus: any[];
|
32
|
+
providerList: VictimServiceTypeProgramProviderModel[];
|
33
|
+
providerListCollection: ProviderListCollectionModel[];
|
34
|
+
victimServiceDetail: VictimServiceDetail[];
|
35
|
+
indx: any;
|
36
|
+
serviceCheck: any[];
|
37
|
+
victimName: string;
|
38
|
+
isDisplay: boolean;
|
39
|
+
staffId: number;
|
40
|
+
victimId: number;
|
41
|
+
victimServiceId: number;
|
42
|
+
offenderId: number;
|
43
|
+
loginStaff: LoginStaff;
|
44
|
+
private sub;
|
45
|
+
result: any;
|
46
|
+
victimServiceStatusHistoriesDataSource: MatTableDataSource<unknown, import("@angular/material/paginator").MatPaginator>;
|
47
|
+
providerId: string;
|
48
|
+
selected: string;
|
49
|
+
spForm: UntypedFormGroup;
|
50
|
+
constructor(dialog: MatDialog, _victimServicesComponent: NgcSmartVictimService, http: HttpClient, snackBar: MatSnackBar, route: ActivatedRoute, router: Router, commonDialogService: CommonDialogService, formBuilder: UntypedFormBuilder);
|
51
|
+
private initForm;
|
52
|
+
ngOnInit(): void;
|
53
|
+
isInArray(providerListCollectionKey: string, serviceTypeName: string, event: any): void;
|
54
|
+
loadProvider(): void;
|
55
|
+
evaluateSelection(victimServiceTypeId: string): boolean;
|
56
|
+
savePlanProvider(victimServiceTypeId: string, victimProgramProviderId: string): void;
|
57
|
+
deleteProvider(victimProgramProviderId: string): void;
|
58
|
+
saveSafetyPlan(): void;
|
59
|
+
back(): void;
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VictimSafetyPlanDetailComponent, never>;
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VictimSafetyPlanDetailComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
62
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "@angular/material/button";
|
3
|
+
import * as i2 from "@angular/material/card";
|
4
|
+
import * as i3 from "@angular/material/checkbox";
|
5
|
+
import * as i4 from "@angular/material/toolbar";
|
6
|
+
import * as i5 from "@angular/material/select";
|
7
|
+
import * as i6 from "@angular/material/datepicker";
|
8
|
+
import * as i7 from "@angular/material/core";
|
9
|
+
import * as i8 from "@angular/material/dialog";
|
10
|
+
import * as i9 from "@angular/material/tabs";
|
11
|
+
import * as i10 from "@angular/material/list";
|
12
|
+
import * as i11 from "@angular/material/input";
|
13
|
+
import * as i12 from "@angular/material/stepper";
|
14
|
+
import * as i13 from "@angular/platform-browser/animations";
|
15
|
+
import * as i14 from "@angular/material/grid-list";
|
16
|
+
import * as i15 from "@angular/material/progress-spinner";
|
17
|
+
import * as i16 from "@angular/material/table";
|
18
|
+
import * as i17 from "@angular/material/sidenav";
|
19
|
+
import * as i18 from "@angular/material/radio";
|
20
|
+
import * as i19 from "@angular/material/icon";
|
21
|
+
import * as i20 from "@angular/material/slider";
|
22
|
+
import * as i21 from "@angular/material/chips";
|
23
|
+
import * as i22 from "@angular/material/snack-bar";
|
24
|
+
import * as i23 from "@angular/cdk/table";
|
25
|
+
import * as i24 from "@angular/material/sort";
|
26
|
+
import * as i25 from "@angular/material/paginator";
|
27
|
+
import * as i26 from "@angular/material/expansion";
|
28
|
+
import * as i27 from "@csmart/smart-ui";
|
29
|
+
export declare class SharedModule {
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
31
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.MatButtonModule, typeof i2.MatCardModule, typeof i3.MatCheckboxModule, typeof i4.MatToolbarModule, typeof i5.MatSelectModule, typeof i6.MatDatepickerModule, typeof i7.MatNativeDateModule, typeof i8.MatDialogModule, typeof i9.MatTabsModule, typeof i10.MatListModule, typeof i11.MatInputModule, typeof i12.MatStepperModule, typeof i13.BrowserAnimationsModule, typeof i14.MatGridListModule, typeof i15.MatProgressSpinnerModule, typeof i16.MatTableModule, typeof i17.MatSidenavModule, typeof i18.MatRadioModule, typeof i19.MatIconModule, typeof i20.MatSliderModule, typeof i21.MatChipsModule, typeof i22.MatSnackBarModule, typeof i23.CdkTableModule, typeof i24.MatSortModule, typeof i25.MatPaginatorModule, typeof i26.MatExpansionModule, typeof i7.MatRippleModule, typeof i27.SmartUiModule], [typeof i1.MatButtonModule, typeof i2.MatCardModule, typeof i3.MatCheckboxModule, typeof i4.MatToolbarModule, typeof i5.MatSelectModule, typeof i6.MatDatepickerModule, typeof i7.MatNativeDateModule, typeof i8.MatDialogModule, typeof i9.MatTabsModule, typeof i10.MatListModule, typeof i11.MatInputModule, typeof i12.MatStepperModule, typeof i13.BrowserAnimationsModule, typeof i14.MatGridListModule, typeof i15.MatProgressSpinnerModule, typeof i16.MatTableModule, typeof i17.MatSidenavModule, typeof i18.MatRadioModule, typeof i19.MatIconModule, typeof i20.MatSliderModule, typeof i21.MatChipsModule, typeof i22.MatSnackBarModule, typeof i23.CdkTableModule, typeof i24.MatSortModule, typeof i25.MatPaginatorModule, typeof i26.MatExpansionModule, typeof i7.MatRippleModule, typeof i27.SmartUiModule]>;
|
32
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
33
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { ValidatorFn } from '@angular/forms';
|
2
|
+
export declare function dateValidator(): ValidatorFn;
|
3
|
+
export declare function passDateValidator(): ValidatorFn;
|
4
|
+
export declare function dateLessThan(dateField1: string, dateField2: string, validatorField: {
|
5
|
+
[key: string]: boolean;
|
6
|
+
}): ValidatorFn;
|
7
|
+
export declare function greaterLessThan(dateField1: string, dateField2: string, validatorField: {
|
8
|
+
[key: string]: boolean;
|
9
|
+
}): ValidatorFn;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './date.validator';
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class SmartVictimDeleteConfirmComponent implements OnInit {
|
5
|
+
dialogRef: MatDialogRef<SmartVictimDeleteConfirmComponent>;
|
6
|
+
data: any;
|
7
|
+
constructor(dialogRef: MatDialogRef<SmartVictimDeleteConfirmComponent>, data: any);
|
8
|
+
onNoClick(): void;
|
9
|
+
ngOnInit(): void;
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartVictimDeleteConfirmComponent, never>;
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartVictimDeleteConfirmComponent, "csmart-victim-delete-confirm", never, {}, {}, never, never, false, never>;
|
12
|
+
}
|
@@ -0,0 +1,129 @@
|
|
1
|
+
import { OnInit, OnChanges, EventEmitter } from '@angular/core';
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup, UntypedFormControl, ValidatorFn } from '@angular/forms';
|
3
|
+
import { MatRadioChange } from '@angular/material/radio';
|
4
|
+
import { Victim, VictimDrugUse, Contact, VictimAdvocate, VictimGuardian, VictimWeaponUse, VictimSupport } from '../smart-victim.model';
|
5
|
+
import { NgcSmartVictimService } from '../smart-victim.service';
|
6
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
7
|
+
import { CommonDialogService } from '.././common-dialog/common-dialog.service';
|
8
|
+
import { DatePipe, Location } from '@angular/common';
|
9
|
+
import { MatTableDataSource } from '@angular/material/table';
|
10
|
+
import { AddressValidators, SmartAddressComponent } from '@csmart/ngc-smart-address';
|
11
|
+
import { MatDialog } from '@angular/material/dialog';
|
12
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
13
|
+
import { ChangeDetectorRef } from '@angular/core';
|
14
|
+
import * as i0 from "@angular/core";
|
15
|
+
export interface BooleanFn {
|
16
|
+
(): boolean;
|
17
|
+
}
|
18
|
+
export interface StringFn {
|
19
|
+
(): string;
|
20
|
+
}
|
21
|
+
export declare function conditionalValidator(predicate: BooleanFn, validator: ValidatorFn, errorNamespace?: string): ValidatorFn;
|
22
|
+
export declare function stringConditionalValidator(predicate: StringFn, validator: ValidatorFn, errorNamespace?: string): ValidatorFn;
|
23
|
+
export declare class SmartVictimDetailComponent implements OnInit, OnChanges {
|
24
|
+
private location;
|
25
|
+
private formBuilder;
|
26
|
+
private dialog;
|
27
|
+
private route;
|
28
|
+
private router;
|
29
|
+
snackBar: MatSnackBar;
|
30
|
+
private commonDialogService;
|
31
|
+
private victimService;
|
32
|
+
private changeDetectorRefs;
|
33
|
+
victimDetail: Victim;
|
34
|
+
staffId: number;
|
35
|
+
offenderId: number;
|
36
|
+
isIntake: boolean;
|
37
|
+
onSave: EventEmitter<any>;
|
38
|
+
onCancel: EventEmitter<any>;
|
39
|
+
addressComponent: SmartAddressComponent;
|
40
|
+
victimId: number;
|
41
|
+
victimForm: UntypedFormGroup;
|
42
|
+
drugs: any;
|
43
|
+
victimSupportTypes: any;
|
44
|
+
prefixes: any;
|
45
|
+
suffixes: any;
|
46
|
+
relationshipTypes: any;
|
47
|
+
genders: any;
|
48
|
+
docketlist: any;
|
49
|
+
weaponTypes: any;
|
50
|
+
flagOption: any;
|
51
|
+
selectedWeaponTypes: any;
|
52
|
+
selectedDrugs: any;
|
53
|
+
id: any;
|
54
|
+
hidden: boolean;
|
55
|
+
private sub;
|
56
|
+
victimAdvocate: VictimAdvocate;
|
57
|
+
victimGuardian: VictimGuardian;
|
58
|
+
victimWeaponUse: VictimWeaponUse;
|
59
|
+
victimSupport: VictimSupport;
|
60
|
+
victimDrugUse: VictimDrugUse;
|
61
|
+
result: any;
|
62
|
+
editMode: any;
|
63
|
+
guardianTabFlag: boolean;
|
64
|
+
advocateTabFlag: boolean;
|
65
|
+
commonChildrenDivFlag: boolean;
|
66
|
+
cpoExpirationDivFlag: boolean;
|
67
|
+
supportInPlaceDivFlag: boolean;
|
68
|
+
weaponInvolvedDivFlag: boolean;
|
69
|
+
drugUseDivFlag: boolean;
|
70
|
+
showDelete: boolean;
|
71
|
+
addressId: number;
|
72
|
+
advocateAddressId: number;
|
73
|
+
guardianAddressId: number;
|
74
|
+
datePipe: DatePipe;
|
75
|
+
emailPattern: string;
|
76
|
+
phoneNumber: string;
|
77
|
+
editVictim: Victim;
|
78
|
+
victimAge: number;
|
79
|
+
otherWeaponFlag: boolean;
|
80
|
+
otherDrugFlag: boolean;
|
81
|
+
contactDataSource: MatTableDataSource<unknown, import("@angular/material/paginator").MatPaginator>;
|
82
|
+
contactList: Contact[];
|
83
|
+
guardianPhoneExistFlag: boolean;
|
84
|
+
advocatePhoneExistFlag: boolean;
|
85
|
+
phoneValidationFlag: boolean;
|
86
|
+
guaridanNoPhoneChkFlag: boolean;
|
87
|
+
advocateNoPhoneChkFlag: boolean;
|
88
|
+
addressValidators: AddressValidators;
|
89
|
+
homePhoneControl: UntypedFormControl;
|
90
|
+
cellPhoneControl: UntypedFormControl;
|
91
|
+
workPhoneControl: UntypedFormControl;
|
92
|
+
guardianHomePhoneControl: UntypedFormControl;
|
93
|
+
guardianCellPhoneControl: UntypedFormControl;
|
94
|
+
guardianWorkPhoneControl: UntypedFormControl;
|
95
|
+
advocateHomePhoneControl: UntypedFormControl;
|
96
|
+
advocateCellPhoneControl: UntypedFormControl;
|
97
|
+
advocateWorkPhoneControl: UntypedFormControl;
|
98
|
+
emergencyContactPhoneControl: UntypedFormControl;
|
99
|
+
constructor(location: Location, formBuilder: UntypedFormBuilder, dialog: MatDialog, route: ActivatedRoute, router: Router, snackBar: MatSnackBar, commonDialogService: CommonDialogService, victimService: NgcSmartVictimService, changeDetectorRefs: ChangeDetectorRef);
|
100
|
+
private initForm;
|
101
|
+
private _getVictim;
|
102
|
+
ngOnChanges(): void;
|
103
|
+
onClear(): void;
|
104
|
+
showAddress(value: any): void;
|
105
|
+
onAddressChange(addressId: any): void;
|
106
|
+
onGuardianAddressChange(MyGuardianAddressId: any): void;
|
107
|
+
onAdvocateAddressChange(MyAdvocateAddressId: any): void;
|
108
|
+
cancel(): void;
|
109
|
+
ngOnInit(): void;
|
110
|
+
back(): void;
|
111
|
+
deleteVictim(): void;
|
112
|
+
radioMinorChange($event: MatRadioChange): void;
|
113
|
+
radioAdvocateChange($event: MatRadioChange): void;
|
114
|
+
radioCicChange($event: MatRadioChange): void;
|
115
|
+
setValidators(type: any): void;
|
116
|
+
radioSupportChange($event: MatRadioChange): void;
|
117
|
+
radioWeaponChange($event: MatRadioChange): void;
|
118
|
+
radioDrugChange($event: MatRadioChange): void;
|
119
|
+
radioCpoChange($event: MatRadioChange): void;
|
120
|
+
handleDOBChange($event: any): void;
|
121
|
+
checkOtherWeapon(WeaponUse: any): void;
|
122
|
+
checkOtherDrug(DrugUse: any): void;
|
123
|
+
saveVictim(): void;
|
124
|
+
addContact(): void;
|
125
|
+
formatLabel(value: number): number;
|
126
|
+
update(): void;
|
127
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartVictimDetailComponent, never>;
|
128
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartVictimDetailComponent, "csmart-victim-detail", never, { "victimDetail": { "alias": "victimDetail"; "required": false; }; "staffId": { "alias": "staffId"; "required": false; }; "offenderId": { "alias": "offenderId"; "required": false; }; "isIntake": { "alias": "isIntake"; "required": false; }; }, { "onSave": "onSave"; "onCancel": "onCancel"; }, never, never, false, never>;
|
129
|
+
}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import { OnInit, OnChanges, AfterViewInit } from '@angular/core';
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
3
|
+
import { MatTableDataSource } from '@angular/material/table';
|
4
|
+
import { MatSort } from '@angular/material/sort';
|
5
|
+
import { MatDialog } from '@angular/material/dialog';
|
6
|
+
import { SelectedOffender, SmartAccessControlConfig } from "@csmart/ngc-smart-core";
|
7
|
+
import { NgcSmartVictimService } from './smart-victim.service';
|
8
|
+
import { VictimListFilter, Victim } from './smart-victim.model';
|
9
|
+
import { IntakeServicesComponent } from './intake.service';
|
10
|
+
import { MatPaginator } from '@angular/material/paginator';
|
11
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
12
|
+
import * as i0 from "@angular/core";
|
13
|
+
export declare class NgcSmartVictimComponent implements OnInit, OnChanges, AfterViewInit {
|
14
|
+
private dialog;
|
15
|
+
private victimService;
|
16
|
+
private router;
|
17
|
+
private route;
|
18
|
+
private snackBar;
|
19
|
+
private intakeService;
|
20
|
+
private smartWarrantUrl;
|
21
|
+
private document;
|
22
|
+
offenderId: number;
|
23
|
+
staffId: number;
|
24
|
+
staffRole: string;
|
25
|
+
showCaseNote: string;
|
26
|
+
showSafetyPlan: string;
|
27
|
+
showAdd: boolean;
|
28
|
+
showEdit: string;
|
29
|
+
showRelationshipColumn: boolean;
|
30
|
+
showOffenderNameColumn: boolean;
|
31
|
+
showOffenderPhoneColumn: boolean;
|
32
|
+
showSearchForm: boolean;
|
33
|
+
accessByModule: string;
|
34
|
+
intakeFlag: string;
|
35
|
+
appModuleId: string;
|
36
|
+
activatedRoute: ActivatedRoute;
|
37
|
+
paginator: MatPaginator;
|
38
|
+
sort: MatSort;
|
39
|
+
displayedColumns: string[];
|
40
|
+
victims: Victim[];
|
41
|
+
victimDetail: Victim;
|
42
|
+
showDetail: boolean;
|
43
|
+
victimListFilter: VictimListFilter;
|
44
|
+
victimListDataSource: MatTableDataSource<unknown, MatPaginator>;
|
45
|
+
doSpin: boolean;
|
46
|
+
showListFlag: boolean;
|
47
|
+
msg: string;
|
48
|
+
selectedOffender: SelectedOffender;
|
49
|
+
isIntake: boolean;
|
50
|
+
updateAccessControlConfig: SmartAccessControlConfig;
|
51
|
+
createAccessControlConfig: SmartAccessControlConfig;
|
52
|
+
deleteAccessControlConfig: SmartAccessControlConfig;
|
53
|
+
constructor(dialog: MatDialog, victimService: NgcSmartVictimService, router: Router, route: ActivatedRoute, snackBar: MatSnackBar, intakeService: IntakeServicesComponent, smartWarrantUrl: string, document: any);
|
54
|
+
applyFilter(filterValue: string): void;
|
55
|
+
addRecord(): void;
|
56
|
+
editVictimDetail(record: any): void;
|
57
|
+
save(detail: Victim): void;
|
58
|
+
cancel(): void;
|
59
|
+
ngAfterViewInit(): void;
|
60
|
+
ngOnChanges(): void;
|
61
|
+
ngOnInit(): void;
|
62
|
+
formatPhoneNumber(phoneNumberString: any): string;
|
63
|
+
saveIntake(): void;
|
64
|
+
goToCaseNote(victimId: number): void;
|
65
|
+
goToSaftyPlan(victimId: number): void;
|
66
|
+
getVictimList(filter: VictimListFilter): void;
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgcSmartVictimComponent, never>;
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgcSmartVictimComponent, "csmart-victim", never, { "offenderId": { "alias": "offenderId"; "required": false; }; "staffId": { "alias": "staffId"; "required": false; }; "staffRole": { "alias": "staffRole"; "required": false; }; "showCaseNote": { "alias": "showCaseNote"; "required": false; }; "showSafetyPlan": { "alias": "showSafetyPlan"; "required": false; }; "showAdd": { "alias": "showAdd"; "required": false; }; "showEdit": { "alias": "showEdit"; "required": false; }; "showRelationshipColumn": { "alias": "showRelationshipColumn"; "required": false; }; "showOffenderNameColumn": { "alias": "showOffenderNameColumn"; "required": false; }; "showOffenderPhoneColumn": { "alias": "showOffenderPhoneColumn"; "required": false; }; "showSearchForm": { "alias": "showSearchForm"; "required": false; }; "accessByModule": { "alias": "accessByModule"; "required": false; }; "intakeFlag": { "alias": "intakeFlag"; "required": false; }; "appModuleId": { "alias": "appModuleId"; "required": false; }; "activatedRoute": { "alias": "activatedRoute"; "required": false; }; }, {}, never, never, false, never>;
|
69
|
+
}
|