@hmcts/ccd-case-ui-toolkit 6.10.7-case-flags-create-change-links-v3 → 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 () {