@hmcts/ccd-case-ui-toolkit 6.10.7-case-flags-align-page-titles → 6.10.7-case-flags-support-tab-changes-v2

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.
@@ -12098,10 +12098,10 @@
12098
12098
 
12099
12099
  function ReadCaseFlagFieldComponent_ng_container_1_Template(rf, ctx) {
12100
12100
  if (rf & 1) {
12101
- var _r3_1 = i0__namespace.ɵɵgetCurrentView();
12101
+ var _r6_1 = i0__namespace.ɵɵgetCurrentView();
12102
12102
  i0__namespace.ɵɵelementContainerStart(0);
12103
- i0__namespace.ɵɵelementStart(1, "ccd-case-flag-summary-list", 3);
12104
- i0__namespace.ɵɵlistener("changeButtonEmitter", function ReadCaseFlagFieldComponent_ng_container_1_Template_ccd_case_flag_summary_list_changeButtonEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r3_1); var ctx_r2 = i0__namespace.ɵɵnextContext(); return ctx_r2.navigateBackToForm($event); });
12103
+ i0__namespace.ɵɵelementStart(1, "ccd-case-flag-summary-list", 6);
12104
+ i0__namespace.ɵɵlistener("changeButtonEmitter", function ReadCaseFlagFieldComponent_ng_container_1_Template_ccd_case_flag_summary_list_changeButtonEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.navigateBackToForm($event); });
12105
12105
  i0__namespace.ɵɵelementEnd();
12106
12106
  i0__namespace.ɵɵelementContainerEnd();
12107
12107
  }
@@ -12111,55 +12111,51 @@
12111
12111
  i0__namespace.ɵɵproperty("flagForSummaryDisplay", ctx_r0.flagForSummaryDisplay)("summaryListDisplayMode", ctx_r0.summaryListDisplayMode);
12112
12112
  }
12113
12113
  }
12114
- function ReadCaseFlagFieldComponent_ng_container_2_div_3_ccd_case_flag_table_1_Template(rf, ctx) {
12114
+ function ReadCaseFlagFieldComponent_ng_container_5_Template(rf, ctx) {
12115
12115
  if (rf & 1) {
12116
- i0__namespace.ɵɵelement(0, "ccd-case-flag-table", 8);
12116
+ i0__namespace.ɵɵelementContainerStart(0);
12117
+ i0__namespace.ɵɵtext(1, " Support requested ");
12118
+ i0__namespace.ɵɵelementContainerEnd();
12117
12119
  }
12118
- if (rf & 2) {
12119
- var flagData_r6 = i0__namespace.ɵɵnextContext().$implicit;
12120
- i0__namespace.ɵɵproperty("tableCaption", flagData_r6.flags.partyName)("flagData", flagData_r6)("firstColumnHeader", "Party level flags");
12120
+ }
12121
+ function ReadCaseFlagFieldComponent_ng_container_6_Template(rf, ctx) {
12122
+ if (rf & 1) {
12123
+ i0__namespace.ɵɵelementContainerStart(0);
12124
+ i0__namespace.ɵɵtext(1, " Case flags ");
12125
+ i0__namespace.ɵɵelementContainerEnd();
12121
12126
  }
12122
12127
  }
12123
- function ReadCaseFlagFieldComponent_ng_container_2_div_3_Template(rf, ctx) {
12128
+ function ReadCaseFlagFieldComponent_div_7_ccd_case_flag_table_1_Template(rf, ctx) {
12124
12129
  if (rf & 1) {
12125
- i0__namespace.ɵɵelementStart(0, "div");
12126
- i0__namespace.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_2_div_3_ccd_case_flag_table_1_Template, 1, 3, "ccd-case-flag-table", 7);
12127
- i0__namespace.ɵɵelementEnd();
12130
+ i0__namespace.ɵɵelement(0, "ccd-case-flag-table", 8);
12128
12131
  }
12129
12132
  if (rf & 2) {
12130
- var flagData_r6 = ctx.$implicit;
12131
- i0__namespace.ɵɵadvance(1);
12132
- i0__namespace.ɵɵproperty("ngIf", flagData_r6.flags.partyName);
12133
+ var flagData_r7 = i0__namespace.ɵɵnextContext().$implicit;
12134
+ i0__namespace.ɵɵproperty("tableCaption", flagData_r7.flags.partyName)("flagData", flagData_r7)("firstColumnHeader", "Party level flags");
12133
12135
  }
12134
12136
  }
12135
- function ReadCaseFlagFieldComponent_ng_container_2_div_4_Template(rf, ctx) {
12137
+ function ReadCaseFlagFieldComponent_div_7_Template(rf, ctx) {
12136
12138
  if (rf & 1) {
12137
12139
  i0__namespace.ɵɵelementStart(0, "div");
12138
- i0__namespace.ɵɵelement(1, "ccd-case-flag-table", 8);
12140
+ i0__namespace.ɵɵtemplate(1, ReadCaseFlagFieldComponent_div_7_ccd_case_flag_table_1_Template, 1, 3, "ccd-case-flag-table", 7);
12139
12141
  i0__namespace.ɵɵelementEnd();
12140
12142
  }
12141
12143
  if (rf & 2) {
12142
- var ctx_r5 = i0__namespace.ɵɵnextContext(2);
12144
+ var flagData_r7 = ctx.$implicit;
12143
12145
  i0__namespace.ɵɵadvance(1);
12144
- i0__namespace.ɵɵproperty("tableCaption", "Case level flags")("flagData", ctx_r5.caseLevelCaseFlagData)("firstColumnHeader", "Case flags");
12146
+ i0__namespace.ɵɵproperty("ngIf", flagData_r7.flags.partyName);
12145
12147
  }
12146
12148
  }
12147
- function ReadCaseFlagFieldComponent_ng_container_2_Template(rf, ctx) {
12149
+ function ReadCaseFlagFieldComponent_div_8_Template(rf, ctx) {
12148
12150
  if (rf & 1) {
12149
- i0__namespace.ɵɵelementContainerStart(0);
12150
- i0__namespace.ɵɵelementStart(1, "h2", 4);
12151
- i0__namespace.ɵɵtext(2, "Case flags");
12151
+ i0__namespace.ɵɵelementStart(0, "div");
12152
+ i0__namespace.ɵɵelement(1, "ccd-case-flag-table", 8);
12152
12153
  i0__namespace.ɵɵelementEnd();
12153
- i0__namespace.ɵɵtemplate(3, ReadCaseFlagFieldComponent_ng_container_2_div_3_Template, 2, 1, "div", 5);
12154
- i0__namespace.ɵɵtemplate(4, ReadCaseFlagFieldComponent_ng_container_2_div_4_Template, 2, 3, "div", 6);
12155
- i0__namespace.ɵɵelementContainerEnd();
12156
12154
  }
12157
12155
  if (rf & 2) {
12158
- var ctx_r1 = i0__namespace.ɵɵnextContext();
12159
- i0__namespace.ɵɵadvance(3);
12160
- i0__namespace.ɵɵproperty("ngForOf", ctx_r1.partyLevelCaseFlagData);
12156
+ var ctx_r4 = i0__namespace.ɵɵnextContext();
12161
12157
  i0__namespace.ɵɵadvance(1);
12162
- i0__namespace.ɵɵproperty("ngIf", ctx_r1.caseLevelCaseFlagData);
12158
+ i0__namespace.ɵɵproperty("tableCaption", "Case level flags")("flagData", ctx_r4.caseLevelCaseFlagData)("firstColumnHeader", "Case flags");
12163
12159
  }
12164
12160
  }
12165
12161
  var ReadCaseFlagFieldComponent = /** @class */ (function (_super) {
@@ -12170,14 +12166,20 @@
12170
12166
  _this.router = router;
12171
12167
  _this.caseFlagStateService = caseFlagStateService;
12172
12168
  _this.paletteContext = exports.PaletteContext;
12169
+ _this.displayContextParameter = '';
12173
12170
  _this.caseLevelCaseFlagsFieldId = 'caseFlags';
12174
12171
  _this.caseNameMissing = 'Case name missing';
12172
+ _this.readSupportMode = '#ARGUMENT(READ,EXTERNAL)';
12175
12173
  _this.createMode = '#ARGUMENT(CREATE)';
12176
12174
  _this.updateMode = '#ARGUMENT(UPDATE)';
12177
12175
  return _this;
12178
12176
  }
12179
12177
  ReadCaseFlagFieldComponent.prototype.ngOnInit = function () {
12180
12178
  var _this = this;
12179
+ var _a, _b;
12180
+ var flagLauncherControlName = Object.keys(this.formGroup.controls).find(function (controlName) { return FieldsUtils.isFlagLauncherCaseField(_this.formGroup.get(controlName)['caseField']); });
12181
+ var flagLauncherComponent = (_a = this.formGroup.get(flagLauncherControlName)) === null || _a === void 0 ? void 0 : _a['component'];
12182
+ this.displayContextParameter = (_b = flagLauncherComponent === null || flagLauncherComponent === void 0 ? void 0 : flagLauncherComponent.caseField) === null || _b === void 0 ? void 0 : _b.display_context_parameter;
12181
12183
  // If the context is PaletteContext.DEFAULT, the Flags fields need to be located by CaseTab (they won't be present
12182
12184
  // in the FormGroup - only the FlagLauncher field is present)
12183
12185
  if (this.context === exports.PaletteContext.DEFAULT) {
@@ -12202,9 +12204,7 @@
12202
12204
  // The FlagLauncher component, WriteCaseFlagFieldComponent, holds a reference to:
12203
12205
  // i) the parent FormGroup for the Flags instance where changes have been made;
12204
12206
  // ii) the currently selected flag (selectedFlag) if one exists
12205
- var flagLauncherControlName = Object.keys(this.formGroup.controls).find(function (controlName) { return FieldsUtils.isFlagLauncherCaseField(_this.formGroup.get(controlName)['caseField']); });
12206
- if (flagLauncherControlName && this.formGroup.get(flagLauncherControlName)['component']) {
12207
- var flagLauncherComponent = this.formGroup.get(flagLauncherControlName)['component'];
12207
+ if (flagLauncherComponent) {
12208
12208
  // The FlagLauncher component holds a reference (selectedFlagsLocation) containing the CaseField instance to
12209
12209
  // which the new flag has been added
12210
12210
  if (flagLauncherComponent.caseField.display_context_parameter === this.createMode &&
@@ -12256,17 +12256,34 @@
12256
12256
  return ReadCaseFlagFieldComponent;
12257
12257
  }(AbstractFieldReadComponent));
12258
12258
  ReadCaseFlagFieldComponent.ɵfac = function ReadCaseFlagFieldComponent_Factory(t) { return new (t || ReadCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(CaseFlagStateService)); };
12259
- ReadCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadCaseFlagFieldComponent, selectors: [["ccd-read-case-flag-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [3, "flagForSummaryDisplay", "summaryListDisplayMode", "changeButtonEmitter"], [1, "govuk-heading-l"], [4, "ngFor", "ngForOf"], [4, "ngIf"], [3, "tableCaption", "flagData", "firstColumnHeader", 4, "ngIf"], [3, "tableCaption", "flagData", "firstColumnHeader"]], template: function ReadCaseFlagFieldComponent_Template(rf, ctx) {
12259
+ ReadCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadCaseFlagFieldComponent, selectors: [["ccd-read-case-flag-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 9, vars: 6, consts: [[3, "ngSwitch"], [4, "ngSwitchCase"], ["id", "read-case-flag-title", 1, "govuk-heading-l"], [4, "ngSwitchDefault"], [4, "ngFor", "ngForOf"], [4, "ngIf"], [3, "flagForSummaryDisplay", "summaryListDisplayMode", "changeButtonEmitter"], [3, "tableCaption", "flagData", "firstColumnHeader", 4, "ngIf"], [3, "tableCaption", "flagData", "firstColumnHeader"]], template: function ReadCaseFlagFieldComponent_Template(rf, ctx) {
12260
12260
  if (rf & 1) {
12261
12261
  i0__namespace.ɵɵelementContainerStart(0, 0);
12262
12262
  i0__namespace.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_1_Template, 2, 2, "ng-container", 1);
12263
- i0__namespace.ɵɵtemplate(2, ReadCaseFlagFieldComponent_ng_container_2_Template, 5, 2, "ng-container", 2);
12263
+ i0__namespace.ɵɵelementContainerStart(2);
12264
+ i0__namespace.ɵɵelementStart(3, "h2", 2);
12265
+ i0__namespace.ɵɵelementContainerStart(4, 0);
12266
+ i0__namespace.ɵɵtemplate(5, ReadCaseFlagFieldComponent_ng_container_5_Template, 2, 0, "ng-container", 1);
12267
+ i0__namespace.ɵɵtemplate(6, ReadCaseFlagFieldComponent_ng_container_6_Template, 2, 0, "ng-container", 3);
12268
+ i0__namespace.ɵɵelementContainerEnd();
12269
+ i0__namespace.ɵɵelementEnd();
12270
+ i0__namespace.ɵɵtemplate(7, ReadCaseFlagFieldComponent_div_7_Template, 2, 1, "div", 4);
12271
+ i0__namespace.ɵɵtemplate(8, ReadCaseFlagFieldComponent_div_8_Template, 2, 3, "div", 5);
12272
+ i0__namespace.ɵɵelementContainerEnd();
12264
12273
  i0__namespace.ɵɵelementContainerEnd();
12265
12274
  }
12266
12275
  if (rf & 2) {
12267
12276
  i0__namespace.ɵɵproperty("ngSwitch", ctx.context);
12268
12277
  i0__namespace.ɵɵadvance(1);
12269
12278
  i0__namespace.ɵɵproperty("ngSwitchCase", ctx.paletteContext.CHECK_YOUR_ANSWER);
12279
+ i0__namespace.ɵɵadvance(3);
12280
+ i0__namespace.ɵɵproperty("ngSwitch", ctx.displayContextParameter);
12281
+ i0__namespace.ɵɵadvance(1);
12282
+ i0__namespace.ɵɵproperty("ngSwitchCase", ctx.readSupportMode);
12283
+ i0__namespace.ɵɵadvance(2);
12284
+ i0__namespace.ɵɵproperty("ngForOf", ctx.partyLevelCaseFlagData);
12285
+ i0__namespace.ɵɵadvance(1);
12286
+ i0__namespace.ɵɵproperty("ngIf", ctx.caseLevelCaseFlagData);
12270
12287
  }
12271
12288
  }, styles: [".govuk-heading-l[_ngcontent-%COMP%]{margin-top:30px}"] });
12272
12289
  (function () {
@@ -19079,109 +19096,88 @@
19079
19096
  SearchLanguageInterpreterControlNames["MANUAL_LANGUAGE_ENTRY"] = "manualLanguageEntry";
19080
19097
  })(SearchLanguageInterpreterControlNames || (SearchLanguageInterpreterControlNames = {}));
19081
19098
 
19082
- function SelectFlagTypeComponent_div_0_ng_container_5_Template(rf, ctx) {
19083
- if (rf & 1) {
19084
- i0__namespace.ɵɵelementContainerStart(0);
19085
- i0__namespace.ɵɵtext(1);
19086
- i0__namespace.ɵɵelementContainerEnd();
19087
- }
19088
- if (rf & 2) {
19089
- var ctx_r1 = i0__namespace.ɵɵnextContext(2);
19090
- i0__namespace.ɵɵadvance(1);
19091
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
19092
- }
19093
- }
19094
- function SelectFlagTypeComponent_div_0_ng_template_6_Template(rf, ctx) {
19095
- if (rf & 1) {
19096
- i0__namespace.ɵɵtext(0);
19097
- }
19098
- if (rf & 2) {
19099
- var ctx_r3 = i0__namespace.ɵɵnextContext(2);
19100
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r3.selectionTitle, " ");
19101
- }
19102
- }
19103
- function SelectFlagTypeComponent_div_0_div_8_Template(rf, ctx) {
19099
+ function SelectFlagTypeComponent_div_0_div_6_Template(rf, ctx) {
19104
19100
  if (rf & 1) {
19105
- i0__namespace.ɵɵelementStart(0, "div", 13);
19106
- i0__namespace.ɵɵelementStart(1, "span", 14);
19101
+ i0__namespace.ɵɵelementStart(0, "div", 11);
19102
+ i0__namespace.ɵɵelementStart(1, "span", 12);
19107
19103
  i0__namespace.ɵɵtext(2, "Error:");
19108
19104
  i0__namespace.ɵɵelementEnd();
19109
19105
  i0__namespace.ɵɵtext(3);
19110
19106
  i0__namespace.ɵɵelementEnd();
19111
19107
  }
19112
19108
  if (rf & 2) {
19113
- var ctx_r4 = i0__namespace.ɵɵnextContext(2);
19109
+ var ctx_r1 = i0__namespace.ɵɵnextContext(2);
19114
19110
  i0__namespace.ɵɵadvance(3);
19115
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r4.flagTypeNotSelectedErrorMessage, " ");
19111
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.flagTypeNotSelectedErrorMessage, " ");
19116
19112
  }
19117
19113
  }
19118
- function SelectFlagTypeComponent_div_0_div_10_Template(rf, ctx) {
19114
+ function SelectFlagTypeComponent_div_0_div_8_Template(rf, ctx) {
19119
19115
  if (rf & 1) {
19120
- i0__namespace.ɵɵelementStart(0, "div", 15);
19121
- i0__namespace.ɵɵelement(1, "input", 16);
19122
- i0__namespace.ɵɵelementStart(2, "label", 17);
19116
+ i0__namespace.ɵɵelementStart(0, "div", 13);
19117
+ i0__namespace.ɵɵelement(1, "input", 14);
19118
+ i0__namespace.ɵɵelementStart(2, "label", 15);
19123
19119
  i0__namespace.ɵɵtext(3);
19124
19120
  i0__namespace.ɵɵelementEnd();
19125
19121
  i0__namespace.ɵɵelementEnd();
19126
19122
  }
19127
19123
  if (rf & 2) {
19128
- var flagType_r8 = ctx.$implicit;
19129
- var i_r9 = ctx.index;
19130
- var ctx_r5 = i0__namespace.ɵɵnextContext(2);
19124
+ var flagType_r5 = ctx.$implicit;
19125
+ var i_r6 = ctx.index;
19126
+ var ctx_r2 = i0__namespace.ɵɵnextContext(2);
19131
19127
  i0__namespace.ɵɵadvance(1);
19132
- i0__namespace.ɵɵpropertyInterpolate1("id", "flag-type-", i_r9, "");
19133
- i0__namespace.ɵɵproperty("name", ctx_r5.flagTypeControlName)("value", flagType_r8)("formControlName", ctx_r5.flagTypeControlName);
19128
+ i0__namespace.ɵɵpropertyInterpolate1("id", "flag-type-", i_r6, "");
19129
+ i0__namespace.ɵɵproperty("name", ctx_r2.flagTypeControlName)("value", flagType_r5)("formControlName", ctx_r2.flagTypeControlName);
19134
19130
  i0__namespace.ɵɵadvance(1);
19135
- i0__namespace.ɵɵpropertyInterpolate1("for", "flag-type-", i_r9, "");
19131
+ i0__namespace.ɵɵpropertyInterpolate1("for", "flag-type-", i_r6, "");
19136
19132
  i0__namespace.ɵɵadvance(1);
19137
- i0__namespace.ɵɵtextInterpolate(flagType_r8.name);
19133
+ i0__namespace.ɵɵtextInterpolate(flagType_r5.name);
19138
19134
  }
19139
19135
  }
19140
- function SelectFlagTypeComponent_div_0_div_11_div_4_Template(rf, ctx) {
19136
+ function SelectFlagTypeComponent_div_0_div_9_div_4_Template(rf, ctx) {
19141
19137
  if (rf & 1) {
19142
- i0__namespace.ɵɵelementStart(0, "div", 22);
19143
- i0__namespace.ɵɵelementStart(1, "span", 14);
19138
+ i0__namespace.ɵɵelementStart(0, "div", 20);
19139
+ i0__namespace.ɵɵelementStart(1, "span", 12);
19144
19140
  i0__namespace.ɵɵtext(2, "Error:");
19145
19141
  i0__namespace.ɵɵelementEnd();
19146
19142
  i0__namespace.ɵɵtext(3);
19147
19143
  i0__namespace.ɵɵelementEnd();
19148
19144
  }
19149
19145
  if (rf & 2) {
19150
- var ctx_r10 = i0__namespace.ɵɵnextContext(3);
19146
+ var ctx_r7 = i0__namespace.ɵɵnextContext(3);
19151
19147
  i0__namespace.ɵɵadvance(3);
19152
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r10.flagTypeErrorMessage, " ");
19148
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r7.flagTypeErrorMessage, " ");
19153
19149
  }
19154
19150
  }
19155
19151
  var _c0$q = function (a0) { return { "form-group-error": a0 }; };
19156
19152
  var _c1$6 = function (a0) { return { "govuk-input--error": a0 }; };
19157
- function SelectFlagTypeComponent_div_0_div_11_Template(rf, ctx) {
19153
+ function SelectFlagTypeComponent_div_0_div_9_Template(rf, ctx) {
19158
19154
  if (rf & 1) {
19159
- i0__namespace.ɵɵelementStart(0, "div", 18);
19155
+ i0__namespace.ɵɵelementStart(0, "div", 16);
19160
19156
  i0__namespace.ɵɵelementStart(1, "div", 2);
19161
- i0__namespace.ɵɵelementStart(2, "label", 19);
19157
+ i0__namespace.ɵɵelementStart(2, "label", 17);
19162
19158
  i0__namespace.ɵɵtext(3, "Enter a flag type");
19163
19159
  i0__namespace.ɵɵelementEnd();
19164
- i0__namespace.ɵɵtemplate(4, SelectFlagTypeComponent_div_0_div_11_div_4_Template, 4, 1, "div", 20);
19165
- i0__namespace.ɵɵelement(5, "input", 21);
19160
+ i0__namespace.ɵɵtemplate(4, SelectFlagTypeComponent_div_0_div_9_div_4_Template, 4, 1, "div", 18);
19161
+ i0__namespace.ɵɵelement(5, "input", 19);
19166
19162
  i0__namespace.ɵɵelementEnd();
19167
19163
  i0__namespace.ɵɵelementEnd();
19168
19164
  }
19169
19165
  if (rf & 2) {
19170
- var ctx_r6 = i0__namespace.ɵɵnextContext(2);
19166
+ var ctx_r3 = i0__namespace.ɵɵnextContext(2);
19171
19167
  i0__namespace.ɵɵadvance(1);
19172
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$q, ctx_r6.flagTypeErrorMessage.length > 0));
19168
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$q, ctx_r3.flagTypeErrorMessage.length > 0));
19173
19169
  i0__namespace.ɵɵadvance(3);
19174
- i0__namespace.ɵɵproperty("ngIf", ctx_r6.flagTypeErrorMessage.length > 0);
19170
+ i0__namespace.ɵɵproperty("ngIf", ctx_r3.flagTypeErrorMessage.length > 0);
19175
19171
  i0__namespace.ɵɵadvance(1);
19176
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$6, ctx_r6.flagTypeErrorMessage.length > 0))("name", ctx_r6.descriptionControlName)("formControlName", ctx_r6.descriptionControlName);
19172
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$6, ctx_r3.flagTypeErrorMessage.length > 0))("name", ctx_r3.descriptionControlName)("formControlName", ctx_r3.descriptionControlName);
19177
19173
  }
19178
19174
  }
19179
- function SelectFlagTypeComponent_div_0_div_12_Template(rf, ctx) {
19175
+ function SelectFlagTypeComponent_div_0_div_10_Template(rf, ctx) {
19180
19176
  if (rf & 1) {
19181
- var _r12_1 = i0__namespace.ɵɵgetCurrentView();
19182
- i0__namespace.ɵɵelementStart(0, "div", 23);
19183
- i0__namespace.ɵɵelementStart(1, "button", 24);
19184
- i0__namespace.ɵɵlistener("click", function SelectFlagTypeComponent_div_0_div_12_Template_button_click_1_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(2); return ctx_r11.onNext(); });
19177
+ var _r9_1 = i0__namespace.ɵɵgetCurrentView();
19178
+ i0__namespace.ɵɵelementStart(0, "div", 21);
19179
+ i0__namespace.ɵɵelementStart(1, "button", 22);
19180
+ i0__namespace.ɵɵlistener("click", function SelectFlagTypeComponent_div_0_div_10_Template_button_click_1_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.onNext(); });
19185
19181
  i0__namespace.ɵɵtext(2, "Next");
19186
19182
  i0__namespace.ɵɵelementEnd();
19187
19183
  i0__namespace.ɵɵelementEnd();
@@ -19194,29 +19190,27 @@
19194
19190
  i0__namespace.ɵɵelementStart(2, "fieldset", 3);
19195
19191
  i0__namespace.ɵɵelementStart(3, "legend", 4);
19196
19192
  i0__namespace.ɵɵelementStart(4, "h1", 5);
19197
- i0__namespace.ɵɵtemplate(5, SelectFlagTypeComponent_div_0_ng_container_5_Template, 2, 1, "ng-container", 6);
19198
- i0__namespace.ɵɵtemplate(6, SelectFlagTypeComponent_div_0_ng_template_6_Template, 1, 1, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
19193
+ i0__namespace.ɵɵtext(5);
19199
19194
  i0__namespace.ɵɵelementEnd();
19200
19195
  i0__namespace.ɵɵelementEnd();
19201
- i0__namespace.ɵɵtemplate(8, SelectFlagTypeComponent_div_0_div_8_Template, 4, 1, "div", 8);
19202
- i0__namespace.ɵɵelementStart(9, "div", 9);
19203
- i0__namespace.ɵɵtemplate(10, SelectFlagTypeComponent_div_0_div_10_Template, 4, 6, "div", 10);
19204
- i0__namespace.ɵɵtemplate(11, SelectFlagTypeComponent_div_0_div_11_Template, 6, 9, "div", 11);
19196
+ i0__namespace.ɵɵtemplate(6, SelectFlagTypeComponent_div_0_div_6_Template, 4, 1, "div", 6);
19197
+ i0__namespace.ɵɵelementStart(7, "div", 7);
19198
+ i0__namespace.ɵɵtemplate(8, SelectFlagTypeComponent_div_0_div_8_Template, 4, 6, "div", 8);
19199
+ i0__namespace.ɵɵtemplate(9, SelectFlagTypeComponent_div_0_div_9_Template, 6, 9, "div", 9);
19205
19200
  i0__namespace.ɵɵelementEnd();
19206
19201
  i0__namespace.ɵɵelementEnd();
19207
19202
  i0__namespace.ɵɵelementEnd();
19208
- i0__namespace.ɵɵtemplate(12, SelectFlagTypeComponent_div_0_div_12_Template, 3, 0, "div", 12);
19203
+ i0__namespace.ɵɵtemplate(10, SelectFlagTypeComponent_div_0_div_10_Template, 3, 0, "div", 10);
19209
19204
  i0__namespace.ɵɵelementEnd();
19210
19205
  }
19211
19206
  if (rf & 2) {
19212
- var _r2 = i0__namespace.ɵɵreference(7);
19213
19207
  var ctx_r0 = i0__namespace.ɵɵnextContext();
19214
19208
  i0__namespace.ɵɵproperty("formGroup", ctx_r0.formGroup);
19215
19209
  i0__namespace.ɵɵadvance(1);
19216
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$q, ctx_r0.flagTypeNotSelectedErrorMessage.length > 0));
19210
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$q, ctx_r0.flagTypeNotSelectedErrorMessage.length > 0));
19217
19211
  i0__namespace.ɵɵadvance(4);
19218
- i0__namespace.ɵɵproperty("ngIf", !ctx_r0.selectionTitle)("ngIfElse", _r2);
19219
- i0__namespace.ɵɵadvance(3);
19212
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
19213
+ i0__namespace.ɵɵadvance(1);
19220
19214
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.flagTypeNotSelectedErrorMessage.length > 0);
19221
19215
  i0__namespace.ɵɵadvance(2);
19222
19216
  i0__namespace.ɵɵproperty("ngForOf", ctx_r0.flagTypes);
@@ -19234,7 +19228,6 @@
19234
19228
  this.flagTypeNotSelectedErrorMessage = '';
19235
19229
  this.flagTypeErrorMessage = '';
19236
19230
  this.refdataError = false;
19237
- this.selectionTitle = '';
19238
19231
  this.flagTypeControlName = 'flagType';
19239
19232
  this.descriptionControlName = 'otherFlagTypeDescription';
19240
19233
  this.maxCharactersForOtherFlagType = 80;
@@ -19342,7 +19335,6 @@
19342
19335
  }
19343
19336
  // If the selected flag type is a parent, load the list of child flag types and reset the current selection
19344
19337
  if (this.selectedFlagType && this.selectedFlagType.isParent) {
19345
- this.selectionTitle = this.selectedFlagType.name;
19346
19338
  this.flagTypes = this.selectedFlagType.childFlags;
19347
19339
  (_a = this.cachedPath) === null || _a === void 0 ? void 0 : _a.shift();
19348
19340
  this.formGroup.get(this.flagTypeControlName).setValue(((_b = this.cachedPath) === null || _b === void 0 ? void 0 : _b.length) ? this.cachedPath[0] : null, { emitEvent: false });
@@ -19379,9 +19371,9 @@
19379
19371
  return SelectFlagTypeComponent;
19380
19372
  }());
19381
19373
  SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)); };
19382
- SelectFlagTypeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 1, vars: 1, consts: [["class", "form-group", 3, "formGroup", 4, "ngIf"], [1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading", "govuk-!-margin-bottom-1"], [4, "ngIf", "ngIfElse"], ["selectionTitlePresent", ""], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagTypeComponent_Template(rf, ctx) {
19374
+ SelectFlagTypeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 1, vars: 1, consts: [["class", "form-group", 3, "formGroup", 4, "ngIf"], [1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading"], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagTypeComponent_Template(rf, ctx) {
19383
19375
  if (rf & 1) {
19384
- i0__namespace.ɵɵtemplate(0, SelectFlagTypeComponent_div_0_Template, 13, 10, "div", 0);
19376
+ i0__namespace.ɵɵtemplate(0, SelectFlagTypeComponent_div_0_Template, 11, 9, "div", 0);
19385
19377
  }
19386
19378
  if (rf & 2) {
19387
19379
  i0__namespace.ɵɵproperty("ngIf", ctx.flagTypes == null ? null : ctx.flagTypes.length);