@hmcts/ccd-case-ui-toolkit 6.10.7-case-flags-support-tab-changes-v3 → 6.10.7-case-flags-check-your-answers-screen
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 +114 -165
- 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/case-editor/case-edit-submit/case-edit-submit-titles.enum.js +7 -0
- package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +12 -8
- package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +5 -10
- package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +59 -66
- package/esm2015/lib/shared/components/palette/case-flag/read-case-flag-field.component.js +27 -65
- package/esm2015/lib/shared/components/palette/palette.module.js +2 -2
- package/esm2015/lib/shared/fixture/shared.test.fixture.js +2 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +107 -146
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit-titles.enum.d.ts +6 -0
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit-titles.enum.d.ts.map +1 -0
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +1 -1
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts +1 -2
- package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts.map +1 -1
- package/lib/shared/fixture/shared.test.fixture.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -12098,10 +12098,10 @@
|
|
|
12098
12098
|
|
|
12099
12099
|
function ReadCaseFlagFieldComponent_ng_container_1_Template(rf, ctx) {
|
|
12100
12100
|
if (rf & 1) {
|
|
12101
|
-
var
|
|
12101
|
+
var _r3_1 = i0__namespace.ɵɵgetCurrentView();
|
|
12102
12102
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
12103
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(
|
|
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); });
|
|
12105
12105
|
i0__namespace.ɵɵelementEnd();
|
|
12106
12106
|
i0__namespace.ɵɵelementContainerEnd();
|
|
12107
12107
|
}
|
|
@@ -12111,19 +12111,19 @@
|
|
|
12111
12111
|
i0__namespace.ɵɵproperty("flagForSummaryDisplay", ctx_r0.flagForSummaryDisplay)("summaryListDisplayMode", ctx_r0.summaryListDisplayMode);
|
|
12112
12112
|
}
|
|
12113
12113
|
}
|
|
12114
|
-
function
|
|
12114
|
+
function ReadCaseFlagFieldComponent_ng_container_2_div_3_ccd_case_flag_table_1_Template(rf, ctx) {
|
|
12115
12115
|
if (rf & 1) {
|
|
12116
|
-
i0__namespace.ɵɵelement(0, "ccd-case-flag-table",
|
|
12116
|
+
i0__namespace.ɵɵelement(0, "ccd-case-flag-table", 8);
|
|
12117
12117
|
}
|
|
12118
12118
|
if (rf & 2) {
|
|
12119
12119
|
var flagData_r6 = i0__namespace.ɵɵnextContext().$implicit;
|
|
12120
|
-
i0__namespace.ɵɵproperty("tableCaption",
|
|
12120
|
+
i0__namespace.ɵɵproperty("tableCaption", flagData_r6.flags.partyName)("flagData", flagData_r6)("firstColumnHeader", "Party level flags");
|
|
12121
12121
|
}
|
|
12122
12122
|
}
|
|
12123
|
-
function
|
|
12123
|
+
function ReadCaseFlagFieldComponent_ng_container_2_div_3_Template(rf, ctx) {
|
|
12124
12124
|
if (rf & 1) {
|
|
12125
12125
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
12126
|
-
i0__namespace.ɵɵtemplate(1,
|
|
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
12127
|
i0__namespace.ɵɵelementEnd();
|
|
12128
12128
|
}
|
|
12129
12129
|
if (rf & 2) {
|
|
@@ -12132,70 +12132,34 @@
|
|
|
12132
12132
|
i0__namespace.ɵɵproperty("ngIf", flagData_r6.flags.partyName);
|
|
12133
12133
|
}
|
|
12134
12134
|
}
|
|
12135
|
-
function
|
|
12136
|
-
if (rf & 1) {
|
|
12137
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
12138
|
-
i0__namespace.ɵɵelementStart(1, "h2", 4);
|
|
12139
|
-
i0__namespace.ɵɵtext(2, " Support requested ");
|
|
12140
|
-
i0__namespace.ɵɵelementEnd();
|
|
12141
|
-
i0__namespace.ɵɵtemplate(3, ReadCaseFlagFieldComponent_ng_container_4_div_3_Template, 2, 1, "div", 5);
|
|
12142
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
12143
|
-
}
|
|
12144
|
-
if (rf & 2) {
|
|
12145
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
12146
|
-
i0__namespace.ɵɵadvance(3);
|
|
12147
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.partyLevelCaseFlagData);
|
|
12148
|
-
}
|
|
12149
|
-
}
|
|
12150
|
-
function ReadCaseFlagFieldComponent_ng_container_5_div_3_ccd_case_flag_table_1_Template(rf, ctx) {
|
|
12151
|
-
if (rf & 1) {
|
|
12152
|
-
i0__namespace.ɵɵelement(0, "ccd-case-flag-table", 7);
|
|
12153
|
-
}
|
|
12154
|
-
if (rf & 2) {
|
|
12155
|
-
var flagData_r11 = i0__namespace.ɵɵnextContext().$implicit;
|
|
12156
|
-
i0__namespace.ɵɵproperty("tableCaption", flagData_r11.flags.partyName)("flagData", flagData_r11)("firstColumnHeader", "Party level flags");
|
|
12157
|
-
}
|
|
12158
|
-
}
|
|
12159
|
-
function ReadCaseFlagFieldComponent_ng_container_5_div_3_Template(rf, ctx) {
|
|
12160
|
-
if (rf & 1) {
|
|
12161
|
-
i0__namespace.ɵɵelementStart(0, "div");
|
|
12162
|
-
i0__namespace.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_5_div_3_ccd_case_flag_table_1_Template, 1, 3, "ccd-case-flag-table", 6);
|
|
12163
|
-
i0__namespace.ɵɵelementEnd();
|
|
12164
|
-
}
|
|
12165
|
-
if (rf & 2) {
|
|
12166
|
-
var flagData_r11 = ctx.$implicit;
|
|
12167
|
-
i0__namespace.ɵɵadvance(1);
|
|
12168
|
-
i0__namespace.ɵɵproperty("ngIf", flagData_r11.flags.partyName);
|
|
12169
|
-
}
|
|
12170
|
-
}
|
|
12171
|
-
function ReadCaseFlagFieldComponent_ng_container_5_div_4_Template(rf, ctx) {
|
|
12135
|
+
function ReadCaseFlagFieldComponent_ng_container_2_div_4_Template(rf, ctx) {
|
|
12172
12136
|
if (rf & 1) {
|
|
12173
12137
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
12174
|
-
i0__namespace.ɵɵelement(1, "ccd-case-flag-table",
|
|
12138
|
+
i0__namespace.ɵɵelement(1, "ccd-case-flag-table", 8);
|
|
12175
12139
|
i0__namespace.ɵɵelementEnd();
|
|
12176
12140
|
}
|
|
12177
12141
|
if (rf & 2) {
|
|
12178
|
-
var
|
|
12142
|
+
var ctx_r5 = i0__namespace.ɵɵnextContext(2);
|
|
12179
12143
|
i0__namespace.ɵɵadvance(1);
|
|
12180
|
-
i0__namespace.ɵɵproperty("tableCaption", "Case level flags")("flagData",
|
|
12144
|
+
i0__namespace.ɵɵproperty("tableCaption", "Case level flags")("flagData", ctx_r5.caseLevelCaseFlagData)("firstColumnHeader", "Case flags");
|
|
12181
12145
|
}
|
|
12182
12146
|
}
|
|
12183
|
-
function
|
|
12147
|
+
function ReadCaseFlagFieldComponent_ng_container_2_Template(rf, ctx) {
|
|
12184
12148
|
if (rf & 1) {
|
|
12185
12149
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
12186
12150
|
i0__namespace.ɵɵelementStart(1, "h2", 4);
|
|
12187
|
-
i0__namespace.ɵɵtext(2, "
|
|
12151
|
+
i0__namespace.ɵɵtext(2, "Case flags");
|
|
12188
12152
|
i0__namespace.ɵɵelementEnd();
|
|
12189
|
-
i0__namespace.ɵɵtemplate(3,
|
|
12190
|
-
i0__namespace.ɵɵtemplate(4,
|
|
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);
|
|
12191
12155
|
i0__namespace.ɵɵelementContainerEnd();
|
|
12192
12156
|
}
|
|
12193
12157
|
if (rf & 2) {
|
|
12194
|
-
var
|
|
12158
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
12195
12159
|
i0__namespace.ɵɵadvance(3);
|
|
12196
|
-
i0__namespace.ɵɵproperty("ngForOf",
|
|
12160
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.partyLevelCaseFlagData);
|
|
12197
12161
|
i0__namespace.ɵɵadvance(1);
|
|
12198
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
12162
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.caseLevelCaseFlagData);
|
|
12199
12163
|
}
|
|
12200
12164
|
}
|
|
12201
12165
|
var ReadCaseFlagFieldComponent = /** @class */ (function (_super) {
|
|
@@ -12206,20 +12170,15 @@
|
|
|
12206
12170
|
_this.router = router;
|
|
12207
12171
|
_this.caseFlagStateService = caseFlagStateService;
|
|
12208
12172
|
_this.paletteContext = exports.PaletteContext;
|
|
12209
|
-
_this.displayContextParameter = '';
|
|
12210
12173
|
_this.caseLevelCaseFlagsFieldId = 'caseFlags';
|
|
12211
12174
|
_this.caseNameMissing = 'Case name missing';
|
|
12212
|
-
_this.readSupportMode = '#ARGUMENT(READ,EXTERNAL)';
|
|
12213
12175
|
_this.createMode = '#ARGUMENT(CREATE)';
|
|
12176
|
+
_this.createModeExternal = '#ARGUMENT(CREATE,EXTERNAL)';
|
|
12214
12177
|
_this.updateMode = '#ARGUMENT(UPDATE)';
|
|
12215
12178
|
return _this;
|
|
12216
12179
|
}
|
|
12217
12180
|
ReadCaseFlagFieldComponent.prototype.ngOnInit = function () {
|
|
12218
12181
|
var _this = this;
|
|
12219
|
-
var _a, _b;
|
|
12220
|
-
var flagLauncherControlName = Object.keys(this.formGroup.controls).find(function (controlName) { return FieldsUtils.isFlagLauncherCaseField(_this.formGroup.get(controlName)['caseField']); });
|
|
12221
|
-
var flagLauncherComponent = (_a = this.formGroup.get(flagLauncherControlName)) === null || _a === void 0 ? void 0 : _a['component'];
|
|
12222
|
-
this.displayContextParameter = (_b = flagLauncherComponent === null || flagLauncherComponent === void 0 ? void 0 : flagLauncherComponent.caseField) === null || _b === void 0 ? void 0 : _b.display_context_parameter;
|
|
12223
12182
|
// If the context is PaletteContext.DEFAULT, the Flags fields need to be located by CaseTab (they won't be present
|
|
12224
12183
|
// in the FormGroup - only the FlagLauncher field is present)
|
|
12225
12184
|
if (this.context === exports.PaletteContext.DEFAULT) {
|
|
@@ -12244,10 +12203,13 @@
|
|
|
12244
12203
|
// The FlagLauncher component, WriteCaseFlagFieldComponent, holds a reference to:
|
|
12245
12204
|
// i) the parent FormGroup for the Flags instance where changes have been made;
|
|
12246
12205
|
// ii) the currently selected flag (selectedFlag) if one exists
|
|
12247
|
-
|
|
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'];
|
|
12248
12209
|
// The FlagLauncher component holds a reference (selectedFlagsLocation) containing the CaseField instance to
|
|
12249
12210
|
// which the new flag has been added
|
|
12250
|
-
if (flagLauncherComponent.caseField.display_context_parameter === this.createMode
|
|
12211
|
+
if ((flagLauncherComponent.caseField.display_context_parameter === this.createMode ||
|
|
12212
|
+
flagLauncherComponent.caseField.display_context_parameter === this.createModeExternal) &&
|
|
12251
12213
|
flagLauncherComponent.selectedFlagsLocation) {
|
|
12252
12214
|
// this.flagLocation = flagLauncherComponent.selectedFlagsLocation;
|
|
12253
12215
|
this.pathToFlagsFormGroup = flagLauncherComponent.selectedFlagsLocation.pathToFlagsFormGroup;
|
|
@@ -12296,26 +12258,17 @@
|
|
|
12296
12258
|
return ReadCaseFlagFieldComponent;
|
|
12297
12259
|
}(AbstractFieldReadComponent));
|
|
12298
12260
|
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)); };
|
|
12299
|
-
ReadCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadCaseFlagFieldComponent, selectors: [["ccd-read-case-flag-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls:
|
|
12261
|
+
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) {
|
|
12300
12262
|
if (rf & 1) {
|
|
12301
12263
|
i0__namespace.ɵɵelementContainerStart(0, 0);
|
|
12302
12264
|
i0__namespace.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_1_Template, 2, 2, "ng-container", 1);
|
|
12303
|
-
i0__namespace.ɵɵ
|
|
12304
|
-
i0__namespace.ɵɵelementContainerStart(3, 0);
|
|
12305
|
-
i0__namespace.ɵɵtemplate(4, ReadCaseFlagFieldComponent_ng_container_4_Template, 4, 1, "ng-container", 1);
|
|
12306
|
-
i0__namespace.ɵɵtemplate(5, ReadCaseFlagFieldComponent_ng_container_5_Template, 5, 2, "ng-container", 2);
|
|
12307
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
12308
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
12265
|
+
i0__namespace.ɵɵtemplate(2, ReadCaseFlagFieldComponent_ng_container_2_Template, 5, 2, "ng-container", 2);
|
|
12309
12266
|
i0__namespace.ɵɵelementContainerEnd();
|
|
12310
12267
|
}
|
|
12311
12268
|
if (rf & 2) {
|
|
12312
12269
|
i0__namespace.ɵɵproperty("ngSwitch", ctx.context);
|
|
12313
12270
|
i0__namespace.ɵɵadvance(1);
|
|
12314
12271
|
i0__namespace.ɵɵproperty("ngSwitchCase", ctx.paletteContext.CHECK_YOUR_ANSWER);
|
|
12315
|
-
i0__namespace.ɵɵadvance(2);
|
|
12316
|
-
i0__namespace.ɵɵproperty("ngSwitch", ctx.displayContextParameter);
|
|
12317
|
-
i0__namespace.ɵɵadvance(1);
|
|
12318
|
-
i0__namespace.ɵɵproperty("ngSwitchCase", ctx.readSupportMode);
|
|
12319
12272
|
}
|
|
12320
12273
|
}, styles: [".govuk-heading-l[_ngcontent-%COMP%]{margin-top:30px}"] });
|
|
12321
12274
|
(function () {
|
|
@@ -18888,59 +18841,47 @@
|
|
|
18888
18841
|
}] });
|
|
18889
18842
|
})();
|
|
18890
18843
|
|
|
18891
|
-
function
|
|
18892
|
-
if (rf & 1) {
|
|
18893
|
-
i0__namespace.ɵɵelementStart(0, "caption", 13);
|
|
18894
|
-
i0__namespace.ɵɵtext(1);
|
|
18895
|
-
i0__namespace.ɵɵelementEnd();
|
|
18896
|
-
}
|
|
18897
|
-
if (rf & 2) {
|
|
18898
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
18899
|
-
i0__namespace.ɵɵadvance(1);
|
|
18900
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r1.tableCaption);
|
|
18901
|
-
}
|
|
18902
|
-
}
|
|
18903
|
-
function CaseFlagTableComponent_table_0_tr_15_Template(rf, ctx) {
|
|
18844
|
+
function CaseFlagTableComponent_table_0_tr_16_Template(rf, ctx) {
|
|
18904
18845
|
if (rf & 1) {
|
|
18905
18846
|
i0__namespace.ɵɵelementStart(0, "tr");
|
|
18906
|
-
i0__namespace.ɵɵelementStart(1, "td",
|
|
18847
|
+
i0__namespace.ɵɵelementStart(1, "td", 13);
|
|
18907
18848
|
i0__namespace.ɵɵtext(2, "None");
|
|
18908
18849
|
i0__namespace.ɵɵelementEnd();
|
|
18909
18850
|
i0__namespace.ɵɵelementEnd();
|
|
18910
18851
|
}
|
|
18911
18852
|
}
|
|
18912
|
-
function
|
|
18853
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template(rf, ctx) {
|
|
18913
18854
|
if (rf & 1) {
|
|
18914
|
-
i0__namespace.ɵɵelementStart(0, "strong",
|
|
18855
|
+
i0__namespace.ɵɵelementStart(0, "strong", 20);
|
|
18915
18856
|
i0__namespace.ɵɵtext(1, "Active");
|
|
18916
18857
|
i0__namespace.ɵɵelementEnd();
|
|
18917
18858
|
}
|
|
18918
18859
|
}
|
|
18919
|
-
function
|
|
18860
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template(rf, ctx) {
|
|
18920
18861
|
if (rf & 1) {
|
|
18921
|
-
i0__namespace.ɵɵelementStart(0, "strong",
|
|
18862
|
+
i0__namespace.ɵɵelementStart(0, "strong", 21);
|
|
18922
18863
|
i0__namespace.ɵɵtext(1, "Inactive");
|
|
18923
18864
|
i0__namespace.ɵɵelementEnd();
|
|
18924
18865
|
}
|
|
18925
18866
|
}
|
|
18926
|
-
function
|
|
18867
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template(rf, ctx) {
|
|
18927
18868
|
if (rf & 1) {
|
|
18928
|
-
i0__namespace.ɵɵelementStart(0, "strong",
|
|
18869
|
+
i0__namespace.ɵɵelementStart(0, "strong", 21);
|
|
18929
18870
|
i0__namespace.ɵɵtext(1, "Requested");
|
|
18930
18871
|
i0__namespace.ɵɵelementEnd();
|
|
18931
18872
|
}
|
|
18932
18873
|
}
|
|
18933
|
-
function
|
|
18874
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template(rf, ctx) {
|
|
18934
18875
|
if (rf & 1) {
|
|
18935
|
-
i0__namespace.ɵɵelementStart(0, "strong",
|
|
18876
|
+
i0__namespace.ɵɵelementStart(0, "strong", 22);
|
|
18936
18877
|
i0__namespace.ɵɵtext(1, "Not approved");
|
|
18937
18878
|
i0__namespace.ɵɵelementEnd();
|
|
18938
18879
|
}
|
|
18939
18880
|
}
|
|
18940
|
-
function
|
|
18881
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_Template(rf, ctx) {
|
|
18941
18882
|
if (rf & 1) {
|
|
18942
|
-
i0__namespace.ɵɵelementStart(0, "tr",
|
|
18943
|
-
i0__namespace.ɵɵelementStart(1, "td",
|
|
18883
|
+
i0__namespace.ɵɵelementStart(0, "tr", 15);
|
|
18884
|
+
i0__namespace.ɵɵelementStart(1, "td", 16);
|
|
18944
18885
|
i0__namespace.ɵɵelementStart(2, "div");
|
|
18945
18886
|
i0__namespace.ɵɵtext(3);
|
|
18946
18887
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -18948,93 +18889,95 @@
|
|
|
18948
18889
|
i0__namespace.ɵɵtext(5);
|
|
18949
18890
|
i0__namespace.ɵɵelementEnd();
|
|
18950
18891
|
i0__namespace.ɵɵelementEnd();
|
|
18951
|
-
i0__namespace.ɵɵelementStart(6, "td",
|
|
18892
|
+
i0__namespace.ɵɵelementStart(6, "td", 16);
|
|
18952
18893
|
i0__namespace.ɵɵtext(7);
|
|
18953
18894
|
i0__namespace.ɵɵelementEnd();
|
|
18954
|
-
i0__namespace.ɵɵelementStart(8, "td",
|
|
18895
|
+
i0__namespace.ɵɵelementStart(8, "td", 16);
|
|
18955
18896
|
i0__namespace.ɵɵtext(9);
|
|
18956
18897
|
i0__namespace.ɵɵpipe(10, "date");
|
|
18957
18898
|
i0__namespace.ɵɵelementEnd();
|
|
18958
|
-
i0__namespace.ɵɵelementStart(11, "td",
|
|
18899
|
+
i0__namespace.ɵɵelementStart(11, "td", 16);
|
|
18959
18900
|
i0__namespace.ɵɵtext(12);
|
|
18960
18901
|
i0__namespace.ɵɵpipe(13, "date");
|
|
18961
18902
|
i0__namespace.ɵɵelementEnd();
|
|
18962
|
-
i0__namespace.ɵɵelementStart(14, "td",
|
|
18963
|
-
i0__namespace.ɵɵtemplate(15,
|
|
18964
|
-
i0__namespace.ɵɵtemplate(16,
|
|
18965
|
-
i0__namespace.ɵɵtemplate(17,
|
|
18966
|
-
i0__namespace.ɵɵtemplate(18,
|
|
18903
|
+
i0__namespace.ɵɵelementStart(14, "td", 16);
|
|
18904
|
+
i0__namespace.ɵɵtemplate(15, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template, 2, 0, "strong", 17);
|
|
18905
|
+
i0__namespace.ɵɵtemplate(16, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template, 2, 0, "strong", 18);
|
|
18906
|
+
i0__namespace.ɵɵtemplate(17, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template, 2, 0, "strong", 18);
|
|
18907
|
+
i0__namespace.ɵɵtemplate(18, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template, 2, 0, "strong", 19);
|
|
18967
18908
|
i0__namespace.ɵɵelementEnd();
|
|
18968
18909
|
i0__namespace.ɵɵelementEnd();
|
|
18969
18910
|
}
|
|
18970
18911
|
if (rf & 2) {
|
|
18971
|
-
var
|
|
18972
|
-
var
|
|
18912
|
+
var flagDetail_r4 = ctx.$implicit;
|
|
18913
|
+
var ctx_r3 = i0__namespace.ɵɵnextContext(3);
|
|
18973
18914
|
i0__namespace.ɵɵadvance(3);
|
|
18974
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
18915
|
+
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.name);
|
|
18975
18916
|
i0__namespace.ɵɵadvance(2);
|
|
18976
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
18917
|
+
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.otherDescription);
|
|
18977
18918
|
i0__namespace.ɵɵadvance(2);
|
|
18978
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
18919
|
+
i0__namespace.ɵɵtextInterpolate(flagDetail_r4.flagComment);
|
|
18979
18920
|
i0__namespace.ɵɵadvance(2);
|
|
18980
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(10, 9,
|
|
18921
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(10, 9, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
|
|
18981
18922
|
i0__namespace.ɵɵadvance(3);
|
|
18982
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 12,
|
|
18923
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 12, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
|
|
18983
18924
|
i0__namespace.ɵɵadvance(3);
|
|
18984
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
18925
|
+
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.ACTIVE);
|
|
18985
18926
|
i0__namespace.ɵɵadvance(1);
|
|
18986
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
18927
|
+
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.INACTIVE);
|
|
18987
18928
|
i0__namespace.ɵɵadvance(1);
|
|
18988
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
18929
|
+
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.REQUESTED);
|
|
18989
18930
|
i0__namespace.ɵɵadvance(1);
|
|
18990
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
18931
|
+
i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.NOT_APPROVED);
|
|
18991
18932
|
}
|
|
18992
18933
|
}
|
|
18993
|
-
function
|
|
18934
|
+
function CaseFlagTableComponent_table_0_tbody_17_Template(rf, ctx) {
|
|
18994
18935
|
if (rf & 1) {
|
|
18995
18936
|
i0__namespace.ɵɵelementStart(0, "tbody", 10);
|
|
18996
|
-
i0__namespace.ɵɵtemplate(1,
|
|
18937
|
+
i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 19, 15, "tr", 14);
|
|
18997
18938
|
i0__namespace.ɵɵelementEnd();
|
|
18998
18939
|
}
|
|
18999
18940
|
if (rf & 2) {
|
|
19000
|
-
var
|
|
18941
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
19001
18942
|
i0__namespace.ɵɵadvance(1);
|
|
19002
|
-
i0__namespace.ɵɵproperty("ngForOf",
|
|
18943
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r2.flagData.flags.details);
|
|
19003
18944
|
}
|
|
19004
18945
|
}
|
|
19005
18946
|
function CaseFlagTableComponent_table_0_Template(rf, ctx) {
|
|
19006
18947
|
if (rf & 1) {
|
|
19007
18948
|
i0__namespace.ɵɵelementStart(0, "table", 1);
|
|
19008
|
-
i0__namespace.ɵɵ
|
|
19009
|
-
i0__namespace.ɵɵ
|
|
19010
|
-
i0__namespace.ɵɵ
|
|
19011
|
-
i0__namespace.ɵɵelementStart(
|
|
19012
|
-
i0__namespace.ɵɵ
|
|
18949
|
+
i0__namespace.ɵɵelementStart(1, "caption", 2);
|
|
18950
|
+
i0__namespace.ɵɵtext(2);
|
|
18951
|
+
i0__namespace.ɵɵelementEnd();
|
|
18952
|
+
i0__namespace.ɵɵelementStart(3, "thead", 3);
|
|
18953
|
+
i0__namespace.ɵɵelementStart(4, "tr", 4);
|
|
18954
|
+
i0__namespace.ɵɵelementStart(5, "th", 5);
|
|
18955
|
+
i0__namespace.ɵɵtext(6);
|
|
19013
18956
|
i0__namespace.ɵɵelementEnd();
|
|
19014
|
-
i0__namespace.ɵɵelementStart(
|
|
19015
|
-
i0__namespace.ɵɵtext(
|
|
18957
|
+
i0__namespace.ɵɵelementStart(7, "th", 6);
|
|
18958
|
+
i0__namespace.ɵɵtext(8, "Comments");
|
|
19016
18959
|
i0__namespace.ɵɵelementEnd();
|
|
19017
|
-
i0__namespace.ɵɵelementStart(
|
|
19018
|
-
i0__namespace.ɵɵtext(
|
|
18960
|
+
i0__namespace.ɵɵelementStart(9, "th", 7);
|
|
18961
|
+
i0__namespace.ɵɵtext(10, "Creation date");
|
|
19019
18962
|
i0__namespace.ɵɵelementEnd();
|
|
19020
|
-
i0__namespace.ɵɵelementStart(
|
|
19021
|
-
i0__namespace.ɵɵtext(
|
|
18963
|
+
i0__namespace.ɵɵelementStart(11, "th", 8);
|
|
18964
|
+
i0__namespace.ɵɵtext(12, "Last modified");
|
|
19022
18965
|
i0__namespace.ɵɵelementEnd();
|
|
19023
|
-
i0__namespace.ɵɵelementStart(
|
|
19024
|
-
i0__namespace.ɵɵtext(
|
|
18966
|
+
i0__namespace.ɵɵelementStart(13, "th", 9);
|
|
18967
|
+
i0__namespace.ɵɵtext(14, "Flag status");
|
|
19025
18968
|
i0__namespace.ɵɵelementEnd();
|
|
19026
18969
|
i0__namespace.ɵɵelementEnd();
|
|
19027
18970
|
i0__namespace.ɵɵelementEnd();
|
|
19028
|
-
i0__namespace.ɵɵelementStart(
|
|
19029
|
-
i0__namespace.ɵɵtemplate(
|
|
18971
|
+
i0__namespace.ɵɵelementStart(15, "tbody", 10);
|
|
18972
|
+
i0__namespace.ɵɵtemplate(16, CaseFlagTableComponent_table_0_tr_16_Template, 3, 0, "tr", 11);
|
|
19030
18973
|
i0__namespace.ɵɵelementEnd();
|
|
19031
|
-
i0__namespace.ɵɵtemplate(
|
|
18974
|
+
i0__namespace.ɵɵtemplate(17, CaseFlagTableComponent_table_0_tbody_17_Template, 2, 1, "tbody", 12);
|
|
19032
18975
|
i0__namespace.ɵɵelementEnd();
|
|
19033
18976
|
}
|
|
19034
18977
|
if (rf & 2) {
|
|
19035
18978
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19036
|
-
i0__namespace.ɵɵadvance(
|
|
19037
|
-
i0__namespace.ɵɵ
|
|
18979
|
+
i0__namespace.ɵɵadvance(2);
|
|
18980
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r0.tableCaption);
|
|
19038
18981
|
i0__namespace.ɵɵadvance(4);
|
|
19039
18982
|
i0__namespace.ɵɵtextInterpolate(ctx_r0.firstColumnHeader);
|
|
19040
18983
|
i0__namespace.ɵɵadvance(10);
|
|
@@ -19056,9 +18999,9 @@
|
|
|
19056
18999
|
return CaseFlagTableComponent;
|
|
19057
19000
|
}());
|
|
19058
19001
|
CaseFlagTableComponent.ɵfac = function CaseFlagTableComponent_Factory(t) { return new (t || CaseFlagTableComponent)(); };
|
|
19059
|
-
CaseFlagTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader" }, decls: 1, vars: 1, consts: [["class", "govuk-table", 4, "ngIf"], [1, "govuk-table"], [
|
|
19002
|
+
CaseFlagTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader" }, decls: 1, vars: 1, consts: [["class", "govuk-table", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header", "col-party-name"], ["scope", "col", 1, "govuk-table__header", "col-comments"], ["scope", "col", 1, "govuk-table__header", "col-creation-date"], ["scope", "col", 1, "govuk-table__header", "col-last-modified"], ["scope", "col", 1, "govuk-table__header", "col-flag-status"], [1, "govuk-table__body"], [4, "ngIf"], ["class", "govuk-table__body", 4, "ngIf"], ["colspan", "5"], ["scope", "row", "class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["scope", "row", 1, "govuk-table__row"], [1, "govuk-table__cell"], ["class", "govuk-tag", 4, "ngIf"], ["class", "govuk-tag govuk-tag--grey", 4, "ngIf"], ["class", "govuk-tag govuk-tag--red", 4, "ngIf"], [1, "govuk-tag"], [1, "govuk-tag", "govuk-tag--grey"], [1, "govuk-tag", "govuk-tag--red"]], template: function CaseFlagTableComponent_Template(rf, ctx) {
|
|
19060
19003
|
if (rf & 1) {
|
|
19061
|
-
i0__namespace.ɵɵtemplate(0, CaseFlagTableComponent_table_0_Template,
|
|
19004
|
+
i0__namespace.ɵɵtemplate(0, CaseFlagTableComponent_table_0_Template, 18, 4, "table", 0);
|
|
19062
19005
|
}
|
|
19063
19006
|
if (rf & 2) {
|
|
19064
19007
|
i0__namespace.ɵɵproperty("ngIf", ctx.flagData);
|
|
@@ -23190,7 +23133,7 @@
|
|
|
23190
23133
|
i0__namespace.ɵɵsetComponentScope(ReadComplexFieldTableComponent, [i1__namespace.NgForOf, i1__namespace.NgIf, FieldReadComponent], [ReadFieldsFilterPipe, IsCompoundPipe]);
|
|
23191
23134
|
i0__namespace.ɵɵsetComponentScope(ReadComplexFieldCollectionTableComponent, [i1__namespace.NgForOf, i1__namespace.NgIf, FieldReadComponent,
|
|
23192
23135
|
ReadCaseLinkFieldComponent], [ReadFieldsFilterPipe, CcdCollectionTableCaseFieldsFilterPipe, i1__namespace.KeyValuePipe, IsCompoundPipe]);
|
|
23193
|
-
i0__namespace.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, CaseFlagSummaryListComponent, i1__namespace.NgForOf, i1__namespace.NgIf, CaseFlagTableComponent
|
|
23136
|
+
i0__namespace.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, CaseFlagSummaryListComponent, i1__namespace.NgSwitchDefault, i1__namespace.NgForOf, i1__namespace.NgIf, CaseFlagTableComponent], []);
|
|
23194
23137
|
i0__namespace.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1__namespace.NgIf, i1__namespace.NgClass, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i1__namespace$3.SelectControlValueAccessor, i1__namespace.NgForOf, i1__namespace$3.NgSelectOption, i1__namespace$3.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective], [FieldLabelPipe]);
|
|
23195
23138
|
i0__namespace.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
|
|
23196
23139
|
i0__namespace.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i1__namespace.NgClass, i1__namespace.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe]);
|
|
@@ -23240,6 +23183,13 @@
|
|
|
23240
23183
|
EventCompletionReturnStates["CancelEvent"] = "cancel-event";
|
|
23241
23184
|
})(exports.EventCompletionReturnStates || (exports.EventCompletionReturnStates = {}));
|
|
23242
23185
|
|
|
23186
|
+
var CaseEditSubmitTitles;
|
|
23187
|
+
(function (CaseEditSubmitTitles) {
|
|
23188
|
+
CaseEditSubmitTitles["REVIEW_SUPPORT_REQUEST"] = "Review support request";
|
|
23189
|
+
CaseEditSubmitTitles["REVIEW_FLAG_DETAILS"] = "Review flag details";
|
|
23190
|
+
CaseEditSubmitTitles["CHECK_YOUR_ANSWERS"] = "Check your answers";
|
|
23191
|
+
})(CaseEditSubmitTitles || (CaseEditSubmitTitles = {}));
|
|
23192
|
+
|
|
23243
23193
|
function CaseEditSubmitComponent_div_0_div_3_Template(rf, ctx) {
|
|
23244
23194
|
if (rf & 1) {
|
|
23245
23195
|
i0__namespace.ɵɵelement(0, "div");
|
|
@@ -23411,13 +23361,13 @@
|
|
|
23411
23361
|
i0__namespace.ɵɵadvance(1);
|
|
23412
23362
|
i0__namespace.ɵɵproperty("caseField", field_r21)("hidden", field_r21.hidden)("formGroup", ctx_r22.editForm.controls["data"])("contextFields", ctx_r22.contextFields);
|
|
23413
23363
|
i0__namespace.ɵɵadvance(1);
|
|
23414
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx_r22.isLabel(field_r21) && !ctx_r22.
|
|
23364
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r22.isLabel(field_r21) && !ctx_r22.caseFlagField);
|
|
23415
23365
|
i0__namespace.ɵɵadvance(1);
|
|
23416
23366
|
i0__namespace.ɵɵattribute("colspan", ctx_r22.isLabel(field_r21) ? "2" : "1");
|
|
23417
23367
|
i0__namespace.ɵɵadvance(1);
|
|
23418
23368
|
i0__namespace.ɵɵproperty("formGroup", ctx_r22.editForm.controls["data"])("topLevelFormGroup", ctx_r22.editForm.controls["data"])("caseField", ctx_r22.summaryCaseField(field_r21))("context", ctx_r22.paletteContext)("caseFields", ctx_r22.contextFields);
|
|
23419
23369
|
i0__namespace.ɵɵadvance(1);
|
|
23420
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r22.eventTrigger.id !== "createCaseFlag");
|
|
23370
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r22.eventTrigger.id !== "createCaseFlag" && ctx_r22.eventTrigger.id !== "requestSupport");
|
|
23421
23371
|
}
|
|
23422
23372
|
}
|
|
23423
23373
|
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_Template(rf, ctx) {
|
|
@@ -23482,7 +23432,7 @@
|
|
|
23482
23432
|
i0__namespace.ɵɵadvance(2);
|
|
23483
23433
|
i0__namespace.ɵɵtextInterpolate(ctx_r9.pageTitle);
|
|
23484
23434
|
i0__namespace.ɵɵadvance(1);
|
|
23485
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx_r9.
|
|
23435
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r9.caseFlagField);
|
|
23486
23436
|
i0__namespace.ɵɵadvance(3);
|
|
23487
23437
|
i0__namespace.ɵɵproperty("ngForOf", ctx_r9.wizard.pages);
|
|
23488
23438
|
}
|
|
@@ -23696,7 +23646,6 @@
|
|
|
23696
23646
|
this.ignoreWarning = false;
|
|
23697
23647
|
this.paletteContext = exports.PaletteContext.CHECK_YOUR_ANSWER;
|
|
23698
23648
|
this.eventCompletionChecksRequired = false;
|
|
23699
|
-
this.isCaseFlagSubmission = false;
|
|
23700
23649
|
}
|
|
23701
23650
|
Object.defineProperty(CaseEditSubmitComponent.prototype, "isDisabled", {
|
|
23702
23651
|
get: function () {
|
|
@@ -23711,6 +23660,7 @@
|
|
|
23711
23660
|
});
|
|
23712
23661
|
CaseEditSubmitComponent.prototype.ngOnInit = function () {
|
|
23713
23662
|
var _this = this;
|
|
23663
|
+
var _a, _b;
|
|
23714
23664
|
this.profileSubscription = this.profileNotifier.profile.subscribe(function (_) { return _this.profile = _; });
|
|
23715
23665
|
this.eventTrigger = this.caseEdit.eventTrigger;
|
|
23716
23666
|
this.triggerText = this.eventTrigger.end_button_label || CallbackErrorsComponent.TRIGGER_TEXT_SUBMIT;
|
|
@@ -23721,8 +23671,11 @@
|
|
|
23721
23671
|
this.contextFields = this.getCaseFields();
|
|
23722
23672
|
// Indicates if the submission is for a Case Flag, as opposed to a "regular" form submission, by the presence of
|
|
23723
23673
|
// a FlagLauncher field in the event trigger
|
|
23724
|
-
this.
|
|
23725
|
-
|
|
23674
|
+
this.caseFlagField = this.eventTrigger.case_fields.find(function (caseField) { return FieldsUtils.isFlagLauncherCaseField(caseField); });
|
|
23675
|
+
var isCaseFlagExternalMode = ((_a = this.caseFlagField) === null || _a === void 0 ? void 0 : _a.display_context_parameter) === '#ARGUMENT(UPDATE,EXTERNAL)' ||
|
|
23676
|
+
((_b = this.caseFlagField) === null || _b === void 0 ? void 0 : _b.display_context_parameter) === '#ARGUMENT(CREATE,EXTERNAL)';
|
|
23677
|
+
this.pageTitle = this.caseFlagField ? (isCaseFlagExternalMode ? CaseEditSubmitTitles.REVIEW_SUPPORT_REQUEST : CaseEditSubmitTitles.REVIEW_FLAG_DETAILS)
|
|
23678
|
+
: CaseEditSubmitTitles.CHECK_YOUR_ANSWERS;
|
|
23726
23679
|
};
|
|
23727
23680
|
CaseEditSubmitComponent.prototype.ngOnDestroy = function () {
|
|
23728
23681
|
if (this.profileSubscription) {
|
|
@@ -23777,7 +23730,7 @@
|
|
|
23777
23730
|
this.formValueService.removeEmptyCollectionsWithMinValidation(caseEventData.data, this.eventTrigger.case_fields);
|
|
23778
23731
|
// If this is a Case Flag submission (and thus a FlagLauncher field is present in the event trigger), the flag
|
|
23779
23732
|
// details data needs populating for each Flags field, then the FlagLauncher field needs removing
|
|
23780
|
-
if (this.
|
|
23733
|
+
if (this.caseFlagField) {
|
|
23781
23734
|
this.formValueService.populateFlagDetailsFromCaseFields(caseEventData.data, this.eventTrigger.case_fields);
|
|
23782
23735
|
this.formValueService.removeFlagLauncherField(caseEventData.data, this.eventTrigger.case_fields);
|
|
23783
23736
|
}
|
|
@@ -23962,17 +23915,17 @@
|
|
|
23962
23915
|
return !this.caseFieldService.isReadOnly(field);
|
|
23963
23916
|
};
|
|
23964
23917
|
CaseEditSubmitComponent.prototype.checkYourAnswerFieldsToDisplayExists = function () {
|
|
23965
|
-
var e_1,
|
|
23918
|
+
var e_1, _c, e_2, _d;
|
|
23966
23919
|
if (!this.eventTrigger.show_summary) {
|
|
23967
23920
|
return false;
|
|
23968
23921
|
}
|
|
23969
23922
|
try {
|
|
23970
|
-
for (var
|
|
23971
|
-
var page =
|
|
23923
|
+
for (var _e = __values(this.wizard.pages), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
23924
|
+
var page = _f.value;
|
|
23972
23925
|
if (this.isShown(page)) {
|
|
23973
23926
|
try {
|
|
23974
|
-
for (var
|
|
23975
|
-
var field =
|
|
23927
|
+
for (var _g = (e_2 = void 0, __values(page.case_fields)), _h = _g.next(); !_h.done; _h = _g.next()) {
|
|
23928
|
+
var field = _h.value;
|
|
23976
23929
|
if (this.canShowFieldInCYA(field)) {
|
|
23977
23930
|
// at least one field needs showing
|
|
23978
23931
|
return true;
|
|
@@ -23982,7 +23935,7 @@
|
|
|
23982
23935
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
23983
23936
|
finally {
|
|
23984
23937
|
try {
|
|
23985
|
-
if (
|
|
23938
|
+
if (_h && !_h.done && (_d = _g.return)) _d.call(_g);
|
|
23986
23939
|
}
|
|
23987
23940
|
finally { if (e_2) throw e_2.error; }
|
|
23988
23941
|
}
|
|
@@ -23992,7 +23945,7 @@
|
|
|
23992
23945
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
23993
23946
|
finally {
|
|
23994
23947
|
try {
|
|
23995
|
-
if (
|
|
23948
|
+
if (_f && !_f.done && (_c = _e.return)) _c.call(_e);
|
|
23996
23949
|
}
|
|
23997
23950
|
finally { if (e_1) throw e_1.error; }
|
|
23998
23951
|
}
|
|
@@ -27107,17 +27060,13 @@
|
|
|
27107
27060
|
// Bypass validation if the CaseEventData data object contains a FlagLauncher field; this field type cannot be
|
|
27108
27061
|
// validated like regular fields. Need to match this field id against that of the defined FlagLauncher CaseField
|
|
27109
27062
|
// (if it exists on any CaseTab)
|
|
27110
|
-
var
|
|
27063
|
+
var flagLauncherCaseFields = [];
|
|
27111
27064
|
if (_this.caseDetails.tabs) {
|
|
27112
27065
|
try {
|
|
27113
27066
|
for (var _b = __values(_this.caseDetails.tabs), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
27114
27067
|
var tab = _c.value;
|
|
27115
27068
|
if (tab.fields) {
|
|
27116
|
-
|
|
27117
|
-
// Stop searching for a FlagLauncher field as soon as it is found
|
|
27118
|
-
if (flagLauncherCaseField) {
|
|
27119
|
-
break;
|
|
27120
|
-
}
|
|
27069
|
+
flagLauncherCaseFields.push.apply(flagLauncherCaseFields, __spread(tab.fields.filter(function (caseField) { return FieldsUtils.isFlagLauncherCaseField(caseField); })));
|
|
27121
27070
|
}
|
|
27122
27071
|
}
|
|
27123
27072
|
}
|
|
@@ -27129,9 +27078,8 @@
|
|
|
27129
27078
|
finally { if (e_1) throw e_1.error; }
|
|
27130
27079
|
}
|
|
27131
27080
|
}
|
|
27132
|
-
|
|
27133
|
-
|
|
27134
|
-
: _this.casesService.validateCase(_this.caseDetails.case_type.id, sanitizedEditForm, pageId);
|
|
27081
|
+
var isThereAnyFlagLauncherField = flagLauncherCaseFields.length > 0;
|
|
27082
|
+
return isThereAnyFlagLauncherField ? rxjs.of(null) : _this.casesService.validateCase(_this.caseDetails.case_type.id, sanitizedEditForm, pageId);
|
|
27135
27083
|
};
|
|
27136
27084
|
};
|
|
27137
27085
|
CaseEventTriggerComponent.prototype.submitted = function (event) {
|
|
@@ -32747,6 +32695,7 @@
|
|
|
32747
32695
|
complex_fields: typeComplexFields || []
|
|
32748
32696
|
},
|
|
32749
32697
|
display_context: display_context || 'OPTIONAL',
|
|
32698
|
+
display_context_parameter: display_context || 'OPTIONAL',
|
|
32750
32699
|
label: label || 'First name',
|
|
32751
32700
|
show_summary_content_option: show_summary_content_option,
|
|
32752
32701
|
retain_hidden_value: retain_hidden_value || false,
|