@csmart/ngc-smart-victim 1.14.43 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. package/{esm2020 → esm2022}/csmart-ngc-smart-victim.mjs +4 -4
  2. package/esm2022/lib/caseNote/caseNote.component.mjs +194 -0
  3. package/esm2022/lib/common-dialog/common-dialog.component.mjs +23 -0
  4. package/{esm2020 → esm2022}/lib/common-dialog/common-dialog.module.mjs +34 -34
  5. package/{esm2020 → esm2022}/lib/common-dialog/common-dialog.service.mjs +33 -33
  6. package/esm2022/lib/contact/contact.component.mjs +140 -0
  7. package/{esm2020 → esm2022}/lib/email.services.mjs +29 -29
  8. package/esm2022/lib/intake.service.mjs +57 -0
  9. package/{esm2020 → esm2022}/lib/safetyPlan/serviceProvider.component.mjs +62 -62
  10. package/esm2022/lib/safetyPlan/victimSafetyPlan.component.mjs +116 -0
  11. package/esm2022/lib/safetyPlan/victimSafetyPlanDetail.component.mjs +340 -0
  12. package/{esm2020 → esm2022}/lib/shared/app.shared.module.mjs +215 -215
  13. package/esm2022/lib/shared/validators/date.validator.mjs +59 -0
  14. package/{esm2020 → esm2022}/lib/shared/validators/index.mjs +1 -1
  15. package/esm2022/lib/smart-victim-delete-confirm.component.mjs +44 -0
  16. package/esm2022/lib/smart-victim-detail/smart-victim-detail.component.mjs +1104 -0
  17. package/esm2022/lib/smart-victim.component.mjs +314 -0
  18. package/{esm2020 → esm2022}/lib/smart-victim.model.mjs +132 -132
  19. package/{esm2020 → esm2022}/lib/smart-victim.module.mjs +128 -128
  20. package/esm2022/lib/smart-victim.service.mjs +352 -0
  21. package/{esm2020 → esm2022}/lib/victim-routing.module.mjs +41 -41
  22. package/{esm2020 → esm2022}/lib/victimSearch/VictimSearchFilter.mjs +2 -2
  23. package/esm2022/lib/victimSearch/victimSearchForm.component.mjs +38 -0
  24. package/{esm2020 → esm2022}/public-api.mjs +10 -10
  25. package/fesm2022/csmart-ngc-smart-victim.mjs +3261 -0
  26. package/fesm2022/csmart-ngc-smart-victim.mjs.map +1 -0
  27. package/index.d.ts +5 -5
  28. package/lib/caseNote/caseNote.component.d.ts +51 -51
  29. package/lib/common-dialog/common-dialog.component.d.ts +14 -14
  30. package/lib/common-dialog/common-dialog.module.d.ts +8 -8
  31. package/lib/common-dialog/common-dialog.service.d.ts +11 -11
  32. package/lib/contact/contact.component.d.ts +40 -40
  33. package/lib/email.services.d.ts +11 -11
  34. package/lib/intake.service.d.ts +57 -57
  35. package/lib/safetyPlan/serviceProvider.component.d.ts +19 -19
  36. package/lib/safetyPlan/victimSafetyPlan.component.d.ts +54 -54
  37. package/lib/safetyPlan/victimSafetyPlanDetail.component.d.ts +62 -62
  38. package/lib/shared/app.shared.module.d.ts +33 -33
  39. package/lib/shared/validators/date.validator.d.ts +9 -9
  40. package/lib/shared/validators/index.d.ts +1 -1
  41. package/lib/smart-victim-delete-confirm.component.d.ts +12 -12
  42. package/lib/smart-victim-detail/smart-victim-detail.component.d.ts +129 -129
  43. package/lib/smart-victim.component.d.ts +68 -68
  44. package/lib/smart-victim.model.d.ts +205 -205
  45. package/lib/smart-victim.module.d.ts +49 -49
  46. package/lib/smart-victim.service.d.ts +71 -71
  47. package/lib/victim-routing.module.d.ts +7 -7
  48. package/lib/victimSearch/VictimSearchFilter.d.ts +7 -7
  49. package/lib/victimSearch/victimSearchForm.component.d.ts +14 -14
  50. package/package.json +5 -11
  51. package/public-api.d.ts +7 -7
  52. package/esm2020/lib/caseNote/caseNote.component.mjs +0 -194
  53. package/esm2020/lib/common-dialog/common-dialog.component.mjs +0 -23
  54. package/esm2020/lib/contact/contact.component.mjs +0 -140
  55. package/esm2020/lib/intake.service.mjs +0 -57
  56. package/esm2020/lib/safetyPlan/victimSafetyPlan.component.mjs +0 -116
  57. package/esm2020/lib/safetyPlan/victimSafetyPlanDetail.component.mjs +0 -340
  58. package/esm2020/lib/shared/validators/date.validator.mjs +0 -59
  59. package/esm2020/lib/smart-victim-delete-confirm.component.mjs +0 -44
  60. package/esm2020/lib/smart-victim-detail/smart-victim-detail.component.mjs +0 -1104
  61. package/esm2020/lib/smart-victim.component.mjs +0 -314
  62. package/esm2020/lib/smart-victim.service.mjs +0 -352
  63. package/esm2020/lib/victimSearch/victimSearchForm.component.mjs +0 -38
  64. package/fesm2015/csmart-ngc-smart-victim.mjs +0 -3273
  65. package/fesm2015/csmart-ngc-smart-victim.mjs.map +0 -1
  66. package/fesm2020/csmart-ngc-smart-victim.mjs +0 -3261
  67. package/fesm2020/csmart-ngc-smart-victim.mjs.map +0 -1
@@ -1,62 +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>;
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>;
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
+ }
@@ -1,33 +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
- }
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 +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;
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 +1 @@
1
- export * from './date.validator';
1
+ export * from './date.validator';
@@ -1,12 +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>;
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
+ }
@@ -1,129 +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
- 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>;
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": "victimDetail"; "staffId": "staffId"; "offenderId": "offenderId"; "isIntake": "isIntake"; }, { "onSave": "onSave"; "onCancel": "onCancel"; }, never, never, false>;
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
+ 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
+ }