@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
@@ -1,35 +0,0 @@
|
|
1
|
-
import { MsalGuard } from '@azure/msal-angular';
|
2
|
-
import { SmartErrorComponent } from '@csmart/ngc-smart-core';
|
3
|
-
import { LoginStaffResolverService, SelectedOffenderResolverService} from '@csmart/ngc-smart-core';
|
4
|
-
import { Routes, RouterModule } from '@angular/router';
|
5
|
-
import { NgModule } from '@angular/core';
|
6
|
-
import { CaseNoteComponent } from './caseNote/caseNote.component';
|
7
|
-
import { ContactComponent } from './contact/contact.component';
|
8
|
-
import { VictimSafetyPlanComponent } from './safetyPlan/victimSafetyPlan.component';
|
9
|
-
import { VictimSafetyPlanDetailComponent } from './safetyPlan/victimSafetyPlanDetail.component';
|
10
|
-
import { SmartVictimDetailComponent } from './smart-victim-detail/smart-victim-detail.component';
|
11
|
-
import { NgcSmartVictimComponent} from './smart-victim.component'
|
12
|
-
|
13
|
-
const routes: Routes = [
|
14
|
-
|
15
|
-
//{path: 'casenote/:victimId', component: CaseNoteComponent,pathMatch: 'full',canActivate: [MsalGuard],resolve: { loginStaff: LoginStaffResolverService } },
|
16
|
-
{path: 'casenote/:victimId/:offenderId', component: CaseNoteComponent,pathMatch: 'full',canActivate: [MsalGuard],resolve: { loginStaff: LoginStaffResolverService } },
|
17
|
-
{path: 'saftyPlan/:victimId', component: VictimSafetyPlanComponent,pathMatch: 'full',resolve: { loginStaff: LoginStaffResolverService } },
|
18
|
-
{path: 'saftyPlanDetail/:victimServiceId/:victimId', component: VictimSafetyPlanDetailComponent,pathMatch: 'full',resolve: { loginStaff: LoginStaffResolverService } },
|
19
|
-
{path: 'victimList', component: NgcSmartVictimComponent, resolve: { loginStaff: LoginStaffResolverService, selectedOffender: SelectedOffenderResolverService} },
|
20
|
-
{path: 'victimHome', component: NgcSmartVictimComponent, resolve: { loginStaff: LoginStaffResolverService, selectedOffender: SelectedOffenderResolverService} },
|
21
|
-
{path: 'victimContact/:victimId', component: ContactComponent, resolve: { loginStaff: LoginStaffResolverService, selectedOffender: SelectedOffenderResolverService} },
|
22
|
-
{path: 'victimDetail/:victimId', component: SmartVictimDetailComponent, resolve: { loginStaff: LoginStaffResolverService, selectedOffender: SelectedOffenderResolverService} },
|
23
|
-
{path: 'smart-error', component: SmartErrorComponent }
|
24
|
-
];
|
25
|
-
|
26
|
-
@NgModule({
|
27
|
-
imports: [
|
28
|
-
RouterModule.forChild(routes)
|
29
|
-
],
|
30
|
-
exports: [
|
31
|
-
RouterModule
|
32
|
-
]
|
33
|
-
})
|
34
|
-
export class VictimRoutingModule {
|
35
|
-
}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
<form name="victimSearchFrom" #From="ngForm">
|
2
|
-
<mat-expansion-panel [expanded]="true">
|
3
|
-
<mat-expansion-panel-header>
|
4
|
-
<mat-panel-title>
|
5
|
-
Search for Victims
|
6
|
-
</mat-panel-title>
|
7
|
-
</mat-expansion-panel-header>
|
8
|
-
<div class="victimSearch">
|
9
|
-
<mat-form-field>
|
10
|
-
<input matInput placeholder="Victim Last Name" [(ngModel)]="filter.lastName" name="lastName" id="lastName">
|
11
|
-
</mat-form-field>
|
12
|
-
<mat-form-field>
|
13
|
-
<input matInput placeholder="Victim First Name" [(ngModel)]="filter.firstName" name="firstName" id="firstName">
|
14
|
-
</mat-form-field>
|
15
|
-
<mat-form-field>
|
16
|
-
<input matInput placeholder="Victim Date of Birth" type="date" [(ngModel)]="filter.birthDate" name="birthDate" id="birthDate">
|
17
|
-
</mat-form-field>
|
18
|
-
<mat-form-field>
|
19
|
-
<input matInput placeholder="Offender PDID" [(ngModel)]="filter.pdid" name="pdid" id="pdid">
|
20
|
-
</mat-form-field>
|
21
|
-
<mat-form-field>
|
22
|
-
<input matInput placeholder="Offender CSOSA #"[(ngModel)]="filter.offenderId" name="offenderId" id="offenderId">
|
23
|
-
</mat-form-field>
|
24
|
-
|
25
|
-
|
26
|
-
<section>
|
27
|
-
<button id="victimSearchButton" mat-stroked-button color="primary" (click)="onChange()">Search</button>
|
28
|
-
<span style="padding-right: 5px;"></span>
|
29
|
-
<button mat-stroked-button color="primary" type="reset" value="Reset">Clear Changes</button>
|
30
|
-
</section>
|
31
|
-
</div>
|
32
|
-
</mat-expansion-panel>
|
33
|
-
</form>
|
34
|
-
|
35
|
-
|
@@ -1,41 +0,0 @@
|
|
1
|
-
import { Component, OnInit, ViewEncapsulation,
|
2
|
-
Output, EventEmitter } from '@angular/core';
|
3
|
-
|
4
|
-
import { VictimListFilter } from './VictimSearchFilter';
|
5
|
-
|
6
|
-
@Component({
|
7
|
-
selector: 'app-victim-search-form',
|
8
|
-
templateUrl: './victimSearchForm.component.html',
|
9
|
-
styleUrls: ['../smart-victim.component.css'],
|
10
|
-
encapsulation: ViewEncapsulation.None
|
11
|
-
})
|
12
|
-
export class VictimSearchFormComponent implements OnInit {
|
13
|
-
|
14
|
-
@Output() onSearch:EventEmitter<Object>=new EventEmitter<Object>();
|
15
|
-
change: EventEmitter<VictimListFilter> = new EventEmitter<VictimListFilter>();
|
16
|
-
|
17
|
-
filter: VictimListFilter = new VictimListFilter();
|
18
|
-
|
19
|
-
constructor() { }
|
20
|
-
|
21
|
-
ngOnInit() {
|
22
|
-
|
23
|
-
}
|
24
|
-
|
25
|
-
ngAfterViewInit() {
|
26
|
-
|
27
|
-
// var element = <HTMLInputElement> document.getElementById("victimSearchButton");
|
28
|
-
// element.disabled = true;
|
29
|
-
// setTimeout(function() {
|
30
|
-
// element.disabled = false;
|
31
|
-
// }, 10000);
|
32
|
-
|
33
|
-
}
|
34
|
-
onChange() {
|
35
|
-
console.log('this.filter in serach form.');
|
36
|
-
console.log(this.filter);
|
37
|
-
|
38
|
-
this.onSearch.emit(this.filter);
|
39
|
-
|
40
|
-
}
|
41
|
-
}
|
package/src/test.ts
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
2
|
-
|
3
|
-
import 'core-js/es7/reflect';
|
4
|
-
import 'zone.js/dist/zone';
|
5
|
-
import 'zone.js/dist/zone-testing';
|
6
|
-
import { getTestBed } from '@angular/core/testing';
|
7
|
-
import {
|
8
|
-
BrowserDynamicTestingModule,
|
9
|
-
platformBrowserDynamicTesting
|
10
|
-
} from '@angular/platform-browser-dynamic/testing';
|
11
|
-
|
12
|
-
// First, initialize the Angular testing environment.
|
13
|
-
getTestBed().initTestEnvironment(
|
14
|
-
BrowserDynamicTestingModule,
|
15
|
-
platformBrowserDynamicTesting()
|
16
|
-
);
|
package/tsconfig.lib.json
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"extends": "../../tsconfig.json",
|
3
|
-
"compilerOptions": {
|
4
|
-
"outDir": "../../out-tsc/lib",
|
5
|
-
"module": "es2015",
|
6
|
-
"moduleResolution": "node",
|
7
|
-
"declaration": true,
|
8
|
-
"sourceMap": true,
|
9
|
-
"inlineSources": true,
|
10
|
-
"emitDecoratorMetadata": true,
|
11
|
-
"experimentalDecorators": true,
|
12
|
-
"importHelpers": true,
|
13
|
-
"types": [],
|
14
|
-
"lib": [
|
15
|
-
"dom",
|
16
|
-
"es2018",
|
17
|
-
"esnext.asynciterable"
|
18
|
-
],
|
19
|
-
"paths": {
|
20
|
-
"ngc-smart-victim/*": ["dist/libs/*"]
|
21
|
-
}
|
22
|
-
},
|
23
|
-
"angularCompilerOptions": {
|
24
|
-
"annotateForClosureCompiler": true,
|
25
|
-
"skipTemplateCodegen": true,
|
26
|
-
"strictMetadataEmit": true,
|
27
|
-
"fullTemplateTypeCheck": true,
|
28
|
-
"strictInjectionParameters": true,
|
29
|
-
"enableResourceInlining": true,
|
30
|
-
"compilationMode": "partial"
|
31
|
-
},
|
32
|
-
"exclude": [
|
33
|
-
"src/test.ts",
|
34
|
-
"**/*.spec.ts"
|
35
|
-
]
|
36
|
-
}
|
package/tsconfig.spec.json
DELETED
package/tslint.json
DELETED