@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
@@ -0,0 +1,35 @@
|
|
1
|
+
import { Component, OnInit, Inject } from '@angular/core';
|
2
|
+
import {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material/dialog';
|
3
|
+
|
4
|
+
@Component({
|
5
|
+
selector: 'csmart-victim-delete-confirm',
|
6
|
+
template: `
|
7
|
+
<h1 mat-dialog-title>Delete Confirmation</h1>
|
8
|
+
<div mat-dialog-content>
|
9
|
+
<p>Are you sure you want to delete this item?</p>
|
10
|
+
</div>
|
11
|
+
<div mat-dialog-actions class="actions">
|
12
|
+
<button mat-flat-button color="primary" (click)="onNoClick()">No</button>
|
13
|
+
<button mat-flat-button color="warn" [mat-dialog-close]='"YES"' cdkFocusInitial>Yes</button>
|
14
|
+
</div>
|
15
|
+
`,
|
16
|
+
styles: [`
|
17
|
+
.actions{
|
18
|
+
display: flex;
|
19
|
+
justify-content: space-between;
|
20
|
+
}
|
21
|
+
`]
|
22
|
+
})
|
23
|
+
export class SmartVictimDeleteConfirmComponent implements OnInit {
|
24
|
+
|
25
|
+
constructor( public dialogRef: MatDialogRef<SmartVictimDeleteConfirmComponent>,
|
26
|
+
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
27
|
+
|
28
|
+
onNoClick(): void {
|
29
|
+
this.dialogRef.close();
|
30
|
+
}
|
31
|
+
|
32
|
+
ngOnInit() {
|
33
|
+
}
|
34
|
+
|
35
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
|
2
|
+
mat-form-field {
|
3
|
+
width: 100%;
|
4
|
+
}
|
5
|
+
.container{
|
6
|
+
margin: 16px;
|
7
|
+
display: grid;
|
8
|
+
grid-template-columns: repeat(2, 1fr);
|
9
|
+
grid-gap: 10px;
|
10
|
+
grid-auto-rows: minmax(50px, auto);
|
11
|
+
justify-items: stretch;
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
@media only screen and (max-width: 1120px) {
|
16
|
+
.container{
|
17
|
+
display: grid;
|
18
|
+
grid-template-columns: 1fr 1fr;
|
19
|
+
grid-row-gap: 15px;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
@media only screen and (max-width: 675px) {
|
24
|
+
.container{
|
25
|
+
display: flex;
|
26
|
+
flex-direction: column;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
#outer
|
31
|
+
{
|
32
|
+
width:100%;
|
33
|
+
text-align: center;
|
34
|
+
}
|
35
|
+
.inner
|
36
|
+
{
|
37
|
+
display: inline-block;
|
38
|
+
}
|
39
|
+
.tp-radio-group {
|
40
|
+
display:flex ;
|
41
|
+
justify-content: space-between;
|
42
|
+
}
|
43
|
+
|