@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.
@@ -1,17 +1,11 @@
1
- import { ElementRef, OnInit, OnDestroy, Renderer2 } from '@angular/core';
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 implements OnInit, OnDestroy {
5
- private el;
6
- private renderer;
7
- private _phoneControl;
8
- private _preValue;
9
- set phoneControl(control: AbstractControl);
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, "[phoneMask]", never, { "phoneControl": "phoneControl"; "preValue": "preValue"; }, {}, never>;
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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@csmart/ngc-smart-victim",
3
- "version": "1.13.1",
3
+ "version": "1.13.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.2.5",
6
6
  "@angular/core": "^13.2.5",