@hmcts/ccd-case-ui-toolkit 7.3.85-exui-5069 → 7.3.86-exui-2837
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.
|
@@ -4166,6 +4166,7 @@ class WorkbasketInputModel {
|
|
|
4166
4166
|
label;
|
|
4167
4167
|
order;
|
|
4168
4168
|
field;
|
|
4169
|
+
dataType;
|
|
4169
4170
|
metadata;
|
|
4170
4171
|
display_context_parameter;
|
|
4171
4172
|
}
|
|
@@ -4215,6 +4216,16 @@ class FieldsUtils {
|
|
|
4215
4216
|
}
|
|
4216
4217
|
return obj;
|
|
4217
4218
|
}
|
|
4219
|
+
static buildFieldId(fieldId, elementPath, dataType) {
|
|
4220
|
+
if (!fieldId || !elementPath) {
|
|
4221
|
+
return fieldId;
|
|
4222
|
+
}
|
|
4223
|
+
const normalizedType = typeof dataType === 'string' ? dataType.toLowerCase() : '';
|
|
4224
|
+
if (normalizedType === 'collection') {
|
|
4225
|
+
return `${fieldId}.value.${elementPath}`;
|
|
4226
|
+
}
|
|
4227
|
+
return `${fieldId}.${elementPath}`;
|
|
4228
|
+
}
|
|
4218
4229
|
static toValuesMap(caseFields) {
|
|
4219
4230
|
const valueMap = {};
|
|
4220
4231
|
caseFields.forEach(field => {
|
|
@@ -13989,67 +14000,57 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13989
14000
|
const _c0$Z = ["writeComplexFieldComponent"];
|
|
13990
14001
|
const _c1$o = a0 => ({ "form-group-error": a0 });
|
|
13991
14002
|
const _c2$3 = a0 => ({ "govuk-input--error": a0 });
|
|
13992
|
-
function
|
|
13993
|
-
i0.ɵɵelementStart(0, "span",
|
|
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);
|
|
14003
|
+
function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
14004
|
+
i0.ɵɵelementStart(0, "span", 14);
|
|
14004
14005
|
i0.ɵɵtext(1);
|
|
14005
14006
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14006
14007
|
i0.ɵɵelementEnd();
|
|
14007
14008
|
} if (rf & 2) {
|
|
14008
|
-
const
|
|
14009
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
14009
14010
|
i0.ɵɵadvance();
|
|
14010
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
14011
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.errorMessage));
|
|
14011
14012
|
} }
|
|
14012
|
-
function
|
|
14013
|
-
const
|
|
14014
|
-
i0.ɵɵelementStart(0, "div",
|
|
14013
|
+
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
14014
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
14015
|
+
i0.ɵɵelementStart(0, "div", 8)(1, "label", 9)(2, "span", 10);
|
|
14015
14016
|
i0.ɵɵtext(3);
|
|
14016
14017
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
14017
14018
|
i0.ɵɵelementEnd()();
|
|
14018
|
-
i0.ɵɵtemplate(5,
|
|
14019
|
-
i0.ɵɵelement(6, "input",
|
|
14020
|
-
i0.ɵɵelementStart(7, "button",
|
|
14021
|
-
i0.ɵɵlistener("click", function
|
|
14019
|
+
i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_4_span_5_Template, 3, 3, "span", 11);
|
|
14020
|
+
i0.ɵɵelement(6, "input", 12);
|
|
14021
|
+
i0.ɵɵelementStart(7, "button", 13);
|
|
14022
|
+
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
14023
|
i0.ɵɵtext(8);
|
|
14023
14024
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
14024
14025
|
i0.ɵɵelementEnd()();
|
|
14025
14026
|
} if (rf & 2) {
|
|
14026
|
-
const
|
|
14027
|
-
i0.ɵɵproperty("id",
|
|
14027
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
14028
|
+
i0.ɵɵproperty("id", ctx_r1.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(14, _c1$o, ctx_r1.missingPostcode));
|
|
14028
14029
|
i0.ɵɵadvance();
|
|
14029
|
-
i0.ɵɵproperty("for",
|
|
14030
|
+
i0.ɵɵproperty("for", ctx_r1.createElementId("postcodeInput"));
|
|
14030
14031
|
i0.ɵɵadvance(2);
|
|
14031
14032
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 10, "Enter a UK postcode"));
|
|
14032
14033
|
i0.ɵɵadvance(2);
|
|
14033
|
-
i0.ɵɵproperty("ngIf",
|
|
14034
|
+
i0.ɵɵproperty("ngIf", ctx_r1.missingPostcode);
|
|
14034
14035
|
i0.ɵɵadvance();
|
|
14035
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c2$3,
|
|
14036
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c2$3, ctx_r1.missingPostcode))("id", ctx_r1.createElementId("postcodeInput"))("formControl", ctx_r1.postcode);
|
|
14036
14037
|
i0.ɵɵadvance();
|
|
14037
|
-
i0.ɵɵproperty("disabled",
|
|
14038
|
+
i0.ɵɵproperty("disabled", ctx_r1.loadingAddresses);
|
|
14038
14039
|
i0.ɵɵadvance();
|
|
14039
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 12,
|
|
14040
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 12, ctx_r1.loadingAddresses ? "Finding addresses..." : "Find address"), " ");
|
|
14040
14041
|
} }
|
|
14041
|
-
function
|
|
14042
|
-
i0.ɵɵelementStart(0, "span",
|
|
14042
|
+
function WriteAddressFieldComponent_div_1_div_5_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
14043
|
+
i0.ɵɵelementStart(0, "span", 14);
|
|
14043
14044
|
i0.ɵɵtext(1);
|
|
14044
14045
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14045
14046
|
i0.ɵɵelementEnd();
|
|
14046
14047
|
} if (rf & 2) {
|
|
14047
|
-
const
|
|
14048
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
14048
14049
|
i0.ɵɵadvance();
|
|
14049
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
14050
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.errorMessage));
|
|
14050
14051
|
} }
|
|
14051
|
-
function
|
|
14052
|
-
i0.ɵɵelementStart(0, "option",
|
|
14052
|
+
function WriteAddressFieldComponent_div_1_div_5_option_7_Template(rf, ctx) { if (rf & 1) {
|
|
14053
|
+
i0.ɵɵelementStart(0, "option", 19);
|
|
14053
14054
|
i0.ɵɵtext(1);
|
|
14054
14055
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14055
14056
|
i0.ɵɵelementEnd();
|
|
@@ -14058,19 +14059,19 @@ function WriteAddressFieldComponent_div_1_div_6_option_7_Template(rf, ctx) { if
|
|
|
14058
14059
|
i0.ɵɵadvance();
|
|
14059
14060
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "No address found"), " ");
|
|
14060
14061
|
} }
|
|
14061
|
-
function
|
|
14062
|
-
i0.ɵɵelementStart(0, "option",
|
|
14062
|
+
function WriteAddressFieldComponent_div_1_div_5_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
14063
|
+
i0.ɵɵelementStart(0, "option", 19);
|
|
14063
14064
|
i0.ɵɵtext(1);
|
|
14064
14065
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14065
14066
|
i0.ɵɵelementEnd();
|
|
14066
14067
|
} if (rf & 2) {
|
|
14067
|
-
const
|
|
14068
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
14068
14069
|
i0.ɵɵproperty("ngValue", undefined);
|
|
14069
14070
|
i0.ɵɵadvance();
|
|
14070
|
-
i0.ɵɵtextInterpolate2(" ",
|
|
14071
|
+
i0.ɵɵtextInterpolate2(" ", ctx_r1.addressOptions.length, " ", i0.ɵɵpipeBind1(2, 3, ctx_r1.addressOptions.length === 1 ? "address found" : "addresses found"), " ");
|
|
14071
14072
|
} }
|
|
14072
|
-
function
|
|
14073
|
-
i0.ɵɵelementStart(0, "option",
|
|
14073
|
+
function WriteAddressFieldComponent_div_1_div_5_option_9_Template(rf, ctx) { if (rf & 1) {
|
|
14074
|
+
i0.ɵɵelementStart(0, "option", 19);
|
|
14074
14075
|
i0.ɵɵtext(1);
|
|
14075
14076
|
i0.ɵɵelementEnd();
|
|
14076
14077
|
} if (rf & 2) {
|
|
@@ -14079,39 +14080,39 @@ function WriteAddressFieldComponent_div_1_div_6_option_9_Template(rf, ctx) { if
|
|
|
14079
14080
|
i0.ɵɵadvance();
|
|
14080
14081
|
i0.ɵɵtextInterpolate1(" ", addressOption_r4.description, " ");
|
|
14081
14082
|
} }
|
|
14082
|
-
function
|
|
14083
|
+
function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
14083
14084
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
14084
|
-
i0.ɵɵelementStart(0, "div",
|
|
14085
|
+
i0.ɵɵelementStart(0, "div", 15)(1, "label", 9)(2, "span", 10);
|
|
14085
14086
|
i0.ɵɵtext(3);
|
|
14086
14087
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
14087
14088
|
i0.ɵɵelementEnd()();
|
|
14088
|
-
i0.ɵɵtemplate(5,
|
|
14089
|
-
i0.ɵɵelementStart(6, "select",
|
|
14090
|
-
i0.ɵɵlistener("change", function
|
|
14091
|
-
i0.ɵɵtemplate(7,
|
|
14089
|
+
i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_5_span_5_Template, 3, 3, "span", 11);
|
|
14090
|
+
i0.ɵɵelementStart(6, "select", 16);
|
|
14091
|
+
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()); });
|
|
14092
|
+
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
14093
|
i0.ɵɵelementEnd()();
|
|
14093
14094
|
} if (rf & 2) {
|
|
14094
|
-
const
|
|
14095
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$o,
|
|
14095
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
14096
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$o, ctx_r1.noAddressSelected));
|
|
14096
14097
|
i0.ɵɵadvance();
|
|
14097
|
-
i0.ɵɵproperty("for",
|
|
14098
|
+
i0.ɵɵproperty("for", ctx_r1.createElementId("addressList"));
|
|
14098
14099
|
i0.ɵɵadvance(2);
|
|
14099
14100
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 9, "Select an address"));
|
|
14100
14101
|
i0.ɵɵadvance(2);
|
|
14101
|
-
i0.ɵɵproperty("ngIf",
|
|
14102
|
+
i0.ɵɵproperty("ngIf", ctx_r1.noAddressSelected);
|
|
14102
14103
|
i0.ɵɵadvance();
|
|
14103
|
-
i0.ɵɵproperty("id",
|
|
14104
|
+
i0.ɵɵproperty("id", ctx_r1.createElementId("addressList"))("formControl", ctx_r1.addressList);
|
|
14104
14105
|
i0.ɵɵadvance();
|
|
14105
|
-
i0.ɵɵproperty("ngIf",
|
|
14106
|
+
i0.ɵɵproperty("ngIf", ctx_r1.addressOptions.length === 0);
|
|
14106
14107
|
i0.ɵɵadvance();
|
|
14107
|
-
i0.ɵɵproperty("ngIf",
|
|
14108
|
+
i0.ɵɵproperty("ngIf", ctx_r1.addressOptions.length > 0);
|
|
14108
14109
|
i0.ɵɵadvance();
|
|
14109
|
-
i0.ɵɵproperty("ngForOf",
|
|
14110
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.addressOptions);
|
|
14110
14111
|
} }
|
|
14111
|
-
function
|
|
14112
|
+
function WriteAddressFieldComponent_div_1_a_6_Template(rf, ctx) { if (rf & 1) {
|
|
14112
14113
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
14113
|
-
i0.ɵɵelementStart(0, "a",
|
|
14114
|
-
i0.ɵɵlistener("click", function
|
|
14114
|
+
i0.ɵɵelementStart(0, "a", 20);
|
|
14115
|
+
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
14116
|
i0.ɵɵtext(1);
|
|
14116
14117
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14117
14118
|
i0.ɵɵelementEnd();
|
|
@@ -14124,20 +14125,18 @@ function WriteAddressFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
14124
14125
|
i0.ɵɵtext(2);
|
|
14125
14126
|
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
14126
14127
|
i0.ɵɵelementEnd();
|
|
14127
|
-
i0.ɵɵtemplate(4,
|
|
14128
|
+
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
14129
|
i0.ɵɵelementEnd();
|
|
14129
14130
|
} if (rf & 2) {
|
|
14130
|
-
const
|
|
14131
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
14131
14132
|
i0.ɵɵadvance(2);
|
|
14132
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3,
|
|
14133
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 4, ctx_r1.caseField));
|
|
14133
14134
|
i0.ɵɵadvance(2);
|
|
14134
|
-
i0.ɵɵproperty("ngIf",
|
|
14135
|
-
i0.ɵɵadvance();
|
|
14136
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.isExpanded);
|
|
14135
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.isExpanded);
|
|
14137
14136
|
i0.ɵɵadvance();
|
|
14138
|
-
i0.ɵɵproperty("ngIf",
|
|
14137
|
+
i0.ɵɵproperty("ngIf", ctx_r1.addressOptions);
|
|
14139
14138
|
i0.ɵɵadvance();
|
|
14140
|
-
i0.ɵɵproperty("ngIf", !
|
|
14139
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.shouldShowDetailFields());
|
|
14141
14140
|
} }
|
|
14142
14141
|
class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
14143
14142
|
isCompoundPipe;
|
|
@@ -14271,9 +14270,9 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14271
14270
|
let _t;
|
|
14272
14271
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
14273
14272
|
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-
|
|
14273
|
+
} }, 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
14274
|
i0.ɵɵelementStart(0, "div", 1);
|
|
14276
|
-
i0.ɵɵtemplate(1, WriteAddressFieldComponent_div_1_Template,
|
|
14275
|
+
i0.ɵɵtemplate(1, WriteAddressFieldComponent_div_1_Template, 7, 6, "div", 2);
|
|
14277
14276
|
i0.ɵɵelement(2, "ccd-write-complex-type-field", 3, 0);
|
|
14278
14277
|
i0.ɵɵelementEnd();
|
|
14279
14278
|
} if (rf & 2) {
|
|
@@ -14286,7 +14285,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14286
14285
|
}
|
|
14287
14286
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteAddressFieldComponent, [{
|
|
14288
14287
|
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
|
|
14288
|
+
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
14289
|
}], () => [{ type: AddressesService }, { type: IsCompoundPipe }], { writeComplexFieldComponent: [{
|
|
14291
14290
|
type: ViewChild,
|
|
14292
14291
|
args: ['writeComplexFieldComponent', { static: false }]
|
|
@@ -33584,7 +33583,7 @@ i0.ɵɵsetComponentScope(ReadLinkedCasesFieldComponent, function () { return [i4
|
|
|
33584
33583
|
// Components for linked cases
|
|
33585
33584
|
LinkedCasesToTableComponent,
|
|
33586
33585
|
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,
|
|
33586
|
+
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
33587
|
i0.ɵɵsetComponentScope(WriteComplexFieldComponent, function () { return [i4.NgForOf, i4.NgIf, i4.NgSwitch, i4.NgSwitchCase, i3.NgControlStatusGroup, i3.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent,
|
|
33589
33588
|
FieldWriteComponent]; }, function () { return [FieldLabelPipe, IsReadOnlyPipe]; });
|
|
33590
33589
|
i0.ɵɵsetComponentScope(WriteDocumentFieldComponent, function () { return [i4.NgClass, i4.NgIf, i1$4.MarkdownComponent, ReadDocumentFieldComponent]; }, function () { return [FieldLabelPipe, i1.RpxTranslatePipe]; });
|
|
@@ -35720,9 +35719,7 @@ class WorkbasketFiltersComponent {
|
|
|
35720
35719
|
.sort(this.orderService.sortAsc);
|
|
35721
35720
|
const formValue = this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
|
|
35722
35721
|
workbasketInputs.forEach(item => {
|
|
35723
|
-
|
|
35724
|
-
item.field.id = `${item.field.id}.${item.field.elementPath}`;
|
|
35725
|
-
}
|
|
35722
|
+
item.field.id = FieldsUtils.buildFieldId(item.field.id, item.field.elementPath, item.dataType);
|
|
35726
35723
|
item.field.label = item.label;
|
|
35727
35724
|
if (formValue) {
|
|
35728
35725
|
const searchFormValueObject = JSON.parse(formValue);
|
|
@@ -41276,12 +41273,14 @@ class SearchInput {
|
|
|
41276
41273
|
field;
|
|
41277
41274
|
metadata;
|
|
41278
41275
|
display_context_parameter;
|
|
41279
|
-
|
|
41276
|
+
dataType;
|
|
41277
|
+
constructor(label, order, field, metadata, display_context_parameter, dataType) {
|
|
41280
41278
|
this.label = label;
|
|
41281
41279
|
this.order = order;
|
|
41282
41280
|
this.field = field;
|
|
41283
41281
|
this.metadata = metadata;
|
|
41284
41282
|
this.display_context_parameter = display_context_parameter;
|
|
41283
|
+
this.dataType = dataType;
|
|
41285
41284
|
}
|
|
41286
41285
|
}
|
|
41287
41286
|
|
|
@@ -41480,9 +41479,7 @@ class SearchFiltersComponent {
|
|
|
41480
41479
|
formValueObject = JSON.parse(formValue);
|
|
41481
41480
|
}
|
|
41482
41481
|
searchInputs.forEach(item => {
|
|
41483
|
-
|
|
41484
|
-
item.field.id = `${item.field.id}.${item.field.elementPath}`;
|
|
41485
|
-
}
|
|
41482
|
+
item.field.id = FieldsUtils.buildFieldId(item.field.id, item.field.elementPath, item.dataType);
|
|
41486
41483
|
item.field.label = item.label;
|
|
41487
41484
|
if (formValueObject) {
|
|
41488
41485
|
item.field.value = formValueObject[item.field.id];
|