@hmcts/rpx-xui-common-lib 1.9.0-address-display-full → 1.9.0-address-non-postcode
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/hmcts-rpx-xui-common-lib.umd.js +96 -82
- package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/components/cookie-banner/cookie-banner.component.js +2 -2
- package/esm2015/lib/components/find-service/find-service.component.js +2 -2
- package/esm2015/lib/components/generic-filter/generic-filter.component.js +2 -2
- package/esm2015/lib/components/selected-case-confirm/selected-case-confirm.component.js +2 -2
- package/esm2015/lib/components/share-case/share-case.component.js +2 -2
- package/esm2015/lib/components/write-address/write-address.component.js +46 -32
- package/esm2015/lib/components/write-address-inputs/write-address-inputs.component.js +17 -25
- package/esm2015/lib/gov-ui/components/hmcts-identity-bar/hmcts-identity-bar.component.js +2 -2
- package/esm2015/lib/models/address-message.enum.js +9 -0
- package/esm2015/lib/models/address.model.js +1 -1
- package/esm2015/lib/models/index.js +3 -1
- package/fesm2015/hmcts-rpx-xui-common-lib.js +95 -82
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/lib/components/write-address/write-address.component.d.ts +13 -12
- package/lib/components/write-address-inputs/write-address-inputs.component.d.ts +7 -10
- package/lib/models/address-message.enum.d.ts +7 -0
- package/lib/models/address.model.d.ts +3 -3
- package/lib/models/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { AddressModel } from '../../models';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { AddressMessageEnum, AddressModel } from '../../models';
|
|
4
4
|
import { AddressOption } from '../../models/address-option.model';
|
|
5
5
|
import { AddressService } from '../../services/address/address.service';
|
|
6
6
|
export declare class WriteAddressFieldComponent implements OnInit, OnChanges {
|
|
7
|
-
addressesService: AddressService;
|
|
8
|
-
addressField: AddressModel;
|
|
9
7
|
formGroup: FormGroup;
|
|
10
|
-
isExpanded: boolean;
|
|
11
8
|
internationalMode: boolean;
|
|
12
|
-
internationalModeStart: EventEmitter<void>;
|
|
13
9
|
isInternational: boolean;
|
|
14
|
-
|
|
10
|
+
submissionAttempted: boolean;
|
|
11
|
+
startedInternational: boolean;
|
|
12
|
+
postcodeOptionSelected: EventEmitter<void>;
|
|
13
|
+
internationalModeStart: EventEmitter<void>;
|
|
14
|
+
ukAddressOptionSelected: EventEmitter<boolean>;
|
|
15
|
+
addressesService: AddressService;
|
|
16
|
+
addressField: AddressModel;
|
|
17
|
+
optionErrorsPresent: boolean;
|
|
15
18
|
addressChosen: boolean;
|
|
16
19
|
addressFormGroup: FormGroup;
|
|
17
|
-
ukInternationalFormGroup: FormGroup;
|
|
18
|
-
postcode: FormControl;
|
|
19
|
-
addressList: FormControl;
|
|
20
|
-
ukAddress: FormControl;
|
|
21
20
|
addressOptions: AddressOption[];
|
|
22
21
|
missingPostcode: boolean;
|
|
22
|
+
optionErrorMessage: AddressMessageEnum;
|
|
23
23
|
constructor(addressesService: AddressService);
|
|
24
24
|
ngOnInit(): void;
|
|
25
25
|
findAddress(): void;
|
|
@@ -27,7 +27,8 @@ export declare class WriteAddressFieldComponent implements OnInit, OnChanges {
|
|
|
27
27
|
shouldShowDetailFields(): boolean;
|
|
28
28
|
addressSelected(): void;
|
|
29
29
|
ngOnChanges(changes: SimpleChanges): void;
|
|
30
|
-
|
|
30
|
+
private checkIfErrorsNeeded;
|
|
31
|
+
setInternationalAddress(isInternational: boolean): void;
|
|
31
32
|
private defaultLabel;
|
|
32
33
|
private setFormValue;
|
|
33
34
|
}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import {
|
|
4
|
-
export declare class WriteAddressInputsComponent implements
|
|
3
|
+
import { AddressMessageEnum } from '../../models';
|
|
4
|
+
export declare class WriteAddressInputsComponent implements OnChanges {
|
|
5
|
+
MESSAGE_ENUM: typeof AddressMessageEnum;
|
|
5
6
|
formGroup: FormGroup;
|
|
6
7
|
isInternational: boolean;
|
|
7
|
-
|
|
8
|
-
countyText: string;
|
|
9
|
-
postcodeOptional: string;
|
|
10
|
-
addressOptions: AddressOption[];
|
|
8
|
+
submissionAttempted: boolean;
|
|
11
9
|
missingPostcode: boolean;
|
|
10
|
+
errorsPresent: boolean;
|
|
12
11
|
constructor();
|
|
13
|
-
|
|
14
|
-
private setAddressFormGroup;
|
|
15
|
-
private setFormGroup;
|
|
12
|
+
ngOnChanges(): void;
|
|
16
13
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum AddressMessageEnum {
|
|
2
|
+
NO_OPTION_SELECTED = "Please select an answer",
|
|
3
|
+
NO_STREET_SELECTED = "Enter building and street",
|
|
4
|
+
NO_CITY_SELECTED = "Enter town or city",
|
|
5
|
+
NO_COUNTRY_SELECTED = "Enter country",
|
|
6
|
+
NO_POSTCODE_SELECTED = "Enter postcode"
|
|
7
|
+
}
|
package/lib/models/index.d.ts
CHANGED