@csmart/ngc-smart-victim 1.18.7 → 1.18.9
Sign up to get free protection for your applications and to get access to all the features.
- package/karma.conf.js +32 -0
- package/ng-package.json +7 -0
- package/package.json +6 -22
- package/src/lib/caseNote/caseNote.component.css +22 -0
- package/src/lib/caseNote/caseNote.component.html +188 -0
- package/src/lib/caseNote/caseNote.component.ts +265 -0
- package/src/lib/common-dialog/common-dialog.component.css +10 -0
- package/src/lib/common-dialog/common-dialog.component.html +23 -0
- package/src/lib/common-dialog/common-dialog.component.spec.ts +25 -0
- package/src/lib/common-dialog/common-dialog.component.ts +21 -0
- package/src/lib/common-dialog/common-dialog.module.ts +22 -0
- package/src/lib/common-dialog/common-dialog.service.ts +35 -0
- package/src/lib/contact/contact.component.css +22 -0
- package/src/lib/contact/contact.component.html +124 -0
- package/src/lib/contact/contact.component.ts +176 -0
- package/src/lib/email-notification.service.ts +42 -0
- package/src/lib/email.services.ts +51 -0
- package/src/lib/http.service.ts +34 -0
- package/src/lib/intake.service.ts +82 -0
- package/src/lib/loader.service.ts +11 -0
- package/src/lib/safetyPlan/serviceProvider.component.ts +94 -0
- package/src/lib/safetyPlan/victimSafetyPlan.component.css +27 -0
- package/src/lib/safetyPlan/victimSafetyPlan.component.html +85 -0
- package/src/lib/safetyPlan/victimSafetyPlan.component.ts +178 -0
- package/src/lib/safetyPlan/victimSafetyPlanDetail.component.html +234 -0
- package/src/lib/safetyPlan/victimSafetyPlanDetail.component.ts +492 -0
- package/src/lib/shared/app.shared.module.ts +111 -0
- package/src/lib/shared/validators/date.validator.ts +73 -0
- package/src/lib/shared/validators/index.ts +1 -0
- package/src/lib/smart-victim-delete-confirm.component.ts +35 -0
- package/src/lib/smart-victim-detail/smart-victim-detail.component.css +43 -0
- package/src/lib/smart-victim-detail/smart-victim-detail.component.html +869 -0
- package/src/lib/smart-victim-detail/smart-victim-detail.component.spec.ts +25 -0
- package/src/lib/smart-victim-detail/smart-victim-detail.component.ts +1387 -0
- package/src/lib/smart-victim.component.css +245 -0
- package/src/lib/smart-victim.component.html +132 -0
- package/src/lib/smart-victim.component.spec.ts +25 -0
- package/src/lib/smart-victim.component.ts +333 -0
- package/src/lib/smart-victim.model.ts +301 -0
- package/src/lib/smart-victim.module.ts +110 -0
- package/src/lib/smart-victim.service.spec.ts +12 -0
- package/src/lib/smart-victim.service.ts +557 -0
- package/src/lib/victim-routing.module.ts +35 -0
- package/{lib/victimSearch/VictimSearchFilter.d.ts → src/lib/victimSearch/VictimSearchFilter.ts} +9 -7
- package/src/lib/victimSearch/victimSearchForm.component.html +35 -0
- package/src/lib/victimSearch/victimSearchForm.component.ts +41 -0
- package/{public-api.d.ts → src/public-api.ts} +12 -7
- package/src/test.ts +16 -0
- package/tsconfig.lib.json +36 -0
- package/tsconfig.spec.json +17 -0
- package/tslint.json +17 -0
- package/esm2022/csmart-ngc-smart-victim.mjs +0 -5
- package/esm2022/lib/caseNote/caseNote.component.mjs +0 -194
- package/esm2022/lib/common-dialog/common-dialog.component.mjs +0 -23
- package/esm2022/lib/common-dialog/common-dialog.module.mjs +0 -34
- package/esm2022/lib/common-dialog/common-dialog.service.mjs +0 -33
- package/esm2022/lib/contact/contact.component.mjs +0 -140
- package/esm2022/lib/email.services.mjs +0 -42
- package/esm2022/lib/intake.service.mjs +0 -57
- package/esm2022/lib/safetyPlan/serviceProvider.component.mjs +0 -99
- package/esm2022/lib/safetyPlan/victimSafetyPlan.component.mjs +0 -116
- package/esm2022/lib/safetyPlan/victimSafetyPlanDetail.component.mjs +0 -340
- package/esm2022/lib/shared/app.shared.module.mjs +0 -215
- package/esm2022/lib/shared/validators/date.validator.mjs +0 -59
- package/esm2022/lib/shared/validators/index.mjs +0 -2
- package/esm2022/lib/smart-victim-delete-confirm.component.mjs +0 -44
- package/esm2022/lib/smart-victim-detail/smart-victim-detail.component.mjs +0 -1104
- package/esm2022/lib/smart-victim.component.mjs +0 -316
- package/esm2022/lib/smart-victim.model.mjs +0 -133
- package/esm2022/lib/smart-victim.module.mjs +0 -128
- package/esm2022/lib/smart-victim.service.mjs +0 -352
- package/esm2022/lib/victim-routing.module.mjs +0 -41
- package/esm2022/lib/victimSearch/VictimSearchFilter.mjs +0 -3
- package/esm2022/lib/victimSearch/victimSearchForm.component.mjs +0 -38
- package/esm2022/public-api.mjs +0 -11
- package/fesm2022/csmart-ngc-smart-victim.mjs +0 -3263
- package/fesm2022/csmart-ngc-smart-victim.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/caseNote/caseNote.component.d.ts +0 -51
- package/lib/common-dialog/common-dialog.component.d.ts +0 -14
- package/lib/common-dialog/common-dialog.module.d.ts +0 -8
- package/lib/common-dialog/common-dialog.service.d.ts +0 -11
- package/lib/contact/contact.component.d.ts +0 -40
- package/lib/email.services.d.ts +0 -11
- package/lib/intake.service.d.ts +0 -57
- package/lib/safetyPlan/serviceProvider.component.d.ts +0 -19
- package/lib/safetyPlan/victimSafetyPlan.component.d.ts +0 -54
- package/lib/safetyPlan/victimSafetyPlanDetail.component.d.ts +0 -62
- package/lib/shared/app.shared.module.d.ts +0 -33
- package/lib/shared/validators/date.validator.d.ts +0 -9
- package/lib/shared/validators/index.d.ts +0 -1
- package/lib/smart-victim-delete-confirm.component.d.ts +0 -12
- package/lib/smart-victim-detail/smart-victim-detail.component.d.ts +0 -129
- package/lib/smart-victim.component.d.ts +0 -69
- package/lib/smart-victim.model.d.ts +0 -205
- package/lib/smart-victim.module.d.ts +0 -49
- package/lib/smart-victim.service.d.ts +0 -71
- package/lib/victim-routing.module.d.ts +0 -7
- package/lib/victimSearch/victimSearchForm.component.d.ts +0 -14
package/index.d.ts
DELETED
@@ -1,51 +0,0 @@
|
|
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
|
-
}
|
@@ -1,14 +0,0 @@
|
|
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
|
-
}
|
@@ -1,8 +0,0 @@
|
|
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
|
-
}
|
@@ -1,11 +0,0 @@
|
|
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
|
-
}
|
@@ -1,40 +0,0 @@
|
|
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
|
-
}
|
package/lib/email.services.d.ts
DELETED
@@ -1,11 +0,0 @@
|
|
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
|
-
}
|
package/lib/intake.service.d.ts
DELETED
@@ -1,57 +0,0 @@
|
|
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
|
-
}
|
@@ -1,19 +0,0 @@
|
|
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
|
-
}
|
@@ -1,54 +0,0 @@
|
|
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
|
-
}
|
@@ -1,62 +0,0 @@
|
|
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
|
-
}
|
@@ -1,33 +0,0 @@
|
|
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
|
-
}
|
@@ -1,9 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './date.validator';
|
@@ -1,12 +0,0 @@
|
|
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
|
-
}
|
@@ -1,129 +0,0 @@
|
|
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
|
-
selectedVictimSupportTypes: any;
|
53
|
-
selectedDrugs: any;
|
54
|
-
id: any;
|
55
|
-
hidden: boolean;
|
56
|
-
private sub;
|
57
|
-
victimAdvocate: VictimAdvocate;
|
58
|
-
victimGuardian: VictimGuardian;
|
59
|
-
victimWeaponUse: VictimWeaponUse;
|
60
|
-
victimSupport: VictimSupport;
|
61
|
-
victimDrugUse: VictimDrugUse;
|
62
|
-
result: any;
|
63
|
-
editMode: any;
|
64
|
-
guardianTabFlag: boolean;
|
65
|
-
advocateTabFlag: boolean;
|
66
|
-
commonChildrenDivFlag: boolean;
|
67
|
-
cpoExpirationDivFlag: boolean;
|
68
|
-
supportInPlaceDivFlag: boolean;
|
69
|
-
weaponInvolvedDivFlag: boolean;
|
70
|
-
drugUseDivFlag: boolean;
|
71
|
-
showDelete: boolean;
|
72
|
-
addressId: number;
|
73
|
-
advocateAddressId: number;
|
74
|
-
guardianAddressId: number;
|
75
|
-
datePipe: DatePipe;
|
76
|
-
emailPattern: string;
|
77
|
-
phoneNumber: string;
|
78
|
-
editVictim: Victim;
|
79
|
-
victimAge: number;
|
80
|
-
otherWeaponFlag: boolean;
|
81
|
-
otherDrugFlag: boolean;
|
82
|
-
contactDataSource: MatTableDataSource<unknown, import("@angular/material/paginator").MatPaginator>;
|
83
|
-
contactList: Contact[];
|
84
|
-
guardianPhoneExistFlag: boolean;
|
85
|
-
advocatePhoneExistFlag: boolean;
|
86
|
-
phoneValidationFlag: boolean;
|
87
|
-
guaridanNoPhoneChkFlag: boolean;
|
88
|
-
advocateNoPhoneChkFlag: boolean;
|
89
|
-
addressValidators: AddressValidators;
|
90
|
-
homePhoneControl: UntypedFormControl;
|
91
|
-
cellPhoneControl: UntypedFormControl;
|
92
|
-
workPhoneControl: UntypedFormControl;
|
93
|
-
guardianHomePhoneControl: UntypedFormControl;
|
94
|
-
guardianCellPhoneControl: UntypedFormControl;
|
95
|
-
guardianWorkPhoneControl: UntypedFormControl;
|
96
|
-
advocateHomePhoneControl: UntypedFormControl;
|
97
|
-
advocateCellPhoneControl: UntypedFormControl;
|
98
|
-
advocateWorkPhoneControl: UntypedFormControl;
|
99
|
-
emergencyContactPhoneControl: UntypedFormControl;
|
100
|
-
constructor(location: Location, formBuilder: UntypedFormBuilder, dialog: MatDialog, route: ActivatedRoute, router: Router, snackBar: MatSnackBar, commonDialogService: CommonDialogService, victimService: NgcSmartVictimService, changeDetectorRefs: ChangeDetectorRef);
|
101
|
-
private initForm;
|
102
|
-
private _getVictim;
|
103
|
-
ngOnChanges(): void;
|
104
|
-
onClear(): void;
|
105
|
-
showAddress(value: any): void;
|
106
|
-
onAddressChange(addressId: any): void;
|
107
|
-
onGuardianAddressChange(MyGuardianAddressId: any): void;
|
108
|
-
onAdvocateAddressChange(MyAdvocateAddressId: any): void;
|
109
|
-
cancel(): void;
|
110
|
-
ngOnInit(): void;
|
111
|
-
back(): void;
|
112
|
-
deleteVictim(): void;
|
113
|
-
radioMinorChange($event: MatRadioChange): void;
|
114
|
-
radioAdvocateChange($event: MatRadioChange): void;
|
115
|
-
radioCicChange($event: MatRadioChange): void;
|
116
|
-
setValidators(type: any): void;
|
117
|
-
radioSupportChange($event: MatRadioChange): void;
|
118
|
-
radioWeaponChange($event: MatRadioChange): void;
|
119
|
-
radioDrugChange($event: MatRadioChange): void;
|
120
|
-
radioCpoChange($event: MatRadioChange): void;
|
121
|
-
handleDOBChange($event: any): void;
|
122
|
-
checkOtherWeapon(WeaponUse: any): void;
|
123
|
-
checkOtherDrug(DrugUse: any): void;
|
124
|
-
saveVictim(): void;
|
125
|
-
addContact(): void;
|
126
|
-
formatLabel(value: number): number;
|
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
|
-
}
|
@@ -1,69 +0,0 @@
|
|
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
|
-
}
|