@hmcts/ccd-case-ui-toolkit 6.10.7-case-flags-support-tab-changes-v2 → 6.10.7-case-flags-select-option-for-sub-child
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.
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +111 -100
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.js +1 -1
- package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.js +70 -49
- package/esm2015/lib/shared/components/palette/case-flag/enums/select-flag-type-error-message.enum.js +2 -1
- package/esm2015/lib/shared/components/palette/case-flag/read-case-flag-field.component.js +34 -50
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +103 -97
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +1 -0
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/enums/select-flag-type-error-message.enum.d.ts +1 -0
- package/lib/shared/components/palette/case-flag/enums/select-flag-type-error-message.enum.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts +0 -2
- package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -12047,6 +12047,7 @@
|
|
|
12047
12047
|
exports.SelectFlagTypeErrorMessage = void 0;
|
|
12048
12048
|
(function (SelectFlagTypeErrorMessage) {
|
|
12049
12049
|
SelectFlagTypeErrorMessage["FLAG_TYPE_NOT_SELECTED"] = "Please select a flag type";
|
|
12050
|
+
SelectFlagTypeErrorMessage["FLAG_TYPE_OPTION_NOT_SELECTED"] = "Select an option";
|
|
12050
12051
|
SelectFlagTypeErrorMessage["FLAG_TYPE_NOT_ENTERED"] = "Please enter a flag type";
|
|
12051
12052
|
SelectFlagTypeErrorMessage["FLAG_TYPE_LIMIT_EXCEEDED"] = "You can enter up to 80 characters only";
|
|
12052
12053
|
})(exports.SelectFlagTypeErrorMessage || (exports.SelectFlagTypeErrorMessage = {}));
|
|
@@ -12098,10 +12099,10 @@
|
|
|
12098
12099
|
|
|
12099
12100
|
function ReadCaseFlagFieldComponent_ng_container_1_Template(rf, ctx) {
|
|
12100
12101
|
if (rf & 1) {
|
|
12101
|
-
var
|
|
12102
|
+
var _r3_1 = i0__namespace.ɵɵgetCurrentView();
|
|
12102
12103
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
12103
|
-
i0__namespace.ɵɵelementStart(1, "ccd-case-flag-summary-list",
|
|
12104
|
-
i0__namespace.ɵɵlistener("changeButtonEmitter", function ReadCaseFlagFieldComponent_ng_container_1_Template_ccd_case_flag_summary_list_changeButtonEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
12104
|
+
i0__namespace.ɵɵelementStart(1, "ccd-case-flag-summary-list", 3);
|
|
12105
|
+
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); });
|
|
12105
12106
|
i0__namespace.ɵɵelementEnd();
|
|
12106
12107
|
i0__namespace.ɵɵelementContainerEnd();
|
|
12107
12108
|
}
|
|
@@ -12111,51 +12112,55 @@
|
|
|
12111
12112
|
i0__namespace.ɵɵproperty("flagForSummaryDisplay", ctx_r0.flagForSummaryDisplay)("summaryListDisplayMode", ctx_r0.summaryListDisplayMode);
|
|
12112
12113
|
}
|
|
12113
12114
|
}
|
|
12114
|
-
function
|
|
12115
|
+
function ReadCaseFlagFieldComponent_ng_container_2_div_3_ccd_case_flag_table_1_Template(rf, ctx) {
|
|
12115
12116
|
if (rf & 1) {
|
|
12116
|
-
i0__namespace.ɵɵ
|
|
12117
|
-
i0__namespace.ɵɵtext(1, " Support requested ");
|
|
12118
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
12117
|
+
i0__namespace.ɵɵelement(0, "ccd-case-flag-table", 8);
|
|
12119
12118
|
}
|
|
12120
|
-
|
|
12121
|
-
|
|
12122
|
-
|
|
12123
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
12124
|
-
i0__namespace.ɵɵtext(1, " Case flags ");
|
|
12125
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
12119
|
+
if (rf & 2) {
|
|
12120
|
+
var flagData_r6 = i0__namespace.ɵɵnextContext().$implicit;
|
|
12121
|
+
i0__namespace.ɵɵproperty("tableCaption", flagData_r6.flags.partyName)("flagData", flagData_r6)("firstColumnHeader", "Party level flags");
|
|
12126
12122
|
}
|
|
12127
12123
|
}
|
|
12128
|
-
function
|
|
12124
|
+
function ReadCaseFlagFieldComponent_ng_container_2_div_3_Template(rf, ctx) {
|
|
12129
12125
|
if (rf & 1) {
|
|
12130
|
-
i0__namespace.ɵɵ
|
|
12126
|
+
i0__namespace.ɵɵelementStart(0, "div");
|
|
12127
|
+
i0__namespace.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_2_div_3_ccd_case_flag_table_1_Template, 1, 3, "ccd-case-flag-table", 7);
|
|
12128
|
+
i0__namespace.ɵɵelementEnd();
|
|
12131
12129
|
}
|
|
12132
12130
|
if (rf & 2) {
|
|
12133
|
-
var
|
|
12134
|
-
i0__namespace.ɵɵ
|
|
12131
|
+
var flagData_r6 = ctx.$implicit;
|
|
12132
|
+
i0__namespace.ɵɵadvance(1);
|
|
12133
|
+
i0__namespace.ɵɵproperty("ngIf", flagData_r6.flags.partyName);
|
|
12135
12134
|
}
|
|
12136
12135
|
}
|
|
12137
|
-
function
|
|
12136
|
+
function ReadCaseFlagFieldComponent_ng_container_2_div_4_Template(rf, ctx) {
|
|
12138
12137
|
if (rf & 1) {
|
|
12139
12138
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
12140
|
-
i0__namespace.ɵɵ
|
|
12139
|
+
i0__namespace.ɵɵelement(1, "ccd-case-flag-table", 8);
|
|
12141
12140
|
i0__namespace.ɵɵelementEnd();
|
|
12142
12141
|
}
|
|
12143
12142
|
if (rf & 2) {
|
|
12144
|
-
var
|
|
12143
|
+
var ctx_r5 = i0__namespace.ɵɵnextContext(2);
|
|
12145
12144
|
i0__namespace.ɵɵadvance(1);
|
|
12146
|
-
i0__namespace.ɵɵproperty("
|
|
12145
|
+
i0__namespace.ɵɵproperty("tableCaption", "Case level flags")("flagData", ctx_r5.caseLevelCaseFlagData)("firstColumnHeader", "Case flags");
|
|
12147
12146
|
}
|
|
12148
12147
|
}
|
|
12149
|
-
function
|
|
12148
|
+
function ReadCaseFlagFieldComponent_ng_container_2_Template(rf, ctx) {
|
|
12150
12149
|
if (rf & 1) {
|
|
12151
|
-
i0__namespace.ɵɵ
|
|
12152
|
-
i0__namespace.ɵɵ
|
|
12150
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
12151
|
+
i0__namespace.ɵɵelementStart(1, "h2", 4);
|
|
12152
|
+
i0__namespace.ɵɵtext(2, "Case flags");
|
|
12153
12153
|
i0__namespace.ɵɵelementEnd();
|
|
12154
|
+
i0__namespace.ɵɵtemplate(3, ReadCaseFlagFieldComponent_ng_container_2_div_3_Template, 2, 1, "div", 5);
|
|
12155
|
+
i0__namespace.ɵɵtemplate(4, ReadCaseFlagFieldComponent_ng_container_2_div_4_Template, 2, 3, "div", 6);
|
|
12156
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
12154
12157
|
}
|
|
12155
12158
|
if (rf & 2) {
|
|
12156
|
-
var
|
|
12159
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
12160
|
+
i0__namespace.ɵɵadvance(3);
|
|
12161
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.partyLevelCaseFlagData);
|
|
12157
12162
|
i0__namespace.ɵɵadvance(1);
|
|
12158
|
-
i0__namespace.ɵɵproperty("
|
|
12163
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.caseLevelCaseFlagData);
|
|
12159
12164
|
}
|
|
12160
12165
|
}
|
|
12161
12166
|
var ReadCaseFlagFieldComponent = /** @class */ (function (_super) {
|
|
@@ -12166,20 +12171,14 @@
|
|
|
12166
12171
|
_this.router = router;
|
|
12167
12172
|
_this.caseFlagStateService = caseFlagStateService;
|
|
12168
12173
|
_this.paletteContext = exports.PaletteContext;
|
|
12169
|
-
_this.displayContextParameter = '';
|
|
12170
12174
|
_this.caseLevelCaseFlagsFieldId = 'caseFlags';
|
|
12171
12175
|
_this.caseNameMissing = 'Case name missing';
|
|
12172
|
-
_this.readSupportMode = '#ARGUMENT(READ,EXTERNAL)';
|
|
12173
12176
|
_this.createMode = '#ARGUMENT(CREATE)';
|
|
12174
12177
|
_this.updateMode = '#ARGUMENT(UPDATE)';
|
|
12175
12178
|
return _this;
|
|
12176
12179
|
}
|
|
12177
12180
|
ReadCaseFlagFieldComponent.prototype.ngOnInit = function () {
|
|
12178
12181
|
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;
|
|
12183
12182
|
// If the context is PaletteContext.DEFAULT, the Flags fields need to be located by CaseTab (they won't be present
|
|
12184
12183
|
// in the FormGroup - only the FlagLauncher field is present)
|
|
12185
12184
|
if (this.context === exports.PaletteContext.DEFAULT) {
|
|
@@ -12204,7 +12203,9 @@
|
|
|
12204
12203
|
// The FlagLauncher component, WriteCaseFlagFieldComponent, holds a reference to:
|
|
12205
12204
|
// i) the parent FormGroup for the Flags instance where changes have been made;
|
|
12206
12205
|
// ii) the currently selected flag (selectedFlag) if one exists
|
|
12207
|
-
|
|
12206
|
+
var flagLauncherControlName = Object.keys(this.formGroup.controls).find(function (controlName) { return FieldsUtils.isFlagLauncherCaseField(_this.formGroup.get(controlName)['caseField']); });
|
|
12207
|
+
if (flagLauncherControlName && this.formGroup.get(flagLauncherControlName)['component']) {
|
|
12208
|
+
var flagLauncherComponent = this.formGroup.get(flagLauncherControlName)['component'];
|
|
12208
12209
|
// The FlagLauncher component holds a reference (selectedFlagsLocation) containing the CaseField instance to
|
|
12209
12210
|
// which the new flag has been added
|
|
12210
12211
|
if (flagLauncherComponent.caseField.display_context_parameter === this.createMode &&
|
|
@@ -12256,34 +12257,17 @@
|
|
|
12256
12257
|
return ReadCaseFlagFieldComponent;
|
|
12257
12258
|
}(AbstractFieldReadComponent));
|
|
12258
12259
|
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:
|
|
12260
|
+
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) {
|
|
12260
12261
|
if (rf & 1) {
|
|
12261
12262
|
i0__namespace.ɵɵelementContainerStart(0, 0);
|
|
12262
12263
|
i0__namespace.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_1_Template, 2, 2, "ng-container", 1);
|
|
12263
|
-
i0__namespace.ɵɵ
|
|
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
|
+
i0__namespace.ɵɵtemplate(2, ReadCaseFlagFieldComponent_ng_container_2_Template, 5, 2, "ng-container", 2);
|
|
12273
12265
|
i0__namespace.ɵɵelementContainerEnd();
|
|
12274
12266
|
}
|
|
12275
12267
|
if (rf & 2) {
|
|
12276
12268
|
i0__namespace.ɵɵproperty("ngSwitch", ctx.context);
|
|
12277
12269
|
i0__namespace.ɵɵadvance(1);
|
|
12278
12270
|
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);
|
|
12287
12271
|
}
|
|
12288
12272
|
}, styles: [".govuk-heading-l[_ngcontent-%COMP%]{margin-top:30px}"] });
|
|
12289
12273
|
(function () {
|
|
@@ -19096,88 +19080,109 @@
|
|
|
19096
19080
|
SearchLanguageInterpreterControlNames["MANUAL_LANGUAGE_ENTRY"] = "manualLanguageEntry";
|
|
19097
19081
|
})(SearchLanguageInterpreterControlNames || (SearchLanguageInterpreterControlNames = {}));
|
|
19098
19082
|
|
|
19099
|
-
function
|
|
19083
|
+
function SelectFlagTypeComponent_div_0_ng_container_5_Template(rf, ctx) {
|
|
19100
19084
|
if (rf & 1) {
|
|
19101
|
-
i0__namespace.ɵɵ
|
|
19102
|
-
i0__namespace.ɵɵ
|
|
19085
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
19086
|
+
i0__namespace.ɵɵtext(1);
|
|
19087
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
19088
|
+
}
|
|
19089
|
+
if (rf & 2) {
|
|
19090
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
19091
|
+
i0__namespace.ɵɵadvance(1);
|
|
19092
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
|
|
19093
|
+
}
|
|
19094
|
+
}
|
|
19095
|
+
function SelectFlagTypeComponent_div_0_ng_template_6_Template(rf, ctx) {
|
|
19096
|
+
if (rf & 1) {
|
|
19097
|
+
i0__namespace.ɵɵtext(0);
|
|
19098
|
+
}
|
|
19099
|
+
if (rf & 2) {
|
|
19100
|
+
var ctx_r3 = i0__namespace.ɵɵnextContext(2);
|
|
19101
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r3.selectionTitle, " ");
|
|
19102
|
+
}
|
|
19103
|
+
}
|
|
19104
|
+
function SelectFlagTypeComponent_div_0_div_8_Template(rf, ctx) {
|
|
19105
|
+
if (rf & 1) {
|
|
19106
|
+
i0__namespace.ɵɵelementStart(0, "div", 13);
|
|
19107
|
+
i0__namespace.ɵɵelementStart(1, "span", 14);
|
|
19103
19108
|
i0__namespace.ɵɵtext(2, "Error:");
|
|
19104
19109
|
i0__namespace.ɵɵelementEnd();
|
|
19105
19110
|
i0__namespace.ɵɵtext(3);
|
|
19106
19111
|
i0__namespace.ɵɵelementEnd();
|
|
19107
19112
|
}
|
|
19108
19113
|
if (rf & 2) {
|
|
19109
|
-
var
|
|
19114
|
+
var ctx_r4 = i0__namespace.ɵɵnextContext(2);
|
|
19110
19115
|
i0__namespace.ɵɵadvance(3);
|
|
19111
|
-
i0__namespace.ɵɵtextInterpolate1(" ",
|
|
19116
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r4.flagTypeNotSelectedErrorMessage, " ");
|
|
19112
19117
|
}
|
|
19113
19118
|
}
|
|
19114
|
-
function
|
|
19119
|
+
function SelectFlagTypeComponent_div_0_div_10_Template(rf, ctx) {
|
|
19115
19120
|
if (rf & 1) {
|
|
19116
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
19117
|
-
i0__namespace.ɵɵelement(1, "input",
|
|
19118
|
-
i0__namespace.ɵɵelementStart(2, "label",
|
|
19121
|
+
i0__namespace.ɵɵelementStart(0, "div", 15);
|
|
19122
|
+
i0__namespace.ɵɵelement(1, "input", 16);
|
|
19123
|
+
i0__namespace.ɵɵelementStart(2, "label", 17);
|
|
19119
19124
|
i0__namespace.ɵɵtext(3);
|
|
19120
19125
|
i0__namespace.ɵɵelementEnd();
|
|
19121
19126
|
i0__namespace.ɵɵelementEnd();
|
|
19122
19127
|
}
|
|
19123
19128
|
if (rf & 2) {
|
|
19124
|
-
var
|
|
19125
|
-
var
|
|
19126
|
-
var
|
|
19129
|
+
var flagType_r8 = ctx.$implicit;
|
|
19130
|
+
var i_r9 = ctx.index;
|
|
19131
|
+
var ctx_r5 = i0__namespace.ɵɵnextContext(2);
|
|
19127
19132
|
i0__namespace.ɵɵadvance(1);
|
|
19128
|
-
i0__namespace.ɵɵpropertyInterpolate1("id", "flag-type-",
|
|
19129
|
-
i0__namespace.ɵɵproperty("name",
|
|
19133
|
+
i0__namespace.ɵɵpropertyInterpolate1("id", "flag-type-", i_r9, "");
|
|
19134
|
+
i0__namespace.ɵɵproperty("name", ctx_r5.flagTypeControlName)("value", flagType_r8)("formControlName", ctx_r5.flagTypeControlName);
|
|
19130
19135
|
i0__namespace.ɵɵadvance(1);
|
|
19131
|
-
i0__namespace.ɵɵpropertyInterpolate1("for", "flag-type-",
|
|
19136
|
+
i0__namespace.ɵɵpropertyInterpolate1("for", "flag-type-", i_r9, "");
|
|
19132
19137
|
i0__namespace.ɵɵadvance(1);
|
|
19133
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
19138
|
+
i0__namespace.ɵɵtextInterpolate(flagType_r8.name);
|
|
19134
19139
|
}
|
|
19135
19140
|
}
|
|
19136
|
-
function
|
|
19141
|
+
function SelectFlagTypeComponent_div_0_div_11_div_4_Template(rf, ctx) {
|
|
19137
19142
|
if (rf & 1) {
|
|
19138
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
19139
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
19143
|
+
i0__namespace.ɵɵelementStart(0, "div", 22);
|
|
19144
|
+
i0__namespace.ɵɵelementStart(1, "span", 14);
|
|
19140
19145
|
i0__namespace.ɵɵtext(2, "Error:");
|
|
19141
19146
|
i0__namespace.ɵɵelementEnd();
|
|
19142
19147
|
i0__namespace.ɵɵtext(3);
|
|
19143
19148
|
i0__namespace.ɵɵelementEnd();
|
|
19144
19149
|
}
|
|
19145
19150
|
if (rf & 2) {
|
|
19146
|
-
var
|
|
19151
|
+
var ctx_r10 = i0__namespace.ɵɵnextContext(3);
|
|
19147
19152
|
i0__namespace.ɵɵadvance(3);
|
|
19148
|
-
i0__namespace.ɵɵtextInterpolate1(" ",
|
|
19153
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r10.flagTypeErrorMessage, " ");
|
|
19149
19154
|
}
|
|
19150
19155
|
}
|
|
19151
19156
|
var _c0$q = function (a0) { return { "form-group-error": a0 }; };
|
|
19152
19157
|
var _c1$6 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
19153
|
-
function
|
|
19158
|
+
function SelectFlagTypeComponent_div_0_div_11_Template(rf, ctx) {
|
|
19154
19159
|
if (rf & 1) {
|
|
19155
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
19160
|
+
i0__namespace.ɵɵelementStart(0, "div", 18);
|
|
19156
19161
|
i0__namespace.ɵɵelementStart(1, "div", 2);
|
|
19157
|
-
i0__namespace.ɵɵelementStart(2, "label",
|
|
19162
|
+
i0__namespace.ɵɵelementStart(2, "label", 19);
|
|
19158
19163
|
i0__namespace.ɵɵtext(3, "Enter a flag type");
|
|
19159
19164
|
i0__namespace.ɵɵelementEnd();
|
|
19160
|
-
i0__namespace.ɵɵtemplate(4,
|
|
19161
|
-
i0__namespace.ɵɵelement(5, "input",
|
|
19165
|
+
i0__namespace.ɵɵtemplate(4, SelectFlagTypeComponent_div_0_div_11_div_4_Template, 4, 1, "div", 20);
|
|
19166
|
+
i0__namespace.ɵɵelement(5, "input", 21);
|
|
19162
19167
|
i0__namespace.ɵɵelementEnd();
|
|
19163
19168
|
i0__namespace.ɵɵelementEnd();
|
|
19164
19169
|
}
|
|
19165
19170
|
if (rf & 2) {
|
|
19166
|
-
var
|
|
19171
|
+
var ctx_r6 = i0__namespace.ɵɵnextContext(2);
|
|
19167
19172
|
i0__namespace.ɵɵadvance(1);
|
|
19168
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$q,
|
|
19173
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$q, ctx_r6.flagTypeErrorMessage.length > 0));
|
|
19169
19174
|
i0__namespace.ɵɵadvance(3);
|
|
19170
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
19175
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r6.flagTypeErrorMessage.length > 0);
|
|
19171
19176
|
i0__namespace.ɵɵadvance(1);
|
|
19172
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$6,
|
|
19177
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$6, ctx_r6.flagTypeErrorMessage.length > 0))("name", ctx_r6.descriptionControlName)("formControlName", ctx_r6.descriptionControlName);
|
|
19173
19178
|
}
|
|
19174
19179
|
}
|
|
19175
|
-
function
|
|
19180
|
+
function SelectFlagTypeComponent_div_0_div_12_Template(rf, ctx) {
|
|
19176
19181
|
if (rf & 1) {
|
|
19177
|
-
var
|
|
19178
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
19179
|
-
i0__namespace.ɵɵelementStart(1, "button",
|
|
19180
|
-
i0__namespace.ɵɵlistener("click", function
|
|
19182
|
+
var _r12_1 = i0__namespace.ɵɵgetCurrentView();
|
|
19183
|
+
i0__namespace.ɵɵelementStart(0, "div", 23);
|
|
19184
|
+
i0__namespace.ɵɵelementStart(1, "button", 24);
|
|
19185
|
+
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(); });
|
|
19181
19186
|
i0__namespace.ɵɵtext(2, "Next");
|
|
19182
19187
|
i0__namespace.ɵɵelementEnd();
|
|
19183
19188
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -19190,27 +19195,29 @@
|
|
|
19190
19195
|
i0__namespace.ɵɵelementStart(2, "fieldset", 3);
|
|
19191
19196
|
i0__namespace.ɵɵelementStart(3, "legend", 4);
|
|
19192
19197
|
i0__namespace.ɵɵelementStart(4, "h1", 5);
|
|
19193
|
-
i0__namespace.ɵɵ
|
|
19198
|
+
i0__namespace.ɵɵtemplate(5, SelectFlagTypeComponent_div_0_ng_container_5_Template, 2, 1, "ng-container", 6);
|
|
19199
|
+
i0__namespace.ɵɵtemplate(6, SelectFlagTypeComponent_div_0_ng_template_6_Template, 1, 1, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
|
|
19194
19200
|
i0__namespace.ɵɵelementEnd();
|
|
19195
19201
|
i0__namespace.ɵɵelementEnd();
|
|
19196
|
-
i0__namespace.ɵɵtemplate(
|
|
19197
|
-
i0__namespace.ɵɵelementStart(
|
|
19198
|
-
i0__namespace.ɵɵtemplate(
|
|
19199
|
-
i0__namespace.ɵɵtemplate(
|
|
19202
|
+
i0__namespace.ɵɵtemplate(8, SelectFlagTypeComponent_div_0_div_8_Template, 4, 1, "div", 8);
|
|
19203
|
+
i0__namespace.ɵɵelementStart(9, "div", 9);
|
|
19204
|
+
i0__namespace.ɵɵtemplate(10, SelectFlagTypeComponent_div_0_div_10_Template, 4, 6, "div", 10);
|
|
19205
|
+
i0__namespace.ɵɵtemplate(11, SelectFlagTypeComponent_div_0_div_11_Template, 6, 9, "div", 11);
|
|
19200
19206
|
i0__namespace.ɵɵelementEnd();
|
|
19201
19207
|
i0__namespace.ɵɵelementEnd();
|
|
19202
19208
|
i0__namespace.ɵɵelementEnd();
|
|
19203
|
-
i0__namespace.ɵɵtemplate(
|
|
19209
|
+
i0__namespace.ɵɵtemplate(12, SelectFlagTypeComponent_div_0_div_12_Template, 3, 0, "div", 12);
|
|
19204
19210
|
i0__namespace.ɵɵelementEnd();
|
|
19205
19211
|
}
|
|
19206
19212
|
if (rf & 2) {
|
|
19213
|
+
var _r2 = i0__namespace.ɵɵreference(7);
|
|
19207
19214
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19208
19215
|
i0__namespace.ɵɵproperty("formGroup", ctx_r0.formGroup);
|
|
19209
19216
|
i0__namespace.ɵɵadvance(1);
|
|
19210
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(
|
|
19217
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$q, ctx_r0.flagTypeNotSelectedErrorMessage.length > 0));
|
|
19211
19218
|
i0__namespace.ɵɵadvance(4);
|
|
19212
|
-
i0__namespace.ɵɵ
|
|
19213
|
-
i0__namespace.ɵɵadvance(
|
|
19219
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r0.selectionTitle)("ngIfElse", _r2);
|
|
19220
|
+
i0__namespace.ɵɵadvance(3);
|
|
19214
19221
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.flagTypeNotSelectedErrorMessage.length > 0);
|
|
19215
19222
|
i0__namespace.ɵɵadvance(2);
|
|
19216
19223
|
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.flagTypes);
|
|
@@ -19228,6 +19235,7 @@
|
|
|
19228
19235
|
this.flagTypeNotSelectedErrorMessage = '';
|
|
19229
19236
|
this.flagTypeErrorMessage = '';
|
|
19230
19237
|
this.refdataError = false;
|
|
19238
|
+
this.selectionTitle = '';
|
|
19231
19239
|
this.flagTypeControlName = 'flagType';
|
|
19232
19240
|
this.descriptionControlName = 'otherFlagTypeDescription';
|
|
19233
19241
|
this.maxCharactersForOtherFlagType = 80;
|
|
@@ -19335,6 +19343,7 @@
|
|
|
19335
19343
|
}
|
|
19336
19344
|
// If the selected flag type is a parent, load the list of child flag types and reset the current selection
|
|
19337
19345
|
if (this.selectedFlagType && this.selectedFlagType.isParent) {
|
|
19346
|
+
this.selectionTitle = this.selectedFlagType.name;
|
|
19338
19347
|
this.flagTypes = this.selectedFlagType.childFlags;
|
|
19339
19348
|
(_a = this.cachedPath) === null || _a === void 0 ? void 0 : _a.shift();
|
|
19340
19349
|
this.formGroup.get(this.flagTypeControlName).setValue(((_b = this.cachedPath) === null || _b === void 0 ? void 0 : _b.length) ? this.cachedPath[0] : null, { emitEvent: false });
|
|
@@ -19345,8 +19354,10 @@
|
|
|
19345
19354
|
this.flagTypeErrorMessage = '';
|
|
19346
19355
|
this.errorMessages = [];
|
|
19347
19356
|
if (!this.selectedFlagType) {
|
|
19348
|
-
|
|
19349
|
-
|
|
19357
|
+
// If there is any selection then the message will differ. we use the selectionTitle property
|
|
19358
|
+
var errorMessage = !this.selectionTitle ? exports.SelectFlagTypeErrorMessage.FLAG_TYPE_NOT_SELECTED : exports.SelectFlagTypeErrorMessage.FLAG_TYPE_OPTION_NOT_SELECTED;
|
|
19359
|
+
this.flagTypeNotSelectedErrorMessage = errorMessage;
|
|
19360
|
+
this.errorMessages.push({ title: '', description: errorMessage, fieldId: 'conditional-radios-list' });
|
|
19350
19361
|
}
|
|
19351
19362
|
if (this.otherFlagTypeSelected) {
|
|
19352
19363
|
var otherFlagTypeDescription = this.formGroup.get(this.descriptionControlName).value;
|
|
@@ -19371,9 +19382,9 @@
|
|
|
19371
19382
|
return SelectFlagTypeComponent;
|
|
19372
19383
|
}());
|
|
19373
19384
|
SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)); };
|
|
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) {
|
|
19385
|
+
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) {
|
|
19375
19386
|
if (rf & 1) {
|
|
19376
|
-
i0__namespace.ɵɵtemplate(0, SelectFlagTypeComponent_div_0_Template,
|
|
19387
|
+
i0__namespace.ɵɵtemplate(0, SelectFlagTypeComponent_div_0_Template, 13, 10, "div", 0);
|
|
19377
19388
|
}
|
|
19378
19389
|
if (rf & 2) {
|
|
19379
19390
|
i0__namespace.ɵɵproperty("ngIf", ctx.flagTypes == null ? null : ctx.flagTypes.length);
|