@hmcts/ccd-case-ui-toolkit 7.3.85-exui-5069 → 7.3.85

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.
@@ -13989,67 +13989,57 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
13989
13989
  const _c0$Z = ["writeComplexFieldComponent"];
13990
13990
  const _c1$o = a0 => ({ "form-group-error": a0 });
13991
13991
  const _c2$3 = a0 => ({ "govuk-input--error": a0 });
13992
- function WriteAddressFieldComponent_div_1_span_4_Template(rf, ctx) { if (rf & 1) {
13993
- i0.ɵɵelementStart(0, "span", 9);
13994
- i0.ɵɵelement(1, "ccd-markdown", 10);
13995
- i0.ɵɵpipe(2, "rpxTranslate");
13996
- i0.ɵɵelementEnd();
13997
- } if (rf & 2) {
13998
- const ctx_r0 = i0.ɵɵnextContext(2);
13999
- i0.ɵɵadvance();
14000
- i0.ɵɵproperty("content", i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField.hint_text));
14001
- } }
14002
- function WriteAddressFieldComponent_div_1_div_5_span_5_Template(rf, ctx) { if (rf & 1) {
14003
- i0.ɵɵelementStart(0, "span", 17);
13992
+ function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
13993
+ i0.ɵɵelementStart(0, "span", 14);
14004
13994
  i0.ɵɵtext(1);
14005
13995
  i0.ɵɵpipe(2, "rpxTranslate");
14006
13996
  i0.ɵɵelementEnd();
14007
13997
  } if (rf & 2) {
14008
- const ctx_r0 = i0.ɵɵnextContext(3);
13998
+ const ctx_r1 = i0.ɵɵnextContext(3);
14009
13999
  i0.ɵɵadvance();
14010
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.errorMessage));
14000
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.errorMessage));
14011
14001
  } }
14012
- function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) { if (rf & 1) {
14013
- const _r2 = i0.ɵɵgetCurrentView();
14014
- i0.ɵɵelementStart(0, "div", 11)(1, "label", 12)(2, "span", 13);
14002
+ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
14003
+ const _r1 = i0.ɵɵgetCurrentView();
14004
+ i0.ɵɵelementStart(0, "div", 8)(1, "label", 9)(2, "span", 10);
14015
14005
  i0.ɵɵtext(3);
14016
14006
  i0.ɵɵpipe(4, "rpxTranslate");
14017
14007
  i0.ɵɵelementEnd()();
14018
- i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_5_span_5_Template, 3, 3, "span", 14);
14019
- i0.ɵɵelement(6, "input", 15);
14020
- i0.ɵɵelementStart(7, "button", 16);
14021
- i0.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_div_5_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.findAddress()); });
14008
+ i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_4_span_5_Template, 3, 3, "span", 11);
14009
+ i0.ɵɵelement(6, "input", 12);
14010
+ i0.ɵɵelementStart(7, "button", 13);
14011
+ i0.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_div_4_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.findAddress()); });
14022
14012
  i0.ɵɵtext(8);
14023
14013
  i0.ɵɵpipe(9, "rpxTranslate");
14024
14014
  i0.ɵɵelementEnd()();
14025
14015
  } if (rf & 2) {
14026
- const ctx_r0 = i0.ɵɵnextContext(2);
14027
- i0.ɵɵproperty("id", ctx_r0.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(14, _c1$o, ctx_r0.missingPostcode));
14016
+ const ctx_r1 = i0.ɵɵnextContext(2);
14017
+ i0.ɵɵproperty("id", ctx_r1.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(14, _c1$o, ctx_r1.missingPostcode));
14028
14018
  i0.ɵɵadvance();
14029
- i0.ɵɵproperty("for", ctx_r0.createElementId("postcodeInput"));
14019
+ i0.ɵɵproperty("for", ctx_r1.createElementId("postcodeInput"));
14030
14020
  i0.ɵɵadvance(2);
14031
14021
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 10, "Enter a UK postcode"));
14032
14022
  i0.ɵɵadvance(2);
14033
- i0.ɵɵproperty("ngIf", ctx_r0.missingPostcode);
14023
+ i0.ɵɵproperty("ngIf", ctx_r1.missingPostcode);
14034
14024
  i0.ɵɵadvance();
14035
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c2$3, ctx_r0.missingPostcode))("id", ctx_r0.createElementId("postcodeInput"))("formControl", ctx_r0.postcode);
14025
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c2$3, ctx_r1.missingPostcode))("id", ctx_r1.createElementId("postcodeInput"))("formControl", ctx_r1.postcode);
14036
14026
  i0.ɵɵadvance();
14037
- i0.ɵɵproperty("disabled", ctx_r0.loadingAddresses);
14027
+ i0.ɵɵproperty("disabled", ctx_r1.loadingAddresses);
14038
14028
  i0.ɵɵadvance();
14039
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 12, ctx_r0.loadingAddresses ? "Finding addresses..." : "Find address"), " ");
14029
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 12, ctx_r1.loadingAddresses ? "Finding addresses..." : "Find address"), " ");
14040
14030
  } }
14041
- function WriteAddressFieldComponent_div_1_div_6_span_5_Template(rf, ctx) { if (rf & 1) {
14042
- i0.ɵɵelementStart(0, "span", 17);
14031
+ function WriteAddressFieldComponent_div_1_div_5_span_5_Template(rf, ctx) { if (rf & 1) {
14032
+ i0.ɵɵelementStart(0, "span", 14);
14043
14033
  i0.ɵɵtext(1);
14044
14034
  i0.ɵɵpipe(2, "rpxTranslate");
14045
14035
  i0.ɵɵelementEnd();
14046
14036
  } if (rf & 2) {
14047
- const ctx_r0 = i0.ɵɵnextContext(3);
14037
+ const ctx_r1 = i0.ɵɵnextContext(3);
14048
14038
  i0.ɵɵadvance();
14049
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.errorMessage));
14039
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.errorMessage));
14050
14040
  } }
14051
- function WriteAddressFieldComponent_div_1_div_6_option_7_Template(rf, ctx) { if (rf & 1) {
14052
- i0.ɵɵelementStart(0, "option", 22);
14041
+ function WriteAddressFieldComponent_div_1_div_5_option_7_Template(rf, ctx) { if (rf & 1) {
14042
+ i0.ɵɵelementStart(0, "option", 19);
14053
14043
  i0.ɵɵtext(1);
14054
14044
  i0.ɵɵpipe(2, "rpxTranslate");
14055
14045
  i0.ɵɵelementEnd();
@@ -14058,19 +14048,19 @@ function WriteAddressFieldComponent_div_1_div_6_option_7_Template(rf, ctx) { if
14058
14048
  i0.ɵɵadvance();
14059
14049
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "No address found"), " ");
14060
14050
  } }
14061
- function WriteAddressFieldComponent_div_1_div_6_option_8_Template(rf, ctx) { if (rf & 1) {
14062
- i0.ɵɵelementStart(0, "option", 22);
14051
+ function WriteAddressFieldComponent_div_1_div_5_option_8_Template(rf, ctx) { if (rf & 1) {
14052
+ i0.ɵɵelementStart(0, "option", 19);
14063
14053
  i0.ɵɵtext(1);
14064
14054
  i0.ɵɵpipe(2, "rpxTranslate");
14065
14055
  i0.ɵɵelementEnd();
14066
14056
  } if (rf & 2) {
14067
- const ctx_r0 = i0.ɵɵnextContext(3);
14057
+ const ctx_r1 = i0.ɵɵnextContext(3);
14068
14058
  i0.ɵɵproperty("ngValue", undefined);
14069
14059
  i0.ɵɵadvance();
14070
- i0.ɵɵtextInterpolate2(" ", ctx_r0.addressOptions.length, " ", i0.ɵɵpipeBind1(2, 3, ctx_r0.addressOptions.length === 1 ? "address found" : "addresses found"), " ");
14060
+ i0.ɵɵtextInterpolate2(" ", ctx_r1.addressOptions.length, " ", i0.ɵɵpipeBind1(2, 3, ctx_r1.addressOptions.length === 1 ? "address found" : "addresses found"), " ");
14071
14061
  } }
14072
- function WriteAddressFieldComponent_div_1_div_6_option_9_Template(rf, ctx) { if (rf & 1) {
14073
- i0.ɵɵelementStart(0, "option", 22);
14062
+ function WriteAddressFieldComponent_div_1_div_5_option_9_Template(rf, ctx) { if (rf & 1) {
14063
+ i0.ɵɵelementStart(0, "option", 19);
14074
14064
  i0.ɵɵtext(1);
14075
14065
  i0.ɵɵelementEnd();
14076
14066
  } if (rf & 2) {
@@ -14079,39 +14069,39 @@ function WriteAddressFieldComponent_div_1_div_6_option_9_Template(rf, ctx) { if
14079
14069
  i0.ɵɵadvance();
14080
14070
  i0.ɵɵtextInterpolate1(" ", addressOption_r4.description, " ");
14081
14071
  } }
14082
- function WriteAddressFieldComponent_div_1_div_6_Template(rf, ctx) { if (rf & 1) {
14072
+ function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) { if (rf & 1) {
14083
14073
  const _r3 = i0.ɵɵgetCurrentView();
14084
- i0.ɵɵelementStart(0, "div", 18)(1, "label", 12)(2, "span", 13);
14074
+ i0.ɵɵelementStart(0, "div", 15)(1, "label", 9)(2, "span", 10);
14085
14075
  i0.ɵɵtext(3);
14086
14076
  i0.ɵɵpipe(4, "rpxTranslate");
14087
14077
  i0.ɵɵelementEnd()();
14088
- i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_6_span_5_Template, 3, 3, "span", 14);
14089
- i0.ɵɵelementStart(6, "select", 19);
14090
- i0.ɵɵlistener("change", function WriteAddressFieldComponent_div_1_div_6_Template_select_change_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.addressSelected()); });
14091
- i0.ɵɵtemplate(7, WriteAddressFieldComponent_div_1_div_6_option_7_Template, 3, 4, "option", 20)(8, WriteAddressFieldComponent_div_1_div_6_option_8_Template, 3, 5, "option", 20)(9, WriteAddressFieldComponent_div_1_div_6_option_9_Template, 2, 2, "option", 21);
14078
+ i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_5_span_5_Template, 3, 3, "span", 11);
14079
+ i0.ɵɵelementStart(6, "select", 16);
14080
+ i0.ɵɵlistener("change", function WriteAddressFieldComponent_div_1_div_5_Template_select_change_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.addressSelected()); });
14081
+ i0.ɵɵtemplate(7, WriteAddressFieldComponent_div_1_div_5_option_7_Template, 3, 4, "option", 17)(8, WriteAddressFieldComponent_div_1_div_5_option_8_Template, 3, 5, "option", 17)(9, WriteAddressFieldComponent_div_1_div_5_option_9_Template, 2, 2, "option", 18);
14092
14082
  i0.ɵɵelementEnd()();
14093
14083
  } if (rf & 2) {
14094
- const ctx_r0 = i0.ɵɵnextContext(2);
14095
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$o, ctx_r0.noAddressSelected));
14084
+ const ctx_r1 = i0.ɵɵnextContext(2);
14085
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$o, ctx_r1.noAddressSelected));
14096
14086
  i0.ɵɵadvance();
14097
- i0.ɵɵproperty("for", ctx_r0.createElementId("addressList"));
14087
+ i0.ɵɵproperty("for", ctx_r1.createElementId("addressList"));
14098
14088
  i0.ɵɵadvance(2);
14099
14089
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 9, "Select an address"));
14100
14090
  i0.ɵɵadvance(2);
14101
- i0.ɵɵproperty("ngIf", ctx_r0.noAddressSelected);
14091
+ i0.ɵɵproperty("ngIf", ctx_r1.noAddressSelected);
14102
14092
  i0.ɵɵadvance();
14103
- i0.ɵɵproperty("id", ctx_r0.createElementId("addressList"))("formControl", ctx_r0.addressList);
14093
+ i0.ɵɵproperty("id", ctx_r1.createElementId("addressList"))("formControl", ctx_r1.addressList);
14104
14094
  i0.ɵɵadvance();
14105
- i0.ɵɵproperty("ngIf", ctx_r0.addressOptions.length === 0);
14095
+ i0.ɵɵproperty("ngIf", ctx_r1.addressOptions.length === 0);
14106
14096
  i0.ɵɵadvance();
14107
- i0.ɵɵproperty("ngIf", ctx_r0.addressOptions.length > 0);
14097
+ i0.ɵɵproperty("ngIf", ctx_r1.addressOptions.length > 0);
14108
14098
  i0.ɵɵadvance();
14109
- i0.ɵɵproperty("ngForOf", ctx_r0.addressOptions);
14099
+ i0.ɵɵproperty("ngForOf", ctx_r1.addressOptions);
14110
14100
  } }
14111
- function WriteAddressFieldComponent_div_1_a_7_Template(rf, ctx) { if (rf & 1) {
14101
+ function WriteAddressFieldComponent_div_1_a_6_Template(rf, ctx) { if (rf & 1) {
14112
14102
  const _r5 = i0.ɵɵgetCurrentView();
14113
- i0.ɵɵelementStart(0, "a", 23);
14114
- i0.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_a_7_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(2); ctx_r0.blankAddress(); return i0.ɵɵresetView($event.preventDefault()); });
14103
+ i0.ɵɵelementStart(0, "a", 20);
14104
+ i0.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_a_6_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.blankAddress(); return i0.ɵɵresetView($event.preventDefault()); });
14115
14105
  i0.ɵɵtext(1);
14116
14106
  i0.ɵɵpipe(2, "rpxTranslate");
14117
14107
  i0.ɵɵelementEnd();
@@ -14124,20 +14114,18 @@ function WriteAddressFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
14124
14114
  i0.ɵɵtext(2);
14125
14115
  i0.ɵɵpipe(3, "ccdFieldLabel");
14126
14116
  i0.ɵɵelementEnd();
14127
- i0.ɵɵtemplate(4, WriteAddressFieldComponent_div_1_span_4_Template, 3, 3, "span", 5)(5, WriteAddressFieldComponent_div_1_div_5_Template, 10, 18, "div", 6)(6, WriteAddressFieldComponent_div_1_div_6_Template, 10, 13, "div", 7)(7, WriteAddressFieldComponent_div_1_a_7_Template, 3, 3, "a", 8);
14117
+ i0.ɵɵtemplate(4, WriteAddressFieldComponent_div_1_div_4_Template, 10, 18, "div", 5)(5, WriteAddressFieldComponent_div_1_div_5_Template, 10, 13, "div", 6)(6, WriteAddressFieldComponent_div_1_a_6_Template, 3, 3, "a", 7);
14128
14118
  i0.ɵɵelementEnd();
14129
14119
  } if (rf & 2) {
14130
- const ctx_r0 = i0.ɵɵnextContext();
14120
+ const ctx_r1 = i0.ɵɵnextContext();
14131
14121
  i0.ɵɵadvance(2);
14132
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 5, ctx_r0.caseField));
14122
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 4, ctx_r1.caseField));
14133
14123
  i0.ɵɵadvance(2);
14134
- i0.ɵɵproperty("ngIf", ctx_r0.caseField.hint_text);
14135
- i0.ɵɵadvance();
14136
- i0.ɵɵproperty("ngIf", !ctx_r0.isExpanded);
14124
+ i0.ɵɵproperty("ngIf", !ctx_r1.isExpanded);
14137
14125
  i0.ɵɵadvance();
14138
- i0.ɵɵproperty("ngIf", ctx_r0.addressOptions);
14126
+ i0.ɵɵproperty("ngIf", ctx_r1.addressOptions);
14139
14127
  i0.ɵɵadvance();
14140
- i0.ɵɵproperty("ngIf", !ctx_r0.shouldShowDetailFields());
14128
+ i0.ɵɵproperty("ngIf", !ctx_r1.shouldShowDetailFields());
14141
14129
  } }
14142
14130
  class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
14143
14131
  isCompoundPipe;
@@ -14271,9 +14259,9 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
14271
14259
  let _t;
14272
14260
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
14273
14261
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.focusElementDirectives = _t);
14274
- } }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 4, vars: 9, consts: [["writeComplexFieldComponent", ""], [1, "form-group", 3, "id"], [4, "ngIf"], [3, "hidden", "caseField", "renderLabel", "parent", "formGroup", "ignoreMandatory", "idPrefix"], [1, "heading-h2"], ["class", "form-hint", 4, "ngIf"], ["class", "form-group bottom-30 postcodeLookup", 3, "id", "ngClass", 4, "ngIf"], ["class", "form-group", "id", "selectAddress", 3, "ngClass", 4, "ngIf"], ["class", "manual-link bottom-30", "href", "#", 3, "click", 4, "ngIf"], [1, "form-hint"], [3, "content"], [1, "form-group", "bottom-30", "postcodeLookup", 3, "id", "ngClass"], [3, "for"], [1, "form-label"], ["class", "error-message", 4, "ngIf"], ["type", "text", "name", "postcode", 1, "form-control", "postcodeinput", "inline-block", 3, "ngClass", "id", "formControl"], ["type", "button", 1, "button", "button-30", 3, "click", "disabled"], [1, "error-message"], ["id", "selectAddress", 1, "form-group", 3, "ngClass"], ["name", "address", "focusElement", "", 1, "form-control", "ccd-dropdown", "addressList", 3, "change", "id", "formControl"], [3, "ngValue", 4, "ngIf"], [3, "ngValue", 4, "ngFor", "ngForOf"], [3, "ngValue"], ["href", "#", 1, "manual-link", "bottom-30", 3, "click"]], template: function WriteAddressFieldComponent_Template(rf, ctx) { if (rf & 1) {
14262
+ } }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 4, vars: 9, consts: [["writeComplexFieldComponent", ""], [1, "form-group", 3, "id"], [4, "ngIf"], [3, "hidden", "caseField", "renderLabel", "parent", "formGroup", "ignoreMandatory", "idPrefix"], [1, "heading-h2"], ["class", "form-group bottom-30 postcodeLookup", 3, "id", "ngClass", 4, "ngIf"], ["class", "form-group", "id", "selectAddress", 3, "ngClass", 4, "ngIf"], ["class", "manual-link bottom-30", "href", "#", 3, "click", 4, "ngIf"], [1, "form-group", "bottom-30", "postcodeLookup", 3, "id", "ngClass"], [3, "for"], [1, "form-label"], ["class", "error-message", 4, "ngIf"], ["type", "text", "name", "postcode", 1, "form-control", "postcodeinput", "inline-block", 3, "ngClass", "id", "formControl"], ["type", "button", 1, "button", "button-30", 3, "click", "disabled"], [1, "error-message"], ["id", "selectAddress", 1, "form-group", 3, "ngClass"], ["name", "address", "focusElement", "", 1, "form-control", "ccd-dropdown", "addressList", 3, "change", "id", "formControl"], [3, "ngValue", 4, "ngIf"], [3, "ngValue", 4, "ngFor", "ngForOf"], [3, "ngValue"], ["href", "#", 1, "manual-link", "bottom-30", 3, "click"]], template: function WriteAddressFieldComponent_Template(rf, ctx) { if (rf & 1) {
14275
14263
  i0.ɵɵelementStart(0, "div", 1);
14276
- i0.ɵɵtemplate(1, WriteAddressFieldComponent_div_1_Template, 8, 7, "div", 2);
14264
+ i0.ɵɵtemplate(1, WriteAddressFieldComponent_div_1_Template, 7, 6, "div", 2);
14277
14265
  i0.ɵɵelement(2, "ccd-write-complex-type-field", 3, 0);
14278
14266
  i0.ɵɵelementEnd();
14279
14267
  } if (rf & 2) {
@@ -14286,7 +14274,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
14286
14274
  }
14287
14275
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteAddressFieldComponent, [{
14288
14276
  type: Component,
14289
- args: [{ selector: 'ccd-write-address-field', standalone: false, template: "<div class=\"form-group\" [id]=\"id()\">\n <div *ngIf=\"!isComplexWithHiddenFields()\">\n <h2 class=\"heading-h2\">{{caseField | ccdFieldLabel}}</h2>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">\n <ccd-markdown [content]=\"caseField.hint_text | rpxTranslate\"></ccd-markdown>\n </span>\n\n <div class=\"form-group bottom-30 postcodeLookup\" [id]=\"createElementId('postcodeLookup')\" [ngClass]=\"{'form-group-error': missingPostcode}\" *ngIf=\"!isExpanded\">\n <label [for]=\"createElementId('postcodeInput')\">\n <span class=\"form-label\">{{'Enter a UK postcode' | rpxTranslate}}</span>\n </label>\n <span class=\"error-message\" *ngIf=\"missingPostcode\">{{errorMessage | rpxTranslate}}</span>\n <input type=\"text\" [ngClass]=\"{'govuk-input--error': missingPostcode}\"\n [id]=\"createElementId('postcodeInput')\" name=\"postcode\" class=\"form-control postcodeinput inline-block\" [formControl]=\"postcode\">\n <button type=\"button\" class=\"button button-30\" (click)=\"findAddress()\" [disabled]=\"loadingAddresses\">\n {{(loadingAddresses ? 'Finding addresses...' : 'Find address') | rpxTranslate}}\n </button>\n </div>\n\n <div class=\"form-group\" *ngIf=\"addressOptions\" id=\"selectAddress\" [ngClass]=\"{'form-group-error': noAddressSelected}\">\n <label [for]=\"createElementId('addressList')\">\n <span class=\"form-label\">{{'Select an address' | rpxTranslate}}</span>\n </label>\n <span class=\"error-message\" *ngIf=\"noAddressSelected\">{{errorMessage | rpxTranslate}}</span>\n <select class=\"form-control ccd-dropdown addressList\" [id]=\"createElementId('addressList')\" name=\"address\" [formControl]=\"addressList\" (change)=\"addressSelected()\" focusElement>\n <option *ngIf=\"addressOptions.length === 0\" [ngValue]=\"undefined\">\n {{'No address found' | rpxTranslate}}\n </option>\n <option *ngIf=\"addressOptions.length > 0\" [ngValue]=\"undefined\">\n {{addressOptions.length}} {{(addressOptions.length === 1 ? 'address found' : 'addresses found') | rpxTranslate}}\n </option>\n <option *ngFor=\"let addressOption of addressOptions\" [ngValue]=\"addressOption.value\">\n {{addressOption.description}}\n </option>\n </select>\n </div>\n\n <a class=\"manual-link bottom-30\" *ngIf=\"!shouldShowDetailFields()\" (click)=\"blankAddress(); $event.preventDefault()\" href=\"#\">\n {{\"I can't enter a UK postcode\" | rpxTranslate}}\n </a>\n </div>\n\n <ccd-write-complex-type-field\n [hidden]=\"!shouldShowDetailFields()\"\n [caseField]=\"caseField\"\n [renderLabel]=\"false\"\n [parent]=\"parent\"\n [formGroup]=\"formGroup\"\n [ignoreMandatory]=\"true\"\n [idPrefix]=\"buildIdPrefix('detail')\"\n #writeComplexFieldComponent>\n </ccd-write-complex-type-field>\n</div>\n", styles: [".manual-link{cursor:pointer;display:block;text-decoration:underline}\n"] }]
14277
+ args: [{ selector: 'ccd-write-address-field', standalone: false, template: "<div class=\"form-group\" [id]=\"id()\">\n <div *ngIf=\"!isComplexWithHiddenFields()\">\n <h2 class=\"heading-h2\">{{caseField | ccdFieldLabel}}</h2>\n\n <div class=\"form-group bottom-30 postcodeLookup\" [id]=\"createElementId('postcodeLookup')\" [ngClass]=\"{'form-group-error': missingPostcode}\" *ngIf=\"!isExpanded\">\n <label [for]=\"createElementId('postcodeInput')\">\n <span class=\"form-label\">{{'Enter a UK postcode' | rpxTranslate}}</span>\n </label>\n <span class=\"error-message\" *ngIf=\"missingPostcode\">{{errorMessage | rpxTranslate}}</span>\n <input type=\"text\" [ngClass]=\"{'govuk-input--error': missingPostcode}\"\n [id]=\"createElementId('postcodeInput')\" name=\"postcode\" class=\"form-control postcodeinput inline-block\" [formControl]=\"postcode\">\n <button type=\"button\" class=\"button button-30\" (click)=\"findAddress()\" [disabled]=\"loadingAddresses\">\n {{(loadingAddresses ? 'Finding addresses...' : 'Find address') | rpxTranslate}}\n </button>\n </div>\n\n <div class=\"form-group\" *ngIf=\"addressOptions\" id=\"selectAddress\" [ngClass]=\"{'form-group-error': noAddressSelected}\">\n <label [for]=\"createElementId('addressList')\">\n <span class=\"form-label\">{{'Select an address' | rpxTranslate}}</span>\n </label>\n <span class=\"error-message\" *ngIf=\"noAddressSelected\">{{errorMessage | rpxTranslate}}</span>\n <select class=\"form-control ccd-dropdown addressList\" [id]=\"createElementId('addressList')\" name=\"address\" [formControl]=\"addressList\" (change)=\"addressSelected()\" focusElement>\n <option *ngIf=\"addressOptions.length === 0\" [ngValue]=\"undefined\">\n {{'No address found' | rpxTranslate}}\n </option>\n <option *ngIf=\"addressOptions.length > 0\" [ngValue]=\"undefined\">\n {{addressOptions.length}} {{(addressOptions.length === 1 ? 'address found' : 'addresses found') | rpxTranslate}}\n </option>\n <option *ngFor=\"let addressOption of addressOptions\" [ngValue]=\"addressOption.value\">\n {{addressOption.description}}\n </option>\n </select>\n </div>\n\n <a class=\"manual-link bottom-30\" *ngIf=\"!shouldShowDetailFields()\" (click)=\"blankAddress(); $event.preventDefault()\" href=\"#\">\n {{\"I can't enter a UK postcode\" | rpxTranslate}}\n </a>\n </div>\n\n <ccd-write-complex-type-field\n [hidden]=\"!shouldShowDetailFields()\"\n [caseField]=\"caseField\"\n [renderLabel]=\"false\"\n [parent]=\"parent\"\n [formGroup]=\"formGroup\"\n [ignoreMandatory]=\"true\"\n [idPrefix]=\"buildIdPrefix('detail')\"\n #writeComplexFieldComponent>\n </ccd-write-complex-type-field>\n</div>\n", styles: [".manual-link{cursor:pointer;display:block;text-decoration:underline}\n"] }]
14290
14278
  }], () => [{ type: AddressesService }, { type: IsCompoundPipe }], { writeComplexFieldComponent: [{
14291
14279
  type: ViewChild,
14292
14280
  args: ['writeComplexFieldComponent', { static: false }]
@@ -33584,7 +33572,7 @@ i0.ɵɵsetComponentScope(ReadLinkedCasesFieldComponent, function () { return [i4
33584
33572
  // Components for linked cases
33585
33573
  LinkedCasesToTableComponent,
33586
33574
  LinkedCasesFromTableComponent]; }, []);
33587
- i0.ɵɵsetComponentScope(WriteAddressFieldComponent, function () { return [i4.NgClass, i4.NgForOf, i4.NgIf, i3.NgSelectOption, i3.ɵNgSelectMultipleOption, i3.DefaultValueAccessor, i3.SelectControlValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormControlDirective, i3.FormGroupDirective, MarkdownComponent, WriteComplexFieldComponent]; }, function () { return [FieldLabelPipe, i1.RpxTranslatePipe]; });
33575
+ i0.ɵɵsetComponentScope(WriteAddressFieldComponent, function () { return [i4.NgClass, i4.NgForOf, i4.NgIf, i3.NgSelectOption, i3.ɵNgSelectMultipleOption, i3.DefaultValueAccessor, i3.SelectControlValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormControlDirective, i3.FormGroupDirective, WriteComplexFieldComponent]; }, function () { return [FieldLabelPipe, i1.RpxTranslatePipe]; });
33588
33576
  i0.ɵɵsetComponentScope(WriteComplexFieldComponent, function () { return [i4.NgForOf, i4.NgIf, i4.NgSwitch, i4.NgSwitchCase, i3.NgControlStatusGroup, i3.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent,
33589
33577
  FieldWriteComponent]; }, function () { return [FieldLabelPipe, IsReadOnlyPipe]; });
33590
33578
  i0.ɵɵsetComponentScope(WriteDocumentFieldComponent, function () { return [i4.NgClass, i4.NgIf, i1$4.MarkdownComponent, ReadDocumentFieldComponent]; }, function () { return [FieldLabelPipe, i1.RpxTranslatePipe]; });