@csmart/ngc-smart-victim 1.13.1 → 1.13.4
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/safetyPlan/victimSafetyPlanDetail.component.mjs +3 -3
- package/esm2020/lib/shared/directives/phone-mask.directive.mjs +37 -98
- package/esm2020/lib/smart-victim-detail/smart-victim-detail.component.mjs +46 -27
- package/esm2020/lib/smart-victim.service.mjs +6 -1
- package/fesm2015/csmart-ngc-smart-victim.mjs +88 -127
- package/fesm2015/csmart-ngc-smart-victim.mjs.map +1 -1
- package/fesm2020/csmart-ngc-smart-victim.mjs +90 -129
- package/fesm2020/csmart-ngc-smart-victim.mjs.map +1 -1
- package/lib/shared/directives/phone-mask.directive.d.ts +8 -14
- package/lib/smart-victim-detail/smart-victim-detail.component.d.ts +4 -1
- package/lib/smart-victim.service.d.ts +1 -0
- package/package.json +1 -1
@@ -1,17 +1,11 @@
|
|
1
|
-
import {
|
2
|
-
import { AbstractControl } from '@angular/forms';
|
1
|
+
import { NgControl } from '@angular/forms';
|
3
2
|
import * as i0 from "@angular/core";
|
4
|
-
export declare class PhoneMaskDirective
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
set preValue(value: string);
|
11
|
-
constructor(el: ElementRef, renderer: Renderer2);
|
12
|
-
ngOnInit(): void;
|
13
|
-
ngOnDestroy(): void;
|
14
|
-
formatPhoneNumber(data: any): void;
|
3
|
+
export declare class PhoneMaskDirective {
|
4
|
+
ngControl: NgControl;
|
5
|
+
constructor(ngControl: NgControl);
|
6
|
+
onModelChange(event: any): void;
|
7
|
+
keydownBackspace(event: any): void;
|
8
|
+
onInputChange(event: any, backspace: any): void;
|
15
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneMaskDirective, never>;
|
16
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PhoneMaskDirective, "[
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PhoneMaskDirective, "[formControlName][appPhoneMask]", never, {}, {}, never>;
|
17
11
|
}
|
@@ -7,7 +7,7 @@ import { Router, ActivatedRoute } from '@angular/router';
|
|
7
7
|
import { CommonDialogService } from '.././common-dialog/common-dialog.service';
|
8
8
|
import { DatePipe, Location } from '@angular/common';
|
9
9
|
import { MatTableDataSource } from '@angular/material/table';
|
10
|
-
import { AddressValidators } from '@csmart/ngc-smart-address';
|
10
|
+
import { AddressValidators, SmartAddressComponent } from '@csmart/ngc-smart-address';
|
11
11
|
import { MatDialog } from '@angular/material/dialog';
|
12
12
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
13
13
|
import * as i0 from "@angular/core";
|
@@ -34,6 +34,7 @@ export declare class SmartVictimDetailComponent implements OnInit, OnChanges {
|
|
34
34
|
isIntake: boolean;
|
35
35
|
onSave: EventEmitter<any>;
|
36
36
|
onCancel: EventEmitter<any>;
|
37
|
+
addressComponent: SmartAddressComponent;
|
37
38
|
victimId: number;
|
38
39
|
victimForm: FormGroup;
|
39
40
|
drugs: any;
|
@@ -88,6 +89,8 @@ export declare class SmartVictimDetailComponent implements OnInit, OnChanges {
|
|
88
89
|
private initForm;
|
89
90
|
private _getVictim;
|
90
91
|
ngOnChanges(): void;
|
92
|
+
onClear(): void;
|
93
|
+
showAddress(value: any): void;
|
91
94
|
onAddressChange(addressId: any): void;
|
92
95
|
onGuardianAddressChange(MyGuardianAddressId: any): void;
|
93
96
|
onAdvocateAddressChange(MyAdvocateAddressId: any): void;
|
@@ -11,6 +11,7 @@ export declare class NgcSmartVictimService {
|
|
11
11
|
private apollo;
|
12
12
|
private serviceApiUrl;
|
13
13
|
constructor(http: HttpClient, smartOffenderServiceUrl: string, smartLookupServiceUrl: string, smartVictimServiceUrl: string, apollo: Apollo);
|
14
|
+
getCurrentHousing(offenderId: number): Observable<Object>;
|
14
15
|
private handleError;
|
15
16
|
getDrugsTypes(): Observable<Object>;
|
16
17
|
getDocketList(offenderId: number): Observable<any>;
|