@hmcts/ccd-case-ui-toolkit 7.3.49-pofcc-75-v2 → 7.3.49-tmp2

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.
@@ -11045,8 +11045,8 @@ class CaseFlagStateService {
11045
11045
  type: Injectable
11046
11046
  }], null, null); })();
11047
11047
 
11048
- function CaseEditPageComponent_ng_container_1_h1_1_Template(rf, ctx) { if (rf & 1) {
11049
- i0.ɵɵelementStart(0, "h1", 12);
11048
+ function CaseEditPageComponent_ng_container_0_h1_1_Template(rf, ctx) { if (rf & 1) {
11049
+ i0.ɵɵelementStart(0, "h1", 11);
11050
11050
  i0.ɵɵtext(1);
11051
11051
  i0.ɵɵpipe(2, "rpxTranslate");
11052
11052
  i0.ɵɵelementEnd();
@@ -11055,13 +11055,13 @@ function CaseEditPageComponent_ng_container_1_h1_1_Template(rf, ctx) { if (rf &
11055
11055
  i0.ɵɵadvance();
11056
11056
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.eventTrigger.name));
11057
11057
  } }
11058
- function CaseEditPageComponent_ng_container_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
11058
+ function CaseEditPageComponent_ng_container_0_ng_container_2_Template(rf, ctx) { if (rf & 1) {
11059
11059
  i0.ɵɵelementContainerStart(0);
11060
- i0.ɵɵelementStart(1, "span", 13);
11060
+ i0.ɵɵelementStart(1, "span", 12);
11061
11061
  i0.ɵɵtext(2);
11062
11062
  i0.ɵɵpipe(3, "rpxTranslate");
11063
11063
  i0.ɵɵelementEnd();
11064
- i0.ɵɵelementStart(4, "h1", 12);
11064
+ i0.ɵɵelementStart(4, "h1", 11);
11065
11065
  i0.ɵɵtext(5);
11066
11066
  i0.ɵɵpipe(6, "rpxTranslate");
11067
11067
  i0.ɵɵelementEnd();
@@ -11073,9 +11073,9 @@ function CaseEditPageComponent_ng_container_1_ng_container_2_Template(rf, ctx) {
11073
11073
  i0.ɵɵadvance(3);
11074
11074
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, ctx_r1.currentPage.label));
11075
11075
  } }
11076
- function CaseEditPageComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
11076
+ function CaseEditPageComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
11077
11077
  i0.ɵɵelementContainerStart(0);
11078
- i0.ɵɵtemplate(1, CaseEditPageComponent_ng_container_1_h1_1_Template, 3, 3, "h1", 11)(2, CaseEditPageComponent_ng_container_1_ng_container_2_Template, 7, 6, "ng-container", 3);
11078
+ i0.ɵɵtemplate(1, CaseEditPageComponent_ng_container_0_h1_1_Template, 3, 3, "h1", 10)(2, CaseEditPageComponent_ng_container_0_ng_container_2_Template, 7, 6, "ng-container", 2);
11079
11079
  i0.ɵɵelementContainerEnd();
11080
11080
  } if (rf & 2) {
11081
11081
  const ctx_r1 = i0.ɵɵnextContext();
@@ -11084,19 +11084,19 @@ function CaseEditPageComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
11084
11084
  i0.ɵɵadvance();
11085
11085
  i0.ɵɵproperty("ngIf", ctx_r1.currentPage.label);
11086
11086
  } }
11087
- function CaseEditPageComponent_div_2_Template(rf, ctx) { if (rf & 1) {
11087
+ function CaseEditPageComponent_div_1_Template(rf, ctx) { if (rf & 1) {
11088
11088
  i0.ɵɵelement(0, "div");
11089
11089
  } }
11090
- function CaseEditPageComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
11091
- i0.ɵɵelement(0, "ccd-markdown", 14);
11090
+ function CaseEditPageComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
11091
+ i0.ɵɵelement(0, "ccd-markdown", 13);
11092
11092
  i0.ɵɵpipe(1, "ccdCaseTitle");
11093
11093
  i0.ɵɵpipe(2, "rpxTranslate");
11094
11094
  } if (rf & 2) {
11095
11095
  const ctx_r1 = i0.ɵɵnextContext();
11096
11096
  i0.ɵɵproperty("content", i0.ɵɵpipeBind1(2, 5, i0.ɵɵpipeBind3(1, 1, ctx_r1.getCaseTitle(), ctx_r1.caseFields, ctx_r1.editForm.controls["data"])));
11097
11097
  } }
11098
- function CaseEditPageComponent_ng_template_5_h2_0_Template(rf, ctx) { if (rf & 1) {
11099
- i0.ɵɵelementStart(0, "h2", 16);
11098
+ function CaseEditPageComponent_ng_template_4_h2_0_Template(rf, ctx) { if (rf & 1) {
11099
+ i0.ɵɵelementStart(0, "h2", 15);
11100
11100
  i0.ɵɵtext(1);
11101
11101
  i0.ɵɵpipe(2, "ccdCaseReference");
11102
11102
  i0.ɵɵelementEnd();
@@ -11105,16 +11105,16 @@ function CaseEditPageComponent_ng_template_5_h2_0_Template(rf, ctx) { if (rf & 1
11105
11105
  i0.ɵɵadvance();
11106
11106
  i0.ɵɵtextInterpolate1("#", i0.ɵɵpipeBind1(2, 1, ctx_r1.getCaseId()));
11107
11107
  } }
11108
- function CaseEditPageComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
11109
- i0.ɵɵtemplate(0, CaseEditPageComponent_ng_template_5_h2_0_Template, 3, 3, "h2", 15);
11108
+ function CaseEditPageComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
11109
+ i0.ɵɵtemplate(0, CaseEditPageComponent_ng_template_4_h2_0_Template, 3, 3, "h2", 14);
11110
11110
  } if (rf & 2) {
11111
11111
  const ctx_r1 = i0.ɵɵnextContext();
11112
11112
  i0.ɵɵproperty("ngIf", ctx_r1.getCaseId());
11113
11113
  } }
11114
- function CaseEditPageComponent_div_7_div_4_Template(rf, ctx) { if (rf & 1) {
11114
+ function CaseEditPageComponent_div_6_div_4_Template(rf, ctx) { if (rf & 1) {
11115
11115
  const _r3 = i0.ɵɵgetCurrentView();
11116
- i0.ɵɵelementStart(0, "div", 20)(1, "ul", 21)(2, "li")(3, "a", 22);
11117
- i0.ɵɵlistener("click", function CaseEditPageComponent_div_7_div_4_Template_a_click_3_listener() { const validationError_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.navigateToErrorElement(validationError_r4.id)); })("keyup.enter", function CaseEditPageComponent_div_7_div_4_Template_a_keyup_enter_3_listener() { const validationError_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.navigateToErrorElement(validationError_r4.id)); });
11116
+ i0.ɵɵelementStart(0, "div", 19)(1, "ul", 20)(2, "li")(3, "a", 21);
11117
+ i0.ɵɵlistener("click", function CaseEditPageComponent_div_6_div_4_Template_a_click_3_listener() { const validationError_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.navigateToErrorElement(validationError_r4.id)); })("keyup.enter", function CaseEditPageComponent_div_6_div_4_Template_a_keyup_enter_3_listener() { const validationError_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.navigateToErrorElement(validationError_r4.id)); });
11118
11118
  i0.ɵɵtext(4);
11119
11119
  i0.ɵɵpipe(5, "rpxTranslate");
11120
11120
  i0.ɵɵpipe(6, "rpxTranslate");
@@ -11125,12 +11125,12 @@ function CaseEditPageComponent_div_7_div_4_Template(rf, ctx) { if (rf & 1) {
11125
11125
  i0.ɵɵadvance(4);
11126
11126
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(6, 3, validationError_r4.message, ctx_r1.getRpxTranslatePipeArgs(i0.ɵɵpipeBind1(5, 1, validationError_r4.label)), null), " ");
11127
11127
  } }
11128
- function CaseEditPageComponent_div_7_Template(rf, ctx) { if (rf & 1) {
11129
- i0.ɵɵelementStart(0, "div", 17)(1, "h2", 18);
11128
+ function CaseEditPageComponent_div_6_Template(rf, ctx) { if (rf & 1) {
11129
+ i0.ɵɵelementStart(0, "div", 16)(1, "h2", 17);
11130
11130
  i0.ɵɵtext(2);
11131
11131
  i0.ɵɵpipe(3, "rpxTranslate");
11132
11132
  i0.ɵɵelementEnd();
11133
- i0.ɵɵtemplate(4, CaseEditPageComponent_div_7_div_4_Template, 7, 7, "div", 19);
11133
+ i0.ɵɵtemplate(4, CaseEditPageComponent_div_6_div_4_Template, 7, 7, "div", 18);
11134
11134
  i0.ɵɵelementEnd();
11135
11135
  } if (rf & 2) {
11136
11136
  const ctx_r1 = i0.ɵɵnextContext();
@@ -11139,21 +11139,21 @@ function CaseEditPageComponent_div_7_Template(rf, ctx) { if (rf & 1) {
11139
11139
  i0.ɵɵadvance(2);
11140
11140
  i0.ɵɵproperty("ngForOf", ctx_r1.validationErrors);
11141
11141
  } }
11142
- function CaseEditPageComponent_form_11_ccd_case_edit_form_3_Template(rf, ctx) { if (rf & 1) {
11142
+ function CaseEditPageComponent_form_10_ccd_case_edit_form_3_Template(rf, ctx) { if (rf & 1) {
11143
11143
  const _r6 = i0.ɵɵgetCurrentView();
11144
- i0.ɵɵelementStart(0, "ccd-case-edit-form", 33);
11145
- i0.ɵɵlistener("valuesChanged", function CaseEditPageComponent_form_11_ccd_case_edit_form_3_Template_ccd_case_edit_form_valuesChanged_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.applyValuesChanged($event)); });
11144
+ i0.ɵɵelementStart(0, "ccd-case-edit-form", 32);
11145
+ i0.ɵɵlistener("valuesChanged", function CaseEditPageComponent_form_10_ccd_case_edit_form_3_Template_ccd_case_edit_form_valuesChanged_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.applyValuesChanged($event)); });
11146
11146
  i0.ɵɵelementEnd();
11147
11147
  } if (rf & 2) {
11148
11148
  const ctx_r1 = i0.ɵɵnextContext(2);
11149
11149
  i0.ɵɵproperty("fields", ctx_r1.currentPage.getCol1Fields())("formGroup", ctx_r1.editForm.controls["data"])("caseFields", ctx_r1.caseFields)("pageChangeSubject", ctx_r1.pageChangeSubject);
11150
11150
  } }
11151
- function CaseEditPageComponent_form_11_div_4_Template(rf, ctx) { if (rf & 1) {
11152
- i0.ɵɵelementStart(0, "div", 34)(1, "div", 35);
11153
- i0.ɵɵelement(2, "ccd-case-edit-form", 36);
11151
+ function CaseEditPageComponent_form_10_div_4_Template(rf, ctx) { if (rf & 1) {
11152
+ i0.ɵɵelementStart(0, "div", 33)(1, "div", 34);
11153
+ i0.ɵɵelement(2, "ccd-case-edit-form", 35);
11154
11154
  i0.ɵɵelementEnd();
11155
- i0.ɵɵelementStart(3, "div", 37);
11156
- i0.ɵɵelement(4, "ccd-case-edit-form", 38);
11155
+ i0.ɵɵelementStart(3, "div", 36);
11156
+ i0.ɵɵelement(4, "ccd-case-edit-form", 37);
11157
11157
  i0.ɵɵelementEnd()();
11158
11158
  } if (rf & 2) {
11159
11159
  const ctx_r1 = i0.ɵɵnextContext(2);
@@ -11162,10 +11162,10 @@ function CaseEditPageComponent_form_11_div_4_Template(rf, ctx) { if (rf & 1) {
11162
11162
  i0.ɵɵadvance(2);
11163
11163
  i0.ɵɵproperty("fields", ctx_r1.currentPage.getCol2Fields())("formGroup", ctx_r1.editForm.controls["data"])("caseFields", ctx_r1.caseFields);
11164
11164
  } }
11165
- function CaseEditPageComponent_form_11_button_6_Template(rf, ctx) { if (rf & 1) {
11165
+ function CaseEditPageComponent_form_10_button_6_Template(rf, ctx) { if (rf & 1) {
11166
11166
  const _r7 = i0.ɵɵgetCurrentView();
11167
- i0.ɵɵelementStart(0, "button", 39);
11168
- i0.ɵɵlistener("click", function CaseEditPageComponent_form_11_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.toPreviousPage()); });
11167
+ i0.ɵɵelementStart(0, "button", 38);
11168
+ i0.ɵɵlistener("click", function CaseEditPageComponent_form_10_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.toPreviousPage()); });
11169
11169
  i0.ɵɵtext(1);
11170
11170
  i0.ɵɵpipe(2, "rpxTranslate");
11171
11171
  i0.ɵɵelementEnd();
@@ -11175,22 +11175,22 @@ function CaseEditPageComponent_form_11_button_6_Template(rf, ctx) { if (rf & 1)
11175
11175
  i0.ɵɵadvance();
11176
11176
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "Previous"), " ");
11177
11177
  } }
11178
- function CaseEditPageComponent_form_11_Template(rf, ctx) { if (rf & 1) {
11178
+ function CaseEditPageComponent_form_10_Template(rf, ctx) { if (rf & 1) {
11179
11179
  const _r5 = i0.ɵɵgetCurrentView();
11180
- i0.ɵɵelementStart(0, "form", 23);
11181
- i0.ɵɵlistener("submit", function CaseEditPageComponent_form_11_Template_form_submit_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.nextStep()); });
11182
- i0.ɵɵelementStart(1, "fieldset", 24);
11183
- i0.ɵɵelement(2, "legend", 25);
11184
- i0.ɵɵtemplate(3, CaseEditPageComponent_form_11_ccd_case_edit_form_3_Template, 1, 4, "ccd-case-edit-form", 26)(4, CaseEditPageComponent_form_11_div_4_Template, 5, 6, "div", 27);
11185
- i0.ɵɵelementEnd();
11186
- i0.ɵɵelementStart(5, "div", 28);
11187
- i0.ɵɵtemplate(6, CaseEditPageComponent_form_11_button_6_Template, 3, 4, "button", 29);
11188
- i0.ɵɵelementStart(7, "button", 30);
11180
+ i0.ɵɵelementStart(0, "form", 22);
11181
+ i0.ɵɵlistener("submit", function CaseEditPageComponent_form_10_Template_form_submit_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.nextStep()); });
11182
+ i0.ɵɵelementStart(1, "fieldset", 23);
11183
+ i0.ɵɵelement(2, "legend", 24);
11184
+ i0.ɵɵtemplate(3, CaseEditPageComponent_form_10_ccd_case_edit_form_3_Template, 1, 4, "ccd-case-edit-form", 25)(4, CaseEditPageComponent_form_10_div_4_Template, 5, 6, "div", 26);
11185
+ i0.ɵɵelementEnd();
11186
+ i0.ɵɵelementStart(5, "div", 27);
11187
+ i0.ɵɵtemplate(6, CaseEditPageComponent_form_10_button_6_Template, 3, 4, "button", 28);
11188
+ i0.ɵɵelementStart(7, "button", 29);
11189
11189
  i0.ɵɵtext(8);
11190
11190
  i0.ɵɵpipe(9, "rpxTranslate");
11191
11191
  i0.ɵɵelementEnd()();
11192
- i0.ɵɵelementStart(10, "p", 31)(11, "button", 32);
11193
- i0.ɵɵlistener("click", function CaseEditPageComponent_form_11_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.cancel()); });
11192
+ i0.ɵɵelementStart(10, "p", 30)(11, "button", 31);
11193
+ i0.ɵɵlistener("click", function CaseEditPageComponent_form_10_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.cancel()); });
11194
11194
  i0.ɵɵtext(12);
11195
11195
  i0.ɵɵpipe(13, "rpxTranslate");
11196
11196
  i0.ɵɵelementEnd()()();
@@ -11210,10 +11210,10 @@ function CaseEditPageComponent_form_11_Template(rf, ctx) { if (rf & 1) {
11210
11210
  i0.ɵɵadvance(4);
11211
11211
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 9, ctx_r1.getCancelText()));
11212
11212
  } }
11213
- function CaseEditPageComponent_ccd_case_event_completion_12_Template(rf, ctx) { if (rf & 1) {
11213
+ function CaseEditPageComponent_ccd_case_event_completion_11_Template(rf, ctx) { if (rf & 1) {
11214
11214
  const _r8 = i0.ɵɵgetCurrentView();
11215
- i0.ɵɵelementStart(0, "ccd-case-event-completion", 40);
11216
- i0.ɵɵlistener("eventCanBeCompleted", function CaseEditPageComponent_ccd_case_event_completion_12_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onEventCanBeCompleted($event)); });
11215
+ i0.ɵɵelementStart(0, "ccd-case-event-completion", 39);
11216
+ i0.ɵɵlistener("eventCanBeCompleted", function CaseEditPageComponent_ccd_case_event_completion_11_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onEventCanBeCompleted($event)); });
11217
11217
  i0.ɵɵelementEnd();
11218
11218
  } if (rf & 2) {
11219
11219
  const ctx_r1 = i0.ɵɵnextContext();
@@ -11908,23 +11908,20 @@ class CaseEditPageComponent {
11908
11908
  });
11909
11909
  }
11910
11910
  static ɵfac = function CaseEditPageComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(ValidPageListCaseFieldsService), i0.ɵɵdirectiveInject(MultipageComponentStateService), i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(CaseFlagStateService)); };
11911
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], standalone: false, decls: 13, vars: 11, consts: [["titleBlock", ""], ["idBlock", ""], ["id", "content", "role", "main", 1, "govuk-main-wrapper"], [4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [3, "error"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], ["tabindex", "0", 1, "validation-error", 3, "click", "keyup.enter"], [1, "form", 3, "submit", "formGroup"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["class", "button button-secondary", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["type", "button", 1, "govuk-js-link", 3, "click"], ["id", "caseEditForm", 3, "valuesChanged", "fields", "formGroup", "caseFields", "pageChangeSubject"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"], [3, "eventCanBeCompleted", "eventCompletionParams"]], template: function CaseEditPageComponent_Template(rf, ctx) { if (rf & 1) {
11911
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], standalone: false, decls: 12, vars: 11, consts: [["titleBlock", ""], ["idBlock", ""], [4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [3, "error"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], ["tabindex", "0", 1, "validation-error", 3, "click", "keyup.enter"], [1, "form", 3, "submit", "formGroup"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["class", "button button-secondary", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["type", "button", 1, "govuk-js-link", 3, "click"], ["id", "caseEditForm", 3, "valuesChanged", "fields", "formGroup", "caseFields", "pageChangeSubject"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"], [3, "eventCanBeCompleted", "eventCompletionParams"]], template: function CaseEditPageComponent_Template(rf, ctx) { if (rf & 1) {
11912
11912
  const _r1 = i0.ɵɵgetCurrentView();
11913
- i0.ɵɵelementStart(0, "main", 2);
11914
- i0.ɵɵtemplate(1, CaseEditPageComponent_ng_container_1_Template, 3, 2, "ng-container", 3)(2, CaseEditPageComponent_div_2_Template, 1, 0, "div", 4)(3, CaseEditPageComponent_ng_template_3_Template, 3, 7, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(5, CaseEditPageComponent_ng_template_5_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(7, CaseEditPageComponent_div_7_Template, 5, 4, "div", 5);
11915
- i0.ɵɵelement(8, "ccd-case-edit-generic-errors", 6);
11916
- i0.ɵɵelementStart(9, "ccd-callback-errors", 7);
11917
- i0.ɵɵlistener("callbackErrorsContext", function CaseEditPageComponent_Template_ccd_callback_errors_callbackErrorsContext_9_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.callbackErrorsNotify($event)); });
11913
+ i0.ɵɵtemplate(0, CaseEditPageComponent_ng_container_0_Template, 3, 2, "ng-container", 2)(1, CaseEditPageComponent_div_1_Template, 1, 0, "div", 3)(2, CaseEditPageComponent_ng_template_2_Template, 3, 7, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(4, CaseEditPageComponent_ng_template_4_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(6, CaseEditPageComponent_div_6_Template, 5, 4, "div", 4);
11914
+ i0.ɵɵelement(7, "ccd-case-edit-generic-errors", 5);
11915
+ i0.ɵɵelementStart(8, "ccd-callback-errors", 6);
11916
+ i0.ɵɵlistener("callbackErrorsContext", function CaseEditPageComponent_Template_ccd_callback_errors_callbackErrorsContext_8_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.callbackErrorsNotify($event)); });
11918
11917
  i0.ɵɵelementEnd();
11919
- i0.ɵɵelementStart(10, "div", 8);
11920
- i0.ɵɵtemplate(11, CaseEditPageComponent_form_11_Template, 14, 11, "form", 9);
11921
- i0.ɵɵelementEnd();
11922
- i0.ɵɵtemplate(12, CaseEditPageComponent_ccd_case_event_completion_12_Template, 1, 1, "ccd-case-event-completion", 10);
11918
+ i0.ɵɵelementStart(9, "div", 7);
11919
+ i0.ɵɵtemplate(10, CaseEditPageComponent_form_10_Template, 14, 11, "form", 8);
11923
11920
  i0.ɵɵelementEnd();
11921
+ i0.ɵɵtemplate(11, CaseEditPageComponent_ccd_case_event_completion_11_Template, 1, 1, "ccd-case-event-completion", 9);
11924
11922
  } if (rf & 2) {
11925
- const titleBlock_r9 = i0.ɵɵreference(4);
11926
- const idBlock_r10 = i0.ɵɵreference(6);
11927
- i0.ɵɵadvance();
11923
+ const titleBlock_r9 = i0.ɵɵreference(3);
11924
+ const idBlock_r10 = i0.ɵɵreference(5);
11928
11925
  i0.ɵɵproperty("ngIf", ctx.currentPage);
11929
11926
  i0.ɵɵadvance();
11930
11927
  i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen", titleBlock_r9)("ngIfElse", idBlock_r10);
@@ -11942,7 +11939,7 @@ class CaseEditPageComponent {
11942
11939
  }
11943
11940
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditPageComponent, [{
11944
11941
  type: Component,
11945
- args: [{ selector: 'ccd-case-edit-page', standalone: false, template: "<main id=\"content\" role=\"main\" class=\"govuk-main-wrapper\">\n <ng-container *ngIf=\"currentPage\">\n <h1 *ngIf=\"!currentPage.label\" class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n <ng-container *ngIf=\"currentPage.label\">\n <span class=\"govuk-caption-l\">{{ eventTrigger.name | rpxTranslate}}</span>\n <h1 class=\"govuk-heading-l\">{{currentPage.label | rpxTranslate}}</h1>\n </ng-container>\n </ng-container>\n\n <!--Case ID or Title -->\n <div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n <ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: caseFields : editForm.controls['data'] | rpxTranslate\"></ccd-markdown>\n </ng-template>\n <ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n </ng-template>\n\n <!-- Error message summary -->\n <div *ngIf=\"validationErrors.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let validationError of validationErrors\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(validationError.id)\" (keyup.enter)=\"navigateToErrorElement(validationError.id)\" tabindex=\"0\" class=\"validation-error\">\n {{ validationError.message | rpxTranslate: getRpxTranslatePipeArgs(validationError.label | rpxTranslate): null }}\n </a>\n </li>\n </ul>\n </div>\n </div>\n\n <ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n <ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n </ccd-callback-errors>\n <div class=\"width-50\">\n <form *ngIf=\"currentPage\" class=\"form\" [formGroup]=\"editForm\" (submit)=\"nextStep()\">\n <fieldset id=\"fieldset-case-data\">\n <legend style=\"display: none;\"></legend>\n <!-- single column -->\n <ccd-case-edit-form id='caseEditForm' *ngIf=\"!currentPage.isMultiColumn()\" [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"\n [pageChangeSubject]=\"pageChangeSubject\"\n (valuesChanged)=\"applyValuesChanged($event)\"></ccd-case-edit-form>\n <!-- two columns -->\n <div *ngIf=\"currentPage.isMultiColumn()\" class=\"grid-row\">\n <div class=\"column-two-thirds rightBorderSeparator\">\n <ccd-case-edit-form id='caseEditForm1' [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n <div class=\"column-one-third\">\n <ccd-case-edit-form id='caseEditForm2' [fields]=\"currentPage.getCol2Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n </div>\n </fieldset>\n\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"toPreviousPage()\" *ngIf=\"!isAtStart()\" [disabled]=\"isDisabled()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button class=\"button\" type=\"submit\" [disabled]=\"submitting()\">{{triggerText | rpxTranslate}}</button>\n </div>\n\n <p class=\"cancel\"><button type=\"button\" (click)=\"cancel()\" class=\"govuk-js-link\">{{getCancelText() | rpxTranslate}}</button></p>\n </form>\n </div>\n\n <ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n </ccd-case-event-completion>\n</main>\n", styles: [".rightBorderSeparator{border-right-width:4px;border-right-color:#ffcc02;border-right-style:solid}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
11942
+ args: [{ selector: 'ccd-case-edit-page', standalone: false, template: "<ng-container *ngIf=\"currentPage\">\n <h1 *ngIf=\"!currentPage.label\" class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n <ng-container *ngIf=\"currentPage.label\">\n <span class=\"govuk-caption-l\">{{ eventTrigger.name | rpxTranslate}}</span>\n <h1 class=\"govuk-heading-l\">{{currentPage.label | rpxTranslate}}</h1>\n </ng-container>\n</ng-container>\n\n<!--Case ID or Title -->\n<div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n<ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: caseFields : editForm.controls['data'] | rpxTranslate\"></ccd-markdown>\n</ng-template>\n<ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n</ng-template>\n\n<!-- Error message summary -->\n<div *ngIf=\"validationErrors.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let validationError of validationErrors\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(validationError.id)\" (keyup.enter)=\"navigateToErrorElement(validationError.id)\" tabindex=\"0\" class=\"validation-error\">\n {{ validationError.message | rpxTranslate: getRpxTranslatePipeArgs(validationError.label | rpxTranslate): null }}\n </a>\n </li>\n </ul>\n </div>\n</div>\n\n<ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<div class=\"width-50\">\n <form *ngIf=\"currentPage\" class=\"form\" [formGroup]=\"editForm\" (submit)=\"nextStep()\">\n <fieldset id=\"fieldset-case-data\">\n <legend style=\"display: none;\"></legend>\n <!-- single column -->\n <ccd-case-edit-form id='caseEditForm' *ngIf=\"!currentPage.isMultiColumn()\" [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"\n [pageChangeSubject]=\"pageChangeSubject\"\n (valuesChanged)=\"applyValuesChanged($event)\"></ccd-case-edit-form>\n <!-- two columns -->\n <div *ngIf=\"currentPage.isMultiColumn()\" class=\"grid-row\">\n <div class=\"column-two-thirds rightBorderSeparator\">\n <ccd-case-edit-form id='caseEditForm1' [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n <div class=\"column-one-third\">\n <ccd-case-edit-form id='caseEditForm2' [fields]=\"currentPage.getCol2Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n </div>\n </fieldset>\n\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"toPreviousPage()\" *ngIf=\"!isAtStart()\" [disabled]=\"isDisabled()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button class=\"button\" type=\"submit\" [disabled]=\"submitting()\">{{triggerText | rpxTranslate}}</button>\n </div>\n\n <p class=\"cancel\"><button type=\"button\" (click)=\"cancel()\" class=\"govuk-js-link\">{{getCancelText() | rpxTranslate}}</button></p>\n </form>\n</div>\n\n<ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>\n", styles: [".rightBorderSeparator{border-right-width:4px;border-right-color:#ffcc02;border-right-style:solid}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
11946
11943
  }], () => [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.MatLegacyDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }, { type: MultipageComponentStateService }, { type: AddressesService }, { type: LinkedCasesService }, { type: CaseFlagStateService }], null); })();
11947
11944
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber: 35 }); })();
11948
11945