@hmcts/rpx-xui-common-lib 1.9.0-postcode-validation → 1.9.0-postcode-style-change

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.
@@ -10,16 +10,21 @@ export declare class WriteAddressFieldComponent implements OnInit, OnChanges {
10
10
  isInternational: boolean;
11
11
  submissionAttempted: boolean;
12
12
  startedInternational: boolean;
13
+ addressChosen: boolean;
13
14
  postcodeOptionSelected: EventEmitter<void>;
14
15
  internationalModeStart: EventEmitter<void>;
15
16
  ukAddressOptionSelected: EventEmitter<boolean>;
17
+ canSelectAddress: EventEmitter<boolean>;
18
+ resetSubmission: EventEmitter<void>;
16
19
  addressField: AddressModel;
17
20
  optionErrorsPresent: boolean;
18
- addressChosen: boolean;
21
+ addressSelectable: boolean;
19
22
  addressFormGroup: FormGroup;
20
23
  addressOptions: AddressOption[];
21
24
  missingPostcode: boolean;
22
25
  optionErrorMessage: AddressMessageEnum;
26
+ postcodeErrorMessage: AddressMessageEnum;
27
+ selectErrorMessage: AddressMessageEnum;
23
28
  constructor(addressesService: AddressService);
24
29
  ngOnInit(): void;
25
30
  findAddress(): void;
@@ -29,6 +34,9 @@ export declare class WriteAddressFieldComponent implements OnInit, OnChanges {
29
34
  ngOnChanges(changes: SimpleChanges): void;
30
35
  private checkIfErrorsNeeded;
31
36
  setInternationalAddress(isInternational: boolean): void;
37
+ postcodeErrorPresent(isPostcodeField: boolean): boolean;
38
+ postcodeLookupVisible(): boolean;
32
39
  private defaultLabel;
33
40
  private setFormValue;
41
+ private setPostcodeForm;
34
42
  }
@@ -1,8 +1,9 @@
1
1
  export declare enum AddressMessageEnum {
2
- NO_OPTION_SELECTED = "Please select an answer",
2
+ NO_OPTION_SELECTED = "Select an option",
3
3
  NO_STREET_SELECTED = "Enter building and street",
4
4
  NO_CITY_SELECTED = "Enter town or city",
5
5
  NO_COUNTRY_SELECTED = "Enter country",
6
- NO_POSTCODE_SELECTED = "Enter postcode",
6
+ NO_POSTCODE_SELECTED = "Enter a valid postcode",
7
+ SELECT_ADDRESS = "Select an address",
7
8
  INVALID_POSTCODE = "Enter valid postcode"
8
9
  }
@@ -10,6 +10,7 @@ export declare class FeatureToggleGuard implements CanActivate {
10
10
  * in the data array for the route:
11
11
  * - needsFeaturesEnabled: An array of feature keys that need to be enabled for this route
12
12
  * - featureDisabledRedirect: the URL to redirect to when the this route is not accessible due to disabled features
13
+ * - expectFeatureEnabled: Sets whether a route should be enabled/disabled based on whether feature is present
13
14
  * @param route Automatically provided by Angular
14
15
  */
15
16
  canActivate(route: ActivatedRouteSnapshot): Observable<boolean | UrlTree>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/rpx-xui-common-lib",
3
- "version": "1.9.0-postcode-validation",
3
+ "version": "1.9.0-postcode-style-change",
4
4
  "peerDependencies": {
5
5
  "launchdarkly-js-client-sdk": "^2.15.2",
6
6
  "ngx-pagination": "^3.2.1",